sqllogictest

Artifact [aabefe3dd2]
Login

Artifact aabefe3dd2431109c680d284e185815973a7fd9e:


hash-threshold 8

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

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

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT - col2 * + 33 AS col1 FROM tab0
----
-1089
-2706
-33

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

skipif mysql # not compatible
query I rowsort label-1
SELECT - col2 - + CAST ( - col1 AS INTEGER ) / + col2 AS col0 FROM tab0 AS cor0
----
-31
-81
96

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - col0 - 79 col2 FROM tab1 AS cor0
----
-1
561
961

query I rowsort
SELECT col1 - + 64 AS col1 FROM tab0 AS cor0
----
22
27
33

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

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

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

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

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

query I rowsort
SELECT ( + cor0.col0 ) * + col2 - + 78 FROM tab2 AS cor0
----
111
1950
2924

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

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

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

query I rowsort
SELECT ALL - 41 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 4ba0c102091f9cbc9fe9439b04584e70

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-15
SELECT ( 41 ) * col0 DIV + col1 FROM tab0 AS cor0
----
11
14
40

skipif mysql # not compatible
query I rowsort label-15
SELECT ( 41 ) * col0 / + col1 FROM tab0 AS cor0
----
11
14
40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 * + ( col0 ) * + 27 col2 FROM tab0 AS cor0
----
197046
21384
945

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

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

query I rowsort
SELECT - ( - col2 ) + - col0 * col0 * - cor0.col0 AS col0 FROM tab0 AS cor0
----
13857
42876
705051

query I rowsort
SELECT ALL - 31 * col2 + col2 AS col0 FROM tab2 AS cor0
----
-1140
-780
-810

onlyif mysql # use DIV operator for integer division
query I rowsort label-21
SELECT + 32 + col2 * - col0 - + col1 DIV col2 col1 FROM tab1 AS cor0
----
-130
-3616
-7648

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-21
SELECT + 32 + col2 * - col0 - + col1 / col2 col1 FROM tab1 AS cor0
----
-130
-3616
-7648

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

query I rowsort
SELECT DISTINCT - 69 * - col2 AS col1 FROM tab0 cor0
----
2277
5658
69

query I rowsort
SELECT DISTINCT col1 + - 44 AS col2 FROM tab0 AS cor0
----
42
47
53

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

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

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

skipif mysql # not compatible
query I rowsort label-27
SELECT ALL + col2 - ( col1 + CAST ( + col0 AS INTEGER ) ) FROM tab0 AS cor0
----
-131
-77
-98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col0 + ( col0 ) * tab1.col2 col1 FROM tab1
----
240
4288
8720

query I rowsort
SELECT col1 + col0 * 37 * col1 AS col2 FROM tab0
----
125712
299754
76454

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

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

query I rowsort
SELECT DISTINCT 90 * cor0.col0 AS col1 FROM tab2 AS cor0
----
630
7020
7110

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

query I rowsort
SELECT ALL - - col0 + - 40 AS col2 FROM tab1 AS cor0
----
-37
24
40

query I rowsort
SELECT DISTINCT + col0 * - col2 + col1 + col0 AS col1 FROM tab0 AS cor0
----
-682
-7118
97

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

query I rowsort
SELECT col0 * col0 * - 32 FROM tab0 AS cor0
----
-18432
-253472
-39200

query I rowsort
SELECT DISTINCT + - 80 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-80

query I rowsort
SELECT ALL + ( cor0.col0 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-41
SELECT DISTINCT + 24 DIV + col1 AS col2 FROM tab1 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-41
SELECT DISTINCT + 24 / + col1 AS col2 FROM tab1 AS cor0
----
0
1
2

query I rowsort
SELECT DISTINCT - - col0 * - col0 - 10 * + col0 FROM tab1 AS cor0
----
-39
-4736
-7200

query I rowsort
SELECT ALL - - col0 + - col0 * col2 + 71 FROM tab1 AS cor0
----
-3513
-7529
-88

query I rowsort
SELECT ALL + ( cor0.col1 ) - - 77 FROM tab1 AS cor0
----
103
87
90

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

query I rowsort
SELECT DISTINCT + ( - col1 ) - ( - col1 ) * + col2 FROM tab2 cor0
----
1475
629
806

query I rowsort
SELECT DISTINCT 18 * col1 AS col1 FROM tab2 AS cor0
----
1062
306
558

query I rowsort
SELECT ( + col2 ) * + col1 - col2 FROM tab1 cor0
----
1152
1350
513

query I rowsort
SELECT ALL + - 54 * + col0 + col0 FROM tab1 AS cor0
----
-159
-3392
-4240

query I rowsort
SELECT + + 68 * + col0 AS col1 FROM tab2 AS cor0
----
476
5304
5372

query I rowsort
SELECT DISTINCT col2 * - col2 - col0 FROM tab1 AS cor0
----
-2919
-3313
-9296

query I rowsort
SELECT - ( + col1 ) + 16 * + col1 AS col0 FROM tab2 AS cor0
----
255
465
885

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 50 * - tab1.col0 - - col0 col1 FROM tab1
----
-147
-3136
-3920

query I rowsort
SELECT - 60 AS col1 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 1a0b29f8e6f82c54623a665ba4af8fd1

query I rowsort
SELECT + col2 + col1 + + col0 * col0 AS col2 FROM tab0
----
1323
695
8094

query I rowsort
SELECT DISTINCT 67 + col2 AS col2 FROM tab1
----
121
124
163

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + col1 * 43 + col1 col0 FROM tab1 AS cor0
----
1141
376
492

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col2 * col2 + - col0 col2 FROM tab0 AS cor0
----
-1113
-36
-6813

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

query I rowsort
SELECT DISTINCT - col1 + + 3 * - col1 FROM tab1 AS cor0
----
-104
-40
-52

query I rowsort
SELECT - col2 + - 45 * - col1 FROM tab0 AS cor0
----
3837
4013
4364

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

query I rowsort
SELECT DISTINCT + cor1.col0 * + 68 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1, tab1 AS cor1
----
204
4352
5440

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

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

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

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

skipif mysql # not compatible
query I rowsort label-66
SELECT + 50 * + tab0.col2 + col2 * CAST ( NULL AS INTEGER ) / 19 AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-67
SELECT - 38 * + col0 + - col2 DIV col2 FROM tab1
----
-115
-2433
-3041

skipif mysql # not compatible
query I rowsort label-67
SELECT - 38 * + col0 + - col2 / col2 FROM tab1
----
-115
-2433
-3041

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 92 + - col2 col2 FROM tab0
----
-125
-174
-93

query I rowsort
SELECT 97 * - 41 + col2 FROM tab1
----
-3881
-3920
-3923

query I rowsort
SELECT ALL - 74 - 78 AS col1 FROM tab1 AS cor0
----
-152
-152
-152

onlyif mysql # use DIV operator for integer division
query I rowsort label-71
SELECT DISTINCT - + col2 * - col2 + - cor0.col1 DIV + 45 FROM tab0 cor0
----
-1
1088
6722

skipif mysql # not compatible
query I rowsort label-71
SELECT DISTINCT - + col2 * - col2 + - cor0.col1 / + 45 FROM tab0 cor0
----
-1
1088
6722

query I rowsort
SELECT ALL ( 16 ) + col1 * col1 FROM tab1 AS cor0
----
116
185
692

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

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

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

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

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT ( col0 ) + col0 * - CAST ( + 57 + col2 AS REAL ) FROM tab0 cor0
----
-12282
-1995
-2136

query I rowsort
SELECT DISTINCT + col0 + + 32 * - col2 AS col1 FROM tab1 AS cor0
----
-1725
-1760
-2992

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

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

query I rowsort
SELECT ALL - cor0.col1 * - 54 FROM tab0 AS cor0
----
4644
4914
5238

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

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

query I rowsort
SELECT DISTINCT 65 + 99 * + col1 AS col1 FROM tab0 cor0
----
8579
9074
9668

query I rowsort
SELECT ALL - - ( - col0 ) * 52 FROM tab1 AS cor0
----
-156
-3328
-4160

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

query I rowsort
SELECT - 54 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 71e27a12767d3a987ce05e4d6edad211

query I rowsort
SELECT ALL - ( - 40 ) FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to e4d10f7d6c34a281f524e45e82ebd2a0

query I rowsort
SELECT ALL + 89 * - cor0.col1 FROM tab0 AS cor0
----
-7654
-8099
-8633

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 24 col2 FROM tab2, tab1 cor0, tab2 cor1
----
27 values hashing to aeeac431d22528188e8a5a2a60d2d080

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

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

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-92
SELECT DISTINCT col2 * CAST( + col1 AS SIGNED ) + cor0.col0 + 79 FROM tab2 AS cor0
----
1691
804
923

skipif mysql # not compatible
query I rowsort label-92
SELECT DISTINCT col2 * CAST ( + col1 AS INTEGER ) + cor0.col0 + 79 FROM tab2 AS cor0
----
1691
804
923

query I rowsort
SELECT - - 14 + - col0 AS col1 FROM tab2 AS cor0
----
-64
-65
7

query I rowsort
SELECT col0 * ( col0 ) * 70 + col2 AS col1 FROM tab1 AS cor0
----
286777
448096
684

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

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

query I rowsort
SELECT DISTINCT col0 * + ( - 86 ) FROM tab1
----
-258
-5504
-6880

query I rowsort
SELECT DISTINCT + 71 FROM tab1, tab2 cor0
----
71

query I rowsort
SELECT DISTINCT col1 * col1 + 19 FROM tab1
----
119
188
695

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

query I rowsort
SELECT ALL + tab2.col2 * col1 + col1 + col2 * 97 FROM tab2
----
3487
4115
4349

query I rowsort
SELECT DISTINCT + col1 * + 97 FROM tab2
----
1649
3007
5723

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + 35 col2 FROM tab2
----
245
2730
2765

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

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

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

query I rowsort
SELECT - + col1 * 63 AS col0 FROM tab2 AS cor0
----
-1071
-1953
-3717

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-107
SELECT - + cor0.col1 * CAST( 49 AS SIGNED ) AS col2 FROM tab0 cor0
----
-4214
-4459
-4753

skipif mysql # not compatible
query I rowsort label-107
SELECT - + cor0.col1 * CAST ( 49 AS INTEGER ) AS col2 FROM tab0 cor0
----
-4214
-4459
-4753

query I rowsort
SELECT col0 - 30 * + col1 * - col1 FROM tab1 AS cor0
----
20283
3064
5150

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

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

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

query I rowsort
SELECT DISTINCT 3 AS col0 FROM tab1 AS cor0
----
3

query I rowsort
SELECT ALL - + ( + cor0.col2 ) + col2 * - ( 22 ) FROM tab2 AS cor0
----
-598
-621
-874

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

query I rowsort
SELECT 61 AS col0 FROM tab0, tab2 AS cor0, tab1 cor1
----
27 values hashing to 8d4dfe649433a599fc4b10830cc7ce55

query I rowsort
SELECT - 43 + + col2 * - ( - 18 + + cor0.col0 ) AS col2 FROM tab2 AS cor0
----
-1603
-2361
254

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-118
SELECT ALL col0 DIV - col2 + col1 + - col2 FROM tab1 AS cor0
----
-28
-48
-83

skipif mysql # not compatible
query I rowsort label-118
SELECT ALL col0 / - col2 + col1 + - col2 FROM tab1 AS cor0
----
-28
-48
-83

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

query I rowsort
SELECT ALL + col2 + + 15 * col1 AS col0 FROM tab0 AS cor0
----
1323
1447
1456

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

query I rowsort
SELECT - cor0.col1 AS col2 FROM tab2, tab1, tab0 AS cor0, tab0
----
81 values hashing to 786a240f80bef6f9c6a190e92cd4f9e8

query I rowsort
SELECT ALL 57 * + col2 AS col1 FROM tab1
----
3078
3249
5472

query I rowsort
SELECT DISTINCT col2 + 47 AS col1 FROM tab0 AS cor0
----
129
48
80

query I rowsort
SELECT ALL - col1 - - 10 * + 63 * col0 FROM tab2 AS cor0
----
4379
49081
49753

query I rowsort
SELECT ALL + - col1 * + 77 + ( col2 + col2 ) FROM tab2 AS cor0
----
-1233
-2333
-4491

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

query I rowsort
SELECT + col0 + + ( col0 ) * + col0 FROM tab2 AS cor0
----
56
6162
6320

query I rowsort
SELECT ALL - col2 + + col1 - col1 AS col2 FROM tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT DISTINCT col0 * - 75 FROM tab1 cor0
----
-225
-4800
-6000

query I rowsort
SELECT 13 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to a90d0f37cec603ae1bc0a60dc7fbaeed

query I rowsort
SELECT tab0.col2 - col2 FROM tab0
----
0
0
0

query I rowsort
SELECT + col0 + + 46 * + tab1.col2 AS col2 FROM tab1
----
2487
2686
4496

query I rowsort
SELECT ALL + 31 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to c3c6f92f0ca72d71793339f88a57e336

query I rowsort
SELECT ( - cor0.col0 ) AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0

query I rowsort
SELECT ALL + col1 * + col1 + 26 * + ( + col1 ) AS col2 FROM tab1 AS cor0
----
1352
360
507

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 - col1 * 85 * + col0 col0 FROM tab2 cor0
----
-114234
-18452
-391248

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

query I rowsort
SELECT col0 + 82 - col1 * + 11 AS col0 FROM tab2
----
-252
-26
-489

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-142
SELECT - ( 42 ) DIV - col0 + + 82 + col1 AS col1 FROM tab0
----
169
173
180

skipif mysql # not compatible
query I rowsort label-142
SELECT - ( 42 ) / - col0 + + 82 + col1 AS col1 FROM tab0
----
169
173
180

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

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

query I rowsort
SELECT 32 + col0 FROM tab2 cor0
----
110
111
39

query I rowsort
SELECT 38 + tab1.col1 AS col1 FROM tab1
----
48
51
64

query I rowsort
SELECT ALL + 70 * col0 + 89 AS col0 FROM tab2 AS cor0
----
5549
5619
579

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

query I rowsort
SELECT ALL + 92 + cor0.col1 + ( + 51 ) FROM tab1 AS cor0
----
153
156
169

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

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

query I rowsort
SELECT DISTINCT + + col1 * - col2 + - ( col2 ) FROM tab2 AS cor0
----
-1560
-684
-864

query I rowsort
SELECT - 85 * - cor0.col0 + - 88 AS col1 FROM tab1 AS cor0
----
167
5352
6712

query I rowsort
SELECT - - ( col0 ) * + 0 * col0 + - col0 + + 52 FROM tab1 AS cor0
----
-12
-28
49

query I rowsort
SELECT cor0.col0 + col1 + col2 * cor0.col2 FROM tab1 AS cor0
----
2945
3323
9309

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

query I rowsort
SELECT DISTINCT - col0 * tab2.col1 * col0 FROM tab2
----
-106097
-1519
-358956

query I rowsort
SELECT col1 * col0 + col2 * + 57 * + 38 AS col2 FROM tab1
----
117042
124102
208976

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

query I rowsort
SELECT ALL + 65 * + col2 + col1 * + col0 AS col0 FROM tab0 AS cor0
----
13429
3460
4209

query I rowsort
SELECT DISTINCT + + 94 + + ( col2 ) FROM tab0 AS cor0
----
127
176
95

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

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

skipif mysql # not compatible
query I rowsort label-162
SELECT - - 11 / - col0 FROM tab2 cor0
----
-1
0
0

query I rowsort
SELECT ALL 35 * col2 FROM tab0 AS cor0
----
1155
2870
35

query I rowsort
SELECT DISTINCT - - 64 * col2 AS col1 FROM tab1 AS cor0
----
3456
3648
6144

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

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

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

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

query I rowsort
SELECT DISTINCT col2 * - col0 + col0 * + col0 FROM tab0 AS cor0
----
-216
1190
623

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

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

skipif mysql # not compatible
query I rowsort label-170
SELECT - col2 * - ( - col1 * - col2 ) + - CAST ( - 66 AS INTEGER ) FROM tab0 cor0
----
163
611950
93720

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-172
SELECT + + col2 * col0 DIV - col1 + - col2 col0 FROM tab0 AS cor0
----
-1
-162
-42

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-172
SELECT + + col2 * col0 / - col1 + - col2 col0 FROM tab0 AS cor0
----
-1
-162
-42

query I rowsort
SELECT ALL - + cor0.col2 + + 62 FROM tab2 AS cor0
----
24
35
36

query I rowsort
SELECT ALL col0 * 99 * - col0 FROM tab0 cor0
----
-121275
-57024
-784179

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

skipif mysql # not compatible
query I rowsort label-175
SELECT DISTINCT col0 + + ( col1 ) / + col1 FROM tab0 AS cor0
----
25
36
90

query I rowsort
SELECT DISTINCT - col0 * 37 AS col2 FROM tab2 AS cor0
----
-259
-2886
-2923

onlyif mysql # use DIV operator for integer division
query I rowsort label-177
SELECT - col2 + col2 DIV + 50 FROM tab0 AS cor0
----
-1
-33
-81

skipif mysql # not compatible
query I rowsort label-177
SELECT - col2 + col2 / + 50 FROM tab0 AS cor0
----
-1
-33
-81

onlyif mysql # use DIV operator for integer division
query I rowsort label-178
SELECT ALL col0 + + 92 DIV - cor0.col1 FROM tab1 AS cor0
----
0
55
73

skipif mysql # not compatible
query I rowsort label-178
SELECT ALL col0 + + 92 / - cor0.col1 FROM tab1 AS cor0
----
0
55
73

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

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

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

query I rowsort
SELECT DISTINCT - col1 * 94 * + col0 FROM tab2 cor0
----
-126242
-20398
-432588

query I rowsort
SELECT tab2.col2 + - col1 - 85 AS col2 FROM tab2
----
-118
-64
-89

query I rowsort
SELECT - 87 + + tab1.col1 FROM tab1
----
-61
-74
-77

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

query I rowsort
SELECT DISTINCT - col1 + + cor0.col1 * col1 AS col0 FROM tab0 AS cor0
----
7310
8190
9312

query I rowsort
SELECT - + col1 * 74 * 96 + + col2 * col2 FROM tab2 cor0
----
-119324
-219495
-418460

query I rowsort
SELECT DISTINCT + 59 - - tab1.col0 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
123
139
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-189
SELECT ALL + col1 DIV - 23 + - col0 * col0 + - 36 FROM tab0
----
-1265
-615
-7960

skipif mysql # not compatible
query I rowsort label-189
SELECT ALL + col1 / - 23 + - col0 * col0 + - 36 FROM tab0
----
-1265
-615
-7960

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

query I rowsort
SELECT - 85 + col2 AS col0 FROM tab2 AS cor0
----
-47
-58
-59

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

query I rowsort
SELECT 21 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 312c166f4dc412730c43555105b1f44b

query I rowsort
SELECT DISTINCT 7 * - 40 FROM tab0, tab2 cor0
----
-280

query I rowsort
SELECT col0 * - col2 + - 39 AS col0 FROM tab0
----
-7337
-74
-831

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

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

query I rowsort
SELECT - - 33 + col1 FROM tab2 AS cor0
----
50
64
92

query I rowsort
SELECT 90 FROM tab0, tab0 cor0, tab1, tab2 AS cor1
----
81 values hashing to 3b4644ef0734ed220952cae7e0648c4b

query I rowsort
SELECT - cor0.col2 + 40 AS col1 FROM tab0 AS cor0
----
-42
39
7

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

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

query I rowsort
SELECT ALL + 44 * + col0 AS col1 FROM tab1 cor0
----
132
2816
3520

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

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

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

query I rowsort
SELECT + col2 + + 76 * - col0 FROM tab1 AS cor0
----
-174
-4807
-5984

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

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

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

query I rowsort
SELECT + col1 * col0 + 11 AS col1 FROM tab1 AS cor0
----
1051
651
89

query I rowsort
SELECT col2 + - col2 * col1 - 57 FROM tab0 AS cor0
----
-153
-2862
-7437

query I rowsort
SELECT ALL - 66 - col0 FROM tab1 AS cor0
----
-130
-146
-69

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

query I rowsort
SELECT + col0 * ( ( col0 ) * col2 ) AS col2 FROM tab0
----
1225
19008
649522

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

query I rowsort
SELECT - 81 * cor0.col0 FROM tab0 AS cor0
----
-1944
-2835
-7209

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

query I rowsort
SELECT - + ( + 36 ) * - col2 FROM tab1 AS cor0
----
1944
2052
3456

query I rowsort
SELECT - col1 + 11 * col2 FROM tab1 AS cor0
----
1043
568
617

query I rowsort
SELECT ( - col0 ) * col0 * cor0.col2 AS col2 FROM tab0 cor0
----
-1225
-19008
-649522

query I rowsort
SELECT DISTINCT tab1.col0 AS col0 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
3
64
80

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-223
SELECT ALL - + CAST( - col2 AS SIGNED ) + - col2 * 57 FROM tab0 AS cor0
----
-1848
-4592
-56

skipif mysql # not compatible
query I rowsort label-223
SELECT ALL - + CAST ( - col2 AS INTEGER ) + - col2 * 57 FROM tab0 AS cor0
----
-1848
-4592
-56

query I rowsort
SELECT DISTINCT + - 39 * col2 FROM tab0 AS cor0
----
-1287
-3198
-39

query I rowsort
SELECT + 24 AS col1 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to aeeac431d22528188e8a5a2a60d2d080

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

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

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

query I rowsort
SELECT + - 57 + - col2 * - col1 FROM tab2 AS cor0
----
1477
589
780

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

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

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

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

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

query I rowsort
SELECT DISTINCT + 51 + col0 * + 45 FROM tab0 AS cor0
----
1131
1626
4056

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

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

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

query I rowsort
SELECT ALL - - col0 * col0 + 77 AS col2 FROM tab2 AS cor0
----
126
6161
6318

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-237
SELECT CAST( col2 AS SIGNED ) * tab0.col2 - tab0.col1 * col2 FROM tab0
----
-1749
-738
-96

skipif mysql # not compatible
query I rowsort label-237
SELECT CAST ( col2 AS INTEGER ) * tab0.col2 - tab0.col1 * col2 FROM tab0
----
-1749
-738
-96

query I rowsort
SELECT col1 * - 96 AS col2 FROM tab1
----
-1248
-2496
-960

query I rowsort
SELECT ALL 93 + + 65 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to e00b5a8647271bde07fc7b4d0d29695b

query I rowsort
SELECT ALL + col1 + - 65 AS col2 FROM tab0 AS cor0
----
21
26
32

query I rowsort
SELECT DISTINCT col2 + 78 - + col0 FROM tab1 AS cor0
----
129
71
94

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

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

query I rowsort
SELECT ALL - cor0.col2 * - 74 + col0 FROM tab2 AS cor0
----
2002
2005
2891

query I rowsort
SELECT DISTINCT + - col0 - 53 AS col1 FROM tab2 AS cor0
----
-131
-132
-60

query I rowsort
SELECT DISTINCT + col1 * + 76 FROM tab1 AS cor0
----
1976
760
988

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-248
SELECT cor0.col0 DIV - 30 + + col2 FROM tab0 AS cor0
----
0
33
80

skipif mysql # not compatible
query I rowsort label-248
SELECT cor0.col0 / - 30 + + col2 FROM tab0 AS cor0
----
0
33
80

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

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

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

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

query I rowsort
SELECT ALL col2 * + 79 + 50 FROM tab2 cor0
----
2104
2183
3052

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

query I rowsort
SELECT 46 * + col0 FROM tab1
----
138
2944
3680

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

query I rowsort
SELECT DISTINCT ( 29 ) FROM tab0, tab1 AS cor0
----
29

query I rowsort
SELECT - - col0 + + 3 * - col2 FROM tab2 AS cor0
----
-35
-74
0

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-259
SELECT ALL + tab0.col1 + CAST( - 92 AS SIGNED ) col2 FROM tab0
----
-1
-6
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-259
SELECT ALL + tab0.col1 + CAST ( - 92 AS INTEGER ) col2 FROM tab0
----
-1
-6
5

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab1.col1 - + col2 * - tab1.col1 col2 FROM tab1
----
1261
1430
580

query I rowsort
SELECT + 23 + col1 AS col2 FROM tab1
----
33
36
49

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-265
SELECT ALL - 76 * col1 DIV col1 FROM tab1
----
-76
-76
-76

skipif mysql # not compatible
query I rowsort label-265
SELECT ALL - 76 * col1 / col1 FROM tab1
----
-76
-76
-76

query I rowsort
SELECT DISTINCT cor0.col0 + + col1 * - col1 FROM tab2 AS cor0
----
-210
-3403
-954

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

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

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

query I rowsort
SELECT + col2 * - 80 AS col1 FROM tab2 AS cor0
----
-2080
-2160
-3040

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-271
SELECT + col2 DIV + 90 AS col2 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-271
SELECT + col2 / + 90 AS col2 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT ALL - col0 * col0 * + col0 FROM tab1 AS cor0
----
-262144
-27
-512000

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

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

query I rowsort
SELECT + col1 + cor0.col2 * 23 FROM tab1 AS cor0
----
1268
1321
2221

query I rowsort
SELECT DISTINCT - 25 * - 95 * cor0.col1 AS col2 FROM tab2 AS cor0
----
140125
40375
73625

query I rowsort
SELECT ALL 3 * col0 + col0 * col2 FROM tab0 AS cor0
----
140
7565
864

query I rowsort
SELECT - + 92 + cor0.col2 AS col1 FROM tab1 AS cor0
----
-35
-38
4

query I rowsort
SELECT DISTINCT - col1 * 46 FROM tab0 AS cor0
----
-3956
-4186
-4462

query I rowsort
SELECT DISTINCT - - 30 * + 88 AS col0 FROM tab2 AS cor0
----
2640

query I rowsort
SELECT + ( - col1 ) * col2 + col0 + ( col0 ) FROM tab1 AS cor0
----
-1088
-1398
-442

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

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

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

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

query I rowsort
SELECT col1 * - 67 FROM tab2 AS cor0
----
-1139
-2077
-3953

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

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

query I rowsort
SELECT ALL - col0 * + col2 * + cor0.col0 FROM tab0 AS cor0
----
-1225
-19008
-649522

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

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

query I rowsort
SELECT ALL - - 69 * col0 + col0 FROM tab0 cor0
----
1680
2450
6230

query I rowsort
SELECT DISTINCT + + col1 * + 41 - - col0 FROM tab1 AS cor0
----
1069
474
613

skipif mysql # not compatible
query I rowsort
SELECT - CAST ( + cor0.col1 AS REAL ) - col2 * ( - 29 ) FROM tab0 AS cor0
----
-68
2287
871

query I rowsort
SELECT + + col1 * 25 + cor0.col1 + col1 AS col1 FROM tab0 cor0
----
2322
2457
2619

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

query I rowsort
SELECT 13 * - col0 AS col0 FROM tab0 AS cor0
----
-1157
-312
-455

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

query I rowsort
SELECT col2 * cor0.col2 + + col1 + col1 AS col0 FROM tab1 AS cor0
----
2968
3269
9242

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

skipif mysql # not compatible
query I rowsort label-296
SELECT - CAST ( NULL AS INTEGER ) / + 17 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-299
SELECT - - col0 DIV - cor0.col2 + ( + col0 ) FROM tab0 AS cor0
----
0
24
88

skipif mysql # not compatible
query I rowsort label-299
SELECT - - col0 / - cor0.col2 + ( + col0 ) FROM tab0 AS cor0
----
0
24
88

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

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

skipif mysql # not compatible
query I rowsort label-301
SELECT DISTINCT col2 + cor0.col2 + CAST ( - col0 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
105
112
50

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

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

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

skipif mysql # not compatible
query I rowsort label-304
SELECT col0 / + cor0.col0 + + 70 AS col1 FROM tab2 AS cor0
----
71
71
71

query I rowsort
SELECT + col0 * col0 - + 45 * cor0.col0 * cor0.col1 FROM tab1 cor0
----
-24704
-3501
-40400

query I rowsort
SELECT + + cor0.col0 * + 98 AS col1 FROM tab1 AS cor0
----
294
6272
7840

onlyif mysql # use DIV operator for integer division
query I rowsort label-307
SELECT 72 DIV + col0 FROM tab0
----
0
2
3

skipif mysql # not compatible
query I rowsort label-307
SELECT 72 / + col0 FROM tab0
----
0
2
3

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 col2 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a

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

query I rowsort
SELECT DISTINCT - col1 * + 46 + col0 * - col2 FROM tab0
----
-11484
-4497
-4748

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-312
SELECT col2 * ( + col0 ) * CAST( col0 AS SIGNED ) AS col0 FROM tab2
----
1323
158184
237158

skipif mysql # not compatible
query I rowsort label-312
SELECT col2 * ( + col0 ) * CAST ( col0 AS INTEGER ) AS col0 FROM tab2
----
1323
158184
237158

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-313
SELECT DISTINCT - ( - tab2.col1 ) + + col1 * - CAST( col1 AS SIGNED ) FROM tab2
----
-272
-3422
-930

skipif mysql # not compatible
query I rowsort label-313
SELECT DISTINCT - ( - tab2.col1 ) + + col1 * - CAST ( col1 AS INTEGER ) FROM tab2
----
-272
-3422
-930

query I rowsort
SELECT col0 * + col2 + + col0 * + col0 + - tab1.col2 FROM tab1
----
117
13984
7687

query I rowsort
SELECT ALL + + col0 + col0 * - col0 AS col0 FROM tab2 AS cor0
----
-42
-6006
-6162

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * ( + col2 ) + + col1 col1 FROM tab1 AS cor0
----
-136
-3638
-7667

query I rowsort
SELECT - + col0 + - 60 AS col1 FROM tab0 AS cor0
----
-149
-84
-95

query I rowsort
SELECT ALL + col0 + 36 + col2 AS col2 FROM tab0 AS cor0
----
207
72
93

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

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

query I rowsort
SELECT + col1 * - 14 + - ( cor0.col2 * - cor0.col1 ) AS col1 FROM tab1 cor0
----
1040
1066
430

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-324
SELECT DISTINCT col1 + - 58 DIV col1 + + col1 DIV col0 AS col0 FROM tab2 AS cor0
----
14
34
59

skipif mysql # not compatible
query I rowsort label-324
SELECT DISTINCT col1 + - 58 / col1 + + col1 / col0 AS col0 FROM tab2 AS cor0
----
14
34
59

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

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

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

query I rowsort
SELECT col1 * + 36 + 26 FROM tab2
----
1142
2150
638

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-329
SELECT - - col2 + - ( - 40 ) DIV - cor0.col2 AS col2 FROM tab0 AS cor0
----
-39
32
82

skipif mysql # not compatible
query I rowsort label-329
SELECT - - col2 + - ( - 40 ) / - cor0.col2 AS col2 FROM tab0 AS cor0
----
-39
32
82

query I rowsort
SELECT - col0 * + 66 - - col0 FROM tab2
----
-455
-5070
-5135

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab2 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab0 AS cor2
----
3645 values hashing to 40e4acd618698dd2305f1f7b8b547f7a

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-333
SELECT DISTINCT - + ( col2 ) + + col0 DIV cor0.col0 AS col1 FROM tab0 AS cor0
----
-32
-81
0

skipif mysql # not compatible
query I rowsort label-333
SELECT DISTINCT - + ( col2 ) + + col0 / cor0.col0 AS col1 FROM tab0 AS cor0
----
-32
-81
0

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

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

query I rowsort
SELECT DISTINCT 18 + + col2 AS col2 FROM tab2
----
44
45
56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 + + col0 * + ( - col1 ) * col2 col2 FROM tab0 AS cor0
----
-3430
-664207
-68136

query I rowsort
SELECT DISTINCT 90 * - col1 + - col1 + col0 * + col0 AS col0 FROM tab2
----
-2772
4694
715

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-340
SELECT ALL cor0.col1 + cor0.col1 DIV ( col1 * + col2 ) AS col2 FROM tab1 cor0
----
10
13
26

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

query I rowsort
SELECT - 18 * col0 - col2 FROM tab2 AS cor0
----
-1430
-1460
-153

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-343
SELECT col0 * + CAST( - col2 * col0 AS SIGNED ) FROM tab2 AS cor0
----
-1323
-158184
-237158

skipif mysql # not compatible
query I rowsort label-343
SELECT col0 * + CAST ( - col2 * col0 AS INTEGER ) FROM tab2 AS cor0
----
-1323
-158184
-237158

query I rowsort
SELECT DISTINCT col1 + + ( 6 ) * col0 AS col1 FROM tab1 cor0
----
394
44
493

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

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

query I rowsort
SELECT ALL + col0 * 67 + + col0 * col2 * ( - col0 ) AS col0 FROM tab2 AS cor0
----
-152958
-231865
-854

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-351
SELECT + CAST( - 25 AS SIGNED ) DIV col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-351
SELECT + CAST ( - 25 AS INTEGER ) / col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - cor1.col1 + 90 AS col0 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 4968f6b741474763045fc257b69d8bfb

onlyif mysql # use DIV operator for integer division
query I rowsort label-353
SELECT DISTINCT + col2 + col2 DIV + cor0.col2 AS col0 FROM tab1 cor0
----
55
58
97

skipif mysql # not compatible
query I rowsort label-353
SELECT DISTINCT + col2 + col2 / + cor0.col2 AS col0 FROM tab1 cor0
----
55
58
97

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

query I rowsort
SELECT DISTINCT col2 + 74 * col2 FROM tab1 AS cor0
----
4050
4275
7200

query I rowsort
SELECT + 61 + + cor0.col1 * - ( col0 ) FROM tab1 AS cor0
----
-17
-579
-979

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 62 * + cor0.col0 * + col0 col0 FROM tab2 AS cor0
----
-3038
-377208
-386942

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

skipif mysql # not compatible
query I rowsort label-358
SELECT - 12 / + col1 AS col0 FROM tab2 AS cor0
----
0
0
0

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 15 + cor0.col1 * + cor0.col2 col2 FROM tab2 AS cor0
----
1549
661
852

query I rowsort
SELECT ALL + col1 + col1 * 9 AS col0 FROM tab1 cor0
----
100
130
260

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-363
SELECT ( col1 ) + + col2 - 36 DIV col1 AS col0 FROM tab1
----
107
64
79

skipif mysql # not compatible
query I rowsort label-363
SELECT ( col1 ) + + col2 - 36 / col1 AS col0 FROM tab1
----
107
64
79

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

query I rowsort
SELECT ALL + + 69 * col0 + cor0.col1 + 54 FROM tab0 AS cor0
----
1796
2566
6286

query I rowsort
SELECT DISTINCT - col2 + + 43 FROM tab1
----
-11
-14
-53

query I rowsort
SELECT 91 * + tab1.col0 FROM tab1
----
273
5824
7280

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

query I rowsort
SELECT DISTINCT col0 * - col1 * - col2 + + tab2.col1 AS col0 FROM tab2
----
119711
51051
5890

query I rowsort
SELECT 95 * - col1 + tab0.col0 FROM tab0
----
-8146
-8556
-9180

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-374
SELECT ALL + - 40 * + col0 + col0 DIV + 21 AS col1 FROM tab2 AS cor0
----
-280
-3117
-3157

skipif mysql # not compatible
query I rowsort label-374
SELECT ALL + - 40 * + col0 + col0 / + 21 AS col1 FROM tab2 AS cor0
----
-280
-3117
-3157

query I rowsort
SELECT ALL + col1 * + col1 * - col1 AS col2 FROM tab0
----
-636056
-753571
-912673

query I rowsort
SELECT ALL - 19 * col0 FROM tab0
----
-1691
-456
-665

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + 39 col2 FROM tab2 AS cor0
----
-20
22
8

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

query I rowsort
SELECT + + col2 * 20 FROM tab2 cor0
----
520
540
760

query I rowsort
SELECT DISTINCT - col0 + ( + 3 ) * - col2 * cor0.col2 + 44 FROM tab0 AS cor0
----
-20217
-3247
6

query I rowsort
SELECT DISTINCT - col0 * + 49 + col2 - col0 FROM tab0 cor0
----
-1167
-1749
-4368

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

query I rowsort
SELECT - col1 * + ( col1 ) * col0 + col2 AS col2 FROM tab0 AS cor0
----
-177471
-329314
-736927

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab1.col0 * 2 col2 FROM tab1
----
-128
-160
-6

query I rowsort
SELECT - - col1 * - 98 * + cor0.col2 FROM tab2 AS cor0
----
-150332
-63308
-82026

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

query I rowsort
SELECT - ( 54 ) + col0 FROM tab2 AS cor0
----
-47
24
25

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

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

query I rowsort
SELECT 24 * - 42 + - col0 FROM tab1 AS cor0
----
-1011
-1072
-1088

query I rowsort
SELECT DISTINCT + 77 * col0 AS col2 FROM tab1 AS cor0
----
231
4928
6160

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

query I rowsort
SELECT + ( - col0 ) + 27 FROM tab1 AS cor0
----
-37
-53
24

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-403
SELECT ALL - tab1.col2 + - col1 DIV - tab1.col0 + + tab1.col1 * col1 AS col0 FROM tab1
----
43
630
73

skipif mysql # not compatible
query I rowsort label-403
SELECT ALL - tab1.col2 + - col1 / - tab1.col0 + + tab1.col1 * col1 AS col0 FROM tab1
----
43
630
73

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + cor0.col1 * + cor0.col1 + + col1 col0 FROM tab1 AS cor0
----
174
262
705

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-412
SELECT DISTINCT - tab0.col0 / - tab0.col1 AS col1 FROM tab0
----
0

query IIIIIIIII rowsort
SELECT ALL * FROM tab1, tab0, tab1 AS cor0 WHERE ( NULL ) >= NULL
----

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-416
SELECT col1 DIV col0 + - col1 AS col2 FROM tab1
----
-10
-13
-18

skipif mysql # not compatible
query I rowsort label-416
SELECT col1 / col0 + - col1 AS col2 FROM tab1
----
-10
-13
-18

query I rowsort
SELECT ALL + col2 + col2 - + col0 AS col2 FROM tab2
----
-26
-3
47

query I rowsort
SELECT + tab1.col1 + + col1 + col2 * - tab1.col2 FROM tab1
----
-2864
-3229
-9190

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

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

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

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

query I rowsort
SELECT col1 * col1 + col0 + + col0 FROM tab1
----
228
329
682

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

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

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

query I rowsort
SELECT - col0 * - col0 + - tab2.col2 + - tab2.col2 * - col2 AS col2 FROM tab2
----
6734
751
7647

query I rowsort
SELECT DISTINCT - tab1.col1 + col1 * + col1 FROM tab1
----
156
650
90

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-429
SELECT col2 + - col1 + + col2 * 87 DIV col0 AS col1 FROM tab0
----
-94
66
71

skipif mysql # not compatible
query I rowsort label-429
SELECT col2 + - col1 + + col2 * 87 / col0 AS col1 FROM tab0
----
-94
66
71

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

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

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

query I rowsort
SELECT + col2 + + col1 + col1 FROM tab0
----
195
205
264

query I rowsort
SELECT - col0 + col1 * col0 + col1 FROM tab0
----
2126
3457
8101

query I rowsort
SELECT DISTINCT col2 + + tab2.col2 AS col0 FROM tab2
----
52
54
76

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

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

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

skipif mysql # not compatible
query I rowsort label-438
SELECT col0 + - col2 / + col1 FROM tab0
----
24
35
89

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

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col1 NOT IN ( + col1 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

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

skipif mysql # not compatible
query I rowsort label-441
SELECT col2 - + tab0.col0 / col0 FROM tab0
----
0
32
81

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

query I rowsort
SELECT DISTINCT tab0.col1 AS col1 FROM tab0 WHERE NULL BETWEEN NULL AND ( NULL )
----

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

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

query I rowsort
SELECT ( - col2 ) * + 22 FROM tab1
----
-1188
-1254
-2112

query I rowsort
SELECT DISTINCT + 7 * cor0.col2 AS col0 FROM tab0 AS cor0
----
231
574
7

query I rowsort
SELECT + - 56 - + col1 AS col0 FROM tab1 AS cor0
----
-66
-69
-82

query I rowsort
SELECT + + cor0.col2 + - cor0.col1 * - 66 FROM tab0 AS cor0
----
5709
6088
6403

query I rowsort
SELECT + - 82 + cor0.col0 FROM tab1 AS cor0
----
-18
-2
-79

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

query I rowsort
SELECT - 18 AS col1 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 2dbe09d9295cfd52d854fefabf2cec4e

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

query I rowsort
SELECT DISTINCT + tab2.col0 + col2 * - 63 + - col2 AS col0 FROM tab2
----
-1586
-1721
-2353

query I rowsort
SELECT ALL col2 + + tab1.col2 + ( - 34 ) AS col0 FROM tab1
----
158
74
80

query I rowsort
SELECT col2 - col1 * - col1 * cor0.col1 FROM tab2 AS cor0
----
205405
29818
4951

query I rowsort
SELECT + col1 * + col1 * col0 + col1 AS col1 FROM tab1 AS cor0
----
13533
2054
6410

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

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

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

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

query I rowsort
SELECT DISTINCT + 8 + tab0.col1 FROM tab0
----
105
94
99

query I rowsort
SELECT DISTINCT + col2 * - col1 * 7 + - col2 * - col1 AS col2 FROM tab1
----
-3420
-7488
-8424

query I rowsort
SELECT + col1 * - col1 + 30 AS col1 FROM tab0
----
-7366
-8251
-9379

query I rowsort
SELECT DISTINCT + 23 + + cor0.col2 + - col2 * col0 AS col2 FROM tab0 AS cor0
----
-11
-7193
-736

query I rowsort
SELECT - 54 * 67 FROM tab2 AS cor0
----
-3618
-3618
-3618

query I rowsort
SELECT DISTINCT ( + col0 ) + - col0 * cor0.col0 FROM tab2 cor0
----
-42
-6006
-6162

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

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

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

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

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

query I rowsort
SELECT col2 * 66 + - col0 AS col1 FROM tab0
----
2154
31
5323

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

skipif mysql # not compatible
query I rowsort label-471
SELECT col1 + + col2 / col2 FROM tab0
----
87
92
98

query I rowsort
SELECT + ( - 24 * + col2 ) + col1 * col1 AS col1 FROM tab1
----
-1268
-2135
-620

query I rowsort
SELECT + 48 + - col1 AS col2 FROM tab1 AS cor0
----
22
35
38

query I rowsort
SELECT DISTINCT - col2 + + 90 FROM tab0 AS cor0
----
57
8
89

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

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

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

query I rowsort
SELECT - col1 * 1 AS col0 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT DISTINCT - - col0 - col0 * - col2 * - 50 FROM tab0 AS cor0
----
-1715
-364811
-39576

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + + 9 * col1 col1 FROM tab1
----
154
197
237

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

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

query I rowsort
SELECT ALL - + 42 + + col2 AS col0 FROM tab1 AS cor0
----
12
15
54

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

query I rowsort
SELECT - cor1.col0 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 09d8a912de1b8ab762e5ffbe028ce99e

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

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

query I rowsort
SELECT - 89 * cor0.col0 * - cor0.col2 FROM tab0 AS cor0
----
3115
649522
70488

query I rowsort
SELECT + - 57 + col1 * col1 FROM tab2 AS cor0
----
232
3424
904

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

skipif mysql # not compatible
query I rowsort label-490
SELECT DISTINCT - - col1 + CAST ( col1 AS INTEGER ) FROM tab1 AS cor0
----
20
26
52

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-492
SELECT + + col0 - 9 * col0 DIV - col2 FROM tab0 AS cor0
----
30
350
98

skipif mysql # not compatible
query I rowsort label-492
SELECT + + col0 - 9 * col0 / - col2 FROM tab0 AS cor0
----
30
350
98

query I rowsort
SELECT - col1 * + col0 - - cor0.col0 * + col2 AS col1 FROM tab2 cor0
----
-2574
-28
1659

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

query I rowsort
SELECT + col2 * - 83 AS col1 FROM tab1 AS cor0
----
-4482
-4731
-7968

onlyif mysql # use DIV operator for integer division
query I rowsort label-496
SELECT ALL - col1 * col2 DIV cor0.col1 + col2 DIV col1 FROM tab2 AS cor0
----
-26
-27
-36

skipif mysql # not compatible
query I rowsort label-496
SELECT ALL - col1 * col2 / cor0.col1 + col2 / col1 FROM tab2 AS cor0
----
-26
-27
-36

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

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

query I rowsort
SELECT - col2 + 31 * ( - col0 * cor0.col2 + col0 ) AS col2 FROM tab1 cor0
----
-111161
-235696
-4983

query I rowsort
SELECT - col0 + 96 * + col1 FROM tab2 cor0
----
1553
2969
5586

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

query I rowsort
SELECT DISTINCT col0 + col2 + + 64 AS col1 FROM tab2
----
168
181
98

query I rowsort
SELECT ALL tab1.col1 * col1 + tab1.col0 + + col2 * col1 FROM tab1
----
1497
2083
734

onlyif mysql # use DIV operator for integer division
query I rowsort label-503
SELECT ALL + tab1.col2 * + col0 * - col2 + col0 DIV tab1.col1 FROM tab1
----
-207930
-737274
-8748

skipif mysql # not compatible
query I rowsort label-503
SELECT ALL + tab1.col2 * + col0 * - col2 + col0 / tab1.col1 FROM tab1
----
-207930
-737274
-8748

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-506
SELECT DISTINCT - col0 * - cor0.col2 + - col1 DIV 27 FROM tab2 AS cor0
----
188
2026
3002

skipif mysql # not compatible
query I rowsort label-506
SELECT DISTINCT - col0 * - cor0.col2 + - col1 / 27 FROM tab2 AS cor0
----
188
2026
3002

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

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

skipif mysql # not compatible
query I rowsort label-508
SELECT ALL tab1.col1 / col1 - + col2 FROM tab1
----
-53
-56
-95

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-509
SELECT - - CAST( + col1 AS SIGNED ) FROM tab1 AS cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-509
SELECT - - CAST ( + col1 AS INTEGER ) FROM tab1 AS cor0
----
10
13
26

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

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

query I rowsort
SELECT + - 18 * + 97 + + col0 AS col1 FROM tab0 cor0
----
-1657
-1711
-1722

query I rowsort
SELECT DISTINCT - 35 + col2 AS col1 FROM tab1 AS cor0
----
19
22
61

query I rowsort
SELECT ( col2 ) + col1 * + 69 FROM tab0 AS cor0
----
5967
6361
6694

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

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

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

query I rowsort
SELECT ALL - col1 * 92 - - col2 AS col0 FROM tab2 AS cor0
----
-1526
-2825
-5402

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

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

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

query I rowsort
SELECT DISTINCT ( 75 ) FROM tab0 AS cor0
----
75

query I rowsort
SELECT ALL 52 * + 69 AS col0 FROM tab2 AS cor0
----
3588
3588
3588

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

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

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

skipif mysql # not compatible
query I rowsort label-524
SELECT col2 + + CAST ( + col2 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
108
114
192

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT - - col1 * col2 + 69 * col0 AS col1 FROM tab2 AS cor0
----
1320
6097
6916

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

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

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 32 + tab1.col0 * + ( - col1 * col1 ) FROM tab1
----
-13488
-1996
-6368

query I rowsort
SELECT ALL + col2 * col0 * 60 FROM tab1
----
218880
460800
9720

onlyif mysql # use DIV operator for integer division
query I rowsort label-535
SELECT DISTINCT 46 DIV tab0.col1 AS col0 FROM tab0, tab1 AS cor0, tab2 cor1
----
0

skipif mysql # not compatible
query I rowsort label-535
SELECT DISTINCT 46 / tab0.col1 AS col0 FROM tab0, tab1 AS cor0, tab2 cor1
----
0

query I rowsort
SELECT DISTINCT + - col2 * col2 + 42 AS col1 FROM tab2 AS cor0
----
-1402
-634
-687

onlyif mysql # use DIV operator for integer division
query I rowsort label-537
SELECT DISTINCT + cor0.col0 DIV - ( 85 ) + - col2 AS col2 FROM tab1 AS cor0
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-537
SELECT DISTINCT + cor0.col0 / - ( 85 ) + - col2 AS col2 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT DISTINCT + + col1 * + 32 FROM tab2 cor0
----
1888
544
992

query I rowsort
SELECT DISTINCT - col1 + - ( col2 ) * col1 * + col1 + - ( col0 ) * 44 * 82 AS col0 FROM tab1 AS cor0
----
-236622
-304877
-47354

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

query I rowsort
SELECT ALL 16 FROM tab2, tab2 cor0
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3

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

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

query I rowsort
SELECT + col2 + 22 FROM tab2
----
48
49
60

query I rowsort
SELECT 82 * + col2 AS col0 FROM tab2 AS cor0
----
2132
2214
3116

query I rowsort
SELECT ALL 82 + + col2 * col1 FROM tab0 cor0
----
179
2920
7544

onlyif mysql # use DIV operator for integer division
query I rowsort label-546
SELECT ALL + ( col1 ) * col1 * - col1 + col2 DIV col0 FROM tab1 AS cor0
----
-1000
-17558
-2196

skipif mysql # not compatible
query I rowsort label-546
SELECT ALL + ( col1 ) * col1 * - col1 + col2 / col0 FROM tab1 AS cor0
----
-1000
-17558
-2196

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

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

query I rowsort
SELECT ALL + + 87 * + col1 + col2 AS col2 FROM tab0 AS cor0
----
7515
7999
8440

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-553
SELECT DISTINCT - tab0.col2 + col1 / + tab0.col1 AS col0 FROM tab0
----
-32
-81
0

query I rowsort
SELECT col0 + 61 * - col1 FROM tab0
----
-5222
-5462
-5882

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

query I rowsort
SELECT + tab0.col1 * + cor0.col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 116454f2268e21c1351daf3f5803c987

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 72 + cor0.col0 * + cor0.col2 * + 11 col2 FROM tab1 AS cor0
----
1854
40200
84552

query I rowsort
SELECT ALL 83 FROM tab0, tab0 cor0, tab0 AS cor1
----
27 values hashing to 002a717a3d902d97220759065fb107c3

query I rowsort
SELECT DISTINCT + ( tab0.col1 + - 51 * cor0.col1 ) FROM tab0, tab0 AS cor0
----
9 values hashing to 51bee799e0ac35fae5023d7dccb6cf75

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

query I rowsort
SELECT DISTINCT + - 11 + - col2 AS col2 FROM tab0 AS cor0
----
-12
-44
-93

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

query I rowsort
SELECT col1 * + 79 FROM tab1 cor0
----
1027
2054
790

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

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

query I rowsort
SELECT tab2.col2 FROM tab1, tab2 AS cor0 CROSS JOIN tab2
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

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

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

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

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

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

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

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

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

query I rowsort
SELECT ALL col1 * 38 AS col0 FROM tab0
----
3268
3458
3686

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * 52 * + 24 col0 FROM tab1
----
119808
67392
71136

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

query I rowsort
SELECT + 52 + col0 AS col0 FROM tab1 AS cor0
----
116
132
55

query I rowsort
SELECT + 21 + - col1 AS col1 FROM tab1 AS cor0
----
-5
11
8

query I rowsort
SELECT - 21 + + col0 * - col2 AS col0 FROM tab0 AS cor0
----
-56
-7319
-813

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-580
SELECT - + CAST( - col1 AS SIGNED ) * cor0.col2 * - 94 FROM tab0 AS cor0
----
-266772
-701428
-9118

skipif mysql # not compatible
query I rowsort label-580
SELECT - + CAST ( - col1 AS INTEGER ) * cor0.col2 * - 94 FROM tab0 AS cor0
----
-266772
-701428
-9118

query I rowsort
SELECT col0 * 35 AS col2 FROM tab2
----
245
2730
2765

query I rowsort
SELECT col2 * 64 * + col0 FROM tab2
----
12096
129792
192128

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

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

query I rowsort
SELECT DISTINCT tab0.col0 + - ( - 0 + + col2 ) AS col1 FROM tab0
----
-9
34
7

query I rowsort
SELECT col0 * ( + tab0.col2 ) * col2 + 53 AS col1 FROM tab0
----
26189
598489
88

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

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

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

query I rowsort
SELECT ALL 83 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c

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

query I rowsort
SELECT + 10 + - col2 * - col0 FROM tab1 cor0
----
172
3658
7690

onlyif mysql # use DIV operator for integer division
query I rowsort label-591
SELECT ALL - ( - 42 ) DIV col1 FROM tab2
----
0
1
2

skipif mysql # not compatible
query I rowsort label-591
SELECT ALL - ( - 42 ) / col1 FROM tab2
----
0
1
2

query I rowsort
SELECT ALL + 95 * + col0 AS col0 FROM tab2 AS cor0
----
665
7410
7505

query I rowsort
SELECT + 5 * - cor0.col0 * + 55 AS col2 FROM tab2 AS cor0
----
-1925
-21450
-21725

query I rowsort
SELECT + 23 * 42 + col2 FROM tab1
----
1020
1023
1062

query I rowsort
SELECT 81 + col0 FROM tab0
----
105
116
170

query I rowsort
SELECT DISTINCT + 98 + col2 AS col0 FROM tab2
----
124
125
136

query I rowsort
SELECT col2 + - col2 * tab0.col0 + - 77 * col2 AS col1 FROM tab0
----
-111
-13530
-3300

onlyif mysql # use DIV operator for integer division
query I rowsort label-598
SELECT - + col1 DIV col0 - + col2 AS col2 FROM tab0 AS cor0
----
-3
-36
-83

skipif mysql # not compatible
query I rowsort label-598
SELECT - + col1 / col0 - + col2 AS col2 FROM tab0 AS cor0
----
-3
-36
-83

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

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-602
SELECT + col1 + CAST( - col1 AS SIGNED ) * col0 AS col1 FROM tab2 AS cor0
----
-1326
-186
-4543

skipif mysql # not compatible
query I rowsort label-602
SELECT + col1 + CAST ( - col1 AS INTEGER ) * col0 AS col1 FROM tab2 AS cor0
----
-1326
-186
-4543

query I rowsort
SELECT ALL - 49 * col0 + - cor0.col1 AS col0 FROM tab2 AS cor0
----
-374
-3881
-3888

query I rowsort
SELECT DISTINCT col0 * + col0 + - ( - col0 * col0 ) FROM tab0 cor0
----
1152
15842
2450

onlyif mysql # use DIV operator for integer division
query I rowsort label-605
SELECT ALL + + 95 * col0 DIV col2 col2 FROM tab0 AS cor0
----
103
3325
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-605
SELECT ALL + + 95 * col0 / col2 col2 FROM tab0 AS cor0
----
103
3325
69

query I rowsort
SELECT DISTINCT ( 45 ) AS col0 FROM tab1
----
45

query I rowsort
SELECT DISTINCT 40 + col2 * col1 AS col1 FROM tab1 AS cor0
----
1288
1444
610

query I rowsort
SELECT ALL - 80 * cor0.col0 + 77 AS col2 FROM tab2 AS cor0
----
-483
-6163
-6243

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

query I rowsort
SELECT + 85 + col1 AS col2 FROM tab1 cor0
----
111
95
98

query I rowsort
SELECT DISTINCT + col0 * + col0 + - 59 AS col1 FROM tab1 AS cor0
----
-50
4037
6341

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - 46 + col1 col0 FROM tab0
----
-3870
-4095
-4365

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

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

query I rowsort
SELECT 38 - + col0 AS col1 FROM tab0
----
-51
14
3

onlyif mysql # use DIV operator for integer division
query I rowsort label-615
SELECT ALL + + col1 * col1 + col0 DIV col0 FROM tab2 AS cor0
----
290
3482
962

skipif mysql # not compatible
query I rowsort label-615
SELECT ALL + + col1 * col1 + col0 / col0 FROM tab2 AS cor0
----
290
3482
962

query I rowsort
SELECT 67 + - cor0.col1 FROM tab0 AS cor0
----
-19
-24
-30

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-619
SELECT col0 * + col2 + - 72 + - col2 DIV - 93 FROM tab2 AS cor0
----
117
1956
2930

skipif mysql # not compatible
query I rowsort label-619
SELECT col0 * + col2 + - 72 + - col2 / - 93 FROM tab2 AS cor0
----
117
1956
2930

query I rowsort
SELECT + col0 + + col1 * 29 FROM tab1 AS cor0
----
354
457
757

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-623
SELECT DISTINCT + 78 DIV col0 FROM tab0 AS cor0
----
0
2
3

skipif mysql # not compatible
query I rowsort label-623
SELECT DISTINCT + 78 / col0 FROM tab0 AS cor0
----
0
2
3

query I rowsort
SELECT - col1 * + col2 + col2 * + col0 * + ( cor0.col1 * + 6 ) + - cor0.col1 FROM tab2 AS cor0
----
305541
34286
716319

query I rowsort
SELECT ALL - col1 * - cor0.col2 + col0 * - 81 AS col2 FROM tab0 cor0
----
-2738
253
894

query I rowsort
SELECT - 51 + - 64 AS col1 FROM tab2 AS cor0
----
-115
-115
-115

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

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

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

skipif mysql # not compatible
query I rowsort label-629
SELECT ALL CAST ( + 85 AS INTEGER ) FROM tab2 AS cor0
----
85
85
85

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

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

query I rowsort
SELECT ( - 87 ) FROM tab1
----
-87
-87
-87

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

query I rowsort
SELECT DISTINCT 69 + - 72 + - col1 FROM tab0 cor0
----
-100
-89
-94

query I rowsort
SELECT DISTINCT + col2 * - 57 AS col0 FROM tab2 AS cor0
----
-1482
-1539
-2166

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

query I rowsort
SELECT DISTINCT - col2 * - 26 FROM tab1 AS cor0
----
1404
1482
2496

query I rowsort
SELECT ALL + col2 + col2 + col0 AS col2 FROM tab1 cor0
----
111
178
272

query I rowsort
SELECT DISTINCT - - 87 FROM tab2 AS cor0
----
87

query I rowsort
SELECT DISTINCT - 30 * - col0 * + col0 FROM tab0 AS cor0
----
17280
237630
36750

query I rowsort
SELECT DISTINCT + + 78 * + col2 FROM tab1 cor0
----
4212
4446
7488

onlyif mysql # use DIV operator for integer division
query I rowsort label-641
SELECT DISTINCT - 94 DIV 49 FROM tab2, tab0 cor0, tab1 cor1
----
-1

skipif mysql # not compatible
query I rowsort label-641
SELECT DISTINCT - 94 / 49 FROM tab2, tab0 cor0, tab1 cor1
----
-1

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

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

skipif mysql # not compatible
query I rowsort label-643
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
NULL

query I rowsort
SELECT 50 + + 8 AS col0 FROM tab2, tab0 AS cor0 CROSS JOIN tab0
----
27 values hashing to 9ee363c6ac19cfdb8a50c7dfd5cc2b8a

query I rowsort
SELECT DISTINCT col0 * cor0.col0 * 66 + + col1 FROM tab1 AS cor0
----
270346
422413
620

query I rowsort
SELECT ALL col1 * col2 + - 42 AS col0 FROM tab1 AS cor0
----
1206
1362
528

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

skipif mysql # not compatible
query I rowsort label-647
SELECT ALL col2 + - CAST ( col1 + col1 * + col2 AS INTEGER ) FROM tab0 cor0
----
-193
-2891
-7471

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 93 col1 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 85ef191bf1b307f300b3fd49992fcae7

query I rowsort
SELECT - + col1 - + col1 FROM tab2 AS cor0
----
-118
-34
-62

query I rowsort
SELECT - col1 - 89 * + col2 AS col2 FROM tab1 AS cor0
----
-4832
-5083
-8557

query I rowsort
SELECT col0 * col2 + - col0 * cor0.col1 + col2 AS col1 FROM tab1 AS cor0
----
138
3065
6736

query I rowsort
SELECT ALL + + col0 * - ( - 59 * cor0.col2 ) AS col0 FROM tab2 cor0
----
11151
119652
177118

query I rowsort
SELECT + 84 - + 58 AS col1 FROM tab0, tab1, tab0 AS cor0, tab2
----
81 values hashing to 8b6a624eb92fb019d9664318e519f062

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-655
SELECT DISTINCT + col0 * col2 DIV - col1 FROM tab1 AS cor0
----
-364
-590
-6

skipif mysql # not compatible
query I rowsort label-655
SELECT DISTINCT + col0 * col2 / - col1 FROM tab1 AS cor0
----
-364
-590
-6

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + 93 * - col1 col1 FROM tab1 AS cor0
----
-1305
-2472
-987

query I rowsort
SELECT + ( cor0.col0 ) + col0 + ( col2 ) FROM tab2 AS cor0
----
182
196
41

query I rowsort
SELECT DISTINCT + tab2.col2 + - 65 AS col2 FROM tab2
----
-27
-38
-39

query I rowsort
SELECT DISTINCT tab0.col0 + + 17 AS col0 FROM tab0
----
106
41
52

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

query I rowsort
SELECT col2 * 41 + + 51 FROM tab2 cor0
----
1117
1158
1609

query I rowsort
SELECT 38 * tab0.col0 AS col2 FROM tab0
----
1330
3382
912

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

query I rowsort
SELECT DISTINCT + col1 + 51 * + ( col2 ) * - col0 FROM tab2 AS cor0
----
-103369
-153085
-9608

query I rowsort
SELECT + + 98 FROM tab2, tab2 AS cor0, tab0 AS cor1, tab0, tab1 AS cor2
----
243 values hashing to d130086b8d8a18a3ac49ce2321d35e00

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

query I rowsort
SELECT col1 * col2 * + 35 FROM tab2 AS cor0
----
22610
29295
53690

query I rowsort
SELECT ALL - + col0 * col2 + 9 FROM tab1 AS cor0
----
-153
-3639
-7671

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col0 + + 77 + 79 * col1 col1 FROM tab0 AS cor0
----
6847
7177
7705

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-671
SELECT + ( + col2 ) / col0 col1 FROM tab1
----
0
1
18

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

skipif mysql # not compatible
query I rowsort label-672
SELECT DISTINCT + col0 + + col2 / col1 FROM tab1
----
5
69
87

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-674
SELECT - 39 DIV col0 AS col2 FROM tab2
----
-5
0
0

skipif mysql # not compatible
query I rowsort label-674
SELECT - 39 / col0 AS col2 FROM tab2
----
-5
0
0

query I rowsort
SELECT col0 + + tab1.col2 + col0 FROM tab1
----
185
256
60

query I rowsort
SELECT DISTINCT + col0 + 26 FROM tab1
----
106
29
90

onlyif mysql # use DIV operator for integer division
query I rowsort label-677
SELECT + col0 * + tab1.col2 * col2 + - col2 DIV + col1 AS col2 FROM tab1
----
207931
737273
8746

skipif mysql # not compatible
query I rowsort label-677
SELECT + col0 * + tab1.col2 * col2 + - col2 / + col1 AS col2 FROM tab1
----
207931
737273
8746

query I rowsort
SELECT ALL - ( cor0.col2 ) + + col2 * - 59 + + col2 FROM tab2 cor0
----
-1534
-1593
-2242

query I rowsort
SELECT ALL - 4 * + cor0.col2 + cor0.col2 FROM tab0 AS cor0
----
-246
-3
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 - 9 col2 FROM tab2 AS cor0
----
-35
-36
-47

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

query I rowsort
SELECT ALL - ( 65 ) AS col0 FROM tab1 AS cor0
----
-65
-65
-65

query I rowsort
SELECT DISTINCT + col2 + col2 * col1 AS col0 FROM tab2 AS cor0
----
1560
684
864

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

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

query I rowsort
SELECT DISTINCT + 47 * col2 AS col2 FROM tab0 AS cor0
----
1551
3854
47

onlyif mysql # use DIV operator for integer division
query I rowsort label-686
SELECT DISTINCT + col1 + + cor0.col2 + col1 DIV col1 AS col2 FROM tab0 cor0
----
120
174
99

skipif mysql # not compatible
query I rowsort label-686
SELECT DISTINCT + col1 + + cor0.col2 + col1 / col1 AS col2 FROM tab0 cor0
----
120
174
99

onlyif mysql # use DIV operator for integer division
query I rowsort label-687
SELECT ALL - 75 DIV col0 - col2 AS col1 FROM tab1 AS cor0
----
-58
-79
-96

skipif mysql # not compatible
query I rowsort label-687
SELECT ALL - 75 / col0 - col2 AS col1 FROM tab1 AS cor0
----
-58
-79
-96

query I rowsort
SELECT 97 * col0 + col1 AS col0 FROM tab0 AS cor0
----
2414
3492
8724

query I rowsort
SELECT + col1 * + cor0.col1 * 72 FROM tab1 cor0
----
12168
48672
7200

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col0 + col2 col1 FROM tab0 AS cor0
----
36
7380
825

query I rowsort
SELECT DISTINCT 28 * col2 AS col2 FROM tab2 AS cor0
----
1064
728
756

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

query I rowsort
SELECT + 13 * - col1 AS col1 FROM tab1 cor0
----
-130
-169
-338

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

query I rowsort
SELECT ALL + 79 + col1 FROM tab0
----
165
170
176

query I rowsort
SELECT + col0 + + col0 * col2 * col2 AS col0 FROM tab2 AS cor0
----
114155
5110
52806

onlyif mysql # use DIV operator for integer division
query I rowsort label-700
SELECT + col2 DIV col0 - col0 * 59 AS col0 FROM tab1 cor0
----
-159
-3776
-4719

skipif mysql # not compatible
query I rowsort label-700
SELECT + col2 / col0 - col0 * 59 AS col0 FROM tab1 cor0
----
-159
-3776
-4719

query I rowsort
SELECT ALL - ( + col2 + col2 ) * col0 AS col0 FROM tab0
----
-14596
-1584
-70

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

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

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

query I rowsort
SELECT cor0.col1 + + 24 + col0 AS col1 FROM tab0 AS cor0
----
134
156
204

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

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

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

query I rowsort
SELECT DISTINCT - - cor0.col1 * col1 + + 68 AS col2 FROM tab2 AS cor0
----
1029
3549
357

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col0 * - col1 + + col0 col2 FROM tab2 cor0
----
-119574
-50955
-5852

query I rowsort
SELECT + col0 * + tab0.col0 AS col2 FROM tab0
----
1225
576
7921

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-711
SELECT ALL ( col1 ) * CAST( col0 * col2 AS SIGNED ) FROM tab1
----
36480
4212
99840

skipif mysql # not compatible
query I rowsort label-711
SELECT ALL ( col1 ) * CAST ( col0 * col2 AS INTEGER ) FROM tab1
----
36480
4212
99840

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

skipif mysql # not compatible
query I rowsort label-712
SELECT DISTINCT + 96 / + col2 AS col0 FROM tab0
----
1
2
96

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 97 + 28 col2 FROM tab0 AS cor0
----
-69
-69
-69

query I rowsort
SELECT - - 41 * 93 AS col1 FROM tab1 AS cor0
----
3813
3813
3813

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

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 DISTINCT 32 col2 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
32

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

query I rowsort
SELECT ALL + 42 * 74 AS col0 FROM tab1
----
3108
3108
3108

query I rowsort
SELECT ALL 28 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97

query I rowsort
SELECT DISTINCT 41 * - col2 FROM tab1 AS cor0
----
-2214
-2337
-3936

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab2 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab1 cor2
----
3645 values hashing to 44545a6297aa29bb730ffb907c13bc58

query I rowsort
SELECT col1 + + col1 * col0 * col1 FROM tab2 AS cor0
----
22848
271577
6758

query I rowsort
SELECT col1 + + col1 * + col1 * + col1 AS col0 FROM tab0 AS cor0
----
636142
753662
912770

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

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

query I rowsort
SELECT + col1 * + col1 * + col1 AS col1 FROM tab0 AS cor0
----
636056
753571
912673

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

skipif mysql # not compatible
query I rowsort label-729
SELECT + col0 + - col0 / - col1 AS col2 FROM tab0
----
24
35
89

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

query I rowsort
SELECT DISTINCT - + col0 * + col1 * - col0 + col1 FROM tab1 AS cor0
----
260
40970
83213

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

query I rowsort
SELECT - 16 * cor0.col2 * - col0 + col2 FROM tab2 AS cor0
----
3051
32474
48070

onlyif mysql # use DIV operator for integer division
query I rowsort label-734
SELECT - col0 DIV - col0 + cor0.col2 FROM tab0 AS cor0
----
2
34
83

skipif mysql # not compatible
query I rowsort label-734
SELECT - col0 / - col0 + cor0.col2 FROM tab0 AS cor0
----
2
34
83

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

query I rowsort
SELECT + + 10 - col2 FROM tab2 AS cor0
----
-16
-17
-28

query I rowsort
SELECT ALL - 60 * col1 FROM tab1 AS cor0
----
-1560
-600
-780

query I rowsort
SELECT DISTINCT - 60 + col0 * col2 FROM tab1 AS cor0
----
102
3588
7620

query I rowsort
SELECT ALL 38 + col0 + col1 AS col2 FROM tab1 AS cor0
----
112
131
67

query I rowsort
SELECT DISTINCT - 10 + col1 * + col1 AS col2 FROM tab1 AS cor0
----
159
666
90

query I rowsort
SELECT 25 * - col0 * col1 AS col1 FROM tab0
----
-202475
-51600
-84875

query I rowsort
SELECT DISTINCT 63 * - col1 + - col0 + col1 FROM tab0
----
-5356
-5731
-6049

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - tab0.col2 + - col0 col2 FROM tab0
----
-132
-2862
-7551

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

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

query I rowsort
SELECT DISTINCT ( col2 ) * col2 * + col0 FROM tab1
----
207936
737280
8748

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

skipif mysql # not compatible
query I rowsort label-747
SELECT ALL - tab2.col2 / - tab2.col0 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 83c163442931d28e4160369d40047ea7

query I rowsort
SELECT ALL 50 + - col2 FROM tab2
----
12
23
24

query I rowsort
SELECT col1 * col1 + - col2 AS col1 FROM tab1 AS cor0
----
43
622
73

query I rowsort
SELECT - col0 * col1 + col0 * - col0 FROM tab1 AS cor0
----
-4736
-7440
-87

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-752
SELECT - col1 * + col0 + + col1 DIV - col1 + col0 FROM tab2
----
-1265
-211
-4525

skipif mysql # not compatible
query I rowsort label-752
SELECT - col1 * + col0 + + col1 / - col1 + col0 FROM tab2
----
-1265
-211
-4525

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

query III rowsort
SELECT ALL * FROM tab0 WHERE col0 + col1 NOT IN ( tab0.col0 + col0 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

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

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

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

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

query I rowsort
SELECT ALL - col1 FROM tab0 WHERE NOT ( NULL ) IN ( col2 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-760
SELECT col2 * col0 * - col0 + tab2.col1 * tab2.col0 DIV - col1 AS col0 FROM tab2
----
-1330
-158262
-237237

skipif mysql # not compatible
query I rowsort label-760
SELECT col2 * col0 * - col0 + tab2.col1 * tab2.col0 / - col1 AS col0 FROM tab2
----
-1330
-158262
-237237

query I rowsort
SELECT ALL tab0.col1 * tab0.col1 AS col0 FROM tab0
----
7396
8281
9409

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-763
SELECT col2 + - col0 - col0 DIV col0 FROM tab1
----
-8
15
50

skipif mysql # not compatible
query I rowsort label-763
SELECT col2 + - col0 - col0 / col0 FROM tab1
----
-8
15
50

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

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

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

query I rowsort
SELECT DISTINCT col1 * col2 - - col0 * tab2.col2 FROM tab2
----
1026
3562
3648

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - col2 + + tab2.col1 col1 FROM tab2
----
-1427
-617
-698

query III rowsort
SELECT * FROM tab0 WHERE ( col1 ) IN ( col1 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

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

query I rowsort
SELECT + - col0 + col1 * + col1 * col0 FROM tab1 AS cor0
----
13440
2025
6336

query I rowsort
SELECT ALL col1 * - cor0.col0 + col2 * - col1 + - col1 FROM tab1 AS cor0
----
-1220
-1508
-2301

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 * - col1 IN ( + col2 * col1 )
----

query I rowsort
SELECT col1 * - col1 - + cor0.col2 FROM tab1 AS cor0
----
-157
-265
-730

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-777
SELECT col2 + - col1 DIV - col0 + - 13 DIV + col2 col2 FROM tab0 cor0
----
-10
36
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-777
SELECT col2 + - col1 / - col0 + - 13 / + col2 col2 FROM tab0 cor0
----
-10
36
83

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

query I rowsort
SELECT 52 * + col2 + col2 + col1 FROM tab0 cor0
----
150
1835
4437

query I rowsort
SELECT ALL - + 99 FROM tab2 AS cor0
----
-99
-99
-99

query I rowsort
SELECT ( col0 ) * + col1 + - ( - 48 ) * col0 AS col1 FROM tab0 AS cor0
----
12371
3216
5075

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

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

query I rowsort
SELECT ALL + ( col1 ) * + col1 * 81 FROM tab2 AS cor0
----
23409
281961
77841

query I rowsort
SELECT + col0 * + col1 * col2 + + col1 + 30 * - col0 * - cor0.col1 AS col0 FROM tab2 AS cor0
----
12400
257771
91341

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-786
SELECT + col2 * cor0.col1 * + col0 - CAST( col1 AS SIGNED ) FROM tab2 AS cor0
----
119593
51017
5828

skipif mysql # not compatible
query I rowsort label-786
SELECT + col2 * cor0.col1 * + col0 - CAST ( col1 AS INTEGER ) FROM tab2 AS cor0
----
119593
51017
5828

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

query I rowsort
SELECT + col2 * 2 * - col1 AS col1 FROM tab1
----
-1140
-2496
-2808

query I rowsort
SELECT + 83 * - col2 - cor0.col2 AS col1 FROM tab2 AS cor0
----
-2184
-2268
-3192

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT ALL CAST ( col2 AS REAL ) * + col2 col2 FROM tab2
----
1444
676
729

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

query I rowsort
SELECT col0 * col1 + 23 * col0 AS col1 FROM tab1
----
147
2112
2880

query I rowsort
SELECT col0 * 44 + + col2 * col1 AS col1 FROM tab2
----
1145
4122
4966

query I rowsort
SELECT tab2.col1 * 2 FROM tab2
----
118
34
62

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

skipif mysql # not compatible
query I rowsort label-795
SELECT DISTINCT + col0 / + 18 FROM tab0
----
1
4

onlyif mysql # use DIV operator for integer division
query I rowsort label-796
SELECT - col0 DIV + ( + col1 ) col1 FROM tab1
----
-6
-6
0

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + - 3 col2 FROM tab1
----
51
54
93

onlyif mysql # use DIV operator for integer division
query I rowsort label-798
SELECT ALL + tab2.col1 * - col2 * 14 + + col2 DIV + col0 AS col1 FROM tab2
----
-11715
-21476
-9044

skipif mysql # not compatible
query I rowsort label-798
SELECT ALL + tab2.col1 * - col2 * 14 + + col2 / + col0 AS col1 FROM tab2
----
-11715
-21476
-9044

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 67 col0 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to eea8a0738728ea55e4e7ba1506c9905a

query I rowsort
SELECT col0 * 58 * col0 FROM tab2
----
2842
352872
361978

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

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

query I rowsort
SELECT ALL ( - 84 ) AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 975e2ef2a3bf1ee2622362f4e435752f

query I rowsort
SELECT DISTINCT col0 * + cor0.col0 + col0 * col2 FROM tab0 AS cor0
----
1260
1368
15219

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

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

query I rowsort
SELECT ALL + ( cor0.col0 ) FROM tab0, tab0 AS cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63

query I rowsort
SELECT - cor0.col0 + 93 AS col0 FROM tab2 AS cor0
----
14
15
86

query I rowsort
SELECT + + cor0.col0 * - 98 + + col1 AS col0 FROM tab0 AS cor0
----
-2266
-3333
-8631

onlyif mysql # use DIV operator for integer division
query I rowsort label-808
SELECT ALL tab1.col2 + - 22 - col2 DIV col2 AS col0 FROM tab1
----
31
34
73

skipif mysql # not compatible
query I rowsort label-808
SELECT ALL tab1.col2 + - 22 - col2 / col2 AS col0 FROM tab1
----
31
34
73

query I rowsort
SELECT ALL col0 - - 61 AS col1 FROM tab0
----
150
85
96

query I rowsort
SELECT DISTINCT + - 92 - cor0.col2 * - col1 AS col2 FROM tab1 AS cor0
----
1156
1312
478

query I rowsort
SELECT ( 86 ) AS col2 FROM tab0, tab1 cor0, tab1 AS cor1
----
27 values hashing to ed1a39c2752ca3723602e4a92c54bbc4

query I rowsort
SELECT DISTINCT + 95 * + col1 AS col1 FROM tab2
----
1615
2945
5605

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

query I rowsort
SELECT ALL - 70 AS col0 FROM tab1, tab2 cor0
----
9 values hashing to 35707a5d99c98b2657c084a50ff1b073

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

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

query I rowsort
SELECT + - cor0.col0 + 25 AS col1 FROM tab1 AS cor0
----
-39
-55
22

query I rowsort
SELECT DISTINCT col0 + 51 FROM tab1 AS cor0
----
115
131
54

query I rowsort
SELECT + cor0.col0 * 50 FROM tab1 AS cor0
----
150
3200
4000

query I rowsort
SELECT 72 * col1 FROM tab2
----
1224
2232
4248

query I rowsort
SELECT - col0 + - col2 + 11 AS col0 FROM tab2
----
-106
-23
-93

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

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

query I rowsort
SELECT + 19 + + col2 FROM tab0
----
101
20
52

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + - tab0.col0 * - col0 col0 FROM tab0
----
1190
552
7832

query I rowsort
SELECT - - 62 + col0 * cor0.col2 AS col2 FROM tab0 AS cor0
----
7360
854
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + col1 * col0 col2 FROM tab0 cor0
----
2097
3396
8181

onlyif mysql # use DIV operator for integer division
query I rowsort label-828
SELECT - 55 DIV - col0 - + col1 AS col0 FROM tab2 AS cor0
----
-17
-24
-59

skipif mysql # not compatible
query I rowsort label-828
SELECT - 55 / - col0 - + col1 AS col0 FROM tab2 AS cor0
----
-17
-24
-59

query I rowsort
SELECT DISTINCT col2 + + col0 * - col2 + col0 * col0 AS col1 FROM tab2 AS cor0
----
-113
3277
4082

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

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

query I rowsort
SELECT + - cor0.col2 * ( - col2 ) + col2 * + ( + col2 ) AS col2 FROM tab0 AS cor0
----
13448
2
2178

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

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

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

query I rowsort
SELECT - - col0 * col0 * - col2 + - col1 * col0 FROM tab1 AS cor0
----
-234112
-564
-615440

onlyif mysql # use DIV operator for integer division
query I rowsort label-837
SELECT DISTINCT - cor0.col1 * + col1 + col1 DIV + col1 FROM tab0 cor0
----
-7395
-8280
-9408

skipif mysql # not compatible
query I rowsort label-837
SELECT DISTINCT - cor0.col1 * + col1 + col1 / + col1 FROM tab0 cor0
----
-7395
-8280
-9408

onlyif mysql # use DIV operator for integer division
query I rowsort label-838
SELECT ALL col0 - + cor0.col2 DIV + col1 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-838
SELECT ALL col0 - + cor0.col2 / + col1 col2 FROM tab0 AS cor0
----
24
35
89

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

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

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

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

query I rowsort
SELECT + - col1 + - 10 * + col2 FROM tab2 AS cor0
----
-301
-319
-397

onlyif mysql # use DIV operator for integer division
query I rowsort label-843
SELECT + CAST( - col1 AS SIGNED ) DIV + col2 FROM tab0 AS cor0
----
-1
-2
-97

skipif mysql # not compatible
query I rowsort label-843
SELECT + CAST ( - col1 AS INTEGER ) / + col2 FROM tab0 AS cor0
----
-1
-2
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 44 * + 36 + col0 col1 FROM tab2 AS cor0
----
-1505
-1506
-1577

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

skipif mysql # not compatible
query I rowsort label-845
SELECT DISTINCT + col0 + col2 / col0 FROM tab1 AS cor0
----
21
64
81

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-847
SELECT + 91 + ( col2 ) DIV cor0.col0 AS col2 FROM tab0 AS cor0
----
91
91
92

skipif mysql # not compatible
query I rowsort label-847
SELECT + 91 + ( col2 ) / cor0.col0 AS col2 FROM tab0 AS cor0
----
91
91
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 99 + - cor0.col1 col1 FROM tab2 AS cor0
----
40
68
82

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

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

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

query I rowsort
SELECT 76 - + cor0.col1 AS col2 FROM tab0 AS cor0
----
-10
-15
-21

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 11 * tab0.col1 col0 FROM tab0
----
1001
1067
946

query I rowsort
SELECT ALL + + 81 * + col0 + col1 AS col2 FROM tab2 AS cor0
----
598
6377
6416

query I rowsort
SELECT - col2 * cor0.col1 + + 98 * 57 AS col0 FROM tab1 AS cor0
----
4182
4338
5016

query I rowsort
SELECT DISTINCT 93 * + cor0.col2 FROM tab1 AS cor0
----
5022
5301
8928

query I rowsort
SELECT - 82 * + col2 * 85 + + col2 * + col0 FROM tab2 AS cor0
----
-179192
-188001
-261858

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

skipif mysql # not compatible
query I rowsort label-860
SELECT col2 * col1 - CAST ( + col2 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
1508
608
810

query I rowsort
SELECT + 78 + cor0.col0 FROM tab1 AS cor0
----
142
158
81

query I rowsort
SELECT 46 - col1 FROM tab2 AS cor0
----
-13
15
29

query I rowsort
SELECT + col2 * cor0.col1 - - 72 AS col0 FROM tab1 AS cor0
----
1320
1476
642

query I rowsort
SELECT ALL 36 + - col2 * + ( col1 ) FROM tab2 cor0
----
-1498
-610
-801

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 47 * col2 col1 FROM tab1 cor0
----
-2538
-2679
-4512

query I rowsort
SELECT + - ( col1 ) - 10 AS col0 FROM tab2 AS cor0
----
-27
-41
-69

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

skipif mysql # not compatible
query I rowsort label-867
SELECT DISTINCT - - 2 / - col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT + 21 - col1 AS col2 FROM tab1
----
-5
11
8

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

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

query I rowsort
SELECT col1 + cor0.col1 * - 56 AS col2 FROM tab2 AS cor0
----
-1705
-3245
-935

query I rowsort
SELECT DISTINCT - 14 - + cor0.col0 FROM tab1 AS cor0
----
-17
-78
-94

query I rowsort
SELECT + 12 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d4f5a8e032294c3b9342821617800972

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab0 AS cor2, tab2 AS cor3
----
3645 values hashing to fcae6e4467f798ac88c869b8e38c6b23

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

query I rowsort
SELECT ALL 72 FROM tab2, tab0 AS cor0, tab1 cor1, tab2 AS cor2
----
81 values hashing to e1618abfe12be6a950cc575d695639b7

query I rowsort
SELECT ALL + - col2 * 80 + - col2 FROM tab0 AS cor0
----
-2673
-6642
-81

onlyif mysql # use DIV operator for integer division
query I rowsort label-878
SELECT DISTINCT CAST( - col0 AS SIGNED ) DIV - col1 + 22 + cor0.col2 DIV col1 AS col2 FROM tab0 cor0
----
22

skipif mysql # not compatible
query I rowsort label-878
SELECT DISTINCT CAST ( - col0 AS INTEGER ) / - col1 + 22 + cor0.col2 / col1 AS col2 FROM tab0 cor0
----
22

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

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

query I rowsort
SELECT + col1 + 12 AS col2 FROM tab1
----
22
25
38

query I rowsort
SELECT tab0.col0 + - col2 * - tab0.col0 * col0 AS col1 FROM tab0
----
1260
19032
649611

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

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

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

query I rowsort
SELECT DISTINCT - + ( + col0 ) * - col1 + + 91 AS col0 FROM tab0 cor0
----
2155
3486
8190

query I rowsort
SELECT ALL - - cor0.col0 + - 61 AS col0 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 691b41b8db2e2de35ff9c86b5c27ec25

query I rowsort
SELECT DISTINCT - cor0.col0 - - col2 FROM tab0 AS cor0
----
-34
-7
9

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

query I rowsort
SELECT - 98 * 58 AS col0 FROM tab1 AS cor0
----
-5684
-5684
-5684

query I rowsort
SELECT ALL 95 AS col1 FROM tab0, tab0 AS cor0, tab0 AS cor1, tab1 AS cor2
----
81 values hashing to 9896fbc7c98abe84cb585e6f5f25b58a

query I rowsort
SELECT ALL - - 39 + ( col2 * + cor0.col0 ) AS col2 FROM tab2 AS cor0
----
2067
228
3041

query I rowsort
SELECT ALL - - ( - 53 ) * - col0 * + col2 + - col1 * col0 FROM tab0 AS cor0
----
-1540
378695
39912

query I rowsort
SELECT ALL + ( - col0 ) + - col2 * + col0 * cor0.col0 AS col0 FROM tab1 cor0
----
-233536
-489
-614480

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

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

query I rowsort
SELECT DISTINCT cor1.col2 FROM tab1 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab1 AS cor2, tab2 AS cor3
----
26
27
38

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

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

query I rowsort
SELECT + cor0.col0 * 86 FROM tab2 AS cor0
----
602
6708
6794

query I rowsort
SELECT tab0.col0 * ( - col0 + col2 ) AS col1 FROM tab0
----
-1190
-623
216

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 92 col1 FROM tab0 cor0 CROSS JOIN tab1, tab1 AS cor1, tab1 AS cor2
----
81 values hashing to cfcf012ce1a8dd60a7428b4ef6b95843

query I rowsort
SELECT - + col0 + + col1 * ( + col1 ) AS col0 FROM tab2 AS cor0
----
210
3403
954

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 + col2 * 96 * 81 col1 FROM tab2 AS cor0
----
202150
209925
295450

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

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

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

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

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

query I rowsort
SELECT 58 AS col2 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 9ee363c6ac19cfdb8a50c7dfd5cc2b8a

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

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

query I rowsort
SELECT + 64 AS col1 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 60ab040e931c5c85db7ba19364eacc8e

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

skipif mysql # not compatible
query I rowsort label-911
SELECT - + col0 + CAST ( + col2 AS INTEGER ) FROM tab1 AS cor0
----
-7
16
51

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

query I rowsort
SELECT - 34 + + 78 AS col0 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 0cc3e52e781e46962291c3060c6ae73b

query I rowsort
SELECT ALL 52 * + col2 FROM tab2
----
1352
1404
1976

query I rowsort
SELECT - col1 + col1 * + ( - 68 ) FROM tab1 AS cor0
----
-1794
-690
-897

query I rowsort
SELECT + 97 + + col0 AS col0 FROM tab1 AS cor0
----
100
161
177

query I rowsort
SELECT - col2 * - col1 * 63 FROM tab0 cor0
----
178794
470106
6111

query I rowsort
SELECT - col2 * - cor0.col0 * col0 + + col1 FROM tab1 AS cor0
----
233482
512
614413

query I rowsort
SELECT col1 * + col2 + + 33 AS col2 FROM tab0 AS cor0
----
130
2871
7495

query I rowsort
SELECT ALL + + 6 * cor0.col0 AS col2 FROM tab1 AS cor0
----
18
384
480

query I rowsort
SELECT - tab1.col1 * - col2 - col1 FROM tab1
----
1235
1378
560

query I rowsort
SELECT ALL - col2 * 97 AS col0 FROM tab2 AS cor0
----
-2522
-2619
-3686

query I rowsort
SELECT - cor0.col0 FROM tab1 cor0 CROSS JOIN tab0, tab2 AS cor1
----
27 values hashing to 729c1edda9332398299f39cd174ed840

query I rowsort
SELECT - + 68 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5febf382d36d6e0191889c41b928786f

query I rowsort
SELECT - col0 * - 23 + - 26 + tab1.col0 * 33 AS col0 FROM tab1
----
142
3558
4454

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-927
SELECT DISTINCT + 5 DIV - col1 + + col1 * col0 * + col0 + col2 FROM tab0
----
118826
49569
720893

skipif mysql # not compatible
query I rowsort label-927
SELECT DISTINCT + 5 / - col1 + + col1 * col0 * + col0 + col2 FROM tab0
----
118826
49569
720893

onlyif mysql # use DIV operator for integer division
query I rowsort label-928
SELECT + col0 + + 48 DIV col2 FROM tab1
----
3
64
80

skipif mysql # not compatible
query I rowsort label-928
SELECT + col0 + + 48 / col2 FROM tab1
----
3
64
80

query I rowsort
SELECT DISTINCT + ( + col1 * col2 ) + - col1 + + 60 FROM tab1
----
1295
1438
620

query I rowsort
SELECT DISTINCT 15 + col0 FROM tab1
----
18
79
95

onlyif mysql # use DIV operator for integer division
query I rowsort label-931
SELECT col0 DIV - 80 AS col0 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-931
SELECT col0 / - 80 AS col0 FROM tab0
----
-1
0
0

query I rowsort
SELECT tab0.col0 + 2 + - col2 * + col2 AS col2 FROM tab0
----
-1063
-6633
36

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

query I rowsort
SELECT ( 71 ) FROM tab0 AS cor0
----
71
71
71

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

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-937
SELECT DISTINCT CAST( 49 AS SIGNED ) * cor0.col1 + + cor0.col2 AS col1 FROM tab2 AS cor0
----
1546
2917
871

skipif mysql # not compatible
query I rowsort label-937
SELECT DISTINCT CAST ( 49 AS INTEGER ) * cor0.col1 + + cor0.col2 AS col1 FROM tab2 AS cor0
----
1546
2917
871

query I rowsort
SELECT DISTINCT - 68 + + col1 AS col1 FROM tab1 AS cor0
----
-42
-55
-58

query I rowsort
SELECT col0 - tab0.col0 * + col0 * - col0 FROM tab0
----
13848
42910
705058

query I rowsort
SELECT 20 * - col0 + - col0 * 81 AS col1 FROM tab1
----
-303
-6464
-8080

query I rowsort
SELECT - 67 AS col2 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 95c9eba643f6489e03be4d5e83f1ef99

query I rowsort
SELECT DISTINCT - col1 + + 16 FROM tab2 AS cor0
----
-1
-15
-43

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

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

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

query I rowsort
SELECT ALL + col0 + + 4 FROM tab1 AS cor0
----
68
7
84

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

query I rowsort
SELECT - 10 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1, tab0 cor1, tab2 AS cor2
----
81 values hashing to d02dd3860bad8257b8dc483efe370af0

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

query I rowsort
SELECT DISTINCT + - col0 + col2 * 9 AS col2 FROM tab1 cor0
----
449
483
784

query I rowsort
SELECT ALL - col2 * col1 * col1 + + col1 AS col2 FROM tab2 AS cor0
----
-10965
-25916
-90447

query I rowsort
SELECT ALL - col1 + 58 AS col1 FROM tab0 cor0
----
-28
-33
-39

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

query I rowsort
SELECT col1 * + 20 AS col1 FROM tab1 AS cor0
----
200
260
520

query I rowsort
SELECT ALL - - col1 + - 90 AS col1 FROM tab1 AS cor0
----
-64
-77
-80

query I rowsort
SELECT ALL - col0 * - 81 FROM tab0
----
1944
2835
7209

skipif mysql # not compatible
query I rowsort
SELECT + - CAST ( col2 AS REAL ) * - col0 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT - + col2 + - col0 + - 35 FROM tab1 AS cor0
----
-156
-211
-92

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

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

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

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

query I rowsort
SELECT ALL + ( col2 ) * 4 FROM tab0 AS cor0
----
132
328
4

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

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

query I rowsort
SELECT + 90 + + col2 FROM tab2 AS cor0
----
116
117
128

onlyif mysql # use DIV operator for integer division
query I rowsort label-964
SELECT ALL + tab2.col2 DIV - 44 + tab2.col0 * + col0 FROM tab2
----
49
6084
6241

skipif mysql # not compatible
query I rowsort label-964
SELECT ALL + tab2.col2 / - 44 + tab2.col0 * + col0 FROM tab2
----
49
6084
6241

query I rowsort
SELECT col0 + - 41 FROM tab0
----
-17
-6
48

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

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

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

query I rowsort
SELECT ALL 23 * - col1 FROM tab0
----
-1978
-2093
-2231

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 * 9 col0 FROM tab0 AS cor0
----
297
738
9

query I rowsort
SELECT + 2 * cor0.col2 + col1 * cor0.col0 AS col1 FROM tab0 cor0
----
2130
3397
8263

query I rowsort
SELECT + - cor0.col2 * + col1 + + ( - col2 ) AS col1 FROM tab2 cor0
----
-1560
-684
-864

query I rowsort
SELECT DISTINCT tab2.col2 + - 12 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
14
15
26

query I rowsort
SELECT - ( col2 ) * col2 + + ( col0 ) FROM tab0 cor0
----
-1065
-6635
34

query I rowsort
SELECT 20 + + cor1.col0 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 15131b2f8a8fbb3498fea021d1cfc917

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-977
SELECT - col0 + - cor0.col2 * col1 + col1 DIV + col2 FROM tab1 AS cor0
----
-1328
-1407
-634

skipif mysql # not compatible
query I rowsort label-977
SELECT - col0 + - cor0.col2 * col1 + col1 / + col2 FROM tab1 AS cor0
----
-1328
-1407
-634

query I rowsort
SELECT - col0 * col2 + 91 AS col2 FROM tab0 AS cor0
----
-701
-7207
56

onlyif mysql # use DIV operator for integer division
query I rowsort label-979
SELECT - - col0 DIV 18 col1 FROM tab1 AS cor0
----
0
3
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-979
SELECT - - col0 / 18 col1 FROM tab1 AS cor0
----
0
3
4

query I rowsort
SELECT - col1 * + ( col2 ) + col2 FROM tab1 AS cor0
----
-1152
-1350
-513

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-982
SELECT DISTINCT + - col2 DIV + 98 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-982
SELECT DISTINCT + - col2 / + 98 FROM tab2 AS cor0
----
0

query I rowsort
SELECT + - 63 + - 19 FROM tab2 AS cor0
----
-82
-82
-82

query I rowsort
SELECT ALL + 50 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52

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

query I rowsort
SELECT DISTINCT + - 1 * - col2 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT - 38 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to e571541ae40cb0ddaca16e11f4359507

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

query I rowsort
SELECT + col2 * col0 + - col0 * - cor0.col2 FROM tab0 AS cor0
----
14596
1584
70

query I rowsort
SELECT col1 * 52 * + col1 + 3 * + 81 AS col2 FROM tab0 AS cor0
----
384835
430855
489511

query I rowsort
SELECT - ( 43 * + col2 ) + + ( - ( - col2 ) ) FROM tab2
----
-1092
-1134
-1596

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

query I rowsort
SELECT ALL + col2 * - cor0.col2 + col0 * col1 * + col0 FROM tab1 AS cor0
----
-2682
37711
73984

query I rowsort
SELECT - 96 + cor0.col0 + - col1 AS col0 FROM tab0 AS cor0
----
-158
-158
-98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 + + 6 col0 FROM tab1 AS cor0
----
70
86
9

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

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

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

query I rowsort
SELECT DISTINCT ( col2 ) * col1 - - col0 AS col0 FROM tab1 cor0
----
1328
1407
634

query I rowsort
SELECT ALL + ( - col2 ) + + col0 + col0 AS col2 FROM tab0
----
15
69
96

query I rowsort
SELECT ALL cor0.col2 * + cor2.col2 AS col2 FROM tab2, tab1 AS cor0, tab0 AS cor1, tab0 AS cor2
----
81 values hashing to a5a072eaeb343669cc6721dc2f717cb2

query I rowsort
SELECT col0 * - 83 FROM tab0 AS cor0
----
-1992
-2905
-7387

query I rowsort
SELECT DISTINCT - col0 + + 38 FROM tab2 cor0
----
-40
-41
31

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

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

query I rowsort
SELECT ALL - 16 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to be22ac76b42c6f7212ecc0ba7c89eb34

query I rowsort
SELECT - col1 * 95 FROM tab0
----
-8170
-8645
-9215

query I rowsort
SELECT - col1 * 24 * + col2 FROM tab1
----
-13680
-29952
-33696

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1010
SELECT ALL CAST( 15 AS SIGNED ) DIV cor0.col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 6ae7945a184e82d218ccc018b60d47f0

skipif mysql # not compatible
query I rowsort label-1010
SELECT ALL CAST ( 15 AS INTEGER ) / cor0.col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 6ae7945a184e82d218ccc018b60d47f0

query I rowsort
SELECT ALL tab0.col1 - col1 * - ( col0 ) FROM tab0
----
2150
3492
8190

query I rowsort
SELECT cor0.col1 + - 58 * 71 FROM tab0 AS cor0
----
-4021
-4027
-4032

query I rowsort
SELECT ALL col2 * + col1 - + col0 * col0 AS col2 FROM tab0
----
-1128
-459
2262

query I rowsort
SELECT ALL + col0 * 71 - + col0 * col1 AS col2 FROM tab2
----
280
4266
936

query I rowsort
SELECT ALL - 68 * col2 AS col1 FROM tab1 AS cor0
----
-3672
-3876
-6528

query I rowsort
SELECT ALL - + ( + col1 ) * - col0 + + 48 * col2 AS col2 FROM tab0 AS cor0
----
12035
3443
3648

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

query I rowsort
SELECT DISTINCT - col0 * + col0 + - 47 - 50 FROM tab0 cor0
----
-1322
-673
-8018

skipif mysql # not compatible
query I rowsort
SELECT ALL - 66 + col2 + + CAST ( 64 AS REAL ) FROM tab0 AS cor0
----
-1
31
80

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

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

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

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

query I rowsort
SELECT ALL + - col2 + 55 FROM tab2 AS cor0
----
17
28
29

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

query I rowsort
SELECT + 21 * 56 AS col1 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 8f03ec2f2e69abec34e468bb40f90611

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

query I rowsort
SELECT ALL 96 * - col2 FROM tab0
----
-3168
-7872
-96

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - CAST ( ( - col2 ) AS REAL ) + - 26 FROM tab1 AS cor0
----
28
31
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + + 27 col1 FROM tab1 AS cor0
----
123
81
84

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1030
SELECT ALL + CAST( + col1 AS SIGNED ) * col0 + + 38 AS col2 FROM tab2 AS cor0
----
1381
255
4640

skipif mysql # not compatible
query I rowsort label-1030
SELECT ALL + CAST ( + col1 AS INTEGER ) * col0 + + 38 AS col2 FROM tab2 AS cor0
----
1381
255
4640

query I rowsort
SELECT + - col0 * + 78 AS col0 FROM tab0 AS cor0
----
-1872
-2730
-6942

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1036
SELECT - col0 * 17 * + col1 + + col0 + CAST ( col2 AS INTEGER ) FROM tab0
----
-137512
-35031
-57679

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

query I rowsort
SELECT + col2 * - col2 + + col0 * col2 FROM tab1 AS cor0
----
-1536
-2754
399

query I rowsort
SELECT ALL - + col2 - col2 * + cor0.col1 * + ( - col0 * - col0 ) FROM tab1 AS cor0
----
-12690
-2334777
-7987296

query I rowsort
SELECT DISTINCT 45 * + cor0.col0 AS col2 FROM tab1 AS cor0
----
135
2880
3600

query I rowsort
SELECT DISTINCT + ( - col0 ) * cor0.col2 + col1 + + col2 * + col2 FROM tab2 AS cor0
----
-1293
-1541
571

query I rowsort
SELECT ALL + + col0 + 4 + col0 AS col2 FROM tab2 cor0
----
160
162
18

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

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

query I rowsort
SELECT col0 + col2 * col0 * - col1 AS col0 FROM tab1 AS cor0
----
-36416
-4209
-99760

query I rowsort
SELECT DISTINCT - - ( cor0.col1 ) * col2 * - 12 + + col0 FROM tab2 AS cor0
----
-10037
-18330
-7673

query I rowsort
SELECT col1 * + 23 + col1 AS col0 FROM tab2
----
1416
408
744

skipif mysql # not compatible
query I rowsort
SELECT CAST ( col0 AS REAL ) * col2 * 62 + col1 AS col0 FROM tab1
----
10070
226186
476173

query I rowsort
SELECT - ( - col2 ) * - col2 - - col1 FROM tab1
----
-2890
-3239
-9203

query I rowsort
SELECT DISTINCT + 52 * col2 FROM tab0
----
1716
4264
52

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

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

query I rowsort
SELECT + 55 * col0 + tab2.col1 AS col2 FROM tab2
----
416
4349
4362

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - 3 ) + col0 * - col1 col1 FROM tab1 AS cor0
----
-1037
-637
-75

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

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

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

skipif mysql # not compatible
query I rowsort label-1055
SELECT ALL 95 + + cor0.col2 - CAST ( col2 AS INTEGER ) FROM tab1 cor0
----
95
95
95

query I rowsort
SELECT DISTINCT - col1 * col1 + 6 FROM tab2 AS cor0
----
-283
-3475
-955

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1057
SELECT + col2 * - col2 * CAST ( col0 AS INTEGER ) col2 FROM tab1 AS cor0
----
-207936
-737280
-8748

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

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

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

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

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

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1065
SELECT ALL + col0 DIV 66 AS col0 FROM tab2 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-1065
SELECT ALL + col0 / 66 AS col0 FROM tab2 AS cor0
----
0
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * + col1 col0 FROM tab2 cor0
----
289
3481
961

query I rowsort
SELECT col1 - 34 AS col0 FROM tab0 AS cor0
----
52
57
63

onlyif mysql # use DIV operator for integer division
query I rowsort label-1068
SELECT ALL - - col0 + col2 DIV + 64 AS col0 FROM tab0 AS cor0
----
24
35
90

skipif mysql # not compatible
query I rowsort label-1068
SELECT ALL - - col0 + col2 / + 64 AS col0 FROM tab0 AS cor0
----
24
35
90

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

query I rowsort
SELECT - col0 + + 4 AS col0 FROM tab0 cor0
----
-20
-31
-85

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

query I rowsort
SELECT ALL + col1 * - col1 * + col1 FROM tab0 AS cor0
----
-636056
-753571
-912673

query I rowsort
SELECT DISTINCT col0 + + 88 + col0 AS col1 FROM tab2
----
102
244
246

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

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

query I rowsort
SELECT + col2 * 57 AS col0 FROM tab2 AS cor0
----
1482
1539
2166

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1077
SELECT - col0 + ( - col1 ) DIV cor0.col1 FROM tab1 cor0
----
-4
-65
-81

skipif mysql # not compatible
query I rowsort label-1077
SELECT - col0 + ( - col1 ) / cor0.col1 FROM tab1 cor0
----
-4
-65
-81

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

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

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

query I rowsort
SELECT + 62 * cor0.col2 + 50 FROM tab2, tab1 AS cor0
----
9 values hashing to 99e1213344df384fd8d1ea1c506280b5

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1082
SELECT col2 - 15 DIV col1 FROM tab1 AS cor0
----
54
56
95

skipif mysql # not compatible
query I rowsort label-1082
SELECT col2 - 15 / col1 FROM tab1 AS cor0
----
54
56
95

query I rowsort
SELECT ALL - + col1 * 36 AS col2 FROM tab1 AS cor0
----
-360
-468
-936

query I rowsort
SELECT - 67 + col1 * col0 FROM tab1 AS cor0
----
11
573
973

onlyif mysql # use DIV operator for integer division
query I rowsort label-1085
SELECT DISTINCT - 97 * - col2 + - 39 DIV col0 + + col2 FROM tab0 AS cor0
----
3233
8036
97

skipif mysql # not compatible
query I rowsort label-1085
SELECT DISTINCT - 97 * - col2 + - 39 / col0 + + col2 FROM tab0 AS cor0
----
3233
8036
97

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1087
SELECT + col0 * + col1 + - CAST( - col1 AS SIGNED ) + col1 * ( col0 ) FROM tab2
----
2703
465
9263

skipif mysql # not compatible
query I rowsort label-1087
SELECT + col0 * + col1 + - CAST ( - col1 AS INTEGER ) + col1 * ( col0 ) FROM tab2
----
2703
465
9263

query I rowsort
SELECT - 13 * col2 + col2 FROM tab2 cor0
----
-312
-324
-456

query I rowsort
SELECT 89 + col0 AS col2 FROM tab2 AS cor0
----
167
168
96

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

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

query I rowsort
SELECT 6 + col0 * col0 AS col0 FROM tab2 cor0
----
55
6090
6247

query I rowsort
SELECT - col0 * - col0 + + 76 FROM tab1 cor0
----
4172
6476
85

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

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

query I rowsort
SELECT ALL + ( - col1 ) * 49 FROM tab1
----
-1274
-490
-637

query I rowsort
SELECT ALL ( + 57 * col1 ) FROM tab0
----
4902
5187
5529

query I rowsort
SELECT - tab1.col0 + - col2 * + col2 AS col1 FROM tab1
----
-2919
-3313
-9296

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

query I rowsort
SELECT ALL + + cor0.col1 + 27 AS col1 FROM tab0 AS cor0
----
113
118
124

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1101
SELECT + + ( - 47 ) DIV + col0 FROM tab2 AS cor0
----
-6
0
0

skipif mysql # not compatible
query I rowsort label-1101
SELECT + + ( - 47 ) / + col0 FROM tab2 AS cor0
----
-6
0
0

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

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

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

query I rowsort
SELECT + 6 + col2 * col0 - + col0 * col0 FROM tab0 AS cor0
----
-1184
-617
222

onlyif mysql # use DIV operator for integer division
query I rowsort label-1105
SELECT ALL 97 - col1 DIV col0 FROM tab0 AS cor0
----
94
95
96

skipif mysql # not compatible
query I rowsort label-1105
SELECT ALL 97 - col1 / col0 FROM tab0 AS cor0
----
94
95
96

query I rowsort
SELECT DISTINCT 41 FROM tab1, tab2 cor0
----
41

query I rowsort
SELECT + ( + 44 + + col2 ) AS col1 FROM tab0
----
126
45
77

query I rowsort
SELECT DISTINCT col0 * 54 * col1 FROM tab1
----
34560
4212
56160

query I rowsort
SELECT DISTINCT + 50 FROM tab1 cor0
----
50

query I rowsort
SELECT + ( - 68 ) * col0 + + col1 * col0 + - col0 * - col2 FROM tab2 AS cor0
----
-1027
-70
1326

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

query I rowsort
SELECT DISTINCT + ( - 68 ) * col1 FROM tab2 AS cor0
----
-1156
-2108
-4012

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

query I rowsort
SELECT + - col1 + + 12 * + col0 + col0 FROM tab1 AS cor0
----
1027
13
822

query I rowsort
SELECT ALL + 9 + col2 AS col0 FROM tab1 AS cor0
----
105
63
66

query I rowsort
SELECT DISTINCT - 9 * col2 FROM tab1 AS cor0
----
-486
-513
-864

query I rowsort
SELECT DISTINCT + ( col1 ) * col0 + 62 AS col1 FROM tab2 AS cor0
----
1405
279
4664

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1119
SELECT DISTINCT - 73 * col2 * ( 59 * col0 ) + col0 DIV + cor0.col1 + + col0 AS col0 FROM tab1 AS cor0
----
-15711866
-33077674
-697731

skipif mysql # not compatible
query I rowsort label-1119
SELECT DISTINCT - 73 * col2 * ( 59 * col0 ) + col0 / + cor0.col1 + + col0 AS col0 FROM tab1 AS cor0
----
-15711866
-33077674
-697731

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

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

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

query I rowsort
SELECT - 76 + + col2 AS col0 FROM tab2 AS cor0
----
-38
-49
-50

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

query I rowsort
SELECT ALL ( - col0 ) + + 12 * - col1 * - col0 FROM tab1 AS cor0
----
12400
7616
933

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

query I rowsort
SELECT DISTINCT col0 * - col2 * col1 - - ( - col2 ) FROM tab0 AS cor0
----
-3396
-664200
-68145

query I rowsort
SELECT DISTINCT - col0 * 84 * + col1 FROM tab1 cor0
----
-53760
-6552
-87360

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT col0 * - CAST ( col0 * + col1 AS REAL ) col1 FROM tab1 AS cor0
----
-234
-40960
-83200

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

query I rowsort
SELECT + col2 + + 12 * + col0 FROM tab1 AS cor0
----
1056
825
90

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

query I rowsort
SELECT DISTINCT col2 + col0 * - 82 AS col1 FROM tab2
----
-547
-6370
-6440

query I rowsort
SELECT DISTINCT 42 * col2 AS col0 FROM tab2 AS cor0
----
1092
1134
1596

query I rowsort
SELECT + 30 * + col1 + cor0.col1 * ( + col0 ) * - col2 FROM tab1 AS cor0
----
-3432
-36180
-99450

query I rowsort
SELECT - cor0.col1 * 68 FROM tab1 AS cor0
----
-1768
-680
-884

onlyif mysql # use DIV operator for integer division
query I rowsort label-1137
SELECT - col2 * + 3 - 58 DIV - col2 AS col0 FROM tab0
----
-246
-98
55

skipif mysql # not compatible
query I rowsort label-1137
SELECT - col2 * + 3 - 58 / - col2 AS col0 FROM tab0
----
-246
-98
55

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

query I rowsort
SELECT DISTINCT - cor1.col1 - cor0.col2 * 90 AS col0 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
9 values hashing to 43abcf312649cc82a928548a05537e8e

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

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

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

query I rowsort
SELECT ALL + 42 FROM tab2, tab1 AS cor0
----
9 values hashing to 64c29db9f1cd7ed4ddeb1735e3e0d442

onlyif mysql # use DIV operator for integer division
query I rowsort label-1144
SELECT + col1 * 19 DIV - col0 + col0 + - col1 col1 FROM tab0 AS cor0
----
-114
-130
-21

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1144
SELECT + col1 * 19 / - col0 + col0 + - col1 col1 FROM tab0 AS cor0
----
-114
-130
-21

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0 cor0 CROSS JOIN tab0, tab2 AS cor1, tab0 AS cor2
----
972 values hashing to 380241bbc503a31e70494611a87ffd99

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

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

query I rowsort
SELECT DISTINCT + 97 * col0 FROM tab2
----
679
7566
7663

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1149
SELECT ALL - CAST ( NULL AS REAL ) * col0 col0 FROM tab0
----
NULL
NULL
NULL

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

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

query IIIIII rowsort
SELECT * FROM tab2, tab0 cor0 WHERE NULL <= NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-1153
SELECT 30 DIV col0 + col2 FROM tab1 AS cor0
----
57
64
96

skipif mysql # not compatible
query I rowsort label-1153
SELECT 30 / col0 + col2 FROM tab1 AS cor0
----
57
64
96

query I rowsort
SELECT DISTINCT 39 + - 37 AS col0 FROM tab0 AS cor0
----
2

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

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

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

query I rowsort
SELECT ALL + - col0 + + 71 AS col1 FROM tab0 AS cor0
----
-18
36
47

query I rowsort
SELECT ALL + col2 + col0 * + 52 AS col2 FROM tab1
----
210
3385
4256

query I rowsort
SELECT + cor0.col2 * ( 82 ) - col2 FROM tab2 cor0
----
2106
2187
3078

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1161
SELECT col0 * + CAST( 12 AS SIGNED ) FROM tab2 AS cor0
----
84
936
948

skipif mysql # not compatible
query I rowsort label-1161
SELECT col0 * + CAST ( 12 AS INTEGER ) FROM tab2 AS cor0
----
84
936
948

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

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

query I rowsort
SELECT + col0 * - 41 AS col1 FROM tab0 AS cor0
----
-1435
-3649
-984

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

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

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

query I rowsort
SELECT DISTINCT + col0 + ( 52 * + cor0.col2 ) FROM tab0 cor0
----
1740
4353
87

onlyif mysql # use DIV operator for integer division
query I rowsort label-1168
SELECT ALL + tab0.col0 - tab0.col0 DIV col0 AS col1 FROM tab0
----
23
34
88

skipif mysql # not compatible
query I rowsort label-1168
SELECT ALL + tab0.col0 - tab0.col0 / col0 AS col1 FROM tab0
----
23
34
88

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

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

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

skipif mysql # not compatible
query I rowsort label-1170
SELECT 20 / col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - 65 * col0 AS col2 FROM tab2 AS cor0
----
-455
-5070
-5135

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

skipif mysql # not compatible
query I rowsort label-1172
SELECT - cor0.col1 * col1 / + ( - col0 * col2 ) - ( col1 ) AS col0 FROM tab1 AS cor0
----
-10
-13
-22

query I rowsort
SELECT col1 * 73 FROM tab2 cor0
----
1241
2263
4307

onlyif mysql # use DIV operator for integer division
query I rowsort label-1174
SELECT DISTINCT cor0.col1 DIV ( col1 ) FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-1174
SELECT DISTINCT cor0.col1 / ( col1 ) FROM tab2 AS cor0
----
1

query I rowsort
SELECT DISTINCT + + cor0.col2 + + 55 AS col2 FROM tab0 cor0
----
137
56
88

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

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

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

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

query I rowsort
SELECT 27 * tab2.col1 * + col0 AS col2 FROM tab2
----
124254
36261
5859

query I rowsort
SELECT DISTINCT cor0.col1 * col1 - - col1 * - col1 AS col2 FROM tab2 AS cor0
----
0

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

query I rowsort
SELECT DISTINCT 24 * col0 AS col1 FROM tab1
----
1536
1920
72

query I rowsort
SELECT - 72 * - col0 AS col0 FROM tab1
----
216
4608
5760

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

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

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

query I rowsort
SELECT ALL tab1.col1 - col2 * - tab1.col1 FROM tab1
----
1261
1430
580

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 - + col1 * col2 col1 FROM tab0
----
-2871
-7544
-98

query I rowsort
SELECT col2 * + tab0.col2 AS col1 FROM tab0 WHERE NULL BETWEEN NULL AND NULL
----

query I rowsort
SELECT + tab2.col2 + + col2 FROM tab2 WHERE col2 < ( NULL )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-1192
SELECT DISTINCT + tab2.col0 * col2 + - col0 DIV + col1 FROM tab2
----
189
2027
2998

skipif mysql # not compatible
query I rowsort label-1192
SELECT DISTINCT + tab2.col0 * col2 + - col0 / + col1 FROM tab2
----
189
2027
2998

query I rowsort
SELECT ALL - col1 * + col2 - - col2 * col2 AS col0 FROM tab1
----
1512
2679
7968

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

query I rowsort
SELECT col1 + col0 * + tab0.col0 * tab0.col2 FROM tab0
----
1322
19094
649613

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab2.col0 col0 FROM tab2 WHERE + col0 * + col0 IN ( col1 / col1 )
----

query I rowsort
SELECT ALL + col2 * + col1 * + col0 - col2 AS col0 FROM tab1
----
36423
4158
99744

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

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

query I rowsort
SELECT col1 * col1 * - col1 FROM tab0 WHERE NOT col0 IN ( col1 + - col1 )
----
-636056
-753571
-912673

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

query I rowsort
SELECT col0 + + col2 * - col2 * col2 FROM tab0
----
-35913
-551279
34

query I rowsort
SELECT ALL + 68 * col2 AS col1 FROM tab1 AS cor0
----
3672
3876
6528

query I rowsort
SELECT DISTINCT + 68 * - col2 FROM tab1 AS cor0
----
-3672
-3876
-6528

query I rowsort
SELECT ALL + 72 + + col0 * ( 85 ) AS col2 FROM tab0 AS cor0
----
2112
3047
7637

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 + + col2 - col2 col1 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT - ( col0 ) + + col0 * - 52 AS col1 FROM tab1
----
-159
-3392
-4240

query I rowsort
SELECT + 45 - col1 AS col2 FROM tab1
----
19
32
35

query I rowsort
SELECT - ( + 45 ) * col2 + - col0 * - tab1.col0 * col0 FROM tab1
----
-2403
259579
507680

onlyif mysql # use DIV operator for integer division
query I rowsort label-1210
SELECT + col1 + col1 - col2 * col1 DIV - tab0.col2 AS col1 FROM tab0
----
258
273
291

skipif mysql # not compatible
query I rowsort label-1210
SELECT + col1 + col1 - col2 * col1 / - tab0.col2 AS col1 FROM tab0
----
258
273
291

query I rowsort
SELECT ALL + 20 AS col0 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 0a35fe98f3e7d5fc8ff2ae815bd20ef4

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

skipif mysql # not compatible
query I rowsort
SELECT ALL tab1.col2 - col1 * - CAST ( col2 * - col1 AS REAL ) AS col2 FROM tab1
----
-16128
-36450
-5643

query I rowsort
SELECT col0 + tab2.col2 - - ( 67 ) AS col1 FROM tab2
----
101
171
184

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 12 * col2 col2 FROM tab1 AS cor0
----
1152
648
684

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1218
SELECT col1 * cor0.col0 / - col2 col0 FROM tab0 AS cor0
----
-3395
-62
-98

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1220
SELECT DISTINCT col1 + - CAST ( - col1 AS INTEGER ) col0 FROM tab2
----
118
34
62

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1222
SELECT CAST( col1 AS SIGNED ) - col2 DIV 80 AS col0 FROM tab1
----
10
12
26

skipif mysql # not compatible
query I rowsort label-1222
SELECT CAST ( col1 AS INTEGER ) - col2 / 80 AS col0 FROM tab1
----
10
12
26

onlyif mysql # use DIV operator for integer division
query I rowsort label-1223
SELECT DISTINCT + + ( 32 ) DIV col1 + ( - col1 ) + + cor0.col2 DIV col0 FROM tab1 AS cor0
----
-10
-7

skipif mysql # not compatible
query I rowsort label-1223
SELECT DISTINCT + + ( 32 ) / col1 + ( - col1 ) + + cor0.col2 / col0 FROM tab1 AS cor0
----
-10
-7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1224
SELECT ALL - 25 * + col2 - col2 * - CAST( - 13 + col1 AS SIGNED ) * col0 FROM tab0 cor0
----
2915
567194
56991

skipif mysql # not compatible
query I rowsort label-1224
SELECT ALL - 25 * + col2 - col2 * - CAST ( - 13 + col1 AS INTEGER ) * col0 FROM tab0 cor0
----
2915
567194
56991

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + col2 * col2 col1 FROM tab2 AS cor0
----
1523
736
754

query I rowsort
SELECT ALL + 47 + col0 + + col2 FROM tab2 AS cor0
----
151
164
81

query I rowsort
SELECT - 85 + cor0.col2 * + 37 FROM tab2, tab0 AS cor0
----
9 values hashing to 5d0ebf0b97d5a43121f26d3b58190428

query I rowsort
SELECT DISTINCT - - col2 + - col1 * cor0.col0 + - ( - col1 ) AS col1 FROM tab0 AS cor0
----
-1945
-3297
-7926

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

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

query I rowsort
SELECT 72 * + col0 FROM tab2 AS cor0
----
504
5616
5688

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

query I rowsort
SELECT + col2 * - col2 - 48 * + col0 * - col1 FROM tab1 AS cor0
----
27471
40704
828

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * + col2 + ( + col1 ) col1 FROM tab0
----
1175
6815
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor1.col2 col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-54
-57
-96

query I rowsort
SELECT ALL + col2 * 57 FROM tab0 AS cor0
----
1881
4674
57

query I rowsort
SELECT ALL - cor0.col2 + + 63 * - 49 * - cor0.col2 AS col1 FROM tab2 AS cor0
----
117268
80236
83322

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

query I rowsort
SELECT DISTINCT col0 * ( col0 ) * col0 + cor0.col0 + - col2 AS col0 FROM tab1 AS cor0
----
-24
262151
511984

query I rowsort
SELECT DISTINCT 40 * + cor0.col0 AS col0 FROM tab0, tab2 AS cor0
----
280
3120
3160

query I rowsort
SELECT DISTINCT cor0.col1 + + 18 + col1 FROM tab2 AS cor0
----
136
52
80

query I rowsort
SELECT ALL col1 * 29 FROM tab0 cor0
----
2494
2639
2813

query I rowsort
SELECT DISTINCT 31 * + col1 * + col1 FROM tab1
----
20956
3100
5239

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

query I rowsort
SELECT ALL - col1 - - 8 * tab1.col1 AS col1 FROM tab1
----
182
70
91

query I rowsort
SELECT ALL col1 - 17 * col1 AS col2 FROM tab2
----
-272
-496
-944

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

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

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

query I rowsort
SELECT ALL + 5 * col2 FROM tab0 AS cor0
----
165
410
5

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

query I rowsort
SELECT + + 14 + + col0 * cor0.col1 FROM tab2 cor0
----
1357
231
4616

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

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

query I rowsort
SELECT - col0 * - col0 * + col0 FROM tab0 cor0
----
13824
42875
704969

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 15 * col1 col0 FROM tab1 AS cor0
----
150
195
390

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

query I rowsort
SELECT ALL + cor0.col0 * - col2 + - col0 * 41 AS col2 FROM tab1 AS cor0
----
-10960
-285
-6272

onlyif mysql # use DIV operator for integer division
query I rowsort label-1257
SELECT DISTINCT + ( + col1 ) + col1 DIV cor0.col2 FROM tab1 AS cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-1257
SELECT DISTINCT + ( + col1 ) + col1 / cor0.col2 FROM tab1 AS cor0
----
10
13
26

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

query I rowsort
SELECT DISTINCT - 1 - + col1 FROM tab2 AS cor0
----
-18
-32
-60

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

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

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

query I rowsort
SELECT DISTINCT col2 * - col0 - + 31 FROM tab1 cor0
----
-193
-3679
-7711

query I rowsort
SELECT + 82 + - col2 * col1 * + col1 AS col0 FROM tab2 AS cor0
----
-10900
-25865
-90424

query I rowsort
SELECT + 49 - cor0.col2 * + col2 AS col1 FROM tab1 AS cor0
----
-2867
-3200
-9167

query I rowsort
SELECT ALL - cor0.col2 * - col2 - + col1 * - 22 AS col2 FROM tab2 AS cor0
----
1411
1818
1974

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

query I rowsort
SELECT ALL col0 - - 89 FROM tab1
----
153
169
92

query I rowsort
SELECT DISTINCT + - col2 * + col0 * col2 + + ( col0 ) * + 88 FROM tab2 AS cor0
----
-107124
-4487
-45864

query I rowsort
SELECT DISTINCT - 7 * 54 FROM tab0
----
-378

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 87 * + col0 col2 FROM tab0 AS cor0
----
2088
3045
7743

onlyif mysql # use DIV operator for integer division
query I rowsort label-1271
SELECT DISTINCT + ( col2 ) * ( 22 + cor0.col1 ) DIV ( col0 ) FROM tab1 AS cor0
----
28
42
864

skipif mysql # not compatible
query I rowsort label-1271
SELECT DISTINCT + ( col2 ) * ( 22 + cor0.col1 ) / ( col0 ) FROM tab1 AS cor0
----
28
42
864

query I rowsort
SELECT 17 * col0 FROM tab0
----
1513
408
595

onlyif mysql # use DIV operator for integer division
query I rowsort label-1273
SELECT DISTINCT 99 DIV col2 FROM tab0
----
1
3
99

skipif mysql # not compatible
query I rowsort label-1273
SELECT DISTINCT 99 / col2 FROM tab0
----
1
3
99

query I rowsort
SELECT - cor0.col2 + 49 FROM tab0 AS cor0
----
-33
16
48

query I rowsort
SELECT + col2 + col0 * - 92 AS col2 FROM tab2 AS cor0
----
-617
-7150
-7230

query I rowsort
SELECT 48 + tab0.col2 * col2 FROM tab0
----
1137
49
6772

query I rowsort
SELECT ALL 10 + tab2.col2 FROM tab2
----
36
37
48

query I rowsort
SELECT + 10 + - col1 + ( 48 ) FROM tab2
----
-1
27
41

query I rowsort
SELECT DISTINCT - col0 + col1 + ( - col2 ) AS col0 FROM tab1
----
-111
-163
-31

query I rowsort
SELECT ALL - col0 * 38 + col0 + - ( col0 ) AS col0 FROM tab1 AS cor0
----
-114
-2432
-3040

query I rowsort
SELECT ALL 38 + 14 * col0 AS col2 FROM tab0 AS cor0
----
1284
374
528

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

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

query I rowsort
SELECT ALL + col0 * col0 + cor0.col1 * + 82 * + col2 FROM tab0 AS cor0
----
233292
619805
9179

query I rowsort
SELECT DISTINCT + ( col2 ) * - col1 + col2 + col0 FROM tab0 AS cor0
----
-2781
-61
-7291

query I rowsort
SELECT tab0.col2 * 68 AS col1 FROM tab0
----
2244
5576
68

query I rowsort
SELECT tab0.col1 * + 97 - + ( col1 ) AS col1 FROM tab0
----
8256
8736
9312

query I rowsort
SELECT DISTINCT - 53 + col2 * - col2 * + col1 AS col0 FROM tab0 AS cor0
----
-150
-611937
-93707

query I rowsort
SELECT DISTINCT - 76 * + col1 AS col0 FROM tab2 AS cor0
----
-1292
-2356
-4484

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1290
SELECT ALL CAST( col0 AS SIGNED ) + + col1 + 68 AS col0 FROM tab1 AS cor0
----
142
161
97

skipif mysql # not compatible
query I rowsort label-1290
SELECT ALL CAST ( col0 AS INTEGER ) + + col1 + 68 AS col0 FROM tab1 AS cor0
----
142
161
97

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

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

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

query I rowsort
SELECT ALL + ( + 91 ) + - cor0.col1 AS col1 FROM tab1 AS cor0
----
65
78
81

query I rowsort
SELECT - 85 + tab0.col0 + 33 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 6e7d97b299c90e4d02218af99527c8ba

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

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

query I rowsort
SELECT 64 * + 81 - - col0 FROM tab2 AS cor0
----
5191
5262
5263

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

skipif mysql # not compatible
query I rowsort label-1297
SELECT - CAST ( col1 AS INTEGER ) * col2 + col1 FROM tab0 AS cor0
----
-2752
-7371
0

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + cor0.col0 + + col0 col2 FROM tab2 AS cor0
----
182
196
41

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

query I rowsort
SELECT col2 + 75 AS col1 FROM tab0 AS cor0
----
108
157
76

query I rowsort
SELECT DISTINCT col0 + ( 76 ) AS col0 FROM tab0
----
100
111
165

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

query I rowsort
SELECT ALL + col2 * - cor0.col2 + + 49 FROM tab2 AS cor0
----
-1395
-627
-680

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

query I rowsort
SELECT ALL col2 * col0 + ( col1 ) * col1 * + col1 + + col2 AS col1 FROM tab2 AS cor0
----
207433
30007
7953

onlyif mysql # use DIV operator for integer division
query I rowsort label-1309
SELECT + 90 + + col1 DIV - col0 FROM tab0 AS cor0
----
87
88
89

skipif mysql # not compatible
query I rowsort label-1309
SELECT + 90 + + col1 / - col0 FROM tab0 AS cor0
----
87
88
89

query I rowsort
SELECT + 83 + + col1 AS col0 FROM tab1 AS cor0
----
109
93
96

query I rowsort
SELECT 25 * - col1 AS col2 FROM tab1 AS cor0
----
-250
-325
-650

query I rowsort
SELECT ALL col2 * 0 FROM tab0 AS cor0
----
0
0
0

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

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

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

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

query I rowsort
SELECT col2 * - col1 + ( cor0.col1 ) FROM tab1 cor0
----
-1235
-1378
-560

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

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

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

query I rowsort
SELECT ALL - col1 + + col2 * 7 AS col2 FROM tab0 AS cor0
----
-90
145
483

query I rowsort
SELECT + 22 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 7dda382e7c08428abac8600fd696eb3e

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

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

query I rowsort
SELECT - cor1.col2 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b5a4102107e5ebd26e341538f4fede1e

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

query I rowsort
SELECT DISTINCT + - 9 + col0 FROM tab1 AS cor0
----
-6
55
71

query I rowsort
SELECT 15 * 55 AS col2 FROM tab0
----
825
825
825

query I rowsort
SELECT - col2 * 75 AS col2 FROM tab1
----
-4050
-4275
-7200

query I rowsort
SELECT DISTINCT + col2 * col1 + 58 FROM tab1
----
1306
1462
628

query I rowsort
SELECT - 31 + + col1 AS col2 FROM tab0 AS cor0
----
55
60
66

query I rowsort
SELECT col0 - 59 AS col2 FROM tab1 AS cor0
----
-56
21
5

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1331
SELECT - CAST( + col0 AS SIGNED ) + cor0.col2 * + CAST( - 30 + col2 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
1293
1475
6256

skipif mysql # not compatible
query I rowsort label-1331
SELECT - CAST ( + col0 AS INTEGER ) + cor0.col2 * + CAST ( - 30 + col2 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
1293
1475
6256

query I rowsort
SELECT ALL + 33 * + col1 AS col1 FROM tab2 AS cor0
----
1023
1947
561

query I rowsort
SELECT + 71 + col0 * + col2 FROM tab2 AS cor0
----
2099
260
3073

query I rowsort
SELECT DISTINCT 57 + + col1 * - col1 AS col2 FROM tab0 AS cor0
----
-7339
-8224
-9352

query I rowsort
SELECT - 62 + - col0 FROM tab2 AS cor0
----
-140
-141
-69

query I rowsort
SELECT ALL + - 85 + + col2 FROM tab1 AS cor0
----
-28
-31
11

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

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

query I rowsort
SELECT - - col0 + 44 FROM tab2 AS cor0
----
122
123
51

query I rowsort
SELECT ALL 81 + + col0 * - col0 AS col0 FROM tab1 AS cor0
----
-4015
-6319
72

query I rowsort
SELECT + col1 * + col0 - 71 AS col1 FROM tab1
----
569
7
969

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - 49 col1 FROM tab1 AS cor0
----
1274
490
637

onlyif mysql # use DIV operator for integer division
query I rowsort label-1342
SELECT col1 + 46 DIV col2 + col2 FROM tab1
----
109
67
80

skipif mysql # not compatible
query I rowsort label-1342
SELECT col1 + 46 / col2 + col2 FROM tab1
----
109
67
80

query I rowsort
SELECT - 35 + cor0.col2 FROM tab1 AS cor0
----
19
22
61

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

skipif mysql # not compatible
query I rowsort label-1344
SELECT + col2 / - 64 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL + col2 * col2 + - 74 FROM tab0 AS cor0
----
-73
1015
6650

onlyif mysql # use DIV operator for integer division
query I rowsort label-1346
SELECT DISTINCT - col2 DIV - 13 FROM tab1 AS cor0
----
4
7

skipif mysql # not compatible
query I rowsort label-1346
SELECT DISTINCT - col2 / - 13 FROM tab1 AS cor0
----
4
7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1347
SELECT + CAST( - 14 AS SIGNED ) + - cor1.col1 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 104f5e95d9bf4565c8024e9e54720189

skipif mysql # not compatible
query I rowsort label-1347
SELECT + CAST ( - 14 AS INTEGER ) + - cor1.col1 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 104f5e95d9bf4565c8024e9e54720189

query I rowsort
SELECT DISTINCT - - cor0.col1 * 51 + - 19 AS col1 FROM tab1 AS cor0
----
1307
491
644

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

query I rowsort
SELECT ALL + col2 * col0 + + col0 + col0 * - cor0.col1 FROM tab1 AS cor0
----
3072
6720
87

query I rowsort
SELECT DISTINCT - col0 + + cor0.col0 + + 93 * - col1 AS col1 FROM tab2 cor0
----
-1581
-2883
-5487

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

skipif mysql # not compatible
query I rowsort label-1352
SELECT DISTINCT + col0 * CAST ( col2 AS INTEGER ) - - col1 FROM tab1 AS cor0
----
188
3658
7693

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1353
SELECT col1 + CAST ( 35 AS INTEGER ) col0 FROM tab0 AS cor0
----
121
126
132

onlyif mysql # use DIV operator for integer division
query I rowsort label-1354
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-1354
SELECT ALL + - col1 * col0 / col1 col0 FROM tab0 AS cor0
----
-24
-35
-89

onlyif mysql # use DIV operator for integer division
query I rowsort label-1355
SELECT DISTINCT - col1 + cor0.col1 * - col0 + + col0 DIV + col0 AS col1 FROM tab2 AS cor0
----
-1359
-247
-4660

skipif mysql # not compatible
query I rowsort label-1355
SELECT DISTINCT - col1 + cor0.col1 * - col0 + + col0 / + col0 AS col1 FROM tab2 AS cor0
----
-1359
-247
-4660

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - col0 ) * col0 col0 FROM tab1
----
-4096
-6400
-9

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

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

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

query I rowsort
SELECT ( tab2.col1 ) - + col0 * col2 * + col1 FROM tab2
----
-119593
-51017
-5828

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1364
SELECT - 19 DIV col2 + - col1 AS col1 FROM tab0
----
-116
-86
-91

skipif mysql # not compatible
query I rowsort label-1364
SELECT - 19 / col2 + - col1 AS col1 FROM tab0
----
-116
-86
-91

query I rowsort
SELECT DISTINCT col1 * col0 * 58 FROM tab1
----
37120
4524
60320

query I rowsort
SELECT DISTINCT col2 * + col0 + 38 FROM tab1 cor0
----
200
3686
7718

onlyif mysql # use DIV operator for integer division
query I rowsort label-1367
SELECT + 64 DIV 50 col0 FROM tab0, tab1 cor0, tab2 AS cor1
----
27 values hashing to da8a72a7967c0c73d91239275230aed9

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1367
SELECT + 64 / 50 col0 FROM tab0, tab1 cor0, tab2 AS cor1
----
27 values hashing to da8a72a7967c0c73d91239275230aed9

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

query I rowsort
SELECT DISTINCT - + 75 * col2 + + col1 FROM tab0 cor0
----
-2389
-6059
22

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

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

query I rowsort
SELECT ( + cor1.col2 ) AS col1 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT - 23 + - col0 AS col1 FROM tab2
----
-101
-102
-30

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1375
SELECT - 2 * col2 DIV - 31 FROM tab0 AS cor0
----
0
2
5

skipif mysql # not compatible
query I rowsort label-1375
SELECT - 2 * col2 / - 31 FROM tab0 AS cor0
----
0
2
5

query I rowsort
SELECT col1 * + col0 + 31 AS col0 FROM tab1
----
1071
109
671

query I rowsort
SELECT col1 * + ( 95 + col0 ) FROM tab1
----
1590
2275
2548

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

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

query I rowsort
SELECT + - 2 + + 22 * col2 AS col0 FROM tab2 AS cor0
----
570
592
834

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * 46 + - col2 col2 FROM tab1
----
2887
3584
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 28 * + col1 col2 FROM tab0 AS cor0
----
-2408
-2548
-2716

query I rowsort
SELECT - 21 * - col2 + col0 AS col2 FROM tab0 AS cor0
----
1811
56
717

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 10 col2 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 0fe3e45a9ecd49584c2ab442100d5176

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab2.col2 * 20 col2 FROM tab2
----
-520
-540
-760

query I rowsort
SELECT - - 77 * col1 * col2 AS col1 FROM tab0 AS cor0
----
218526
574574
7469

query I rowsort
SELECT + 40 * + cor0.col1 AS col2 FROM tab2, tab0 cor0
----
9 values hashing to 26698cdcad58422b456e5e5607453057

query I rowsort
SELECT DISTINCT - cor0.col2 - - cor0.col1 AS col1 FROM tab0, tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT DISTINCT - 12 * - col1 + col0 AS col1 FROM tab1
----
184
236
315

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 90 + col0 col1 FROM tab2 AS cor0
----
168
169
97

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

query I rowsort
SELECT ALL cor0.col1 * col2 * + cor0.col2 + cor0.col1 + + col0 FROM tab1 AS cor0
----
119901
32564
75845

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1397
SELECT DISTINCT col0 * col0 - - CAST( col0 AS SIGNED ) AS col0 FROM tab0 cor0
----
1260
600
8010

skipif mysql # not compatible
query I rowsort label-1397
SELECT DISTINCT col0 * col0 - - CAST ( col0 AS INTEGER ) AS col0 FROM tab0 cor0
----
1260
600
8010

query I rowsort
SELECT - col1 * cor0.col1 + ( col0 ) AS col2 FROM tab2 AS cor0
----
-210
-3403
-954

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

query I rowsort
SELECT DISTINCT + + 25 + col2 * + col2 FROM tab1 AS cor0
----
2941
3274
9241

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

query I rowsort
SELECT - col2 * ( - col1 * col0 ) + cor0.col0 - + col1 * col1 AS col0 FROM tab1 AS cor0
----
3539
36444
99751

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

skipif mysql # not compatible
query I rowsort
SELECT + cor0.col1 + CAST ( + col2 AS REAL ) * cor0.col1 AS col2 FROM tab2 AS cor0
----
1593
663
868

onlyif mysql # use DIV operator for integer division
query I rowsort label-1405
SELECT DISTINCT - col2 DIV 57 + + col0 DIV col2 - - 21 FROM tab0
----
21
56

skipif mysql # not compatible
query I rowsort label-1405
SELECT DISTINCT - col2 / 57 + + col0 / col2 - - 21 FROM tab0
----
21
56

query I rowsort
SELECT - col0 + + cor0.col1 - + col0 FROM tab1 AS cor0
----
-118
-147
20

query I rowsort
SELECT - col2 - ( - 44 ) AS col1 FROM tab2 AS cor0
----
17
18
6

query I rowsort
SELECT DISTINCT - col2 * - ( - col2 ) + col1 * + col1 AS col2 FROM tab2 cor0
----
-1155
232
2805

query I rowsort
SELECT ALL - + col1 * + 1 AS col1 FROM tab1 AS cor0
----
-10
-13
-26

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * 93 col2 FROM tab1 AS cor0
----
-5022
-5301
-8928

query I rowsort
SELECT ALL col0 * + ( col0 ) + cor0.col0 FROM tab2 AS cor0
----
56
6162
6320

query I rowsort
SELECT - - col2 + - 8 * - cor0.col0 FROM tab2 AS cor0
----
650
670
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-1414
SELECT ALL ( ( - col2 ) ) DIV 10 FROM tab0 AS cor0
----
-3
-8
0

skipif mysql # not compatible
query I rowsort label-1414
SELECT ALL ( ( - col2 ) ) / 10 FROM tab0 AS cor0
----
-3
-8
0

query I rowsort
SELECT col1 * + 83 * col2 AS col0 FROM tab2 AS cor0
----
127322
53618
69471

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1417
SELECT + - ( col2 ) * + cor0.col0 * CAST( + 47 AS SIGNED ) FROM tab0 AS cor0
----
-1645
-343006
-37224

skipif mysql # not compatible
query I rowsort label-1417
SELECT + - ( col2 ) * + cor0.col0 * CAST ( + 47 AS INTEGER ) FROM tab0 AS cor0
----
-1645
-343006
-37224

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

query I rowsort
SELECT col0 * + col2 * + ( col1 ) + + ( + col0 ) + col1 * - col2 FROM tab1
----
2811
35974
98672

onlyif mysql # use DIV operator for integer division
query I rowsort label-1420
SELECT - tab0.col2 + col0 + + tab0.col0 DIV - col1 col1 FROM tab0
----
-9
34
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1420
SELECT - tab0.col2 + col0 + + tab0.col0 / - col1 col1 FROM tab0
----
-9
34
7

query I rowsort
SELECT ALL col2 - + 95 FROM tab2
----
-57
-68
-69

query I rowsort
SELECT ALL - 7 + - col1 FROM tab1 AS cor0
----
-17
-20
-33

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

query I rowsort
SELECT ALL - ( col2 ) * col0 * - col1 + - col2 * cor0.col2 FROM tab1 AS cor0
----
1296
33231
90624

query I rowsort
SELECT DISTINCT 73 * col1 AS col2 FROM tab2 AS cor0
----
1241
2263
4307

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

query I rowsort
SELECT ALL cor0.col0 + + col0 * - col1 * col1 FROM tab2 AS cor0
----
-22752
-271440
-6720

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

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

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

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

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

query I rowsort
SELECT DISTINCT - + 43 * col0 FROM tab1 AS cor0
----
-129
-2752
-3440

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

query I rowsort
SELECT cor0.col0 + - col1 * col0 - col2 * col1 AS col2 FROM tab2 AS cor0
----
-1047
-1910
-6058

query I rowsort
SELECT 28 * col0 + + tab2.col1 FROM tab2
----
2229
2243
227

query I rowsort
SELECT - col0 * col0 - col1 FROM tab1
----
-35
-4106
-6413

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

query I rowsort
SELECT ALL - 24 + + 51 * - col1 AS col1 FROM tab1 AS cor0
----
-1350
-534
-687

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1440
SELECT DISTINCT - ( - col1 ) / + col1 + + col2 col1 FROM tab2 AS cor0
----
27
28
39

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

query I rowsort
SELECT DISTINCT col2 + + 96 * 77 * - col1 + - col0 FROM tab1
----
-192141
-73927
-96080

query I rowsort
SELECT ALL - - 80 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + ( col2 * + col2 ) + - col2 col2 FROM tab2
----
22572
24510
39858

query I rowsort
SELECT DISTINCT + col0 * - 96 FROM tab0
----
-2304
-3360
-8544

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

skipif mysql # not compatible
query I rowsort label-1446
SELECT - CAST ( - 51 * + col0 AS INTEGER ) + + col1 AS col2 FROM tab1
----
179
3274
4093

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL >= NULL
----

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

query I rowsort
SELECT col2 AS col0 FROM tab0 WHERE NOT NULL > NULL
----

query I rowsort
SELECT + col2 FROM tab0 WHERE NOT col2 / col2 IN ( - tab0.col2 * - col1 )
----
1
33
82

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( + col1 ) <> NULL
----

query I rowsort
SELECT ALL col1 + + col1 * + col2 * - col2 FROM tab2 AS cor0 WHERE NULL BETWEEN - col0 / - col0 - col2 * col1 AND NULL
----

query I rowsort
SELECT - col0 + + col0 * + tab2.col0 FROM tab2
----
42
6006
6162

query I rowsort
SELECT ALL col0 * - tab0.col1 FROM tab0 WHERE NULL > NULL
----

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL < ( - col2 + col2 )
----

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

query I rowsort
SELECT + col2 + col1 + - col1 FROM tab2
----
26
27
38

query I rowsort
SELECT col1 * + col1 * col2 + col2 AS col0 FROM tab2
----
11020
25974
90532

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

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

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

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

query I rowsort
SELECT DISTINCT col0 * - col2 + - col0 - col0 * col2 AS col0 FROM tab2 AS cor0
----
-385
-4134
-6083

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

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

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 * + col2 + col2 col0 FROM tab1 AS cor0
----
216
3705
7776

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1477
SELECT - + col0 DIV col0 + col1 * - col0 * col0 FROM tab2 cor0
----
-106098
-1520
-358957

skipif mysql # not compatible
query I rowsort label-1477
SELECT - + col0 / col0 + col1 * - col0 * col0 FROM tab2 cor0
----
-106098
-1520
-358957

query I rowsort
SELECT + cor0.col1 * col1 + + col2 FROM tab1 AS cor0
----
157
265
730

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

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

query I rowsort
SELECT ALL - - 93 FROM tab0 AS cor0
----
93
93
93

query I rowsort
SELECT ALL + col2 * 42 FROM tab2 AS cor0
----
1092
1134
1596

query I rowsort
SELECT DISTINCT + col2 * 15 FROM tab0
----
1230
15
495

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + tab1.col1 + + col2 col1 FROM tab1
----
109
67
80

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

skipif mysql # not compatible
query I rowsort label-1486
SELECT ALL + CAST ( NULL AS INTEGER ) * + 88 + col0 + - 91 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 5 + 88 FROM tab2
----
93

onlyif mysql # use DIV operator for integer division
query I rowsort label-1488
SELECT 9 DIV 64 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1488
SELECT 9 / 64 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT + + cor1.col1 - cor0.col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to dbfc6e14a516b2f4a3bad04409a815fc

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

query I rowsort
SELECT col0 * + col1 + 63 AS col0 FROM tab0 AS cor0
----
2127
3458
8162

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor1.col0 col0 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a

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

query I rowsort
SELECT ALL - col2 * - col1 * tab0.col2 AS col2 FROM tab0
----
611884
93654
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab2.col0 * col0 - col2 col2 FROM tab2
----
22
6058
6203

onlyif mysql # use DIV operator for integer division
query I rowsort label-1496
SELECT DISTINCT tab2.col2 DIV + col1 - 56 FROM tab2
----
-54
-56

skipif mysql # not compatible
query I rowsort label-1496
SELECT DISTINCT tab2.col2 / + col1 - 56 FROM tab2
----
-54
-56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * ( + col2 * + col0 ) - col0 col2 FROM tab1 AS cor0
----
207872
737200
8745

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

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

query I rowsort
SELECT DISTINCT - col0 + - ( - cor0.col2 ) AS col2 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT ALL - col1 + 51 * + col0 AS col0 FROM tab0 AS cor0
----
1138
1688
4448

onlyif mysql # use DIV operator for integer division
query I rowsort label-1501
SELECT 6 * col1 DIV ( col1 ) FROM tab0
----
6
6
6

skipif mysql # not compatible
query I rowsort label-1501
SELECT 6 * col1 / ( col1 ) FROM tab0
----
6
6
6

query I rowsort
SELECT ALL + 86 - tab0.col2 AS col0 FROM tab0
----
4
53
85

query I rowsort
SELECT ALL - col0 - - col2 * col1 FROM tab1
----
1168
1401
506

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 + - ( 79 * col1 ) + - col1 col2 FROM tab1 AS cor0
----
-1120
-2083
-864

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

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

query I rowsort
SELECT col2 * + col2 + ( + col2 ) + + cor0.col2 FROM tab0 AS cor0
----
1155
3
6888

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

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

skipif mysql # not compatible
query I rowsort label-1509
SELECT ALL + col0 + col1 / + col0 AS col0 FROM tab0 cor0
----
27
37
90

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

query I rowsort
SELECT DISTINCT col0 * ( + 81 ) + col2 + col2 FROM tab2 AS cor0
----
621
6370
6475

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1513
SELECT DISTINCT + cor0.col1 DIV ( col0 ) + + col2 FROM tab2 AS cor0
----
26
31
38

skipif mysql # not compatible
query I rowsort label-1513
SELECT DISTINCT + cor0.col1 / ( col0 ) + + col2 FROM tab2 AS cor0
----
26
31
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + - ( + cor0.col1 * + cor0.col2 ) col2 FROM tab1 AS cor0
----
-1261
-1430
-580

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

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

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

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

query I rowsort
SELECT 38 + - 85 AS col1 FROM tab1 AS cor0
----
-47
-47
-47

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

query I rowsort
SELECT + - 21 * + 73 * - col2 FROM tab0 AS cor0
----
125706
1533
50589

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

query I rowsort
SELECT - ( - 2 ) * col1 FROM tab0 AS cor0
----
172
182
194

query I rowsort
SELECT + 66 * col0 AS col0 FROM tab2 cor0
----
462
5148
5214

query I rowsort
SELECT - col1 * - 79 * + col0 FROM tab0 AS cor0
----
163056
268205
639821

query I rowsort
SELECT DISTINCT cor0.col0 + - 70 FROM tab1, tab0 AS cor0
----
-35
-46
19

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1528
SELECT - + col0 * cor0.col1 - - CAST( 80 AS SIGNED ) * cor0.col2 AS col2 FROM tab0 AS cor0
----
-1539
-3315
576

skipif mysql # not compatible
query I rowsort label-1528
SELECT - + col0 * cor0.col1 - - CAST ( 80 AS INTEGER ) * cor0.col2 AS col2 FROM tab0 AS cor0
----
-1539
-3315
576

query I rowsort
SELECT ALL + + 98 - - col2 AS col0 FROM tab2 AS cor0
----
124
125
136

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

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

query I rowsort
SELECT - 95 * 88 FROM tab2
----
-8360
-8360
-8360

query I rowsort
SELECT cor0.col0 + - 82 * 64 AS col2 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to af1442f10abf86efdb4287588c8ec95e

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

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

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

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

query I rowsort
SELECT DISTINCT col0 * col2 + 57 FROM tab1 cor0
----
219
3705
7737

query I rowsort
SELECT DISTINCT + + 62 + - col2 FROM tab1 AS cor0
----
-34
5
8

onlyif mysql # use DIV operator for integer division
query I rowsort label-1539
SELECT - col0 * + col0 DIV + col0 FROM tab1 AS cor0
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-1539
SELECT - col0 * + col0 / + col0 FROM tab1 AS cor0
----
-3
-64
-80

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT - col0 + col2 * - 34 FROM tab1 AS cor0
----
-1839
-2002
-3344

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1545
SELECT ALL col1 + cor0.col1 DIV + col1 FROM tab2 cor0
----
18
32
60

skipif mysql # not compatible
query I rowsort label-1545
SELECT ALL col1 + cor0.col1 / + col1 FROM tab2 cor0
----
18
32
60

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

query I rowsort
SELECT + - col2 + - ( col1 ) * + col2 FROM tab2 AS cor0
----
-1560
-684
-864

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1548
SELECT - col0 * CAST( 39 AS SIGNED ) - + col2 AS col2 FROM tab0 AS cor0
----
-1366
-3553
-969

skipif mysql # not compatible
query I rowsort label-1548
SELECT - col0 * CAST ( 39 AS INTEGER ) - + col2 AS col2 FROM tab0 AS cor0
----
-1366
-3553
-969

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

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

query I rowsort
SELECT DISTINCT + cor0.col0 - - ( 6 ) FROM tab2 AS cor0
----
13
84
85

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

query I rowsort
SELECT + + col1 * col1 + - 89 AS col1 FROM tab0 AS cor0
----
7307
8192
9320

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

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

query I rowsort
SELECT - 82 + + cor0.col0 FROM tab1 AS cor0
----
-18
-2
-79

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

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

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

query I rowsort
SELECT col0 * col2 + ( - col2 ) + + 98 AS col1 FROM tab0
----
132
7314
857

query I rowsort
SELECT - 68 * - col0 - col1 FROM tab0 AS cor0
----
1546
2283
5961

query I rowsort
SELECT ( - 36 ) * col2 * col1 AS col1 FROM tab2 AS cor0
----
-23256
-30132
-55224

onlyif mysql # use DIV operator for integer division
query I rowsort label-1562
SELECT col1 + + 23 DIV col1 FROM tab1 AS cor0
----
12
14
26

skipif mysql # not compatible
query I rowsort label-1562
SELECT col1 + + 23 / col1 FROM tab1 AS cor0
----
12
14
26

query I rowsort
SELECT + + 38 + col1 AS col1 FROM tab0 cor0
----
124
129
135

query I rowsort
SELECT - col0 + 54 * - col0 * 72 AS col2 FROM tab0 cor0
----
-136115
-346121
-93336

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

query I rowsort
SELECT - col0 * - col0 * col0 AS col0 FROM tab0 AS cor0
----
13824
42875
704969

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

query I rowsort
SELECT DISTINCT - 85 - 16 FROM tab1, tab1 AS cor0
----
-101

onlyif mysql # use DIV operator for integer division
query I rowsort label-1569
SELECT ALL col0 * 78 DIV 15 + col2 + ( + 65 + tab0.col1 ) * - 48 AS col0 FROM tab0
----
-6944
-7091
-7593

skipif mysql # not compatible
query I rowsort label-1569
SELECT ALL col0 * 78 / 15 + col2 + ( + 65 + tab0.col1 ) * - 48 AS col0 FROM tab0
----
-6944
-7091
-7593

query I rowsort
SELECT - 81 AS col2 FROM tab2, tab0 cor0
----
9 values hashing to 205b3ff2d7b1817c98d7980b8c17e6c1

onlyif mysql # use DIV operator for integer division
query I rowsort label-1571
SELECT + 4 - - cor0.col1 DIV + col1 AS col2 FROM tab1 cor0
----
5
5
5

skipif mysql # not compatible
query I rowsort label-1571
SELECT + 4 - - cor0.col1 / + col1 AS col2 FROM tab1 cor0
----
5
5
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 44 * + col2 col0 FROM tab0 AS cor0
----
1452
3608
44

query I rowsort
SELECT + 67 * col2 - + col0 FROM tab1 AS cor0
----
3615
3755
6352

query I rowsort
SELECT ALL 12 * 59 AS col1 FROM tab0
----
708
708
708

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor1.col1 col1 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to b234798d4706314ba14eaad539d0aa88

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

query I rowsort
SELECT 37 AS col0 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to c023509f63faa044d654943e6df55ca2

onlyif mysql # use DIV operator for integer division
query I rowsort label-1578
SELECT col1 DIV - ( 40 * + col0 ) col0 FROM tab0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1578
SELECT col1 / - ( 40 * + col0 ) col0 FROM tab0
----
0
0
0

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1580
SELECT col1 * CAST( - ( + col2 ) AS SIGNED ) AS col0 FROM tab2
----
-1534
-646
-837

skipif mysql # not compatible
query I rowsort label-1580
SELECT col1 * CAST ( - ( + col2 ) AS INTEGER ) AS col0 FROM tab2
----
-1534
-646
-837

onlyif mysql # use DIV operator for integer division
query I rowsort label-1581
SELECT - col1 DIV - ( + col0 ) FROM tab2
----
0
0
4

skipif mysql # not compatible
query I rowsort label-1581
SELECT - col1 / - ( + col0 ) FROM tab2
----
0
0
4

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

query I rowsort
SELECT - ( col0 ) + ( - 73 ) FROM tab1 AS cor0
----
-137
-153
-76

query I rowsort
SELECT + 81 FROM tab0, tab1 cor0
----
9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267

onlyif mysql # use DIV operator for integer division
query I rowsort label-1585
SELECT DISTINCT + col2 DIV col0 + 58 * cor0.col1 AS col1 FROM tab2 AS cor0
----
1801
3422
986

skipif mysql # not compatible
query I rowsort label-1585
SELECT DISTINCT + col2 / col0 + 58 * cor0.col1 AS col1 FROM tab2 AS cor0
----
1801
3422
986

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

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

query I rowsort
SELECT - col0 * ( 47 ) FROM tab1 AS cor0
----
-141
-3008
-3760

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

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

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

query IIIIII rowsort
SELECT * FROM tab1, tab2 AS cor0 WHERE NOT ( NULL ) <> ( NULL )
----

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1593
SELECT + col1 + tab0.col1 * col2 DIV 37 AS col0 FROM tab0
----
162
292
99

skipif mysql # not compatible
query I rowsort label-1593
SELECT + col1 + tab0.col1 * col2 / 37 AS col0 FROM tab0
----
162
292
99

query I rowsort
SELECT + cor0.col2 * - 4 AS col0 FROM tab1, tab1 cor0, tab2 cor1
----
27 values hashing to 548c624524ba72c74b45c6a6f146f79b

query I rowsort
SELECT - - col2 * col0 + - 11 FROM tab0 AS cor0
----
24
7287
781

query I rowsort
SELECT - + 9 * cor0.col0 - 40 FROM tab1 AS cor0
----
-616
-67
-760

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

query I rowsort
SELECT DISTINCT - ( col2 ) * + cor0.col0 * 91 FROM tab0 AS cor0
----
-3185
-664118
-72072

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1601
SELECT + col1 * - col1 DIV cor0.col1 AS col2 FROM tab2 AS cor0
----
-17
-31
-59

skipif mysql # not compatible
query I rowsort label-1601
SELECT + col1 * - col1 / cor0.col1 AS col2 FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT ALL cor0.col1 + cor0.col0 * - 90 * - 45 FROM tab1 AS cor0
----
12176
259210
324013

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 33 + - col0 col1 FROM tab2 cor0
----
-45
-46
26

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1607
SELECT - CAST( + 69 * + col2 AS SIGNED ) FROM tab2
----
-1794
-1863
-2622

skipif mysql # not compatible
query I rowsort label-1607
SELECT - CAST ( + 69 * + col2 AS INTEGER ) FROM tab2
----
-1794
-1863
-2622

query I rowsort
SELECT DISTINCT col2 + - col1 - - tab1.col2 AS col2 FROM tab1
----
104
179
82

query I rowsort
SELECT ALL col1 + - col0 - col1 AS col2 FROM tab0
----
-24
-35
-89

query I rowsort
SELECT + col1 + - 46 * 69 FROM tab2 AS cor0
----
-3115
-3143
-3157

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1611
SELECT DISTINCT - col1 + col0 - + CAST( - 0 AS SIGNED ) * col2 * + col0 col0 FROM tab1
----
-23
54
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1611
SELECT DISTINCT - col1 + col0 - + CAST ( - 0 AS INTEGER ) * col2 * + col0 col0 FROM tab1
----
-23
54
67

query I rowsort
SELECT + col1 * 55 AS col1 FROM tab0 AS cor0
----
4730
5005
5335

query I rowsort
SELECT col2 + + col1 * 53 FROM tab0
----
4591
4905
5142

query I rowsort
SELECT col0 * col0 + - col0 * col0 * - tab1.col0 + ( ( col1 ) ) FROM tab1
----
266250
518413
62

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

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

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

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

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

query I rowsort
SELECT ALL + 33 * - col0 AS col1 FROM tab0 AS cor0
----
-1155
-2937
-792

query I rowsort
SELECT 67 * col2 AS col1 FROM tab2 AS cor0
----
1742
1809
2546

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

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

query I rowsort
SELECT DISTINCT 40 + col0 AS col2 FROM tab1 AS cor0
----
104
120
43

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

query I rowsort
SELECT DISTINCT + col0 * 34 + col0 FROM tab0
----
1225
3115
840

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col2 + + 89 + col0 col1 FROM tab1
----
3008
3402
9385

onlyif mysql # use DIV operator for integer division
query I rowsort label-1627
SELECT DISTINCT tab1.col2 DIV 78 + ( col2 + col0 ) * col1 AS col2 FROM tab1
----
1210
1482
2289

skipif mysql # not compatible
query I rowsort label-1627
SELECT DISTINCT tab1.col2 / 78 + ( col2 + col0 ) * col1 AS col2 FROM tab1
----
1210
1482
2289

query I rowsort
SELECT - tab0.col0 * + col2 * tab0.col0 - + col1 * 13 FROM tab0
----
-20126
-2486
-650705

query I rowsort
SELECT DISTINCT + col0 * + col0 + - col0 + - col2 AS col2 FROM tab2
----
15
5980
6124

query I rowsort
SELECT + 63 * - col0 FROM tab1 AS cor0
----
-189
-4032
-5040

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-1632
SELECT ( col1 ) DIV + 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-1632
SELECT ( col1 ) / + col0 col1 FROM tab2 AS cor0
----
0
0
4

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

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

skipif mysql # not compatible
query I rowsort label-1634
SELECT ALL CAST ( NULL AS INTEGER ) + - 2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 + 6 AS col0 FROM tab2 AS cor0
----
23
37
65

onlyif mysql # use DIV operator for integer division
query I rowsort label-1636
SELECT - - CAST( + col2 AS SIGNED ) DIV col1 FROM tab2 AS cor0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-1636
SELECT - - CAST ( + col2 AS INTEGER ) / col1 FROM tab2 AS cor0
----
0
0
2

query I rowsort
SELECT col1 * col2 * + col0 + col1 FROM tab2 AS cor0
----
119711
51051
5890

query I rowsort
SELECT cor0.col0 + - 97 * cor0.col0 * + col1 AS col1 FROM tab1 AS cor0
----
-100800
-62016
-7563

query I rowsort
SELECT + col2 * col2 + - col2 * cor0.col0 FROM tab2 AS cor0
----
-1352
-1558
540

query I rowsort
SELECT DISTINCT + 19 + tab1.col2 AS col0 FROM tab1
----
115
73
76

query I rowsort
SELECT col1 + col0 + 51 FROM tab1
----
125
144
80

query I rowsort
SELECT 93 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 85ef191bf1b307f300b3fd49992fcae7

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

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1647
SELECT DISTINCT + col0 / + CAST ( + col1 * - col2 AS INTEGER ) + - col2 AS col2 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT ALL - col0 * + 95 AS col2 FROM tab1 AS cor0
----
-285
-6080
-7600

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

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

query I rowsort
SELECT DISTINCT 44 - 98 AS col2 FROM tab1 AS cor0
----
-54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 45 col1 FROM tab2 AS cor0
----
-45

query I rowsort
SELECT ALL - + ( + 45 ) + - col1 * col0 AS col1 FROM tab0 AS cor0
----
-2109
-3440
-8144

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1655
SELECT - CAST ( - 78 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
78
78
78

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1659
SELECT DISTINCT col1 * - col1 + - 64 DIV + col0 + col1 AS col2 FROM tab1 cor0
----
-156
-671
-91

skipif mysql # not compatible
query I rowsort label-1659
SELECT DISTINCT col1 * - col1 + - 64 / + col0 + col1 AS col2 FROM tab1 cor0
----
-156
-671
-91

query I rowsort
SELECT ALL ( col1 ) - + 98 AS col0 FROM tab0 AS cor0
----
-1
-12
-7

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

query I rowsort
SELECT + 30 + - cor0.col1 FROM tab1 AS cor0
----
17
20
4

query I rowsort
SELECT col2 + - 63 AS col2 FROM tab1
----
-6
-9
33

query I rowsort
SELECT - col0 + - col1 * 42 AS col1 FROM tab0 AS cor0
----
-3636
-3911
-4109

query I rowsort
SELECT ALL - - 43 + col1 * - col1 FROM tab2 AS cor0
----
-246
-3438
-918

query I rowsort
SELECT DISTINCT 9 + col1 + col0 AS col1 FROM tab0 AS cor0
----
119
141
189

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

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

query I rowsort
SELECT - 97 + + cor0.col1 FROM tab2 AS cor0
----
-38
-66
-80

query I rowsort
SELECT col2 + - 85 AS col1 FROM tab0 AS cor0
----
-3
-52
-84

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

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

query I rowsort
SELECT DISTINCT 69 * 60 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
4140

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

query I rowsort
SELECT - 63 + col2 AS col0 FROM tab2 AS cor0
----
-25
-36
-37

onlyif mysql # use DIV operator for integer division
query I rowsort label-1674
SELECT ALL + + ( - col2 ) + - cor0.col2 DIV + 59 FROM tab1 AS cor0
----
-54
-57
-97

skipif mysql # not compatible
query I rowsort label-1674
SELECT ALL + + ( - col2 ) + - cor0.col2 / + 59 FROM tab1 AS cor0
----
-54
-57
-97

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

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

skipif mysql # not compatible
query I rowsort label-1676
SELECT + - col2 / col1 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT ALL + ( + 6 ) AS col2 FROM tab1
----
6
6
6

query I rowsort
SELECT ALL - ( + 12 ) FROM tab0
----
-12
-12
-12

query I rowsort
SELECT ALL cor0.col2 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1682
SELECT ALL col0 - col1 DIV + col1 FROM tab0
----
23
34
88

skipif mysql # not compatible
query I rowsort label-1682
SELECT ALL col0 - col1 / + col1 FROM tab0
----
23
34
88

query I rowsort
SELECT ALL - 37 - 71 * + col2 FROM tab2
----
-1883
-1954
-2735

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

query I rowsort
SELECT - 85 * col1 - col1 FROM tab1 AS cor0
----
-1118
-2236
-860

query I rowsort
SELECT DISTINCT + col2 + 94 FROM tab1 AS cor0
----
148
151
190

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - col2 * col2 col2 FROM tab1
----
-157464
-185193
-884736

query I rowsort
SELECT + col0 * 20 AS col0 FROM tab0 AS cor0
----
1780
480
700

query I rowsort
SELECT ALL - + col2 * col0 + 89 AS col0 FROM tab0 AS cor0
----
-703
-7209
54

query I rowsort
SELECT + col0 + 24 AS col1 FROM tab0 AS cor0
----
113
48
59

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1693
SELECT ALL + - col1 + CAST( - col1 AS SIGNED ) FROM tab1 AS cor0
----
-20
-26
-52

skipif mysql # not compatible
query I rowsort label-1693
SELECT ALL + - col1 + CAST ( - col1 AS INTEGER ) FROM tab1 AS cor0
----
-20
-26
-52

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1694
SELECT DISTINCT - col1 + + CAST( - col2 + + col1 * - ( 54 ) AS SIGNED ) FROM tab1 AS cor0
----
-1484
-607
-811

skipif mysql # not compatible
query I rowsort label-1694
SELECT DISTINCT - col1 + + CAST ( - col2 + + col1 * - ( 54 ) AS INTEGER ) FROM tab1 AS cor0
----
-1484
-607
-811

onlyif mysql # use DIV operator for integer division
query I rowsort label-1695
SELECT - + col1 * - col0 DIV + cor0.col0 AS col0 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-1695
SELECT - + col1 * - col0 / + cor0.col0 AS col0 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT + col1 + 59 AS col0 FROM tab1 AS cor0
----
69
72
85

query I rowsort
SELECT col2 * 86 * 31 + + col0 FROM tab2
----
101387
69394
71989

query I rowsort
SELECT tab0.col1 + ( - col1 ) AS col0 FROM tab0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - col2 col2 FROM tab2
----
-20
41
52

query I rowsort
SELECT ALL + col2 * 98 FROM tab1 AS cor0
----
5292
5586
9408

query I rowsort
SELECT + cor0.col2 + col0 + + col2 FROM tab1 AS cor0
----
111
178
272

query I rowsort
SELECT DISTINCT - col2 * 95 + 27 AS col1 FROM tab2 cor0
----
-2443
-2538
-3583

query I rowsort
SELECT cor2.col0 AS col2 FROM tab1, tab2 AS cor0, tab1 AS cor1, tab2 AS cor2
----
81 values hashing to 05835f29dd9cd4fa16889de54dec3cb6

query I rowsort
SELECT - 67 * + col2 * col2 AS col1 FROM tab2 AS cor0
----
-45292
-48843
-96748

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1705
SELECT ALL + CAST( + col1 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
17
31
59

skipif mysql # not compatible
query I rowsort label-1705
SELECT ALL + CAST ( + col1 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT DISTINCT + 40 AS col2 FROM tab2 cor0
----
40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - col2 ) col2 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT + - col2 * - col0 AS col2 FROM tab0 cor0
----
35
7298
792

query I rowsort
SELECT DISTINCT - 15 * col1 AS col2 FROM tab0 AS cor0
----
-1290
-1365
-1455

query I rowsort
SELECT DISTINCT - + col1 + 82 FROM tab0 AS cor0
----
-15
-4
-9

query I rowsort
SELECT cor0.col2 * 36 * - col1 AS col0 FROM tab2 AS cor0
----
-23256
-30132
-55224

query I rowsort
SELECT DISTINCT 6 AS col2 FROM tab1 cor0
----
6

query I rowsort
SELECT - 0 + cor0.col0 AS col1 FROM tab0 AS cor0
----
24
35
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-1714
SELECT col2 DIV - 69 - 33 AS col2 FROM tab0
----
-33
-33
-34

skipif mysql # not compatible
query I rowsort label-1714
SELECT col2 / - 69 - 33 AS col2 FROM tab0
----
-33
-33
-34

query I rowsort
SELECT ALL 12 + col2 * + col1 AS col0 FROM tab0 AS cor0
----
109
2850
7474

query I rowsort
SELECT DISTINCT - col1 * - col0 * col2 FROM tab1 AS cor0
----
36480
4212
99840

query I rowsort
SELECT DISTINCT + 97 * col1 * - ( col2 ) + cor0.col1 FROM tab2 AS cor0
----
-148739
-62645
-81158

query I rowsort
SELECT DISTINCT + + 7 FROM tab2 cor0
----
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 16 * col0 col1 FROM tab2 AS cor0
----
112
1248
1264

query I rowsort
SELECT ALL - - 89 + col2 * + col2 FROM tab0 AS cor0
----
1178
6813
90

onlyif mysql # use DIV operator for integer division
query I rowsort label-1721
SELECT - col0 DIV col0 + + col2 * col2 + cor0.col0 FROM tab2 AS cor0
----
1522
735
753

skipif mysql # not compatible
query I rowsort label-1721
SELECT - col0 / col0 + + col2 * col2 + cor0.col0 FROM tab2 AS cor0
----
1522
735
753

query I rowsort
SELECT DISTINCT - + 11 AS col2 FROM tab1 AS cor0
----
-11

query I rowsort
SELECT DISTINCT - ( - col2 ) * - 51 FROM tab2 cor0
----
-1326
-1377
-1938

query I rowsort
SELECT DISTINCT + 44 * - col2 AS col0 FROM tab0
----
-1452
-3608
-44

onlyif mysql # use DIV operator for integer division
query I rowsort label-1725
SELECT - ( col2 + + tab0.col0 ) DIV + ( - 57 ) FROM tab0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-1725
SELECT - ( col2 + + tab0.col0 ) / + ( - 57 ) FROM tab0
----
0
1
3

query I rowsort
SELECT + col2 * ( tab2.col2 ) * col1 FROM tab2
----
22599
24548
39884

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 78 * cor0.col1 col1 FROM tab2 AS cor0
----
1326
2418
4602

query I rowsort
SELECT 10 * col0 FROM tab1
----
30
640
800

query I rowsort
SELECT - ( + 53 ) AS col2 FROM tab2
----
-53
-53
-53

onlyif mysql # use DIV operator for integer division
query I rowsort label-1730
SELECT ( - tab1.col2 ) DIV + col2 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1730
SELECT ( - tab1.col2 ) / + col2 FROM tab1
----
-1
-1
-1

onlyif mysql # use DIV operator for integer division
query I rowsort label-1731
SELECT - ( col2 + - col2 ) DIV + 15 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1731
SELECT - ( col2 + - col2 ) / + 15 FROM tab2
----
0
0
0

query I rowsort
SELECT + 5 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 6035628694bdea36f584f3649088551d

query I rowsort
SELECT col1 * col1 * ( ( + col0 ) + - col0 ) FROM tab1
----
0
0
0

query I rowsort
SELECT + cor0.col0 + col2 + 43 * + col0 FROM tab2 AS cor0
----
335
3458
3514

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + col1 * 3 + cor0.col0 col0 FROM tab1 AS cor0
----
104
107
132

query I rowsort
SELECT - 69 FROM tab2, tab0 AS cor0, tab2 cor1
----
27 values hashing to ca5f4bc365dc2c6b14187d6ffc83a01d

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col1 * col0 * + col0 col0 FROM tab0 cor0
----
-118825
-49536
-720811

query I rowsort
SELECT ALL - cor0.col1 FROM tab1, tab1 AS cor0, tab2 cor1
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6

query I rowsort
SELECT ALL 22 * - cor0.col1 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 42424e50866a2df939208db6eb570b51

query I rowsort
SELECT - col0 - + ( - col1 ) AS col0 FROM tab2 cor0
----
-19
-62
24

query I rowsort
SELECT DISTINCT + 66 * + 38 FROM tab0 AS cor0
----
2508

query I rowsort
SELECT - - col0 * col2 - cor0.col1 AS col0 FROM tab2 AS cor0
----
158
1969
2985

query I rowsort
SELECT DISTINCT - 24 * - 63 + col2 FROM tab1 cor0
----
1566
1569
1608

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - 36 - - col2 col0 FROM tab2 AS cor0
----
279
2834
2882

onlyif mysql # use DIV operator for integer division
query I rowsort label-1745
SELECT ALL + ( col2 ) DIV - col1 + col1 FROM tab1
----
24
5
6

skipif mysql # not compatible
query I rowsort label-1745
SELECT ALL + ( col2 ) / - col1 + col1 FROM tab1
----
24
5
6

onlyif mysql # use DIV operator for integer division
query I rowsort label-1746
SELECT ALL CAST( col0 AS SIGNED ) + col2 * + col0 + + tab0.col1 DIV - col1 FROM tab0
----
69
7386
815

skipif mysql # not compatible
query I rowsort label-1746
SELECT ALL CAST ( col0 AS INTEGER ) + col2 * + col0 + + tab0.col1 / - col1 FROM tab0
----
69
7386
815

query I rowsort
SELECT - col2 - + cor0.col1 AS col0 FROM tab1 AS cor0
----
-109
-67
-80

query I rowsort
SELECT + 31 + + col1 * + col2 FROM tab2 AS cor0
----
1565
677
868

query I rowsort
SELECT ALL - col1 * - col1 + col2 FROM tab2
----
327
3507
988

query I rowsort
SELECT ALL + ( - col2 ) + col1 FROM tab0
----
53
9
96

query I rowsort
SELECT DISTINCT - 57 + - col0 FROM tab0
----
-146
-81
-92

query I rowsort
SELECT DISTINCT tab1.col2 * col0 + + tab1.col0 * - col2 FROM tab1
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-1753
SELECT col2 DIV 76 AS col1 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-1753
SELECT col2 / 76 AS col1 FROM tab0 AS cor0
----
0
0
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-1754
SELECT ALL + - col0 DIV - cor0.col2 FROM tab0 AS cor0
----
0
1
35

skipif mysql # not compatible
query I rowsort label-1754
SELECT ALL + - col0 / - cor0.col2 FROM tab0 AS cor0
----
0
1
35

query I rowsort
SELECT DISTINCT ( + col2 ) * - ( + tab2.col2 ) AS col1 FROM tab2
----
-1444
-676
-729

query I rowsort
SELECT ALL 82 FROM tab1, tab0 AS cor0, tab0 cor1
----
27 values hashing to 99920d9f7cd9cdccef99cfa459ae6944

onlyif mysql # use DIV operator for integer division
query I rowsort label-1757
SELECT DISTINCT - col1 DIV + col2 AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1757
SELECT DISTINCT - col1 / + col2 AS col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT + col0 + col1 * cor0.col0 AS col0 FROM tab0 AS cor0
----
2088
3430
8188

query I rowsort
SELECT ALL col1 * - ( - ( + col0 ) ) AS col2 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT ALL + col1 * 12 AS col2 FROM tab1 cor0
----
120
156
312

query I rowsort
SELECT + col1 + - cor0.col1 FROM tab2 cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-1762
SELECT ALL + tab0.col1 * + col1 DIV - col1 FROM tab0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-1762
SELECT ALL + tab0.col1 * + col1 / - col1 FROM tab0
----
-86
-91
-97

query I rowsort
SELECT + + col1 + - col2 * col1 AS col1 FROM tab0 AS cor0
----
-2752
-7371
0

query I rowsort
SELECT ( col0 ) * - col0 AS col1 FROM tab2
----
-49
-6084
-6241

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col2 * col0 + col0 * col1 col1 FROM tab1 AS cor0
----
-207296
-736240
-8670

onlyif mysql # use DIV operator for integer division
query I rowsort label-1766
SELECT + col1 * col2 * col1 + + col2 DIV + col2 AS col2 FROM tab0 AS cor0
----
244069
679043
9410

skipif mysql # not compatible
query I rowsort label-1766
SELECT + col1 * col2 * col1 + + col2 / + col2 AS col2 FROM tab0 AS cor0
----
244069
679043
9410

query I rowsort
SELECT ALL 94 * + col2 AS col1 FROM tab2 AS cor0
----
2444
2538
3572

query I rowsort
SELECT DISTINCT col0 * col1 + - cor0.col1 FROM tab2 AS cor0
----
1326
186
4543

query I rowsort
SELECT ALL + - 11 * col2 FROM tab0 AS cor0
----
-11
-363
-902

query I rowsort
SELECT DISTINCT 4 + col0 AS col2 FROM tab1 cor0
----
68
7
84

query I rowsort
SELECT - + col1 * col1 + - col1 AS col1 FROM tab2 AS cor0
----
-306
-3540
-992

query I rowsort
SELECT - - col2 * - col0 + col1 AS col1 FROM tab2 AS cor0
----
-158
-1969
-2985

query I rowsort
SELECT + - 86 AS col1 FROM tab2 AS cor0
----
-86
-86
-86

query I rowsort
SELECT DISTINCT + 61 + col0 AS col2 FROM tab1 AS cor0
----
125
141
64

query I rowsort
SELECT DISTINCT + + 92 * - col2 * - col0 AS col2 FROM tab1 AS cor0
----
14904
335616
706560

query I rowsort
SELECT DISTINCT - cor0.col0 AS col2 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
-3
-64
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 col1 FROM tab2, tab0 cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc

query I rowsort
SELECT - + 17 * + col2 FROM tab0 AS cor0
----
-1394
-17
-561

query I rowsort
SELECT ALL - col1 * - col1 - - 66 AS col0 FROM tab1 cor0
----
166
235
742

query I rowsort
SELECT ALL - - ( cor0.col2 ) * col0 + + col0 * col1 * col0 AS col2 FROM tab0 AS cor0
----
118860
50328
728109

query I rowsort
SELECT ALL 82 * 57 FROM tab1, tab1 AS cor0
----
9 values hashing to e533dc2ad8310783bdaa49a537a186fd

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1782
SELECT - CAST( col0 AS SIGNED ) + + col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1782
SELECT - CAST ( col0 AS INTEGER ) + + col0 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1783
SELECT DISTINCT - - CAST( ( col0 ) AS SIGNED ) AS col1 FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-1783
SELECT DISTINCT - - CAST ( ( col0 ) AS INTEGER ) AS col1 FROM tab0 AS cor0
----
24
35
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-1784
SELECT - col2 + - 22 DIV col1 + + col2 * - 7 FROM tab0
----
-264
-656
-8

skipif mysql # not compatible
query I rowsort label-1784
SELECT - col2 + - 22 / col1 + + col2 * - 7 FROM tab0
----
-264
-656
-8

query I rowsort
SELECT - col1 * - tab2.col1 * - col2 FROM tab2
----
-10982
-25947
-90506

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 42 + tab1.col0 + + col0 col0 FROM tab1
----
170
202
48

query I rowsort
SELECT DISTINCT - tab2.col0 * - col0 + - col0 AS col2 FROM tab2
----
42
6006
6162

onlyif mysql # use DIV operator for integer division
query I rowsort label-1788
SELECT - ( + col1 ) DIV col1 + 70 * 75 AS col1 FROM tab1
----
5249
5249
5249

skipif mysql # not compatible
query I rowsort label-1788
SELECT - ( + col1 ) / col1 + 70 * 75 AS col1 FROM tab1
----
5249
5249
5249

query I rowsort
SELECT 68 + col1 AS col0 FROM tab1 AS cor0
----
78
81
94

query I rowsort
SELECT ALL - + cor0.col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab1 AS cor0, tab2 cor1, tab1, tab2 AS cor2
----
3645 values hashing to e3f81e329d34d83e4528a9ef7b933946

query I rowsort
SELECT ALL - 93 AS col2 FROM tab1, tab2 AS cor0 CROSS JOIN tab0
----
27 values hashing to ea79c61f7a02d25805171f5e85229fba

query I rowsort
SELECT ( 99 ) AS col1 FROM tab2
----
99
99
99

query I rowsort
SELECT - 97 * + col0 FROM tab0
----
-2328
-3395
-8633

query I rowsort
SELECT + 72 * - 62 AS col1 FROM tab1
----
-4464
-4464
-4464

query I rowsort
SELECT ALL col2 + - col2 * + col2 AS col0 FROM tab2
----
-1406
-650
-702

onlyif mysql # use DIV operator for integer division
query I rowsort label-1797
SELECT DISTINCT + cor0.col2 + - col2 DIV - col0 AS col0 FROM tab0 AS cor0
----
1
34
82

skipif mysql # not compatible
query I rowsort label-1797
SELECT DISTINCT + cor0.col2 + - col2 / - col0 AS col0 FROM tab0 AS cor0
----
1
34
82

query I rowsort
SELECT + 2 - - col2 FROM tab2 AS cor0
----
28
29
40

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1799
SELECT ALL - - CAST( + col2 AS SIGNED ) + cor0.col1 AS col0 FROM tab1 AS cor0
----
109
67
80

skipif mysql # not compatible
query I rowsort label-1799
SELECT ALL - - CAST ( + col2 AS INTEGER ) + cor0.col1 AS col0 FROM tab1 AS cor0
----
109
67
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab2.col2 col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3

query I rowsort
SELECT ALL 29 AS col2 FROM tab0, tab2 cor0
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2

query I rowsort
SELECT ALL + 29 * - cor0.col1 AS col0 FROM tab2 AS cor0
----
-1711
-493
-899

query I rowsort
SELECT ALL - + 31 FROM tab0 cor0
----
-31
-31
-31

query I rowsort
SELECT DISTINCT - + 71 FROM tab0 cor0
----
-71

query I rowsort
SELECT - 29 + col1 * + tab0.col0 FROM tab0
----
2035
3366
8070

query I rowsort
SELECT 51 + col2 * - 41 AS col0 FROM tab0
----
-1302
-3311
10

onlyif mysql # use DIV operator for integer division
query I rowsort label-1807
SELECT - + col0 DIV + cor0.col0 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1807
SELECT - + col0 / + cor0.col0 FROM tab2 AS cor0
----
-1
-1
-1

query I rowsort
SELECT col1 + + cor0.col2 * col0 + - col1 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT DISTINCT + - 3 + - col2 * + col2 AS col2 FROM tab2 cor0
----
-1447
-679
-732

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1810
SELECT + CAST( NULL AS SIGNED ) / + cor0.col2 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-1810
SELECT + CAST ( NULL AS INTEGER ) / + cor0.col2 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 * - 72 col2 FROM tab0, tab0 cor0
----
9 values hashing to 845fd9de767a635bfd6049e4d02a7196

query I rowsort
SELECT cor0.col2 + 32 FROM tab0, tab2 cor0
----
9 values hashing to fee81ba10aba30885eaaa6edafd5c451

query I rowsort
SELECT + col0 + col0 + - col1 FROM tab2
----
-17
141
97

query I rowsort
SELECT ALL 99 + tab1.col1 AS col2 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to fe54fc29f2715a04ec90a410f62bbdb5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * col2 + + col0 col0 FROM tab1
----
1328
1407
634

query I rowsort
SELECT ALL col2 + - 54 AS col0 FROM tab2
----
-16
-27
-28

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1817
SELECT DISTINCT col2 + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1817
SELECT DISTINCT col2 + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL - + col0 * col2 + - ( + col0 ) FROM tab0 AS cor0
----
-70
-7387
-816

query I rowsort
SELECT ALL cor0.col0 * cor0.col1 - 82 * + col2 FROM tab1 cor0
----
-4034
-4350
-6832

query I rowsort
SELECT ALL col1 + col2 * + col0 AS col2 FROM tab0 AS cor0
----
132
7389
878

query I rowsort
SELECT ALL - cor0.col2 * - 26 - col0 AS col2 FROM tab1 cor0
----
1401
1418
2416

query I rowsort
SELECT DISTINCT 28 * col1 FROM tab1 AS cor0
----
280
364
728

query I rowsort
SELECT ALL - 1 * + col2 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT + 3 * col0 + - col0 FROM tab2 cor0
----
14
156
158

query I rowsort
SELECT ALL + + col0 * + col2 + col1 + + col1 AS col0 FROM tab2 AS cor0
----
2146
251
3036

query I rowsort
SELECT + 14 + - col1 AS col2 FROM tab1 AS cor0
----
-12
1
4

query I rowsort
SELECT DISTINCT + col1 * + col2 + + cor0.col0 FROM tab2 AS cor0
----
1612
725
844

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + col1 * - col0 col1 FROM tab1 AS cor0
----
-1027
-52
-630

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * + col0 - - cor0.col0 col0 FROM tab1 AS cor0
----
165
3712
7760

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1830
SELECT DISTINCT - CAST( col0 AS SIGNED ) * col1 AS col2 FROM tab2 AS cor0
----
-1343
-217
-4602

skipif mysql # not compatible
query I rowsort label-1830
SELECT DISTINCT - CAST ( col0 AS INTEGER ) * col1 AS col2 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT - 66 * col2 + + col2 * - ( + 25 * col0 ) FROM tab1 AS cor0
----
-198336
-7614
-94962

query I rowsort
SELECT DISTINCT - 81 + 4 + - cor0.col0 FROM tab0 AS cor0
----
-101
-112
-166

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1833
SELECT DISTINCT + + CAST( NULL AS SIGNED ) + col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1833
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) + col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + col1 + col1 + - col0 AS col1 FROM tab1
----
-44
-54
49

onlyif mysql # use DIV operator for integer division
query I rowsort label-1835
SELECT DISTINCT + tab0.col1 DIV - tab0.col1 - tab0.col0 col0 FROM tab0
----
-25
-36
-90

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1835
SELECT DISTINCT + tab0.col1 / - tab0.col1 - tab0.col0 col0 FROM tab0
----
-25
-36
-90

query I rowsort
SELECT DISTINCT - col1 * col0 * col0 - - cor0.col2 AS col0 FROM tab2 AS cor0
----
-106059
-1492
-358930

query I rowsort
SELECT DISTINCT 39 + cor0.col1 FROM tab2 AS cor0
----
56
70
98

query I rowsort
SELECT + col1 * col0 - + cor0.col2 FROM tab1 AS cor0
----
24
583
944

onlyif mysql # use DIV operator for integer division
query I rowsort label-1839
SELECT DISTINCT - col2 DIV tab1.col2 - col1 DIV + col2 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-1839
SELECT DISTINCT - col2 / tab1.col2 - col1 / + col2 FROM tab1
----
-1

query I rowsort
SELECT DISTINCT + col0 * - 52 FROM tab1
----
-156
-3328
-4160

query I rowsort
SELECT DISTINCT + col1 * - col2 - - 54 FROM tab0 AS cor0
----
-2784
-43
-7408

query I rowsort
SELECT ALL - + col1 * 85 + col0 AS col2 FROM tab0 AS cor0
----
-7286
-7646
-8210

query I rowsort
SELECT DISTINCT - 72 AS col1 FROM tab2, tab0 AS cor0
----
-72

query I rowsort
SELECT DISTINCT cor0.col0 + - 23 AS col2 FROM tab1 AS cor0
----
-20
41
57

query I rowsort
SELECT ALL - + col2 * + cor0.col2 + cor0.col1 AS col0 FROM tab1 AS cor0
----
-2890
-3239
-9203

query I rowsort
SELECT ALL + + col1 + 47 AS col2 FROM tab0 AS cor0
----
133
138
144

onlyif mysql # use DIV operator for integer division
query I rowsort label-1847
SELECT ALL col1 DIV col0 + - 57 FROM tab1 AS cor0
----
-49
-57
-57

skipif mysql # not compatible
query I rowsort label-1847
SELECT ALL col1 / col0 + - 57 FROM tab1 AS cor0
----
-49
-57
-57

query I rowsort
SELECT + 64 * + ( col1 ) AS col2 FROM tab2 AS cor0
----
1088
1984
3776

query I rowsort
SELECT DISTINCT + - col0 * ( cor0.col0 * + 90 ) + - 90 AS col0 FROM tab2 AS cor0
----
-4500
-547650
-561780

query I rowsort
SELECT + col0 + 50 AS col2 FROM tab1 AS cor0
----
114
130
53

query I rowsort
SELECT + 32 + + col0 * - col1 FROM tab0 AS cor0
----
-2032
-3363
-8067

query I rowsort
SELECT + col2 * ( + col0 ) + 15 AS col0 FROM tab2 AS cor0
----
204
2043
3017

query I rowsort
SELECT + - 24 + + col2 FROM tab2 AS cor0
----
14
2
3

query I rowsort
SELECT ALL + ( col0 ) * - col1 AS col0 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT + - col2 + col1 + - cor0.col1 AS col2 FROM tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT DISTINCT 66 AS col0 FROM tab0 cor0
----
66

onlyif mysql # use DIV operator for integer division
query I rowsort label-1857
SELECT + cor0.col2 * - col2 + + ( 93 ) + + col0 DIV + col0 FROM tab2 cor0
----
-1350
-582
-635

skipif mysql # not compatible
query I rowsort label-1857
SELECT + cor0.col2 * - col2 + + ( 93 ) + + col0 / + col0 FROM tab2 cor0
----
-1350
-582
-635

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - cor0.col1 * + col0 col2 FROM tab0 AS cor0
----
2064
3395
8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-1859
SELECT DISTINCT - + 68 DIV col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1859
SELECT DISTINCT - + 68 / col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT - col1 * col1 * ( - 82 ) FROM tab0 AS cor0
----
606472
679042
771538

query I rowsort
SELECT ALL + + 63 AS col2 FROM tab2 cor0
----
63
63
63

query I rowsort
SELECT DISTINCT - 65 * + col1 FROM tab0 AS cor0
----
-5590
-5915
-6305

onlyif mysql # use DIV operator for integer division
query I rowsort label-1863
SELECT ALL - - 31 DIV cor0.col2 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1863
SELECT ALL - - 31 / cor0.col2 AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + - cor0.col0 + + col2 * 9 FROM tab0 AS cor0
----
-26
273
649

query I rowsort
SELECT cor0.col1 * cor0.col1 + + col0 FROM tab1 AS cor0
----
164
249
679

query I rowsort
SELECT ALL col1 + - col0 * + 74 AS col2 FROM tab0 AS cor0
----
-1690
-2493
-6495

query I rowsort
SELECT ALL - - col1 + + col1 - + ( - col2 ) AS col0 FROM tab0 AS cor0
----
195
205
264

query I rowsort
SELECT + - col0 + col0 * col1 AS col0 FROM tab0 AS cor0
----
2040
3360
8010

query I rowsort
SELECT DISTINCT 54 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
54

query I rowsort
SELECT + 26 + + 67 FROM tab2, tab1 cor0, tab0 cor1
----
27 values hashing to 85ef191bf1b307f300b3fd49992fcae7

query I rowsort
SELECT + ( - col0 * ( ( + tab2.col0 ) ) ) FROM tab2
----
-49
-6084
-6241

query I rowsort
SELECT + 74 * col0 AS col1 FROM tab2
----
518
5772
5846

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1873
SELECT + 78 * + col0 + - CAST( col2 AS SIGNED ) AS col0 FROM tab1
----
180
4935
6144

skipif mysql # not compatible
query I rowsort label-1873
SELECT + 78 * + col0 + - CAST ( col2 AS INTEGER ) AS col0 FROM tab1
----
180
4935
6144

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab2, tab0 cor1, tab0 cor2, tab1 AS cor3
----
3645 values hashing to 25b043ae64f25e8f205735b09d2d3d6a

query I rowsort
SELECT + col2 * cor0.col2 * + col0 AS col2 FROM tab0 cor0
----
26136
35
598436

query I rowsort
SELECT + col2 + + 27 FROM tab2 AS cor0
----
53
54
65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col0 col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a

query I rowsort
SELECT + cor0.col2 + - 40 FROM tab1, tab0 AS cor0
----
9 values hashing to d1d9bcf9f3a39c21b72c24ae2e610ef1

query I rowsort
SELECT col0 * 39 + col2 AS col0 FROM tab1
----
171
2553
3216

query I rowsort
SELECT ALL col2 * 79 FROM tab0 AS cor0
----
2607
6478
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-1881
SELECT - + col2 + + 89 DIV - col1 col1 FROM tab1 AS cor0
----
-102
-57
-65

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1881
SELECT - + col2 + + 89 / - col1 col1 FROM tab1 AS cor0
----
-102
-57
-65

onlyif mysql # use DIV operator for integer division
query I rowsort label-1882
SELECT DISTINCT - col1 DIV col2 + col0 FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-1882
SELECT DISTINCT - col1 / col2 + col0 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT ALL + 3 + + col0 AS col0 FROM tab1 cor0
----
6
67
83

query I rowsort
SELECT DISTINCT - ( col1 ) + - ( ( + col0 ) ) AS col2 FROM tab2 AS cor0
----
-137
-38
-96

query I rowsort
SELECT - 6 * cor0.col1 + col1 AS col0 FROM tab2 cor0
----
-155
-295
-85

onlyif mysql # use DIV operator for integer division
query I rowsort label-1886
SELECT DISTINCT 18 * col2 DIV - col0 FROM tab0
----
-16
-24
0

skipif mysql # not compatible
query I rowsort label-1886
SELECT DISTINCT 18 * col2 / - col0 FROM tab0
----
-16
-24
0

query I rowsort
SELECT ALL col0 - tab2.col0 FROM tab2
----
0
0
0

query I rowsort
SELECT col1 * col1 * + col0 AS col0 FROM tab1
----
13520
2028
6400

query I rowsort
SELECT DISTINCT - col2 - - tab2.col2 FROM tab2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + tab0.col0 + - col0 col2 FROM tab0
----
-2088
-3430
-8188

query I rowsort
SELECT ALL tab0.col0 * + tab0.col0 FROM tab0
----
1225
576
7921

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * + col2 col1 FROM tab0
----
-35
-7298
-792

query I rowsort
SELECT DISTINCT - col1 * - col2 * - tab2.col2 FROM tab2
----
-22599
-24548
-39884

query I rowsort
SELECT - col0 FROM tab0 WHERE NOT NULL NOT IN ( - col0 * tab0.col1 * tab0.col0 - + col0 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( - col2 * - col1 ) <> NULL
----

query I rowsort
SELECT col0 + cor0.col2 + + col2 FROM tab2 cor0
----
130
155
61

query I rowsort
SELECT ALL - col1 * cor0.col2 + - ( cor0.col1 ) + + col2 FROM tab1 AS cor0
----
-1165
-1376
-523

query I rowsort
SELECT ALL col0 + cor0.col0 + - col1 FROM tab2 AS cor0
----
-17
141
97

query I rowsort
SELECT tab1.col1 + - col2 + - tab1.col1 / col2 AS col0 FROM tab1 WHERE NOT col1 NOT IN ( - tab1.col2 * + tab1.col2 )
----

query I rowsort
SELECT DISTINCT + col2 * + col1 + tab2.col2 FROM tab2
----
1560
684
864

query I rowsort
SELECT - tab0.col1 * col0 + col0 * - col2 FROM tab0
----
-15397
-2856
-3430

query I rowsort
SELECT ALL - tab2.col0 * + col0 + col2 AS col0 FROM tab2
----
-22
-6058
-6203

query I rowsort
SELECT + col0 * col1 + - col0 FROM tab2
----
1264
210
4524

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 > - col1
----

query I rowsort
SELECT col1 - col1 AS col1 FROM tab0 WHERE + col2 IN ( - col1 )
----

query I rowsort
SELECT ALL - col0 * - col0 AS col0 FROM tab0 cor0
----
1225
576
7921

query I rowsort
SELECT col0 AS col1 FROM tab0 WHERE ( col0 ) >= NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-1908
SELECT ALL col1 DIV - col0 AS col2 FROM tab2 AS cor0
----
-4
0
0

skipif mysql # not compatible
query I rowsort label-1908
SELECT ALL col1 / - col0 AS col2 FROM tab2 AS cor0
----
-4
0
0

query I rowsort
SELECT DISTINCT - col2 + col0 * tab1.col1 * tab1.col1 FROM tab1
----
13424
1974
6343

query I rowsort
SELECT tab2.col2 + col2 * - tab2.col1 * + col0 FROM tab2
----
-119626
-50996
-5832

onlyif mysql # use DIV operator for integer division
query I rowsort label-1911
SELECT + col1 DIV col2 + col2 FROM tab1
----
54
57
96

skipif mysql # not compatible
query I rowsort label-1911
SELECT + col1 / col2 + col2 FROM tab1
----
54
57
96

query I rowsort
SELECT DISTINCT tab1.col2 - - col2 AS col0 FROM tab1
----
108
114
192

query I rowsort
SELECT ALL + col1 + tab1.col2 * col1 AS col2 FROM tab1
----
1261
1430
580

query I rowsort
SELECT tab1.col1 + col2 * col2 * - col1 FROM tab1
----
-119795
-32480
-75790

query I rowsort
SELECT ALL col0 - - tab1.col0 AS col2 FROM tab1
----
128
160
6

query I rowsort
SELECT tab1.col1 + + tab1.col0 + - tab1.col1 FROM tab1
----
3
64
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 col0 FROM tab1 WHERE NULL NOT IN ( col0 )
----

query I rowsort
SELECT DISTINCT tab0.col1 + col0 + + col2 FROM tab0
----
133
143
262

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT IN ( col1 - + col1 * + col2 )
----

query I rowsort
SELECT - col2 * col2 + - col0 + + col2 * col1 AS col2 FROM tab0
----
1725
61
649

query I rowsort
SELECT tab0.col1 FROM tab0 WHERE NOT NULL IN ( col1 )
----

query I rowsort
SELECT DISTINCT + 16 * col2 * + cor0.col0 AS col2 FROM tab2 AS cor0
----
3024
32448
48032

query I rowsort
SELECT col2 + col2 * cor0.col0 FROM tab2 AS cor0
----
2054
216
3040

query I rowsort
SELECT - cor1.col0 AS col1 FROM tab2, tab0 AS cor0, tab0 AS cor1, tab2 AS cor2
----
81 values hashing to 26e45cd9fe71a2b90a8bdef20c88e70d

query I rowsort
SELECT + + col1 * - 78 + col1 + col1 FROM tab2 AS cor0
----
-1292
-2356
-4484

query I rowsort
SELECT ALL + 72 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49

query I rowsort
SELECT col0 * 57 FROM tab0
----
1368
1995
5073

query I rowsort
SELECT ALL col0 + - col2 * + col2 * col1 FROM tab0
----
-611795
-62
-93630

query I rowsort
SELECT DISTINCT + ( col1 ) * + col1 + 25 * col1 * + col2 AS col2 FROM tab2
----
16439
21886
41831

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + - tab2.col1 col0 FROM tab2
----
-33
-4
21

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1931
SELECT ALL - - CAST( NULL AS SIGNED ) + + cor0.col1 * col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1931
SELECT ALL - - CAST ( NULL AS INTEGER ) + + cor0.col1 * col1 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 89 * col2 + col2 AS col2 FROM tab2
----
2340
2430
3420

query I rowsort
SELECT 22 FROM tab0, tab1 AS cor0, tab1 AS cor1, tab2 AS cor2
----
81 values hashing to c6f049334398e3533dd6996714479a2f

query I rowsort
SELECT - - 79 * 86 + col2 FROM tab0 AS cor0
----
6795
6827
6876

query I rowsort
SELECT cor0.col1 + ( + col2 ) FROM tab2 AS cor0
----
55
58
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * - 94 * + cor0.col2 col2 FROM tab2 AS cor0
----
144196
60724
78678

query I rowsort
SELECT + 28 * tab2.col2 - 12 AS col0 FROM tab2
----
1052
716
744

onlyif mysql # use DIV operator for integer division
query I rowsort label-1938
SELECT col2 DIV + col0 + ( - tab1.col2 ) * tab1.col0 * 38 AS col1 FROM tab1
----
-138624
-291839
-6138

skipif mysql # not compatible
query I rowsort label-1938
SELECT col2 / + col0 + ( - tab1.col2 ) * tab1.col0 * 38 AS col1 FROM tab1
----
-138624
-291839
-6138

query I rowsort
SELECT ALL + - cor0.col2 * + col2 + + 56 FROM tab2 AS cor0
----
-1388
-620
-673

onlyif mysql # use DIV operator for integer division
query I rowsort label-1940
SELECT DISTINCT + - col0 DIV + 36 + col1 * + col2 FROM tab2 AS cor0
----
1532
644
837

skipif mysql # not compatible
query I rowsort label-1940
SELECT DISTINCT + - col0 / + 36 + col1 * + col2 FROM tab2 AS cor0
----
1532
644
837

onlyif mysql # use DIV operator for integer division
query I rowsort label-1941
SELECT DISTINCT - - col1 DIV + col0 AS col0 FROM tab2 AS cor0
----
0
4

skipif mysql # not compatible
query I rowsort label-1941
SELECT DISTINCT - - col1 / + col0 AS col0 FROM tab2 AS cor0
----
0
4

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1942
SELECT ALL - col0 * - CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1942
SELECT ALL - col0 * - CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-1943
SELECT DISTINCT - col1 DIV - col2 + + cor0.col2 AS col1 FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-1943
SELECT DISTINCT - col1 / - col2 + + cor0.col2 AS col1 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT ALL + + col1 * - 96 AS col1 FROM tab2 AS cor0
----
-1632
-2976
-5664

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + cor0.col2 * cor0.col1 col0 FROM tab1 AS cor0
----
1168
1401
506

query I rowsort
SELECT DISTINCT col0 + col1 * col1 FROM tab1 cor0
----
164
249
679

query I rowsort
SELECT DISTINCT + + col2 + 44 FROM tab2 AS cor0
----
70
71
82

query I rowsort
SELECT ALL + col0 * + 41 AS col0 FROM tab2 AS cor0
----
287
3198
3239

query I rowsort
SELECT DISTINCT - + col2 * + 81 + - cor0.col0 FROM tab2 cor0
----
-2184
-2194
-3157

query I rowsort
SELECT DISTINCT - col0 * 55 - col0 FROM tab0 AS cor0
----
-1344
-1960
-4984

onlyif mysql # use DIV operator for integer division
query I rowsort label-1951
SELECT - + col2 + cor0.col1 DIV 2 FROM tab2 AS cor0
----
-12
-30
3

skipif mysql # not compatible
query I rowsort label-1951
SELECT - + col2 + cor0.col1 / 2 FROM tab2 AS cor0
----
-12
-30
3

query I rowsort
SELECT DISTINCT + cor0.col2 + - 42 * + 75 AS col2 FROM tab1 AS cor0
----
-3054
-3093
-3096

query I rowsort
SELECT - col1 + + ( - col0 ) * col0 FROM tab0 cor0
----
-1322
-662
-8012

onlyif mysql # use DIV operator for integer division
query I rowsort label-1954
SELECT + col0 DIV + ( - 50 * col1 + col1 ) AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1954
SELECT + col0 / + ( - 50 * col1 + col1 ) AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - + 55 AS col1 FROM tab1 cor0
----
-55
-55
-55

query I rowsort
SELECT ALL + ( tab0.col2 ) FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT ALL + col1 * tab1.col2 AS col2 FROM tab1
----
1248
1404
570

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1958
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col0 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-1958
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
NULL

query I rowsort
SELECT - 16 AS col1 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 71c8b08964ab47ce12158975c0ee1fd9

query I rowsort
SELECT ALL + 59 * + tab0.col0 AS col2 FROM tab0
----
1416
2065
5251

query I rowsort
SELECT ( + cor1.col1 ) FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1962
SELECT - - col0 * - cor0.col0 / - CAST( NULL AS DECIMAL ) AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1962
SELECT - - col0 * - cor0.col0 / - CAST ( NULL AS REAL ) AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT tab0.col0 + col1 * - ( col2 + - 75 ) AS col0 FROM tab0
----
-548
3636
7213

query I rowsort
SELECT DISTINCT + col0 * col2 + - col2 * col1 AS col0 FROM tab1
----
-1242
3078
6432

query I rowsort
SELECT col1 + col2 * + 42 * col2 FROM tab0
----
139
282499
45824

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1966
SELECT ALL + col1 + + CAST( NULL AS SIGNED ) / - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1966
SELECT ALL + col1 + + CAST ( NULL AS INTEGER ) / - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 + 86 * + col0 FROM tab2 AS cor0
----
609
6786
6873

query I rowsort
SELECT col0 - + 10 AS col0 FROM tab0 AS cor0
----
14
25
79

query I rowsort
SELECT DISTINCT tab1.col2 * + ( 66 ) AS col1 FROM tab1
----
3564
3762
6336

query I rowsort
SELECT DISTINCT cor0.col0 + 13 FROM tab1, tab0, tab2 AS cor0
----
20
91
92

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1971
SELECT + col1 * ( - ( - col1 ) * + CAST( - col1 AS SIGNED ) ) + cor0.col2 FROM tab0 cor0
----
-636023
-753489
-912672

skipif mysql # not compatible
query I rowsort label-1971
SELECT + col1 * ( - ( - col1 ) * + CAST ( - col1 AS INTEGER ) ) + cor0.col2 FROM tab0 cor0
----
-636023
-753489
-912672

query I rowsort
SELECT col1 + 94 FROM tab2 AS cor0
----
111
125
153

query I rowsort
SELECT DISTINCT col2 * - 57 FROM tab2 AS cor0
----
-1482
-1539
-2166

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 - - 96 * cor0.col1 + col2 col0 FROM tab0 AS cor0
----
8289
8818
9313

query I rowsort
SELECT DISTINCT - - 99 + 3 FROM tab0 cor0
----
102

onlyif mysql # use DIV operator for integer division
query I rowsort label-1977
SELECT - col1 DIV - col1 + col1 * + col1 + 77 col1 FROM tab2 AS cor0
----
1039
3559
367

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1977
SELECT - col1 / - col1 + col1 * + col1 + 77 col1 FROM tab2 AS cor0
----
1039
3559
367

onlyif mysql # use DIV operator for integer division
query I rowsort label-1978
SELECT ALL - - 4 * col2 + col2 DIV 73 FROM tab1 AS cor0
----
216
228
385

skipif mysql # not compatible
query I rowsort label-1978
SELECT ALL - - 4 * col2 + col2 / 73 FROM tab1 AS cor0
----
216
228
385

query I rowsort
SELECT - 15 + 90 * - col2 AS col2 FROM tab0 AS cor0
----
-105
-2985
-7395

query I rowsort
SELECT - ( col0 ) * col1 + + 19 FROM tab2 AS cor0
----
-1324
-198
-4583

query I rowsort
SELECT ALL - 22 - col0 FROM tab1
----
-102
-25
-86

query I rowsort
SELECT - 58 * col0 + + col2 FROM tab2 AS cor0
----
-379
-4498
-4544

query I rowsort
SELECT ALL 73 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496

query I rowsort
SELECT ALL 47 * - col0 - col0 FROM tab2
----
-336
-3744
-3792

onlyif mysql # use DIV operator for integer division
query I rowsort label-1985
SELECT - CAST( 43 AS SIGNED ) DIV col2 + + col2 * + 93 AS col1 FROM tab1 AS cor0
----
5022
5301
8928

skipif mysql # not compatible
query I rowsort label-1985
SELECT - CAST ( 43 AS INTEGER ) / col2 + + col2 * + 93 AS col1 FROM tab1 AS cor0
----
5022
5301
8928

query I rowsort
SELECT ALL - ( col2 ) * 84 AS col1 FROM tab2 AS cor0
----
-2184
-2268
-3192

query I rowsort
SELECT DISTINCT - col0 + - col1 * - 58 AS col1 FROM tab2 AS cor0
----
1791
3344
907

query I rowsort
SELECT ALL + 18 * col1 * + ( - 43 ) - + col0 FROM tab2 AS cor0
----
-13237
-24001
-45744

query I rowsort
SELECT DISTINCT cor0.col2 + cor0.col0 * col2 AS col0 FROM tab1 AS cor0
----
216
3705
7776

query I rowsort
SELECT + col0 + + col1 * ( - col2 * + col0 ) AS col0 FROM tab2 cor0
----
-119574
-50955
-5852

query I rowsort
SELECT DISTINCT - - 3 + col1 AS col2 FROM tab2 AS cor0
----
20
34
62

query I rowsort
SELECT + 33 + - col1 AS col1 FROM tab2 cor0
----
-26
16
2

query I rowsort
SELECT + - col2 * - col1 AS col2 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT DISTINCT 44 * - col1 AS col0 FROM tab0
----
-3784
-4004
-4268

query I rowsort
SELECT - + cor0.col2 * col2 * col0 AS col2 FROM tab0 AS cor0
----
-26136
-35
-598436

query I rowsort
SELECT + - col2 + - col1 * col2 FROM tab1 AS cor0
----
-1344
-1458
-627

query I rowsort
SELECT - cor0.col1 * 5 AS col2 FROM tab1 AS cor0
----
-130
-50
-65

query I rowsort
SELECT DISTINCT - 9 AS col2 FROM tab1, tab2, tab1 AS cor0
----
-9

query I rowsort
SELECT - cor0.col2 + - 17 * col1 FROM tab1 AS cor0
----
-227
-317
-496

query I rowsort
SELECT - - col0 * 43 FROM tab2 AS cor0
----
301
3354
3397

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 * + 73 - cor1.col0 * - tab0.col0 col1 FROM tab0, tab0 AS cor0, tab1, tab1 cor1
----
81 values hashing to 6e55bb818cfd53a55dfcc436676a8416

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2002
SELECT ALL CAST( NULL AS SIGNED ) * - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2002
SELECT ALL CAST ( NULL AS INTEGER ) * - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col1 + - 61 * 3 FROM tab0
----
-86
-92
-97

query I rowsort
SELECT DISTINCT + 8 * - 9 AS col1 FROM tab0, tab2 AS cor0
----
-72

query I rowsort
SELECT ALL col1 * + 8 AS col1 FROM tab1
----
104
208
80

query I rowsort
SELECT ALL + 47 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

query I rowsort
SELECT ALL 55 AS col1 FROM tab0, tab0 cor0
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0

query I rowsort
SELECT - - col1 * - cor0.col1 + + col1 AS col0 FROM tab0 AS cor0
----
-7310
-8190
-9312

query I rowsort
SELECT ALL - col1 * col2 * 4 + - cor0.col1 FROM tab0 cor0
----
-11438
-29939
-485

query I rowsort
SELECT - cor0.col2 + + 65 + col2 FROM tab1 AS cor0
----
65
65
65

query I rowsort
SELECT ALL - - col0 * - 93 AS col1 FROM tab0 AS cor0
----
-2232
-3255
-8277

query I rowsort
SELECT ALL 35 * + col2 + - 97 AS col1 FROM tab1
----
1793
1898
3263

query I rowsort
SELECT DISTINCT 52 * - col2 * - col2 - - col0 AS col0 FROM tab1
----
151635
169012
479312

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - cor0.col2 ) col0 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT ALL col1 * - ( cor0.col1 ) AS col2 FROM tab0 AS cor0
----
-7396
-8281
-9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-2016
SELECT tab1.col1 + - col0 * 19 DIV - col1 col2 FROM tab1
----
129
131
28

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2016
SELECT tab1.col1 + - col0 * 19 / - col1 col2 FROM tab1
----
129
131
28

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2017
SELECT ALL col0 * - CAST( + col2 AS SIGNED ) FROM tab2 AS cor0
----
-189
-2028
-3002

skipif mysql # not compatible
query I rowsort label-2017
SELECT ALL col0 * - CAST ( + col2 AS INTEGER ) FROM tab2 AS cor0
----
-189
-2028
-3002

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2018
SELECT col2 * + CAST( NULL AS SIGNED ) + + col0 + - col1 * + ( col2 ) col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2018
SELECT col2 * + CAST ( NULL AS INTEGER ) + + col0 + - col1 * + ( col2 ) col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-2019
SELECT - col0 + - 72 + + cor0.col1 DIV - col1 FROM tab0 AS cor0
----
-108
-162
-97

skipif mysql # not compatible
query I rowsort label-2019
SELECT - col0 + - 72 + + cor0.col1 / - col1 FROM tab0 AS cor0
----
-108
-162
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-2020
SELECT DISTINCT - cor0.col0 DIV + col1 + 75 col2 FROM tab1 AS cor0
----
69
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2020
SELECT DISTINCT - cor0.col0 / + col1 + 75 col2 FROM tab1 AS cor0
----
69
75

query I rowsort
SELECT - - cor0.col0 + - 31 * + 68 FROM tab0 AS cor0
----
-2019
-2073
-2084

query I rowsort
SELECT DISTINCT - col2 * col1 + cor0.col1 * col0 FROM tab0 AS cor0
----
-774
3298
637

onlyif mysql # use DIV operator for integer division
query I rowsort label-2023
SELECT + col0 * - ( cor0.col0 ) + col2 DIV + col2 FROM tab1 AS cor0
----
-4095
-6399
-8

skipif mysql # not compatible
query I rowsort label-2023
SELECT + col0 * - ( cor0.col0 ) + col2 / + col2 FROM tab1 AS cor0
----
-4095
-6399
-8

query I rowsort
SELECT ALL cor0.col0 + - 83 AS col0 FROM tab0 cor0
----
-48
-59
6

query I rowsort
SELECT ( col2 ) * + col1 AS col0 FROM tab1 cor0
----
1248
1404
570

query I rowsort
SELECT - 81 + + col1 AS col1 FROM tab0 AS cor0
----
10
16
5

query I rowsort
SELECT ALL - + 80 + col2 * - col2 AS col1 FROM tab2 AS cor0
----
-1524
-756
-809

query I rowsort
SELECT DISTINCT + ( 42 ) + - col0 AS col2 FROM tab2 AS cor0
----
-36
-37
35

query I rowsort
SELECT DISTINCT - 1 * cor0.col2 + cor0.col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL - + col0 * col1 - - col0 * + ( + col2 ) FROM tab1 AS cor0
----
3008
6640
84

query I rowsort
SELECT 24 AS col0 FROM tab2 cor0
----
24
24
24

query I rowsort
SELECT - + 13 AS col1 FROM tab1 cor0
----
-13
-13
-13

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( col0 ) * - col2 + col0 col1 FROM tab2 AS cor0
----
196
2106
3081

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 98 + - col2 col1 FROM tab2 AS cor0
----
-124
-125
-136

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 47 + cor0.col1 * + 65 col0 FROM tab0 AS cor0
----
5637
5962
6352

query I rowsort
SELECT + 64 + - col0 FROM tab1 AS cor0
----
-16
0
61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 77 col0 FROM tab2, tab2 AS cor0
----
-77

query I rowsort
SELECT DISTINCT + - col1 - col1 * ( - 58 ) AS col2 FROM tab0 AS cor0
----
4902
5187
5529

query I rowsort
SELECT ALL - 66 + col2 FROM tab2 cor0
----
-28
-39
-40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 6 + col0 col2 FROM tab2 AS cor0
----
13
84
85

query I rowsort
SELECT ALL - cor0.col0 - - col2 AS col2 FROM tab2 cor0
----
-41
-52
20

query I rowsort
SELECT ALL - 5 AS col2 FROM tab2 AS cor0
----
-5
-5
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 17 * col2 + + col2 col1 FROM tab1 AS cor0
----
1026
1728
972

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 + - col1 col1 FROM tab1 AS cor0
----
-20
-26
-52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 54 col1 FROM tab0 AS cor0
----
-54
-54
-54

query I rowsort
SELECT + + col1 * col1 * - ( col1 ) AS col1 FROM tab2 AS cor0
----
-205379
-29791
-4913

query I rowsort
SELECT DISTINCT - + 47 AS col1 FROM tab1 AS cor0
----
-47

query I rowsort
SELECT ALL - 72 * + col2 FROM tab2 cor0
----
-1872
-1944
-2736

query I rowsort
SELECT - - col0 - 94 * col2 AS col2 FROM tab0 AS cor0
----
-3078
-59
-7619

query I rowsort
SELECT - ( ( col1 ) ) AS col0 FROM tab0 AS cor0
----
-86
-91
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 98 + 24 col0 FROM tab1 AS cor0
----
-74
-74
-74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 96 * + col1 col1 FROM tab1 AS cor0
----
1248
2496
960

query I rowsort
SELECT DISTINCT - - 33 * + col0 AS col2 FROM tab0 cor0
----
1155
2937
792

query I rowsort
SELECT ALL col1 + + col1 + + col1 * + col0 FROM tab2
----
1377
279
4720

query I rowsort
SELECT DISTINCT cor1.col0 FROM tab1 AS cor0 CROSS JOIN tab2, tab1 AS cor1
----
3
64
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2056
SELECT CAST( NULL AS DECIMAL ) * - col1 + col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2056
SELECT CAST ( NULL AS REAL ) * - col1 + col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + ( - col0 ) + col2 * + 27 AS col1 FROM tab1
----
1455
1475
2512

query I rowsort
SELECT DISTINCT - 77 * - col0 FROM tab1
----
231
4928
6160

query I rowsort
SELECT ALL 45 * col2 FROM tab0
----
1485
3690
45

query I rowsort
SELECT - 33 * col1 + col2 FROM tab0
----
-2805
-2921
-3200

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 + + 20 col1 FROM tab1 AS cor0
----
100
23
84

query I rowsort
SELECT ALL - ( col0 ) + cor0.col0 AS col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + 24 * col2 + + col0 FROM tab2 AS cor0
----
655
702
991

query I rowsort
SELECT 66 + col0 FROM tab1
----
130
146
69

query I rowsort
SELECT ALL col2 * - 57 AS col2 FROM tab0
----
-1881
-4674
-57

query I rowsort
SELECT - col1 * 24 AS col1 FROM tab2 AS cor0
----
-1416
-408
-744

query I rowsort
SELECT - - col2 * ( col1 * - col2 ) AS col0 FROM tab2 cor0
----
-22599
-24548
-39884

query I rowsort
SELECT - col1 * col2 + + col0 + col0 AS col2 FROM tab1 AS cor0
----
-1088
-1398
-442

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2069
SELECT DISTINCT - col1 * + tab2.col0 + CAST( col1 AS SIGNED ) AS col0 FROM tab2
----
-1326
-186
-4543

skipif mysql # not compatible
query I rowsort label-2069
SELECT DISTINCT - col1 * + tab2.col0 + CAST ( col1 AS INTEGER ) AS col0 FROM tab2
----
-1326
-186
-4543

query I rowsort
SELECT 35 * cor0.col2 AS col0 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 96acc0d42ad4b82ea927b8cc773be1c3

query I rowsort
SELECT ALL - col0 * + col2 * + col2 + - ( tab0.col1 ) AS col0 FROM tab0
----
-132
-26222
-598527

query I rowsort
SELECT DISTINCT + col2 * + ( col0 ) AS col2 FROM tab0
----
35
7298
792

query I rowsort
SELECT ALL + ( - tab0.col2 + cor0.col1 ) AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 47a4227315817d5eeef3b762d3e2df42

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2074
SELECT + col0 + CAST( - col2 + col1 AS SIGNED ) FROM tab2
----
11
111
58

skipif mysql # not compatible
query I rowsort label-2074
SELECT + col0 + CAST ( - col2 + col1 AS INTEGER ) FROM tab2
----
11
111
58

query I rowsort
SELECT - col0 * - col0 * 67 FROM tab1
----
274432
428800
603

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2076
SELECT - CAST( + col1 + col0 AS SIGNED ) FROM tab2
----
-137
-38
-96

skipif mysql # not compatible
query I rowsort label-2076
SELECT - CAST ( + col1 + col0 AS INTEGER ) FROM tab2
----
-137
-38
-96

query I rowsort
SELECT ALL + ( col0 * + col2 ) FROM tab2
----
189
2028
3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-2078
SELECT - 64 + - cor0.col1 DIV col0 AS col1 FROM tab0 AS cor0
----
-65
-66
-67

skipif mysql # not compatible
query I rowsort label-2078
SELECT - 64 + - cor0.col1 / col0 AS col1 FROM tab0 AS cor0
----
-65
-66
-67

onlyif mysql # use DIV operator for integer division
query I rowsort label-2079
SELECT - ( col0 ) DIV + col0 FROM tab2 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2079
SELECT - ( col0 ) / + col0 FROM tab2 cor0
----
-1
-1
-1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2080
SELECT + CAST( + col0 + col2 * 35 AS SIGNED ) AS col0 FROM tab0
----
1179
2959
70

skipif mysql # not compatible
query I rowsort label-2080
SELECT + CAST ( + col0 + col2 * 35 AS INTEGER ) AS col0 FROM tab0
----
1179
2959
70

query I rowsort
SELECT DISTINCT col2 + - col0 * + ( + 86 + cor0.col0 ) AS col2 FROM tab0 cor0
----
-15493
-2607
-4234

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 - + col1 * ( col1 ) col2 FROM tab2 AS cor0
----
-251
-3455
-934

query I rowsort
SELECT - ( + col0 ) + ( col0 * + col0 ) AS col1 FROM tab0 AS cor0
----
1190
552
7832

query I rowsort
SELECT DISTINCT + - col0 * - col0 + - 95 FROM tab0 cor0
----
1130
481
7826

query I rowsort
SELECT + cor0.col1 + + col2 FROM tab1 cor0
----
109
67
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-2086
SELECT col0 DIV - col0 - + 90 * - cor0.col0 * + col1 AS col2 FROM tab0 AS cor0
----
185759
305549
728909

skipif mysql # not compatible
query I rowsort label-2086
SELECT col0 / - col0 - + 90 * - cor0.col0 * + col1 AS col2 FROM tab0 AS cor0
----
185759
305549
728909

query I rowsort
SELECT - col1 + col0 * - 45 * - col1 AS col2 FROM tab0 AS cor0
----
152678
364364
92794

query I rowsort
SELECT + - col1 - + col2 * col1 FROM tab0 AS cor0
----
-194
-2924
-7553

query I rowsort
SELECT DISTINCT - cor0.col2 + + cor0.col2 * 82 FROM tab2 AS cor0
----
2106
2187
3078

query I rowsort
SELECT DISTINCT ( - tab1.col0 ) * col2 FROM tab1
----
-162
-3648
-7680

query I rowsort
SELECT DISTINCT col2 + col2 - - col1 * col0 FROM tab1
----
1232
186
754

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 + - col2 col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2093
SELECT col0 DIV 71 + col2 FROM tab2 AS cor0
----
27
27
39

skipif mysql # not compatible
query I rowsort label-2093
SELECT col0 / 71 + col2 FROM tab2 AS cor0
----
27
27
39

query I rowsort
SELECT + - col2 * + cor0.col2 + ( col2 ) * + 34 AS col2 FROM tab0 AS cor0
----
-3936
33
33

onlyif mysql # use DIV operator for integer division
query I rowsort label-2095
SELECT - col0 DIV + col2 - + 86 * col1 col2 FROM tab1 AS cor0
----
-1118
-2236
-861

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2095
SELECT - col0 / + col2 - + 86 * col1 col2 FROM tab1 AS cor0
----
-1118
-2236
-861

query I rowsort
SELECT ALL col2 + - tab2.col2 * + tab2.col2 AS col2 FROM tab2
----
-1406
-650
-702

query I rowsort
SELECT col2 - + ( col1 ) AS col0 FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT - col0 * 44 + col2 FROM tab1 AS cor0
----
-2759
-3424
-78

query I rowsort
SELECT col0 + col1 * + col0 FROM tab1 AS cor0
----
1120
704
81

query I rowsort
SELECT DISTINCT - 73 * col2 AS col2 FROM tab2 AS cor0
----
-1898
-1971
-2774

onlyif mysql # use DIV operator for integer division
query I rowsort label-2101
SELECT - ( col0 ) DIV col2 + + 10 + - 39 AS col1 FROM tab1 AS cor0
----
-29
-29
-30

skipif mysql # not compatible
query I rowsort label-2101
SELECT - ( col0 ) / col2 + + 10 + - 39 AS col1 FROM tab1 AS cor0
----
-29
-29
-30

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2102
SELECT - - CAST( NULL AS SIGNED ) * cor0.col2 + + cor0.col1 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2102
SELECT - - CAST ( NULL AS INTEGER ) * cor0.col2 + + cor0.col1 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 * + 14 AS col0 FROM tab0 AS cor0
----
-1246
-336
-490

query I rowsort
SELECT + col1 * + 12 + + col2 + col1 AS col2 FROM tab0 AS cor0
----
1151
1262
1265

query I rowsort
SELECT col2 + + col2 * - col0 AS col1 FROM tab1 AS cor0
----
-108
-3591
-7584

query I rowsort
SELECT ALL + ( - col1 * tab0.col2 ) FROM tab0
----
-2838
-7462
-97

query I rowsort
SELECT ALL + 39 FROM tab2, tab2 AS cor0
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf

query I rowsort
SELECT DISTINCT - 32 AS col2 FROM tab1, tab1 AS cor0 CROSS JOIN tab0
----
-32

query I rowsort
SELECT + - cor0.col1 * 53 AS col1 FROM tab0 AS cor0
----
-4558
-4823
-5141

query I rowsort
SELECT ALL ( - col0 ) * - col1 AS col0 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT DISTINCT + col2 + 60 + - col0 * - cor0.col0 FROM tab0 AS cor0
----
1286
669
8063

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2112
SELECT - CAST( + 5 AS SIGNED ) * - col0 AS col0 FROM tab1 cor0
----
15
320
400

skipif mysql # not compatible
query I rowsort label-2112
SELECT - CAST ( + 5 AS INTEGER ) * - col0 AS col0 FROM tab1 cor0
----
15
320
400

onlyif mysql # use DIV operator for integer division
query I rowsort label-2113
SELECT ALL + - col0 * col0 DIV col1 FROM tab1 AS cor0
----
-409
-492
0

skipif mysql # not compatible
query I rowsort label-2113
SELECT ALL + - col0 * col0 / col1 FROM tab1 AS cor0
----
-409
-492
0

query I rowsort
SELECT ALL ( + ( col2 ) ) AS col0 FROM tab0 AS cor0
----
1
33
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-2115
SELECT CAST( - col2 AS SIGNED ) DIV - col2 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2115
SELECT CAST ( - col2 AS INTEGER ) / - col2 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT + - ( - 38 ) AS col1 FROM tab0 AS cor0
----
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 65 col1 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 1c9d0bf96cd3361942fadad668138b9c

onlyif mysql # use DIV operator for integer division
query I rowsort label-2118
SELECT col1 DIV col2 + + col1 * col2 AS col1 FROM tab1
----
1248
1404
570

skipif mysql # not compatible
query I rowsort label-2118
SELECT col1 / col2 + + col1 * col2 AS col1 FROM tab1
----
1248
1404
570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col1 + + col2 col1 FROM tab0
----
119
173
98

query I rowsort
SELECT DISTINCT col2 + tab0.col2 - - col2 AS col2 FROM tab0
----
246
3
99

onlyif mysql # use DIV operator for integer division
query I rowsort label-2121
SELECT 54 DIV ( col1 * 3 ) AS col1 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-2121
SELECT 54 / ( col1 * 3 ) AS col1 FROM tab1
----
0
1
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2122
SELECT - CAST( NULL AS SIGNED ) + - col1 / - col1 + ( + col0 ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2122
SELECT - CAST ( NULL AS INTEGER ) + - col1 / - col1 + ( + col0 ) AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + 9 * col0 + - col2 AS col1 FROM tab1 AS cor0
----
-27
519
624

query I rowsort
SELECT + cor0.col0 - + 15 FROM tab0 AS cor0
----
20
74
9

query I rowsort
SELECT DISTINCT - col0 * + col0 + - col1 AS col1 FROM tab1
----
-35
-4106
-6413

onlyif mysql # use DIV operator for integer division
query I rowsort label-2126
SELECT - - col1 DIV 8 AS col0 FROM tab0 AS cor0
----
10
11
12

skipif mysql # not compatible
query I rowsort label-2126
SELECT - - col1 / 8 AS col0 FROM tab0 AS cor0
----
10
11
12

query I rowsort
SELECT DISTINCT col0 * - 73 * 46 FROM tab2 AS cor0
----
-23506
-261924
-265282

onlyif mysql # use DIV operator for integer division
query I rowsort label-2128
SELECT ALL - + col0 * cor0.col2 DIV col1 AS col0 FROM tab0 cor0
----
-80
-9
0

skipif mysql # not compatible
query I rowsort label-2128
SELECT ALL - + col0 * cor0.col2 / col1 AS col0 FROM tab0 cor0
----
-80
-9
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2129
SELECT ALL - col0 + CAST( NULL AS DECIMAL ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2129
SELECT ALL - col0 + CAST ( NULL AS REAL ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-2130
SELECT col2 + col2 DIV - col1 AS col0 FROM tab1 AS cor0
----
52
52
89

skipif mysql # not compatible
query I rowsort label-2130
SELECT col2 + col2 / - col1 AS col0 FROM tab1 AS cor0
----
52
52
89

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab0, tab2 cor1, tab2 AS cor2, tab1 AS cor3
----
3645 values hashing to 15ae1b54cae2dcf5c6eef7f1d15689eb

query I rowsort
SELECT col1 * + cor0.col0 + - col2 FROM tab1 AS cor0
----
24
583
944

query I rowsort
SELECT DISTINCT cor0.col1 + 40 FROM tab1 cor0
----
50
53
66

query I rowsort
SELECT DISTINCT - cor0.col1 * 94 + 62 FROM tab0 cor0
----
-8022
-8492
-9056

query I rowsort
SELECT DISTINCT - cor0.col2 * col0 + ( + col2 ) + col2 * 10 * cor0.col1 FROM tab2 AS cor0
----
13338
3496
8208

query I rowsort
SELECT ALL - col0 * + cor0.col2 - - col1 AS col0 FROM tab2 AS cor0
----
-158
-1969
-2985

query I rowsort
SELECT cor0.col0 + + 3 AS col0 FROM tab1 AS cor0
----
6
67
83

query I rowsort
SELECT DISTINCT col1 * + 17 FROM tab2 AS cor0
----
1003
289
527

onlyif mysql # use DIV operator for integer division
query I rowsort label-2139
SELECT DISTINCT cor0.col1 DIV - cor0.col0 AS col2 FROM tab1 AS cor0
----
-8
0

skipif mysql # not compatible
query I rowsort label-2139
SELECT DISTINCT cor0.col1 / - cor0.col0 AS col2 FROM tab1 AS cor0
----
-8
0

query I rowsort
SELECT DISTINCT - col0 + ( 12 ) FROM tab1 cor0
----
-52
-68
9

query I rowsort
SELECT ALL - col1 * + ( - 88 ) AS col0 FROM tab1 AS cor0
----
1144
2288
880

query I rowsort
SELECT DISTINCT + - col1 + - cor0.col2 AS col0 FROM tab2 AS cor0
----
-55
-58
-85

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2143
SELECT DISTINCT + - col2 * col0 + col0 / CAST( NULL AS SIGNED ) + - ( col1 * - cor0.col1 ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2143
SELECT DISTINCT + - col2 * col0 + col0 / CAST ( NULL AS INTEGER ) + - ( col1 * - cor0.col1 ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT ( + cor0.col1 ) + + col0 AS col2 FROM tab0 AS cor0
----
110
132
180

onlyif mysql # use DIV operator for integer division
query I rowsort label-2145
SELECT DISTINCT - - 41 * + cor0.col2 - + col1 DIV + 41 AS col1 FROM tab1 AS cor0
----
2214
2337
3936

skipif mysql # not compatible
query I rowsort label-2145
SELECT DISTINCT - - 41 * + cor0.col2 - + col1 / + 41 AS col1 FROM tab1 AS cor0
----
2214
2337
3936

query I rowsort
SELECT ALL + + ( - col0 ) + col2 + + col0 AS col2 FROM tab0 cor0
----
1
33
82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2147
SELECT DISTINCT + CAST( col0 AS SIGNED ) + cor0.col1 FROM tab0 AS cor0
----
110
132
180

skipif mysql # not compatible
query I rowsort label-2147
SELECT DISTINCT + CAST ( col0 AS INTEGER ) + cor0.col1 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT ALL + ( 13 ) + - cor0.col2 AS col1 FROM tab2 AS cor0
----
-13
-14
-25

onlyif mysql # use DIV operator for integer division
query I rowsort label-2149
SELECT + col1 * col0 DIV + col2 FROM tab1 AS cor0
----
1
10
11

skipif mysql # not compatible
query I rowsort label-2149
SELECT + col1 * col0 / + col2 FROM tab1 AS cor0
----
1
10
11

query I rowsort
SELECT ALL 80 AS col0 FROM tab1, tab1 AS cor0, tab0 cor1
----
27 values hashing to 6dd5038be71dffa82f5ceba787caab91

query I rowsort
SELECT ALL - 62 * col2 AS col1 FROM tab1 AS cor0
----
-3348
-3534
-5952

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * cor0.col1 col0 FROM tab1 cor0
----
1040
640
78

query I rowsort
SELECT ALL col0 * col1 + col2 * + col0 FROM tab1 cor0
----
240
4288
8720

query I rowsort
SELECT ALL ( cor1.col1 ) FROM tab2, tab0 cor0, tab1 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

query I rowsort
SELECT DISTINCT + + col2 + col2 * col2 AS col2 FROM tab0 AS cor0
----
1122
2
6806

query I rowsort
SELECT DISTINCT + tab1.col1 AS col2 FROM tab1, tab2, tab2 AS cor0
----
10
13
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col2 + + 82 col1 FROM tab1 cor0
----
136
139
178

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + cor0.col2 + col1 * + col2 col1 FROM tab0 AS cor0
----
2805
7380
96

query I rowsort
SELECT ALL + col1 * + col0 - cor0.col0 * col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2160
SELECT ALL col1 + - ( - col2 ) + col1 DIV + col2 FROM tab0 AS cor0
----
121
174
195

skipif mysql # not compatible
query I rowsort label-2160
SELECT ALL col1 + - ( - col2 ) + col1 / + col2 FROM tab0 AS cor0
----
121
174
195

query I rowsort
SELECT + col2 + + ( + ( + col1 ) ) * col0 FROM tab2 cor0
----
1381
244
4628

query I rowsort
SELECT DISTINCT + - col2 - 83 FROM tab1 AS cor0
----
-137
-140
-179

query I rowsort
SELECT 60 AS col1 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 1d2ab302ae60f95b15e68cf89083b162

onlyif mysql # use DIV operator for integer division
query I rowsort label-2164
SELECT + 21 DIV + col2 + + ( 51 ) AS col0 FROM tab0
----
51
51
72

skipif mysql # not compatible
query I rowsort label-2164
SELECT + 21 / + col2 + + ( 51 ) AS col0 FROM tab0
----
51
51
72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col2 * + ( - 2 ) col0 FROM tab2, tab0 AS cor0
----
-164
-2
-66

query I rowsort
SELECT DISTINCT col0 * + col1 * 97 + 25 FROM tab2
----
130296
21074
446419

query I rowsort
SELECT ALL - col0 * - tab1.col1 + col2 FROM tab1
----
1136
132
697

query I rowsort
SELECT DISTINCT col2 * + col0 * - tab0.col2 + col1 FROM tab0
----
-26050
-598345
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 44 * col1 + tab1.col0 * + col2 col0 FROM tab1
----
1306
4088
8252

query I rowsort
SELECT ALL - + ( col2 ) + - 28 FROM tab2 AS cor0
----
-54
-55
-66

query I rowsort
SELECT - + 21 - col2 FROM tab1 cor0
----
-117
-75
-78

query I rowsort
SELECT ALL 2 + col1 + - col1 FROM tab0 AS cor0
----
2
2
2

query I rowsort
SELECT DISTINCT - + 63 - + col0 * col1 FROM tab0 AS cor0
----
-2127
-3458
-8162

query I rowsort
SELECT ALL + + 70 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 9758da65ae4711e3e8c8def2fe026911

query I rowsort
SELECT + 21 + - col2 * 0 AS col0 FROM tab2 AS cor0
----
21
21
21

query I rowsort
SELECT - 57 * col2 * col0 FROM tab2
----
-10773
-115596
-171114

query I rowsort
SELECT DISTINCT - 27 + - cor0.col0 FROM tab0 AS cor0
----
-116
-51
-62

query I rowsort
SELECT ALL - cor0.col1 * 25 + col2 * col0 * col0 FROM tab1 AS cor0
----
-164
233222
614075

query I rowsort
SELECT DISTINCT + - ( - col2 ) * col2 + col2 FROM tab0 AS cor0
----
1122
2
6806

query I rowsort
SELECT DISTINCT - 89 AS col2 FROM tab2, tab1 AS cor0
----
-89

query I rowsort
SELECT - col1 * - col0 * col0 AS col1 FROM tab2 AS cor0
----
106097
1519
358956

query I rowsort
SELECT DISTINCT + 52 + - tab2.col0 FROM tab2, tab1 AS cor0
----
-26
-27
45

query I rowsort
SELECT DISTINCT 85 * + col2 FROM tab1
----
4590
4845
8160

query I rowsort
SELECT + 92 + - cor0.col0 FROM tab1 AS cor0
----
12
28
89

query I rowsort
SELECT DISTINCT + ( + col2 * + col0 ) FROM tab0
----
35
7298
792

query I rowsort
SELECT ( - 4 ) FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to 39ed23475412c3cbba02ecdd2d7018e6

query I rowsort
SELECT ALL col2 * + 94 FROM tab0
----
3102
7708
94

query I rowsort
SELECT ALL col2 * + col1 AS col1 FROM tab2 cor0
----
1534
646
837

query I rowsort
SELECT ALL 84 + + cor0.col2 FROM tab1 AS cor0
----
138
141
180

query I rowsort
SELECT + 34 AS col1 FROM tab2 AS cor0
----
34
34
34

query I rowsort
SELECT DISTINCT - + cor0.col0 + cor0.col2 AS col0 FROM tab1 AS cor0
----
-7
16
51

onlyif mysql # use DIV operator for integer division
query I rowsort label-2192
SELECT ALL + 9 DIV cor0.col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 95c9c05d889679454926776a124029bb

skipif mysql # not compatible
query I rowsort label-2192
SELECT ALL + 9 / cor0.col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 95c9c05d889679454926776a124029bb

query I rowsort
SELECT DISTINCT - col1 * col0 * + col1 AS col0 FROM tab1
----
-13520
-2028
-6400

onlyif mysql # use DIV operator for integer division
query I rowsort label-2194
SELECT col1 DIV col0 + + col0 AS col1 FROM tab2
----
11
78
79

skipif mysql # not compatible
query I rowsort label-2194
SELECT col1 / col0 + + col0 AS col1 FROM tab2
----
11
78
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-2195
SELECT - 57 + 19 DIV col0 FROM tab1 cor0
----
-51
-57
-57

skipif mysql # not compatible
query I rowsort label-2195
SELECT - 57 + 19 / col0 FROM tab1 cor0
----
-51
-57
-57

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2196
SELECT DISTINCT CAST( 35 AS SIGNED ) + col0 FROM tab0 AS cor0
----
124
59
70

skipif mysql # not compatible
query I rowsort label-2196
SELECT DISTINCT CAST ( 35 AS INTEGER ) + col0 FROM tab0 AS cor0
----
124
59
70

query I rowsort
SELECT ALL - col0 + 43 AS col0 FROM tab0 AS cor0
----
-46
19
8

query I rowsort
SELECT - col1 * + col1 * + col0 AS col1 FROM tab0
----
-177504
-329315
-737009

query I rowsort
SELECT DISTINCT + 26 AS col1 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
26

onlyif mysql # use DIV operator for integer division
query I rowsort label-2200
SELECT + + col0 DIV - col1 AS col1 FROM tab1 cor0
----
-6
-6
0

skipif mysql # not compatible
query I rowsort label-2200
SELECT + + col0 / - col1 AS col1 FROM tab1 cor0
----
-6
-6
0

query I rowsort
SELECT DISTINCT - - 10 AS col2 FROM tab1 AS cor0
----
10

onlyif mysql # use DIV operator for integer division
query I rowsort label-2202
SELECT - 69 DIV + cor0.col0 FROM tab0 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-2202
SELECT - 69 / + cor0.col0 FROM tab0 AS cor0
----
-1
-2
0

query I rowsort
SELECT - col2 + - cor0.col1 * - col0 AS col2 FROM tab1 AS cor0
----
24
583
944

query I rowsort
SELECT cor0.col1 * 34 AS col0 FROM tab0 AS cor0
----
2924
3094
3298

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL >= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL >= NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE + col2 BETWEEN ( + col1 - - col0 ) AND NULL
----

query I rowsort
SELECT DISTINCT col0 * col1 + + col1 * col0 AS col1 FROM tab0 AS cor0
----
16198
4128
6790

query I rowsort
SELECT DISTINCT cor0.col0 + col0 * col2 AS col0 FROM tab0 AS cor0
----
70
7387
816

query I rowsort
SELECT ALL col2 - + col2 * + col2 AS col0 FROM tab2 AS cor0
----
-1406
-650
-702

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + col0 col2 FROM tab2 AS cor0
----
137
38
96

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col2 NOT BETWEEN NULL AND col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * col1 * + col2 - - col1 col2 FROM tab2
----
-119593
-51017
-5828

query I rowsort
SELECT DISTINCT + tab0.col0 * + col1 - col1 AS col0 FROM tab0
----
1978
3298
8008

query I rowsort
SELECT col1 * col1 + col1 + col0 * + col1 AS col1 FROM tab0
----
12901
16471
9546

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col0 BETWEEN NULL AND + col1 * col2 * col0
----

query I rowsort
SELECT col0 * + col1 - col0 * + col0 FROM tab0 WHERE col0 NOT BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + col2 col1 FROM tab2
----
-1444
-676
-729

query I rowsort
SELECT - col2 * - col1 * col0 FROM tab1 WHERE NOT ( NULL ) IN ( - col0 )
----

query I rowsort
SELECT + col1 + + col2 + + col0 AS col2 FROM tab2
----
134
163
65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + col0 col2 FROM tab1 cor0
----
121
176
57

query I rowsort
SELECT ALL cor0.col2 * col0 + - col1 AS col2 FROM tab2 AS cor0
----
158
1969
2985

query I rowsort
SELECT + col0 + - col2 * - col0 AS col1 FROM tab2 AS cor0
----
196
2106
3081

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT tab2.col0 BETWEEN NULL AND + col0 - col1 AND NULL NOT IN ( - col0 )
----

query I rowsort
SELECT col1 + + col1 * + col1 AS col0 FROM tab0
----
7482
8372
9506

query I rowsort
SELECT col0 * - col0 * col2 + col1 FROM tab2
----
-1292
-158125
-237141

query I rowsort
SELECT - col2 * - col1 * + col2 AS col0 FROM tab1
----
119808
32490
75816

query I rowsort
SELECT - col1 * col1 * + tab2.col2 FROM tab2
----
-10982
-25947
-90506

query I rowsort
SELECT tab1.col2 FROM tab0 cor0 CROSS JOIN tab1
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17

query I rowsort
SELECT DISTINCT col0 + + col0 + - col1 AS col2 FROM tab1
----
-20
118
147

query I rowsort
SELECT ALL - tab0.col2 + col2 AS col0 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL ( + tab1.col0 ) + + col0 AS col1 FROM tab1
----
128
160
6

query I rowsort
SELECT DISTINCT + 93 + - col0 * 27 FROM tab0
----
-2310
-555
-852

query I rowsort
SELECT ALL - 86 * + col2 + - col0 FROM tab1
----
-4647
-4966
-8336

query I rowsort
SELECT DISTINCT 42 + col2 + ( + col0 + - col2 ) FROM tab2
----
120
121
49

query I rowsort
SELECT ALL col0 + + col2 * 39 AS col2 FROM tab1
----
2109
2287
3824

query I rowsort
SELECT 58 + col1 FROM tab1
----
68
71
84

query I rowsort
SELECT ALL + cor1.col1 + + cor0.col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 6c5da2c0e2b4192a86a061d47e155396

query I rowsort
SELECT DISTINCT + col1 * - col2 - col1 AS col2 FROM tab1 AS cor0
----
-1261
-1430
-580

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + col0 * - col1 + - col2 + - ( 67 ) col0 FROM tab2 AS cor0
----
-22936
-271611
-6821

query I rowsort
SELECT - col0 + + col0 + col2 AS col2 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT col2 + col0 * + ( - col0 ) AS col0 FROM tab1 AS cor0
----
-4039
-6304
45

query I rowsort
SELECT - col1 + col2 + + col1 * - col2 FROM tab1 AS cor0
----
-1165
-1376
-523

query I rowsort
SELECT cor0.col0 + cor0.col2 * col1 * col2 + + ( 39 + col1 * + col1 ) FROM tab2 AS cor0
----
23606
24955
43482

query I rowsort
SELECT ALL + + col1 + - ( - ( + cor0.col2 ) ) FROM tab1 cor0
----
109
67
80

query I rowsort
SELECT DISTINCT - col2 + + col2 + - col0 AS col2 FROM tab0
----
-24
-35
-89

onlyif mysql # use DIV operator for integer division
query I rowsort label-2247
SELECT ALL tab0.col0 * col0 + col1 * - col0 * tab0.col2 + tab0.col2 DIV col2 AS col2 FROM tab0
----
-2169
-656196
-67535

skipif mysql # not compatible
query I rowsort label-2247
SELECT ALL tab0.col0 * col0 + col1 * - col0 * tab0.col2 + tab0.col2 / col2 AS col2 FROM tab0
----
-2169
-656196
-67535

query III rowsort
SELECT ALL * FROM tab1 WHERE + col0 BETWEEN ( + col0 ) AND NULL
----

query I rowsort
SELECT col0 / col1 FROM tab2 WHERE NOT NULL NOT IN ( col1 * col0 * col0 )
----

query I rowsort
SELECT ALL + col0 * + tab2.col2 + - col2 FROM tab2
----
162
2002
2964

onlyif mysql # use DIV operator for integer division
query I rowsort label-2251
SELECT + col2 - - col1 DIV col1 col2 FROM tab1
----
55
58
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2251
SELECT + col2 - - col1 / col1 col2 FROM tab1
----
55
58
97

query I rowsort
SELECT - + 95 FROM tab0, tab1 AS cor0, tab0 AS cor1, tab1, tab0 AS cor2
----
243 values hashing to 7f375e73ca6bbe6b79001c2cbb1efee5

query I rowsort
SELECT ALL - + col1 * + col2 + col2 FROM tab2 AS cor0
----
-1508
-608
-810

query I rowsort
SELECT - 54 * col1 - + col0 FROM tab1 cor0
----
-1407
-604
-782

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - - cor0.col2 col2 FROM tab0 cor0
----
119
173
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-2256
SELECT ALL 62 + col0 DIV 84 AS col2 FROM tab2 AS cor0
----
62
62
62

skipif mysql # not compatible
query I rowsort label-2256
SELECT ALL 62 + col0 / 84 AS col2 FROM tab2 AS cor0
----
62
62
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * + ( - 39 ) col1 FROM tab1
----
-1014
-390
-507

query I rowsort
SELECT ALL + 23 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 546d49aa433406dd83ea19885588e658

query I rowsort
SELECT - col2 * + ( - col0 * col1 ) FROM tab2 AS cor0
----
119652
51034
5859

onlyif mysql # use DIV operator for integer division
query I rowsort label-2260
SELECT col0 DIV - 81 AS col1 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2260
SELECT col0 / - 81 AS col1 FROM tab0 AS cor0
----
-1
0
0

query I rowsort
SELECT - 47 * - col2 FROM tab0 AS cor0
----
1551
3854
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + ( col0 ) - + CAST ( - col0 AS REAL ) * - col1 col0 FROM tab0 AS cor0
----
-2040
-3360
-8010

query I rowsort
SELECT ALL - col1 + col1 * + 0 AS col2 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT ALL + + 48 + + col0 FROM tab2 AS cor0
----
126
127
55

query I rowsort
SELECT DISTINCT 83 FROM tab2, tab0, tab1 AS cor0
----
83

query I rowsort
SELECT DISTINCT - 35 AS col1 FROM tab1, tab0, tab0 AS cor0
----
-35

query I rowsort
SELECT - 95 * col2 + + cor0.col2 AS col0 FROM tab0 AS cor0
----
-3102
-7708
-94

query I rowsort
SELECT + cor0.col1 + + col0 * + cor0.col1 FROM tab0 cor0
----
2150
3492
8190

query I rowsort
SELECT + col0 + - col0 * + ( col0 ) FROM tab2 AS cor0
----
-42
-6006
-6162

query I rowsort
SELECT tab1.col0 * col1 * 32 FROM tab1
----
20480
2496
33280

query I rowsort
SELECT + - 89 AS col2 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to c36e597b7bc5727536f5bb580e6cebbc

query I rowsort
SELECT DISTINCT - 33 AS col0 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
-33

query I rowsort
SELECT - col2 * - 14 AS col0 FROM tab2 AS cor0
----
364
378
532

query I rowsort
SELECT ALL 21 * col0 FROM tab1
----
1344
1680
63

onlyif mysql # use DIV operator for integer division
query I rowsort label-2275
SELECT - col0 * - 24 * + 86 + col0 DIV 80 + + col2 * - col0 FROM tab1 cor0
----
128448
157441
6030

skipif mysql # not compatible
query I rowsort label-2275
SELECT - col0 * - 24 * + 86 + col0 / 80 + + col2 * - col0 FROM tab1 cor0
----
128448
157441
6030

query I rowsort
SELECT DISTINCT + col2 * + col0 * - 87 FROM tab1 AS cor0
----
-14094
-317376
-668160

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor1.col2 col0 FROM tab0, tab0 AS cor0, tab0 AS cor1, tab1, tab1 AS cor2
----
243 values hashing to 3e2b81ca10484cbfc66f186955e0e920

query I rowsort
SELECT ALL col1 * + 2 FROM tab0
----
172
182
194

query I rowsort
SELECT DISTINCT col0 + 45 AS col0 FROM tab2 AS cor0
----
123
124
52

query I rowsort
SELECT ALL - - ( col2 ) + + col0 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT DISTINCT + - 17 + + ( col0 ) FROM tab1 AS cor0
----
-14
47
63

query I rowsort
SELECT 74 * col1 FROM tab2 cor0
----
1258
2294
4366

onlyif mysql # use DIV operator for integer division
query I rowsort label-2283
SELECT col1 * 92 DIV col0 + col2 * col1 col2 FROM tab2
----
1244
1603
665

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2283
SELECT col1 * 92 / col0 + col2 * col1 col2 FROM tab2
----
1244
1603
665

query I rowsort
SELECT col0 * ( + col1 ) + + col0 FROM tab1
----
1120
704
81

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2285
SELECT ALL col1 * CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2285
SELECT ALL col1 * CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT col2 * + tab2.col2 AS col1 FROM tab2
----
1444
676
729

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2287
SELECT CAST( NULL AS DECIMAL ) * + col1 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2287
SELECT CAST ( NULL AS REAL ) * + col1 AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL ( + 14 ) * col0 + col2 + col1 * tab2.col1 * col2 AS col1 FROM tab2
----
12126
26072
91624

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2289
SELECT + CAST( NULL AS SIGNED ) * + col1 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2289
SELECT + CAST ( NULL AS INTEGER ) * + col1 AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-2290
SELECT + ( 36 ) DIV - col0 FROM tab1
----
-12
0
0

skipif mysql # not compatible
query I rowsort label-2290
SELECT + ( 36 ) / - col0 FROM tab1
----
-12
0
0

query I rowsort
SELECT + col0 * - col1 + - ( - 84 ) AS col0 FROM tab1 AS cor0
----
-556
-956
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 + + col2 * + cor0.col2 + + 99 col2 FROM tab0 AS cor0
----
1164
65
6734

query I rowsort
SELECT + 67 + + col2 * - col1 FROM tab1 cor0
----
-1181
-1337
-503

query I rowsort
SELECT - 67 * + col0 + - col0 FROM tab1 AS cor0
----
-204
-4352
-5440

query I rowsort
SELECT ALL - 19 * tab1.col1 * col0 + - 24 FROM tab1
----
-12184
-1506
-19784

query I rowsort
SELECT ALL col1 * col1 + - col1 * col2 FROM tab0
----
4558
819
9312

query I rowsort
SELECT - tab0.col2 * + 5 FROM tab0, tab0 cor0, tab2 cor1
----
27 values hashing to e03279a2ebd8aefaaa1ad0956d759410

query I rowsort
SELECT DISTINCT - + 26 FROM tab0 cor0
----
-26

onlyif mysql # use DIV operator for integer division
query I rowsort label-2299
SELECT DISTINCT - ( col1 ) DIV col0 AS col0 FROM tab2 AS cor0
----
-4
0

skipif mysql # not compatible
query I rowsort label-2299
SELECT DISTINCT - ( col1 ) / col0 AS col0 FROM tab2 AS cor0
----
-4
0

query I rowsort
SELECT + - 74 AS col2 FROM tab1 cor0
----
-74
-74
-74

query I rowsort
SELECT - ( tab0.col2 ) * + tab0.col2 FROM tab0
----
-1
-1089
-6724

query I rowsort
SELECT - ( ( col2 ) ) FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT ALL - + cor0.col2 + + cor0.col0 * col2 AS col1 FROM tab2 AS cor0
----
162
2002
2964

query I rowsort
SELECT ALL 21 + col1 * col0 AS col0 FROM tab0 AS cor0
----
2085
3416
8120

onlyif mysql # use DIV operator for integer division
query I rowsort label-2305
SELECT DISTINCT - col1 DIV - cor0.col0 + + col1 + - col0 DIV - col0 AS col2 FROM tab1 AS cor0
----
11
14
35

skipif mysql # not compatible
query I rowsort label-2305
SELECT DISTINCT - col1 / - cor0.col0 + + col1 + - col0 / - col0 AS col2 FROM tab1 AS cor0
----
11
14
35

query I rowsort
SELECT DISTINCT - + ( + col0 ) + + col2 * - col0 AS col1 FROM tab0 AS cor0
----
-70
-7387
-816

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 65 * col0 col1 FROM tab1 AS cor0
----
-195
-4160
-5200

query I rowsort
SELECT - - 36 * - col1 FROM tab0 AS cor0
----
-3096
-3276
-3492

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2309
SELECT DISTINCT - ( - cor0.col1 ) * - CAST( NULL AS SIGNED ) + col0 AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2309
SELECT DISTINCT - ( - cor0.col1 ) * - CAST ( NULL AS INTEGER ) + col0 AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL 40 * + col1 AS col2 FROM tab2 AS cor0
----
1240
2360
680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( col1 ) * col1 + cor0.col1 col2 FROM tab0 AS cor0
----
7482
8372
9506

query I rowsort
SELECT ALL cor0.col1 * cor0.col1 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 9708a433b981d9b5fd095bfe2ea45aea

onlyif mysql # use DIV operator for integer division
query I rowsort label-2313
SELECT DISTINCT ( - col0 ) DIV + col0 AS col0 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-2313
SELECT DISTINCT ( - col0 ) / + col0 AS col0 FROM tab2
----
-1

query I rowsort
SELECT ALL + - col1 * - col0 + + col0 * col0 FROM tab0 AS cor0
----
16020
2640
4620

query I rowsort
SELECT ALL col2 * col1 + + 84 AS col1 FROM tab2 cor0
----
1618
730
921

onlyif mysql # use DIV operator for integer division
query I rowsort label-2316
SELECT - col1 DIV + col0 + col1 FROM tab1 AS cor0
----
10
13
18

skipif mysql # not compatible
query I rowsort label-2316
SELECT - col1 / + col0 + col1 FROM tab1 AS cor0
----
10
13
18

query I rowsort
SELECT - col0 - + ( col2 ) FROM tab2 AS cor0
----
-104
-117
-34

onlyif mysql # use DIV operator for integer division
query I rowsort label-2318
SELECT - + col1 DIV - 57 + ( col2 ) DIV 66 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2318
SELECT - + col1 / - 57 + ( col2 ) / 66 FROM tab2 AS cor0
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 + + 33 col2 FROM tab1 cor0
----
20
23
7

query I rowsort
SELECT DISTINCT col0 * + 98 AS col0 FROM tab1 AS cor0
----
294
6272
7840

query I rowsort
SELECT col1 + 56 + + col0 AS col1 FROM tab0
----
166
188
236

query I rowsort
SELECT + col1 * 98 + + 5 FROM tab1 cor0
----
1279
2553
985

query I rowsort
SELECT DISTINCT + - col1 + col1 * cor0.col1 FROM tab2 AS cor0
----
272
3422
930

query I rowsort
SELECT - cor0.col2 * - 12 FROM tab1, tab0 AS cor0
----
9 values hashing to c3504c68aac32df261d69c414d7a67f5

query I rowsort
SELECT - col1 * col2 + - col2 * + cor0.col1 FROM tab0 cor0
----
-14924
-194
-5676

query I rowsort
SELECT DISTINCT - cor0.col1 * - 33 + col1 FROM tab2 AS cor0
----
1054
2006
578

query I rowsort
SELECT ALL col2 * - 10 AS col2 FROM tab0 AS cor0
----
-10
-330
-820

onlyif mysql # use DIV operator for integer division
query I rowsort label-2328
SELECT DISTINCT - + col2 + 26 DIV - cor0.col0 AS col2 FROM tab0 AS cor0
----
-1
-34
-82

skipif mysql # not compatible
query I rowsort label-2328
SELECT DISTINCT - + col2 + 26 / - cor0.col0 AS col2 FROM tab0 AS cor0
----
-1
-34
-82

query I rowsort
SELECT - col1 * ( col2 ) - + col0 * cor0.col2 AS col2 FROM tab0 AS cor0
----
-132
-14760
-3630

query I rowsort
SELECT DISTINCT ( + cor0.col1 ) + cor0.col1 FROM tab0 AS cor0
----
172
182
194

query I rowsort
SELECT ALL 55 FROM tab1, tab1 AS cor0
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0

query I rowsort
SELECT ( + ( col0 ) ) AS col2 FROM tab1 cor0
----
3
64
80

query I rowsort
SELECT DISTINCT - col2 * + col2 + - cor0.col2 AS col0 FROM tab1 AS cor0
----
-2970
-3306
-9312

query I rowsort
SELECT col1 + + 3 - + col2 * tab2.col0 AS col0 FROM tab2
----
-155
-1966
-2982

query I rowsort
SELECT DISTINCT - cor1.col0 FROM tab2 AS cor0 CROSS JOIN tab2, tab2 AS cor1
----
-7
-78
-79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2336
SELECT DISTINCT + col2 - CAST( 23 AS SIGNED ) * col2 FROM tab1
----
-1188
-1254
-2112

skipif mysql # not compatible
query I rowsort label-2336
SELECT DISTINCT + col2 - CAST ( 23 AS INTEGER ) * col2 FROM tab1
----
-1188
-1254
-2112

onlyif mysql # use DIV operator for integer division
query I rowsort label-2337
SELECT cor0.col2 DIV 17 - col2 * - cor0.col2 FROM tab1 cor0
----
2919
3252
9221

skipif mysql # not compatible
query I rowsort label-2337
SELECT cor0.col2 / 17 - col2 * - cor0.col2 FROM tab1 cor0
----
2919
3252
9221

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2338
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + ( col1 ) * - 76 AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2338
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + ( col1 ) * - 76 AS col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-2339
SELECT 66 + + 58 DIV col0 col1 FROM tab2 AS cor0
----
66
66
74

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2339
SELECT 66 + + 58 / col0 col1 FROM tab2 AS cor0
----
66
66
74

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2340
SELECT + CAST( NULL AS SIGNED ) - cor0.col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2340
SELECT + CAST ( NULL AS INTEGER ) - cor0.col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 49 + 99 col2 FROM tab0 AS cor0
----
148
148
148

query I rowsort
SELECT ( + col0 ) - + col2 FROM tab2 AS cor0
----
-20
41
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 21 col1 FROM tab2, tab2 AS cor0
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7

query I rowsort
SELECT 88 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37

query I rowsort
SELECT tab1.col1 + 95 - + 25 * + col1 AS col1 FROM tab1
----
-145
-217
-529

query I rowsort
SELECT tab2.col0 + + tab2.col1 AS col1 FROM tab2
----
137
38
96

query I rowsort
SELECT - col1 + - 30 AS col2 FROM tab2 AS cor0
----
-47
-61
-89

query I rowsort
SELECT - col2 - 48 AS col0 FROM tab2
----
-74
-75
-86

query I rowsort
SELECT - ( col2 * + col1 ) + tab2.col0 + col2 FROM tab2
----
-1430
-529
-803

query I rowsort
SELECT DISTINCT 34 FROM tab1, tab2 AS cor0
----
34

query I rowsort
SELECT ALL col1 + - col2 * - cor0.col2 AS col2 FROM tab0 AS cor0
----
1175
6815
98

query I rowsort
SELECT DISTINCT col1 + col2 * col0 AS col0 FROM tab1 cor0
----
188
3658
7693

onlyif mysql # use DIV operator for integer division
query I rowsort label-2353
SELECT DISTINCT + cor1.col2 DIV - cor1.col0 col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-1
-18
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2353
SELECT DISTINCT + cor1.col2 / - cor1.col0 col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-1
-18
0

query I rowsort
SELECT col2 * 56 FROM tab1 cor0
----
3024
3192
5376

query I rowsort
SELECT DISTINCT - col2 * 18 FROM tab1 AS cor0
----
-1026
-1728
-972

query I rowsort
SELECT DISTINCT + col0 * - col0 + col0 AS col1 FROM tab0 cor0
----
-1190
-552
-7832

query I rowsort
SELECT ALL col0 + - ( col0 ) FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - 18 FROM tab0, tab2 AS cor0, tab1 cor1, tab1, tab1 AS cor2
----
243 values hashing to 923776b443c7881ba06f738e90c2cbad

query I rowsort
SELECT ALL + - col0 * + 1 + 31 + col0 FROM tab0 AS cor0
----
31
31
31

query I rowsort
SELECT ALL + + col2 + col2 * + col2 AS col2 FROM tab0 AS cor0
----
1122
2
6806

query I rowsort
SELECT ALL + - cor0.col2 + + 0 + - 99 FROM tab1 AS cor0
----
-153
-156
-195

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2362
SELECT DISTINCT CAST( - ( + col0 ) AS SIGNED ) AS col2 FROM tab2
----
-7
-78
-79

skipif mysql # not compatible
query I rowsort label-2362
SELECT DISTINCT CAST ( - ( + col0 ) AS INTEGER ) AS col2 FROM tab2
----
-7
-78
-79

query I rowsort
SELECT - col1 + - col2 + + 63 FROM tab2 AS cor0
----
-22
5
8

query I rowsort
SELECT - 50 AS col2 FROM tab0, tab1 cor0
----
9 values hashing to c7432a968c8352c12996dfa54dd4b9e8

query I rowsort
SELECT 82 + - col1 AS col0 FROM tab2 AS cor0
----
23
51
65

query I rowsort
SELECT DISTINCT + col2 + col2 * + col0 * + col0 FROM tab2
----
1350
158210
237196

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2367
SELECT DISTINCT col2 / - ( col1 ) + col1 + CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2367
SELECT DISTINCT col2 / - ( col1 ) + col1 + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query I rowsort
SELECT col0 * 10 AS col2 FROM tab1
----
30
640
800

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 79 col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f

query I rowsort
SELECT + + 25 * - col2 AS col0 FROM tab2 AS cor0
----
-650
-675
-950

query I rowsort
SELECT 50 + + tab0.col0 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to f295a2607c134d3fa8a7b9b3519a6b22

query I rowsort
SELECT DISTINCT - + col0 * + col0 FROM tab2 cor0
----
-49
-6084
-6241

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2373
SELECT - col1 * 24 + + cor0.col2 * + col1 + + CAST( col1 + - col2 AS SIGNED ) FROM tab1 AS cor0
----
283
752
853

skipif mysql # not compatible
query I rowsort label-2373
SELECT - col1 * 24 + + cor0.col2 * + col1 + + CAST ( col1 + - col2 AS INTEGER ) FROM tab1 AS cor0
----
283
752
853

query I rowsort
SELECT ALL + col2 + col0 * cor0.col2 AS col0 FROM tab0 AS cor0
----
36
7380
825

query I rowsort
SELECT + ( - col1 + col2 * col0 ) AS col1 FROM tab2
----
158
1969
2985

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2376
SELECT DISTINCT + + CAST( NULL AS DECIMAL ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2376
SELECT DISTINCT + + CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT 28 * - ( - col0 ) FROM tab1
----
1792
2240
84

query I rowsort
SELECT 28 * + col2 AS col2 FROM tab0
----
2296
28
924

query I rowsort
SELECT DISTINCT ( + col0 ) * + tab0.col0 FROM tab0
----
1225
576
7921

query I rowsort
SELECT + 37 + + col2 * - col0 AS col1 FROM tab2 cor0
----
-152
-1991
-2965

query I rowsort
SELECT + cor0.col1 * + 90 + col2 FROM tab2 AS cor0
----
1568
2817
5336

query I rowsort
SELECT + col1 * - col1 * - col0 FROM tab0
----
177504
329315
737009

onlyif mysql # use DIV operator for integer division
query I rowsort label-2383
SELECT ALL + 73 DIV ( + col2 ) FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-2383
SELECT ALL + 73 / ( + col2 ) FROM tab1
----
0
1
1

query I rowsort
SELECT + 65 * col0 * + col2 FROM tab0
----
2275
474370
51480

query I rowsort
SELECT + 78 + - 54 AS col0 FROM tab1 AS cor0
----
24
24
24

query I rowsort
SELECT - - 27 * - 12 + - col0 FROM tab1 AS cor0
----
-327
-388
-404

query I rowsort
SELECT 18 * + 18 AS col2 FROM tab1 cor0
----
324
324
324

query I rowsort
SELECT + - col2 + col0 + col2 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT - 43 AS col0 FROM tab0, tab2 cor0 CROSS JOIN tab2, tab1 AS cor1
----
81 values hashing to 4f17f941ddb7d7f35d93196515cfe0f2

query I rowsort
SELECT 5 - - col0 FROM tab1 AS cor0
----
69
8
85

query I rowsort
SELECT - col0 * 55 - - col2 AS col2 FROM tab2 AS cor0
----
-358
-4264
-4307

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 * + col2 + + 45 col2 FROM tab1 cor0
----
-2871
-3204
-9171

query I rowsort
SELECT + col1 * + 79 AS col2 FROM tab1
----
1027
2054
790

query I rowsort
SELECT cor1.col2 * cor0.col2 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 994244f565b077d9bfe0a9efd8b9bf4b

query I rowsort
SELECT DISTINCT - 69 AS col1 FROM tab1, tab0 AS cor0
----
-69

query I rowsort
SELECT ALL + - ( col1 ) * 36 AS col1 FROM tab2 AS cor0
----
-1116
-2124
-612

query I rowsort
SELECT ALL + 98 * col1 + col0 FROM tab1 cor0
----
1044
1354
2551

query I rowsort
SELECT + cor0.col2 * 23 FROM tab2 AS cor0
----
598
621
874

query I rowsort
SELECT col2 + ( col0 * - tab1.col1 ) AS col1 FROM tab1
----
-24
-583
-944

query I rowsort
SELECT ALL col2 * + ( + col1 * + col0 ) FROM tab1 AS cor0
----
36480
4212
99840

query I rowsort
SELECT ALL col1 * + 40 + col0 AS col1 FROM tab1 AS cor0
----
1043
464
600

query I rowsort
SELECT DISTINCT + + 46 * + col0 FROM tab2 AS cor0
----
322
3588
3634

onlyif mysql # use DIV operator for integer division
query I rowsort label-2403
SELECT ALL - 92 * - col1 * col1 + - 43 + - cor0.col2 DIV + col0 FROM tab1 cor0
----
15504
62131
9157

skipif mysql # not compatible
query I rowsort label-2403
SELECT ALL - 92 * - col1 * col1 + - 43 + - cor0.col2 / + col0 FROM tab1 cor0
----
15504
62131
9157

query I rowsort
SELECT - + 93 - 14 * - col1 AS col2 FROM tab0 AS cor0
----
1111
1181
1265

query I rowsort
SELECT ALL + 18 * col2 + - col1 AS col2 FROM tab0 AS cor0
----
-79
1385
508

query I rowsort
SELECT cor0.col2 + + col1 * col0 AS col0 FROM tab1 AS cor0
----
1136
132
697

query I rowsort
SELECT DISTINCT 53 * col2 + col1 FROM tab1 AS cor0
----
2888
3031
5101

query I rowsort
SELECT + + cor0.col1 * 19 * col2 + cor0.col0 AS col0 FROM tab0 AS cor0
----
141867
1878
53946

skipif mysql # not compatible
query I rowsort
SELECT + CAST ( col2 AS REAL ) * + col1 AS col1 FROM tab1 AS cor0
----
1248
1404
570

onlyif mysql # use DIV operator for integer division
query I rowsort label-2410
SELECT - col2 DIV - ( - col1 ) FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2410
SELECT - col2 / - ( - col1 ) FROM tab0
----
0
0
0

query I rowsort
SELECT col2 * 27 AS col1 FROM tab2
----
1026
702
729

query I rowsort
SELECT + - col0 * col0 + ( col0 ) * - 64 AS col2 FROM tab0 AS cor0
----
-13617
-2112
-3465

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2413
SELECT DISTINCT cor0.col1 / - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2413
SELECT DISTINCT cor0.col1 / - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL - 19 AS col2 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 0fbbff28a7b63c37b01cf369f9325662

query I rowsort
SELECT DISTINCT + col1 * col1 * col0 AS col0 FROM tab2 cor0
----
22831
271518
6727

query I rowsort
SELECT DISTINCT + col0 + + col2 - + tab1.col1 AS col1 FROM tab1
----
111
163
31

query I rowsort
SELECT col2 * + col2 + col2 * + col1 + + col2 FROM tab2
----
1593
2128
2236

query I rowsort
SELECT ALL 94 - col1 * - ( col1 ) AS col1 FROM tab2
----
1055
3575
383

query I rowsort
SELECT ALL col0 + - 68 AS col1 FROM tab2
----
-61
10
11

query I rowsort
SELECT DISTINCT - col0 + - col1 * 4 AS col1 FROM tab0
----
-368
-423
-453

onlyif mysql # use DIV operator for integer division
query I rowsort label-2421
SELECT col0 * - col2 * col0 + col1 DIV col0 FROM tab0
----
-1223
-19005
-649521

skipif mysql # not compatible
query I rowsort label-2421
SELECT col0 * - col2 * col0 + col1 / col0 FROM tab0
----
-1223
-19005
-649521

query I rowsort
SELECT - ( + 79 ) AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 1b7b0b34fe3431fb409719624d12791f

query I rowsort
SELECT ALL - 26 FROM tab1, tab2 AS cor0
----
9 values hashing to 47d0574274146de273829785364ada39

query I rowsort
SELECT ALL + col1 * + ( 88 ) + col2 * tab0.col2 FROM tab0
----
14732
8537
8657

query I rowsort
SELECT DISTINCT col1 + ( - col2 ) + col1 AS col0 FROM tab1
----
-2
-37
-70

query I rowsort
SELECT ALL + col0 * - ( + 50 ) + col2 * + col0 FROM tab2
----
-161
-1872
-948

onlyif mysql # use DIV operator for integer division
query I rowsort label-2427
SELECT 21 DIV - 6 FROM tab1, tab0 AS cor0
----
9 values hashing to 95b6b9b4aae5cc2d9545db9f8940b2dc

skipif mysql # not compatible
query I rowsort label-2427
SELECT 21 / - 6 FROM tab1, tab0 AS cor0
----
9 values hashing to 95b6b9b4aae5cc2d9545db9f8940b2dc

query I rowsort
SELECT DISTINCT - col0 * - 63 FROM tab2 AS cor0
----
441
4914
4977

query I rowsort
SELECT + - col2 + col2 * - 18 AS col1 FROM tab2 AS cor0
----
-494
-513
-722

onlyif mysql # use DIV operator for integer division
query I rowsort label-2430
SELECT + cor0.col2 DIV - 50 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2430
SELECT + cor0.col2 / - 50 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2431
SELECT ALL + col1 * - CAST( NULL AS SIGNED ) * col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2431
SELECT ALL + col1 * - CAST ( NULL AS INTEGER ) * col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 * - 87 FROM tab2
----
1479
2697
5133

query I rowsort
SELECT - col1 * col2 * col1 AS col1 FROM tab0 AS cor0
----
-244068
-679042
-9409

query I rowsort
SELECT + ( col0 + + tab1.col2 ) FROM tab1
----
121
176
57

query IIIIII rowsort
SELECT ALL * FROM tab2, tab0 AS cor0 WHERE NULL = NULL
----

query I rowsort
SELECT + 84 * + 23 FROM tab1 AS cor0
----
1932
1932
1932

query I rowsort
SELECT ALL 31 + ( col0 ) * + col2 AS col1 FROM tab1 AS cor0
----
193
3679
7711

query I rowsort
SELECT DISTINCT - 60 AS col1 FROM tab0
----
-60

query I rowsort
SELECT - 19 * cor0.col2 FROM tab1 cor0
----
-1026
-1083
-1824

query I rowsort
SELECT - - 38 * col0 AS col1 FROM tab2 cor0
----
266
2964
3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col0 * - col0 * - ( 82 ) col0 FROM tab0 AS cor0
----
-100450
-47232
-649522

query I rowsort
SELECT ALL col2 * + col1 * + col2 + col2 + cor0.col0 AS col2 FROM tab2 AS cor0
----
22633
24665
39988

query I rowsort
SELECT - 49 * col2 AS col2 FROM tab1 AS cor0
----
-2646
-2793
-4704

query I rowsort
SELECT - ( + col0 ) * - cor0.col0 AS col0 FROM tab1 AS cor0
----
4096
6400
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-2445
SELECT DISTINCT + col2 DIV - col1 AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2445
SELECT DISTINCT + col2 / - col1 AS col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL - col1 * - cor0.col2 + - 58 AS col2 FROM tab1 AS cor0
----
1190
1346
512

query I rowsort
SELECT - col0 + + col0 - + 67 AS col0 FROM tab2 AS cor0
----
-67
-67
-67

onlyif mysql # use DIV operator for integer division
query I rowsort label-2448
SELECT ALL + - col2 + col1 + - cor0.col1 DIV + col0 FROM tab1 AS cor0
----
-36
-47
-83

skipif mysql # not compatible
query I rowsort label-2448
SELECT ALL + - col2 + col1 + - cor0.col1 / + col0 FROM tab1 AS cor0
----
-36
-47
-83

query I rowsort
SELECT ALL 45 + cor0.col2 AS col2 FROM tab2 AS cor0
----
71
72
83

query I rowsort
SELECT DISTINCT 91 + - col0 FROM tab2 AS cor0
----
12
13
84

query I rowsort
SELECT col0 * col0 * + col2 FROM tab2 cor0
----
1323
158184
237158

query I rowsort
SELECT ALL + col2 + + col2 * + 54 FROM tab2 AS cor0
----
1430
1485
2090

onlyif mysql # use DIV operator for integer division
query I rowsort label-2453
SELECT + col2 + - col1 DIV - 75 FROM tab0 AS cor0
----
2
34
83

skipif mysql # not compatible
query I rowsort label-2453
SELECT + col2 + - col1 / - 75 FROM tab0 AS cor0
----
2
34
83

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2454
SELECT + + tab0.col1 + CAST( NULL AS SIGNED ) FROM tab1, tab2, tab0 AS cor0, tab0
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

skipif mysql # not compatible
query I rowsort label-2454
SELECT + + tab0.col1 + CAST ( NULL AS INTEGER ) FROM tab1, tab2, tab0 AS cor0, tab0
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

query I rowsort
SELECT DISTINCT ( + col0 * - ( + col0 ) ) FROM tab1
----
-4096
-6400
-9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2456
SELECT ALL - 19 + col0 * CAST( NULL AS SIGNED ) - - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2456
SELECT ALL - 19 + col0 * CAST ( NULL AS INTEGER ) - - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + + ( + col2 ) * - col1 + col2 * + col2 FROM tab0 AS cor0
----
-1749
-738
-96

query I rowsort
SELECT DISTINCT col1 + col1 * col1 AS col2 FROM tab1 AS cor0
----
110
182
702

query I rowsort
SELECT ALL - cor0.col2 + cor0.col1 * + col0 FROM tab1 AS cor0
----
24
583
944

query I rowsort
SELECT - cor0.col0 * col0 - 9 FROM tab2 AS cor0
----
-58
-6093
-6250

onlyif mysql # use DIV operator for integer division
query I rowsort label-2461
SELECT + - col1 DIV - 26 + + 89 FROM tab1 AS cor0
----
89
89
90

skipif mysql # not compatible
query I rowsort label-2461
SELECT + - col1 / - 26 + + 89 FROM tab1 AS cor0
----
89
89
90

query I rowsort
SELECT + col0 + 28 AS col0 FROM tab0 AS cor0
----
117
52
63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 * col0 * 44 col1 FROM tab2 AS cor0
----
132088
8316
89232

query I rowsort
SELECT col1 + + col1 + 88 FROM tab0 cor0
----
260
270
282

query I rowsort
SELECT - col2 * tab1.col0 + - col0 AS col0 FROM tab1
----
-165
-3712
-7760

query I rowsort
SELECT DISTINCT + ( + cor0.col1 ) + - col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT col1 - + col2 AS col0 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT 56 + col2 * - col2 AS col2 FROM tab2 AS cor0
----
-1388
-620
-673

onlyif mysql # use DIV operator for integer division
query I rowsort label-2469
SELECT - col1 + col0 DIV col1 AS col2 FROM tab1 AS cor0
----
-26
-4
-7

skipif mysql # not compatible
query I rowsort label-2469
SELECT - col1 + col0 / col1 AS col2 FROM tab1 AS cor0
----
-26
-4
-7

query I rowsort
SELECT ALL + 37 + + 47 + - col0 FROM tab0 AS cor0
----
-5
49
60

query I rowsort
SELECT ALL + - 13 + ( cor0.col0 ) AS col1 FROM tab2 AS cor0
----
-6
65
66

query I rowsort
SELECT ALL - - col1 + col0 + - col0 FROM tab1 AS cor0
----
10
13
26

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2473
SELECT ALL + CAST( NULL AS SIGNED ) * + col0 * - col1 + + 55 * col0 * + col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2473
SELECT ALL + CAST ( NULL AS INTEGER ) * + col0 * - col1 + + 55 * col0 * + col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-2474
SELECT ALL col0 + cor0.col0 DIV + col1 FROM tab1 cor0
----
3
70
86

skipif mysql # not compatible
query I rowsort label-2474
SELECT ALL col0 + cor0.col0 / + col1 FROM tab1 cor0
----
3
70
86

onlyif mysql # use DIV operator for integer division
query I rowsort label-2475
SELECT + col1 + - ( 78 + + col0 ) DIV - 96 AS col0 FROM tab0
----
87
92
98

skipif mysql # not compatible
query I rowsort label-2475
SELECT + col1 + - ( 78 + + col0 ) / - 96 AS col0 FROM tab0
----
87
92
98

query I rowsort
SELECT ALL + col1 + - col1 + + tab1.col2 FROM tab1
----
54
57
96

query I rowsort
SELECT DISTINCT - col2 + - tab1.col1 + tab1.col1 AS col0 FROM tab1
----
-54
-57
-96

query I rowsort
SELECT ALL col0 + ( col2 ) AS col2 FROM tab2
----
104
117
34

query I rowsort
SELECT - - ( col1 ) * - col1 * - ( + 61 ) FROM tab2 AS cor0
----
17629
212341
58621

query I rowsort
SELECT + - 44 * + col2 + col2 AS col2 FROM tab1 AS cor0
----
-2322
-2451
-4128

query I rowsort
SELECT DISTINCT - col1 * cor0.col0 + + col2 * + 81 FROM tab0 AS cor0
----
-1457
-3314
609

onlyif mysql # use DIV operator for integer division
query I rowsort label-2482
SELECT DISTINCT - col2 * 91 - + col1 DIV + 48 col1 FROM tab0 AS cor0
----
-3004
-7463
-93

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2482
SELECT DISTINCT - col2 * 91 - + col1 / + 48 col1 FROM tab0 AS cor0
----
-3004
-7463
-93

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2483
SELECT - CAST( NULL AS SIGNED ) * 64 + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2483
SELECT - CAST ( NULL AS INTEGER ) * 64 + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 89 FROM tab1, tab0 cor0, tab2, tab1 AS cor1
----
89

query I rowsort
SELECT + - cor0.col1 + - col1 * + 21 FROM tab0 cor0
----
-1892
-2002
-2134

onlyif mysql # use DIV operator for integer division
query I rowsort label-2486
SELECT - col0 + 24 DIV 55 AS col1 FROM tab2 AS cor0
----
-7
-78
-79

skipif mysql # not compatible
query I rowsort label-2486
SELECT - col0 + 24 / 55 AS col1 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT col0 * + col2 + col0 AS col1 FROM tab0 cor0
----
70
7387
816

query I rowsort
SELECT + col2 + 11 * + col1 AS col2 FROM tab0 AS cor0
----
1068
1083
979

query I rowsort
SELECT - col2 * 82 + + col0 AS col0 FROM tab2 AS cor0
----
-2054
-2207
-3037

query I rowsort
SELECT - col0 - 13 * col0 AS col1 FROM tab2 AS cor0
----
-1092
-1106
-98

query I rowsort
SELECT col2 * cor0.col0 * 33 FROM tab2 cor0
----
6237
66924
99066

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2492
SELECT DISTINCT + col2 * col2 + CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2492
SELECT DISTINCT + col2 * col2 + CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL

query I rowsort
SELECT ALL 91 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to deebbcfb9c7803a34dca6bd860849afe

query I rowsort
SELECT - + col2 * col1 + col0 * - col2 FROM tab2 AS cor0
----
-1026
-3562
-3648

query I rowsort
SELECT - cor0.col1 - + cor1.col1 FROM tab0 AS cor0 CROSS JOIN tab1, tab2 cor1
----
27 values hashing to b96822192a1c7dcf8aa24efecec1dcd2

query I rowsort
SELECT + - 9 * - cor0.col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 1d41d99e119d8eabda922c878beceb49

query I rowsort
SELECT 46 * col1 FROM tab2 AS cor0
----
1426
2714
782

query I rowsort
SELECT DISTINCT 32 * + col1 * 55 FROM tab0
----
151360
160160
170720

query I rowsort
SELECT col0 + + col2 * - 3 * col0 FROM tab2
----
-560
-6006
-8927

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-2501
SELECT - cor0.col1 DIV col0 AS col1 FROM tab1 AS cor0
----
-8
0
0

skipif mysql # not compatible
query I rowsort label-2501
SELECT - cor0.col1 / col0 AS col1 FROM tab1 AS cor0
----
-8
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2502
SELECT + 22 DIV tab1.col1 FROM tab1
----
0
1
2

skipif mysql # not compatible
query I rowsort label-2502
SELECT + 22 / tab1.col1 FROM tab1
----
0
1
2

onlyif mysql # use DIV operator for integer division
query I rowsort label-2503
SELECT DISTINCT - col1 DIV - col2 AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2503
SELECT DISTINCT - col1 / - col2 AS col1 FROM tab1 AS cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2504
SELECT - col1 * + col0 - - col2 DIV + col1 FROM tab1 AS cor0
----
-1033
-635
-76

skipif mysql # not compatible
query I rowsort label-2504
SELECT - col1 * + col0 - - col2 / + col1 FROM tab1 AS cor0
----
-1033
-635
-76

query I rowsort
SELECT ALL + col1 + - col0 - tab2.col2 * - col1 FROM tab2
----
1515
584
861

query I rowsort
SELECT ALL - col2 * col0 - col2 AS col1 FROM tab2
----
-2054
-216
-3040

query I rowsort
SELECT ALL - col0 * + tab1.col0 * col0 - col0 AS col0 FROM tab1
----
-262208
-30
-512080

onlyif mysql # use DIV operator for integer division
query I rowsort label-2508
SELECT ALL + - col1 DIV + cor0.col1 AS col2 FROM tab2 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2508
SELECT ALL + - col1 / + cor0.col1 AS col2 FROM tab2 cor0
----
-1
-1
-1

query I rowsort
SELECT + col1 * col1 + col1 AS col1 FROM tab2 AS cor0
----
306
3540
992

query I rowsort
SELECT DISTINCT - 29 + + col0 AS col0 FROM tab2
----
-22
49
50

onlyif mysql # use DIV operator for integer division
query I rowsort label-2511
SELECT ( + ( + col0 ) ) - - col2 DIV - col0 FROM tab0
----
23
35
89

skipif mysql # not compatible
query I rowsort label-2511
SELECT ( + ( + col0 ) ) - - col2 / - col0 FROM tab0
----
23
35
89

query I rowsort
SELECT ALL col0 + col1 * col1 FROM tab1
----
164
249
679

query I rowsort
SELECT - col1 * col1 * col2 + - col0 * + tab0.col0 FROM tab0
----
-10634
-244644
-686963

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2514
SELECT + CAST( - col1 AS SIGNED ) col1 FROM tab2
----
-17
-31
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2514
SELECT + CAST ( - col1 AS INTEGER ) col1 FROM tab2
----
-17
-31
-59

query I rowsort
SELECT - - 86 * - 10 AS col2 FROM tab0 AS cor0
----
-860
-860
-860

query I rowsort
SELECT - 52 * - 69 FROM tab2 AS cor0
----
3588
3588
3588

query I rowsort
SELECT - 67 * col1 AS col1 FROM tab0 AS cor0
----
-5762
-6097
-6499

query I rowsort
SELECT - 86 * col2 AS col1 FROM tab1 AS cor0
----
-4644
-4902
-8256

query I rowsort
SELECT ALL - 88 * + 92 AS col0 FROM tab2
----
-8096
-8096
-8096

query I rowsort
SELECT DISTINCT - 19 * cor0.col0 + + col1 AS col2 FROM tab0 AS cor0
----
-1600
-370
-568

onlyif mysql # use DIV operator for integer division
query I rowsort label-2521
SELECT DISTINCT + 64 * col1 + - col0 + - col0 DIV - col1 AS col0 FROM tab0 AS cor0
----
5480
5735
6173

skipif mysql # not compatible
query I rowsort label-2521
SELECT DISTINCT + 64 * col1 + - col0 + - col0 / - col1 AS col0 FROM tab0 AS cor0
----
5480
5735
6173

query I rowsort
SELECT ALL - col1 + col0 + + col0 * + col0 FROM tab1 cor0
----
-14
4150
6467

query I rowsort
SELECT - + 6 AS col2 FROM tab0 AS cor0
----
-6
-6
-6

query I rowsort
SELECT DISTINCT col2 + + col1 + cor0.col0 * cor0.col1 * - cor0.col1 FROM tab1 AS cor0
----
-13411
-1948
-6333

query I rowsort
SELECT - col2 * - cor0.col1 + col2 * + col1 AS col2 FROM tab0 AS cor0
----
14924
194
5676

onlyif mysql # use DIV operator for integer division
query I rowsort label-2526
SELECT ALL - cor0.col0 * col2 - - col1 DIV - col1 AS col2 FROM tab0 AS cor0
----
-36
-7299
-793

skipif mysql # not compatible
query I rowsort label-2526
SELECT ALL - cor0.col0 * col2 - - col1 / - col1 AS col2 FROM tab0 AS cor0
----
-36
-7299
-793

query I rowsort
SELECT ALL 4 * col1 * col0 + col2 FROM tab0 AS cor0
----
13581
32478
8289

query I rowsort
SELECT DISTINCT - col2 - 92 AS col2 FROM tab1 AS cor0
----
-146
-149
-188

query I rowsort
SELECT DISTINCT + - 14 + + col1 + col2 * + col2 FROM tab2 AS cor0
----
1447
721
746

query I rowsort
SELECT DISTINCT col2 * 61 - + cor0.col0 * + cor0.col0 FROM tab1 AS cor0
----
-544
-619
3285

query I rowsort
SELECT 63 + col1 FROM tab0 AS cor0
----
149
154
160

query I rowsort
SELECT DISTINCT - - col0 * col0 + - col0 - - col1 AS col2 FROM tab1 AS cor0
----
32
4042
6333

query I rowsort
SELECT col1 + 18 FROM tab2
----
35
49
77

query I rowsort
SELECT col2 * col0 * + col2 + col0 FROM tab2
----
114155
5110
52806

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 43 col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 199105619049271147956de52e7f5ed4

query I rowsort
SELECT + col1 + - col0 * - col2 * tab0.col2 + tab0.col0 * col0 AS col2 FROM tab0
----
1357
26798
606448

query I rowsort
SELECT col1 * col2 - col1 * + col2 AS col0 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL + col0 + + 78 FROM tab2 AS cor0
----
156
157
85

query I rowsort
SELECT ALL ( 4 ) + - col0 FROM tab1
----
-60
-76
1

query I rowsort
SELECT ALL + + col1 * 11 FROM tab0 AS cor0
----
1001
1067
946

query I rowsort
SELECT ALL + col1 * 66 + + col1 AS col2 FROM tab2 cor0
----
1139
2077
3953

query I rowsort
SELECT DISTINCT + cor0.col2 * + 92 * col2 AS col0 FROM tab2 AS cor0
----
132848
62192
67068

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2543
SELECT + col2 + CAST( col1 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
55
58
85

skipif mysql # not compatible
query I rowsort label-2543
SELECT + col2 + CAST ( col1 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT DISTINCT + 18 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
18

query I rowsort
SELECT + + col0 + col0 * col1 * + col1 FROM tab1 AS cor0
----
13600
2031
6464

query I rowsort
SELECT - + col2 * 51 * col2 FROM tab1 AS cor0
----
-148716
-165699
-470016

query I rowsort
SELECT DISTINCT + + col1 * + cor0.col2 - 55 AS col0 FROM tab2 cor0
----
1479
591
782

query I rowsort
SELECT col0 + ( + col1 ) * col1 FROM tab1 cor0
----
164
249
679

query I rowsort
SELECT ALL + - col2 * + 13 + 57 * col2 FROM tab1 AS cor0
----
2376
2508
4224

query I rowsort
SELECT - col0 * 86 AS col0 FROM tab2
----
-602
-6708
-6794

query I rowsort
SELECT - col2 * + 75 AS col2 FROM tab2 AS cor0
----
-1950
-2025
-2850

query I rowsort
SELECT DISTINCT + col0 * + ( col1 ) * + col1 FROM tab0 AS cor0
----
177504
329315
737009

query I rowsort
SELECT DISTINCT 73 + 1 AS col1 FROM tab1 AS cor0
----
74

onlyif mysql # use DIV operator for integer division
query I rowsort label-2554
SELECT + 18 DIV col1 col0 FROM tab1 AS cor0
----
0
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2554
SELECT + 18 / col1 col0 FROM tab1 AS cor0
----
0
1
1

query I rowsort
SELECT DISTINCT + - col1 * 71 * - col1 AS col0 FROM tab1 AS cor0
----
11999
47996
7100

onlyif mysql # use DIV operator for integer division
query I rowsort label-2556
SELECT DISTINCT ( col2 ) DIV - col1 AS col1 FROM tab1 AS cor0
----
-2
-5
-7

skipif mysql # not compatible
query I rowsort label-2556
SELECT DISTINCT ( col2 ) / - col1 AS col1 FROM tab1 AS cor0
----
-2
-5
-7

query I rowsort
SELECT - col0 * 79 AS col2 FROM tab2 AS cor0
----
-553
-6162
-6241

query I rowsort
SELECT - - col0 + col0 * col0 FROM tab2 AS cor0
----
56
6162
6320

query I rowsort
SELECT - cor0.col2 + + 71 * + col0 FROM tab1 cor0
----
159
4487
5584

onlyif mysql # use DIV operator for integer division
query I rowsort label-2560
SELECT col2 + - col0 DIV col1 AS col2 FROM tab1 AS cor0
----
51
54
90

skipif mysql # not compatible
query I rowsort label-2560
SELECT col2 + - col0 / col1 AS col2 FROM tab1 AS cor0
----
51
54
90

query I rowsort
SELECT DISTINCT + cor0.col1 + col1 AS col0 FROM tab2 cor0
----
118
34
62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2562
SELECT ALL col1 * tab2.col1 + CAST( NULL AS DECIMAL ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2562
SELECT ALL col1 * tab2.col1 + CAST ( NULL AS REAL ) AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 36 + + col2 * col2 FROM tab0
----
1125
37
6760

query I rowsort
SELECT ALL - + 75 * + col0 + + col1 AS col1 FROM tab0 AS cor0
----
-1714
-2528
-6584

query I rowsort
SELECT cor0.col1 + col2 * + col0 AS col0 FROM tab2 AS cor0
----
2087
220
3019

query I rowsort
SELECT ALL + cor0.col2 + col0 + + col1 * cor0.col2 FROM tab2 AS cor0
----
1638
763
871

onlyif mysql # use DIV operator for integer division
query I rowsort label-2567
SELECT ALL + col1 + + col1 DIV col1 AS col0 FROM tab2 AS cor0
----
18
32
60

skipif mysql # not compatible
query I rowsort label-2567
SELECT ALL + col1 + + col1 / col1 AS col0 FROM tab2 AS cor0
----
18
32
60

skipif mysql # not compatible
query I rowsort
SELECT ALL - col1 * + col0 - CAST ( + cor0.col1 AS REAL ) FROM tab1 cor0
----
-104
-1053
-650

query I rowsort
SELECT DISTINCT + + 40 AS col2 FROM tab0 AS cor0
----
40

query I rowsort
SELECT + - col0 * - col0 - col1 AS col0 FROM tab2 AS cor0
----
18
6025
6224

query I rowsort
SELECT DISTINCT 91 * - cor0.col1 AS col1 FROM tab2 AS cor0
----
-1547
-2821
-5369

onlyif mysql # use DIV operator for integer division
query I rowsort label-2572
SELECT - col2 DIV - cor0.col1 + col1 AS col1 FROM tab0 cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-2572
SELECT - col2 / - cor0.col1 + col1 AS col1 FROM tab0 cor0
----
86
91
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-2573
SELECT ALL + 17 * - col0 + - ( + col1 + cor0.col2 ) DIV 26 FROM tab2 AS cor0
----
-121
-1329
-1345

skipif mysql # not compatible
query I rowsort label-2573
SELECT ALL + 17 * - col0 + - ( + col1 + cor0.col2 ) / 26 FROM tab2 AS cor0
----
-121
-1329
-1345

query I rowsort
SELECT + col0 + 47 AS col0 FROM tab0 cor0
----
136
71
82

query I rowsort
SELECT ALL - - col0 * 62 AS col1 FROM tab0 AS cor0
----
1488
2170
5518

query I rowsort
SELECT ALL + col1 * ( ( - col2 ) ) AS col1 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT DISTINCT - col2 * - cor0.col1 AS col2 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT DISTINCT 8 + + col2 + - col1 AS col1 FROM tab1
----
36
55
91

query I rowsort
SELECT + col2 * col2 + + ( + col0 ) + + col2 * tab1.col0 FROM tab1
----
16976
3081
6961

query I rowsort
SELECT col1 * - col1 + + col1 + col1 FROM tab1
----
-143
-624
-80

query I rowsort
SELECT + 40 * + col0 AS col0 FROM tab0
----
1400
3560
960

query I rowsort
SELECT 20 * col1 FROM tab1
----
200
260
520

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 82 * col1 col1 FROM tab0
----
7052
7462
7954

query I rowsort
SELECT - + col0 + + col1 * col2 AS col0 FROM tab2 AS cor0
----
1456
567
830

query I rowsort
SELECT col0 * 24 * + 30 AS col1 FROM tab0 AS cor0
----
17280
25200
64080

query I rowsort
SELECT - col1 + + col2 * 27 FROM tab0 AS cor0
----
-70
2123
805

query I rowsort
SELECT - col2 * col2 + col2 + col0 FROM tab2 AS cor0
----
-1327
-572
-695

query I rowsort
SELECT ALL + col0 + - 68 AS col2 FROM tab1 AS cor0
----
-4
-65
12

query I rowsort
SELECT col1 + col2 + - 28 AS col0 FROM tab2 cor0
----
27
30
57

query I rowsort
SELECT - - col2 * - col2 - 64 * col0 AS col1 FROM tab2 cor0
----
-1177
-5668
-6500

query I rowsort
SELECT ALL cor0.col0 * 84 FROM tab0 AS cor0
----
2016
2940
7476

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2592
SELECT col1 + + CAST( NULL AS SIGNED ) * - 43 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-2592
SELECT col1 + + CAST ( NULL AS INTEGER ) * - 43 col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col2 * 64 * 4 FROM tab0 cor0
----
-20992
-256
-8448

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2594
SELECT ALL + CAST( NULL AS DECIMAL ) * col1 AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2594
SELECT ALL + CAST ( NULL AS REAL ) * col1 AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + ( col2 ) * - cor0.col1 AS col0 FROM tab0 cor0
----
2838
7462
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2596
SELECT - CAST( col2 AS SIGNED ) * + cor0.col0 + col2 FROM tab1 AS cor0
----
-108
-3591
-7584

skipif mysql # not compatible
query I rowsort label-2596
SELECT - CAST ( col2 AS INTEGER ) * + cor0.col0 + col2 FROM tab1 AS cor0
----
-108
-3591
-7584

onlyif mysql # use DIV operator for integer division
query I rowsort label-2597
SELECT 57 DIV col2 FROM tab0 AS cor0
----
0
1
57

skipif mysql # not compatible
query I rowsort label-2597
SELECT 57 / col2 FROM tab0 AS cor0
----
0
1
57

query I rowsort
SELECT DISTINCT - cor0.col1 * - 0 - - 78 FROM tab1, tab2 AS cor0
----
78

query I rowsort
SELECT DISTINCT ( + 17 ) FROM tab1, tab1 AS cor0, tab2 AS cor1
----
17

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( + col1 + + col1 AS REAL ) FROM tab2
----
118
34
62

query I rowsort
SELECT DISTINCT 98 AS col1 FROM tab2, tab0 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab0 AS cor2
----
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + col0 ) * + col2 col1 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT DISTINCT + - 26 + col0 - 65 AS col2 FROM tab1 AS cor0
----
-11
-27
-88

query I rowsort
SELECT DISTINCT + col1 * + col1 + 80 AS col0 FROM tab1 AS cor0
----
180
249
756

query I rowsort
SELECT - - col0 + col0 * - col0 * col0 FROM tab1 AS cor0
----
-24
-262080
-511920

query I rowsort
SELECT DISTINCT + col1 * + col1 + ( col0 ) * - cor0.col2 * 40 FROM tab0 AS cor0
----
-24284
-283639
8009

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 * col2 + ( cor0.col1 + col0 ) col1 FROM tab2 AS cor0
----
2165
227
3098

query I rowsort
SELECT ALL - 40 FROM tab2, tab2 cor0
----
9 values hashing to f02f17e9bc17e514af018c6f245ed7a9

query I rowsort
SELECT DISTINCT + - col0 * - col1 - col0 * - col1 AS col0 FROM tab1 AS cor0
----
1280
156
2080

query I rowsort
SELECT ALL col0 * - col2 AS col0 FROM tab1 cor0
----
-162
-3648
-7680

query I rowsort
SELECT + + col0 + col1 * ( col0 + + col2 * ( - col1 ) ) AS col0 FROM tab1 AS cor0
----
-15104
-36423
-4996

query I rowsort
SELECT DISTINCT + - col0 + + col2 * + col0 AS col2 FROM tab0 AS cor0
----
0
7209
768

query I rowsort
SELECT ALL + 26 + - col1 FROM tab0 AS cor0
----
-60
-65
-71

query I rowsort
SELECT + 81 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267

query I rowsort
SELECT ALL + + cor0.col1 * - cor0.col1 FROM tab1 cor0
----
-100
-169
-676

query I rowsort
SELECT ALL + col0 + - ( + col1 ) * col2 FROM tab2 AS cor0
----
-1456
-567
-830

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 4 col1 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
-4

query I rowsort
SELECT DISTINCT + - ( cor0.col1 ) + - cor0.col1 * + 55 * 39 FROM tab0 AS cor0
----
-184556
-195286
-208162

query I rowsort
SELECT - - 27 + cor0.col0 AS col1 FROM tab2 AS cor0
----
105
106
34

query I rowsort
SELECT DISTINCT + + 96 * 74 + col2 * 45 * col0 AS col0 FROM tab2 AS cor0
----
142194
15609
98364

query I rowsort
SELECT ALL - 76 + col2 * + col1 FROM tab0 AS cor0
----
21
2762
7386

query I rowsort
SELECT + col1 + - ( col1 ) AS col1 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL col0 + 54 AS col2 FROM tab1
----
118
134
57

query I rowsort
SELECT DISTINCT ( + col1 ) + col1 FROM tab2
----
118
34
62

query I rowsort
SELECT ALL - col1 * tab1.col1 + tab1.col0 * + col1 FROM tab1
----
-598
540
871

onlyif mysql # use DIV operator for integer division
query I rowsort label-2626
SELECT DISTINCT 90 + - col1 DIV - tab0.col0 AS col2 FROM tab0
----
91
92
93

skipif mysql # not compatible
query I rowsort label-2626
SELECT DISTINCT 90 + - col1 / - tab0.col0 AS col2 FROM tab0
----
91
92
93

query I rowsort
SELECT + + cor0.col2 * cor0.col1 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT ( + 6 ) * + col1 * + 28 FROM tab1 cor0
----
1680
2184
4368

query I rowsort
SELECT + 59 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to e29fef8cdec1ee45a71d213f16d2f1d3

query I rowsort
SELECT DISTINCT + + cor0.col2 * - ( 3 ) FROM tab0 cor0
----
-246
-3
-99

query I rowsort
SELECT col1 * + col0 + + ( col0 + 78 ) * - col0 * + col2 AS col2 FROM tab2 AS cor0
----
-15848
-311766
-469971

query I rowsort
SELECT ALL + col0 * + ( cor0.col1 * cor0.col2 ) + + col1 FROM tab1 AS cor0
----
36490
4238
99853

query I rowsort
SELECT DISTINCT - - col0 + ( col0 ) AS col1 FROM tab1 AS cor0
----
128
160
6

query I rowsort
SELECT ALL + col0 * + ( + col1 ) AS col1 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT - cor0.col0 * 11 + + 51 * col1 FROM tab1 AS cor0
----
-194
-217
1293

query I rowsort
SELECT DISTINCT - + col0 + col0 * ( - col1 ) * - ( - 14 + - cor0.col0 ) AS col0 FROM tab1 AS cor0
----
-1329
-49984
-97840

query I rowsort
SELECT ALL - + col0 + + 65 FROM tab2 AS cor0
----
-13
-14
58

query I rowsort
SELECT ALL + - col2 * - 1 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT ALL col1 + - ( + cor0.col1 + col2 ) FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT ALL - col2 + ( col0 + - cor0.col0 * - cor0.col1 ) FROM tab2 AS cor0
----
1384
197
4654

query I rowsort
SELECT DISTINCT - col1 * - 36 FROM tab2 AS cor0
----
1116
2124
612

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 66 col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 29794915b585eea848ad670075452c88

query I rowsort
SELECT ALL + + ( - col0 ) * col1 FROM tab2 AS cor0
----
-1343
-217
-4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-2644
SELECT + + col0 + ( + col2 ) DIV + col2 AS col0 FROM tab0 AS cor0
----
25
36
90

skipif mysql # not compatible
query I rowsort label-2644
SELECT + + col0 + ( + col2 ) / + col2 AS col0 FROM tab0 AS cor0
----
25
36
90

query I rowsort
SELECT DISTINCT - col1 * col0 * + cor0.col0 AS col0 FROM tab2 AS cor0
----
-106097
-1519
-358956

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2646
SELECT + CAST( NULL AS SIGNED ) + 94 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2646
SELECT + CAST ( NULL AS INTEGER ) + 94 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 72 + - 15 AS col0 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 220a93709e207779b34ef74b544764a5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 59 * + col0 col2 FROM tab0
----
1416
2065
5251

query I rowsort
SELECT ALL tab1.col0 - ( col1 ) FROM tab1
----
-23
54
67

query I rowsort
SELECT ALL - col0 * col2 + + cor0.col2 AS col0 FROM tab2 AS cor0
----
-162
-2002
-2964

query I rowsort
SELECT + 97 * col1 - col0 AS col2 FROM tab2
----
1570
3000
5645

query I rowsort
SELECT ALL col1 + col2 * ( 72 + - tab1.col2 ) FROM tab1
----
-2291
865
998

query I rowsort
SELECT - - col0 * + 17 FROM tab2 AS cor0
----
119
1326
1343

query I rowsort
SELECT ALL col1 * - 70 AS col2 FROM tab1 cor0
----
-1820
-700
-910

query I rowsort
SELECT DISTINCT - col2 * 27 AS col1 FROM tab1 AS cor0
----
-1458
-1539
-2592

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + 58 col1 FROM tab0 AS cor0
----
147
82
93

query I rowsort
SELECT - + col2 * - col0 + - col2 * + col2 AS col1 FROM tab2 AS cor0
----
-540
1352
1558

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab0.col1 * + tab0.col0 + 2 col0 FROM tab0
----
2066
3397
8101

query I rowsort
SELECT tab2.col2 + + tab2.col1 AS col1 FROM tab2
----
55
58
85

query I rowsort
SELECT - 53 * - col2 - - 39 AS col1 FROM tab1
----
2901
3060
5127

query I rowsort
SELECT ALL col2 * + col2 + col0 + + col1 AS col1 FROM tab2
----
1540
767
813

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2662
SELECT + col2 + + CAST( col0 + col0 AS SIGNED ) * + col1 FROM tab0 AS cor0
----
16280
4161
6791

skipif mysql # not compatible
query I rowsort label-2662
SELECT + col2 + + CAST ( col0 + col0 AS INTEGER ) * + col1 FROM tab0 AS cor0
----
16280
4161
6791

query I rowsort
SELECT + + cor0.col2 * 22 FROM tab1 AS cor0
----
1188
1254
2112

query I rowsort
SELECT + - ( 46 ) * - col2 FROM tab2 cor0
----
1196
1242
1748

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 78 col1 FROM tab2, tab2 AS cor0, tab1 cor1
----
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-2666
SELECT 33 DIV cor0.col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 14fcfa6c11198893073049d94262832c

skipif mysql # not compatible
query I rowsort label-2666
SELECT 33 / cor0.col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 14fcfa6c11198893073049d94262832c

query I rowsort
SELECT DISTINCT - 91 * 26 + + cor0.col1 AS col1 FROM tab2, tab0 AS cor0
----
-2269
-2275
-2280

query I rowsort
SELECT ALL - ( + 69 ) AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 3bd7460efa48c66c072ad5f3c2def7e9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2669
SELECT DISTINCT col1 * + CAST( NULL AS SIGNED ) col0 FROM tab1 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2669
SELECT DISTINCT col1 * + CAST ( NULL AS INTEGER ) col0 FROM tab1 cor0
----
NULL

query I rowsort
SELECT + 17 + - ( + col2 + tab0.col1 * + tab0.col0 ) AS col2 FROM tab0
----
-2080
-3379
-8164

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * cor0.col2 col1 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT - col0 + col0 * ( - 44 ) FROM tab0 AS cor0
----
-1080
-1575
-4005

query I rowsort
SELECT DISTINCT 20 * 19 + + tab2.col2 - + 26 * col0 FROM tab2
----
-1622
-1636
225

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - cor0.col1 * col1 + + 28 col2 FROM tab1 AS cor0
----
-141
-648
-72

query I rowsort
SELECT - col1 + + col1 - 27 AS col0 FROM tab2 AS cor0
----
-27
-27
-27

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2676
SELECT + + 67 + + cor0.col1 / CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2676
SELECT + + 67 + + cor0.col1 / CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 97 * + col0 FROM tab0 cor0
----
2328
3395
8633

query I rowsort
SELECT DISTINCT - + 76 + + 67 * + col2 AS col0 FROM tab0 AS cor0
----
-9
2135
5418

query I rowsort
SELECT ALL col0 * - 80 FROM tab1
----
-240
-5120
-6400

onlyif mysql # use DIV operator for integer division
query I rowsort label-2680
SELECT + cor0.col2 DIV cor0.col0 AS col1 FROM tab1 AS cor0
----
0
1
18

skipif mysql # not compatible
query I rowsort label-2680
SELECT + cor0.col2 / cor0.col0 AS col1 FROM tab1 AS cor0
----
0
1
18

query I rowsort
SELECT - ( col2 ) * col1 * + 12 AS col2 FROM tab0 AS cor0
----
-1164
-34056
-89544

onlyif mysql # use DIV operator for integer division
query I rowsort label-2682
SELECT - + col1 + - col0 DIV col2 FROM tab1 AS cor0
----
-11
-13
-26

skipif mysql # not compatible
query I rowsort label-2682
SELECT - + col1 + - col0 / col2 FROM tab1 AS cor0
----
-11
-13
-26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col0 + ( + 67 ) col2 FROM tab0 AS cor0
----
102
7365
859

query I rowsort
SELECT DISTINCT 9 * col1 + + cor0.col1 FROM tab1 AS cor0
----
100
130
260

query I rowsort
SELECT DISTINCT - 29 + - col0 * - col1 AS col0 FROM tab1 AS cor0
----
1011
49
611

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 31 + + col1 * col1 col1 FROM tab1 AS cor0
----
131
200
707

onlyif mysql # use DIV operator for integer division
query I rowsort label-2687
SELECT + - col0 DIV 99 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2687
SELECT + - col0 / 99 FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 19 col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 339c9d62143bf2f7566b89a1b56eeeb4

query I rowsort
SELECT - col1 * 10 + col1 FROM tab1 AS cor0
----
-117
-234
-90

query I rowsort
SELECT - col2 * + ( + col1 ) + col0 FROM tab1 AS cor0
----
-1168
-1401
-506

query I rowsort
SELECT - + col0 * - cor0.col0 + col2 * + col1 * + 50 FROM tab2 AS cor0
----
38541
41899
82784

query I rowsort
SELECT DISTINCT col2 * ( col2 ) + + tab2.col2 FROM tab2
----
1482
702
756

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2693
SELECT DISTINCT + col1 * - CAST( + col0 * col2 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-36480
-4212
-99840

skipif mysql # not compatible
query I rowsort label-2693
SELECT DISTINCT + col1 * - CAST ( + col0 * col2 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-36480
-4212
-99840

query I rowsort
SELECT DISTINCT + + cor0.col0 * - 40 * col2 - + col0 AS col0 FROM tab2 AS cor0
----
-120159
-7567
-81198

onlyif mysql # use DIV operator for integer division
query I rowsort label-2695
SELECT ALL col0 DIV - CAST( - 43 AS SIGNED ) + + col2 AS col1 FROM tab1 AS cor0
----
54
58
97

skipif mysql # not compatible
query I rowsort label-2695
SELECT ALL col0 / - CAST ( - 43 AS INTEGER ) + + col2 AS col1 FROM tab1 AS cor0
----
54
58
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 + - ( col2 * cor0.col2 ) col1 FROM tab0 AS cor0
----
-1056
-6642
0

query I rowsort
SELECT ALL - col1 * col0 + col1 AS col0 FROM tab1 AS cor0
----
-1027
-52
-630

query I rowsort
SELECT + + col2 + ( 11 + col0 ) AS col0 FROM tab1 AS cor0
----
132
187
68

query I rowsort
SELECT ALL - cor0.col0 + 91 FROM tab0 AS cor0
----
2
56
67

onlyif mysql # use DIV operator for integer division
query I rowsort label-2700
SELECT DISTINCT - cor0.col0 DIV col1 + col2 FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-2700
SELECT DISTINCT - cor0.col0 / col1 + col2 FROM tab0 AS cor0
----
1
33
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-2701
SELECT DISTINCT - col0 DIV ( col2 ) + col0 + col0 AS col0 FROM tab1 AS cor0
----
127
160
6

skipif mysql # not compatible
query I rowsort label-2701
SELECT DISTINCT - col0 / ( col2 ) + col0 + col0 AS col0 FROM tab1 AS cor0
----
127
160
6

query I rowsort
SELECT + col1 * - 9 + cor0.col2 FROM tab2 AS cor0
----
-115
-252
-505

query I rowsort
SELECT DISTINCT - + 0 + 44 * + col1 FROM tab0 AS cor0
----
3784
4004
4268

query I rowsort
SELECT DISTINCT + col1 + + col2 * col2 AS col0 FROM tab1 cor0
----
2942
3259
9229

query I rowsort
SELECT + ( - 38 ) AS col0 FROM tab2 AS cor0
----
-38
-38
-38

query I rowsort
SELECT + 51 FROM tab1, tab2 AS cor0
----
9 values hashing to d8bf0a05c9c4d2a93812d106baae4752

query I rowsort
SELECT + - col1 - + col0 AS col2 FROM tab1 AS cor0
----
-29
-74
-93

onlyif mysql # use DIV operator for integer division
query I rowsort label-2708
SELECT + 47 DIV + col2 - col1 * - 64 col1 FROM tab0 AS cor0
----
5505
5824
6255

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2708
SELECT + 47 / + col2 - col1 * - 64 col1 FROM tab0 AS cor0
----
5505
5824
6255

query I rowsort
SELECT 82 * 31 FROM tab0
----
2542
2542
2542

query I rowsort
SELECT DISTINCT + - 34 * - col0 + + cor0.col1 FROM tab1 cor0
----
128
2186
2733

query I rowsort
SELECT + 99 + col1 * - ( + col1 ) FROM tab0 AS cor0
----
-7297
-8182
-9310

onlyif mysql # use DIV operator for integer division
query I rowsort label-2712
SELECT + + 69 DIV + col1 + 37 FROM tab0 AS cor0
----
37
37
37

skipif mysql # not compatible
query I rowsort label-2712
SELECT + + 69 / + col1 + 37 FROM tab0 AS cor0
----
37
37
37

query I rowsort
SELECT DISTINCT - col1 * + cor0.col1 * + 20 AS col2 FROM tab2 AS cor0
----
-19220
-5780
-69620

query I rowsort
SELECT + 95 * + col0 FROM tab1
----
285
6080
7600

query I rowsort
SELECT ALL - - col0 * col2 * - col1 + col0 FROM tab0 AS cor0
----
-3360
-664029
-68088

query I rowsort
SELECT + 23 AS col1 FROM tab1 cor0
----
23
23
23

query I rowsort
SELECT - tab0.col2 - - tab0.col1 FROM tab0
----
53
9
96

query I rowsort
SELECT DISTINCT - tab0.col1 - - col2 * tab0.col2 AS col0 FROM tab0
----
-96
1003
6633

query I rowsort
SELECT ALL ( tab2.col1 ) - - ( - 20 * - col1 ) FROM tab2
----
1239
357
651

query I rowsort
SELECT + col0 * - 83 AS col0 FROM tab2
----
-581
-6474
-6557

query I rowsort
SELECT DISTINCT + ( tab0.col2 ) + - col0 * ( - 31 ) AS col1 FROM tab0
----
1086
2841
777

query I rowsort
SELECT - col1 * + 37 * col1 + - 63 FROM tab2 cor0
----
-10756
-128860
-35620

onlyif mysql # use DIV operator for integer division
query I rowsort label-2723
SELECT DISTINCT + - 21 DIV col2 + - col1 + 18 * col1 AS col2 FROM tab1 cor0
----
170
221
442

skipif mysql # not compatible
query I rowsort label-2723
SELECT DISTINCT + - 21 / col2 + - col1 + 18 * col1 AS col2 FROM tab1 cor0
----
170
221
442

query I rowsort
SELECT + - ( - cor0.col0 ) + col0 + + col0 * - 9 * cor0.col2 FROM tab2 AS cor0
----
-1687
-18096
-26860

query I rowsort
SELECT + 66 + + col1 FROM tab2 AS cor0
----
125
83
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 44 * + col0 col0 FROM tab0 AS cor0
----
1056
1540
3916

query I rowsort
SELECT col1 + - col2 * + col2 * tab1.col1 + - col0 * col2 * 38 FROM tab1
----
-171104
-411635
-81946

onlyif mysql # use DIV operator for integer division
query I rowsort label-2728
SELECT DISTINCT - 89 DIV + col2 FROM tab1 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-2728
SELECT DISTINCT - 89 / + col2 FROM tab1 AS cor0
----
-1
0

query I rowsort
SELECT + + col2 * + col0 + - ( + col2 ) AS col1 FROM tab0 AS cor0
----
34
7216
759

query I rowsort
SELECT - 29 * + col1 FROM tab2
----
-1711
-493
-899

query I rowsort
SELECT 84 + col1 AS col1 FROM tab0 AS cor0
----
170
175
181

query I rowsort
SELECT ALL cor2.col0 AS col2 FROM tab0, tab2 AS cor0, tab0 AS cor1, tab2 AS cor2
----
81 values hashing to 05835f29dd9cd4fa16889de54dec3cb6

query I rowsort
SELECT ALL + col2 * - ( + col0 ) * col1 + + ( + 23 ) FROM tab2
----
-119629
-51011
-5836

query I rowsort
SELECT 29 AS col1 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 4c56285992bcb76e1aac22e6d23d1318

query I rowsort
SELECT col1 * + col2 + tab2.col1 * col1 AS col2 FROM tab2
----
1798
5015
935

query I rowsort
SELECT ALL + cor0.col2 + 84 AS col0 FROM tab1 AS cor0
----
138
141
180

query I rowsort
SELECT ALL - col1 * 86 FROM tab1 AS cor0
----
-1118
-2236
-860

query I rowsort
SELECT ALL - col2 * + 59 - + col0 AS col1 FROM tab2 AS cor0
----
-1600
-1612
-2321

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * + col0 + - 91 col2 FROM tab2 AS cor0
----
1937
2911
98

query I rowsort
SELECT DISTINCT - col0 + ( col2 * col0 ) FROM tab2 AS cor0
----
182
1950
2923

query I rowsort
SELECT + - col0 - + cor0.col2 AS col2 FROM tab1 AS cor0
----
-121
-176
-57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 - + 75 col0 FROM tab0 AS cor0
----
-110
-164
-99

onlyif mysql # use DIV operator for integer division
query I rowsort label-2743
SELECT DISTINCT + cor0.col1 DIV 46 - 34 FROM tab1 AS cor0
----
-34

skipif mysql # not compatible
query I rowsort label-2743
SELECT DISTINCT + cor0.col1 / 46 - 34 FROM tab1 AS cor0
----
-34

query I rowsort
SELECT ( + col2 ) * cor0.col1 FROM tab2 cor0
----
1534
646
837

query I rowsort
SELECT ALL - col2 + - col1 * + col0 * + col2 FROM tab2 AS cor0
----
-119678
-51072
-5886

query I rowsort
SELECT - col2 * + col1 - + col1 * cor0.col2 FROM tab1 AS cor0
----
-1140
-2496
-2808

onlyif mysql # use DIV operator for integer division
query I rowsort label-2747
SELECT DISTINCT + col0 * 8 DIV + cor0.col0 FROM tab2 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-2747
SELECT DISTINCT + col0 * 8 / + cor0.col0 FROM tab2 AS cor0
----
8

query I rowsort
SELECT ALL ( - col2 ) + col2 AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + cor0.col0 + col0 + + col1 AS col2 FROM tab1 AS cor0
----
138
173
32

query I rowsort
SELECT col2 + ( + col1 ) + + col0 AS col2 FROM tab1
----
131
189
83

query I rowsort
SELECT DISTINCT col1 - + 87 AS col1 FROM tab0
----
-1
10
4

query I rowsort
SELECT DISTINCT + 64 + - 36 * col1 FROM tab1 cor0
----
-296
-404
-872

query I rowsort
SELECT + ( cor0.col1 ) * - cor0.col0 * col1 + - col2 AS col1 FROM tab1 AS cor0
----
-13616
-2082
-6457

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + 97 * col0 + col1 + - CAST ( - 91 AS REAL ) * - cor0.col0 FROM tab2 AS cor0
----
491
527
73

query I rowsort
SELECT DISTINCT col1 * col2 - col0 FROM tab2
----
1456
567
830

query I rowsort
SELECT DISTINCT - col2 * - col2 - col2 AS col1 FROM tab0
----
0
1056
6642

query I rowsort
SELECT DISTINCT - 70 AS col1 FROM tab1 cor0
----
-70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 53 * + col2 col2 FROM tab0
----
1749
4346
53

query I rowsort
SELECT + 12 * + tab1.col0 AS col1 FROM tab1
----
36
768
960

query I rowsort
SELECT + ( col1 ) - + col1 AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + col0 * col2 + - col2 * + 95 * col1 AS col2 FROM tab0 AS cor0
----
-268818
-701592
-9180

query I rowsort
SELECT + ( - 87 ) FROM tab0 AS cor0
----
-87
-87
-87

query I rowsort
SELECT ALL col1 + - ( - col1 ) FROM tab1
----
20
26
52

query I rowsort
SELECT 82 + + col1 + - col0 AS col0 FROM tab1 cor0
----
105
15
28

query I rowsort
SELECT - col0 + col1 * - col0 FROM tab2 AS cor0
----
-1422
-224
-4680

query I rowsort
SELECT + col1 * + cor0.col0 + + col1 - + col2 * col2 AS col1 FROM tab0 cor0
----
1061
1466
3491

query I rowsort
SELECT cor0.col2 * + col0 + + col1 FROM tab1 AS cor0
----
188
3658
7693

query I rowsort
SELECT - 71 * + col0 FROM tab0
----
-1704
-2485
-6319

query I rowsort
SELECT DISTINCT 55 FROM tab0, tab0 AS cor0
----
55

query I rowsort
SELECT ALL col1 + - col1 * + col1 FROM tab2
----
-272
-3422
-930

query I rowsort
SELECT - col2 * + 27 AS col0 FROM tab2 AS cor0
----
-1026
-702
-729

query I rowsort
SELECT DISTINCT col1 - 2 AS col1 FROM tab2 AS cor0
----
15
29
57

query I rowsort
SELECT ALL + col2 + - col1 * - 59 AS col2 FROM tab0 AS cor0
----
5107
5451
5724

query I rowsort
SELECT + + col1 * - 47 AS col2 FROM tab0 AS cor0
----
-4042
-4277
-4559

query I rowsort
SELECT 7 * + col1 * - col0 + + 42 AS col2 FROM tab2
----
-1477
-32172
-9359

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( cor1.col1 ) col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab2 cor2, tab1 AS cor3
----
3645 values hashing to 40a052eaf1d698dbf3ba319dc3e245ee

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2778
SELECT DISTINCT - col0 * + CAST( col1 AS SIGNED ) FROM tab0 AS cor0
----
-2064
-3395
-8099

skipif mysql # not compatible
query I rowsort label-2778
SELECT DISTINCT - col0 * + CAST ( col1 AS INTEGER ) FROM tab0 AS cor0
----
-2064
-3395
-8099

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2779
SELECT ALL - - col0 * - CAST( NULL AS SIGNED ) * ( col2 * col1 ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2779
SELECT ALL - - col0 * - CAST ( NULL AS INTEGER ) * ( col2 * col1 ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-2780
SELECT DISTINCT - col0 DIV - 58 col1 FROM tab0 cor0
----
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2780
SELECT DISTINCT - col0 / - 58 col1 FROM tab0 cor0
----
0
1

query I rowsort
SELECT DISTINCT - col0 * col2 + - col2 AS col2 FROM tab2 AS cor0
----
-2054
-216
-3040

query I rowsort
SELECT - - col0 * - col1 * col1 FROM tab0 AS cor0
----
-177504
-329315
-737009

query I rowsort
SELECT ALL - + col2 * + col1 + cor0.col2 * col2 AS col2 FROM tab1 AS cor0
----
1512
2679
7968

query I rowsort
SELECT - cor0.col2 + - col1 * ( - col0 ) AS col0 FROM tab0 AS cor0
----
2031
3394
8017

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2785
SELECT ALL + col1 * + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2785
SELECT ALL + col1 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2786
SELECT DISTINCT + ( + col1 ) * - CAST( NULL AS SIGNED ) + col1 AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2786
SELECT DISTINCT + ( + col1 ) * - CAST ( NULL AS INTEGER ) + col1 AS col2 FROM tab1
----
NULL

query I rowsort
SELECT - + cor0.col0 * cor0.col2 + - col1 AS col1 FROM tab0 cor0
----
-132
-7389
-878

query I rowsort
SELECT col2 * + cor0.col1 + 41 FROM tab2 AS cor0
----
1575
687
878

query I rowsort
SELECT - 65 + col1 AS col0 FROM tab1 AS cor0
----
-39
-52
-55

query I rowsort
SELECT ALL cor0.col0 * col0 - col2 AS col0 FROM tab1 AS cor0
----
-45
4039
6304

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col2 col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3

query I rowsort
SELECT + cor0.col0 * col2 + - col0 FROM tab1 AS cor0
----
159
3584
7600

query I rowsort
SELECT ALL + + col2 + + ( - col2 * + cor0.col2 ) + - col2 FROM tab2 AS cor0
----
-1444
-676
-729

query I rowsort
SELECT DISTINCT + - col2 * + col2 + + col0 * col0 * col1 - + cor0.col2 AS col0 FROM tab2 cor0
----
104615
358254
763

query I rowsort
SELECT col1 + - 18 FROM tab1 AS cor0
----
-5
-8
8

query I rowsort
SELECT DISTINCT col0 + 5 AS col0 FROM tab0 AS cor0
----
29
40
94

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 + col1 + + col2 * + col2 col2 FROM tab1
----
2942
3259
9229

query I rowsort
SELECT col0 + - tab2.col0 * - 79 FROM tab2
----
560
6240
6320

query I rowsort
SELECT ALL - col1 * + col2 + 1 AS col0 FROM tab2
----
-1533
-645
-836

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2801
SELECT ALL CAST( col0 AS SIGNED ) * col0 + 91 AS col1 FROM tab0 AS cor0
----
1316
667
8012

skipif mysql # not compatible
query I rowsort label-2801
SELECT ALL CAST ( col0 AS INTEGER ) * col0 + 91 AS col1 FROM tab0 AS cor0
----
1316
667
8012

query I rowsort
SELECT ALL + col2 + col1 * col0 AS col0 FROM tab0
----
2097
3396
8181

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 + cor0.col0 col0 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT + + col2 - 40 AS col2 FROM tab1 AS cor0
----
14
17
56

onlyif mysql # use DIV operator for integer division
query I rowsort label-2805
SELECT col2 DIV + ( + col2 ) FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2805
SELECT col2 / + ( + col2 ) FROM tab0
----
1
1
1

query I rowsort
SELECT ALL col1 * + ( col1 ) FROM tab0
----
7396
8281
9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 25 col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 525a55d5ed224a62da65df36731881a7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2808
SELECT + col1 * - CAST( 92 * + col0 + ( + ( + col2 ) ) AS SIGNED ) AS col2 FROM tab0
----
-192726
-312437
-752570

skipif mysql # not compatible
query I rowsort label-2808
SELECT + col1 * - CAST ( 92 * + col0 + ( + ( + col2 ) ) AS INTEGER ) AS col2 FROM tab0
----
-192726
-312437
-752570

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2809
SELECT CAST( NULL AS SIGNED ) - col1 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2809
SELECT CAST ( NULL AS INTEGER ) - col1 AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + + 58 * cor0.col1 FROM tab0 AS cor0
----
4988
5278
5626

onlyif mysql # use DIV operator for integer division
query I rowsort label-2811
SELECT col1 * col1 - col2 DIV col0 FROM tab1 AS cor0
----
100
168
658

skipif mysql # not compatible
query I rowsort label-2811
SELECT col1 * col1 - col2 / col0 FROM tab1 AS cor0
----
100
168
658

query I rowsort
SELECT + 35 + - col0 * col2 FROM tab0 AS cor0
----
-7263
-757
0

query I rowsort
SELECT + 55 * + col0 AS col2 FROM tab1 AS cor0
----
165
3520
4400

query I rowsort
SELECT - ( 27 ) * col1 * 87 FROM tab1 AS cor0
----
-23490
-30537
-61074

query I rowsort
SELECT col0 + + tab0.col2 - + col2 * col2 * - col1 FROM tab0
----
133
612055
93711

query I rowsort
SELECT - 55 * + col2 - + col2 * - col0 AS col2 FROM tab2
----
-1296
598
912

onlyif mysql # use DIV operator for integer division
query I rowsort label-2817
SELECT DISTINCT col0 + ( col1 ) * col1 - col2 * tab2.col1 DIV col0 col2 FROM tab2
----
3540
360
849

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2817
SELECT DISTINCT col0 + ( col1 ) * col1 - col2 * tab2.col1 / col0 col2 FROM tab2
----
3540
360
849

onlyif mysql # use DIV operator for integer division
query I rowsort label-2818
SELECT + 41 DIV col2 AS col1 FROM tab0
----
0
1
41

skipif mysql # not compatible
query I rowsort label-2818
SELECT + 41 / col2 AS col1 FROM tab0
----
0
1
41

query I rowsort
SELECT ( + col2 ) + - col0 + - tab2.col2 FROM tab2
----
-7
-78
-79

query I rowsort
SELECT ALL 49 * cor0.col2 AS col1 FROM tab0 AS cor0
----
1617
4018
49

query I rowsort
SELECT DISTINCT cor0.col1 + col2 * col1 FROM tab2 AS cor0
----
1593
663
868

query I rowsort
SELECT + ( + col2 ) * + col1 AS col2 FROM tab2
----
1534
646
837

query I rowsort
SELECT DISTINCT + col0 * 19 FROM tab2
----
133
1482
1501

query I rowsort
SELECT DISTINCT col0 + + col0 * tab0.col1 + col1 * tab0.col2 FROM tab0
----
15650
3527
4926

query I rowsort
SELECT ALL - col2 * col2 + col0 AS col1 FROM tab2
----
-1365
-598
-722

query I rowsort
SELECT ALL col2 + - 78 * tab2.col0 AS col1 FROM tab2
----
-519
-6058
-6124

query I rowsort
SELECT - - col2 - 29 * col2 AS col1 FROM tab0 AS cor0
----
-2296
-28
-924

query I rowsort
SELECT DISTINCT 34 - col1 * col1 AS col0 FROM tab2
----
-255
-3447
-927

query I rowsort
SELECT ALL col2 * + col2 + col2 * - col1 FROM tab0
----
-1749
-738
-96

query I rowsort
SELECT ALL - 67 * col0 + tab2.col2 * col2 FROM tab2
----
-3849
-4550
260

query I rowsort
SELECT col1 + + 73 AS col1 FROM tab0
----
159
164
170

query I rowsort
SELECT 28 * + col2 + + col0 FROM tab2 AS cor0
----
1143
763
806

query I rowsort
SELECT ALL + + 7 + col2 AS col1 FROM tab1 AS cor0
----
103
61
64

query I rowsort
SELECT 27 + + col1 * tab0.col2 FROM tab0
----
124
2865
7489

query I rowsort
SELECT - 3 * col2 FROM tab0 AS cor0
----
-246
-3
-99

query I rowsort
SELECT DISTINCT - + ( col1 ) * - cor0.col2 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT + - cor0.col0 + col2 * col0 + col0 FROM tab2 AS cor0
----
189
2028
3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-2838
SELECT DISTINCT 7 DIV - cor0.col0 FROM tab1 AS cor0
----
-2
0

skipif mysql # not compatible
query I rowsort label-2838
SELECT DISTINCT 7 / - cor0.col0 FROM tab1 AS cor0
----
-2
0

query I rowsort
SELECT ALL + ( + col2 ) * - col1 * - col0 AS col0 FROM tab2 cor0
----
119652
51034
5859

query I rowsort
SELECT - col1 * col2 + - col2 * cor0.col0 * col1 + - col2 FROM tab2 AS cor0
----
-121212
-51718
-6723

query I rowsort
SELECT ALL + col1 + - ( 92 ) FROM tab2 AS cor0
----
-33
-61
-75

query I rowsort
SELECT ALL + + col0 + ( 86 ) * cor0.col1 FROM tab0 AS cor0
----
7420
7915
8377

query I rowsort
SELECT DISTINCT col1 + ( 4 ) * - cor0.col2 + col1 FROM tab0 AS cor0
----
-146
190
40

query I rowsort
SELECT DISTINCT - + col1 * col2 + - ( cor0.col0 ) FROM tab1 AS cor0
----
-1328
-1407
-634

query I rowsort
SELECT 95 * - col1 - col0 * - col2 FROM tab2 cor0
----
-2756
-3577
1387

query I rowsort
SELECT DISTINCT - 48 + 22 * col1 AS col0 FROM tab2 AS cor0
----
1250
326
634

query I rowsort
SELECT ALL + 51 * col0 AS col1 FROM tab0 AS cor0
----
1224
1785
4539

query I rowsort
SELECT DISTINCT col2 * 53 * col2 FROM tab2 AS cor0
----
35828
38637
76532

query I rowsort
SELECT ALL + col0 * col2 + + col0 * col2 + - col1 AS col0 FROM tab2 AS cor0
----
347
3997
5987

onlyif mysql # use DIV operator for integer division
query I rowsort label-2850
SELECT DISTINCT + - col0 + - cor0.col1 DIV + col2 FROM tab1 AS cor0
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-2850
SELECT DISTINCT + - col0 + - cor0.col1 / + col2 FROM tab1 AS cor0
----
-3
-64
-80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2851
SELECT + col2 * CAST( NULL AS SIGNED ) * - col0 + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2851
SELECT + col2 * CAST ( NULL AS INTEGER ) * - col0 + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col1 + - col0 * ( - col2 ) FROM tab2 AS cor0
----
2087
220
3019

query I rowsort
SELECT DISTINCT - col0 * - 14 + col1 + - col1 AS col1 FROM tab1 AS cor0
----
1120
42
896

query I rowsort
SELECT + col0 * - col0 - col2 FROM tab1 AS cor0
----
-4153
-63
-6496

query I rowsort
SELECT DISTINCT tab2.col2 * col2 - - col2 FROM tab2
----
1482
702
756

query I rowsort
SELECT col2 + + col1 - - col1 FROM tab2
----
144
72
89

query I rowsort
SELECT DISTINCT - col0 * - 11 * - col0 + col2 AS col0 FROM tab1
----
-44999
-45
-70304

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2858
SELECT - CAST( NULL AS DECIMAL ) * - col2 + - cor0.col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2858
SELECT - CAST ( NULL AS REAL ) * - col2 + - cor0.col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - cor1.col1 AS col1 FROM tab1, tab1 cor0, tab2 AS cor1
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2

query I rowsort
SELECT DISTINCT + col2 + - ( col2 ) AS col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT - cor0.col2 + 45 FROM tab1 AS cor0
----
-12
-51
-9

query I rowsort
SELECT DISTINCT col2 * ( 63 ) + col0 * col1 AS col1 FROM tab0
----
13265
3458
4143

onlyif mysql # use DIV operator for integer division
query I rowsort label-2863
SELECT tab0.col2 DIV + ( + 38 + - col2 ) FROM tab0
----
-1
0
6

skipif mysql # not compatible
query I rowsort label-2863
SELECT tab0.col2 / + ( + 38 + - col2 ) FROM tab0
----
-1
0
6

query I rowsort
SELECT - 66 FROM tab1, tab1 cor0
----
9 values hashing to a408108d423d7784b7d610cb779e515a

query I rowsort
SELECT DISTINCT - 65 + - tab0.col0 * + 3 FROM tab0
----
-137
-170
-332

onlyif mysql # use DIV operator for integer division
query I rowsort label-2866
SELECT - + ( - cor0.col2 ) DIV + 94 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2866
SELECT - + ( - cor0.col2 ) / + 94 FROM tab1 AS cor0
----
0
0
1

query I rowsort
SELECT DISTINCT + 98 * - col1 FROM tab1 AS cor0
----
-1274
-2548
-980

query I rowsort
SELECT ALL + - 0 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + + col1 + col2 - - col2 FROM tab0 AS cor0
----
152
255
99

onlyif mysql # use DIV operator for integer division
query I rowsort label-2870
SELECT ALL + + 24 * col1 DIV + 79 col1 FROM tab1 cor0
----
3
3
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2870
SELECT ALL + + 24 * col1 / + 79 col1 FROM tab1 cor0
----
3
3
7

query I rowsort
SELECT ALL + 72 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49

query I rowsort
SELECT ALL + 78 + - 43 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29

onlyif mysql # use DIV operator for integer division
query I rowsort label-2873
SELECT tab2.col0 + col0 DIV - 40 FROM tab2
----
7
77
78

skipif mysql # not compatible
query I rowsort label-2873
SELECT tab2.col0 + col0 / - 40 FROM tab2
----
7
77
78

query I rowsort
SELECT ALL 32 AS col2 FROM tab0
----
32
32
32

query I rowsort
SELECT DISTINCT cor0.col0 + + cor0.col0 FROM tab0 AS cor0
----
178
48
70

query I rowsort
SELECT ALL + 68 + - col2 * + cor0.col2 AS col1 FROM tab1 AS cor0
----
-2848
-3181
-9148

query I rowsort
SELECT DISTINCT + + 20 + - col0 + + col2 FROM tab2 cor0
----
-21
-32
40

query I rowsort
SELECT DISTINCT col0 * 6 - col0 AS col1 FROM tab2
----
35
390
395

query I rowsort
SELECT DISTINCT - cor0.col0 + - cor0.col2 * - cor0.col0 FROM tab2, tab0 AS cor0
----
0
7209
768

query I rowsort
SELECT DISTINCT 89 + + cor1.col0 AS col2 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
167
168
96

query I rowsort
SELECT ALL 73 * - col1 AS col1 FROM tab0
----
-6278
-6643
-7081

onlyif mysql # use DIV operator for integer division
query I rowsort label-2882
SELECT + cor0.col1 DIV - cor0.col1 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2882
SELECT + cor0.col1 / - cor0.col1 FROM tab2 AS cor0
----
-1
-1
-1

query I rowsort
SELECT 4 * - 38 FROM tab2
----
-152
-152
-152

query I rowsort
SELECT + col0 * 49 AS col0 FROM tab0
----
1176
1715
4361

query I rowsort
SELECT + 36 * 72 + col2 * - col2 * + col0 AS col0 FROM tab2 AS cor0
----
-111484
-2511
-50136

query I rowsort
SELECT 69 + tab2.col1 * col2 AS col2 FROM tab2
----
1603
715
906

query I rowsort
SELECT - 53 + ( - col0 ) * + ( ( - col2 ) ) FROM tab2
----
136
1975
2949

query I rowsort
SELECT - ( col0 * col1 ) + - col0 FROM tab1
----
-1120
-704
-81

onlyif mysql # use DIV operator for integer division
query I rowsort label-2889
SELECT DISTINCT col2 DIV + col2 + - col1 + col1 AS col0 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-2889
SELECT DISTINCT col2 / + col2 + - col1 + col1 AS col0 FROM tab0
----
1

query I rowsort
SELECT ALL 89 + + 7 * tab0.col0 + ( - 29 * - col1 ) FROM tab0
----
2751
3147
3351

query I rowsort
SELECT ALL - tab1.col0 + col1 * + col1 AS col2 FROM tab1
----
36
673
89

query I rowsort
SELECT - ( - ( + tab2.col0 ) + tab2.col1 ) FROM tab2
----
-24
19
62

query I rowsort
SELECT + ( 22 ) - col1 FROM tab2 AS cor0
----
-37
-9
5

query I rowsort
SELECT ALL col1 + + col1 * + col2 FROM tab2 AS cor0
----
1593
663
868

query I rowsort
SELECT col2 + cor0.col1 * col2 * - 80 FROM tab0 AS cor0
----
-227007
-596878
-7759

query I rowsort
SELECT ALL + - 82 + - col0 FROM tab2 AS cor0
----
-160
-161
-89

query I rowsort
SELECT + cor0.col1 * - cor0.col1 FROM tab2 AS cor0
----
-289
-3481
-961

query I rowsort
SELECT - cor0.col0 + - col1 * - ( col1 + col2 ) AS col2 FROM tab2 AS cor0
----
1791
4937
856

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 90 + + col1 col0 FROM tab0 AS cor0
----
176
181
187

query I rowsort
SELECT ALL - col2 * - col1 + col2 * cor0.col0 AS col2 FROM tab2 AS cor0
----
1026
3562
3648

query I rowsort
SELECT - col2 * + 88 FROM tab2
----
-2288
-2376
-3344

query I rowsort
SELECT DISTINCT 72 FROM tab1, tab0, tab2 AS cor0
----
72

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2903
SELECT DISTINCT CAST( col0 AS SIGNED ) col2 FROM tab0
----
24
35
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2903
SELECT DISTINCT CAST ( col0 AS INTEGER ) col2 FROM tab0
----
24
35
89

query I rowsort
SELECT DISTINCT tab2.col2 AS col0 FROM tab2, tab2 cor0
----
26
27
38

query I rowsort
SELECT DISTINCT - 95 AS col2 FROM tab1, tab2 AS cor0
----
-95

query I rowsort
SELECT ALL + + col0 + + 0 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT DISTINCT col1 + + 66 AS col1 FROM tab2
----
125
83
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2908
SELECT ALL tab2.col2 - CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2908
SELECT ALL tab2.col2 - CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 16 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to be22ac76b42c6f7212ecc0ba7c89eb34

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2910
SELECT DISTINCT - - CAST( NULL AS SIGNED ) - - col2 AS col2 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2910
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) - - col2 AS col2 FROM tab1 cor0
----
NULL

query I rowsort
SELECT DISTINCT - col1 + + ( - col1 ) FROM tab0 AS cor0
----
-172
-182
-194

query I rowsort
SELECT + ( - col0 ) - cor0.col2 AS col1 FROM tab1 AS cor0
----
-121
-176
-57

query I rowsort
SELECT DISTINCT + 92 * - ( + col2 ) * 68 + + col1 * + col1 FROM tab0 AS cor0
----
-199052
-504711
3153

query I rowsort
SELECT DISTINCT + 80 - 4 * col1 * 19 AS col0 FROM tab1 cor0
----
-1896
-680
-908

query I rowsort
SELECT col0 - ( + col0 ) * ( + col0 + - col1 ) FROM tab0 cor0
----
1512
2205
267

query I rowsort
SELECT ALL - 84 + + ( - col1 + - ( + col2 ) ) * + col2 AS col2 FROM tab0 AS cor0
----
-14270
-182
-4011

query I rowsort
SELECT DISTINCT col2 * col2 * col1 + + col1 + + ( col2 ) FROM tab0 AS cor0
----
195
612057
93773

query I rowsort
SELECT DISTINCT - col1 * ( - col2 * - col1 ) FROM tab2
----
-10982
-25947
-90506

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2919
SELECT - col0 + col2 / + ( - col2 + CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2919
SELECT - col0 + col2 / + ( - col2 + CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col2 * 2 FROM tab1
----
-108
-114
-192

query I rowsort
SELECT DISTINCT ( + col2 * - col0 ) - col1 FROM tab2
----
-2087
-220
-3019

onlyif mysql # use DIV operator for integer division
query I rowsort label-2922
SELECT ALL + 72 * - col2 - col0 DIV col2 AS col1 FROM tab0
----
-107
-2376
-5905

skipif mysql # not compatible
query I rowsort label-2922
SELECT ALL + 72 * - col2 - col0 / col2 AS col1 FROM tab0
----
-107
-2376
-5905

query I rowsort
SELECT + cor0.col1 * cor0.col0 + + col0 - col0 AS col2 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT - 28 + + 85 * col1 - - cor0.col0 FROM tab0 AS cor0
----
7306
7796
8252

query I rowsort
SELECT DISTINCT - col1 * - 42 AS col1 FROM tab1 AS cor0
----
1092
420
546

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 20 * col1 + + col0 * + col1 col0 FROM tab0 AS cor0
----
1455
344
6279

query I rowsort
SELECT ( col0 ) + + col2 * col1 FROM tab1 AS cor0
----
1328
1407
634

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2928
SELECT + + CAST( - 68 AS SIGNED ) FROM tab0 AS cor0
----
-68
-68
-68

skipif mysql # not compatible
query I rowsort label-2928
SELECT + + CAST ( - 68 AS INTEGER ) FROM tab0 AS cor0
----
-68
-68
-68

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2929
SELECT - ( - col1 ) / col2 - + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2929
SELECT - ( - col1 ) / col2 - + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2930
SELECT DISTINCT - ( tab0.col0 + + CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2930
SELECT DISTINCT - ( tab0.col0 + + CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-2931
SELECT DISTINCT col0 * col2 DIV 1 + - col1 FROM tab2
----
158
1969
2985

skipif mysql # not compatible
query I rowsort label-2931
SELECT DISTINCT col0 * col2 / 1 + - col1 FROM tab2
----
158
1969
2985

query I rowsort
SELECT DISTINCT + 38 * col2 + + 12 AS col1 FROM tab2
----
1000
1038
1456

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + col0 * cor0.col2 col2 FROM tab0 cor0
----
1225
19008
649522

onlyif mysql # use DIV operator for integer division
query I rowsort label-2934
SELECT 25 DIV cor0.col2 col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 69dfd0684d897efa5b4d163b7643a2bd

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2934
SELECT 25 / cor0.col2 col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 69dfd0684d897efa5b4d163b7643a2bd

query I rowsort
SELECT ALL - 29 FROM tab0, tab2 AS cor0
----
9 values hashing to 0cc9ddad93fc783055518ae4b6be054b

query I rowsort
SELECT col2 + + col1 * - tab0.col1 AS col2 FROM tab0
----
-7363
-8199
-9408

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 93 - - cor0.col0 col2 FROM tab1, tab2, tab1 AS cor0, tab0
----
81 values hashing to bc043c0891836e44ef4ca566b5bd2839

query I rowsort
SELECT ALL + cor0.col1 * + 84 AS col0 FROM tab2 AS cor0
----
1428
2604
4956

query I rowsort
SELECT ALL col0 + - ( ( col0 ) ) AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + - col0 + col1 * col2 AS col1 FROM tab0 cor0
----
2814
62
7373

query I rowsort
SELECT + + col2 + - col0 FROM tab2 cor0
----
-41
-52
20

query I rowsort
SELECT DISTINCT - + col2 + col0 AS col2 FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT col2 FROM tab2 WHERE NOT NULL = col0
----

query I rowsort
SELECT ALL + - cor0.col0 + + col2 FROM tab1 AS cor0
----
-7
16
51

query I rowsort
SELECT cor0.col1 * + cor0.col2 + - col1 * + col1 AS col1 FROM tab1 AS cor0
----
1079
470
728

query I rowsort
SELECT ALL - col0 + - col2 * + col0 FROM tab1 AS cor0
----
-165
-3712
-7760

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 - col1 col1 FROM tab2 AS cor0
----
-118
-34
-62

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 IN ( col1 / col1 ) OR NOT NULL NOT BETWEEN ( NULL ) AND NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-2949
SELECT col2 + - col1 DIV + col1 + + col0 AS col2 FROM tab0 AS cor0
----
170
35
56

skipif mysql # not compatible
query I rowsort label-2949
SELECT col2 + - col1 / + col1 + + col0 AS col2 FROM tab0 AS cor0
----
170
35
56

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL ) BETWEEN col0 * col2 + + col2 AND NULL
----

query I rowsort
SELECT ALL tab2.col1 - tab2.col0 FROM tab2
----
-19
-62
24

query I rowsort
SELECT col0 + tab2.col0 * + tab2.col1 + + col0 FROM tab2
----
1501
231
4758

query I rowsort
SELECT ALL + cor0.col0 + col1 AS col1 FROM tab1 cor0
----
29
74
93

query I rowsort
SELECT DISTINCT + + col0 * col2 - + col1 FROM tab1 AS cor0
----
136
3638
7667

query I rowsort
SELECT cor0.col0 + - col0 * - col2 AS col2 FROM tab2 AS cor0
----
196
2106
3081

query I rowsort
SELECT ALL col0 * + col1 * col1 FROM tab1 AS cor0
----
13520
2028
6400

query I rowsort
SELECT ALL col0 * + col0 + - col2 AS col0 FROM tab1 AS cor0
----
-45
4039
6304

query I rowsort
SELECT - 48 * col0 * col1 + + tab0.col0 * - col0 * + col1 FROM tab0
----
-1109563
-148608
-281785

query I rowsort
SELECT DISTINCT 35 + col0 + + col0 * col1 FROM tab2
----
1457
259
4715

onlyif mysql # use DIV operator for integer division
query I rowsort label-2960
SELECT ALL - 95 DIV col2 + tab1.col0 FROM tab1
----
2
63
80

skipif mysql # not compatible
query I rowsort label-2960
SELECT ALL - 95 / col2 + tab1.col0 FROM tab1
----
2
63
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-2961
SELECT + 20 DIV tab0.col2 + - tab0.col1 FROM tab0
----
-77
-86
-91

skipif mysql # not compatible
query I rowsort label-2961
SELECT + 20 / tab0.col2 + - tab0.col1 FROM tab0
----
-77
-86
-91

query I rowsort
SELECT 19 - col1 AS col0 FROM tab0
----
-67
-72
-78

query I rowsort
SELECT DISTINCT + col2 * col0 + + cor0.col0 FROM tab0 AS cor0
----
70
7387
816

onlyif mysql # use DIV operator for integer division
query I rowsort label-2964
SELECT - col2 * col2 + col0 DIV - col0 FROM tab1
----
-2917
-3250
-9217

skipif mysql # not compatible
query I rowsort label-2964
SELECT - col2 * col2 + col0 / - col0 FROM tab1
----
-2917
-3250
-9217

onlyif mysql # use DIV operator for integer division
query I rowsort label-2965
SELECT col0 + - col1 DIV col1 AS col2 FROM tab0
----
23
34
88

skipif mysql # not compatible
query I rowsort label-2965
SELECT col0 + - col1 / col1 AS col2 FROM tab0
----
23
34
88

query I rowsort
SELECT DISTINCT + col2 - + tab2.col0 * col2 * col1 FROM tab2
----
-119626
-50996
-5832

query I rowsort
SELECT col1 * col0 * col1 + + col0 FROM tab0
----
177528
329350
737098

query I rowsort
SELECT DISTINCT tab2.col0 - - col0 AS col1 FROM tab2
----
14
156
158

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + col1 col2 FROM tab1
----
-54
-67
23

onlyif mysql # use DIV operator for integer division
query I rowsort label-2970
SELECT col0 - col0 DIV + col1 FROM tab2
----
7
75
77

skipif mysql # not compatible
query I rowsort label-2970
SELECT col0 - col0 / + col1 FROM tab2
----
7
75
77

query I rowsort
SELECT col0 AS col0 FROM tab1 WHERE NOT + col0 NOT IN ( - col0 - col1 )
----

query I rowsort
SELECT + col2 * col2 + + tab1.col2 FROM tab1
----
2970
3306
9312

query I rowsort
SELECT 10 AS col1 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 0fe3e45a9ecd49584c2ab442100d5176

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 58 col1 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to a38440572743ed8a3d8af7b49a5388c9

query I rowsort
SELECT ALL + 95 AS col0 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 14faa6dda52e3dfe1f5db2579c274a7e

query I rowsort
SELECT ALL + ( col2 + - ( + col1 ) ) AS col1 FROM tab1
----
28
47
83

query I rowsort
SELECT - - 51 * col2 AS col1 FROM tab0 AS cor0
----
1683
4182
51

query III rowsort
SELECT * FROM tab2 WHERE ( - col2 * - col1 ) >= ( NULL )
----

query I rowsort
SELECT + col2 + + col1 * + tab2.col0 * col0 AS col1 FROM tab2 WHERE NOT NULL = ( tab2.col0 )
----

query I rowsort
SELECT + col0 FROM tab1 WHERE NOT - col0 + col0 IN ( col2 )
----
3
64
80

query I rowsort
SELECT ALL - col1 + + col0 * - col0 FROM tab0 cor0
----
-1322
-662
-8012

query I rowsort
SELECT ALL col2 + - col2 * - col0 FROM tab2 AS cor0
----
2054
216
3040

onlyif mysql # use DIV operator for integer division
query I rowsort label-2983
SELECT col0 DIV col1 + + col2 * col1 FROM tab2
----
1535
650
837

skipif mysql # not compatible
query I rowsort label-2983
SELECT col0 / col1 + + col2 * col1 FROM tab2
----
1535
650
837

query I rowsort
SELECT DISTINCT col0 * - cor0.col1 * col2 + col1 * - col0 + + col2 AS col0 FROM tab2 AS cor0
----
-124228
-52339
-6049

query I rowsort
SELECT col1 + + col0 FROM tab1 WHERE col0 IN ( col1 / + col2 )
----

query I rowsort
SELECT col0 + tab1.col2 + - col1 AS col2 FROM tab1
----
111
163
31

query I rowsort
SELECT DISTINCT + col1 * + col0 * - tab2.col1 + + col1 - col0 AS col0 FROM tab2
----
-22893
-271537
-6703

onlyif mysql # use DIV operator for integer division
query I rowsort label-2988
SELECT - col1 DIV - tab2.col0 FROM tab2
----
0
0
4

skipif mysql # not compatible
query I rowsort label-2988
SELECT - col1 / - tab2.col0 FROM tab2
----
0
0
4

query I rowsort
SELECT + col2 * col2 - + col0 * col1 AS col2 FROM tab2
----
-3926
101
512

query I rowsort
SELECT col2 * tab2.col1 + + col2 AS col0 FROM tab2
----
1560
684
864

query I rowsort
SELECT col2 FROM tab1 WHERE NOT ( col1 ) BETWEEN ( NULL ) AND + col1
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-2992
SELECT - col2 * + tab0.col1 + col0 * + col2 DIV + tab0.col2 FROM tab0
----
-2814
-62
-7373

skipif mysql # not compatible
query I rowsort label-2992
SELECT - col2 * + tab0.col1 + col0 * + col2 / + tab0.col2 FROM tab0
----
-2814
-62
-7373

query I rowsort
SELECT col0 FROM tab0 WHERE NULL >= - col2 * col0 * - tab0.col0
----

query I rowsort
SELECT col1 + - tab1.col0 - col0 FROM tab1
----
-118
-147
20

query I rowsort
SELECT ALL col0 - tab0.col2 AS col2 FROM tab0
----
-9
34
7

query I rowsort
SELECT ALL col2 * tab0.col1 * col2 AS col1 FROM tab0
----
611884
93654
97

query I rowsort
SELECT + tab0.col2 + - tab0.col0 * col1 FROM tab0 WHERE NOT col2 + col1 NOT IN ( col2 * + col2 + tab0.col0 )
----

query I rowsort
SELECT + col0 * col2 * col2 AS col2 FROM tab0
----
26136
35
598436

query I rowsort
SELECT + cor1.col1 AS col0 FROM tab2, tab0 cor0, tab1 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

query I rowsort
SELECT - cor0.col1 * + cor0.col1 AS col0 FROM tab0 cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 9be0dab92dd50faf37ee99ac8db7c57d

query I rowsort
SELECT 73 * - col2 FROM tab1 AS cor0
----
-3942
-4161
-7008

query I rowsort
SELECT + col1 * - col0 - - 32 FROM tab0 AS cor0
----
-2032
-3363
-8067

query I rowsort
SELECT DISTINCT + col0 + + 81 FROM tab0
----
105
116
170

onlyif mysql # use DIV operator for integer division
query I rowsort label-3004
SELECT ALL - col1 DIV col1 + tab2.col1 * + col2 AS col2 FROM tab2
----
1533
645
836

skipif mysql # not compatible
query I rowsort label-3004
SELECT ALL - col1 / col1 + tab2.col1 * + col2 AS col2 FROM tab2
----
1533
645
836

query I rowsort
SELECT DISTINCT + cor0.col2 + + col0 AS col0 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT + col2 * - 42 * cor0.col2 AS col1 FROM tab2 AS cor0
----
-28392
-30618
-60648

query I rowsort
SELECT + ( + col2 ) - + col1 FROM tab2
----
-33
-4
21

query I rowsort
SELECT + col2 * + 27 FROM tab0 cor0
----
2214
27
891

onlyif mysql # use DIV operator for integer division
query I rowsort label-3009
SELECT + col2 DIV 27 FROM tab0 AS cor0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-3009
SELECT + col2 / 27 FROM tab0 AS cor0
----
0
1
3

query I rowsort
SELECT + col1 + + col1 * col0 AS col1 FROM tab1 AS cor0
----
104
1053
650

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3011
SELECT DISTINCT - CAST( NULL AS DECIMAL ) / + 2 AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3011
SELECT DISTINCT - CAST ( NULL AS REAL ) / + 2 AS col1 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT + 71 AS col1 FROM tab2 cor0
----
71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 89 + + col1 * 15 col0 FROM tab1 AS cor0
----
239
284
479

query I rowsort
SELECT + 81 * col0 FROM tab1 cor0
----
243
5184
6480

onlyif mysql # use DIV operator for integer division
query I rowsort label-3015
SELECT ALL - 51 DIV - col2 FROM tab0 AS cor0
----
0
1
51

skipif mysql # not compatible
query I rowsort label-3015
SELECT ALL - 51 / - col2 FROM tab0 AS cor0
----
0
1
51

query I rowsort
SELECT - cor0.col0 + - 95 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to e3f6cd7425b21d4dd00cad42038c3fcf

query I rowsort
SELECT ALL - ( col0 ) * ( col1 ) AS col2 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT DISTINCT + - 4 + - col2 * + ( + col1 ) FROM tab2 AS cor0
----
-1538
-650
-841

onlyif mysql # use DIV operator for integer division
query I rowsort label-3019
SELECT + - 59 DIV col1 AS col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3019
SELECT + - 59 / col1 AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT col0 * col1 * 21 + + 55 FROM tab1
----
13495
1693
21895

query I rowsort
SELECT ALL - col2 * - col0 * - 78 + - col0 FROM tab0 AS cor0
----
-2765
-569333
-61800

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 - + col2 * + col2 col1 FROM tab2 AS cor0
----
-1461
-735
-760

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3023
SELECT DISTINCT 82 * col1 + CAST( + col2 AS SIGNED ) + - col2 * col0 FROM tab0 AS cor0
----
246
6293
7920

skipif mysql # not compatible
query I rowsort label-3023
SELECT DISTINCT 82 * col1 + CAST ( + col2 AS INTEGER ) + - col2 * col0 FROM tab0 AS cor0
----
246
6293
7920

onlyif mysql # use DIV operator for integer division
query I rowsort label-3024
SELECT - - col1 DIV - col0 + col1 AS col1 FROM tab0 cor0
----
83
90
95

skipif mysql # not compatible
query I rowsort label-3024
SELECT - - col1 / - col0 + col1 AS col1 FROM tab0 cor0
----
83
90
95

onlyif mysql # use DIV operator for integer division
query I rowsort label-3025
SELECT ALL + - col0 * cor0.col1 + ( + 57 ) DIV cor0.col0 AS col1 FROM tab2 AS cor0
----
-1343
-209
-4602

skipif mysql # not compatible
query I rowsort label-3025
SELECT ALL + - col0 * cor0.col1 + ( + 57 ) / cor0.col0 AS col1 FROM tab2 AS cor0
----
-1343
-209
-4602

query I rowsort
SELECT ALL col2 * + cor0.col1 + + 25 FROM tab1 AS cor0
----
1273
1429
595

query I rowsort
SELECT ALL - col1 * + ( - col1 ) FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT DISTINCT - - col2 * + 92 * cor0.col1 FROM tab1 AS cor0
----
114816
129168
52440

query I rowsort
SELECT - col1 * 32 FROM tab1 AS cor0
----
-320
-416
-832

query I rowsort
SELECT - col1 * ( + 21 + + cor0.col2 ) * + cor0.col2 FROM tab0 AS cor0
----
-153252
-2134
-768586

query I rowsort
SELECT - + col1 + 40 * + cor0.col2 FROM tab0 AS cor0
----
-57
1234
3189

skipif mysql # not compatible
query I rowsort
SELECT ALL col2 * CAST ( 85 AS REAL ) AS col1 FROM tab0 AS cor0
----
2805
6970
85

onlyif mysql # use DIV operator for integer division
query I rowsort label-3033
SELECT DISTINCT + col1 * - col0 + - ( col2 ) * 72 DIV 77 FROM tab0 AS cor0
----
-2094
-3395
-8175

skipif mysql # not compatible
query I rowsort label-3033
SELECT DISTINCT + col1 * - col0 + - ( col2 ) * 72 / 77 FROM tab0 AS cor0
----
-2094
-3395
-8175

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3034
SELECT col1 * - CAST( - 33 AS SIGNED ) * col0 FROM tab1 AS cor0
----
21120
2574
34320

skipif mysql # not compatible
query I rowsort label-3034
SELECT col1 * - CAST ( - 33 AS INTEGER ) * col0 FROM tab1 AS cor0
----
21120
2574
34320

query I rowsort
SELECT col1 + + col0 * + col0 FROM tab0
----
1322
662
8012

query I rowsort
SELECT DISTINCT - 70 FROM tab0, tab1, tab1 AS cor0
----
-70

query I rowsort
SELECT ALL 99 * + col2 FROM tab2 AS cor0
----
2574
2673
3762

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 24 + 15 col0 FROM tab1 cor0
----
-9
-9
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col1 + col0 * - cor0.col2 * 75 col2 FROM tab1 AS cor0
----
-12124
-273590
-575987

query I rowsort
SELECT - 74 * - col2 + + col1 FROM tab0 AS cor0
----
171
2528
6159

onlyif mysql # use DIV operator for integer division
query I rowsort label-3041
SELECT DISTINCT + - ( col0 ) DIV + col0 - 81 AS col0 FROM tab2 cor0
----
-82

skipif mysql # not compatible
query I rowsort label-3041
SELECT DISTINCT + - ( col0 ) / + col0 - 81 AS col0 FROM tab2 cor0
----
-82

query I rowsort
SELECT - 18 * + col1 AS col2 FROM tab0 AS cor0
----
-1548
-1638
-1746

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3043
SELECT DISTINCT CAST( + 48 AS SIGNED ) FROM tab2 cor0
----
48

skipif mysql # not compatible
query I rowsort label-3043
SELECT DISTINCT CAST ( + 48 AS INTEGER ) FROM tab2 cor0
----
48

query I rowsort
SELECT - + ( 82 ) * + cor0.col0 + col1 FROM tab2 AS cor0
----
-543
-6337
-6461

onlyif mysql # use DIV operator for integer division
query I rowsort label-3045
SELECT + 37 DIV col0 + - col1 FROM tab2 AS cor0
----
-17
-26
-59

skipif mysql # not compatible
query I rowsort label-3045
SELECT + 37 / col0 + - col1 FROM tab2 AS cor0
----
-17
-26
-59

query I rowsort
SELECT DISTINCT + 85 + - col1 FROM tab2 AS cor0
----
26
54
68

query I rowsort
SELECT - + 5 * + 78 + cor0.col2 AS col1 FROM tab1 AS cor0
----
-294
-333
-336

query I rowsort
SELECT ALL 70 - + col0 FROM tab1 AS cor0
----
-10
6
67

query I rowsort
SELECT DISTINCT + 88 + 32 * col0 FROM tab1 AS cor0
----
184
2136
2648

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 55 - 0 col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0

query I rowsort
SELECT + ( col0 ) + col0 * - col1 FROM tab2 AS cor0
----
-1264
-210
-4524

query I rowsort
SELECT ALL - ( - col1 ) * col0 + - col1 FROM tab1
----
1027
52
630

query I rowsort
SELECT DISTINCT + col0 + - 2 AS col1 FROM tab1
----
1
62
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 18 + - col2 * col0 col0 FROM tab2
----
-2046
-207
-3020

query I rowsort
SELECT 92 * - 6 * col0 + - 47 * col0 FROM tab2
----
-4193
-46722
-47321

query I rowsort
SELECT ALL + col2 * - ( 1 ) AS col1 FROM tab1
----
-54
-57
-96

query I rowsort
SELECT + col2 + 82 FROM tab1
----
136
139
178

query I rowsort
SELECT - - col2 * - 49 AS col1 FROM tab1 AS cor0
----
-2646
-2793
-4704

query I rowsort
SELECT ALL col1 * + 11 AS col1 FROM tab1
----
110
143
286

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3060
SELECT ALL + CAST( - col0 AS SIGNED ) * + col1 AS col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

skipif mysql # not compatible
query I rowsort label-3060
SELECT ALL + CAST ( - col0 AS INTEGER ) * + col1 AS col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3061
SELECT DISTINCT + CAST( NULL AS SIGNED ) * col2 + col2 + 7 * 68 * - col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3061
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * col2 + col2 + 7 * 68 * - col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + col2 + + 52 * col1 FROM tab2 cor0
----
1639
3094
922

query I rowsort
SELECT ALL + ( 61 ) + + col1 FROM tab2 AS cor0
----
120
78
92

query I rowsort
SELECT ALL col0 * col0 - + col1 AS col1 FROM tab0 AS cor0
----
1128
490
7830

query I rowsort
SELECT DISTINCT 80 * + col0 FROM tab1
----
240
5120
6400

query I rowsort
SELECT DISTINCT + col0 + - col2 * + col2 * ( cor0.col0 ) AS col2 FROM tab2 cor0
----
-113997
-5096
-52650

query I rowsort
SELECT - cor0.col2 * 87 + + col0 AS col0 FROM tab1 cor0
----
-4695
-4895
-8272

query I rowsort
SELECT DISTINCT - 46 * col0 + + col0 * cor0.col2 FROM tab1 AS cor0
----
24
4000
704

onlyif mysql # use DIV operator for integer division
query I rowsort label-3069
SELECT ALL col2 + - col2 DIV col1 FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-3069
SELECT ALL col2 + - col2 / col1 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT DISTINCT 58 * col0 + col2 FROM tab2
----
433
4550
4620

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 31 * 83 col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 2d0eef9f419defdc7b6cfaf291fc70e5

query I rowsort
SELECT ALL + - 54 FROM tab2 cor0
----
-54
-54
-54

query I rowsort
SELECT + col1 * col0 * + col1 + col0 * col0 * col0 AS col1 FROM tab2 AS cor0
----
515870
7070
746070

query I rowsort
SELECT + - cor0.col2 - col1 AS col0 FROM tab1 AS cor0
----
-109
-67
-80

query I rowsort
SELECT ALL - - col0 * col1 + 56 * - 21 FROM tab2 cor0
----
-959
167
3426

query I rowsort
SELECT + col0 * - col0 + ( - col0 ) * cor0.col1 * + 46 + - col0 AS col0 FROM tab0 AS cor0
----
-157430
-380564
-95544

query I rowsort
SELECT 4 * col2 + + 51 + 67 * + col1 FROM tab2 AS cor0
----
1342
2236
4108

onlyif mysql # use DIV operator for integer division
query I rowsort label-3078
SELECT - cor0.col1 - + col1 DIV - col0 FROM tab1 AS cor0
----
-10
-13
-18

skipif mysql # not compatible
query I rowsort label-3078
SELECT - cor0.col1 - + col1 / - col0 FROM tab1 AS cor0
----
-10
-13
-18

query I rowsort
SELECT col2 * 48 + cor0.col0 AS col0 FROM tab1 AS cor0
----
2595
2800
4688

query I rowsort
SELECT ALL - - 60 AS col2 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to a97561e17ecaa618227c75a57b268f33

query I rowsort
SELECT + col0 * - cor0.col1 + 15 AS col0 FROM tab2 AS cor0
----
-1328
-202
-4587

query I rowsort
SELECT + - col2 * + col1 + + col0 * col0 FROM tab2 AS cor0
----
-788
4550
5595

query I rowsort
SELECT ALL + tab0.col1 + 60 AS col1 FROM tab0
----
146
151
157

query I rowsort
SELECT - + col0 + - cor0.col2 + col1 * col1 FROM tab0 AS cor0
----
7339
8110
9373

query I rowsort
SELECT + col0 * 80 + 44 FROM tab2 AS cor0
----
604
6284
6364

query I rowsort
SELECT + + col2 * ( col2 ) - - col2 * + 77 AS col1 FROM tab2 AS cor0
----
2678
2808
4370

query I rowsort
SELECT col1 + ( col0 ) AS col0 FROM tab0 cor0
----
110
132
180

onlyif mysql # use DIV operator for integer division
query I rowsort label-3088
SELECT ALL col1 DIV 32 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3088
SELECT ALL col1 / 32 FROM tab2
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 85 * ( col1 ) + - 17 * - 11 col1 FROM tab0 AS cor0
----
7497
7922
8432

query I rowsort
SELECT + 55 * - tab1.col2 AS col2 FROM tab1
----
-2970
-3135
-5280

query I rowsort
SELECT + 36 + + col0 AS col0 FROM tab2 AS cor0
----
114
115
43

query I rowsort
SELECT + - col1 * + col2 - - ( col2 ) FROM tab1 AS cor0
----
-1152
-1350
-513

onlyif mysql # use DIV operator for integer division
query I rowsort label-3093
SELECT + ( col2 ) * col1 DIV + col0 AS col0 FROM tab2
----
119
19
8

skipif mysql # not compatible
query I rowsort label-3093
SELECT + ( col2 ) * col1 / + col0 AS col0 FROM tab2
----
119
19
8

query I rowsort
SELECT - col1 - + col1 * + col1 AS col0 FROM tab1 AS cor0
----
-110
-182
-702

query I rowsort
SELECT ALL + ( 12 ) + + col0 * + col1 FROM tab2 AS cor0
----
1355
229
4614

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - - 12 * col0 * - col0 - CAST ( col0 AS REAL ) FROM tab1 AS cor0
----
-111
-49216
-76880

query I rowsort
SELECT ALL - + col2 * col1 + col0 AS col0 FROM tab2 AS cor0
----
-1456
-567
-830

query I rowsort
SELECT DISTINCT + + col0 + cor0.col0 FROM tab1 cor0
----
128
160
6

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3099
SELECT - CAST( - 37 AS SIGNED ) * tab2.col2 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 1849b7229632196896d705b46c8f5cc9

skipif mysql # not compatible
query I rowsort label-3099
SELECT - CAST ( - 37 AS INTEGER ) * tab2.col2 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 1849b7229632196896d705b46c8f5cc9

query I rowsort
SELECT tab1.col2 * - ( + col0 ) - ( - 68 ) FROM tab1
----
-3580
-7612
-94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 70 - + 14 col0 FROM tab2
----
56
56
56

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - CAST ( + 77 + col0 AS REAL ) FROM tab0
----
-101
-112
-166

query I rowsort
SELECT DISTINCT - 37 AS col2 FROM tab1, tab2, tab2 AS cor0
----
-37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 21 * col0 col1 FROM tab1
----
1344
1680
63

query I rowsort
SELECT DISTINCT tab2.col2 AS col1 FROM tab2, tab0, tab1 cor0
----
26
27
38

query I rowsort
SELECT + col2 * + ( - col0 ) FROM tab0 AS cor0
----
-35
-7298
-792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + col1 * col2 col0 FROM tab1
----
1261
1430
580

query I rowsort
SELECT - col0 - - ( - ( col1 ) + col1 ) AS col1 FROM tab0
----
-24
-35
-89

onlyif mysql # use DIV operator for integer division
query I rowsort label-3109
SELECT ALL + cor0.col2 DIV - col1 AS col1 FROM tab1 AS cor0
----
-2
-5
-7

skipif mysql # not compatible
query I rowsort label-3109
SELECT ALL + cor0.col2 / - col1 AS col1 FROM tab1 AS cor0
----
-2
-5
-7

query I rowsort
SELECT DISTINCT - col2 * - 39 FROM tab1 AS cor0
----
2106
2223
3744

onlyif mysql # use DIV operator for integer division
query I rowsort label-3111
SELECT col1 DIV ( - col1 ) FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3111
SELECT col1 / ( - col1 ) FROM tab1 AS cor0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - ( 15 ) col0 FROM tab2
----
-390
-405
-570

query I rowsort
SELECT ALL + 23 FROM tab0, tab2 AS cor0
----
9 values hashing to d94fadcc1c8cc4fc51b78b83e04795f2

onlyif mysql # use DIV operator for integer division
query I rowsort label-3114
SELECT ALL + col1 + - col0 DIV - 50 FROM tab2
----
18
31
60

skipif mysql # not compatible
query I rowsort label-3114
SELECT ALL + col1 + - col0 / - 50 FROM tab2
----
18
31
60

query I rowsort
SELECT ALL col2 + + 74 FROM tab0 AS cor0
----
107
156
75

query I rowsort
SELECT DISTINCT - col2 * 89 AS col0 FROM tab1
----
-4806
-5073
-8544

onlyif mysql # use DIV operator for integer division
query I rowsort label-3117
SELECT DISTINCT cor0.col0 + cor0.col1 DIV + col1 + + col1 AS col0 FROM tab2 AS cor0
----
138
39
97

skipif mysql # not compatible
query I rowsort label-3117
SELECT DISTINCT cor0.col0 + cor0.col1 / + col1 + + col1 AS col0 FROM tab2 AS cor0
----
138
39
97

query I rowsort
SELECT ALL - + 94 FROM tab0 AS cor0
----
-94
-94
-94

query I rowsort
SELECT DISTINCT + - 94 * - ( col2 + - cor0.col1 ) * - col2 FROM tab1 AS cor0
----
-142128
-251826
-748992

query I rowsort
SELECT DISTINCT - 52 * + col1 FROM tab0 AS cor0
----
-4472
-4732
-5044

query I rowsort
SELECT ALL ( + col2 ) + col2 * 61 AS col0 FROM tab0 AS cor0
----
2046
5084
62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3122
SELECT ALL + CAST( col2 AS SIGNED ) + + cor0.col1 * + cor0.col0 FROM tab1 AS cor0
----
1136
132
697

skipif mysql # not compatible
query I rowsort label-3122
SELECT ALL + CAST ( col2 AS INTEGER ) + + cor0.col1 * + cor0.col0 FROM tab1 AS cor0
----
1136
132
697

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3123
SELECT DISTINCT + CAST( NULL AS SIGNED ) * ( - col0 ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3123
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * ( - col0 ) FROM tab2 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3124
SELECT DISTINCT - col0 * col2 + col0 + - ( - col2 ) DIV - col1 AS col0 FROM tab0 AS cor0
----
-7209
-768
0

skipif mysql # not compatible
query I rowsort label-3124
SELECT DISTINCT - col0 * col2 + col0 + - ( - col2 ) / - col1 AS col0 FROM tab0 AS cor0
----
-7209
-768
0

query I rowsort
SELECT ALL + 6 AS col1 FROM tab1, tab0 cor0
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 + ( - col0 ) col0 FROM tab1 AS cor0
----
-121
-176
-57

query I rowsort
SELECT + col1 + + 94 FROM tab0 AS cor0
----
180
185
191

query I rowsort
SELECT DISTINCT + 58 * col2 FROM tab0 AS cor0
----
1914
4756
58

query I rowsort
SELECT ALL - cor0.col0 + col0 * col0 AS col1 FROM tab0 cor0
----
1190
552
7832

query I rowsort
SELECT DISTINCT + col2 * - ( col1 ) * + col1 AS col1 FROM tab2 AS cor0
----
-10982
-25947
-90506

query I rowsort
SELECT DISTINCT 0 + col1 * col0 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT cor0.col1 * + col1 FROM tab2 cor0
----
289
3481
961

query I rowsort
SELECT ALL - col2 + + col2 * - ( - col0 ) FROM tab2 AS cor0
----
162
2002
2964

query I rowsort
SELECT ALL + col2 + col2 + col1 * 7 FROM tab0 cor0
----
668
681
801

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + col0 + + col0 col2 FROM tab2 AS cor0
----
175
215
45

query I rowsort
SELECT + - 56 * - col0 + 18 * - col2 + + col1 AS col1 FROM tab0 AS cor0
----
2039
3599
836

query I rowsort
SELECT DISTINCT + - cor0.col2 + col1 + - col2 AS col2 FROM tab2 cor0
----
-23
-59
7

query I rowsort
SELECT DISTINCT - col2 - cor0.col0 AS col1 FROM tab1 AS cor0
----
-121
-176
-57

query I rowsort
SELECT + + col2 - - col1 * col0 * + col0 FROM tab2 AS cor0
----
106135
1546
358982

query I rowsort
SELECT DISTINCT - - col2 * + col1 + - col1 + + col0 FROM tab0 AS cor0
----
2776
35
7460

query I rowsort
SELECT ALL + - 93 FROM tab2 cor0
----
-93
-93
-93

query I rowsort
SELECT + 62 * + col0 AS col0 FROM tab1
----
186
3968
4960

query I rowsort
SELECT + 66 - + col0 FROM tab0 AS cor0
----
-23
31
42

query I rowsort
SELECT DISTINCT + + col2 + col1 * col0 AS col2 FROM tab2 cor0
----
1381
244
4628

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * ( col1 ) + col2 + 21 col1 FROM tab1 AS cor0
----
1157
153
718

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + - ( - col0 ) col0 FROM tab0 AS cor0
----
-2
-62

query I rowsort
SELECT 87 AS col2 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 8661ffbd1a72897c495405c53b816e50

query I rowsort
SELECT + cor0.col2 * + col2 + 93 FROM tab2 cor0
----
1537
769
822

onlyif mysql # use DIV operator for integer division
query I rowsort label-3149
SELECT ( 95 ) DIV col2 - + tab1.col0 AS col1 FROM tab1
----
-2
-63
-80

skipif mysql # not compatible
query I rowsort label-3149
SELECT ( 95 ) / col2 - + tab1.col0 AS col1 FROM tab1
----
-2
-63
-80

skipif mysql # not compatible
query I rowsort
SELECT + 58 + col0 + CAST ( + ( col0 ) AS REAL ) * col2 AS col2 FROM tab2 AS cor0
----
2164
254
3139

onlyif mysql # use DIV operator for integer division
query I rowsort label-3151
SELECT ALL - col1 + + col0 * + col0 + col0 DIV col0 col2 FROM tab1
----
-16
4087
6388

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3151
SELECT ALL - col1 + + col0 * + col0 + col0 / col0 col2 FROM tab1
----
-16
4087
6388

onlyif mysql # use DIV operator for integer division
query I rowsort label-3152
SELECT ALL + col0 DIV col2 + col2 + col0 AS col1 FROM tab1
----
122
176
57

skipif mysql # not compatible
query I rowsort label-3152
SELECT ALL + col0 / col2 + col2 + col0 AS col1 FROM tab1
----
122
176
57

query I rowsort
SELECT ALL - 32 + + 87 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0

query I rowsort
SELECT ALL + col2 + col1 * - 16 FROM tab1 AS cor0
----
-103
-112
-362

query I rowsort
SELECT ALL + col2 + cor0.col1 * - col2 * col1 AS col1 FROM tab1 AS cor0
----
-16128
-36450
-5643

query I rowsort
SELECT DISTINCT - cor0.col1 * - col2 FROM tab2 cor0
----
1534
646
837

query I rowsort
SELECT + + 50 + - col2 FROM tab2 AS cor0
----
12
23
24

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3158
SELECT DISTINCT - ( col2 ) * ( + col2 ) - + col2 * CAST( - col0 AS SIGNED ) FROM tab1 AS cor0
----
-1536
-2754
399

skipif mysql # not compatible
query I rowsort label-3158
SELECT DISTINCT - ( col2 ) * ( + col2 ) - + col2 * CAST ( - col0 AS INTEGER ) FROM tab1 AS cor0
----
-1536
-2754
399

query I rowsort
SELECT - 44 + col2 AS col0 FROM tab2 AS cor0
----
-17
-18
-6

query I rowsort
SELECT DISTINCT - col2 * col0 + col1 + col1 FROM tab1 AS cor0
----
-110
-3628
-7654

query I rowsort
SELECT DISTINCT + cor0.col1 + col0 AS col1 FROM tab2 cor0
----
137
38
96

query I rowsort
SELECT + + col2 + col1 * + col1 AS col1 FROM tab1 cor0
----
157
265
730

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3163
SELECT col0 * CAST( NULL AS SIGNED ) * + 4 + col0 * + col2 + col1 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3163
SELECT col0 * CAST ( NULL AS INTEGER ) * + 4 + col0 * + col2 + col1 AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3164
SELECT ALL - + col1 DIV + CAST( col1 AS SIGNED ) + + col0 * 45 FROM tab1 AS cor0
----
134
2879
3599

skipif mysql # not compatible
query I rowsort label-3164
SELECT ALL - + col1 / + CAST ( col1 AS INTEGER ) + + col0 * 45 FROM tab1 AS cor0
----
134
2879
3599

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - 35 col1 FROM tab1 AS cor0
----
-32
29
45

onlyif mysql # use DIV operator for integer division
query I rowsort label-3166
SELECT DISTINCT - col0 DIV 97 + cor0.col0 + + col0 FROM tab0 AS cor0
----
178
48
70

skipif mysql # not compatible
query I rowsort label-3166
SELECT DISTINCT - col0 / 97 + cor0.col0 + + col0 FROM tab0 AS cor0
----
178
48
70

query I rowsort
SELECT DISTINCT - col2 + col0 * - 73 + col0 AS col0 FROM tab2
----
-531
-5642
-5726

onlyif mysql # use DIV operator for integer division
query I rowsort label-3168
SELECT ALL + 54 DIV + col0 AS col2 FROM tab0 cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-3168
SELECT ALL + 54 / + col0 AS col2 FROM tab0 cor0
----
0
1
2

query I rowsort
SELECT tab1.col2 - tab1.col1 FROM tab1, tab0 AS cor0
----
9 values hashing to ae0eeb942db3f01544a81804e95e971a

query I rowsort
SELECT ALL + 28 * - 60 - col1 FROM tab1 AS cor0
----
-1690
-1693
-1706

query I rowsort
SELECT + - cor0.col0 - - col2 FROM tab0 AS cor0
----
-34
-7
9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3172
SELECT CAST( NULL AS SIGNED ) + col0 * + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3172
SELECT CAST ( NULL AS INTEGER ) + col0 * + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 56 + col0 * cor0.col2 FROM tab1 AS cor0
----
106
3592
7624

query I rowsort
SELECT 9 + col0 + + cor0.col2 FROM tab1 AS cor0
----
130
185
66

query I rowsort
SELECT ALL + + col0 * + ( - col2 * col1 ) FROM tab0 cor0
----
-3395
-664118
-68112

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3176
SELECT - CAST( NULL AS SIGNED ) * + col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3176
SELECT - CAST ( NULL AS INTEGER ) * + col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col0 + 43 * col1 FROM tab1 AS cor0
----
1121
494
639

query I rowsort
SELECT ( + cor0.col2 ) - col0 FROM tab0 AS cor0
----
-34
-7
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-3179
SELECT ALL - 25 DIV - col0 AS col1 FROM tab2 AS cor0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-3179
SELECT ALL - 25 / - col0 AS col1 FROM tab2 AS cor0
----
0
0
3

query I rowsort
SELECT + ( 47 ) FROM tab1 cor0
----
47
47
47

query I rowsort
SELECT + ( 17 ) + col2 AS col1 FROM tab2 AS cor0
----
43
44
55

query I rowsort
SELECT - 95 * - col1 + col1 AS col2 FROM tab0 AS cor0
----
8256
8736
9312

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + 67 + - col2 col1 FROM tab2
----
100
46
71

query I rowsort
SELECT ALL col0 * ( - col2 ) + + col2 * + ( - 70 ) AS col2 FROM tab1 AS cor0
----
-14400
-3942
-7638

query I rowsort
SELECT ALL + + col0 + - 19 FROM tab0 AS cor0
----
16
5
70

query I rowsort
SELECT ALL + + col2 * + ( - col2 ) + - cor0.col2 AS col0 FROM tab2 AS cor0
----
-1482
-702
-756

query I rowsort
SELECT ALL 42 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 325aada2239b6fe1fe2d843515ae8c5e

query I rowsort
SELECT + 71 AS col1 FROM tab2, tab1 AS cor0, tab0 cor1
----
27 values hashing to 95a6ff35b7b8f00868fb58bcaa32d0c2

query I rowsort
SELECT 61 AS col2 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 8d4dfe649433a599fc4b10830cc7ce55

onlyif mysql # use DIV operator for integer division
query I rowsort label-3190
SELECT + ( - cor0.col0 ) + col1 DIV cor0.col0 FROM tab2 AS cor0
----
-3
-78
-79

skipif mysql # not compatible
query I rowsort label-3190
SELECT + ( - cor0.col0 ) + col1 / cor0.col0 FROM tab2 AS cor0
----
-3
-78
-79

query I rowsort
SELECT ALL - - cor0.col2 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

onlyif mysql # use DIV operator for integer division
query I rowsort label-3192
SELECT col1 DIV - ( col0 ) AS col2 FROM tab2 AS cor0
----
-4
0
0

skipif mysql # not compatible
query I rowsort label-3192
SELECT col1 / - ( col0 ) AS col2 FROM tab2 AS cor0
----
-4
0
0

query I rowsort
SELECT + col0 * 74 * - col2 + - col2 AS col2 FROM tab1 AS cor0
----
-12042
-270009
-568416

query I rowsort
SELECT DISTINCT - + col0 + - 26 FROM tab0 AS cor0
----
-115
-50
-61

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3195
SELECT ALL - col2 / CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3195
SELECT ALL - col2 / CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3196
SELECT + - col2 + ( - 40 ) DIV col1 AS col2 FROM tab2 AS cor0
----
-26
-28
-40

skipif mysql # not compatible
query I rowsort label-3196
SELECT + - col2 + ( - 40 ) / col1 AS col2 FROM tab2 AS cor0
----
-26
-28
-40

query I rowsort
SELECT ALL col0 * - ( - col2 ) AS col0 FROM tab1 cor0
----
162
3648
7680

query I rowsort
SELECT + col1 + - col2 * col1 + + cor0.col1 AS col0 FROM tab0 AS cor0
----
-2666
-7280
97

query I rowsort
SELECT DISTINCT + col1 * + 21 AS col2 FROM tab2 AS cor0
----
1239
357
651

query I rowsort
SELECT DISTINCT 69 * + col0 FROM tab2 AS cor0
----
483
5382
5451

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 29 + cor0.col0 * 60 col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 1c6f3a5f9c618f1e6e67dde9fb6d99ed

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3202
SELECT ALL tab1.col0 + - CAST( NULL AS SIGNED ) * 49 col1 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3202
SELECT ALL tab1.col0 + - CAST ( NULL AS INTEGER ) * 49 col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + + 16 + + cor0.col2 FROM tab0 cor0
----
17
49
98

query I rowsort
SELECT DISTINCT - 14 - cor0.col0 FROM tab2, tab2 AS cor0
----
-21
-92
-93

query I rowsort
SELECT col0 - col2 FROM tab0 WHERE + col2 >= NULL
----

query I rowsort
SELECT ALL + col2 * col1 + col2 AS col0 FROM tab2
----
1560
684
864

query I rowsort
SELECT DISTINCT - col1 * tab0.col2 - + col2 * tab0.col0 AS col1 FROM tab0
----
-132
-14760
-3630

query I rowsort
SELECT - col0 * - col0 + + cor0.col2 * + 63 AS col1 FROM tab2 AS cor0
----
1750
7722
8635

query I rowsort
SELECT ALL - - 18 * + col2 FROM tab2 AS cor0
----
468
486
684

query I rowsort
SELECT + cor0.col1 * - tab1.col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 601c129c54e49286b9ededa8928121fc

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 68 * col0 * - tab0.col2 col1 FROM tab0
----
-2380
-496264
-53856

query I rowsort
SELECT + cor0.col2 + col1 * + cor0.col0 AS col0 FROM tab0 cor0
----
2097
3396
8181

query I rowsort
SELECT DISTINCT + col2 + ( col0 * - col1 ) FROM tab1 cor0
----
-24
-583
-944

query I rowsort
SELECT ALL - col1 + col0 * + 87 AS col2 FROM tab2
----
578
6727
6856

query I rowsort
SELECT DISTINCT - ( tab0.col1 ) + + 43 - tab0.col0 FROM tab0
----
-137
-67
-89

query I rowsort
SELECT tab0.col2 - - tab0.col1 AS col0 FROM tab0, tab2, tab1 cor0
----
27 values hashing to 15ff38272c484fb486e1883e64781cf3

query I rowsort
SELECT tab1.col1 AS col1 FROM tab1, tab2, tab1 AS cor0, tab0 AS cor1
----
81 values hashing to d7d3fabcafbed14f0d6ffd37195c971c

query I rowsort
SELECT col2 * 0 + + col0 FROM tab2 AS cor0
----
7
78
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-3219
SELECT ALL - cor0.col2 DIV ( + 81 + + col0 ) AS col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3219
SELECT ALL - cor0.col2 / ( + 81 + + col0 ) AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + col0 + - 39 * + col2 AS col2 FROM tab2 AS cor0
----
-1046
-1403
-936

query I rowsort
SELECT DISTINCT col0 * - ( 37 ) FROM tab0 cor0
----
-1295
-3293
-888

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3222
SELECT - 11 + + col0 + CAST( + col1 AS SIGNED ) * col1 col0 FROM tab2
----
3548
357
957

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3222
SELECT - 11 + + col0 + CAST ( + col1 AS INTEGER ) * col1 col0 FROM tab2
----
3548
357
957

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3223
SELECT ALL + 71 * - col0 - CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3223
SELECT ALL + 71 * - col0 - CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 5 + - col1 col2 FROM tab0
----
-81
-86
-92

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3225
SELECT ALL - CAST( cor0.col2 * - cor0.col0 AS SIGNED ) FROM tab2, tab2 AS cor0
----
9 values hashing to 41d4c126bfd4bfab59ba5e83427c98e0

skipif mysql # not compatible
query I rowsort label-3225
SELECT ALL - CAST ( cor0.col2 * - cor0.col0 AS INTEGER ) FROM tab2, tab2 AS cor0
----
9 values hashing to 41d4c126bfd4bfab59ba5e83427c98e0

query I rowsort
SELECT ALL col2 + ( + col0 * col0 + - tab0.col1 ) AS col2 FROM tab0
----
1129
523
7912

onlyif mysql # use DIV operator for integer division
query I rowsort label-3227
SELECT - - col0 - col0 DIV + cor0.col2 FROM tab0 AS cor0
----
0
24
88

skipif mysql # not compatible
query I rowsort label-3227
SELECT - - col0 - col0 / + cor0.col2 FROM tab0 AS cor0
----
0
24
88

query I rowsort
SELECT - 86 FROM tab1, tab1 AS cor0
----
9 values hashing to 9ac806793c03d3a6b5e3a3029d20e4da

query I rowsort
SELECT DISTINCT + 29 + + 28 FROM tab2, tab1 AS cor0
----
57

query I rowsort
SELECT DISTINCT + col2 * ( + 6 ) FROM tab2 cor0
----
156
162
228

query I rowsort
SELECT ALL - cor0.col0 * col1 + + col2 AS col2 FROM tab0 AS cor0
----
-2031
-3394
-8017

query I rowsort
SELECT - col2 + - 9 * col2 FROM tab2
----
-260
-270
-380

onlyif mysql # use DIV operator for integer division
query I rowsort label-3233
SELECT DISTINCT - cor0.col0 - - col0 DIV + col1 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-3233
SELECT DISTINCT - cor0.col0 - - col0 / + col1 col2 FROM tab0 AS cor0
----
-24
-35
-89

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3234
SELECT DISTINCT cor0.col2 * - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3234
SELECT DISTINCT cor0.col2 * - CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT col2 * + 91 AS col0 FROM tab0
----
3003
7462
91

query I rowsort
SELECT + 91 AS col0 FROM tab1
----
91
91
91

onlyif mysql # use DIV operator for integer division
query I rowsort label-3237
SELECT ALL col1 DIV 62 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3237
SELECT ALL col1 / 62 FROM tab0
----
1
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-3238
SELECT - - col1 DIV + col2 AS col0 FROM tab0 cor0
----
1
2
97

skipif mysql # not compatible
query I rowsort label-3238
SELECT - - col1 / + col2 AS col0 FROM tab0 cor0
----
1
2
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-3239
SELECT ( - 34 ) DIV - cor0.col0 AS col2 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3239
SELECT ( - 34 ) / - cor0.col0 AS col2 FROM tab0 AS cor0
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - 80 ) col0 FROM tab1, tab0, tab2 AS cor0
----
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-3241
SELECT ALL - ( 40 ) DIV col0 FROM tab1
----
-13
0
0

skipif mysql # not compatible
query I rowsort label-3241
SELECT ALL - ( 40 ) / col0 FROM tab1
----
-13
0
0

query I rowsort
SELECT ALL + + cor0.col0 * + col2 AS col2 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT + - col1 - col0 AS col0 FROM tab2 AS cor0
----
-137
-38
-96

query I rowsort
SELECT DISTINCT - - col0 + + col1 * + col0 FROM tab0 AS cor0
----
2088
3430
8188

query I rowsort
SELECT DISTINCT - - col2 + - cor0.col0 * col2 + + cor0.col0 FROM tab2 AS cor0
----
-155
-1924
-2885

query I rowsort
SELECT ALL + - ( + col1 ) FROM tab2 cor0
----
-17
-31
-59

query I rowsort
SELECT cor0.col1 * cor0.col0 - - col2 AS col0 FROM tab1 AS cor0
----
1136
132
697

query I rowsort
SELECT DISTINCT - col0 * + col2 + + 28 * col2 FROM tab2 AS cor0
----
-1300
-1938
567

query I rowsort
SELECT DISTINCT - ( + col0 ) * col1 FROM tab1 AS cor0
----
-1040
-640
-78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 + cor0.col0 col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL 34 * col0 * + ( + col2 ) - + cor0.col1 FROM tab0 AS cor0
----
1093
248041
26842

query I rowsort
SELECT + col1 * - col0 + + cor0.col2 FROM tab2 AS cor0
----
-1305
-190
-4576

query I rowsort
SELECT DISTINCT - 4 * col2 * - col2 FROM tab1 cor0
----
11664
12996
36864

query I rowsort
SELECT ALL + col0 * + col1 * 99 FROM tab1 AS cor0
----
102960
63360
7722

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 5 * - col2 col2 FROM tab2 AS cor0
----
130
135
190

query I rowsort
SELECT DISTINCT - 41 * cor0.col1 * col0 FROM tab2 AS cor0
----
-188682
-55063
-8897

query I rowsort
SELECT ALL 49 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to cb40783c0fff72e8802cdf0682e7cb55

query I rowsort
SELECT ALL + + cor0.col1 + - col0 FROM tab2 AS cor0
----
-19
-62
24

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3259
SELECT + - ( + col1 ) * - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3259
SELECT + - ( + col1 ) * - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - - col1 * - col2 AS col0 FROM tab2 cor0
----
-1534
-646
-837

query I rowsort
SELECT 98 AS col2 FROM tab2 AS cor0
----
98
98
98

query I rowsort
SELECT ALL - + col1 * col2 * - col2 AS col2 FROM tab0 AS cor0
----
611884
93654
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 41 col0 FROM tab2 AS cor0
----
41
41
41

query I rowsort
SELECT DISTINCT - + 97 * - cor0.col0 FROM tab2 AS cor0
----
679
7566
7663

query I rowsort
SELECT - cor0.col1 - + col2 AS col0 FROM tab1 AS cor0
----
-109
-67
-80

query I rowsort
SELECT cor0.col0 - col0 * + col1 AS col0 FROM tab0 cor0
----
-2040
-3360
-8010

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - cor0.col0 + col0 * cor0.col2 col0 FROM tab1 AS cor0
----
159
3584
7600

query I rowsort
SELECT + - cor0.col0 - col0 AS col2 FROM tab2 cor0
----
-14
-156
-158

query I rowsort
SELECT - - col2 * col2 AS col0 FROM tab2 cor0
----
1444
676
729

query I rowsort
SELECT ALL col2 * col0 + - col0 AS col2 FROM tab1
----
159
3584
7600

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * cor0.col1 + - col2 * + cor0.col2 * + col2 col0 FROM tab2 AS cor0
----
-14095
-18722
-54583

onlyif mysql # use DIV operator for integer division
query I rowsort label-3272
SELECT + col1 DIV - tab0.col0 AS col2 FROM tab0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-3272
SELECT + col1 / - tab0.col0 AS col2 FROM tab0
----
-1
-2
-3

onlyif mysql # use DIV operator for integer division
query I rowsort label-3273
SELECT col0 DIV + tab0.col1 AS col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3273
SELECT col0 / + tab0.col1 AS col1 FROM tab0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3274
SELECT ALL + col0 * col1 DIV col1 FROM tab1
----
3
64
80

skipif mysql # not compatible
query I rowsort label-3274
SELECT ALL + col0 * col1 / col1 FROM tab1
----
3
64
80

query I rowsort
SELECT ALL - + cor0.col2 * + col2 + - col1 AS col1 FROM tab0 AS cor0
----
-1175
-6815
-98

query I rowsort
SELECT + + 28 AS col0 FROM tab0 AS cor0
----
28
28
28

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 24 col0 FROM tab0 AS cor0
----
24

query I rowsort
SELECT + col2 + 70 * tab2.col0 FROM tab2
----
517
5486
5568

query I rowsort
SELECT DISTINCT + ( + col0 + col1 ) FROM tab0
----
110
132
180

query I rowsort
SELECT + + 11 * - col0 FROM tab2 AS cor0
----
-77
-858
-869

onlyif mysql # use DIV operator for integer division
query I rowsort label-3281
SELECT ( + col2 ) * - col2 * - tab0.col1 + col2 DIV - col2 AS col2 FROM tab0
----
611883
93653
96

skipif mysql # not compatible
query I rowsort label-3281
SELECT ( + col2 ) * - col2 * - tab0.col1 + col2 / - col2 AS col2 FROM tab0
----
611883
93653
96

query I rowsort
SELECT ALL - 0 + - col0 AS col0 FROM tab0
----
-24
-35
-89

query I rowsort
SELECT ALL + 79 AS col1 FROM tab0
----
79
79
79

query I rowsort
SELECT - + 38 + - col2 FROM tab1 AS cor0
----
-134
-92
-95

query I rowsort
SELECT DISTINCT - col1 * - col0 * + cor0.col2 + col1 FROM tab0 AS cor0
----
3492
664209
68198

query I rowsort
SELECT ALL - 92 + col2 AS col2 FROM tab2 cor0
----
-54
-65
-66

onlyif mysql # use DIV operator for integer division
query I rowsort label-3287
SELECT ALL col1 - - col1 DIV col0 col2 FROM tab1 AS cor0
----
10
13
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3287
SELECT ALL col1 - - col1 / col0 col2 FROM tab1 AS cor0
----
10
13
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor1.col1 col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
86
91
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 - col0 * col1 col0 FROM tab2
----
-1305
-190
-4576

query I rowsort
SELECT ALL + col0 AS col2 FROM tab2 WHERE NULL > - col0
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-3291
SELECT DISTINCT tab0.col2 DIV col0 col2 FROM tab0
----
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3291
SELECT DISTINCT tab0.col2 / col0 col2 FROM tab0
----
0
1

query I rowsort
SELECT - tab2.col1 * - col2 * col2 + col0 + col0 AS col0 FROM tab2
----
22613
24706
40040

query I rowsort
SELECT DISTINCT - col1 + col2 * + tab1.col2 + - col0 * col1 * + col0 AS col2 FROM tab1
----
-37721
-73997
2656

query III rowsort
SELECT * FROM tab2 WHERE NOT + col0 - - col1 BETWEEN ( col0 * + col0 ) AND NULL
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

onlyif mysql # use DIV operator for integer division
query I rowsort label-3295
SELECT + col0 DIV + col2 AS col2 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3295
SELECT + col0 / + col2 AS col2 FROM tab1
----
0
0
1

query I rowsort
SELECT DISTINCT + col1 * tab1.col1 + col2 AS col1 FROM tab1
----
157
265
730

query I rowsort
SELECT ALL tab2.col1 - col0 AS col2 FROM tab2
----
-19
-62
24

onlyif mysql # use DIV operator for integer division
query I rowsort label-3298
SELECT col1 * + col0 DIV + tab1.col0 + - col0 FROM tab1
----
-54
-67
23

skipif mysql # not compatible
query I rowsort label-3298
SELECT col1 * + col0 / + tab1.col0 + - col0 FROM tab1
----
-54
-67
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab1.col0 col0 FROM tab1 WHERE NULL IN ( col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 - - col0 * col1 col2 FROM tab2
----
1326
186
4543

query I rowsort
SELECT - col1 FROM tab0 WHERE ( + col1 ) > - col2
----
-86
-91
-97

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col1 NOT IN ( + tab2.col2 + + col2 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

onlyif mysql # use DIV operator for integer division
query I rowsort label-3303
SELECT ALL tab2.col0 DIV + col1 + col2 AS col0 FROM tab2
----
27
27
42

skipif mysql # not compatible
query I rowsort label-3303
SELECT ALL tab2.col0 / + col1 + col2 AS col0 FROM tab2
----
27
27
42

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col1 NOT IN ( col0 )
----

query I rowsort
SELECT col2 AS col2 FROM tab0 WHERE NOT ( col1 ) < col1
----
1
33
82

query I rowsort
SELECT + + col2 + col1 + - col2 * - col2 FROM tab0 cor0
----
1208
6897
99

query I rowsort
SELECT + - cor0.col0 + + col1 AS col1 FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT - tab1.col0 + + col2 - + col0 AS col0 FROM tab1
----
-64
-71
48

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL IN ( - col1 * col1 / + col1 + tab0.col1 )
----

query I rowsort
SELECT col0 * + col1 * - col0 AS col0 FROM tab2
----
-106097
-1519
-358956

query I rowsort
SELECT - col2 + col1 * + col0 AS col2 FROM tab2 AS cor0
----
1305
190
4576

query I rowsort
SELECT col2 + - col2 * col1 AS col0 FROM tab0 cor0
----
-2805
-7380
-96

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL = - col0 * + col1
----

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3314
SELECT ALL CAST( NULL AS SIGNED ) * ( col0 * ( col2 ) ) + col1 + CAST( - col1 AS SIGNED ) * - col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3314
SELECT ALL CAST ( NULL AS INTEGER ) * ( col0 * ( col2 ) ) + col1 + CAST ( - col1 AS INTEGER ) * - col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + 21 * + ( col2 ) AS col1 FROM tab0 AS cor0
----
1722
21
693

onlyif mysql # use DIV operator for integer division
query I rowsort label-3316
SELECT - ( col2 ) DIV col0 + col2 FROM tab2 AS cor0
----
24
26
38

skipif mysql # not compatible
query I rowsort label-3316
SELECT - ( col2 ) / col0 + col2 FROM tab2 AS cor0
----
24
26
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 52 * - 41 col0 FROM tab0 AS cor0
----
-2132
-2132
-2132

query I rowsort
SELECT cor0.col1 + - col1 * col2 + + col2 AS col2 FROM tab1 AS cor0
----
-1139
-1324
-503

query I rowsort
SELECT ALL col2 + - cor0.col2 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + cor0.col0 + col1 + - col0 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT DISTINCT col1 + + col1 * 18 AS col2 FROM tab1 AS cor0
----
190
247
494

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3322
SELECT + col1 + - col1 + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3322
SELECT + col1 + - col1 + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 14 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 83e5779d2487d12495e7d816c797264f

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3324
SELECT col2 - CAST( col0 AS SIGNED ) FROM tab0
----
-34
-7
9

skipif mysql # not compatible
query I rowsort label-3324
SELECT col2 - CAST ( col0 AS INTEGER ) FROM tab0
----
-34
-7
9

query I rowsort
SELECT ALL + - col2 * col2 + + col2 AS col1 FROM tab2 AS cor0
----
-1406
-650
-702

query I rowsort
SELECT DISTINCT col1 + ( col1 + + col0 ) FROM tab0 AS cor0
----
196
229
271

query I rowsort
SELECT col1 * - 56 FROM tab0 cor0
----
-4816
-5096
-5432

query I rowsort
SELECT DISTINCT - 8 * col0 FROM tab2 cor0
----
-56
-624
-632

query I rowsort
SELECT - 18 - + col2 * - cor0.col1 * col2 AS col2 FROM tab1 cor0
----
119790
32472
75798

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * col1 col2 FROM tab0 cor0
----
2838
7462
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3331
SELECT DISTINCT - CAST( NULL AS SIGNED ) + col0 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3331
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + col0 FROM tab2 cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3332
SELECT + + CAST( col2 AS SIGNED ) * + col2 AS col2 FROM tab0 AS cor0
----
1
1089
6724

skipif mysql # not compatible
query I rowsort label-3332
SELECT + + CAST ( col2 AS INTEGER ) * + col2 AS col2 FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT - + col2 * + 22 AS col2 FROM tab1 AS cor0
----
-1188
-1254
-2112

query I rowsort
SELECT ALL - ( col0 ) + + col1 AS col1 FROM tab0 AS cor0
----
2
62
62

query I rowsort
SELECT ALL + 52 + - col1 * cor0.col1 AS col1 FROM tab1 AS cor0
----
-117
-48
-624

onlyif mysql # use DIV operator for integer division
query I rowsort label-3336
SELECT DISTINCT - col2 * col2 DIV col1 + + ( 62 ) AS col2 FROM tab2 AS cor0
----
-22
39
51

skipif mysql # not compatible
query I rowsort label-3336
SELECT DISTINCT - col2 * col2 / col1 + + ( 62 ) AS col2 FROM tab2 AS cor0
----
-22
39
51

query I rowsort
SELECT - - col0 * cor0.col0 - + col2 FROM tab1 AS cor0
----
-45
4039
6304

query I rowsort
SELECT DISTINCT - 54 + - col1 AS col0 FROM tab2 AS cor0
----
-113
-71
-85

query I rowsort
SELECT + tab1.col2 * - 82 * 64 AS col2 FROM tab1
----
-283392
-299136
-503808

query I rowsort
SELECT col2 + + 87 * col1 AS col2 FROM tab2 AS cor0
----
1517
2724
5159

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 90 col1 FROM tab2 cor0
----
90

query I rowsort
SELECT DISTINCT 7 FROM tab1, tab2 AS cor0, tab2 AS cor1, tab2 cor2
----
7

query I rowsort
SELECT ALL - - col0 + 24 AS col2 FROM tab2 cor0
----
102
103
31

query I rowsort
SELECT ALL cor0.col2 * 36 FROM tab0 AS cor0
----
1188
2952
36

query I rowsort
SELECT - col2 + 52 * - col2 FROM tab2
----
-1378
-1431
-2014

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 91 + - col2 col0 FROM tab2 AS cor0
----
53
64
65

query I rowsort
SELECT DISTINCT - ( 56 ) * + col1 + + cor0.col0 AS col0 FROM tab0 AS cor0
----
-4792
-5007
-5397

query I rowsort
SELECT ALL + col1 + 39 * col2 AS col1 FROM tab0 AS cor0
----
136
1373
3289

query I rowsort
SELECT DISTINCT + + 24 - col1 * + col1 FROM tab2 cor0
----
-265
-3457
-937

query I rowsort
SELECT 38 * - 94 * col2 + + 79 - - tab2.col1 FROM tab2
----
-135640
-92734
-96334

query I rowsort
SELECT DISTINCT 23 + 67 * - col1 - - col0 * col2 FROM tab2
----
-1865
-1902
1886

query I rowsort
SELECT DISTINCT + ( 84 ) + col2 * col0 FROM tab1
----
246
3732
7764

onlyif mysql # use DIV operator for integer division
query I rowsort label-3353
SELECT cor0.col2 DIV - 97 AS col1 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

skipif mysql # not compatible
query I rowsort label-3353
SELECT cor0.col2 / - 97 AS col1 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

query I rowsort
SELECT ALL 73 + col1 * - col0 + 64 * tab2.col1 FROM tab2
----
-182
-753
1840

query I rowsort
SELECT + col0 * + col1 + 55 FROM tab2 AS cor0
----
1398
272
4657

query I rowsort
SELECT 96 + 96 - + col0 * col0 FROM tab0
----
-1033
-384
-7729

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 9 * col0 + + col2 col1 FROM tab2
----
-36
-673
-676

onlyif mysql # use DIV operator for integer division
query I rowsort label-3358
SELECT - col1 * col2 DIV - col2 + - 90 * - tab1.col1 + + col0 * 16 FROM tab1
----
1934
2414
2463

skipif mysql # not compatible
query I rowsort label-3358
SELECT - col1 * col2 / - col2 + - 90 * - tab1.col1 + + col0 * 16 FROM tab1
----
1934
2414
2463

query I rowsort
SELECT ALL - col1 * - col0 * - col2 - col2 AS col1 FROM tab0 AS cor0
----
-3396
-664200
-68145

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab1 cor0, tab2 cor1, tab0, tab1 AS cor2
----
3645 values hashing to 8bda8b9cf32f196464e0ee0b41a5162d

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3361
SELECT + CAST( NULL AS SIGNED ) + + tab0.col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3361
SELECT + CAST ( NULL AS INTEGER ) + + tab0.col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + tab1.col2 + 2 AS col0 FROM tab1
----
56
59
98

query I rowsort
SELECT ALL + col1 * col2 + + col1 AS col1 FROM tab2 cor0
----
1593
663
868

query I rowsort
SELECT + 77 * - tab2.col0 FROM tab2
----
-539
-6006
-6083

query I rowsort
SELECT - col2 * + tab2.col0 * + ( col0 ) AS col1 FROM tab2
----
-1323
-158184
-237158

query I rowsort
SELECT col1 + col2 * 48 FROM tab2 AS cor0
----
1307
1327
1841

query I rowsort
SELECT DISTINCT - cor0.col2 * ( 56 ) AS col1 FROM tab1 AS cor0
----
-3024
-3192
-5376

query I rowsort
SELECT - col2 * - 16 FROM tab2 cor0
----
416
432
608

query I rowsort
SELECT DISTINCT col0 * 97 + + 88 AS col0 FROM tab2 AS cor0
----
7654
767
7751

query I rowsort
SELECT 19 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 86c53e8567a17c8d91fc5aff119e0498

query I rowsort
SELECT ALL - col2 * col0 + col0 AS col2 FROM tab1
----
-159
-3584
-7600

query I rowsort
SELECT ALL tab0.col2 * tab0.col1 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 7623ebe74018211e6a4da91fc8c37d6d

query I rowsort
SELECT 39 AS col1 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to ed2ebd9def3e2c38aa46cb3af60fe229

query I rowsort
SELECT ALL + + col0 + - col1 - + col1 AS col0 FROM tab2 AS cor0
----
-40
-55
45

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3375
SELECT DISTINCT + col0 * CAST( col2 AS SIGNED ) FROM tab2 cor0
----
189
2028
3002

skipif mysql # not compatible
query I rowsort label-3375
SELECT DISTINCT + col0 * CAST ( col2 AS INTEGER ) FROM tab2 cor0
----
189
2028
3002

query I rowsort
SELECT + - col2 * + ( - col1 ) FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT DISTINCT - cor0.col0 * 11 AS col0 FROM tab2 AS cor0
----
-77
-858
-869

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + col1 col2 FROM tab0 cor0
----
7396
8281
9409

query I rowsort
SELECT + col0 + + ( 19 ) * cor0.col0 AS col1 FROM tab1 AS cor0
----
1280
1600
60

query I rowsort
SELECT ALL + col1 + col0 * - col1 AS col1 FROM tab2 cor0
----
-1326
-186
-4543

query I rowsort
SELECT ALL - cor0.col2 * cor0.col0 * - 0 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - - col0 + + CAST ( - 36 AS REAL ) FROM tab1 AS cor0
----
-33
28
44

query I rowsort
SELECT + tab0.col2 AS col0 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT ALL 1 * + tab2.col1 FROM tab2
----
17
31
59

query I rowsort
SELECT ALL - ( col2 ) * ( - cor0.col1 ) AS col0 FROM tab0 AS cor0
----
2838
7462
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 98 col2 FROM tab2, tab1, tab2 cor0
----
27 values hashing to c758e8afbdfa6aae279045b0e9cbacc2

onlyif mysql # use DIV operator for integer division
query I rowsort label-3387
SELECT - 6 + col2 DIV - ( + 72 * + col2 ) AS col1 FROM tab1 AS cor0
----
-6
-6
-6

skipif mysql # not compatible
query I rowsort label-3387
SELECT - 6 + col2 / - ( + 72 * + col2 ) AS col1 FROM tab1 AS cor0
----
-6
-6
-6

query I rowsort
SELECT - col2 + col0 * - 45 FROM tab2 AS cor0
----
-342
-3536
-3593

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0 AS cor0, tab0 cor1, tab1, tab1 AS cor2
----
3645 values hashing to 51e2051aff75c58a5edaa314f1412983

query I rowsort
SELECT cor0.col2 * + 68 * col0 AS col1 FROM tab0 AS cor0
----
2380
496264
53856

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - 27 * + col2 col1 FROM tab1 AS cor0
----
-1404
-1482
-2496

onlyif mysql # use DIV operator for integer division
query I rowsort label-3392
SELECT + col1 - - ( - ( col1 ) ) DIV col2 col2 FROM tab0 AS cor0
----
0
84
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3392
SELECT + col1 - - ( - ( col1 ) ) / col2 col2 FROM tab0 AS cor0
----
0
84
90

query I rowsort
SELECT col0 * - cor0.col1 + + cor0.col2 - - col0 FROM tab1 AS cor0
----
-21
-519
-864

query I rowsort
SELECT DISTINCT - col0 * - ( - 65 ) FROM tab2 AS cor0
----
-455
-5070
-5135

query I rowsort
SELECT - + col2 + + col0 * cor0.col0 AS col2 FROM tab1 AS cor0
----
-45
4039
6304

onlyif mysql # use DIV operator for integer division
query I rowsort label-3396
SELECT col1 DIV + 42 + col2 col1 FROM tab0 AS cor0
----
3
35
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3396
SELECT col1 / + 42 + col2 col1 FROM tab0 AS cor0
----
3
35
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + col1 * 14 * ( col0 ) col2 FROM tab1
----
1038
14464
8903

query I rowsort
SELECT - 4 AS col2 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 39ed23475412c3cbba02ecdd2d7018e6

query I rowsort
SELECT col2 - - 69 FROM tab1 AS cor0
----
123
126
165

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + cor0.col2 col2 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT + col0 + 65 * col0 FROM tab1 AS cor0
----
198
4224
5280

query I rowsort
SELECT - 96 + col2 AS col1 FROM tab0 AS cor0
----
-14
-63
-95

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3403
SELECT ALL + CAST( + col2 AS SIGNED ) * col1 AS col2 FROM tab0 AS cor0
----
2838
7462
97

skipif mysql # not compatible
query I rowsort label-3403
SELECT ALL + CAST ( + col2 AS INTEGER ) * col1 AS col2 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT DISTINCT - 33 * + col1 + col1 FROM tab0 AS cor0
----
-2752
-2912
-3104

onlyif mysql # use DIV operator for integer division
query I rowsort label-3405
SELECT ALL + - col1 + - 43 DIV col1 AS col1 FROM tab2 cor0
----
-19
-32
-59

skipif mysql # not compatible
query I rowsort label-3405
SELECT ALL + - col1 + - 43 / col1 AS col1 FROM tab2 cor0
----
-19
-32
-59

query I rowsort
SELECT DISTINCT 26 + ( + col2 ) AS col2 FROM tab0 AS cor0
----
108
27
59

query I rowsort
SELECT ALL 65 * 33 FROM tab0 AS cor0
----
2145
2145
2145

query I rowsort
SELECT DISTINCT 30 + - 3 * col1 * - ( - col2 ) + - cor0.col1 * + col2 FROM tab0 AS cor0
----
-11322
-29818
-358

query I rowsort
SELECT ALL + 28 + col1 FROM tab1 AS cor0
----
38
41
54

query I rowsort
SELECT DISTINCT 61 * 52 * col2 + cor0.col2 AS col1 FROM tab2 AS cor0
----
120574
82498
85671

query I rowsort
SELECT + - 78 * 8 FROM tab0 AS cor0
----
-624
-624
-624

query I rowsort
SELECT - col0 + 24 AS col1 FROM tab2 AS cor0
----
-54
-55
17

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3413
SELECT + CAST( col2 AS SIGNED ) + col1 AS col0 FROM tab0 AS cor0
----
119
173
98

skipif mysql # not compatible
query I rowsort label-3413
SELECT + CAST ( col2 AS INTEGER ) + col1 AS col0 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT 63 + - tab1.col0 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to d80b9a7583f3c5015d479abdb8444458

query I rowsort
SELECT + col1 * col2 + cor0.col0 * - col0 FROM tab1 AS cor0
----
-3526
-5152
1395

query I rowsort
SELECT - col2 * - col1 + + 28 * col1 * + col2 FROM tab2 AS cor0
----
18734
24273
44486

onlyif mysql # use DIV operator for integer division
query I rowsort label-3417
SELECT - col0 * cor0.col0 * + col2 + + ( + cor0.col1 ) DIV 29 AS col2 FROM tab1 AS cor0
----
-233472
-486
-614400

skipif mysql # not compatible
query I rowsort label-3417
SELECT - col0 * cor0.col0 * + col2 + + ( + cor0.col1 ) / 29 AS col2 FROM tab1 AS cor0
----
-233472
-486
-614400

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 67 * + col2 * col1 col1 FROM tab2 AS cor0
----
-102778
-43282
-56079

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 * col2 + - col0 * + col2 + - col0 col2 FROM tab0 AS cor0
----
-14849
-167
-3654

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3420
SELECT ALL - CAST( NULL AS SIGNED ) * + 33 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3420
SELECT ALL - CAST ( NULL AS INTEGER ) * + 33 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col2 * col1 + 82 AS col2 FROM tab0 AS cor0
----
179
2920
7544

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3422
SELECT DISTINCT - CAST( col0 AS SIGNED ) col1 FROM tab0
----
-24
-35
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3422
SELECT DISTINCT - CAST ( col0 AS INTEGER ) col1 FROM tab0
----
-24
-35
-89

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3423
SELECT - cor0.col2 / CAST( NULL AS DECIMAL ) FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-3423
SELECT - cor0.col2 / CAST ( NULL AS REAL ) FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT DISTINCT ( col0 * - tab1.col2 ) FROM tab1
----
-162
-3648
-7680

query I rowsort
SELECT ALL - 16 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to be22ac76b42c6f7212ecc0ba7c89eb34

query I rowsort
SELECT col2 * + cor0.col0 + col1 FROM tab2 AS cor0
----
2087
220
3019

query I rowsort
SELECT 98 + + col1 FROM tab0
----
184
189
195

query I rowsort
SELECT + 57 - col2 FROM tab0
----
-25
24
56

query I rowsort
SELECT col0 * ( 74 * - tab2.col0 ) FROM tab2
----
-3626
-450216
-461834

query I rowsort
SELECT DISTINCT + col0 + ( 80 ) FROM tab0
----
104
115
169

query I rowsort
SELECT + ( cor0.col1 ) + + col2 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT DISTINCT + col1 * 7 + col1 FROM tab2
----
136
248
472

query I rowsort
SELECT + col0 + 88 * col2 * - col1 AS col2 FROM tab2 AS cor0
----
-134914
-56769
-73649

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * + tab2.col1 col2 FROM tab2
----
1534
646
837

query I rowsort
SELECT - 59 * col1 FROM tab0
----
-5074
-5369
-5723

query I rowsort
SELECT - + ( ( - col2 ) ) + col1 AS col1 FROM tab1 cor0
----
109
67
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 18 col1 FROM tab0
----
18
18
18

query I rowsort
SELECT DISTINCT cor0.col1 * + tab1.col1 FROM tab1, tab2 cor0
----
9 values hashing to 819d50aeaf27d8e4e8dec203fb8f53ce

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 * 44 * col2 col2 FROM tab1 AS cor0
----
-128304
-142956
-405504

query I rowsort
SELECT DISTINCT + cor0.col1 * 69 - + 36 AS col0 FROM tab2 AS cor0
----
1137
2103
4035

query I rowsort
SELECT DISTINCT - cor0.col0 + - 44 FROM tab1 AS cor0
----
-108
-124
-47

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3442
SELECT cor0.col0 - - CAST( col2 AS SIGNED ) FROM tab0 AS cor0
----
171
36
57

skipif mysql # not compatible
query I rowsort label-3442
SELECT cor0.col0 - - CAST ( col2 AS INTEGER ) FROM tab0 AS cor0
----
171
36
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-3443
SELECT ALL - + col1 * + col1 + - 86 + + col0 DIV cor0.col2 AS col1 FROM tab1 AS cor0
----
-185
-255
-762

skipif mysql # not compatible
query I rowsort label-3443
SELECT ALL - + col1 * + col1 + - 86 + + col0 / cor0.col2 AS col1 FROM tab1 AS cor0
----
-185
-255
-762

query I rowsort
SELECT ALL + cor0.col1 * + 12 FROM tab0 cor0
----
1032
1092
1164

query I rowsort
SELECT - + col1 * col2 - - 12 FROM tab1 AS cor0
----
-1236
-1392
-558

query I rowsort
SELECT DISTINCT + col1 + 8 + - col2 AS col0 FROM tab0 AS cor0
----
104
17
61

query I rowsort
SELECT ALL cor0.col2 * - cor0.col1 - col1 AS col0 FROM tab0 cor0
----
-194
-2924
-7553

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col1 * col1 * col2 + + col0 col1 FROM tab1 AS cor0
----
16304
36507
5764

query I rowsort
SELECT DISTINCT + cor0.col1 + col2 FROM tab0 cor0
----
119
173
98

query I rowsort
SELECT + ( 14 ) FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 409c1790b702540dd9dc067c1965b7c0

query I rowsort
SELECT - col1 + tab0.col0 * col1 FROM tab0
----
1978
3298
8008

query I rowsort
SELECT ALL - col0 * col1 * col2 - + col2 FROM tab0 cor0
----
-3396
-664200
-68145

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3453
SELECT DISTINCT - col2 * - CAST( NULL AS SIGNED ) + - ( col2 * 62 ) + col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3453
SELECT DISTINCT - col2 * - CAST ( NULL AS INTEGER ) + - ( col2 * 62 ) + col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + col1 + - 32 * + 39 FROM tab0 AS cor0
----
-1151
-1157
-1162

query I rowsort
SELECT - col0 + 7 FROM tab2 cor0
----
-71
-72
0

query I rowsort
SELECT col0 - col1 * - 93 FROM tab2 AS cor0
----
1660
2890
5565

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3457
SELECT - CAST( ( - tab1.col0 ) AS SIGNED ) FROM tab1
----
3
64
80

skipif mysql # not compatible
query I rowsort label-3457
SELECT - CAST ( ( - tab1.col0 ) AS INTEGER ) FROM tab1
----
3
64
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( cor0.col2 ) * - col0 col1 FROM tab1 AS cor0
----
-162
-3648
-7680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 30 col0 FROM tab1, tab2 cor0, tab2 AS cor1
----
27 values hashing to 6c98840ed134c765d56389f4150075f0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3460
SELECT DISTINCT - - 45 - - col2 DIV + 6 FROM tab0 AS cor0
----
45
50
58

skipif mysql # not compatible
query I rowsort label-3460
SELECT DISTINCT - - 45 - - col2 / + 6 FROM tab0 AS cor0
----
45
50
58

onlyif mysql # use DIV operator for integer division
query I rowsort label-3461
SELECT ALL - col0 - - col2 DIV + 30 AS col2 FROM tab2 AS cor0
----
-7
-78
-78

skipif mysql # not compatible
query I rowsort label-3461
SELECT ALL - col0 - - col2 / + 30 AS col2 FROM tab2 AS cor0
----
-7
-78
-78

query I rowsort
SELECT + 83 * cor0.col2 + + ( + col1 ) AS col1 FROM tab1 AS cor0
----
4508
4741
7981

query I rowsort
SELECT ALL - col2 + col0 * - col2 AS col1 FROM tab0 AS cor0
----
-36
-7380
-825

query I rowsort
SELECT ALL + - col1 + + col1 * ( + 66 + col1 * - ( cor0.col2 ) ) FROM tab2 AS cor0
----
-23932
-86671
-9877

query I rowsort
SELECT + ( col0 ) + 21 AS col2 FROM tab2 AS cor0
----
100
28
99

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3466
SELECT ALL - - col2 * cor0.col2 + CAST( NULL AS SIGNED ) * col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3466
SELECT ALL - - col2 * cor0.col2 + CAST ( NULL AS INTEGER ) * col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT cor0.col0 + col1 * 49 AS col2 FROM tab0 cor0
----
4238
4548
4788

query I rowsort
SELECT ALL + + 17 FROM tab1 cor0
----
17
17
17

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3469
SELECT - col0 * CAST( col2 AS SIGNED ) AS col0 FROM tab2 cor0
----
-189
-2028
-3002

skipif mysql # not compatible
query I rowsort label-3469
SELECT - col0 * CAST ( col2 AS INTEGER ) AS col0 FROM tab2 cor0
----
-189
-2028
-3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-3470
SELECT col1 * col1 + 0 DIV 73 AS col2 FROM tab0
----
7396
8281
9409

skipif mysql # not compatible
query I rowsort label-3470
SELECT col1 * col1 + 0 / 73 AS col2 FROM tab0
----
7396
8281
9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col2 * + 55 * - col1 col0 FROM tab2 AS cor0
----
-35530
-46035
-84370

query I rowsort
SELECT col1 * - col0 + col0 AS col0 FROM tab1 AS cor0
----
-576
-75
-960

query I rowsort
SELECT ALL - 17 AS col0 FROM tab1 cor0
----
-17
-17
-17

skipif mysql # not compatible
query I rowsort
SELECT - + CAST ( - col2 AS REAL ) FROM tab0 cor0
----
1
33
82

query I rowsort
SELECT ALL + ( + 18 ) * col0 + col1 FROM tab2 AS cor0
----
1439
1463
157

query I rowsort
SELECT ALL cor0.col1 + 65 AS col0 FROM tab0 AS cor0
----
151
156
162

onlyif mysql # use DIV operator for integer division
query I rowsort label-3477
SELECT col0 - - 71 DIV tab1.col2 AS col2 FROM tab1
----
4
65
80

skipif mysql # not compatible
query I rowsort label-3477
SELECT col0 - - 71 / tab1.col2 AS col2 FROM tab1
----
4
65
80

query I rowsort
SELECT DISTINCT + + col0 + + col2 * col1 * ( col0 ) FROM tab1 AS cor0
----
36544
4215
99920

onlyif mysql # use DIV operator for integer division
query I rowsort label-3479
SELECT cor0.col1 DIV - col1 FROM tab2 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3479
SELECT cor0.col1 / - col1 FROM tab2 cor0
----
-1
-1
-1

query I rowsort
SELECT + 57 * col1 + col1 FROM tab2 cor0
----
1798
3422
986

onlyif mysql # use DIV operator for integer division
query I rowsort label-3481
SELECT - 76 DIV col1 + - col2 AS col1 FROM tab1
----
-101
-56
-64

skipif mysql # not compatible
query I rowsort label-3481
SELECT - 76 / col1 + - col2 AS col1 FROM tab1
----
-101
-56
-64

query I rowsort
SELECT + tab2.col0 + cor0.col2 AS col0 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 8217d522e32ec5cc4f9826fb5b492e52

query I rowsort
SELECT ALL - col1 + tab1.col1 + col0 * - ( + col1 ) FROM tab1
----
-1040
-640
-78

query I rowsort
SELECT ALL + 78 * + 49 AS col1 FROM tab1
----
3822
3822
3822

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3485
SELECT + - ( 97 ) * + tab2.col1 / CAST( NULL AS SIGNED ) + tab2.col0 col0 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3485
SELECT + - ( 97 ) * + tab2.col1 / CAST ( NULL AS INTEGER ) + tab2.col0 col0 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3486
SELECT ALL + CAST( 67 AS SIGNED ) AS col0 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to eea8a0738728ea55e4e7ba1506c9905a

skipif mysql # not compatible
query I rowsort label-3486
SELECT ALL + CAST ( 67 AS INTEGER ) AS col0 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to eea8a0738728ea55e4e7ba1506c9905a

query I rowsort
SELECT col0 * - 25 AS col1 FROM tab1 cor0
----
-1600
-2000
-75

onlyif mysql # use DIV operator for integer division
query I rowsort label-3488
SELECT ALL 46 DIV + cor0.col1 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 6f04a657bfe90ab5eca7923f4b996641

skipif mysql # not compatible
query I rowsort label-3488
SELECT ALL 46 / + cor0.col1 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 6f04a657bfe90ab5eca7923f4b996641

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * + col1 * - ( - 13 ) col2 FROM tab0
----
-1261
-36894
-97006

query I rowsort
SELECT 34 * tab1.col1 FROM tab1
----
340
442
884

query I rowsort
SELECT 69 * - col0 * col1 FROM tab2
----
-14973
-317538
-92667

query I rowsort
SELECT ALL - 61 * + col1 FROM tab0
----
-5246
-5551
-5917

query I rowsort
SELECT + cor0.col1 * + 53 + cor0.col0 * + col2 + 76 * - 22 AS col1 FROM tab1 AS cor0
----
-132
2506
6697

query I rowsort
SELECT - col2 * 23 * - 50 FROM tab0 AS cor0
----
1150
37950
94300

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 * col0 + col1 col2 FROM tab0 cor0
----
1322
662
8012

query I rowsort
SELECT + cor0.col2 + - 41 AS col0 FROM tab0 AS cor0
----
-40
-8
41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 + 15 col2 FROM tab1 AS cor0
----
-39
-42
-81

query I rowsort
SELECT DISTINCT - + col1 + col2 * 12 FROM tab2 AS cor0
----
253
293
439

query I rowsort
SELECT DISTINCT - tab2.col2 + - col0 * - 77 + col1 FROM tab2
----
543
6039
6062

query I rowsort
SELECT ALL - col0 * col1 + col0 * - 56 FROM tab1
----
-246
-4224
-5520

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3501
SELECT - col0 * CAST( - col0 AS SIGNED ) + - col2 AS col2 FROM tab2 cor0
----
22
6058
6203

skipif mysql # not compatible
query I rowsort label-3501
SELECT - col0 * CAST ( - col0 AS INTEGER ) + - col2 AS col2 FROM tab2 cor0
----
22
6058
6203

query I rowsort
SELECT + col1 * + 89 * - col0 + + col0 AS col1 FROM tab2 cor0
----
-119448
-19306
-409500

query I rowsort
SELECT ALL - col1 * - 99 * col0 + col2 * + col1 * col1 FROM tab1
----
119184
44226
69060

query I rowsort
SELECT - col2 + col2 - col2 * col0 FROM tab2
----
-189
-2028
-3002

query I rowsort
SELECT + - cor0.col0 + + col1 + ( col0 ) AS col0 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT col0 + 19 * 23 AS col0 FROM tab2 AS cor0
----
444
515
516

query I rowsort
SELECT DISTINCT - - col2 * + 7 AS col0 FROM tab1 AS cor0
----
378
399
672

query I rowsort
SELECT ( + col0 ) + col1 * col0 * - 78 FROM tab1 cor0
----
-49856
-6081
-81040

query I rowsort
SELECT - + ( + col2 ) + - cor0.col0 + + 24 AS col1 FROM tab0 AS cor0
----
-12
-147
-33

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3510
SELECT DISTINCT + + CAST( NULL AS DECIMAL ) * col0 * col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3510
SELECT DISTINCT + + CAST ( NULL AS REAL ) * col0 * col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3511
SELECT DISTINCT - col2 DIV col1 + col1 * col1 * - col1 + col2 * 49 FROM tab2 AS cor0
----
-204105
-28468
-3053

skipif mysql # not compatible
query I rowsort label-3511
SELECT DISTINCT - col2 / col1 + col1 * col1 * - col1 + col2 * 49 FROM tab2 AS cor0
----
-204105
-28468
-3053

query I rowsort
SELECT DISTINCT + - col1 * col2 * col2 FROM tab2 AS cor0
----
-22599
-24548
-39884

query I rowsort
SELECT + ( + col1 ) * cor0.col2 AS col1 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT 22 AS col1 FROM tab0 cor0
----
22
22
22

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3515
SELECT - CAST( NULL AS SIGNED ) + - col1 + - col1 * col0 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3515
SELECT - CAST ( NULL AS INTEGER ) + - col1 + - col1 * col0 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3516
SELECT - CAST( NULL AS DECIMAL ) * col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3516
SELECT - CAST ( NULL AS REAL ) * col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3517
SELECT + CAST( + 98 AS SIGNED ) + cor0.col0 / ( ( - cor0.col2 ) * CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3517
SELECT + CAST ( + 98 AS INTEGER ) + cor0.col0 / ( ( - cor0.col2 ) * CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + cor0.col0 + col1 + cor0.col1 FROM tab2 cor0
----
113
196
69

query I rowsort
SELECT col0 * 31 AS col0 FROM tab0
----
1085
2759
744

query I rowsort
SELECT + col2 * ( + ( + col2 ) + + col2 ) AS col2 FROM tab2
----
1352
1458
2888

query I rowsort
SELECT + col0 * ( tab2.col2 ) AS col2 FROM tab2
----
189
2028
3002

query I rowsort
SELECT DISTINCT + tab0.col2 * + 1 * col2 FROM tab0
----
1
1089
6724

query I rowsort
SELECT ALL 87 * col1 AS col2 FROM tab1 cor0
----
1131
2262
870

onlyif mysql # use DIV operator for integer division
query I rowsort label-3524
SELECT + 11 DIV 16 FROM tab0, tab1 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-3524
SELECT + 11 / 16 FROM tab0, tab1 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT col2 + cor0.col2 * 52 FROM tab1 AS cor0
----
2862
3021
5088

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 61 + cor0.col2 col1 FROM tab1 AS cor0
----
-4
-7
35

query I rowsort
SELECT col1 - + cor0.col0 * + ( cor0.col2 ) AS col1 FROM tab0 AS cor0
----
-706
-7207
62

query I rowsort
SELECT - - col0 + - col0 AS col1 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT ALL ( - cor0.col1 ) FROM tab0, tab2 AS cor0
----
9 values hashing to ccaa5dd3388d9ee0fea676fa35299fe5

query I rowsort
SELECT 7 * col1 FROM tab0 AS cor0
----
602
637
679

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 14 * cor0.col1 * - cor0.col1 col1 FROM tab1 AS cor0
----
-1400
-2366
-9464

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 - col0 * 55 col1 FROM tab1
----
-191
-3530
-4413

query I rowsort
SELECT - 20 * - col0 FROM tab1
----
1280
1600
60

query I rowsort
SELECT ALL 86 * 5 AS col1 FROM tab0 cor0
----
430
430
430

query I rowsort
SELECT DISTINCT - + cor0.col1 + col0 AS col2 FROM tab0 AS cor0
----
-2
-62

query I rowsort
SELECT + col2 * col0 + col1 AS col1 FROM tab1 AS cor0
----
188
3658
7693

query I rowsort
SELECT ALL + - 72 AS col2 FROM tab0 AS cor0
----
-72
-72
-72

onlyif mysql # use DIV operator for integer division
query I rowsort label-3538
SELECT ( - 86 ) DIV + col1 AS col1 FROM tab1 AS cor0
----
-3
-6
-8

skipif mysql # not compatible
query I rowsort label-3538
SELECT ( - 86 ) / + col1 AS col1 FROM tab1 AS cor0
----
-3
-6
-8

query I rowsort
SELECT - cor0.col0 + col2 * - col1 * col1 FROM tab0 cor0
----
-244092
-679131
-9444

query I rowsort
SELECT ALL - + 96 + col1 * - col0 AS col0 FROM tab1 AS cor0
----
-1136
-174
-736

onlyif mysql # use DIV operator for integer division
query I rowsort label-3541
SELECT + 17 DIV col0 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3541
SELECT + 17 / col0 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + ( col2 ) ) col2 FROM tab1 AS cor0
----
-54
-57
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-3543
SELECT ALL - col1 DIV - cor0.col0 AS col0 FROM tab1 AS cor0
----
0
0
8

skipif mysql # not compatible
query I rowsort label-3543
SELECT ALL - col1 / - cor0.col0 AS col0 FROM tab1 AS cor0
----
0
0
8

onlyif mysql # use DIV operator for integer division
query I rowsort label-3544
SELECT ALL - + col1 DIV 16 + col1 AS col2 FROM tab1 AS cor0
----
10
13
25

skipif mysql # not compatible
query I rowsort label-3544
SELECT ALL - + col1 / 16 + col1 AS col2 FROM tab1 AS cor0
----
10
13
25

query I rowsort
SELECT ( tab0.col1 ) FROM tab0, tab2 AS cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc

onlyif mysql # use DIV operator for integer division
query I rowsort label-3546
SELECT col0 DIV ( cor0.col1 * + col2 ) FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3546
SELECT col0 / ( cor0.col1 * + col2 ) FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - 76 + - col2 * + col1 AS col1 FROM tab0 AS cor0
----
-173
-2914
-7538

query I rowsort
SELECT ALL + + col0 * + 15 + + col1 FROM tab1 cor0
----
1213
71
970

query I rowsort
SELECT + 13 AS col1 FROM tab0 cor0
----
13
13
13

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 7 col1 FROM tab1 AS cor0
----
7
7
7

query I rowsort
SELECT DISTINCT col0 + - col2 * col2 AS col2 FROM tab2 AS cor0
----
-1365
-598
-722

skipif mysql # not compatible
query I rowsort
SELECT ALL + CAST ( col0 AS REAL ) * + col0 + col1 FROM tab0 AS cor0
----
1322
662
8012

query I rowsort
SELECT ALL - col0 * cor0.col2 + 44 AS col0 FROM tab1 AS cor0
----
-118
-3604
-7636

query I rowsort
SELECT - col2 * - col0 + 60 * - col2 + + cor0.col0 * + col0 * - col0 FROM tab2 cor0
----
-1774
-474084
-492317

onlyif mysql # use DIV operator for integer division
query I rowsort label-3555
SELECT ALL - col0 DIV + col2 + 14 * - col2 FROM tab0
----
-1149
-462
-49

skipif mysql # not compatible
query I rowsort label-3555
SELECT ALL - col0 / + col2 + 14 * - col2 FROM tab0
----
-1149
-462
-49

query I rowsort
SELECT DISTINCT + col0 + - 29 FROM tab2
----
-22
49
50

onlyif mysql # use DIV operator for integer division
query I rowsort label-3557
SELECT ALL col0 + col2 DIV ( - col2 ) FROM tab0
----
23
34
88

skipif mysql # not compatible
query I rowsort label-3557
SELECT ALL col0 + col2 / ( - col2 ) FROM tab0
----
23
34
88

query I rowsort
SELECT ALL + col1 + ( - col2 ) AS col0 FROM tab1
----
-28
-47
-83

query I rowsort
SELECT ALL + + col2 * - 55 + ( + col0 ) FROM tab2 AS cor0
----
-1352
-1478
-2011

query I rowsort
SELECT DISTINCT 69 * cor0.col2 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
3726
3933
6624

query I rowsort
SELECT + - col0 + - 32 + + col1 AS col1 FROM tab1 AS cor0
----
-86
-9
-99

query I rowsort
SELECT DISTINCT col1 + - col0 + col2 FROM tab0
----
63
84
95

query I rowsort
SELECT - col0 + 28 * 4 * + col0 AS col1 FROM tab2
----
777
8658
8769

query I rowsort
SELECT + cor0.col2 * - ( 19 ) * col0 FROM tab2 AS cor0
----
-3591
-38532
-57038

query I rowsort
SELECT cor1.col2 + cor1.col0 FROM tab1 AS cor0 CROSS JOIN tab1, tab0 AS cor1
----
27 values hashing to 651bd87d0835272922fb073806a0b5a0

query I rowsort
SELECT DISTINCT tab0.col2 * ( 24 * - col2 + - col1 ) FROM tab0
----
-121
-168838
-28974

query I rowsort
SELECT ALL - col1 * - 68 + col2 AS col1 FROM tab2 AS cor0
----
1194
2135
4038

query I rowsort
SELECT ALL + 44 + cor0.col0 FROM tab0 AS cor0
----
133
68
79

query I rowsort
SELECT ALL col0 + 6 FROM tab0 AS cor0
----
30
41
95

onlyif mysql # use DIV operator for integer division
query I rowsort label-3570
SELECT + col2 DIV + ( - col2 ) + - col2 * - tab0.col0 FROM tab0
----
34
7297
791

skipif mysql # not compatible
query I rowsort label-3570
SELECT + col2 / + ( - col2 ) + - col2 * - tab0.col0 FROM tab0
----
34
7297
791

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 76 col2 FROM tab2
----
76
76
76

query I rowsort
SELECT DISTINCT 76 * col0 * - col0 FROM tab0
----
-43776
-601996
-93100

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3573
SELECT DISTINCT CAST( col2 AS SIGNED ) * + col0 FROM tab1
----
162
3648
7680

skipif mysql # not compatible
query I rowsort label-3573
SELECT DISTINCT CAST ( col2 AS INTEGER ) * + col0 FROM tab1
----
162
3648
7680

query I rowsort
SELECT - ( col2 ) + col0 AS col1 FROM tab0 cor0
----
-9
34
7

query I rowsort
SELECT DISTINCT + col2 + + cor0.col0 * - col1 FROM tab2 cor0
----
-1305
-190
-4576

query I rowsort
SELECT DISTINCT + col0 + ( - col2 ) FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT ALL - ( + cor1.col2 ) AS col2 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6

onlyif mysql # use DIV operator for integer division
query I rowsort label-3578
SELECT col0 + col2 DIV col0 AS col1 FROM tab2
----
10
78
79

skipif mysql # not compatible
query I rowsort label-3578
SELECT col0 + col2 / col0 AS col1 FROM tab2
----
10
78
79

query I rowsort
SELECT + 84 * - col1 AS col0 FROM tab1
----
-1092
-2184
-840

onlyif mysql # use DIV operator for integer division
query I rowsort label-3580
SELECT ALL + - col1 + + col2 DIV + cor0.col2 FROM tab1 cor0
----
-12
-25
-9

skipif mysql # not compatible
query I rowsort label-3580
SELECT ALL + - col1 + + col2 / + cor0.col2 FROM tab1 cor0
----
-12
-25
-9

query I rowsort
SELECT DISTINCT col1 * col2 * 10 AS col0 FROM tab1 AS cor0
----
12480
14040
5700

query I rowsort
SELECT + col0 + col2 * col1 - col0 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT DISTINCT + - col2 + col2 + ( + col0 ) FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT - 20 - col0 FROM tab0 AS cor0
----
-109
-44
-55

query I rowsort
SELECT ALL + ( cor1.col0 ) AS col0 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

onlyif mysql # use DIV operator for integer division
query I rowsort label-3586
SELECT col2 + col2 + + cor0.col0 DIV col1 AS col2 FROM tab2 cor0
----
53
54
80

skipif mysql # not compatible
query I rowsort label-3586
SELECT col2 + col2 + + cor0.col0 / col1 AS col2 FROM tab2 cor0
----
53
54
80

query I rowsort
SELECT ALL col2 * + ( col2 ) AS col0 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT - - cor0.col2 + + 30 AS col1 FROM tab2 AS cor0
----
56
57
68

query I rowsort
SELECT col2 + + 4 AS col2 FROM tab0 AS cor0
----
37
5
86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - col0 + col2 col1 FROM tab1 AS cor0
----
-4039
-6304
45

onlyif mysql # use DIV operator for integer division
query I rowsort label-3591
SELECT ALL - col2 DIV cor0.col0 AS col0 FROM tab2 AS cor0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-3591
SELECT ALL - col2 / cor0.col0 AS col0 FROM tab2 AS cor0
----
-3
0
0

query I rowsort
SELECT DISTINCT col1 + col1 * col1 * cor0.col0 AS col1 FROM tab2 AS cor0
----
22848
271577
6758

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col2 + + col1 + + cor0.col0 col1 FROM tab0 AS cor0
----
167
7478
902

onlyif mysql # use DIV operator for integer division
query I rowsort label-3594
SELECT col0 * + col0 + 42 DIV + col1 + col1 DIV + col0 FROM tab1
----
18
4100
6403

skipif mysql # not compatible
query I rowsort label-3594
SELECT col0 * + col0 + 42 / + col1 + col1 / + col0 FROM tab1
----
18
4100
6403

query I rowsort
SELECT DISTINCT + col1 + - col0 * - 74 - - col0 FROM tab0
----
1886
2722
6766

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3596
SELECT - col2 + + col1 * + CAST( NULL AS SIGNED ) + + col0 / col0 col1 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3596
SELECT - col2 + + col1 * + CAST ( NULL AS INTEGER ) + + col0 / col0 col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT 53 + - col0 FROM tab1
----
-11
-27
50

query I rowsort
SELECT + col1 + ( - col2 ) * + col0 * - col2 FROM tab0 AS cor0
----
132
26222
598527

onlyif mysql # use DIV operator for integer division
query I rowsort label-3599
SELECT col2 + col0 DIV col1 AS col1 FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-3599
SELECT col2 + col0 / col1 AS col1 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT DISTINCT - col2 - col1 AS col0 FROM tab1
----
-109
-67
-80

query I rowsort
SELECT - col2 * + col0 * 60 FROM tab0
----
-2100
-437880
-47520

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col2 ) * - col0 col2 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT - + col0 * col1 + + col2 AS col0 FROM tab1 AS cor0
----
-24
-583
-944

query I rowsort
SELECT 86 * + col1 AS col2 FROM tab2
----
1462
2666
5074

query I rowsort
SELECT DISTINCT col2 + 17 FROM tab1
----
113
71
74

query I rowsort
SELECT DISTINCT + 5 * + col0 FROM tab2
----
35
390
395

onlyif mysql # use DIV operator for integer division
query I rowsort label-3607
SELECT ALL + 32 DIV col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3607
SELECT ALL + 32 / col2 FROM tab1
----
0
0
0

query I rowsort
SELECT + col2 + ( col0 ) * tab0.col2 FROM tab0
----
36
7380
825

query I rowsort
SELECT DISTINCT + col0 + + ( + 58 ) FROM tab0
----
147
82
93

query I rowsort
SELECT + 67 + ( cor0.col1 ) AS col2 FROM tab0 AS cor0
----
153
158
164

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 + + col0 col1 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT DISTINCT + col2 * - col0 - ( - col1 ) AS col1 FROM tab0
----
-706
-7207
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-3613
SELECT ( - col1 ) DIV col1 AS col0 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3613
SELECT ( - col1 ) / col1 AS col0 FROM tab1
----
-1
-1
-1

query I rowsort
SELECT DISTINCT 36 * - col2 + cor0.col0 FROM tab0 AS cor0
----
-1
-1164
-2863

query I rowsort
SELECT ALL col2 + + cor0.col2 * - col2 * - col1 FROM tab0 AS cor0
----
611966
93687
98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3616
SELECT - CAST( NULL AS SIGNED ) * col2 + + col1 * 65 * 35 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3616
SELECT - CAST ( NULL AS INTEGER ) * col2 + + col1 * 65 * 35 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ( col0 ) + col2 AS col2 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT + cor0.col2 * 47 - + col0 FROM tab0 AS cor0
----
12
1527
3765

query I rowsort
SELECT ALL - 48 + col1 FROM tab1 cor0
----
-22
-35
-38

query I rowsort
SELECT ALL - 63 * col2 + col2 AS col2 FROM tab0 AS cor0
----
-2046
-5084
-62

query I rowsort
SELECT col0 - + 61 FROM tab0 AS cor0
----
-26
-37
28

query I rowsort
SELECT ALL + ( + 89 ) * cor0.col1 + 0 * col2 * + cor0.col1 AS col0 FROM tab1 AS cor0
----
1157
2314
890

onlyif mysql # use DIV operator for integer division
query I rowsort label-3623
SELECT DISTINCT 43 DIV col2 FROM tab0
----
0
1
43

skipif mysql # not compatible
query I rowsort label-3623
SELECT DISTINCT 43 / col2 FROM tab0
----
0
1
43

query I rowsort
SELECT + col2 * ( col1 + col2 ) FROM tab2
----
1566
2090
2210

onlyif mysql # use DIV operator for integer division
query I rowsort label-3625
SELECT 76 * tab2.col0 DIV col0 FROM tab2
----
76
76
76

skipif mysql # not compatible
query I rowsort label-3625
SELECT 76 * tab2.col0 / col0 FROM tab2
----
76
76
76

onlyif mysql # use DIV operator for integer division
query I rowsort label-3626
SELECT - 20 DIV + col0 AS col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3626
SELECT - 20 / + col0 AS col2 FROM tab0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3627
SELECT DISTINCT CAST( NULL AS SIGNED ) + 91 AS col1 FROM tab0, tab2, tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3627
SELECT DISTINCT CAST ( NULL AS INTEGER ) + 91 AS col1 FROM tab0, tab2, tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL col0 * + 66 FROM tab0
----
1584
2310
5874

onlyif mysql # use DIV operator for integer division
query I rowsort label-3629
SELECT CAST( - ( + col0 ) AS SIGNED ) * col0 DIV col0 FROM tab1
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-3629
SELECT CAST ( - ( + col0 ) AS INTEGER ) * col0 / col0 FROM tab1
----
-3
-64
-80

query I rowsort
SELECT + 53 * - col2 AS col1 FROM tab2 AS cor0
----
-1378
-1431
-2014

query I rowsort
SELECT DISTINCT + 29 - col0 FROM tab0
----
-6
-60
5

query I rowsort
SELECT DISTINCT tab1.col2 + + col2 - col2 FROM tab1
----
54
57
96

query I rowsort
SELECT col0 + col1 * + ( - cor0.col2 + col2 ) * + col2 AS col1 FROM tab2 cor0
----
7
78
79

query I rowsort
SELECT - - col2 * col2 * 99 + - col0 * col1 AS col1 FROM tab2 AS cor0
----
141613
62322
71954

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 83 + col2 col2 FROM tab0 AS cor0
----
116
165
84

query I rowsort
SELECT + col2 * - cor0.col0 + + 79 AS col2 FROM tab0 AS cor0
----
-713
-7219
44

onlyif mysql # use DIV operator for integer division
query I rowsort label-3637
SELECT DISTINCT col2 + - col0 + CAST( col1 AS SIGNED ) DIV col2 AS col1 FROM tab0
----
-6
11
63

skipif mysql # not compatible
query I rowsort label-3637
SELECT DISTINCT col2 + - col0 + CAST ( col1 AS INTEGER ) / col2 AS col1 FROM tab0
----
-6
11
63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + col2 * col0 col2 FROM tab2 AS cor0
----
196
2106
3081

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * + col1 * col1 col2 FROM tab2 AS cor0
----
10982
25947
90506

query I rowsort
SELECT - + cor0.col0 * + col2 AS col1 FROM tab1 AS cor0
----
-162
-3648
-7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-3641
SELECT col2 + - cor0.col2 DIV + 28 col1 FROM tab2 AS cor0
----
26
27
37

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3641
SELECT col2 + - cor0.col2 / + 28 col1 FROM tab2 AS cor0
----
26
27
37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - col1 ) * - ( col2 ) + col2 + 81 * - col2 col1 FROM tab2 AS cor0
----
-1323
-2394
-546

onlyif mysql # use DIV operator for integer division
query I rowsort label-3643
SELECT - ( col1 ) DIV - 70 + - 31 col1 FROM tab2 AS cor0
----
-31
-31
-31

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3643
SELECT - ( col1 ) / - 70 + - 31 col1 FROM tab2 AS cor0
----
-31
-31
-31

query I rowsort
SELECT ALL + + col2 - - col2 AS col0 FROM tab2 AS cor0
----
52
54
76

query I rowsort
SELECT + + col0 * - 48 AS col2 FROM tab1 AS cor0
----
-144
-3072
-3840

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3646
SELECT + + CAST( col2 AS SIGNED ) * col0 AS col2 FROM tab0 AS cor0
----
35
7298
792

skipif mysql # not compatible
query I rowsort label-3646
SELECT + + CAST ( col2 AS INTEGER ) * col0 AS col2 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT ( col0 ) * cor0.col2 FROM tab1 AS cor0
----
162
3648
7680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab1.col1 col2 FROM tab1, tab1 cor0
----
9 values hashing to b234798d4706314ba14eaad539d0aa88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 72 ) col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49

query I rowsort
SELECT ALL tab0.col2 * + ( + col0 ) + - col1 + ( tab0.col1 ) * col2 AS col2 FROM tab0
----
14669
35
3544

query I rowsort
SELECT - col1 + - ( - col1 ) * col2 AS col0 FROM tab2
----
1475
629
806

query I rowsort
SELECT ALL + col1 * + 1 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT ALL - 99 * - 78 * cor0.col2 AS col1 FROM tab0 AS cor0
----
254826
633204
7722

query I rowsort
SELECT col1 + - col2 * col1 FROM tab1 AS cor0
----
-1235
-1378
-560

query I rowsort
SELECT ALL + - col0 * cor0.col1 - col1 FROM tab0 cor0
----
-2150
-3492
-8190

query I rowsort
SELECT - 5 AS col0 FROM tab1 cor0
----
-5
-5
-5

query I rowsort
SELECT DISTINCT + - ( col2 ) * col0 AS col2 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT DISTINCT - 49 * col2 AS col2 FROM tab0 AS cor0
----
-1617
-4018
-49

onlyif mysql # use DIV operator for integer division
query I rowsort label-3659
SELECT ALL cor0.col1 DIV col1 + + col1 FROM tab0 AS cor0
----
87
92
98

skipif mysql # not compatible
query I rowsort label-3659
SELECT ALL cor0.col1 / col1 + + col1 FROM tab0 AS cor0
----
87
92
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-3660
SELECT DISTINCT col0 * - col0 * cor0.col1 + col0 * + col1 DIV - col1 FROM tab2 AS cor0
----
-106176
-1526
-359034

skipif mysql # not compatible
query I rowsort label-3660
SELECT DISTINCT col0 * - col0 * cor0.col1 + col0 * + col1 / - col1 FROM tab2 AS cor0
----
-106176
-1526
-359034

query I rowsort
SELECT ALL 69 + 46 FROM tab1 AS cor0
----
115
115
115

query I rowsort
SELECT + col0 * + 8 AS col0 FROM tab0 AS cor0
----
192
280
712

query I rowsort
SELECT ALL - col1 * + cor0.col2 + + col0 AS col1 FROM tab0 AS cor0
----
-2814
-62
-7373

query I rowsort
SELECT DISTINCT 89 - col1 FROM tab0 AS cor0
----
-2
-8
3

query I rowsort
SELECT DISTINCT + - ( - col0 ) * + col0 - cor0.col0 FROM tab1 AS cor0
----
4032
6
6320

query I rowsort
SELECT 19 + col0 * 87 FROM tab0 cor0
----
2107
3064
7762

query I rowsort
SELECT ALL 49 + - col0 FROM tab2 AS cor0
----
-29
-30
42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 + + cor0.col0 col2 FROM tab2 AS cor0
----
-24
19
62

query I rowsort
SELECT + + cor0.col1 * - cor0.col0 + col2 + 64 AS col1 FROM tab0 cor0
----
-1967
-3330
-7953

query I rowsort
SELECT - 56 * - col2 * 36 AS col0 FROM tab1 AS cor0
----
108864
114912
193536

query I rowsort
SELECT ALL ( + col2 ) * - col2 + 77 * col1 AS col2 FROM tab2 AS cor0
----
-135
1658
3867

query I rowsort
SELECT + cor0.col0 + col0 + - col0 * + col0 AS col2 FROM tab1 AS cor0
----
-3
-3968
-6240

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3673
SELECT - col1 + col1 * + CAST( NULL AS SIGNED ) * 40 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3673
SELECT - col1 + col1 * + CAST ( NULL AS INTEGER ) * 40 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col2 * col0 * 32 AS col2 FROM tab1 AS cor0
----
-116736
-245760
-5184

query I rowsort
SELECT DISTINCT + + ( cor0.col0 ) * ( col0 ) FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT ALL col1 + col0 * cor0.col1 FROM tab1 AS cor0
----
104
1053
650

query I rowsort
SELECT DISTINCT + col1 * ( + ( col0 ) + ( - col2 ) ) * - col2 AS col0 FROM tab0 cor0
----
-3298
-52234
25542

query I rowsort
SELECT + col0 + col2 + col0 FROM tab2 AS cor0
----
182
196
41

query I rowsort
SELECT - ( - 92 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3680
SELECT ALL cor0.col0 + CAST( - col1 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-23
54
67

skipif mysql # not compatible
query I rowsort label-3680
SELECT ALL cor0.col0 + CAST ( - col1 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT DISTINCT - col0 - 67 FROM tab1 AS cor0
----
-131
-147
-70

query I rowsort
SELECT - + col0 + cor0.col0 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + cor0.col1 + ( col1 ) AS col1 FROM tab1 AS cor0
----
20
26
52

query I rowsort
SELECT DISTINCT + + col0 * - cor0.col2 AS col0 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT ALL + col1 + col1 + col2 AS col2 FROM tab2 AS cor0
----
144
72
89

query I rowsort
SELECT DISTINCT + - col0 + ( - col2 ) AS col0 FROM tab0 AS cor0
----
-171
-36
-57

query I rowsort
SELECT + - col1 * - col2 - col0 FROM tab2 AS cor0
----
1456
567
830

query I rowsort
SELECT ALL + 93 AS col0 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 85ef191bf1b307f300b3fd49992fcae7

onlyif mysql # use DIV operator for integer division
query I rowsort label-3689
SELECT - 44 + + tab1.col2 DIV - col1 FROM tab1
----
-46
-49
-51

skipif mysql # not compatible
query I rowsort label-3689
SELECT - 44 + + tab1.col2 / - col1 FROM tab1
----
-46
-49
-51

query I rowsort
SELECT col0 * - col0 + 45 - + col0 FROM tab0 AS cor0
----
-1215
-555
-7965

query I rowsort
SELECT ALL + 5 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 6035628694bdea36f584f3649088551d

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab0, tab1 cor1, tab0 AS cor2, tab1 AS cor3
----
3645 values hashing to 7a2f620d56640e95048dfa9a4cf93159

query I rowsort
SELECT ALL - col1 * + 95 + - col2 + + cor0.col2 FROM tab1 AS cor0
----
-1235
-2470
-950

query I rowsort
SELECT ALL - col1 - + col1 * col0 AS col0 FROM tab1 AS cor0
----
-104
-1053
-650

query I rowsort
SELECT - cor0.col2 - + cor0.col1 AS col2 FROM tab2, tab0 cor0
----
9 values hashing to 076bba756c9b7eaa94a11ec2f6f251f8

query I rowsort
SELECT + + col0 * - col1 + col1 * + col1 FROM tab2 AS cor0
----
-1054
-1121
744

skipif mysql # not compatible
query I rowsort
SELECT + CAST ( 37 AS REAL ) + - col1 * - col0 AS col1 FROM tab2
----
1380
254
4639

query I rowsort
SELECT ALL 17 * tab0.col0 + - col1 AS col0 FROM tab0
----
1422
322
498

query I rowsort
SELECT DISTINCT - col0 + cor0.col0 * col0 FROM tab1 AS cor0
----
4032
6
6320

query I rowsort
SELECT + col1 * - col1 + + col2 * + col0 FROM tab1
----
-514
3548
7511

query I rowsort
SELECT ALL + tab0.col0 * - col2 * - 33 + col1 * col2 AS col0 FROM tab0
----
1252
248296
28974

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3702
SELECT ALL - CAST( NULL AS DECIMAL ) FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-3702
SELECT ALL - CAST ( NULL AS REAL ) FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT DISTINCT cor0.col2 FROM tab2, tab2 cor0, tab2 AS cor1
----
26
27
38

query I rowsort
SELECT DISTINCT 87 * col2 + col2 * - cor0.col1 AS col1 FROM tab1 AS cor0
----
3294
4389
7104

query I rowsort
SELECT ALL - - col2 + col2 * 67 FROM tab2 cor0
----
1768
1836
2584

query I rowsort
SELECT ALL - 39 + - col2 FROM tab2 AS cor0
----
-65
-66
-77

onlyif mysql # use DIV operator for integer division
query I rowsort label-3707
SELECT DISTINCT - 23 DIV + col0 + - 39 FROM tab2 AS cor0
----
-39
-42

skipif mysql # not compatible
query I rowsort label-3707
SELECT DISTINCT - 23 / + col0 + - 39 FROM tab2 AS cor0
----
-39
-42

onlyif mysql # use DIV operator for integer division
query I rowsort label-3708
SELECT ( + 51 ) DIV col1 FROM tab2 AS cor0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-3708
SELECT ( + 51 ) / col1 FROM tab2 AS cor0
----
0
1
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col1 col2 FROM tab2, tab2 cor0, tab0 AS cor1
----
17
31
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-3710
SELECT + - 40 DIV col0 + + col1 * col1 * col1 FROM tab2 cor0
----
205379
29786
4913

skipif mysql # not compatible
query I rowsort label-3710
SELECT + - 40 / col0 + + col1 * col1 * col1 FROM tab2 cor0
----
205379
29786
4913

query I rowsort
SELECT - - col0 + + 64 * - col2 FROM tab0 AS cor0
----
-2088
-29
-5159

onlyif mysql # use DIV operator for integer division
query I rowsort label-3712
SELECT + col2 DIV + 59 AS col0 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3712
SELECT + col2 / + 59 AS col0 FROM tab0 AS cor0
----
0
0
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3713
SELECT CAST( NULL AS SIGNED ) + + col0 col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3713
SELECT CAST ( NULL AS INTEGER ) + + col0 col0 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 + + col0 + col0 AS col1 FROM tab0
----
24
35
89

query I rowsort
SELECT cor2.col0 AS col0 FROM tab1, tab2 AS cor0, tab2 AS cor1, tab0 AS cor2
----
81 values hashing to 2304fcc140e955eb2d1ee28ab1eea994

query I rowsort
SELECT - col0 * ( ( - col1 ) ) AS col0 FROM tab1 cor0
----
1040
640
78

query I rowsort
SELECT DISTINCT - col1 * + cor0.col1 + cor0.col2 + + col0 FROM tab2 AS cor0
----
-172
-3377
-927

query I rowsort
SELECT DISTINCT - 18 AS col1 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
-18

query I rowsort
SELECT 37 + + col1 * col0 FROM tab0
----
2101
3432
8136

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 - cor0.col2 col2 FROM tab0 AS cor0
----
-164
-2
-66

onlyif mysql # use DIV operator for integer division
query I rowsort label-3721
SELECT - + 31 + 79 DIV - cor0.col0 FROM tab0 AS cor0
----
-31
-33
-34

skipif mysql # not compatible
query I rowsort label-3721
SELECT - + 31 + 79 / - cor0.col0 FROM tab0 AS cor0
----
-31
-33
-34

onlyif mysql # use DIV operator for integer division
query I rowsort label-3722
SELECT ALL col2 * 35 DIV col1 FROM tab1
----
199
258
72

skipif mysql # not compatible
query I rowsort label-3722
SELECT ALL col2 * 35 / col1 FROM tab1
----
199
258
72

onlyif mysql # use DIV operator for integer division
query I rowsort label-3723
SELECT DISTINCT - col0 - col1 DIV col2 FROM tab0 AS cor0
----
-132
-26
-90

skipif mysql # not compatible
query I rowsort label-3723
SELECT DISTINCT - col0 - col1 / col2 FROM tab0 AS cor0
----
-132
-26
-90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + - cor0.col0 * + col0 * cor0.col1 col2 FROM tab1 AS cor0
----
-231
-40896
-83120

query I rowsort
SELECT ALL ( col2 ) + col0 - ( 96 ) FROM tab2 cor0
----
-62
21
8

query I rowsort
SELECT + + 78 AS col1 FROM tab1 AS cor0
----
78
78
78

query I rowsort
SELECT DISTINCT ( + cor0.col0 ) - col1 FROM tab0 AS cor0
----
-2
-62

query I rowsort
SELECT DISTINCT + 77 * - col1 AS col0 FROM tab0 AS cor0
----
-6622
-7007
-7469

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3729
SELECT CAST( NULL AS SIGNED ) + - cor0.col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3729
SELECT CAST ( NULL AS INTEGER ) + - cor0.col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 44 * tab0.col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 61d015e5790b2a2315b298499d31736c

query I rowsort
SELECT + ( col2 ) - - col0 * - col0 AS col1 FROM tab1
----
-4039
-6304
45

query I rowsort
SELECT - + col1 + - 83 AS col2 FROM tab1 AS cor0
----
-109
-93
-96

query I rowsort
SELECT ALL 47 AS col2 FROM tab1, tab1 cor0
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT ( col2 + - CAST ( 78 AS REAL ) ) FROM tab2
----
-40
-51
-52

query I rowsort
SELECT ALL cor0.col1 * + col0 + + 87 FROM tab2 AS cor0
----
1430
304
4689

query I rowsort
SELECT DISTINCT + - 83 AS col0 FROM tab2, tab0, tab2 AS cor0
----
-83

query I rowsort
SELECT ALL - tab0.col2 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc

query I rowsort
SELECT + 72 AS col1 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to 92cc3d5daa550304e96c1542787691c7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 21 col2 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 312c166f4dc412730c43555105b1f44b

onlyif mysql # use DIV operator for integer division
query I rowsort label-3740
SELECT + 24 * col0 DIV col1 + col1 AS col2 FROM tab1
----
160
163
28

skipif mysql # not compatible
query I rowsort label-3740
SELECT + 24 * col0 / col1 + col1 AS col2 FROM tab1
----
160
163
28

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3741
SELECT 4 + col0 * - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3741
SELECT 4 + col0 * - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT cor1.col0 FROM tab2 cor0 CROSS JOIN tab2, tab1 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

query I rowsort
SELECT ALL + - col0 * + cor0.col2 * col0 - - cor0.col1 FROM tab0 AS cor0
----
-1128
-18922
-649431

query I rowsort
SELECT ALL col0 * 66 + col2 AS col0 FROM tab1 AS cor0
----
252
4281
5376

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3745
SELECT - - col2 + - CAST( + col0 AS SIGNED ) FROM tab1 cor0
----
-7
16
51

skipif mysql # not compatible
query I rowsort label-3745
SELECT - - col2 + - CAST ( + col0 AS INTEGER ) FROM tab1 cor0
----
-7
16
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + 23 + - col0 col0 FROM tab2 AS cor0
----
1279
312
706

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3747
SELECT + - col0 + CAST( col0 AS SIGNED ) AS col0 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3747
SELECT + - col0 + CAST ( col0 AS INTEGER ) AS col0 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort
SELECT CAST ( + col0 AS REAL ) - col2 AS col2 FROM tab0
----
-9
34
7

query I rowsort
SELECT 48 * ( - col1 ) FROM tab0
----
-4128
-4368
-4656

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * + col0 + col2 * cor0.col1 col2 FROM tab2 AS cor0
----
-2356
-494
648

onlyif mysql # use DIV operator for integer division
query I rowsort label-3751
SELECT ALL col1 DIV cor0.col1 AS col1 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3751
SELECT ALL col1 / cor0.col1 AS col1 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT + 8 * col1 AS col2 FROM tab0
----
688
728
776

query I rowsort
SELECT DISTINCT - 1 + 95 AS col1 FROM tab1
----
94

query I rowsort
SELECT ALL 82 + + 54 AS col0 FROM tab2
----
136
136
136

onlyif mysql # use DIV operator for integer division
query I rowsort label-3755
SELECT 9 DIV + tab0.col2 + col1 FROM tab0
----
106
86
91

skipif mysql # not compatible
query I rowsort label-3755
SELECT 9 / + tab0.col2 + col1 FROM tab0
----
106
86
91

query I rowsort
SELECT col0 + - tab1.col2 * col1 + - col2 * ( - col2 ) * + 56 AS col0 FROM tab1
----
161895
181438
514928

query I rowsort
SELECT - col2 + col0 * + col2 AS col0 FROM tab0 AS cor0
----
34
7216
759

query I rowsort
SELECT ALL + 35 * - cor0.col2 AS col1 FROM tab1 AS cor0
----
-1890
-1995
-3360

query I rowsort
SELECT DISTINCT col2 + col2 + ( - 2 ) AS col0 FROM tab1 cor0
----
106
112
190

query I rowsort
SELECT + + cor0.col1 + col1 FROM tab2 cor0
----
118
34
62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3761
SELECT ALL - - tab1.col1 + CAST( NULL AS DECIMAL ) AS col2 FROM tab1, tab0 AS cor0, tab0, tab1 AS cor1
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

skipif mysql # not compatible
query I rowsort label-3761
SELECT ALL - - tab1.col1 + CAST ( NULL AS REAL ) AS col2 FROM tab1, tab0 AS cor0, tab0, tab1 AS cor1
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

query I rowsort
SELECT DISTINCT - col0 * - col1 - + cor0.col1 AS col2 FROM tab1 AS cor0
----
1027
52
630

query I rowsort
SELECT col1 * - cor0.col1 + ( 50 ) AS col2 FROM tab0 AS cor0
----
-7346
-8231
-9359

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + + col0 * col2 col1 FROM tab0 AS cor0
----
0
7209
768

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3765
SELECT - col1 + - col0 * CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3765
SELECT - col1 + - col0 * CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3766
SELECT ALL + + col1 DIV col1 + col0 FROM tab0 AS cor0
----
25
36
90

skipif mysql # not compatible
query I rowsort label-3766
SELECT ALL + + col1 / col1 + col0 FROM tab0 AS cor0
----
25
36
90

query I rowsort
SELECT + 73 AS col2 FROM tab2 cor0
----
73
73
73

onlyif mysql # use DIV operator for integer division
query I rowsort label-3768
SELECT DISTINCT 26 * - cor0.col1 - col0 DIV + 80 AS col0 FROM tab0 AS cor0
----
-2236
-2367
-2522

skipif mysql # not compatible
query I rowsort label-3768
SELECT DISTINCT 26 * - cor0.col1 - col0 / + 80 AS col0 FROM tab0 AS cor0
----
-2236
-2367
-2522

query I rowsort
SELECT - cor0.col0 + col1 * ( - col0 * + col2 ) AS col0 FROM tab1 AS cor0
----
-36544
-4215
-99920

query I rowsort
SELECT DISTINCT + 39 + + col1 AS col0 FROM tab0 AS cor0
----
125
130
136

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 33 * col2 col0 FROM tab0 AS cor0
----
1089
2706
33

query I rowsort
SELECT - 13 FROM tab0, tab0 cor0, tab1 AS cor1
----
27 values hashing to 1c6aaa07ba8d3dc01ee616e16bef60f2

query I rowsort
SELECT ALL - col1 * 51 FROM tab2
----
-1581
-3009
-867

query I rowsort
SELECT + col2 * + 52 FROM tab2 AS cor0
----
1352
1404
1976

query I rowsort
SELECT 23 + - 50 AS col1 FROM tab2, tab1 AS cor0, tab2 AS cor1, tab1 AS cor2
----
81 values hashing to 96d69a44243853624f324b296563e205

query I rowsort
SELECT DISTINCT + col2 * ( col1 ) AS col1 FROM tab0 cor0
----
2838
7462
97

query I rowsort
SELECT ALL col0 * 7 FROM tab2 AS cor0
----
49
546
553

query I rowsort
SELECT DISTINCT + - ( - cor0.col2 ) FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT ALL + col0 * 89 FROM tab0 AS cor0
----
2136
3115
7921

query I rowsort
SELECT ALL - 53 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to fee5c00ad71c23e23683a32c71fe6e7d

query I rowsort
SELECT ALL - + col1 * cor0.col0 AS col2 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT DISTINCT + 13 * col1 AS col2 FROM tab0 AS cor0
----
1118
1183
1261

query I rowsort
SELECT 31 + - col1 * - col0 AS col2 FROM tab2 AS cor0
----
1374
248
4633

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * - cor0.col1 * - col0 col2 FROM tab2 AS cor0
----
106097
1519
358956

query I rowsort
SELECT ALL + 43 + + col1 + col0 FROM tab1 AS cor0
----
117
136
72

query I rowsort
SELECT DISTINCT - col0 + - 31 * + col0 AS col0 FROM tab1 AS cor0
----
-2048
-2560
-96

query I rowsort
SELECT DISTINCT - ( + 12 ) * + col0 FROM tab1 AS cor0
----
-36
-768
-960

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3788
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * + cor0.col1 * col0 AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3788
SELECT DISTINCT - CAST ( NULL AS REAL ) * + cor0.col1 * col0 AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT 80 AS col2 FROM tab0, tab1 cor0
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94

query I rowsort
SELECT + col1 + col1 * col2 AS col2 FROM tab2
----
1593
663
868

query I rowsort
SELECT + 93 * - col0 AS col1 FROM tab0 AS cor0
----
-2232
-3255
-8277

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 64 col0 FROM tab2 AS cor0
----
64

query I rowsort
SELECT ALL + + 85 AS col2 FROM tab1 AS cor0
----
85
85
85

query I rowsort
SELECT ALL - 85 * col1 FROM tab2 AS cor0
----
-1445
-2635
-5015

onlyif mysql # use DIV operator for integer division
query I rowsort label-3795
SELECT + col2 DIV + cor0.col0 + + col1 + col1 DIV - col2 AS col2 FROM tab1 AS cor0
----
10
14
44

skipif mysql # not compatible
query I rowsort label-3795
SELECT + col2 / + cor0.col0 + + col1 + col1 / - col2 AS col2 FROM tab1 AS cor0
----
10
14
44

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 * col2 col1 FROM tab2 cor0
----
-1444
-676
-729

query I rowsort
SELECT 80 * col0 AS col0 FROM tab2
----
560
6240
6320

query I rowsort
SELECT DISTINCT 97 + - col1 AS col0 FROM tab1
----
71
84
87

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab2 cor0 CROSS JOIN tab2, tab2 AS cor1, tab0 AS cor2
----
3645 values hashing to 5ec52b92c3c8d78cc0a61df3fc16f18b

query I rowsort
SELECT + - cor1.col1 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to ccaa5dd3388d9ee0fea676fa35299fe5

query I rowsort
SELECT ALL - col2 - + 18 * + col1 * - col0 AS col1 FROM tab0 cor0
----
145700
37119
61109

query I rowsort
SELECT ALL cor0.col1 + - col2 * 26 * - col1 AS col1 FROM tab0 cor0
----
194103
2619
73874

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3803
SELECT + col2 + + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3803
SELECT + col2 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + + col1 + - col1 + + col2 * cor0.col2 FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT DISTINCT 50 + + col1 AS col0 FROM tab1
----
60
63
76

query I rowsort
SELECT + col2 + 58 AS col2 FROM tab0
----
140
59
91

query I rowsort
SELECT 18 AS col1 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 903ac227935c1532300db45a8537c595

query I rowsort
SELECT DISTINCT - 67 * col2 FROM tab2
----
-1742
-1809
-2546

query I rowsort
SELECT DISTINCT - cor1.col2 + - 81 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-135
-138
-177

query I rowsort
SELECT col2 + + cor0.col0 * col2 FROM tab2 AS cor0
----
2054
216
3040

query I rowsort
SELECT + 31 + - col2 * + cor0.col2 AS col1 FROM tab1 AS cor0
----
-2885
-3218
-9185

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 16 col0 FROM tab0 AS cor0
----
-16
-16
-16

query I rowsort
SELECT - 37 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to ed4644af7729c2425ea6cc3d84c6504f

onlyif mysql # use DIV operator for integer division
query I rowsort label-3814
SELECT - col2 DIV CAST( + col0 AS SIGNED ) FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3814
SELECT - col2 / CAST ( + col0 AS INTEGER ) FROM tab0
----
-1
0
0

query I rowsort
SELECT ALL - col1 - 15 * col2 * + col2 AS col2 FROM tab2
----
-10199
-10966
-21677

query I rowsort
SELECT + col0 - - 72 FROM tab0 AS cor0
----
107
161
96

query I rowsort
SELECT ALL + ( - col1 ) * - col2 FROM tab2 cor0
----
1534
646
837

query I rowsort
SELECT ALL col0 * ( + col2 ) FROM tab2 AS cor0
----
189
2028
3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - col1 + col0 ) col2 FROM tab2
----
-19
-62
24

query I rowsort
SELECT + ( - col2 ) * col2 FROM tab2
----
-1444
-676
-729

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col1 ) + col2 col1 FROM tab2 cor0
----
-33
-4
21

query I rowsort
SELECT - 1 * 96 AS col1 FROM tab0 AS cor0
----
-96
-96
-96

query I rowsort
SELECT DISTINCT 86 * - col0 FROM tab0 cor0
----
-2064
-3010
-7654

query I rowsort
SELECT + ( col0 ) + 37 * - cor0.col2 AS col2 FROM tab1 AS cor0
----
-1995
-2045
-3472

query I rowsort
SELECT - 36 * + cor0.col1 AS col2 FROM tab2 AS cor0
----
-1116
-2124
-612

query I rowsort
SELECT col0 + col0 * + ( - col1 ) FROM tab1 AS cor0
----
-576
-75
-960

onlyif mysql # use DIV operator for integer division
query I rowsort label-3827
SELECT - - 79 DIV + col0 FROM tab0 AS cor0
----
0
2
3

skipif mysql # not compatible
query I rowsort label-3827
SELECT - - 79 / + col0 FROM tab0 AS cor0
----
0
2
3

query I rowsort
SELECT + 72 * - col2 * - col0 AS col2 FROM tab1 AS cor0
----
11664
262656
552960

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + col2 * col1 col2 FROM tab2
----
1612
725
844

query I rowsort
SELECT ALL - ( - col0 ) * tab0.col1 FROM tab0
----
2064
3395
8099

query I rowsort
SELECT ALL 32 FROM tab2, tab0 cor0, tab2 AS cor1
----
27 values hashing to cf4f01ac97eb83445b1721f3ae28961a

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 96 col0 FROM tab1 AS cor0
----
96
96
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-3833
SELECT ALL tab0.col2 DIV col0 AS col2 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3833
SELECT ALL tab0.col2 / col0 AS col2 FROM tab0
----
0
0
1

query I rowsort
SELECT ALL cor1.col2 FROM tab1, tab2 cor0, tab2 AS cor1, tab0 AS cor2
----
81 values hashing to c4e6b1f1d28e731664a15a6f7cda4da9

query I rowsort
SELECT ALL - - ( + cor0.col0 ) + col1 AS col0 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT - col1 * col1 * col1 + - col2 FROM tab1 AS cor0
----
-1057
-17630
-2293

query I rowsort
SELECT ALL - + col2 * col0 + + cor0.col0 FROM tab0 AS cor0
----
-7209
-768
0

query I rowsort
SELECT DISTINCT 44 + - col2 AS col2 FROM tab1 AS cor0
----
-10
-13
-52

query I rowsort
SELECT ALL + + col2 * col0 * - col1 + cor0.col0 FROM tab2 cor0
----
-119574
-50955
-5852

query I rowsort
SELECT ( tab2.col1 * - tab2.col0 ) FROM tab2
----
-1343
-217
-4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-3841
SELECT - col1 + col1 DIV + ( col2 * + 22 ) FROM tab0 AS cor0
----
-86
-91
-93

skipif mysql # not compatible
query I rowsort label-3841
SELECT - col1 + col1 / + ( col2 * + 22 ) FROM tab0 AS cor0
----
-86
-91
-93

query I rowsort
SELECT DISTINCT col2 + + col1 * - col0 AS col0 FROM tab2 AS cor0
----
-1305
-190
-4576

query I rowsort
SELECT cor0.col2 * - 20 * + cor0.col0 AS col2 FROM tab1 AS cor0
----
-153600
-3240
-72960

onlyif mysql # use DIV operator for integer division
query I rowsort label-3844
SELECT ALL col2 + - col1 DIV 18 + col2 FROM tab1 AS cor0
----
107
114
192

skipif mysql # not compatible
query I rowsort label-3844
SELECT ALL col2 + - col1 / 18 + col2 FROM tab1 AS cor0
----
107
114
192

query I rowsort
SELECT ALL col2 + 20 AS col0 FROM tab0 cor0
----
102
21
53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 50 * + col0 col0 FROM tab1
----
150
3200
4000

query I rowsort
SELECT DISTINCT - cor0.col1 + col1 AS col0 FROM tab2 cor0
----
0

query I rowsort
SELECT + 50 * cor0.col0 AS col0 FROM tab1 AS cor0
----
150
3200
4000

query I rowsort
SELECT ALL - + 39 * - col0 + - col2 * col0 - col0 FROM tab2 AS cor0
----
0
77
936

query I rowsort
SELECT ALL ( + col0 ) * col1 + col1 * col2 AS col2 FROM tab1 AS cor0
----
1210
1482
2288

query I rowsort
SELECT - cor0.col1 * col0 * col2 AS col2 FROM tab2 AS cor0
----
-119652
-51034
-5859

query I rowsort
SELECT - col0 + + 73 * col0 AS col2 FROM tab0 AS cor0
----
1728
2520
6408

query I rowsort
SELECT + col2 * - 40 + - col1 AS col2 FROM tab1 cor0
----
-2186
-2290
-3853

query I rowsort
SELECT ALL - 74 FROM tab1, tab2 AS cor0, tab1 cor1
----
27 values hashing to 5a477330c946251f814fbbfd08e77c28

query I rowsort
SELECT ALL + tab1.col1 * + tab1.col0 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 815fccd4c3d372b28d3f3fb103025775

query I rowsort
SELECT ALL tab2.col1 AS col0 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

query I rowsort
SELECT - col2 * - col2 + + col0 FROM tab1 cor0
----
2919
3313
9296

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3858
SELECT + CAST( - 76 AS SIGNED ) FROM tab0 AS cor0
----
-76
-76
-76

skipif mysql # not compatible
query I rowsort label-3858
SELECT + CAST ( - 76 AS INTEGER ) FROM tab0 AS cor0
----
-76
-76
-76

query I rowsort
SELECT + col0 - 57 * - col2 FROM tab0 cor0
----
1905
4763
92

query I rowsort
SELECT DISTINCT - + col1 * + ( + 61 ) + col1 * - col2 FROM tab0 AS cor0
----
-13013
-6014
-8084

query I rowsort
SELECT + col0 * col2 * col2 - col0 FROM tab1 cor0
----
207872
737200
8745

query I rowsort
SELECT cor0.col1 * + cor0.col0 AS col2 FROM tab0 cor0
----
2064
3395
8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col2 * + col2 + col2 * cor0.col0 col2 FROM tab0 AS cor0
----
-297
34
574

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3864
SELECT col2 + - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3864
SELECT col2 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col2 * + ( - 98 ) + col0 * + col0 AS col1 FROM tab0
----
-115
-2658
1127

query I rowsort
SELECT DISTINCT col0 + col2 + col0 FROM tab1
----
185
256
60

query I rowsort
SELECT DISTINCT + col0 + + 99 AS col0 FROM tab2
----
106
177
178

query I rowsort
SELECT - 34 * col2 FROM tab2 AS cor0
----
-1292
-884
-918

onlyif mysql # use DIV operator for integer division
query I rowsort label-3869
SELECT col1 + + ( col2 ) * col1 + + col1 DIV - col1 AS col0 FROM tab2
----
1592
662
867

skipif mysql # not compatible
query I rowsort label-3869
SELECT col1 + + ( col2 ) * col1 + + col1 / - col1 AS col0 FROM tab2
----
1592
662
867

query I rowsort
SELECT + tab0.col2 + - ( + col2 ) AS col2 FROM tab0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3871
SELECT ALL tab0.col2 DIV + col0 + - 58 AS col1 FROM tab0
----
-57
-58
-58

skipif mysql # not compatible
query I rowsort label-3871
SELECT ALL tab0.col2 / + col0 + - 58 AS col1 FROM tab0
----
-57
-58
-58

query I rowsort
SELECT DISTINCT 82 AS col1 FROM tab0, tab0 cor0, tab0 AS cor1
----
82

query I rowsort
SELECT DISTINCT - col1 + 98 + + 10 FROM tab2
----
49
77
91

query I rowsort
SELECT DISTINCT ( cor0.col0 ) + - 26 FROM tab0 AS cor0
----
-2
63
9

query I rowsort
SELECT ALL - + col2 + + cor0.col0 - ( col0 ) AS col0 FROM tab1 AS cor0
----
-54
-57
-96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3876
SELECT col2 * col0 + + CAST( + col2 AS SIGNED ) * col0 FROM tab2 AS cor0
----
378
4056
6004

skipif mysql # not compatible
query I rowsort label-3876
SELECT col2 * col0 + + CAST ( + col2 AS INTEGER ) * col0 FROM tab2 AS cor0
----
378
4056
6004

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3877
SELECT CAST( col0 * - col2 + + 71 AS SIGNED ) FROM tab0
----
-721
-7227
36

skipif mysql # not compatible
query I rowsort label-3877
SELECT CAST ( col0 * - col2 + + 71 AS INTEGER ) FROM tab0
----
-721
-7227
36

query I rowsort
SELECT DISTINCT + 62 + ( - col1 ) FROM tab0
----
-24
-29
-35

query I rowsort
SELECT col1 - - ( - col0 ) FROM tab2
----
-19
-62
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + - cor0.col2 + + col1 * col2 col2 FROM tab2 AS cor0
----
1567
625
841

query I rowsort
SELECT ALL - + 28 * + col0 AS col2 FROM tab2 AS cor0
----
-196
-2184
-2212

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + col0 col1 FROM tab2 cor0
----
14
156
158

query I rowsort
SELECT DISTINCT + - 28 * + col0 + ( 89 ) FROM tab0 AS cor0
----
-2403
-583
-891

query I rowsort
SELECT DISTINCT + col0 * col2 - + ( + col2 ) * col2 AS col2 FROM tab1 AS cor0
----
-1536
-2754
399

query I rowsort
SELECT ALL + ( tab1.col2 ) AS col2 FROM tab1
----
54
57
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3886
SELECT DISTINCT + + CAST( + cor0.col1 AS SIGNED ) + + tab1.col1 * - 8 FROM tab1, tab2, tab2 cor0
----
9 values hashing to c0f58016133870af4cdfd6f12d82ed11

skipif mysql # not compatible
query I rowsort label-3886
SELECT DISTINCT + + CAST ( + cor0.col1 AS INTEGER ) + + tab1.col1 * - 8 FROM tab1, tab2, tab2 cor0
----
9 values hashing to c0f58016133870af4cdfd6f12d82ed11

query I rowsort
SELECT + 15 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + col2 col1 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL col0 * - col2 * col0 + - 31 FROM tab2 cor0
----
-1354
-158215
-237189

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 * cor0.col0 + + ( col1 ) col1 FROM tab0 AS cor0
----
1322
662
8012

onlyif mysql # use DIV operator for integer division
query I rowsort label-3891
SELECT ALL + col0 DIV col0 AS col0 FROM tab2 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3891
SELECT ALL + col0 / col0 AS col0 FROM tab2 cor0
----
1
1
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3892
SELECT ( - col1 ) + - CAST( NULL AS DECIMAL ) / - col2 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3892
SELECT ( - col1 ) + - CAST ( NULL AS REAL ) / - col2 AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col1 * col0 * 28 FROM tab2
----
128856
37604
6076

query I rowsort
SELECT 64 AS col0 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to c8b19f4c3ff38700cd2bb8a077bf29b9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 64 col2 FROM tab2 AS cor0
----
64
64
64

onlyif mysql # use DIV operator for integer division
query I rowsort label-3896
SELECT DISTINCT + col1 DIV col2 + CAST( - col0 AS SIGNED ) DIV - col2 FROM tab1 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-3896
SELECT DISTINCT + col1 / col2 + CAST ( - col0 AS INTEGER ) / - col2 FROM tab1 AS cor0
----
0
1

query I rowsort
SELECT + - 61 * col0 FROM tab0 AS cor0
----
-1464
-2135
-5429

query I rowsort
SELECT 63 * + col1 + - col1 * 92 FROM tab1 AS cor0
----
-290
-377
-754

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 14 + col1 * col2 * col0 col2 FROM tab0 AS cor0
----
3381
664104
68098

query I rowsort
SELECT DISTINCT + - col0 + ( col2 + col0 ) FROM tab2 AS cor0
----
26
27
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-3901
SELECT DISTINCT + col1 DIV + ( - 6 ) - - col2 * col0 FROM tab2 AS cor0
----
184
2019
3000

skipif mysql # not compatible
query I rowsort label-3901
SELECT DISTINCT + col1 / + ( - 6 ) - - col2 * col0 FROM tab2 AS cor0
----
184
2019
3000

query I rowsort
SELECT col0 * + 21 FROM tab2 AS cor0
----
147
1638
1659

query I rowsort
SELECT - - col1 + - ( 17 ) FROM tab1 AS cor0
----
-4
-7
9

query I rowsort
SELECT + - col1 * 75 + col1 AS col1 FROM tab1 AS cor0
----
-1924
-740
-962

query I rowsort
SELECT + col1 * 24 + + col2 FROM tab1 AS cor0
----
297
408
678

query I rowsort
SELECT + - col1 * 23 AS col0 FROM tab2 AS cor0
----
-1357
-391
-713

query I rowsort
SELECT ALL + + col0 * + cor0.col1 AS col0 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT ALL cor0.col1 AS col2 FROM tab2, tab1 AS cor0 CROSS JOIN tab1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

query I rowsort
SELECT DISTINCT + ( ( - col0 ) ) FROM tab1 AS cor0
----
-3
-64
-80

onlyif mysql # use DIV operator for integer division
query I rowsort label-3910
SELECT + cor0.col1 + col2 DIV col0 + col2 AS col0 FROM tab1 AS cor0
----
110
67
98

skipif mysql # not compatible
query I rowsort label-3910
SELECT + cor0.col1 + col2 / col0 + col2 AS col0 FROM tab1 AS cor0
----
110
67
98

query I rowsort
SELECT DISTINCT + col0 * col2 * col0 AS col0 FROM tab0 AS cor0
----
1225
19008
649522

query I rowsort
SELECT ALL + ( + col2 ) + - col2 * + ( 95 ) AS col1 FROM tab0 AS cor0
----
-3102
-7708
-94

query I rowsort
SELECT + + ( 96 ) FROM tab0 AS cor0
----
96
96
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3914
SELECT CAST( NULL AS SIGNED ) * + 52 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3914
SELECT CAST ( NULL AS INTEGER ) * + 52 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col2 * 0 AS col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT + 74 + - col1 + col2 FROM tab0 AS cor0
----
-22
21
65

query I rowsort
SELECT 20 - col2 FROM tab0 AS cor0
----
-13
-62
19

query I rowsort
SELECT DISTINCT - + 40 * - cor0.col0 FROM tab1 AS cor0
----
120
2560
3200

query I rowsort
SELECT col1 * + ( + col1 ) + col0 FROM tab0 AS cor0
----
7420
8370
9444

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3920
SELECT + + CAST( NULL AS SIGNED ) * + col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3920
SELECT + + CAST ( NULL AS INTEGER ) * + col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + 24 + - col0 + ( 79 ) col1 FROM tab1 cor0
----
255
311
700

query I rowsort
SELECT 83 + col2 + - 73 FROM tab1 AS cor0
----
106
64
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - cor0.col2 * col0 col0 FROM tab0 AS cor0
----
-35
-7298
-792

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3924
SELECT + CAST( col2 AS SIGNED ) + - tab1.col0 + ( + ( col2 ) + - col0 ) FROM tab1
----
-14
102
32

skipif mysql # not compatible
query I rowsort label-3924
SELECT + CAST ( col2 AS INTEGER ) + - tab1.col0 + ( + ( col2 ) + - col0 ) FROM tab1
----
-14
102
32

query I rowsort
SELECT ( 45 ) + col2 FROM tab1 AS cor0
----
102
141
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( + col0 AS REAL ) - col0 * col0 * + 30 col2 FROM tab0 AS cor0
----
-17256
-237541
-36715

onlyif mysql # use DIV operator for integer division
query I rowsort label-3927
SELECT - col2 DIV ( + cor0.col0 ) FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3927
SELECT - col2 / ( + cor0.col0 ) FROM tab0 AS cor0
----
-1
0
0

query I rowsort
SELECT ( - cor0.col0 ) * col2 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT ALL - cor0.col2 + - 85 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to 35a318cff958190e8cce89f95bafd119

onlyif mysql # use DIV operator for integer division
query I rowsort label-3930
SELECT DISTINCT col2 DIV + 20 col0 FROM tab0
----
0
1
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3930
SELECT DISTINCT col2 / + 20 col0 FROM tab0
----
0
1
4

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3931
SELECT col1 * CAST( NULL AS DECIMAL ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3931
SELECT col1 * CAST ( NULL AS REAL ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + + 89 AS col0 FROM tab0 AS cor0
----
89

query I rowsort
SELECT ( - ( - cor0.col0 ) ) * 92 + - col2 FROM tab2 AS cor0
----
617
7150
7230

query I rowsort
SELECT ALL + - cor0.col2 + 47 AS col1 FROM tab1 cor0
----
-10
-49
-7

query I rowsort
SELECT DISTINCT - tab0.col1 * + ( col0 + - col2 * col0 ) FROM tab0
----
0
656019
66048

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 93 * + cor0.col1 col1 FROM tab0 AS cor0
----
-7998
-8463
-9021

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3937
SELECT + col2 + + CAST( col0 AS SIGNED ) FROM tab2 AS cor0
----
104
117
34

skipif mysql # not compatible
query I rowsort label-3937
SELECT + col2 + + CAST ( col0 AS INTEGER ) FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT DISTINCT 32 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
32

query I rowsort
SELECT + 48 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b

query I rowsort
SELECT ALL ( + 79 ) AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f

query I rowsort
SELECT DISTINCT - col1 + - col2 * ( + col0 ) AS col0 FROM tab2 AS cor0
----
-2087
-220
-3019

onlyif mysql # use DIV operator for integer division
query I rowsort label-3942
SELECT - col1 * 77 DIV + col1 AS col2 FROM tab0 cor0
----
-77
-77
-77

skipif mysql # not compatible
query I rowsort label-3942
SELECT - col1 * 77 / + col1 AS col2 FROM tab0 cor0
----
-77
-77
-77

query I rowsort
SELECT DISTINCT - 59 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-59

query I rowsort
SELECT ALL + 28 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97

query I rowsort
SELECT col1 + 19 FROM tab0 AS cor0
----
105
110
116

query I rowsort
SELECT + col0 * col2 - cor0.col2 AS col2 FROM tab1 cor0
----
108
3591
7584

query I rowsort
SELECT - col1 + 43 FROM tab1 cor0
----
17
30
33

query I rowsort
SELECT + 70 + + col0 * col2 FROM tab1 AS cor0
----
232
3718
7750

query I rowsort
SELECT DISTINCT ( + col2 ) * - col1 AS col2 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT - + 96 * + 86 AS col2 FROM tab2 AS cor0
----
-8256
-8256
-8256

query I rowsort
SELECT ALL - col0 * col0 + col2 AS col2 FROM tab0 AS cor0
----
-1224
-543
-7839

query I rowsort
SELECT col1 + - col2 * + col2 FROM tab1 cor0
----
-2890
-3239
-9203

query I rowsort
SELECT DISTINCT col2 * - col0 * cor0.col0 FROM tab2 AS cor0
----
-1323
-158184
-237158

query I rowsort
SELECT ALL + col0 + + 23 * cor0.col1 FROM tab1 AS cor0
----
294
379
601

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col2 * col1 + - col1 + col2 col1 FROM tab0 cor0
----
1
2785
7453

query I rowsort
SELECT DISTINCT col2 + - col1 * col1 AS col1 FROM tab1 AS cor0
----
-43
-622
-73

query I rowsort
SELECT DISTINCT col2 * col2 + + 1 - col1 * col0 * - ( - col2 * col1 ) AS col2 FROM tab1
----
-106595
-1288703
-361550

query I rowsort
SELECT DISTINCT + ( col0 ) - + ( col0 ) FROM tab1
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3959
SELECT cor0.col1 DIV - 8 FROM tab2, tab2 AS cor0
----
9 values hashing to a5c0fa6b7ae9c43c3a3f6f0bc70161f5

skipif mysql # not compatible
query I rowsort label-3959
SELECT cor0.col1 / - 8 FROM tab2, tab2 AS cor0
----
9 values hashing to a5c0fa6b7ae9c43c3a3f6f0bc70161f5

query I rowsort
SELECT ALL - col0 * - ( cor0.col2 ) * + col2 FROM tab0 AS cor0
----
26136
35
598436

onlyif mysql # use DIV operator for integer division
query I rowsort label-3961
SELECT DISTINCT col1 + - col0 DIV - col2 FROM tab1 cor0
----
11
13
26

skipif mysql # not compatible
query I rowsort label-3961
SELECT DISTINCT col1 + - col0 / - col2 FROM tab1 cor0
----
11
13
26

query I rowsort
SELECT - col0 * + col2 + + 13 * col2 * 19 FROM tab1 AS cor0
----
10431
13176
16032

query I rowsort
SELECT ALL + col0 + ( + 56 ) * col0 FROM tab1 AS cor0
----
171
3648
4560

query I rowsort
SELECT cor0.col0 - + ( ( cor0.col0 ) ) FROM tab0 cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3965
SELECT ALL + col0 DIV ( + 96 ) FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3965
SELECT ALL + col0 / ( + 96 ) FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col2 * - 52 AS col0 FROM tab0 AS cor0
----
-1716
-4264
-52

query I rowsort
SELECT DISTINCT - col1 + + ( - cor0.col1 ) AS col0 FROM tab1 cor0
----
-20
-26
-52

query I rowsort
SELECT DISTINCT - 89 AS col2 FROM tab2
----
-89

onlyif mysql # use DIV operator for integer division
query I rowsort label-3969
SELECT ( col2 ) DIV - 77 + col0 + tab1.col0 FROM tab1
----
128
159
6

skipif mysql # not compatible
query I rowsort label-3969
SELECT ( col2 ) / - 77 + col0 + tab1.col0 FROM tab1
----
128
159
6

query I rowsort
SELECT tab0.col1 * - tab0.col2 AS col1 FROM tab0
----
-2838
-7462
-97

query I rowsort
SELECT ALL col1 - col1 * 4 FROM tab2
----
-177
-51
-93

query I rowsort
SELECT ALL + + 44 * col2 + - ( col1 ) * col0 AS col2 FROM tab2 AS cor0
----
-3458
329
971

onlyif mysql # use DIV operator for integer division
query I rowsort label-3973
SELECT DISTINCT + 84 DIV col1 FROM tab1 AS cor0
----
3
6
8

skipif mysql # not compatible
query I rowsort label-3973
SELECT DISTINCT + 84 / col1 FROM tab1 AS cor0
----
3
6
8

query I rowsort
SELECT ALL + 86 * col1 + cor0.col2 AS col2 FROM tab2 AS cor0
----
1500
2693
5100

query I rowsort
SELECT ALL - col1 + col1 * col0 FROM tab0 AS cor0
----
1978
3298
8008

onlyif mysql # use DIV operator for integer division
query I rowsort label-3976
SELECT cor0.col2 DIV + col0 AS col1 FROM tab1 AS cor0
----
0
1
18

skipif mysql # not compatible
query I rowsort label-3976
SELECT cor0.col2 / + col0 AS col1 FROM tab1 AS cor0
----
0
1
18

query I rowsort
SELECT - + col1 * + 40 AS col0 FROM tab0 AS cor0
----
-3440
-3640
-3880

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - 57 col0 FROM tab1 AS cor0
----
-31
-44
-47

query I rowsort
SELECT - cor0.col2 * 20 FROM tab0 AS cor0
----
-1640
-20
-660

query I rowsort
SELECT - 27 * + col0 * col2 + col1 FROM tab0
----
-196955
-21298
-848

query I rowsort
SELECT ALL col1 * col2 - col1 AS col2 FROM tab0
----
0
2752
7371

onlyif mysql # use DIV operator for integer division
query I rowsort label-3982
SELECT col1 + col0 DIV - col0 FROM tab0
----
85
90
96

skipif mysql # not compatible
query I rowsort label-3982
SELECT col1 + col0 / - col0 FROM tab0
----
85
90
96

query I rowsort
SELECT DISTINCT tab1.col1 + col2 * col1 / col2 FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + col0 * tab0.col2 col2 FROM tab0
----
1225
19008
649522

query I rowsort
SELECT + col0 * col2 - col1 FROM tab2
----
158
1969
2985

query I rowsort
SELECT ALL + col0 + tab2.col1 + col2 FROM tab2 WHERE NOT col2 >= NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-3987
SELECT DISTINCT col0 DIV - tab1.col1 AS col1 FROM tab1
----
-6
0

skipif mysql # not compatible
query I rowsort label-3987
SELECT DISTINCT col0 / - tab1.col1 AS col1 FROM tab1
----
-6
0

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab1 WHERE col1 * - col0 + + col1 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL tab0.col0 * + col2 * - col2 FROM tab0
----
-26136
-35
-598436

query I rowsort
SELECT DISTINCT col2 * col2 - col1 AS col2 FROM tab0
----
-96
1003
6633

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * col2 col2 FROM tab1 WHERE col1 * + col1 = NULL
----

query I rowsort
SELECT ALL - col2 * - tab2.col2 AS col1 FROM tab2
----
1444
676
729

query I rowsort
SELECT ALL - col1 * col0 - col0 AS col1 FROM tab0
----
-2088
-3430
-8188

query I rowsort
SELECT DISTINCT col0 FROM tab2 WHERE NOT NULL NOT BETWEEN ( NULL ) AND col0 + + col2 * + col1
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-3995
SELECT - tab1.col0 DIV tab1.col1 AS col1 FROM tab1
----
-6
-6
0

skipif mysql # not compatible
query I rowsort label-3995
SELECT - tab1.col0 / tab1.col1 AS col1 FROM tab1
----
-6
-6
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3996
SELECT DISTINCT + col1 + tab2.col0 DIV col1 FROM tab2
----
21
31
60

skipif mysql # not compatible
query I rowsort label-3996
SELECT DISTINCT + col1 + tab2.col0 / col1 FROM tab2
----
21
31
60

query I rowsort
SELECT col0 * col0 + col0 * col0 AS col2 FROM tab2
----
12168
12482
98

query I rowsort
SELECT ALL + tab1.col1 - col1 FROM tab1 WHERE - col1 < NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-3999
SELECT + col2 + + col1 DIV col1 + tab0.col1 DIV - col1 FROM tab0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-3999
SELECT + col2 + + col1 / col1 + tab0.col1 / - col1 FROM tab0
----
1
33
82

query I rowsort
SELECT + - col2 + + col0 * + 76 FROM tab2 AS cor0
----
505
5902
5966

query I rowsort
SELECT + col2 + + 44 * col0 FROM tab0
----
1089
1541
3998

query I rowsort
SELECT ALL - col2 + - ( - col0 * + col2 ) AS col0 FROM tab2
----
162
2002
2964

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + tab0.col1 col2 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
86
91
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + 91 col2 FROM tab1
----
65
78
81

query I rowsort
SELECT DISTINCT cor1.col0 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
3
64
80

query I rowsort
SELECT DISTINCT + 48 + col1 AS col2 FROM tab0 cor0
----
134
139
145

query I rowsort
SELECT + - 55 AS col2 FROM tab2 AS cor0
----
-55
-55
-55

onlyif mysql # use DIV operator for integer division
query I rowsort label-4008
SELECT col0 DIV - col2 + - ( + 97 ) AS col2 FROM tab1 cor0
----
-97
-97
-98

skipif mysql # not compatible
query I rowsort label-4008
SELECT col0 / - col2 + - ( + 97 ) AS col2 FROM tab1 cor0
----
-97
-97
-98

query I rowsort
SELECT + 99 + - col0 AS col0 FROM tab2 AS cor0
----
20
21
92

query I rowsort
SELECT ALL col0 * col0 + col2 FROM tab1 cor0
----
4153
63
6496

query I rowsort
SELECT ALL + cor0.col0 * + col2 + - col1 + - col1 * - col2 FROM tab2 AS cor0
----
3503
3631
995

query I rowsort
SELECT ALL col0 * + 58 + 28 + col2 AS col0 FROM tab0
----
1453
2059
5272

query I rowsort
SELECT - col2 * ( - col2 ) + col1 AS col2 FROM tab1 cor0
----
2942
3259
9229

query I rowsort
SELECT DISTINCT - - col1 * - ( col1 ) + col2 - cor0.col0 * - col2 FROM tab0 AS cor0
----
-6571
-901
-9373

query I rowsort
SELECT ALL - - col1 * + col1 + + col2 FROM tab0 cor0
----
7429
8363
9410

query I rowsort
SELECT col2 * + col2 - cor0.col1 * + col1 FROM tab0 AS cor0
----
-1557
-6307
-9408

query I rowsort
SELECT DISTINCT + cor0.col1 * + ( + col2 ) + + cor0.col2 FROM tab0 AS cor0
----
2871
7544
98

query I rowsort
SELECT DISTINCT col1 * 96 AS col1 FROM tab1 AS cor0
----
1248
2496
960

query I rowsort
SELECT - cor0.col2 * - col0 * + cor0.col1 AS col2 FROM tab0 AS cor0
----
3395
664118
68112

query I rowsort
SELECT DISTINCT + - ( col1 ) * col2 AS col1 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT + col1 * col2 - - col1 FROM tab0 cor0
----
194
2924
7553

query I rowsort
SELECT ( - 44 ) * - col1 AS col2 FROM tab0
----
3784
4004
4268

query I rowsort
SELECT - col0 * 24 AS col1 FROM tab1
----
-1536
-1920
-72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 48 - + cor0.col0 * cor0.col1 col1 FROM tab1 AS cor0
----
-1088
-126
-688

query I rowsort
SELECT DISTINCT + ( col0 ) + + col1 + - 54 AS col1 FROM tab2 AS cor0
----
-16
42
83

query I rowsort
SELECT 14 + - col0 FROM tab0 AS cor0
----
-10
-21
-75

query I rowsort
SELECT ALL + - col1 * - 10 FROM tab1 AS cor0
----
100
130
260

query I rowsort
SELECT + col1 * + col1 + - col1 AS col1 FROM tab1 cor0
----
156
650
90

query I rowsort
SELECT - 14 * col2 FROM tab0 AS cor0
----
-1148
-14
-462

query I rowsort
SELECT 69 * col2 * - col0 + - col0 FROM tab0 AS cor0
----
-2450
-503651
-54672

query I rowsort
SELECT col2 + col2 * - col0 + + col1 FROM tab2 AS cor0
----
-131
-1943
-2947

query I rowsort
SELECT - 93 * + col1 + + cor0.col1 - - col1 FROM tab1 cor0
----
-1183
-2366
-910

query I rowsort
SELECT - col1 + - 78 AS col0 FROM tab1
----
-104
-88
-91

query I rowsort
SELECT - 83 * col1 + + col0 * col1 + cor0.col0 * + col2 FROM tab2 AS cor0
----
-2167
1733
2934

query I rowsort
SELECT 19 * - col1 * col1 FROM tab0
----
-140524
-157339
-178771

query I rowsort
SELECT col0 + 94 AS col2 FROM tab1 AS cor0
----
158
174
97

query I rowsort
SELECT - col2 + - cor0.col0 * col0 AS col0 FROM tab2 AS cor0
----
-6110
-6279
-76

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4038
SELECT - - CAST( NULL AS SIGNED ) - + 1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4038
SELECT - - CAST ( NULL AS INTEGER ) - + 1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 78 * 90 FROM tab1
----
7020
7020
7020

query I rowsort
SELECT ALL ( + 63 ) FROM tab2
----
63
63
63

onlyif mysql # use DIV operator for integer division
query I rowsort label-4041
SELECT 40 DIV 94 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4041
SELECT 40 / 94 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL ( + 82 ) FROM tab0
----
82
82
82

query I rowsort
SELECT - col0 - + 77 AS col2 FROM tab2 AS cor0
----
-155
-156
-84

query I rowsort
SELECT - col0 * - 84 * + tab2.col0 FROM tab2
----
4116
511056
524244

query I rowsort
SELECT DISTINCT - + ( 59 ) FROM tab2 AS cor0
----
-59

query I rowsort
SELECT + col0 * col1 * col1 + + cor0.col0 + + col2 FROM tab1 AS cor0
----
13696
2085
6521

query I rowsort
SELECT + cor1.col2 AS col2 FROM tab0, tab2 cor0, tab2 cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 WHERE NULL = NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-4049
SELECT DISTINCT col0 + + col2 DIV - col1 FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-4049
SELECT DISTINCT col0 + + col2 / - col1 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT DISTINCT + col1 - - tab1.col1 FROM tab1
----
20
26
52

query I rowsort
SELECT ALL col0 AS col1 FROM tab2 WHERE NOT NULL BETWEEN ( - col0 * col2 * col1 ) AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * tab0.col1 * tab0.col1 col2 FROM tab0
----
636056
753571
912673

query I rowsort
SELECT ALL + cor0.col0 AS col2 FROM tab0 AS cor0 WHERE ( col0 * + cor0.col0 ) NOT IN ( col2 / col0 )
----
24
35
89

query I rowsort
SELECT DISTINCT col2 * col1 * - col1 FROM tab0
----
-244068
-679042
-9409

query I rowsort
SELECT ALL col1 * - col1 * - col2 AS col2 FROM tab2
----
10982
25947
90506

query I rowsort
SELECT col1 * + col1 * cor0.col1 - - col0 AS col0 FROM tab1 cor0
----
1064
17579
2277

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( - col0 - col0 ) NOT BETWEEN NULL AND + col1
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( + col0 * + cor0.col0 ) >= NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-4059
SELECT ALL + col1 DIV tab1.col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4059
SELECT ALL + col1 / tab1.col2 FROM tab1
----
0
0
0

query I rowsort
SELECT col2 - + col1 * - col1 AS col0 FROM tab0
----
7429
8363
9410

query I rowsort
SELECT - + col1 + + col1 * + col2 FROM tab1 cor0
----
1235
1378
560

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab0.col2 col1 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 7786718bd8042022537378d40ec87475

onlyif mysql # use DIV operator for integer division
query I rowsort label-4063
SELECT ALL col2 + + col1 + col2 DIV + col0 FROM tab0 AS cor0
----
120
173
98

skipif mysql # not compatible
query I rowsort label-4063
SELECT ALL col2 + + col1 + col2 / + col0 FROM tab0 AS cor0
----
120
173
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col2 - col2 col1 FROM tab0 AS cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4065
SELECT ALL col1 DIV - col0 + col1 + cor0.col0 FROM tab1 AS cor0
----
21
74
93

skipif mysql # not compatible
query I rowsort label-4065
SELECT ALL col1 / - col0 + col1 + cor0.col0 FROM tab1 AS cor0
----
21
74
93

query I rowsort
SELECT DISTINCT - col2 + col2 * - col1 AS col0 FROM tab1 AS cor0
----
-1344
-1458
-627

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - col0 * + 38 * + col2 col0 FROM tab1
----
-138560
-291760
-6153

query I rowsort
SELECT 31 + col1 AS col1 FROM tab2 AS cor0
----
48
62
90

query I rowsort
SELECT col0 + - 98 AS col0 FROM tab0
----
-63
-74
-9

query I rowsort
SELECT - col2 + - 56 AS col0 FROM tab1 AS cor0
----
-110
-113
-152

query I rowsort
SELECT DISTINCT - col2 * col2 - - col1 FROM tab2 AS cor0
----
-1427
-617
-698

onlyif mysql # use DIV operator for integer division
query I rowsort label-4072
SELECT + col0 + - 26 DIV ( - tab1.col2 * + col0 ) FROM tab1
----
3
64
80

skipif mysql # not compatible
query I rowsort label-4072
SELECT + col0 + - 26 / ( - tab1.col2 * + col0 ) FROM tab1
----
3
64
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-4073
SELECT 27 DIV 18 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

skipif mysql # not compatible
query I rowsort label-4073
SELECT 27 / 18 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

query I rowsort
SELECT 16 AS col2 FROM tab0 cor0
----
16
16
16

query I rowsort
SELECT - - ( - col1 ) * + col2 AS col0 FROM tab2 cor0
----
-1534
-646
-837

query I rowsort
SELECT DISTINCT + col0 * col2 + col2 + + 65 AS col1 FROM tab0 AS cor0
----
101
7445
890

query I rowsort
SELECT ALL + + 72 * + col1 + col1 AS col1 FROM tab2 AS cor0
----
1241
2263
4307

query I rowsort
SELECT - ( 96 ) FROM tab0 AS cor0
----
-96
-96
-96

query I rowsort
SELECT ALL + col2 + - cor0.col0 FROM tab0 cor0
----
-34
-7
9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4080
SELECT ALL - CAST( col1 AS SIGNED ) * + col0 + col0 * - col2 - col0 FROM tab0 AS cor0
----
-15486
-2880
-3465

skipif mysql # not compatible
query I rowsort label-4080
SELECT ALL - CAST ( col1 AS INTEGER ) * + col0 + col0 * - col2 - col0 FROM tab0 AS cor0
----
-15486
-2880
-3465

query I rowsort
SELECT - ( 7 ) + col1 AS col1 FROM tab0 AS cor0
----
79
84
90

query I rowsort
SELECT ALL ( + 58 ) + + col1 + - ( + col1 * col1 ) FROM tab2 AS cor0
----
-214
-3364
-872

query I rowsort
SELECT ALL col2 + + col1 + - col0 * + col2 AS col0 FROM tab2
----
-131
-1943
-2947

onlyif mysql # use DIV operator for integer division
query I rowsort label-4084
SELECT ALL tab0.col1 DIV - tab0.col1 + ( 0 ) col0 FROM tab0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4084
SELECT ALL tab0.col1 / - tab0.col1 + ( 0 ) col0 FROM tab0
----
-1
-1
-1

query I rowsort
SELECT ALL 99 + + col1 AS col2 FROM tab1
----
109
112
125

onlyif mysql # use DIV operator for integer division
query I rowsort label-4086
SELECT ALL col2 DIV col1 + - ( ( col2 ) ) * col0 * + 53 AS col2 FROM tab1
----
-193339
-407033
-8584

skipif mysql # not compatible
query I rowsort label-4086
SELECT ALL col2 / col1 + - ( ( col2 ) ) * col0 * + 53 AS col2 FROM tab1
----
-193339
-407033
-8584

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 2 + col1 col2 FROM tab2
----
19
33
61

query I rowsort
SELECT DISTINCT - col1 * col2 * 20 FROM tab1 AS cor0
----
-11400
-24960
-28080

query I rowsort
SELECT + 35 * col0 AS col0 FROM tab1 cor0
----
105
2240
2800

query I rowsort
SELECT - 89 - cor0.col2 * + 79 FROM tab1 AS cor0
----
-4355
-4592
-7673

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( 41 ) col2 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 47b9ef972839428f4f71d9f5b0944edf

query I rowsort
SELECT 58 FROM tab0, tab1 AS cor0, tab2 cor1, tab1 AS cor2
----
81 values hashing to 793ce5fda3f22b0a251dca7e8a07baed

query I rowsort
SELECT DISTINCT - - cor0.col2 * 51 + 77 * - col0 + + col2 AS col1 FROM tab2 AS cor0
----
-4107
-4654
865

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4094
SELECT - col0 * - CAST( NULL AS SIGNED ) * + cor0.col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4094
SELECT - col0 * - CAST ( NULL AS INTEGER ) * + cor0.col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4095
SELECT + cor0.col2 * CAST( + col0 + col0 AS SIGNED ) FROM tab0 AS cor0
----
14596
1584
70

skipif mysql # not compatible
query I rowsort label-4095
SELECT + cor0.col2 * CAST ( + col0 + col0 AS INTEGER ) FROM tab0 AS cor0
----
14596
1584
70

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4096
SELECT ALL - + col0 + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4096
SELECT ALL - + 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 col2 - + 79 col1 FROM tab2 AS cor0
----
-41
-52
-53

query I rowsort
SELECT + col1 * - 92 FROM tab2 AS cor0
----
-1564
-2852
-5428

query I rowsort
SELECT DISTINCT + - col1 + + col2 FROM tab1 cor0
----
28
47
83

query I rowsort
SELECT - col0 * + ( col2 ) + col2 FROM tab1 AS cor0
----
-108
-3591
-7584

query I rowsort
SELECT ALL - col1 * col1 + 6 AS col1 FROM tab2 AS cor0
----
-283
-3475
-955

onlyif mysql # use DIV operator for integer division
query I rowsort label-4102
SELECT col2 DIV cor0.col1 + + col0 AS col0 FROM tab2 AS cor0
----
7
78
81

skipif mysql # not compatible
query I rowsort label-4102
SELECT col2 / cor0.col1 + + col0 AS col0 FROM tab2 AS cor0
----
7
78
81

query I rowsort
SELECT DISTINCT + - col0 - ( 5 + + col2 ) * + 5 AS col2 FROM tab0 AS cor0
----
-214
-524
-65

query I rowsort
SELECT - col2 + + col2 - + col1 FROM tab1
----
-10
-13
-26

query I rowsort
SELECT + col0 + - col0 * - col0 + 50 AS col2 FROM tab1
----
4210
62
6530

query I rowsort
SELECT DISTINCT 10 + - col0 AS col1 FROM tab0
----
-14
-25
-79

query I rowsort
SELECT 54 * + col0 * ( - 13 ) + col0 FROM tab1
----
-2103
-44864
-56080

onlyif mysql # use DIV operator for integer division
query I rowsort label-4108
SELECT DISTINCT col2 DIV 7 AS col1 FROM tab1 AS cor0
----
13
7
8

skipif mysql # not compatible
query I rowsort label-4108
SELECT DISTINCT col2 / 7 AS col1 FROM tab1 AS cor0
----
13
7
8

onlyif mysql # use DIV operator for integer division
query I rowsort label-4109
SELECT ALL - 53 * - col2 * 60 - 55 DIV + col1 AS col0 FROM tab2
----
120837
82680
85859

skipif mysql # not compatible
query I rowsort label-4109
SELECT ALL - 53 * - col2 * 60 - 55 / + col1 AS col0 FROM tab2
----
120837
82680
85859

onlyif mysql # use DIV operator for integer division
query I rowsort label-4110
SELECT + col1 - ( cor0.col0 + cor0.col1 ) DIV ( col0 ) AS col2 FROM tab0 AS cor0
----
82
89
94

skipif mysql # not compatible
query I rowsort label-4110
SELECT + col1 - ( cor0.col0 + cor0.col1 ) / ( col0 ) AS col2 FROM tab0 AS cor0
----
82
89
94

query I rowsort
SELECT ALL - col0 * + col1 + + col1 FROM tab1
----
-1027
-52
-630

onlyif mysql # use DIV operator for integer division
query I rowsort label-4112
SELECT - col0 + - col0 DIV + ( cor0.col0 ) AS col2 FROM tab1 AS cor0
----
-4
-65
-81

skipif mysql # not compatible
query I rowsort label-4112
SELECT - col0 + - col0 / + ( cor0.col0 ) AS col2 FROM tab1 AS cor0
----
-4
-65
-81

query I rowsort
SELECT col1 + - col2 + + cor0.col0 AS col2 FROM tab0 AS cor0
----
131
77
98

query I rowsort
SELECT + + 50 + col0 * - col2 FROM tab2 AS cor0
----
-139
-1978
-2952

query I rowsort
SELECT ALL + col1 + 18 FROM tab1
----
28
31
44

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4116
SELECT + CAST( NULL AS SIGNED ) * + col0 + col1 * - col1 + + col2 * col2 * ( col2 ) col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4116
SELECT + CAST ( NULL AS INTEGER ) * + col0 + col1 * - col1 + + col2 * col2 * ( col2 ) col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 + - cor0.col1 * - col0 + - col2 * - col1 AS col1 FROM tab1 AS cor0
----
1220
1508
2301

query I rowsort
SELECT ( + 84 ) + - col1 FROM tab1 AS cor0
----
58
71
74

query I rowsort
SELECT + col0 + - col0 * col0 AS col1 FROM tab2 cor0
----
-42
-6006
-6162

query I rowsort
SELECT - 25 + + col0 * col0 + - 48 FROM tab1 AS cor0
----
-64
4023
6327

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4121
SELECT col0 * CAST( NULL AS SIGNED ) * + 53 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4121
SELECT col0 * CAST ( NULL AS INTEGER ) * + 53 AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 * - ( - col1 ) AS col1 FROM tab1
----
1248
1404
570

query I rowsort
SELECT + + 71 AS col2 FROM tab2 AS cor0
----
71
71
71

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4124
SELECT col0 + col0 * + CAST( col0 AS SIGNED ) FROM tab0 AS cor0
----
1260
600
8010

skipif mysql # not compatible
query I rowsort label-4124
SELECT col0 + col0 * + CAST ( col0 AS INTEGER ) FROM tab0 AS cor0
----
1260
600
8010

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4125
SELECT DISTINCT - - col0 * col1 + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4125
SELECT DISTINCT - - col0 * col1 + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4126
SELECT + ( - col0 ) DIV + col2 AS col2 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4126
SELECT + ( - col0 ) / + col2 AS col2 FROM tab1 AS cor0
----
-1
0
0

query I rowsort
SELECT ALL - 80 FROM tab0, tab1, tab0 cor0
----
27 values hashing to 26dbcc98d4b4e864ffa31be685a5dfbd

onlyif mysql # use DIV operator for integer division
query I rowsort label-4128
SELECT 24 + + col1 DIV - col0 AS col2 FROM tab2
----
20
24
24

skipif mysql # not compatible
query I rowsort label-4128
SELECT 24 + + col1 / - col0 AS col2 FROM tab2
----
20
24
24

onlyif mysql # use DIV operator for integer division
query I rowsort label-4129
SELECT - tab2.col2 + col0 * - col0 DIV ( tab2.col0 ) FROM tab2
----
-104
-117
-34

skipif mysql # not compatible
query I rowsort label-4129
SELECT - tab2.col2 + col0 * - col0 / ( tab2.col0 ) FROM tab2
----
-104
-117
-34

query I rowsort
SELECT - 42 + + col0 * - ( - col2 ) FROM tab0 AS cor0
----
-7
7256
750

query I rowsort
SELECT ALL - + 38 * col2 FROM tab0 AS cor0
----
-1254
-3116
-38

onlyif mysql # use DIV operator for integer division
query I rowsort label-4132
SELECT DISTINCT - 68 * col2 DIV - col2 AS col2 FROM tab0 AS cor0
----
68

skipif mysql # not compatible
query I rowsort label-4132
SELECT DISTINCT - 68 * col2 / - col2 AS col2 FROM tab0 AS cor0
----
68

query I rowsort
SELECT DISTINCT - 90 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-90

query I rowsort
SELECT DISTINCT - col2 * 20 AS col0 FROM tab1
----
-1080
-1140
-1920

onlyif mysql # use DIV operator for integer division
query I rowsort label-4135
SELECT + col2 DIV + ( col0 ) AS col0 FROM tab2
----
0
0
3

skipif mysql # not compatible
query I rowsort label-4135
SELECT + col2 / + ( col0 ) AS col0 FROM tab2
----
0
0
3

query I rowsort
SELECT - col0 - - cor0.col0 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + - 1 AS col1 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT + + col2 - ( + col2 ) FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT col0 + + 24 AS col2 FROM tab1
----
104
27
88

query I rowsort
SELECT ALL 2 - ( col2 ) FROM tab0
----
-31
-80
1

query I rowsort
SELECT DISTINCT col0 - + 48 FROM tab1
----
-45
16
32

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4142
SELECT DISTINCT CAST( NULL AS SIGNED ) - - col2 AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4142
SELECT DISTINCT CAST ( NULL AS INTEGER ) - - col2 AS col2 FROM tab1
----
NULL

query I rowsort
SELECT - 51 + col1 * + ( - cor0.col1 ) FROM tab2 AS cor0
----
-1012
-340
-3532

query I rowsort
SELECT DISTINCT - 47 * 2 * + cor0.col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-5076
-5358
-9024

query I rowsort
SELECT - - 77 + col1 * - col0 AS col0 FROM tab2 AS cor0
----
-1266
-140
-4525

onlyif mysql # use DIV operator for integer division
query I rowsort label-4146
SELECT DISTINCT 93 + - cor0.col1 DIV col2 FROM tab0 AS cor0
----
-4
91
92

skipif mysql # not compatible
query I rowsort label-4146
SELECT DISTINCT 93 + - cor0.col1 / col2 FROM tab0 AS cor0
----
-4
91
92

onlyif mysql # use DIV operator for integer division
query I rowsort label-4147
SELECT DISTINCT col0 + col2 DIV - col0 AS col2 FROM tab0 AS cor0
----
23
35
89

skipif mysql # not compatible
query I rowsort label-4147
SELECT DISTINCT col0 + col2 / - col0 AS col2 FROM tab0 AS cor0
----
23
35
89

query I rowsort
SELECT + 43 * col2 - col1 FROM tab1 AS cor0
----
2296
2441
4115

onlyif mysql # use DIV operator for integer division
query I rowsort label-4149
SELECT ALL + 1 + + col2 DIV - col0 AS col1 FROM tab2 AS cor0
----
-2
1
1

skipif mysql # not compatible
query I rowsort label-4149
SELECT ALL + 1 + + col2 / - col0 AS col1 FROM tab2 AS cor0
----
-2
1
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4150
SELECT DISTINCT - - col1 * col0 + - CAST( NULL AS SIGNED ) col0 FROM tab2 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4150
SELECT DISTINCT - - col1 * col0 + - CAST ( NULL AS INTEGER ) col0 FROM tab2 cor0
----
NULL

query I rowsort
SELECT ALL + 79 * col0 + ( + col0 ) AS col0 FROM tab2 AS cor0
----
560
6240
6320

query I rowsort
SELECT + + col1 * 99 AS col1 FROM tab1 AS cor0
----
1287
2574
990

query I rowsort
SELECT DISTINCT + 85 * 35 FROM tab2, tab0 AS cor0
----
2975

query I rowsort
SELECT + col1 * + 29 FROM tab1 AS cor0
----
290
377
754

query I rowsort
SELECT ( cor0.col2 ) * + col1 FROM tab2 cor0
----
1534
646
837

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4156
SELECT DISTINCT - - CAST( + col1 AS SIGNED ) AS col1 FROM tab1 cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-4156
SELECT DISTINCT - - CAST ( + col1 AS INTEGER ) AS col1 FROM tab1 cor0
----
10
13
26

query I rowsort
SELECT cor0.col0 * cor0.col2 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to e1120e7b687b32270ef70393236e7341

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4158
SELECT - - CAST( col0 AS SIGNED ) * col1 AS col0 FROM tab2 cor0
----
1343
217
4602

skipif mysql # not compatible
query I rowsort label-4158
SELECT - - CAST ( col0 AS INTEGER ) * col1 AS col0 FROM tab2 cor0
----
1343
217
4602

query I rowsort
SELECT ALL - 20 * - 9 + + col2 + + 3 FROM tab0 AS cor0
----
184
216
265

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + col0 ) * + col0 col0 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT ALL - - 21 AS col0 FROM tab0 AS cor0
----
21
21
21

query I rowsort
SELECT - - ( + col0 ) * - col1 AS col0 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT - col1 * 67 FROM tab0 cor0
----
-5762
-6097
-6499

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 + col1 col2 FROM tab1 cor0
----
29
74
93

query I rowsort
SELECT ALL - + 79 * cor0.col1 FROM tab1 AS cor0
----
-1027
-2054
-790

query I rowsort
SELECT + - col0 + - cor0.col1 * col2 AS col0 FROM tab0 cor0
----
-132
-2862
-7551

query I rowsort
SELECT - 3 + + col1 * col0 * + col2 AS col2 FROM tab2 cor0
----
119649
51031
5856

query I rowsort
SELECT 5 * + 15 * - tab1.col1 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 079f5e6a12a8e3fa378d37cc46c6442f

query I rowsort
SELECT DISTINCT - cor0.col0 FROM tab2, tab0, tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT ALL + + col0 * + 2 + col1 * + 72 FROM tab0 AS cor0
----
6240
6730
7054

query I rowsort
SELECT DISTINCT 82 + - col0 * + col0 + col1 FROM tab2 AS cor0
----
-5943
-6142
64

query I rowsort
SELECT ALL - + ( col0 ) + - col0 FROM tab0 AS cor0
----
-178
-48
-70

onlyif mysql # use DIV operator for integer division
query I rowsort label-4173
SELECT ALL 61 + col1 DIV + col2 AS col0 FROM tab0 AS cor0
----
158
62
63

skipif mysql # not compatible
query I rowsort label-4173
SELECT ALL 61 + col1 / + col2 AS col0 FROM tab0 AS cor0
----
158
62
63

onlyif mysql # use DIV operator for integer division
query I rowsort label-4174
SELECT + 2 + 89 DIV col0 FROM tab0
----
3
4
5

skipif mysql # not compatible
query I rowsort label-4174
SELECT + 2 + 89 / col0 FROM tab0
----
3
4
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + cor0.col1 col2 FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT DISTINCT ( - col1 * - col1 ) AS col2 FROM tab2
----
289
3481
961

query I rowsort
SELECT ALL + + 6 FROM tab0, tab2 AS cor0, tab1, tab0 AS cor1
----
81 values hashing to 44f233d1b3804e00d9436c0a41d1e2c8

query I rowsort
SELECT ALL + 30 * - col0 * + col0 FROM tab1
----
-122880
-192000
-270

query I rowsort
SELECT DISTINCT tab2.col1 * - col2 * tab2.col1 AS col2 FROM tab2
----
-10982
-25947
-90506

query I rowsort
SELECT ALL + - col1 * col0 + col2 FROM tab2 cor0
----
-1305
-190
-4576

onlyif mysql # use DIV operator for integer division
query I rowsort label-4181
SELECT + col0 + + 95 DIV 50 FROM tab0 AS cor0
----
25
36
90

skipif mysql # not compatible
query I rowsort label-4181
SELECT + col0 + + 95 / 50 FROM tab0 AS cor0
----
25
36
90

query I rowsort
SELECT DISTINCT - col2 + 70 * + ( - col1 + + col1 * + 23 ) AS col2 FROM tab1 AS cor0
----
15343
19924
39986

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + - ( col0 ) col2 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT ALL + col0 * + ( col0 + - col1 ) FROM tab0 AS cor0
----
-1488
-178
-2170

query I rowsort
SELECT - cor0.col1 + ( col1 ) * - col0 FROM tab2 AS cor0
----
-1360
-248
-4661

query I rowsort
SELECT - + col0 + - 11 * col2 FROM tab0 AS cor0
----
-387
-46
-991

query I rowsort
SELECT 25 + tab1.col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 8b68e2c5d2df05b0723a28ad588a1167

query I rowsort
SELECT DISTINCT cor1.col2 + - 12 * - ( + cor0.col2 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ef1a2ed3e19e8c12dfe56f01506fe5e1

query I rowsort
SELECT ALL col2 * - 76 + col0 * col1 AS col1 FROM tab0
----
-444
1867
3319

query I rowsort
SELECT ALL col1 + tab2.col1 * col0 + + tab2.col2 AS col1 FROM tab2
----
1398
275
4687

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4191
SELECT ALL - ( col0 ) * CAST( NULL AS SIGNED ) + + col1 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4191
SELECT ALL - ( col0 ) * CAST ( NULL AS INTEGER ) + + col1 AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT 99 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 05ea182fd6036c7f5e0ea08fc061cc67

onlyif mysql # use DIV operator for integer division
query I rowsort label-4193
SELECT DISTINCT 40 DIV col1 + + col2 FROM tab1 AS cor0
----
55
61
99

skipif mysql # not compatible
query I rowsort label-4193
SELECT DISTINCT 40 / col1 + + col2 FROM tab1 AS cor0
----
55
61
99

query I rowsort
SELECT + col0 + + col1 + cor0.col1 FROM tab2 AS cor0
----
113
196
69

onlyif mysql # use DIV operator for integer division
query I rowsort label-4195
SELECT DISTINCT + - col2 * col1 DIV + ( col2 ) FROM tab1 AS cor0
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-4195
SELECT DISTINCT + - col2 * col1 / + ( col2 ) FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT + col1 - 76 AS col1 FROM tab0
----
10
15
21

query I rowsort
SELECT ALL col0 * + 19 * + col1 - col2 * + col1 AS col2 FROM tab2 AS cor0
----
24871
3286
85904

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + col0 + CAST ( col1 AS REAL ) FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT - col1 + 96 * ( + col1 + + 72 ) FROM tab2
----
12517
8527
9857

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4200
SELECT ALL - CAST( NULL AS SIGNED ) + + 24 * col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4200
SELECT ALL - CAST ( NULL AS INTEGER ) + + 24 * col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4201
SELECT DISTINCT - - 3 DIV - cor0.col0 + cor0.col2 - col1 AS col1 FROM tab2 AS cor0
----
-33
-4
21

skipif mysql # not compatible
query I rowsort label-4201
SELECT DISTINCT - - 3 / - cor0.col0 + cor0.col2 - col1 AS col1 FROM tab2 AS cor0
----
-33
-4
21

onlyif mysql # use DIV operator for integer division
query I rowsort label-4202
SELECT ALL - 69 + + col2 DIV col2 + - col0 * - col1 FROM tab1 cor0
----
10
572
972

skipif mysql # not compatible
query I rowsort label-4202
SELECT ALL - 69 + + col2 / col2 + - col0 * - col1 FROM tab1 cor0
----
10
572
972

query I rowsort
SELECT DISTINCT + + col1 - - col1 AS col2 FROM tab2 AS cor0
----
118
34
62

query I rowsort
SELECT DISTINCT + col1 + - col1 * - col2 AS col2 FROM tab0
----
194
2924
7553

query I rowsort
SELECT DISTINCT - cor0.col1 * - col2 + + col0 AS col0 FROM tab2 AS cor0
----
1612
725
844

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * - 95 col0 FROM tab2 cor0
----
-665
-7410
-7505

query I rowsort
SELECT ( + ( cor0.col2 ) ) AS col1 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT DISTINCT 81 * + col2 * col0 + + col0 FROM tab2 AS cor0
----
15316
164346
243241

query I rowsort
SELECT + ( 40 ) + - col0 FROM tab0 AS cor0
----
-49
16
5

query I rowsort
SELECT DISTINCT + col0 + col1 * col0 * - col1 FROM tab2 AS cor0
----
-22752
-271440
-6720

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4211
SELECT ALL + CAST( NULL AS SIGNED ) + - col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4211
SELECT ALL + CAST ( NULL AS INTEGER ) + - col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 * 26 * + col0 + + cor0.col2 FROM tab0 AS cor0
----
210656
53697
88271

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 66 col2 FROM tab2 AS cor0
----
66
66
66

query I rowsort
SELECT + + 0 - + col0 FROM tab1 AS cor0
----
-3
-64
-80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4215
SELECT DISTINCT ( col2 ) * + col0 + CAST( NULL AS SIGNED ) / col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4215
SELECT DISTINCT ( col2 ) * + col0 + CAST ( NULL AS INTEGER ) / col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT 3 * 39 - col0 FROM tab2 cor0
----
110
38
39

query I rowsort
SELECT DISTINCT ( 67 ) + col0 * ( col1 ) AS col2 FROM tab1 cor0
----
1107
145
707

query I rowsort
SELECT DISTINCT - - ( 84 ) * + col2 FROM tab1 AS cor0
----
4536
4788
8064

onlyif mysql # use DIV operator for integer division
query I rowsort label-4219
SELECT - 90 DIV col0 - col0 FROM tab2 AS cor0
----
-19
-79
-80

skipif mysql # not compatible
query I rowsort label-4219
SELECT - 90 / col0 - col0 FROM tab2 AS cor0
----
-19
-79
-80

query I rowsort
SELECT ALL - + ( - 37 ) FROM tab0 AS cor0
----
37
37
37

query I rowsort
SELECT DISTINCT 62 + col1 FROM tab1 AS cor0
----
72
75
88

onlyif mysql # use DIV operator for integer division
query I rowsort label-4222
SELECT DISTINCT + ( col1 ) DIV col0 FROM tab2
----
0
4

skipif mysql # not compatible
query I rowsort label-4222
SELECT DISTINCT + ( col1 ) / col0 FROM tab2
----
0
4

onlyif mysql # use DIV operator for integer division
query I rowsort label-4223
SELECT - col1 DIV - col0 AS col2 FROM tab2 cor0
----
0
0
4

skipif mysql # not compatible
query I rowsort label-4223
SELECT - col1 / - col0 AS col2 FROM tab2 cor0
----
0
0
4

query I rowsort
SELECT ALL + + col2 * col1 - + col2 FROM tab2 AS cor0
----
1508
608
810

query I rowsort
SELECT ALL - + 64 + + 50 + col0 AS col2 FROM tab1 AS cor0
----
-11
50
66

query I rowsort
SELECT - 44 FROM tab2, tab0 AS cor0, tab1 AS cor1, tab0 AS cor2
----
81 values hashing to 9c887509d218271b9365009eba440976

query I rowsort
SELECT - 19 - + col2 AS col2 FROM tab2 AS cor0
----
-45
-46
-57

query I rowsort
SELECT + - 33 FROM tab2 cor0
----
-33
-33
-33

query I rowsort
SELECT DISTINCT - ( col1 ) * - ( - 52 ) * col0 - - col1 AS col2 FROM tab1 AS cor0
----
-33270
-4030
-54067

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 59 * col2 + - cor0.col1 col0 FROM tab2 AS cor0
----
-1593
-1624
-2259

query I rowsort
SELECT - - col2 - cor0.col1 FROM tab2 AS cor0
----
-33
-4
21

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4232
SELECT - CAST( NULL AS SIGNED ) * col2 col1 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4232
SELECT - CAST ( NULL AS INTEGER ) * col2 col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - + col0 * cor0.col0 * + col1 FROM tab0 AS cor0
----
-118825
-49536
-720811

query I rowsort
SELECT - col1 + col1 * + 98 AS col2 FROM tab0 AS cor0
----
8342
8827
9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-4235
SELECT ALL - - col0 DIV - col1 col0 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4235
SELECT ALL - - col0 / - col1 col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - cor0.col2 + 79 * + col0 FROM tab1 AS cor0
----
183
4999
6224

query I rowsort
SELECT DISTINCT cor1.col2 FROM tab0 AS cor0 CROSS JOIN tab0, tab0 AS cor1
----
1
33
82

query I rowsort
SELECT ALL + - col2 * 73 AS col1 FROM tab1 AS cor0
----
-3942
-4161
-7008

query I rowsort
SELECT - + col1 * - 60 AS col2 FROM tab1 AS cor0
----
1560
600
780

onlyif mysql # use DIV operator for integer division
query I rowsort label-4240
SELECT + cor0.col1 * col0 DIV col2 FROM tab1 AS cor0
----
1
10
11

skipif mysql # not compatible
query I rowsort label-4240
SELECT + cor0.col1 * col0 / col2 FROM tab1 AS cor0
----
1
10
11

query I rowsort
SELECT DISTINCT + cor0.col0 * 30 FROM tab0 AS cor0
----
1050
2670
720

query I rowsort
SELECT - col0 * col0 + - 84 AS col0 FROM tab2 AS cor0
----
-133
-6168
-6325

query I rowsort
SELECT - ( col0 * + 83 ) AS col1 FROM tab0
----
-1992
-2905
-7387

query I rowsort
SELECT ALL + tab2.col2 + + col0 + col1 FROM tab2
----
134
163
65

query I rowsort
SELECT + - col2 + + 25 FROM tab2 AS cor0
----
-1
-13
-2

query I rowsort
SELECT - + cor0.col0 * + 5 AS col0 FROM tab2 AS cor0
----
-35
-390
-395

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + col0 col2 FROM tab0 cor0
----
1225
576
7921

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + col2 col0 FROM tab1
----
109
67
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-4249
SELECT ALL + cor0.col1 + col2 DIV 40 AS col1 FROM tab0 AS cor0
----
86
93
97

skipif mysql # not compatible
query I rowsort label-4249
SELECT ALL + cor0.col1 + col2 / 40 AS col1 FROM tab0 AS cor0
----
86
93
97

query I rowsort
SELECT DISTINCT + cor1.col1 AS col1 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
86
91
97

query I rowsort
SELECT DISTINCT + col0 * - cor0.col1 AS col2 FROM tab2 cor0
----
-1343
-217
-4602

query I rowsort
SELECT ALL cor0.col1 * col0 + col2 AS col0 FROM tab2 AS cor0
----
1381
244
4628

query I rowsort
SELECT DISTINCT col1 * - ( 14 ) + - col1 AS col2 FROM tab2 AS cor0
----
-255
-465
-885

query I rowsort
SELECT ALL + 94 AS col1 FROM tab1
----
94
94
94

onlyif mysql # use DIV operator for integer division
query I rowsort label-4255
SELECT - col1 DIV tab2.col1 AS col1 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4255
SELECT - col1 / tab2.col1 AS col1 FROM tab2
----
-1
-1
-1

query I rowsort
SELECT + col0 * + ( + col2 ) * - col1 AS col2 FROM tab0
----
-3395
-664118
-68112

query I rowsort
SELECT col2 + + 27 AS col2 FROM tab1 AS cor0
----
123
81
84

query I rowsort
SELECT - + col2 + ( col1 ) * + col0 AS col2 FROM tab0 AS cor0
----
2031
3394
8017

query I rowsort
SELECT - 85 + + col0 AS col2 FROM tab0 AS cor0
----
-50
-61
4

query I rowsort
SELECT 28 * + col2 + col2 * 1 FROM tab1 AS cor0
----
1566
1653
2784

query I rowsort
SELECT ALL 55 * 66 FROM tab0 AS cor0
----
3630
3630
3630

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4262
SELECT ALL CAST( NULL AS DECIMAL ) AS col2 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-4262
SELECT ALL CAST ( NULL AS REAL ) AS col2 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4263
SELECT + ( col0 ) * CAST( - col1 AS SIGNED ) + + col0 * + cor0.col2 + col0 AS col1 FROM tab1 AS cor0
----
3072
6720
87

skipif mysql # not compatible
query I rowsort label-4263
SELECT + ( col0 ) * CAST ( - col1 AS INTEGER ) + + col0 * + cor0.col2 + col0 AS col1 FROM tab1 AS cor0
----
3072
6720
87

query I rowsort
SELECT ( - col0 ) + col1 + - col2 AS col2 FROM tab1 AS cor0
----
-111
-163
-31

query I rowsort
SELECT - col1 + cor0.col0 * ( ( + col2 ) ) AS col2 FROM tab2 AS cor0
----
158
1969
2985

query I rowsort
SELECT 36 + col2 FROM tab1
----
132
90
93

query I rowsort
SELECT 53 * + col1 + + col2 + - col1 * col0 FROM tab1 AS cor0
----
-255
-53
1354

query I rowsort
SELECT ALL - col2 * + col1 + 11 FROM tab0 AS cor0
----
-2827
-7451
-86

query I rowsort
SELECT DISTINCT - col0 * + cor0.col2 + ( - 9 ) - - col0 AS col2 FROM tab0 AS cor0
----
-7218
-777
-9

query I rowsort
SELECT DISTINCT + - col1 + col2 * col2 FROM tab0 AS cor0
----
-96
1003
6633

query I rowsort
SELECT + col1 * 44 AS col2 FROM tab2 AS cor0
----
1364
2596
748

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + + 59 * col1 col2 FROM tab1 cor0
----
1560
600
780

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 89 col0 FROM tab0 AS cor0
----
-89
-89
-89

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4274
SELECT ALL CAST( - 42 AS SIGNED ) * col2 AS col2 FROM tab2 AS cor0
----
-1092
-1134
-1596

skipif mysql # not compatible
query I rowsort label-4274
SELECT ALL CAST ( - 42 AS INTEGER ) * col2 AS col2 FROM tab2 AS cor0
----
-1092
-1134
-1596

query I rowsort
SELECT - 77 AS col1 FROM tab0 cor0
----
-77
-77
-77

query I rowsort
SELECT DISTINCT - 32 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-32

query I rowsort
SELECT col1 * 31 FROM tab2
----
1829
527
961

query I rowsort
SELECT - - col1 * + ( col2 ) + cor0.col0 AS col2 FROM tab0 AS cor0
----
132
2862
7551

query I rowsort
SELECT DISTINCT + 74 + - col0 * + col1 AS col1 FROM tab2 AS cor0
----
-1269
-143
-4528

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4280
SELECT + CAST( NULL AS SIGNED ) * 59 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4280
SELECT + CAST ( NULL AS INTEGER ) * 59 AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 90 * - col2 * col2 FROM tab1
----
-262440
-292410
-829440

query I rowsort
SELECT DISTINCT 40 + col0 + tab0.col1 AS col0 FROM tab0
----
150
172
220

query I rowsort
SELECT ALL 81 AS col0 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 0a85639e0dddbffdab2cb16b027cb360

query I rowsort
SELECT - col0 + col0 * col0 AS col2 FROM tab1 AS cor0
----
4032
6
6320

query I rowsort
SELECT DISTINCT + 79 * col1 FROM tab1 cor0
----
1027
2054
790

onlyif mysql # use DIV operator for integer division
query I rowsort label-4286
SELECT ( - cor0.col0 ) * col0 DIV col1 AS col2 FROM tab2 AS cor0
----
-1
-103
-367

skipif mysql # not compatible
query I rowsort label-4286
SELECT ( - cor0.col0 ) * col0 / col1 AS col2 FROM tab2 AS cor0
----
-1
-103
-367

query I rowsort
SELECT 10 + - 6 * - col0 AS col2 FROM tab0
----
154
220
544

query I rowsort
SELECT + 14 FROM tab2, tab2 AS cor0, tab2 AS cor1, tab0 AS cor2
----
81 values hashing to 742ac5d81e64168a26fbd2bc8c808eff

onlyif mysql # use DIV operator for integer division
query I rowsort label-4289
SELECT - tab1.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-4289
SELECT - tab1.col0 / col0 col0 FROM tab1
----
-1
-1
-1

query I rowsort
SELECT - ( - col1 * + col0 ) + - 65 AS col2 FROM tab1
----
13
575
975

query I rowsort
SELECT ( - col0 ) + col2 * ( col0 ) + tab0.col1 AS col1 FROM tab0
----
7300
854
97

query I rowsort
SELECT ( - tab1.col2 ) - + tab1.col1 FROM tab1
----
-109
-67
-80

query I rowsort
SELECT - col2 + 51 * + col2 FROM tab0
----
1650
4100
50

query I rowsort
SELECT DISTINCT col1 * col0 + - col1 * + col2 * + 77 FROM tab0
----
-216462
-4074
-566475

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col2 * + col1 IN ( col0 * col1 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

onlyif mysql # use DIV operator for integer division
query I rowsort label-4296
SELECT - col2 DIV - tab0.col2 + + tab0.col1 FROM tab0
----
87
92
98

skipif mysql # not compatible
query I rowsort label-4296
SELECT - col2 / - tab0.col2 + + tab0.col1 FROM tab0
----
87
92
98

query I rowsort
SELECT DISTINCT tab2.col0 - + col1 * col1 FROM tab2
----
-210
-3403
-954

query I rowsort
SELECT col0 * tab1.col0 FROM tab1 WHERE NULL NOT IN ( + tab1.col0 )
----

query I rowsort
SELECT ALL - col1 FROM tab2 WHERE NULL IN ( - col2 * - col0 )
----

query I rowsort
SELECT col2 - col0 * + col0 FROM tab0
----
-1224
-543
-7839

query I rowsort
SELECT DISTINCT + col0 * + col0 * - col1 + col1 - col0 * - col2 * col2 AS col1 FROM tab2
----
-306169
3615
7996

query I rowsort
SELECT ALL + col0 + + col0 * - col2 + col1 * + col2 * col1 AS col1 FROM tab1
----
2116
36345
8624

query I rowsort
SELECT - 54 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 4ecdb0f1b85f0d4fdc3a826efd9f2342

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - tab0.col0 * - col2 col1 FROM tab0
----
1225
19008
649522

onlyif mysql # use DIV operator for integer division
query I rowsort label-4305
SELECT ALL col2 DIV tab1.col2 + + col0 * col2 AS col0 FROM tab1
----
163
3649
7681

skipif mysql # not compatible
query I rowsort label-4305
SELECT ALL col2 / tab1.col2 + + col0 * col2 AS col0 FROM tab1
----
163
3649
7681

query I rowsort
SELECT DISTINCT tab0.col1 + col2 AS col0 FROM tab0 WHERE NOT col0 + tab0.col0 * col2 <> ( col0 )
----

query I rowsort
SELECT - col2 + + col2 * col2 * col0 AS col0 FROM tab2
----
114038
5076
52702

query I rowsort
SELECT + tab1.col1 FROM tab1 WHERE NULL <> ( - col2 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL IN ( tab2.col1 + + col1 )
----

query I rowsort
SELECT col2 * col0 + col2 AS col0 FROM tab1
----
216
3705
7776

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL IN ( - col1 )
----

query I rowsort
SELECT DISTINCT - col1 * col0 * col1 FROM tab2 AS cor0
----
-22831
-271518
-6727

query I rowsort
SELECT col1 * - col1 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( col2 / col0 + col0 * - cor0.col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - col1 + - col2 col2 FROM tab2
----
-1560
-684
-864

query I rowsort
SELECT - col0 AS col1 FROM tab2 WHERE NOT ( NULL ) NOT IN ( - col2 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-4316
SELECT col0 + col2 DIV - col2 FROM tab0
----
23
34
88

skipif mysql # not compatible
query I rowsort label-4316
SELECT col0 + col2 / - col2 FROM tab0
----
23
34
88

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab1 WHERE NULL < col1 * col0
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - col2 * col0 IN ( col2 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab1 WHERE NULL < NULL
----

query I rowsort
SELECT DISTINCT col2 + - col0 AS col1 FROM tab2 AS cor0 WHERE NULL IN ( + col2 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-4321
SELECT col2 + - col0 DIV col2 FROM tab0
----
-34
33
81

skipif mysql # not compatible
query I rowsort label-4321
SELECT col2 + - col0 / col2 FROM tab0
----
-34
33
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 - - tab1.col1 col1 FROM tab1
----
109
67
80

query I rowsort
SELECT - + 19 AS col1 FROM tab2 AS cor0
----
-19
-19
-19

onlyif mysql # use DIV operator for integer division
query I rowsort label-4324
SELECT col1 * col2 DIV col1 AS col0 FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-4324
SELECT col1 * col2 / col1 AS col0 FROM tab0 AS cor0
----
1
33
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 85 col1 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to e4cf94cf0cc632acff30ad1dac617cb7

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-4327
SELECT 14 DIV + ( + col0 ) AS col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4327
SELECT 14 / + ( + col0 ) AS col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT cor1.col2 * - 2 AS col2 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
-164
-2
-66

query I rowsort
SELECT - tab0.col1 AS col1 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84

query I rowsort
SELECT + + 22 + + cor0.col0 FROM tab0 AS cor0
----
111
46
57

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4331
SELECT DISTINCT - col0 + col2 * - CAST( + col0 AS SIGNED ) FROM tab2 AS cor0
----
-196
-2106
-3081

skipif mysql # not compatible
query I rowsort label-4331
SELECT DISTINCT - col0 + col2 * - CAST ( + col0 AS INTEGER ) FROM tab2 AS cor0
----
-196
-2106
-3081

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * col0 col0 FROM tab1 cor0
----
1040
640
78

query I rowsort
SELECT ALL + 75 * cor0.col2 FROM tab0 AS cor0
----
2475
6150
75

query I rowsort
SELECT DISTINCT + col2 + - col0 + col2 * + col1 FROM tab0 AS cor0
----
2847
63
7455

query I rowsort
SELECT ALL - - col1 * 28 + col1 FROM tab0 AS cor0
----
2494
2639
2813

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab2.col0 col1 FROM tab2, tab2 AS cor0
----
7
78
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-4337
SELECT - col1 DIV 49 + col0 FROM tab0 AS cor0
----
23
34
88

skipif mysql # not compatible
query I rowsort label-4337
SELECT - col1 / 49 + col0 FROM tab0 AS cor0
----
23
34
88

query I rowsort
SELECT col2 + - cor0.col0 AS col1 FROM tab2 AS cor0
----
-41
-52
20

query I rowsort
SELECT col1 * - col2 * + col2 AS col0 FROM tab2 cor0
----
-22599
-24548
-39884

query I rowsort
SELECT ALL - + col0 * cor0.col2 + + col0 FROM tab0 cor0
----
-7209
-768
0

query I rowsort
SELECT ALL + cor0.col1 + col1 * cor0.col1 AS col0 FROM tab2 AS cor0
----
306
3540
992

query I rowsort
SELECT + col1 + + col2 * col2 FROM tab1 cor0
----
2942
3259
9229

query I rowsort
SELECT ALL col0 + - 83 AS col0 FROM tab0 AS cor0
----
-48
-59
6

query I rowsort
SELECT DISTINCT - 85 * - ( - col1 ) + col2 AS col0 FROM tab0 cor0
----
-7277
-7653
-8244

query I rowsort
SELECT DISTINCT - col1 * - col0 + col0 * col1 + - col2 AS col1 FROM tab1 cor0
----
102
1223
1984

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - cor0.col1 + - col1 * cor0.col0 * + col2 col0 FROM tab0 AS cor0
----
-3298
-664027
-68026

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 75 col1 FROM tab2 AS cor0
----
75
75
75

query I rowsort
SELECT DISTINCT + + 22 + - col0 * col0 + col0 * col0 FROM tab2 AS cor0
----
22

query I rowsort
SELECT ALL - col0 - + col1 * - col0 * - col0 FROM tab2 AS cor0
----
-106176
-1526
-359034

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * col0 * + col1 col2 FROM tab2 cor0
----
-106097
-1519
-358956

query I rowsort
SELECT col0 * + 90 * col1 + - col2 * col0 AS col2 FROM tab0
----
184968
305515
721612

query I rowsort
SELECT - 72 AS col1 FROM tab0, tab2 cor0
----
9 values hashing to ad521144c976ff25e77cdf10a84d1dc6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 * - ( col1 ) + + col2 col2 FROM tab1 cor0
----
1136
132
697

query I rowsort
SELECT ALL + + col0 * - 18 FROM tab2 AS cor0
----
-126
-1404
-1422

onlyif mysql # use DIV operator for integer division
query I rowsort label-4355
SELECT col0 DIV - col0 + col0 FROM tab1 AS cor0
----
2
63
79

skipif mysql # not compatible
query I rowsort label-4355
SELECT col0 / - col0 + col0 FROM tab1 AS cor0
----
2
63
79

query I rowsort
SELECT + + 19 AS col0 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 86c53e8567a17c8d91fc5aff119e0498

query I rowsort
SELECT - - col2 + 92 AS col1 FROM tab1 AS cor0
----
146
149
188

query I rowsort
SELECT col2 + col1 * + col0 AS col1 FROM tab0 AS cor0
----
2097
3396
8181

onlyif mysql # use DIV operator for integer division
query I rowsort label-4359
SELECT DISTINCT + col1 * tab1.col0 DIV - col2 FROM tab1
----
-1
-10
-11

skipif mysql # not compatible
query I rowsort label-4359
SELECT DISTINCT + col1 * tab1.col0 / - col2 FROM tab1
----
-1
-10
-11

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4360
SELECT col2 + CAST( + col1 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
119
173
98

skipif mysql # not compatible
query I rowsort label-4360
SELECT col2 + CAST ( + col1 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT - col1 + + col1 * col2 * - col0 FROM tab1
----
-36490
-4238
-99853

query I rowsort
SELECT DISTINCT col2 * + col1 * + col2 + + col0 FROM tab2
----
22606
24627
39962

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + col2 + col0 * + col2 col1 FROM tab2
----
1976
209
2961

query I rowsort
SELECT + col0 + col2 - col2 AS col1 FROM tab1
----
3
64
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + + col2 * col0 col2 FROM tab2 AS cor0
----
162
2002
2964

query I rowsort
SELECT DISTINCT - tab1.col1 + - col2 * + col0 FROM tab1
----
-188
-3658
-7693

query I rowsort
SELECT ALL col0 + col1 * + col0 * + col1 FROM tab0
----
177528
329350
737098

query I rowsort
SELECT col0 * col0 + tab0.col0 FROM tab0 WHERE NOT ( NULL ) NOT IN ( col0 + col0 * - col1 ) AND NOT ( NULL ) NOT BETWEEN NULL AND tab0.col1
----

query I rowsort
SELECT DISTINCT - col2 + col2 * col1 FROM tab1
----
1152
1350
513

onlyif mysql # use DIV operator for integer division
query I rowsort label-4370
SELECT DISTINCT + col1 + + col0 DIV + col0 AS col0 FROM tab1
----
11
14
27

skipif mysql # not compatible
query I rowsort label-4370
SELECT DISTINCT + col1 + + col0 / + col0 AS col0 FROM tab1
----
11
14
27

onlyif mysql # use DIV operator for integer division
query I rowsort label-4371
SELECT + tab0.col0 * - col2 DIV + col2 FROM tab0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-4371
SELECT + tab0.col0 * - col2 / + col2 FROM tab0
----
-24
-35
-89

query I rowsort
SELECT - col1 * tab0.col1 + + col2 AS col2 FROM tab0
----
-7363
-8199
-9408

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + cor0.col0 + - col2 col0 FROM tab0 AS cor0
----
-171
-36
-57

query I rowsort
SELECT DISTINCT - col1 * cor0.col2 + col0 AS col1 FROM tab1 AS cor0
----
-1168
-1401
-506

query I rowsort
SELECT DISTINCT + + col0 + col2 * - col1 AS col1 FROM tab1 AS cor0
----
-1168
-1401
-506

onlyif mysql # use DIV operator for integer division
query I rowsort label-4376
SELECT col0 DIV col1 + - col0 FROM tab0 AS cor0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-4376
SELECT col0 / col1 + - col0 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT ALL - - col0 + cor0.col2 AS col1 FROM tab0 AS cor0
----
171
36
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-4378
SELECT ALL - col0 + - col0 DIV + cor0.col1 AS col0 FROM tab1 AS cor0
----
-3
-70
-86

skipif mysql # not compatible
query I rowsort label-4378
SELECT ALL - col0 + - col0 / + cor0.col1 AS col0 FROM tab1 AS cor0
----
-3
-70
-86

onlyif mysql # use DIV operator for integer division
query I rowsort label-4379
SELECT DISTINCT - - col1 DIV + col0 + + col2 FROM tab1 AS cor0
----
57
62
96

skipif mysql # not compatible
query I rowsort label-4379
SELECT DISTINCT - - col1 / + col0 + + col2 FROM tab1 AS cor0
----
57
62
96

query I rowsort
SELECT ALL + col2 * col2 * col2 AS col2 FROM tab2 AS cor0
----
17576
19683
54872

onlyif mysql # use DIV operator for integer division
query I rowsort label-4381
SELECT col2 + - col1 DIV - col1 FROM tab0 AS cor0
----
2
34
83

skipif mysql # not compatible
query I rowsort label-4381
SELECT col2 + - col1 / - col1 FROM tab0 AS cor0
----
2
34
83

query I rowsort
SELECT DISTINCT col1 * col2 * col1 - - cor0.col1 FROM tab0 cor0
----
244154
679133
9506

query I rowsort
SELECT ALL + ( - col1 * col0 ) AS col0 FROM tab2
----
-1343
-217
-4602

query I rowsort
SELECT DISTINCT 96 * col1 AS col2 FROM tab1 AS cor0
----
1248
2496
960

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 * col2 * col2 col0 FROM tab2 AS cor0
----
-17576
-19683
-54872

query I rowsort
SELECT ALL 92 - col0 AS col2 FROM tab2 AS cor0
----
13
14
85

query I rowsort
SELECT - 70 * col0 * - cor0.col2 FROM tab2 AS cor0
----
13230
141960
210140

query I rowsort
SELECT DISTINCT - cor0.col1 * col1 - + col1 * - cor0.col2 AS col2 FROM tab0 cor0
----
-4558
-819
-9312

onlyif mysql # use DIV operator for integer division
query I rowsort label-4389
SELECT ALL + col1 + + col0 + cor0.col2 * - col1 DIV - col1 AS col1 FROM tab1 AS cor0
----
131
189
83

skipif mysql # not compatible
query I rowsort label-4389
SELECT ALL + col1 + + col0 + cor0.col2 * - col1 / - col1 AS col1 FROM tab1 AS cor0
----
131
189
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 + - col2 col2 FROM tab0 cor0
----
-9
34
7

query I rowsort
SELECT DISTINCT - + 47 - col0 AS col0 FROM tab2 AS cor0
----
-125
-126
-54

query I rowsort
SELECT ALL - + col2 - cor0.col2 AS col2 FROM tab2 AS cor0
----
-52
-54
-76

query I rowsort
SELECT tab0.col2 * 70 AS col2 FROM tab0, tab1 AS cor0, tab2, tab0 AS cor1
----
81 values hashing to 8c39101bd912fa260b47adb57306a059

onlyif mysql # use DIV operator for integer division
query I rowsort label-4394
SELECT + + cor0.col0 + col2 DIV - 57 col2 FROM tab2 AS cor0
----
7
78
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4394
SELECT + + cor0.col0 + col2 / - 57 col2 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT ALL + col0 * cor0.col1 + col0 FROM tab1 AS cor0
----
1120
704
81

query I rowsort
SELECT DISTINCT + col0 - - col0 AS col1 FROM tab0 cor0
----
178
48
70

query I rowsort
SELECT + col2 * - ( - 22 ) FROM tab0 AS cor0
----
1804
22
726

query I rowsort
SELECT DISTINCT col1 - - col2 FROM tab0 cor0
----
119
173
98

query I rowsort
SELECT ALL - - col1 + + col2 + + cor0.col0 AS col0 FROM tab0 AS cor0
----
133
143
262

query I rowsort
SELECT ALL + - col1 + + 11 AS col2 FROM tab2 AS cor0
----
-20
-48
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 86 + + col1 * col0 col0 FROM tab2
----
1429
303
4688

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4402
SELECT CAST( NULL AS SIGNED ) + + 71 * - col1 col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4402
SELECT CAST ( NULL AS INTEGER ) + + 71 * - col1 col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 82 * ( tab2.col2 ) FROM tab2
----
2132
2214
3116

query I rowsort
SELECT ALL + 72 + col2 AS col0 FROM tab1 AS cor0
----
126
129
168

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4405
SELECT - CAST( + 43 AS SIGNED ) * cor0.col0 + ( - col1 ) * - col0 FROM tab2 AS cor0
----
-2054
-84
1248

skipif mysql # not compatible
query I rowsort label-4405
SELECT - CAST ( + 43 AS INTEGER ) * cor0.col0 + ( - col1 ) * - col0 FROM tab2 AS cor0
----
-2054
-84
1248

query I rowsort
SELECT + 63 + - col2 * col1 AS col1 FROM tab1 AS cor0
----
-1185
-1341
-507

query I rowsort
SELECT DISTINCT - ( col2 ) * - col0 AS col0 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT + + col0 + col2 + - col0 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT DISTINCT - - 70 * 16 AS col1 FROM tab1 AS cor0
----
1120

query I rowsort
SELECT ALL + ( - ( - cor0.col2 ) ) + ( - col1 ) AS col2 FROM tab2 AS cor0
----
-33
-4
21

query I rowsort
SELECT - + col2 * 97 FROM tab1 AS cor0
----
-5238
-5529
-9312

skipif mysql # not compatible
query I rowsort
SELECT ALL + CAST ( 3 AS REAL ) * + cor0.col0 + - cor0.col1 / + col1 FROM tab1 AS cor0
----
191
239
8

onlyif mysql # use DIV operator for integer division
query I rowsort label-4413
SELECT ( tab1.col2 ) + col2 DIV ( tab1.col0 * col2 + - col2 * + 88 ) FROM tab1
----
54
57
96

skipif mysql # not compatible
query I rowsort label-4413
SELECT ( tab1.col2 ) + col2 / ( tab1.col0 * col2 + - col2 * + 88 ) FROM tab1
----
54
57
96

query I rowsort
SELECT col1 + + col0 * - cor0.col2 FROM tab2 AS cor0
----
-158
-1969
-2985

query I rowsort
SELECT ALL + - 84 * col0 AS col0 FROM tab1 cor0
----
-252
-5376
-6720

query I rowsort
SELECT 74 * - col2 FROM tab1 AS cor0
----
-3996
-4218
-7104

query I rowsort
SELECT + col2 + + col2 * + col2 FROM tab2 AS cor0
----
1482
702
756

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4418
SELECT - col0 * - col0 + + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4418
SELECT - col0 * - col0 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 * 46 - + tab0.col2 AS col0 FROM tab0
----
1071
1609
4012

query I rowsort
SELECT ALL - col0 + - 35 FROM tab1
----
-115
-38
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * col1 * - col1 col2 FROM tab0
----
636056
753571
912673

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 15 + + col2 col0 FROM tab1 AS cor0
----
39
42
81

query I rowsort
SELECT DISTINCT - 26 AS col1 FROM tab1, tab2 AS cor0
----
-26

query I rowsort
SELECT + + col0 * col2 * - 62 FROM tab0 cor0
----
-2170
-452476
-49104

query I rowsort
SELECT - 13 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 1c6aaa07ba8d3dc01ee616e16bef60f2

query I rowsort
SELECT - cor0.col1 * 78 FROM tab2, tab0 AS cor0
----
9 values hashing to c8905d9311c6186da0dbd9acbfa41709

query I rowsort
SELECT + col0 * - 26 + - col0 + - col2 AS col2 FROM tab2
----
-2132
-216
-2171

query I rowsort
SELECT + tab2.col1 + + col1 * ( + col2 ) FROM tab2
----
1593
663
868

query I rowsort
SELECT DISTINCT - col2 + - ( - col0 ) * + col2 AS col2 FROM tab1
----
108
3591
7584

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + cor0.col2 * - col2 col1 FROM tab2 AS cor0
----
-1406
-650
-702

onlyif mysql # use DIV operator for integer division
query I rowsort label-4431
SELECT col0 * col0 + + col2 DIV 72 FROM tab0 AS cor0
----
1225
576
7922

skipif mysql # not compatible
query I rowsort label-4431
SELECT col0 * col0 + + col2 / 72 FROM tab0 AS cor0
----
1225
576
7922

query I rowsort
SELECT DISTINCT - col0 + - col0 * 66 AS col2 FROM tab2
----
-469
-5226
-5293

query I rowsort
SELECT ( 59 ) + col2 AS col0 FROM tab2 AS cor0
----
85
86
97

query I rowsort
SELECT DISTINCT - col2 + ( + col2 ) AS col1 FROM tab1
----
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4435
SELECT DISTINCT - col1 + - CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4435
SELECT DISTINCT - col1 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL

query I rowsort
SELECT ALL col2 * - 30 + col2 FROM tab1
----
-1566
-1653
-2784

query I rowsort
SELECT ALL - + 56 * 54 FROM tab1 cor0
----
-3024
-3024
-3024

query I rowsort
SELECT + ( col2 ) * + col0 * col2 + col1 AS col1 FROM tab0 AS cor0
----
132
26222
598527

onlyif mysql # use DIV operator for integer division
query I rowsort label-4439
SELECT DISTINCT + 12 DIV col0 AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4439
SELECT DISTINCT + 12 / col0 AS col0 FROM tab0
----
0

query I rowsort
SELECT + - col0 * + 29 + - col2 + + col0 FROM tab0 cor0
----
-2574
-705
-981

query I rowsort
SELECT - + cor0.col0 + col1 AS col1 FROM tab0 cor0
----
2
62
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-4442
SELECT col0 + col1 DIV - cor0.col1 AS col2 FROM tab1 AS cor0
----
2
63
79

skipif mysql # not compatible
query I rowsort label-4442
SELECT col0 + col1 / - cor0.col1 AS col2 FROM tab1 AS cor0
----
2
63
79

query I rowsort
SELECT ALL - col0 * + col1 + col2 FROM tab0 cor0
----
-2031
-3394
-8017

onlyif mysql # use DIV operator for integer division
query I rowsort label-4444
SELECT + + col0 + col2 DIV + col2 AS col2 FROM tab1 AS cor0
----
4
65
81

skipif mysql # not compatible
query I rowsort label-4444
SELECT + + col0 + col2 / + col2 AS col2 FROM tab1 AS cor0
----
4
65
81

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4445
SELECT DISTINCT - + CAST( 22 AS SIGNED ) * col2 + 82 * - ( col2 ) FROM tab0 AS cor0
----
-104
-3432
-8528

skipif mysql # not compatible
query I rowsort label-4445
SELECT DISTINCT - + CAST ( 22 AS INTEGER ) * col2 + 82 * - ( col2 ) FROM tab0 AS cor0
----
-104
-3432
-8528

query I rowsort
SELECT ALL ( - 93 ) * cor0.col1 - 91 AS col1 FROM tab1 AS cor0
----
-1021
-1300
-2509

query I rowsort
SELECT - col2 * 0 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col2 * - col0 + col0 FROM tab2
----
-182
-1950
-2923

onlyif mysql # use DIV operator for integer division
query I rowsort label-4449
SELECT tab2.col2 DIV + col1 + col1 DIV - col0 + ( ( col0 ) ) FROM tab2
----
3
78
81

skipif mysql # not compatible
query I rowsort label-4449
SELECT tab2.col2 / + col1 + col1 / - col0 + ( ( col0 ) ) FROM tab2
----
3
78
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab0.col0 col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 09d8a912de1b8ab762e5ffbe028ce99e

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - col1 * 38 col0 FROM tab1 AS cor0
----
-444
-574
-991

query I rowsort
SELECT ALL col0 - + cor0.col0 * col0 AS col2 FROM tab1 cor0
----
-4032
-6
-6320

query I rowsort
SELECT - - col0 + + 97 * + col1 * + ( col2 ) AS col2 FROM tab0 AS cor0
----
275310
723903
9444

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col0 ) * + col0 + 59 col0 FROM tab1 AS cor0
----
-4037
-6341
50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - cor0.col0 col1 FROM tab1 cor0
----
1040
640
78

query I rowsort
SELECT DISTINCT + col0 * + 74 AS col1 FROM tab0 AS cor0
----
1776
2590
6586

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4457
SELECT ( + col1 ) * - col1 + - CAST( NULL AS SIGNED ) / - 11 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4457
SELECT ( + col1 ) * - col1 + - CAST ( NULL AS INTEGER ) / - 11 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - ( - cor0.col0 ) * - cor0.col1 AS col1 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT + 99 + cor0.col0 AS col2 FROM tab0 AS cor0
----
123
134
188

query I rowsort
SELECT + ( + ( cor0.col2 ) * 21 ) FROM tab2, tab2 AS cor0
----
9 values hashing to d72e70f7bd7bd6904a82beaee2e45aad

query I rowsort
SELECT + col0 * + 52 AS col0 FROM tab0 AS cor0
----
1248
1820
4628

query I rowsort
SELECT ALL + col1 * + ( - col0 ) AS col2 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT ALL - tab2.col0 * ( col0 ) * tab2.col2 FROM tab2
----
-1323
-158184
-237158

query I rowsort
SELECT - 85 - col1 FROM tab1 AS cor0
----
-111
-95
-98

onlyif mysql # use DIV operator for integer division
query I rowsort label-4465
SELECT + col1 + - cor0.col0 DIV + col2 AS col2 FROM tab1 AS cor0
----
13
26
9

skipif mysql # not compatible
query I rowsort label-4465
SELECT + col1 + - cor0.col0 / + col2 AS col2 FROM tab1 AS cor0
----
13
26
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + col1 - - col0 * 68 col1 FROM tab1 AS cor0
----
-472
4252
5271

query I rowsort
SELECT + + 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-4468
SELECT cor0.col2 * col1 DIV + 90 - col0 FROM tab0 AS cor0
----
-34
-7
7

skipif mysql # not compatible
query I rowsort label-4468
SELECT cor0.col2 * col1 / + 90 - col0 FROM tab0 AS cor0
----
-34
-7
7

query I rowsort
SELECT DISTINCT col2 * col2 * + col0 AS col2 FROM tab0
----
26136
35
598436

query I rowsort
SELECT ALL + + col0 * + ( + 87 ) AS col0 FROM tab0 AS cor0
----
2088
3045
7743

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + + col1 - - 65 col1 FROM tab1
----
139
158
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 67 * cor1.col0 col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 70746115e976785364af9f753170c6b4

onlyif mysql # use DIV operator for integer division
query I rowsort label-4473
SELECT DISTINCT - 70 DIV - col1 col0 FROM tab0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4473
SELECT DISTINCT - 70 / - col1 col0 FROM tab0
----
0

query I rowsort
SELECT DISTINCT - - col1 + cor0.col0 * col1 FROM tab1 cor0
----
104
1053
650

query I rowsort
SELECT ALL - - col2 + col2 * 10 AS col2 FROM tab1 AS cor0
----
1056
594
627

query I rowsort
SELECT col1 * + col1 * + 25 - - cor0.col0 FROM tab0 AS cor0
----
184924
207114
235260

query I rowsort
SELECT DISTINCT - + col2 * 77 FROM tab2 AS cor0
----
-2002
-2079
-2926

query I rowsort
SELECT ALL - col2 * + 18 AS col2 FROM tab0 AS cor0
----
-1476
-18
-594

onlyif mysql # use DIV operator for integer division
query I rowsort label-4479
SELECT ALL - col1 DIV - col1 + 85 col0 FROM tab0 AS cor0
----
86
86
86

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4479
SELECT ALL - col1 / - col1 + 85 col0 FROM tab0 AS cor0
----
86
86
86

query I rowsort
SELECT DISTINCT + + col1 + + 42 FROM tab1 AS cor0
----
52
55
68

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4481
SELECT - - cor0.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-4481
SELECT - - cor0.col2 * - CAST ( NULL AS INTEGER ) col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - cor0.col0 * + col1 * 51 FROM tab1 AS cor0
----
-32640
-3978
-53040

query I rowsort
SELECT + col2 * 61 AS col0 FROM tab0 AS cor0
----
2013
5002
61

query I rowsort
SELECT - col2 * + 60 - 69 * - col1 FROM tab1 AS cor0
----
-1446
-2730
-4863

query I rowsort
SELECT DISTINCT - cor0.col1 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1, tab0 AS cor1
----
-10
-13
-26

query I rowsort
SELECT ALL col0 + 59 * tab2.col2 + + col0 AS col2 FROM tab2
----
1607
1690
2400

query I rowsort
SELECT ALL 45 FROM tab0, tab2 cor0
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050

query I rowsort
SELECT DISTINCT col0 * 48 FROM tab1 cor0
----
144
3072
3840

query I rowsort
SELECT + col0 * - col1 + col1 * - col2 + + 39 FROM tab2 cor0
----
-1015
-1950
-6097

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * ( col2 ) col1 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT - + cor0.col0 + 29 * - col2 + col0 * col1 AS col2 FROM tab1 AS cor0
----
-1077
-1491
-1824

query I rowsort
SELECT DISTINCT - col2 * - cor0.col2 * cor0.col2 FROM tab0 AS cor0
----
1
35937
551368

query I rowsort
SELECT + - col1 * cor0.col0 + col1 * + cor0.col0 + col1 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT DISTINCT + col0 * + ( 46 ) FROM tab1 AS cor0
----
138
2944
3680

query I rowsort
SELECT + col1 + 69 * col0 + + col2 * col0 FROM tab2 cor0
----
703
7469
8470

query I rowsort
SELECT - 70 - 67 FROM tab2
----
-137
-137
-137

query I rowsort
SELECT DISTINCT + cor2.col0 FROM tab0, tab2 AS cor0, tab1 AS cor1, tab2 AS cor2
----
7
78
79

query I rowsort
SELECT ALL - 43 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 2f72bd9cab68c8d8c38874510a290a3c

onlyif mysql # use DIV operator for integer division
query I rowsort label-4499
SELECT DISTINCT - col2 DIV col1 + + col1 DIV 19 AS col2 FROM tab2 AS cor0
----
-2
1
3

skipif mysql # not compatible
query I rowsort label-4499
SELECT DISTINCT - col2 / col1 + + col1 / 19 AS col2 FROM tab2 AS cor0
----
-2
1
3

query I rowsort
SELECT ALL 10 AS col1 FROM tab1
----
10
10
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + - col2 + col1 * cor0.col2 col0 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT - - cor0.col0 + - col2 * cor0.col0 FROM tab1 AS cor0
----
-159
-3584
-7600

query I rowsort
SELECT ALL col0 * + col0 * - col0 + - col1 AS col1 FROM tab0 AS cor0
----
-13910
-42972
-705060

query I rowsort
SELECT ALL 48 - + col2 FROM tab0 AS cor0
----
-34
15
47

query I rowsort
SELECT 46 + cor0.col2 FROM tab0 AS cor0
----
128
47
79

query I rowsort
SELECT ALL - - col2 * cor0.col0 - cor0.col1 AS col2 FROM tab0 AS cor0
----
-62
706
7207

onlyif mysql # use DIV operator for integer division
query I rowsort label-4507
SELECT - 14 DIV - cor0.col1 AS col2 FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-4507
SELECT - 14 / - cor0.col1 AS col2 FROM tab1 AS cor0
----
0
1
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4508
SELECT + ( cor0.col0 ) * col2 * - CAST( - ( col2 ) + ( + col2 ) * - col0 AS SIGNED ) FROM tab1 AS cor0
----
13515840
34992
59719680

skipif mysql # not compatible
query I rowsort label-4508
SELECT + ( cor0.col0 ) * col2 * - CAST ( - ( col2 ) + ( + col2 ) * - col0 AS INTEGER ) FROM tab1 AS cor0
----
13515840
34992
59719680

onlyif mysql # use DIV operator for integer division
query I rowsort label-4509
SELECT 38 DIV + col0 FROM tab1 AS cor0
----
0
0
12

skipif mysql # not compatible
query I rowsort label-4509
SELECT 38 / + col0 FROM tab1 AS cor0
----
0
0
12

query I rowsort
SELECT + - 68 * col2 AS col0 FROM tab2 AS cor0
----
-1768
-1836
-2584

query I rowsort
SELECT ALL col0 * - 51 FROM tab1
----
-153
-3264
-4080

query I rowsort
SELECT - col0 + ( + 42 ) FROM tab2
----
-36
-37
35

query I rowsort
SELECT ALL + + col1 + col0 * col1 FROM tab1 AS cor0
----
104
1053
650

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4514
SELECT - + CAST( NULL AS SIGNED ) * cor0.col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4514
SELECT - + CAST ( NULL AS INTEGER ) * cor0.col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + ( + col2 ) + col0 * - 13 AS col1 FROM tab1 AS cor0
----
-775
-944
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col0 * col1 + + col1 * col0 col0 FROM tab1 AS cor0
----
1280
156
2080

query I rowsort
SELECT DISTINCT - col0 * 71 * + col1 + col2 AS col1 FROM tab2 cor0
----
-15380
-326716
-95315

query I rowsort
SELECT ALL 2 * - col0 FROM tab0 cor0
----
-178
-48
-70

query I rowsort
SELECT + - col0 * col1 + + 28 * + 92 FROM tab0 AS cor0
----
-5523
-819
512

query I rowsort
SELECT - + ( col0 ) + - 90 FROM tab2 AS cor0
----
-168
-169
-97

query I rowsort
SELECT DISTINCT - ( cor0.col0 ) + - 68 FROM tab1 AS cor0
----
-132
-148
-71

query I rowsort
SELECT ALL - - col2 - + cor0.col0 * - ( col2 ) * col1 AS col2 FROM tab2 cor0
----
119678
51072
5886

query I rowsort
SELECT 54 * col2 * 61 + - col1 FROM tab1 AS cor0
----
177850
187748
316211

onlyif mysql # use DIV operator for integer division
query I rowsort label-4524
SELECT DISTINCT - - col1 * col2 DIV + 70 FROM tab1 AS cor0
----
17
20
8

skipif mysql # not compatible
query I rowsort label-4524
SELECT DISTINCT - - col1 * col2 / + 70 FROM tab1 AS cor0
----
17
20
8

query I rowsort
SELECT ALL + col0 * - 50 AS col1 FROM tab0 cor0
----
-1200
-1750
-4450

query I rowsort
SELECT + col0 * 90 AS col2 FROM tab0
----
2160
3150
8010

query I rowsort
SELECT - + col0 + + 1 * - col2 * col0 AS col0 FROM tab2 AS cor0
----
-196
-2106
-3081

query I rowsort
SELECT ALL - + cor0.col0 * + col0 FROM tab1 AS cor0
----
-4096
-6400
-9

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab2 cor0, tab1 AS cor1, tab1, tab0 AS cor2
----
3645 values hashing to 3b4587ab6c08d2179c6df094d2f76ad7

query I rowsort
SELECT - + cor0.col1 * cor0.col2 + col2 * cor0.col2 AS col2 FROM tab0 AS cor0
----
-1749
-738
-96

query I rowsort
SELECT + col1 * 34 AS col2 FROM tab0 AS cor0
----
2924
3094
3298

onlyif mysql # use DIV operator for integer division
query I rowsort label-4532
SELECT + col0 DIV - col0 + + 61 AS col1 FROM tab0 AS cor0
----
60
60
60

skipif mysql # not compatible
query I rowsort label-4532
SELECT + col0 / - col0 + + 61 AS col1 FROM tab0 AS cor0
----
60
60
60

query I rowsort
SELECT - col2 - col1 * - col0 FROM tab0 AS cor0
----
2031
3394
8017

query I rowsort
SELECT col1 * col0 * ( cor0.col2 * + ( - col2 ) ) FROM tab2 AS cor0
----
-158193
-1939292
-3110952

query I rowsort
SELECT col1 - - col0 * - col0 FROM tab0 AS cor0
----
-1128
-490
-7830

query I rowsort
SELECT tab1.col1 * 72 FROM tab1
----
1872
720
936

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab1, tab0 cor2
----
3645 values hashing to f99537dcc805430f79ac82ef70a4bd59

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4538
SELECT - CAST( NULL AS SIGNED ) FROM tab2, tab2 cor0, tab0 AS cor1, tab1 cor2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

skipif mysql # not compatible
query I rowsort label-4538
SELECT - CAST ( NULL AS INTEGER ) FROM tab2, tab2 cor0, tab0 AS cor1, tab1 cor2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

onlyif mysql # use DIV operator for integer division
query I rowsort label-4539
SELECT ALL + col1 DIV + ( col0 ) + - CAST( col2 AS SIGNED ) FROM tab0 AS cor0
----
-30
-81
1

skipif mysql # not compatible
query I rowsort label-4539
SELECT ALL + col1 / + ( col0 ) + - CAST ( col2 AS INTEGER ) FROM tab0 AS cor0
----
-30
-81
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-4540
SELECT 61 DIV - col0 FROM tab2 AS cor0
----
-8
0
0

skipif mysql # not compatible
query I rowsort label-4540
SELECT 61 / - col0 FROM tab2 AS cor0
----
-8
0
0

query I rowsort
SELECT 26 FROM tab0, tab1 AS cor0, tab2 AS cor1, tab2 cor2
----
81 values hashing to 8b6a624eb92fb019d9664318e519f062

query I rowsort
SELECT - - 15 * col2 FROM tab0 cor0
----
1230
15
495

query I rowsort
SELECT col0 * col1 - + 86 FROM tab0 AS cor0
----
1978
3309
8013

query I rowsort
SELECT + col1 - ( col0 ) FROM tab2 cor0
----
-19
-62
24

query I rowsort
SELECT col0 + 68 * ( col1 ) * - col1 FROM tab0 AS cor0
----
-502904
-563019
-639777

query I rowsort
SELECT + col2 + - 86 * + 19 AS col0 FROM tab2 AS cor0
----
-1596
-1607
-1608

query I rowsort
SELECT tab1.col2 * + tab1.col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 16ae0e1090cb09b93854a4788f17716b

query I rowsort
SELECT - tab1.col2 * col2 * - col0 FROM tab1
----
207936
737280
8748

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 25 col0 FROM tab1 cor0
----
25
25
25

query I rowsort
SELECT DISTINCT col1 + - col1 * - ( col1 ) * - col2 FROM tab1 AS cor0
----
-16211
-36478
-5690

query I rowsort
SELECT - col0 * - col1 + col2 + 28 FROM tab1
----
1164
160
725

query I rowsort
SELECT ALL 36 + tab0.col2 + + col2 * col2 FROM tab0
----
1158
38
6842

onlyif mysql # use DIV operator for integer division
query I rowsort label-4553
SELECT + col2 * col1 + + col2 - col2 DIV - col2 col0 FROM tab1
----
1345
1459
628

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4553
SELECT + col2 * col1 + + col2 - col2 / - col2 col0 FROM tab1
----
1345
1459
628

query I rowsort
SELECT - 32 + + col2 * + 40 AS col0 FROM tab2 AS cor0
----
1008
1048
1488

query I rowsort
SELECT DISTINCT + 10 FROM tab1, tab0 AS cor0
----
10

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4556
SELECT - col0 * CAST( - col0 AS SIGNED ) + col1 FROM tab1 cor0
----
35
4106
6413

skipif mysql # not compatible
query I rowsort label-4556
SELECT - col0 * CAST ( - col0 AS INTEGER ) + col1 FROM tab1 cor0
----
35
4106
6413

query I rowsort
SELECT col2 + 74 * + col1 FROM tab2
----
1296
2321
4392

query I rowsort
SELECT + - col2 * + 6 + col1 AS col2 FROM tab0 AS cor0
----
-112
-401
91

query I rowsort
SELECT - - col2 + - 18 FROM tab0 AS cor0
----
-17
15
64

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4560
SELECT ALL - + CAST( NULL AS SIGNED ) / col2 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4560
SELECT ALL - + CAST ( NULL AS INTEGER ) / col2 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4561
SELECT DISTINCT - col2 * + col1 + col1 DIV + 38 FROM tab2 cor0
----
-1533
-646
-837

skipif mysql # not compatible
query I rowsort label-4561
SELECT DISTINCT - col2 * + col1 + col1 / + 38 FROM tab2 cor0
----
-1533
-646
-837

query I rowsort
SELECT + - 34 * col1 AS col1 FROM tab1 AS cor0
----
-340
-442
-884

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + 95 col0 FROM tab1 AS cor0
----
15
31
92

query I rowsort
SELECT - col0 + - 67 FROM tab1 cor0
----
-131
-147
-70

query I rowsort
SELECT ALL + col0 * + col2 - + col2 AS col1 FROM tab0 AS cor0
----
34
7216
759

query I rowsort
SELECT + - col2 + 59 FROM tab1 AS cor0
----
-37
2
5

query I rowsort
SELECT ALL col2 * - ( + cor0.col2 ) FROM tab1 AS cor0
----
-2916
-3249
-9216

onlyif mysql # use DIV operator for integer division
query I rowsort label-4568
SELECT DISTINCT + - ( col2 ) + + cor0.col2 + + ( - ( col2 ) ) DIV col0 col1 FROM tab1 cor0
----
-1
-18
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4568
SELECT DISTINCT + - ( col2 ) + + cor0.col2 + + ( - ( col2 ) ) / col0 col1 FROM tab1 cor0
----
-1
-18
0

query I rowsort
SELECT ALL + - col0 * - 48 - + col2 * - ( col1 ) AS col0 FROM tab0 AS cor0
----
11734
1777
3990

query I rowsort
SELECT - col1 * + col2 + + col2 * col1 AS col2 FROM tab0
----
0
0
0

query I rowsort
SELECT + 61 AS col2 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 8d4dfe649433a599fc4b10830cc7ce55

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4572
SELECT ALL + CAST( NULL AS DECIMAL ) - cor0.col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4572
SELECT ALL + CAST ( NULL AS REAL ) - cor0.col0 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4573
SELECT ALL + 51 + - col0 DIV + col0 FROM tab0 cor0
----
50
50
50

skipif mysql # not compatible
query I rowsort label-4573
SELECT ALL + 51 + - col0 / + col0 FROM tab0 cor0
----
50
50
50

query I rowsort
SELECT DISTINCT - ( + 14 ) AS col1 FROM tab0 AS cor0
----
-14

query I rowsort
SELECT ALL + 76 * - 76 FROM tab2 AS cor0
----
-5776
-5776
-5776

query I rowsort
SELECT DISTINCT - ( ( col0 ) ) * 19 + col2 AS col2 FROM tab0 AS cor0
----
-1609
-423
-664

query I rowsort
SELECT DISTINCT - + 52 * - col0 AS col1 FROM tab1 AS cor0
----
156
3328
4160

query I rowsort
SELECT - col2 * - cor0.col1 * col1 + + col2 * - cor0.col2 FROM tab2 cor0
----
25218
89830
9538

query I rowsort
SELECT DISTINCT + 93 + col1 + ( + col0 ) * + cor0.col0 FROM tab0 AS cor0
----
1415
755
8105

onlyif mysql # use DIV operator for integer division
query I rowsort label-4580
SELECT ALL + col1 DIV - col1 + 43 FROM tab2 AS cor0
----
42
42
42

skipif mysql # not compatible
query I rowsort label-4580
SELECT ALL + col1 / - col1 + 43 FROM tab2 AS cor0
----
42
42
42

query I rowsort
SELECT ALL + + 94 AS col0 FROM tab1 AS cor0
----
94
94
94

query I rowsort
SELECT ALL col1 * col0 - 50 FROM tab0 AS cor0
----
2014
3345
8049

query I rowsort
SELECT + ( - tab2.col1 ) + + col1 AS col2 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL col2 * 91 AS col2 FROM tab0
----
3003
7462
91

query I rowsort
SELECT DISTINCT + col1 + ( col0 ) * - col0 AS col2 FROM tab1 AS cor0
----
-4086
-6387
17

onlyif mysql # use DIV operator for integer division
query I rowsort label-4586
SELECT - col0 + cor0.col0 DIV col0 + + col2 AS col0 FROM tab0 AS cor0
----
-33
-6
10

skipif mysql # not compatible
query I rowsort label-4586
SELECT - col0 + cor0.col0 / col0 + + col2 AS col0 FROM tab0 AS cor0
----
-33
-6
10

query I rowsort
SELECT + col1 * ( col1 ) + - col1 FROM tab2 AS cor0
----
272
3422
930

query I rowsort
SELECT DISTINCT col1 + 96 * - 95 FROM tab0 cor0
----
-9023
-9029
-9034

query I rowsort
SELECT ALL + + col0 * + 70 FROM tab0 AS cor0
----
1680
2450
6230

query I rowsort
SELECT cor0.col2 * + 93 FROM tab0 AS cor0
----
3069
7626
93

query I rowsort
SELECT + + col1 + + col0 * - col0 FROM tab2 AS cor0
----
-18
-6025
-6224

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + col1 - col1 col0 FROM tab1
----
10
13
26

query I rowsort
SELECT DISTINCT + col0 * + 60 + - 78 AS col0 FROM tab2 AS cor0
----
342
4602
4662

query I rowsort
SELECT col2 * 64 AS col1 FROM tab1 AS cor0
----
3456
3648
6144

onlyif mysql # use DIV operator for integer division
query I rowsort label-4595
SELECT ALL - col2 + 5 + - 46 DIV + col2 FROM tab1 AS cor0
----
-49
-52
-91

skipif mysql # not compatible
query I rowsort label-4595
SELECT ALL - col2 + 5 + - 46 / + col2 FROM tab1 AS cor0
----
-49
-52
-91

query I rowsort
SELECT col1 * ( + col0 ) + + col1 * + ( + 16 + col0 ) FROM tab2
----
10148
2958
930

query I rowsort
SELECT ALL + 22 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9

query I rowsort
SELECT ALL - col0 - col0 * col1 FROM tab2 AS cor0
----
-1422
-224
-4680

query I rowsort
SELECT - - col1 * - cor0.col1 + col0 AS col2 FROM tab2 cor0
----
-210
-3403
-954

query I rowsort
SELECT DISTINCT - - cor0.col2 * - col2 + - cor0.col1 * - col0 FROM tab2 AS cor0
----
-101
-512
3926

onlyif mysql # use DIV operator for integer division
query I rowsort label-4601
SELECT 13 DIV + col0 + - 11 + col0 * + cor0.col0 col2 FROM tab2 AS cor0
----
39
6073
6230

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4601
SELECT 13 / + col0 + - 11 + col0 * + cor0.col0 col2 FROM tab2 AS cor0
----
39
6073
6230

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + col2 + col2 * + col1 col1 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT DISTINCT + 42 + - col2 AS col2 FROM tab0 AS cor0
----
-40
41
9

query I rowsort
SELECT DISTINCT ( - col1 ) * ( col0 ) FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT + cor0.col2 + col1 * 76 * ( col1 ) FROM tab1 AS cor0
----
12940
51430
7657

query I rowsort
SELECT DISTINCT + col0 + + col0 + - col1 * 15 AS col2 FROM tab1
----
-22
-35
-384

onlyif mysql # use DIV operator for integer division
query I rowsort label-4607
SELECT + 45 + 50 DIV - col2 + CAST( col1 AS SIGNED ) FROM tab1
----
55
58
71

skipif mysql # not compatible
query I rowsort label-4607
SELECT + 45 + 50 / - col2 + CAST ( col1 AS INTEGER ) FROM tab1
----
55
58
71

query I rowsort
SELECT DISTINCT tab1.col1 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
10
13
26

onlyif mysql # use DIV operator for integer division
query I rowsort label-4609
SELECT - ( col1 ) * col1 DIV - col0 + + col0 * - col2 * col2 + + col0 AS col2 FROM tab1 AS cor0
----
-207871
-737198
-8520

skipif mysql # not compatible
query I rowsort label-4609
SELECT - ( col1 ) * col1 / - col0 + + col0 * - col2 * col2 + + col0 AS col2 FROM tab1 AS cor0
----
-207871
-737198
-8520

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - 64 col1 FROM tab2
----
-33
-47
-5

onlyif mysql # use DIV operator for integer division
query I rowsort label-4611
SELECT CAST( col1 AS SIGNED ) DIV - tab1.col0 + + col0 * + col1 + - col0 col1 FROM tab1
----
576
67
960

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4611
SELECT CAST ( col1 AS INTEGER ) / - tab1.col0 + + col0 * + col1 + - col0 col1 FROM tab1
----
576
67
960

query I rowsort
SELECT + col1 + col1 + 69 FROM tab1
----
121
89
95

onlyif mysql # use DIV operator for integer division
query I rowsort label-4613
SELECT ALL 62 DIV + col1 FROM tab2
----
1
2
3

skipif mysql # not compatible
query I rowsort label-4613
SELECT ALL 62 / + col1 FROM tab2
----
1
2
3

query I rowsort
SELECT DISTINCT - + 55 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-55

query I rowsort
SELECT - col0 * col0 * + col0 FROM tab2 AS cor0
----
-343
-474552
-493039

onlyif mysql # use DIV operator for integer division
query I rowsort label-4616
SELECT + 32 DIV - col0 AS col1 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4616
SELECT + 32 / - col0 AS col1 FROM tab0 AS cor0
----
-1
0
0

query I rowsort
SELECT - ( ( + col0 ) ) + + col0 * - 19 FROM tab1 AS cor0
----
-1280
-1600
-60

query I rowsort
SELECT + ( - col2 + col0 ) * - col0 FROM tab1
----
-448
1280
153

query I rowsort
SELECT ALL - col1 + + 89 FROM tab2
----
30
58
72

query I rowsort
SELECT DISTINCT + col1 * 49 + + col0 FROM tab0
----
4238
4548
4788

onlyif mysql # use DIV operator for integer division
query I rowsort label-4621
SELECT ALL tab1.col2 DIV col0 + col2 AS col0 FROM tab1
----
57
72
97

skipif mysql # not compatible
query I rowsort label-4621
SELECT ALL tab1.col2 / col0 + col2 AS col0 FROM tab1
----
57
72
97

query I rowsort
SELECT DISTINCT 68 + col0 * + col0 + 76 FROM tab1
----
153
4240
6544

query I rowsort
SELECT DISTINCT - + col2 * - col0 - + col1 * ( + col2 ) FROM tab1 AS cor0
----
-1242
3078
6432

query I rowsort
SELECT ALL + col1 + + 71 * cor0.col1 FROM tab0 AS cor0
----
6192
6552
6984

query I rowsort
SELECT ALL - 86 * 53 + cor0.col0 AS col2 FROM tab2 cor0
----
-4479
-4480
-4551

query I rowsort
SELECT ALL + ( 2 ) * - col1 + + col1 AS col1 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT ALL - + col2 + - col2 AS col0 FROM tab0 cor0
----
-164
-2
-66

query I rowsort
SELECT 20 + + 29 FROM tab0 AS cor0
----
49
49
49

query I rowsort
SELECT + col1 * + col1 * ( - tab0.col0 ) AS col2 FROM tab0
----
-177504
-329315
-737009

query I rowsort
SELECT - - 38 * col1 + - 99 AS col0 FROM tab0 AS cor0
----
3169
3359
3587

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4631
SELECT DISTINCT tab2.col2 * col2 - CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4631
SELECT DISTINCT tab2.col2 * col2 - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT + tab2.col2 * - col0 * - 58 - + tab2.col0 AS col2 FROM tab2
----
10955
117546
174037

query I rowsort
SELECT + 53 AS col0 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 866ae1b4ab9e5b4043ac1bcfd413aaa6

query I rowsort
SELECT + col0 * + 43 * - tab0.col0 AS col0 FROM tab0
----
-24768
-340603
-52675

query I rowsort
SELECT - cor0.col0 * + 60 AS col0 FROM tab1 AS cor0
----
-180
-3840
-4800

query I rowsort
SELECT + 19 AS col0 FROM tab0, tab2 AS cor0, tab2 cor1
----
27 values hashing to 86c53e8567a17c8d91fc5aff119e0498

query I rowsort
SELECT + 20 + - 92 FROM tab0 AS cor0
----
-72
-72
-72

query I rowsort
SELECT - 61 * + col0 + + col1 AS col0 FROM tab1 cor0
----
-157
-3894
-4867

query I rowsort
SELECT DISTINCT + tab1.col2 * - ( + 84 + tab1.col2 ) FROM tab1
----
-17280
-7452
-8037

query I rowsort
SELECT ALL + col0 + ( col2 ) FROM tab1 AS cor0
----
121
176
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - col0 * - ( - col0 ) col0 FROM tab2 AS cor0
----
-22
-6058
-6203

query I rowsort
SELECT ALL col0 * ( cor0.col2 * col0 ) FROM tab2 AS cor0
----
1323
158184
237158

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + cor0.col2 * - col1 + + col0 * ( - 68 ) * - col0 col2 FROM tab1 AS cor0
----
-818
277948
433939

query I rowsort
SELECT DISTINCT col0 * 5 + + col0 FROM tab2 AS cor0
----
42
468
474

onlyif mysql # use DIV operator for integer division
query I rowsort label-4645
SELECT ALL + tab0.col2 - 91 DIV + col1 AS col0 FROM tab0
----
1
32
81

skipif mysql # not compatible
query I rowsort label-4645
SELECT ALL + tab0.col2 - 91 / + col1 AS col0 FROM tab0
----
1
32
81

query I rowsort
SELECT 0 AS col0 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

query I rowsort
SELECT - tab2.col0 + - ( + tab2.col0 ) FROM tab2
----
-14
-156
-158

query I rowsort
SELECT - + col0 * 87 FROM tab2 cor0
----
-609
-6786
-6873

query I rowsort
SELECT + col0 * - cor0.col2 AS col0 FROM tab1 AS cor0
----
-162
-3648
-7680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4650
SELECT DISTINCT tab0.col2 * + CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4650
SELECT DISTINCT tab0.col2 * + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query I rowsort
SELECT + col1 * + ( 21 ) + col0 FROM tab1
----
274
353
549

query I rowsort
SELECT - ( tab1.col2 ) * tab1.col2 FROM tab1
----
-2916
-3249
-9216

query I rowsort
SELECT ALL + - 42 + col2 * 31 * col0 AS col1 FROM tab1 cor0
----
113046
238038
4980

query I rowsort
SELECT - 50 * + col1 FROM tab2
----
-1550
-2950
-850

query I rowsort
SELECT 97 * 98 FROM tab1
----
9506
9506
9506

query I rowsort
SELECT DISTINCT 65 + + col0 AS col2 FROM tab2
----
143
144
72

query I rowsort
SELECT - ( col1 * - col0 ) AS col0 FROM tab1
----
1040
640
78

query I rowsort
SELECT + 87 * col2 * - col2 + + col2 FROM tab0
----
-584906
-86
-94710

query I rowsort
SELECT + - cor0.col1 * col0 AS col1 FROM tab0 AS cor0
----
-2064
-3395
-8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + + col0 + col1 col2 FROM tab0 AS cor0
----
24
35
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-4661
SELECT DISTINCT + - col1 DIV col0 - ( - cor0.col2 * - col2 ) AS col2 FROM tab2 AS cor0
----
-1444
-676
-733

skipif mysql # not compatible
query I rowsort label-4661
SELECT DISTINCT + - col1 / col0 - ( - cor0.col2 * - col2 ) AS col2 FROM tab2 AS cor0
----
-1444
-676
-733

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4662
SELECT DISTINCT + col2 + CAST( col0 AS SIGNED ) AS col2 FROM tab0 cor0
----
171
36
57

skipif mysql # not compatible
query I rowsort label-4662
SELECT DISTINCT + col2 + CAST ( col0 AS INTEGER ) AS col2 FROM tab0 cor0
----
171
36
57

query I rowsort
SELECT DISTINCT + col2 + ( col2 ) * col1 AS col2 FROM tab1 AS cor0
----
1344
1458
627

query I rowsort
SELECT col1 + + col2 * - ( col1 ) FROM tab0 AS cor0
----
-2752
-7371
0

query I rowsort
SELECT DISTINCT col2 + + col0 * + 81 AS col2 FROM tab0 cor0
----
1977
2836
7291

query I rowsort
SELECT cor0.col2 * col1 + cor0.col0 FROM tab1 AS cor0
----
1328
1407
634

onlyif mysql # use DIV operator for integer division
query I rowsort label-4667
SELECT DISTINCT col2 DIV 87 AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4667
SELECT DISTINCT col2 / 87 AS col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT - + col1 * 65 + col0 + + col1 FROM tab1 AS cor0
----
-1661
-576
-752

query I rowsort
SELECT - col2 * 23 + - 80 AS col2 FROM tab1 cor0
----
-1322
-1391
-2288

onlyif mysql # use DIV operator for integer division
query I rowsort label-4670
SELECT ALL + - col2 DIV 21 + + col2 DIV - col1 FROM tab1 AS cor0
----
-11
-4
-7

skipif mysql # not compatible
query I rowsort label-4670
SELECT ALL + - col2 / 21 + + col2 / - col1 FROM tab1 AS cor0
----
-11
-4
-7

query I rowsort
SELECT - col2 + - col1 * 30 FROM tab1 AS cor0
----
-357
-486
-834

query I rowsort
SELECT DISTINCT col0 * 72 + col1 - + col2 FROM tab2 AS cor0
----
508
5649
5667

query I rowsort
SELECT - col2 * + ( 10 + col2 ) FROM tab0 AS cor0
----
-11
-1419
-7544

query I rowsort
SELECT ALL col0 + - ( col0 + + col1 ) * - col0 AS col1 FROM tab1 AS cor0
----
4800
7520
90

query I rowsort
SELECT ALL - + 83 AS col1 FROM tab2 AS cor0
----
-83
-83
-83

onlyif mysql # use DIV operator for integer division
query I rowsort label-4676
SELECT + col2 DIV col0 col1 FROM tab1
----
0
1
18

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4676
SELECT + col2 / col0 col1 FROM tab1
----
0
1
18

query I rowsort
SELECT DISTINCT - 88 * - col1 + + col0 AS col0 FROM tab1
----
1224
2291
944

onlyif mysql # use DIV operator for integer division
query I rowsort label-4678
SELECT - + col1 + - cor0.col1 DIV + col0 + + 79 AS col2 FROM tab0 AS cor0
----
-10
-13
-20

skipif mysql # not compatible
query I rowsort label-4678
SELECT - + col1 + - cor0.col1 / + col0 + + 79 AS col2 FROM tab0 AS cor0
----
-10
-13
-20

query I rowsort
SELECT - - col2 + 12 * col2 * col2 AS col1 FROM tab1 AS cor0
----
110688
35046
39045

query I rowsort
SELECT + col2 * 99 AS col0 FROM tab0 AS cor0
----
3267
8118
99

onlyif mysql # use DIV operator for integer division
query I rowsort label-4681
SELECT ALL + - 85 * + 39 + + cor0.col1 DIV ( 89 * + cor0.col1 ) AS col0 FROM tab2 AS cor0
----
-3315
-3315
-3315

skipif mysql # not compatible
query I rowsort label-4681
SELECT ALL + - 85 * + 39 + + cor0.col1 / ( 89 * + cor0.col1 ) AS col0 FROM tab2 AS cor0
----
-3315
-3315
-3315

onlyif mysql # use DIV operator for integer division
query I rowsort label-4682
SELECT DISTINCT + col1 * cor0.col2 DIV + col2 FROM tab0 cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-4682
SELECT DISTINCT + col1 * cor0.col2 / + col2 FROM tab0 cor0
----
86
91
97

query I rowsort
SELECT 51 - + col2 AS col2 FROM tab2 AS cor0
----
13
24
25

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4684
SELECT DISTINCT - - CAST( NULL AS SIGNED ) / 61 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4684
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) / 61 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL 0 AS col2 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT - 21 + col0 + col0 * 79 AS col0 FROM tab2 AS cor0
----
539
6219
6299

query I rowsort
SELECT DISTINCT + 94 * + col0 * - col2 AS col2 FROM tab1 AS cor0
----
-15228
-342912
-721920

query I rowsort
SELECT 65 * col2 AS col2 FROM tab0 AS cor0
----
2145
5330
65

query I rowsort
SELECT - col0 - 31 * + col0 AS col0 FROM tab2 AS cor0
----
-224
-2496
-2528

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4690
SELECT DISTINCT - - CAST( NULL AS SIGNED ) + - col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4690
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) + - col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + 19 + - col1 FROM tab0 AS cor0
----
-67
-72
-78

query I rowsort
SELECT DISTINCT 25 + + col0 + + cor0.col1 FROM tab2 AS cor0
----
121
162
63

query I rowsort
SELECT DISTINCT + col1 + + cor0.col1 + col0 * col0 FROM tab1 AS cor0
----
4116
61
6426

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4694
SELECT DISTINCT ( 81 ) * + tab1.col0 + CAST( + 40 AS SIGNED ) + col1 AS col2 FROM tab1
----
309
5234
6533

skipif mysql # not compatible
query I rowsort label-4694
SELECT DISTINCT ( 81 ) * + tab1.col0 + CAST ( + 40 AS INTEGER ) + col1 AS col2 FROM tab1
----
309
5234
6533

query I rowsort
SELECT ALL + + 88 * col0 AS col1 FROM tab0 AS cor0
----
2112
3080
7832

onlyif mysql # use DIV operator for integer division
query I rowsort label-4696
SELECT ALL cor0.col1 + col2 DIV + 4 + + col0 AS col0 FROM tab0 cor0
----
118
132
200

skipif mysql # not compatible
query I rowsort label-4696
SELECT ALL cor0.col1 + col2 / + 4 + + col0 AS col0 FROM tab0 cor0
----
118
132
200

query I rowsort
SELECT DISTINCT + col0 * col1 * col2 + 80 AS col2 FROM tab0 cor0
----
3475
664198
68192

query I rowsort
SELECT DISTINCT ( - ( col0 ) ) AS col2 FROM tab0
----
-24
-35
-89

query I rowsort
SELECT col1 * + 5 + col2 * ( col1 ) FROM tab0 AS cor0
----
3268
582
7917

query I rowsort
SELECT - + col2 + 63 * + cor0.col1 FROM tab2 AS cor0
----
1033
1926
3691

onlyif mysql # use DIV operator for integer division
query I rowsort label-4701
SELECT DISTINCT + 35 + + ( - cor0.col1 ) DIV col0 + + col1 AS col0 FROM tab1 AS cor0
----
45
48
53

skipif mysql # not compatible
query I rowsort label-4701
SELECT DISTINCT + 35 + + ( - cor0.col1 ) / col0 + + col1 AS col0 FROM tab1 AS cor0
----
45
48
53

query I rowsort
SELECT + col0 * + 26 AS col1 FROM tab1 AS cor0
----
1664
2080
78

query I rowsort
SELECT - col1 * + cor0.col0 - col1 AS col0 FROM tab1 AS cor0
----
-104
-1053
-650

query I rowsort
SELECT ALL + + col1 + col0 FROM tab2 cor0
----
137
38
96

query I rowsort
SELECT - col1 + - col1 * col2 * - col1 AS col0 FROM tab1 AS cor0
----
16211
36478
5690

onlyif mysql # use DIV operator for integer division
query I rowsort label-4706
SELECT + ( tab1.col2 ) * col1 DIV col0 FROM tab1
----
15
468
8

skipif mysql # not compatible
query I rowsort label-4706
SELECT + ( tab1.col2 ) * col1 / col0 FROM tab1
----
15
468
8

query I rowsort
SELECT - - col2 * col0 - + 76 FROM tab2 AS cor0
----
113
1952
2926

query I rowsort
SELECT - cor0.col1 * + col0 + - col0 FROM tab0 AS cor0
----
-2088
-3430
-8188

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4709
SELECT DISTINCT + col1 / CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4709
SELECT DISTINCT + col1 / CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT col0 * col0 * - ( - col2 ) FROM tab1 AS cor0
----
233472
486
614400

query I rowsort
SELECT ALL - - col2 * ( - 6 * col0 ) - ( col1 * col1 ) FROM tab1 AS cor0
----
-1648
-21988
-46249

query I rowsort
SELECT ALL + col0 * col1 * cor0.col1 + col2 * - col0 AS col2 FROM tab0 AS cor0
----
176712
329280
729711

query I rowsort
SELECT cor0.col2 * - ( + 6 ) FROM tab1 AS cor0
----
-324
-342
-576

query I rowsort
SELECT DISTINCT + - col2 * - col0 - 91 AS col2 FROM tab0 cor0
----
-56
701
7207

onlyif mysql # use DIV operator for integer division
query I rowsort label-4715
SELECT col0 DIV + 38 FROM tab1 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-4715
SELECT col0 / + 38 FROM tab1 AS cor0
----
0
1
2

onlyif mysql # use DIV operator for integer division
query I rowsort label-4716
SELECT - col0 DIV 49 AS col0 FROM tab0 cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4716
SELECT - col0 / 49 AS col0 FROM tab0 cor0
----
-1
0
0

query I rowsort
SELECT - col1 + + ( 34 ) FROM tab2 AS cor0
----
-25
17
3

query I rowsort
SELECT - ( 18 ) FROM tab1 cor0
----
-18
-18
-18

query I rowsort
SELECT ALL - 70 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab2 AS cor2
----
81 values hashing to d0e68852e45abdcfbe6812110913ee01

query I rowsort
SELECT - + 74 * col2 AS col2 FROM tab0 AS cor0
----
-2442
-6068
-74

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4721
SELECT - CAST( NULL AS SIGNED ) + col1 * col1 col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4721
SELECT - CAST ( NULL AS INTEGER ) + col1 * col1 col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 12 AS col0 FROM tab2 cor0
----
12
12
12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - cor0.col2 + col2 col0 FROM tab1 cor0
----
-2862
-3192
-9120

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 16 * + col1 col1 FROM tab0 AS cor0
----
-1376
-1456
-1552

query I rowsort
SELECT - tab1.col2 AS col0 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to 44fdcd7cd603352d4d127811d164cc1e

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 75 col1 FROM tab2 AS cor0
----
-75
-75
-75

query I rowsort
SELECT - col0 + + cor0.col0 * + col1 AS col0 FROM tab0 AS cor0
----
2040
3360
8010

onlyif mysql # use DIV operator for integer division
query I rowsort label-4728
SELECT ALL 56 DIV - tab2.col1 FROM tab2
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-4728
SELECT ALL 56 / - tab2.col1 FROM tab2
----
-1
-3
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4729
SELECT ALL + CAST( NULL AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-4729
SELECT ALL + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ALL - col0 * cor0.col2 + col0 - - col2 * - col2 AS col1 FROM tab1 AS cor0
----
-16816
-3075
-6833

query I rowsort
SELECT + col1 - ( 77 * col1 ) FROM tab0
----
-6536
-6916
-7372

query I rowsort
SELECT - tab1.col2 * 59 FROM tab1
----
-3186
-3363
-5664

query I rowsort
SELECT DISTINCT - tab2.col0 * + col0 * + tab2.col2 AS col1 FROM tab2
----
-1323
-158184
-237158

query I rowsort
SELECT col2 * + 37 FROM tab0 AS cor0
----
1221
3034
37

query I rowsort
SELECT - col0 + + col0 * + cor0.col0 + col0 FROM tab0 cor0
----
1225
576
7921

query I rowsort
SELECT DISTINCT 48 * + col2 AS col0 FROM tab0 AS cor0
----
1584
3936
48

onlyif mysql # use DIV operator for integer division
query I rowsort label-4737
SELECT DISTINCT 88 DIV - col1 AS col1 FROM tab2 AS cor0
----
-1
-2
-5

skipif mysql # not compatible
query I rowsort label-4737
SELECT DISTINCT 88 / - col1 AS col1 FROM tab2 AS cor0
----
-1
-2
-5

query I rowsort
SELECT - - 28 * + col0 FROM tab1 AS cor0
----
1792
2240
84

onlyif mysql # use DIV operator for integer division
query I rowsort label-4739
SELECT ALL - col2 DIV col2 - - ( + 95 ) * col1 * - col0 col1 FROM tab1 AS cor0
----
-60801
-7411
-98801

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4739
SELECT ALL - col2 / col2 - - ( + 95 ) * col1 * - col0 col1 FROM tab1 AS cor0
----
-60801
-7411
-98801

query I rowsort
SELECT - col2 * col0 + cor0.col1 * - col1 FROM tab1 AS cor0
----
-3748
-7849
-838

onlyif mysql # use DIV operator for integer division
query I rowsort label-4741
SELECT DISTINCT ( col0 ) DIV 51 FROM tab1 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-4741
SELECT DISTINCT ( col0 ) / 51 FROM tab1 AS cor0
----
0
1

query I rowsort
SELECT DISTINCT + col0 + + col2 * + col1 FROM tab0 cor0
----
132
2862
7551

query I rowsort
SELECT + col1 + + 95 * 38 AS col0 FROM tab2 AS cor0
----
3627
3641
3669

query I rowsort
SELECT ALL - - col2 + - col0 AS col2 FROM tab1 AS cor0
----
-7
16
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + col2 + + cor0.col1 col2 FROM tab1 AS cor0
----
29
3
77

query I rowsort
SELECT ALL cor0.col2 * col2 - col0 FROM tab1 AS cor0
----
2913
3185
9136

query I rowsort
SELECT ALL + - col2 * 80 FROM tab2 cor0
----
-2080
-2160
-3040

query I rowsort
SELECT ALL col1 * + col1 * - col0 FROM tab1 AS cor0
----
-13520
-2028
-6400

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4749
SELECT ALL + CAST( col2 AS SIGNED ) col2 FROM tab0 AS cor0
----
1
33
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4749
SELECT ALL + CAST ( col2 AS INTEGER ) col2 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT DISTINCT + + col1 + + cor0.col2 AS col2 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT DISTINCT + cor0.col2 + + 12 AS col0 FROM tab2, tab1 AS cor0
----
108
66
69

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4752
SELECT + - CAST( - col2 AS SIGNED ) + + cor0.col2 + - 8 AS col0 FROM tab2 AS cor0
----
44
46
68

skipif mysql # not compatible
query I rowsort label-4752
SELECT + - CAST ( - col2 AS INTEGER ) + + cor0.col2 + - 8 AS col0 FROM tab2 AS cor0
----
44
46
68

query I rowsort
SELECT + 22 * 29 * col2 AS col1 FROM tab1
----
34452
36366
61248

query I rowsort
SELECT DISTINCT + col1 * + 30 + - col1 FROM tab2
----
1711
493
899

onlyif mysql # use DIV operator for integer division
query I rowsort label-4755
SELECT ALL - col2 DIV + col0 + + col0 * col0 + + col0 AS col1 FROM tab0 cor0
----
1260
599
8010

skipif mysql # not compatible
query I rowsort label-4755
SELECT ALL - col2 / + col0 + + col0 * col0 + + col0 AS col1 FROM tab0 cor0
----
1260
599
8010

query I rowsort
SELECT 50 * + col0 + col0 * + ( ( - col0 ) + + ( 61 ) * - col1 ) FROM tab0
----
-125280
-206570
-497510

query I rowsort
SELECT - 60 * col0 * col2 AS col0 FROM tab1
----
-218880
-460800
-9720

query I rowsort
SELECT DISTINCT + + 68 AS col2 FROM tab0, tab1, tab1 AS cor0
----
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + col2 * col0 ) + + tab0.col0 + - 42 * + col2 * - 57 col1 FROM tab0
----
203695
2464
79818

query I rowsort
SELECT + col0 * + col0 + + col1 + - col2 AS col0 FROM tab2 AS cor0
----
53
6117
6220

query I rowsort
SELECT - ( - col0 ) * - ( cor0.col1 ) * - col1 + col2 + + col1 FROM tab0 AS cor0
----
177623
329413
737182

query I rowsort
SELECT DISTINCT ( tab2.col2 ) + + col2 AS col2 FROM tab2
----
52
54
76

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab2 AS cor0 CROSS JOIN tab1, tab0 cor1, tab2 AS cor2
----
3645 values hashing to b9fc7433316cc7891b52d2a23a135419

query I rowsort
SELECT + tab1.col0 FROM tab1, tab0, tab1 cor0
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab2.col1 * + col0 col0 FROM tab2
----
1343
217
4602

query I rowsort
SELECT ALL + tab0.col1 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

query I rowsort
SELECT ALL + 59 * + tab0.col2 FROM tab0
----
1947
4838
59

query I rowsort
SELECT - - ( cor0.col0 ) * - cor0.col1 + + 75 FROM tab2 AS cor0
----
-1268
-142
-4527

query I rowsort
SELECT - tab1.col2 * + col0 * 68 AS col0 FROM tab1
----
-11016
-248064
-522240

query I rowsort
SELECT DISTINCT - 30 * - col0 + col2 FROM tab1 AS cor0
----
144
1977
2496

query I rowsort
SELECT DISTINCT - tab0.col2 * cor0.col1 FROM tab0, tab2, tab2 AS cor0
----
9 values hashing to 908fcf1ad35b8d9385588bf778296344

query I rowsort
SELECT ALL - col0 + 94 AS col0 FROM tab0 AS cor0
----
5
59
70

query I rowsort
SELECT - col0 + ( col2 ) * col1 AS col2 FROM tab0 AS cor0
----
2814
62
7373

query I rowsort
SELECT DISTINCT + - col1 - - col1 FROM tab1 AS cor0
----
0

query I rowsort
SELECT + - col1 + + col0 * - cor0.col1 AS col1 FROM tab2 AS cor0
----
-1360
-248
-4661

onlyif mysql # use DIV operator for integer division
query I rowsort label-4776
SELECT DISTINCT - 94 DIV - 77 AS col2 FROM tab2, tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4776
SELECT DISTINCT - 94 / - 77 AS col2 FROM tab2, tab2 AS cor0
----
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-4777
SELECT col1 DIV + tab2.col1 + + col1 AS col2 FROM tab2
----
18
32
60

skipif mysql # not compatible
query I rowsort label-4777
SELECT col1 / + tab2.col1 + + col1 AS col2 FROM tab2
----
18
32
60

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4778
SELECT CAST( - col0 AS SIGNED ) * col2 + + 86 FROM tab2 AS cor0
----
-103
-1942
-2916

skipif mysql # not compatible
query I rowsort label-4778
SELECT CAST ( - col0 AS INTEGER ) * col2 + + 86 FROM tab2 AS cor0
----
-103
-1942
-2916

query I rowsort
SELECT ALL + col0 * 34 + + col1 FROM tab0 AS cor0
----
1287
3117
902

query I rowsort
SELECT ALL cor0.col1 * 20 AS col0 FROM tab2 AS cor0
----
1180
340
620

query I rowsort
SELECT ALL col0 + 86 + + col2 FROM tab0 AS cor0
----
122
143
257

query I rowsort
SELECT 76 * 15 FROM tab2 AS cor0
----
1140
1140
1140

query I rowsort
SELECT - 2 * - col2 - col1 * - col2 AS col2 FROM tab1 AS cor0
----
1440
1512
684

query I rowsort
SELECT ALL - col2 * + cor0.col1 + col2 * col1 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + 18 + col0 AS col0 FROM tab2 AS cor0
----
25
96
97

query I rowsort
SELECT DISTINCT col2 * - ( col0 * - col0 ) + col2 + + col2 FROM tab2 AS cor0
----
1377
158236
237234

query I rowsort
SELECT - ( cor0.col0 ) + - cor0.col0 FROM tab1 AS cor0
----
-128
-160
-6

query I rowsort
SELECT ALL ( col1 ) + - col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT 0 AS col0 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

query I rowsort
SELECT - 94 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 7eeab220fc6bbc2fb3fa4aef8600159f

query I rowsort
SELECT DISTINCT + - col2 * col1 - 60 AS col1 FROM tab0 AS cor0
----
-157
-2898
-7522

query I rowsort
SELECT ALL cor1.col0 FROM tab0, tab1 AS cor0, tab2 cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col1 + + col1 + col0 col0 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT + col1 + col2 * 22 FROM tab2 AS cor0
----
625
631
853

query I rowsort
SELECT - - col2 * + col0 + col2 FROM tab1 AS cor0
----
216
3705
7776

query I rowsort
SELECT ALL cor0.col1 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c61d27a0022e6d022371dc58819ab272

query I rowsort
SELECT ALL - + col2 * col0 - - col0 AS col1 FROM tab0 AS cor0
----
-7209
-768
0

query I rowsort
SELECT - col2 * col0 + col0 + 13 * col2 AS col1 FROM tab1
----
-2843
-6352
543

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab2.col2 col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3

query I rowsort
SELECT - 56 * col1 + col2 AS col2 FROM tab0 AS cor0
----
-4783
-5014
-5431

query I rowsort
SELECT DISTINCT + col2 + 88 * - col0 FROM tab0 AS cor0
----
-2079
-3079
-7750

query I rowsort
SELECT DISTINCT - + 70 * 52 AS col1 FROM tab0 AS cor0
----
-3640

query I rowsort
SELECT - ( 52 ) + col0 FROM tab0 cor0
----
-17
-28
37

onlyif mysql # use DIV operator for integer division
query I rowsort label-4804
SELECT ALL + col1 + - 87 DIV - col1 AS col0 FROM tab0 AS cor0
----
87
91
97

skipif mysql # not compatible
query I rowsort label-4804
SELECT ALL + col1 + - 87 / - col1 AS col0 FROM tab0 AS cor0
----
87
91
97

query I rowsort
SELECT ALL col1 * - col2 * - col1 AS col2 FROM tab1 AS cor0
----
16224
36504
5700

query I rowsort
SELECT col0 + + 96 AS col0 FROM tab1 AS cor0
----
160
176
99

query I rowsort
SELECT ALL + + cor0.col2 * - cor0.col0 * + col0 FROM tab0 AS cor0
----
-1225
-19008
-649522

query I rowsort
SELECT + col1 * - col1 + col0 AS col0 FROM tab0 AS cor0
----
-7372
-8192
-9374

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + ( col2 ) * 43 + - 42 col0 FROM tab2 AS cor0
----
-1160
-1203
-1676

query I rowsort
SELECT 27 * + col2 + cor0.col1 FROM tab1 AS cor0
----
1484
1549
2605

query I rowsort
SELECT ( + col1 ) * 35 * col2 + - cor0.col1 * cor0.col2 + + 87 FROM tab0 AS cor0
----
253795
3385
96579

query I rowsort
SELECT - ( - col2 ) + col2 FROM tab1 AS cor0
----
108
114
192

query I rowsort
SELECT - col2 * col1 + 43 * + ( col1 ) + col1 FROM tab0 AS cor0
----
-3458
4171
946

query I rowsort
SELECT + tab0.col0 * + tab0.col2 AS col1 FROM tab0
----
35
7298
792

query I rowsort
SELECT - col2 + - col2 * 44 AS col1 FROM tab1 AS cor0
----
-2430
-2565
-4320

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 14 + col2 col2 FROM tab2 AS cor0
----
40
41
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-4817
SELECT DISTINCT - col2 * cor0.col2 + - 36 * cor0.col2 - + col2 DIV cor0.col2 FROM tab0 AS cor0
----
-2278
-38
-9677

skipif mysql # not compatible
query I rowsort label-4817
SELECT DISTINCT - col2 * cor0.col2 + - 36 * cor0.col2 - + col2 / cor0.col2 FROM tab0 AS cor0
----
-2278
-38
-9677

query I rowsort
SELECT col0 * - cor0.col0 + - 84 FROM tab2 AS cor0
----
-133
-6168
-6325

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + cor0.col0 * + 45 + + col1 * - col2 * - 94 col1 FROM tab0 AS cor0
----
265692
697423
7543

query I rowsort
SELECT - col1 + ( col0 ) AS col0 FROM tab0 AS cor0
----
-2
-62
-62

query I rowsort
SELECT ALL 5 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 6797d40099023779b89feb627d94a3e7

query I rowsort
SELECT ALL col1 + - ( cor0.col1 ) FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT cor0.col2 + + col0 * - col2 + 97 FROM tab2 AS cor0
----
-1905
-2867
-65

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4824
SELECT DISTINCT tab2.col1 * CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4824
SELECT DISTINCT tab2.col1 * CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query I rowsort
SELECT ALL + ( 89 ) AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743

query I rowsort
SELECT ALL col0 * ( tab1.col2 * - tab1.col0 ) + + 42 FROM tab1
----
-233430
-444
-614358

query I rowsort
SELECT DISTINCT col0 + ( col1 + - tab2.col0 * - ( + 95 ) ) FROM tab2
----
703
7547
7601

query I rowsort
SELECT DISTINCT - 60 * - col2 FROM tab0
----
1980
4920
60

query I rowsort
SELECT + 46 + + ( col0 ) * + ( + col0 ) * col0 FROM tab2 AS cor0
----
389
474598
493085

query I rowsort
SELECT ( col1 ) - + col0 AS col0 FROM tab0 AS cor0
----
2
62
62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4831
SELECT CAST( col0 AS SIGNED ) + col0 * col2 FROM tab0 AS cor0
----
70
7387
816

skipif mysql # not compatible
query I rowsort label-4831
SELECT CAST ( col0 AS INTEGER ) + col0 * col2 FROM tab0 AS cor0
----
70
7387
816

onlyif mysql # use DIV operator for integer division
query I rowsort label-4832
SELECT ( 53 ) DIV col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4832
SELECT ( 53 ) / col2 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 38 * tab0.col1 col1 FROM tab0, tab0 AS cor0
----
3268
3458
3686

query I rowsort
SELECT - col1 + col1 * - 49 * + col2 FROM tab1 AS cor0
----
-27940
-61165
-68822

query I rowsort
SELECT + col1 + + ( 98 ) AS col1 FROM tab1 cor0
----
108
111
124

onlyif mysql # use DIV operator for integer division
query I rowsort label-4836
SELECT ALL - - col2 DIV col2 AS col1 FROM tab0 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4836
SELECT ALL - - col2 / col2 AS col1 FROM tab0 cor0
----
1
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-4837
SELECT + - col2 - + cor0.col1 DIV col0 AS col1 FROM tab1 AS cor0
----
-57
-62
-96

skipif mysql # not compatible
query I rowsort label-4837
SELECT + - col2 - + cor0.col1 / col0 AS col1 FROM tab1 AS cor0
----
-57
-62
-96

query I rowsort
SELECT + - col1 * cor0.col1 * + col1 + col1 * + col2 AS col0 FROM tab2 cor0
----
-203845
-28954
-4267

query I rowsort
SELECT col1 - - 59 * - col2 AS col1 FROM tab1 AS cor0
----
-3160
-3353
-5651

query I rowsort
SELECT ALL - col1 * col2 * - col1 + 60 * col2 FROM tab1 AS cor0
----
21984
39744
9120

query I rowsort
SELECT DISTINCT 49 + - 17 * col1 AS col2 FROM tab2 cor0
----
-240
-478
-954

query I rowsort
SELECT DISTINCT - cor0.col2 FROM tab2, tab0 cor0, tab0 AS cor1
----
-1
-33
-82

query I rowsort
SELECT DISTINCT - col2 * + tab0.col1 * - col1 AS col0 FROM tab0
----
244068
679042
9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 + - 62 col1 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 14a299bbb736d221d6cdebb02a14b755

query I rowsort
SELECT DISTINCT col0 - col1 * - col1 AS col0 FROM tab0 AS cor0
----
7420
8370
9444

query I rowsort
SELECT DISTINCT + + col0 + - 68 FROM tab1 AS cor0
----
-4
-65
12

query I rowsort
SELECT - 35 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to c12e8bdd687c9040a5600dab3b6adf5b

query I rowsort
SELECT DISTINCT + ( + col2 ) + col1 AS col1 FROM tab1 AS cor0
----
109
67
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 29 ) + + col0 * - cor0.col1 col2 FROM tab2 AS cor0
----
-1314
-188
-4573

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4850
SELECT ALL CAST( NULL AS SIGNED ) / col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4850
SELECT ALL CAST ( NULL AS INTEGER ) / col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - col2 * col2 * col2 + - col0 FROM tab1 cor0
----
-157467
-185257
-884816

query I rowsort
SELECT DISTINCT - 11 + - cor0.col0 * col1 AS col2 FROM tab2 AS cor0
----
-1354
-228
-4613

query I rowsort
SELECT tab2.col2 + col0 * ( 46 ) * tab2.col2 - 26 FROM tab2
----
138104
8695
93288

query I rowsort
SELECT ALL 90 + 99 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 097e2702a0df23c3f2b62ef3998cb46c

query I rowsort
SELECT 10 * + col0 + col1 AS col0 FROM tab0
----
326
447
981

query I rowsort
SELECT ( - cor1.col1 ) AS col1 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2

query I rowsort
SELECT ALL - 57 AS col0 FROM tab0 AS cor0
----
-57
-57
-57

query I rowsort
SELECT - 40 * cor0.col1 FROM tab0, tab0 AS cor0, tab1 cor1
----
27 values hashing to dce0e2aee727d1fd6c1c17a2592a4121

query I rowsort
SELECT + + col0 + col0 * 57 FROM tab0 AS cor0
----
1392
2030
5162

query I rowsort
SELECT ALL col1 * ( col2 ) + - col2 AS col0 FROM tab2 AS cor0
----
1508
608
810

query I rowsort
SELECT DISTINCT + - cor0.col1 * - 36 FROM tab1 AS cor0
----
360
468
936

query I rowsort
SELECT DISTINCT + + col1 + 11 FROM tab1 AS cor0
----
21
24
37

query I rowsort
SELECT ALL - col0 * ( 39 * cor0.col1 ) + col2 FROM tab1 AS cor0
----
-24903
-2988
-40464

query I rowsort
SELECT DISTINCT col0 + ( col1 * col2 ) AS col0 FROM tab1 AS cor0
----
1328
1407
634

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col1 + - col0 col0 FROM tab0 AS cor0
----
2814
62
7373

query I rowsort
SELECT DISTINCT + col0 * - col0 + ( - col2 ) AS col1 FROM tab0 AS cor0
----
-1226
-609
-8003

onlyif mysql # use DIV operator for integer division
query I rowsort label-4867
SELECT col0 DIV + col0 + ( - col1 ) FROM tab1 AS cor0
----
-12
-25
-9

skipif mysql # not compatible
query I rowsort label-4867
SELECT col0 / + col0 + ( - col1 ) FROM tab1 AS cor0
----
-12
-25
-9

query I rowsort
SELECT ALL col1 * + 77 FROM tab0 cor0
----
6622
7007
7469

query I rowsort
SELECT ALL - - col1 - + col1 * 8 AS col2 FROM tab1 AS cor0
----
-182
-70
-91

query I rowsort
SELECT + - col1 + ( 60 ) * - col1 FROM tab0 AS cor0
----
-5246
-5551
-5917

query I rowsort
SELECT DISTINCT + cor0.col1 + + cor0.col2 * + col1 AS col2 FROM tab1 AS cor0
----
1261
1430
580

query I rowsort
SELECT ALL - ( - col0 * col2 ) FROM tab0
----
35
7298
792

query I rowsort
SELECT DISTINCT 19 * col1 AS col1 FROM tab1
----
190
247
494

onlyif mysql # use DIV operator for integer division
query I rowsort label-4874
SELECT DISTINCT + col1 * cor0.col0 DIV - 35 FROM tab2 cor0
----
-131
-38
-6

skipif mysql # not compatible
query I rowsort label-4874
SELECT DISTINCT + col1 * cor0.col0 / - 35 FROM tab2 cor0
----
-131
-38
-6

query I rowsort
SELECT - cor0.col2 * ( col0 ) AS col1 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT DISTINCT col2 + 26 - - 68 AS col0 FROM tab0 AS cor0
----
127
176
95

query I rowsort
SELECT DISTINCT col1 * col2 - 79 FROM tab2 AS cor0
----
1455
567
758

query I rowsort
SELECT - col0 * col1 - - col2 AS col0 FROM tab2 AS cor0
----
-1305
-190
-4576

onlyif mysql # use DIV operator for integer division
query I rowsort label-4879
SELECT + - col1 DIV 91 - col1 FROM tab0 AS cor0
----
-86
-92
-98

skipif mysql # not compatible
query I rowsort label-4879
SELECT + - col1 / 91 - col1 FROM tab0 AS cor0
----
-86
-92
-98

query I rowsort
SELECT 15 * cor1.col1 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d9cc92c402a4159be19434b1b50d150a

onlyif mysql # use DIV operator for integer division
query I rowsort label-4881
SELECT - + cor0.col1 DIV + col1 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-4881
SELECT - + cor0.col1 / + col1 col1 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ( + 77 ) AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622

onlyif mysql # use DIV operator for integer division
query I rowsort label-4883
SELECT col0 DIV - 13 FROM tab1 AS cor0
----
-4
-6
0

skipif mysql # not compatible
query I rowsort label-4883
SELECT col0 / - 13 FROM tab1 AS cor0
----
-4
-6
0

query I rowsort
SELECT col2 + + 2 AS col0 FROM tab2
----
28
29
40

query I rowsort
SELECT DISTINCT + col0 + - col0 AS col0 FROM tab0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4886
SELECT DISTINCT col0 + col2 * tab1.col1 DIV + col2 FROM tab1
----
29
74
93

skipif mysql # not compatible
query I rowsort label-4886
SELECT DISTINCT col0 + col2 * tab1.col1 / + col2 FROM tab1
----
29
74
93

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4887
SELECT DISTINCT col0 * - CAST( col1 AS SIGNED ) + col2 + + tab1.col1 FROM tab1
----
-573
-931
2

skipif mysql # not compatible
query I rowsort label-4887
SELECT DISTINCT col0 * - CAST ( col1 AS INTEGER ) + col2 + + tab1.col1 FROM tab1
----
-573
-931
2

query I rowsort
SELECT col1 * col0 + col2 + - col0 FROM tab2
----
1302
237
4550

onlyif mysql # use DIV operator for integer division
query I rowsort label-4889
SELECT - ( 39 ) + col2 DIV 59 FROM tab0 AS cor0
----
-38
-39
-39

skipif mysql # not compatible
query I rowsort label-4889
SELECT - ( 39 ) + col2 / 59 FROM tab0 AS cor0
----
-38
-39
-39

query I rowsort
SELECT + + ( - col1 ) + - col0 FROM tab2 AS cor0
----
-137
-38
-96

query I rowsort
SELECT - col0 + 6 * - col0 FROM tab1
----
-21
-448
-560

query I rowsort
SELECT ALL tab0.col2 * col2 + 67 + col1 AS col1 FROM tab0
----
1242
165
6882

query I rowsort
SELECT + col0 + - col0 * cor0.col2 AS col0 FROM tab1 AS cor0
----
-159
-3584
-7600

query I rowsort
SELECT DISTINCT 60 + col2 AS col0 FROM tab0 AS cor0
----
142
61
93

query I rowsort
SELECT 32 AS col0 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to cf4f01ac97eb83445b1721f3ae28961a

query I rowsort
SELECT ALL ( 81 + col2 ) FROM tab2
----
107
108
119

query I rowsort
SELECT ALL + 94 * + col2 FROM tab0
----
3102
7708
94

query I rowsort
SELECT DISTINCT - 43 + + col1 AS col1 FROM tab2 AS cor0
----
-12
-26
16

query I rowsort
SELECT DISTINCT + col1 * col2 + ( + col0 ) AS col0 FROM tab1 AS cor0
----
1328
1407
634

query I rowsort
SELECT ALL 55 * + col2 + col2 AS col0 FROM tab0 AS cor0
----
1848
4592
56

query I rowsort
SELECT - 33 * col2 FROM tab2 AS cor0
----
-1254
-858
-891

onlyif mysql # use DIV operator for integer division
query I rowsort label-4902
SELECT - + 18 + col0 DIV col1 FROM tab2 AS cor0
----
-14
-17
-18

skipif mysql # not compatible
query I rowsort label-4902
SELECT - + 18 + col0 / col1 FROM tab2 AS cor0
----
-14
-17
-18

query I rowsort
SELECT DISTINCT + 36 + - col2 AS col0 FROM tab2 AS cor0
----
-2
10
9

query I rowsort
SELECT DISTINCT col1 + col0 + - cor0.col2 * 13 * col2 AS col2 FROM tab0 AS cor0
----
-14047
-87232
119

skipif mysql # not compatible
query I rowsort
SELECT - + CAST ( col0 AS REAL ) + col1 FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT + 68 + col1 AS col2 FROM tab0 cor0
----
154
159
165

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 12 col2 FROM tab1, tab2 cor0
----
-12

query I rowsort
SELECT - ( 17 ) FROM tab2 AS cor0
----
-17
-17
-17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab0.col2 + ( + col2 ) + + tab0.col0 * + 72 col1 FROM tab0
----
1794
2522
6572

query I rowsort
SELECT ALL 86 AS col1 FROM tab2, tab1 cor0
----
9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT col0 * CAST ( + col1 AS REAL ) / + col1 AS col0 FROM tab1
----
3
64
80

query I rowsort
SELECT ALL - 43 - 62 FROM tab0, tab1 cor0
----
9 values hashing to c0af328d38b82a55707e7cbb373586e8

query I rowsort
SELECT ( + tab1.col1 ) AS col0 FROM tab1
----
10
13
26

query I rowsort
SELECT DISTINCT - 46 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
-46

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4915
SELECT 4 * - tab0.col2 + CAST( NULL AS SIGNED ) * - col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4915
SELECT 4 * - tab0.col2 + CAST ( NULL AS INTEGER ) * - col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4916
SELECT - 65 * - col2 + CAST( + col2 AS SIGNED ) * col2 * col2 FROM tab2
----
19266
21438
57342

skipif mysql # not compatible
query I rowsort label-4916
SELECT - 65 * - col2 + CAST ( + col2 AS INTEGER ) * col2 * col2 FROM tab2
----
19266
21438
57342

onlyif mysql # use DIV operator for integer division
query I rowsort label-4917
SELECT DISTINCT tab0.col1 + col1 DIV - col0 col0 FROM tab0
----
83
90
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4917
SELECT DISTINCT tab0.col1 + col1 / - col0 col0 FROM tab0
----
83
90
95

query I rowsort
SELECT col1 * col0 * - 38 AS col0 FROM tab0
----
-129010
-307762
-78432

query I rowsort
SELECT - + col2 - + 27 FROM tab2 cor0
----
-53
-54
-65

onlyif mysql # use DIV operator for integer division
query I rowsort label-4920
SELECT + 7 DIV - col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4920
SELECT + 7 / - col0 FROM tab0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 45 col0 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
-45

onlyif mysql # use DIV operator for integer division
query I rowsort label-4922
SELECT 8 DIV + col2 FROM tab0
----
0
0
8

skipif mysql # not compatible
query I rowsort label-4922
SELECT 8 / + col2 FROM tab0
----
0
0
8

onlyif mysql # use DIV operator for integer division
query I rowsort label-4923
SELECT + - col0 + + 28 DIV col2 + col0 DIV + ( col0 ) FROM tab1 AS cor0
----
-2
-63
-79

skipif mysql # not compatible
query I rowsort label-4923
SELECT + - col0 + + 28 / col2 + col0 / + ( col0 ) FROM tab1 AS cor0
----
-2
-63
-79

query I rowsort
SELECT - col1 * - ( - col0 ) - col1 AS col0 FROM tab0 AS cor0
----
-2150
-3492
-8190

query I rowsort
SELECT - - col0 * - 15 + + col1 AS col0 FROM tab2 AS cor0
----
-1111
-1168
-74

onlyif mysql # use DIV operator for integer division
query I rowsort label-4926
SELECT DISTINCT - + col0 DIV col1 AS col0 FROM tab1 cor0
----
-6
0

skipif mysql # not compatible
query I rowsort label-4926
SELECT DISTINCT - + col0 / col1 AS col0 FROM tab1 cor0
----
-6
0

query I rowsort
SELECT + - col0 * cor0.col2 + + 19 + col0 * - col2 FROM tab1 AS cor0
----
-15341
-305
-7277

query I rowsort
SELECT + col1 + + 93 + col1 * - col0 AS col1 FROM tab2
----
-1233
-4450
-93

query I rowsort
SELECT DISTINCT tab0.col2 AS col2 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
1
33
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab2.col0 * col2 col1 FROM tab2
----
189
2028
3002

query I rowsort
SELECT + col1 + - col2 * - cor0.col2 FROM tab2 cor0
----
1461
735
760

onlyif mysql # use DIV operator for integer division
query I rowsort label-4932
SELECT - col1 - + col1 DIV - cor0.col1 AS col0 FROM tab1 AS cor0
----
-12
-25
-9

skipif mysql # not compatible
query I rowsort label-4932
SELECT - col1 - + col1 / - cor0.col1 AS col0 FROM tab1 AS cor0
----
-12
-25
-9

query I rowsort
SELECT DISTINCT + col2 * + 7 - + col2 * col1 AS col2 FROM tab0
----
-2607
-6888
-90

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4934
SELECT col0 + - CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4934
SELECT col0 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - tab1.col0 - 29 FROM tab1
----
-109
-32
-93

query I rowsort
SELECT + ( cor0.col0 ) * col2 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT 43 * col0 + + col0 - - 55 FROM tab0 AS cor0
----
1111
1595
3971

query I rowsort
SELECT ALL + ( 94 ) + + col2 AS col0 FROM tab0
----
127
176
95

query I rowsort
SELECT ALL col2 * + col0 + + col0 AS col0 FROM tab1 cor0
----
165
3712
7760

query I rowsort
SELECT DISTINCT + - col1 + col2 AS col1 FROM tab0 cor0
----
-53
-9
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * + col1 + + col2 * col0 col0 FROM tab2 AS cor0
----
1026
3562
3648

query I rowsort
SELECT ALL + 86 AS col1 FROM tab0 cor0
----
86
86
86

query I rowsort
SELECT + 1 * col1 + - col1 * + 49 FROM tab2 AS cor0
----
-1488
-2832
-816

query I rowsort
SELECT 97 + + col1 FROM tab1 AS cor0
----
107
110
123

query I rowsort
SELECT + col2 * - cor0.col1 + + col1 + - cor0.col1 FROM tab0 cor0
----
-2838
-7462
-97

query I rowsort
SELECT ALL + - col0 * - col1 * col2 + 8 * col1 + - col2 AS col1 FROM tab1 cor0
----
36503
4366
99848

query I rowsort
SELECT - - col1 + 92 AS col2 FROM tab1 AS cor0
----
102
105
118

query I rowsort
SELECT ALL + 98 + col1 FROM tab1 AS cor0
----
108
111
124

query I rowsort
SELECT 5 + col1 * col2 FROM tab0 cor0
----
102
2843
7467

query I rowsort
SELECT ALL - cor0.col2 + col2 * col2 FROM tab2 AS cor0
----
1406
650
702

query I rowsort
SELECT + + 99 * col1 FROM tab0 AS cor0
----
8514
9009
9603

query I rowsort
SELECT col2 * - col2 * + ( - col1 ) FROM tab2 AS cor0
----
22599
24548
39884

query I rowsort
SELECT col1 + - cor0.col0 * + cor0.col1 FROM tab1 AS cor0
----
-1027
-52
-630

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + cor0.col0 * - 6 col0 FROM tab1 AS cor0
----
-374
-467
8

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4955
SELECT DISTINCT + + col0 + - CAST( - 81 AS SIGNED ) FROM tab1 AS cor0
----
145
161
84

skipif mysql # not compatible
query I rowsort label-4955
SELECT DISTINCT + + col0 + - CAST ( - 81 AS INTEGER ) FROM tab1 AS cor0
----
145
161
84

query I rowsort
SELECT ALL - + cor0.col0 * - ( + 9 ) * - col2 FROM tab2 AS cor0
----
-1701
-18252
-27018

query I rowsort
SELECT DISTINCT cor0.col1 + cor0.col0 + + 53 FROM tab0 AS cor0
----
163
185
233

query I rowsort
SELECT ALL - 0 * col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT col1 * col0 - + cor0.col1 FROM tab1 AS cor0
----
1027
52
630

query I rowsort
SELECT ALL + - col0 * cor0.col2 AS col0 FROM tab1 AS cor0
----
-162
-3648
-7680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4961
SELECT col1 + col0 * CAST( - cor0.col2 + + col0 AS SIGNED ) FROM tab0 AS cor0
----
-130
1287
714

skipif mysql # not compatible
query I rowsort label-4961
SELECT col1 + col0 * CAST ( - cor0.col2 + + col0 AS INTEGER ) FROM tab0 AS cor0
----
-130
1287
714

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + col1 + + 73 col1 FROM tab1 AS cor0
----
140
153
182

onlyif mysql # use DIV operator for integer division
query I rowsort label-4963
SELECT - + ( + col0 ) + col0 DIV col1 AS col0 FROM tab1 cor0
----
-3
-58
-74

skipif mysql # not compatible
query I rowsort label-4963
SELECT - + ( + col0 ) + col0 / col1 AS col0 FROM tab1 cor0
----
-3
-58
-74

query I rowsort
SELECT ALL - col2 * col2 + + col0 * col1 * col2 FROM tab0 cor0
----
3394
657394
67023

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 - col1 col2 FROM tab1 AS cor0
----
28
47
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 97 * col2 col1 FROM tab1 cor0
----
5238
5529
9312

query I rowsort
SELECT DISTINCT 14 * col1 - col2 AS col0 FROM tab0 AS cor0
----
1171
1192
1357

query I rowsort
SELECT ALL ( - col1 ) - + tab1.col1 AS col0 FROM tab1
----
-20
-26
-52

onlyif mysql # use DIV operator for integer division
query I rowsort label-4969
SELECT ( + col2 ) DIV - col0 AS col1 FROM tab2
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-4969
SELECT ( + col2 ) / - col0 AS col1 FROM tab2
----
-3
0
0

query I rowsort
SELECT ALL - col0 * + col1 + - col0 - - 62 * 5 FROM tab0
----
-1778
-3120
-7878

query I rowsort
SELECT - tab0.col2 * col0 + - col1 + - ( col0 ) AS col2 FROM tab0
----
-167
-7478
-902

query I rowsort
SELECT ALL 59 + + col2 AS col0 FROM tab0
----
141
60
92

query I rowsort
SELECT - ( 76 ) + cor1.col2 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 9855d4490fc93adf8c4b9b3413f67246

query I rowsort
SELECT - 40 + col0 * cor0.col2 AS col0 FROM tab2 cor0
----
149
1988
2962

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * col0 + - 72 col0 FROM tab2 AS cor0
----
-2100
-261
-3074

onlyif mysql # use DIV operator for integer division
query I rowsort label-4976
SELECT - ( col1 ) DIV + 31 - - col1 FROM tab1 AS cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-4976
SELECT - ( col1 ) / + 31 - - col1 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT ALL + ( col0 ) * 59 FROM tab1 AS cor0
----
177
3776
4720

query I rowsort
SELECT - + ( + col0 ) + - col0 + col1 AS col1 FROM tab0 AS cor0
----
-87
27
38

query I rowsort
SELECT - 70 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 35707a5d99c98b2657c084a50ff1b073

query I rowsort
SELECT ALL col0 * col1 + + 71 * col2 AS col0 FROM tab2
----
2134
4041
6448

query I rowsort
SELECT DISTINCT + 16 FROM tab1 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab1 AS cor2
----
16

query I rowsort
SELECT col0 + 29 * + col1 FROM tab0
----
2518
2728
2848

query I rowsort
SELECT + col1 + + ( tab0.col0 ) AS col2 FROM tab0
----
110
132
180

query I rowsort
SELECT 97 * - col0 FROM tab0 AS cor0
----
-2328
-3395
-8633

query I rowsort
SELECT + ( - col1 * + col0 ) AS col1 FROM tab2
----
-1343
-217
-4602

query I rowsort
SELECT ( + tab0.col1 ) + - tab0.col1 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT - 3 + - 57 * + col0 FROM tab0 AS cor0
----
-1371
-1998
-5076

query I rowsort
SELECT DISTINCT ( col0 ) * + col0 + 52 + + col2 AS col1 FROM tab2 AS cor0
----
128
6162
6331

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4989
SELECT ALL + CAST( NULL AS DECIMAL ) col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4989
SELECT ALL + CAST ( NULL AS REAL ) col1 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4990
SELECT + col0 DIV + 41 FROM tab2 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-4990
SELECT + col0 / + 41 FROM tab2 AS cor0
----
0
1
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4991
SELECT ALL CAST( + col2 AS SIGNED ) + + cor0.col0 * 78 AS col2 FROM tab0 AS cor0
----
1905
2731
7024

skipif mysql # not compatible
query I rowsort label-4991
SELECT ALL CAST ( + col2 AS INTEGER ) + + cor0.col0 * 78 AS col2 FROM tab0 AS cor0
----
1905
2731
7024

onlyif mysql # use DIV operator for integer division
query I rowsort label-4992
SELECT DISTINCT - col2 * col1 DIV + cor0.col2 AS col1 FROM tab0 AS cor0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-4992
SELECT DISTINCT - col2 * col1 / + cor0.col2 AS col1 FROM tab0 AS cor0
----
-86
-91
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-4993
SELECT + ( col0 ) + + col0 DIV 5 col0 FROM tab0 AS cor0
----
106
28
42

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4993
SELECT + ( col0 ) + + col0 / 5 col0 FROM tab0 AS cor0
----
106
28
42

query I rowsort
SELECT ALL + 99 + col0 AS col1 FROM tab1 AS cor0
----
102
163
179

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 1 + cor0.col2 * 65 col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 134bdeada1a70991cdfc7d6a8dce8ce7

query I rowsort
SELECT - + cor0.col2 * ( - col0 + col0 ) * col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - ( cor0.col1 ) * col2 + + col2 * col2 AS col1 FROM tab2 AS cor0
----
-108
-858
798

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4998
SELECT - CAST( col0 AS SIGNED ) * col0 FROM tab1 AS cor0
----
-4096
-6400
-9

skipif mysql # not compatible
query I rowsort label-4998
SELECT - CAST ( col0 AS INTEGER ) * col0 FROM tab1 AS cor0
----
-4096
-6400
-9

query I rowsort
SELECT DISTINCT 23 * cor0.col0 - col1 * 12 FROM tab2 AS cor0
----
-211
1086
1613

query I rowsort
SELECT DISTINCT ( - ( - col2 ) ) * col1 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT ALL + 64 * ( + col2 ) + cor0.col0 FROM tab1 AS cor0
----
3459
3712
6224

query I rowsort
SELECT DISTINCT cor0.col0 - col2 FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT DISTINCT + ( + 7 ) FROM tab2 AS cor0
----
7

query I rowsort
SELECT ALL + + col0 * col0 + + col2 - col1 AS col2 FROM tab2 AS cor0
----
45
6051
6262

onlyif mysql # use DIV operator for integer division
query I rowsort label-5005
SELECT ALL + - ( + ( - col0 ) ) + col1 DIV col0 FROM tab1 cor0
----
11
64
80

skipif mysql # not compatible
query I rowsort label-5005
SELECT ALL + - ( + ( - col0 ) ) + col1 / col0 FROM tab1 cor0
----
11
64
80

query I rowsort
SELECT DISTINCT - col0 * + col1 + - col0 FROM tab1 AS cor0
----
-1120
-704
-81

query I rowsort
SELECT ALL - cor0.col0 * - cor0.col2 FROM tab2, tab0 AS cor0
----
9 values hashing to e1120e7b687b32270ef70393236e7341

query I rowsort
SELECT DISTINCT - 65 * col2 AS col1 FROM tab2 AS cor0
----
-1690
-1755
-2470

query I rowsort
SELECT DISTINCT - - 93 + - col1 FROM tab1 AS cor0
----
67
80
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + col0 * + col2 col0 FROM tab2 AS cor0
----
2087
220
3019

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - col0 ) col1 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT 83 * - cor0.col2 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 6231127a54de1243630aeefa3da8c99e

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - 31 col2 FROM tab2 cor0
----
-4
-5
7

query I rowsort
SELECT ALL - col2 * 14 FROM tab1
----
-1344
-756
-798

query I rowsort
SELECT ALL - col1 * - 58 AS col2 FROM tab1 AS cor0
----
1508
580
754

query I rowsort
SELECT DISTINCT - col2 + + ( + col1 ) FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT - - col1 + col1 + - 73 AS col2 FROM tab2 AS cor0
----
-11
-39
45

query I rowsort
SELECT DISTINCT + 42 + col0 + col1 FROM tab0
----
152
174
222

query I rowsort
SELECT ALL + col2 * + cor0.col1 AS col0 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT DISTINCT + col2 * - ( col1 ) AS col1 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT ALL - col0 * + 17 FROM tab2 AS cor0
----
-119
-1326
-1343

query I rowsort
SELECT ALL + 8 + col0 * col1 FROM tab0 cor0
----
2072
3403
8107

query I rowsort
SELECT + - ( - ( col2 ) ) * 44 AS col0 FROM tab2 AS cor0
----
1144
1188
1672

query I rowsort
SELECT DISTINCT + ( + 99 ) + + col2 * col1 AS col2 FROM tab1 AS cor0
----
1347
1503
669

query I rowsort
SELECT 78 + cor0.col0 FROM tab0 cor0
----
102
113
167

query I rowsort
SELECT 83 * cor0.col2 FROM tab1, tab2 AS cor0
----
9 values hashing to d647270f445f65eebc96e7be978dcd0b

query I rowsort
SELECT col1 + - ( - col1 ) FROM tab0
----
172
182
194

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( - col2 ) IN ( + col2 + - col1 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

query I rowsort
SELECT col0 * col0 + col2 * col1 AS col2 FROM tab1 AS cor0
----
1413
4666
7648

query I rowsort
SELECT ALL col0 * - col1 * + tab1.col1 AS col2 FROM tab1
----
-13520
-2028
-6400

onlyif mysql # use DIV operator for integer division
query I rowsort label-5031
SELECT + col2 + col1 * tab2.col1 DIV col0 FROM tab2
----
164
41
70

skipif mysql # not compatible
query I rowsort label-5031
SELECT + col2 + col1 * tab2.col1 / col0 FROM tab2
----
164
41
70

query III rowsort
SELECT * FROM tab1 WHERE NULL IN ( col2 * - col0 / - col1 )
----

query III rowsort
SELECT * FROM tab0 WHERE ( col2 + - col0 ) IN ( col1 + - col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * col0 + + col0 col0 FROM tab0
----
-2040
-3360
-8010

query I rowsort
SELECT ALL - tab1.col0 - + col1 * tab1.col2 FROM tab1
----
-1328
-1407
-634

onlyif mysql # use DIV operator for integer division
query I rowsort label-5036
SELECT ALL col0 DIV - col2 + - tab1.col2 col1 FROM tab1
----
-54
-58
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5036
SELECT ALL col0 / - col2 + - tab1.col2 col1 FROM tab1
----
-54
-58
-96

query I rowsort
SELECT - col0 FROM tab0 WHERE col0 NOT IN ( col1 )
----
-24
-35
-89

query I rowsort
SELECT ALL col1 * col0 + cor0.col0 * - col0 AS col0 FROM tab1 AS cor0
----
-3456
-5360
69

query I rowsort
SELECT ALL - col1 * + tab0.col2 FROM tab0
----
-2838
-7462
-97

query I rowsort
SELECT col2 * tab2.col0 + - col1 AS col1 FROM tab2
----
158
1969
2985

query I rowsort
SELECT ALL - col0 * + col2 + + col0 * col1 FROM tab0
----
1272
3360
801

query I rowsort
SELECT DISTINCT + col0 FROM tab1 WHERE NULL NOT IN ( + col2 )
----

query I rowsort
SELECT col1 + col2 * col0 * + col0 AS col1 FROM tab0 AS cor0
----
1322
19094
649613

query I rowsort
SELECT col0 + col0 * col1 FROM tab0 cor0
----
2088
3430
8188

query I rowsort
SELECT ALL + col0 + col1 * - cor0.col1 + col0 AS col1 FROM tab1 AS cor0
----
-670
-9
28

query I rowsort
SELECT ALL tab1.col2 * tab1.col0 AS col1 FROM tab1
----
162
3648
7680

query I rowsort
SELECT - 56 AS col0 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to a228dfb9ede9780b082a5a3dfb2fca80

query I rowsort
SELECT DISTINCT - cor0.col2 * 74 AS col0 FROM tab2 AS cor0
----
-1924
-1998
-2812

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * + col2 + - col1 - - col1 * 20 col2 FROM tab1
----
1495
1898
760

query I rowsort
SELECT + 73 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496

query I rowsort
SELECT col0 + + tab1.col0 + 48 FROM tab1
----
176
208
54

query I rowsort
SELECT - cor0.col2 - + 60 AS col1 FROM tab0 AS cor0
----
-142
-61
-93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 * + col1 col1 FROM tab2 AS cor0
----
-1343
-217
-4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-5054
SELECT col2 DIV ( col1 ) FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5054
SELECT col2 / ( col1 ) FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + - col2 * + 3 FROM tab2 AS cor0
----
-114
-78
-81

query I rowsort
SELECT ALL - col2 * col0 - + col2 * tab2.col1 AS col1 FROM tab2
----
-1026
-3562
-3648

onlyif mysql # use DIV operator for integer division
query I rowsort label-5057
SELECT DISTINCT + col1 DIV tab2.col1 + - tab2.col1 AS col1 FROM tab2
----
-16
-30
-58

skipif mysql # not compatible
query I rowsort label-5057
SELECT DISTINCT + col1 / tab2.col1 + - tab2.col1 AS col1 FROM tab2
----
-16
-30
-58

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL >= ( col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * + col1 col0 FROM tab1
----
-1248
-1404
-570

query I rowsort
SELECT - col2 - + tab0.col2 FROM tab0
----
-164
-2
-66

query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab0 WHERE NOT ( NULL ) NOT IN ( col1 )
----

query III rowsort
SELECT * FROM tab0 WHERE col0 * col0 * + col1 + col0 NOT IN ( tab0.col1 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

onlyif mysql # use DIV operator for integer division
query I rowsort label-5063
SELECT DISTINCT col2 DIV - col0 - + col2 AS col0 FROM tab0
----
-1
-34
-82

skipif mysql # not compatible
query I rowsort label-5063
SELECT DISTINCT col2 / - col0 - + col2 AS col0 FROM tab0
----
-1
-34
-82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5064
SELECT + + col1 + col0 / + CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5064
SELECT + + col1 + col0 / + CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5065
SELECT + - cor0.col0 * col2 + - CAST( - 57 AS SIGNED ) * + col2 FROM tab2 cor0
----
-546
-836
1350

skipif mysql # not compatible
query I rowsort label-5065
SELECT + - cor0.col0 * col2 + - CAST ( - 57 AS INTEGER ) * + col2 FROM tab2 cor0
----
-546
-836
1350

onlyif mysql # use DIV operator for integer division
query I rowsort label-5066
SELECT DISTINCT col0 * col1 DIV - col1 + col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5066
SELECT DISTINCT col0 * col1 / - col1 + col0 FROM tab2
----
0

query I rowsort
SELECT col2 * - ( 96 ) FROM tab0 cor0
----
-3168
-7872
-96

query I rowsort
SELECT col2 * + 37 FROM tab2 AS cor0
----
1406
962
999

query I rowsort
SELECT DISTINCT + - col0 * + ( 55 * col2 ) - col1 AS col0 FROM tab2 AS cor0
----
-10426
-111599
-165127

query I rowsort
SELECT DISTINCT - cor0.col2 * col2 * 38 AS col0 FROM tab2 cor0
----
-25688
-27702
-54872

query I rowsort
SELECT - - col2 * - cor0.col2 FROM tab0 cor0
----
-1
-1089
-6724

query I rowsort
SELECT DISTINCT - col1 + - 48 AS col0 FROM tab0 AS cor0
----
-134
-139
-145

query I rowsort
SELECT ALL - col1 + - 98 - col2 FROM tab0 AS cor0
----
-196
-217
-271

query I rowsort
SELECT - col1 * ( - col0 ) FROM tab0 cor0
----
2064
3395
8099

query I rowsort
SELECT ALL + col2 * - 5 FROM tab1 AS cor0
----
-270
-285
-480

onlyif mysql # use DIV operator for integer division
query I rowsort label-5076
SELECT ALL - - col2 DIV - col2 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5076
SELECT ALL - - col2 / - col2 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT - col1 + cor0.col1 * + cor0.col1 FROM tab0 cor0
----
7310
8190
9312

query I rowsort
SELECT DISTINCT - col1 * - 63 AS col0 FROM tab0 AS cor0
----
5418
5733
6111

query I rowsort
SELECT ALL - col1 + + ( cor0.col2 ) FROM tab0 AS cor0
----
-53
-9
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-5080
SELECT - col1 DIV 3 AS col2 FROM tab1 AS cor0
----
-3
-4
-8

skipif mysql # not compatible
query I rowsort label-5080
SELECT - col1 / 3 AS col2 FROM tab1 AS cor0
----
-3
-4
-8

query I rowsort
SELECT DISTINCT + col1 - - col1 * 52 AS col1 FROM tab0
----
4558
4823
5141

query I rowsort
SELECT + col2 + ( col1 ) * + col2 FROM tab2
----
1560
684
864

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5083
SELECT ALL + CAST( cor0.col2 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-5083
SELECT ALL + CAST ( cor0.col2 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT - + cor0.col0 * + col0 FROM tab1 cor0
----
-4096
-6400
-9

query I rowsort
SELECT ALL col2 * + col1 * + col0 FROM tab1
----
36480
4212
99840

query I rowsort
SELECT ALL + col0 + - col1 * - 48 AS col2 FROM tab0 AS cor0
----
4152
4457
4691

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 85 col0 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to e4cf94cf0cc632acff30ad1dac617cb7

query I rowsort
SELECT ALL + col0 + 45 FROM tab0
----
134
69
80

query I rowsort
SELECT - col0 * - col1 - - col1 AS col0 FROM tab0
----
2150
3492
8190

query I rowsort
SELECT ALL 65 * col2 FROM tab0
----
2145
5330
65

query I rowsort
SELECT DISTINCT + cor0.col2 AS col0 FROM tab0, tab2, tab1 AS cor0
----
54
57
96

query I rowsort
SELECT DISTINCT + col2 * + col1 * + cor0.col1 AS col1 FROM tab0 cor0
----
244068
679042
9409

query I rowsort
SELECT ALL + - 65 * col1 + cor0.col1 * col2 AS col0 FROM tab1 AS cor0
----
-286
-80
403

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-5095
SELECT DISTINCT cor0.col1 DIV - col1 + cor0.col2 AS col1 FROM tab0 AS cor0
----
0
32
81

skipif mysql # not compatible
query I rowsort label-5095
SELECT DISTINCT cor0.col1 / - col1 + cor0.col2 AS col1 FROM tab0 AS cor0
----
0
32
81

query IIIIII rowsort
SELECT * FROM tab0, tab0 AS cor0 WHERE NULL <> NULL
----

query I rowsort
SELECT DISTINCT ( - col0 * col2 ) + + col1 FROM tab1
----
-136
-3638
-7667

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5098
SELECT CAST( col1 AS SIGNED ) + - col2 * + col2 + - col1 AS col2 FROM tab2
----
-1444
-676
-729

skipif mysql # not compatible
query I rowsort label-5098
SELECT CAST ( col1 AS INTEGER ) + - col2 * + col2 + - col1 AS col2 FROM tab2
----
-1444
-676
-729

query I rowsort
SELECT DISTINCT - ( 28 ) * col0 + col0 AS col1 FROM tab1
----
-1728
-2160
-81

query I rowsort
SELECT DISTINCT + 55 * col1 + col1 * - col2 FROM tab2
----
1711
289
868

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5101
SELECT CAST( NULL AS SIGNED ) + col2 * - col1 * - col1 + - col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5101
SELECT CAST ( NULL AS INTEGER ) + col2 * - col1 * - col1 + - col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 * 3 + - col2 AS col1 FROM tab0
----
104
185
39

query I rowsort
SELECT DISTINCT - ( + col1 ) * col1 FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT ALL + 97 + cor0.col2 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to b3b2a965505749791d1f730ffd16938f

query I rowsort
SELECT DISTINCT + 63 - - col0 FROM tab1 AS cor0
----
127
143
66

query I rowsort
SELECT DISTINCT + cor0.col1 * + col0 + + col1 - col2 * - col1 AS col1 FROM tab2 AS cor0
----
1085
2006
6195

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - ( 93 ) + col2 col1 FROM tab0 AS cor0
----
126
175
94

query I rowsort
SELECT ALL + - 92 * cor0.col0 * col0 + col0 FROM tab1 AS cor0
----
-376768
-588720
-825

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 * + col0 + - cor0.col0 col1 FROM tab1 cor0
----
-165
-3712
-7760

query I rowsort
SELECT ALL + ( col2 ) + col0 AS col0 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT DISTINCT col1 + - col1 * - col2 + + col0 FROM tab2 AS cor0
----
1671
742
875

query I rowsort
SELECT ALL + - cor0.col1 * col1 - - cor0.col1 FROM tab2 AS cor0
----
-272
-3422
-930

onlyif mysql # use DIV operator for integer division
query I rowsort label-5113
SELECT ALL + col2 * col1 + + col1 DIV - col0 AS col1 FROM tab2 cor0
----
1534
646
833

skipif mysql # not compatible
query I rowsort label-5113
SELECT ALL + col2 * col1 + + col1 / - col0 AS col1 FROM tab2 cor0
----
1534
646
833

query I rowsort
SELECT ALL 67 * + col0 FROM tab2 AS cor0
----
469
5226
5293

onlyif mysql # use DIV operator for integer division
query I rowsort label-5115
SELECT + 52 DIV col0 FROM tab2 AS cor0
----
0
0
7

skipif mysql # not compatible
query I rowsort label-5115
SELECT + 52 / col0 FROM tab2 AS cor0
----
0
0
7

query I rowsort
SELECT + 7 * 58 FROM tab1
----
406
406
406

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5117
SELECT CAST( NULL AS SIGNED ) * ( + tab2.col2 * - col1 ) + col2 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5117
SELECT CAST ( NULL AS INTEGER ) * ( + tab2.col2 * - col1 ) + col2 AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 38 + + col1 AS col1 FROM tab2
----
-21
-7
21

query I rowsort
SELECT - col0 + - col0 * + cor0.col1 AS col0 FROM tab2 AS cor0
----
-1422
-224
-4680

query I rowsort
SELECT - + 33 + col1 FROM tab1 AS cor0
----
-20
-23
-7

query I rowsort
SELECT ALL + 72 + col1 AS col0 FROM tab2
----
103
131
89

query I rowsort
SELECT DISTINCT - col0 * - 16 AS col1 FROM tab1
----
1024
1280
48

query I rowsort
SELECT DISTINCT + 30 + col1 * col2 FROM tab2
----
1564
676
867

query I rowsort
SELECT - tab0.col0 * + tab0.col1 - tab0.col2 FROM tab0
----
-2097
-3396
-8181

query I rowsort
SELECT DISTINCT + tab2.col2 - col0 FROM tab2
----
-41
-52
20

query I rowsort
SELECT 84 * - col1 AS col0 FROM tab0 AS cor0
----
-7224
-7644
-8148

query I rowsort
SELECT - col2 * cor0.col0 * - cor0.col0 FROM tab1 AS cor0
----
233472
486
614400

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * cor0.col1 col1 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT - + col1 + + col2 * ( - col1 ) FROM tab1 cor0
----
-1261
-1430
-580

onlyif mysql # use DIV operator for integer division
query I rowsort label-5130
SELECT DISTINCT - - col0 DIV col1 + col0 FROM tab2 AS cor0
----
7
79
83

skipif mysql # not compatible
query I rowsort label-5130
SELECT DISTINCT - - col0 / col1 + col0 FROM tab2 AS cor0
----
7
79
83

query I rowsort
SELECT - + cor0.col2 + ( + col0 ) AS col0 FROM tab1 AS cor0
----
-16
-51
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - ( 16 ) * col0 col2 FROM tab1 AS cor0
----
-1184
-967
6

query I rowsort
SELECT + cor0.col0 * - 49 FROM tab0 AS cor0
----
-1176
-1715
-4361

skipif mysql # not compatible
query I rowsort
SELECT CAST ( + 89 AS REAL ) + + col0 FROM tab2 cor0
----
167
168
96

query I rowsort
SELECT cor0.col1 * - 14 AS col0 FROM tab1 AS cor0
----
-140
-182
-364

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5136
SELECT - CAST( col2 AS SIGNED ) col1 FROM tab0 AS cor0
----
-1
-33
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5136
SELECT - CAST ( col2 AS INTEGER ) col1 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT + + col2 + + 28 AS col1 FROM tab0 AS cor0
----
110
29
61

query I rowsort
SELECT - col2 * + 33 AS col1 FROM tab0 AS cor0
----
-1089
-2706
-33

query I rowsort
SELECT ( + col0 ) * - col2 FROM tab2 cor0
----
-189
-2028
-3002

query I rowsort
SELECT ( - 33 ) AS col2 FROM tab1 AS cor0
----
-33
-33
-33

query I rowsort
SELECT + - 83 + 16 AS col0 FROM tab0 cor0
----
-67
-67
-67

query I rowsort
SELECT ALL col2 + - 94 * + col2 FROM tab2 AS cor0
----
-2418
-2511
-3534

query I rowsort
SELECT DISTINCT col0 * 88 * col2 FROM tab2
----
16632
178464
264176

query I rowsort
SELECT DISTINCT - col1 * - 8 + + col1 FROM tab0 AS cor0
----
774
819
873

query I rowsort
SELECT + + ( - col2 ) + col0 FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT ALL 97 * 98 AS col0 FROM tab1 AS cor0
----
9506
9506
9506

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + cor0.col2 * col2 col0 FROM tab0 cor0
----
-1
-1089
-6724

query I rowsort
SELECT DISTINCT + cor0.col1 - col1 * ( + col1 ) * col0 FROM tab1 AS cor0
----
-13507
-2002
-6390

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 6 * cor0.col2 col1 FROM tab1 AS cor0
----
-324
-342
-576

query I rowsort
SELECT ALL - + col1 * - col2 * col2 AS col0 FROM tab2 AS cor0
----
22599
24548
39884

query I rowsort
SELECT DISTINCT col0 * + col0 * - col2 + 90 * col0 * - 87 FROM tab0 AS cor0
----
-1346392
-206928
-275275

query I rowsort
SELECT - col2 + ( 52 ) FROM tab2 AS cor0
----
14
25
26

query I rowsort
SELECT ALL + col2 + col1 * - col0 AS col1 FROM tab1 AS cor0
----
-24
-583
-944

query I rowsort
SELECT + col2 * - 69 + + 71 + col1 AS col1 FROM tab1 AS cor0
----
-3629
-3852
-6540

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5155
SELECT + col2 * + col1 * - col0 + - col2 * + CAST( + col2 AS SIGNED ) * col1 + ( + col2 ) FROM tab0 AS cor0
----
-1275920
-161733
-3491

skipif mysql # not compatible
query I rowsort label-5155
SELECT + col2 * + col1 * - col0 + - col2 * + CAST ( + col2 AS INTEGER ) * col1 + ( + col2 ) FROM tab0 AS cor0
----
-1275920
-161733
-3491

onlyif mysql # use DIV operator for integer division
query I rowsort label-5156
SELECT - col1 + 56 DIV col2 + + col0 AS col0 FROM tab1 cor0
----
-22
54
67

skipif mysql # not compatible
query I rowsort label-5156
SELECT - col1 + 56 / col2 + + col0 AS col0 FROM tab1 cor0
----
-22
54
67

query I rowsort
SELECT ALL - - cor1.col0 * 29 FROM tab2 cor0 CROSS JOIN tab1, tab0 AS cor1
----
27 values hashing to 6e07a482375ef46face061c7c2824f9b

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5158
SELECT - col1 + + CAST( col2 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-33
-4
21

skipif mysql # not compatible
query I rowsort label-5158
SELECT - col1 + + CAST ( col2 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-33
-4
21

query I rowsort
SELECT + - cor0.col1 * - cor0.col2 AS col1 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT - col1 + - col2 + - col1 FROM tab0 AS cor0
----
-195
-205
-264

query I rowsort
SELECT cor0.col1 + + col1 + col1 AS col1 FROM tab1 cor0
----
30
39
78

query I rowsort
SELECT - col1 + - 92 FROM tab1 AS cor0
----
-102
-105
-118

query I rowsort
SELECT DISTINCT - cor0.col1 * + cor0.col2 + - col2 + - 4 * + col0 AS col1 FROM tab0 AS cor0
----
-238
-2967
-7900

query I rowsort
SELECT DISTINCT - cor0.col2 + col1 * + col1 FROM tab2 AS cor0
----
251
3455
934

query I rowsort
SELECT ALL + + col0 + - cor0.col2 * 46 FROM tab2 AS cor0
----
-1118
-1235
-1669

query I rowsort
SELECT - + col1 * ( col1 ) FROM tab2 AS cor0
----
-289
-3481
-961

query I rowsort
SELECT ALL col0 + - 5 AS col0 FROM tab2 AS cor0
----
2
73
74

onlyif mysql # use DIV operator for integer division
query I rowsort label-5168
SELECT ALL - col0 + + ( - col0 ) DIV col1 FROM tab1 AS cor0
----
-3
-70
-86

skipif mysql # not compatible
query I rowsort label-5168
SELECT ALL - col0 + + ( - col0 ) / col1 FROM tab1 AS cor0
----
-3
-70
-86

onlyif mysql # use DIV operator for integer division
query I rowsort label-5169
SELECT - cor0.col1 * 69 DIV col2 AS col1 FROM tab1 cor0
----
-12
-33
-9

skipif mysql # not compatible
query I rowsort label-5169
SELECT - cor0.col1 * 69 / col2 AS col1 FROM tab1 cor0
----
-12
-33
-9

query I rowsort
SELECT ALL + cor0.col1 * col2 + col2 + + cor0.col1 * col2 AS col2 FROM tab2 AS cor0
----
1330
1701
3094

query I rowsort
SELECT DISTINCT cor0.col1 + 32 AS col2 FROM tab1 AS cor0
----
42
45
58

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5172
SELECT + col0 + + CAST( NULL AS SIGNED ) / col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5172
SELECT + col0 + + CAST ( NULL AS INTEGER ) / col2 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - + col1 + + 40 * col0 FROM tab0 AS cor0
----
1303
3469
874

onlyif mysql # use DIV operator for integer division
query I rowsort label-5174
SELECT + + 13 * col0 + - col1 DIV + CAST( + ( col0 ) AS SIGNED ) AS col1 FROM tab0 AS cor0
----
1156
309
453

skipif mysql # not compatible
query I rowsort label-5174
SELECT + + 13 * col0 + - col1 / + CAST ( + ( col0 ) AS INTEGER ) AS col1 FROM tab0 AS cor0
----
1156
309
453

onlyif mysql # use DIV operator for integer division
query I rowsort label-5175
SELECT ALL - cor0.col1 DIV 50 + + col1 FROM tab0 cor0
----
85
90
96

skipif mysql # not compatible
query I rowsort label-5175
SELECT ALL - cor0.col1 / 50 + + col1 FROM tab0 cor0
----
85
90
96

query I rowsort
SELECT ALL cor0.col0 * + 62 - + col2 * + col1 AS col0 FROM tab0 AS cor0
----
-1350
-1944
2073

query I rowsort
SELECT ALL cor0.col1 * col0 * col2 + col1 FROM tab2 AS cor0
----
119711
51051
5890

query I rowsort
SELECT + - col0 + + col0 * + col1 FROM tab0 AS cor0
----
2040
3360
8010

onlyif mysql # use DIV operator for integer division
query I rowsort label-5179
SELECT + cor0.col1 DIV cor0.col0 + cor0.col0 FROM tab0 AS cor0
----
27
37
90

skipif mysql # not compatible
query I rowsort label-5179
SELECT + cor0.col1 / cor0.col0 + cor0.col0 FROM tab0 AS cor0
----
27
37
90

query I rowsort
SELECT ALL + 38 * col0 FROM tab2 cor0
----
266
2964
3002

query I rowsort
SELECT DISTINCT + 36 + col1 FROM tab2 AS cor0
----
53
67
95

query I rowsort
SELECT - - 87 + ( - col0 ) AS col2 FROM tab1 AS cor0
----
23
7
84

query I rowsort
SELECT + - col1 + col2 * + col0 FROM tab2 AS cor0
----
158
1969
2985

onlyif mysql # use DIV operator for integer division
query I rowsort label-5184
SELECT + 53 + + cor0.col0 DIV col0 FROM tab2 AS cor0
----
54
54
54

skipif mysql # not compatible
query I rowsort label-5184
SELECT + 53 + + cor0.col0 / col0 FROM tab2 AS cor0
----
54
54
54

query I rowsort
SELECT ALL - cor0.col2 * col1 * col0 AS col0 FROM tab0 AS cor0
----
-3395
-664118
-68112

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5186
SELECT ALL + CAST( NULL AS SIGNED ) + cor0.col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5186
SELECT ALL + CAST ( NULL AS INTEGER ) + cor0.col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 97 - - 5 AS col2 FROM tab0 AS cor0
----
102

query I rowsort
SELECT DISTINCT - col2 * 62 AS col1 FROM tab1 AS cor0
----
-3348
-3534
-5952

query I rowsort
SELECT DISTINCT - + 7 - 21 FROM tab2 AS cor0
----
-28

query I rowsort
SELECT - 82 - col1 FROM tab0 AS cor0
----
-168
-173
-179

query I rowsort
SELECT ALL ( 14 ) * cor0.col0 * col0 + col1 FROM tab2 AS cor0
----
717
85235
87391

query I rowsort
SELECT DISTINCT + col1 * col2 + col1 * + ( ( col0 ) ) FROM tab0 AS cor0
----
15561
3492
4902

query I rowsort
SELECT + col2 * cor0.col1 + col2 * cor0.col1 AS col1 FROM tab2 cor0
----
1292
1674
3068

onlyif mysql # use DIV operator for integer division
query I rowsort label-5194
SELECT ALL 42 DIV col1 + col0 * cor0.col1 AS col1 FROM tab0 AS cor0
----
2064
3395
8099

skipif mysql # not compatible
query I rowsort label-5194
SELECT ALL 42 / col1 + col0 * cor0.col1 AS col1 FROM tab0 AS cor0
----
2064
3395
8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-5195
SELECT ALL col0 + col2 DIV 11 AS col1 FROM tab0 AS cor0
----
27
35
96

skipif mysql # not compatible
query I rowsort label-5195
SELECT ALL col0 + col2 / 11 AS col1 FROM tab0 AS cor0
----
27
35
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col2 * 17 col2 FROM tab0
----
1394
17
561

query I rowsort
SELECT - - ( cor0.col0 ) + - col1 + + 66 * + col1 FROM tab1 AS cor0
----
1693
714
925

query I rowsort
SELECT DISTINCT + - ( col0 ) + cor0.col0 * col0 AS col2 FROM tab0 AS cor0
----
1190
552
7832

query I rowsort
SELECT + 56 + col2 + + ( + 40 ) FROM tab1 AS cor0
----
150
153
192

query I rowsort
SELECT DISTINCT 22 + col0 * col0 * + 73 + col0 AS col1 FROM tab2
----
3606
444232
455694

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + ( col1 ) * + col1 + 9 * + col0 col1 FROM tab0
----
636272
754372
912988

query I rowsort
SELECT - 98 + - col2 FROM tab0
----
-131
-180
-99

query I rowsort
SELECT col0 * - 77 * + col2 AS col1 FROM tab1
----
-12474
-280896
-591360

query I rowsort
SELECT - 72 + cor0.col0 * col0 FROM tab1 AS cor0
----
-63
4024
6328

query I rowsort
SELECT 87 + col0 * col1 * col2 FROM tab2 AS cor0
----
119739
51121
5946

query I rowsort
SELECT ALL + + 53 * + 75 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d439a96fe6dc1d558147d0b10761bed9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 84 col2 FROM tab2
----
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + cor0.col2 * col0 col1 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT ALL 31 AS col1 FROM tab1, tab0 AS cor0, tab0 AS cor1, tab0 AS cor2
----
81 values hashing to 0bb6d1445d82a11417f7bb2ec248ca9c

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5210
SELECT - CAST( NULL AS DECIMAL ) AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-5210
SELECT - CAST ( NULL AS REAL ) AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT - col0 + - tab1.col0 * + 50 FROM tab1
----
-153
-3264
-4080

query I rowsort
SELECT DISTINCT 74 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab0 AS cor2
----
74

onlyif mysql # use DIV operator for integer division
query I rowsort label-5213
SELECT + 72 DIV tab1.col2 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-5213
SELECT + 72 / tab1.col2 FROM tab1
----
0
1
1

query I rowsort
SELECT 19 + col1 * tab1.col1 FROM tab1
----
119
188
695

query I rowsort
SELECT - - ( 36 ) * - col1 + - col0 - + cor0.col1 * col1 FROM tab1 cor0
----
-1615
-524
-717

query I rowsort
SELECT 85 * 37 AS col1 FROM tab1 cor0
----
3145
3145
3145

query I rowsort
SELECT ALL + - cor0.col2 * ( col1 ) AS col0 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT DISTINCT + - col1 * 87 AS col1 FROM tab2 AS cor0
----
-1479
-2697
-5133

query I rowsort
SELECT - col2 + ( 7 ) AS col0 FROM tab0 AS cor0
----
-26
-75
6

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5220
SELECT DISTINCT tab0.col2 * + CAST( ( col1 ) AS SIGNED ) FROM tab0
----
2838
7462
97

skipif mysql # not compatible
query I rowsort label-5220
SELECT DISTINCT tab0.col2 * + CAST ( ( col1 ) AS INTEGER ) FROM tab0
----
2838
7462
97

query I rowsort
SELECT ALL col0 * ( col1 ) FROM tab0
----
2064
3395
8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-5222
SELECT + + col0 * ( + col2 ) DIV col1 FROM tab1 AS cor0
----
364
590
6

skipif mysql # not compatible
query I rowsort label-5222
SELECT + + col0 * ( + col2 ) / col1 FROM tab1 AS cor0
----
364
590
6

query I rowsort
SELECT + 70 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 9758da65ae4711e3e8c8def2fe026911

query I rowsort
SELECT - cor2.col0 AS col1 FROM tab2, tab1 cor0, tab2 cor1, tab0 AS cor2
----
81 values hashing to 26e45cd9fe71a2b90a8bdef20c88e70d

onlyif mysql # use DIV operator for integer division
query I rowsort label-5225
SELECT - - col0 + - col1 * - col1 DIV col1 AS col1 FROM tab1 AS cor0
----
29
74
93

skipif mysql # not compatible
query I rowsort label-5225
SELECT - - col0 + - col1 * - col1 / col1 AS col1 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT + col1 * - ( cor0.col1 ) FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT - 10 + 44 AS col2 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 4e2ca147a59e0d5661c28cf3e5431caa

query I rowsort
SELECT DISTINCT - 94 FROM tab2, tab1, tab0 AS cor0
----
-94

query I rowsort
SELECT - 70 * 37 AS col0 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 8991032ecc9906f5d3ef95ebd473b1e8

query I rowsort
SELECT ALL 50 * - cor0.col2 AS col1 FROM tab2 AS cor0
----
-1300
-1350
-1900

query I rowsort
SELECT - col2 * - 93 AS col1 FROM tab2 cor0
----
2418
2511
3534

query I rowsort
SELECT ALL - col0 - + col2 AS col2 FROM tab0 AS cor0
----
-171
-36
-57

query I rowsort
SELECT - 26 * - col2 AS col1 FROM tab1
----
1404
1482
2496

query I rowsort
SELECT 91 * col1 FROM tab1 AS cor0
----
1183
2366
910

query I rowsort
SELECT DISTINCT - - col1 * col2 - + 87 FROM tab0 AS cor0
----
10
2751
7375

query I rowsort
SELECT ( + cor0.col0 ) + col0 FROM tab0 AS cor0
----
178
48
70

query I rowsort
SELECT - + 35 + cor0.col0 AS col2 FROM tab0 AS cor0
----
-11
0
54

query I rowsort
SELECT col1 * col0 + - 50 * - 74 FROM tab2 cor0
----
3917
5043
8302

onlyif mysql # use DIV operator for integer division
query I rowsort label-5239
SELECT DISTINCT col2 + tab0.col2 DIV col0 AS col2 FROM tab0
----
1
34
82

skipif mysql # not compatible
query I rowsort label-5239
SELECT DISTINCT col2 + tab0.col2 / col0 AS col2 FROM tab0
----
1
34
82

query I rowsort
SELECT tab2.col2 AS col1 FROM tab2, tab1 AS cor0, tab2 cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT ALL - 5 + + tab1.col1 AS col1 FROM tab1
----
21
5
8

query I rowsort
SELECT + + col1 * - col1 + ( - ( + col1 ) ) * - col2 FROM tab2 cor0
----
-124
-1947
357

query I rowsort
SELECT DISTINCT col2 * + col2 + - 57 * - ( col1 * 91 ) AS col1 FROM tab0
----
447171
478741
503140

query I rowsort
SELECT - col2 * col2 * + ( + col0 ) + col2 AS col2 FROM tab2 AS cor0
----
-114038
-5076
-52702

query I rowsort
SELECT ALL - - col0 + + ( ( + col2 ) ) AS col2 FROM tab2 AS cor0
----
104
117
34

onlyif mysql # use DIV operator for integer division
query I rowsort label-5246
SELECT ALL col0 DIV col1 + - 91 * col1 AS col0 FROM tab1 cor0
----
-1177
-2366
-904

skipif mysql # not compatible
query I rowsort label-5246
SELECT ALL col0 / col1 + - 91 * col1 AS col0 FROM tab1 cor0
----
-1177
-2366
-904

query I rowsort
SELECT ALL + cor0.col2 + cor0.col2 * - cor0.col0 FROM tab0 AS cor0
----
-34
-7216
-759

query I rowsort
SELECT col0 + + 90 FROM tab0 cor0
----
114
125
179

query I rowsort
SELECT DISTINCT - col1 * 60 FROM tab0 AS cor0
----
-5160
-5460
-5820

query I rowsort
SELECT DISTINCT - col0 * + 77 * + col2 + col1 + col1 AS col1 FROM tab1 AS cor0
----
-12422
-280876
-591334

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5251
SELECT col0 / - CAST( NULL AS DECIMAL ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5251
SELECT col0 / - CAST ( NULL AS REAL ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 60 * + col1 FROM tab2
----
1020
1860
3540

query I rowsort
SELECT ALL 18 FROM tab2, tab0, tab2 cor0
----
27 values hashing to 903ac227935c1532300db45a8537c595

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 42 col2 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 325aada2239b6fe1fe2d843515ae8c5e

query I rowsort
SELECT - - col0 - - 38 * col2 AS col1 FROM tab1 AS cor0
----
2055
2230
3728

query I rowsort
SELECT 5 + - col1 FROM tab1 AS cor0
----
-21
-5
-8

query I rowsort
SELECT - col2 + + 99 * col2 AS col0 FROM tab1 AS cor0
----
5292
5586
9408

onlyif mysql # use DIV operator for integer division
query I rowsort label-5258
SELECT - ( ( + col1 ) ) DIV col1 + cor0.col1 FROM tab1 AS cor0
----
12
25
9

skipif mysql # not compatible
query I rowsort label-5258
SELECT - ( ( + col1 ) ) / col1 + cor0.col1 FROM tab1 AS cor0
----
12
25
9

query I rowsort
SELECT ALL - 6 FROM tab0, tab1 cor0
----
9 values hashing to e92b2679faac7be63701967e3f0c0934

query I rowsort
SELECT DISTINCT + 75 * col0 + - col0 FROM tab0 AS cor0
----
1776
2590
6586

query I rowsort
SELECT - 90 + col0 * - col2 AS col0 FROM tab1 AS cor0
----
-252
-3738
-7770

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5262
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + col0 - col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5262
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + col0 - col2 FROM tab0
----
NULL

query I rowsort
SELECT ALL - col1 * col2 - - col0 * + col1 AS col0 FROM tab2
----
-620
3068
697

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * 94 + - 14 col2 FROM tab1
----
5062
5344
9010

query I rowsort
SELECT col1 * tab2.col2 + - 11 * col0 FROM tab2
----
-223
676
760

query I rowsort
SELECT DISTINCT 94 * cor0.col2 + col2 + + col1 FROM tab2 AS cor0
----
2529
2596
3627

query I rowsort
SELECT + 19 + + col2 FROM tab0 AS cor0
----
101
20
52

query I rowsort
SELECT ( + cor0.col0 ) * + col2 + col1 AS col0 FROM tab1 AS cor0
----
188
3658
7693

query I rowsort
SELECT DISTINCT - ( col0 ) + - col0 FROM tab0 cor0
----
-178
-48
-70

query I rowsort
SELECT DISTINCT col1 * - col2 + cor0.col1 + col0 * 51 * cor0.col1 FROM tab2 cor0
----
10261
233227
67864

query I rowsort
SELECT ALL col2 + col2 * 87 AS col2 FROM tab1
----
4752
5016
8448

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + tab2.col2 + col1 col2 FROM tab2
----
55
58
85

query I rowsort
SELECT DISTINCT + col1 * - col2 + 42 AS col2 FROM tab0
----
-2796
-55
-7420

query I rowsort
SELECT ALL - col1 + col1 * col0 FROM tab2
----
1326
186
4543

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 - 75 col0 FROM tab0 AS cor0
----
-42
-74
7

query I rowsort
SELECT DISTINCT col2 + 42 + + col1 FROM tab0
----
140
161
215

onlyif mysql # use DIV operator for integer division
query I rowsort label-5277
SELECT ALL + - 39 DIV - cor0.col2 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5277
SELECT ALL + - 39 / - cor0.col2 AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + cor0.col0 + - tab0.col1 FROM tab0, tab1 cor0
----
9 values hashing to fa8ce7c049222449af270fb84251971e

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5279
SELECT DISTINCT - CAST( + 3 * col0 AS SIGNED ) AS col1 FROM tab2
----
-21
-234
-237

skipif mysql # not compatible
query I rowsort label-5279
SELECT DISTINCT - CAST ( + 3 * col0 AS INTEGER ) AS col1 FROM tab2
----
-21
-234
-237

query I rowsort
SELECT DISTINCT + 46 FROM tab2, tab1 cor0
----
46

query I rowsort
SELECT DISTINCT + 21 AS col0 FROM tab2, tab2 AS cor0
----
21

query I rowsort
SELECT DISTINCT - - col1 + - col2 AS col1 FROM tab2 cor0
----
-21
33
4

query I rowsort
SELECT ALL col2 * 33 + + cor0.col2 AS col0 FROM tab0 AS cor0
----
1122
2788
34

query I rowsort
SELECT DISTINCT 93 * + col2 FROM tab1 AS cor0
----
5022
5301
8928

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5285
SELECT - + ( - col2 ) + + cor0.col0 * - CAST( NULL AS SIGNED ) * col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5285
SELECT - + ( - col2 ) + + cor0.col0 * - CAST ( NULL AS INTEGER ) * col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - ( 85 ) AS col2 FROM tab1 AS cor0
----
-85
-85
-85

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5287
SELECT - 42 * + col2 * - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5287
SELECT - 42 * + col2 * - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - 94 AS col1 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 7eeab220fc6bbc2fb3fa4aef8600159f

query I rowsort
SELECT DISTINCT + col2 * - col2 + - 40 AS col2 FROM tab0 cor0
----
-1129
-41
-6764

query I rowsort
SELECT ALL - 50 * cor0.col1 + col2 FROM tab0 AS cor0
----
-4267
-4468
-4849

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5291
SELECT ALL + 72 + col0 + + CAST( NULL AS SIGNED ) * - ( - col0 ) * + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5291
SELECT ALL + 72 + col0 + + CAST ( NULL AS INTEGER ) * - ( - col0 ) * + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - + col1 + + col0 AS col2 FROM tab0 AS cor0
----
-2
-62
-62

query I rowsort
SELECT + - col0 * + col2 + + col2 * + col2 FROM tab2 AS cor0
----
-1352
-1558
540

query I rowsort
SELECT ALL - col2 * 12 + col2 AS col2 FROM tab1 AS cor0
----
-1056
-594
-627

query I rowsort
SELECT ALL - col2 * col0 * 3 + col2 * - col1 AS col0 FROM tab1 cor0
----
-11514
-1890
-24288

query I rowsort
SELECT + col1 + - 75 AS col0 FROM tab1 AS cor0
----
-49
-62
-65

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5297
SELECT ALL - col1 + - CAST( 73 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-104
-132
-90

skipif mysql # not compatible
query I rowsort label-5297
SELECT ALL - col1 + - CAST ( 73 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-104
-132
-90

query I rowsort
SELECT - + col0 * ( - col0 ) - col2 FROM tab2 AS cor0
----
22
6058
6203

onlyif mysql # use DIV operator for integer division
query I rowsort label-5299
SELECT ALL + cor0.col2 DIV col0 + - col1 FROM tab1 cor0
----
-10
-12
-8

skipif mysql # not compatible
query I rowsort label-5299
SELECT ALL + cor0.col2 / col0 + - col1 FROM tab1 cor0
----
-10
-12
-8

query I rowsort
SELECT DISTINCT + col2 + cor0.col0 * 27 + col0 FROM tab1 AS cor0
----
138
1849
2336

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * col0 * tab2.col1 col0 FROM tab2
----
-22831
-271518
-6727

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5302
SELECT ALL - col1 * + CAST( NULL AS SIGNED ) + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5302
SELECT ALL - col1 * + CAST ( NULL AS INTEGER ) + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col2 - + ( cor0.col1 ) * + col2 FROM tab2 AS cor0
----
-1560
-684
-864

query I rowsort
SELECT col2 * + ( col2 ) * - col1 FROM tab1 AS cor0
----
-119808
-32490
-75816

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 - - 50 col2 FROM tab0 AS cor0
----
132
51
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + 13 * - col1 col0 FROM tab2 AS cor0
----
-300
-410
-845

onlyif mysql # use DIV operator for integer division
query I rowsort label-5307
SELECT DISTINCT col0 + col1 DIV - col0 FROM tab1 AS cor0
----
-5
64
80

skipif mysql # not compatible
query I rowsort label-5307
SELECT DISTINCT col0 + col1 / - col0 FROM tab1 AS cor0
----
-5
64
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5308
SELECT col2 * - CAST( - ( col2 ) AS SIGNED ) FROM tab1 AS cor0
----
2916
3249
9216

skipif mysql # not compatible
query I rowsort label-5308
SELECT col2 * - CAST ( - ( col2 ) AS INTEGER ) FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT - + col0 * col1 * - col2 + 29 AS col0 FROM tab2 AS cor0
----
119681
51063
5888

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 * col1 col2 FROM tab2 cor0
----
289
3481
961

onlyif mysql # use DIV operator for integer division
query I rowsort label-5311
SELECT ALL col1 * - col2 + col0 DIV 7 + col1 * ( + col2 + cor0.col2 ) FROM tab2 AS cor0
----
1545
657
838

skipif mysql # not compatible
query I rowsort label-5311
SELECT ALL col1 * - col2 + col0 / 7 + col1 * ( + col2 + cor0.col2 ) FROM tab2 AS cor0
----
1545
657
838

query I rowsort
SELECT DISTINCT - + col1 * - col2 AS col0 FROM tab1 cor0
----
1248
1404
570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab2.col0 col0 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to c82df1de3cb666224690a83f3d790d79

query I rowsort
SELECT DISTINCT + 9 AS col0 FROM tab2, tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9

query I rowsort
SELECT + + cor0.col1 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

query I rowsort
SELECT ALL col2 * + col2 * - col1 FROM tab1
----
-119808
-32490
-75816

query I rowsort
SELECT ALL 5 AS col2 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 6797d40099023779b89feb627d94a3e7

query I rowsort
SELECT DISTINCT col0 + - col1 * ( - cor0.col2 ) FROM tab2 AS cor0
----
1612
725
844

query I rowsort
SELECT + cor0.col2 * + col0 AS col0 FROM tab2 cor0
----
189
2028
3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-5320
SELECT ALL + - col0 DIV - col0 col1 FROM tab1 AS cor0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5320
SELECT ALL + - col0 / - col0 col1 FROM tab1 AS cor0
----
1
1
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5321
SELECT CAST( NULL AS SIGNED ) col0 FROM tab2, tab0 AS 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-5321
SELECT CAST ( NULL AS INTEGER ) col0 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT col1 * + col1 + col0 AS col2 FROM tab0 cor0
----
7420
8370
9444

query I rowsort
SELECT DISTINCT + - col1 * + col0 - - col0 FROM tab0 cor0
----
-2040
-3360
-8010

query I rowsort
SELECT + col0 + + cor0.col2 * - col1 FROM tab2 AS cor0
----
-1456
-567
-830

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + col0 * - col1 col1 FROM tab0 AS cor0
----
-1978
-3298
-8008

query I rowsort
SELECT ALL col0 + cor0.col2 + - col0 AS col0 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT DISTINCT - col1 FROM tab2 cor0 WHERE - col0 + col2 - + col0 BETWEEN ( NULL ) AND ( NULL )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-5328
SELECT ALL + col0 DIV - col2 - + col2 AS col1 FROM tab1 cor0
----
-54
-58
-96

skipif mysql # not compatible
query I rowsort label-5328
SELECT ALL + col0 / - col2 - + col2 AS col1 FROM tab1 cor0
----
-54
-58
-96

query I rowsort
SELECT ALL - col0 / + col2 + col0 AS col1 FROM tab1 WHERE NOT col1 NOT IN ( + col1 / + tab1.col2 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( - col2 ) BETWEEN ( col1 ) AND - col1
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

onlyif mysql # use DIV operator for integer division
query I rowsort label-5331
SELECT + col2 * col0 DIV - col2 AS col0 FROM tab0 AS cor0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-5331
SELECT + col2 * col0 / - col2 AS col0 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT + - cor0.col2 * col1 + - col2 * col1 * + col0 AS col1 FROM tab2 AS cor0
----
-121186
-51680
-6696

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor1.col0 col1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63

onlyif mysql # use DIV operator for integer division
query I rowsort label-5334
SELECT col2 DIV + tab2.col0 AS col2 FROM tab2
----
0
0
3

skipif mysql # not compatible
query I rowsort label-5334
SELECT col2 / + tab2.col0 AS col2 FROM tab2
----
0
0
3

query III rowsort
SELECT * FROM tab2 WHERE NULL <= ( col0 ) AND ( NULL ) NOT IN ( - tab2.col2 )
----

query I rowsort
SELECT + + col0 - - col2 AS col2 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT - cor0.col0 + + col0 * + col1 FROM tab2 AS cor0
----
1264
210
4524

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab0.col2 * col0 - - col1 * + tab0.col1 col2 FROM tab0
----
6604
9374
983

query I rowsort
SELECT ALL - tab0.col2 AS col2 FROM tab0 WHERE ( NULL ) BETWEEN col0 + - col0 * - col0 AND col0
----

query I rowsort
SELECT tab2.col1 + tab2.col2 * - col2 AS col2 FROM tab2
----
-1427
-617
-698

query I rowsort
SELECT ALL - 3 * - cor0.col1 FROM tab2 AS cor0
----
177
51
93

query I rowsort
SELECT DISTINCT col0 * cor0.col1 * col0 AS col2 FROM tab1 AS cor0
----
234
40960
83200

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5343
SELECT DISTINCT + col2 * col2 * - CAST( col2 AS SIGNED ) FROM tab2 cor0
----
-17576
-19683
-54872

skipif mysql # not compatible
query I rowsort label-5343
SELECT DISTINCT + col2 * col2 * - CAST ( col2 AS INTEGER ) FROM tab2 cor0
----
-17576
-19683
-54872

query I rowsort
SELECT ALL + col1 * - col1 + - tab0.col2 AS col2 FROM tab0
----
-7429
-8363
-9410

query I rowsort
SELECT col1 * tab1.col2 - + col0 FROM tab1
----
1168
1401
506

query I rowsort
SELECT ALL - col1 + col2 + col1 AS col2 FROM tab0
----
1
33
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-5347
SELECT - col2 * tab1.col2 DIV - tab1.col0 AS col2 FROM tab1
----
115
50
972

skipif mysql # not compatible
query I rowsort label-5347
SELECT - col2 * tab1.col2 / - tab1.col0 AS col2 FROM tab1
----
115
50
972

query I rowsort
SELECT - col2 * + col2 * col2 FROM tab2
----
-17576
-19683
-54872

query I rowsort
SELECT ALL - col1 + - col1 + col2 FROM tab0
----
-100
-139
-193

onlyif mysql # use DIV operator for integer division
query I rowsort label-5350
SELECT DISTINCT col0 DIV + tab2.col0 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-5350
SELECT DISTINCT col0 / + tab2.col0 FROM tab2
----
1

query I rowsort
SELECT - 48 + col2 * + col0 FROM tab2
----
141
1980
2954

query I rowsort
SELECT col2 + + col0 + tab1.col2 AS col0 FROM tab1
----
111
178
272

query I rowsort
SELECT - ( col0 + + col0 ) * - col1 * col2 FROM tab1
----
199680
72960
8424

query I rowsort
SELECT DISTINCT 16 * - col0 + - col2 + + 90 AS col1 FROM tab1
----
-12
-1286
-991

query I rowsort
SELECT DISTINCT col0 + + col2 + - 58 * + 33 * col1 FROM tab0
----
-164547
-174003
-185622

query I rowsort
SELECT - col0 * col1 * - col0 AS col2 FROM tab2 AS cor0
----
106097
1519
358956

query I rowsort
SELECT DISTINCT - col0 * - cor0.col1 AS col2 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT ALL - 0 + - col2 * col2 AS col1 FROM tab0 AS cor0
----
-1
-1089
-6724

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5359
SELECT + - col0 * col1 * - CAST( - col1 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-22831
-271518
-6727

skipif mysql # not compatible
query I rowsort label-5359
SELECT + - col0 * col1 * - CAST ( - col1 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-22831
-271518
-6727

query I rowsort
SELECT col0 + col0 * - col0 - col0 AS col1 FROM tab2
----
-49
-6084
-6241

query I rowsort
SELECT ALL col2 * - col0 * col0 + col0 * tab2.col2 + col1 FROM tab2 WHERE NOT NULL NOT IN ( - col2 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 * + col1 >= ( col0 * col0 )
----

query I rowsort
SELECT tab0.col0 AS col0 FROM tab0 WHERE NULL > - col2
----

query I rowsort
SELECT DISTINCT col0 / col1 FROM tab0 WHERE NOT NULL BETWEEN NULL AND + col2 - + col0 * + col0 * + col0
----

query I rowsort
SELECT DISTINCT col0 FROM tab2 WHERE NULL BETWEEN NULL AND NULL
----

query IIIIII rowsort
SELECT * FROM tab2, tab0 AS cor0 WHERE NOT ( NULL ) < ( - tab2.col1 )
----

query I rowsort
SELECT - col2 * + col1 + + col0 + + tab2.col1 AS col0 FROM tab2
----
-1397
-550
-799

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col1 + col1 col0 FROM tab0
----
172
182
194

onlyif mysql # use DIV operator for integer division
query I rowsort label-5370
SELECT - col2 DIV tab2.col0 + + col1 FROM tab2
----
17
28
59

skipif mysql # not compatible
query I rowsort label-5370
SELECT - col2 / tab2.col0 + + col1 FROM tab2
----
17
28
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + - tab0.col1 col1 FROM tab0
----
0
0
0

query I rowsort
SELECT - 66 - col1 * col2 FROM tab0 AS cor0
----
-163
-2904
-7528

query I rowsort
SELECT + + 16 AS col2 FROM tab0 AS cor0
----
16
16
16

query I rowsort
SELECT DISTINCT - col2 * col0 * + cor0.col2 FROM tab2 AS cor0
----
-114076
-5103
-52728

query I rowsort
SELECT ALL + 33 * col1 FROM tab0 AS cor0
----
2838
3003
3201

onlyif mysql # use DIV operator for integer division
query I rowsort label-5376
SELECT - ( cor0.col0 ) DIV ( col0 ) - - col0 AS col2 FROM tab1 AS cor0
----
2
63
79

skipif mysql # not compatible
query I rowsort label-5376
SELECT - ( cor0.col0 ) / ( col0 ) - - col0 AS col2 FROM tab1 AS cor0
----
2
63
79

query I rowsort
SELECT col2 * + col0 * + cor0.col2 AS col1 FROM tab2 AS cor0
----
114076
5103
52728

query I rowsort
SELECT 82 FROM tab2, tab2 AS cor0 CROSS JOIN tab1, tab0 cor1
----
81 values hashing to 660751b3166f5cb8964b7ef659605795

query I rowsort
SELECT col1 + 38 FROM tab2
----
55
69
97

query I rowsort
SELECT DISTINCT 42 + col1 FROM tab1
----
52
55
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 * 52 col0 FROM tab0 AS cor0
----
-1248
-1820
-4628

query I rowsort
SELECT + col0 - - ( col0 ) FROM tab0 cor0
----
178
48
70

onlyif mysql # use DIV operator for integer division
query I rowsort label-5383
SELECT - 3 * + col1 DIV + tab2.col1 AS col1 FROM tab2
----
-3
-3
-3

skipif mysql # not compatible
query I rowsort label-5383
SELECT - 3 * + col1 / + tab2.col1 AS col1 FROM tab2
----
-3
-3
-3

query I rowsort
SELECT col2 + col1 + 30 * 38 * col1 AS col1 FROM tab2
----
19435
35398
67345

onlyif mysql # use DIV operator for integer division
query I rowsort label-5385
SELECT + col2 + + col2 DIV + col2 AS col1 FROM tab1
----
55
58
97

skipif mysql # not compatible
query I rowsort label-5385
SELECT + col2 + + col2 / + col2 AS col1 FROM tab1
----
55
58
97

query I rowsort
SELECT DISTINCT + tab2.col1 + col2 * 78 AS col2 FROM tab2
----
2087
2137
2981

onlyif mysql # use DIV operator for integer division
query I rowsort label-5387
SELECT DISTINCT - col0 DIV cor0.col1 + - cor0.col0 FROM tab1 AS cor0
----
-3
-70
-86

skipif mysql # not compatible
query I rowsort label-5387
SELECT DISTINCT - col0 / cor0.col1 + - cor0.col0 FROM tab1 AS cor0
----
-3
-70
-86

onlyif mysql # use DIV operator for integer division
query I rowsort label-5388
SELECT - col2 DIV - 83 col1 FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5388
SELECT - col2 / - 83 col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5389
SELECT col2 + + col2 DIV col0 FROM tab2
----
26
30
38

skipif mysql # not compatible
query I rowsort label-5389
SELECT col2 + + col2 / col0 FROM tab2
----
26
30
38

query I rowsort
SELECT DISTINCT + 8 * + cor0.col1 AS col2 FROM tab1 AS cor0
----
104
208
80

query I rowsort
SELECT ( - ( + col1 ) ) FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT DISTINCT - + cor0.col1 + - col1 AS col2 FROM tab2 AS cor0
----
-118
-34
-62

query I rowsort
SELECT 82 AS col1 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 99920d9f7cd9cdccef99cfa459ae6944

query I rowsort
SELECT ALL col2 * ( ( - tab1.col1 ) ) AS col2 FROM tab1
----
-1248
-1404
-570

query I rowsort
SELECT ALL + tab0.col0 AS col1 FROM tab1, tab2, tab0 AS cor0, tab0
----
81 values hashing to 2304fcc140e955eb2d1ee28ab1eea994

query I rowsort
SELECT 21 * 68 + + tab0.col2 AS col2 FROM tab0
----
1429
1461
1510

query I rowsort
SELECT ALL - + 66 AS col0 FROM tab2 AS cor0
----
-66
-66
-66

query I rowsort
SELECT DISTINCT - ( col1 ) * - col1 FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT DISTINCT col1 * 10 AS col0 FROM tab0 AS cor0
----
860
910
970

onlyif mysql # use DIV operator for integer division
query I rowsort label-5400
SELECT DISTINCT - + col2 DIV - cor0.col1 AS col2 FROM tab2 AS cor0
----
0
2

skipif mysql # not compatible
query I rowsort label-5400
SELECT DISTINCT - + col2 / - cor0.col1 AS col2 FROM tab2 AS cor0
----
0
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 36 col0 FROM tab2 cor0
----
36
36
36

query I rowsort
SELECT DISTINCT + 1 FROM tab0, tab0 AS cor0
----
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-5403
SELECT DISTINCT + ( - col2 ) + + cor0.col0 * col1 DIV - col1 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-5403
SELECT DISTINCT + ( - col2 ) + + cor0.col0 * col1 / - col1 col2 FROM tab1 AS cor0
----
-121
-176
-57

query I rowsort
SELECT DISTINCT - + col2 * + col1 * + cor0.col1 FROM tab2 AS cor0
----
-10982
-25947
-90506

query I rowsort
SELECT ALL col2 + col1 * + cor0.col1 + col0 FROM tab0 AS cor0
----
7453
8452
9445

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab1.col1 * col1 * - col1 col0 FROM tab1
----
1000
17576
2197

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 14 col0 FROM tab2 cor0
----
14
14
14

query I rowsort
SELECT - + ( + col0 ) * + col2 AS col0 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT DISTINCT + col2 + 47 FROM tab2 AS cor0
----
73
74
85

query I rowsort
SELECT ALL + - col0 + 97 FROM tab1 AS cor0
----
17
33
94

query I rowsort
SELECT col1 * 88 AS col2 FROM tab2
----
1496
2728
5192

onlyif mysql # use DIV operator for integer division
query I rowsort label-5412
SELECT - + col0 + - ( - col2 ) * col1 DIV col2 FROM tab0 AS cor0
----
2
62
62

skipif mysql # not compatible
query I rowsort label-5412
SELECT - + col0 + - ( - col2 ) * col1 / col2 FROM tab0 AS cor0
----
2
62
62

query I rowsort
SELECT DISTINCT cor0.col1 * cor0.col2 + + 12 FROM tab1 AS cor0
----
1260
1416
582

query I rowsort
SELECT ALL + col2 * cor0.col0 + + col1 * col0 FROM tab1 AS cor0
----
240
4288
8720

query I rowsort
SELECT col2 + + ( col1 ) * col2 FROM tab0 cor0
----
2871
7544
98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5416
SELECT ALL + col0 + CAST( NULL AS SIGNED ) * + col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5416
SELECT ALL + col0 + CAST ( NULL AS INTEGER ) * + col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + cor0.col0 + + col1 AS col0 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT col2 + + col0 * - 98 * + col1 FROM tab0 cor0
----
-202239
-332709
-793620

query I rowsort
SELECT col2 + + col0 * + col2 * cor0.col2 FROM tab0 AS cor0
----
26169
36
598518

query I rowsort
SELECT ALL + - col1 + + col1 * + cor0.col0 AS col0 FROM tab0 AS cor0
----
1978
3298
8008

query I rowsort
SELECT DISTINCT col1 * - ( + col2 ) AS col1 FROM tab1 AS cor0
----
-1248
-1404
-570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 + + col1 col0 FROM tab0 AS cor0
----
110
132
180

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5423
SELECT + - CAST( col1 AS SIGNED ) * - col2 FROM tab0 AS cor0
----
2838
7462
97

skipif mysql # not compatible
query I rowsort label-5423
SELECT + - CAST ( col1 AS INTEGER ) * - col2 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT - + 26 + - 62 * - col1 FROM tab2 AS cor0
----
1028
1896
3632

query I rowsort
SELECT DISTINCT - + 94 * cor0.col2 * col2 + + col2 * col0 AS col1 FROM tab1 AS cor0
----
-273942
-301758
-858624

query I rowsort
SELECT col0 * + ( 83 ) FROM tab1
----
249
5312
6640

query I rowsort
SELECT col0 * - col1 + + col2 FROM tab0 AS cor0
----
-2031
-3394
-8017

query I rowsort
SELECT + + col2 + ( cor0.col0 ) FROM tab1 AS cor0
----
121
176
57

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5429
SELECT - - col2 * - CAST( NULL AS SIGNED ) + col1 * col0 * + col1 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5429
SELECT - - col2 * - CAST ( NULL AS INTEGER ) + col1 * col0 * + col1 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5430
SELECT - col1 * col0 + + col1 DIV + col2 AS col1 FROM tab0 AS cor0
----
-2062
-3298
-8098

skipif mysql # not compatible
query I rowsort label-5430
SELECT - col1 * col0 + + col1 / + col2 AS col1 FROM tab0 AS cor0
----
-2062
-3298
-8098

query I rowsort
SELECT DISTINCT + - cor0.col1 + + 72 AS col1 FROM tab0 AS cor0
----
-14
-19
-25

query I rowsort
SELECT + 1 + - col1 FROM tab2 AS cor0
----
-16
-30
-58

query I rowsort
SELECT 2 * + col1 AS col0 FROM tab1 cor0
----
20
26
52

query I rowsort
SELECT DISTINCT ( + 13 ) AS col2 FROM tab0
----
13

query I rowsort
SELECT 11 + col0 * - col1 + 31 AS col0 FROM tab1
----
-36
-598
-998

query I rowsort
SELECT + col0 - 27 FROM tab0 AS cor0
----
-3
62
8

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5437
SELECT + col2 - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5437
SELECT + col2 - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5438
SELECT ALL - col0 DIV + ( col2 ) + - cor0.col2 - ( + 65 + col1 ) * - 20 AS col2 FROM tab1 AS cor0
----
1442
1464
1766

skipif mysql # not compatible
query I rowsort label-5438
SELECT ALL - col0 / + ( col2 ) + - cor0.col2 - ( + 65 + col1 ) * - 20 AS col2 FROM tab1 AS cor0
----
1442
1464
1766

query I rowsort
SELECT ALL col2 - 33 FROM tab2 AS cor0
----
-6
-7
5

onlyif mysql # use DIV operator for integer division
query I rowsort label-5440
SELECT - + col0 DIV 3 AS col0 FROM tab1 AS cor0
----
-1
-21
-26

skipif mysql # not compatible
query I rowsort label-5440
SELECT - + col0 / 3 AS col0 FROM tab1 AS cor0
----
-1
-21
-26

query I rowsort
SELECT ALL ( + col1 + 50 ) FROM tab1
----
60
63
76

query I rowsort
SELECT col1 + - col0 * + col1 AS col1 FROM tab2
----
-1326
-186
-4543

query I rowsort
SELECT ALL + tab0.col1 * + tab0.col0 AS col2 FROM tab0
----
2064
3395
8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col1 col0 FROM tab1, tab2 cor0, tab2 AS cor1
----
17
31
59

query I rowsort
SELECT DISTINCT - col0 * - tab2.col1 * + 56 - col1 AS col1 FROM tab2
----
12121
257653
75191

onlyif mysql # use DIV operator for integer division
query I rowsort label-5446
SELECT ALL ( col2 ) DIV + col0 FROM tab2 AS cor0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-5446
SELECT ALL ( col2 ) / + col0 FROM tab2 AS cor0
----
0
0
3

query I rowsort
SELECT + col2 * - col0 * + col0 + - col1 AS col2 FROM tab2 AS cor0
----
-1354
-158243
-237175

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5448
SELECT + CAST( 80 AS SIGNED ) FROM tab0 AS cor0
----
80
80
80

skipif mysql # not compatible
query I rowsort label-5448
SELECT + CAST ( 80 AS INTEGER ) FROM tab0 AS cor0
----
80
80
80

query I rowsort
SELECT - 22 FROM tab2, tab0, tab2 AS cor0, tab1
----
81 values hashing to a0e2414933a8871692e3623f463e9d4b

query I rowsort
SELECT DISTINCT - 97 * col2 * - 33 FROM tab0
----
105633
262482
3201

query I rowsort
SELECT DISTINCT - cor1.col1 FROM tab0, tab1 AS cor0, tab1, tab1 AS cor1
----
-10
-13
-26

onlyif mysql # use DIV operator for integer division
query I rowsort label-5452
SELECT - col0 DIV - col2 + - col1 AS col0 FROM tab0
----
-62
-86
-90

skipif mysql # not compatible
query I rowsort label-5452
SELECT - col0 / - col2 + - col1 AS col0 FROM tab0
----
-62
-86
-90

query I rowsort
SELECT ALL - 94 * + col0 FROM tab1 AS cor0
----
-282
-6016
-7520

query I rowsort
SELECT + + 43 + col2 * - col2 AS col1 FROM tab1 cor0
----
-2873
-3206
-9173

onlyif mysql # use DIV operator for integer division
query I rowsort label-5455
SELECT 79 DIV - col0 FROM tab0 AS cor0
----
-2
-3
0

skipif mysql # not compatible
query I rowsort label-5455
SELECT 79 / - col0 FROM tab0 AS cor0
----
-2
-3
0

query I rowsort
SELECT ALL - col1 * col1 * col1 + col2 AS col1 FROM tab1 AS cor0
----
-17522
-2101
-943

query I rowsort
SELECT + 38 * col0 AS col2 FROM tab1 AS cor0
----
114
2432
3040

query I rowsort
SELECT - col2 + - col1 * + ( col1 ) AS col2 FROM tab1 AS cor0
----
-157
-265
-730

onlyif mysql # use DIV operator for integer division
query I rowsort label-5459
SELECT - + 52 + + col1 DIV col1 AS col0 FROM tab0 AS cor0
----
-51
-51
-51

skipif mysql # not compatible
query I rowsort label-5459
SELECT - + 52 + + col1 / col1 AS col0 FROM tab0 AS cor0
----
-51
-51
-51

query I rowsort
SELECT + 69 * col1 FROM tab1 AS cor0
----
1794
690
897

query I rowsort
SELECT DISTINCT 19 * - col0 + col1 FROM tab0 AS cor0
----
-1600
-370
-568

query I rowsort
SELECT DISTINCT + - 85 + - ( - col0 + cor0.col0 ) FROM tab2 AS cor0
----
-85

query I rowsort
SELECT + - cor0.col0 * - cor0.col1 AS col0 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT ALL - - cor0.col0 * - col2 - col1 AS col1 FROM tab1 AS cor0
----
-188
-3658
-7693

query I rowsort
SELECT DISTINCT - + 71 - col0 AS col2 FROM tab0 AS cor0
----
-106
-160
-95

query I rowsort
SELECT ALL cor0.col2 * col0 + - col0 FROM tab0 cor0
----
0
7209
768

query I rowsort
SELECT ALL + col0 * + ( + col2 ) + col1 AS col1 FROM tab2 AS cor0
----
2087
220
3019

query I rowsort
SELECT ALL + - col2 - + col1 AS col2 FROM tab1 AS cor0
----
-109
-67
-80

query I rowsort
SELECT + - cor0.col0 + + 56 FROM tab2 AS cor0
----
-22
-23
49

query I rowsort
SELECT ALL - cor0.col2 * - col2 AS col1 FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT ( + col2 ) - col1 FROM tab0 cor0
----
-53
-9
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-5472
SELECT - 72 DIV col2 - + 80 * - col1 FROM tab0 AS cor0
----
6878
7280
7688

skipif mysql # not compatible
query I rowsort label-5472
SELECT - 72 / col2 - + 80 * - col1 FROM tab0 AS cor0
----
6878
7280
7688

onlyif mysql # use DIV operator for integer division
query I rowsort label-5473
SELECT - col1 + col1 DIV ( col1 ) FROM tab1 cor0
----
-12
-25
-9

skipif mysql # not compatible
query I rowsort label-5473
SELECT - col1 + col1 / ( col1 ) FROM tab1 cor0
----
-12
-25
-9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5474
SELECT - col1 + - col2 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5474
SELECT - col1 + - 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 ALL - + col1 * col1 + col0 + col0 col0 FROM tab1 AS cor0
----
-670
-9
28

query I rowsort
SELECT DISTINCT - col1 * col2 + - 25 AS col0 FROM tab1 AS cor0
----
-1273
-1429
-595

query I rowsort
SELECT + 38 - + col0 AS col0 FROM tab0 cor0
----
-51
14
3

query I rowsort
SELECT ALL - col0 * col2 - col2 FROM tab0 AS cor0
----
-36
-7380
-825

query I rowsort
SELECT - col2 * + col0 + ( + col1 ) FROM tab2 AS cor0
----
-158
-1969
-2985

query I rowsort
SELECT + 28 - - col2 AS col2 FROM tab1 AS cor0
----
124
82
85

query I rowsort
SELECT DISTINCT - col0 + + col1 * col0 AS col0 FROM tab0 cor0
----
2040
3360
8010

onlyif mysql # use DIV operator for integer division
query I rowsort label-5482
SELECT DISTINCT 6 + cor0.col1 * 24 + ( + col2 ) DIV - ( + 46 ) col1 FROM tab1 cor0
----
245
316
629

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5482
SELECT DISTINCT 6 + cor0.col1 * 24 + ( + col2 ) / - ( + 46 ) col1 FROM tab1 cor0
----
245
316
629

query I rowsort
SELECT ALL 32 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to d30a2acbf33c88274474306936d3227b

query I rowsort
SELECT col0 + + 43 FROM tab0
----
132
67
78

query I rowsort
SELECT col1 + ( col2 ) AS col2 FROM tab2 cor0
----
55
58
85

query I rowsort
SELECT ALL - + col0 * - col0 + col0 AS col1 FROM tab0 AS cor0
----
1260
600
8010

query I rowsort
SELECT DISTINCT - cor0.col1 * 46 * - col1 - - col2 FROM tab1 AS cor0
----
31150
4657
7870

query I rowsort
SELECT DISTINCT col2 - - ( 88 + cor0.col2 ) * col2 FROM tab1 AS cor0
----
17760
7722
8322

query I rowsort
SELECT + - col1 + 59 AS col0 FROM tab2 cor0
----
0
28
42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 + - col1 col0 FROM tab2 AS cor0
----
-118
-34
-62

query I rowsort
SELECT ALL - col0 + ( - col1 ) AS col0 FROM tab0 AS cor0
----
-110
-132
-180

query I rowsort
SELECT + cor0.col2 + 51 * + 94 + - col2 FROM tab2 AS cor0
----
4794
4794
4794

query I rowsort
SELECT DISTINCT - col2 * 34 AS col0 FROM tab0 AS cor0
----
-1122
-2788
-34

onlyif mysql # use DIV operator for integer division
query I rowsort label-5494
SELECT ALL + + col1 DIV - col0 col0 FROM tab2 cor0
----
-4
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5494
SELECT ALL + + col1 / - col0 col0 FROM tab2 cor0
----
-4
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + cor0.col0 * + col2 + + col2 col1 FROM tab2 AS cor0
----
119678
51072
5886

query I rowsort
SELECT - + col1 * - 39 FROM tab1 AS cor0
----
1014
390
507

query I rowsort
SELECT ALL + col1 * - 42 AS col2 FROM tab1 AS cor0
----
-1092
-420
-546

query I rowsort
SELECT + 28 * - col0 * col2 AS col1 FROM tab1 AS cor0
----
-102144
-215040
-4536

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5499
SELECT col1 + + CAST( NULL AS SIGNED ) * tab2.col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5499
SELECT col1 + + CAST ( NULL AS INTEGER ) * tab2.col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 * col1 + col0 AS col2 FROM tab0 AS cor0
----
-7372
-8192
-9374

query I rowsort
SELECT ( col1 ) * - col0 + cor0.col2 FROM tab0 AS cor0
----
-2031
-3394
-8017

query I rowsort
SELECT ( + col2 ) * - col1 AS col0 FROM tab2 cor0
----
-1534
-646
-837

query I rowsort
SELECT - - 91 + + col1 * col1 FROM tab0 AS cor0
----
7487
8372
9500

query I rowsort
SELECT col1 * 28 + col0 AS col0 FROM tab2
----
1730
555
875

query I rowsort
SELECT col1 + + col0 * + col0 * + col1 FROM tab1
----
260
40970
83213

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + col0 ) + + col0 col1 FROM tab2 AS cor0
----
0
0
0

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 AS cor0 CROSS JOIN tab2, tab2 cor1, tab2 AS cor2
----
3645 values hashing to c04c36412775e8805d6b3befa2f52917

query I rowsort
SELECT + - ( + 52 ) AS col2 FROM tab2 AS cor0
----
-52
-52
-52

query I rowsort
SELECT col1 * 43 FROM tab2 AS cor0
----
1333
2537
731

query I rowsort
SELECT DISTINCT + 6 + - 40 FROM tab2 AS cor0
----
-34

query I rowsort
SELECT ALL - col2 + col0 + + ( col1 ) FROM tab0
----
131
77
98

query I rowsort
SELECT DISTINCT cor0.col1 * - cor0.col1 * - 56 AS col2 FROM tab0, tab0 cor0
----
414176
463736
526904

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5513
SELECT ALL + cor0.col1 + - col1 * CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5513
SELECT ALL + cor0.col1 + - col1 * CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 56 + + cor0.col2 * col0 + - col0 * cor0.col0 AS col1 FROM tab0 AS cor0
----
-1134
-567
272

query I rowsort
SELECT - + 23 - + col2 FROM tab2 cor0
----
-49
-50
-61

query I rowsort
SELECT + 74 FROM tab0, tab0 AS cor0, tab1 cor1
----
27 values hashing to dc22979e6d261795bd3ce2990fdbbf82

query I rowsort
SELECT - col0 * 28 AS col0 FROM tab1
----
-1792
-2240
-84

query I rowsort
SELECT - + col0 + 59 AS col0 FROM tab1 AS cor0
----
-21
-5
56

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5519
SELECT cor0.col2 * - CAST( NULL AS SIGNED ) AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5519
SELECT cor0.col2 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5520
SELECT 53 DIV cor0.col0 FROM tab2 AS cor0
----
0
0
7

skipif mysql # not compatible
query I rowsort label-5520
SELECT 53 / cor0.col0 FROM tab2 AS cor0
----
0
0
7

query I rowsort
SELECT DISTINCT - tab1.col1 * tab1.col2 FROM tab1
----
-1248
-1404
-570

query I rowsort
SELECT DISTINCT + + 8 AS col1 FROM tab0 AS cor0
----
8

query I rowsort
SELECT + col1 + + cor0.col1 * col2 FROM tab0 AS cor0
----
194
2924
7553

onlyif mysql # use DIV operator for integer division
query I rowsort label-5524
SELECT DISTINCT + col1 * col1 DIV - col1 AS col2 FROM tab0 AS cor0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-5524
SELECT DISTINCT + col1 * col1 / - col1 AS col2 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT DISTINCT - ( + col2 ) * + col1 FROM tab2
----
-1534
-646
-837

query I rowsort
SELECT DISTINCT + 21 * ( col1 ) FROM tab1
----
210
273
546

query I rowsort
SELECT + - 19 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 339c9d62143bf2f7566b89a1b56eeeb4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 68 + tab2.col0 - ( + col1 ) * + col2 * 84 col1 FROM tab2
----
-128846
-54253
-70369

onlyif mysql # use DIV operator for integer division
query I rowsort label-5529
SELECT 63 DIV col1 AS col1 FROM tab1
----
2
4
6

skipif mysql # not compatible
query I rowsort label-5529
SELECT 63 / col1 AS col1 FROM tab1
----
2
4
6

query I rowsort
SELECT + col0 + - col0 * col1 AS col0 FROM tab2 AS cor0
----
-1264
-210
-4524

onlyif mysql # use DIV operator for integer division
query I rowsort label-5531
SELECT ALL ( col0 ) + col1 DIV + 62 AS col0 FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-5531
SELECT ALL ( col0 ) + col1 / + 62 AS col0 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT - + col2 - col1 FROM tab2 cor0
----
-55
-58
-85

query I rowsort
SELECT 91 - col1 FROM tab1 AS cor0
----
65
78
81

query I rowsort
SELECT + + col1 * 28 + col2 FROM tab1 AS cor0
----
337
460
782

query I rowsort
SELECT ( - ( col2 ) ) FROM tab2 cor0
----
-26
-27
-38

query I rowsort
SELECT cor1.col2 AS col1 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5537
SELECT + CAST( NULL AS SIGNED ) col1 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5537
SELECT + CAST ( NULL AS INTEGER ) col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5538
SELECT - col2 + - col2 DIV col0 AS col2 FROM tab2 AS cor0
----
-26
-30
-38

skipif mysql # not compatible
query I rowsort label-5538
SELECT - col2 + - col2 / col0 AS col2 FROM tab2 AS cor0
----
-26
-30
-38

onlyif mysql # use DIV operator for integer division
query I rowsort label-5539
SELECT + - CAST( col0 AS SIGNED ) DIV col1 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5539
SELECT + - CAST ( col0 AS INTEGER ) / col1 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT - col1 * - 63 FROM tab2 AS cor0
----
1071
1953
3717

query I rowsort
SELECT DISTINCT - 54 * 34 AS col1 FROM tab2 AS cor0
----
-1836

query I rowsort
SELECT cor0.col2 * + 97 FROM tab0 AS cor0
----
3201
7954
97

query I rowsort
SELECT - + ( 61 ) * - col1 AS col1 FROM tab1 AS cor0
----
1586
610
793

query I rowsort
SELECT ALL ( - cor0.col1 ) * cor0.col0 FROM tab2, tab2 AS cor0, tab1, tab1 AS cor1
----
81 values hashing to 44803491445e7acb86e6f357a2a9151b

query I rowsort
SELECT ALL - + ( - cor0.col0 ) AS col2 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT ALL + - cor0.col0 + 74 FROM tab0 AS cor0
----
-15
39
50

query I rowsort
SELECT DISTINCT - - col0 * + col0 + col0 + col1 AS col0 FROM tab2 AS cor0
----
6221
6337
87

query I rowsort
SELECT ALL + ( col1 ) + col1 AS col2 FROM tab0 AS cor0
----
172
182
194

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col2 ) * + col2 col0 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT ALL - - col2 + 8 + - col2 AS col0 FROM tab1 AS cor0
----
8
8
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - ( - ( + col0 ) ) * 15 + + col0 * + col2 col1 FROM tab2 AS cor0
----
294
3198
4187

query I rowsort
SELECT 72 * - col2 + col2 AS col2 FROM tab1 AS cor0
----
-3834
-4047
-6816

query I rowsort
SELECT DISTINCT 17 * + col0 + col2 * + col2 AS col2 FROM tab1 AS cor0
----
10576
2967
4337

query I rowsort
SELECT ALL + cor0.col2 + col1 * + ( col2 ) * + col1 AS col0 FROM tab2 AS cor0
----
11020
25974
90532

query I rowsort
SELECT ALL col0 * col1 + 73 FROM tab1 AS cor0
----
1113
151
713

onlyif mysql # use DIV operator for integer division
query I rowsort label-5556
SELECT ALL + col1 * cor0.col0 DIV - col0 AS col1 FROM tab0 AS cor0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-5556
SELECT ALL + col1 * cor0.col0 / - col0 AS col1 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT DISTINCT col2 + - 41 * col2 FROM tab0 AS cor0
----
-1320
-3280
-40

query I rowsort
SELECT - col2 + ( col2 ) FROM tab1 cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5559
SELECT - col2 * + CAST( col2 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-2916
-3249
-9216

skipif mysql # not compatible
query I rowsort label-5559
SELECT - col2 * + CAST ( col2 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-2916
-3249
-9216

query I rowsort
SELECT DISTINCT cor0.col1 * col1 + + 30 FROM tab1 AS cor0
----
130
199
706

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5561
SELECT DISTINCT - cor0.col2 / - CAST( NULL AS SIGNED ) col2 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5561
SELECT DISTINCT - cor0.col2 / - CAST ( NULL AS INTEGER ) col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL col0 * 80 + col0 FROM tab2 AS cor0
----
567
6318
6399

onlyif mysql # use DIV operator for integer division
query I rowsort label-5563
SELECT ALL col0 DIV - 32 + col2 * tab1.col0 FROM tab1
----
162
3646
7678

skipif mysql # not compatible
query I rowsort label-5563
SELECT ALL col0 / - 32 + col2 * tab1.col0 FROM tab1
----
162
3646
7678

query I rowsort
SELECT DISTINCT - - col1 + - col1 * - col0 FROM tab2 AS cor0
----
1360
248
4661

query I rowsort
SELECT ALL 43 * + col0 + cor0.col1 - + col1 AS col0 FROM tab1 AS cor0
----
129
2752
3440

query I rowsort
SELECT ( 38 ) * + col2 + ( 39 ) FROM tab0 AS cor0
----
1293
3155
77

onlyif mysql # use DIV operator for integer division
query I rowsort label-5567
SELECT DISTINCT col1 DIV + col1 + cor0.col0 + - col2 * - col1 FROM tab2 AS cor0
----
1613
726
845

skipif mysql # not compatible
query I rowsort label-5567
SELECT DISTINCT col1 / + col1 + cor0.col0 + - col2 * - col1 FROM tab2 AS cor0
----
1613
726
845

query I rowsort
SELECT col1 * + ( 68 * col2 + - ( col2 ) * col0 ) FROM tab1
----
-14976
2280
91260

query I rowsort
SELECT DISTINCT + col2 * 7 + + col0 FROM tab2
----
196
260
345

query I rowsort
SELECT DISTINCT + + 23 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
23

query I rowsort
SELECT + + cor0.col2 * col1 + - col1 * col1 FROM tab2 AS cor0
----
-124
-1947
357

onlyif mysql # use DIV operator for integer division
query I rowsort label-5572
SELECT DISTINCT - + col2 * col0 DIV + col0 AS col0 FROM tab0 AS cor0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-5572
SELECT DISTINCT - + col2 * col0 / + col0 AS col0 FROM tab0 AS cor0
----
-1
-33
-82

onlyif mysql # use DIV operator for integer division
query I rowsort label-5573
SELECT 16 * col0 + col2 DIV + tab1.col1 AS col1 FROM tab1
----
1029
1287
50

skipif mysql # not compatible
query I rowsort label-5573
SELECT 16 * col0 + col2 / + tab1.col1 AS col1 FROM tab1
----
1029
1287
50

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5574
SELECT ALL + col0 * CAST( + 59 AS SIGNED ) + col1 + col1 col1 FROM tab2 cor0
----
4695
4720
475

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5574
SELECT ALL + col0 * CAST ( + 59 AS INTEGER ) + col1 + col1 col1 FROM tab2 cor0
----
4695
4720
475

query I rowsort
SELECT - ( - tab0.col0 + tab0.col1 ) * 50 AS col2 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 7aa06898a4670ac1a0ab257b7f7ac669

query I rowsort
SELECT + tab2.col2 - tab2.col2 AS col1 FROM tab2, tab1 cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT DISTINCT col2 * - 46 - + col2 * cor0.col2 FROM tab0 AS cor0
----
-10496
-2607
-47

query I rowsort
SELECT DISTINCT cor0.col1 + 98 FROM tab2 AS cor0
----
115
129
157

query I rowsort
SELECT - - col2 * 42 FROM tab1 AS cor0
----
2268
2394
4032

query I rowsort
SELECT DISTINCT col2 * + ( col0 * - col1 ) AS col0 FROM tab0 AS cor0
----
-3395
-664118
-68112

query I rowsort
SELECT DISTINCT 64 + + ( + col1 ) AS col0 FROM tab0
----
150
155
161

query I rowsort
SELECT 5 + col1 + tab0.col2 * + ( col2 ) * col0 AS col0 FROM tab0
----
137
26227
598532

query I rowsort
SELECT + col1 * + 46 + tab1.col2 + + ( + col2 ) AS col1 FROM tab1
----
1304
574
790

query I rowsort
SELECT 57 + + col1 AS col2 FROM tab2
----
116
74
88

query I rowsort
SELECT 30 * col2 + - col1 * + ( + cor0.col0 ) - col1 FROM tab2 AS cor0
----
-220
-3881
562

query I rowsort
SELECT + - ( col1 ) + cor0.col2 AS col1 FROM tab1 cor0
----
28
47
83

query I rowsort
SELECT ALL + col1 * + 81 FROM tab2 AS cor0
----
1377
2511
4779

query I rowsort
SELECT + + col2 * + col0 + col2 FROM tab0 AS cor0
----
36
7380
825

onlyif mysql # use DIV operator for integer division
query I rowsort label-5589
SELECT DISTINCT - 21 DIV cor0.col0 + 31 FROM tab2 AS cor0
----
28
31

skipif mysql # not compatible
query I rowsort label-5589
SELECT DISTINCT - 21 / cor0.col0 + 31 FROM tab2 AS cor0
----
28
31

query I rowsort
SELECT ALL col0 + cor0.col0 * col1 AS col1 FROM tab0 cor0
----
2088
3430
8188

query I rowsort
SELECT 60 + + col1 AS col2 FROM tab2 AS cor0
----
119
77
91

query I rowsort
SELECT DISTINCT + + 20 * col2 + - col2 * col2 FROM tab1 AS cor0
----
-1836
-2109
-7296

query I rowsort
SELECT DISTINCT - tab1.col1 + ( + tab1.col2 ) FROM tab1
----
28
47
83

query I rowsort
SELECT + col2 * - 53 FROM tab2
----
-1378
-1431
-2014

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5595
SELECT - col2 + - col1 * CAST( NULL AS SIGNED ) / 50 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5595
SELECT - col2 + - col1 * CAST ( NULL AS INTEGER ) / 50 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 - - col2 * col2 AS col2 FROM tab2 AS cor0
----
1482
702
756

query I rowsort
SELECT + - 48 FROM tab1, tab2 AS cor0
----
9 values hashing to 31c94943c073954e4ca20b170ab61f8c

onlyif mysql # use DIV operator for integer division
query I rowsort label-5598
SELECT - + 44 DIV - col2 + 18 AS col2 FROM tab1 AS cor0
----
18
18
18

skipif mysql # not compatible
query I rowsort label-5598
SELECT - + 44 / - col2 + 18 AS col2 FROM tab1 AS cor0
----
18
18
18

query I rowsort
SELECT col1 * + 74 + - col1 FROM tab0 AS cor0
----
6278
6643
7081

onlyif mysql # use DIV operator for integer division
query I rowsort label-5600
SELECT + col0 DIV + cor0.col0 + 6 FROM tab1 AS cor0
----
7
7
7

skipif mysql # not compatible
query I rowsort label-5600
SELECT + col0 / + cor0.col0 + 6 FROM tab1 AS cor0
----
7
7
7

query I rowsort
SELECT DISTINCT + + 55 FROM tab2, tab0, tab2 AS cor0
----
55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 11 col1 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 69116737f3f57e2e3273f6dbb04d036c

query I rowsort
SELECT ALL cor0.col2 + - 49 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to bb69d5e92066f02a0f4bd798293cd2ab

query I rowsort
SELECT - col0 + 68 * col0 FROM tab2 AS cor0
----
469
5226
5293

query I rowsort
SELECT - + col2 * col2 * - col1 FROM tab0 AS cor0
----
611884
93654
97

query I rowsort
SELECT ALL col1 * - 58 + + col1 AS col1 FROM tab0
----
-4902
-5187
-5529

query I rowsort
SELECT ALL cor0.col2 FROM tab2, tab2 AS cor0 CROSS JOIN tab0, tab2 AS cor1
----
81 values hashing to c4e6b1f1d28e731664a15a6f7cda4da9

query I rowsort
SELECT ALL - col2 * ( col0 ) + + 25 * + 52 FROM tab0
----
-5998
1265
508

query I rowsort
SELECT ALL + + cor0.col1 * 11 FROM tab1 AS cor0
----
110
143
286

query I rowsort
SELECT DISTINCT 29 + col0 FROM tab2 AS cor0
----
107
108
36

query I rowsort
SELECT ALL col2 + + col1 - - col2 FROM tab1 AS cor0
----
124
134
205

onlyif mysql # use DIV operator for integer division
query I rowsort label-5612
SELECT ALL - col0 * - col1 - - col2 DIV CAST( cor0.col1 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
2064
3395
8099

skipif mysql # not compatible
query I rowsort label-5612
SELECT ALL - col0 * - col1 - - col2 / CAST ( cor0.col1 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT ALL + col2 * cor0.col0 + col0 AS col0 FROM tab0 AS cor0
----
70
7387
816

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 98 col1 FROM tab0, tab1 AS cor0 CROSS JOIN tab2
----
27 values hashing to c758e8afbdfa6aae279045b0e9cbacc2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - 91 col2 FROM tab0 AS cor0
----
-2184
-3185
-8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-5616
SELECT tab2.col0 DIV 56 FROM tab2, tab2 AS cor0
----
9 values hashing to 43a387ef4ba85927dc3d9d573afc12c9

skipif mysql # not compatible
query I rowsort label-5616
SELECT tab2.col0 / 56 FROM tab2, tab2 AS cor0
----
9 values hashing to 43a387ef4ba85927dc3d9d573afc12c9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 89 col2 FROM tab1
----
89
89
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-5618
SELECT ALL + col0 DIV col1 col1 FROM tab2 cor0
----
0
1
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5618
SELECT ALL + col0 / col1 col1 FROM tab2 cor0
----
0
1
4

query I rowsort
SELECT DISTINCT + + cor0.col1 * 23 + col2 FROM tab2 AS cor0
----
1383
429
740

query I rowsort
SELECT ALL - - cor0.col0 * col0 AS col2 FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT DISTINCT cor0.col0 - - col2 * - col2 FROM tab0 AS cor0
----
-1065
-6635
34

query I rowsort
SELECT ALL + cor0.col0 * - 1 AS col0 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT DISTINCT + 14 * - col1 AS col0 FROM tab0
----
-1204
-1274
-1358

query I rowsort
SELECT DISTINCT + ( col1 ) - + col2 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT ALL col1 * col2 + col1 * ( ( col0 ) ) AS col2 FROM tab0 AS cor0
----
15561
3492
4902

onlyif mysql # use DIV operator for integer division
query I rowsort label-5626
SELECT + tab0.col2 * col1 DIV - col2 + + col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5626
SELECT + tab0.col2 * col1 / - col2 + + col1 FROM tab0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5627
SELECT - col0 * CAST( NULL AS SIGNED ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5627
SELECT - col0 * CAST ( NULL AS INTEGER ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 * cor0.col2 + 4 AS col0 FROM tab0 AS cor0
----
-2834
-7458
-93

query I rowsort
SELECT + - col1 + 24 AS col0 FROM tab2 AS cor0
----
-35
-7
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-5630
SELECT tab0.col0 + + CAST( col1 AS SIGNED ) DIV - tab0.col1 FROM tab0
----
23
34
88

skipif mysql # not compatible
query I rowsort label-5630
SELECT tab0.col0 + + CAST ( col1 AS INTEGER ) / - tab0.col1 FROM tab0
----
23
34
88

query I rowsort
SELECT DISTINCT + col0 * + col0 * + col2 AS col1 FROM tab2
----
1323
158184
237158

query I rowsort
SELECT - col1 + + cor0.col1 AS col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5633
SELECT + col2 + col2 * CAST( NULL AS DECIMAL ) + ( + cor0.col0 ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5633
SELECT + col2 + col2 * CAST ( NULL AS REAL ) + ( + cor0.col0 ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 * cor0.col0 * col0 + 93 + cor0.col1 * cor0.col0 FROM tab0 AS cor0
----
-16851
-641330
2263

query I rowsort
SELECT ALL + cor1.col2 + cor1.col2 FROM tab2, tab2 AS cor0 CROSS JOIN tab0, tab0 cor1
----
81 values hashing to c5ee158212d3716cb2afae9c90e9dbb6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 18 - - col0 * + 5 col0 FROM tab2
----
17
372
377

onlyif mysql # use DIV operator for integer division
query I rowsort label-5637
SELECT ( - col1 ) DIV col1 + col2 col0 FROM tab0
----
0
32
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5637
SELECT ( - col1 ) / col1 + col2 col0 FROM tab0
----
0
32
81

query I rowsort
SELECT - + 27 + col2 AS col1 FROM tab0 cor0
----
-26
55
6

query I rowsort
SELECT ALL - 10 + + tab2.col2 AS col1 FROM tab2
----
16
17
28

query I rowsort
SELECT ALL + col2 * - tab1.col2 + col0 FROM tab1
----
-2913
-3185
-9136

query I rowsort
SELECT 27 + col0 * 61 * tab0.col2 FROM tab0
----
2162
445205
48339

onlyif mysql # use DIV operator for integer division
query I rowsort label-5642
SELECT DISTINCT - + col1 DIV ( col1 ) + + cor0.col2 FROM tab0 AS cor0
----
0
32
81

skipif mysql # not compatible
query I rowsort label-5642
SELECT DISTINCT - + col1 / ( col1 ) + + cor0.col2 FROM tab0 AS cor0
----
0
32
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-5643
SELECT ALL col0 DIV ( - col0 ) col2 FROM tab2
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5643
SELECT ALL col0 / ( - col0 ) col2 FROM tab2
----
-1
-1
-1

query I rowsort
SELECT ALL col1 * col2 + cor0.col1 * + col0 AS col2 FROM tab2 AS cor0
----
1054
1989
6136

query I rowsort
SELECT ALL + - col1 * 2 * - col2 + col1 AS col2 FROM tab1 AS cor0
----
1150
2509
2834

query I rowsort
SELECT + + col0 + 87 * + col2 AS col1 FROM tab1 cor0
----
4701
5023
8432

query I rowsort
SELECT - col0 + + col0 * - col1 AS col1 FROM tab2 AS cor0
----
-1422
-224
-4680

onlyif mysql # use DIV operator for integer division
query I rowsort label-5648
SELECT + col1 DIV 5 + col1 + col0 AS col2 FROM tab0
----
127
151
198

skipif mysql # not compatible
query I rowsort label-5648
SELECT + col1 / 5 + col1 + col0 AS col2 FROM tab0
----
127
151
198

query I rowsort
SELECT DISTINCT - + cor0.col0 * 18 FROM tab2, tab2 AS cor0
----
-126
-1404
-1422

query I rowsort
SELECT + col1 + col2 - col2 AS col0 FROM tab1
----
10
13
26

query I rowsort
SELECT DISTINCT + 91 - - col1 AS col2 FROM tab2
----
108
122
150

query I rowsort
SELECT - 35 + col0 * col1 FROM tab0 AS cor0
----
2029
3360
8064

query I rowsort
SELECT ALL - col0 - - 9 FROM tab0 AS cor0
----
-15
-26
-80

query I rowsort
SELECT ALL - 71 + col0 AS col2 FROM tab0 AS cor0
----
-36
-47
18

query I rowsort
SELECT DISTINCT - col0 * col0 + + ( col2 + + col2 * - col0 ) FROM tab0 AS cor0
----
-1259
-1335
-15137

query I rowsort
SELECT DISTINCT - + cor0.col1 + - cor0.col1 - 25 * col1 AS col2 FROM tab2 AS cor0
----
-1593
-459
-837

query I rowsort
SELECT + col1 + cor0.col1 * - 22 FROM tab1 AS cor0
----
-210
-273
-546

onlyif mysql # use DIV operator for integer division
query I rowsort label-5658
SELECT - - cor0.col2 DIV cor0.col1 FROM tab1 AS cor0
----
2
5
7

skipif mysql # not compatible
query I rowsort label-5658
SELECT - - cor0.col2 / cor0.col1 FROM tab1 AS cor0
----
2
5
7

query I rowsort
SELECT - 76 + col0 * col1 * col2 + + col1 FROM tab2 AS cor0
----
119635
50975
5814

query I rowsort
SELECT ALL - 52 + - col0 * - col2 * - col2 AS col1 FROM tab1 AS cor0
----
-207988
-737332
-8800

query I rowsort
SELECT DISTINCT - + col2 * col0 + + col2 * + col0 + col1 AS col0 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT DISTINCT - 89 + - col2 * - col2 * col1 + - col2 AS col2 FROM tab1 AS cor0
----
119623
32344
75673

query I rowsort
SELECT + cor0.col0 * col1 + col0 AS col2 FROM tab1 AS cor0
----
1120
704
81

query I rowsort
SELECT DISTINCT + + 39 + col2 * + cor0.col1 AS col0 FROM tab1 AS cor0
----
1287
1443
609

query I rowsort
SELECT DISTINCT + 84 * col0 + 57 * 0 FROM tab0 AS cor0
----
2016
2940
7476

query I rowsort
SELECT + col1 * col0 * + col0 + + 92 * col1 FROM tab0 cor0
----
127749
57448
729183

query I rowsort
SELECT ALL col2 - + col0 * + tab2.col1 FROM tab2
----
-1305
-190
-4576

query I rowsort
SELECT ALL + tab0.col0 - 3 FROM tab0
----
21
32
86

query I rowsort
SELECT col0 + col1 * + cor0.col1 AS col2 FROM tab2 AS cor0
----
3559
368
968

query I rowsort
SELECT - - col0 + 69 FROM tab0 AS cor0
----
104
158
93

query I rowsort
SELECT - - ( col1 ) * + col0 AS col2 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT ALL col0 + 40 AS col2 FROM tab0
----
129
64
75

query I rowsort
SELECT ALL + col0 * tab1.col2 + col2 * col0 AS col2 FROM tab1
----
15360
324
7296

query I rowsort
SELECT DISTINCT - 57 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab1 AS cor2
----
-57

query I rowsort
SELECT 47 * col2 + col2 * + 62 AS col1 FROM tab0
----
109
3597
8938

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 1 col1 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT - col2 + 47 AS col2 FROM tab2 AS cor0
----
20
21
9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5678
SELECT ALL CAST( + 37 AS SIGNED ) FROM tab0
----
37
37
37

skipif mysql # not compatible
query I rowsort label-5678
SELECT ALL CAST ( + 37 AS INTEGER ) FROM tab0
----
37
37
37

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5679
SELECT 5 + col1 * CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5679
SELECT 5 + col1 * CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT col0 + + col1 - col1 * - 58 AS col2 FROM tab0
----
5098
5458
5758

query I rowsort
SELECT DISTINCT + col0 * col0 + - ( col0 ) * col1 AS col0 FROM tab2 AS cor0
----
-168
1482
4898

onlyif mysql # use DIV operator for integer division
query I rowsort label-5682
SELECT tab2.col0 + - tab2.col2 DIV 83 AS col0 FROM tab2
----
7
78
79

skipif mysql # not compatible
query I rowsort label-5682
SELECT tab2.col0 + - tab2.col2 / 83 AS col0 FROM tab2
----
7
78
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-5683
SELECT - col1 * CAST( + col2 AS SIGNED ) DIV - col1 FROM tab2 AS cor0
----
26
27
38

skipif mysql # not compatible
query I rowsort label-5683
SELECT - col1 * CAST ( + col2 AS INTEGER ) / - col1 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT ALL - col2 * ( + cor0.col0 + col2 ) FROM tab2 AS cor0
----
-2704
-4446
-918

query I rowsort
SELECT + col2 * 3 AS col2 FROM tab1 AS cor0
----
162
171
288

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5686
SELECT ALL col1 * + ( - ( col0 ) ) * - CAST( - col0 AS SIGNED ) + + cor0.col2 FROM tab2 AS cor0
----
-106059
-1492
-358930

skipif mysql # not compatible
query I rowsort label-5686
SELECT ALL col1 * + ( - ( col0 ) ) * - CAST ( - col0 AS INTEGER ) + + cor0.col2 FROM tab2 AS cor0
----
-106059
-1492
-358930

query I rowsort
SELECT - col2 * col0 + + cor0.col1 + - col1 AS col0 FROM tab1 cor0
----
-162
-3648
-7680

query I rowsort
SELECT ALL + cor0.col0 * 48 * col1 AS col2 FROM tab2 AS cor0
----
10416
220896
64464

query I rowsort
SELECT DISTINCT cor0.col0 * + ( - col0 ) AS col1 FROM tab2 cor0
----
-49
-6084
-6241

onlyif mysql # use DIV operator for integer division
query I rowsort label-5690
SELECT ALL col2 + 37 DIV + col0 AS col0 FROM tab2 AS cor0
----
26
32
38

skipif mysql # not compatible
query I rowsort label-5690
SELECT ALL col2 + 37 / + col0 AS col0 FROM tab2 AS cor0
----
26
32
38

query I rowsort
SELECT + - col1 - - ( + col1 ) AS col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT col0 + + ( + cor0.col0 ) * col2 AS col0 FROM tab1 AS cor0
----
165
3712
7760

query I rowsort
SELECT col0 * 56 FROM tab0 AS cor0
----
1344
1960
4984

query I rowsort
SELECT ALL col1 + ( 53 ) FROM tab2 AS cor0
----
112
70
84

query I rowsort
SELECT - + cor0.col0 + col2 + - col1 AS col1 FROM tab1 cor0
----
-17
25
3

query I rowsort
SELECT ALL cor0.col1 * ( + 48 ) AS col1 FROM tab0 AS cor0
----
4128
4368
4656

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * + col0 * 85 col2 FROM tab1 AS cor0
----
348160
544000
765

onlyif mysql # use DIV operator for integer division
query I rowsort label-5698
SELECT col2 DIV 49 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5698
SELECT col2 / 49 FROM tab1
----
1
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-5699
SELECT - tab1.col1 DIV 4 col2 FROM tab1
----
-2
-3
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5699
SELECT - tab1.col1 / 4 col2 FROM tab1
----
-2
-3
-6

query I rowsort
SELECT ALL col2 + 65 * + col1 FROM tab1 AS cor0
----
1744
707
941

query I rowsort
SELECT cor2.col0 FROM tab0, tab1 AS cor0, tab0 AS cor1, tab0 AS cor2
----
81 values hashing to 2304fcc140e955eb2d1ee28ab1eea994

query I rowsort
SELECT ALL col1 * + ( + 52 ) + col1 AS col1 FROM tab1 AS cor0
----
1378
530
689

query I rowsort
SELECT ALL 86 AS col2 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to ed1a39c2752ca3723602e4a92c54bbc4

query I rowsort
SELECT + - col0 + ( col0 ) * + col0 * ( - col0 ) FROM tab1 AS cor0
----
-262208
-30
-512080

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 - 55 * col2 col2 FROM tab1 cor0
----
-2973
-3199
-5360

onlyif mysql # use DIV operator for integer division
query I rowsort label-5706
SELECT col2 + + cor0.col0 + + col1 DIV CAST( - col2 * - cor0.col1 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
121
176
57

skipif mysql # not compatible
query I rowsort label-5706
SELECT col2 + + cor0.col0 + + col1 / CAST ( - col2 * - cor0.col1 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT + - 28 + + col0 AS col2 FROM tab2 AS cor0
----
-21
50
51

query I rowsort
SELECT + col2 * cor0.col2 + - col1 * + ( + col2 ) * col1 FROM tab1 AS cor0
----
-2451
-33588
-7008

query I rowsort
SELECT - col2 + 9 * col1 * cor0.col0 AS col0 FROM tab2 cor0
----
12049
1926
41392

query I rowsort
SELECT + col1 * 26 AS col1 FROM tab1
----
260
338
676

query I rowsort
SELECT - col1 + + 52 FROM tab1
----
26
39
42

query I rowsort
SELECT - col2 * + 82 + 7 + - col1 FROM tab2
----
-2184
-2238
-3126

query I rowsort
SELECT col1 * - 30 AS col0 FROM tab1
----
-300
-390
-780

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5714
SELECT + - ( - col2 ) + col1 + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5714
SELECT + - ( - col2 ) + col1 + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + cor0.col2 + cor0.col1 AS col0 FROM tab0 AS cor0
----
119
173
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 * col0 col1 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT ALL - cor0.col2 * col2 * - col1 AS col2 FROM tab2 AS cor0
----
22599
24548
39884

query I rowsort
SELECT - cor0.col1 * 20 FROM tab1, tab1 AS cor0
----
9 values hashing to 2dfb6530830a3087395abc84b941f155

query I rowsort
SELECT DISTINCT + col2 + col0 * col1 AS col1 FROM tab1 AS cor0
----
1136
132
697

onlyif mysql # use DIV operator for integer division
query I rowsort label-5720
SELECT DISTINCT - + col2 - col2 DIV 37 FROM tab2 AS cor0
----
-26
-27
-39

skipif mysql # not compatible
query I rowsort label-5720
SELECT DISTINCT - + col2 - col2 / 37 FROM tab2 AS cor0
----
-26
-27
-39

query I rowsort
SELECT ALL - 40 * - col1 FROM tab0 AS cor0
----
3440
3640
3880

query I rowsort
SELECT + col1 + + col1 * + cor0.col0 AS col2 FROM tab1 AS cor0
----
104
1053
650

query I rowsort
SELECT + - 63 + + cor0.col0 FROM tab2 AS cor0
----
-56
15
16

query I rowsort
SELECT - 42 * col0 * col2 + - col0 FROM tab0
----
-1505
-306605
-33288

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5725
SELECT DISTINCT + CAST( NULL AS DECIMAL ) * cor1.col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-5725
SELECT DISTINCT + CAST ( NULL AS REAL ) * cor1.col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 67 col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 33 * - 54 - + cor1.col0 col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to bbd14bc51e50fa4ec940d50367b605bb

query I rowsort
SELECT DISTINCT col0 * col0 * 30 + col1 FROM tab0
----
17366
237721
36847

onlyif mysql # use DIV operator for integer division
query I rowsort label-5729
SELECT col1 - + col2 DIV 50 FROM tab0
----
86
90
97

skipif mysql # not compatible
query I rowsort label-5729
SELECT col1 - + col2 / 50 FROM tab0
----
86
90
97

query I rowsort
SELECT DISTINCT 16 + + col0 * + 89 FROM tab1
----
283
5712
7136

query I rowsort
SELECT ( col1 * + tab0.col0 ) AS col0 FROM tab0
----
2064
3395
8099

query I rowsort
SELECT ( + col2 ) - + ( + tab0.col2 ) * col1 AS col0 FROM tab0
----
-2805
-7380
-96

query I rowsort
SELECT DISTINCT 24 + col2 AS col2 FROM tab2
----
50
51
62

query I rowsort
SELECT - 88 + 4 AS col2 FROM tab1, tab1 cor0
----
9 values hashing to 975e2ef2a3bf1ee2622362f4e435752f

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 76 col1 FROM tab0, tab2 cor0, tab1 AS cor1, tab2, tab0 AS cor2
----
243 values hashing to f294165bbdca42e81e61593b9cf11c78

onlyif mysql # use DIV operator for integer division
query I rowsort label-5736
SELECT + 97 * col1 + col2 DIV ( - col0 ) AS col2 FROM tab1 AS cor0
----
1260
2504
970

skipif mysql # not compatible
query I rowsort label-5736
SELECT + 97 * col1 + col2 / ( - col0 ) AS col2 FROM tab1 AS cor0
----
1260
2504
970

query I rowsort
SELECT ( - col1 ) * + col1 AS col1 FROM tab2 AS cor0
----
-289
-3481
-961

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + ( col1 ) col2 FROM tab2 cor0
----
137
38
96

query I rowsort
SELECT DISTINCT - - col2 * - col0 * col1 + cor0.col1 AS col0 FROM tab2 AS cor0
----
-119593
-51017
-5828

query I rowsort
SELECT DISTINCT + + col0 * + col1 + ( col1 ) + col1 FROM tab0 AS cor0
----
2236
3589
8281

query I rowsort
SELECT ALL - - col1 + - ( col2 ) FROM tab0 cor0
----
53
9
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + 63 col0 FROM tab2 cor0
----
32
4
46

query I rowsort
SELECT ALL col0 + 36 FROM tab0 AS cor0
----
125
60
71

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5744
SELECT DISTINCT + col0 * - CAST( col0 AS SIGNED ) + + col2 col2 FROM tab2 AS cor0
----
-22
-6058
-6203

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5744
SELECT DISTINCT + col0 * - CAST ( col0 AS INTEGER ) + + col2 col2 FROM tab2 AS cor0
----
-22
-6058
-6203

query I rowsort
SELECT ALL - + col0 * + 96 AS col0 FROM tab2 AS cor0
----
-672
-7488
-7584

query I rowsort
SELECT ALL - ( + tab2.col1 ) AS col1 FROM tab2
----
-17
-31
-59

query I rowsort
SELECT 72 * - col0 AS col2 FROM tab2
----
-504
-5616
-5688

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5748
SELECT ALL + col0 / - CAST( NULL AS DECIMAL ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5748
SELECT ALL + col0 / - CAST ( NULL AS REAL ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - 69 + 74 AS col1 FROM tab1 AS cor0
----
5
5
5

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5750
SELECT - CAST( col1 AS SIGNED ) * col0 + col2 AS col0 FROM tab2 AS cor0
----
-1305
-190
-4576

skipif mysql # not compatible
query I rowsort label-5750
SELECT - CAST ( col1 AS INTEGER ) * col0 + col2 AS col0 FROM tab2 AS cor0
----
-1305
-190
-4576

onlyif mysql # use DIV operator for integer division
query I rowsort label-5751
SELECT 75 DIV col0 + + col0 FROM tab1 AS cor0
----
28
65
80

skipif mysql # not compatible
query I rowsort label-5751
SELECT 75 / col0 + + col0 FROM tab1 AS cor0
----
28
65
80

query I rowsort
SELECT + ( + 48 ) * col0 - 46 FROM tab0 AS cor0
----
1106
1634
4226

query I rowsort
SELECT ALL ( 58 ) - col0 FROM tab1 cor0
----
-22
-6
55

onlyif mysql # use DIV operator for integer division
query I rowsort label-5754
SELECT ( + col2 ) * - col0 + 18 DIV 79 FROM tab2 cor0
----
-189
-2028
-3002

skipif mysql # not compatible
query I rowsort label-5754
SELECT ( + col2 ) * - col0 + 18 / 79 FROM tab2 cor0
----
-189
-2028
-3002

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5755
SELECT ALL + CAST( NULL AS DECIMAL ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5755
SELECT ALL + CAST ( NULL AS REAL ) FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5756
SELECT DISTINCT 54 * 90 + - col1 DIV + col2 FROM tab1 cor0
----
4860

skipif mysql # not compatible
query I rowsort label-5756
SELECT DISTINCT 54 * 90 + - col1 / + col2 FROM tab1 cor0
----
4860

query I rowsort
SELECT DISTINCT + 7 * cor0.col1 + col0 + - col1 AS col0 FROM tab0 AS cor0
----
540
617
635

onlyif mysql # use DIV operator for integer division
query I rowsort label-5758
SELECT ALL - ( ( + col0 ) ) DIV - col0 + col0 - cor0.col2 col2 FROM tab0 AS cor0
----
-8
35
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5758
SELECT ALL - ( ( + col0 ) ) / - col0 + col0 - cor0.col2 col2 FROM tab0 AS cor0
----
-8
35
8

query I rowsort
SELECT ALL + col2 * col2 + + 15 AS col2 FROM tab0 AS cor0
----
1104
16
6739

onlyif mysql # use DIV operator for integer division
query I rowsort label-5760
SELECT ALL col0 * + col1 DIV col1 - + 28 FROM tab1
----
-25
36
52

skipif mysql # not compatible
query I rowsort label-5760
SELECT ALL col0 * + col1 / col1 - + 28 FROM tab1
----
-25
36
52

query I rowsort
SELECT ALL + col2 + col1 * col1 AS col2 FROM tab1 AS cor0
----
157
265
730

query I rowsort
SELECT 78 - - cor0.col1 * col1 AS col1 FROM tab0 AS cor0
----
7474
8359
9487

query I rowsort
SELECT + col1 * + col2 + + ( col1 ) AS col2 FROM tab1 cor0
----
1261
1430
580

query I rowsort
SELECT DISTINCT + col2 * + col1 AS col2 FROM tab0 cor0
----
2838
7462
97

query I rowsort
SELECT + col2 * col2 + - ( + col0 ) * + col1 FROM tab0 AS cor0
----
-1375
-3394
-975

query I rowsort
SELECT + 5 * cor0.col1 FROM tab1 AS cor0
----
130
50
65

query I rowsort
SELECT ALL ( col2 ) * col0 * col2 FROM tab0 AS cor0
----
26136
35
598436

query I rowsort
SELECT - - col2 * + col2 * col0 + + 47 * + col0 * - ( ( - col2 ) ) FROM tab0 AS cor0
----
1680
63360
941442

query I rowsort
SELECT DISTINCT - - 51 * col0 AS col2 FROM tab1 cor0
----
153
3264
4080

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + + cor0.col1 col0 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT DISTINCT - col2 * + col1 * col2 FROM tab0 AS cor0
----
-611884
-93654
-97

query I rowsort
SELECT ALL + ( + col0 ) - - col1 AS col0 FROM tab0
----
110
132
180

query I rowsort
SELECT ALL + ( col1 ) * + col2 - col2 AS col2 FROM tab0
----
2805
7380
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5774
SELECT - col2 + col1 * - CAST( NULL AS SIGNED ) + + 45 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5774
SELECT - col2 + col1 * - CAST ( NULL AS INTEGER ) + + 45 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - + cor0.col1 * col2 + col1 * + col2 * - col0 FROM tab1 AS cor0
----
-101088
-37050
-5616

query I rowsort
SELECT + col0 * col2 + + 59 AS col2 FROM tab1 AS cor0
----
221
3707
7739

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5777
SELECT DISTINCT + ( - col1 ) + - CAST( NULL AS SIGNED ) + + col1 * cor0.col2 * - col2 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5777
SELECT DISTINCT + ( - col1 ) + - CAST ( NULL AS INTEGER ) + + col1 * cor0.col2 * - col2 AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5778
SELECT DISTINCT + col1 - - col1 * CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5778
SELECT DISTINCT + col1 - - col1 * CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + + col0 * cor0.col0 + + col2 AS col1 FROM tab1 AS cor0
----
4153
63
6496

query I rowsort
SELECT ALL - - ( - col2 ) - - col0 AS col1 FROM tab1 AS cor0
----
-16
-51
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 * col1 col1 FROM tab1 cor0
----
1040
640
78

query I rowsort
SELECT + + col1 + - 8 * 71 AS col2 FROM tab2 AS cor0
----
-509
-537
-551

onlyif mysql # use DIV operator for integer division
query I rowsort label-5783
SELECT + + col0 DIV ( 75 ) AS col1 FROM tab2 cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-5783
SELECT + + col0 / ( 75 ) AS col1 FROM tab2 cor0
----
0
1
1

query IIIIIIIIIIII rowsort
SELECT * FROM tab2 cor0 CROSS JOIN tab0, tab1 AS cor1, tab1 cor2
----
972 values hashing to 7864aada86bf5bf5e1621c7905de8dcd

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * tab2.col0 + col2 col1 FROM tab2
----
-162
-2002
-2964

query I rowsort
SELECT DISTINCT - 94 * - col0 FROM tab0 AS cor0
----
2256
3290
8366

query I rowsort
SELECT + 60 * cor0.col2 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to c9734eba2f2a847cabc27b2e30c79d72

query I rowsort
SELECT ALL ( - 85 ) + - col0 FROM tab2 AS cor0
----
-163
-164
-92

onlyif mysql # use DIV operator for integer division
query I rowsort label-5789
SELECT col2 * + col2 DIV col2 AS col2 FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-5789
SELECT col2 * + col2 / col2 AS col2 FROM tab0 AS cor0
----
1
33
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-5790
SELECT ALL - CAST( col1 AS SIGNED ) + + col2 DIV + col1 + + 46 * + col2 * 83 FROM tab0
----
125908
312985
3721

skipif mysql # not compatible
query I rowsort label-5790
SELECT ALL - CAST ( col1 AS INTEGER ) + + col2 / + col1 + + 46 * + col2 * 83 FROM tab0
----
125908
312985
3721

query I rowsort
SELECT - col2 + - 0 * - col1 AS col2 FROM tab0
----
-1
-33
-82

query I rowsort
SELECT DISTINCT + + ( + col2 ) - - col0 AS col0 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT DISTINCT + ( + col2 ) * col2 * - ( - 78 ) FROM tab2 cor0
----
112632
52728
56862

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5794
SELECT + - cor0.col0 + + CAST( NULL AS SIGNED ) * col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5794
SELECT + - cor0.col0 + + CAST ( NULL AS INTEGER ) * col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + cor0.col0 + cor0.col2 AS col0 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT - + cor0.col0 + ( - col1 ) * col1 AS col1 FROM tab2 AS cor0
----
-3559
-368
-968

query I rowsort
SELECT ALL col0 + 53 + col1 FROM tab1 cor0
----
127
146
82

query I rowsort
SELECT DISTINCT + - col0 * + col0 * 89 + col2 + col2 * col1 FROM tab2 AS cor0
----
-3497
-539916
-554765

query I rowsort
SELECT ALL col0 * - col1 - col1 * + col0 AS col1 FROM tab2 cor0
----
-2686
-434
-9204

query I rowsort
SELECT ALL 74 FROM tab1, tab0 AS cor0
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31

query I rowsort
SELECT ALL + cor0.col0 * + ( col0 ) + col0 FROM tab2 AS cor0
----
56
6162
6320

query I rowsort
SELECT col1 + + 91 + col0 AS col2 FROM tab1 AS cor0
----
120
165
184

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5803
SELECT - + col2 + + CAST( NULL AS SIGNED ) / col1 - + cor0.col1 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5803
SELECT - + col2 + + CAST ( NULL AS INTEGER ) / col1 - + cor0.col1 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 + - cor0.col0 + 94 AS col2 FROM tab2 AS cor0
----
118
32
75

query I rowsort
SELECT + + col0 + + 29 AS col0 FROM tab1 AS cor0
----
109
32
93

query I rowsort
SELECT + cor0.col2 * col2 * col1 + + ( + 43 ) AS col2 FROM tab1 AS cor0
----
119851
32533
75859

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5807
SELECT ( - cor0.col1 ) * col2 + CAST( col0 AS SIGNED ) col0 FROM tab2 AS cor0
----
-1456
-567
-830

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5807
SELECT ( - cor0.col1 ) * col2 + CAST ( col0 AS INTEGER ) col0 FROM tab2 AS cor0
----
-1456
-567
-830

query I rowsort
SELECT ALL tab2.col1 + 47 FROM tab2
----
106
64
78

query I rowsort
SELECT DISTINCT + - cor1.col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-54
-57
-96

query I rowsort
SELECT DISTINCT + col2 - + col0 FROM tab1 cor0
----
-7
16
51

query I rowsort
SELECT ALL col1 - + col0 AS col2 FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT ALL col2 + tab0.col0 FROM tab0 WHERE NOT col0 NOT IN ( + col0 - col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 col2 FROM tab1 WHERE NOT + col1 < col1
----
-54
-57
-96

query I rowsort
SELECT DISTINCT + col0 + + tab2.col0 FROM tab2
----
14
156
158

query I rowsort
SELECT + col2 FROM tab1 WHERE NOT col1 < NULL
----

query I rowsort
SELECT - + 81 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to d0bfe8494f52235d9fcafb5ac5de3f81

onlyif mysql # use DIV operator for integer division
query I rowsort label-5817
SELECT ALL 85 DIV col1 + col2 * col2 FROM tab0 AS cor0
----
1
1089
6724

skipif mysql # not compatible
query I rowsort label-5817
SELECT ALL 85 / col1 + col2 * col2 FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT + - 71 AS col0 FROM tab0 cor0
----
-71
-71
-71

query I rowsort
SELECT ALL + + 96 * col2 * + cor0.col1 + col1 AS col0 FROM tab1 AS cor0
----
119821
134810
54730

query I rowsort
SELECT DISTINCT - 94 - col0 FROM tab1 cor0
----
-158
-174
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 40 col0 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
40

query I rowsort
SELECT DISTINCT - col0 * - 52 FROM tab0
----
1248
1820
4628

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5823
SELECT + CAST( col0 + col2 AS SIGNED ) AS col2 FROM tab1
----
121
176
57

skipif mysql # not compatible
query I rowsort label-5823
SELECT + CAST ( col0 + col2 AS INTEGER ) AS col2 FROM tab1
----
121
176
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-5824
SELECT col2 DIV 31 + - col0 FROM tab2
----
-7
-78
-78

skipif mysql # not compatible
query I rowsort label-5824
SELECT col2 / 31 + - col0 FROM tab2
----
-7
-78
-78

query I rowsort
SELECT DISTINCT - 29 + + 45 AS col2 FROM tab1 cor0
----
16

query I rowsort
SELECT DISTINCT - col1 * col2 + col0 AS col2 FROM tab0 AS cor0
----
-2814
-62
-7373

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5827
SELECT - CAST( + col0 AS SIGNED ) col0 FROM tab0 AS cor0
----
-24
-35
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5827
SELECT - CAST ( + col0 AS INTEGER ) col0 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT + 64 * + cor0.col0 FROM tab2, tab0 AS cor0
----
9 values hashing to d641fbcde55572c6ff241239802f517d

onlyif mysql # use DIV operator for integer division
query I rowsort label-5829
SELECT ALL - + 6 * col1 DIV col2 AS col2 FROM tab0 AS cor0
----
-15
-582
-6

skipif mysql # not compatible
query I rowsort label-5829
SELECT ALL - + 6 * col1 / col2 AS col2 FROM tab0 AS cor0
----
-15
-582
-6

query I rowsort
SELECT 68 + + col1 AS col0 FROM tab0
----
154
159
165

onlyif mysql # use DIV operator for integer division
query I rowsort label-5831
SELECT DISTINCT - col2 DIV 61 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5831
SELECT DISTINCT - col2 / 61 FROM tab2
----
0

query I rowsort
SELECT - ( + col2 ) * + 90 * col2 FROM tab0 AS cor0
----
-605160
-90
-98010

query I rowsort
SELECT ( 37 ) FROM tab2, tab1 AS cor0
----
9 values hashing to a10b03e72860b949bdff53827700a9a8

query I rowsort
SELECT - col2 * - 38 FROM tab2 AS cor0
----
1026
1444
988

query I rowsort
SELECT - cor0.col1 - + 32 FROM tab2 cor0
----
-49
-63
-91

onlyif mysql # use DIV operator for integer division
query I rowsort label-5836
SELECT + col1 * 84 + - col1 DIV col0 FROM tab1
----
1092
2176
840

skipif mysql # not compatible
query I rowsort label-5836
SELECT + col1 * 84 + - col1 / col0 FROM tab1
----
1092
2176
840

query I rowsort
SELECT ALL col0 + + 11 - - col0 FROM tab2
----
167
169
25

query I rowsort
SELECT DISTINCT col2 * + ( - col1 ) - + col2 FROM tab2
----
-1560
-684
-864

onlyif mysql # use DIV operator for integer division
query I rowsort label-5839
SELECT + col0 DIV 28 AS col0 FROM tab2
----
0
2
2

skipif mysql # not compatible
query I rowsort label-5839
SELECT + col0 / 28 AS col0 FROM tab2
----
0
2
2

query I rowsort
SELECT - ( + 29 ) + col2 * - col0 AS col0 FROM tab0 AS cor0
----
-64
-7327
-821

onlyif mysql # use DIV operator for integer division
query I rowsort label-5841
SELECT + ( col1 ) DIV col2 + col0 + - col2 AS col0 FROM tab0 AS cor0
----
-7
131
8

skipif mysql # not compatible
query I rowsort label-5841
SELECT + ( col1 ) / col2 + col0 + - col2 AS col0 FROM tab0 AS cor0
----
-7
131
8

query I rowsort
SELECT - col0 + - col0 * - col2 AS col2 FROM tab2 AS cor0
----
182
1950
2923

query I rowsort
SELECT ALL ( - col1 ) + + col1 * + 71 FROM tab1
----
1820
700
910

onlyif mysql # use DIV operator for integer division
query I rowsort label-5844
SELECT ALL 45 DIV - col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5844
SELECT ALL 45 / - col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - + ( - col0 ) * - cor0.col2 + 15 AS col2 FROM tab0 AS cor0
----
-20
-7283
-777

query I rowsort
SELECT col1 * ( + cor0.col1 * + col1 ) + col0 * col0 + + 7 AS col0 FROM tab2 AS cor0
----
11161
211470
29847

query I rowsort
SELECT DISTINCT 66 AS col2 FROM tab2 cor0
----
66

onlyif mysql # use DIV operator for integer division
query I rowsort label-5848
SELECT - ( 45 ) + col0 DIV + ( 94 ) FROM tab0 cor0
----
-45
-45
-45

skipif mysql # not compatible
query I rowsort label-5848
SELECT - ( 45 ) + col0 / + ( 94 ) FROM tab0 cor0
----
-45
-45
-45

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5849
SELECT ALL - CAST( NULL AS SIGNED ) + + col1 * - col2 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5849
SELECT ALL - CAST ( NULL AS INTEGER ) + + col1 * - col2 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - + ( - col2 ) + - col2 AS col1 FROM tab2 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - col0 * col0 col2 FROM tab0 AS cor0
----
-1224
-543
-7839

query I rowsort
SELECT - 86 + - col2 * - col2 FROM tab1 AS cor0
----
2830
3163
9130

onlyif mysql # use DIV operator for integer division
query I rowsort label-5853
SELECT - - col0 + - col2 DIV 37 AS col1 FROM tab2 AS cor0
----
7
78
78

skipif mysql # not compatible
query I rowsort label-5853
SELECT - - col0 + - col2 / 37 AS col1 FROM tab2 AS cor0
----
7
78
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 64 col2 FROM tab1 cor0
----
64
64
64

query I rowsort
SELECT + col0 * + cor0.col2 + col1 FROM tab2 cor0
----
2087
220
3019

query I rowsort
SELECT DISTINCT - + cor0.col1 + 82 AS col0 FROM tab2 AS cor0
----
23
51
65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * ( 65 ) + col1 col0 FROM tab0 AS cor0
----
1646
2372
5876

onlyif mysql # use DIV operator for integer division
query I rowsort label-5858
SELECT col1 * - cor0.col2 DIV + col2 AS col2 FROM tab1 AS cor0
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-5858
SELECT col1 * - cor0.col2 / + col2 AS col2 FROM tab1 AS cor0
----
-10
-13
-26

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5859
SELECT ALL - col1 * CAST( - col2 AS SIGNED ) * col1 FROM tab2 AS cor0
----
10982
25947
90506

skipif mysql # not compatible
query I rowsort label-5859
SELECT ALL - col1 * CAST ( - col2 AS INTEGER ) * col1 FROM tab2 AS cor0
----
10982
25947
90506

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-5861
SELECT DISTINCT - - col2 DIV - ( col1 ) AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5861
SELECT DISTINCT - - col2 / - ( col1 ) AS col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT + + col0 * + col2 * + col0 AS col0 FROM tab0 AS cor0
----
1225
19008
649522

query I rowsort
SELECT DISTINCT - cor0.col0 * - 78 + + col1 AS col2 FROM tab1 AS cor0
----
260
5002
6253

query I rowsort
SELECT - ( - 4 ) FROM tab2, tab1 AS cor0
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b

onlyif mysql # use DIV operator for integer division
query I rowsort label-5865
SELECT DISTINCT + col1 + col2 DIV cor0.col2 FROM tab1 cor0
----
11
14
27

skipif mysql # not compatible
query I rowsort label-5865
SELECT DISTINCT + col1 + col2 / cor0.col2 FROM tab1 cor0
----
11
14
27

query I rowsort
SELECT DISTINCT - - col0 * + col1 - 47 AS col0 FROM tab1 AS cor0
----
31
593
993

query I rowsort
SELECT DISTINCT + - col0 + + 65 FROM tab0 AS cor0
----
-24
30
41

onlyif mysql # use DIV operator for integer division
query I rowsort label-5868
SELECT - col0 DIV + col1 + col0 DIV + col2 FROM tab0
----
0
1
35

skipif mysql # not compatible
query I rowsort label-5868
SELECT - col0 / + col1 + col0 / + col2 FROM tab0
----
0
1
35

query I rowsort
SELECT DISTINCT - col1 + 31 FROM tab0 AS cor0
----
-55
-60
-66

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5870
SELECT ALL + cor0.col0 - - CAST( + col1 + col0 * - ( ( col1 ) ) AS SIGNED ) AS col1 FROM tab1 cor0
----
-49
-566
-947

skipif mysql # not compatible
query I rowsort label-5870
SELECT ALL + cor0.col0 - - CAST ( + col1 + col0 * - ( ( col1 ) ) AS INTEGER ) AS col1 FROM tab1 cor0
----
-49
-566
-947

query I rowsort
SELECT + col0 + ( + col0 ) AS col2 FROM tab0 AS cor0
----
178
48
70

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab0, tab1 AS cor1, tab0 cor2, tab2 AS cor3
----
3645 values hashing to 9a8c5b685ae97f053cdce34c34044cb4

onlyif mysql # use DIV operator for integer division
query I rowsort label-5873
SELECT + col0 * 94 DIV - 65 + col2 - col1 AS col0 FROM tab1
----
-32
-45
24

skipif mysql # not compatible
query I rowsort label-5873
SELECT + col0 * 94 / - 65 + col2 - col1 AS col0 FROM tab1
----
-32
-45
24

query I rowsort
SELECT ALL + cor0.col0 + + col1 * col0 FROM tab0 AS cor0
----
2088
3430
8188

query I rowsort
SELECT DISTINCT - 36 AS col2 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
-36

query I rowsort
SELECT ALL + + 26 + - col1 AS col0 FROM tab0 AS cor0
----
-60
-65
-71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 66 + col1 * col0 col2 FROM tab0
----
2130
3461
8165

query I rowsort
SELECT DISTINCT - 64 + col1 + - col2 AS col2 FROM tab2 cor0
----
-31
-60
-85

query I rowsort
SELECT DISTINCT + 34 + - col1 * cor0.col2 FROM tab1 AS cor0
----
-1214
-1370
-536

query I rowsort
SELECT DISTINCT + + 85 * cor0.col1 AS col2 FROM tab0 AS cor0
----
7310
7735
8245

query I rowsort
SELECT 51 * - cor0.col2 FROM tab0 AS cor0
----
-1683
-4182
-51

query I rowsort
SELECT - col2 + - col1 * - col2 FROM tab0 AS cor0
----
2805
7380
96

query I rowsort
SELECT + ( col1 ) * - col2 * col1 FROM tab1 AS cor0
----
-16224
-36504
-5700

query I rowsort
SELECT ALL + col2 + ( + col2 ) AS col1 FROM tab2 AS cor0
----
52
54
76

query I rowsort
SELECT DISTINCT 14 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
14

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5886
SELECT DISTINCT - CAST( NULL AS DECIMAL ) + 28 AS col1 FROM tab2, tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5886
SELECT DISTINCT - CAST ( NULL AS REAL ) + 28 AS col1 FROM tab2, tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + 82 AS col2 FROM tab0, tab1 AS cor0, tab0 cor1
----
82

query I rowsort
SELECT ALL - col0 + ( col1 * - col2 ) + col0 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT DISTINCT + col2 * col1 * cor0.col0 + + col2 AS col1 FROM tab0 AS cor0
----
3396
664200
68145

query I rowsort
SELECT - cor0.col0 * 55 + ( + col0 ) * col1 AS col1 FROM tab2 AS cor0
----
-168
-3002
312

onlyif mysql # use DIV operator for integer division
query I rowsort label-5891
SELECT col1 + - 97 * + cor0.col2 DIV + col2 AS col2 FROM tab1 AS cor0
----
-71
-84
-87

skipif mysql # not compatible
query I rowsort label-5891
SELECT col1 + - 97 * + cor0.col2 / + col2 AS col2 FROM tab1 AS cor0
----
-71
-84
-87

query I rowsort
SELECT + 90 * - 64 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to ec44aac7196c59464b5f2edb1f81b11a

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 * - 88 col0 FROM tab2 AS cor0
----
-616
-6864
-6952

query I rowsort
SELECT ALL - + col1 * + col2 * - col2 FROM tab1 AS cor0
----
119808
32490
75816

query I rowsort
SELECT ALL col1 + - 40 FROM tab1 cor0
----
-14
-27
-30

onlyif mysql # use DIV operator for integer division
query I rowsort label-5896
SELECT - col2 * col2 + + cor0.col0 DIV + col2 AS col0 FROM tab1 AS cor0
----
-2916
-3248
-9216

skipif mysql # not compatible
query I rowsort label-5896
SELECT - col2 * col2 + + cor0.col0 / + col2 AS col0 FROM tab1 AS cor0
----
-2916
-3248
-9216

query I rowsort
SELECT - - ( col0 ) + col0 * + col1 + 96 AS col2 FROM tab1 AS cor0
----
1216
177
800

query I rowsort
SELECT - col0 + - ( cor0.col2 ) AS col2 FROM tab2 AS cor0
----
-104
-117
-34

query I rowsort
SELECT ALL - ( + 37 + col2 ) FROM tab2
----
-63
-64
-75

query I rowsort
SELECT DISTINCT + - 96 * cor0.col1 + - 93 * 33 FROM tab1 AS cor0
----
-4029
-4317
-5565

query I rowsort
SELECT ALL - col0 - col0 AS col2 FROM tab1 cor0
----
-128
-160
-6

query I rowsort
SELECT col0 * col0 * - col2 AS col2 FROM tab1
----
-233472
-486
-614400

query I rowsort
SELECT + col0 * - 26 AS col2 FROM tab1 AS cor0
----
-1664
-2080
-78

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - CAST ( col0 AS REAL ) AS col0 FROM tab1
----
-3
-64
-80

query I rowsort
SELECT col0 + - 4 * + 11 AS col2 FROM tab2 AS cor0
----
-37
34
35

query I rowsort
SELECT - col2 + + cor0.col1 * col0 FROM tab2 AS cor0
----
1305
190
4576

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5907
SELECT col1 * CAST( 6 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
102
186
354

skipif mysql # not compatible
query I rowsort label-5907
SELECT col1 * CAST ( 6 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
102
186
354

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 69 col0 FROM tab1
----
69
69
69

query I rowsort
SELECT + cor1.col2 FROM tab1, tab2, tab0 cor0, tab0 AS cor1
----
81 values hashing to e938777ebffc2e3e9c0cdfaa4f732c05

query I rowsort
SELECT DISTINCT + col1 * col1 + ( + col2 ) FROM tab0
----
7429
8363
9410

query I rowsort
SELECT DISTINCT 40 AS col0 FROM tab1, tab1 cor0, tab0 AS cor1
----
40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 41 * col1 * 91 col2 FROM tab0
----
320866
339521
361907

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + 6 col1 FROM tab0 cor0
----
-80
-85
-91

query I rowsort
SELECT + col2 * - 22 + ( col0 ) * + col0 AS col1 FROM tab2 AS cor0
----
-545
5405
5512

query I rowsort
SELECT col2 + col2 + + 68 AS col0 FROM tab0 AS cor0
----
134
232
70

query I rowsort
SELECT DISTINCT col1 + cor0.col2 * col0 FROM tab0 AS cor0
----
132
7389
878

query I rowsort
SELECT ALL + + cor0.col0 * col1 + - 88 - col2 AS col2 FROM tab2 AS cor0
----
102
1217
4488

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 80 * - col2 col2 FROM tab2 AS cor0
----
-2080
-2160
-3040

query I rowsort
SELECT DISTINCT - ( - col1 ) - - 47 AS col2 FROM tab1 AS cor0
----
57
60
73

query I rowsort
SELECT DISTINCT + - col2 + cor0.col2 * col1 AS col2 FROM tab2 AS cor0
----
1508
608
810

query I rowsort
SELECT + 71 + cor0.col1 * + col2 AS col1 FROM tab0 cor0
----
168
2909
7533

query I rowsort
SELECT - 59 + + col1 + ( + col2 ) * tab0.col1 AS col0 FROM tab0
----
135
2865
7494

query I rowsort
SELECT ALL 70 + col0 FROM tab1
----
134
150
73

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5924
SELECT DISTINCT CAST( NULL AS SIGNED ) FROM tab2, tab1, tab0 AS cor0, tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-5924
SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab2, tab1, tab0 AS cor0, tab2 AS cor1
----
NULL

query I rowsort
SELECT DISTINCT - ( 73 ) FROM tab1 AS cor0
----
-73

query I rowsort
SELECT ALL ( cor0.col1 ) AS col2 FROM tab2 cor0
----
17
31
59

query I rowsort
SELECT ALL col1 * - col1 + - tab2.col2 * - col1 AS col1 FROM tab2
----
-124
-1947
357

query I rowsort
SELECT DISTINCT tab1.col2 + + ( - col1 ) AS col2 FROM tab1
----
28
47
83

query I rowsort
SELECT + col1 * 37 * + 53 FROM tab0 AS cor0
----
168646
178451
190217

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5930
SELECT ALL col1 + + CAST( col2 AS SIGNED ) AS col0 FROM tab2
----
55
58
85

skipif mysql # not compatible
query I rowsort label-5930
SELECT ALL col1 + + CAST ( col2 AS INTEGER ) AS col0 FROM tab2
----
55
58
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - + tab0.col1 * col0 col0 FROM tab0
----
-2031
-3394
-8017

query I rowsort
SELECT DISTINCT + 14 * col1 FROM tab1
----
140
182
364

query I rowsort
SELECT + - col2 * col0 * + col0 AS col1 FROM tab0 AS cor0
----
-1225
-19008
-649522

query I rowsort
SELECT + + col1 + 80 * + cor0.col2 FROM tab1 AS cor0
----
4346
4570
7693

query I rowsort
SELECT ( col2 ) * col0 * + col1 + col1 AS col0 FROM tab1
----
36490
4238
99853

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + col2 * tab1.col0 ) - + 67 * tab1.col2 col1 FROM tab1
----
-14112
-3780
-7467

query I rowsort
SELECT ALL + + col1 - col2 AS col0 FROM tab2 AS cor0
----
-21
33
4

query I rowsort
SELECT + col1 * 50 * cor0.col2 FROM tab1 AS cor0
----
28500
62400
70200

query I rowsort
SELECT DISTINCT - - 81 * col0 FROM tab0 AS cor0
----
1944
2835
7209

query I rowsort
SELECT + 53 * + cor0.col2 AS col0 FROM tab2 AS cor0
----
1378
1431
2014

onlyif mysql # use DIV operator for integer division
query I rowsort label-5941
SELECT ALL - ( 84 ) DIV col0 - 72 FROM tab1 AS cor0
----
-100
-73
-73

skipif mysql # not compatible
query I rowsort label-5941
SELECT ALL - ( 84 ) / col0 - 72 FROM tab1 AS cor0
----
-100
-73
-73

query I rowsort
SELECT ALL col0 + 37 AS col0 FROM tab1 cor0
----
101
117
40

query I rowsort
SELECT DISTINCT - - 30 * - 74 AS col0 FROM tab2 AS cor0
----
-2220

query I rowsort
SELECT DISTINCT + + col1 * + col0 * cor0.col1 AS col2 FROM tab0 AS cor0
----
177504
329315
737009

query I rowsort
SELECT + 44 + 65 * col2 AS col2 FROM tab1 AS cor0
----
3554
3749
6284

query I rowsort
SELECT + + 41 * cor0.col0 FROM tab0 AS cor0
----
1435
3649
984

query I rowsort
SELECT DISTINCT - 84 * col0 + col2 FROM tab2 AS cor0
----
-561
-6526
-6598

onlyif mysql # use DIV operator for integer division
query I rowsort label-5948
SELECT DISTINCT + col0 DIV 3 FROM tab0
----
11
29
8

skipif mysql # not compatible
query I rowsort label-5948
SELECT DISTINCT + col0 / 3 FROM tab0
----
11
29
8

query I rowsort
SELECT ALL 2 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 535345c50a19fdab97ce05d1837b1f09

query I rowsort
SELECT col2 * - col2 + - col1 AS col1 FROM tab1
----
-2942
-3259
-9229

query I rowsort
SELECT col2 * ( col1 ) AS col1 FROM tab0 AS cor0
----
2838
7462
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-5952
SELECT + CAST( 63 AS SIGNED ) + + col2 DIV - col0 AS col0 FROM tab1 AS cor0
----
45
62
63

skipif mysql # not compatible
query I rowsort label-5952
SELECT + CAST ( 63 AS INTEGER ) + + col2 / - col0 AS col0 FROM tab1 AS cor0
----
45
62
63

query I rowsort
SELECT - - cor0.col2 * 58 FROM tab0 AS cor0
----
1914
4756
58

query I rowsort
SELECT ALL 34 * col0 AS col1 FROM tab0 AS cor0
----
1190
3026
816

onlyif mysql # use DIV operator for integer division
query I rowsort label-5955
SELECT + 24 DIV col0 AS col1 FROM tab2 AS cor0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-5955
SELECT + 24 / col0 AS col1 FROM tab2 AS cor0
----
0
0
3

query I rowsort
SELECT ALL + + col0 * cor0.col2 * - 19 FROM tab1 AS cor0
----
-145920
-3078
-69312

onlyif mysql # use DIV operator for integer division
query I rowsort label-5957
SELECT DISTINCT ( + col2 ) DIV - col1 FROM tab1 AS cor0
----
-2
-5
-7

skipif mysql # not compatible
query I rowsort label-5957
SELECT DISTINCT ( + col2 ) / - col1 FROM tab1 AS cor0
----
-2
-5
-7

query I rowsort
SELECT - ( 86 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 9ac806793c03d3a6b5e3a3029d20e4da

onlyif mysql # use DIV operator for integer division
query I rowsort label-5959
SELECT ALL 68 + - col1 DIV - 74 FROM tab0 cor0
----
69
69
69

skipif mysql # not compatible
query I rowsort label-5959
SELECT ALL 68 + - col1 / - 74 FROM tab0 cor0
----
69
69
69

query I rowsort
SELECT - 51 * - cor0.col0 AS col1 FROM tab0 AS cor0
----
1224
1785
4539

query I rowsort
SELECT 67 + tab0.col1 AS col2 FROM tab0
----
153
158
164

query I rowsort
SELECT - - col1 + col2 * cor0.col0 FROM tab0 AS cor0
----
132
7389
878

query I rowsort
SELECT - col1 * - col2 + + cor0.col0 AS col1 FROM tab0 AS cor0
----
132
2862
7551

query I rowsort
SELECT + + 20 + - col2 * + cor0.col0 FROM tab1 AS cor0
----
-142
-3628
-7660

query I rowsort
SELECT ALL + + col1 + + 59 AS col1 FROM tab1 AS cor0
----
69
72
85

query I rowsort
SELECT ALL + col2 * 67 * col1 FROM tab0 AS cor0
----
190146
499954
6499

query I rowsort
SELECT - + col1 * - col1 + - col2 AS col2 FROM tab2 AS cor0
----
251
3455
934

query I rowsort
SELECT col1 * col0 + col0 * col1 FROM tab0 AS cor0
----
16198
4128
6790

query I rowsort
SELECT DISTINCT col2 * + 42 FROM tab2 AS cor0
----
1092
1134
1596

query I rowsort
SELECT ALL + cor0.col0 + - col0 * 10 + col1 AS col2 FROM tab2 AS cor0
----
-32
-643
-694

query I rowsort
SELECT ALL + - col1 + + ( + 70 * - col0 ) AS col0 FROM tab1 AS cor0
----
-236
-4490
-5613

query I rowsort
SELECT ALL col0 + + col2 + - 10 FROM tab0 AS cor0
----
161
26
47

query I rowsort
SELECT + col1 + 41 AS col2 FROM tab2 AS cor0
----
100
58
72

query I rowsort
SELECT + col1 * - ( col1 ) + - col2 - + 59 * 61 FROM tab2 cor0
----
-3926
-4587
-7106

query I rowsort
SELECT + - col2 * + col2 + + 86 FROM tab0 AS cor0
----
-1003
-6638
85

query I rowsort
SELECT DISTINCT - + col2 + col0 + col2 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT ALL - cor0.col2 + + col0 * 44 AS col1 FROM tab2 AS cor0
----
281
3406
3438

query I rowsort
SELECT ALL - - col1 + - cor0.col2 FROM tab2 AS cor0
----
-21
33
4

query I rowsort
SELECT DISTINCT - 36 + - col0 AS col1 FROM tab1 AS cor0
----
-100
-116
-39

query I rowsort
SELECT + 71 + cor0.col0 FROM tab0 AS cor0
----
106
160
95

query I rowsort
SELECT DISTINCT 56 + ( col1 * col2 ) AS col0 FROM tab0 AS cor0
----
153
2894
7518

query I rowsort
SELECT ALL 65 + col1 AS col2 FROM tab0 cor0
----
151
156
162

query I rowsort
SELECT - - ( - col2 ) * col1 + cor0.col2 * + col2 * col1 AS col0 FROM tab0 AS cor0
----
0
604422
90816

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + - col0 col1 FROM tab2 AS cor0
----
-137
-38
-96

query IIIIIIIIIIIIIIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab1, tab0 cor2, tab0
----
13122 values hashing to 5182ae0f24c13da2dd80cd1a00841fb6

query I rowsort
SELECT - cor0.col0 FROM tab1, tab0 AS cor0, tab1 cor1
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8

query I rowsort
SELECT 2 + col1 * col2 AS col0 FROM tab1
----
1250
1406
572

query I rowsort
SELECT ( - tab1.col0 ) * 69 FROM tab1
----
-207
-4416
-5520

query I rowsort
SELECT DISTINCT + + col2 * + 7 FROM tab2 AS cor0
----
182
189
266

query I rowsort
SELECT ALL + tab2.col2 * tab2.col0 AS col2 FROM tab2
----
189
2028
3002

query I rowsort
SELECT ALL + + col0 * cor0.col1 + 23 FROM tab1 AS cor0
----
101
1063
663

query I rowsort
SELECT ALL col1 + - col1 + col1 FROM tab1
----
10
13
26

query I rowsort
SELECT ALL + col1 + col0 * col1 AS col0 FROM tab0 AS cor0
----
2150
3492
8190

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 76 * col1 col0 FROM tab1 AS cor0
----
1976
760
988

query I rowsort
SELECT 55 * cor0.col2 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 777aeb0da5ce5f61c19a9328706ad2ec

query I rowsort
SELECT ALL - 63 + - col0 * col2 AS col0 FROM tab1 AS cor0
----
-225
-3711
-7743

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5997
SELECT ALL + tab2.col0 * col1 * CAST( col0 AS SIGNED ) AS col1 FROM tab2
----
106097
1519
358956

skipif mysql # not compatible
query I rowsort label-5997
SELECT ALL + tab2.col0 * col1 * CAST ( col0 AS INTEGER ) AS col1 FROM tab2
----
106097
1519
358956

query I rowsort
SELECT + 75 + + col1 FROM tab0 AS cor0
----
161
166
172

query I rowsort
SELECT - col1 + - cor0.col2 + ( + 56 ) FROM tab1 AS cor0
----
-11
-24
-53

onlyif mysql # use DIV operator for integer division
query I rowsort label-6000
SELECT cor0.col2 DIV - col0 + + col1 * col2 FROM tab0 AS cor0
----
2837
7462
97

skipif mysql # not compatible
query I rowsort label-6000
SELECT cor0.col2 / - col0 + + col1 * col2 FROM tab0 AS cor0
----
2837
7462
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 49 col1 FROM tab2
----
-49
-49
-49

query I rowsort
SELECT DISTINCT ( + col1 ) - - 20 FROM tab2
----
37
51
79

query I rowsort
SELECT + - 57 + col0 AS col0 FROM tab2 cor0
----
-50
21
22

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 + col2 col2 FROM tab1 AS cor0
----
-7
16
51

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6005
SELECT ( col0 ) + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6005
SELECT ( col0 ) + CAST ( NULL 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-6006
SELECT col2 / - col2 + - ( ( - col1 ) ) + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6006
SELECT col2 / - col2 + - ( ( - col1 ) ) + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 + - col0 * + col1 AS col0 FROM tab0 AS cor0
----
-2097
-3396
-8181

onlyif mysql # use DIV operator for integer division
query I rowsort label-6008
SELECT DISTINCT 47 * - col2 DIV 1 FROM tab0
----
-1551
-3854
-47

skipif mysql # not compatible
query I rowsort label-6008
SELECT DISTINCT 47 * - col2 / 1 FROM tab0
----
-1551
-3854
-47

query I rowsort
SELECT ALL + 32 * - cor0.col0 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to adf06b81e7c8c6111af9fe945fc0bebc

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6010
SELECT - 70 + + col2 * CAST( col0 + col2 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-34
13952
1811

skipif mysql # not compatible
query I rowsort label-6010
SELECT - 70 + + col2 * CAST ( col0 + col2 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-34
13952
1811

query I rowsort
SELECT ( + 75 ) * col0 AS col2 FROM tab2
----
525
5850
5925

query I rowsort
SELECT ALL 80 + col2 AS col2 FROM tab0
----
113
162
81

query I rowsort
SELECT - 72 * col1 + + col0 FROM tab0 AS cor0
----
-6168
-6463
-6949

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - cor0.col0 + col1 col1 FROM tab0 AS cor0
----
-1978
-3298
-8008

onlyif mysql # use DIV operator for integer division
query I rowsort label-6015
SELECT + col1 * col1 - + col0 DIV col1 AS col1 FROM tab2 AS cor0
----
285
3480
961

skipif mysql # not compatible
query I rowsort label-6015
SELECT + col1 * col1 - + col0 / col1 AS col1 FROM tab2 AS cor0
----
285
3480
961

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 83 col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c

onlyif mysql # use DIV operator for integer division
query I rowsort label-6017
SELECT col2 DIV 48 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6017
SELECT col2 / 48 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL col1 * col2 + + col0 FROM tab1 cor0
----
1328
1407
634

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 + + cor0.col1 * col0 * col0 col2 FROM tab2 AS cor0
----
106114
1550
359015

query I rowsort
SELECT - col0 + col1 * col1 * col0 FROM tab1 AS cor0
----
13440
2025
6336

query I rowsort
SELECT DISTINCT - col0 + col1 - - col1 FROM tab1 AS cor0
----
-44
-54
49

onlyif mysql # use DIV operator for integer division
query I rowsort label-6022
SELECT ALL + col2 DIV col1 + - cor0.col1 FROM tab1 cor0
----
-24
-5
-6

skipif mysql # not compatible
query I rowsort label-6022
SELECT ALL + col2 / col1 + - cor0.col1 FROM tab1 cor0
----
-24
-5
-6

query I rowsort
SELECT col2 * + col1 + col1 AS col1 FROM tab1 AS cor0
----
1261
1430
580

query I rowsort
SELECT ALL cor0.col1 * col1 + col0 AS col1 FROM tab2 AS cor0
----
3559
368
968

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 * + col0 + - col1 col2 FROM tab2 AS cor0
----
-6143
-6258
-80

onlyif mysql # use DIV operator for integer division
query I rowsort label-6026
SELECT DISTINCT - - col2 DIV + cor0.col1 AS col2 FROM tab2 AS cor0
----
0
2

skipif mysql # not compatible
query I rowsort label-6026
SELECT DISTINCT - - col2 / + cor0.col1 AS col2 FROM tab2 AS cor0
----
0
2

query I rowsort
SELECT ALL + col2 * col0 * - col0 + cor0.col0 FROM tab2 AS cor0
----
-1316
-158106
-237079

onlyif mysql # use DIV operator for integer division
query I rowsort label-6028
SELECT ALL + + col2 DIV - col0 AS col2 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-6028
SELECT ALL + + col2 / - col0 AS col2 FROM tab0 AS cor0
----
-1
0
0

query I rowsort
SELECT DISTINCT - col0 + cor0.col0 AS col2 FROM tab0 cor0
----
0

query I rowsort
SELECT ALL - - col0 + + cor0.col0 AS col2 FROM tab2 AS cor0
----
14
156
158

onlyif mysql # use DIV operator for integer division
query I rowsort label-6031
SELECT ALL + col1 DIV col2 + - col0 FROM tab1 AS cor0
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-6031
SELECT ALL + col1 / col2 + - col0 FROM tab1 AS cor0
----
-3
-64
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 - - col0 col2 FROM tab1
----
128
160
6

query I rowsort
SELECT - cor0.col0 + + col2 * + col2 * col0 FROM tab0 AS cor0
----
0
26112
598347

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NOT - col0 IN ( + col1 ) ) AND NOT NULL > col0 OR col2 * col2 + col1 = - col1
----

query I rowsort
SELECT DISTINCT + + col1 + + col1 * col1 FROM tab0 AS cor0
----
7482
8372
9506

onlyif mysql # use DIV operator for integer division
query I rowsort label-6036
SELECT + col2 DIV col2 + cor0.col1 FROM tab1 AS cor0
----
11
14
27

skipif mysql # not compatible
query I rowsort label-6036
SELECT + col2 / col2 + cor0.col1 FROM tab1 AS cor0
----
11
14
27

onlyif mysql # use DIV operator for integer division
query I rowsort label-6037
SELECT + cor0.col1 DIV - col2 + + col1 * col1 AS col1 FROM tab0 AS cor0
----
7394
8280
9312

skipif mysql # not compatible
query I rowsort label-6037
SELECT + cor0.col1 / - col2 + + col1 * col1 AS col1 FROM tab0 AS cor0
----
7394
8280
9312

query III rowsort
SELECT * FROM tab2 WHERE ( NOT NULL <> col0 + + col0 ) AND NOT col2 + - col0 = ( - col1 + - col2 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-6039
SELECT + col2 * - col1 DIV col1 FROM tab1
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-6039
SELECT + col2 * - col1 / col1 FROM tab1
----
-54
-57
-96

query I rowsort
SELECT col1 + tab2.col2 + - col1 * tab2.col0 * col2 AS col2 FROM tab2
----
-119567
-50979
-5801

query I rowsort
SELECT + col2 AS col0 FROM tab0 WHERE NOT NULL NOT IN ( - col2 + col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) BETWEEN ( + col1 * col0 ) AND ( + col0 )
----

query I rowsort
SELECT tab1.col0 + tab1.col2 + + col2 FROM tab1
----
111
178
272

query I rowsort
SELECT + col2 * - col0 - + col0 * col2 FROM tab2
----
-378
-4056
-6004

query I rowsort
SELECT DISTINCT + tab1.col2 * + tab1.col1 + col2 * col2 - + col1 AS col0 FROM tab1
----
10451
3809
4294

query I rowsort
SELECT DISTINCT col2 * + col1 + + col1 * col1 AS col2 FROM tab1 WHERE - col2 / - col2 + + col2 <> ( NULL )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL NOT IN ( tab1.col0 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-6048
SELECT + tab1.col0 * + col1 + col1 DIV + col2 FROM tab1
----
1040
640
78

skipif mysql # not compatible
query I rowsort label-6048
SELECT + tab1.col0 * + col1 + col1 / + col2 FROM tab1
----
1040
640
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-6049
SELECT col0 DIV tab0.col1 - - col2 * col2 FROM tab0
----
1
1089
6724

skipif mysql # not compatible
query I rowsort label-6049
SELECT col0 / tab0.col1 - - col2 * col2 FROM tab0
----
1
1089
6724

query I rowsort
SELECT DISTINCT + col1 * col1 * + tab0.col0 - - col1 FROM tab0
----
177590
329412
737100

query I rowsort
SELECT ALL tab0.col2 - + tab0.col0 FROM tab0
----
-34
-7
9

query I rowsort
SELECT DISTINCT tab0.col1 * col0 * - col2 FROM tab0
----
-3395
-664118
-68112

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NULL ) IN ( col2 )
----

query I rowsort
SELECT - tab0.col0 + - col2 + col1 FROM tab0
----
-80
29
61

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) NOT IN ( - col0 * col2 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - col1 + - col2 BETWEEN col0 AND NULL
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

query I rowsort
SELECT - col0 * tab1.col1 AS col1 FROM tab1 WHERE - col1 * + col1 NOT BETWEEN ( - col1 - col1 ) AND NULL
----
-1040
-640
-78

query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab0 WHERE NOT col2 >= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col0 = - col0 / + col2
----

query I rowsort
SELECT col0 * + col0 + - tab2.col0 + col1 FROM tab2
----
6065
6179
73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + col2 + tab0.col0 * - col2 col0 FROM tab0
----
-7127
-735
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-6062
SELECT tab1.col0 DIV + col2 + col2 DIV - col1 col0 FROM tab1
----
-2
-4
-7

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6062
SELECT tab1.col0 / + col2 + col2 / - col1 col0 FROM tab1
----
-2
-4
-7

onlyif mysql # use DIV operator for integer division
query I rowsort label-6063
SELECT ALL - col1 * - col0 * col1 + - col1 DIV - tab1.col1 - - tab1.col1 col0 FROM tab1
----
13534
2055
6411

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6063
SELECT ALL - col1 * - col0 * col1 + - col1 / - tab1.col1 - - tab1.col1 col0 FROM tab1
----
13534
2055
6411

query I rowsort
SELECT + + cor0.col0 + - col2 * - col1 AS col1 FROM tab2 cor0
----
1612
725
844

query I rowsort
SELECT + col0 * col1 + col0 * col2 + cor0.col1 FROM tab0 AS cor0
----
15488
2942
3527

query I rowsort
SELECT DISTINCT + col1 * - col2 * - col2 FROM tab0 AS cor0
----
611884
93654
97

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 > ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN NULL AND col0
----

query I rowsort
SELECT - col2 * + col1 * col1 FROM tab2 AS cor0
----
-10982
-25947
-90506

query I rowsort
SELECT + col1 * - 23 * cor0.col1 + 5 AS col2 FROM tab1 AS cor0
----
-15543
-2295
-3882

query I rowsort
SELECT - col1 * + 25 + - cor0.col0 AS col1 FROM tab2 AS cor0
----
-1553
-504
-782

query I rowsort
SELECT - 21 * + col0 + + cor0.col0 FROM tab2 AS cor0
----
-140
-1560
-1580

query I rowsort
SELECT ALL + + col0 * 25 + cor0.col2 FROM tab2 AS cor0
----
1976
2013
202

query I rowsort
SELECT DISTINCT - col0 * cor0.col1 + + col2 AS col1 FROM tab1 cor0
----
-24
-583
-944

query I rowsort
SELECT + - 52 + + ( cor0.col1 ) FROM tab2 AS cor0
----
-21
-35
7

query I rowsort
SELECT - + 55 + col0 * col2 FROM tab1 AS cor0
----
107
3593
7625

query I rowsort
SELECT DISTINCT - 4 * + cor0.col1 AS col2 FROM tab2 AS cor0
----
-124
-236
-68

query I rowsort
SELECT - tab2.col2 + - 42 AS col2 FROM tab2
----
-68
-69
-80

onlyif mysql # use DIV operator for integer division
query I rowsort label-6079
SELECT ALL + col2 DIV 93 + - col2 * - col0 AS col0 FROM tab1
----
162
3648
7681

skipif mysql # not compatible
query I rowsort label-6079
SELECT ALL + col2 / 93 + - col2 * - col0 AS col0 FROM tab1
----
162
3648
7681

query I rowsort
SELECT DISTINCT ( - col2 + col1 ) FROM tab0
----
53
9
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 35 col2 FROM tab1
----
35

query I rowsort
SELECT ALL + - 39 - 53 AS col2 FROM tab1 AS cor0
----
-92
-92
-92

query I rowsort
SELECT + col2 + col2 * + col0 FROM tab2 cor0
----
2054
216
3040

query I rowsort
SELECT col0 + 93 FROM tab0 AS cor0
----
117
128
182

query I rowsort
SELECT - - col2 + col2 * + col0 FROM tab1 AS cor0
----
216
3705
7776

onlyif mysql # use DIV operator for integer division
query I rowsort label-6086
SELECT + col0 DIV + col0 col2 FROM tab1
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6086
SELECT + col0 / + col0 col2 FROM tab1
----
1
1
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6087
SELECT col2 / CAST( NULL AS SIGNED ) + col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6087
SELECT col2 / CAST ( NULL AS INTEGER ) + col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 * + tab2.col2 AS col2 FROM tab2
----
-1444
-676
-729

onlyif mysql # use DIV operator for integer division
query I rowsort label-6089
SELECT col2 DIV + col2 + + col2 AS col1 FROM tab0
----
2
34
83

skipif mysql # not compatible
query I rowsort label-6089
SELECT col2 / + col2 + + col2 AS col1 FROM tab0
----
2
34
83

query I rowsort
SELECT ALL - 5 AS col0 FROM tab0, tab1 AS cor0, tab0 cor1
----
27 values hashing to 4f346dd2f65047c836c6957f80f0ef9e

query I rowsort
SELECT DISTINCT - col0 * 13 FROM tab0 cor0
----
-1157
-312
-455

onlyif mysql # use DIV operator for integer division
query I rowsort label-6092
SELECT DISTINCT col1 + cor0.col1 DIV 67 AS col0 FROM tab2 AS cor0
----
17
31
59

skipif mysql # not compatible
query I rowsort label-6092
SELECT DISTINCT col1 + cor0.col1 / 67 AS col0 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT ALL + ( 68 ) AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 599bee15ac4cc39b859854e07dfe7990

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6094
SELECT - col0 * CAST( NULL AS DECIMAL ) - + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6094
SELECT - col0 * CAST ( NULL AS REAL ) - + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + cor1.col0 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a

query I rowsort
SELECT - col0 * 46 * col1 AS col0 FROM tab2 AS cor0
----
-211692
-61778
-9982

query I rowsort
SELECT DISTINCT 53 + col1 * col0 - + tab2.col1 FROM tab2
----
1379
239
4596

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6098
SELECT ALL - CAST( NULL AS SIGNED ) * ( + col0 ) * col1 - col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6098
SELECT ALL - CAST ( NULL AS INTEGER ) * ( + col0 ) * col1 - col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - ( tab2.col1 ) + col0 - col2 AS col0 FROM tab2
----
-51
-7
24

query I rowsort
SELECT - ( + ( col1 ) ) * col1 AS col0 FROM tab2 AS cor0
----
-289
-3481
-961

query I rowsort
SELECT ALL + - 3 * col1 AS col2 FROM tab0 AS cor0
----
-258
-273
-291

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( cor0.col1 ) + + col1 col1 FROM tab0 AS cor0
----
172
182
194

query I rowsort
SELECT + 53 * cor0.col1 + - 55 AS col0 FROM tab0 AS cor0
----
4503
4768
5086

query I rowsort
SELECT - col0 * col1 + + ( 23 ) FROM tab0 AS cor0
----
-2041
-3372
-8076

query I rowsort
SELECT - col2 * + 50 AS col0 FROM tab0 AS cor0
----
-1650
-4100
-50

query I rowsort
SELECT cor0.col1 + 29 * + col1 FROM tab1 AS cor0
----
300
390
780

onlyif mysql # use DIV operator for integer division
query I rowsort label-6107
SELECT + - col1 DIV - 83 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6107
SELECT + - col1 / - 83 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT + 15 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 71dda9a71fc978ea7b0ac5d8cd2ef1f0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6109
SELECT ALL col2 * col0 DIV - col1 AS col0 FROM tab0
----
-80
-9
0

skipif mysql # not compatible
query I rowsort label-6109
SELECT ALL col2 * col0 / - col1 AS col0 FROM tab0
----
-80
-9
0

query I rowsort
SELECT + + col1 * - 50 FROM tab0 AS cor0
----
-4300
-4550
-4850

onlyif mysql # use DIV operator for integer division
query I rowsort label-6111
SELECT ALL tab2.col0 * col2 DIV col0 col0 FROM tab2
----
26
27
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6111
SELECT ALL tab2.col0 * col2 / col0 col0 FROM tab2
----
26
27
38

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6112
SELECT ALL - 77 + - col0 + CAST( NULL AS DECIMAL ) / + 80 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6112
SELECT ALL - 77 + - col0 + CAST ( NULL AS REAL ) / + 80 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - 91 + - col1 AS col2 FROM tab1 AS cor0
----
-101
-104
-117

query I rowsort
SELECT 62 + + col2 * - col2 + 38 * - col0 * + cor0.col1 AS col0 FROM tab0 AS cor0
----
-128949
-314424
-79459

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + col2 * - col2 - 55 col1 FROM tab1 AS cor0
----
-2968
-3240
-9191

query I rowsort
SELECT ALL - - ( 74 ) FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31

query I rowsort
SELECT DISTINCT - + col1 * + ( col1 ) FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT ALL - col2 * ( col1 ) * - cor0.col2 FROM tab0 cor0
----
611884
93654
97

query I rowsort
SELECT + - col1 + ( + col2 ) FROM tab1 AS cor0
----
28
47
83

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6120
SELECT DISTINCT + col0 + + CAST( NULL AS DECIMAL ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6120
SELECT DISTINCT + col0 + + CAST ( NULL AS REAL ) AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + col0 + 89 * - 35 AS col1 FROM tab1 AS cor0
----
-3035
-3051
-3112

query I rowsort
SELECT ALL + - col2 - - ( col2 ) FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT ALL col1 * ( col1 ) AS col1 FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT ALL - col2 - - 9 * + col2 FROM tab1 AS cor0
----
432
456
768

onlyif mysql # use DIV operator for integer division
query I rowsort label-6125
SELECT ALL 37 * col1 + col2 DIV - 6 AS col1 FROM tab1
----
361
465
953

skipif mysql # not compatible
query I rowsort label-6125
SELECT ALL 37 * col1 + col2 / - 6 AS col1 FROM tab1
----
361
465
953

query I rowsort
SELECT ALL 26 + + 99 - col0 * - tab0.col1 FROM tab0
----
2189
3520
8224

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - col1 - - tab0.col1 col2 FROM tab0
----
-1978
-3298
-8008

query I rowsort
SELECT DISTINCT + 17 - col1 AS col2 FROM tab1
----
-9
4
7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6129
SELECT - CAST( NULL AS SIGNED ) * + cor0.col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6129
SELECT - CAST ( NULL AS INTEGER ) * + cor0.col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6130
SELECT DISTINCT CAST( NULL AS SIGNED ) + cor0.col1 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6130
SELECT DISTINCT CAST ( NULL AS INTEGER ) + cor0.col1 FROM tab0 cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6131
SELECT + - CAST( 35 AS SIGNED ) - col2 col1 FROM tab2 AS cor0
----
-61
-62
-73

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6131
SELECT + - CAST ( 35 AS INTEGER ) - col2 col1 FROM tab2 AS cor0
----
-61
-62
-73

onlyif mysql # use DIV operator for integer division
query I rowsort label-6132
SELECT DISTINCT + - ( cor0.col2 ) * col0 + 58 DIV col1 FROM tab0 AS cor0
----
-35
-7298
-792

skipif mysql # not compatible
query I rowsort label-6132
SELECT DISTINCT + - ( cor0.col2 ) * col0 + 58 / col1 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT ALL - col1 + - col1 * + col1 FROM tab0 AS cor0
----
-7482
-8372
-9506

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 54 col2 FROM tab0 cor0
----
54

query I rowsort
SELECT 56 * - 0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + cor0.col1 + col0 * + 55 + col2 AS col0 FROM tab0 AS cor0
----
1439
2023
5068

query I rowsort
SELECT ALL col0 * col2 * col1 FROM tab2 AS cor0
----
119652
51034
5859

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6138
SELECT DISTINCT cor0.col1 + col1 * CAST( col0 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
1360
248
4661

skipif mysql # not compatible
query I rowsort label-6138
SELECT DISTINCT cor0.col1 + col1 * CAST ( col0 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
1360
248
4661

query I rowsort
SELECT + col0 * + col2 + col2 + col0 AS col1 FROM tab0 AS cor0
----
71
7469
849

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 14 + col1 * - 47 + - col0 col0 FROM tab1 AS cor0
----
-1211
-520
-677

query I rowsort
SELECT DISTINCT - - col0 * - col0 * col2 FROM tab2 AS cor0
----
-1323
-158184
-237158

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + - col2 + - ( + col2 + cor0.col0 ) col0 FROM tab1 AS cor0
----
-165
-235
-368

onlyif mysql # use DIV operator for integer division
query I rowsort label-6143
SELECT + col1 + col2 + 58 DIV col1 AS col0 FROM tab0 AS cor0
----
119
173
98

skipif mysql # not compatible
query I rowsort label-6143
SELECT + col1 + col2 + 58 / col1 AS col0 FROM tab0 AS cor0
----
119
173
98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6144
SELECT ALL col1 * col1 + + CAST( NULL AS SIGNED ) + - col2 * + col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6144
SELECT ALL col1 * col1 + + CAST ( NULL AS INTEGER ) + - col2 * + col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 24 * - col0 AS col2 FROM tab1
----
-1536
-1920
-72

query I rowsort
SELECT - col0 - + col2 * col2 FROM tab2 AS cor0
----
-1523
-736
-754

query I rowsort
SELECT + + 52 + cor0.col1 FROM tab2 AS cor0
----
111
69
83

query I rowsort
SELECT DISTINCT - + col0 * + cor0.col2 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT - col1 + col1 * + 19 AS col0 FROM tab2 AS cor0
----
1062
306
558

query I rowsort
SELECT ALL - 77 AS col0 FROM tab0 AS cor0
----
-77
-77
-77

onlyif mysql # use DIV operator for integer division
query I rowsort label-6151
SELECT + col0 DIV - col1 + cor0.col1 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-6151
SELECT + col0 / - col1 + cor0.col1 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT DISTINCT + tab0.col2 - + tab0.col1 * tab0.col0 AS col0 FROM tab0
----
-2031
-3394
-8017

onlyif mysql # use DIV operator for integer division
query I rowsort label-6153
SELECT - + col0 + - col0 DIV - col0 AS col1 FROM tab0 AS cor0
----
-23
-34
-88

skipif mysql # not compatible
query I rowsort label-6153
SELECT - + col0 + - col0 / - col0 AS col1 FROM tab0 AS cor0
----
-23
-34
-88

onlyif mysql # use DIV operator for integer division
query I rowsort label-6154
SELECT + col1 DIV 72 + 55 AS col1 FROM tab0 AS cor0
----
56
56
56

skipif mysql # not compatible
query I rowsort label-6154
SELECT + col1 / 72 + 55 AS col1 FROM tab0 AS cor0
----
56
56
56

query I rowsort
SELECT DISTINCT + 8 + col0 + - tab2.col2 AS col1 FROM tab2
----
-12
49
60

onlyif mysql # use DIV operator for integer division
query I rowsort label-6156
SELECT 43 DIV cor0.col2 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 362eac1f51d92cc1c590be10bddae650

skipif mysql # not compatible
query I rowsort label-6156
SELECT 43 / cor0.col2 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 362eac1f51d92cc1c590be10bddae650

query I rowsort
SELECT tab1.col0 * col0 * - tab1.col1 FROM tab1
----
-234
-40960
-83200

query I rowsort
SELECT + 96 * - tab0.col2 AS col0 FROM tab0
----
-3168
-7872
-96

query I rowsort
SELECT DISTINCT 50 + - col2 AS col1 FROM tab2
----
12
23
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 99 * - col1 col2 FROM tab2
----
1683
3069
5841

query I rowsort
SELECT + col2 + - col1 * + cor0.col2 FROM tab1 cor0
----
-1152
-1350
-513

query I rowsort
SELECT DISTINCT + + ( 3 ) + col1 * + col0 FROM tab2 AS cor0
----
1346
220
4605

query I rowsort
SELECT DISTINCT - ( ( - col1 ) ) - col2 * - col2 AS col2 FROM tab2 cor0
----
1461
735
760

onlyif mysql # use DIV operator for integer division
query I rowsort label-6164
SELECT col0 + + col2 DIV - col2 AS col1 FROM tab0
----
23
34
88

skipif mysql # not compatible
query I rowsort label-6164
SELECT col0 + + col2 / - col2 AS col1 FROM tab0
----
23
34
88

query I rowsort
SELECT + ( - 8 ) + - col0 FROM tab2 AS cor0
----
-15
-86
-87

query I rowsort
SELECT DISTINCT - ( - 0 ) AS col2 FROM tab2 cor0
----
0

query I rowsort
SELECT DISTINCT + - 91 * col0 * + col2 - col1 AS col0 FROM tab0 AS cor0
----
-3282
-664209
-72158

query I rowsort
SELECT + ( col2 ) + - col2 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - 52 * - col2 AS col0 FROM tab1 AS cor0
----
2808
2964
4992

query I rowsort
SELECT ALL + + 35 * col2 + col1 + + col2 FROM tab0 AS cor0
----
1274
133
3043

query I rowsort
SELECT ALL - + col2 * - cor0.col1 + col0 AS col2 FROM tab0 AS cor0
----
132
2862
7551

query I rowsort
SELECT ALL - ( col2 ) * - col2 FROM tab2 cor0
----
1444
676
729

query I rowsort
SELECT DISTINCT + 48 + col1 AS col2 FROM tab2 AS cor0
----
107
65
79

query I rowsort
SELECT ALL - 49 + col1 AS col1 FROM tab2 AS cor0
----
-18
-32
10

query I rowsort
SELECT + cor0.col0 FROM tab0, tab2 cor0, tab0 cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

onlyif mysql # use DIV operator for integer division
query I rowsort label-6176
SELECT col0 DIV 85 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6176
SELECT col0 / 85 AS col0 FROM tab1
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6177
SELECT - col1 DIV 61 col2 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6177
SELECT - col1 / 61 col2 FROM tab1
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6178
SELECT + col2 * CAST( col0 + col0 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
14596
1584
70

skipif mysql # not compatible
query I rowsort label-6178
SELECT + col2 * CAST ( col0 + col0 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
14596
1584
70

query I rowsort
SELECT col2 - 19 * col0 AS col1 FROM tab0 AS cor0
----
-1609
-423
-664

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * col2 + col2 col2 FROM tab1 AS cor0
----
2970
3306
9312

onlyif mysql # use DIV operator for integer division
query I rowsort label-6181
SELECT DISTINCT 98 DIV + cor0.col1 FROM tab2, tab2 cor0, tab0 cor1
----
1
3
5

skipif mysql # not compatible
query I rowsort label-6181
SELECT DISTINCT 98 / + cor0.col1 FROM tab2, tab2 cor0, tab0 cor1
----
1
3
5

query I rowsort
SELECT 93 + col1 * col2 AS col1 FROM tab1 AS cor0
----
1341
1497
663

query I rowsort
SELECT col2 + ( col2 ) * + ( 40 ) AS col2 FROM tab1 AS cor0
----
2214
2337
3936

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 41 * col1 + - col2 + 23 col1 FROM tab0 AS cor0
----
-3536
-3790
-3955

query I rowsort
SELECT - - ( - 80 ) * - col2 AS col0 FROM tab1 AS cor0
----
4320
4560
7680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - col1 col0 FROM tab1 cor0
----
100
169
676

query I rowsort
SELECT - col0 * + 71 * - col2 FROM tab2
----
13419
143988
213142

query I rowsort
SELECT col0 * 17 + col2 * ( - 62 ) AS col0 FROM tab1 AS cor0
----
-2446
-3297
-4592

query I rowsort
SELECT + - col0 * - 82 + col2 FROM tab1 AS cor0
----
300
5305
6656

query I rowsort
SELECT ALL - + 56 + + col1 FROM tab1 AS cor0
----
-30
-43
-46

query I rowsort
SELECT ALL - ( col2 ) * 29 + - 75 AS col0 FROM tab1 AS cor0
----
-1641
-1728
-2859

query I rowsort
SELECT ALL + 82 + + col2 * 27 + - col1 * col1 FROM tab0 AS cor0
----
-5985
-6423
-9300

query I rowsort
SELECT + ( - col2 ) * + 83 FROM tab1 AS cor0
----
-4482
-4731
-7968

query I rowsort
SELECT + 24 * col0 + 2 + + 84 FROM tab2 AS cor0
----
1958
1982
254

query I rowsort
SELECT 92 * + tab2.col2 + col0 FROM tab2
----
2470
2491
3575

onlyif mysql # use DIV operator for integer division
query I rowsort label-6196
SELECT col1 DIV + 61 col1 FROM tab1 cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6196
SELECT col1 / + 61 col1 FROM tab1 cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6197
SELECT DISTINCT + CAST( 32 AS SIGNED ) col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
32

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6197
SELECT DISTINCT + CAST ( 32 AS INTEGER ) col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
32

query I rowsort
SELECT ALL cor0.col1 + 10 * col2 FROM tab0 AS cor0
----
107
416
911

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * 7 col0 FROM tab2 AS cor0
----
-182
-189
-266

query I rowsort
SELECT ALL - col2 + - col1 * + col0 FROM tab2 AS cor0
----
-1381
-244
-4628

query I rowsort
SELECT DISTINCT + col1 * ( 32 ) * col2 - + col0 * - cor0.col0 FROM tab1 cor0
----
22336
44937
46336

query I rowsort
SELECT - col0 + - 88 FROM tab1 AS cor0
----
-152
-168
-91

query I rowsort
SELECT + col2 + 74 AS col1 FROM tab2 AS cor0
----
100
101
112

query I rowsort
SELECT DISTINCT - + col2 + 17 * - 32 AS col1 FROM tab0 AS cor0
----
-545
-577
-626

query I rowsort
SELECT DISTINCT col1 * col2 - - ( col2 + 72 ) AS col2 FROM tab1 AS cor0
----
1416
1530
699

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6206
SELECT - col2 * - CAST( - 27 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-1026
-702
-729

skipif mysql # not compatible
query I rowsort label-6206
SELECT - col2 * - CAST ( - 27 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-1026
-702
-729

onlyif mysql # use DIV operator for integer division
query I rowsort label-6207
SELECT ALL + ( col0 ) DIV + 73 + - col2 * + col0 * - col1 - 70 col0 FROM tab1 AS cor0
----
36410
4142
99771

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6207
SELECT ALL + ( col0 ) / + 73 + - col2 * + col0 * - col1 - 70 col0 FROM tab1 AS cor0
----
36410
4142
99771

query I rowsort
SELECT + col1 * tab2.col2 * - 41 FROM tab2
----
-26486
-34317
-62894

query I rowsort
SELECT col0 - - col2 * - tab0.col1 AS col2 FROM tab0
----
-2814
-62
-7373

query I rowsort
SELECT - col0 * col1 * col0 + + col1 AS col0 FROM tab2
----
-106080
-1488
-358897

query I rowsort
SELECT DISTINCT + 19 FROM tab0, tab1 AS cor0
----
19

query I rowsort
SELECT ALL - col0 * 76 FROM tab2
----
-532
-5928
-6004

query I rowsort
SELECT + 68 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 599bee15ac4cc39b859854e07dfe7990

query I rowsort
SELECT DISTINCT - col0 * - cor0.col2 * - col0 + ( + cor0.col0 ) AS col1 FROM tab1 AS cor0
----
-233408
-483
-614320

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6215
SELECT - + CAST( NULL AS DECIMAL ) + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6215
SELECT - + CAST ( NULL AS REAL ) + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col1 + 36 * col2 AS col1 FROM tab2 cor0
----
1003
1385
995

query I rowsort
SELECT DISTINCT + ( - 47 ) AS col1 FROM tab0 AS cor0
----
-47

query I rowsort
SELECT + col2 * - 15 FROM tab2 AS cor0
----
-390
-405
-570

onlyif mysql # use DIV operator for integer division
query I rowsort label-6219
SELECT - col2 + 87 + - col0 DIV col1 col1 FROM tab1
----
-15
24
33

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6219
SELECT - col2 + 87 + - col0 / col1 col1 FROM tab1
----
-15
24
33

query I rowsort
SELECT col0 * - tab2.col0 * 55 + + tab2.col2 * 15 + ( + col0 ) FROM tab2
----
-2283
-334152
-342606

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2 cor0 CROSS JOIN tab2, tab1 AS cor1, tab1 AS cor2, tab0 cor3
----
3645 values hashing to f99537dcc805430f79ac82ef70a4bd59

query I rowsort
SELECT col1 * - col1 * col1 + col0 FROM tab1
----
-17573
-2117
-936

query I rowsort
SELECT ALL + + tab1.col1 + - cor0.col2 * cor0.col2 AS col1 FROM tab1, tab2, tab2 AS cor0, tab0
----
81 values hashing to 5eaa8e86940e1601feb64aa284724d3d

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6224
SELECT + 17 * 43 + col1 * CAST( 42 AS SIGNED ) col1 FROM tab1
----
1151
1277
1823

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6224
SELECT + 17 * 43 + col1 * CAST ( 42 AS INTEGER ) col1 FROM tab1
----
1151
1277
1823

query I rowsort
SELECT + 14 + 23 * - col2 FROM tab2
----
-584
-607
-860

query I rowsort
SELECT - - 70 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to c76157a7a7ec18de56823b2058b49f32

query I rowsort
SELECT DISTINCT - cor0.col2 AS col0 FROM tab1, tab2 AS cor0, tab2 cor1
----
-26
-27
-38

onlyif mysql # use DIV operator for integer division
query I rowsort label-6228
SELECT ALL col0 DIV 99 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6228
SELECT ALL col0 / 99 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT 38 * col0 AS col1 FROM tab2 AS cor0
----
266
2964
3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-6230
SELECT col1 * col1 + + col2 DIV - col0 AS col2 FROM tab1
----
100
168
658

skipif mysql # not compatible
query I rowsort label-6230
SELECT col1 * col1 + + col2 / - col0 AS col2 FROM tab1
----
100
168
658

query I rowsort
SELECT DISTINCT - 24 * cor0.col0 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
-1536
-1920
-72

query I rowsort
SELECT col1 - col2 * + 23 FROM tab2
----
-539
-590
-857

query I rowsort
SELECT - 15 * col2 - - 85 FROM tab1
----
-1355
-725
-770

onlyif mysql # use DIV operator for integer division
query I rowsort label-6234
SELECT - col0 * + col0 DIV cor0.col0 AS col2 FROM tab1 AS cor0
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-6234
SELECT - col0 * + col0 / cor0.col0 AS col2 FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT col0 * ( 72 * + col0 ) AS col2 FROM tab0 AS cor0
----
41472
570312
88200

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6236
SELECT col2 * + CAST( col1 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
2838
7462
97

skipif mysql # not compatible
query I rowsort label-6236
SELECT col2 * + CAST ( col1 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
2838
7462
97

skipif mysql # not compatible
query I rowsort
SELECT + col1 + CAST ( col1 * + col1 AS REAL ) FROM tab2 AS cor0
----
306
3540
992

query I rowsort
SELECT DISTINCT - col0 * - cor0.col0 * col1 AS col1 FROM tab1 AS cor0
----
234
40960
83200

query I rowsort
SELECT col0 * ( 68 ) AS col0 FROM tab1 AS cor0
----
204
4352
5440

query I rowsort
SELECT ALL col0 + ( ( - col1 ) ) * col0 FROM tab2 AS cor0
----
-1264
-210
-4524

query I rowsort
SELECT DISTINCT - - col0 * + col1 AS col1 FROM tab0 cor0
----
2064
3395
8099

query I rowsort
SELECT ALL - cor0.col1 AS col1 FROM tab0, tab0 AS cor0, tab0 cor1
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84

query I rowsort
SELECT ALL + col2 * - col1 + 42 * + col1 FROM tab2 cor0
----
465
68
944

query I rowsort
SELECT - + cor0.col1 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84

query I rowsort
SELECT DISTINCT 87 AS col0 FROM tab2, tab1 AS cor0
----
87

query I rowsort
SELECT DISTINCT - + cor0.col1 * cor0.col0 * cor0.col1 FROM tab0 cor0
----
-177504
-329315
-737009

onlyif mysql # use DIV operator for integer division
query I rowsort label-6247
SELECT - - col0 DIV col0 AS col1 FROM tab1 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6247
SELECT - - col0 / col0 AS col1 FROM tab1 cor0
----
1
1
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6248
SELECT DISTINCT col1 + CAST( NULL AS SIGNED ) + + col0 AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6248
SELECT DISTINCT col1 + CAST ( NULL AS INTEGER ) + + col0 AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - + col1 + + 17 FROM tab0 AS cor0
----
-69
-74
-80

query I rowsort
SELECT DISTINCT - cor0.col0 * col0 - col2 * + col1 AS col1 FROM tab2 AS cor0
----
-6887
-7618
-886

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - cor0.col1 + CAST ( + 37 AS REAL ) FROM tab2 AS cor0
----
-22
20
6

query I rowsort
SELECT 88 + ( cor0.col2 ) * - ( 50 + - col1 * - col2 ) AS col0 FROM tab0 AS cor0
----
-59
-615896
-95216

query I rowsort
SELECT cor0.col0 + col1 + + col1 AS col2 FROM tab0 AS cor0
----
196
229
271

onlyif mysql # use DIV operator for integer division
query I rowsort label-6254
SELECT - 3 - - ( - col1 ) DIV ( col2 * + col2 ) col1 FROM tab0 AS cor0
----
-100
-3
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6254
SELECT - 3 - - ( - col1 ) / ( col2 * + col2 ) col1 FROM tab0 AS cor0
----
-100
-3
-3

query I rowsort
SELECT DISTINCT + - 26 FROM tab0 AS cor0
----
-26

query I rowsort
SELECT - + 14 + 17 + + col1 * - 3 * - cor0.col1 AS col2 FROM tab1 AS cor0
----
2031
303
510

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 - - col2 * col0 col0 FROM tab1 AS cor0
----
136
3638
7667

query I rowsort
SELECT DISTINCT - ( 81 ) * col2 FROM tab1 AS cor0
----
-4374
-4617
-7776

onlyif mysql # use DIV operator for integer division
query I rowsort label-6259
SELECT + - col2 DIV col0 + - col0 + - col0 FROM tab0 AS cor0
----
-178
-49
-70

skipif mysql # not compatible
query I rowsort label-6259
SELECT + - col2 / col0 + - col0 + - col0 FROM tab0 AS cor0
----
-178
-49
-70

onlyif mysql # use DIV operator for integer division
query I rowsort label-6260
SELECT - col0 DIV - cor0.col0 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6260
SELECT - col0 / - cor0.col0 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT - ( - 56 ) * - col0 - + 15 FROM tab1 AS cor0
----
-183
-3599
-4495

query I rowsort
SELECT ALL col2 * + ( - col0 ) FROM tab0
----
-35
-7298
-792

query I rowsort
SELECT ALL 99 FROM tab2, tab2 AS cor0
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db

query I rowsort
SELECT ALL + 89 * col2 + col0 - col0 FROM tab0 AS cor0
----
2937
7298
89

query I rowsort
SELECT ALL - 34 * + col2 + col0 + col2 AS col1 FROM tab2 AS cor0
----
-1175
-780
-884

query I rowsort
SELECT ALL col2 * col2 + ( + col0 + + col2 ) FROM tab0 AS cor0
----
1146
37
6895

query I rowsort
SELECT ALL + - col1 * col2 + cor0.col1 * - col1 FROM tab1 AS cor0
----
-1417
-2080
-670

query I rowsort
SELECT DISTINCT ( + col1 ) + + ( + col1 ) AS col1 FROM tab1 AS cor0
----
20
26
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - col0 ) + 19 + - ( col0 ) col2 FROM tab0 cor0
----
19

query I rowsort
SELECT 90 + col2 FROM tab2 AS cor0
----
116
117
128

query I rowsort
SELECT ALL + + cor0.col1 * - col0 - 57 * - col2 * + col1 FROM tab0 AS cor0
----
159702
2134
417235

onlyif mysql # use DIV operator for integer division
query I rowsort label-6272
SELECT ALL col1 + cor0.col0 DIV + 41 AS col2 FROM tab2 AS cor0
----
18
31
60

skipif mysql # not compatible
query I rowsort label-6272
SELECT ALL col1 + cor0.col0 / + 41 AS col2 FROM tab2 AS cor0
----
18
31
60

query I rowsort
SELECT DISTINCT + 92 + col1 * cor0.col2 AS col1 FROM tab2 cor0
----
1626
738
929

query I rowsort
SELECT - 42 * col2 + 53 FROM tab1 AS cor0
----
-2215
-2341
-3979

onlyif mysql # use DIV operator for integer division
query I rowsort label-6275
SELECT ALL + - col0 DIV - col0 + + col0 * + col2 FROM tab2 AS cor0
----
190
2029
3003

skipif mysql # not compatible
query I rowsort label-6275
SELECT ALL + - col0 / - col0 + + col0 * + col2 FROM tab2 AS cor0
----
190
2029
3003

query I rowsort
SELECT - 25 * col2 + - col1 FROM tab2 AS cor0
----
-706
-709
-967

query I rowsort
SELECT DISTINCT - + 91 * col0 + col2 FROM tab0 cor0
----
-2151
-3184
-8017

query I rowsort
SELECT DISTINCT - + cor0.col0 + col1 + + 99 FROM tab2 AS cor0
----
123
37
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6279
SELECT ALL CAST( NULL AS SIGNED ) * col1 * - col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6279
SELECT ALL CAST ( NULL AS INTEGER ) * col1 * - col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6280
SELECT - CAST( NULL AS SIGNED ) + col2 * col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6280
SELECT - CAST ( NULL AS INTEGER ) + col2 * col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6281
SELECT DISTINCT 2 + + col1 DIV col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6281
SELECT DISTINCT 2 + + col1 / col1 FROM tab1 AS cor0
----
3

query I rowsort
SELECT ALL - 37 * + col0 AS col1 FROM tab2
----
-259
-2886
-2923

query I rowsort
SELECT - 39 + col1 FROM tab1
----
-13
-26
-29

query I rowsort
SELECT ALL + ( col2 + - col0 ) FROM tab1
----
-7
16
51

query I rowsort
SELECT - 85 FROM tab0, tab1 cor0
----
9 values hashing to 8ebc8ffafb1517ea04e3a6fc4059d88a

query I rowsort
SELECT + cor0.col0 * col2 * ( col0 * col0 ) FROM tab2 AS cor0
----
12338352
18735482
9261

query I rowsort
SELECT - col2 * - col2 * + ( + col2 + + col2 * 31 ) FROM tab1 AS cor0
----
28311552
5038848
5926176

query I rowsort
SELECT - - col1 * - col0 AS col1 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT - - cor0.col1 + col0 * col1 AS col2 FROM tab1 AS cor0
----
104
1053
650

query I rowsort
SELECT ALL - cor0.col0 * 87 AS col2 FROM tab0 cor0
----
-2088
-3045
-7743

onlyif mysql # use DIV operator for integer division
query I rowsort label-6291
SELECT col1 DIV 99 col0 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6291
SELECT col1 / 99 col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + col1 * ( - col0 ) * + col0 FROM tab1 AS cor0
----
-234
-40960
-83200

query I rowsort
SELECT - + col2 * + col0 + + col1 FROM tab1 AS cor0
----
-136
-3638
-7667

query I rowsort
SELECT DISTINCT - - col2 * col2 + - col2 * col0 AS col1 FROM tab0 AS cor0
----
-34
-574
297

query I rowsort
SELECT DISTINCT + col1 * - col2 AS col1 FROM tab1 cor0
----
-1248
-1404
-570

query I rowsort
SELECT ALL + col1 * 58 + col0 FROM tab2 AS cor0
----
1065
1805
3500

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - 74 col0 FROM tab1 AS cor0
----
-48
-61
-64

query I rowsort
SELECT ALL + + col0 + 18 AS col0 FROM tab0 AS cor0
----
107
42
53

onlyif mysql # use DIV operator for integer division
query I rowsort label-6299
SELECT DISTINCT + - col1 * - col1 DIV col1 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-6299
SELECT DISTINCT + - col1 * - col1 / col1 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT - cor0.col2 * - col2 + - col0 FROM tab0 AS cor0
----
-34
1065
6635

query I rowsort
SELECT ALL - + 46 + 81 * - col1 FROM tab2 AS cor0
----
-1423
-2557
-4825

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 * col2 + + col0 col0 FROM tab1 AS cor0
----
165
3712
7760

query I rowsort
SELECT ALL - col2 + + ( + col1 + + col1 ) * col0 AS col1 FROM tab2
----
2648
407
9178

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 57 + + col0 col0 FROM tab0 AS cor0
----
146
81
92

onlyif mysql # use DIV operator for integer division
query I rowsort label-6305
SELECT + 86 * col2 + - col2 DIV - 55 AS col2 FROM tab2 AS cor0
----
2236
2322
3268

skipif mysql # not compatible
query I rowsort label-6305
SELECT + 86 * col2 + - col2 / - 55 AS col2 FROM tab2 AS cor0
----
2236
2322
3268

query I rowsort
SELECT DISTINCT col0 * + 45 * col2 FROM tab2 AS cor0
----
135090
8505
91260

query I rowsort
SELECT DISTINCT + + 0 + col0 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT ALL + - ( + cor0.col0 ) * - col2 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT ALL - ( col2 ) * + col1 + + col2 AS col0 FROM tab0 AS cor0
----
-2805
-7380
-96

query I rowsort
SELECT col0 + - 69 FROM tab2 AS cor0
----
-62
10
9

query I rowsort
SELECT ALL - + ( col1 ) + - col0 AS col1 FROM tab0 cor0
----
-110
-132
-180

query I rowsort
SELECT + col1 + 26 AS col2 FROM tab0 cor0
----
112
117
123

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 69 col2 FROM tab0 AS cor0
----
69
69
69

onlyif mysql # use DIV operator for integer division
query I rowsort label-6314
SELECT + col2 DIV cor0.col1 + col2 AS col0 FROM tab2 AS cor0
----
26
27
40

skipif mysql # not compatible
query I rowsort label-6314
SELECT + col2 / cor0.col1 + col2 AS col0 FROM tab2 AS cor0
----
26
27
40

query I rowsort
SELECT DISTINCT + ( + col2 ) + cor0.col2 AS col0 FROM tab2 AS cor0
----
52
54
76

query I rowsort
SELECT + + 3 AS col2 FROM tab1 cor0
----
3
3
3

query I rowsort
SELECT ALL col2 + col1 * col1 * col0 AS col0 FROM tab0 AS cor0
----
177537
329316
737091

onlyif mysql # use DIV operator for integer division
query I rowsort label-6318
SELECT + cor0.col1 DIV cor0.col1 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6318
SELECT + cor0.col1 / cor0.col1 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT ALL - 41 AS col1 FROM tab2, tab1 AS cor0, tab2 AS cor1, tab0 AS cor2
----
81 values hashing to 007857b49fbf51962923f3da53f42f2b

query I rowsort
SELECT + col1 - 97 AS col0 FROM tab0
----
-11
-6
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6321
SELECT ALL CAST( 63 * col0 AS SIGNED ) + + col2 FROM tab2
----
468
4940
5015

skipif mysql # not compatible
query I rowsort label-6321
SELECT ALL CAST ( 63 * col0 AS INTEGER ) + + col2 FROM tab2
----
468
4940
5015

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * 39 + col0 col2 FROM tab2 AS cor0
----
1060
1092
1561

query I rowsort
SELECT + 95 AS col2 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 14faa6dda52e3dfe1f5db2579c274a7e

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6324
SELECT cor0.col2 + + CAST( NULL AS DECIMAL ) * - 3 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6324
SELECT cor0.col2 + + CAST ( NULL AS REAL ) * - 3 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * 67 col0 FROM tab0
----
5762
6097
6499

query I rowsort
SELECT DISTINCT - + tab2.col2 - + ( cor0.col1 ) * - tab2.col2 AS col2 FROM tab2, tab1, tab2 cor0
----
9 values hashing to 2b458bfc0b1295de81f2bd1b63a0325b

query I rowsort
SELECT DISTINCT - cor0.col0 AS col0 FROM tab1, tab0, tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT ALL + col1 - 15 * + col2 AS col1 FROM tab2
----
-331
-374
-553

query I rowsort
SELECT DISTINCT - + ( + col1 ) * + col2 AS col1 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT ALL cor0.col2 + col1 * - col1 FROM tab2 AS cor0
----
-251
-3455
-934

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 87 col2 FROM tab2 AS cor0
----
87
87
87

query I rowsort
SELECT ALL - + 54 * col0 AS col1 FROM tab0 AS cor0
----
-1296
-1890
-4806

query I rowsort
SELECT 33 + + col0 AS col1 FROM tab0
----
122
57
68

query I rowsort
SELECT ( - col2 ) - - tab0.col0 FROM tab0
----
-9
34
7

query I rowsort
SELECT ALL 48 * - col0 + + col2 * - col1 FROM tab0 AS cor0
----
-11734
-1777
-3990

onlyif mysql # use DIV operator for integer division
query I rowsort label-6336
SELECT DISTINCT - cor0.col0 - + col0 DIV col0 FROM tab1 AS cor0
----
-4
-65
-81

skipif mysql # not compatible
query I rowsort label-6336
SELECT DISTINCT - cor0.col0 - + col0 / col0 FROM tab1 AS cor0
----
-4
-65
-81

query I rowsort
SELECT DISTINCT + - 9 + - col1 * col0 FROM tab0 AS cor0
----
-2073
-3404
-8108

query I rowsort
SELECT col1 + col1 * + col2 FROM tab1 AS cor0
----
1261
1430
580

onlyif mysql # use DIV operator for integer division
query I rowsort label-6339
SELECT ALL - + col1 DIV + col0 FROM tab0 AS cor0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-6339
SELECT ALL - + col1 / + col0 FROM tab0 AS cor0
----
-1
-2
-3

query I rowsort
SELECT DISTINCT + 2 + + cor0.col1 * - col0 AS col0 FROM tab0 AS cor0
----
-2062
-3393
-8097

query I rowsort
SELECT col1 + + col2 + + col2 AS col1 FROM tab2
----
111
85
93

query I rowsort
SELECT col0 * col2 + col2 * + col1 + col1 AS col0 FROM tab2 AS cor0
----
1057
3621
3665

query I rowsort
SELECT col2 + col2 + - cor0.col1 FROM tab1 AS cor0
----
104
179
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-6344
SELECT + 2 DIV tab0.col1 AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6344
SELECT + 2 / tab0.col1 AS col0 FROM tab0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6345
SELECT ALL + ( col1 ) DIV + col2 - col1 FROM tab0 AS cor0
----
-84
-90
0

skipif mysql # not compatible
query I rowsort label-6345
SELECT ALL + ( col1 ) / + col2 - col1 FROM tab0 AS cor0
----
-84
-90
0

query I rowsort
SELECT ALL + 48 AS col1 FROM tab0, tab0 cor0
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b

onlyif mysql # use DIV operator for integer division
query I rowsort label-6347
SELECT DISTINCT - cor0.col2 DIV - 90 + col1 * col2 - + col2 AS col0 FROM tab2 AS cor0
----
1508
608
810

skipif mysql # not compatible
query I rowsort label-6347
SELECT DISTINCT - cor0.col2 / - 90 + col1 * col2 - + col2 AS col0 FROM tab2 AS cor0
----
1508
608
810

query I rowsort
SELECT DISTINCT + 74 * - cor0.col0 + - cor0.col0 FROM tab2 cor0
----
-525
-5850
-5925

query I rowsort
SELECT DISTINCT + 50 * + cor0.col0 + - cor0.col2 AS col1 FROM tab1 AS cor0
----
3143
3904
96

query I rowsort
SELECT DISTINCT - 51 + col2 * col0 * - col0 AS col0 FROM tab0 AS cor0
----
-1276
-19059
-649573

query I rowsort
SELECT ALL + + cor0.col1 * col1 - - cor0.col0 AS col0 FROM tab0 AS cor0
----
7420
8370
9444

query I rowsort
SELECT - + 63 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5a7845ef6e239561caf9a17a28e274b5

query I rowsort
SELECT + col2 + 73 AS col1 FROM tab0
----
106
155
74

query I rowsort
SELECT + 60 + col0 FROM tab0
----
149
84
95

query I rowsort
SELECT ALL 31 + + col1 AS col1 FROM tab1 AS cor0
----
41
44
57

query I rowsort
SELECT - tab1.col0 * + 4 + col1 FROM tab1
----
-246
-307
14

query I rowsort
SELECT + col1 * 75 AS col1 FROM tab1 AS cor0
----
1950
750
975

query I rowsort
SELECT - cor0.col1 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2
----
9 values hashing to 58ed467a9a332e4d7bfaa9abdbbd063f

onlyif mysql # use DIV operator for integer division
query I rowsort label-6359
SELECT ALL - - col1 DIV + col1 + col2 AS col1 FROM tab2 AS cor0
----
27
28
39

skipif mysql # not compatible
query I rowsort label-6359
SELECT ALL - - col1 / + col1 + col2 AS col1 FROM tab2 AS cor0
----
27
28
39

query I rowsort
SELECT + + col1 + + col0 * - col1 * - col1 AS col2 FROM tab1 AS cor0
----
13533
2054
6410

query I rowsort
SELECT DISTINCT col1 * - cor0.col0 - - col1 FROM tab2 AS cor0
----
-1326
-186
-4543

query III rowsort
SELECT * FROM tab1 WHERE NOT ( col0 ) NOT IN ( col0 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( + col2 ) IN ( + col2 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

query I rowsort
SELECT - col1 + col0 * - col2 FROM tab1
----
-188
-3658
-7693

query I rowsort
SELECT - col2 - col2 * + col2 AS col0 FROM tab1 AS cor0 WHERE NOT col2 * col2 < + col0
----
-2970
-3306
-9312

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL IN ( + col2 - cor0.col2 )
----

query I rowsort
SELECT DISTINCT col2 + + col0 * tab0.col1 AS col1 FROM tab0
----
2097
3396
8181

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + + col1 col2 FROM tab1
----
29
74
93

onlyif mysql # use DIV operator for integer division
query I rowsort label-6369
SELECT DISTINCT + col2 + + col0 + col1 DIV + col0 AS col0 FROM tab2
----
104
117
38

skipif mysql # not compatible
query I rowsort label-6369
SELECT DISTINCT + col2 + + col0 + col1 / + col0 AS col0 FROM tab2
----
104
117
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-6370
SELECT ALL col1 + + col1 DIV col0 col2 FROM tab2
----
17
35
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6370
SELECT ALL col1 + + col1 / col0 col2 FROM tab2
----
17
35
59

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-6372
SELECT DISTINCT - col2 + tab0.col0 DIV col0 + col0 AS col0 FROM tab0
----
-8
35
8

skipif mysql # not compatible
query I rowsort label-6372
SELECT DISTINCT - col2 + tab0.col0 / col0 + col0 AS col0 FROM tab0
----
-8
35
8

onlyif mysql # use DIV operator for integer division
query I rowsort label-6373
SELECT DISTINCT + col0 + - col1 + + col0 DIV col0 FROM tab1
----
-22
55
68

skipif mysql # not compatible
query I rowsort label-6373
SELECT DISTINCT + col0 + - col1 + + col0 / col0 FROM tab1
----
-22
55
68

query I rowsort
SELECT - col2 + - col0 * tab2.col1 * col2 FROM tab2
----
-119678
-51072
-5886

query I rowsort
SELECT ALL - col2 + col2 * - cor0.col2 FROM tab1 AS cor0
----
-2970
-3306
-9312

query I rowsort
SELECT + - cor0.col0 + - col0 - - col1 FROM tab2 cor0
----
-141
-97
17

query I rowsort
SELECT ALL - cor0.col2 + col0 * - col2 + - cor0.col0 * col0 * col1 FROM tab1 AS cor0
----
-44665
-450
-90976

query I rowsort
SELECT DISTINCT - col0 + - col2 * - cor0.col2 FROM tab2 AS cor0
----
1365
598
722

query I rowsort
SELECT - col2 - - col1 AS col0 FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT ALL - - col0 * col0 * - col2 AS col0 FROM tab2 AS cor0
----
-1323
-158184
-237158

onlyif mysql # use DIV operator for integer division
query I rowsort label-6381
SELECT DISTINCT + - cor0.col2 - cor0.col2 DIV col2 FROM tab0 AS cor0
----
-2
-34
-83

skipif mysql # not compatible
query I rowsort label-6381
SELECT DISTINCT + - cor0.col2 - cor0.col2 / col2 FROM tab0 AS cor0
----
-2
-34
-83

query I rowsort
SELECT - col1 * col0 + + col0 AS col1 FROM tab1 AS cor0
----
-576
-75
-960

onlyif mysql # use DIV operator for integer division
query I rowsort label-6383
SELECT - col0 - tab0.col2 DIV tab0.col2 FROM tab0
----
-25
-36
-90

skipif mysql # not compatible
query I rowsort label-6383
SELECT - col0 - tab0.col2 / tab0.col2 FROM tab0
----
-25
-36
-90

query I rowsort
SELECT col2 + - tab2.col1 + col0 * + col2 FROM tab2
----
185
1995
3023

query I rowsort
SELECT - col2 + col1 + col2 * col1 * - col2 AS col1 FROM tab1 AS cor0
----
-119891
-32537
-75844

onlyif mysql # use DIV operator for integer division
query I rowsort label-6386
SELECT - col2 DIV 2 + col2 * + col1 FROM tab0 cor0
----
2822
7421
97

skipif mysql # not compatible
query I rowsort label-6386
SELECT - col2 / 2 + col2 * + col1 FROM tab0 cor0
----
2822
7421
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6387
SELECT - + col1 * - CAST( cor0.col1 AS SIGNED ) FROM tab1 AS cor0
----
100
169
676

skipif mysql # not compatible
query I rowsort label-6387
SELECT - + col1 * - CAST ( cor0.col1 AS INTEGER ) FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT DISTINCT 70 * col2 FROM tab1
----
3780
3990
6720

onlyif mysql # use DIV operator for integer division
query I rowsort label-6389
SELECT + - col1 + col1 * 15 DIV col2 FROM tab1 AS cor0
----
-11
-19
-8

skipif mysql # not compatible
query I rowsort label-6389
SELECT + - col1 + col1 * 15 / col2 FROM tab1 AS cor0
----
-11
-19
-8

query I rowsort
SELECT ALL 55 * 95 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 59ddfd1e99d29b6a8304272fca214c8f

query I rowsort
SELECT ALL - ( + col1 ) * col2 + - col1 FROM tab2 AS cor0
----
-1593
-663
-868

onlyif mysql # use DIV operator for integer division
query I rowsort label-6392
SELECT ALL - + ( - 30 ) DIV - cor0.col1 AS col1 FROM tab1 AS cor0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-6392
SELECT ALL - + ( - 30 ) / - cor0.col1 AS col1 FROM tab1 AS cor0
----
-1
-2
-3

query I rowsort
SELECT - 34 * + 44 - + tab0.col0 * 67 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 3eb28da87d4f81ce532a75cd8c7fc8cc

query I rowsort
SELECT + col0 + - ( col1 ) FROM tab1
----
-23
54
67

query I rowsort
SELECT - col2 * 8 * + tab0.col1 FROM tab0
----
-22704
-59696
-776

query I rowsort
SELECT - + cor0.col0 - + col2 FROM tab1 AS cor0
----
-121
-176
-57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 84 col1 FROM tab2 AS cor0
----
84
84
84

onlyif mysql # use DIV operator for integer division
query I rowsort label-6398
SELECT DISTINCT - col1 DIV + 55 + - col1 AS col2 FROM tab0
----
-87
-92
-98

skipif mysql # not compatible
query I rowsort label-6398
SELECT DISTINCT - col1 / + 55 + - col1 AS col2 FROM tab0
----
-87
-92
-98

query I rowsort
SELECT ALL 54 + tab0.col2 AS col1 FROM tab0
----
136
55
87

onlyif mysql # use DIV operator for integer division
query I rowsort label-6400
SELECT 17 * - 33 + tab2.col2 DIV + col0 FROM tab2
----
-558
-561
-561

skipif mysql # not compatible
query I rowsort label-6400
SELECT 17 * - 33 + tab2.col2 / + col0 FROM tab2
----
-558
-561
-561

onlyif mysql # use DIV operator for integer division
query I rowsort label-6401
SELECT tab0.col2 DIV + col2 + tab0.col0 + - col0 AS col0 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6401
SELECT tab0.col2 / + col2 + tab0.col0 + - col0 AS col0 FROM tab0
----
1
1
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6402
SELECT - CAST( - col2 AS SIGNED ) * col2 FROM tab1
----
2916
3249
9216

skipif mysql # not compatible
query I rowsort label-6402
SELECT - CAST ( - col2 AS INTEGER ) * col2 FROM tab1
----
2916
3249
9216

onlyif mysql # use DIV operator for integer division
query I rowsort label-6403
SELECT 40 DIV + 98 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6403
SELECT 40 / + 98 FROM tab1
----
0
0
0

query I rowsort
SELECT col1 + + col1 * + col0 + tab2.col2 AS col0 FROM tab2
----
1398
275
4687

query I rowsort
SELECT ALL 95 + + col1 AS col2 FROM tab1
----
105
108
121

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6406
SELECT DISTINCT col0 + 97 * col2 + CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6406
SELECT DISTINCT col0 + 97 * col2 + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 47 col0 FROM tab0
----
47
47
47

query I rowsort
SELECT + - cor0.col2 + + cor0.col0 FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT + 60 * col0 FROM tab2 cor0
----
420
4680
4740

query I rowsort
SELECT + 0 FROM tab1, tab0, tab1 cor0
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

query I rowsort
SELECT col2 * col1 * col2 AS col2 FROM tab2
----
22599
24548
39884

query I rowsort
SELECT ALL tab2.col1 * + col2 AS col1 FROM tab2
----
1534
646
837

query I rowsort
SELECT ( tab2.col2 ) * - col0 AS col2 FROM tab2
----
-189
-2028
-3002

query I rowsort
SELECT ALL - tab2.col0 AS col1 FROM tab2, tab2 cor0, tab2 cor1
----
27 values hashing to c82df1de3cb666224690a83f3d790d79

query I rowsort
SELECT + 59 * - col1 AS col2 FROM tab2
----
-1003
-1829
-3481

query I rowsort
SELECT col1 + col1 + + ( col0 * cor0.col1 ) AS col2 FROM tab2 cor0
----
1377
279
4720

query I rowsort
SELECT + + col2 * col0 + - col1 * - col2 FROM tab2 AS cor0
----
1026
3562
3648

query I rowsort
SELECT - col2 + - ( ( col0 ) ) FROM tab0 AS cor0
----
-171
-36
-57

query I rowsort
SELECT DISTINCT - - col0 + col0 * col1 * col1 + col2 FROM tab2 AS cor0
----
22948
271622
6761

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6420
SELECT DISTINCT + col2 * CAST( + 22 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
1804
22
726

skipif mysql # not compatible
query I rowsort label-6420
SELECT DISTINCT + col2 * CAST ( + 22 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
1804
22
726

query I rowsort
SELECT + col0 + + col1 * + col2 * col0 + col0 AS col1 FROM tab0 AS cor0
----
3465
664296
68160

query I rowsort
SELECT ALL col1 * 80 + + col2 AS col1 FROM tab1 cor0
----
1136
2134
857

query I rowsort
SELECT - col0 * col0 + + col1 + col1 AS col2 FROM tab2 cor0
----
-5966
-6207
13

query I rowsort
SELECT + ( col1 ) * col2 AS col0 FROM tab1 AS cor0
----
1248
1404
570

onlyif mysql # use DIV operator for integer division
query I rowsort label-6425
SELECT + - col1 + col2 DIV + col2 AS col1 FROM tab0 AS cor0
----
-85
-90
-96

skipif mysql # not compatible
query I rowsort label-6425
SELECT + - col1 + col2 / + col2 AS col1 FROM tab0 AS cor0
----
-85
-90
-96

query I rowsort
SELECT ALL + col1 * - col0 * + col1 FROM tab1 AS cor0
----
-13520
-2028
-6400

query I rowsort
SELECT DISTINCT - 1 * + 63 AS col2 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
-63

query I rowsort
SELECT ALL - cor0.col2 FROM tab2, tab2 AS cor0 CROSS JOIN tab0, tab1 cor1, tab2 AS cor2
----
243 values hashing to b98cc07e6d63e3c0583ed19f9e9ad2be

query I rowsort
SELECT + col0 * - col1 * - col0 + + col0 AS col2 FROM tab1
----
237
41024
83280

query I rowsort
SELECT ALL - col0 * + col1 + - cor0.col2 * col1 FROM tab0 AS cor0
----
-15561
-3492
-4902

query I rowsort
SELECT DISTINCT 64 AS col2 FROM tab2, tab0 cor0
----
64

query I rowsort
SELECT ALL 4 * + cor0.col2 AS col1 FROM tab1 AS cor0
----
216
228
384

query I rowsort
SELECT ALL - ( col2 ) * + col2 FROM tab0 cor0
----
-1
-1089
-6724

query I rowsort
SELECT - col2 + col2 * - col2 AS col1 FROM tab1 AS cor0
----
-2970
-3306
-9312

query I rowsort
SELECT DISTINCT + col1 * + cor0.col2 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT - 38 + ( + col0 ) * + cor0.col2 FROM tab0 AS cor0
----
-3
7260
754

query I rowsort
SELECT ALL ( cor0.col2 ) + col0 * - cor0.col1 FROM tab1 AS cor0
----
-24
-583
-944

query I rowsort
SELECT ALL col2 + ( + col0 ) * ( - col0 ) * col2 AS col1 FROM tab1 AS cor0
----
-233415
-432
-614304

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( col0 AS REAL ) + + col0 AS col1 FROM tab2 AS cor0
----
14
156
158

query I rowsort
SELECT DISTINCT - 70 + col2 + col1 AS col0 FROM tab0 AS cor0
----
103
28
49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 11 col0 FROM tab1 AS cor0
----
11
11
11

query I rowsort
SELECT ALL cor0.col2 * - cor0.col0 * - cor0.col1 + col2 FROM tab1 AS cor0
----
36537
4266
99936

query I rowsort
SELECT DISTINCT + ( col0 ) * - col1 AS col2 FROM tab1 AS cor0
----
-1040
-640
-78

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - ( + col0 ) + - CAST ( cor0.col1 AS REAL ) FROM tab0 AS cor0
----
-110
-132
-180

query I rowsort
SELECT - + ( - col2 ) * 94 AS col2 FROM tab1 AS cor0
----
5076
5358
9024

query I rowsort
SELECT DISTINCT - col0 * cor0.col1 * - col2 AS col1 FROM tab1 cor0
----
36480
4212
99840

query I rowsort
SELECT ALL 18 * col2 FROM tab2 cor0
----
468
486
684

query I rowsort
SELECT + 3 * - cor0.col0 AS col0 FROM tab2 AS cor0
----
-21
-234
-237

query I rowsort
SELECT ALL cor0.col0 * col0 * + col2 + - ( col2 ) AS col2 FROM tab0 AS cor0
----
1224
18975
649440

query I rowsort
SELECT DISTINCT col2 + 56 AS col0 FROM tab0 AS cor0
----
138
57
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-6451
SELECT + - col0 DIV + cor0.col1 + col2 AS col0 FROM tab2 AS cor0
----
25
27
34

skipif mysql # not compatible
query I rowsort label-6451
SELECT + - col0 / + cor0.col1 + col2 AS col0 FROM tab2 AS cor0
----
25
27
34

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6452
SELECT DISTINCT - + col2 * - CAST( col1 AS SIGNED ) + col2 FROM tab0 AS cor0
----
2871
7544
98

skipif mysql # not compatible
query I rowsort label-6452
SELECT DISTINCT - + col2 * - CAST ( col1 AS INTEGER ) + col2 FROM tab0 AS cor0
----
2871
7544
98

query I rowsort
SELECT col2 * - col2 + + cor0.col2 FROM tab0 cor0
----
-1056
-6642
0

query I rowsort
SELECT ALL + col2 * 85 + col0 * + col1 AS col2 FROM tab0 AS cor0
----
15069
3480
4869

query I rowsort
SELECT ALL - + col1 * + ( cor0.col2 ) + + col0 AS col1 FROM tab1 AS cor0
----
-1168
-1401
-506

query I rowsort
SELECT DISTINCT + col1 * 89 + col2 * - col2 AS col2 FROM tab1 AS cor0
----
-2359
-602
-8059

onlyif mysql # use DIV operator for integer division
query I rowsort label-6457
SELECT + 31 DIV col0 + - col1 DIV - 89 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6457
SELECT + 31 / col0 + - col1 / - 89 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT ALL - + 79 + col2 FROM tab1 AS cor0
----
-22
-25
17

query I rowsort
SELECT - - cor0.col0 * col1 * - col0 AS col1 FROM tab0 AS cor0
----
-118825
-49536
-720811

query I rowsort
SELECT col0 + 33 AS col1 FROM tab2
----
111
112
40

query I rowsort
SELECT ( 86 ) FROM tab2, tab1 AS cor0
----
9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6462
SELECT tab0.col2 + CAST( col0 AS SIGNED ) FROM tab0
----
171
36
57

skipif mysql # not compatible
query I rowsort label-6462
SELECT tab0.col2 + CAST ( col0 AS INTEGER ) FROM tab0
----
171
36
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 43 col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 199105619049271147956de52e7f5ed4

query I rowsort
SELECT tab2.col2 - 8 * col1 FROM tab2
----
-221
-446
-98

onlyif mysql # use DIV operator for integer division
query I rowsort label-6465
SELECT DISTINCT - tab1.col1 * col2 DIV 22 + - col1 AS col0 FROM tab1
----
-35
-69
-89

skipif mysql # not compatible
query I rowsort label-6465
SELECT DISTINCT - tab1.col1 * col2 / 22 + - col1 AS col0 FROM tab1
----
-35
-69
-89

query I rowsort
SELECT + 20 * + 87 + - col2 * + 98 * + col0 AS col1 FROM tab0 AS cor0
----
-1690
-713464
-75876

query I rowsort
SELECT DISTINCT - 41 * - col1 + + col0 * 93 AS col2 FROM tab0 AS cor0
----
12008
5758
7232

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6468
SELECT ALL - CAST( - 9 AS SIGNED ) * col2 + col1 + + ( col2 ) FROM tab2 cor0
----
301
319
397

skipif mysql # not compatible
query I rowsort label-6468
SELECT ALL - CAST ( - 9 AS INTEGER ) * col2 + col1 + + ( col2 ) FROM tab2 cor0
----
301
319
397

query I rowsort
SELECT DISTINCT - col1 * + 53 FROM tab2 AS cor0
----
-1643
-3127
-901

query I rowsort
SELECT - tab2.col1 * 54 AS col1 FROM tab2
----
-1674
-3186
-918

query I rowsort
SELECT + 28 + - 48 FROM tab2
----
-20
-20
-20

query I rowsort
SELECT ALL cor1.col0 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

query I rowsort
SELECT ALL - 53 * col2 FROM tab0 AS cor0
----
-1749
-4346
-53

query I rowsort
SELECT 75 FROM tab0, tab1 AS cor0, tab0 AS cor1, tab0 AS cor2
----
81 values hashing to 3384246e49f3e69ba32c165b88111fee

query I rowsort
SELECT + - 5 + col0 AS col0 FROM tab0 AS cor0
----
19
30
84

query I rowsort
SELECT ALL + - ( col0 ) + + cor0.col2 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT 12 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 702478c53caf2f7ebb9fff96d800f5a6

query I rowsort
SELECT ALL - 42 - + col0 * - ( col1 ) AS col1 FROM tab0
----
2022
3353
8057

query I rowsort
SELECT - col1 + ( - col0 * col1 ) FROM tab1 AS cor0
----
-104
-1053
-650

query I rowsort
SELECT - - col2 + col0 * + col2 AS col1 FROM tab1 cor0
----
216
3705
7776

query I rowsort
SELECT - col2 * + col2 * ( - col1 ) + + col0 AS col1 FROM tab2
----
22606
24627
39962

query I rowsort
SELECT 58 + + col0 - 90 FROM tab2
----
-25
46
47

query I rowsort
SELECT - + 6 * + col1 * ( col0 * + col0 ) FROM tab1 AS cor0
----
-1404
-245760
-499200

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6484
SELECT DISTINCT - col1 + CAST( col0 AS SIGNED ) * cor0.col1 AS col2 FROM tab0 AS cor0
----
1978
3298
8008

skipif mysql # not compatible
query I rowsort label-6484
SELECT DISTINCT - col1 + CAST ( col0 AS INTEGER ) * cor0.col1 AS col2 FROM tab0 AS cor0
----
1978
3298
8008

query I rowsort
SELECT ALL + - col0 + 68 AS col1 FROM tab2 AS cor0
----
-10
-11
61

query I rowsort
SELECT col0 * - col1 - 67 FROM tab0 AS cor0
----
-2131
-3462
-8166

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6487
SELECT - + col1 - CAST( ( cor0.col1 ) AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-118
-34
-62

skipif mysql # not compatible
query I rowsort label-6487
SELECT - + col1 - CAST ( ( cor0.col1 ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-118
-34
-62

query I rowsort
SELECT ALL - tab1.col1 + 78 AS col2 FROM tab1
----
52
65
68

query I rowsort
SELECT - - col1 * 52 + col2 * - cor0.col1 AS col0 FROM tab2 AS cor0
----
1534
238
775

query I rowsort
SELECT DISTINCT - col0 * - col0 + + 31 AS col1 FROM tab2 cor0
----
6115
6272
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-6491
SELECT - - col1 - + col2 DIV cor0.col1 FROM tab2 AS cor0
----
15
31
59

skipif mysql # not compatible
query I rowsort label-6491
SELECT - - col1 - + col2 / cor0.col1 FROM tab2 AS cor0
----
15
31
59

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6492
SELECT ALL - + col2 * - CAST( + col2 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
1444
676
729

skipif mysql # not compatible
query I rowsort label-6492
SELECT ALL - + col2 * - CAST ( + col2 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT - + col2 + 53 FROM tab0 cor0
----
-29
20
52

query I rowsort
SELECT + col1 + + 12 AS col0 FROM tab2 AS cor0
----
29
43
71

onlyif mysql # use DIV operator for integer division
query I rowsort label-6495
SELECT - + col0 DIV - 16 AS col0 FROM tab0 AS cor0
----
1
2
5

skipif mysql # not compatible
query I rowsort label-6495
SELECT - + col0 / - 16 AS col0 FROM tab0 AS cor0
----
1
2
5

query I rowsort
SELECT - col0 + - 45 * + col2 FROM tab0 AS cor0
----
-1509
-3779
-80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6497
SELECT DISTINCT CAST( + tab1.col1 AS SIGNED ) FROM tab1, tab1 AS cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-6497
SELECT DISTINCT CAST ( + tab1.col1 AS INTEGER ) FROM tab1, tab1 AS cor0
----
10
13
26

query I rowsort
SELECT ALL + col2 + - col0 * - col1 FROM tab2 AS cor0
----
1381
244
4628

query I rowsort
SELECT - col2 + + 44 FROM tab1 AS cor0
----
-10
-13
-52

query I rowsort
SELECT DISTINCT col0 + + col2 * 18 AS col2 FROM tab2 AS cor0
----
493
546
763

query I rowsort
SELECT + - col1 * + 4 AS col1 FROM tab2 AS cor0
----
-124
-236
-68

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6502
SELECT - col0 * CAST( NULL AS DECIMAL ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6502
SELECT - col0 * CAST ( NULL AS REAL ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 21 col1 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
21

query I rowsort
SELECT ALL + 29 AS col2 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 4c56285992bcb76e1aac22e6d23d1318

query I rowsort
SELECT + tab1.col1 * col1 + col0 + - col0 FROM tab1
----
100
169
676

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col1 - col2 * col2 = NULL
----

query I rowsort
SELECT col1 + col0 * - col2 + col2 FROM tab1
----
-3581
-7571
-82

query I rowsort
SELECT DISTINCT col1 + + col2 FROM tab0 WHERE NOT NULL NOT IN ( col2 / + col1 )
----

query I rowsort
SELECT col0 AS col0 FROM tab1 WHERE NULL IN ( + col1 + col0 )
----

query I rowsort
SELECT + col0 - - tab1.col2 FROM tab1
----
121
176
57

query I rowsort
SELECT DISTINCT + col2 * + col0 + col1 AS col2 FROM tab2
----
2087
220
3019

query I rowsort
SELECT DISTINCT col1 - col1 * + col0 * + col2 FROM tab0
----
-3298
-664027
-68026

query I rowsort
SELECT + col0 * - col2 + - tab0.col2 AS col0 FROM tab0
----
-36
-7380
-825

query I rowsort
SELECT ALL - col1 * + tab0.col0 + col1 AS col1 FROM tab0
----
-1978
-3298
-8008

query I rowsort
SELECT col1 + col0 * col1 AS col1 FROM tab1
----
104
1053
650

query I rowsort
SELECT DISTINCT col1 * - col2 * + tab2.col1 AS col2 FROM tab2
----
-10982
-25947
-90506

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col0 + col0 >= NULL
----

query I rowsort
SELECT - tab2.col0 + col2 * col0 FROM tab2
----
182
1950
2923

onlyif mysql # use DIV operator for integer division
query I rowsort label-6519
SELECT + col0 DIV col1 + - col2 AS col1 FROM tab2
----
-25
-27
-34

skipif mysql # not compatible
query I rowsort label-6519
SELECT + col0 / col1 + - col2 AS col1 FROM tab2
----
-25
-27
-34

query I rowsort
SELECT col2 * + col0 - col0 * - col2 FROM tab0
----
14596
1584
70

query I rowsort
SELECT ALL col0 + col2 * - col2 AS col1 FROM tab2
----
-1365
-598
-722

query I rowsort
SELECT DISTINCT col2 + tab2.col2 * col0 FROM tab2
----
2054
216
3040

query I rowsort
SELECT DISTINCT - col2 - + col0 * - 0 AS col1 FROM tab0 AS cor0
----
-1
-33
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab0.col1 * - col1 col2 FROM tab0
----
-7396
-8281
-9409

query I rowsort
SELECT ALL - 33 * cor0.col0 + col0 FROM tab1 AS cor0
----
-2048
-2560
-96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6526
SELECT ALL CAST( NULL AS SIGNED ) AS col0 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-6526
SELECT ALL CAST ( NULL AS INTEGER ) AS col0 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

onlyif mysql # use DIV operator for integer division
query I rowsort label-6527
SELECT ALL - col0 DIV + col2 + 27 AS col1 FROM tab1 AS cor0
----
26
27
27

skipif mysql # not compatible
query I rowsort label-6527
SELECT ALL - col0 / + col2 + 27 AS col1 FROM tab1 AS cor0
----
26
27
27

onlyif mysql # use DIV operator for integer division
query I rowsort label-6528
SELECT ALL 20 DIV - cor0.col2 + 41 AS col2 FROM tab1 AS cor0
----
41
41
41

skipif mysql # not compatible
query I rowsort label-6528
SELECT ALL 20 / - cor0.col2 + 41 AS col2 FROM tab1 AS cor0
----
41
41
41

query I rowsort
SELECT ALL + + col2 + col1 * - cor0.col2 FROM tab2 AS cor0
----
-1508
-608
-810

onlyif mysql # use DIV operator for integer division
query I rowsort label-6530
SELECT 8 - + tab0.col0 * tab0.col0 DIV - 58 FROM tab0
----
144
17
29

skipif mysql # not compatible
query I rowsort label-6530
SELECT 8 - + tab0.col0 * tab0.col0 / - 58 FROM tab0
----
144
17
29

query I rowsort
SELECT DISTINCT + col0 * col1 * - col0 AS col1 FROM tab0
----
-118825
-49536
-720811

query I rowsort
SELECT + 64 AS col1 FROM tab2
----
64
64
64

query I rowsort
SELECT - 30 FROM tab0, tab1, tab2 cor0
----
27 values hashing to a96370a8187089b6b83ce9bfbade5142

query I rowsort
SELECT + 22 AS col0 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 7dda382e7c08428abac8600fd696eb3e

query I rowsort
SELECT ( - cor0.col1 ) + - ( - ( + col0 ) ) FROM tab0 AS cor0
----
-2
-62
-62

query I rowsort
SELECT ALL - col0 * col1 + 14 AS col2 FROM tab1 AS cor0
----
-1026
-626
-64

query I rowsort
SELECT - col1 + - col1 * - col2 * col2 FROM tab2 AS cor0
----
22568
24531
39825

query I rowsort
SELECT ALL ( - tab1.col2 ) AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0, tab2 cor1, tab2 AS cor2
----
972 values hashing to 82def1c3361e635dd4cf447edc22edb9

query I rowsort
SELECT - col2 * + ( col2 ) * + col2 FROM tab1 AS cor0
----
-157464
-185193
-884736

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 8 + col1 col2 FROM tab2 AS cor0
----
25
39
67

query I rowsort
SELECT 61 FROM tab1, tab2 AS cor0, tab2 AS cor1, tab0 AS cor2
----
81 values hashing to 9b52d3939da22c8931e3d5a72ddfb1b1

query I rowsort
SELECT ALL + - col1 - + col2 FROM tab2 cor0
----
-55
-58
-85

query I rowsort
SELECT + + col1 + col2 * col2 AS col1 FROM tab2 AS cor0
----
1461
735
760

query I rowsort
SELECT DISTINCT + + col0 * - 45 FROM tab2 AS cor0
----
-315
-3510
-3555

query I rowsort
SELECT ALL - 56 * + col0 + + col2 FROM tab0
----
-1311
-1959
-4902

query I rowsort
SELECT ALL - col2 * - col0 * col0 + 56 FROM tab0
----
1281
19064
649578

query I rowsort
SELECT ALL - + col1 + 15 AS col1 FROM tab0 AS cor0
----
-71
-76
-82

query I rowsort
SELECT col1 * + col1 + - 51 * + col1 FROM tab0
----
3010
3640
4462

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT tab0.col0 + col0 + - CAST ( ( col0 ) AS REAL ) AS col0 FROM tab0
----
24
35
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-6551
SELECT DISTINCT ( col0 ) DIV col2 + - 1 AS col0 FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-6551
SELECT DISTINCT ( col0 ) / col2 + - 1 AS col0 FROM tab1
----
-1
0

query I rowsort
SELECT + tab1.col1 * + col1 * + col2 + + col2 FROM tab1
----
16320
36558
5757

query I rowsort
SELECT DISTINCT + cor0.col2 - + 91 AS col2 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
-53
-64
-65

query I rowsort
SELECT - + col2 * + 39 AS col2 FROM tab2 AS cor0
----
-1014
-1053
-1482

query I rowsort
SELECT + + col0 * 87 + + cor0.col2 * cor0.col2 FROM tab0 cor0
----
14467
3046
3177

query I rowsort
SELECT ALL col0 + ( 3 ) * col1 + col1 AS col1 FROM tab1 AS cor0
----
104
107
132

query I rowsort
SELECT ALL - + col2 * + ( cor0.col2 ) + col0 FROM tab2 AS cor0
----
-1365
-598
-722

query I rowsort
SELECT DISTINCT - col2 * - col1 + col0 AS col0 FROM tab1 AS cor0
----
1328
1407
634

query I rowsort
SELECT DISTINCT + + col2 + 86 - col1 * - col0 AS col2 FROM tab1 AS cor0
----
1222
218
783

onlyif mysql # use DIV operator for integer division
query I rowsort label-6560
SELECT DISTINCT - col0 DIV - col0 + - col2 + + col0 FROM tab0
----
-8
35
8

skipif mysql # not compatible
query I rowsort label-6560
SELECT DISTINCT - col0 / - col0 + - col2 + + col0 FROM tab0
----
-8
35
8

query I rowsort
SELECT - ( col2 ) + tab2.col0 + ( + col2 ) FROM tab2
----
7
78
79

query I rowsort
SELECT + tab2.col1 + col1 + col2 FROM tab2
----
144
72
89

query I rowsort
SELECT ( col1 ) - + col2 AS col2 FROM tab0 AS cor0
----
53
9
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-6564
SELECT DISTINCT + 23 DIV - col1 col0 FROM tab0 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6564
SELECT DISTINCT + 23 / - col1 col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL ( - ( col1 ) ) + col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + 58 * - col0 - + cor0.col1 FROM tab0 AS cor0
----
-1478
-2127
-5253

query I rowsort
SELECT - cor0.col0 + ( cor0.col0 ) AS col2 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT ALL + + cor0.col2 + col0 * - col0 FROM tab0 AS cor0
----
-1224
-543
-7839

query I rowsort
SELECT - ( + col1 ) + + col0 AS col1 FROM tab0 AS cor0
----
-2
-62
-62

query I rowsort
SELECT ALL + - cor0.col1 * - cor0.col0 * col0 AS col0 FROM tab1 AS cor0
----
234
40960
83200

query I rowsort
SELECT + col0 * col0 + - col0 + + 1 AS col2 FROM tab0
----
1191
553
7833

query I rowsort
SELECT + 41 * + col2 + - ( 62 ) FROM tab2 AS cor0
----
1004
1045
1496

query I rowsort
SELECT - col1 + + col2 + - col0 AS col2 FROM tab1 AS cor0
----
-17
25
3

query I rowsort
SELECT ALL ( - cor0.col0 ) + + ( 7 ) FROM tab1 AS cor0
----
-57
-73
4

query I rowsort
SELECT 56 * col2 + 21 FROM tab2 AS cor0
----
1477
1533
2149

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 13 + col1 * + col1 col2 FROM tab0 AS cor0
----
7409
8294
9422

query I rowsort
SELECT + col1 * + col2 - - 9 FROM tab1 AS cor0
----
1257
1413
579

query I rowsort
SELECT DISTINCT cor0.col0 + col0 * + cor0.col1 AS col0 FROM tab2 AS cor0
----
1422
224
4680

query I rowsort
SELECT - col0 - + col1 * 29 AS col0 FROM tab1 AS cor0
----
-354
-457
-757

query I rowsort
SELECT col2 * ( 76 ) + cor0.col2 * 67 FROM tab1 AS cor0
----
13728
7722
8151

onlyif mysql # use DIV operator for integer division
query I rowsort label-6581
SELECT DISTINCT 81 DIV col0 + 79 + col2 AS col2 FROM tab0
----
115
161
82

skipif mysql # not compatible
query I rowsort label-6581
SELECT DISTINCT 81 / col0 + 79 + col2 AS col2 FROM tab0
----
115
161
82

query I rowsort
SELECT ALL - col2 + - col0 + col0 * col1 AS col2 FROM tab0 AS cor0
----
2007
3359
7928

query I rowsort
SELECT col0 + - 87 AS col2 FROM tab1 AS cor0
----
-23
-7
-84

query I rowsort
SELECT + 32 AS col0 FROM tab0 AS cor0
----
32
32
32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( col0 ) + col1 + - ( ( + col1 ) ) col2 FROM tab1 AS cor0
----
-3
-64
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - 50 ) * + col2 + + col0 col2 FROM tab2 AS cor0
----
-1222
-1343
-1821

onlyif mysql # use DIV operator for integer division
query I rowsort label-6587
SELECT ALL - + 50 + - col1 * + col0 DIV CAST( + col0 AS SIGNED ) FROM tab1 AS cor0
----
-60
-63
-76

skipif mysql # not compatible
query I rowsort label-6587
SELECT ALL - + 50 + - col1 * + col0 / CAST ( + col0 AS INTEGER ) FROM tab1 AS cor0
----
-60
-63
-76

query I rowsort
SELECT - - 95 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to e57d8ed879dfd04d04aae87725c970d3

query I rowsort
SELECT DISTINCT - cor0.col0 * col1 + - col2 AS col2 FROM tab2 AS cor0
----
-1381
-244
-4628

query I rowsort
SELECT + - 34 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to 5b88331e40da4796cc4826c442aa45f7

query I rowsort
SELECT ALL col1 * ( + 9 ) * col1 FROM tab2
----
2601
31329
8649

query I rowsort
SELECT DISTINCT - col0 * 20 + - col2 AS col1 FROM tab0 AS cor0
----
-1862
-513
-701

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 81 col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 205b3ff2d7b1817c98d7980b8c17e6c1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 83 col2 FROM tab2, tab0 AS cor0
----
9 values hashing to d55748f39f403ec273099c0d87b0bfbb

onlyif mysql # use DIV operator for integer division
query I rowsort label-6595
SELECT ALL col2 DIV ( + 9 ) FROM tab0
----
0
3
9

skipif mysql # not compatible
query I rowsort label-6595
SELECT ALL col2 / ( + 9 ) FROM tab0
----
0
3
9

query I rowsort
SELECT + + col2 + - 46 * 71 AS col0 FROM tab1 AS cor0
----
-3170
-3209
-3212

query I rowsort
SELECT 81 - + cor1.col2 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b1298e1596a5d9eda6321f88b2662e38

query I rowsort
SELECT ALL + 2 + - ( - col0 ) * - col2 FROM tab2
----
-187
-2026
-3000

query I rowsort
SELECT ALL + col0 - + 47 FROM tab1
----
-44
17
33

query I rowsort
SELECT + + ( 17 ) * - col0 AS col0 FROM tab0 AS cor0
----
-1513
-408
-595

onlyif mysql # use DIV operator for integer division
query I rowsort label-6601
SELECT - cor0.col1 DIV - cor0.col1 + - 25 FROM tab1, tab1 AS cor0
----
9 values hashing to 797d0f7c145f8ac623924448c714bbcc

skipif mysql # not compatible
query I rowsort label-6601
SELECT - cor0.col1 / - cor0.col1 + - 25 FROM tab1, tab1 AS cor0
----
9 values hashing to 797d0f7c145f8ac623924448c714bbcc

query I rowsort
SELECT + cor0.col1 AS col2 FROM tab2, tab2 cor0, tab2 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

query I rowsort
SELECT - 50 + 72 * col2 AS col1 FROM tab0 AS cor0
----
22
2326
5854

query I rowsort
SELECT col0 * - col0 + + col0 FROM tab1 cor0
----
-4032
-6
-6320

query I rowsort
SELECT DISTINCT ( col2 ) * + tab1.col1 FROM tab1
----
1248
1404
570

onlyif mysql # use DIV operator for integer division
query I rowsort label-6606
SELECT col0 + - col2 DIV 91 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-6606
SELECT col0 + - col2 / 91 col0 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT + 8 + - col1 * 56 AS col2 FROM tab2 AS cor0
----
-1728
-3296
-944

query I rowsort
SELECT - - col2 * ( col2 ) AS col2 FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT - col0 + col1 * col1 AS col0 FROM tab0 AS cor0
----
7372
8192
9374

query I rowsort
SELECT DISTINCT + 38 AS col2 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
38

query I rowsort
SELECT ALL 10 * - col0 AS col1 FROM tab2
----
-70
-780
-790

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * 93 col1 FROM tab1 AS cor0
----
279
5952
7440

query I rowsort
SELECT DISTINCT col0 * + col2 * 3 AS col0 FROM tab1
----
10944
23040
486

query I rowsort
SELECT ALL + col1 * 21 FROM tab2
----
1239
357
651

query I rowsort
SELECT ALL - col2 * + col0 * - 86 + col0 AS col1 FROM tab1 AS cor0
----
13935
313792
660560

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6616
SELECT ALL - + col1 * - CAST( + 72 AS SIGNED ) * col1 + cor0.col1 - + cor0.col2 FROM tab0 AS cor0
----
532565
596241
677544

skipif mysql # not compatible
query I rowsort label-6616
SELECT ALL - + col1 * - CAST ( + 72 AS INTEGER ) * col1 + cor0.col1 - + cor0.col2 FROM tab0 AS cor0
----
532565
596241
677544

query I rowsort
SELECT DISTINCT - + col0 * - col1 + + col2 AS col0 FROM tab2 AS cor0
----
1381
244
4628

query I rowsort
SELECT DISTINCT + col2 + 82 AS col2 FROM tab1 AS cor0
----
136
139
178

query I rowsort
SELECT ALL + + col2 + - ( + ( + col1 ) ) + 48 AS col2 FROM tab2 AS cor0
----
15
44
69

query I rowsort
SELECT - col1 + + col0 * col0 FROM tab2 cor0
----
18
6025
6224

query I rowsort
SELECT DISTINCT - ( ( tab0.col2 ) ) AS col2 FROM tab0, tab2 AS cor0
----
-1
-33
-82

query I rowsort
SELECT DISTINCT cor1.col1 + cor0.col1 FROM tab1, tab1 cor0, tab2 AS cor1
----
9 values hashing to cdd61993e198773b18d4b6827ca81a9e

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - 22 ) * col1 col1 FROM tab2 AS cor0
----
-1298
-374
-682

onlyif mysql # use DIV operator for integer division
query I rowsort label-6624
SELECT - CAST( - col1 AS SIGNED ) DIV col0 col1 FROM tab1 AS cor0
----
0
0
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6624
SELECT - CAST ( - col1 AS INTEGER ) / col0 col1 FROM tab1 AS cor0
----
0
0
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab1.col2 - + tab1.col1 col1 FROM tab1
----
28
47
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-6626
SELECT DISTINCT + col1 * ( 38 ) DIV col2 AS col2 FROM tab0
----
3686
42
99

skipif mysql # not compatible
query I rowsort label-6626
SELECT DISTINCT + col1 * ( 38 ) / col2 AS col2 FROM tab0
----
3686
42
99

query I rowsort
SELECT DISTINCT col1 + cor0.col2 * 41 AS col0 FROM tab1 AS cor0
----
2240
2347
3949

query I rowsort
SELECT - - col2 * col2 + + col0 FROM tab1 AS cor0
----
2919
3313
9296

query I rowsort
SELECT ALL + + col2 * - col2 + 83 FROM tab2 AS cor0
----
-1361
-593
-646

query I rowsort
SELECT DISTINCT + 52 - - cor0.col1 * - cor0.col2 FROM tab0 AS cor0
----
-2786
-45
-7410

query I rowsort
SELECT - 50 + - col0 FROM tab2 AS cor0
----
-128
-129
-57

query I rowsort
SELECT + col1 * col1 + + 59 FROM tab1 AS cor0
----
159
228
735

query I rowsort
SELECT ALL - - col0 * col2 + - col0 AS col0 FROM tab1 AS cor0
----
159
3584
7600

query I rowsort
SELECT ALL - - col0 * + col1 + col0 * col2 AS col1 FROM tab1 AS cor0
----
240
4288
8720

query I rowsort
SELECT DISTINCT 4 * col1 AS col2 FROM tab2 AS cor0
----
124
236
68

query I rowsort
SELECT DISTINCT ( - 21 ) FROM tab2
----
-21

query I rowsort
SELECT ALL + col2 + col1 * + col1 FROM tab0
----
7429
8363
9410

query I rowsort
SELECT DISTINCT + + 29 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
29

onlyif mysql # use DIV operator for integer division
query I rowsort label-6639
SELECT - ( col1 ) + + ( - col2 ) DIV + col0 FROM tab2 cor0
----
-17
-34
-59

skipif mysql # not compatible
query I rowsort label-6639
SELECT - ( col1 ) + + ( - col2 ) / + col0 FROM tab2 cor0
----
-17
-34
-59

query I rowsort
SELECT - 69 - col1 AS col1 FROM tab1 AS cor0
----
-79
-82
-95

query I rowsort
SELECT DISTINCT 34 + - col2 AS col0 FROM tab0 AS cor0
----
-48
1
33

query I rowsort
SELECT DISTINCT + 58 + - cor0.col2 FROM tab2 AS cor0
----
20
31
32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 72 - - cor0.col0 * - cor0.col1 col1 FROM tab1 cor0
----
-568
-6
-968

query I rowsort
SELECT ALL - - ( col0 ) + - col0 AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + cor0.col0 + 39 * - col2 FROM tab2 AS cor0
----
-1046
-1403
-936

query I rowsort
SELECT DISTINCT ( + cor0.col2 ) * col0 + - cor0.col2 FROM tab0 AS cor0
----
34
7216
759

query I rowsort
SELECT DISTINCT 5 + col0 * col1 * 70 AS col2 FROM tab2 AS cor0
----
15195
322145
94015

query I rowsort
SELECT 19 + 33 AS col0 FROM tab1 AS cor0
----
52
52
52

query I rowsort
SELECT ALL + col2 + 77 * - col2 * 37 FROM tab0 AS cor0
----
-233536
-2848
-93984

query I rowsort
SELECT ALL 63 + - col2 * col0 FROM tab1 AS cor0
----
-3585
-7617
-99

onlyif mysql # use DIV operator for integer division
query I rowsort label-6651
SELECT DISTINCT - ( col1 ) DIV - cor0.col0 AS col2 FROM tab1 AS cor0
----
0
8

skipif mysql # not compatible
query I rowsort label-6651
SELECT DISTINCT - ( col1 ) / - cor0.col0 AS col2 FROM tab1 AS cor0
----
0
8

query I rowsort
SELECT ALL + - ( - 80 ) FROM tab0 AS cor0
----
80
80
80

query I rowsort
SELECT + col2 * - ( col0 ) AS col0 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT DISTINCT + cor0.col1 + col2 * col2 FROM tab1 AS cor0
----
2942
3259
9229

onlyif mysql # use DIV operator for integer division
query I rowsort label-6655
SELECT - col2 DIV - col0 + - col0 * col2 * col1 FROM tab0 AS cor0
----
-3395
-664118
-68111

skipif mysql # not compatible
query I rowsort label-6655
SELECT - col2 / - col0 + - col0 * col2 * col1 FROM tab0 AS cor0
----
-3395
-664118
-68111

query I rowsort
SELECT ALL + + 62 * col1 FROM tab1 cor0
----
1612
620
806

query I rowsort
SELECT ALL col0 - 28 AS col0 FROM tab2
----
-21
50
51

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6658
SELECT ALL - col1 - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6658
SELECT ALL - col1 - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6659
SELECT DISTINCT tab0.col1 - ( tab0.col2 ) DIV + col1 AS col1 FROM tab0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-6659
SELECT DISTINCT tab0.col1 - ( tab0.col2 ) / + col1 AS col1 FROM tab0
----
86
91
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + - tab1.col2 col0 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT + col2 + + col0 * col0 * col1 AS col0 FROM tab1 AS cor0
----
288
41017
83296

onlyif mysql # use DIV operator for integer division
query I rowsort label-6662
SELECT 22 * - 46 * + cor0.col2 + 64 DIV col2 AS col2 FROM tab1 AS cor0
----
-54647
-57683
-97152

skipif mysql # not compatible
query I rowsort label-6662
SELECT 22 * - 46 * + cor0.col2 + 64 / col2 AS col2 FROM tab1 AS cor0
----
-54647
-57683
-97152

query I rowsort
SELECT DISTINCT - + cor0.col0 * cor0.col0 FROM tab2 AS cor0
----
-49
-6084
-6241

query I rowsort
SELECT DISTINCT + - 25 + col0 FROM tab0 AS cor0
----
-1
10
64

onlyif mysql # use DIV operator for integer division
query I rowsort label-6665
SELECT + col1 DIV + cor0.col0 AS col1 FROM tab1 AS cor0
----
0
0
8

skipif mysql # not compatible
query I rowsort label-6665
SELECT + col1 / + cor0.col0 AS col1 FROM tab1 AS cor0
----
0
0
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( col0 ) * + col0 + - col2 * + col0 col0 FROM tab0 AS cor0
----
-216
1190
623

query I rowsort
SELECT ALL + col2 * col1 + + col2 AS col0 FROM tab1
----
1344
1458
627

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - cor0.col2 + col0 * col0 col0 FROM tab2 AS cor0
----
6887
7618
886

query I rowsort
SELECT - 4 + + col2 AS col0 FROM tab2 AS cor0
----
22
23
34

query I rowsort
SELECT DISTINCT + col2 - col2 AS col1 FROM tab2 cor0
----
0

query I rowsort
SELECT ALL 97 AS col0 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to c73fa6978df8525c99d6bc792bb27123

onlyif mysql # use DIV operator for integer division
query I rowsort label-6672
SELECT col2 * 2 DIV col1 AS col0 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6672
SELECT col2 * 2 / col1 AS col0 FROM tab0
----
0
0
1

query I rowsort
SELECT ALL + col1 + 87 FROM tab1
----
100
113
97

query I rowsort
SELECT DISTINCT + cor0.col1 + 13 * col2 AS col1 FROM tab0 cor0
----
110
1157
515

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + 66 col2 FROM tab0 AS cor0
----
-20
-25
-31

query I rowsort
SELECT 31 FROM tab0, tab1 AS cor0, tab1 cor1
----
27 values hashing to c3c6f92f0ca72d71793339f88a57e336

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6677
SELECT ALL - + col2 * + col2 + - ( col0 ) * ( + 49 ) - + cor0.col2 * + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6677
SELECT ALL - + col2 * + col2 + - ( col0 ) * ( + 49 ) - + cor0.col2 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - + col1 + - col2 * + col0 * col0 FROM tab1 AS cor0
----
-233482
-512
-614413

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - col0 col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT col1 + tab0.col2 * col0 FROM tab0
----
132
7389
878

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6681
SELECT CAST( NULL AS DECIMAL ) FROM tab2, tab1 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-6681
SELECT CAST ( NULL AS REAL ) FROM tab2, tab1 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ALL + col0 + + ( col2 ) + - col1 * 39 AS col2 FROM tab2 AS cor0
----
-1175
-2197
-546

query I rowsort
SELECT ALL cor0.col1 + 26 * cor0.col1 FROM tab2 AS cor0
----
1593
459
837

query I rowsort
SELECT + col2 * ( + 35 ) AS col1 FROM tab1 AS cor0
----
1890
1995
3360

query I rowsort
SELECT DISTINCT + + col2 + col0 * col0 AS col0 FROM tab1 AS cor0
----
4153
63
6496

query I rowsort
SELECT ALL - col0 * ( - 27 ) AS col2 FROM tab2
----
189
2106
2133

query I rowsort
SELECT - - cor0.col2 * 12 AS col2 FROM tab1 AS cor0
----
1152
648
684

query I rowsort
SELECT + col1 + col0 * + col0 * - col1 AS col2 FROM tab2 cor0
----
-106080
-1488
-358897

onlyif mysql # use DIV operator for integer division
query I rowsort label-6689
SELECT 12 - 38 DIV + col2 AS col2 FROM tab0 AS cor0
----
-26
11
12

skipif mysql # not compatible
query I rowsort label-6689
SELECT 12 - 38 / + col2 AS col2 FROM tab0 AS cor0
----
-26
11
12

query I rowsort
SELECT - ( - col2 ) * col2 - + 79 AS col1 FROM tab2 AS cor0
----
1365
597
650

query I rowsort
SELECT DISTINCT - cor0.col2 + col2 * col0 AS col1 FROM tab1 AS cor0
----
108
3591
7584

query I rowsort
SELECT + - 9 * col0 * col2 AS col1 FROM tab2 AS cor0
----
-1701
-18252
-27018

onlyif mysql # use DIV operator for integer division
query I rowsort label-6693
SELECT - - 99 DIV + col1 AS col2 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6693
SELECT - - 99 / + col1 AS col2 FROM tab0 AS cor0
----
1
1
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6694
SELECT + - col0 + col0 * - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6694
SELECT + - col0 + col0 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - + 26 * + col2 FROM tab0 AS cor0
----
-2132
-26
-858

query I rowsort
SELECT - 87 AS col0 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to c0011cd00aa3e86f06bebc13678997f9

query I rowsort
SELECT DISTINCT cor0.col1 + + col1 AS col2 FROM tab1 AS cor0
----
20
26
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 * col0 + cor0.col0 col1 FROM tab2 AS cor0
----
196
2106
3081

query I rowsort
SELECT - col0 + - 22 * col1 FROM tab2 AS cor0
----
-1376
-453
-689

query I rowsort
SELECT - col1 * - ( ( + col2 ) + + cor0.col1 ) FROM tab1 AS cor0
----
1417
2080
670

query I rowsort
SELECT - 38 + + col2 * - 47 FROM tab1 AS cor0
----
-2576
-2717
-4550

query I rowsort
SELECT - - tab0.col2 AS col1 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT - 63 AS col2 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to fc0b533c2773a0a802e1fc8317dcebf2

query I rowsort
SELECT + cor0.col2 AS col1 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 34 col0 FROM tab2 cor0
----
34
34
34

query I rowsort
SELECT col2 * 17 FROM tab2
----
442
459
646

query I rowsort
SELECT ALL 26 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to ede8226bb7e602e221f9d98345b4da37

query I rowsort
SELECT + ( + ( col2 ) ) * 10 * col0 AS col2 FROM tab1 AS cor0
----
1620
36480
76800

query I rowsort
SELECT - 8 * + col0 FROM tab0 AS cor0
----
-192
-280
-712

query I rowsort
SELECT 1 * 3 + col1 AS col2 FROM tab0 AS cor0
----
100
89
94

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6711
SELECT - CAST( - 4 AS SIGNED ) AS col1 FROM tab0 cor0
----
4
4
4

skipif mysql # not compatible
query I rowsort label-6711
SELECT - CAST ( - 4 AS INTEGER ) AS col1 FROM tab0 cor0
----
4
4
4

query I rowsort
SELECT - ( 33 ) * - col2 + 38 AS col2 FROM tab2 cor0
----
1292
896
929

query I rowsort
SELECT DISTINCT ( col1 ) + col0 AS col2 FROM tab1
----
29
74
93

query I rowsort
SELECT ALL + col0 * + 35 * col0 + + 74 * ( col2 ) + 56 AS col0 FROM tab2
----
214920
221303
3769

query I rowsort
SELECT DISTINCT 72 * tab0.col1 + + col0 * 62 AS col2 FROM tab0
----
12070
7680
9154

query I rowsort
SELECT DISTINCT ( col0 ) + - tab0.col0 FROM tab0
----
0

query I rowsort
SELECT col1 * - col0 * + col2 - + col1 FROM tab0
----
-3492
-664209
-68198

query I rowsort
SELECT 44 - + col0 FROM tab2
----
-34
-35
37

query I rowsort
SELECT col1 + - col0 * + tab2.col0 AS col2 FROM tab2
----
-18
-6025
-6224

query I rowsort
SELECT DISTINCT cor0.col1 + cor0.col0 FROM tab2, tab2 AS cor0
----
137
38
96

query I rowsort
SELECT ALL + + 90 * col2 FROM tab0 AS cor0
----
2970
7380
90

query I rowsort
SELECT - cor0.col0 * - cor0.col1 AS col1 FROM tab1, tab1 cor0
----
9 values hashing to 815fccd4c3d372b28d3f3fb103025775

onlyif mysql # use DIV operator for integer division
query I rowsort label-6723
SELECT + cor0.col1 DIV col0 col0 FROM tab2 AS cor0
----
0
0
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6723
SELECT + cor0.col1 / col0 col0 FROM tab2 AS cor0
----
0
0
4

query I rowsort
SELECT ALL - 21 * + col2 AS col1 FROM tab2 AS cor0
----
-546
-567
-798

onlyif mysql # use DIV operator for integer division
query I rowsort label-6725
SELECT DISTINCT + col2 * col2 DIV + 27 col2 FROM tab2 AS cor0
----
25
27
53

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6725
SELECT DISTINCT + col2 * col2 / + 27 col2 FROM tab2 AS cor0
----
25
27
53

query I rowsort
SELECT ALL - col2 - col1 AS col0 FROM tab2 cor0
----
-55
-58
-85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 84 * cor0.col1 + col2 col0 FROM tab0 AS cor0
----
7257
7726
8149

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 53 + - cor0.col0 * col2 col0 FROM tab0 AS cor0
----
-7351
-845
-88

query I rowsort
SELECT ALL col0 + col1 * col1 FROM tab2
----
3559
368
968

query I rowsort
SELECT - ( - ( col1 ) ) - col2 * col0 AS col0 FROM tab1
----
-136
-3638
-7667

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * + cor0.col0 col0 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT col2 * ( col0 ) + col0 + - ( 94 + - col0 ) * ( 33 ) * + col2 AS col0 FROM tab0 AS cor0
----
-1877
-6143
-75414

query I rowsort
SELECT + col2 * col0 + + col0 FROM tab1 AS cor0
----
165
3712
7760

query I rowsort
SELECT - col2 + - cor0.col0 * col1 - - cor0.col2 AS col2 FROM tab0 AS cor0
----
-2064
-3395
-8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * cor0.col1 + - ( col0 ) + - col0 col2 FROM tab1 AS cor0
----
512
72
880

query I rowsort
SELECT - col2 + col1 * - ( col0 ) - col1 AS col2 FROM tab1 AS cor0
----
-1149
-158
-707

query I rowsort
SELECT + + col1 + ( - col1 + - col0 ) FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT ALL - cor0.col2 * 14 + col1 * col0 + - col2 * + col0 AS col2 FROM tab1 AS cor0
----
-3806
-7984
-840

query I rowsort
SELECT DISTINCT - + col1 * 87 - cor0.col1 FROM tab1 AS cor0
----
-1144
-2288
-880

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab2.col2 * tab2.col2 * + col0 col0 FROM tab2
----
114076
5103
52728

query I rowsort
SELECT ALL - col0 + - 99 FROM tab2 AS cor0
----
-106
-177
-178

onlyif mysql # use DIV operator for integer division
query I rowsort label-6742
SELECT ALL tab2.col0 DIV CAST( col0 AS SIGNED ) FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6742
SELECT ALL tab2.col0 / CAST ( col0 AS INTEGER ) FROM tab2
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 50 col0 FROM tab1 AS cor0
----
50

query I rowsort
SELECT + + 38 + - 32 + col0 * + col2 FROM tab1 AS cor0
----
168
3654
7686

query I rowsort
SELECT - col2 + ( col0 ) * - col2 FROM tab0 AS cor0
----
-36
-7380
-825

query I rowsort
SELECT + col2 + - col2 * - ( + col0 ) FROM tab2
----
2054
216
3040

query I rowsort
SELECT + 49 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to cb40783c0fff72e8802cdf0682e7cb55

query I rowsort
SELECT DISTINCT - col0 + col2 + - col2 AS col2 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT + - col1 * + 22 FROM tab2 cor0
----
-1298
-374
-682

query I rowsort
SELECT ALL - col0 + col1 + - col0 FROM tab1 AS cor0
----
-118
-147
20

query I rowsort
SELECT + - col0 * + ( col0 ) FROM tab0 AS cor0
----
-1225
-576
-7921

query I rowsort
SELECT + 86 - - 3 * cor0.col2 AS col1 FROM tab1 AS cor0
----
248
257
374

query I rowsort
SELECT ALL + ( 6 ) * - col0 - + 74 FROM tab0 cor0
----
-218
-284
-608

query I rowsort
SELECT ALL - ( 39 ) * col2 * + col0 AS col0 FROM tab2 AS cor0
----
-117078
-7371
-79092

onlyif mysql # use DIV operator for integer division
query I rowsort label-6755
SELECT DISTINCT - cor0.col1 * + cor0.col2 * - cor0.col0 + + col1 DIV col1 FROM tab0 AS cor0
----
3396
664119
68113

skipif mysql # not compatible
query I rowsort label-6755
SELECT DISTINCT - cor0.col1 * + cor0.col2 * - cor0.col0 + + col1 / col1 FROM tab0 AS cor0
----
3396
664119
68113

query I rowsort
SELECT 66 * col1 FROM tab1 AS cor0
----
1716
660
858

query I rowsort
SELECT ALL + - 74 + + col2 * + col1 FROM tab1 AS cor0
----
1174
1330
496

onlyif mysql # use DIV operator for integer division
query I rowsort label-6758
SELECT ALL - CAST( col0 AS SIGNED ) * col2 DIV 89 - col0 AS col2 FROM tab2 AS cor0
----
-100
-112
-9

skipif mysql # not compatible
query I rowsort label-6758
SELECT ALL - CAST ( col0 AS INTEGER ) * col2 / 89 - col0 AS col2 FROM tab2 AS cor0
----
-100
-112
-9

onlyif mysql # use DIV operator for integer division
query I rowsort label-6759
SELECT col0 DIV - ( col2 * + col2 ) FROM tab0
----
-35
0
0

skipif mysql # not compatible
query I rowsort label-6759
SELECT col0 / - ( col2 * + col2 ) FROM tab0
----
-35
0
0

query I rowsort
SELECT ALL + col0 + - 35 - - col2 FROM tab1
----
141
22
86

onlyif mysql # use DIV operator for integer division
query I rowsort label-6761
SELECT ALL - col2 DIV 8 AS col2 FROM tab2
----
-3
-3
-4

skipif mysql # not compatible
query I rowsort label-6761
SELECT ALL - col2 / 8 AS col2 FROM tab2
----
-3
-3
-4

query I rowsort
SELECT ( 19 ) * cor0.col2 * 43 + - col1 AS col2 FROM tab0 AS cor0
----
26875
66903
720

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + col2 - - 5 col0 FROM tab0
----
102
2843
7467

query I rowsort
SELECT + 13 * - col0 * - col0 + + col1 FROM tab2 cor0
----
668
79151
81150

query I rowsort
SELECT ALL + - 8 * col0 AS col1 FROM tab2 AS cor0
----
-56
-624
-632

query I rowsort
SELECT col0 * col2 + - cor0.col0 FROM tab0 AS cor0
----
0
7209
768

query I rowsort
SELECT DISTINCT - + 69 * - col2 FROM tab2 AS cor0
----
1794
1863
2622

query I rowsort
SELECT - + 6 + col0 AS col0 FROM tab2 AS cor0
----
1
72
73

query I rowsort
SELECT ALL col2 * - cor0.col2 AS col2 FROM tab0 cor0
----
-1
-1089
-6724

query I rowsort
SELECT DISTINCT - 42 * + cor0.col1 AS col0 FROM tab2 AS cor0
----
-1302
-2478
-714

query I rowsort
SELECT DISTINCT 16 + - col2 FROM tab1 cor0
----
-38
-41
-80

query I rowsort
SELECT DISTINCT - - col0 * col2 * ( - col0 ) AS col2 FROM tab2 AS cor0
----
-1323
-158184
-237158

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + + tab1.col1 col0 FROM tab1
----
-54
-67
23

query I rowsort
SELECT + 48 - - col0 FROM tab2
----
126
127
55

query I rowsort
SELECT ALL ( - 36 * - col1 ) + col0 * + col0 FROM tab2
----
1165
6853
8208

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - CAST ( - col1 AS REAL ) + col1 * col2 AS col1 FROM tab2
----
1593
663
868

query I rowsort
SELECT ALL col1 * col0 * + ( - 31 ) FROM tab1 AS cor0
----
-19840
-2418
-32240

query I rowsort
SELECT + - 19 FROM tab1 cor0
----
-19
-19
-19

query I rowsort
SELECT ALL - + col2 * - col0 + col0 FROM tab2 AS cor0
----
196
2106
3081

query I rowsort
SELECT DISTINCT - 62 * col0 AS col0 FROM tab0 cor0
----
-1488
-2170
-5518

query I rowsort
SELECT + 13 * 25 AS col0 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to ebc2b1be2fff92604d47df017541774e

query I rowsort
SELECT DISTINCT + 89 + cor0.col0 * 89 AS col1 FROM tab2 AS cor0
----
7031
712
7120

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 88 * col0 col2 FROM tab2 cor0
----
616
6864
6952

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 * - 31 col1 FROM tab1 AS cor0
----
-310
-403
-806

onlyif mysql # use DIV operator for integer division
query I rowsort label-6785
SELECT 67 + tab1.col1 DIV + col0 FROM tab1
----
67
67
75

skipif mysql # not compatible
query I rowsort label-6785
SELECT 67 + tab1.col1 / + col0 FROM tab1
----
67
67
75

query I rowsort
SELECT DISTINCT 61 AS col1 FROM tab0
----
61

query I rowsort
SELECT DISTINCT + col0 * - col2 + 12 AS col2 FROM tab2 cor0
----
-177
-2016
-2990

onlyif mysql # use DIV operator for integer division
query I rowsort label-6788
SELECT ALL - col0 * - col0 + col1 - col0 DIV col0 FROM tab1 AS cor0
----
34
4105
6412

skipif mysql # not compatible
query I rowsort label-6788
SELECT ALL - col0 * - col0 + col1 - col0 / col0 FROM tab1 AS cor0
----
34
4105
6412

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + - ( - 52 ) col2 FROM tab1 AS cor0
----
106
109
148

query I rowsort
SELECT ALL - ( + col1 ) * - col1 FROM tab1
----
100
169
676

query I rowsort
SELECT DISTINCT + col2 + - 83 * + col2 FROM tab2
----
-2132
-2214
-3116

query I rowsort
SELECT ALL - + 41 + col1 AS col2 FROM tab0 AS cor0
----
45
50
56

query I rowsort
SELECT - + col2 * col0 * + col1 + + ( col2 ) FROM tab1 AS cor0
----
-36423
-4158
-99744

query I rowsort
SELECT DISTINCT + 29 * - col0 AS col1 FROM tab1 AS cor0
----
-1856
-2320
-87

query I rowsort
SELECT + + 79 * + col1 AS col1 FROM tab0 cor0
----
6794
7189
7663

query I rowsort
SELECT DISTINCT + 32 * - 26 AS col2 FROM tab0 AS cor0
----
-832

query I rowsort
SELECT ALL + + col2 * col0 AS col1 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT ALL - cor0.col0 + 27 FROM tab2, tab1 AS cor0
----
9 values hashing to a7f30145b03c37304f1c1168903bde81

query I rowsort
SELECT + col0 + col0 + col1 FROM tab0 AS cor0
----
134
167
269

onlyif mysql # use DIV operator for integer division
query I rowsort label-6800
SELECT + col0 DIV col0 + ( + 46 ) AS col2 FROM tab1 cor0
----
47
47
47

skipif mysql # not compatible
query I rowsort label-6800
SELECT + col0 / col0 + ( + 46 ) AS col2 FROM tab1 cor0
----
47
47
47

query I rowsort
SELECT DISTINCT col0 * col2 + col1 - - col2 * + col0 FROM tab2 WHERE NULL = ( NULL )
----

query I rowsort
SELECT ALL - col0 AS col0 FROM tab0 WHERE col2 + + col2 BETWEEN NULL AND NULL
----

query I rowsort
SELECT + col2 + + col2 + + col1 FROM tab0
----
152
255
99

query I rowsort
SELECT col2 * col1 - col0 FROM tab2
----
1456
567
830

query I rowsort
SELECT - col1 + tab2.col1 + col0 FROM tab2
----
7
78
79

query I rowsort
SELECT col1 - tab0.col1 FROM tab0 WHERE NULL = ( NULL )
----

query I rowsort
SELECT col2 - - col2 FROM tab1 WHERE NOT NULL > ( col0 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-6808
SELECT col0 * col0 + tab1.col1 DIV tab1.col1 FROM tab1
----
10
4097
6401

skipif mysql # not compatible
query I rowsort label-6808
SELECT col0 * col0 + tab1.col1 / tab1.col1 FROM tab1
----
10
4097
6401

query I rowsort
SELECT DISTINCT - col0 FROM tab0 WHERE NOT ( NULL ) = + col2 + + col2
----

query I rowsort
SELECT - col2 AS col1 FROM tab2 WHERE NOT NULL = col2
----

query I rowsort
SELECT ALL col2 * - col1 - - col0 AS col2 FROM tab1
----
-1168
-1401
-506

query I rowsort
SELECT DISTINCT + col1 * tab0.col2 + + col2 * + tab0.col1 FROM tab0 WHERE NOT ( col1 * col0 ) NOT IN ( col1 * col0 + - col2 )
----

query I rowsort
SELECT - col2 * + col0 + - tab1.col1 AS col2 FROM tab1
----
-188
-3658
-7693

query I rowsort
SELECT DISTINCT col1 * - tab1.col1 - + col2 AS col1 FROM tab1
----
-157
-265
-730

query I rowsort
SELECT ALL + col1 + - col2 * col0 FROM tab0
----
-706
-7207
62

query I rowsort
SELECT DISTINCT - col1 FROM tab0 WHERE NOT col2 * - col2 NOT IN ( - tab0.col2 )
----
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-6817
SELECT ALL + - 68 * col1 + + ( + 1 ) DIV - cor0.col0 - + ( 25 * - col1 ) AS col1 FROM tab2 AS cor0
----
-1333
-2537
-731

skipif mysql # not compatible
query I rowsort label-6817
SELECT ALL + - 68 * col1 + + ( + 1 ) / - cor0.col0 - + ( 25 * - col1 ) AS col1 FROM tab2 AS cor0
----
-1333
-2537
-731

query I rowsort
SELECT DISTINCT + - ( - col0 ) * + col1 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT DISTINCT col0 * col2 - - col2 FROM tab1
----
216
3705
7776

query I rowsort
SELECT DISTINCT col2 * + col2 + - col0 FROM tab0
----
-34
1065
6635

query I rowsort
SELECT + col2 + col0 + col1 * - col0 FROM tab1 WHERE ( + col2 ) NOT BETWEEN col1 * + col2 AND NULL
----
-21
-519
-864

query I rowsort
SELECT col1 - + col1 * + col0 * - col1 AS col2 FROM tab2
----
22848
271577
6758

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab0.col1 - col2 col2 FROM tab0
----
53
9
96

query I rowsort
SELECT col2 * col2 + col1 * - col1 FROM tab1 AS cor0
----
2240
3149
9047

query I rowsort
SELECT ALL - col1 + + col1 + + col1 * col1 FROM tab2 cor0
----
289
3481
961

onlyif mysql # use DIV operator for integer division
query I rowsort label-6826
SELECT DISTINCT + col2 * col0 + + col0 DIV + tab0.col0 AS col0 FROM tab0
----
36
7299
793

skipif mysql # not compatible
query I rowsort label-6826
SELECT DISTINCT + col2 * col0 + + col0 / + tab0.col0 AS col0 FROM tab0
----
36
7299
793

query I rowsort
SELECT col0 FROM tab2 WHERE NOT - col2 / + col0 <> ( col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - col0 * - col2 col1 FROM tab2
----
2054
216
3040

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL NOT BETWEEN col0 + + col2 AND col1 * + col1 + col0 / col0
----

query I rowsort
SELECT ALL tab0.col0 * + col0 - col2 FROM tab0
----
1224
543
7839

query I rowsort
SELECT + col2 * col1 AS col0 FROM tab2 WHERE NULL = NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-6832
SELECT + col2 + tab2.col0 * col2 + - col2 DIV col0 FROM tab2
----
2054
213
3040

skipif mysql # not compatible
query I rowsort label-6832
SELECT + col2 + tab2.col0 * col2 + - col2 / col0 FROM tab2
----
2054
213
3040

query I rowsort
SELECT - col1 + ( - 92 ) + - col1 FROM tab2
----
-126
-154
-210

query I rowsort
SELECT DISTINCT + col2 * - 16 FROM tab1 AS cor0
----
-1536
-864
-912

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 14 + col2 col0 FROM tab1 AS cor0
----
40
43
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-6836
SELECT ALL + col0 DIV col1 + - col2 * - col1 FROM tab2 AS cor0
----
1535
650
837

skipif mysql # not compatible
query I rowsort label-6836
SELECT ALL + col0 / col1 + - col2 * - col1 FROM tab2 AS cor0
----
1535
650
837

query I rowsort
SELECT ALL - col0 * 21 + col2 FROM tab1 AS cor0
----
-1287
-1584
-9

query I rowsort
SELECT DISTINCT + 2 FROM tab2, tab2 cor0, tab1 AS cor1
----
2

onlyif mysql # use DIV operator for integer division
query I rowsort label-6839
SELECT - col0 DIV - ( - tab2.col1 ) FROM tab2
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-6839
SELECT - col0 / - ( - tab2.col1 ) FROM tab2
----
-1
-4
0

query I rowsort
SELECT col1 + + tab0.col1 * ( - col2 ) - + 0 * - 65 FROM tab0
----
-2752
-7371
0

query I rowsort
SELECT ALL - col0 - + 50 * 99 FROM tab1
----
-4953
-5014
-5030

query I rowsort
SELECT DISTINCT + 20 + col1 AS col1 FROM tab1
----
30
33
46

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6843
SELECT DISTINCT CAST( - ( col0 ) AS SIGNED ) FROM tab0 AS cor0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-6843
SELECT DISTINCT CAST ( - ( col0 ) AS INTEGER ) FROM tab0 AS cor0
----
-24
-35
-89

onlyif mysql # use DIV operator for integer division
query I rowsort label-6844
SELECT ALL - cor0.col2 * col2 + col2 DIV 60 FROM tab1 AS cor0
----
-2916
-3249
-9215

skipif mysql # not compatible
query I rowsort label-6844
SELECT ALL - cor0.col2 * col2 + col2 / 60 FROM tab1 AS cor0
----
-2916
-3249
-9215

query I rowsort
SELECT ALL cor0.col0 + - col0 AS col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6846
SELECT ALL + + CAST( + col2 AS SIGNED ) DIV - col0 + + cor0.col1 col1 FROM tab1 AS cor0
----
10
12
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6846
SELECT ALL + + CAST ( + col2 AS INTEGER ) / - col0 + + cor0.col1 col1 FROM tab1 AS cor0
----
10
12
8

query I rowsort
SELECT + 5 + - col2 FROM tab1
----
-49
-52
-91

query I rowsort
SELECT DISTINCT col0 + - 73 - + col1 AS col1 FROM tab2 AS cor0
----
-11
-54
-97

query I rowsort
SELECT col1 * col0 * 45 - cor0.col1 AS col1 FROM tab0 AS cor0
----
152678
364364
92794

query I rowsort
SELECT ALL col1 + + col0 * + col1 AS col0 FROM tab1 AS cor0
----
104
1053
650

query I rowsort
SELECT col1 + 63 FROM tab1 AS cor0
----
73
76
89

query I rowsort
SELECT cor0.col0 + 58 AS col0 FROM tab1 AS cor0
----
122
138
61

onlyif mysql # use DIV operator for integer division
query I rowsort label-6853
SELECT col1 DIV 51 - + col2 AS col1 FROM tab0 AS cor0
----
-32
-81
0

skipif mysql # not compatible
query I rowsort label-6853
SELECT col1 / 51 - + col2 AS col1 FROM tab0 AS cor0
----
-32
-81
0

query I rowsort
SELECT ALL - + col0 * + 9 FROM tab2 cor0
----
-63
-702
-711

query I rowsort
SELECT DISTINCT + col0 + 46 FROM tab1 AS cor0
----
110
126
49

query I rowsort
SELECT DISTINCT - - col1 * 0 AS col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT + - cor0.col0 + - col2 AS col0 FROM tab1 AS cor0
----
-121
-176
-57

query I rowsort
SELECT ALL - - col0 * + 94 + col0 * + col0 AS col1 FROM tab0 AS cor0
----
16287
2832
4515

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6859
SELECT + cor0.col1 * CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6859
SELECT + cor0.col1 * CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 92 FROM tab0, tab1 AS cor0
----
92

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6861
SELECT + CAST( 38 AS SIGNED ) + col2 FROM tab1
----
134
92
95

skipif mysql # not compatible
query I rowsort label-6861
SELECT + CAST ( 38 AS INTEGER ) + col2 FROM tab1
----
134
92
95

query I rowsort
SELECT - ( col1 * + col1 ) + ( col1 ) FROM tab1
----
-156
-650
-90

onlyif mysql # use DIV operator for integer division
query I rowsort label-6863
SELECT ALL - 80 + - col0 DIV + col1 FROM tab1 AS cor0
----
-80
-86
-86

skipif mysql # not compatible
query I rowsort label-6863
SELECT ALL - 80 + - col0 / + col1 FROM tab1 AS cor0
----
-80
-86
-86

query I rowsort
SELECT + 70 + - tab1.col0 + cor0.col1 AS col2 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 5bcf52544308108a0f8ddaded5f06ca9

onlyif mysql # use DIV operator for integer division
query I rowsort label-6865
SELECT ALL ( + col0 + + col1 ) DIV + 18 AS col2 FROM tab1
----
1
4
5

skipif mysql # not compatible
query I rowsort label-6865
SELECT ALL ( + col0 + + col1 ) / + 18 AS col2 FROM tab1
----
1
4
5

query I rowsort
SELECT DISTINCT + cor0.col1 + - col1 + - 46 AS col1 FROM tab1 AS cor0
----
-46

query I rowsort
SELECT DISTINCT + 21 - + col0 FROM tab0 AS cor0
----
-14
-3
-68

query I rowsort
SELECT - 97 + - col0 * col1 FROM tab1 AS cor0
----
-1137
-175
-737

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6869
SELECT ALL + col0 + col2 * + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6869
SELECT ALL + col0 + col2 * + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 24 + - col0 * + col1 FROM tab1 AS cor0
----
-102
-1064
-664

query I rowsort
SELECT - col0 * cor0.col2 * - 41 AS col1 FROM tab0 AS cor0
----
1435
299218
32472

query I rowsort
SELECT ALL - col1 * + col1 + ( col1 ) FROM tab0 AS cor0
----
-7310
-8190
-9312

query I rowsort
SELECT DISTINCT col0 - col2 * + col0 FROM tab0 AS cor0
----
-7209
-768
0

query I rowsort
SELECT ALL + + col2 * + col1 AS col1 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT ALL + col0 * + ( col1 ) * col0 FROM tab0
----
118825
49536
720811

query I rowsort
SELECT DISTINCT + - ( col1 ) * col0 + + ( col1 ) * + col1 * cor0.col1 FROM tab0 AS cor0
----
633992
745472
909278

query I rowsort
SELECT - ( col2 ) * + 95 + col2 AS col2 FROM tab1 cor0
----
-5076
-5358
-9024

query I rowsort
SELECT + col0 * + col0 * col2 AS col0 FROM tab1 AS cor0
----
233472
486
614400

query I rowsort
SELECT ALL - col0 + + ( + col0 ) * cor0.col1 FROM tab2 AS cor0
----
1264
210
4524

query I rowsort
SELECT + col2 * - 40 + + col0 FROM tab2 AS cor0
----
-1073
-1441
-962

onlyif mysql # use DIV operator for integer division
query I rowsort label-6881
SELECT ALL - col1 DIV - ( col2 ) AS col2 FROM tab0 AS cor0
----
1
2
97

skipif mysql # not compatible
query I rowsort label-6881
SELECT ALL - col1 / - ( col2 ) AS col2 FROM tab0 AS cor0
----
1
2
97

query I rowsort
SELECT ALL + cor0.col0 * col2 + - 69 FROM tab2 AS cor0
----
120
1959
2933

query I rowsort
SELECT ALL + col2 * 50 + - 46 FROM tab1
----
2654
2804
4754

query I rowsort
SELECT DISTINCT - - col2 + - 80 AS col1 FROM tab1 AS cor0
----
-23
-26
16

onlyif mysql # use DIV operator for integer division
query I rowsort label-6885
SELECT - col2 * 65 * col1 + col1 DIV cor0.col0 FROM tab2 AS cor0
----
-41990
-54401
-99710

skipif mysql # not compatible
query I rowsort label-6885
SELECT - col2 * 65 * col1 + col1 / cor0.col0 FROM tab2 AS cor0
----
-41990
-54401
-99710

onlyif mysql # use DIV operator for integer division
query I rowsort label-6886
SELECT DISTINCT + + col2 DIV col1 + col0 * - cor0.col2 FROM tab2 AS cor0
----
-189
-2028
-3000

skipif mysql # not compatible
query I rowsort label-6886
SELECT DISTINCT + + col2 / col1 + col0 * - cor0.col2 FROM tab2 AS cor0
----
-189
-2028
-3000

query I rowsort
SELECT DISTINCT - + col2 + + col2 * col2 FROM tab0 cor0
----
0
1056
6642

query I rowsort
SELECT ALL - cor0.col2 + + col2 + col1 * + col2 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT - col0 + - 66 FROM tab2 AS cor0
----
-144
-145
-73

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - col0 + + CAST ( 74 AS REAL ) AS col0 FROM tab2 AS cor0
----
-4
-5
67

query I rowsort
SELECT ALL col2 + 14 AS col1 FROM tab0 AS cor0
----
15
47
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6892
SELECT DISTINCT - cor0.col1 + CAST( NULL AS SIGNED ) + col0 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6892
SELECT DISTINCT - cor0.col1 + CAST ( NULL AS INTEGER ) + col0 AS col1 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - cor0.col1 + 97 col1 FROM tab0 AS cor0
----
183
188
194

query I rowsort
SELECT DISTINCT + + ( col0 ) * + col2 FROM tab0 AS cor0
----
35
7298
792

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6895
SELECT CAST( 33 AS SIGNED ) + + col1 FROM tab2 cor0
----
50
64
92

skipif mysql # not compatible
query I rowsort label-6895
SELECT CAST ( 33 AS INTEGER ) + + col1 FROM tab2 cor0
----
50
64
92

query I rowsort
SELECT DISTINCT - - 96 + + col0 AS col0 FROM tab2 AS cor0
----
103
174
175

query I rowsort
SELECT ALL - col1 + 69 * + col2 AS col0 FROM tab2 AS cor0
----
1735
1832
2605

query I rowsort
SELECT + + col2 + + col2 * col1 AS col1 FROM tab0 AS cor0
----
2871
7544
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * 16 * + 44 col2 FROM tab1
----
18304
7040
9152

query I rowsort
SELECT ALL - 2 FROM tab1, tab0 cor0
----
9 values hashing to ec11209ab257030053484fc13a1f6d17

query I rowsort
SELECT - col0 + + col2 + col0 AS col0 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT ( col2 ) * - cor0.col2 + 18 AS col1 FROM tab0 AS cor0
----
-1071
-6706
17

query I rowsort
SELECT + + cor0.col0 * + col1 + col2 FROM tab2 cor0
----
1381
244
4628

query I rowsort
SELECT - col1 * + 64 FROM tab0 AS cor0
----
-5504
-5824
-6208

onlyif mysql # use DIV operator for integer division
query I rowsort label-6905
SELECT - ( 26 ) DIV cor0.col1 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-6905
SELECT - ( 26 ) / cor0.col1 FROM tab2 AS cor0
----
-1
0
0

query I rowsort
SELECT DISTINCT - 51 FROM tab0 cor0
----
-51

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6907
SELECT + - CAST( NULL AS SIGNED ) * - col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6907
SELECT + - CAST ( NULL AS INTEGER ) * - col1 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + col2 + + col1 * - col2 AS col0 FROM tab1 AS cor0
----
-1344
-1458
-627

query I rowsort
SELECT - 21 + + col1 AS col1 FROM tab2 cor0
----
-4
10
38

query I rowsort
SELECT 12 + 61 AS col2 FROM tab2 AS cor0
----
73
73
73

query I rowsort
SELECT cor0.col0 + 96 AS col0 FROM tab0 AS cor0
----
120
131
185

query I rowsort
SELECT DISTINCT - 44 FROM tab2, tab0 AS cor0
----
-44

query I rowsort
SELECT + col2 * ( + tab1.col1 ) * + ( - col2 ) + col2 AS col1 FROM tab1
----
-119712
-32433
-75762

query I rowsort
SELECT cor0.col1 * + col1 + - col0 FROM tab2 AS cor0
----
210
3403
954

query I rowsort
SELECT ALL - cor1.col1 * + cor1.col0 AS col2 FROM tab0, tab2 cor0, tab1 AS cor1
----
27 values hashing to 064f0d12f5a54890818030ba889e7e5c

query I rowsort
SELECT + col1 * + ( - col2 ) AS col2 FROM tab1
----
-1248
-1404
-570

onlyif mysql # use DIV operator for integer division
query I rowsort label-6917
SELECT - col0 DIV 21 col0 FROM tab2
----
-3
-3
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6917
SELECT - col0 / 21 col0 FROM tab2
----
-3
-3
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 35 col1 FROM tab0, tab1 AS cor0
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29

query I rowsort
SELECT 29 AS col1 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 4c56285992bcb76e1aac22e6d23d1318

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col1 + col2 col0 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT ALL - col1 + + col1 - + col0 AS col0 FROM tab1 AS cor0
----
-3
-64
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 63 ) * cor0.col2 col2 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 63a39b1814a1be43fd963f441a8858db

onlyif mysql # use DIV operator for integer division
query I rowsort label-6923
SELECT 57 * col1 + 71 DIV cor0.col1 + - col2 FROM tab1 AS cor0
----
1430
520
650

skipif mysql # not compatible
query I rowsort label-6923
SELECT 57 * col1 + 71 / cor0.col1 + - col2 FROM tab1 AS cor0
----
1430
520
650

query I rowsort
SELECT + 33 + col1 + col1 AS col1 FROM tab0 AS cor0
----
205
215
227

onlyif mysql # use DIV operator for integer division
query I rowsort label-6925
SELECT + - cor0.col0 DIV - col0 + col2 + + col0 col2 FROM tab1 AS cor0
----
122
177
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6925
SELECT + - cor0.col0 / - col0 + col2 + + col0 col2 FROM tab1 AS cor0
----
122
177
58

query I rowsort
SELECT - 96 + - col2 * + col0 + - cor0.col2 FROM tab1 cor0
----
-312
-3801
-7872

onlyif mysql # use DIV operator for integer division
query I rowsort label-6927
SELECT + 62 DIV col2 - - col2 AS col0 FROM tab0 AS cor0
----
34
63
82

skipif mysql # not compatible
query I rowsort label-6927
SELECT + 62 / col2 - - col2 AS col0 FROM tab0 AS cor0
----
34
63
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-6928
SELECT 13 DIV + cor0.col1 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-6928
SELECT 13 / + cor0.col1 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 + + 48 col1 FROM tab0 AS cor0
----
137
72
83

query I rowsort
SELECT - col0 + - col2 * + col0 + + col1 * + 89 FROM tab0 AS cor0
----
6838
712
8563

query I rowsort
SELECT ALL col2 * - 32 AS col1 FROM tab1 AS cor0
----
-1728
-1824
-3072

query I rowsort
SELECT cor0.col1 + 76 FROM tab1 AS cor0
----
102
86
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 84 col1 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
-84

onlyif mysql # use DIV operator for integer division
query I rowsort label-6934
SELECT + + 18 DIV + col0 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6934
SELECT + + 18 / + col0 AS col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + ( - 19 ) FROM tab1 AS cor0
----
-19
-19
-19

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 4 col2 FROM tab2, tab0 cor0
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b

query I rowsort
SELECT ALL cor1.col1 * 56 FROM tab2, tab1 cor0, tab1 AS cor1
----
27 values hashing to 8ed4e41eaf7ed4285a69d2d0173faa2a

query I rowsort
SELECT ALL - cor0.col0 * cor0.col2 * cor0.col1 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 6a10461f43a369efdea5d32d0ed1ca56

query I rowsort
SELECT col1 * col0 + cor0.col1 + col0 FROM tab2 AS cor0
----
1439
255
4739

query I rowsort
SELECT - col2 * col2 * - 19 AS col2 FROM tab0 AS cor0
----
127756
19
20691

query I rowsort
SELECT ALL - ( - col2 ) + + 10 * - cor0.col2 AS col0 FROM tab0 AS cor0
----
-297
-738
-9

onlyif mysql # use DIV operator for integer division
query I rowsort label-6942
SELECT col0 DIV 83 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6942
SELECT col0 / 83 FROM tab2
----
0
0
0

query I rowsort
SELECT 1 * col0 AS col2 FROM tab0
----
24
35
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 51 col2 FROM tab2
----
51
51
51

query I rowsort
SELECT 11 * + col0 FROM tab2
----
77
858
869

query I rowsort
SELECT 22 FROM tab1, tab0, tab2 AS cor0, tab2
----
81 values hashing to c6f049334398e3533dd6996714479a2f

query I rowsort
SELECT ALL 16 + - col1 FROM tab1 AS cor0
----
-10
3
6

query I rowsort
SELECT + 1 * col1 AS col2 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT ALL + 52 + col0 AS col2 FROM tab2 AS cor0
----
130
131
59

query I rowsort
SELECT 94 AS col1 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to a4d239626cf0546ac1b2f57bb8407089

onlyif mysql # use DIV operator for integer division
query I rowsort label-6951
SELECT - col2 DIV col1 col1 FROM tab2
----
-2
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6951
SELECT - col2 / col1 col1 FROM tab2
----
-2
0
0

query I rowsort
SELECT ALL - ( col0 ) * - 0 * - 28 + - col1 - - col2 AS col1 FROM tab0
----
-53
-9
-96

query I rowsort
SELECT ALL + - ( - tab2.col0 ) + 3 AS col0 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to bcdf3395dd300a3630976efe01f30b24

query I rowsort
SELECT + 50 * col0 + ( - col2 ) * col2 * col0 AS col0 FROM tab2
----
-110126
-4753
-48828

query I rowsort
SELECT - col1 * + cor0.col1 - - col2 AS col2 FROM tab2 AS cor0
----
-251
-3455
-934

query I rowsort
SELECT ALL + 87 + col0 FROM tab2 AS cor0
----
165
166
94

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6957
SELECT ALL CAST( NULL AS SIGNED ) FROM tab0, tab2 AS cor0, tab1 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-6957
SELECT ALL CAST ( NULL AS INTEGER ) FROM tab0, tab2 AS cor0, tab1 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT ALL ( + col2 ) + col0 AS col2 FROM tab0
----
171
36
57

query I rowsort
SELECT ALL + 11 * + 90 AS col0 FROM tab1 AS cor0
----
990
990
990

skipif mysql # not compatible
query I rowsort
SELECT ALL - - ( col0 ) * + col0 + + CAST ( + col1 * cor0.col1 AS REAL ) AS col2 FROM tab1 AS cor0
----
4196
6569
685

query I rowsort
SELECT DISTINCT + col0 + 50 * col0 * ( col1 + col0 ) FROM tab1 AS cor0
----
236864
372080
4353

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col1 - 77 col0 FROM tab0
----
20
2761
7385

query I rowsort
SELECT col2 + col2 * - ( col1 ) * tab1.col1 FROM tab1
----
-16128
-36450
-5643

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6964
SELECT DISTINCT col2 + CAST( 40 * + col1 + ( - col2 ) AS SIGNED ) FROM tab2
----
1240
2360
680

skipif mysql # not compatible
query I rowsort label-6964
SELECT DISTINCT col2 + CAST ( 40 * + col1 + ( - col2 ) AS INTEGER ) FROM tab2
----
1240
2360
680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6965
SELECT ALL - col0 + - CAST( + col0 * + col1 AS SIGNED ) FROM tab0
----
-2088
-3430
-8188

skipif mysql # not compatible
query I rowsort label-6965
SELECT ALL - col0 + - CAST ( + col0 * + col1 AS INTEGER ) FROM tab0
----
-2088
-3430
-8188

query I rowsort
SELECT DISTINCT tab1.col2 + + 61 AS col0 FROM tab1
----
115
118
157

query I rowsort
SELECT col0 - - col1 * 18 FROM tab1
----
244
314
471

query I rowsort
SELECT DISTINCT - - col1 - col0 * col0 * + ( col2 ) AS col0 FROM tab1 AS cor0
----
-233462
-460
-614387

query I rowsort
SELECT + - ( col1 ) * col2 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT + + 77 AS col0 FROM tab1 AS cor0
----
77
77
77

query I rowsort
SELECT col0 + - 6 AS col1 FROM tab2 AS cor0
----
1
72
73

query I rowsort
SELECT DISTINCT 89 * - col1 * - cor0.col0 + - col0 AS col0 FROM tab0 AS cor0
----
183672
302120
720722

query I rowsort
SELECT + cor0.col2 * + 84 FROM tab1 AS cor0
----
4536
4788
8064

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 97 col1 FROM tab0 AS cor0
----
97
97
97

query I rowsort
SELECT ALL + - 74 * + col0 FROM tab2 cor0
----
-518
-5772
-5846

onlyif mysql # use DIV operator for integer division
query I rowsort label-6976
SELECT DISTINCT - - col1 - col1 DIV col0 AS col0 FROM tab2 AS cor0
----
17
27
59

skipif mysql # not compatible
query I rowsort label-6976
SELECT DISTINCT - - col1 - col1 / col0 AS col0 FROM tab2 AS cor0
----
17
27
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-6977
SELECT + col0 DIV + ( col1 ) + + col0 * col0 AS col2 FROM tab2 AS cor0
----
49
6085
6245

skipif mysql # not compatible
query I rowsort label-6977
SELECT + col0 / + ( col1 ) + + col0 * col0 AS col2 FROM tab2 AS cor0
----
49
6085
6245

query I rowsort
SELECT DISTINCT + col1 + ( cor0.col2 ) FROM tab2 AS cor0
----
55
58
85

onlyif mysql # use DIV operator for integer division
query I rowsort label-6979
SELECT col2 DIV ( - 92 ) FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6979
SELECT col2 / ( - 92 ) FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL 56 + - tab2.col2 FROM tab2
----
18
29
30

onlyif mysql # use DIV operator for integer division
query I rowsort label-6981
SELECT cor0.col1 DIV - 79 FROM tab0, tab0 AS cor0
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b

skipif mysql # not compatible
query I rowsort label-6981
SELECT cor0.col1 / - 79 FROM tab0, tab0 AS cor0
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b

onlyif mysql # use DIV operator for integer division
query I rowsort label-6982
SELECT - 48 DIV + col1 col2 FROM tab2
----
-1
-2
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6982
SELECT - 48 / + col1 col2 FROM tab2
----
-1
-2
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - col0 * col0 col2 FROM tab0 cor0
----
-1224
-543
-7839

onlyif mysql # use DIV operator for integer division
query I rowsort label-6984
SELECT DISTINCT col2 * - col1 + - col1 DIV + col0 FROM tab1
----
-1248
-1412
-570

skipif mysql # not compatible
query I rowsort label-6984
SELECT DISTINCT col2 * - col1 + - col1 / + col0 FROM tab1
----
-1248
-1412
-570

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6985
SELECT ALL col2 * + CAST( col2 AS SIGNED ) * - col2 AS col0 FROM tab2
----
-17576
-19683
-54872

skipif mysql # not compatible
query I rowsort label-6985
SELECT ALL col2 * + CAST ( col2 AS INTEGER ) * - col2 AS col0 FROM tab2
----
-17576
-19683
-54872

query I rowsort
SELECT col0 + - ( + col1 ) * col1 * col0 FROM tab0
----
-177480
-329280
-736920

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab2.col0 + + 39 col2 FROM tab2
----
-39
-40
32

query I rowsort
SELECT + col0 * col2 + tab1.col0 * - col0 AS col2 FROM tab1
----
-448
1280
153

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6989
SELECT DISTINCT col1 * - CAST( NULL AS SIGNED ) * - 1 AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6989
SELECT DISTINCT col1 * - CAST ( NULL AS INTEGER ) * - 1 AS col2 FROM tab2
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6990
SELECT col0 * + CAST( NULL AS DECIMAL ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6990
SELECT col0 * + CAST ( NULL AS REAL ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 * + ( + 64 ) FROM tab1 cor0
----
3456
3648
6144

onlyif mysql # use DIV operator for integer division
query I rowsort label-6992
SELECT ALL - col2 DIV tab0.col0 AS col1 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-6992
SELECT ALL - col2 / tab0.col0 AS col1 FROM tab0
----
-1
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6993
SELECT DISTINCT - 59 - col2 DIV col0 AS col2 FROM tab1
----
-59
-60
-77

skipif mysql # not compatible
query I rowsort label-6993
SELECT DISTINCT - 59 - col2 / col0 AS col2 FROM tab1
----
-59
-60
-77

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6994
SELECT - CAST( ( + col2 ) AS SIGNED ) + col1 * tab0.col2 + col2 * 91 * col1 AS col1 FROM tab0
----
261063
686422
8923

skipif mysql # not compatible
query I rowsort label-6994
SELECT - CAST ( ( + col2 ) AS INTEGER ) + col1 * tab0.col2 + col2 * 91 * col1 AS col1 FROM tab0
----
261063
686422
8923

query I rowsort
SELECT - + ( + col2 ) * - 87 - col1 AS col1 FROM tab2 AS cor0
----
2203
2318
3289

query I rowsort
SELECT 92 + col2 AS col0 FROM tab2 AS cor0
----
118
119
130

query I rowsort
SELECT + col2 + - 97 * + col2 + col0 FROM tab2
----
-2418
-2585
-3569

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6998
SELECT - CAST( + 35 AS SIGNED ) * cor0.col0 * CAST( - cor0.col0 AS SIGNED ) AS col2 FROM tab2 cor0
----
1715
212940
218435

skipif mysql # not compatible
query I rowsort label-6998
SELECT - CAST ( + 35 AS INTEGER ) * cor0.col0 * CAST ( - cor0.col0 AS INTEGER ) AS col2 FROM tab2 cor0
----
1715
212940
218435

query I rowsort
SELECT ALL cor0.col2 + col0 * + col1 FROM tab2 cor0
----
1381
244
4628

query I rowsort
SELECT ALL - ( + col0 ) + col2 AS col1 FROM tab1
----
-7
16
51

query I rowsort
SELECT ALL - ( + col2 ) * col1 + 2 * - col1 FROM tab1
----
-1274
-1456
-590

query I rowsort
SELECT ALL 73 + + col1 * + col1 FROM tab2
----
1034
3554
362

query I rowsort
SELECT DISTINCT + - 7 * col2 + + ( col0 ) FROM tab0 AS cor0
----
-207
-485
28

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7004
SELECT + + 64 * col1 + - CAST( NULL AS DECIMAL ) * + col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7004
SELECT + + 64 * col1 + - CAST ( NULL AS REAL ) * + col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 * cor0.col1 * - col2 AS col0 FROM tab2 AS cor0
----
-119652
-51034
-5859

query I rowsort
SELECT + - 85 - - col2 * + 17 FROM tab1 AS cor0
----
1547
833
884

query I rowsort
SELECT + - col1 * - col0 * + ( - ( + col0 ) ) + col1 * + col0 AS col0 FROM tab0 cor0
----
-115430
-47472
-712712

query I rowsort
SELECT DISTINCT 46 + cor0.col0 FROM tab2 AS cor0
----
124
125
53

query I rowsort
SELECT ALL + - col0 * - col1 - + col2 * + col0 AS col0 FROM tab0 AS cor0
----
1272
3360
801

query I rowsort
SELECT ALL 28 * 45 + + cor0.col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 8cb7cf77d1e3a62f4c9bc42ff993b82d

query I rowsort
SELECT ALL - cor0.col2 * - cor0.col2 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 8a9dbff4c424879f0bb94abfbb1a134b

query I rowsort
SELECT - - col2 + col1 * 89 AS col1 FROM tab1 AS cor0
----
1253
2368
947

query I rowsort
SELECT ( col2 ) * + ( col1 ) FROM tab1
----
1248
1404
570

query I rowsort
SELECT + 44 * cor0.col2 - - col0 AS col2 FROM tab2 AS cor0
----
1195
1222
1751

query I rowsort
SELECT col1 * + cor0.col1 AS col0 FROM tab1 cor0
----
100
169
676

query I rowsort
SELECT + - col0 - 45 * col2 * - col1 FROM tab2 AS cor0
----
28991
37658
68952

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7017
SELECT - - col2 + CAST( col1 AS SIGNED ) * - col2 FROM tab2 AS cor0
----
-1508
-608
-810

skipif mysql # not compatible
query I rowsort label-7017
SELECT - - col2 + CAST ( col1 AS INTEGER ) * - col2 FROM tab2 AS cor0
----
-1508
-608
-810

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7018
SELECT - - cor0.col1 / CAST( NULL AS SIGNED ) - col2 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-7018
SELECT - - cor0.col1 / CAST ( NULL AS INTEGER ) - col2 col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 + - col2 * - ( col0 ) AS col2 FROM tab1 cor0
----
188
3658
7693

query I rowsort
SELECT DISTINCT col0 + col2 * col0 * + tab2.col2 AS col0 FROM tab2
----
114155
5110
52806

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + - col0 col1 FROM tab1
----
-128
-160
-6

query I rowsort
SELECT - cor0.col1 + - 8 AS col1 FROM tab2 AS cor0
----
-25
-39
-67

query I rowsort
SELECT + 24 * ( - col1 ) FROM tab0 AS cor0
----
-2064
-2184
-2328

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7024
SELECT DISTINCT - ( + 49 ) * - col2 + CAST( - 67 AS SIGNED ) * col0 AS col0 FROM tab2 AS cor0
----
-3431
-3952
854

skipif mysql # not compatible
query I rowsort label-7024
SELECT DISTINCT - ( + 49 ) * - col2 + CAST ( - 67 AS INTEGER ) * col0 AS col0 FROM tab2 AS cor0
----
-3431
-3952
854

query I rowsort
SELECT - col1 + - 29 * - col1 FROM tab0 AS cor0
----
2408
2548
2716

query I rowsort
SELECT - ( - 36 ) FROM tab0 AS cor0
----
36
36
36

query I rowsort
SELECT + col1 * 46 FROM tab0 AS cor0
----
3956
4186
4462

query I rowsort
SELECT - 27 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 90b76caf54a4e48ee4a9784f52997a6a

query I rowsort
SELECT col0 * + 10 FROM tab0 AS cor0
----
240
350
890

query I rowsort
SELECT + 5 * 57 FROM tab2 AS cor0
----
285
285
285

onlyif mysql # use DIV operator for integer division
query I rowsort label-7031
SELECT + - col2 DIV col0 AS col2 FROM tab0 cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-7031
SELECT + - col2 / col0 AS col2 FROM tab0 cor0
----
-1
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col1 * - 66 col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 3a90004c7c8d24603de004ba3ced0401

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7033
SELECT DISTINCT CAST( NULL AS SIGNED ) * 8 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7033
SELECT DISTINCT CAST ( NULL AS INTEGER ) * 8 FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - col1 - + col1 * - col2 * + cor0.col1 col0 FROM tab0 AS cor0
----
243896
678860
9215

query I rowsort
SELECT DISTINCT + ( + 46 ) * - col1 AS col0 FROM tab2 AS cor0
----
-1426
-2714
-782

onlyif mysql # use DIV operator for integer division
query I rowsort label-7036
SELECT DISTINCT - col2 + ( col2 ) * + col1 + + cor0.col2 DIV + col0 AS col1 FROM tab2 AS cor0
----
1508
608
813

skipif mysql # not compatible
query I rowsort label-7036
SELECT DISTINCT - col2 + ( col2 ) * + col1 + + cor0.col2 / + col0 AS col1 FROM tab2 AS cor0
----
1508
608
813

query I rowsort
SELECT ALL + 89 AS col1 FROM tab2 cor0
----
89
89
89

query I rowsort
SELECT DISTINCT - - ( + col1 ) + col1 AS col1 FROM tab2 cor0
----
118
34
62

query I rowsort
SELECT ( - col2 ) * - col0 + cor0.col2 * - col0 + + cor0.col0 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT + + 98 * 1 + - col2 FROM tab2 AS cor0
----
60
71
72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 82 col0 FROM tab0, tab0 AS cor0
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c

onlyif mysql # use DIV operator for integer division
query I rowsort label-7042
SELECT col2 - - ( - 56 ) DIV + col1 col1 FROM tab0
----
1
33
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7042
SELECT col2 - - ( - 56 ) / + col1 col1 FROM tab0
----
1
33
82

query I rowsort
SELECT ALL col2 + + tab0.col0 - col0 AS col1 FROM tab0
----
1
33
82

query I rowsort
SELECT DISTINCT - ( col1 ) + col0 * col0 AS col1 FROM tab2
----
18
6025
6224

query I rowsort
SELECT + 43 + col1 + col1 FROM tab0
----
215
225
237

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7046
SELECT - CAST( NULL AS SIGNED ) * - col1 - - col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7046
SELECT - CAST ( NULL AS INTEGER ) * - col1 - - col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 59 + + col2 + col0 * cor0.col1 FROM tab0 AS cor0
----
2156
3455
8240

query I rowsort
SELECT + + 97 + col2 * col1 AS col2 FROM tab1 AS cor0
----
1345
1501
667

query I rowsort
SELECT - 14 - col0 FROM tab0 AS cor0
----
-103
-38
-49

query I rowsort
SELECT - 66 AS col2 FROM tab0 cor0
----
-66
-66
-66

query I rowsort
SELECT cor0.col2 * col2 - - col0 AS col2 FROM tab1 AS cor0
----
2919
3313
9296

query I rowsort
SELECT DISTINCT - ( - 5 ) * cor1.col1 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
155
295
85

query I rowsort
SELECT col0 * + 37 - tab0.col1 AS col0 FROM tab0
----
1198
3202
802

onlyif mysql # use DIV operator for integer division
query I rowsort label-7054
SELECT col2 DIV ( - 68 ) + + col2 * col0 FROM tab0
----
35
7297
792

skipif mysql # not compatible
query I rowsort label-7054
SELECT col2 / ( - 68 ) + + col2 * col0 FROM tab0
----
35
7297
792

onlyif mysql # use DIV operator for integer division
query I rowsort label-7055
SELECT DISTINCT cor0.col2 * ( + cor0.col1 ) * + cor0.col2 - - cor0.col2 DIV col1 AS col0 FROM tab1 AS cor0
----
119815
32495
75818

skipif mysql # not compatible
query I rowsort label-7055
SELECT DISTINCT cor0.col2 * ( + cor0.col1 ) * + cor0.col2 - - cor0.col2 / col1 AS col0 FROM tab1 AS cor0
----
119815
32495
75818

onlyif mysql # use DIV operator for integer division
query I rowsort label-7056
SELECT - col2 DIV + ( col2 ) + + col1 AS col2 FROM tab0
----
85
90
96

skipif mysql # not compatible
query I rowsort label-7056
SELECT - col2 / + ( col2 ) + + col1 AS col2 FROM tab0
----
85
90
96

query I rowsort
SELECT ALL - col2 * + tab2.col0 * + col2 FROM tab2
----
-114076
-5103
-52728

query I rowsort
SELECT - + col0 * ( + 8 ) FROM tab0 AS cor0
----
-192
-280
-712

query I rowsort
SELECT DISTINCT cor0.col0 * 30 AS col2 FROM tab2 cor0
----
210
2340
2370

query I rowsort
SELECT + + col0 + 90 AS col0 FROM tab0 AS cor0
----
114
125
179

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7061
SELECT DISTINCT - - col0 * CAST( - 34 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-1190
-3026
-816

skipif mysql # not compatible
query I rowsort label-7061
SELECT DISTINCT - - col0 * CAST ( - 34 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-1190
-3026
-816

query I rowsort
SELECT ALL col2 + + 12 FROM tab0 AS cor0
----
13
45
94

query I rowsort
SELECT - col2 + + ( + 53 ) * col2 FROM tab2 AS cor0
----
1352
1404
1976

query I rowsort
SELECT ALL - col0 + 40 FROM tab2 AS cor0
----
-38
-39
33

query I rowsort
SELECT + col1 * col2 * - col2 AS col2 FROM tab1 AS cor0
----
-119808
-32490
-75816

query I rowsort
SELECT + col2 * col0 * - col2 AS col1 FROM tab2 cor0
----
-114076
-5103
-52728

onlyif mysql # use DIV operator for integer division
query I rowsort label-7067
SELECT DISTINCT + cor0.col1 + - col0 DIV - col0 + col1 FROM tab1 AS cor0
----
21
27
53

skipif mysql # not compatible
query I rowsort label-7067
SELECT DISTINCT + cor0.col1 + - col0 / - col0 + col1 FROM tab1 AS cor0
----
21
27
53

onlyif mysql # use DIV operator for integer division
query I rowsort label-7068
SELECT DISTINCT ( + cor0.col2 ) - - col1 DIV - col1 FROM tab0 AS cor0
----
0
32
81

skipif mysql # not compatible
query I rowsort label-7068
SELECT DISTINCT ( + cor0.col2 ) - - col1 / - col1 FROM tab0 AS cor0
----
0
32
81

query I rowsort
SELECT ALL + + cor0.col1 * col2 - cor0.col2 * 19 AS col1 FROM tab2 cor0
----
-76
1040
324

query I rowsort
SELECT DISTINCT - ( col1 ) * + col2 + ( col0 + cor0.col2 ) * 64 AS col0 FROM tab2 AS cor0
----
1339
5122
6842

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + cor0.col1 col1 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT ALL - + 73 * + col1 FROM tab2 AS cor0
----
-1241
-2263
-4307

onlyif mysql # use DIV operator for integer division
query I rowsort label-7073
SELECT - - col1 + col0 DIV ( col1 * col0 ) FROM tab2 AS cor0
----
17
31
59

skipif mysql # not compatible
query I rowsort label-7073
SELECT - - col1 + col0 / ( col1 * col0 ) FROM tab2 AS cor0
----
17
31
59

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7074
SELECT - col2 * + cor0.col1 + - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7074
SELECT - col2 * + cor0.col1 + - CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 17 + cor0.col0 AS col1 FROM tab0 AS cor0
----
18
7
72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 54 * - tab2.col2 col0 FROM tab2
----
-1404
-1458
-2052

query I rowsort
SELECT ALL - ( - 13 ) AS col0 FROM tab1
----
13
13
13

query I rowsort
SELECT DISTINCT 59 + + col2 FROM tab1 AS cor0
----
113
116
155

query I rowsort
SELECT ALL + col0 + col1 * col2 AS col2 FROM tab1 AS cor0
----
1328
1407
634

query I rowsort
SELECT + 91 + + ( + cor1.col2 ) FROM tab2, tab2 AS cor0, tab2 cor1
----
27 values hashing to fe26d3256f74c78ce5159e67cb3aad95

query I rowsort
SELECT ALL + col1 * col1 + - col0 AS col0 FROM tab0
----
7372
8192
9374

onlyif mysql # use DIV operator for integer division
query I rowsort label-7082
SELECT ALL col2 * col2 DIV col0 + + ( col2 ) * 93 AS col0 FROM tab0
----
3114
7701
93

skipif mysql # not compatible
query I rowsort label-7082
SELECT ALL col2 * col2 / col0 + + ( col2 ) * 93 AS col0 FROM tab0
----
3114
7701
93

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 DISTINCT + col0 + + 49 AS col2 FROM tab0 AS cor0
----
138
73
84

query I rowsort
SELECT DISTINCT + col1 * 13 + col1 FROM tab1 AS cor0
----
140
182
364

onlyif mysql # use DIV operator for integer division
query I rowsort label-7086
SELECT - col0 + cor0.col1 DIV + cor0.col1 FROM tab2 AS cor0
----
-6
-77
-78

skipif mysql # not compatible
query I rowsort label-7086
SELECT - col0 + cor0.col1 / + cor0.col1 FROM tab2 AS cor0
----
-6
-77
-78

query I rowsort
SELECT ALL + - col2 * ( col1 ) * - col0 FROM tab1 AS cor0
----
36480
4212
99840

query I rowsort
SELECT DISTINCT 75 + col2 + + 89 FROM tab2
----
190
191
202

query I rowsort
SELECT DISTINCT + 44 * col0 * col0 + col0 FROM tab2
----
2163
267774
274683

query I rowsort
SELECT ALL cor1.col1 * 68 AS col2 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 65dbc8b876546bffecf24880ae4b79f9

query I rowsort
SELECT + 43 * 61 FROM tab2 AS cor0
----
2623
2623
2623

query I rowsort
SELECT + - col2 + + col1 + col0 FROM tab1 AS cor0
----
-25
-3
17

query I rowsort
SELECT DISTINCT - ( + 33 * + col1 ) AS col0 FROM tab1
----
-330
-429
-858

query I rowsort
SELECT ALL 28 FROM tab0, tab0 AS cor0
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97

query I rowsort
SELECT ALL + cor0.col2 * cor0.col0 + cor0.col1 * cor0.col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 91505150e583a21accebcb4e89570aa7

query I rowsort
SELECT col1 + col2 - - col0 FROM tab1
----
131
189
83

query I rowsort
SELECT ALL col2 + col1 + col1 FROM tab2
----
144
72
89

query I rowsort
SELECT col1 + + 70 * col1 FROM tab0
----
6106
6461
6887

query I rowsort
SELECT DISTINCT - col1 + col0 * col2 FROM tab1
----
136
3638
7667

query I rowsort
SELECT + 3 + - col0 FROM tab0 AS cor0
----
-21
-32
-86

onlyif mysql # use DIV operator for integer division
query I rowsort label-7101
SELECT DISTINCT - col0 DIV ( col1 ) col2 FROM tab0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7101
SELECT DISTINCT - col0 / ( col1 ) col2 FROM tab0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( col1 ) * - col2 col2 FROM tab1
----
-1248
-1404
-570

query I rowsort
SELECT 45 * tab1.col1 AS col2 FROM tab1
----
1170
450
585

onlyif mysql # use DIV operator for integer division
query I rowsort label-7104
SELECT 0 * + col2 DIV + col0 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7104
SELECT 0 * + col2 / + col0 AS col0 FROM tab1
----
0
0
0

query I rowsort
SELECT col2 + 38 * - col0 FROM tab2
----
-239
-2938
-2964

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7106
SELECT CAST( NULL AS SIGNED ) * - col2 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7106
SELECT CAST ( NULL AS INTEGER ) * - col2 AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT tab2.col0 + - col2 * 60 * col0 AS col1 FROM tab2
----
-11333
-121602
-180041

query I rowsort
SELECT DISTINCT - + col0 + ( + cor0.col1 ) AS col0 FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT DISTINCT - col2 + col0 * 84 AS col2 FROM tab2 AS cor0
----
561
6526
6598

query I rowsort
SELECT ALL + - col0 + + 40 FROM tab1 AS cor0
----
-24
-40
37

onlyif mysql # use DIV operator for integer division
query I rowsort label-7111
SELECT + col2 DIV + col0 + - col1 AS col2 FROM tab1
----
-10
-12
-8

skipif mysql # not compatible
query I rowsort label-7111
SELECT + col2 / + col0 + - col1 AS col2 FROM tab1
----
-10
-12
-8

query I rowsort
SELECT ALL - ( - col1 + 85 ) * - col1 AS col0 FROM tab2
----
1156
1534
1674

query I rowsort
SELECT ALL - cor0.col0 AS col0 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to c82df1de3cb666224690a83f3d790d79

query I rowsort
SELECT DISTINCT tab2.col1 * - col1 - - ( col1 ) * - col1 * - col1 FROM tab2
----
201898
28830
4624

query I rowsort
SELECT col0 + + 27 + 16 AS col0 FROM tab2
----
121
122
50

query I rowsort
SELECT DISTINCT + col1 - - cor0.col0 FROM tab0 AS cor0
----
110
132
180

onlyif mysql # use DIV operator for integer division
query I rowsort label-7117
SELECT DISTINCT - col0 + 61 + - col0 DIV - col1 AS col1 FROM tab2 AS cor0
----
-14
-16
54

skipif mysql # not compatible
query I rowsort label-7117
SELECT DISTINCT - col0 + 61 + - col0 / - col1 AS col1 FROM tab2 AS cor0
----
-14
-16
54

query I rowsort
SELECT ALL - cor0.col1 - + cor0.col2 AS col1 FROM tab0 AS cor0
----
-119
-173
-98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7119
SELECT col2 * CAST( - ( + col0 ) AS SIGNED ) FROM tab2 AS cor0
----
-189
-2028
-3002

skipif mysql # not compatible
query I rowsort label-7119
SELECT col2 * CAST ( - ( + col0 ) AS INTEGER ) FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT DISTINCT + - col1 + - ( 74 ) FROM tab2 cor0
----
-105
-133
-91

query I rowsort
SELECT - col2 * col2 * col1 + col2 * - col0 FROM tab1
----
-127488
-36138
-75978

query I rowsort
SELECT ALL + cor0.col2 * tab0.col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 54522441dbf7fb56e19a888572d1f6e3

query I rowsort
SELECT - cor0.col2 * - cor0.col0 AS col1 FROM tab1 cor0
----
162
3648
7680

query I rowsort
SELECT cor0.col0 + col0 * + col1 FROM tab1 AS cor0
----
1120
704
81

query I rowsort
SELECT ALL col0 AS col2 FROM tab1 WHERE NULL = NULL AND NOT ( + col2 * + col0 ) <= + col2
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-7126
SELECT DISTINCT - col2 DIV cor0.col0 col2 FROM tab2 AS cor0
----
-3
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7126
SELECT DISTINCT - col2 / cor0.col0 col2 FROM tab2 AS cor0
----
-3
0

query I rowsort
SELECT col2 + - col2 * - col1 AS col0 FROM tab1 cor0
----
1344
1458
627

query I rowsort
SELECT + + 49 + col2 * col1 FROM tab0 cor0
----
146
2887
7511

query I rowsort
SELECT col1 + cor0.col2 * cor0.col2 AS col0 FROM tab2 AS cor0
----
1461
735
760

query I rowsort
SELECT DISTINCT + + cor0.col0 * col0 * - col1 FROM tab0 AS cor0
----
-118825
-49536
-720811

query I rowsort
SELECT DISTINCT - ( col2 ) * - col2 + col1 * cor0.col1 FROM tab0 AS cor0
----
15005
8485
9410

query I rowsort
SELECT - col1 * + col0 + col2 * col2 + col1 AS col1 FROM tab2 AS cor0
----
-3867
118
543

query I rowsort
SELECT DISTINCT + + 87 * col2 FROM tab1 AS cor0
----
4698
4959
8352

onlyif mysql # use DIV operator for integer division
query I rowsort label-7134
SELECT cor0.col0 + - col2 * col0 DIV - col2 FROM tab1 AS cor0
----
128
160
6

skipif mysql # not compatible
query I rowsort label-7134
SELECT cor0.col0 + - col2 * col0 / - col2 FROM tab1 AS cor0
----
128
160
6

query I rowsort
SELECT DISTINCT - ( col1 ) * col2 + col0 AS col2 FROM tab0 AS cor0
----
-2814
-62
-7373

query I rowsort
SELECT ALL - + 53 * - col2 FROM tab0 AS cor0
----
1749
4346
53

query I rowsort
SELECT DISTINCT + cor0.col1 - + col1 * col2 FROM tab2 AS cor0
----
-1475
-629
-806

onlyif mysql # use DIV operator for integer division
query I rowsort label-7138
SELECT - - cor0.col2 DIV - col0 FROM tab2 AS cor0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-7138
SELECT - - cor0.col2 / - col0 FROM tab2 AS cor0
----
-3
0
0

query I rowsort
SELECT DISTINCT + 43 + - col2 * + col1 AS col1 FROM tab0 AS cor0
----
-2795
-54
-7419

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + cor0.col2 + - cor0.col2 col0 FROM tab1 AS cor0
----
2862
3192
9120

onlyif mysql # use DIV operator for integer division
query I rowsort label-7141
SELECT col2 DIV + cor0.col1 FROM tab2 AS cor0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-7141
SELECT col2 / + cor0.col1 FROM tab2 AS cor0
----
0
0
2

query I rowsort
SELECT - 16 * col2 AS col1 FROM tab0 AS cor0
----
-1312
-16
-528

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 48 col2 FROM tab1
----
48
48
48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 95 + cor0.col1 * col1 col2 FROM tab2 cor0
----
1056
3576
384

query I rowsort
SELECT DISTINCT + + col1 + col1 * col1 AS col0 FROM tab1 AS cor0
----
110
182
702

query I rowsort
SELECT DISTINCT col1 + - col1 * ( - col0 + + col2 * + col1 ) FROM tab0 AS cor0
----
-241918
-5917
-670852

query I rowsort
SELECT + cor0.col2 * col0 + ( col2 ) FROM tab2 AS cor0
----
2054
216
3040

query I rowsort
SELECT + 10 AS col2 FROM tab1
----
10
10
10

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2 cor0 CROSS JOIN tab1, tab2 AS cor1, tab0, tab0 AS cor2
----
3645 values hashing to 1713adaf687595322d888d4eeefdbbc8

query I rowsort
SELECT - ( + tab1.col1 ) AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to b234798d4706314ba14eaad539d0aa88

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7151
SELECT DISTINCT + CAST( NULL AS SIGNED ) * col0 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7151
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * col0 AS col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL + ( + col1 ) + col2 FROM tab1 AS cor0
----
109
67
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-7153
SELECT + 38 + ( + col2 ) DIV + col0 AS col2 FROM tab0
----
38
38
39

skipif mysql # not compatible
query I rowsort label-7153
SELECT + 38 + ( + col2 ) / + col0 AS col2 FROM tab0
----
38
38
39

query I rowsort
SELECT ALL col2 + + 39 * col2 * 22 AS col1 FROM tab2
----
22334
23193
32642

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 99 col1 FROM tab2, tab1 AS cor0
----
99

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7156
SELECT + CAST( - 21 AS SIGNED ) FROM tab2 AS cor0
----
-21
-21
-21

skipif mysql # not compatible
query I rowsort label-7156
SELECT + CAST ( - 21 AS INTEGER ) FROM tab2 AS cor0
----
-21
-21
-21

query I rowsort
SELECT + ( 94 ) FROM tab2 AS cor0
----
94
94
94

query I rowsort
SELECT ( - col2 ) + col2 AS col2 FROM tab1
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7159
SELECT CAST( - ( col0 ) AS SIGNED ) * col2 + + cor0.col2 FROM tab1 AS cor0
----
-108
-3591
-7584

skipif mysql # not compatible
query I rowsort label-7159
SELECT CAST ( - ( col0 ) AS INTEGER ) * col2 + + cor0.col2 FROM tab1 AS cor0
----
-108
-3591
-7584

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7160
SELECT - + CAST( col1 AS SIGNED ) * col0 * + col1 AS col0 FROM tab0 AS cor0
----
-177504
-329315
-737009

skipif mysql # not compatible
query I rowsort label-7160
SELECT - + CAST ( col1 AS INTEGER ) * col0 * + col1 AS col0 FROM tab0 AS cor0
----
-177504
-329315
-737009

query I rowsort
SELECT ALL + ( + 97 ) AS col2 FROM tab0 AS cor0
----
97
97
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-7162
SELECT ALL cor0.col0 * col2 + 63 DIV - col1 AS col0 FROM tab2 AS cor0
----
187
2027
2999

skipif mysql # not compatible
query I rowsort label-7162
SELECT ALL cor0.col0 * col2 + 63 / - col1 AS col0 FROM tab2 AS cor0
----
187
2027
2999

query I rowsort
SELECT DISTINCT + - col1 * + col1 - - col1 AS col1 FROM tab2 AS cor0
----
-272
-3422
-930

query I rowsort
SELECT ALL col0 * col0 + col2 AS col0 FROM tab2 cor0
----
6110
6279
76

query I rowsort
SELECT - col0 * - col0 * col0 AS col0 FROM tab2 AS cor0
----
343
474552
493039

query I rowsort
SELECT col1 * + 10 FROM tab1
----
100
130
260

query I rowsort
SELECT DISTINCT - col2 * - col0 - + 28 AS col0 FROM tab2 AS cor0
----
161
2000
2974

query I rowsort
SELECT DISTINCT - + col1 - - col2 FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT ALL + col1 * - col0 - col0 AS col1 FROM tab0
----
-2088
-3430
-8188

query I rowsort
SELECT ALL col0 + - 13 * ( col1 ) + ( + 54 ) FROM tab1
----
-12
-281
-35

query I rowsort
SELECT - col2 * - col1 + - ( - col2 ) + 16 AS col1 FROM tab0 AS cor0
----
114
2887
7560

query I rowsort
SELECT ALL + cor0.col1 * - 18 AS col2 FROM tab2 AS cor0
----
-1062
-306
-558

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7173
SELECT DISTINCT + col2 * + CAST( NULL AS SIGNED ) / + 51 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7173
SELECT DISTINCT + col2 * + CAST ( NULL AS INTEGER ) / + 51 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + + 84 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to cadd876c26338fc58b9297e74fc324d8

query I rowsort
SELECT ALL cor0.col1 * ( 39 ) AS col0 FROM tab2 AS cor0
----
1209
2301
663

onlyif mysql # use DIV operator for integer division
query I rowsort label-7176
SELECT + col0 - + col0 * ( + col0 ) DIV + 46 FROM tab1 AS cor0
----
-25
-59
3

skipif mysql # not compatible
query I rowsort label-7176
SELECT + col0 - + col0 * ( + col0 ) / + 46 FROM tab1 AS cor0
----
-25
-59
3

query I rowsort
SELECT ALL + + col0 * cor0.col1 + - col2 AS col2 FROM tab1 AS cor0
----
24
583
944

query I rowsort
SELECT - - 30 * ( - col1 ) AS col1 FROM tab0 AS cor0
----
-2580
-2730
-2910

query I rowsort
SELECT DISTINCT - cor0.col1 * - 58 FROM tab2 cor0
----
1798
3422
986

query I rowsort
SELECT DISTINCT - + 0 + + col1 FROM tab1 AS cor0
----
10
13
26

onlyif mysql # use DIV operator for integer division
query I rowsort label-7181
SELECT ALL + 72 + col2 DIV col2 FROM tab0 AS cor0
----
73
73
73

skipif mysql # not compatible
query I rowsort label-7181
SELECT ALL + 72 + col2 / col2 FROM tab0 AS cor0
----
73
73
73

query I rowsort
SELECT DISTINCT + - ( col0 ) * - col1 AS col1 FROM tab1 AS cor0
----
1040
640
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 56 col2 FROM tab0 cor0
----
56
56
56

onlyif mysql # use DIV operator for integer division
query I rowsort label-7184
SELECT ALL + ( col2 ) DIV col1 AS col1 FROM tab1 cor0
----
2
5
7

skipif mysql # not compatible
query I rowsort label-7184
SELECT ALL + ( col2 ) / col1 AS col1 FROM tab1 cor0
----
2
5
7

query I rowsort
SELECT DISTINCT - col2 + col1 * col0 - col2 * col0 FROM tab1 AS cor0
----
-138
-3065
-6736

query I rowsort
SELECT col1 * + cor0.col2 + - col2 FROM tab0 AS cor0
----
2805
7380
96

query I rowsort
SELECT DISTINCT - 78 * cor0.col2 FROM tab0 AS cor0
----
-2574
-6396
-78

query I rowsort
SELECT ALL col2 * + col1 - col0 AS col2 FROM tab0 AS cor0
----
2814
62
7373

query I rowsort
SELECT - 86 + + col1 FROM tab1 cor0
----
-60
-73
-76

query I rowsort
SELECT - col2 + tab2.col2 - tab2.col1 AS col2 FROM tab2
----
-17
-31
-59

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7191
SELECT ALL - tab0.col1 * - CAST( col1 AS SIGNED ) * - col2 - col0 FROM tab0
----
-244092
-679131
-9444

skipif mysql # not compatible
query I rowsort label-7191
SELECT ALL - tab0.col1 * - CAST ( col1 AS INTEGER ) * - col2 - col0 FROM tab0
----
-244092
-679131
-9444

query I rowsort
SELECT ALL - col2 - + tab0.col1 * 20 AS col0 FROM tab0
----
-1753
-1902
-1941

onlyif mysql # use DIV operator for integer division
query I rowsort label-7193
SELECT - col0 DIV 59 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-7193
SELECT - col0 / 59 FROM tab1
----
-1
-1
0

query I rowsort
SELECT DISTINCT - 20 * + 55 AS col0 FROM tab1, tab0 AS cor0
----
-1100

query I rowsort
SELECT ALL ( - cor1.col1 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 58ed467a9a332e4d7bfaa9abdbbd063f

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab1, tab2 cor1, tab0 AS cor2, tab1 AS cor3
----
3645 values hashing to 8bda8b9cf32f196464e0ee0b41a5162d

query I rowsort
SELECT + col0 + 81 FROM tab2 cor0
----
159
160
88

query I rowsort
SELECT DISTINCT - - col1 + 8 FROM tab1 cor0
----
18
21
34

query I rowsort
SELECT DISTINCT + + col0 + ( + 36 ) AS col1 FROM tab2 AS cor0
----
114
115
43

query I rowsort
SELECT DISTINCT + - col1 + ( + col0 ) FROM tab0 AS cor0
----
-2
-62

query I rowsort
SELECT + col2 * + 33 - + cor0.col2 AS col2 FROM tab0 cor0
----
1056
2624
32

onlyif mysql # use DIV operator for integer division
query I rowsort label-7202
SELECT - ( + col2 ) + col2 DIV 23 FROM tab2 AS cor0
----
-25
-26
-37

skipif mysql # not compatible
query I rowsort label-7202
SELECT - ( + col2 ) + col2 / 23 FROM tab2 AS cor0
----
-25
-26
-37

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7203
SELECT ALL - + col1 * - 12 * + col2 + - CAST( NULL AS SIGNED ) - col1 * + col2 / 61 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7203
SELECT ALL - + col1 * - 12 * + col2 + - CAST ( NULL AS INTEGER ) - col1 * + col2 / 61 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 21 AS col0 FROM tab2, tab0 cor0
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7

query I rowsort
SELECT 40 * 36 FROM tab2 AS cor0
----
1440
1440
1440

onlyif mysql # use DIV operator for integer division
query I rowsort label-7206
SELECT ALL col0 * cor0.col1 DIV + col0 FROM tab1 cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-7206
SELECT ALL col0 * cor0.col1 / + col0 FROM tab1 cor0
----
10
13
26

query I rowsort
SELECT - 6 * + col0 AS col0 FROM tab1 AS cor0
----
-18
-384
-480

query I rowsort
SELECT DISTINCT + + 59 + col2 AS col1 FROM tab1 AS cor0
----
113
116
155

query I rowsort
SELECT ALL + - col0 * cor0.col1 + - col0 * 49 AS col2 FROM tab2 AS cor0
----
-5214
-560
-8424

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 * - cor0.col2 + ( col1 ) * col0 col2 FROM tab1 AS cor0
----
-3008
-6640
-84

query I rowsort
SELECT 3 * - col0 AS col2 FROM tab0 AS cor0
----
-105
-267
-72

query I rowsort
SELECT - - 0 * - col0 AS col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + col0 * 11 AS col2 FROM tab2 AS cor0
----
77
858
869

onlyif mysql # use DIV operator for integer division
query I rowsort label-7214
SELECT col1 + col0 DIV + col1 AS col2 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-7214
SELECT col1 + col0 / + col1 AS col2 FROM tab0 AS cor0
----
86
91
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-7215
SELECT col0 * - col0 + col2 DIV - 80 AS col0 FROM tab2
----
-49
-6084
-6241

skipif mysql # not compatible
query I rowsort label-7215
SELECT col0 * - col0 + col2 / - 80 AS col0 FROM tab2
----
-49
-6084
-6241

query I rowsort
SELECT ( col1 ) + + tab0.col1 AS col1 FROM tab0
----
172
182
194

query I rowsort
SELECT DISTINCT 88 * col0 FROM tab0
----
2112
3080
7832

query I rowsort
SELECT ALL - 78 FROM tab2, tab0 AS cor0
----
9 values hashing to b6e4cc21599216686f0cf45b85668b2c

onlyif mysql # use DIV operator for integer division
query I rowsort label-7219
SELECT - col1 DIV - ( col1 ) FROM tab0 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7219
SELECT - col1 / - ( col1 ) FROM tab0 cor0
----
1
1
1

query I rowsort
SELECT ALL - - cor0.col2 * + col0 * cor0.col1 + col2 AS col0 FROM tab0 AS cor0
----
3396
664200
68145

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7221
SELECT ALL CAST( NULL AS SIGNED ) * + col1 + - col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7221
SELECT ALL CAST ( NULL AS INTEGER ) * + col1 + - col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7222
SELECT + CAST( NULL AS SIGNED ) * cor0.col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7222
SELECT + CAST ( NULL AS INTEGER ) * cor0.col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7223
SELECT DISTINCT + CAST( NULL AS SIGNED ) + col0 * + col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7223
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + col0 * + col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL - col2 + tab2.col0 * + col0 AS col2 FROM tab2
----
22
6058
6203

query I rowsort
SELECT col2 * 28 FROM tab2
----
1064
728
756

query I rowsort
SELECT col0 * - 70 AS col2 FROM tab0
----
-1680
-2450
-6230

query I rowsort
SELECT + 37 * col0 + + 91 FROM tab2 AS cor0
----
2977
3014
350

query I rowsort
SELECT col0 + + col2 - - ( 98 * cor0.col1 ) FROM tab0 AS cor0
----
8485
9089
9542

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( 39 * col2 ) col1 FROM tab2
----
-1014
-1053
-1482

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7230
SELECT ALL + 86 * cor0.col1 + - CAST( NULL AS DECIMAL ) / - 74 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-7230
SELECT ALL + 86 * cor0.col1 + - CAST ( NULL AS REAL ) / - 74 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT - 76 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to f8b6589bc7503fc720ca5430e3569317

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7232
SELECT + CAST( NULL AS SIGNED ) + col0 * col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7232
SELECT + CAST ( NULL AS INTEGER ) + col0 * col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7233
SELECT DISTINCT col1 * - col2 * + CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7233
SELECT DISTINCT col1 * - col2 * + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query I rowsort
SELECT + ( + 53 ) + cor1.col1 + cor1.col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 108437902a0ac2480b5148cec3b12d5c

query I rowsort
SELECT 87 * + cor0.col1 + col1 * col1 AS col2 FROM tab0 AS cor0
----
14878
16198
17848

query I rowsort
SELECT - 7 * + tab2.col1 * + col2 + - col2 FROM tab2
----
-10764
-4560
-5886

query I rowsort
SELECT ALL col2 + 6 AS col2 FROM tab0
----
39
7
88

query I rowsort
SELECT ALL - ( col0 ) + tab2.col0 AS col2 FROM tab2
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-7239
SELECT DISTINCT col0 DIV col0 + col0 AS col1 FROM tab0
----
25
36
90

skipif mysql # not compatible
query I rowsort label-7239
SELECT DISTINCT col0 / col0 + col0 AS col1 FROM tab0
----
25
36
90

query I rowsort
SELECT ALL + tab0.col0 * + cor0.col2 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to aeeeb4bec4be16eaf92fcfb414a1ef1e

query I rowsort
SELECT + 29 * + ( + tab2.col2 ) AS col0 FROM tab2
----
1102
754
783

query I rowsort
SELECT ALL - col1 + 50 + col2 * 67 AS col2 FROM tab1
----
3642
3859
6469

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7243
SELECT CAST( + col2 AS SIGNED ) * + col1 + col1 AS col2 FROM tab1
----
1261
1430
580

skipif mysql # not compatible
query I rowsort label-7243
SELECT CAST ( + col2 AS INTEGER ) * + col1 + col1 AS col2 FROM tab1
----
1261
1430
580

query I rowsort
SELECT - + col1 * + col2 + col0 AS col0 FROM tab0 AS cor0
----
-2814
-62
-7373

query I rowsort
SELECT DISTINCT + ( + col1 ) * - col0 FROM tab2 AS cor0
----
-1343
-217
-4602

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7246
SELECT ALL - ( col0 ) + CAST( col0 AS SIGNED ) * - col2 * - cor0.col0 FROM tab1 cor0
----
233408
483
614320

skipif mysql # not compatible
query I rowsort label-7246
SELECT ALL - ( col0 ) + CAST ( col0 AS INTEGER ) * - col2 * - cor0.col0 FROM tab1 cor0
----
233408
483
614320

query I rowsort
SELECT ALL - col0 + - col0 * ( 37 ) AS col0 FROM tab1 AS cor0
----
-114
-2432
-3040

onlyif mysql # use DIV operator for integer division
query I rowsort label-7248
SELECT DISTINCT - 20 * col0 DIV + 97 FROM tab2 AS cor0
----
-1
-16

skipif mysql # not compatible
query I rowsort label-7248
SELECT DISTINCT - 20 * col0 / + 97 FROM tab2 AS cor0
----
-1
-16

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + col0 ) + col0 col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL col0 + col1 * + 3 FROM tab1 AS cor0
----
119
81
94

query I rowsort
SELECT + ( + col1 ) + + col2 AS col0 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT DISTINCT + - 46 * - col0 AS col2 FROM tab2 AS cor0
----
322
3588
3634

query I rowsort
SELECT - col0 * col1 * 83 AS col2 FROM tab0 AS cor0
----
-171312
-281785
-672217

query I rowsort
SELECT DISTINCT + col0 * cor0.col0 AS col1 FROM tab0 cor0
----
1225
576
7921

query I rowsort
SELECT + 65 * - 45 * + col2 - - col2 AS col1 FROM tab2
----
-111112
-76024
-78948

query I rowsort
SELECT ALL + + 7 + col0 AS col1 FROM tab2 AS cor0
----
14
85
86

onlyif mysql # use DIV operator for integer division
query I rowsort label-7257
SELECT DISTINCT - + col1 DIV + cor0.col0 - + 41 col1 FROM tab0 AS cor0
----
-42
-43
-44

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7257
SELECT DISTINCT - + col1 / + cor0.col0 - + 41 col1 FROM tab0 AS cor0
----
-42
-43
-44

query I rowsort
SELECT ALL cor0.col2 * col2 + - col0 FROM tab2 cor0
----
1365
598
722

onlyif mysql # use DIV operator for integer division
query I rowsort label-7259
SELECT DISTINCT - 6 DIV + col1 - + cor0.col0 AS col1 FROM tab2 AS cor0
----
-7
-78
-79

skipif mysql # not compatible
query I rowsort label-7259
SELECT DISTINCT - 6 / + col1 - + cor0.col0 AS col1 FROM tab2 AS cor0
----
-7
-78
-79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7260
SELECT - CAST( - 51 AS SIGNED ) * - tab1.col2 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to e7d26abf01df6331630ebe9116994e75

skipif mysql # not compatible
query I rowsort label-7260
SELECT - CAST ( - 51 AS INTEGER ) * - tab1.col2 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to e7d26abf01df6331630ebe9116994e75

query I rowsort
SELECT + col0 + cor0.col0 AS col1 FROM tab2 cor0
----
14
156
158

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7262
SELECT + col1 - CAST( + col2 AS SIGNED ) col1 FROM tab2 AS cor0
----
-21
33
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7262
SELECT + col1 - CAST ( + col2 AS INTEGER ) col1 FROM tab2 AS cor0
----
-21
33
4

query I rowsort
SELECT + + col2 * 77 AS col0 FROM tab1 AS cor0
----
4158
4389
7392

query I rowsort
SELECT + + col1 * + 26 + col0 * col2 * col0 + - col1 FROM tab0 AS cor0
----
21158
3650
651797

query I rowsort
SELECT ALL - 51 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 27bcc31433ce90833ed76619cbd8d6a4

query I rowsort
SELECT - cor0.col2 - - col0 * 17 AS col2 FROM tab2 cor0
----
1300
1305
92

query I rowsort
SELECT ALL col0 + col2 * - 15 AS col2 FROM tab1 AS cor0
----
-1360
-791
-807

query I rowsort
SELECT DISTINCT - - col2 * col2 * 80 + - col1 AS col1 FROM tab0 AS cor0
----
-17
537829
87034

query I rowsort
SELECT ALL col1 - col0 * cor0.col1 FROM tab2 AS cor0
----
-1326
-186
-4543

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7270
SELECT - - CAST( NULL AS DECIMAL ) * + col0 + + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7270
SELECT - - CAST ( NULL AS REAL ) * + col0 + + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + tab1.col1 * + col2 AS col2 FROM tab1
----
1248
1404
570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( - 47 ) * - col0 * - 84 + + 31 - cor0.col0 col0 FROM tab0 cor0
----
-138184
-351430
-94745

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 * col2 + + col0 col1 FROM tab1 AS cor0
----
-2913
-3185
-9136

query I rowsort
SELECT DISTINCT - + col0 * - col2 AS col1 FROM tab1 cor0
----
162
3648
7680

query I rowsort
SELECT DISTINCT - ( - 56 ) + - col0 FROM tab1 cor0
----
-24
-8
53

query I rowsort
SELECT ALL - + 45 + + 28 AS col2 FROM tab1 cor0
----
-17
-17
-17

onlyif mysql # use DIV operator for integer division
query I rowsort label-7277
SELECT ALL col0 DIV - col2 AS col0 FROM tab0 cor0
----
-1
-35
0

skipif mysql # not compatible
query I rowsort label-7277
SELECT ALL col0 / - col2 AS col0 FROM tab0 cor0
----
-1
-35
0

query I rowsort
SELECT - col1 + - ( col2 + 98 ) AS col2 FROM tab2 AS cor0
----
-153
-156
-183

query I rowsort
SELECT DISTINCT + - 54 + col0 AS col0 FROM tab1 AS cor0
----
-51
10
26

query I rowsort
SELECT ALL - + col2 * + col2 + col1 AS col2 FROM tab1 cor0
----
-2890
-3239
-9203

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7281
SELECT DISTINCT + - CAST( NULL AS SIGNED ) * + col1 / - col2 AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7281
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) * + col1 / - col2 AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-7282
SELECT DISTINCT - 60 DIV 15 AS col0 FROM tab1, tab2 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-7282
SELECT DISTINCT - 60 / 15 AS col0 FROM tab1, tab2 AS cor0
----
-4

onlyif mysql # use DIV operator for integer division
query I rowsort label-7283
SELECT DISTINCT col2 DIV - ( 14 ) + col0 AS col2 FROM tab2
----
6
77

skipif mysql # not compatible
query I rowsort label-7283
SELECT DISTINCT col2 / - ( 14 ) + col0 AS col2 FROM tab2
----
6
77

onlyif mysql # use DIV operator for integer division
query I rowsort label-7284
SELECT + col0 DIV col2 + + ( + col1 ) * 74 - - col0 FROM tab0
----
6388
6824
7248

skipif mysql # not compatible
query I rowsort label-7284
SELECT + col0 / col2 + + ( + col1 ) * 74 - - col0 FROM tab0
----
6388
6824
7248

query I rowsort
SELECT - - 71 + col1 FROM tab1 AS cor0
----
81
84
97

query I rowsort
SELECT 15 + col2 + tab1.col1 * - col2 FROM tab1
----
-1137
-1335
-498

query I rowsort
SELECT col1 + col2 + + tab2.col0 FROM tab2
----
134
163
65

query I rowsort
SELECT ALL - ( col2 ) * + cor0.col1 AS col2 FROM tab1 cor0
----
-1248
-1404
-570

onlyif mysql # use DIV operator for integer division
query I rowsort label-7289
SELECT - col2 DIV - 1 FROM tab2 AS cor0
----
26
27
38

skipif mysql # not compatible
query I rowsort label-7289
SELECT - col2 / - 1 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT + - cor0.col1 * 20 + col0 + col0 AS col1 FROM tab0 AS cor0
----
-1642
-1672
-1870

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7291
SELECT DISTINCT - + CAST( NULL AS SIGNED ) * col1 + - col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7291
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) * col1 + - col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + + 2 + col1 AS col0 FROM tab2 AS cor0
----
19
33
61

query I rowsort
SELECT DISTINCT 21 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
21

query I rowsort
SELECT + 26 AS col1 FROM tab2 cor0
----
26
26
26

query I rowsort
SELECT ALL + tab1.col0 * - col2 + - col1 AS col2 FROM tab1
----
-188
-3658
-7693

query I rowsort
SELECT ALL + col1 + + col2 * col2 AS col0 FROM tab0 AS cor0
----
1175
6815
98

query I rowsort
SELECT col0 * + col0 * col0 + - col1 * + col0 AS col0 FROM tab0
----
11760
39480
696870

query I rowsort
SELECT ALL col1 * + col1 * col0 + tab2.col2 AS col2 FROM tab2
----
22869
271544
6754

query I rowsort
SELECT DISTINCT + 97 * 60 FROM tab0, tab2 AS cor0
----
5820

query I rowsort
SELECT DISTINCT - col0 - ( col2 ) * col2 FROM tab0 AS cor0
----
-1113
-36
-6813

query I rowsort
SELECT DISTINCT col1 + - col2 * + col2 FROM tab1 cor0
----
-2890
-3239
-9203

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + 15 * col0 * cor0.col0 col1 FROM tab1 cor0
----
138
61504
96080

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 30 col0 FROM tab0
----
30
30
30

query I rowsort
SELECT - 55 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to b90e74bece5521b514096c5b6e105fde

query I rowsort
SELECT ALL - cor0.col1 * tab2.col0 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 1d6523d2f8b36687eb45e9eba8273957

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 + - col2 * + ( col1 ) * + col1 col1 FROM tab2 AS cor0
----
-11061
-25954
-90584

query I rowsort
SELECT + cor0.col2 * cor0.col1 AS col0 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT DISTINCT col0 + + col1 * - cor0.col1 FROM tab2 AS cor0
----
-210
-3403
-954

query I rowsort
SELECT DISTINCT tab0.col2 + - 21 AS col0 FROM tab0
----
-20
12
61

query I rowsort
SELECT DISTINCT col1 + - ( col0 ) FROM tab2
----
-19
-62
24

query I rowsort
SELECT col1 + 18 FROM tab2 cor0
----
35
49
77

query I rowsort
SELECT ALL - col2 + + col2 * cor0.col2 * - col1 FROM tab1 cor0
----
-119904
-32547
-75870

query I rowsort
SELECT - - col2 + - col0 * cor0.col0 FROM tab1 AS cor0
----
-4039
-6304
45

query I rowsort
SELECT ALL 55 AS col2 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 832128adb1ddc65c3105e29cc2c8b3a3

query I rowsort
SELECT DISTINCT + + col1 * - ( - col0 ) AS col2 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT ALL + col0 + + 90 AS col2 FROM tab2 AS cor0
----
168
169
97

query I rowsort
SELECT ALL col1 * + col2 * + 72 FROM tab0 AS cor0
----
204336
537264
6984

query I rowsort
SELECT ALL - ( - col1 ) * - col2 + - ( + col0 * col0 ) + cor0.col1 FROM tab0 AS cor0
----
-1225
-15292
-3328

query I rowsort
SELECT DISTINCT ( cor0.col1 ) + col0 AS col2 FROM tab2 AS cor0
----
137
38
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-7320
SELECT ALL + + col0 DIV + col1 + - cor0.col0 AS col1 FROM tab2 cor0
----
-7
-75
-77

skipif mysql # not compatible
query I rowsort label-7320
SELECT ALL + + col0 / + col1 + - cor0.col0 AS col1 FROM tab2 cor0
----
-7
-75
-77

query I rowsort
SELECT DISTINCT col0 * + 64 + - col1 FROM tab2 AS cor0
----
417
4933
5039

query I rowsort
SELECT DISTINCT - + col2 * 2 AS col1 FROM tab2 AS cor0
----
-52
-54
-76

query I rowsort
SELECT DISTINCT 0 AS col0 FROM tab2 cor0
----
0

query I rowsort
SELECT DISTINCT + col0 + + col2 * - cor0.col0 AS col1 FROM tab2 AS cor0
----
-182
-1950
-2923

query I rowsort
SELECT + - ( cor0.col1 ) * col0 FROM tab0 cor0
----
-2064
-3395
-8099

query I rowsort
SELECT ALL - + col2 * + 18 + + col1 * ( + 46 ) * col2 FROM tab2 AS cor0
----
29032
38016
70096

query I rowsort
SELECT DISTINCT ( + 20 ) AS col0 FROM tab2 cor0
----
20

query I rowsort
SELECT ALL + tab2.col1 + + tab2.col0 AS col1 FROM tab2
----
137
38
96

query I rowsort
SELECT DISTINCT tab1.col1 + - cor0.col2 AS col0 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
9 values hashing to c9cfe0a4bb4818c8cac363c2529f2675

query I rowsort
SELECT tab2.col0 * + 51 + + col0 FROM tab2
----
364
4056
4108

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7331
SELECT - 21 * ( col1 ) + + CAST( - 33 AS SIGNED ) FROM tab0 AS cor0
----
-1839
-1944
-2070

skipif mysql # not compatible
query I rowsort label-7331
SELECT - 21 * ( col1 ) + + CAST ( - 33 AS INTEGER ) FROM tab0 AS cor0
----
-1839
-1944
-2070

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7332
SELECT + - CAST( NULL AS SIGNED ) + + cor0.col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7332
SELECT + - CAST ( NULL AS INTEGER ) + + cor0.col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 92 * + col2 + - col0 FROM tab0 AS cor0
----
3012
57
7455

query I rowsort
SELECT - ( + col2 ) + + col0 AS col1 FROM tab1 AS cor0
----
-16
-51
7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7335
SELECT + cor0.col2 * + CAST( NULL AS SIGNED ) + + 47 AS col1 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-7335
SELECT + cor0.col2 * + CAST ( NULL AS INTEGER ) + + 47 AS col1 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT col0 * - col2 * cor0.col1 + col2 + col2 FROM tab1 AS cor0
----
-36366
-4104
-99648

query I rowsort
SELECT 49 * + 38 + + col0 * + ( col2 * cor0.col1 ) + - 69 * col0 AS col1 FROM tab0 AS cor0
----
2842
659839
68318

query I rowsort
SELECT - 87 * col2 AS col1 FROM tab2 cor0
----
-2262
-2349
-3306

query I rowsort
SELECT 29 + - col0 + col0 FROM tab1 AS cor0
----
29
29
29

query I rowsort
SELECT DISTINCT + + col0 * col1 + ( col0 * - col2 ) FROM tab1 AS cor0
----
-3008
-6640
-84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 73 * + cor0.col1 col2 FROM tab1 AS cor0
----
1898
730
949

onlyif mysql # use DIV operator for integer division
query I rowsort label-7342
SELECT - 1 + - col2 DIV 71 FROM tab1 AS cor0
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-7342
SELECT - 1 + - col2 / 71 FROM tab1 AS cor0
----
-1
-1
-2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + col1 * 24 col1 FROM tab2 AS cor0
----
1442
446
771

onlyif mysql # use DIV operator for integer division
query I rowsort label-7344
SELECT - col0 DIV col0 + + 91 FROM tab2 AS cor0
----
90
90
90

skipif mysql # not compatible
query I rowsort label-7344
SELECT - col0 / col0 + + 91 FROM tab2 AS cor0
----
90
90
90

query I rowsort
SELECT + 81 AS col2 FROM tab1
----
81
81
81

query I rowsort
SELECT 28 * 30 FROM tab0
----
840
840
840

query I rowsort
SELECT ALL - 62 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to f0e93f6ff5fc3cf50a14e276206dad5c

query I rowsort
SELECT DISTINCT + 99 * tab0.col0 AS col2 FROM tab0
----
2376
3465
8811

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7349
SELECT col2 * CAST( NULL AS SIGNED ) + + col2 + - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7349
SELECT col2 * CAST ( NULL AS INTEGER ) + + col2 + - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-7350
SELECT + col1 DIV - 21 FROM tab2 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-7350
SELECT + col1 / - 21 FROM tab2 AS cor0
----
-1
-2
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 * + col1 * + 99 col0 FROM tab1 AS cor0
----
-102960
-63360
-7722

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 + - col1 + - col0 col1 FROM tab2 AS cor0
----
-17
-31
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col0 col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63

query I rowsort
SELECT ALL ( - col0 + col0 * + col0 ) FROM tab1
----
4032
6
6320

query I rowsort
SELECT DISTINCT - 31 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
-31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * cor0.col0 col2 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT ALL + col1 + - ( - 70 ) * cor0.col0 FROM tab0 AS cor0
----
1766
2547
6321

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - 38 col0 FROM tab1 AS cor0
----
-48
-51
-64

query I rowsort
SELECT - 87 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 84bcab58a965cc8ae97b39d2d01b3d23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - 67 * - 5 col2 FROM tab2 AS cor0
----
352
366
394

query I rowsort
SELECT ALL + col0 + - col1 + - col0 FROM tab0 AS cor0
----
-86
-91
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-7362
SELECT + col0 * - col0 - - ( - 17 ) DIV cor0.col1 col0 FROM tab2 AS cor0
----
-49
-6084
-6242

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7362
SELECT + col0 * - col0 - - ( - 17 ) / cor0.col1 col0 FROM tab2 AS cor0
----
-49
-6084
-6242

query I rowsort
SELECT + + 58 * col2 AS col2 FROM tab2 AS cor0
----
1508
1566
2204

onlyif mysql # use DIV operator for integer division
query I rowsort label-7364
SELECT - - col2 DIV - ( 72 * col2 ) + cor0.col1 * col1 FROM tab0 cor0
----
7396
8281
9409

skipif mysql # not compatible
query I rowsort label-7364
SELECT - - col2 / - ( 72 * col2 ) + cor0.col1 * col1 FROM tab0 cor0
----
7396
8281
9409

query I rowsort
SELECT - col1 + - 7 FROM tab2 AS cor0
----
-24
-38
-66

query I rowsort
SELECT DISTINCT - - col2 + - 90 * - 92 + col2 * - col0 * 41 FROM tab2 AS cor0
----
-114764
-74842
558

onlyif mysql # use DIV operator for integer division
query I rowsort label-7367
SELECT ALL col2 DIV 48 - col2 * - col0 FROM tab2 AS cor0
----
189
2028
3002

skipif mysql # not compatible
query I rowsort label-7367
SELECT ALL col2 / 48 - col2 * - col0 FROM tab2 AS cor0
----
189
2028
3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-7368
SELECT ALL - col1 + - 70 DIV col2 AS col0 FROM tab0 AS cor0
----
-167
-88
-91

skipif mysql # not compatible
query I rowsort label-7368
SELECT ALL - col1 + - 70 / col2 AS col0 FROM tab0 AS cor0
----
-167
-88
-91

query I rowsort
SELECT ALL + + cor0.col1 - col1 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col1 + 9 AS col1 FROM tab0 AS cor0
----
100
106
95

query I rowsort
SELECT DISTINCT + col0 + + cor0.col1 * + col1 AS col1 FROM tab2 AS cor0
----
3559
368
968

query I rowsort
SELECT DISTINCT col1 * + 51 AS col2 FROM tab0 AS cor0
----
4386
4641
4947

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7373
SELECT DISTINCT - - col2 + CAST( col2 AS SIGNED ) * col0 FROM tab0 AS cor0
----
36
7380
825

skipif mysql # not compatible
query I rowsort label-7373
SELECT DISTINCT - - col2 + CAST ( col2 AS INTEGER ) * col0 FROM tab0 AS cor0
----
36
7380
825

query I rowsort
SELECT col2 * + 37 + col2 FROM tab2 AS cor0
----
1026
1444
988

query I rowsort
SELECT + col2 * col2 * col2 FROM tab0 AS cor0
----
1
35937
551368

onlyif mysql # use DIV operator for integer division
query I rowsort label-7376
SELECT - col1 + 8 DIV + col0 FROM tab1 AS cor0
----
-10
-13
-24

skipif mysql # not compatible
query I rowsort label-7376
SELECT - col1 + 8 / + col0 FROM tab1 AS cor0
----
-10
-13
-24

query I rowsort
SELECT - - col0 + - 84 AS col0 FROM tab2 cor0
----
-5
-6
-77

onlyif mysql # use DIV operator for integer division
query I rowsort label-7378
SELECT - 69 DIV col0 FROM tab1 AS cor0
----
-1
-23
0

skipif mysql # not compatible
query I rowsort label-7378
SELECT - 69 / col0 FROM tab1 AS cor0
----
-1
-23
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 80 * - 34 col1 FROM tab0 AS cor0
----
2720

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( 19 ) * col0 col2 FROM tab0 cor0
----
1691
456
665

query I rowsort
SELECT DISTINCT + - 82 * col0 AS col2 FROM tab1 AS cor0
----
-246
-5248
-6560

query I rowsort
SELECT DISTINCT + ( + col2 ) * + cor0.col1 + col0 FROM tab2 AS cor0
----
1612
725
844

query I rowsort
SELECT col1 * col2 * col2 AS col0 FROM tab1 AS cor0
----
119808
32490
75816

query I rowsort
SELECT ( - col0 ) * tab0.col2 AS col2 FROM tab0
----
-35
-7298
-792

query I rowsort
SELECT ALL - 75 AS col2 FROM tab2, tab0 cor0
----
9 values hashing to 258bc565c64924d905a55eaaa6e57547

query I rowsort
SELECT col2 * col1 + - col0 * col0 FROM tab1 AS cor0
----
-3526
-5152
1395

query I rowsort
SELECT DISTINCT - 80 + col1 * - 6 AS col2 FROM tab0 AS cor0
----
-596
-626
-662

query I rowsort
SELECT DISTINCT 9 * cor0.col0 AS col0 FROM tab0 AS cor0
----
216
315
801

query I rowsort
SELECT DISTINCT + 42 * col2 AS col1 FROM tab1 AS cor0
----
2268
2394
4032

query I rowsort
SELECT DISTINCT - col1 * cor0.col1 * col0 FROM tab2 AS cor0
----
-22831
-271518
-6727

query I rowsort
SELECT ALL 70 + + col2 FROM tab0 AS cor0
----
103
152
71

onlyif mysql # use DIV operator for integer division
query I rowsort label-7392
SELECT - 9 DIV + col0 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-7392
SELECT - 9 / + col0 FROM tab2
----
-1
0
0

query I rowsort
SELECT ALL 81 + + col2 + - col2 AS col0 FROM tab1
----
81
81
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + - cor0.col0 * 66 col0 FROM tab0 AS cor0
----
-1560
-2275
-5785

query I rowsort
SELECT ALL col2 * - col0 + - col2 AS col0 FROM tab1 cor0
----
-216
-3705
-7776

query I rowsort
SELECT ( col0 * col0 ) + - 83 FROM tab2
----
-34
6001
6158

query I rowsort
SELECT - col1 + 64 FROM tab0
----
-22
-27
-33

query I rowsort
SELECT DISTINCT - 48 + col1 * ( - 96 ) AS col1 FROM tab1 AS cor0
----
-1008
-1296
-2544

query I rowsort
SELECT ALL - - 37 * col1 AS col2 FROM tab0 AS cor0
----
3182
3367
3589

query I rowsort
SELECT - 69 * col0 AS col0 FROM tab0
----
-1656
-2415
-6141

query I rowsort
SELECT DISTINCT + col1 * ( 24 ) AS col1 FROM tab2 AS cor0
----
1416
408
744

query I rowsort
SELECT + - col1 * 71 FROM tab2 AS cor0
----
-1207
-2201
-4189

query I rowsort
SELECT DISTINCT col0 + col1 + col1 AS col1 FROM tab0
----
196
229
271

onlyif mysql # use DIV operator for integer division
query I rowsort label-7404
SELECT ALL + - 42 + - cor0.col0 DIV col0 AS col1 FROM tab2 cor0
----
-43
-43
-43

skipif mysql # not compatible
query I rowsort label-7404
SELECT ALL + - 42 + - cor0.col0 / col0 AS col1 FROM tab2 cor0
----
-43
-43
-43

onlyif mysql # use DIV operator for integer division
query I rowsort label-7405
SELECT + ( - cor0.col2 ) + cor0.col2 DIV col0 + col0 FROM tab1 AS cor0
----
-15
-33
7

skipif mysql # not compatible
query I rowsort label-7405
SELECT + ( - cor0.col2 ) + cor0.col2 / col0 + col0 FROM tab1 AS cor0
----
-15
-33
7

query I rowsort
SELECT DISTINCT col0 + + col1 * col0 * + col0 AS col1 FROM tab0 AS cor0
----
118860
49560
720900

query I rowsort
SELECT + + 75 AS col1 FROM tab0 AS cor0
----
75
75
75

query I rowsort
SELECT ALL - 86 * 69 + - col2 AS col0 FROM tab2 AS cor0
----
-5960
-5961
-5972

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7409
SELECT DISTINCT 0 + ( + cor0.col2 ) - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7409
SELECT DISTINCT 0 + ( + cor0.col2 ) - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + col1 + ( + col2 ) + cor0.col0 AS col0 FROM tab1 AS cor0
----
131
189
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-7411
SELECT ALL col1 + col1 DIV tab0.col2 FROM tab0
----
194
88
92

skipif mysql # not compatible
query I rowsort label-7411
SELECT ALL col1 + col1 / tab0.col2 FROM tab0
----
194
88
92

query I rowsort
SELECT + ( + tab0.col2 ) * - col1 + ( col1 + + col1 ) FROM tab0
----
-2666
-7280
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 - col1 col2 FROM tab0
----
-119
-173
-98

query I rowsort
SELECT - - col1 * ( + 18 ) AS col0 FROM tab2 AS cor0
----
1062
306
558

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + cor0.col1 col2 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT cor0.col0 * 35 FROM tab2 AS cor0
----
245
2730
2765

query I rowsort
SELECT DISTINCT - - col0 * 29 FROM tab2 AS cor0
----
203
2262
2291

query I rowsort
SELECT ALL - + col1 * - 2 FROM tab2 AS cor0
----
118
34
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-7419
SELECT col0 DIV 59 FROM tab2 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-7419
SELECT col0 / 59 FROM tab2 AS cor0
----
0
1
1

query I rowsort
SELECT col2 * - col2 + col2 * col1 * cor0.col2 + cor0.col0 AS col1 FROM tab0 AS cor0
----
131
605249
92589

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7421
SELECT + col2 + + CAST( col1 AS SIGNED ) * col1 AS col2 FROM tab1 AS cor0
----
157
265
730

skipif mysql # not compatible
query I rowsort label-7421
SELECT + col2 + + CAST ( col1 AS INTEGER ) * col1 AS col2 FROM tab1 AS cor0
----
157
265
730

query I rowsort
SELECT - cor0.col1 * + 24 FROM tab0 AS cor0
----
-2064
-2184
-2328

onlyif mysql # use DIV operator for integer division
query I rowsort label-7423
SELECT + + col0 DIV ( - 24 ) col0 FROM tab0 AS cor0
----
-1
-1
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7423
SELECT + + col0 / ( - 24 ) col0 FROM tab0 AS cor0
----
-1
-1
-3

query I rowsort
SELECT + 7 AS col1 FROM tab2 cor0
----
7
7
7

query I rowsort
SELECT DISTINCT - - 99 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
99

query I rowsort
SELECT DISTINCT ( 55 ) FROM tab1, tab0 AS cor0
----
55

query I rowsort
SELECT + col2 * col0 + col2 * 33 * + col2 FROM tab1 AS cor0
----
110865
311808
96390

query I rowsort
SELECT - 45 * - col2 + + tab1.col1 + + col2 * + col2 * col1 FROM tab1
----
124141
35065
78272

query I rowsort
SELECT + col2 + - col0 * col2 - - col1 FROM tab1 AS cor0
----
-3581
-7571
-82

query I rowsort
SELECT DISTINCT col2 * col1 + - col1 * + col0 AS col2 FROM tab1 AS cor0
----
-70
1326
208

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * cor0.col1 col1 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT 86 + - tab0.col1 - tab0.col2 * col0 FROM tab0
----
-46
-7303
-792

query I rowsort
SELECT ALL tab0.col2 + + tab0.col2 FROM tab0
----
164
2
66

query I rowsort
SELECT col0 + - tab2.col1 * - col0 AS col2 FROM tab2
----
1422
224
4680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab2.col0 + col2 col0 FROM tab2
----
104
117
34

onlyif mysql # use DIV operator for integer division
query I rowsort label-7436
SELECT ALL - col1 DIV col0 + col1 * - col1 FROM tab1
----
-100
-169
-684

skipif mysql # not compatible
query I rowsort label-7436
SELECT ALL - col1 / col0 + col1 * - col1 FROM tab1
----
-100
-169
-684

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 * col0 + col0 col1 FROM tab1 AS cor0
----
-159
-3584
-7600

query I rowsort
SELECT DISTINCT ( ( - col2 ) * - col2 ) AS col0 FROM tab0
----
1
1089
6724

query I rowsort
SELECT ALL ( 36 ) * + col0 AS col2 FROM tab1
----
108
2304
2880

query I rowsort
SELECT + col2 + + col2 * + col0 AS col0 FROM tab2 cor0
----
2054
216
3040

query I rowsort
SELECT - col0 + cor0.col0 * - col0 FROM tab1 AS cor0
----
-12
-4160
-6480

query I rowsort
SELECT col1 + - col0 * col2 FROM tab2 AS cor0
----
-158
-1969
-2985

query I rowsort
SELECT - + col0 * col2 * - cor0.col1 FROM tab1 AS cor0
----
36480
4212
99840

query I rowsort
SELECT ( - cor0.col2 ) AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba

query I rowsort
SELECT - ( 79 * + col2 ) AS col2 FROM tab0
----
-2607
-6478
-79

query I rowsort
SELECT ALL - 76 AS col0 FROM tab1, tab0 cor0
----
9 values hashing to f8b6589bc7503fc720ca5430e3569317

onlyif mysql # use DIV operator for integer division
query I rowsort label-7447
SELECT ALL - 95 * cor0.col0 + + col1 DIV + col0 + - col2 AS col0 FROM tab1 AS cor0
----
-331
-6137
-7696

skipif mysql # not compatible
query I rowsort label-7447
SELECT ALL - 95 * cor0.col0 + + col1 / + col0 + - col2 AS col0 FROM tab1 AS cor0
----
-331
-6137
-7696

query I rowsort
SELECT + 84 * + 53 FROM tab2 cor0
----
4452
4452
4452

query I rowsort
SELECT DISTINCT + 6 * + 42 AS col0 FROM tab1 cor0
----
252

query I rowsort
SELECT 58 + - col2 + col2 AS col2 FROM tab1 AS cor0
----
58
58
58

query I rowsort
SELECT DISTINCT + cor0.col2 + + col2 * - col1 FROM tab2 AS cor0
----
-1508
-608
-810

query I rowsort
SELECT ( + 73 ) * - col2 FROM tab1 AS cor0
----
-3942
-4161
-7008

query I rowsort
SELECT DISTINCT - ( 80 ) AS col1 FROM tab0 AS cor0
----
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - cor0.col1 - - 91 col0 FROM tab2 AS cor0
----
32
60
74

onlyif mysql # use DIV operator for integer division
query I rowsort label-7455
SELECT - cor0.col1 DIV + col0 AS col2 FROM tab2 AS cor0
----
-4
0
0

skipif mysql # not compatible
query I rowsort label-7455
SELECT - cor0.col1 / + col0 AS col2 FROM tab2 AS cor0
----
-4
0
0

query I rowsort
SELECT DISTINCT - 3 * - 76 + col2 FROM tab1 AS cor0
----
282
285
324

query I rowsort
SELECT DISTINCT - + 14 AS col2 FROM tab0 AS cor0
----
-14

query I rowsort
SELECT ALL 86 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19

query I rowsort
SELECT ALL - 82 FROM tab0 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab2, tab1 AS cor2, tab1
----
729 values hashing to 5d97ff45e4973c6cd845cf86c5d35b2f

query I rowsort
SELECT - + col1 * + 90 FROM tab2 cor0
----
-1530
-2790
-5310

onlyif mysql # use DIV operator for integer division
query I rowsort label-7461
SELECT - col2 + + col2 * - col0 DIV - col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7461
SELECT - col2 + + col2 * - col0 / - col0 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL + ( + 64 ) + + col2 * - col2 FROM tab0
----
-1025
-6660
63

query I rowsort
SELECT DISTINCT 25 * + col1 AS col2 FROM tab2 AS cor0
----
1475
425
775

query I rowsort
SELECT DISTINCT - ( col2 ) - - col2 AS col2 FROM tab1
----
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7465
SELECT CAST( col1 AS SIGNED ) + - col2 * col2 FROM tab2
----
-1427
-617
-698

skipif mysql # not compatible
query I rowsort label-7465
SELECT CAST ( col1 AS INTEGER ) + - col2 * col2 FROM tab2
----
-1427
-617
-698

onlyif mysql # use DIV operator for integer division
query I rowsort label-7466
SELECT + 16 DIV 99 AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7466
SELECT + 16 / 99 AS col0 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT - col0 + + col0 + - col0 * + 78 * - 45 AS col1 FROM tab0
----
122850
312390
84240

query I rowsort
SELECT ALL 87 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64

onlyif mysql # use DIV operator for integer division
query I rowsort label-7469
SELECT ( - 81 ) DIV + col0 AS col1 FROM tab1
----
-1
-1
-27

skipif mysql # not compatible
query I rowsort label-7469
SELECT ( - 81 ) / + col0 AS col1 FROM tab1
----
-1
-1
-27

query I rowsort
SELECT DISTINCT + 80 AS col2 FROM tab1
----
80

query I rowsort
SELECT ALL + col1 * 53 + 67 AS col2 FROM tab1 AS cor0
----
1445
597
756

query I rowsort
SELECT DISTINCT col1 * + col2 + ( col1 ) AS col0 FROM tab1 AS cor0
----
1261
1430
580

query I rowsort
SELECT cor0.col2 * ( col0 ) + col1 AS col0 FROM tab1 AS cor0
----
188
3658
7693

query I rowsort
SELECT col2 * ( + cor0.col1 ) + cor0.col1 FROM tab1 cor0
----
1261
1430
580

query I rowsort
SELECT 47 AS col0 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 3f991632e9c7c5142e1d80857cd10a2d

onlyif mysql # use DIV operator for integer division
query I rowsort label-7476
SELECT col0 - col1 DIV + 70 AS col0 FROM tab1
----
3
64
80

skipif mysql # not compatible
query I rowsort label-7476
SELECT col0 - col1 / + 70 AS col0 FROM tab1
----
3
64
80

query I rowsort
SELECT ALL - col2 + - 38 AS col0 FROM tab0 AS cor0
----
-120
-39
-71

query I rowsort
SELECT ALL col2 * - 84 * + col1 + col1 FROM tab2 AS cor0
----
-128797
-54247
-70277

onlyif mysql # use DIV operator for integer division
query I rowsort label-7479
SELECT DISTINCT col2 + + ( col2 ) DIV cor0.col0 FROM tab1 AS cor0
----
57
72
97

skipif mysql # not compatible
query I rowsort label-7479
SELECT DISTINCT col2 + + ( col2 ) / cor0.col0 FROM tab1 AS cor0
----
57
72
97

query I rowsort
SELECT ALL - - col2 * 1 + - col1 FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT DISTINCT col2 * 62 AS col0 FROM tab1 AS cor0
----
3348
3534
5952

onlyif mysql # use DIV operator for integer division
query I rowsort label-7482
SELECT ALL - col2 DIV col0 + - col1 * col1 AS col1 FROM tab2 AS cor0
----
-289
-3481
-964

skipif mysql # not compatible
query I rowsort label-7482
SELECT ALL - col2 / col0 + - col1 * col1 AS col1 FROM tab2 AS cor0
----
-289
-3481
-964

onlyif mysql # use DIV operator for integer division
query I rowsort label-7483
SELECT DISTINCT col2 DIV - col2 col0 FROM tab0 AS cor0
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7483
SELECT DISTINCT col2 / - col2 col0 FROM tab0 AS cor0
----
-1

onlyif mysql # use DIV operator for integer division
query I rowsort label-7484
SELECT + col2 DIV - 85 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-7484
SELECT + col2 / - 85 FROM tab1 AS cor0
----
-1
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-7485
SELECT DISTINCT - col2 DIV - 50 + - col1 DIV col0 FROM tab1 cor0
----
-7
1

skipif mysql # not compatible
query I rowsort label-7485
SELECT DISTINCT - col2 / - 50 + - col1 / col0 FROM tab1 cor0
----
-7
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-7486
SELECT ALL col1 + ( col1 ) * col2 DIV col0 col0 FROM tab1 AS cor0
----
18
28
494

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7486
SELECT ALL col1 + ( col1 ) * col2 / col0 col0 FROM tab1 AS cor0
----
18
28
494

onlyif mysql # use DIV operator for integer division
query I rowsort label-7487
SELECT col0 DIV col0 + - ( tab1.col0 ) FROM tab1
----
-2
-63
-79

skipif mysql # not compatible
query I rowsort label-7487
SELECT col0 / col0 + - ( tab1.col0 ) FROM tab1
----
-2
-63
-79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7488
SELECT DISTINCT + tab1.col1 * CAST( 78 AS SIGNED ) FROM tab1
----
1014
2028
780

skipif mysql # not compatible
query I rowsort label-7488
SELECT DISTINCT + tab1.col1 * CAST ( 78 AS INTEGER ) FROM tab1
----
1014
2028
780

query I rowsort
SELECT DISTINCT - col1 + ( cor0.col0 ) * - col1 * - ( + 80 + cor0.col1 ) FROM tab2 AS cor0
----
130254
24056
639619

query I rowsort
SELECT DISTINCT - cor0.col2 * col0 + col1 FROM tab0 cor0
----
-706
-7207
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * + col0 + - col0 col0 FROM tab0 cor0
----
-1260
-600
-8010

query I rowsort
SELECT ALL + - cor0.col2 - - col1 AS col2 FROM tab0 cor0
----
53
9
96

query I rowsort
SELECT + cor0.col2 * 45 FROM tab1 AS cor0
----
2430
2565
4320

query I rowsort
SELECT ALL col2 * col1 + + col0 + + 3 FROM tab0 cor0
----
135
2865
7554

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + cor0.col2 ) * col1 + + col2 col0 FROM tab0 AS cor0
----
2871
7544
98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7496
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - ( col0 ) * + col2 col1 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7496
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - ( col0 ) * + col2 col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7497
SELECT DISTINCT - - CAST( 32 AS SIGNED ) * + cor0.col1 FROM tab1 cor0
----
320
416
832

skipif mysql # not compatible
query I rowsort label-7497
SELECT DISTINCT - - CAST ( 32 AS INTEGER ) * + cor0.col1 FROM tab1 cor0
----
320
416
832

query I rowsort
SELECT ALL - col0 * col2 + + cor0.col1 FROM tab1 AS cor0
----
-136
-3638
-7667

query I rowsort
SELECT - - ( 46 ) AS col0 FROM tab0 AS cor0
----
46
46
46

query I rowsort
SELECT DISTINCT - 21 + - 62 * - col0 AS col0 FROM tab1 AS cor0
----
165
3947
4939

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7501
SELECT ALL - CAST( ( + col1 ) AS SIGNED ) + + cor0.col1 * - col1 AS col2 FROM tab0 AS cor0
----
-7482
-8372
-9506

skipif mysql # not compatible
query I rowsort label-7501
SELECT ALL - CAST ( ( + col1 ) AS INTEGER ) + + cor0.col1 * - col1 AS col2 FROM tab0 AS cor0
----
-7482
-8372
-9506

query I rowsort
SELECT ALL + + col0 * - col2 + ( - col0 ) FROM tab2 AS cor0
----
-196
-2106
-3081

query I rowsort
SELECT ALL - 33 + cor0.col2 FROM tab2 AS cor0
----
-6
-7
5

query I rowsort
SELECT ALL + - col2 * col0 + col0 AS col0 FROM tab0 cor0
----
-7209
-768
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-7505
SELECT col0 * col1 + 74 + - ( col2 ) DIV 74 AS col2 FROM tab2 AS cor0
----
1417
291
4676

skipif mysql # not compatible
query I rowsort label-7505
SELECT col0 * col1 + 74 + - ( col2 ) / 74 AS col2 FROM tab2 AS cor0
----
1417
291
4676

query I rowsort
SELECT + cor0.col1 + - col1 + col1 FROM tab2 AS cor0
----
17
31
59

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - col0 + + cor0.col2 - CAST ( col0 AS REAL ) * - col2 * col1 AS col1 FROM tab2 AS cor0
----
119600
50993
5879

query I rowsort
SELECT ALL + 93 AS col0 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 85ef191bf1b307f300b3fd49992fcae7

query I rowsort
SELECT + + col1 * 9 + col0 * col2 FROM tab1 AS cor0
----
3738
396
7797

query I rowsort
SELECT + - col2 + col2 AS col2 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT 88 AS col0 FROM tab0, tab2 AS cor0
----
88

query I rowsort
SELECT DISTINCT - + col2 * ( - col1 ) * + cor0.col0 FROM tab0 AS cor0
----
3395
664118
68112

query I rowsort
SELECT ALL + tab0.col0 + - col2 FROM tab0
----
-9
34
7

query I rowsort
SELECT - 66 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to a408108d423d7784b7d610cb779e515a

query I rowsort
SELECT - 21 AS col2 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 631fbd1fd929405aba54a22c2a06c757

query I rowsort
SELECT DISTINCT tab1.col0 + tab1.col1 * - tab1.col0 * col1 FROM tab1
----
-13440
-2025
-6336

query I rowsort
SELECT - - ( col0 ) * - ( + col1 ) AS col1 FROM tab2 AS cor0
----
-1343
-217
-4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-7518
SELECT ALL + + cor0.col0 + cor0.col1 DIV ( col0 ) AS col1 FROM tab1 AS cor0
----
11
64
80

skipif mysql # not compatible
query I rowsort label-7518
SELECT ALL + + cor0.col0 + cor0.col1 / ( col0 ) AS col1 FROM tab1 AS cor0
----
11
64
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-7519
SELECT DISTINCT + + col0 - + col0 DIV + ( col2 + - col0 ) FROM tab2 AS cor0
----
7
79
80

skipif mysql # not compatible
query I rowsort label-7519
SELECT DISTINCT + + col0 - + col0 / + ( col2 + - col0 ) FROM tab2 AS cor0
----
7
79
80

query I rowsort
SELECT + 18 * col1 FROM tab2 cor0
----
1062
306
558

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - cor0.col0 col2 FROM tab1 AS cor0
----
4096
6400
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-7522
SELECT cor0.col1 - col2 DIV - ( col1 ) AS col0 FROM tab2 cor0
----
19
31
59

skipif mysql # not compatible
query I rowsort label-7522
SELECT cor0.col1 - col2 / - ( col1 ) AS col0 FROM tab2 cor0
----
19
31
59

query I rowsort
SELECT ALL + - 52 AS col2 FROM tab1 cor0
----
-52
-52
-52

onlyif mysql # use DIV operator for integer division
query I rowsort label-7524
SELECT - + col1 - cor0.col1 DIV ( - 29 ) AS col2 FROM tab2 cor0
----
-17
-30
-57

skipif mysql # not compatible
query I rowsort label-7524
SELECT - + col1 - cor0.col1 / ( - 29 ) AS col2 FROM tab2 cor0
----
-17
-30
-57

onlyif mysql # use DIV operator for integer division
query I rowsort label-7525
SELECT + col0 DIV 95 + - col0 + - cor0.col0 FROM tab1 AS cor0
----
-128
-160
-6

skipif mysql # not compatible
query I rowsort label-7525
SELECT + col0 / 95 + - col0 + - cor0.col0 FROM tab1 AS cor0
----
-128
-160
-6

query I rowsort
SELECT ALL ( + tab2.col2 ) * col1 AS col0 FROM tab2
----
1534
646
837

onlyif mysql # use DIV operator for integer division
query I rowsort label-7527
SELECT + ( + 30 ) + - col0 DIV + cor0.col0 FROM tab2 AS cor0
----
29
29
29

skipif mysql # not compatible
query I rowsort label-7527
SELECT + ( + 30 ) + - col0 / + cor0.col0 FROM tab2 AS cor0
----
29
29
29

query I rowsort
SELECT ALL + cor0.col0 AS col0 FROM tab1, tab2 AS cor0, tab0 cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

onlyif mysql # use DIV operator for integer division
query I rowsort label-7529
SELECT DISTINCT 60 DIV + cor0.col0 + - cor0.col1 AS col2 FROM tab0 cor0
----
-84
-91
-96

skipif mysql # not compatible
query I rowsort label-7529
SELECT DISTINCT 60 / + cor0.col0 + - cor0.col1 AS col2 FROM tab0 cor0
----
-84
-91
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-7530
SELECT DISTINCT ( 91 ) + - col1 DIV 48 AS col2 FROM tab2 AS cor0
----
90
91

skipif mysql # not compatible
query I rowsort label-7530
SELECT DISTINCT ( 91 ) + - col1 / 48 AS col2 FROM tab2 AS cor0
----
90
91

query I rowsort
SELECT DISTINCT cor1.col1 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
10
13
26

onlyif mysql # use DIV operator for integer division
query I rowsort label-7532
SELECT DISTINCT + col2 DIV 64 + + col0 AS col1 FROM tab2 AS cor0
----
7
78
79

skipif mysql # not compatible
query I rowsort label-7532
SELECT DISTINCT + col2 / 64 + + col0 AS col1 FROM tab2 AS cor0
----
7
78
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-7533
SELECT 40 DIV col1 + + col1 AS col1 FROM tab0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-7533
SELECT 40 / col1 + + col1 AS col1 FROM tab0
----
86
91
97

query I rowsort
SELECT col0 * col2 - col1 * col1 FROM tab2 AS cor0
----
-1453
-772
2713

query I rowsort
SELECT col0 + 75 AS col0 FROM tab1
----
139
155
78

query I rowsort
SELECT ALL - 6 * - col1 + col1 + col2 * col2 AS col2 FROM tab2
----
1089
1563
946

onlyif mysql # use DIV operator for integer division
query I rowsort label-7537
SELECT + - col1 DIV ( col2 + - ( 1 ) ) FROM tab2 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-7537
SELECT + - col1 / ( col2 + - ( 1 ) ) FROM tab2 AS cor0
----
-1
-2
0

query I rowsort
SELECT ALL + 60 * - col2 AS col1 FROM tab1
----
-3240
-3420
-5760

onlyif mysql # use DIV operator for integer division
query I rowsort label-7539
SELECT ALL - CAST( + col1 AS SIGNED ) DIV tab1.col0 FROM tab1
----
-8
0
0

skipif mysql # not compatible
query I rowsort label-7539
SELECT ALL - CAST ( + col1 AS INTEGER ) / tab1.col0 FROM tab1
----
-8
0
0

query I rowsort
SELECT ALL - 26 * col2 AS col0 FROM tab1
----
-1404
-1482
-2496

onlyif mysql # use DIV operator for integer division
query I rowsort label-7541
SELECT - col1 * - col0 DIV - cor0.col0 AS col0 FROM tab0 AS cor0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-7541
SELECT - col1 * - col0 / - cor0.col0 AS col0 FROM tab0 AS cor0
----
-86
-91
-97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7542
SELECT DISTINCT col2 * + col1 + CAST( col1 AS SIGNED ) FROM tab1 AS cor0
----
1261
1430
580

skipif mysql # not compatible
query I rowsort label-7542
SELECT DISTINCT col2 * + col1 + CAST ( col1 AS INTEGER ) FROM tab1 AS cor0
----
1261
1430
580

query I rowsort
SELECT 24 - tab1.col1 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 574dfc492a389ce071c3f2b3de7f827c

query I rowsort
SELECT tab1.col2 + - col1 * + ( + col2 ) AS col0 FROM tab1
----
-1152
-1350
-513

onlyif mysql # use DIV operator for integer division
query I rowsort label-7545
SELECT 88 DIV col1 FROM tab1
----
3
6
8

skipif mysql # not compatible
query I rowsort label-7545
SELECT 88 / col1 FROM tab1
----
3
6
8

query I rowsort
SELECT 44 * + col2 FROM tab0
----
1452
3608
44

query I rowsort
SELECT + 65 * - col0 AS col2 FROM tab1 AS cor0
----
-195
-4160
-5200

query I rowsort
SELECT + tab0.col2 * 63 AS col1 FROM tab0
----
2079
5166
63

query I rowsort
SELECT DISTINCT - cor0.col2 FROM tab2, tab2 cor0, tab0 AS cor1
----
-26
-27
-38

query I rowsort
SELECT + col0 + - 82 FROM tab0 AS cor0
----
-47
-58
7

query I rowsort
SELECT 50 * col2 FROM tab2 AS cor0
----
1300
1350
1900

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7552
SELECT - - CAST( 20 AS SIGNED ) col2 FROM tab0 AS cor0
----
20
20
20

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7552
SELECT - - CAST ( 20 AS INTEGER ) col2 FROM tab0 AS cor0
----
20
20
20

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 48 * 39 * - col1 + ( + col1 * - col1 ) col1 FROM tab2 AS cor0
----
-113929
-32113
-58993

query I rowsort
SELECT DISTINCT + col0 + col1 + col1 * + col0 * + col1 AS col0 FROM tab2 AS cor0
----
22927
271655
6765

query I rowsort
SELECT ALL col2 + - col0 FROM tab1 AS cor0 WHERE col0 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL col0 * + cor0.col2 AS col2 FROM tab0 cor0
----
35
7298
792

query I rowsort
SELECT DISTINCT + col2 * - cor0.col0 * cor0.col1 FROM tab2 AS cor0
----
-119652
-51034
-5859

query IIIIII rowsort
SELECT * FROM tab2, tab0 AS cor0 WHERE NULL = NULL
----

query I rowsort
SELECT ALL + col0 + - tab1.col0 AS col1 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT col1 - col0 AS col0 FROM tab1 WHERE NULL BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND ( col1 - - col2 * col1 * col1 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE ( col0 ) IN ( col2 * - col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL = col1 / - col1
----

query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN NULL AND ( col2 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-7565
SELECT ALL col2 - + col2 DIV - col0 FROM tab0
----
1
34
82

skipif mysql # not compatible
query I rowsort label-7565
SELECT ALL col2 - + col2 / - col0 FROM tab0
----
1
34
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 col1 FROM tab2 WHERE ( col1 ) BETWEEN NULL AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col0 * + col1 * col0 < NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-7568
SELECT - col1 + + col1 DIV + col0 + col0 * col1 FROM tab1
----
1027
60
630

skipif mysql # not compatible
query I rowsort label-7568
SELECT - col1 + + col1 / + col0 + col0 * col1 FROM tab1
----
1027
60
630

query I rowsort
SELECT - tab0.col2 - col1 AS col1 FROM tab0 WHERE NOT ( col1 ) <= ( NULL )
----

query I rowsort
SELECT ALL col0 + col2 * + cor0.col0 FROM tab1 AS cor0
----
165
3712
7760

query I rowsort
SELECT + + col1 * col2 * col1 + - col0 FROM tab2 AS cor0
----
10903
25940
90428

query I rowsort
SELECT DISTINCT + - cor0.col2 + col2 FROM tab1 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * - col1 col2 FROM tab2 AS cor0
----
1534
646
837

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 * + col1 + - col1 col1 FROM tab1 AS cor0
----
-104
-1053
-650

query I rowsort
SELECT DISTINCT + col2 * + col1 + + tab1.col1 * col2 AS col2 FROM tab1
----
1140
2496
2808

query I rowsort
SELECT ALL col1 * + tab1.col1 + + col1 FROM tab1
----
110
182
702

query I rowsort
SELECT tab1.col1 - - col0 * - col0 FROM tab1
----
-4086
-6387
17

query I rowsort
SELECT - tab2.col0 * col1 FROM tab2 WHERE NOT col0 IN ( - tab2.col2 )
----
-1343
-217
-4602

query I rowsort
SELECT + col0 + - col2 * + col1 FROM tab1 AS cor0
----
-1168
-1401
-506

query I rowsort
SELECT + col0 + col2 * + col2 AS col2 FROM tab1 AS cor0
----
2919
3313
9296

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col1 * col1 * + col0 IN ( - col0 + col1 ) OR NOT NULL NOT BETWEEN col1 AND NULL
----

query I rowsort
SELECT - - col1 * + col1 * + col0 + col0 AS col1 FROM tab2 AS cor0
----
22910
271596
6734

query I rowsort
SELECT DISTINCT col2 * col2 + - col2 FROM tab0
----
0
1056
6642

query I rowsort
SELECT DISTINCT cor0.col2 FROM tab1, tab1 cor0 CROSS JOIN tab2
----
54
57
96

query I rowsort
SELECT ALL + col1 + + 32 * 99 AS col0 FROM tab0 cor0
----
3254
3259
3265

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 - - col1 col1 FROM tab0 AS cor0
----
172
182
194

query I rowsort
SELECT - cor0.col1 + cor0.col0 AS col2 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT + 99 AS col0 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 05ea182fd6036c7f5e0ea08fc061cc67

query I rowsort
SELECT DISTINCT ( + col2 ) * - ( col0 ) * + col0 + col0 * col2 FROM tab1
----
-229824
-324
-606720

query I rowsort
SELECT DISTINCT - col2 * col0 + - 32 AS col0 FROM tab0 AS cor0
----
-67
-7330
-824

onlyif mysql # use DIV operator for integer division
query I rowsort label-7591
SELECT + + col1 + - 24 DIV 84 AS col1 FROM tab1 AS cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-7591
SELECT + + col1 + - 24 / 84 AS col1 FROM tab1 AS cor0
----
10
13
26

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab0 cor2, tab1 AS cor3
----
3645 values hashing to e5255b2277726ba4514ff55622dec830

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + - 26 * + 87 * col2 col2 FROM tab1 AS cor0
----
-122145
-128870
-217072

query I rowsort
SELECT ALL - col2 * col0 * col1 + col1 FROM tab0 AS cor0
----
-3298
-664027
-68026

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * + col2 col0 FROM tab1 cor0
----
-162
-3648
-7680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 * - 41 + + ( col2 ) col0 FROM tab1 AS cor0
----
-2160
-2280
-3840

query I rowsort
SELECT ALL col1 * - 27 + + ( col0 ) + + cor0.col2 FROM tab0 AS cor0
----
-2265
-2286
-2583

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7598
SELECT col1 * + CAST( col0 AS SIGNED ) FROM tab1 AS cor0
----
1040
640
78

skipif mysql # not compatible
query I rowsort label-7598
SELECT col1 * + CAST ( col0 AS INTEGER ) FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT + col1 * col0 * 25 + col0 + - col2 * - 20 FROM tab1 AS cor0
----
17204
28000
3033

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7600
SELECT DISTINCT + col2 * + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7600
SELECT DISTINCT + col2 * + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT col0 * 92 AS col0 FROM tab1 AS cor0
----
276
5888
7360

onlyif mysql # use DIV operator for integer division
query I rowsort label-7602
SELECT DISTINCT col2 DIV + 88 + + 78 AS col0 FROM tab1 cor0
----
78
79

skipif mysql # not compatible
query I rowsort label-7602
SELECT DISTINCT col2 / + 88 + + 78 AS col0 FROM tab1 cor0
----
78
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + cor0.col2 * col1 col2 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT ALL - col2 * col1 + + col1 * + col0 + col2 * + col1 AS col0 FROM tab0
----
2064
3395
8099

query I rowsort
SELECT DISTINCT col2 + col0 + col2 * + col0 FROM tab1
----
219
3769
7856

query I rowsort
SELECT ALL tab1.col0 + - col0 + col2 AS col2 FROM tab1
----
54
57
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-7607
SELECT ALL - col0 DIV - tab1.col1 col0 FROM tab1
----
0
6
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7607
SELECT ALL - col0 / - tab1.col1 col0 FROM tab1
----
0
6
6

query I rowsort
SELECT ALL + col1 * + tab2.col2 + col1 - + col0 FROM tab2
----
1515
584
861

query I rowsort
SELECT ALL tab0.col2 * col0 * - col1 + - col0 + + tab0.col2 FROM tab0
----
-3429
-664125
-68103

query I rowsort
SELECT col0 + + col2 * + col0 - tab2.col2 FROM tab2
----
169
2080
3043

onlyif mysql # use DIV operator for integer division
query I rowsort label-7611
SELECT col1 * + tab1.col1 * - col1 + - col2 * col1 * + col2 + + col0 DIV col2 FROM tab1
----
-122005
-33489
-93392

skipif mysql # not compatible
query I rowsort label-7611
SELECT col1 * + tab1.col1 * - col1 + - col2 * col1 * + col2 + + col0 / col2 FROM tab1
----
-122005
-33489
-93392

query I rowsort
SELECT DISTINCT - tab2.col2 + col0 + col0 AS col2 FROM tab2
----
-13
120
130

query I rowsort
SELECT DISTINCT + col1 * + tab0.col1 AS col1 FROM tab0
----
7396
8281
9409

query I rowsort
SELECT col0 * + tab0.col2 + col1 * tab0.col1 FROM tab0
----
15579
8188
9444

query I rowsort
SELECT - col1 * col2 - col1 * col2 * col1 AS col0 FROM tab2
----
-11628
-26784
-92040

query I rowsort
SELECT tab1.col2 * col2 * + col0 FROM tab1
----
207936
737280
8748

query I rowsort
SELECT DISTINCT - col2 * col0 + - 1 * 1 AS col1 FROM tab1 cor0
----
-163
-3649
-7681

query I rowsort
SELECT ALL - - col2 * col2 + 9 * + ( + col1 * ( col2 ) ) AS col2 FROM tab1 AS cor0
----
15552
20448
8379

query I rowsort
SELECT + col0 * col1 * col2 FROM tab1
----
36480
4212
99840

query I rowsort
SELECT + col0 AS col0 FROM tab0 WHERE NOT ( NULL ) NOT IN ( - col2 )
----

query I rowsort
SELECT col1 * - col2 - + col0 FROM tab1
----
-1328
-1407
-634

query I rowsort
SELECT col2 * col0 + - 20 AS col1 FROM tab2 AS cor0
----
169
2008
2982

query I rowsort
SELECT DISTINCT - + 71 + + col1 FROM tab0 AS cor0
----
15
20
26

query I rowsort
SELECT + ( + col0 ) * col1 FROM tab0 cor0
----
2064
3395
8099

query I rowsort
SELECT ALL - + cor0.col0 * + 53 + cor0.col2 AS col2 FROM tab1 AS cor0
----
-105
-3335
-4144

query I rowsort
SELECT - - col0 + 12 + col0 AS col1 FROM tab2 AS cor0
----
168
170
26

query I rowsort
SELECT + 4 - - cor0.col2 FROM tab2 AS cor0
----
30
31
42

query I rowsort
SELECT + 87 + + col1 * col1 FROM tab1 AS cor0
----
187
256
763

query I rowsort
SELECT DISTINCT 18 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
18

query I rowsort
SELECT + col1 + - col2 AS col2 FROM tab1 cor0
----
-28
-47
-83

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7631
SELECT - col1 / col0 + + CAST( NULL AS DECIMAL ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7631
SELECT - col1 / col0 + + CAST ( NULL AS REAL ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - - col1 * + col0 + col2 AS col0 FROM tab1 AS cor0
----
1136
132
697

query I rowsort
SELECT DISTINCT - - 27 * - col0 + ( - cor0.col0 ) * + col0 AS col1 FROM tab1 AS cor0
----
-5824
-8560
-90

query I rowsort
SELECT ALL - cor0.col2 AS col2 FROM tab0, tab0 AS cor0, tab0 AS cor1, tab1 AS cor2
----
81 values hashing to 87af467938ef355540b8de24db1bf3b8

query I rowsort
SELECT + col2 + ( + col1 ) * - col2 FROM tab1 AS cor0
----
-1152
-1350
-513

query I rowsort
SELECT col1 + - ( col2 ) AS col0 FROM tab0 AS cor0
----
53
9
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 53 col2 FROM tab0
----
53
53
53

query I rowsort
SELECT - col0 + + 18 * col1 AS col1 FROM tab2 AS cor0
----
227
551
984

query I rowsort
SELECT + col1 * col0 * - col0 FROM tab1 AS cor0
----
-234
-40960
-83200

query I rowsort
SELECT + col0 + - ( + col0 ) * col1 AS col2 FROM tab2 AS cor0
----
-1264
-210
-4524

query I rowsort
SELECT - cor0.col2 + - col1 * + 91 AS col0 FROM tab0 AS cor0
----
-7859
-8363
-8828

query I rowsort
SELECT ALL col1 * 29 FROM tab2 AS cor0
----
1711
493
899

query I rowsort
SELECT DISTINCT - col2 * ( col0 ) FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT ALL - col0 * - 16 FROM tab2 AS cor0
----
112
1248
1264

query I rowsort
SELECT + cor0.col0 + 61 * cor0.col2 * - col0 AS col1 FROM tab2 AS cor0
----
-11522
-123630
-183043

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + col0 + col1 col0 FROM tab0 AS cor0
----
132
7389
878

query I rowsort
SELECT col0 + + col1 * + col0 AS col0 FROM tab0 AS cor0
----
2088
3430
8188

query I rowsort
SELECT ALL - 38 * col0 FROM tab0 cor0
----
-1330
-3382
-912

query I rowsort
SELECT ALL + cor0.col0 - 72 FROM tab0 AS cor0
----
-37
-48
17

query I rowsort
SELECT DISTINCT + cor0.col2 * + 49 AS col2 FROM tab1 AS cor0
----
2646
2793
4704

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - CAST ( + col0 AS REAL ) * - cor0.col2 AS col0 FROM tab0 AS cor0
----
35
7298
792

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7652
SELECT ALL CAST( NULL AS SIGNED ) - 50 FROM tab2, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-7652
SELECT ALL CAST ( NULL AS INTEGER ) - 50 FROM tab2, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT - col0 * col2 * + 37 + col2 AS col0 FROM tab1
----
-134919
-284064
-5940

query I rowsort
SELECT ALL + ( ( + tab0.col2 ) ) AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8

query I rowsort
SELECT ( + 44 ) FROM tab2, tab1 cor0
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d

query I rowsort
SELECT + cor0.col0 * + cor0.col0 AS col0 FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT + ( tab2.col0 + col2 ) * - 35 * + 87 FROM tab2
----
-103530
-316680
-356265

query I rowsort
SELECT 84 FROM tab1, tab0 cor0 CROSS JOIN tab0, tab0 AS cor1
----
81 values hashing to 3c092ed1a99ddb5afc7049fd2b9427f9

skipif mysql # not compatible
query I rowsort
SELECT + ( + col1 + CAST ( 34 AS REAL ) ) * col1 * - col2 FROM tab0
----
-12707
-340560
-932750

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col1 col1 FROM tab0, tab1, tab2 AS cor0, tab1 AS cor1
----
17
31
59

query I rowsort
SELECT + cor0.col2 AS col1 FROM tab0, tab2 cor0, tab2 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT + col0 + - col1 - 58 FROM tab2
----
-39
-82
4

query I rowsort
SELECT ALL + col1 * - col2 + tab0.col0 FROM tab0
----
-2814
-62
-7373

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 3 * col2 + - tab1.col0 col1 FROM tab1
----
107
159
208

query I rowsort
SELECT + 29 AS col2 FROM tab1 cor0
----
29
29
29

query I rowsort
SELECT DISTINCT - + ( - col1 ) + + col2 FROM tab0 cor0
----
119
173
98

query I rowsort
SELECT - 23 * 26 FROM tab0 AS cor0
----
-598
-598
-598

query I rowsort
SELECT DISTINCT + - col2 + col1 + 56 * - col1 AS col2 FROM tab0 AS cor0
----
-4763
-5087
-5336

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 89 col1 FROM tab0, tab1, tab0 cor0
----
89

query I rowsort
SELECT DISTINCT - + col1 + + col1 AS col0 FROM tab2 cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( col1 * + ( col0 ) ) col2 FROM tab0
----
2064
3395
8099

query I rowsort
SELECT ALL - - 73 + col2 FROM tab2 AS cor0
----
100
111
99

onlyif mysql # use DIV operator for integer division
query I rowsort label-7673
SELECT ALL - ( - col2 ) DIV - CAST( 75 AS SIGNED ) + + cor0.col0 AS col1 FROM tab0 cor0
----
24
35
88

skipif mysql # not compatible
query I rowsort label-7673
SELECT ALL - ( - col2 ) / - CAST ( 75 AS INTEGER ) + + cor0.col0 AS col1 FROM tab0 cor0
----
24
35
88

query I rowsort
SELECT 43 + cor0.col1 AS col2 FROM tab0 AS cor0
----
129
134
140

onlyif mysql # use DIV operator for integer division
query I rowsort label-7675
SELECT - 53 DIV col0 AS col0 FROM tab1 AS cor0
----
-17
0
0

skipif mysql # not compatible
query I rowsort label-7675
SELECT - 53 / col0 AS col0 FROM tab1 AS cor0
----
-17
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7676
SELECT DISTINCT cor0.col0 + col2 * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7676
SELECT DISTINCT cor0.col0 + col2 * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT col2 + + col2 * + ( - ( + col0 ) ) * - col0 FROM tab2 AS cor0
----
1350
158210
237196

onlyif mysql # use DIV operator for integer division
query I rowsort label-7678
SELECT DISTINCT - 44 DIV - cor0.col0 + cor0.col1 + - 32 FROM tab0 cor0
----
55
59
66

skipif mysql # not compatible
query I rowsort label-7678
SELECT DISTINCT - 44 / - cor0.col0 + cor0.col1 + - 32 FROM tab0 cor0
----
55
59
66

query I rowsort
SELECT ALL + tab1.col2 + + col2 + + ( - col1 + col0 ) AS col0 FROM tab1
----
168
259
85

query I rowsort
SELECT cor0.col0 * - 29 FROM tab0 AS cor0
----
-1015
-2581
-696

query I rowsort
SELECT DISTINCT + col0 + tab0.col0 * + col2 AS col1 FROM tab0
----
70
7387
816

query I rowsort
SELECT ALL col0 + col0 + col2 AS col1 FROM tab1
----
185
256
60

query I rowsort
SELECT + - col0 + - col1 * + col0 AS col1 FROM tab1 AS cor0
----
-1120
-704
-81

query I rowsort
SELECT cor0.col2 * + 77 + col0 * - col1 AS col0 FROM tab0 AS cor0
----
-1785
-3318
477

query I rowsort
SELECT DISTINCT + col2 * ( 98 ) + col0 * - 28 FROM tab1 AS cor0
----
3794
5208
7168

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 * - 24 col0 FROM tab0 AS cor0
----
2064
2184
2328

skipif mysql # not compatible
query I rowsort
SELECT + + cor0.col2 * CAST ( col1 * col2 AS REAL ) FROM tab1 AS cor0
----
119808
32490
75816

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7688
SELECT DISTINCT + col1 * - CAST( + col1 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-100
-169
-676

skipif mysql # not compatible
query I rowsort label-7688
SELECT DISTINCT + col1 * - CAST ( + col1 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT - 38 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to e8c064543bf0f2e57329db1bb0a411e3

onlyif mysql # use DIV operator for integer division
query I rowsort label-7690
SELECT - col0 DIV - col1 + col1 col0 FROM tab1 cor0
----
16
19
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7690
SELECT - col0 / - col1 + col1 col0 FROM tab1 cor0
----
16
19
26

query I rowsort
SELECT DISTINCT + 54 + - ( + cor0.col1 ) * 65 * col0 FROM tab0 AS cor0
----
-134106
-220621
-526381

query I rowsort
SELECT - 5 * 3 AS col1 FROM tab1 AS cor0
----
-15
-15
-15

skipif mysql # not compatible
query I rowsort
SELECT CAST ( col1 AS REAL ) + + col2 * ( col2 ) / - col1 AS col2 FROM tab2 AS cor0
----
-67
48
8

onlyif mysql # use DIV operator for integer division
query I rowsort label-7694
SELECT DISTINCT + 30 + - cor0.col1 DIV + col2 FROM tab1 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-7694
SELECT DISTINCT + 30 + - cor0.col1 / + col2 FROM tab1 AS cor0
----
30

query I rowsort
SELECT + 74 * ( col0 ) FROM tab1 AS cor0
----
222
4736
5920

query I rowsort
SELECT ALL - col0 * + col1 + + col0 AS col1 FROM tab0 AS cor0
----
-2040
-3360
-8010

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 59 + col1 col1 FROM tab1 AS cor0
----
69
72
85

query I rowsort
SELECT - 24 + col0 AS col2 FROM tab2 AS cor0
----
-17
54
55

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7699
SELECT CAST( + col0 AS SIGNED ) + + col0 FROM tab1 AS cor0
----
128
160
6

skipif mysql # not compatible
query I rowsort label-7699
SELECT CAST ( + col0 AS INTEGER ) + + col0 FROM tab1 AS cor0
----
128
160
6

query I rowsort
SELECT ALL - + col0 + 53 + + cor0.col2 AS col2 FROM tab0 AS cor0
----
19
46
62

query I rowsort
SELECT DISTINCT 9 - + col0 * + col1 * col1 FROM tab2 AS cor0
----
-22822
-271509
-6718

onlyif mysql # use DIV operator for integer division
query I rowsort label-7702
SELECT + col1 DIV col0 + - col0 AS col0 FROM tab0
----
-21
-33
-88

skipif mysql # not compatible
query I rowsort label-7702
SELECT + col1 / col0 + - col0 AS col0 FROM tab0
----
-21
-33
-88

onlyif mysql # use DIV operator for integer division
query I rowsort label-7703
SELECT ALL - col1 - ( col1 ) DIV tab1.col2 AS col0 FROM tab1
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-7703
SELECT ALL - col1 - ( col1 ) / tab1.col2 AS col0 FROM tab1
----
-10
-13
-26

query I rowsort
SELECT DISTINCT tab2.col1 - col1 AS col1 FROM tab2
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-7705
SELECT ALL col2 DIV + tab2.col0 + - col1 * + col0 FROM tab2
----
-1343
-214
-4602

skipif mysql # not compatible
query I rowsort label-7705
SELECT ALL col2 / + tab2.col0 + - col1 * + col0 FROM tab2
----
-1343
-214
-4602

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7706
SELECT col0 * - CAST( + col0 AS SIGNED ) - + tab2.col0 FROM tab2
----
-56
-6162
-6320

skipif mysql # not compatible
query I rowsort label-7706
SELECT col0 * - CAST ( + col0 AS INTEGER ) - + tab2.col0 FROM tab2
----
-56
-6162
-6320

query I rowsort
SELECT DISTINCT ( col2 ) * - col2 + col2 * + col1 AS col0 FROM tab1 AS cor0
----
-1512
-2679
-7968

onlyif mysql # use DIV operator for integer division
query I rowsort label-7708
SELECT + 61 + 96 DIV - col2 FROM tab0 AS cor0
----
-35
59
60

skipif mysql # not compatible
query I rowsort label-7708
SELECT + 61 + 96 / - col2 FROM tab0 AS cor0
----
-35
59
60

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - + col1 * - 14 + cor0.col2 + CAST ( + col1 AS REAL ) * + col2 AS col2 FROM tab1 AS cor0
----
1526
1822
767

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 - - col1 col1 FROM tab0
----
119
173
98

query I rowsort
SELECT ALL + - col2 + - 50 FROM tab2 AS cor0
----
-76
-77
-88

query I rowsort
SELECT + cor1.col0 AS col1 FROM tab2, tab0 cor0, tab0 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7713
SELECT - - CAST( + col0 AS SIGNED ) * col0 * - ( col2 ) AS col1 FROM tab2 AS cor0
----
-1323
-158184
-237158

skipif mysql # not compatible
query I rowsort label-7713
SELECT - - CAST ( + col0 AS INTEGER ) * col0 * - ( col2 ) AS col1 FROM tab2 AS cor0
----
-1323
-158184
-237158

query I rowsort
SELECT - col2 + - 25 FROM tab0 AS cor0
----
-107
-26
-58

query I rowsort
SELECT - tab0.col2 + col1 * 49 + col2 FROM tab0
----
4214
4459
4753

query I rowsort
SELECT ALL - ( col2 ) + + tab2.col1 AS col0 FROM tab2
----
-21
33
4

onlyif mysql # use DIV operator for integer division
query I rowsort label-7717
SELECT ALL - col0 + col2 DIV - col2 FROM tab0
----
-25
-36
-90

skipif mysql # not compatible
query I rowsort label-7717
SELECT ALL - col0 + col2 / - col2 FROM tab0
----
-25
-36
-90

query I rowsort
SELECT ( tab2.col0 ) * - col0 AS col0 FROM tab2
----
-49
-6084
-6241

query I rowsort
SELECT DISTINCT + ( 64 ) + col1 FROM tab0
----
150
155
161

query I rowsort
SELECT ALL - + tab0.col1 * 2 AS col1 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 711cfaed69449ce6d49b98e40b1b4381

query I rowsort
SELECT + ( col2 ) * + col1 AS col2 FROM tab2
----
1534
646
837

query I rowsort
SELECT ( + 94 + col2 ) * + col2 AS col0 FROM tab0
----
14432
4191
95

query I rowsort
SELECT col2 * 69 AS col1 FROM tab1 cor0
----
3726
3933
6624

query I rowsort
SELECT DISTINCT col1 * ( 80 ) * col1 FROM tab1 AS cor0
----
13520
54080
8000

onlyif mysql # use DIV operator for integer division
query I rowsort label-7725
SELECT - col0 DIV - 12 FROM tab2 AS cor0
----
0
6
6

skipif mysql # not compatible
query I rowsort label-7725
SELECT - col0 / - 12 FROM tab2 AS cor0
----
0
6
6

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7726
SELECT - col0 * - CAST( col0 AS SIGNED ) FROM tab0 cor0
----
1225
576
7921

skipif mysql # not compatible
query I rowsort label-7726
SELECT - col0 * - CAST ( col0 AS INTEGER ) FROM tab0 cor0
----
1225
576
7921

onlyif mysql # use DIV operator for integer division
query I rowsort label-7727
SELECT col1 * - col1 * 78 + - tab1.col2 DIV + col0 AS col2 FROM tab1
----
-13183
-52746
-7800

skipif mysql # not compatible
query I rowsort label-7727
SELECT col1 * - col1 * 78 + - tab1.col2 / + col0 AS col2 FROM tab1
----
-13183
-52746
-7800

query I rowsort
SELECT DISTINCT ( col1 * col2 ) AS col0 FROM tab1
----
1248
1404
570

query I rowsort
SELECT ALL 13 * - col0 FROM tab0
----
-1157
-312
-455

query I rowsort
SELECT - tab2.col2 + + col1 * col0 FROM tab2
----
1305
190
4576

onlyif mysql # use DIV operator for integer division
query I rowsort label-7731
SELECT + col0 - + col2 DIV col1 AS col0 FROM tab2
----
7
77
78

skipif mysql # not compatible
query I rowsort label-7731
SELECT + col0 - + col2 / col1 AS col0 FROM tab2
----
7
77
78

query I rowsort
SELECT DISTINCT - col1 + + col2 * + col2 FROM tab2
----
1427
617
698

query I rowsort
SELECT DISTINCT - col1 + - col2 * col1 * + col0 + - 4 * 73 FROM tab1
----
-100145
-36782
-4530

query I rowsort
SELECT ALL + col2 + ( - col0 ) * + col1 AS col1 FROM tab0 cor0
----
-2031
-3394
-8017

query I rowsort
SELECT - + col0 * 70 AS col0 FROM tab0 AS cor0
----
-1680
-2450
-6230

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 51 + - 9 col2 FROM tab2, tab2 cor0
----
9 values hashing to 64c29db9f1cd7ed4ddeb1735e3e0d442

query I rowsort
SELECT + 9 * + col1 AS col2 FROM tab1 cor0
----
117
234
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 72 * col2 col1 FROM tab2 AS cor0
----
1872
1944
2736

query I rowsort
SELECT col1 * ( + col2 ) FROM tab0
----
2838
7462
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col2 + 47 col2 FROM tab2
----
73
74
85

query I rowsort
SELECT - ( - 55 ) + col2 AS col0 FROM tab1
----
109
112
151

query I rowsort
SELECT ( + 72 ) FROM tab1
----
72
72
72

onlyif mysql # use DIV operator for integer division
query I rowsort label-7743
SELECT ALL + col0 DIV ( col2 ) AS col2 FROM tab0
----
0
1
35

skipif mysql # not compatible
query I rowsort label-7743
SELECT ALL + col0 / ( col2 ) AS col2 FROM tab0
----
0
1
35

query I rowsort
SELECT DISTINCT + - 11 FROM tab0 cor0
----
-11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + 68 col1 FROM tab0
----
-14
35
67

query I rowsort
SELECT ALL - col1 * + col2 * 28 + + col1 FROM tab2 cor0
----
-18071
-23405
-42893

query I rowsort
SELECT - col1 * 16 * - cor0.col2 + + col1 FROM tab0 AS cor0
----
119483
1649
45494

query I rowsort
SELECT DISTINCT col0 + - 91 + + col1 FROM tab2 cor0
----
-53
46
5

query I rowsort
SELECT ALL + 24 * + col1 FROM tab2 AS cor0
----
1416
408
744

query I rowsort
SELECT + 62 * - col0 + - cor0.col2 AS col0 FROM tab0 AS cor0
----
-1521
-2171
-5600

query I rowsort
SELECT + col0 * - col1 + - cor0.col1 AS col2 FROM tab2 AS cor0
----
-1360
-248
-4661

onlyif mysql # use DIV operator for integer division
query I rowsort label-7752
SELECT - - 91 * 29 DIV + col0 FROM tab1 AS cor0
----
32
41
879

skipif mysql # not compatible
query I rowsort label-7752
SELECT - - 91 * 29 / + col0 FROM tab1 AS cor0
----
32
41
879

query I rowsort
SELECT - ( 34 ) + col0 FROM tab0 AS cor0
----
-10
1
55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 * 14 * + col1 col0 FROM tab1 AS cor0
----
1092
14560
8960

onlyif mysql # use DIV operator for integer division
query I rowsort label-7755
SELECT 18 DIV 95 + + col0 AS col1 FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-7755
SELECT 18 / 95 + + col0 AS col1 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT ALL - + 83 AS col1 FROM tab1, tab2 AS cor0, tab0, tab0 AS cor1
----
81 values hashing to 291feef3dca992d41fad4b2f7ab1ab9e

query I rowsort
SELECT - 82 * + col0 * - col1 + ( cor0.col0 * col0 ) FROM tab0 AS cor0
----
169824
279615
672039

query I rowsort
SELECT + - ( - 47 ) + + col1 FROM tab1 AS cor0
----
57
60
73

onlyif mysql # use DIV operator for integer division
query I rowsort label-7759
SELECT - cor0.col0 DIV col1 + col1 FROM tab1 AS cor0
----
26
4
7

skipif mysql # not compatible
query I rowsort label-7759
SELECT - cor0.col0 / col1 + col1 FROM tab1 AS cor0
----
26
4
7

query I rowsort
SELECT 29 + - 22 FROM tab0 AS cor0
----
7
7
7

query I rowsort
SELECT ALL cor0.col2 + col0 * + col1 * + 27 + cor0.col2 * ( + col0 ) AS col1 FROM tab1 AS cor0
----
20985
2322
35856

query I rowsort
SELECT ALL - + col2 + - cor0.col2 + - 92 FROM tab0 cor0
----
-158
-256
-94

query I rowsort
SELECT DISTINCT - col2 + + col2 + col0 * 1 FROM tab2 AS cor0
----
7
78
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - col2 + + col0 * col0 col2 FROM tab0 AS cor0
----
1226
14645
1665

query I rowsort
SELECT DISTINCT col0 + - col0 * col2 AS col0 FROM tab2 AS cor0
----
-182
-1950
-2923

skipif mysql # not compatible
query I rowsort
SELECT col1 / + col2 + - CAST ( col2 AS REAL ) AS col0 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT + col1 * + 34 * - col2 FROM tab2 AS cor0
----
-21964
-28458
-52156

query I rowsort
SELECT DISTINCT col1 + col2 - col2 * - col1 FROM tab2
----
1619
701
895

query I rowsort
SELECT ALL - col2 * col1 - 82 AS col1 FROM tab1
----
-1330
-1486
-652

query I rowsort
SELECT col0 - col0 * cor0.col0 AS col2 FROM tab2 AS cor0
----
-42
-6006
-6162

query I rowsort
SELECT DISTINCT + ( + col0 ) + col0 AS col0 FROM tab1 AS cor0
----
128
160
6

query I rowsort
SELECT + tab1.col1 * 28 AS col1 FROM tab1
----
280
364
728

query I rowsort
SELECT + - col1 * cor0.col0 + - col2 FROM tab0 AS cor0
----
-2097
-3396
-8181

query I rowsort
SELECT + col2 * + ( col1 ) + + col1 FROM tab2 AS cor0
----
1593
663
868

query I rowsort
SELECT DISTINCT - col0 + 61 AS col2 FROM tab2 AS cor0
----
-17
-18
54

query I rowsort
SELECT - cor0.col2 + - 63 AS col2 FROM tab1 AS cor0
----
-117
-120
-159

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col2 * 6 * ( cor0.col2 ) col2 FROM tab2, tab0 AS cor0
----
9 values hashing to daeb50b52d165466f6656128a52f72da

query I rowsort
SELECT + tab1.col0 + tab1.col2 AS col2 FROM tab1
----
121
176
57

query I rowsort
SELECT - tab0.col0 + col2 * ( col2 ) * col2 + col1 FROM tab0
----
35999
551370
63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab2.col1 col2 FROM tab2, tab1 AS cor0
----
-17
-31
-59

query I rowsort
SELECT DISTINCT cor1.col0 AS col0 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
7
78
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-7782
SELECT ( tab1.col2 ) DIV - ( + 80 + - col1 ) FROM tab1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-7782
SELECT ( tab1.col2 ) / - ( + 80 + - col1 ) FROM tab1
----
-1
-1
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + ( + col2 ) + - col2 col0 FROM tab1
----
-1344
-1458
-627

query I rowsort
SELECT - ( + cor0.col0 ) * tab2.col1 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 06f1aa65839c1bfc8581580bacdb6787

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7785
SELECT ALL - col2 + - CAST( + 20 AS SIGNED ) AS col1 FROM tab0
----
-102
-21
-53

skipif mysql # not compatible
query I rowsort label-7785
SELECT ALL - col2 + - CAST ( + 20 AS INTEGER ) AS col1 FROM tab0
----
-102
-21
-53

query I rowsort
SELECT DISTINCT col0 + + 16 AS col2 FROM tab1
----
19
80
96

query I rowsort
SELECT DISTINCT + - col2 * ( - cor0.col0 ) AS col1 FROM tab2 AS cor0
----
189
2028
3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-7788
SELECT - col0 + 74 DIV cor0.col2 AS col1 FROM tab1 AS cor0
----
-2
-63
-80

skipif mysql # not compatible
query I rowsort label-7788
SELECT - col0 + 74 / cor0.col2 AS col1 FROM tab1 AS cor0
----
-2
-63
-80

query I rowsort
SELECT ALL - col0 * + ( cor0.col2 ) + - col2 * ( - col2 ) FROM tab1 AS cor0
----
-399
1536
2754

query I rowsort
SELECT col1 * - 36 FROM tab2
----
-1116
-2124
-612

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab1 AS cor0, tab0 cor1, tab0, tab0 AS cor2
----
3645 values hashing to 181d902c42955a43a374f13a73d8b0a1

onlyif mysql # use DIV operator for integer division
query I rowsort label-7792
SELECT DISTINCT + - col0 * col2 DIV + 42 FROM tab2 AS cor0
----
-4
-48
-71

skipif mysql # not compatible
query I rowsort label-7792
SELECT DISTINCT + - col0 * col2 / + 42 FROM tab2 AS cor0
----
-4
-48
-71

query I rowsort
SELECT + 44 - col2 FROM tab1
----
-10
-13
-52

query I rowsort
SELECT - col0 * + col0 * col0 + ( tab2.col2 ) AS col1 FROM tab2
----
-316
-474526
-493001

query I rowsort
SELECT - ( - tab0.col0 ) + - col1 AS col0 FROM tab0
----
-2
-62
-62

query I rowsort
SELECT - 69 * 12 - col0 AS col0 FROM tab2
----
-835
-906
-907

query I rowsort
SELECT + 85 + - 71 FROM tab2
----
14
14
14

query I rowsort
SELECT - ( - 25 ) FROM tab2 cor0
----
25
25
25

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7799
SELECT col1 * - col1 + col0 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7799
SELECT col1 * - col1 + col0 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col2 * - cor0.col2 + cor0.col2 FROM tab0 cor0
----
-1056
-6642
0

query I rowsort
SELECT ALL - cor0.col2 + - col1 * - 45 - col1 AS col1 FROM tab1 AS cor0
----
1090
383
476

query I rowsort
SELECT DISTINCT - 13 + - col0 AS col2 FROM tab1 AS cor0
----
-16
-77
-93

query I rowsort
SELECT DISTINCT + 69 AS col0 FROM tab1 cor0
----
69

query I rowsort
SELECT ALL - 69 * col2 + col1 * + col1 + + col0 FROM tab1 AS cor0
----
-3047
-3769
-6375

query I rowsort
SELECT col1 * - col2 + ( + col0 ) FROM tab0 AS cor0
----
-2814
-62
-7373

query I rowsort
SELECT DISTINCT 57 * + cor0.col0 AS col0 FROM tab2 AS cor0
----
399
4446
4503

query I rowsort
SELECT ALL - 4 * - col1 + - ( + col2 * - col1 ) + + col1 FROM tab0 AS cor0
----
3268
582
7917

onlyif mysql # use DIV operator for integer division
query I rowsort label-7808
SELECT ALL + 5 DIV - col1 + col1 * col2 AS col0 FROM tab1 AS cor0
----
1248
1404
570

skipif mysql # not compatible
query I rowsort label-7808
SELECT ALL + 5 / - col1 + col1 * col2 AS col0 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT DISTINCT + - 67 AS col2 FROM tab1 cor0
----
-67

query I rowsort
SELECT - 53 + + col1 FROM tab1 AS cor0
----
-27
-40
-43

query I rowsort
SELECT ALL - 24 * col2 + - 48 + + col2 AS col2 FROM tab0 AS cor0
----
-1934
-71
-807

query I rowsort
SELECT DISTINCT col2 + - col1 * - 63 FROM tab0 cor0
----
5451
5815
6112

query I rowsort
SELECT DISTINCT + - col0 + cor0.col0 AS col2 FROM tab0 cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-7814
SELECT ALL - col2 + - col2 * ( 2 + cor0.col1 ) DIV + col1 FROM tab0 AS cor0
----
-165
-2
-66

skipif mysql # not compatible
query I rowsort label-7814
SELECT ALL - col2 + - col2 * ( 2 + cor0.col1 ) / + col1 FROM tab0 AS cor0
----
-165
-2
-66

query I rowsort
SELECT ALL 61 * - col2 - cor0.col0 FROM tab0 AS cor0
----
-2037
-5091
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-7816
SELECT - col2 DIV - ( col1 ) + + col0 AS col1 FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-7816
SELECT - col2 / - ( col1 ) + + col0 AS col1 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT - cor0.col1 * - 94 * col1 - + col2 AS col2 FROM tab0 AS cor0
----
695191
778332
884445

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7818
SELECT - - cor0.col0 * CAST( NULL AS SIGNED ) + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7818
SELECT - - cor0.col0 * CAST ( NULL AS INTEGER ) + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT cor0.col0 - 93 AS col1 FROM tab0 AS cor0
----
-4
-58
-69

query I rowsort
SELECT DISTINCT - - col1 + - ( + cor0.col0 ) * col0 FROM tab1 AS cor0
----
-4086
-6387
17

query I rowsort
SELECT col2 * col2 - cor0.col2 * col2 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + + col2 - - 45 FROM tab1 AS cor0
----
102
141
99

query I rowsort
SELECT - col2 * + ( - col1 ) + + col0 FROM tab0 AS cor0
----
132
2862
7551

onlyif mysql # use DIV operator for integer division
query I rowsort label-7824
SELECT ALL cor0.col1 * col0 DIV 71 FROM tab2 AS cor0
----
18
3
64

skipif mysql # not compatible
query I rowsort label-7824
SELECT ALL cor0.col1 * col0 / 71 FROM tab2 AS cor0
----
18
3
64

query I rowsort
SELECT DISTINCT 42 + col0 FROM tab0
----
131
66
77

query I rowsort
SELECT cor0.col2 + - col2 AS col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-7827
SELECT + 72 DIV col0 + col1 * 91 + tab0.col2 DIV + 52 FROM tab0
----
7829
8282
8829

skipif mysql # not compatible
query I rowsort label-7827
SELECT + 72 / col0 + col1 * 91 + tab0.col2 / + 52 FROM tab0
----
7829
8282
8829

onlyif mysql # use DIV operator for integer division
query I rowsort label-7828
SELECT DISTINCT + 54 DIV + col0 FROM tab1 AS cor0
----
0
18

skipif mysql # not compatible
query I rowsort label-7828
SELECT DISTINCT + 54 / + col0 FROM tab1 AS cor0
----
0
18

query I rowsort
SELECT - + col0 + - col2 * col0 FROM tab2 cor0
----
-196
-2106
-3081

query I rowsort
SELECT ALL - col0 + + cor0.col1 * + col1 * 4 AS col0 FROM tab0 AS cor0
----
29560
33035
37601

onlyif mysql # use DIV operator for integer division
query I rowsort label-7831
SELECT - 0 DIV 66 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7831
SELECT - 0 / 66 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - - col2 + - ( - col0 ) * - col1 FROM tab2 AS cor0
----
-1305
-190
-4576

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 46 col2 FROM tab2 cor0
----
-46

onlyif mysql # use DIV operator for integer division
query I rowsort label-7834
SELECT - + ( col0 ) + - col1 DIV + col2 AS col2 FROM tab0 AS cor0
----
-132
-26
-90

skipif mysql # not compatible
query I rowsort label-7834
SELECT - + ( col0 ) + - col1 / + col2 AS col2 FROM tab0 AS cor0
----
-132
-26
-90

query I rowsort
SELECT ALL + ( - 70 ) AS col2 FROM tab2 AS cor0
----
-70
-70
-70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * col1 * col1 col0 FROM tab2 cor0
----
205379
29791
4913

query I rowsort
SELECT ALL col2 * ( - col0 * tab1.col1 ) + + 74 FROM tab1
----
-36406
-4138
-99766

query I rowsort
SELECT ALL - ( + 13 ) AS col1 FROM tab1 cor0
----
-13
-13
-13

query I rowsort
SELECT ALL ( + ( - col1 ) ) AS col0 FROM tab0 cor0
----
-86
-91
-97

query I rowsort
SELECT DISTINCT + - cor0.col2 + 74 * - col1 FROM tab2 AS cor0
----
-1296
-2321
-4392

query I rowsort
SELECT - 20 + - col2 * + col0 AS col1 FROM tab1 AS cor0
----
-182
-3668
-7700

query I rowsort
SELECT ALL - ( ( - col1 ) + col2 ) FROM tab0
----
53
9
96

query I rowsort
SELECT col2 * col0 + + col1 AS col1 FROM tab1 AS cor0
----
188
3658
7693

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 63 + 3 col0 FROM tab0 AS cor0
----
66
66
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 5 * - col0 + col0 col0 FROM tab1 AS cor0
----
18
384
480

query I rowsort
SELECT DISTINCT 57 + - col0 * - 78 AS col2 FROM tab1 cor0
----
291
5049
6297

query I rowsort
SELECT DISTINCT - + col1 + col1 * + col1 FROM tab0 AS cor0
----
7310
8190
9312

query I rowsort
SELECT - col0 * col2 * - col1 + col1 * - col2 FROM tab1 AS cor0
----
2808
35910
98592

query I rowsort
SELECT + - 3 AS col0 FROM tab2 AS cor0
----
-3
-3
-3

query I rowsort
SELECT ALL tab2.col1 FROM tab2, tab0, tab2 cor0
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

query I rowsort
SELECT ALL + 52 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 7f4ae30893ab330784829711032ae599

query I rowsort
SELECT col2 * + col2 * + col0 FROM tab2
----
114076
5103
52728

query I rowsort
SELECT + cor0.col0 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT DISTINCT + 91 AS col2 FROM tab2, tab0 AS cor0
----
91

query I rowsort
SELECT - cor0.col1 * + 10 FROM tab0 AS cor0
----
-860
-910
-970

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7856
SELECT + col1 * CAST( NULL AS SIGNED ) + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7856
SELECT + col1 * CAST ( NULL AS INTEGER ) + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 - + 51 FROM tab2 AS cor0
----
-13
-24
-25

query I rowsort
SELECT col0 * col2 + - 70 * + col2 AS col2 FROM tab0 AS cor0
----
-1518
-35
1558

query I rowsort
SELECT col1 * col0 * 29 AS col2 FROM tab1 AS cor0
----
18560
2262
30160

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7860
SELECT cor0.col1 - - CAST( col2 + col1 AS SIGNED ) FROM tab2 AS cor0
----
144
72
89

skipif mysql # not compatible
query I rowsort label-7860
SELECT cor0.col1 - - CAST ( col2 + col1 AS INTEGER ) FROM tab2 AS cor0
----
144
72
89

query I rowsort
SELECT ALL + 79 AS col0 FROM tab2
----
79
79
79

query I rowsort
SELECT DISTINCT + tab0.col1 FROM tab0, tab2, tab0 cor0
----
86
91
97

query I rowsort
SELECT ALL 35 * + col0 AS col1 FROM tab2
----
245
2730
2765

onlyif mysql # use DIV operator for integer division
query I rowsort label-7864
SELECT DISTINCT col2 DIV ( 45 + col0 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7864
SELECT DISTINCT col2 / ( 45 + col0 ) FROM tab0
----
0

query I rowsort
SELECT + col0 + + col0 * col2 AS col1 FROM tab1 AS cor0
----
165
3712
7760

query I rowsort
SELECT ( + 71 ) - + cor0.col2 FROM tab2 AS cor0
----
33
44
45

query I rowsort
SELECT DISTINCT + 29 AS col2 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
29

query I rowsort
SELECT + - 49 * cor0.col2 + col1 + - col0 * 8 AS col0 FROM tab0 AS cor0
----
-1723
-232
-4639

query I rowsort
SELECT DISTINCT - col1 * + 15 * - cor0.col2 FROM tab2 AS cor0
----
12555
23010
9690

query I rowsort
SELECT DISTINCT + col2 * + ( col2 * ( + col2 ) ) FROM tab0 AS cor0
----
1
35937
551368

query I rowsort
SELECT - col0 + + ( tab1.col0 ) FROM tab1
----
0
0
0

query I rowsort
SELECT + col1 * + col2 * 14 FROM tab1
----
17472
19656
7980

onlyif mysql # use DIV operator for integer division
query I rowsort label-7873
SELECT DISTINCT + col2 DIV 76 FROM tab1
----
0
1

skipif mysql # not compatible
query I rowsort label-7873
SELECT DISTINCT + col2 / 76 FROM tab1
----
0
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-7874
SELECT ALL col2 - col2 DIV + tab2.col0 col1 FROM tab2
----
24
26
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7874
SELECT ALL col2 - col2 / + tab2.col0 col1 FROM tab2
----
24
26
38

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7875
SELECT + CAST( - col1 AS SIGNED ) - col1 AS col1 FROM tab2 AS cor0
----
-118
-34
-62

skipif mysql # not compatible
query I rowsort label-7875
SELECT + CAST ( - col1 AS INTEGER ) - col1 AS col1 FROM tab2 AS cor0
----
-118
-34
-62

query I rowsort
SELECT - col1 + col2 + - col1 AS col2 FROM tab0 AS cor0
----
-100
-139
-193

query I rowsort
SELECT ALL - 69 AS col2 FROM tab2 cor0
----
-69
-69
-69

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + + CAST ( - col1 AS REAL ) AS col2 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT ( + col0 ) + + col1 * col0 + - col0 * col1 AS col2 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT ALL col1 * ( col2 ) + + ( col2 ) AS col2 FROM tab0 AS cor0
----
2871
7544
98

query I rowsort
SELECT - + 53 + + col2 + - col0 FROM tab0 AS cor0
----
-44
-60
-87

query I rowsort
SELECT + 24 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef

onlyif mysql # use DIV operator for integer division
query I rowsort label-7883
SELECT ALL + cor0.col1 DIV cor0.col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

skipif mysql # not compatible
query I rowsort label-7883
SELECT ALL + cor0.col1 / cor0.col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7884
SELECT col0 + + CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7884
SELECT col0 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 + ( - col0 + + col0 ) * - col0 AS col2 FROM tab2
----
-17
-31
-59

query I rowsort
SELECT col0 * 92 + col1 * col0 AS col2 FROM tab0
----
16287
4272
6615

query I rowsort
SELECT + - col0 * col2 * 53 FROM tab2 AS cor0
----
-10017
-107484
-159106

query I rowsort
SELECT + col1 * + 4 AS col2 FROM tab0 AS cor0
----
344
364
388

query I rowsort
SELECT ALL col0 * ( col2 ) * + col0 FROM tab1 AS cor0
----
233472
486
614400

onlyif mysql # use DIV operator for integer division
query I rowsort label-7890
SELECT col2 DIV col0 + + col0 * col1 AS col0 FROM tab0 AS cor0
----
2065
3395
8099

skipif mysql # not compatible
query I rowsort label-7890
SELECT col2 / col0 + + col0 * col1 AS col0 FROM tab0 AS cor0
----
2065
3395
8099

query I rowsort
SELECT DISTINCT + + col2 * cor0.col2 AS col0 FROM tab2 AS cor0
----
1444
676
729

onlyif mysql # use DIV operator for integer division
query I rowsort label-7892
SELECT col0 + col2 DIV + col2 + col0 * - col2 AS col0 FROM tab0
----
-7208
-767
1

skipif mysql # not compatible
query I rowsort label-7892
SELECT col0 + col2 / + col2 + col0 * - col2 AS col0 FROM tab0
----
-7208
-767
1

query I rowsort
SELECT + - cor0.col2 * - col2 - cor0.col1 FROM tab1 cor0
----
2890
3239
9203

query I rowsort
SELECT DISTINCT col1 * + col0 + col2 FROM tab1 cor0
----
1136
132
697

query I rowsort
SELECT DISTINCT - col0 * cor0.col2 * - col0 + col2 * - col1 - col1 FROM tab1 AS cor0
----
-944
232892
613139

query I rowsort
SELECT ALL col0 * col1 + col1 AS col2 FROM tab1 AS cor0
----
104
1053
650

query I rowsort
SELECT ALL + col0 - - cor0.col2 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT col0 - - col2 * - col0 AS col1 FROM tab1 WHERE NOT NULL >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * col0 + - col0 col1 FROM tab0
----
0
7209
768

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + col0 * - tab1.col1 + col1 * + col2 col2 FROM tab1
----
-60
1352
221

onlyif mysql # use DIV operator for integer division
query I rowsort label-7901
SELECT ALL - col1 + + col0 DIV col2 FROM tab0 AS cor0
----
-62
-86
-90

skipif mysql # not compatible
query I rowsort label-7901
SELECT ALL - col1 + + col0 / col2 FROM tab0 AS cor0
----
-62
-86
-90

query I rowsort
SELECT ALL - col2 + col2 * + col2 FROM tab2 AS cor0
----
1406
650
702

onlyif mysql # use DIV operator for integer division
query I rowsort label-7903
SELECT col2 + col1 DIV - col1 AS col2 FROM tab0 AS cor0
----
0
32
81

skipif mysql # not compatible
query I rowsort label-7903
SELECT col2 + col1 / - col1 AS col2 FROM tab0 AS cor0
----
0
32
81

query I rowsort
SELECT DISTINCT - tab2.col1 * - col2 + - col1 AS col0 FROM tab2
----
1475
629
806

query I rowsort
SELECT ALL - col0 * col2 * tab0.col2 + + col2 FROM tab0
----
-26103
-34
-598354

query I rowsort
SELECT 17 + + col2 AS col0 FROM tab2
----
43
44
55

onlyif mysql # use DIV operator for integer division
query I rowsort label-7907
SELECT DISTINCT tab0.col2 * - col0 DIV col0 FROM tab0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-7907
SELECT DISTINCT tab0.col2 * - col0 / col0 FROM tab0
----
-1
-33
-82

onlyif mysql # use DIV operator for integer division
query I rowsort label-7908
SELECT col0 * col1 * + col0 + col1 DIV + tab1.col2 FROM tab1
----
234
40960
83200

skipif mysql # not compatible
query I rowsort label-7908
SELECT col0 * col1 * + col0 + col1 / + tab1.col2 FROM tab1
----
234
40960
83200

query I rowsort
SELECT col2 - + col0 * - col1 FROM tab0
----
2097
3396
8181

query I rowsort
SELECT DISTINCT - col0 + - col0 + - col1 FROM tab1 WHERE NOT NULL IN ( + col1 * col0 / + col1 - + col1 ) AND NULL < ( NULL )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-7911
SELECT - tab2.col0 DIV col0 + tab2.col0 AS col0 FROM tab2
----
6
77
78

skipif mysql # not compatible
query I rowsort label-7911
SELECT - tab2.col0 / col0 + tab2.col0 AS col0 FROM tab2
----
6
77
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab0.col1 * + cor0.col1 col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 601c129c54e49286b9ededa8928121fc

query I rowsort
SELECT ALL col2 * col0 * + col0 FROM tab1
----
233472
486
614400

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - col2 + col1 col1 FROM tab0
----
86
91
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 - col1 * + col0 col1 FROM tab0
----
-2031
-3394
-8017

onlyif mysql # use DIV operator for integer division
query I rowsort label-7916
SELECT col2 * + col0 DIV ( ( col0 ) ) FROM tab0 cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-7916
SELECT col2 * + col0 / ( ( col0 ) ) FROM tab0 cor0
----
1
33
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-7917
SELECT ALL col2 + + col0 * col0 DIV + tab2.col0 AS col0 FROM tab2
----
104
117
34

skipif mysql # not compatible
query I rowsort label-7917
SELECT ALL col2 + + col0 * col0 / + tab2.col0 AS col0 FROM tab2
----
104
117
34

onlyif mysql # use DIV operator for integer division
query I rowsort label-7918
SELECT ALL col1 * col0 + - col1 DIV col0 col1 FROM tab1
----
1040
640
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7918
SELECT ALL col1 * col0 + - col1 / col0 col1 FROM tab1
----
1040
640
70

query I rowsort
SELECT ( 48 ) FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 0ef571a8722ab7270aa7272c1174b88e

query I rowsort
SELECT ALL 32 * - col0 AS col1 FROM tab0
----
-1120
-2848
-768

onlyif mysql # use DIV operator for integer division
query I rowsort label-7921
SELECT ALL ( tab0.col0 + + col0 ) DIV col0 AS col0 FROM tab0
----
2
2
2

skipif mysql # not compatible
query I rowsort label-7921
SELECT ALL ( tab0.col0 + + col0 ) / col0 AS col0 FROM tab0
----
2
2
2

onlyif mysql # use DIV operator for integer division
query I rowsort label-7922
SELECT 26 DIV - cor0.col1 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7922
SELECT 26 / - cor0.col1 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + ( col2 ) * col0 * col2 AS col0 FROM tab0 AS cor0
----
26136
35
598436

onlyif mysql # use DIV operator for integer division
query I rowsort label-7924
SELECT - col2 + + tab0.col1 DIV col0 FROM tab0
----
-30
-81
1

skipif mysql # not compatible
query I rowsort label-7924
SELECT - col2 + + tab0.col1 / col0 FROM tab0
----
-30
-81
1

query I rowsort
SELECT tab1.col1 * - col2 * - col1 AS col1 FROM tab1
----
16224
36504
5700

query I rowsort
SELECT DISTINCT + col1 * col2 - col2 AS col2 FROM tab2
----
1508
608
810

query I rowsort
SELECT ALL col1 * col1 * + col1 AS col2 FROM tab0 WHERE NULL IN ( - tab0.col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + col0 + col2 col2 FROM tab0 AS cor0
----
2097
3396
8181

query I rowsort
SELECT ALL - col1 * tab2.col1 * - col1 + col1 AS col2 FROM tab2
----
205438
29822
4930

query I rowsort
SELECT - col2 - col2 * + col2 FROM tab0
----
-1122
-2
-6806

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * col1 * col1 - col1 col1 FROM tab2
----
22814
271459
6696

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN ( - col2 * col2 ) AND col2 - col2
----

query I rowsort
SELECT tab1.col1 * + col0 - + col2 * col2 FROM tab1
----
-2609
-2838
-8176

query III rowsort
SELECT * FROM tab1 WHERE ( col2 ) <= + col0
----
64
10
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-7935
SELECT - col1 + - col1 DIV + tab1.col2 AS col0 FROM tab1
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-7935
SELECT - col1 + - col1 / + tab1.col2 AS col0 FROM tab1
----
-10
-13
-26

query I rowsort
SELECT + col0 FROM tab0 WHERE ( col0 ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL col1 * col2 - col1 FROM tab2
----
1475
629
806

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 NOT BETWEEN col2 AND NULL
----

query I rowsort
SELECT col0 * - col2 - + col1 * + tab2.col0 FROM tab2
----
-406
-4345
-6630

query I rowsort
SELECT + col2 + col2 * - col0 * + col0 FROM tab1
----
-233415
-432
-614304

query I rowsort
SELECT DISTINCT col0 * + tab2.col0 AS col0 FROM tab2
----
49
6084
6241

query I rowsort
SELECT + col1 * + col2 + - col0 + col1 AS col2 FROM tab0
----
159
2900
7464

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7943
SELECT col2 * - cor0.col1 * + 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-7943
SELECT col2 * - cor0.col1 * + CAST ( NULL AS INTEGER ) - col1 * col1 col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT cor0.col0 AS col2 FROM tab0, tab0 cor0, tab1 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT + 19 * col0 FROM tab2
----
133
1482
1501

query I rowsort
SELECT - - col0 + + 95 * 0 AS col2 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT + col2 + col1 * + ( col1 ) FROM tab1 cor0
----
157
265
730

query I rowsort
SELECT - col2 * ( - 11 ) AS col2 FROM tab2 AS cor0
----
286
297
418

onlyif mysql # use DIV operator for integer division
query I rowsort label-7949
SELECT col1 * - cor0.col1 + - col2 DIV col1 FROM tab2 AS cor0
----
-291
-3481
-961

skipif mysql # not compatible
query I rowsort label-7949
SELECT col1 * - cor0.col1 + - col2 / col1 FROM tab2 AS cor0
----
-291
-3481
-961

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7950
SELECT col1 + CAST( col1 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
20
26
52

skipif mysql # not compatible
query I rowsort label-7950
SELECT col1 + CAST ( col1 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
20
26
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-7951
SELECT ALL + col2 DIV 15 + + col2 FROM tab2 cor0
----
27
28
40

skipif mysql # not compatible
query I rowsort label-7951
SELECT ALL + col2 / 15 + + col2 FROM tab2 cor0
----
27
28
40

query I rowsort
SELECT - - col1 * 48 + 56 AS col0 FROM tab2 AS cor0
----
1544
2888
872

query I rowsort
SELECT - col2 + + 59 AS col1 FROM tab2 AS cor0
----
21
32
33

query I rowsort
SELECT - + col1 * col0 * col1 AS col1 FROM tab0 AS cor0
----
-177504
-329315
-737009

query I rowsort
SELECT DISTINCT + 97 AS col2 FROM tab0, tab2 AS cor0
----
97

query I rowsort
SELECT DISTINCT + tab2.col1 * + col0 AS col0 FROM tab2
----
1343
217
4602

query I rowsort
SELECT DISTINCT - - 50 * col2 AS col1 FROM tab1 AS cor0
----
2700
2850
4800

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 82 col2 FROM tab0 AS cor0
----
82
82
82

query I rowsort
SELECT + ( 62 ) + tab2.col0 AS col0 FROM tab2, tab1 cor0
----
9 values hashing to 54bbbf4753c31d1c6fafb5afd5432e0b

query I rowsort
SELECT 73 + - cor0.col2 AS col1 FROM tab2 AS cor0
----
35
46
47

query I rowsort
SELECT ALL - col2 * + col0 + ( + col0 ) AS col1 FROM tab1 cor0
----
-159
-3584
-7600

query I rowsort
SELECT DISTINCT - + 46 FROM tab2 AS cor0
----
-46

query I rowsort
SELECT - + ( col1 ) * col1 AS col2 FROM tab2 AS cor0
----
-289
-3481
-961

query I rowsort
SELECT ALL - - col1 * + cor0.col0 + + col2 FROM tab0 AS cor0
----
2097
3396
8181

query I rowsort
SELECT + 31 * + col1 AS col2 FROM tab1 AS cor0
----
310
403
806

onlyif mysql # use DIV operator for integer division
query I rowsort label-7966
SELECT + 15 + col0 DIV - col2 FROM tab0 AS cor0
----
-20
14
15

skipif mysql # not compatible
query I rowsort label-7966
SELECT + 15 + col0 / - col2 FROM tab0 AS cor0
----
-20
14
15

query I rowsort
SELECT DISTINCT - - col2 * cor0.col2 * - col1 AS col2 FROM tab2 AS cor0
----
-22599
-24548
-39884

onlyif mysql # use DIV operator for integer division
query I rowsort label-7968
SELECT ALL + 5 DIV + cor0.col1 col0 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7968
SELECT ALL + 5 / + cor0.col1 col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT - - 56 * col1 AS col0 FROM tab2 AS cor0
----
1736
3304
952

query I rowsort
SELECT DISTINCT ( + col0 ) * + cor0.col0 FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT ALL - 44 * - tab1.col2 * 20 FROM tab1
----
47520
50160
84480

query I rowsort
SELECT + 55 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0

query I rowsort
SELECT + + col2 + - ( - col1 ) * + 18 FROM tab1 AS cor0
----
237
330
522

query I rowsort
SELECT DISTINCT col0 + ( - col0 ) AS col1 FROM tab1 AS cor0
----
0

query I rowsort
SELECT - ( col0 ) * + col2 + col2 * + col1 FROM tab2 AS cor0
----
-2356
-494
648

query I rowsort
SELECT DISTINCT - col1 + cor0.col0 * col1 AS col0 FROM tab2 cor0
----
1326
186
4543

query I rowsort
SELECT + col0 * tab1.col2 + + 60 * - col2 AS col2 FROM tab1
----
-3078
1920
228

query I rowsort
SELECT - col2 * + col1 + col1 AS col1 FROM tab0
----
-2752
-7371
0

query I rowsort
SELECT + 52 + 48 FROM tab2, tab1, tab0 cor0
----
27 values hashing to 88605988410cd7d6b5c389bf9a3dd418

onlyif mysql # use DIV operator for integer division
query I rowsort label-7980
SELECT ALL + tab1.col1 DIV + ( + col0 ) AS col0 FROM tab1
----
0
0
8

skipif mysql # not compatible
query I rowsort label-7980
SELECT ALL + tab1.col1 / + ( + col0 ) AS col0 FROM tab1
----
0
0
8

query I rowsort
SELECT 36 * + col0 * + col0 + + col0 AS col2 FROM tab2 AS cor0
----
1771
219102
224755

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 55 * col1 col1 FROM tab0 AS cor0
----
4730
5005
5335

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 97 + - ( + cor0.col1 ) * col1 col2 FROM tab0 AS cor0
----
-7299
-8184
-9312

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7984
SELECT DISTINCT - col2 * CAST( NULL AS SIGNED ) + col2 AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7984
SELECT DISTINCT - col2 * CAST ( NULL AS INTEGER ) + col2 AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL - col2 + col2 * col2 AS col0 FROM tab0 AS cor0
----
0
1056
6642

query I rowsort
SELECT + + col1 + - col2 * - cor0.col1 AS col0 FROM tab1 AS cor0
----
1261
1430
580

query I rowsort
SELECT - col1 + col2 * col2 FROM tab1 AS cor0
----
2890
3239
9203

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 - 23 col0 FROM tab1 AS cor0
----
31
34
73

onlyif mysql # use DIV operator for integer division
query I rowsort label-7989
SELECT ALL col0 + - col1 DIV - col2 FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-7989
SELECT ALL col0 + - col1 / - col2 FROM tab1 AS cor0
----
3
64
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * 39 col2 FROM tab0 AS cor0
----
1365
3471
936

onlyif mysql # use DIV operator for integer division
query I rowsort label-7991
SELECT DISTINCT + col0 + + col1 DIV + col2 AS col0 FROM tab0 AS cor0
----
132
26
90

skipif mysql # not compatible
query I rowsort label-7991
SELECT DISTINCT + col0 + + col1 / + col2 AS col0 FROM tab0 AS cor0
----
132
26
90

query I rowsort
SELECT DISTINCT + col0 * + cor0.col1 - - 15 * + col1 FROM tab2 AS cor0
----
1598
5487
682

query I rowsort
SELECT ALL + col0 * + 21 AS col1 FROM tab1 AS cor0
----
1344
1680
63

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7994
SELECT ALL - col0 + + CAST( col0 * col2 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
182
1950
2923

skipif mysql # not compatible
query I rowsort label-7994
SELECT ALL - col0 + + CAST ( col0 * col2 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
182
1950
2923

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7995
SELECT ALL + col2 + - CAST( NULL AS SIGNED ) col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7995
SELECT ALL + col2 + - CAST ( NULL AS INTEGER ) col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 * - ( - 36 ) + col2 AS col2 FROM tab1 cor0
----
1998
2109
3552

query I rowsort
SELECT DISTINCT col0 * col2 * col1 - col2 * col0 AS col1 FROM tab1 AS cor0
----
32832
4050
92160

query I rowsort
SELECT DISTINCT - - cor0.col2 + 50 * col2 AS col1 FROM tab2 cor0
----
1326
1377
1938

query I rowsort
SELECT col2 * ( ( - col0 ) ) AS col0 FROM tab1 AS cor0
----
-162
-3648
-7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-8000
SELECT ALL - col0 * 87 DIV 5 FROM tab0 AS cor0
----
-1548
-417
-609

skipif mysql # not compatible
query I rowsort label-8000
SELECT ALL - col0 * 87 / 5 FROM tab0 AS cor0
----
-1548
-417
-609

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + col1 col0 FROM tab2 cor0
----
118
34
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-8002
SELECT ALL + col0 DIV col0 + col1 * + 49 + col2 col1 FROM tab1 AS cor0
----
1329
548
734

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8002
SELECT ALL + col0 / col0 + col1 * + 49 + col2 col1 FROM tab1 AS cor0
----
1329
548
734

query I rowsort
SELECT ALL cor0.col2 - 3 AS col1 FROM tab2 AS cor0
----
23
24
35

onlyif mysql # use DIV operator for integer division
query I rowsort label-8004
SELECT col2 - - col0 DIV tab1.col0 FROM tab1
----
55
58
97

skipif mysql # not compatible
query I rowsort label-8004
SELECT col2 - - col0 / tab1.col0 FROM tab1
----
55
58
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 87 + - 30 col0 FROM tab1 AS cor0
----
-117
-117
-117

query I rowsort
SELECT DISTINCT ( cor0.col2 ) + - col1 * + 83 AS col2 FROM tab1 AS cor0
----
-2104
-773
-983

query I rowsort
SELECT - + 98 + - cor0.col0 AS col2 FROM tab1 AS cor0
----
-101
-162
-178

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8008
SELECT + + CAST( NULL AS DECIMAL ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8008
SELECT + + CAST ( NULL AS REAL ) FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT cor0.col0 FROM tab0, tab2 AS cor0, tab1 cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

query I rowsort
SELECT DISTINCT + + ( + col2 ) + - col1 * + col2 * - col0 AS col2 FROM tab1 cor0
----
36537
4266
99936

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + col0 + - col0 * col0 col0 FROM tab0 cor0
----
-1155
-528
-7743

query I rowsort
SELECT ALL + col0 * + col1 + 1 FROM tab1 AS cor0
----
1041
641
79

query I rowsort
SELECT + 12 * col2 + + 6 FROM tab0 AS cor0
----
18
402
990

query I rowsort
SELECT ALL col0 * tab2.col0 * col2 + 99 + - tab2.col1 FROM tab2
----
1391
158224
237240

query I rowsort
SELECT DISTINCT + col0 + + 31 * + ( col0 ) + + col1 * + 95 AS col0 FROM tab1 AS cor0
----
2566
2998
3795

query I rowsort
SELECT + col1 * 57 AS col2 FROM tab2 AS cor0
----
1767
3363
969

query I rowsort
SELECT DISTINCT - col0 * - col1 * - col1 AS col1 FROM tab1
----
-13520
-2028
-6400

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8018
SELECT + col2 * + col0 + + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8018
SELECT + col2 * + col0 + + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 * col2 + col1 AS col2 FROM tab0
----
194
2924
7553

query I rowsort
SELECT DISTINCT col0 + col2 + ( + col2 ) AS col0 FROM tab2
----
130
155
61

query I rowsort
SELECT ALL + 16 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3

onlyif mysql # use DIV operator for integer division
query I rowsort label-8022
SELECT + - cor0.col1 DIV 58 AS col0 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8022
SELECT + - cor0.col1 / 58 AS col0 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT - - col1 + - ( 69 ) AS col1 FROM tab0 cor0
----
17
22
28

query I rowsort
SELECT col2 * - col1 * ( + 54 ) AS col1 FROM tab0
----
-153252
-402948
-5238

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + col1 + col2 col2 FROM tab1
----
106
122
77

query I rowsort
SELECT ( 18 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to b95bafa733666df39c5d3f94760d010f

skipif mysql # not compatible
query I rowsort
SELECT - + col1 * CAST ( col1 AS REAL ) AS col2 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT + 18 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 903ac227935c1532300db45a8537c595

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8029
SELECT ALL CAST( NULL AS SIGNED ) * - col0 + col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8029
SELECT ALL CAST ( NULL AS INTEGER ) * - col0 + col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 * cor0.col2 + - col0 * - col0 AS col2 FROM tab1 AS cor0
----
14080
171
7744

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col0 ) + col0 col1 FROM tab2
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8032
SELECT CAST( NULL AS SIGNED ) * + tab2.col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8032
SELECT CAST ( NULL AS INTEGER ) * + tab2.col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-8033
SELECT DISTINCT + 56 DIV col1 + col1 * + 64 FROM tab1 AS cor0
----
1666
645
836

skipif mysql # not compatible
query I rowsort label-8033
SELECT DISTINCT + 56 / col1 + col1 * + 64 FROM tab1 AS cor0
----
1666
645
836

query I rowsort
SELECT DISTINCT col1 + + 0 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT ALL ( col0 ) * - col0 + + ( col1 ) + col2 AS col2 FROM tab2
----
-5999
-6186
9

query I rowsort
SELECT ALL - 97 * - col2 + col2 + + ( + col0 ) AS col0 FROM tab1
----
5295
5650
9488

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8037
SELECT + - 85 * - col0 * CAST( col0 * col2 AS SIGNED ) + col1 * + col2 * col0 FROM tab0 cor0
----
107520
1683792
55873488

skipif mysql # not compatible
query I rowsort label-8037
SELECT + - 85 * - col0 * CAST ( col0 * col2 AS INTEGER ) + col1 * + col2 * col0 FROM tab0 cor0
----
107520
1683792
55873488

query I rowsort
SELECT ALL + col1 + + col0 * ( ( col0 ) ) * - 26 FROM tab2 AS cor0
----
-1243
-158125
-162249

onlyif mysql # use DIV operator for integer division
query I rowsort label-8039
SELECT DISTINCT + col1 + col0 DIV - 61 col0 FROM tab2 AS cor0
----
16
31
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8039
SELECT DISTINCT + col1 + col0 / - 61 col0 FROM tab2 AS cor0
----
16
31
58

query I rowsort
SELECT DISTINCT - col1 + - col2 * col2 FROM tab1 AS cor0
----
-2942
-3259
-9229

query I rowsort
SELECT - col1 * col1 + cor0.col2 + cor0.col2 FROM tab1 AS cor0
----
-568
14
23

query I rowsort
SELECT + - cor0.col2 * col2 + ( - 64 + col1 ) AS col0 FROM tab2 AS cor0
----
-1491
-681
-762

query I rowsort
SELECT ALL - 75 * - col2 FROM tab0 cor0
----
2475
6150
75

onlyif mysql # use DIV operator for integer division
query I rowsort label-8044
SELECT + - col1 + col2 DIV col0 - - col2 FROM tab2 AS cor0
----
-1
-33
21

skipif mysql # not compatible
query I rowsort label-8044
SELECT + - col1 + col2 / col0 - - col2 FROM tab2 AS cor0
----
-1
-33
21

query I rowsort
SELECT DISTINCT + - 12 + col2 FROM tab2 AS cor0
----
14
15
26

query I rowsort
SELECT col2 * col1 + 73 - + col1 AS col1 FROM tab1 cor0
----
1308
1451
633

query I rowsort
SELECT ALL 66 FROM tab0, tab0 cor0
----
9 values hashing to 29794915b585eea848ad670075452c88

onlyif mysql # use DIV operator for integer division
query I rowsort label-8048
SELECT - col2 DIV - col0 col2 FROM tab1 AS cor0
----
0
1
18

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8048
SELECT - col2 / - col0 col2 FROM tab1 AS cor0
----
0
1
18

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8049
SELECT CAST( col0 AS SIGNED ) + col1 * - cor0.col0 FROM tab0 AS cor0
----
-2040
-3360
-8010

skipif mysql # not compatible
query I rowsort label-8049
SELECT CAST ( col0 AS INTEGER ) + col1 * - cor0.col0 FROM tab0 AS cor0
----
-2040
-3360
-8010

query I rowsort
SELECT DISTINCT - col0 * 47 FROM tab2
----
-329
-3666
-3713

onlyif mysql # use DIV operator for integer division
query I rowsort label-8051
SELECT 16 DIV col1 AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8051
SELECT 16 / col1 AS col0 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT + 4 * col1 - col0 * ( - col2 * col1 ) AS col1 FROM tab1
----
36520
4316
99892

query I rowsort
SELECT DISTINCT + col1 * + 64 FROM tab2
----
1088
1984
3776

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8054
SELECT ALL CAST( - 99 AS SIGNED ) * col2 AS col0 FROM tab2
----
-2574
-2673
-3762

skipif mysql # not compatible
query I rowsort label-8054
SELECT ALL CAST ( - 99 AS INTEGER ) * col2 AS col0 FROM tab2
----
-2574
-2673
-3762

query I rowsort
SELECT DISTINCT - 79 * + col1 - col2 FROM tab1
----
-1123
-2108
-847

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 - + col1 * col0 col0 FROM tab2
----
-1381
-244
-4628

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8057
SELECT - CAST( NULL AS SIGNED ) * - col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8057
SELECT - CAST ( NULL AS INTEGER ) * - col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ( - 88 ) * col2 AS col0 FROM tab1 AS cor0
----
-4752
-5016
-8448

query I rowsort
SELECT DISTINCT - - 61 * - col1 * + 50 FROM tab0 AS cor0
----
-262300
-277550
-295850

query I rowsort
SELECT - col1 * 3 AS col2 FROM tab0 cor0
----
-258
-273
-291

query I rowsort
SELECT DISTINCT col1 + - 94 * + col2 FROM tab2 AS cor0
----
-2385
-2507
-3555

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * col1 + + 73 col0 FROM tab2
----
1034
3554
362

query I rowsort
SELECT - + col1 * 50 + col2 * col2 FROM tab2 AS cor0
----
-2274
-821
594

query I rowsort
SELECT DISTINCT col1 + + ( - col2 + col2 ) FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT + cor1.col1 AS col0 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

query I rowsort
SELECT - cor0.col1 + + ( 81 ) FROM tab2 AS cor0
----
22
50
64

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8067
SELECT ALL + col1 * CAST( NULL AS DECIMAL ) / + col1 + col1 + 67 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8067
SELECT ALL + col1 * CAST ( NULL AS REAL ) / + col1 + col1 + 67 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - cor0.col1 + col0 * + 25 AS col0 FROM tab0 AS cor0
----
2134
514
778

query I rowsort
SELECT DISTINCT - + ( cor0.col0 ) * col1 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT 6 + ( - col2 ) AS col0 FROM tab1 AS cor0
----
-48
-51
-90

query I rowsort
SELECT DISTINCT + 7 * - col2 + col0 * - 6 FROM tab2 AS cor0
----
-231
-650
-740

query I rowsort
SELECT + col2 + - ( - col2 ) AS col0 FROM tab0 AS cor0
----
164
2
66

skipif mysql # not compatible
query I rowsort
SELECT ALL CAST ( cor0.col2 AS REAL ) * col2 - + cor0.col1 * cor0.col2 AS col0 FROM tab2 AS cor0
----
-108
-858
798

query I rowsort
SELECT ALL ( col1 ) + + col0 FROM tab2 AS cor0
----
137
38
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-8075
SELECT DISTINCT - - 19 DIV + cor0.col1 FROM tab2 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-8075
SELECT DISTINCT - - 19 / + cor0.col1 FROM tab2 AS cor0
----
0
1

query I rowsort
SELECT DISTINCT - ( + col0 ) + col2 * col1 AS col2 FROM tab0 AS cor0
----
2814
62
7373

query I rowsort
SELECT DISTINCT - + 65 + cor0.col0 FROM tab0 AS cor0
----
-30
-41
24

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8078
SELECT ALL + - CAST( NULL AS SIGNED ) - + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8078
SELECT ALL + - CAST ( NULL AS INTEGER ) - + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8079
SELECT DISTINCT - + CAST( NULL AS SIGNED ) AS col2 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8079
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 cor0
----
NULL

query I rowsort
SELECT + col1 + 49 AS col2 FROM tab2 AS cor0
----
108
66
80

query I rowsort
SELECT - - col2 * - 36 FROM tab2 AS cor0
----
-1368
-936
-972

query I rowsort
SELECT - tab1.col0 * 93 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 3b9dcfa4ca86161b274972d2a1fc02f7

query I rowsort
SELECT + ( 77 ) * - col0 AS col0 FROM tab0 AS cor0
----
-1848
-2695
-6853

query I rowsort
SELECT - + ( - col2 ) + - col1 * + col0 FROM tab2 cor0
----
-1305
-190
-4576

onlyif mysql # use DIV operator for integer division
query I rowsort label-8085
SELECT + 44 DIV col1 - col2 FROM tab1 AS cor0
----
-53
-53
-93

skipif mysql # not compatible
query I rowsort label-8085
SELECT + 44 / col1 - col2 FROM tab1 AS cor0
----
-53
-53
-93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 + col0 + + ( - col0 ) col2 FROM tab1 AS cor0
----
10
13
26

onlyif mysql # use DIV operator for integer division
query I rowsort label-8087
SELECT - col1 + - col0 DIV - col0 + cor0.col0 * col1 FROM tab2 cor0
----
1327
187
4544

skipif mysql # not compatible
query I rowsort label-8087
SELECT - col1 + - col0 / - col0 + cor0.col0 * col1 FROM tab2 cor0
----
1327
187
4544

query I rowsort
SELECT col0 * col2 + + col1 AS col1 FROM tab2 cor0
----
2087
220
3019

query I rowsort
SELECT col2 - col0 * - ( 6 ) FROM tab1 AS cor0
----
441
576
72

query I rowsort
SELECT DISTINCT + ( col2 ) + + col0 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT ALL + col1 - + col2 AS col2 FROM tab2 AS cor0
----
-21
33
4

query I rowsort
SELECT - ( - col1 ) + - ( col2 ) AS col0 FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT + - col0 + - col1 + - col0 * col1 FROM tab2 AS cor0
----
-1439
-255
-4739

query I rowsort
SELECT - col1 - col1 * cor0.col0 FROM tab2 AS cor0
----
-1360
-248
-4661

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 - + cor0.col2 col2 FROM tab1 cor0
----
-28
-47
-83

query I rowsort
SELECT ALL + - col1 * 57 + 86 * col1 + ( col2 + - col2 ) AS col2 FROM tab2 AS cor0
----
1711
493
899

query I rowsort
SELECT DISTINCT col0 + + col1 - - col1 AS col1 FROM tab2 AS cor0
----
113
196
69

query I rowsort
SELECT ALL + tab0.col1 * + col2 + col1 * col2 + + 86 FROM tab0
----
15010
280
5762

query I rowsort
SELECT DISTINCT 13 * col1 + col0 AS col2 FROM tab2
----
300
410
845

query I rowsort
SELECT + 89 + - cor0.col0 FROM tab1 AS cor0
----
25
86
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-8101
SELECT - - col1 * col0 DIV + col1 AS col0 FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-8101
SELECT - - col1 * col0 / + col1 AS col0 FROM tab1 AS cor0
----
3
64
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab2.col2 * 71 col1 FROM tab2
----
1846
1917
2698

query I rowsort
SELECT ALL tab1.col0 * tab1.col0 + tab1.col1 * col0 FROM tab1
----
4736
7440
87

query I rowsort
SELECT DISTINCT + col1 + + col1 * - col0 AS col2 FROM tab2
----
-1326
-186
-4543

query I rowsort
SELECT - 30 * - 53 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to eaa58a6786b0d421c690bb69e36ad21f

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8106
SELECT DISTINCT + + col0 * - col1 * + CAST( - col0 * cor0.col0 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
10633
27998568
8381663

skipif mysql # not compatible
query I rowsort label-8106
SELECT DISTINCT + + col0 * - col1 * + CAST ( - col0 * cor0.col0 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
10633
27998568
8381663

query I rowsort
SELECT - col0 * + col2 + col1 FROM tab0 cor0
----
-706
-7207
62

query I rowsort
SELECT - cor0.col0 + - col1 * ( + col0 ) AS col1 FROM tab1 AS cor0
----
-1120
-704
-81

query I rowsort
SELECT DISTINCT + col0 * col1 + ( - col1 + col1 * col1 ) AS col0 FROM tab0 AS cor0
----
12707
16289
9374

query I rowsort
SELECT - + cor0.col0 + col0 * + col2 FROM tab1 AS cor0
----
159
3584
7600

query I rowsort
SELECT ALL 93 * - col0 FROM tab0 AS cor0
----
-2232
-3255
-8277

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor1.col2 col0 FROM tab0 AS cor0 CROSS JOIN tab0, tab0 AS cor1
----
1
33
82

query I rowsort
SELECT DISTINCT col0 + col0 * - col0 FROM tab1
----
-4032
-6
-6320

onlyif mysql # use DIV operator for integer division
query I rowsort label-8114
SELECT + col1 + + col2 + col2 DIV - col1 AS col0 FROM tab2
----
53
58
85

skipif mysql # not compatible
query I rowsort label-8114
SELECT + col1 + + col2 + col2 / - col1 AS col0 FROM tab2
----
53
58
85

query I rowsort
SELECT DISTINCT - 16 FROM tab2 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab1, tab2 AS cor2, tab0
----
-16

query I rowsort
SELECT DISTINCT - col1 + + 88 FROM tab2 AS cor0
----
29
57
71

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8117
SELECT DISTINCT - col2 * CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8117
SELECT DISTINCT - col2 * CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-8118
SELECT cor0.col1 * ( col0 ) DIV - col1 - + col1 * + col0 AS col0 FROM tab0 AS cor0
----
-2088
-3430
-8188

skipif mysql # not compatible
query I rowsort label-8118
SELECT cor0.col1 * ( col0 ) / - col1 - + col1 * + col0 AS col0 FROM tab0 AS cor0
----
-2088
-3430
-8188

query I rowsort
SELECT + cor0.col0 - col1 * - 21 FROM tab2 AS cor0
----
1317
436
658

query I rowsort
SELECT ALL col0 * col1 + ( col1 ) * 88 + - col0 AS col0 FROM tab0 AS cor0
----
11896
16018
9608

onlyif mysql # use DIV operator for integer division
query I rowsort label-8121
SELECT DISTINCT col0 DIV + col0 + + col1 * col1 + cor0.col1 AS col0 FROM tab1 AS cor0
----
111
183
703

skipif mysql # not compatible
query I rowsort label-8121
SELECT DISTINCT col0 / + col0 + + col1 * col1 + cor0.col1 AS col0 FROM tab1 AS cor0
----
111
183
703

onlyif mysql # use DIV operator for integer division
query I rowsort label-8122
SELECT ALL col1 + col2 DIV tab1.col2 FROM tab1
----
11
14
27

skipif mysql # not compatible
query I rowsort label-8122
SELECT ALL col1 + col2 / tab1.col2 FROM tab1
----
11
14
27

query I rowsort
SELECT DISTINCT - cor0.col2 - + 89 AS col2 FROM tab0 AS cor0
----
-122
-171
-90

query I rowsort
SELECT ALL - + col2 * ( col0 ) FROM tab2 cor0
----
-189
-2028
-3002

query I rowsort
SELECT ALL + + col1 * + col0 + col1 + col1 AS col1 FROM tab2 AS cor0
----
1377
279
4720

query I rowsort
SELECT + col1 * 46 + + cor0.col0 FROM tab0 cor0
----
3980
4275
4497

query I rowsort
SELECT DISTINCT - + 43 * col1 FROM tab0 AS cor0
----
-3698
-3913
-4171

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8128
SELECT ALL + CAST( + 28 AS SIGNED ) FROM tab0 AS cor0
----
28
28
28

skipif mysql # not compatible
query I rowsort label-8128
SELECT ALL + CAST ( + 28 AS INTEGER ) FROM tab0 AS cor0
----
28
28
28

query I rowsort
SELECT + col0 * 19 AS col1 FROM tab2 cor0
----
133
1482
1501

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8130
SELECT ALL - CAST( NULL AS SIGNED ) * col0 + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8130
SELECT ALL - CAST ( NULL AS INTEGER ) * col0 + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT cor0.col0 + + col2 AS col2 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT - 50 * + col2 + col1 AS col2 FROM tab0 AS cor0
----
-1564
-4009
47

query I rowsort
SELECT ALL 40 + 40 FROM tab1 AS cor0
----
80
80
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-8134
SELECT ALL 97 DIV + cor0.col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 479fa835031c34d2797c1a275bb0a502

skipif mysql # not compatible
query I rowsort label-8134
SELECT ALL 97 / + cor0.col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 479fa835031c34d2797c1a275bb0a502

query I rowsort
SELECT DISTINCT + + ( col2 ) * col2 + 87 FROM tab2 AS cor0
----
1531
763
816

query I rowsort
SELECT + cor0.col2 * 69 * + cor0.col1 AS col2 FROM tab2 cor0
----
105846
44574
57753

query I rowsort
SELECT DISTINCT + + ( + col0 ) * cor0.col2 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT - 98 * col1 + + col0 AS col0 FROM tab2 AS cor0
----
-1587
-3031
-5704

query I rowsort
SELECT 19 FROM tab2, tab2 cor0, tab1 cor1
----
27 values hashing to 86c53e8567a17c8d91fc5aff119e0498

query I rowsort
SELECT + col1 * col1 + + ( + 5 ) FROM tab0 AS cor0
----
7401
8286
9414

query I rowsort
SELECT 17 * + 49 FROM tab1, tab1 AS cor0 CROSS JOIN tab2, tab0, tab2 AS cor1
----
243 values hashing to ff1896ecaf4b21317619ffe0ffa67ccc

query I rowsort
SELECT - + cor0.col2 * - col2 * col0 FROM tab0 AS cor0
----
26136
35
598436

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - 4 * - 12 col2 FROM tab1 AS cor0
----
2592
2736
4608

query I rowsort
SELECT DISTINCT - col2 + 91 * col0 AS col1 FROM tab1 AS cor0
----
219
5767
7184

onlyif mysql # use DIV operator for integer division
query I rowsort label-8145
SELECT - col0 DIV 22 FROM tab2 AS cor0
----
-3
-3
0

skipif mysql # not compatible
query I rowsort label-8145
SELECT - col0 / 22 FROM tab2 AS cor0
----
-3
-3
0

query I rowsort
SELECT - + cor0.col2 + - cor0.col1 AS col1 FROM tab1 AS cor0
----
-109
-67
-80

query I rowsort
SELECT 27 AS col1 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 1a3cef5c33b8f87ffeded378fd207753

query I rowsort
SELECT col2 - cor0.col1 * + col1 FROM tab1 AS cor0
----
-43
-622
-73

query I rowsort
SELECT + + 76 - - col1 AS col1 FROM tab0 AS cor0
----
162
167
173

query I rowsort
SELECT ALL - col0 * - ( 73 * col2 ) + - col2 AS col2 FROM tab1
----
11772
266247
560544

query I rowsort
SELECT + col2 * - 11 + - tab2.col2 AS col0 FROM tab2
----
-312
-324
-456

query I rowsort
SELECT - col2 * col1 + - col0 * - col1 * ( - col1 ) + col1 AS col0 FROM tab1
----
-14755
-3406
-6960

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab0.col2 * ( - col1 ) col0 FROM tab0
----
-2838
-7462
-97

query I rowsort
SELECT + cor0.col0 * + cor0.col2 AS col0 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT - + col0 * col0 + col2 AS col0 FROM tab0 cor0
----
-1224
-543
-7839

query I rowsort
SELECT 90 + col2 * col0 FROM tab1 AS cor0
----
252
3738
7770

query I rowsort
SELECT + 28 * + col2 + + col1 AS col2 FROM tab0 AS cor0
----
1010
125
2387

query I rowsort
SELECT ALL - cor0.col0 * ( + cor0.col1 ) FROM tab2, tab0 cor0
----
9 values hashing to 75a608bf2ba236d24f146ac4aff9ec52

query I rowsort
SELECT - col1 + + 56 FROM tab1 AS cor0
----
30
43
46

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8160
SELECT DISTINCT + - col1 + + CAST( NULL AS SIGNED ) + col0 * col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8160
SELECT DISTINCT + - col1 + + CAST ( NULL AS INTEGER ) + col0 * col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL + col0 - 44 AS col2 FROM tab0 AS cor0
----
-20
-9
45

query I rowsort
SELECT ALL col0 * + ( ( - col0 ) ) AS col2 FROM tab2 AS cor0
----
-49
-6084
-6241

query I rowsort
SELECT ALL col0 + - col1 * - col2 FROM tab1 AS cor0
----
1328
1407
634

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 * - col0 col2 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT DISTINCT + col2 * - col0 + col2 AS col2 FROM tab1 cor0
----
-108
-3591
-7584

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + col1 col2 FROM tab0 cor0
----
53
9
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8167
SELECT col1 + col1 * + CAST( - col1 AS SIGNED ) AS col2 FROM tab0
----
-7310
-8190
-9312

skipif mysql # not compatible
query I rowsort label-8167
SELECT col1 + col1 * + CAST ( - col1 AS INTEGER ) AS col2 FROM tab0
----
-7310
-8190
-9312

query I rowsort
SELECT 46 + cor0.col2 FROM tab0 cor0
----
128
47
79

query I rowsort
SELECT col1 * 9 AS col1 FROM tab0
----
774
819
873

query I rowsort
SELECT DISTINCT col0 * - 86 FROM tab2
----
-602
-6708
-6794

query I rowsort
SELECT col2 * ( + 33 * + col2 ) AS col0 FROM tab0
----
221892
33
35937

query I rowsort
SELECT DISTINCT - 82 AS col1 FROM tab2
----
-82

query I rowsort
SELECT - - col2 + ( - col0 ) AS col0 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT - - 36 * cor0.col2 FROM tab0 cor0
----
1188
2952
36

query I rowsort
SELECT + ( + 94 * col0 ) - - ( - col2 ) * col2 FROM tab2
----
-71
5982
6656

query I rowsort
SELECT ( + 91 ) + + col0 * col1 * cor0.col2 AS col0 FROM tab0 AS cor0
----
3486
664209
68203

query I rowsort
SELECT ALL 43 * + 20 * - tab1.col2 + + col1 FROM tab1
----
-46414
-49010
-82547

query I rowsort
SELECT + 59 * + col2 AS col0 FROM tab0
----
1947
4838
59

query I rowsort
SELECT ALL + col1 + col1 * - tab2.col1 FROM tab2
----
-272
-3422
-930

query I rowsort
SELECT - ( tab2.col0 ) * col0 FROM tab2
----
-49
-6084
-6241

onlyif mysql # use DIV operator for integer division
query I rowsort label-8181
SELECT col1 - + col2 DIV - col0 FROM tab0
----
87
91
97

skipif mysql # not compatible
query I rowsort label-8181
SELECT col1 - + col2 / - col0 FROM tab0
----
87
91
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8182
SELECT + CAST( col0 AS SIGNED ) * col1 AS col1 FROM tab2
----
1343
217
4602

skipif mysql # not compatible
query I rowsort label-8182
SELECT + CAST ( col0 AS INTEGER ) * col1 AS col1 FROM tab2
----
1343
217
4602

query I rowsort
SELECT 55 * - col2 FROM tab0
----
-1815
-4510
-55

query I rowsort
SELECT - col0 * - 22 AS col0 FROM tab0
----
1958
528
770

query I rowsort
SELECT ALL - col1 * col2 + col1 + + col2 * col2 AS col1 FROM tab0
----
-1663
-647
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8186
SELECT ALL - CAST( col1 AS SIGNED ) + - col2 FROM tab1
----
-109
-67
-80

skipif mysql # not compatible
query I rowsort label-8186
SELECT ALL - CAST ( col1 AS INTEGER ) + - col2 FROM tab1
----
-109
-67
-80

query I rowsort
SELECT - + 55 + - col2 FROM tab0 AS cor0
----
-137
-56
-88

query I rowsort
SELECT ALL + + col0 * col1 + + cor0.col0 FROM tab1 AS cor0
----
1120
704
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-8189
SELECT 21 DIV col1 + - col0 AS col0 FROM tab0 AS cor0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-8189
SELECT 21 / col1 + - col0 AS col0 FROM tab0 AS cor0
----
-24
-35
-89

onlyif mysql # use DIV operator for integer division
query I rowsort label-8190
SELECT - - col1 * col2 DIV col1 AS col0 FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-8190
SELECT - - col1 * col2 / col1 AS col0 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT DISTINCT - 73 * col1 FROM tab0 AS cor0
----
-6278
-6643
-7081

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col1 + - col0 col2 FROM tab0 AS cor0
----
2814
62
7373

onlyif mysql # use DIV operator for integer division
query I rowsort label-8193
SELECT ALL col1 + col2 DIV col2 AS col0 FROM tab1 AS cor0
----
11
14
27

skipif mysql # not compatible
query I rowsort label-8193
SELECT ALL col1 + col2 / col2 AS col0 FROM tab1 AS cor0
----
11
14
27

query I rowsort
SELECT DISTINCT + - 45 * col2 FROM tab2 AS cor0
----
-1170
-1215
-1710

query I rowsort
SELECT 45 * col2 FROM tab2 AS cor0
----
1170
1215
1710

query I rowsort
SELECT DISTINCT + 27 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
27

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8197
SELECT + cor0.col0 + - CAST( cor0.col0 AS SIGNED ) * col1 * - col0 AS col1 FROM tab1 AS cor0
----
237
41024
83280

skipif mysql # not compatible
query I rowsort label-8197
SELECT + cor0.col0 + - CAST ( cor0.col0 AS INTEGER ) * col1 * - col0 AS col1 FROM tab1 AS cor0
----
237
41024
83280

skipif mysql # not compatible
query I rowsort
SELECT col2 * + CAST ( + col0 AS REAL ) FROM tab2 AS cor0
----
189
2028
3002

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8199
SELECT ALL + col2 * - CAST( NULL AS SIGNED ) * - 19 + + cor0.col2 * col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8199
SELECT ALL + col2 * - CAST ( NULL AS INTEGER ) * - 19 + + cor0.col2 * col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-8200
SELECT DISTINCT col0 * - 92 - 16 DIV - cor0.col2 FROM tab1 cor0
----
-276
-5888
-7360

skipif mysql # not compatible
query I rowsort label-8200
SELECT DISTINCT col0 * - 92 - 16 / - cor0.col2 FROM tab1 cor0
----
-276
-5888
-7360

query I rowsort
SELECT DISTINCT + 74 * col1 AS col1 FROM tab2 AS cor0
----
1258
2294
4366

query I rowsort
SELECT + - ( ( + cor0.col1 ) ) AS col1 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT DISTINCT col0 + - col2 * col1 FROM tab1 cor0
----
-1168
-1401
-506

query I rowsort
SELECT ALL + cor0.col2 + 99 FROM tab2 AS cor0
----
125
126
137

query I rowsort
SELECT - 55 * col1 * + col1 - cor0.col1 AS col2 FROM tab2 AS cor0
----
-15912
-191514
-52886

query I rowsort
SELECT ( - col1 ) * + col1 + - cor0.col1 AS col0 FROM tab2 AS cor0
----
-306
-3540
-992

query I rowsort
SELECT DISTINCT 81 + cor0.col2 AS col2 FROM tab1 AS cor0
----
135
138
177

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor1.col0 col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 3000337dd3f11e9cfd5a312b01ef3f8b

query I rowsort
SELECT + 47 * ( col2 ) FROM tab2 AS cor0
----
1222
1269
1786

query I rowsort
SELECT ALL 6 FROM tab1 cor0
----
6
6
6

query I rowsort
SELECT - col1 - ( + 15 ) * cor0.col0 AS col2 FROM tab1 AS cor0
----
-1213
-71
-970

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8212
SELECT - col1 + cor0.col0 * col2 + col0 * + CAST( NULL AS SIGNED ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8212
SELECT - col1 + cor0.col0 * col2 + col0 * + CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col1 * - 81 FROM tab1 AS cor0
----
1053
2106
810

query I rowsort
SELECT col1 * + col1 * 43 + col2 + col2 * col1 FROM tab1 AS cor0
----
30526
4927
8611

query I rowsort
SELECT ALL - col2 * - ( col0 * + col0 ) FROM tab1 AS cor0
----
233472
486
614400

query I rowsort
SELECT col1 * 80 FROM tab0 cor0
----
6880
7280
7760

query I rowsort
SELECT DISTINCT + col1 + + col0 * col0 FROM tab1 AS cor0
----
35
4106
6413

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8218
SELECT ( col2 ) + CAST( NULL AS SIGNED ) * col0 + col0 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8218
SELECT ( col2 ) + CAST ( NULL AS INTEGER ) * col0 + col0 AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL ( col2 ) + col0 FROM tab1
----
121
176
57

query I rowsort
SELECT col1 + tab2.col1 + - tab2.col2 AS col2 FROM tab2
----
-4
35
92

onlyif mysql # use DIV operator for integer division
query I rowsort label-8221
SELECT - - col2 + 51 + + col2 DIV - col0 FROM tab0 AS cor0
----
133
52
83

skipif mysql # not compatible
query I rowsort label-8221
SELECT - - col2 + 51 + + col2 / - col0 FROM tab0 AS cor0
----
133
52
83

query I rowsort
SELECT DISTINCT - col0 * + col2 - col1 AS col2 FROM tab0
----
-132
-7389
-878

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8223
SELECT DISTINCT tab2.col1 - - tab2.col1 * CAST( - col0 AS SIGNED ) * col0 FROM tab2
----
-106080
-1488
-358897

skipif mysql # not compatible
query I rowsort label-8223
SELECT DISTINCT tab2.col1 - - tab2.col1 * CAST ( - col0 AS INTEGER ) * col0 FROM tab2
----
-106080
-1488
-358897

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + ( col1 ) col1 FROM tab1
----
109
67
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-8225
SELECT DISTINCT - col0 DIV + col1 + - col1 FROM tab2
----
-21
-31
-60

skipif mysql # not compatible
query I rowsort label-8225
SELECT DISTINCT - col0 / + col1 + - col1 FROM tab2
----
-21
-31
-60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor1.col2 col2 FROM tab2, tab0 cor0, tab1 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT ALL col0 + + col0 + + 34 AS col1 FROM tab1
----
162
194
40

query I rowsort
SELECT + 50 - col2 * - 54 * cor0.col0 AS col1 FROM tab1 AS cor0
----
197042
414770
8798

query I rowsort
SELECT DISTINCT - 10 + - col0 * - 68 AS col1 FROM tab0 cor0
----
1622
2370
6042

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8230
SELECT col1 * + cor0.col1 - CAST( cor0.col2 AS SIGNED ) * + cor0.col2 AS col0 FROM tab0 AS cor0
----
1557
6307
9408

skipif mysql # not compatible
query I rowsort label-8230
SELECT col1 * + cor0.col1 - CAST ( cor0.col2 AS INTEGER ) * + cor0.col2 AS col0 FROM tab0 AS cor0
----
1557
6307
9408

query I rowsort
SELECT ALL - ( + col1 ) * cor0.col1 FROM tab2 cor0
----
-289
-3481
-961

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 81 + col2 * 26 col0 FROM tab2 AS cor0
----
595
621
907

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 60 + col0 col1 FROM tab0 AS cor0
----
-25
-36
29

query I rowsort
SELECT DISTINCT ( - cor0.col1 ) + ( col0 * cor0.col0 + + cor0.col0 ) FROM tab0 AS cor0
----
1163
514
7919

query I rowsort
SELECT + + col2 * - col2 + - ( 99 ) AS col1 FROM tab2 AS cor0
----
-1543
-775
-828

query I rowsort
SELECT ALL 69 * col0 FROM tab2 cor0
----
483
5382
5451

query I rowsort
SELECT + col0 * - 0 - + ( col0 * - col1 ) AS col2 FROM tab1 AS cor0
----
1040
640
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-8238
SELECT DISTINCT 79 DIV + 37 FROM tab2, tab2 cor0
----
2

skipif mysql # not compatible
query I rowsort label-8238
SELECT DISTINCT 79 / + 37 FROM tab2, tab2 cor0
----
2

query I rowsort
SELECT + + col2 * + col0 + + 63 FROM tab1 AS cor0
----
225
3711
7743

query I rowsort
SELECT ALL + + ( - cor0.col2 ) AS col1 FROM tab1 cor0
----
-54
-57
-96

query I rowsort
SELECT 77 + + col1 FROM tab1 AS cor0
----
103
87
90

query I rowsort
SELECT ALL + - cor0.col1 + + 29 * col0 FROM tab2 AS cor0
----
172
2203
2274

query I rowsort
SELECT + 21 + col0 AS col0 FROM tab2 AS cor0
----
100
28
99

query I rowsort
SELECT DISTINCT col1 * 29 FROM tab1
----
290
377
754

query I rowsort
SELECT DISTINCT - 32 AS col1 FROM tab2
----
-32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 82 col0 FROM tab1 AS cor0
----
82
82
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-8247
SELECT 50 + tab0.col1 DIV col1 AS col0 FROM tab0
----
51
51
51

skipif mysql # not compatible
query I rowsort label-8247
SELECT 50 + tab0.col1 / col1 AS col0 FROM tab0
----
51
51
51

query I rowsort
SELECT col2 * col2 + tab0.col1 AS col2 FROM tab0
----
1175
6815
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 25 col1 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 2c77240b60ac01c717a5ed5d0165f450

query I rowsort
SELECT ALL - 71 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to e72f95c346714d3065a96d67a6fd5062

query I rowsort
SELECT ALL ( - 42 ) AS col2 FROM tab0
----
-42
-42
-42

onlyif mysql # use DIV operator for integer division
query I rowsort label-8252
SELECT - - col2 + - col2 * col1 DIV col2 FROM tab0 cor0
----
-53
-9
-96

skipif mysql # not compatible
query I rowsort label-8252
SELECT - - col2 + - col2 * col1 / col2 FROM tab0 cor0
----
-53
-9
-96

query I rowsort
SELECT + + 67 AS col0 FROM tab0 AS cor0
----
67
67
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - col0 + col1 col0 FROM tab0 AS cor0
----
2150
3492
8190

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8255
SELECT DISTINCT + + 90 * cor0.col1 + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8255
SELECT DISTINCT + + 90 * cor0.col1 + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-8256
SELECT ALL + col2 * cor0.col1 + - col1 DIV - col0 FROM tab0 cor0
----
2841
7463
99

skipif mysql # not compatible
query I rowsort label-8256
SELECT ALL + col2 * cor0.col1 + - col1 / - col0 FROM tab0 cor0
----
2841
7463
99

query I rowsort
SELECT col1 + - col1 + + 5 AS col2 FROM tab2 AS cor0
----
5
5
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col0 * 68 col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 28fcdf35d3ccbfa5d8b94ab94827a753

onlyif mysql # use DIV operator for integer division
query I rowsort label-8259
SELECT ALL 6 DIV + col2 AS col0 FROM tab0
----
0
0
6

skipif mysql # not compatible
query I rowsort label-8259
SELECT ALL 6 / + col2 AS col0 FROM tab0
----
0
0
6

query I rowsort
SELECT ALL 13 + col2 * + col0 + col1 * - cor0.col1 AS col1 FROM tab1 AS cor0
----
-501
3561
7524

query I rowsort
SELECT DISTINCT + 75 - col1 * col1 FROM tab2 AS cor0
----
-214
-3406
-886

query I rowsort
SELECT ALL + cor0.col0 + - col0 * col1 FROM tab0 cor0
----
-2040
-3360
-8010

query I rowsort
SELECT DISTINCT col2 - - 11 FROM tab2
----
37
38
49

query I rowsort
SELECT col0 + - ( col2 ) * tab0.col0 * + col1 - - col0 FROM tab0
----
-3325
-663940
-68064

query I rowsort
SELECT col0 * 9 + col2 AS col1 FROM tab0
----
249
316
883

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8266
SELECT DISTINCT col1 - CAST( 62 * - col2 AS SIGNED ) AS col2 FROM tab1
----
3374
3544
5965

skipif mysql # not compatible
query I rowsort label-8266
SELECT DISTINCT col1 - CAST ( 62 * - col2 AS INTEGER ) AS col2 FROM tab1
----
3374
3544
5965

query I rowsort
SELECT ALL + col0 * 22 + - col1 * - col2 AS col1 FROM tab2 AS cor0
----
2384
3250
991

query I rowsort
SELECT + col2 * - col1 + + 44 AS col1 FROM tab0 AS cor0
----
-2794
-53
-7418

query I rowsort
SELECT - ( 25 ) * + col0 + col1 FROM tab0 AS cor0
----
-2134
-514
-778

query I rowsort
SELECT + + 81 + - col2 FROM tab0 AS cor0
----
-1
48
80

query I rowsort
SELECT DISTINCT - 24 * 44 + - col0 FROM tab0 cor0
----
-1080
-1091
-1145

query I rowsort
SELECT ALL - + cor0.col0 * - col1 AS col2 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT DISTINCT - col0 * cor0.col1 * + col0 FROM tab2 AS cor0
----
-106097
-1519
-358956

query I rowsort
SELECT - + cor0.col2 + - col0 AS col2 FROM tab2 AS cor0
----
-104
-117
-34

query I rowsort
SELECT - - col0 * + col2 + - col2 + - 98 AS col1 FROM tab1 AS cor0
----
10
3493
7486

query I rowsort
SELECT - 22 - + col1 FROM tab1 AS cor0
----
-32
-35
-48

query I rowsort
SELECT DISTINCT + 88 AS col0 FROM tab1, tab1 cor0
----
88

query I rowsort
SELECT ALL 99 * col0 AS col1 FROM tab1 AS cor0
----
297
6336
7920

query I rowsort
SELECT 39 * + col1 AS col2 FROM tab2 AS cor0
----
1209
2301
663

onlyif mysql # use DIV operator for integer division
query I rowsort label-8280
SELECT - 74 DIV + col1 AS col2 FROM tab1 AS cor0
----
-2
-5
-7

skipif mysql # not compatible
query I rowsort label-8280
SELECT - 74 / + col1 AS col2 FROM tab1 AS cor0
----
-2
-5
-7

query I rowsort
SELECT 86 FROM tab0, tab0 cor0
----
9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8282
SELECT ALL CAST( 32 AS SIGNED ) + - col2 AS col2 FROM tab1
----
-22
-25
-64

skipif mysql # not compatible
query I rowsort label-8282
SELECT ALL CAST ( 32 AS INTEGER ) + - col2 AS col2 FROM tab1
----
-22
-25
-64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 42 * + 40 + col1 col2 FROM tab2
----
1697
1711
1739

query I rowsort
SELECT col2 * + tab2.col1 + + col0 FROM tab2
----
1612
725
844

query I rowsort
SELECT ALL cor0.col0 * col0 + + col1 + + col1 * + cor0.col1 AS col0 FROM tab0 cor0
----
10731
16293
8058

query I rowsort
SELECT + col2 - + 39 AS col2 FROM tab0
----
-38
-6
43

query I rowsort
SELECT DISTINCT 99 FROM tab2, tab0, tab1 AS cor0
----
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col1 ) * col0 + - col1 col2 FROM tab2
----
1326
186
4543

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8289
SELECT DISTINCT - - CAST( - col1 AS SIGNED ) * col2 AS col2 FROM tab0 AS cor0
----
-2838
-7462
-97

skipif mysql # not compatible
query I rowsort label-8289
SELECT DISTINCT - - CAST ( - col1 AS INTEGER ) * col2 AS col2 FROM tab0 AS cor0
----
-2838
-7462
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + cor0.col2 ) + cor0.col2 col0 FROM tab2 cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-8291
SELECT ALL ( - 8 ) + + col2 DIV + 99 AS col1 FROM tab2
----
-8
-8
-8

skipif mysql # not compatible
query I rowsort label-8291
SELECT ALL ( - 8 ) + + col2 / + 99 AS col1 FROM tab2
----
-8
-8
-8

query I rowsort
SELECT ALL cor0.col0 * + 56 AS col2 FROM tab0 AS cor0
----
1344
1960
4984

query I rowsort
SELECT - col1 * - 34 FROM tab2 AS cor0
----
1054
2006
578

query I rowsort
SELECT ( col0 ) + + col1 * + col1 AS col0 FROM tab1
----
164
249
679

onlyif mysql # use DIV operator for integer division
query I rowsort label-8295
SELECT DISTINCT ( + col1 ) DIV + 72 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8295
SELECT DISTINCT ( + col1 ) / + 72 FROM tab1
----
0

query I rowsort
SELECT - tab0.col1 AS col1 FROM tab0, tab2, tab1 cor0
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8297
SELECT ALL col0 * CAST( NULL AS SIGNED ) AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8297
SELECT ALL col0 * CAST ( NULL AS INTEGER ) AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - + cor0.col1 * - cor0.col2 + 74 FROM tab0 AS cor0
----
171
2912
7536

query I rowsort
SELECT DISTINCT - col0 * - 14 * - cor0.col2 AS col1 FROM tab2 AS cor0
----
-2646
-28392
-42028

query I rowsort
SELECT ALL - col1 + 71 * - cor0.col2 AS col1 FROM tab1 AS cor0
----
-3860
-4057
-6829

query I rowsort
SELECT DISTINCT - col0 * - col0 * ( col0 ) AS col0 FROM tab1 AS cor0
----
262144
27
512000

query I rowsort
SELECT ALL - col0 * 59 FROM tab1 AS cor0
----
-177
-3776
-4720

query I rowsort
SELECT - + ( col1 ) * - ( + col2 ) * - col0 FROM tab0 AS cor0
----
-3395
-664118
-68112

query I rowsort
SELECT ALL col0 * - col1 + col2 FROM tab2
----
-1305
-190
-4576

query I rowsort
SELECT DISTINCT col2 + col0 * + 29 FROM tab2 AS cor0
----
2288
230
2329

query I rowsort
SELECT DISTINCT + - col1 + - col0 AS col0 FROM tab0 AS cor0
----
-110
-132
-180

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + - col2 - - ( + col0 + cor0.col2 ) col0 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT DISTINCT - + col2 - - col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL + + col1 * - col1 AS col0 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT ALL + 51 * col0 AS col2 FROM tab2 AS cor0
----
357
3978
4029

query I rowsort
SELECT - col1 * + 55 + - col2 AS col0 FROM tab2 cor0
----
-1732
-3271
-973

query I rowsort
SELECT + col0 * - col0 - col0 FROM tab1 AS cor0
----
-12
-4160
-6480

query I rowsort
SELECT DISTINCT - - col0 * ( 49 * col1 ) + - col2 * + col0 FROM tab1 AS cor0
----
27712
3660
43280

query I rowsort
SELECT col2 + ( + col1 + - col2 ) FROM tab0 AS cor0
----
86
91
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * ( col2 ) col1 FROM tab2 AS cor0
----
-1444
-676
-729

query I rowsort
SELECT ALL - col0 + - col0 + + 51 AS col2 FROM tab0 cor0
----
-127
-19
3

query I rowsort
SELECT + col1 + + 44 AS col1 FROM tab2 cor0
----
103
61
75

query I rowsort
SELECT ( tab0.col2 * + ( + col2 ) ) + col1 FROM tab0
----
1175
6815
98

query I rowsort
SELECT ALL col2 + - tab0.col1 * tab0.col0 * col1 + - col1 AS col0 FROM tab0
----
-177557
-329411
-737018

onlyif mysql # use DIV operator for integer division
query I rowsort label-8320
SELECT DISTINCT + col2 DIV col2 + + col0 FROM tab1
----
4
65
81

skipif mysql # not compatible
query I rowsort label-8320
SELECT DISTINCT + col2 / col2 + + col0 FROM tab1
----
4
65
81

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8321
SELECT + CAST( NULL AS SIGNED ) FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-8321
SELECT + CAST ( NULL AS INTEGER ) FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT DISTINCT col2 + + tab0.col1 AS col2 FROM tab0
----
119
173
98

query I rowsort
SELECT col0 - + col1 * 34 FROM tab1 AS cor0
----
-276
-362
-881

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + col2 ) col1 FROM tab0 cor0
----
1
33
82

query I rowsort
SELECT col1 * col2 * - col0 FROM tab2 AS cor0
----
-119652
-51034
-5859

query I rowsort
SELECT DISTINCT + - ( 39 ) AS col0 FROM tab0 AS cor0
----
-39

query I rowsort
SELECT ALL - col0 + 38 FROM tab2 AS cor0
----
-40
-41
31

query I rowsort
SELECT DISTINCT - - 20 + col2 * col2 FROM tab2 AS cor0
----
1464
696
749

query I rowsort
SELECT 85 AS col1 FROM tab1 cor0
----
85
85
85

query I rowsort
SELECT DISTINCT + 98 + 86 AS col2 FROM tab1 AS cor0
----
184

onlyif mysql # use DIV operator for integer division
query I rowsort label-8331
SELECT ALL - - ( col2 ) * col1 - ( cor0.col1 ) DIV col1 FROM tab2 AS cor0
----
1533
645
836

skipif mysql # not compatible
query I rowsort label-8331
SELECT ALL - - ( col2 ) * col1 - ( cor0.col1 ) / col1 FROM tab2 AS cor0
----
1533
645
836

query I rowsort
SELECT DISTINCT ( - col0 ) * - col1 AS col0 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT DISTINCT + + col1 * - col0 + - col0 + + col2 * + 76 FROM tab1 AS cor0
----
3628
4023
6176

query I rowsort
SELECT ALL + col2 * + col2 - col1 AS col0 FROM tab0 AS cor0
----
-96
1003
6633

query I rowsort
SELECT + ( - ( cor0.col1 ) ) * col2 AS col0 FROM tab2 AS cor0
----
-1534
-646
-837

onlyif mysql # use DIV operator for integer division
query I rowsort label-8336
SELECT ALL - col2 DIV - col1 - col1 FROM tab2 AS cor0
----
-15
-31
-59

skipif mysql # not compatible
query I rowsort label-8336
SELECT ALL - col2 / - col1 - col1 FROM tab2 AS cor0
----
-15
-31
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 * col0 col2 FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT ALL col0 * - col1 + - ( col0 ) * ( + col0 ) FROM tab1
----
-4736
-7440
-87

query I rowsort
SELECT - - ( - col0 ) * + col0 AS col2 FROM tab1 cor0
----
-4096
-6400
-9

query I rowsort
SELECT ALL + 20 * col0 AS col1 FROM tab2 cor0
----
140
1560
1580

query I rowsort
SELECT ALL + cor0.col0 AS col0 FROM tab0, tab1 AS cor0, tab0 AS cor1, tab2 AS cor2
----
81 values hashing to e28bf7f922650ca423ade3642ce0285b

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8342
SELECT ALL CAST( NULL AS SIGNED ) * 36 AS col1 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-8342
SELECT ALL CAST ( NULL AS INTEGER ) * 36 AS col1 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT + + col0 * 8 FROM tab2 AS cor0
----
56
624
632

query I rowsort
SELECT + + col1 * cor0.col2 AS col0 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT + - col2 * col1 + 33 AS col1 FROM tab1 cor0
----
-1215
-1371
-537

query I rowsort
SELECT + 71 * col2 FROM tab2 cor0
----
1846
1917
2698

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8347
SELECT - - ( col1 ) + - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8347
SELECT - - ( col1 ) + - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 25 * col2 * col1 FROM tab2
----
16150
20925
38350

query I rowsort
SELECT col2 * + 83 FROM tab1
----
4482
4731
7968

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * 55 col2 FROM tab2 AS cor0
----
-385
-4290
-4345

onlyif mysql # use DIV operator for integer division
query I rowsort label-8351
SELECT col2 DIV ( col0 ) AS col0 FROM tab1 AS cor0
----
0
1
18

skipif mysql # not compatible
query I rowsort label-8351
SELECT col2 / ( col0 ) AS col0 FROM tab1 AS cor0
----
0
1
18

query I rowsort
SELECT ALL col0 + ( + 57 ) * col0 AS col0 FROM tab2 AS cor0
----
406
4524
4582

query I rowsort
SELECT + col2 + + col0 + - col0 * + col1 AS col0 FROM tab2 cor0
----
-1226
-183
-4498

query I rowsort
SELECT + col0 * col1 * col1 + + col1 FROM tab2 cor0
----
22848
271577
6758

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8355
SELECT ALL CAST( + ( col2 ) AS SIGNED ) FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-8355
SELECT ALL CAST ( + ( col2 ) AS INTEGER ) FROM tab0 AS cor0
----
1
33
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-8356
SELECT - col2 DIV + 6 AS col2 FROM tab0 AS cor0
----
-13
-5
0

skipif mysql # not compatible
query I rowsort label-8356
SELECT - col2 / + 6 AS col2 FROM tab0 AS cor0
----
-13
-5
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + cor0.col1 ) col0 FROM tab1, tab1 cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775

query I rowsort
SELECT - col0 + 70 * col0 AS col0 FROM tab2 AS cor0
----
483
5382
5451

onlyif mysql # use DIV operator for integer division
query I rowsort label-8359
SELECT + + col0 * + cor0.col1 + + col1 DIV col2 FROM tab1 AS cor0
----
1040
640
78

skipif mysql # not compatible
query I rowsort label-8359
SELECT + + col0 * + cor0.col1 + + col1 / col2 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT - col1 * - 89 + + col2 * col2 + 50 FROM tab1 AS cor0
----
10423
4189
5280

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * ( - col0 * col1 ) + col1 + 46 col0 FROM tab0 AS cor0
----
3538
664255
68244

query I rowsort
SELECT DISTINCT - 64 * col1 FROM tab0
----
-5504
-5824
-6208

query I rowsort
SELECT DISTINCT 0 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
0

query I rowsort
SELECT DISTINCT + tab0.col0 AS col0 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
24
35
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-8365
SELECT - cor0.col0 + - col0 DIV + col0 AS col2 FROM tab1 AS cor0
----
-4
-65
-81

skipif mysql # not compatible
query I rowsort label-8365
SELECT - cor0.col0 + - col0 / + col0 AS col2 FROM tab1 AS cor0
----
-4
-65
-81

onlyif mysql # use DIV operator for integer division
query I rowsort label-8366
SELECT + col0 DIV 35 + - col1 * col1 AS col0 FROM tab2
----
-287
-3479
-961

skipif mysql # not compatible
query I rowsort label-8366
SELECT + col0 / 35 + - col1 * col1 AS col0 FROM tab2
----
-287
-3479
-961

query I rowsort
SELECT ALL + tab1.col0 + - 31 FROM tab1
----
-28
33
49

query I rowsort
SELECT + - col1 + 88 + col0 * col0 FROM tab0 AS cor0
----
1216
578
7918

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8369
SELECT ALL - col0 * - CAST( + col2 * + col2 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
207936
737280
8748

skipif mysql # not compatible
query I rowsort label-8369
SELECT ALL - col0 * - CAST ( + col2 * + col2 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
207936
737280
8748

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8370
SELECT - col1 * CAST( NULL AS SIGNED ) + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8370
SELECT - col1 * CAST ( NULL AS INTEGER ) + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - cor0.col2 * + 32 AS col1 FROM tab2 AS cor0
----
-1216
-832
-864

query I rowsort
SELECT + 1 AS col1 FROM tab1, tab1 cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

query I rowsort
SELECT DISTINCT ( 68 ) FROM tab1
----
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - 38 + col0 ) col1 FROM tab2
----
-31
40
41

query I rowsort
SELECT - 59 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 1e6537c922fa953e0fd2f59430803703

query I rowsort
SELECT + col0 * - col0 + ( ( + cor0.col2 ) ) AS col1 FROM tab0 AS cor0
----
-1224
-543
-7839

query I rowsort
SELECT - 67 + + col1 AS col1 FROM tab0 cor0
----
19
24
30

query I rowsort
SELECT ( + col1 + tab0.col0 * + col2 ) FROM tab0
----
132
7389
878

query I rowsort
SELECT DISTINCT + 4 + col0 + - 90 AS col1 FROM tab2 AS cor0
----
-7
-79
-8

query I rowsort
SELECT DISTINCT - col1 - + col1 AS col1 FROM tab1 AS cor0
----
-20
-26
-52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + - col2 * + 18 * col2 col2 FROM tab2 AS cor0
----
-12246
-13129
-26071

query I rowsort
SELECT ALL + col0 * + col0 * 62 FROM tab0 cor0
----
35712
491102
75950

query I rowsort
SELECT DISTINCT + + 69 + cor0.col0 * 7 * col0 AS col2 FROM tab0 AS cor0
----
4101
55516
8644

onlyif mysql # use DIV operator for integer division
query I rowsort label-8384
SELECT ALL + 39 DIV + col0 AS col0 FROM tab1 AS cor0
----
0
0
13

skipif mysql # not compatible
query I rowsort label-8384
SELECT ALL + 39 / + col0 AS col0 FROM tab1 AS cor0
----
0
0
13

query I rowsort
SELECT ALL - 51 AS col1 FROM tab1
----
-51
-51
-51

query I rowsort
SELECT tab0.col2 * 82 FROM tab0, tab1 AS cor0
----
9 values hashing to 6d35e55bc3186575ba271da96a17f626

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab2 cor0, tab2 cor1, tab0 AS cor2
----
972 values hashing to deaaa983f771be544ffdc26f04a18657

query I rowsort
SELECT - col1 + + col1 * 61 AS col2 FROM tab2 cor0
----
1020
1860
3540

query I rowsort
SELECT DISTINCT - col1 * + col1 - col0 FROM tab2 AS cor0
----
-3559
-368
-968

query I rowsort
SELECT DISTINCT + col1 + col2 * 69 FROM tab1 AS cor0
----
3752
3943
6637

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 68 + - 79 col1 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 7120875811e4d19a19b69cd34b6bc202

query I rowsort
SELECT ALL ( cor0.col2 ) AS col2 FROM tab0 cor0
----
1
33
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-8393
SELECT DISTINCT - ( - col2 ) * - col1 - col2 DIV - cor0.col1 FROM tab1 AS cor0
----
-1241
-1402
-565

skipif mysql # not compatible
query I rowsort label-8393
SELECT DISTINCT - ( - col2 ) * - col1 - col2 / - cor0.col1 FROM tab1 AS cor0
----
-1241
-1402
-565

query I rowsort
SELECT ALL + + col2 * col1 + - col1 AS col1 FROM tab2 AS cor0
----
1475
629
806

query I rowsort
SELECT ALL + col1 * + col2 - + col0 FROM tab2 AS cor0
----
1456
567
830

query I rowsort
SELECT + col2 * + 86 + - col2 AS col0 FROM tab0 AS cor0
----
2805
6970
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + + 89 col0 FROM tab0 AS cor0
----
-2
-8
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 + - col0 col1 FROM tab2 AS cor0
----
-14
-156
-158

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 * + 12 + col0 + col1 col1 FROM tab2 AS cor0
----
-46
-799
-852

query I rowsort
SELECT DISTINCT col0 * 83 * - col1 FROM tab0 AS cor0
----
-171312
-281785
-672217

query I rowsort
SELECT ALL - - col2 + - 13 FROM tab1 AS cor0
----
41
44
83

query I rowsort
SELECT 47 * 53 AS col0 FROM tab1 AS cor0
----
2491
2491
2491

query I rowsort
SELECT DISTINCT - - col0 + - cor0.col0 FROM tab1 AS cor0
----
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8404
SELECT - CAST( NULL AS SIGNED ) * 77 + cor0.col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8404
SELECT - CAST ( NULL AS INTEGER ) * 77 + cor0.col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-8405
SELECT CAST( ( + col1 ) AS SIGNED ) DIV - CAST( - 91 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8405
SELECT CAST ( ( + col1 ) AS INTEGER ) / - CAST ( - 91 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + tab0.col1 * 66 AS col1 FROM tab0
----
5676
6006
6402

query I rowsort
SELECT + col0 * - 23 AS col1 FROM tab0
----
-2047
-552
-805

query I rowsort
SELECT - 24 * - col1 - - col1 * + ( + 30 ) FROM tab2
----
1674
3186
918

query I rowsort
SELECT - + 42 * - col1 AS col2 FROM tab1 AS cor0
----
1092
420
546

query I rowsort
SELECT + 41 * 94 AS col2 FROM tab2 cor0
----
3854
3854
3854

query I rowsort
SELECT ALL 91 FROM tab0, tab0 AS cor0, tab0 cor1
----
27 values hashing to deebbcfb9c7803a34dca6bd860849afe

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8412
SELECT ALL cor0.col2 * CAST( NULL AS SIGNED ) + + col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8412
SELECT ALL cor0.col2 * CAST ( NULL AS INTEGER ) + + col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col0 * col0 + 75 AS col0 FROM tab1 AS cor0
----
4171
6475
84

query I rowsort
SELECT ALL + col0 * - 6 + - ( - col2 ) FROM tab0 AS cor0
----
-111
-209
-452

query I rowsort
SELECT + 99 * col1 FROM tab2 cor0
----
1683
3069
5841

query I rowsort
SELECT DISTINCT - + ( + col1 ) + col2 FROM tab1 AS cor0
----
28
47
83

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8417
SELECT DISTINCT + + CAST( NULL AS DECIMAL ) * 69 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8417
SELECT DISTINCT + + CAST ( NULL AS REAL ) * 69 FROM tab1 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-8418
SELECT DISTINCT - ( col1 ) * col0 DIV + col2 + - col0 * col0 FROM tab0 AS cor0
----
-4620
-638
-8019

skipif mysql # not compatible
query I rowsort label-8418
SELECT DISTINCT - ( col1 ) * col0 / + col2 + - col0 * col0 FROM tab0 AS cor0
----
-4620
-638
-8019

query I rowsort
SELECT + 10 * 74 FROM tab1 AS cor0
----
740
740
740

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8420
SELECT DISTINCT CAST( NULL AS SIGNED ) * col2 + - cor0.col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8420
SELECT DISTINCT CAST ( NULL AS INTEGER ) * col2 + - cor0.col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-8421
SELECT ALL 72 DIV + col0 FROM tab0
----
0
2
3

skipif mysql # not compatible
query I rowsort label-8421
SELECT ALL 72 / + col0 FROM tab0
----
0
2
3

query I rowsort
SELECT DISTINCT - ( ( col2 ) ) * + col2 + - ( + col2 * 35 ) FROM tab0 AS cor0
----
-2244
-36
-9594

query I rowsort
SELECT ALL - col1 * + 28 AS col2 FROM tab0 cor0
----
-2408
-2548
-2716

onlyif mysql # use DIV operator for integer division
query I rowsort label-8424
SELECT + col1 DIV 43 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8424
SELECT + col1 / 43 AS col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-8425
SELECT DISTINCT + + cor0.col1 * col2 + + cor0.col2 DIV - col0 FROM tab0 cor0
----
2837
7462
97

skipif mysql # not compatible
query I rowsort label-8425
SELECT DISTINCT + + cor0.col1 * col2 + + cor0.col2 / - col0 FROM tab0 cor0
----
2837
7462
97

query I rowsort
SELECT DISTINCT - ( col1 ) - - 12 FROM tab2 AS cor0
----
-19
-47
-5

query I rowsort
SELECT + + ( + cor0.col0 ) * + col1 * + col1 FROM tab0 AS cor0
----
177504
329315
737009

query I rowsort
SELECT - 2 * - cor0.col0 + col0 FROM tab2 AS cor0
----
21
234
237

query I rowsort
SELECT ALL + - col2 + col2 + + ( 78 ) FROM tab2 AS cor0
----
78
78
78

query I rowsort
SELECT + + 96 + + col0 FROM tab2 AS cor0
----
103
174
175

onlyif mysql # use DIV operator for integer division
query I rowsort label-8431
SELECT ALL - - col2 * cor0.col0 DIV - 43 AS col2 FROM tab2 AS cor0
----
-4
-47
-69

skipif mysql # not compatible
query I rowsort label-8431
SELECT ALL - - col2 * cor0.col0 / - 43 AS col2 FROM tab2 AS cor0
----
-4
-47
-69

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8432
SELECT DISTINCT col2 + CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8432
SELECT DISTINCT col2 + CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-8433
SELECT ALL col1 DIV col1 + cor0.col1 AS col1 FROM tab0 AS cor0
----
87
92
98

skipif mysql # not compatible
query I rowsort label-8433
SELECT ALL col1 / col1 + cor0.col1 AS col1 FROM tab0 AS cor0
----
87
92
98

query I rowsort
SELECT ALL - - cor0.col1 * col2 + col1 AS col0 FROM tab0 AS cor0
----
194
2924
7553

query I rowsort
SELECT + col1 * + col0 + ( col1 ) FROM tab0 AS cor0
----
2150
3492
8190

query I rowsort
SELECT - 77 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 3a24155cb91ceff1e67bb51c07b72107

query I rowsort
SELECT + + col2 * cor0.col0 * - 8 AS col0 FROM tab1 AS cor0
----
-1296
-29184
-61440

query I rowsort
SELECT - col2 + 41 FROM tab2 cor0
----
14
15
3

onlyif mysql # use DIV operator for integer division
query I rowsort label-8439
SELECT - - cor0.col2 DIV - cor0.col1 + col1 + col0 DIV col0 FROM tab1 AS cor0
----
25
6
7

skipif mysql # not compatible
query I rowsort label-8439
SELECT - - cor0.col2 / - cor0.col1 + col1 + col0 / col0 FROM tab1 AS cor0
----
25
6
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-8440
SELECT ALL - + col0 * ( + col0 ) DIV + col1 + col1 AS col1 FROM tab1 AS cor0
----
-399
-479
26

skipif mysql # not compatible
query I rowsort label-8440
SELECT ALL - + col0 * ( + col0 ) / + col1 + col1 AS col1 FROM tab1 AS cor0
----
-399
-479
26

query I rowsort
SELECT ALL - - col2 * - col2 AS col2 FROM tab1 cor0
----
-2916
-3249
-9216

query I rowsort
SELECT - col2 + + col0 * + cor0.col0 FROM tab2 AS cor0
----
22
6058
6203

query I rowsort
SELECT - col1 + - col2 * + 11 FROM tab2 AS cor0
----
-328
-345
-435

query I rowsort
SELECT - 61 AS col2 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to c91d7b51e91f33d302e697913fb438b6

query I rowsort
SELECT DISTINCT - ( cor0.col2 ) FROM tab2, tab2 AS cor0, tab2 AS cor1
----
-26
-27
-38

query I rowsort
SELECT - col1 + - 5 * col0 FROM tab2 AS cor0
----
-412
-449
-66

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab2, tab0 cor1, tab2 AS cor2, tab0 AS cor3
----
3645 values hashing to 58b53d9f2c5d79e6fe94b4a97272440e

query I rowsort
SELECT - - 39 * - col0 AS col1 FROM tab1 AS cor0
----
-117
-2496
-3120

query I rowsort
SELECT - 46 FROM tab2, tab2 AS cor0, tab0, tab1 AS cor1
----
81 values hashing to ae4d442ff589a18fe7c7777464d5970c

query I rowsort
SELECT - 13 * + col1 * col0 FROM tab0
----
-105287
-26832
-44135

query I rowsort
SELECT - 89 + - col1 FROM tab1 AS cor0
----
-102
-115
-99

query I rowsort
SELECT - ( col2 ) * 54 * col0 FROM tab2
----
-10206
-109512
-162108

query I rowsort
SELECT DISTINCT - col1 + col2 * + col0 AS col2 FROM tab1 AS cor0
----
136
3638
7667

query I rowsort
SELECT DISTINCT + col0 * col2 + + col2 AS col2 FROM tab0 AS cor0
----
36
7380
825

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8455
SELECT ALL CAST( ( + col2 ) AS SIGNED ) - - col2 * col1 AS col1 FROM tab0 AS cor0
----
2871
7544
98

skipif mysql # not compatible
query I rowsort label-8455
SELECT ALL CAST ( ( + col2 ) AS INTEGER ) - - col2 * col1 AS col1 FROM tab0 AS cor0
----
2871
7544
98

query I rowsort
SELECT ALL + ( + cor0.col1 ) * + col1 FROM tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT ALL + cor0.col1 * + cor0.col1 FROM tab2 cor0
----
289
3481
961

query I rowsort
SELECT DISTINCT ( 72 ) * col0 FROM tab0 AS cor0
----
1728
2520
6408

query I rowsort
SELECT - - ( + col1 ) + + cor0.col2 * - col0 FROM tab0 AS cor0
----
-706
-7207
62

query I rowsort
SELECT + - col0 + - col1 * cor0.col1 AS col1 FROM tab1 AS cor0
----
-164
-249
-679

onlyif mysql # use DIV operator for integer division
query I rowsort label-8461
SELECT col1 DIV ( col1 ) + col2 FROM tab2
----
27
28
39

skipif mysql # not compatible
query I rowsort label-8461
SELECT col1 / ( col1 ) + col2 FROM tab2
----
27
28
39

query I rowsort
SELECT ALL + 82 FROM tab1, tab1 AS cor0
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c

query I rowsort
SELECT ALL - ( - col0 ) * - tab2.col1 * - col0 AS col1 FROM tab2
----
106097
1519
358956

query I rowsort
SELECT DISTINCT + + col2 * col0 + col2 AS col0 FROM tab1 AS cor0
----
216
3705
7776

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 85 col0 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to e4cf94cf0cc632acff30ad1dac617cb7

query I rowsort
SELECT ALL - 87 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 84bcab58a965cc8ae97b39d2d01b3d23

query I rowsort
SELECT ( col0 + 26 ) FROM tab2
----
104
105
33

query I rowsort
SELECT 93 * col0 + - col1 FROM tab0 AS cor0
----
2146
3158
8186

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8469
SELECT ALL col0 + - CAST( col1 AS SIGNED ) FROM tab1
----
-23
54
67

skipif mysql # not compatible
query I rowsort label-8469
SELECT ALL col0 + - CAST ( col1 AS INTEGER ) FROM tab1
----
-23
54
67

query I rowsort
SELECT ALL - col0 + + 40 FROM tab2 AS cor0
----
-38
-39
33

query I rowsort
SELECT ALL col0 + 40 * 45 FROM tab1 AS cor0
----
1803
1864
1880

query I rowsort
SELECT cor0.col1 * - ( col1 ) AS col1 FROM tab2 AS cor0
----
-289
-3481
-961

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * - 15 + cor0.col1 col0 FROM tab1 AS cor0
----
-140
-182
-364

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - 40 * + 65 col1 FROM tab2
----
-2541
-2569
-2583

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8475
SELECT DISTINCT - CAST( col1 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-8475
SELECT DISTINCT - CAST ( col1 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT - col0 * - col0 * col1 FROM tab1 cor0
----
234
40960
83200

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 56 * + cor0.col1 col0 FROM tab1 AS cor0
----
1456
560
728

query I rowsort
SELECT ALL + + 45 + 5 FROM tab2 AS cor0
----
50
50
50

query I rowsort
SELECT ALL - col1 * + col2 * - col0 FROM tab2
----
119652
51034
5859

query I rowsort
SELECT 61 + + tab0.col2 FROM tab0
----
143
62
94

onlyif mysql # use DIV operator for integer division
query I rowsort label-8481
SELECT + col2 + - col0 DIV + col2 AS col1 FROM tab0
----
-34
33
81

skipif mysql # not compatible
query I rowsort label-8481
SELECT + col2 + - col0 / + col2 AS col1 FROM tab0
----
-34
33
81

query I rowsort
SELECT + col1 + + ( cor0.col2 ) FROM tab0 cor0
----
119
173
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-8483
SELECT ALL + - 62 DIV 51 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8483
SELECT ALL + - 62 / 51 FROM tab2 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ALL 87 * + col1 FROM tab1 AS cor0
----
1131
2262
870

onlyif mysql # use DIV operator for integer division
query I rowsort label-8485
SELECT DISTINCT - ( col0 ) + col2 DIV - col1 AS col0 FROM tab1 AS cor0
----
-5
-69
-87

skipif mysql # not compatible
query I rowsort label-8485
SELECT DISTINCT - ( col0 ) + col2 / - col1 AS col0 FROM tab1 AS cor0
----
-5
-69
-87

query I rowsort
SELECT ALL + col1 * - col0 * + cor0.col2 AS col2 FROM tab1 AS cor0
----
-36480
-4212
-99840

query I rowsort
SELECT DISTINCT - 95 * + col2 AS col1 FROM tab1 AS cor0
----
-5130
-5415
-9120

onlyif mysql # use DIV operator for integer division
query I rowsort label-8488
SELECT ALL + col0 DIV col0 + - col2 FROM tab0 AS cor0
----
-32
-81
0

skipif mysql # not compatible
query I rowsort label-8488
SELECT ALL + col0 / col0 + - col2 FROM tab0 AS cor0
----
-32
-81
0

query I rowsort
SELECT ALL 47 * + col0 + col2 AS col1 FROM tab0 cor0
----
1161
1646
4265

query I rowsort
SELECT ALL + col0 + 61 FROM tab1 AS cor0
----
125
141
64

query I rowsort
SELECT DISTINCT col1 * ( - col0 + col2 ) AS col0 FROM tab1 AS cor0
----
-70
1326
208

query I rowsort
SELECT DISTINCT - + col1 * ( col2 ) FROM tab0 cor0
----
-2838
-7462
-97

query I rowsort
SELECT ALL - - col2 * + 84 + - col1 FROM tab1 AS cor0
----
4510
4778
8051

query I rowsort
SELECT - + cor0.col1 + + col2 * + col0 FROM tab1 cor0
----
136
3638
7667

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + col0 * col2 col2 FROM tab0 AS cor0
----
132
7389
878

query I rowsort
SELECT DISTINCT - - col0 * ( col1 ) + col0 FROM tab1 AS cor0
----
1120
704
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-8497
SELECT DISTINCT col0 DIV col0 + col0 FROM tab2
----
79
8
80

skipif mysql # not compatible
query I rowsort label-8497
SELECT DISTINCT col0 / col0 + col0 FROM tab2
----
79
8
80

query I rowsort
SELECT ALL 2 * col1 * - col1 + 18 * col1 FROM tab2
----
-1364
-272
-5900

query I rowsort
SELECT 28 * col0 + + ( - col1 + tab0.col1 ) AS col0 FROM tab0
----
2492
672
980

onlyif mysql # use DIV operator for integer division
query I rowsort label-8500
SELECT col0 * col1 DIV CAST( col0 AS SIGNED ) - - tab2.col2 FROM tab2
----
55
58
85

skipif mysql # not compatible
query I rowsort label-8500
SELECT col0 * col1 / CAST ( col0 AS INTEGER ) - - tab2.col2 FROM tab2
----
55
58
85

query I rowsort
SELECT ALL cor0.col2 * ( - col1 ) + + col1 AS col2 FROM tab2 AS cor0
----
-1475
-629
-806

query I rowsort
SELECT 44 - - col0 * - 2 AS col2 FROM tab0
----
-134
-26
-4

query I rowsort
SELECT 40 + col1 FROM tab2 AS cor0
----
57
71
99

onlyif mysql # use DIV operator for integer division
query I rowsort label-8504
SELECT ALL 9 DIV - cor0.col1 FROM tab2, tab1 AS cor0 CROSS JOIN tab0, tab0 AS cor1
----
81 values hashing to 1f117f467f45d8c6b7553e2e3c842942

skipif mysql # not compatible
query I rowsort label-8504
SELECT ALL 9 / - cor0.col1 FROM tab2, tab1 AS cor0 CROSS JOIN tab0, tab0 AS cor1
----
81 values hashing to 1f117f467f45d8c6b7553e2e3c842942

query I rowsort
SELECT - 18 * 1 + - col1 FROM tab0
----
-104
-109
-115

query I rowsort
SELECT + ( - 98 ) + col2 + + ( col0 ) * - tab2.col1 AS col1 FROM tab2
----
-1403
-288
-4674

query I rowsort
SELECT 48 + - col1 FROM tab0
----
-38
-43
-49

query I rowsort
SELECT DISTINCT + 37 AS col1 FROM tab2
----
37

query I rowsort
SELECT DISTINCT - 69 + - cor0.col1 AS col0 FROM tab0 AS cor0
----
-155
-160
-166

query I rowsort
SELECT DISTINCT - 57 * tab2.col1 AS col0 FROM tab2
----
-1767
-3363
-969

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + col2 * + col2 col1 FROM tab1
----
2890
3239
9203

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8512
SELECT + + 10 * + 4 * + col2 + CAST( col1 AS SIGNED ) col1 FROM tab2 AS cor0
----
1099
1111
1537

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8512
SELECT + + 10 * + 4 * + col2 + CAST ( col1 AS INTEGER ) col1 FROM tab2 AS cor0
----
1099
1111
1537

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + col2 col1 FROM tab0
----
0

query I rowsort
SELECT ALL + col0 * col1 + 44 FROM tab2
----
1387
261
4646

onlyif mysql # use DIV operator for integer division
query I rowsort label-8515
SELECT - 5 * - 17 + col1 DIV + col0 + col1 AS col2 FROM tab2 AS cor0
----
102
120
144

skipif mysql # not compatible
query I rowsort label-8515
SELECT - 5 * - 17 + col1 / + col0 + col1 AS col2 FROM tab2 AS cor0
----
102
120
144

query I rowsort
SELECT ALL - + 14 * + col0 * + col0 FROM tab1 AS cor0
----
-126
-57344
-89600

onlyif mysql # use DIV operator for integer division
query I rowsort label-8517
SELECT DISTINCT - + cor0.col1 DIV col1 AS col2 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-8517
SELECT DISTINCT - + cor0.col1 / col1 AS col2 FROM tab2 AS cor0
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 25 + - 5 col2 FROM tab0 cor0
----
-30
-30
-30

query I rowsort
SELECT ALL + cor1.col1 + 58 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 618b19e78c364ba5ad0e1ce88f1f96cd

skipif mysql # not compatible
query I rowsort
SELECT + + CAST ( + 97 AS REAL ) AS col0 FROM tab2 AS cor0
----
97
97
97

query I rowsort
SELECT DISTINCT + ( + col1 ) * col2 * + col2 FROM tab2 AS cor0
----
22599
24548
39884

query I rowsort
SELECT DISTINCT + - ( 78 ) * + col0 FROM tab0 AS cor0
----
-1872
-2730
-6942

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8523
SELECT DISTINCT + + CAST( NULL AS SIGNED ) / col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8523
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) / col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-8524
SELECT DISTINCT - col2 * col0 DIV col1 AS col1 FROM tab2
----
-176
-34
-6

skipif mysql # not compatible
query I rowsort label-8524
SELECT DISTINCT - col2 * col0 / col1 AS col1 FROM tab2
----
-176
-34
-6

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8525
SELECT - ( col2 + + tab1.col2 ) * CAST( NULL AS SIGNED ) * + col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8525
SELECT - ( col2 + + tab1.col2 ) * CAST ( NULL AS INTEGER ) * + col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8526
SELECT + CAST( NULL AS SIGNED ) * + col1 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8526
SELECT + CAST ( NULL AS INTEGER ) * + col1 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-8527
SELECT 32 DIV col0 AS col2 FROM tab1 cor0
----
0
0
10

skipif mysql # not compatible
query I rowsort label-8527
SELECT 32 / col0 AS col2 FROM tab1 cor0
----
0
0
10

onlyif mysql # use DIV operator for integer division
query I rowsort label-8528
SELECT + + col1 + col2 DIV - col1 AS col1 FROM tab1 cor0
----
24
5
6

skipif mysql # not compatible
query I rowsort label-8528
SELECT + + col1 + col2 / - col1 AS col1 FROM tab1 cor0
----
24
5
6

query I rowsort
SELECT - + ( + col1 ) + - ( col2 ) AS col0 FROM tab2 AS cor0
----
-55
-58
-85

query I rowsort
SELECT ALL + + ( col1 ) * - col0 * cor0.col0 AS col0 FROM tab2 AS cor0
----
-106097
-1519
-358956

query I rowsort
SELECT - 32 + - col0 AS col2 FROM tab1 AS cor0
----
-112
-35
-96

query I rowsort
SELECT + + col0 * col0 + col0 * - col2 FROM tab2 AS cor0
----
-140
3239
4056

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 12 + - col2 col1 FROM tab2 AS cor0
----
-14
-15
-26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 * + col1 + + col0 * col0 col0 FROM tab2 AS cor0
----
6887
7618
886

query I rowsort
SELECT ALL - - 88 * col1 FROM tab1 AS cor0
----
1144
2288
880

query I rowsort
SELECT ALL + col2 * + col1 + + 97 AS col2 FROM tab2 AS cor0
----
1631
743
934

query I rowsort
SELECT col2 * + col2 + cor0.col1 AS col0 FROM tab2 AS cor0
----
1461
735
760

query I rowsort
SELECT ALL + + cor0.col0 - - col2 * - 20 AS col2 FROM tab1 AS cor0
----
-1076
-1077
-1840

query I rowsort
SELECT col1 + + col0 * col2 FROM tab1 AS cor0
----
188
3658
7693

query I rowsort
SELECT ALL - cor0.col0 + cor0.col0 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 31 col2 FROM tab1 AS cor0
----
31
31
31

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8542
SELECT + 91 * + 69 + col2 * CAST( col0 AS SIGNED ) FROM tab1 AS cor0
----
13959
6441
9927

skipif mysql # not compatible
query I rowsort label-8542
SELECT + 91 * + 69 + col2 * CAST ( col0 AS INTEGER ) FROM tab1 AS cor0
----
13959
6441
9927

query I rowsort
SELECT ALL + + 39 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf

query I rowsort
SELECT + cor0.col2 + + 64 AS col0 FROM tab0 AS cor0
----
146
65
97

query I rowsort
SELECT + tab1.col2 + + col1 AS col2 FROM tab1
----
109
67
80

query I rowsort
SELECT ( - 44 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab0 cor2
----
81 values hashing to 9c887509d218271b9365009eba440976

query I rowsort
SELECT DISTINCT + + cor0.col2 + + ( col1 * col2 ) + ( + col1 ) * col2 FROM tab0 AS cor0
----
15006
195
5709

query I rowsort
SELECT - + col1 * ( 55 ) AS col0 FROM tab2 cor0
----
-1705
-3245
-935

query I rowsort
SELECT DISTINCT + cor0.col2 + 28 AS col1 FROM tab2 AS cor0
----
54
55
66

query I rowsort
SELECT ALL - - col2 * col0 + - 88 - col2 AS col0 FROM tab0 AS cor0
----
-54
671
7128

query I rowsort
SELECT + col0 * - 38 AS col0 FROM tab2 AS cor0
----
-266
-2964
-3002

query I rowsort
SELECT ALL col1 + ( col1 ) AS col1 FROM tab0 AS cor0
----
172
182
194

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8553
SELECT + + cor0.col2 + - CAST( col1 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
28
47
83

skipif mysql # not compatible
query I rowsort label-8553
SELECT + + cor0.col2 + - CAST ( col1 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT ALL - + col1 * 5 FROM tab1 AS cor0
----
-130
-50
-65

query I rowsort
SELECT DISTINCT - col1 * ( - col0 ) AS col1 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT DISTINCT + 47 * cor0.col2 AS col0 FROM tab1, tab2 AS cor0
----
1222
1269
1786

query I rowsort
SELECT DISTINCT ( - col1 ) * + col1 FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT DISTINCT - col0 + 36 FROM tab0 AS cor0
----
-53
1
12

query I rowsort
SELECT ALL tab2.col2 + - 92 FROM tab2, tab0 AS cor0
----
9 values hashing to 888c20193e5410220ca887f9a3cfe9fa

query I rowsort
SELECT + - col1 * col2 + - 96 FROM tab1 AS cor0
----
-1344
-1500
-666

query I rowsort
SELECT - - cor0.col0 + + cor0.col2 * + 27 + - col0 AS col0 FROM tab2 AS cor0
----
1026
702
729

query I rowsort
SELECT DISTINCT - - 9 FROM tab2 cor0
----
9

query I rowsort
SELECT ALL col1 * - tab2.col0 + + col1 FROM tab2
----
-1326
-186
-4543

onlyif mysql # use DIV operator for integer division
query I rowsort label-8564
SELECT - col2 DIV tab1.col1 + + col0 col1 FROM tab1
----
1
59
73

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8564
SELECT - col2 / tab1.col1 + + col0 col1 FROM tab1
----
1
59
73

query I rowsort
SELECT DISTINCT col2 * col0 * 7 AS col1 FROM tab1
----
1134
25536
53760

query I rowsort
SELECT DISTINCT 40 + col0 FROM tab2
----
118
119
47

query I rowsort
SELECT ALL + 41 + col2 - ( 64 ) * + col1 FROM tab1
----
-1569
-542
-695

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8568
SELECT DISTINCT + - col1 / + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8568
SELECT DISTINCT + - col1 / + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT cor0.col0 * - ( col2 + col1 ) * + 56 FROM tab1 AS cor0
----
-13440
-240128
-488320

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - ( col1 ) * col1 col0 FROM tab2 AS cor0
----
-210
-3403
-954

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + - col2 col2 FROM tab2
----
-21
33
4

query I rowsort
SELECT DISTINCT 75 + + col1 + 31 * + 65 FROM tab2
----
2107
2121
2149

query I rowsort
SELECT - + ( + 41 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 4ba0c102091f9cbc9fe9439b04584e70

query I rowsort
SELECT DISTINCT + tab1.col0 AS col0 FROM tab1, tab1 cor0
----
3
64
80

query I rowsort
SELECT col0 + 28 FROM tab1
----
108
31
92

query I rowsort
SELECT tab1.col2 * + 12 + + col2 FROM tab1
----
1248
702
741

query I rowsort
SELECT DISTINCT - - col0 * ( - col0 ) * col1 + + col1 FROM tab2 AS cor0
----
-106080
-1488
-358897

query I rowsort
SELECT ALL cor0.col1 * cor0.col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 815fccd4c3d372b28d3f3fb103025775

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8579
SELECT 32 * 35 + - col1 * CAST( 35 AS SIGNED ) AS col1 FROM tab0
----
-1890
-2065
-2275

skipif mysql # not compatible
query I rowsort label-8579
SELECT 32 * 35 + - col1 * CAST ( 35 AS INTEGER ) AS col1 FROM tab0
----
-1890
-2065
-2275

query I rowsort
SELECT ALL + 22 * - col2 * - col2 AS col2 FROM tab1
----
202752
64152
71478

query I rowsort
SELECT + 7 * + tab0.col2 + tab0.col0 AS col2 FROM tab0
----
255
42
663

onlyif mysql # use DIV operator for integer division
query I rowsort label-8582
SELECT ALL ( 33 ) + + col0 DIV + ( col0 ) col2 FROM tab1 AS cor0
----
34
34
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8582
SELECT ALL ( 33 ) + + col0 / + ( col0 ) col2 FROM tab1 AS cor0
----
34
34
34

query I rowsort
SELECT DISTINCT 3 FROM tab1, tab0 AS cor0, tab0 AS cor1, tab1 AS cor2
----
3

query I rowsort
SELECT ALL 26 * cor0.col1 * + ( col1 ) FROM tab2 AS cor0
----
24986
7514
90506

onlyif mysql # use DIV operator for integer division
query I rowsort label-8585
SELECT col2 + col0 - 84 DIV + 50 col1 FROM tab2 AS cor0
----
103
116
33

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8585
SELECT col2 + col0 - 84 / + 50 col1 FROM tab2 AS cor0
----
103
116
33

query I rowsort
SELECT - + col2 * + col2 - + col1 FROM tab2 AS cor0
----
-1461
-735
-760

onlyif mysql # use DIV operator for integer division
query I rowsort label-8587
SELECT ALL - + cor0.col2 DIV - cor0.col0 + + 93 FROM tab1 AS cor0
----
111
93
94

skipif mysql # not compatible
query I rowsort label-8587
SELECT ALL - + cor0.col2 / - cor0.col0 + + 93 FROM tab1 AS cor0
----
111
93
94

query I rowsort
SELECT col1 * col0 + 58 FROM tab2 AS cor0
----
1401
275
4660

query I rowsort
SELECT ALL + ( col2 ) * col0 AS col0 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT - col2 - cor0.col1 AS col2 FROM tab1 AS cor0
----
-109
-67
-80

query I rowsort
SELECT DISTINCT col2 * col0 + col0 AS col0 FROM tab2 cor0
----
196
2106
3081

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8592
SELECT + col2 * - col1 + CAST( NULL AS SIGNED ) * + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8592
SELECT + col2 * - col1 + CAST ( NULL AS INTEGER ) * + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + ( col2 ) + - 95 * - col2 col1 FROM tab1 AS cor0
----
5076
5358
9024

query I rowsort
SELECT DISTINCT col2 * cor0.col1 + - col0 + + col2 AS col1 FROM tab2 AS cor0
----
1482
605
857

query I rowsort
SELECT + + col2 * cor0.col1 + col2 AS col0 FROM tab0 cor0
----
2871
7544
98

query I rowsort
SELECT + + cor0.col2 * col0 + col1 FROM tab1 AS cor0
----
188
3658
7693

query I rowsort
SELECT DISTINCT + + col2 * + col2 AS col0 FROM tab0 AS cor0
----
1
1089
6724

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 + col0 + col2 col2 FROM tab0 AS cor0
----
133
143
262

query I rowsort
SELECT - col0 + col2 * + col1 AS col0 FROM tab2 AS cor0
----
1456
567
830

query I rowsort
SELECT + + col0 + cor0.col2 * col1 FROM tab0 AS cor0
----
132
2862
7551

query I rowsort
SELECT ALL col0 + + col2 * + col2 AS col2 FROM tab2
----
1523
736
754

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + col2 col0 FROM tab1 AS cor0
----
108
114
192

query I rowsort
SELECT + col0 * tab2.col1 AS col2 FROM tab2
----
1343
217
4602

query I rowsort
SELECT col2 * + tab0.col0 * - col1 FROM tab0
----
-3395
-664118
-68112

query I rowsort
SELECT - tab0.col0 + tab0.col1 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to c99cbeca6e6fdb3507b2e08470c1cda6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col0 ) * + col2 col2 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT DISTINCT 46 * + col0 AS col0 FROM tab2 AS cor0
----
322
3588
3634

query I rowsort
SELECT ALL + - 53 * + col2 AS col1 FROM tab2 AS cor0
----
-1378
-1431
-2014

query I rowsort
SELECT + 42 * col1 FROM tab1 AS cor0
----
1092
420
546

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 17 * - col1 col1 FROM tab2 AS cor0
----
-1003
-289
-527

query I rowsort
SELECT ( ( + tab0.col1 ) ) AS col1 FROM tab0
----
86
91
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 38 col0 FROM tab0, tab0 AS cor0
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7

query I rowsort
SELECT DISTINCT 34 * col1 AS col1 FROM tab2
----
1054
2006
578

query I rowsort
SELECT DISTINCT 33 AS col0 FROM tab0
----
33

query I rowsort
SELECT - col2 + 30 * + col0 FROM tab1
----
1863
2304
36

query I rowsort
SELECT DISTINCT col0 + tab1.col0 + - tab1.col0 * col1 * col0 FROM tab1
----
-228
-40832
-83040

query I rowsort
SELECT ALL - 17 + - col2 FROM tab1
----
-113
-71
-74

query I rowsort
SELECT DISTINCT + + col1 * - cor0.col2 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT cor0.col2 * - cor0.col2 FROM tab2 AS cor0
----
-1444
-676
-729

query I rowsort
SELECT ALL - 64 + + cor0.col0 FROM tab2 AS cor0
----
-57
14
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + - col0 * + col1 col0 FROM tab0 cor0
----
-2031
-3394
-8017

query I rowsort
SELECT + + 35 FROM tab2 cor0
----
35
35
35

query I rowsort
SELECT ALL + 70 + col2 FROM tab2 AS cor0
----
108
96
97

query I rowsort
SELECT - - 20 * - col0 AS col0 FROM tab0 AS cor0
----
-1780
-480
-700

query I rowsort
SELECT DISTINCT + col0 * + col0 - col1 AS col2 FROM tab2 AS cor0
----
18
6025
6224

query I rowsort
SELECT + col1 + col1 - + col2 FROM tab0 cor0
----
100
139
193

onlyif mysql # use DIV operator for integer division
query I rowsort label-8627
SELECT DISTINCT + col1 + + tab1.col2 DIV - col0 FROM tab1
----
10
12
8

skipif mysql # not compatible
query I rowsort label-8627
SELECT DISTINCT + col1 + + tab1.col2 / - col0 FROM tab1
----
10
12
8

query I rowsort
SELECT - tab1.col0 - tab1.col0 FROM tab1
----
-128
-160
-6

query I rowsort
SELECT col2 + col2 * + col2 AS col0 FROM tab0
----
1122
2
6806

query I rowsort
SELECT - col2 + + col0 FROM tab1 WHERE NULL > NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL = - col2
----

query I rowsort
SELECT ALL - col2 - + col1 AS col2 FROM tab0
----
-119
-173
-98

query I rowsort
SELECT - col0 - tab1.col1 * col0 FROM tab1
----
-1120
-704
-81

onlyif mysql # use DIV operator for integer division
query I rowsort label-8634
SELECT DISTINCT col0 * col1 DIV + col0 AS col0 FROM tab2
----
17
31
59

skipif mysql # not compatible
query I rowsort label-8634
SELECT DISTINCT col0 * col1 / + col0 AS col0 FROM tab2
----
17
31
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-8635
SELECT ALL - col1 DIV + col1 AS col0 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8635
SELECT ALL - col1 / + col1 AS col0 FROM tab0
----
-1
-1
-1

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL IN ( col0 * col1 + - tab0.col0 )
----

query I rowsort
SELECT DISTINCT - col0 + col0 * + col0 FROM tab0
----
1190
552
7832

onlyif mysql # use DIV operator for integer division
query I rowsort label-8638
SELECT + tab0.col0 DIV + col2 + tab0.col1 AS col2 FROM tab0
----
132
86
92

skipif mysql # not compatible
query I rowsort label-8638
SELECT + tab0.col0 / + col2 + tab0.col1 AS col2 FROM tab0
----
132
86
92

query I rowsort
SELECT ALL col2 FROM tab2 WHERE NOT ( NULL ) NOT IN ( + tab2.col0 )
----

query I rowsort
SELECT - col2 * + col1 * + col0 AS col0 FROM tab1
----
-36480
-4212
-99840

onlyif mysql # use DIV operator for integer division
query I rowsort label-8641
SELECT + col2 * - col0 DIV + col0 AS col1 FROM tab1
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-8641
SELECT + col2 * - col0 / + col0 AS col1 FROM tab1
----
-54
-57
-96

query I rowsort
SELECT ALL + col2 + + col2 + tab0.col0 AS col0 FROM tab0
----
253
37
90

query I rowsort
SELECT ALL - col1 * col2 + col1 - col1 * - tab1.col1 AS col1 FROM tab1
----
-1066
-460
-702

onlyif mysql # use DIV operator for integer division
query I rowsort label-8644
SELECT DISTINCT col0 DIV - col0 + tab0.col2 + + tab0.col0 AS col0 FROM tab0
----
170
35
56

skipif mysql # not compatible
query I rowsort label-8644
SELECT DISTINCT col0 / - col0 + tab0.col2 + + tab0.col0 AS col0 FROM tab0
----
170
35
56

query I rowsort
SELECT + col1 AS col1 FROM tab0 WHERE NULL BETWEEN NULL AND col1
----

query I rowsort
SELECT - col2 + col0 * col1 AS col0 FROM tab1 cor0
----
24
583
944

query I rowsort
SELECT ALL - - col1 - col1 * col1 * - col0 FROM tab0 AS cor0
----
177590
329412
737100

onlyif mysql # use DIV operator for integer division
query I rowsort label-8648
SELECT ALL col2 + - col0 DIV - col2 FROM tab1 AS cor0
----
54
58
96

skipif mysql # not compatible
query I rowsort label-8648
SELECT ALL col2 + - col0 / - col2 FROM tab1 AS cor0
----
54
58
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-8649
SELECT cor0.col1 DIV cor0.col1 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8649
SELECT cor0.col1 / cor0.col1 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT 74 + 78 FROM tab0
----
152

query I rowsort
SELECT + ( + 53 * tab2.col2 ) FROM tab2
----
1378
1431
2014

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - cor0.col1 col2 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT + 70 + - cor0.col2 * col0 * col1 AS col0 FROM tab1 cor0
----
-36410
-4142
-99770

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8654
SELECT DISTINCT + ( col2 ) * - CAST( NULL AS SIGNED ) AS col0 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8654
SELECT DISTINCT + ( col2 ) * - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 cor0
----
NULL

query I rowsort
SELECT col1 * 4 FROM tab2
----
124
236
68

query I rowsort
SELECT DISTINCT + col0 + col1 * - col0 FROM tab1
----
-576
-75
-960

query I rowsort
SELECT DISTINCT + 72 * col1 * + col2 + - 49 * col2 + col1 FROM tab2
----
109233
44667
58972

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8658
SELECT CAST( NULL AS SIGNED ) * + col1 + - tab0.col2 + + col0 * tab0.col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8658
SELECT CAST ( NULL AS INTEGER ) * + col1 + - tab0.col2 + + col0 * tab0.col0 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 col2 FROM tab2, tab2 cor0
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75

query I rowsort
SELECT DISTINCT - + 89 * col0 FROM tab2 AS cor0
----
-623
-6942
-7031

onlyif mysql # use DIV operator for integer division
query I rowsort label-8661
SELECT - col1 + + col1 DIV col0 FROM tab2 AS cor0
----
-17
-27
-59

skipif mysql # not compatible
query I rowsort label-8661
SELECT - col1 + + col1 / col0 FROM tab2 AS cor0
----
-17
-27
-59

query I rowsort
SELECT + + col1 * - col0 + 85 AS col1 FROM tab2 AS cor0
----
-1258
-132
-4517

query I rowsort
SELECT + cor0.col1 * col2 + 20 FROM tab1 AS cor0
----
1268
1424
590

query I rowsort
SELECT ALL + 67 + cor0.col0 AS col1 FROM tab1 cor0
----
131
147
70

query I rowsort
SELECT + col2 + 12 FROM tab1 AS cor0
----
108
66
69

query I rowsort
SELECT ALL + col0 - ( + col2 * col0 ) AS col0 FROM tab2
----
-182
-1950
-2923

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + col2 * + cor0.col2 - col2 col1 FROM tab1 AS cor0
----
157410
185136
884640

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 * 48 col1 FROM tab2 AS cor0
----
336
3744
3792

query I rowsort
SELECT ALL - ( + 63 ) + cor0.col0 * col2 AS col2 FROM tab2 AS cor0
----
126
1965
2939

query I rowsort
SELECT ALL + col1 * - ( - col0 ) FROM tab2 cor0
----
1343
217
4602

query I rowsort
SELECT DISTINCT - + cor0.col2 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-1
-33
-82

onlyif mysql # use DIV operator for integer division
query I rowsort label-8672
SELECT DISTINCT + cor0.col1 * - 42 + + cor0.col2 * + col0 + col2 DIV cor0.col1 FROM tab0 AS cor0
----
-2820
-4039
3476

skipif mysql # not compatible
query I rowsort label-8672
SELECT DISTINCT + cor0.col1 * - 42 + + cor0.col2 * + col0 + col2 / cor0.col1 FROM tab0 AS cor0
----
-2820
-4039
3476

query I rowsort
SELECT DISTINCT 61 + - ( cor0.col2 ) * - 26 FROM tab0 AS cor0
----
2193
87
919

query I rowsort
SELECT ALL + cor0.col1 * 41 + col2 AS col2 FROM tab1 AS cor0
----
1120
467
629

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - 51 ) col1 FROM tab2 cor0
----
-51

query I rowsort
SELECT + ( col0 ) + - col1 * - col1 FROM tab1 AS cor0
----
164
249
679

query I rowsort
SELECT + - col0 * + ( + col0 ) - col0 AS col1 FROM tab2 AS cor0
----
-56
-6162
-6320

query I rowsort
SELECT + ( - col0 ) * col1 * - 56 + - col1 * col2 FROM tab0 AS cor0
----
112746
190023
446082

query I rowsort
SELECT + ( col0 ) + col2 * + 13 FROM tab2 cor0
----
358
416
573

query I rowsort
SELECT + col0 * + 39 AS col0 FROM tab0 AS cor0
----
1365
3471
936

onlyif mysql # use DIV operator for integer division
query I rowsort label-8681
SELECT ALL col1 DIV + col1 + col0 col2 FROM tab1 AS cor0
----
4
65
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8681
SELECT ALL col1 / + col1 + col0 col2 FROM tab1 AS cor0
----
4
65
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-8682
SELECT DISTINCT col1 - 92 DIV col1 FROM tab1 cor0
----
1
23
6

skipif mysql # not compatible
query I rowsort label-8682
SELECT DISTINCT col1 - 92 / col1 FROM tab1 cor0
----
1
23
6

query I rowsort
SELECT - col1 - - 10 AS col2 FROM tab0 AS cor0
----
-76
-81
-87

query I rowsort
SELECT DISTINCT - 66 * 74 + col1 - + 40 FROM tab2 AS cor0
----
-4865
-4893
-4907

skipif mysql # not compatible
query I rowsort
SELECT ALL + CAST ( - col1 AS REAL ) AS col1 FROM tab0 AS cor0
----
-86
-91
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-8686
SELECT ALL - col2 DIV + col2 + col0 + + ( - col0 ) AS col2 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8686
SELECT ALL - col2 / + col2 + col0 + + ( - col0 ) AS col2 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT - ( ( + col0 ) ) * + ( - 3 ) FROM tab0 cor0
----
105
267
72

query I rowsort
SELECT ALL 3 + 10 AS col0 FROM tab1 AS cor0
----
13
13
13

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 4 * + col0 col1 FROM tab1 AS cor0
----
12
256
320

query I rowsort
SELECT - cor0.col2 * col1 + - cor0.col0 FROM tab2 AS cor0
----
-1612
-725
-844

query I rowsort
SELECT DISTINCT + col1 + - 61 FROM tab2
----
-2
-30
-44

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 60 col0 FROM tab0, tab1 AS cor0
----
9 values hashing to a97561e17ecaa618227c75a57b268f33

query I rowsort
SELECT ALL - col2 * - ( - col1 ) - col0 FROM tab2 AS cor0
----
-1612
-725
-844

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8694
SELECT ALL col1 - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8694
SELECT ALL col1 - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 92 AS col0 FROM tab2, tab0 AS cor0
----
92

query I rowsort
SELECT DISTINCT ( 44 ) FROM tab2, tab0 AS cor0
----
44

query I rowsort
SELECT + col2 + col2 * + 69 FROM tab0
----
2310
5740
70

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT col1 * CAST ( col0 AS REAL ) FROM tab0 AS cor0
----
2064
3395
8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-8699
SELECT DISTINCT - - col0 DIV + col0 col1 FROM tab2 AS cor0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8699
SELECT DISTINCT - - col0 / + col0 col1 FROM tab2 AS cor0
----
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8700
SELECT col1 * CAST( - col1 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-7396
-8281
-9409

skipif mysql # not compatible
query I rowsort label-8700
SELECT col1 * CAST ( - col1 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT DISTINCT + tab1.col0 * + ( + ( col0 ) ) FROM tab1
----
4096
6400
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 + ( 73 ) * - col2 * col1 col2 FROM tab1 AS cor0
----
-102518
-41620
-91117

query I rowsort
SELECT col1 + - tab0.col2 + - col2 FROM tab0
----
-73
20
95

query I rowsort
SELECT DISTINCT - col2 * + col2 + 66 FROM tab1
----
-2850
-3183
-9150

query I rowsort
SELECT ALL - col1 * + col0 + col2 * - col1 FROM tab0 AS cor0
----
-15561
-3492
-4902

query I rowsort
SELECT ALL ( col2 ) + - 94 FROM tab2 AS cor0
----
-56
-67
-68

query I rowsort
SELECT - col0 * - 1 + 89 + col1 AS col2 FROM tab1 AS cor0
----
118
163
182

query I rowsort
SELECT DISTINCT - + 92 AS col1 FROM tab1, tab2 AS cor0
----
-92

query I rowsort
SELECT + cor0.col1 + col0 * + col2 * col1 FROM tab2 AS cor0
----
119711
51051
5890

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + + 58 col1 FROM tab0 AS cor0
----
147
82
93

query I rowsort
SELECT DISTINCT + - cor0.col1 + cor0.col0 FROM tab2 cor0
----
-24
19
62

query I rowsort
SELECT - - ( - col0 ) * - col2 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT DISTINCT - 73 * - col1 FROM tab0
----
6278
6643
7081

query I rowsort
SELECT + + ( + col1 ) AS col1 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT DISTINCT 43 + - ( - col2 + cor0.col2 * col2 ) FROM tab0 AS cor0
----
-1013
-6599
43

query I rowsort
SELECT ALL + - col2 * 9 + col2 AS col0 FROM tab1 cor0
----
-432
-456
-768

onlyif mysql # use DIV operator for integer division
query I rowsort label-8717
SELECT - 44 + col0 DIV - CAST( col1 AS SIGNED ) FROM tab0 AS cor0
----
-44
-44
-44

skipif mysql # not compatible
query I rowsort label-8717
SELECT - 44 + col0 / - CAST ( col1 AS INTEGER ) FROM tab0 AS cor0
----
-44
-44
-44

query I rowsort
SELECT - cor0.col1 + + cor0.col0 * + col0 AS col0 FROM tab1 AS cor0
----
-17
4086
6387

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 20 col2 FROM tab1
----
20
20
20

query I rowsort
SELECT DISTINCT ( + 10 ) AS col0 FROM tab2
----
10

query I rowsort
SELECT - col2 * + cor0.col1 + + col2 * col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT col2 * + cor0.col2 + 50 * - col0 FROM tab2 AS cor0
----
-2506
-3224
379

query I rowsort
SELECT DISTINCT - 97 - col1 AS col1 FROM tab0 AS cor0
----
-183
-188
-194

query I rowsort
SELECT ALL cor0.col1 + col2 * + 63 AS col2 FROM tab1 cor0
----
3428
3601
6061

query I rowsort
SELECT + 87 * + col2 AS col1 FROM tab1 AS cor0
----
4698
4959
8352

query I rowsort
SELECT ALL 78 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to d8e5ef4db3419fc251e82c50ba04e048

query I rowsort
SELECT col0 * col2 + - col2 * cor0.col2 AS col1 FROM tab2 AS cor0
----
-540
1352
1558

query I rowsort
SELECT DISTINCT - + col1 * 82 AS col0 FROM tab1 AS cor0
----
-1066
-2132
-820

query I rowsort
SELECT ALL + - col2 + ( 8 ) AS col2 FROM tab1 AS cor0
----
-46
-49
-88

query I rowsort
SELECT DISTINCT cor0.col1 * 48 AS col2 FROM tab1, tab2 AS cor0
----
1488
2832
816

query I rowsort
SELECT + 29 + + col1 FROM tab0
----
115
120
126

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 46 col1 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 2f97924b57b73102233df7c9ce8ad602

query I rowsort
SELECT - 72 * - col2 FROM tab0 cor0
----
2376
5904
72

query I rowsort
SELECT + col0 + - 90 AS col0 FROM tab0 cor0
----
-1
-55
-66

query I rowsort
SELECT + col1 * + 40 AS col2 FROM tab0
----
3440
3640
3880

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8736
SELECT ALL - col0 * CAST( + col2 AS SIGNED ) FROM tab0
----
-35
-7298
-792

skipif mysql # not compatible
query I rowsort label-8736
SELECT ALL - col0 * CAST ( + col2 AS INTEGER ) FROM tab0
----
-35
-7298
-792

query I rowsort
SELECT ALL - ( + col0 + - col2 ) FROM tab1
----
-7
16
51

query I rowsort
SELECT + ( - cor0.col1 ) * cor0.col0 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 9b23e5e74ef3405a4dbf05cceb18c8a8

query I rowsort
SELECT ( 64 ) + - col0 * col1 + 74 FROM tab2 AS cor0
----
-1205
-4464
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 + - col2 * + cor0.col0 * col0 col0 FROM tab2 AS cor0
----
-1350
-158210
-237196

query I rowsort
SELECT + col2 - + 40 FROM tab0 AS cor0
----
-39
-7
42

onlyif mysql # use DIV operator for integer division
query I rowsort label-8742
SELECT ALL + + col0 DIV 3 FROM tab2 AS cor0
----
2
26
26

skipif mysql # not compatible
query I rowsort label-8742
SELECT ALL + + col0 / 3 FROM tab2 AS cor0
----
2
26
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + cor0.col2 + + 79 col1 FROM tab1 AS cor0
----
-17
22
25

query I rowsort
SELECT ALL + col2 * + col2 + + col1 * col2 + - col1 FROM tab0 AS cor0
----
1
14095
3841

onlyif mysql # use DIV operator for integer division
query I rowsort label-8745
SELECT ALL + - col2 - - col1 DIV col0 AS col1 FROM tab0 AS cor0
----
-30
-81
1

skipif mysql # not compatible
query I rowsort label-8745
SELECT ALL + - col2 - - col1 / col0 AS col1 FROM tab0 AS cor0
----
-30
-81
1

query I rowsort
SELECT + col2 * col0 + + 65 AS col1 FROM tab1 AS cor0
----
227
3713
7745

onlyif mysql # use DIV operator for integer division
query I rowsort label-8747
SELECT DISTINCT + col1 DIV + 92 - + col1 * col1 AS col1 FROM tab1 AS cor0
----
-100
-169
-676

skipif mysql # not compatible
query I rowsort label-8747
SELECT DISTINCT + col1 / + 92 - + col1 * col1 AS col1 FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT DISTINCT + cor0.col2 + ( + 89 ) AS col2 FROM tab0 cor0
----
122
171
90

onlyif mysql # use DIV operator for integer division
query I rowsort label-8749
SELECT - col1 DIV + col0 - col1 AS col0 FROM tab0
----
-89
-92
-99

skipif mysql # not compatible
query I rowsort label-8749
SELECT - col1 / + col0 - col1 AS col0 FROM tab0
----
-89
-92
-99

query I rowsort
SELECT - col1 + col2 * col0 AS col0 FROM tab2
----
158
1969
2985

query I rowsort
SELECT 18 + - col0 + 65 AS col0 FROM tab1
----
19
3
80

query I rowsort
SELECT DISTINCT - 45 AS col2 FROM tab1, tab2, tab0 cor0
----
-45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 61 col1 FROM tab2
----
61
61
61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 31 + - col2 - col1 col0 FROM tab0
----
-142
-67
-88

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8755
SELECT - CAST( NULL AS SIGNED ) FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-8755
SELECT - CAST ( NULL AS INTEGER ) FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT - 27 * - col1 AS col0 FROM tab1
----
270
351
702

query I rowsort
SELECT - ( + col0 ) + col1 * - tab1.col0 AS col0 FROM tab1
----
-1120
-704
-81

query I rowsort
SELECT ( col1 ) + col0 + col0 FROM tab2
----
175
215
45

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8759
SELECT DISTINCT - col0 + col1 - CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8759
SELECT DISTINCT - col0 + col1 - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query I rowsort
SELECT ALL col1 + + 80 FROM tab1
----
106
90
93

query I rowsort
SELECT DISTINCT col1 + - 43 FROM tab0
----
43
48
54

query I rowsort
SELECT - cor0.col0 * col1 * - 39 FROM tab1 AS cor0
----
24960
3042
40560

query I rowsort
SELECT - + col0 - + ( - cor0.col2 ) * + col2 FROM tab0 AS cor0
----
-34
1065
6635

query I rowsort
SELECT + cor0.col2 + - cor0.col0 * + col2 + col2 * 3 * - 49 AS col2 FROM tab0 AS cor0
----
-181
-19270
-5610

query I rowsort
SELECT - 2 * col0 FROM tab0 cor0
----
-178
-48
-70

onlyif mysql # use DIV operator for integer division
query I rowsort label-8766
SELECT DISTINCT + 99 * - col1 DIV + cor0.col1 FROM tab2 cor0
----
-99

skipif mysql # not compatible
query I rowsort label-8766
SELECT DISTINCT + 99 * - col1 / + cor0.col1 FROM tab2 cor0
----
-99

query I rowsort
SELECT + - 9 AS col0 FROM tab2 cor0
----
-9
-9
-9

onlyif mysql # use DIV operator for integer division
query I rowsort label-8768
SELECT + col0 + col0 DIV + ( col0 * - col1 ) AS col0 FROM tab0 cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-8768
SELECT + col0 + col0 / + ( col0 * - col1 ) AS col0 FROM tab0 cor0
----
24
35
89

query I rowsort
SELECT ALL - 66 + col2 AS col0 FROM tab2 AS cor0
----
-28
-39
-40

query I rowsort
SELECT DISTINCT 94 * col1 + - 50 FROM tab1 cor0
----
1172
2394
890

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * + col0 col1 FROM tab2 AS cor0
----
189
2028
3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 5 + col1 col1 FROM tab1 cor0
----
15
18
31

query I rowsort
SELECT ALL + col2 + + col2 + - ( + cor0.col0 ) FROM tab0 cor0
----
-33
42
75

query I rowsort
SELECT DISTINCT + - 18 + col0 FROM tab0 AS cor0
----
17
6
71

query I rowsort
SELECT DISTINCT - - col0 * col2 + - ( col0 ) AS col1 FROM tab2 AS cor0
----
182
1950
2923

query I rowsort
SELECT DISTINCT 28 * col0 + + 29 FROM tab2 cor0
----
2213
2241
225

query I rowsort
SELECT ALL + 25 * col2 + - ( - col2 ) * col1 AS col0 FROM tab0 AS cor0
----
122
3663
9512

query I rowsort
SELECT + col0 * 89 FROM tab2 AS cor0
----
623
6942
7031

query I rowsort
SELECT DISTINCT - col1 + col0 * + 63 AS col2 FROM tab1 AS cor0
----
163
4022
5027

query I rowsort
SELECT DISTINCT + col2 * + ( + col0 ) AS col0 FROM tab0 AS cor0
----
35
7298
792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * 34 col0 FROM tab2 AS cor0
----
1292
884
918

query I rowsort
SELECT ALL + col2 * + col2 + col2 FROM tab1 AS cor0
----
2970
3306
9312

skipif mysql # not compatible
query I rowsort
SELECT + - col2 * CAST ( col0 AS REAL ) AS col0 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT 56 * + 57 FROM tab0 cor0
----
3192
3192
3192

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8785
SELECT DISTINCT CAST( + col2 AS SIGNED ) * - col0 * - col1 + - 79 AS col2 FROM tab0 AS cor0
----
3316
664039
68033

skipif mysql # not compatible
query I rowsort label-8785
SELECT DISTINCT CAST ( + col2 AS INTEGER ) * - col0 * - col1 + - 79 AS col2 FROM tab0 AS cor0
----
3316
664039
68033

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8786
SELECT DISTINCT + - 39 + + col0 / - cor0.col1 + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8786
SELECT DISTINCT + - 39 + + col0 / - cor0.col1 + CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8787
SELECT + 51 * 7 + col2 * CAST( NULL AS SIGNED ) / col1 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-8787
SELECT + 51 * 7 + col2 * CAST ( NULL AS INTEGER ) / col1 col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + 53 ) col0 FROM tab0 AS cor0
----
-53

query I rowsort
SELECT DISTINCT + 92 AS col2 FROM tab2, tab0 AS cor0
----
92

query I rowsort
SELECT DISTINCT 75 FROM tab1, tab2 AS cor0
----
75

query I rowsort
SELECT ALL ( 38 ) FROM tab1, tab0 cor0
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7

query I rowsort
SELECT ALL ( + ( - cor0.col1 ) ) - ( col0 ) FROM tab1 AS cor0
----
-29
-74
-93

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8793
SELECT CAST( - col0 AS SIGNED ) col0 FROM tab1
----
-3
-64
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8793
SELECT CAST ( - col0 AS INTEGER ) col0 FROM tab1
----
-3
-64
-80

onlyif mysql # use DIV operator for integer division
query I rowsort label-8794
SELECT ALL - col1 DIV - col0 + cor0.col0 * + 49 AS col1 FROM tab1 AS cor0
----
155
3136
3920

skipif mysql # not compatible
query I rowsort label-8794
SELECT ALL - col1 / - col0 + cor0.col0 * + 49 AS col1 FROM tab1 AS cor0
----
155
3136
3920

query I rowsort
SELECT ALL + col0 * - col2 + + cor0.col0 FROM tab0 cor0
----
-7209
-768
0

query I rowsort
SELECT ALL - - 1 * - col2 + + ( 47 ) AS col0 FROM tab1 AS cor0
----
-10
-49
-7

query I rowsort
SELECT ALL tab0.col0 * 6 * col0 AS col2 FROM tab0
----
3456
47526
7350

query I rowsort
SELECT ALL 39 + + 54 FROM tab1 AS cor0
----
93
93
93

query I rowsort
SELECT DISTINCT - 58 AS col0 FROM tab1, tab2, tab1 AS cor0
----
-58

query I rowsort
SELECT ALL + col0 * - 14 AS col0 FROM tab0
----
-1246
-336
-490

onlyif mysql # use DIV operator for integer division
query I rowsort label-8801
SELECT + 15 DIV ( + col0 * + 69 ) FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8801
SELECT + 15 / ( + col0 * + 69 ) FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL cor1.col1 + 80 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 0d2352c41ee236fe2558e28bdd8c5eff

query I rowsort
SELECT - - 70 + - col0 * - col1 AS col0 FROM tab0 AS cor0
----
2134
3465
8169

query IIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 AS cor0 WHERE NOT NULL = ( NULL )
----

query I rowsort
SELECT 3 * - col1 FROM tab1
----
-30
-39
-78

query I rowsort
SELECT ALL 97 * - col2 AS col2 FROM tab2
----
-2522
-2619
-3686

onlyif mysql # use DIV operator for integer division
query I rowsort label-8807
SELECT ALL - + col0 DIV col2 AS col2 FROM tab1 cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-8807
SELECT ALL - + col0 / col2 AS col2 FROM tab1 cor0
----
-1
0
0

query I rowsort
SELECT DISTINCT + + col0 + cor0.col0 AS col0 FROM tab1 AS cor0
----
128
160
6

query I rowsort
SELECT - 13 * - cor0.col2 + + cor0.col2 * 35 AS col0 FROM tab2 AS cor0
----
1248
1296
1824

query I rowsort
SELECT + ( - col2 + 61 ) AS col2 FROM tab2
----
23
34
35

query I rowsort
SELECT + 61 * + tab1.col2 FROM tab1
----
3294
3477
5856

onlyif mysql # use DIV operator for integer division
query I rowsort label-8812
SELECT ALL - col0 DIV cor0.col0 AS col0 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8812
SELECT ALL - col0 / cor0.col0 AS col0 FROM tab2 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ALL + col1 * + 81 AS col0 FROM tab0 AS cor0
----
6966
7371
7857

onlyif mysql # use DIV operator for integer division
query I rowsort label-8814
SELECT DISTINCT + cor0.col0 * CAST( col1 AS SIGNED ) DIV col1 col2 FROM tab1 AS cor0
----
3
64
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8814
SELECT DISTINCT + cor0.col0 * CAST ( col1 AS INTEGER ) / col1 col2 FROM tab1 AS cor0
----
3
64
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8815
SELECT DISTINCT + + col1 + CAST( - 70 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
16
21
27

skipif mysql # not compatible
query I rowsort label-8815
SELECT DISTINCT + + col1 + CAST ( - 70 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
16
21
27

query I rowsort
SELECT + col1 + + col1 * - col2 AS col0 FROM tab0 AS cor0
----
-2752
-7371
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-8817
SELECT + col1 DIV ( + 49 ) AS col1 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8817
SELECT + col1 / ( + 49 ) AS col1 FROM tab0 AS cor0
----
1
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-8818
SELECT ALL - col1 DIV - ( 48 * col1 ) FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8818
SELECT ALL - col1 / - ( 48 * col1 ) FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + col2 + col1 * - ( + cor0.col2 ) AS col2 FROM tab2 AS cor0
----
-1508
-608
-810

query I rowsort
SELECT DISTINCT - - col1 + + 18 AS col1 FROM tab0 AS cor0
----
104
109
115

query I rowsort
SELECT + + col2 + 60 * + col1 FROM tab2 AS cor0
----
1058
1887
3566

query I rowsort
SELECT DISTINCT - - cor0.col0 * + ( col0 ) + + col2 FROM tab1 AS cor0
----
4153
63
6496

onlyif mysql # use DIV operator for integer division
query I rowsort label-8823
SELECT col2 DIV + ( + col2 ) AS col2 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8823
SELECT col2 / + ( + col2 ) AS col2 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT ALL col0 + - col1 * 76 + col2 AS col0 FROM tab1
----
-1919
-639
-812

query I rowsort
SELECT + cor0.col1 * + 33 + - col0 AS col1 FROM tab1 AS cor0
----
266
349
855

query I rowsort
SELECT + + col0 * + 98 + - col0 AS col1 FROM tab1 AS cor0
----
291
6208
7760

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * 16 col0 FROM tab0
----
1424
384
560

query I rowsort
SELECT - col2 * ( 59 ) FROM tab2
----
-1534
-1593
-2242

query I rowsort
SELECT - col2 * - col1 AS col2 FROM tab1 cor0
----
1248
1404
570

query I rowsort
SELECT - ( + cor0.col1 ) * 91 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 77f5ab0426ffe1ba085f75cb471d1c47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - cor0.col0 col1 FROM tab1, tab1 AS cor0, tab1 AS cor1, tab0, tab1 AS cor2
----
3
64
80

query I rowsort
SELECT 97 AS col0 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to c73fa6978df8525c99d6bc792bb27123

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * + col2 + cor0.col2 + col2 col0 FROM tab2 AS cor0
----
-135
-1976
-2926

query I rowsort
SELECT ALL + ( + col0 ) * + col0 AS col0 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT ALL - ( col2 ) + col0 * + col1 AS col0 FROM tab1 AS cor0
----
24
583
944

query I rowsort
SELECT + + col2 * ( - col0 ) AS col1 FROM tab0 AS cor0
----
-35
-7298
-792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + 79 ) col0 FROM tab2 AS cor0
----
-79
-79
-79

onlyif mysql # use DIV operator for integer division
query I rowsort label-8838
SELECT ( - 7 ) DIV + col0 AS col0 FROM tab1 cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-8838
SELECT ( - 7 ) / + col0 AS col0 FROM tab1 cor0
----
-2
0
0

query I rowsort
SELECT + col0 * + col0 * col1 AS col1 FROM tab0
----
118825
49536
720811

query I rowsort
SELECT + cor0.col1 + + col1 * + cor0.col1 AS col0 FROM tab1 AS cor0
----
110
182
702

query I rowsort
SELECT DISTINCT - - col1 * + col1 + col0 FROM tab2 AS cor0
----
3559
368
968

query I rowsort
SELECT DISTINCT 91 + - cor0.col2 AS col0 FROM tab1, tab0 AS cor0
----
58
9
90

onlyif mysql # use DIV operator for integer division
query I rowsort label-8843
SELECT - - 30 DIV + col0 - - col1 FROM tab0 cor0
----
87
91
97

skipif mysql # not compatible
query I rowsort label-8843
SELECT - - 30 / + col0 - - col1 FROM tab0 cor0
----
87
91
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + col1 * col2 col2 FROM tab2 AS cor0
----
1508
608
810

query I rowsort
SELECT + - 25 + - col1 AS col0 FROM tab1 cor0
----
-35
-38
-51

query I rowsort
SELECT - + col0 - col0 AS col2 FROM tab2 cor0
----
-14
-156
-158

query I rowsort
SELECT + col0 - - col1 * - col0 AS col1 FROM tab0 cor0
----
-2040
-3360
-8010

query I rowsort
SELECT - col1 * + col2 - - col1 FROM tab1 AS cor0
----
-1235
-1378
-560

query I rowsort
SELECT 37 AS col2 FROM tab1, tab2 cor0
----
9 values hashing to a10b03e72860b949bdff53827700a9a8

query I rowsort
SELECT DISTINCT - ( - 60 ) * col1 FROM tab0
----
5160
5460
5820

query I rowsort
SELECT ALL - ( tab0.col0 ) FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8

query I rowsort
SELECT DISTINCT + ( + cor0.col1 ) + tab2.col0 AS col1 FROM tab2, tab1, tab0 AS cor0
----
9 values hashing to b4f1c386be87fcd5849dc0c2155c8ce7

query I rowsort
SELECT + 56 * col1 AS col2 FROM tab1 AS cor0
----
1456
560
728

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8854
SELECT CAST( NULL AS SIGNED ) + 66 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8854
SELECT CAST ( NULL AS INTEGER ) + 66 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + + col0 + - col2 * col0 FROM tab0 AS cor0
----
-7209
-768
0

query I rowsort
SELECT + 56 * + col2 AS col1 FROM tab1
----
3024
3192
5376

query I rowsort
SELECT - - 20 AS col2 FROM tab2 cor0
----
20
20
20

query I rowsort
SELECT DISTINCT - 7 * + col0 FROM tab0 AS cor0
----
-168
-245
-623

query I rowsort
SELECT - - 0 * col2 * col2 AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col1 * - col1 * 92 - 85 FROM tab0 AS cor0
----
-680517
-761937
-865713

query I rowsort
SELECT ALL + - 62 * + cor0.col0 FROM tab2 AS cor0
----
-434
-4836
-4898

onlyif mysql # use DIV operator for integer division
query I rowsort label-8862
SELECT ALL + cor0.col2 DIV - col2 - col1 AS col0 FROM tab0 cor0
----
-87
-92
-98

skipif mysql # not compatible
query I rowsort label-8862
SELECT ALL + cor0.col2 / - col2 - col1 AS col0 FROM tab0 cor0
----
-87
-92
-98

query I rowsort
SELECT ALL + - 84 FROM tab2 AS cor0
----
-84
-84
-84

onlyif mysql # use DIV operator for integer division
query I rowsort label-8864
SELECT + col1 DIV col1 - 55 AS col0 FROM tab0 AS cor0
----
-54
-54
-54

skipif mysql # not compatible
query I rowsort label-8864
SELECT + col1 / col1 - 55 AS col0 FROM tab0 AS cor0
----
-54
-54
-54

query I rowsort
SELECT ALL col1 * + 35 + col2 + - col2 * col0 * - col0 AS col1 FROM tab1 AS cor0
----
1450
233879
614951

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8866
SELECT + cor0.col0 * CAST( 86 AS SIGNED ) - col0 AS col2 FROM tab0 AS cor0
----
2040
2975
7565

skipif mysql # not compatible
query I rowsort label-8866
SELECT + cor0.col0 * CAST ( 86 AS INTEGER ) - col0 AS col2 FROM tab0 AS cor0
----
2040
2975
7565

query I rowsort
SELECT + col2 * ( - col0 * col0 ) FROM tab2 AS cor0
----
-1323
-158184
-237158

onlyif mysql # use DIV operator for integer division
query I rowsort label-8868
SELECT - col0 DIV - col1 + col0 + col1 FROM tab1 AS cor0
----
29
80
99

skipif mysql # not compatible
query I rowsort label-8868
SELECT - col0 / - col1 + col0 + col1 FROM tab1 AS cor0
----
29
80
99

query I rowsort
SELECT ( col0 * ( col2 ) ) AS col0 FROM tab0
----
35
7298
792

query I rowsort
SELECT 32 * col0 * + ( + 97 ) + - col2 FROM tab2
----
21701
242086
245178

query I rowsort
SELECT ALL col2 * + col1 AS col0 FROM tab1 WHERE NOT + col2 IN ( col1 )
----
1248
1404
570

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL = ( + col2 )
----

query I rowsort
SELECT + col0 * + col2 + + col2 + col1 FROM tab0
----
133
7471
911

query III rowsort
SELECT * FROM tab2 WHERE ( col2 ) <> col2
----

query I rowsort
SELECT ALL - col2 * + col0 - col2 FROM tab1
----
-216
-3705
-7776

query I rowsort
SELECT ALL col2 + - col0 AS col2 FROM tab1
----
-7
16
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * + col0 + - col0 col2 FROM tab2
----
182
1950
2923

query I rowsort
SELECT - col1 + - col1 * col2 AS col2 FROM tab0
----
-194
-2924
-7553

query I rowsort
SELECT ALL + col0 * col2 + col0 FROM tab1
----
165
3712
7760

query I rowsort
SELECT ALL col2 + tab0.col2 AS col0 FROM tab0 WHERE col2 NOT IN ( - col0 * col1 )
----
164
2
66

query I rowsort
SELECT DISTINCT - col1 + - col1 * + tab0.col2 FROM tab0
----
-194
-2924
-7553

query I rowsort
SELECT - col0 + tab1.col1 * col1 AS col2 FROM tab1
----
36
673
89

query I rowsort
SELECT ALL col2 AS col0 FROM tab0 WHERE NOT ( NULL ) > col2 * + col2 - col2
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col1 NOT BETWEEN col0 - - col0 * col1 AND col0 + col2
----

query I rowsort
SELECT col1 * + tab0.col2 * col2 + + col0 AS col0 FROM tab0
----
132
611973
93678

query I rowsort
SELECT ALL col0 * - tab2.col0 + + col2 AS col0 FROM tab2
----
-22
-6058
-6203

query I rowsort
SELECT + col0 + col2 * col2 * + col0 AS col0 FROM tab0
----
26160
598525
70

query I rowsort
SELECT ALL + tab0.col2 * + col1 AS col0 FROM tab0 WHERE NOT + col2 IN ( col1 * tab0.col1 * + col0 )
----
2838
7462
97

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col2 < col1
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

query I rowsort
SELECT ALL + 55 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 832128adb1ddc65c3105e29cc2c8b3a3

onlyif mysql # use DIV operator for integer division
query I rowsort label-8891
SELECT - col2 DIV + cor0.col1 FROM tab1 cor0
----
-2
-5
-7

skipif mysql # not compatible
query I rowsort label-8891
SELECT - col2 / + cor0.col1 FROM tab1 cor0
----
-2
-5
-7

query I rowsort
SELECT col0 + + col1 * - col2 FROM tab1 AS cor0
----
-1168
-1401
-506

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8893
SELECT CAST( - ( - col1 ) AS SIGNED ) AS col0 FROM tab0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-8893
SELECT CAST ( - ( - col1 ) AS INTEGER ) AS col0 FROM tab0
----
86
91
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8894
SELECT DISTINCT - col2 * col1 * - CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8894
SELECT DISTINCT - col2 * col1 * - CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-8895
SELECT DISTINCT + + 49 + cor0.col2 DIV - col0 FROM tab1 AS cor0
----
31
48
49

skipif mysql # not compatible
query I rowsort label-8895
SELECT DISTINCT + + 49 + cor0.col2 / - col0 FROM tab1 AS cor0
----
31
48
49

query I rowsort
SELECT col0 + - col1 * 25 AS col0 FROM tab0 AS cor0
----
-2126
-2186
-2390

query I rowsort
SELECT ALL - cor0.col1 * + col1 + col2 FROM tab1 AS cor0
----
-43
-622
-73

query I rowsort
SELECT ALL + 70 * - col0 FROM tab1 AS cor0
----
-210
-4480
-5600

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + - col1 * col0 col0 FROM tab0 AS cor0
----
-2097
-3396
-8181

query I rowsort
SELECT + col1 + cor0.col0 * cor0.col1 FROM tab1 AS cor0
----
104
1053
650

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8901
SELECT ALL - tab2.col0 * CAST( col1 AS SIGNED ) * - col1 + tab2.col2 + ( col1 ) * col0 FROM tab2
----
24212
276146
6971

skipif mysql # not compatible
query I rowsort label-8901
SELECT ALL - tab2.col0 * CAST ( col1 AS INTEGER ) * - col1 + tab2.col2 + ( col1 ) * col0 FROM tab2
----
24212
276146
6971

query I rowsort
SELECT ALL + col0 * + 58 + - col1 * col1 FROM tab0 AS cor0
----
-3119
-6004
-7379

query I rowsort
SELECT ALL + col1 + - cor0.col2 AS col0 FROM tab0 cor0
----
53
9
96

query I rowsort
SELECT ALL col2 * 33 + + col1 + - col2 AS col0 FROM tab2 AS cor0
----
1233
891
895

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8905
SELECT + col1 + + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8905
SELECT + col1 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - - col0 * - col0 * col0 FROM tab0 AS cor0
----
-13824
-42875
-704969

query I rowsort
SELECT DISTINCT - col2 + col0 + - col1 AS col0 FROM tab0 AS cor0
----
-63
-84
-95

query I rowsort
SELECT ALL + + 77 * 57 FROM tab1 cor0
----
4389
4389
4389

query I rowsort
SELECT + 52 + col2 AS col1 FROM tab1
----
106
109
148

query I rowsort
SELECT DISTINCT col2 * + 39 FROM tab1 AS cor0
----
2106
2223
3744

query I rowsort
SELECT 76 FROM tab1 cor0 CROSS JOIN tab0, tab0 AS cor1, tab1 cor2
----
81 values hashing to a8a6c4c5005303c62d4e50b6c96b584f

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8912
SELECT - + CAST( + 72 AS SIGNED ) * col0 + + cor0.col1 AS col1 FROM tab0 AS cor0
----
-1642
-2423
-6317

skipif mysql # not compatible
query I rowsort label-8912
SELECT - + CAST ( + 72 AS INTEGER ) * col0 + + cor0.col1 AS col1 FROM tab0 AS cor0
----
-1642
-2423
-6317

query I rowsort
SELECT + col2 * col1 + col1 + col2 * col2 FROM tab2 AS cor0
----
1597
2107
2269

query I rowsort
SELECT DISTINCT + - col2 * col2 * + col2 FROM tab1 AS cor0
----
-157464
-185193
-884736

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - 61 col2 FROM tab0 AS cor0
----
25
30
36

query I rowsort
SELECT - col0 * - cor0.col0 + col1 AS col1 FROM tab2 AS cor0
----
6143
6258
80

query I rowsort
SELECT - - 27 + - col2 * - col0 FROM tab0 AS cor0
----
62
7325
819

query I rowsort
SELECT + col0 * + col1 + cor0.col1 FROM tab2 AS cor0
----
1360
248
4661

query I rowsort
SELECT ALL col0 * + 9 FROM tab1
----
27
576
720

onlyif mysql # use DIV operator for integer division
query I rowsort label-8920
SELECT col1 DIV col1 + + col0 * cor0.col1 * col0 AS col2 FROM tab0 AS cor0
----
118826
49537
720812

skipif mysql # not compatible
query I rowsort label-8920
SELECT col1 / col1 + + col0 * cor0.col1 * col0 AS col2 FROM tab0 AS cor0
----
118826
49537
720812

query I rowsort
SELECT 52 + col1 AS col2 FROM tab2 AS cor0
----
111
69
83

query I rowsort
SELECT ( 93 ) * - cor0.col0 + col2 * col2 AS col2 FROM tab0 AS cor0
----
-1143
-1553
-3254

query I rowsort
SELECT + 73 * col2 + cor0.col1 FROM tab2 cor0
----
1957
2002
2791

query I rowsort
SELECT DISTINCT col2 * - 41 + + col0 * + col0 + col0 FROM tab2
----
-1051
4762
5096

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2 cor0 CROSS JOIN tab2, tab1 AS cor1, tab0 cor2
----
972 values hashing to e84152c0bf436177d3b3d80e42832d4f

onlyif mysql # use DIV operator for integer division
query I rowsort label-8926
SELECT + col0 DIV + 87 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8926
SELECT + col0 / + 87 FROM tab0
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 42 col0 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
42

query I rowsort
SELECT ALL col1 + - 56 * + 20 FROM tab2
----
-1061
-1089
-1103

query I rowsort
SELECT tab0.col1 * + ( col2 ) AS col2 FROM tab0
----
2838
7462
97

query I rowsort
SELECT col2 * 31 * - col0 AS col0 FROM tab1
----
-113088
-238080
-5022

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8931
SELECT CAST( col2 AS SIGNED ) + col1 * - col1 AS col1 FROM tab0 AS cor0
----
-7363
-8199
-9408

skipif mysql # not compatible
query I rowsort label-8931
SELECT CAST ( col2 AS INTEGER ) + col1 * - col1 AS col1 FROM tab0 AS cor0
----
-7363
-8199
-9408

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 34 * 20 col2 FROM tab1
----
680
680
680

query I rowsort
SELECT ALL + ( 16 ) * + cor0.col2 AS col0 FROM tab1 cor0
----
1536
864
912

query I rowsort
SELECT DISTINCT - cor0.col0 FROM tab1, tab0 AS cor0 CROSS JOIN tab0
----
-24
-35
-89

query I rowsort
SELECT ALL - col1 * col1 + col2 FROM tab1 cor0
----
-43
-622
-73

query I rowsort
SELECT col1 * + tab1.col0 * col2 AS col1 FROM tab1
----
36480
4212
99840

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * - col1 * col0 col2 FROM tab1
----
-234
-40960
-83200

onlyif mysql # use DIV operator for integer division
query I rowsort label-8938
SELECT col0 + + tab0.col2 DIV + col2 - - tab0.col1 AS col1 FROM tab0
----
111
133
181

skipif mysql # not compatible
query I rowsort label-8938
SELECT col0 + + tab0.col2 / + col2 - - tab0.col1 AS col1 FROM tab0
----
111
133
181

query I rowsort
SELECT DISTINCT tab0.col1 + - col2 * - col0 * + col0 - + col0 FROM tab0
----
1287
19070
649524

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + col1 + - col2 col2 FROM tab0
----
-73
20
95

query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 + - col0 BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * col2 * + tab2.col1 col1 FROM tab2
----
10982
25947
90506

query I rowsort
SELECT - col1 + col2 + col0 AS col1 FROM tab1
----
111
163
31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab0.col1 * tab0.col0 * - tab0.col0 col0 FROM tab0
----
118825
49536
720811

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 col0 FROM tab2 AS cor0 WHERE NOT col2 >= ( col1 )
----
7
78

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col1 * + cor0.col1 col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 9708a433b981d9b5fd095bfe2ea45aea

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * - tab2.col1 col1 FROM tab2
----
-1343
-217
-4602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - tab0.col2 col0 FROM tab0
----
-1
-1089
-6724

query I rowsort
SELECT ALL + col1 + + cor0.col2 * - col2 AS col2 FROM tab0 AS cor0
----
-1003
-6633
96

query I rowsort
SELECT - 10 AS col2 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to bb7f754a7a056e665155ed52a63f5bc0

query I rowsort
SELECT - col0 * 46 + + col0 AS col1 FROM tab0 AS cor0
----
-1080
-1575
-4005

query I rowsort
SELECT DISTINCT - + col1 + - 64 * ( col0 ) AS col0 FROM tab1 AS cor0
----
-218
-4106
-5133

query I rowsort
SELECT DISTINCT - - col1 * 53 - col1 FROM tab1 cor0
----
1352
520
676

query I rowsort
SELECT + + col2 * + 48 * cor0.col1 + + col0 FROM tab2 cor0
----
31087
40183
73710

query I rowsort
SELECT ALL col0 * 3 + + 83 + cor0.col2 * ( - col1 ) FROM tab1 AS cor0
----
-1312
-295
-925

query I rowsort
SELECT 7 FROM tab1, tab1 cor0, tab2 AS cor1
----
27 values hashing to 4e72e9e33dacac757f48d0ce46094607

query I rowsort
SELECT + cor0.col1 + cor0.col2 AS col2 FROM tab0 AS cor0
----
119
173
98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8959
SELECT + - CAST( NULL AS SIGNED ) + 19 * col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8959
SELECT + - CAST ( NULL AS INTEGER ) + 19 * col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col0 * - 7 FROM tab0 AS cor0
----
-168
-245
-623

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 58 + col2 * cor0.col0 col0 FROM tab0 cor0
----
-23
7240
734

query I rowsort
SELECT - + cor0.col0 * + ( col2 * 56 + col0 ) AS col2 FROM tab2 AS cor0
----
-10633
-119652
-174353

query I rowsort
SELECT + ( - col2 ) * + col1 AS col0 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT cor0.col2 + + col2 * - col0 FROM tab2 AS cor0
----
-162
-2002
-2964

query I rowsort
SELECT DISTINCT ( col0 ) * cor0.col0 AS col1 FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT DISTINCT + col0 * 89 * col1 AS col0 FROM tab2 cor0
----
119527
19313
409578

query I rowsort
SELECT + 92 * + cor0.col0 AS col2 FROM tab0 AS cor0
----
2208
3220
8188

query I rowsort
SELECT ALL + col1 + + cor0.col1 + - col1 AS col1 FROM tab2 AS cor0
----
17
31
59

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8969
SELECT + CAST( NULL AS DECIMAL ) / - col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8969
SELECT + CAST ( NULL AS REAL ) / - col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col0 * - cor0.col1 + col1 AS col1 FROM tab0 cor0
----
2150
3492
8190

onlyif mysql # use DIV operator for integer division
query I rowsort label-8971
SELECT ALL ( cor0.col2 ) DIV + col0 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8971
SELECT ALL ( cor0.col2 ) / + col0 FROM tab0 AS cor0
----
0
0
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-8972
SELECT + + col2 + + col1 DIV + col2 col0 FROM tab1 AS cor0
----
54
57
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8972
SELECT + + col2 + + col1 / + col2 col0 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT ALL ( cor0.col2 ) * 16 + col1 FROM tab1 AS cor0
----
1549
890
922

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 2 col2 FROM tab1 cor0
----
2
2
2

query I rowsort
SELECT DISTINCT col1 + - col2 * col1 AS col2 FROM tab1
----
-1235
-1378
-560

query I rowsort
SELECT - ( cor0.col0 ) * + ( - col1 ) * + col1 + - 25 FROM tab2 AS cor0
----
22806
271493
6702

query I rowsort
SELECT + + col2 * col2 + - 55 FROM tab1 AS cor0
----
2861
3194
9161

query I rowsort
SELECT DISTINCT col2 + col2 + - col2 * - col1 AS col2 FROM tab2 AS cor0
----
1586
722
891

query I rowsort
SELECT - 88 * cor0.col0 AS col1 FROM tab1 AS cor0
----
-264
-5632
-7040

query I rowsort
SELECT ALL + ( + col2 ) * - cor0.col0 * - 92 + col0 AS col2 FROM tab2 AS cor0
----
17395
186654
276263

query I rowsort
SELECT DISTINCT - ( - cor0.col1 ) * + col0 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT - col1 - - col1 * - col2 FROM tab2 cor0
----
-1593
-663
-868

query I rowsort
SELECT ALL 3 + cor0.col2 FROM tab1 AS cor0
----
57
60
99

query I rowsort
SELECT ALL - 2 + - col2 FROM tab2 AS cor0
----
-28
-29
-40

query I rowsort
SELECT 23 - col1 AS col1 FROM tab1 AS cor0
----
-3
10
13

query I rowsort
SELECT ALL col1 + col0 * 1 FROM tab2 AS cor0
----
137
38
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-8987
SELECT col2 DIV - col0 + col2 AS col0 FROM tab1 AS cor0
----
36
57
95

skipif mysql # not compatible
query I rowsort label-8987
SELECT col2 / - col0 + col2 AS col0 FROM tab1 AS cor0
----
36
57
95

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8988
SELECT - - col0 + CAST( NULL AS SIGNED ) + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8988
SELECT - - col0 + CAST ( NULL AS INTEGER ) + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 * col2 + 14 col0 FROM tab0 AS cor0
----
1103
15
6738

query I rowsort
SELECT + tab2.col2 - tab2.col1 FROM tab2
----
-33
-4
21

query I rowsort
SELECT ALL + + col2 * - col1 + - ( col1 ) AS col1 FROM tab1 cor0
----
-1261
-1430
-580

query I rowsort
SELECT DISTINCT - + col2 + col2 + + col2 AS col0 FROM tab0 AS cor0
----
1
33
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + 54 col2 FROM tab0 AS cor0
----
136
55
87

query I rowsort
SELECT ALL - - col0 + - col1 * - col0 FROM tab0 AS cor0
----
2088
3430
8188

query I rowsort
SELECT ALL + - col0 * col2 + col1 * col0 + - 52 FROM tab1 AS cor0
----
-136
-3060
-6692

query I rowsort
SELECT col0 + col2 * 29 AS col0 FROM tab1 AS cor0
----
1569
1717
2864

query I rowsort
SELECT ALL + + col2 + col1 + - col2 * - cor0.col0 FROM tab0 AS cor0
----
133
7471
911

onlyif mysql # use DIV operator for integer division
query I rowsort label-8998
SELECT DISTINCT col0 * ( - ( col1 ) ) + col2 DIV col0 FROM tab0 AS cor0
----
-2063
-3395
-8099

skipif mysql # not compatible
query I rowsort label-8998
SELECT DISTINCT col0 * ( - ( col1 ) ) + col2 / col0 FROM tab0 AS cor0
----
-2063
-3395
-8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + col2 + col2 * col1 col2 FROM tab2
----
1638
763
871

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9000
SELECT ALL - col0 * tab2.col2 + + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9000
SELECT ALL - col0 * tab2.col2 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 * 27 FROM tab2 cor0
----
-189
-2106
-2133

onlyif mysql # use DIV operator for integer division
query I rowsort label-9002
SELECT - col2 + tab0.col1 DIV - col0 + + col0 AS col1 FROM tab0
----
-12
32
6

skipif mysql # not compatible
query I rowsort label-9002
SELECT - col2 + tab0.col1 / - col0 + + col0 AS col1 FROM tab0
----
-12
32
6

query I rowsort
SELECT + ( col1 ) + - col2 + col1 FROM tab1
----
-2
-37
-70

query I rowsort
SELECT ALL + col1 + 80 AS col1 FROM tab1 AS cor0
----
106
90
93

onlyif mysql # use DIV operator for integer division
query I rowsort label-9005
SELECT - - col1 DIV col2 + col0 FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-9005
SELECT - - col1 / col2 + col0 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT DISTINCT - col2 * col0 * col0 FROM tab2 AS cor0
----
-1323
-158184
-237158

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab1.col0 * col2 col1 FROM tab1
----
162
3648
7680

skipif mysql # not compatible
query I rowsort
SELECT col1 * - col0 + CAST ( col2 AS REAL ) FROM tab1
----
-24
-583
-944

query I rowsort
SELECT - ( col2 * 11 ) + + col2 + col1 AS col0 FROM tab0
----
-244
-729
87

query I rowsort
SELECT + 58 * 83 AS col2 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 714d6e5463958356bab44b12d8916861

query I rowsort
SELECT DISTINCT - + 57 + cor0.col0 - 4 AS col2 FROM tab2, tab1, tab2 AS cor0
----
-54
17
18

query I rowsort
SELECT ALL - ( - cor0.col2 ) + - col0 * cor0.col1 FROM tab0 AS cor0
----
-2031
-3394
-8017

query I rowsort
SELECT ALL + - ( col1 ) * + col0 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT - 95 * col0 AS col2 FROM tab0 AS cor0
----
-2280
-3325
-8455

query I rowsort
SELECT + - 22 * col0 AS col1 FROM tab2 AS cor0
----
-154
-1716
-1738

query I rowsort
SELECT - cor1.col1 FROM tab1, tab2 cor0, tab2, tab1 AS cor1
----
81 values hashing to 96e9ef2950805bca93a295eeea43ef5b

query I rowsort
SELECT DISTINCT + + col1 * 93 AS col2 FROM tab2 AS cor0
----
1581
2883
5487

query I rowsort
SELECT ALL + ( cor0.col1 ) + cor0.col2 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT - 18 * + col2 - - col0 * ( col1 ) FROM tab1 AS cor0
----
-386
-688
-894

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9020
SELECT - - col2 * + 21 + col0 / CAST( NULL AS SIGNED ) col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9020
SELECT - - col2 * + 21 + col0 / CAST ( NULL AS INTEGER ) col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + col0 + + 46 AS col1 FROM tab2 AS cor0
----
124
125
53

query I rowsort
SELECT - 39 - col1 * + cor0.col2 FROM tab2 AS cor0
----
-1573
-685
-876

query I rowsort
SELECT DISTINCT cor0.col0 AS col0 FROM tab2, tab1 cor0, tab2 cor1
----
3
64
80

query I rowsort
SELECT - + 59 + col2 * col1 * + ( col2 ) FROM tab0 AS cor0
----
38
611825
93595

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9025
SELECT DISTINCT + CAST( NULL AS SIGNED ) + col2 AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9025
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + col2 AS col1 FROM tab0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9026
SELECT + CAST( - 79 AS SIGNED ) + col1 FROM tab2
----
-20
-48
-62

skipif mysql # not compatible
query I rowsort label-9026
SELECT + CAST ( - 79 AS INTEGER ) + col1 FROM tab2
----
-20
-48
-62

query I rowsort
SELECT + col0 * - 98 FROM tab2 AS cor0
----
-686
-7644
-7742

query I rowsort
SELECT DISTINCT + col2 * - col1 + - ( col0 ) * col2 + col1 AS col0 FROM tab1 AS cor0
----
-1540
-4208
-8915

query I rowsort
SELECT ALL + col2 + ( col1 ) + + col0 FROM tab2 AS cor0
----
134
163
65

query I rowsort
SELECT tab0.col0 + ( - col1 ) * - col1 * + col1 FROM tab0
----
636080
753660
912708

query I rowsort
SELECT ALL + col1 + 93 FROM tab2
----
110
124
152

query I rowsort
SELECT 30 + + 62 AS col1 FROM tab2 AS cor0
----
92
92
92

query I rowsort
SELECT DISTINCT + col2 + 17 FROM tab1
----
113
71
74

query I rowsort
SELECT ALL cor0.col0 * cor0.col0 FROM tab0, tab2 cor0
----
9 values hashing to 458b4c13e6825f9686b15a38663930f4

query I rowsort
SELECT ALL tab1.col2 + - ( ( - col0 ) ) AS col2 FROM tab1
----
121
176
57

query I rowsort
SELECT DISTINCT - ( ( col1 ) ) * - ( 54 ) + col0 AS col0 FROM tab0 AS cor0
----
4668
5003
5273

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 0 col1 FROM tab1 AS cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-9038
SELECT ALL + + 39 DIV - col1 FROM tab1 cor0
----
-1
-3
-3

skipif mysql # not compatible
query I rowsort label-9038
SELECT ALL + + 39 / - col1 FROM tab1 cor0
----
-1
-3
-3

query I rowsort
SELECT DISTINCT + cor0.col0 * + 1 * tab2.col1 FROM tab2, tab1 cor0
----
9 values hashing to 513658d2b0deb2a03e2701049cc4e166

query I rowsort
SELECT DISTINCT col2 - 44 * col2 * - col1 AS col1 FROM tab0
----
124905
328410
4269

query I rowsort
SELECT + 6 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821

query I rowsort
SELECT ALL 90 AS col1 FROM tab0
----
90
90
90

query I rowsort
SELECT + col0 + col2 + col2 AS col1 FROM tab1
----
111
178
272

onlyif mysql # use DIV operator for integer division
query I rowsort label-9044
SELECT - 87 DIV 57 - cor0.col2 AS col0 FROM tab1 AS cor0
----
-55
-58
-97

skipif mysql # not compatible
query I rowsort label-9044
SELECT - 87 / 57 - cor0.col2 AS col0 FROM tab1 AS cor0
----
-55
-58
-97

query I rowsort
SELECT col1 * 90 * col2 FROM tab1 AS cor0
----
112320
126360
51300

query I rowsort
SELECT DISTINCT - ( + col1 ) * + 14 FROM tab1
----
-140
-182
-364

query I rowsort
SELECT 83 * col2 AS col2 FROM tab1
----
4482
4731
7968

onlyif mysql # use DIV operator for integer division
query I rowsort label-9048
SELECT ALL col0 DIV - col1 AS col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9048
SELECT ALL col0 / - col1 AS col2 FROM tab0
----
0
0
0

query I rowsort
SELECT - cor0.col0 * + 42 FROM tab1 AS cor0
----
-126
-2688
-3360

query I rowsort
SELECT - + col1 + 69 FROM tab0 AS cor0
----
-17
-22
-28

query I rowsort
SELECT DISTINCT 48 FROM tab1 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab1 AS cor2
----
48

query I rowsort
SELECT + cor0.col1 + 73 * col2 FROM tab1 AS cor0
----
3968
4171
7021

onlyif mysql # use DIV operator for integer division
query I rowsort label-9053
SELECT + col1 DIV + 23 AS col2 FROM tab0 AS cor0
----
3
3
4

skipif mysql # not compatible
query I rowsort label-9053
SELECT + col1 / + 23 AS col2 FROM tab0 AS cor0
----
3
3
4

query I rowsort
SELECT DISTINCT col0 + 25 * 75 FROM tab0 AS cor0
----
1899
1910
1964

query I rowsort
SELECT DISTINCT - col0 + + col2 + - ( + col0 * 96 ) AS col1 FROM tab0 AS cor0
----
-2295
-3394
-8551

onlyif mysql # use DIV operator for integer division
query I rowsort label-9056
SELECT - - col0 DIV - 80 AS col2 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-9056
SELECT - - col0 / - 80 AS col2 FROM tab0 AS cor0
----
-1
0
0

query I rowsort
SELECT DISTINCT - col2 - - col2 * + 5 FROM tab1 cor0
----
216
228
384

query I rowsort
SELECT DISTINCT ( + col1 ) + col1 AS col0 FROM tab1
----
20
26
52

query I rowsort
SELECT ALL - + col1 * + col1 * - ( - col2 ) AS col2 FROM tab1 AS cor0
----
-16224
-36504
-5700

query I rowsort
SELECT + 79 * col1 + col0 + - col2 AS col0 FROM tab0 AS cor0
----
6785
7196
7697

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 24 col1 FROM tab0
----
-24
-24
-24

query I rowsort
SELECT + 38 * + tab2.col2 AS col0 FROM tab2
----
1026
1444
988

query I rowsort
SELECT DISTINCT - cor0.col2 + col1 AS col0 FROM tab2 AS cor0
----
-21
33
4

onlyif mysql # use DIV operator for integer division
query I rowsort label-9064
SELECT ALL + - 20 DIV + col2 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9064
SELECT ALL + - 20 / + col2 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT 9 + col1 FROM tab1 AS cor0
----
19
22
35

query I rowsort
SELECT DISTINCT + cor0.col2 + col0 * col1 * ( + col1 ) FROM tab0 cor0
----
177537
329316
737091

query I rowsort
SELECT DISTINCT col0 * + col1 - + col2 FROM tab1
----
24
583
944

onlyif mysql # use DIV operator for integer division
query I rowsort label-9068
SELECT ALL - col1 DIV CAST( + col2 * - col1 + 29 AS SIGNED ) FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9068
SELECT ALL - col1 / CAST ( + col2 * - col1 + 29 AS INTEGER ) FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT col0 * - col0 * 71 + col2 * col1 - col1 * col0 FROM tab2
----
-2859
-435032
-443808

query I rowsort
SELECT ALL col2 - + tab0.col1 * col2 FROM tab0
----
-2805
-7380
-96

query I rowsort
SELECT col1 * 54 FROM tab1
----
1404
540
702

query I rowsort
SELECT + - col0 + ( + col1 ) * - col2 FROM tab0 AS cor0
----
-132
-2862
-7551

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 * + col1 col1 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT DISTINCT + - col2 + ( 5 ) AS col1 FROM tab1 AS cor0
----
-49
-52
-91

query I rowsort
SELECT tab1.col0 * col2 + + col2 AS col1 FROM tab1
----
216
3705
7776

query I rowsort
SELECT 26 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584

onlyif mysql # use DIV operator for integer division
query I rowsort label-9077
SELECT DISTINCT + - col0 - + col0 DIV col1 FROM tab1 AS cor0
----
-3
-70
-86

skipif mysql # not compatible
query I rowsort label-9077
SELECT DISTINCT + - col0 - + col0 / col1 FROM tab1 AS cor0
----
-3
-70
-86

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9078
SELECT ALL CAST( + col2 AS SIGNED ) + + col1 col0 FROM tab1 AS cor0
----
109
67
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9078
SELECT ALL CAST ( + col2 AS INTEGER ) + + col1 col0 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT - + ( col2 ) + col2 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col2 + + col0 * col2 col0 FROM tab0 AS cor0
----
36
7380
825

query I rowsort
SELECT ALL + 26 * - cor0.col1 FROM tab1 cor0
----
-260
-338
-676

query I rowsort
SELECT + + col0 * 50 - - col2 FROM tab0 AS cor0
----
1233
1751
4532

onlyif mysql # use DIV operator for integer division
query I rowsort label-9083
SELECT DISTINCT col1 DIV 77 AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9083
SELECT DISTINCT col1 / 77 AS col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT - 74 * - col2 - col1 FROM tab1 AS cor0
----
3970
4208
7091

query I rowsort
SELECT ALL - col2 + + col2 + cor0.col1 * - col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9086
SELECT - CAST( 80 AS SIGNED ) * - col0 AS col0 FROM tab2 AS cor0
----
560
6240
6320

skipif mysql # not compatible
query I rowsort label-9086
SELECT - CAST ( 80 AS INTEGER ) * - col0 AS col0 FROM tab2 AS cor0
----
560
6240
6320

query I rowsort
SELECT - 97 + - 39 * + cor0.col0 AS col2 FROM tab1 cor0
----
-214
-2593
-3217

query I rowsort
SELECT ALL 61 * cor0.col1 AS col1 FROM tab0 AS cor0
----
5246
5551
5917

query I rowsort
SELECT - col1 + - col0 + - col0 FROM tab1 AS cor0
----
-138
-173
-32

query I rowsort
SELECT + ( 51 ) * col1 + 43 FROM tab2 AS cor0
----
1624
3052
910

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9091
SELECT CAST( col0 AS SIGNED ) * - col1 + cor0.col1 * 42 * col2 + - 86 * + col2 AS col2 FROM tab1 AS cor0
----
18398
43120
54246

skipif mysql # not compatible
query I rowsort label-9091
SELECT CAST ( col0 AS INTEGER ) * - col1 + cor0.col1 * 42 * col2 + - 86 * + col2 AS col2 FROM tab1 AS cor0
----
18398
43120
54246

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * col2 * col0 col2 FROM tab2
----
1323
158184
237158

query I rowsort
SELECT + col1 - + 40 FROM tab1 AS cor0
----
-14
-27
-30

query I rowsort
SELECT ALL col0 + 8 * - col2 FROM tab2
----
-130
-209
-225

query I rowsort
SELECT ALL - col0 * cor0.col1 + col2 AS col2 FROM tab2 AS cor0
----
-1305
-190
-4576

query I rowsort
SELECT 82 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c

query I rowsort
SELECT - - col2 + + col1 - + col0 AS col0 FROM tab0 AS cor0
----
63
84
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 * col0 + 33 + - cor0.col1 col2 FROM tab1 AS cor0
----
-2
-4073
-6380

query I rowsort
SELECT col2 + col2 * - ( col2 ) AS col2 FROM tab1 AS cor0
----
-2862
-3192
-9120

onlyif mysql # use DIV operator for integer division
query I rowsort label-9100
SELECT DISTINCT - 82 + - 17 DIV tab0.col2 AS col0 FROM tab0
----
-82
-99

skipif mysql # not compatible
query I rowsort label-9100
SELECT DISTINCT - 82 + - 17 / tab0.col2 AS col0 FROM tab0
----
-82
-99

query I rowsort
SELECT + col1 + + tab1.col0 + col2 AS col2 FROM tab1
----
131
189
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + + col2 * - tab2.col0 col0 FROM tab2
----
-162
-2002
-2964

query I rowsort
SELECT + 29 + col2 FROM tab0
----
111
30
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-9104
SELECT + + 0 + + col2 DIV ( col1 ) - cor0.col1 * 7 FROM tab0 AS cor0
----
-602
-637
-679

skipif mysql # not compatible
query I rowsort label-9104
SELECT + + 0 + + col2 / ( col1 ) - cor0.col1 * 7 FROM tab0 AS cor0
----
-602
-637
-679

query I rowsort
SELECT DISTINCT tab2.col2 * + col0 + col1 + + 45 FROM tab2
----
2132
265
3064

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9106
SELECT DISTINCT + - col1 + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9106
SELECT DISTINCT + - col1 + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - cor0.col1 * cor0.col0 + - ( - col1 ) AS col2 FROM tab0 AS cor0
----
-1978
-3298
-8008

query I rowsort
SELECT ALL - cor0.col1 * col2 * - cor0.col2 AS col0 FROM tab2 AS cor0
----
22599
24548
39884

onlyif mysql # use DIV operator for integer division
query I rowsort label-9109
SELECT DISTINCT - cor0.col1 + cor0.col1 DIV col0 FROM tab0 AS cor0
----
-83
-90
-95

skipif mysql # not compatible
query I rowsort label-9109
SELECT DISTINCT - cor0.col1 + cor0.col1 / col0 FROM tab0 AS cor0
----
-83
-90
-95

query I rowsort
SELECT col0 + col1 * ( - col2 ) FROM tab2 AS cor0
----
-1456
-567
-830

query I rowsort
SELECT DISTINCT - + col1 + - col1 * - col2 FROM tab2 AS cor0
----
1475
629
806

query I rowsort
SELECT ALL + - col2 + - col1 * - col0 AS col1 FROM tab2 AS cor0
----
1305
190
4576

query I rowsort
SELECT ALL + + col0 * col0 + - col0 AS col0 FROM tab2 AS cor0
----
42
6006
6162

query I rowsort
SELECT ALL + col0 + + ( col1 * col1 ) AS col0 FROM tab0 AS cor0
----
7420
8370
9444

query I rowsort
SELECT DISTINCT col1 - + col1 AS col1 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL - col0 * - cor0.col0 * 25 + + col1 * 68 FROM tab0 AS cor0
----
20248
204213
37221

query I rowsort
SELECT ALL 81 * - col2 FROM tab2
----
-2106
-2187
-3078

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9118
SELECT + col1 * CAST( col1 AS SIGNED ) + col2 AS col0 FROM tab2 cor0
----
327
3507
988

skipif mysql # not compatible
query I rowsort label-9118
SELECT + col1 * CAST ( col1 AS INTEGER ) + col2 AS col0 FROM tab2 cor0
----
327
3507
988

query I rowsort
SELECT ALL - col1 - col1 FROM tab1 cor0
----
-20
-26
-52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 18 col2 FROM tab1, tab2 cor0
----
9 values hashing to b95bafa733666df39c5d3f94760d010f

query I rowsort
SELECT + col1 * - col0 + + 5 AS col1 FROM tab1
----
-1035
-635
-73

query I rowsort
SELECT ALL 80 FROM tab2
----
80
80
80

query I rowsort
SELECT - col1 * - cor0.col1 + - cor0.col1 * + col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT - 41 * - 10 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0, tab2 AS cor1
----
27 values hashing to 8e81d39e8476e7e1774a53bee3c184e8

query I rowsort
SELECT ALL tab0.col2 - - 0 * + ( - col1 ) FROM tab0
----
1
33
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - ( cor0.col2 ) col2 FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT cor0.col0 * - 95 FROM tab2 AS cor0
----
-665
-7410
-7505

query I rowsort
SELECT - + cor0.col0 - col1 AS col1 FROM tab2 AS cor0
----
-137
-38
-96

query I rowsort
SELECT DISTINCT - 69 FROM tab1, tab0 AS cor0 CROSS JOIN tab0, tab1 AS cor1
----
-69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - cor0.col0 ) col1 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT DISTINCT - - ( - col2 ) AS col1 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT + - 57 * 14 + col2 AS col0 FROM tab0 AS cor0
----
-716
-765
-797

query I rowsort
SELECT - + col0 + col2 AS col0 FROM tab1 cor0
----
-7
16
51

query I rowsort
SELECT - 43 + col0 AS col2 FROM tab0 AS cor0
----
-19
-8
46

query I rowsort
SELECT DISTINCT cor0.col2 FROM tab1, tab1 cor0, tab2 AS cor1, tab0 AS cor2
----
54
57
96

query I rowsort
SELECT + - 99 * cor0.col0 FROM tab1 AS cor0
----
-297
-6336
-7920

query I rowsort
SELECT cor0.col0 * cor0.col2 FROM tab0, tab1 AS cor0
----
9 values hashing to cf1383d310e5e3e19470e0b8dc064d0c

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9138
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - 12 FROM tab1, tab2 cor0, tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-9138
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - 12 FROM tab1, tab2 cor0, tab1 AS cor1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( + col1 ) * 37 col1 FROM tab1 AS cor0
----
-370
-481
-962

query I rowsort
SELECT ALL - 85 * col2 + 17 * + 3 + col0 AS col1 FROM tab0 AS cor0
----
-2730
-6830
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * cor0.col1 col2 FROM tab2 AS cor0
----
1343
217
4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-9142
SELECT col2 DIV col1 + ( - col1 * col1 ) AS col2 FROM tab2 cor0
----
-287
-3481
-961

skipif mysql # not compatible
query I rowsort label-9142
SELECT col2 / col1 + ( - col1 * col1 ) AS col2 FROM tab2 cor0
----
-287
-3481
-961

query I rowsort
SELECT DISTINCT + col0 * - col1 + + 88 * col0 FROM tab0 AS cor0
----
-267
-315
48

query I rowsort
SELECT - 31 * col1 FROM tab1 cor0
----
-310
-403
-806

query I rowsort
SELECT ALL col2 + + col2 * col2 AS col2 FROM tab0 AS cor0
----
1122
2
6806

onlyif mysql # use DIV operator for integer division
query I rowsort label-9146
SELECT ALL - col2 DIV + 24 AS col2 FROM tab1 AS cor0
----
-2
-2
-4

skipif mysql # not compatible
query I rowsort label-9146
SELECT ALL - col2 / + 24 AS col2 FROM tab1 AS cor0
----
-2
-2
-4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 47 col2 FROM tab1, tab1 AS cor0
----
-47

onlyif mysql # use DIV operator for integer division
query I rowsort label-9148
SELECT - col0 + - col0 DIV col1 AS col0 FROM tab2 AS cor0
----
-7
-79
-83

skipif mysql # not compatible
query I rowsort label-9148
SELECT - col0 + - col0 / col1 AS col0 FROM tab2 AS cor0
----
-7
-79
-83

query I rowsort
SELECT DISTINCT col2 + + col2 + - col2 * 33 FROM tab2 AS cor0
----
-1178
-806
-837

query I rowsort
SELECT - 6 * col1 * - col0 + - ( 81 ) FROM tab1 AS cor0
----
3759
387
6159

query I rowsort
SELECT cor1.col1 FROM tab2, tab0 AS cor0, tab2 AS cor1, tab1 AS cor2
----
81 values hashing to a5b6acb471910ea4ad7f31cae3b818f7

query I rowsort
SELECT - - 32 * - col0 + col0 AS col1 FROM tab0 cor0
----
-1085
-2759
-744

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * tab2.col2 col0 FROM tab2
----
1534
646
837

query I rowsort
SELECT ALL + ( - col1 ) + - col0 AS col2 FROM tab0 AS cor0
----
-110
-132
-180

query I rowsort
SELECT DISTINCT + 60 + + cor0.col1 AS col2 FROM tab2 AS cor0
----
119
77
91

query I rowsort
SELECT ALL - 61 - + ( col2 + col0 ) AS col2 FROM tab2 AS cor0
----
-165
-178
-95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 82 + - col1 col1 FROM tab1 AS cor0
----
56
69
72

query I rowsort
SELECT DISTINCT col2 * + ( col1 ) AS col2 FROM tab0
----
2838
7462
97

query I rowsort
SELECT DISTINCT 67 * + col2 + col1 + col0 AS col2 FROM tab2 AS cor0
----
1847
1879
2642

query I rowsort
SELECT DISTINCT - 57 * + col0 FROM tab1
----
-171
-3648
-4560

onlyif mysql # use DIV operator for integer division
query I rowsort label-9161
SELECT ALL 74 DIV 51 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9161
SELECT ALL 74 / 51 FROM tab1
----
1
1
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9162
SELECT DISTINCT CAST( NULL AS SIGNED ) + tab2.col0 * col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9162
SELECT DISTINCT CAST ( NULL AS INTEGER ) + tab2.col0 * col2 FROM tab2
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9163
SELECT DISTINCT CAST( NULL AS SIGNED ) * col0 * - col1 + + 47 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9163
SELECT DISTINCT CAST ( NULL AS INTEGER ) * col0 * - col1 + + 47 FROM tab1
----
NULL

query I rowsort
SELECT ALL col1 + - col2 * - col1 AS col1 FROM tab2
----
1593
663
868

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9165
SELECT - CAST( + col1 AS SIGNED ) - col2 * 24 * col0 FROM tab0
----
-175243
-19094
-937

skipif mysql # not compatible
query I rowsort label-9165
SELECT - CAST ( + col1 AS INTEGER ) - col2 * 24 * col0 FROM tab0
----
-175243
-19094
-937

query I rowsort
SELECT col2 * - col1 + + col2 AS col0 FROM tab2
----
-1508
-608
-810

onlyif mysql # use DIV operator for integer division
query I rowsort label-9167
SELECT ALL + col0 + tab0.col1 DIV + col1 AS col0 FROM tab0
----
25
36
90

skipif mysql # not compatible
query I rowsort label-9167
SELECT ALL + col0 + tab0.col1 / + col1 AS col0 FROM tab0
----
25
36
90

query I rowsort
SELECT ALL - + col2 * col0 * + col0 FROM tab2 AS cor0
----
-1323
-158184
-237158

query I rowsort
SELECT DISTINCT - cor0.col1 + + 97 FROM tab2 AS cor0
----
38
66
80

query I rowsort
SELECT + cor0.col0 * + 80 + col0 AS col1 FROM tab0 AS cor0
----
1944
2835
7209

query I rowsort
SELECT DISTINCT col2 * 56 AS col1 FROM tab2 AS cor0
----
1456
1512
2128

query I rowsort
SELECT + col0 + ( - 44 ) AS col2 FROM tab1 AS cor0
----
-41
20
36

query I rowsort
SELECT DISTINCT - col0 * cor0.col2 + - 13 * + cor0.col0 AS col1 FROM tab1 cor0
----
-201
-4480
-8720

query I rowsort
SELECT - - 98 * + 48 FROM tab1 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to afb8b9be649a8db464d45c21d1ccbeb5

query I rowsort
SELECT DISTINCT col2 * + cor0.col1 FROM tab1 cor0
----
1248
1404
570

query I rowsort
SELECT ALL - col0 + ( col0 ) * col2 AS col1 FROM tab1 AS cor0
----
159
3584
7600

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9177
SELECT DISTINCT col0 * CAST( NULL AS DECIMAL ) + tab2.col2 * col2 AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9177
SELECT DISTINCT col0 * CAST ( NULL AS REAL ) + tab2.col2 * col2 AS col0 FROM tab2
----
NULL

query I rowsort
SELECT - + 66 + col2 FROM tab2 AS cor0
----
-28
-39
-40

query I rowsort
SELECT col0 + + 72 * col1 + col1 FROM tab2
----
1320
2270
4385

query I rowsort
SELECT DISTINCT - col2 * 90 + + 22 * col0 FROM tab2
----
-1682
-2276
-624

query I rowsort
SELECT - col2 + 37 AS col1 FROM tab2
----
-1
10
11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab2.col2 col2 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 23 * col0 col2 FROM tab2
----
161
1794
1817

query I rowsort
SELECT ALL - + 42 * col0 FROM tab1 AS cor0
----
-126
-2688
-3360

query I rowsort
SELECT DISTINCT - + 3 + - col2 AS col1 FROM tab1 AS cor0
----
-57
-60
-99

query I rowsort
SELECT DISTINCT col0 + + col2 - ( col0 * col2 ) FROM tab0 AS cor0
----
-7127
-735
1

query I rowsort
SELECT ALL 73 * + 36 * col0 FROM tab1
----
168192
210240
7884

query I rowsort
SELECT DISTINCT ( - cor0.col2 ) FROM tab0, tab2, tab1 cor0
----
-54
-57
-96

query I rowsort
SELECT - cor1.col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 09d8a912de1b8ab762e5ffbe028ce99e

query I rowsort
SELECT - col0 + - col1 * - col1 AS col0 FROM tab1 AS cor0
----
36
673
89

query I rowsort
SELECT DISTINCT - col0 + - col1 * - col0 FROM tab0 cor0
----
2040
3360
8010

query I rowsort
SELECT ALL 22 + + col0 FROM tab1 AS cor0
----
102
25
86

query I rowsort
SELECT DISTINCT 32 * - col0 * 45 FROM tab1 AS cor0
----
-115200
-4320
-92160

onlyif mysql # use DIV operator for integer division
query I rowsort label-9194
SELECT DISTINCT 56 * col0 DIV cor0.col1 FROM tab0 cor0
----
15
20
54

skipif mysql # not compatible
query I rowsort label-9194
SELECT DISTINCT 56 * col0 / cor0.col1 FROM tab0 cor0
----
15
20
54

query I rowsort
SELECT DISTINCT 43 * col2 * 12 AS col0 FROM tab0
----
17028
42312
516

onlyif mysql # use DIV operator for integer division
query I rowsort label-9196
SELECT ALL 61 DIV + col0 FROM tab0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-9196
SELECT ALL 61 / + col0 FROM tab0
----
0
1
2

query I rowsort
SELECT DISTINCT - - col1 * + col1 + col2 * - col1 * - col1 FROM tab0 cor0
----
18818
251464
687323

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 43 + - col2 col0 FROM tab2 AS cor0
----
16
17
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 5 col0 FROM tab0 AS cor0
----
5
5
5

query I rowsort
SELECT ALL + ( - col1 + - col2 ) * - col0 FROM tab2
----
406
4345
6630

query I rowsort
SELECT ALL - + cor0.col1 * 51 FROM tab0 AS cor0
----
-4386
-4641
-4947

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9202
SELECT ALL col1 * CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9202
SELECT ALL col1 * CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col2 * + 70 FROM tab1 cor0
----
3780
3990
6720

query I rowsort
SELECT DISTINCT col0 * - col0 * + col0 AS col0 FROM tab2
----
-343
-474552
-493039

query I rowsort
SELECT + cor0.col0 * - 85 AS col0 FROM tab1 AS cor0
----
-255
-5440
-6800

query I rowsort
SELECT DISTINCT + cor0.col2 * - 98 - + 82 FROM tab0 AS cor0
----
-180
-3316
-8118

onlyif mysql # use DIV operator for integer division
query I rowsort label-9207
SELECT ALL + cor0.col2 DIV col0 + - col2 AS col1 FROM tab2 AS cor0
----
-24
-26
-38

skipif mysql # not compatible
query I rowsort label-9207
SELECT ALL + cor0.col2 / col0 + - col2 AS col1 FROM tab2 AS cor0
----
-24
-26
-38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - col2 col0 FROM tab1 cor0
----
-2916
-3249
-9216

query I rowsort
SELECT ALL col0 * - ( col0 * - 80 ) FROM tab2
----
3920
486720
499280

query I rowsort
SELECT DISTINCT - + 79 + - col1 FROM tab1 cor0
----
-105
-89
-92

query I rowsort
SELECT DISTINCT 65 * + col0 FROM tab1 cor0
----
195
4160
5200

query I rowsort
SELECT ALL - col2 + ( - col0 ) AS col0 FROM tab0 cor0
----
-171
-36
-57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( tab2.col0 * - tab2.col2 ) col1 FROM tab2
----
-189
-2028
-3002

query I rowsort
SELECT DISTINCT ( - 24 ) * col0 * ( 89 * col2 ) FROM tab2
----
-403704
-4331808
-6412272

query I rowsort
SELECT ALL + - ( - cor0.col1 ) * col0 + - col2 * col0 * - cor0.col2 + cor0.col1 FROM tab0 AS cor0
----
28286
3527
606626

onlyif mysql # use DIV operator for integer division
query I rowsort label-9216
SELECT DISTINCT + - col0 + + 19 DIV col1 FROM tab0 AS cor0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-9216
SELECT DISTINCT + - col0 + + 19 / col1 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT ALL - - col0 * 83 AS col2 FROM tab1 cor0
----
249
5312
6640

query I rowsort
SELECT ALL - ( col1 ) - cor0.col1 FROM tab2 AS cor0
----
-118
-34
-62

onlyif mysql # use DIV operator for integer division
query I rowsort label-9219
SELECT - - 57 DIV col1 + col0 FROM tab1 AS cor0
----
5
69
84

skipif mysql # not compatible
query I rowsort label-9219
SELECT - - 57 / col1 + col0 FROM tab1 AS cor0
----
5
69
84

query I rowsort
SELECT + ( 13 ) * col2 + col1 * col1 AS col2 FROM tab0 AS cor0
----
7825
9347
9422

query I rowsort
SELECT DISTINCT ( col2 ) + col1 * - col2 AS col1 FROM tab0 AS cor0
----
-2805
-7380
-96

query I rowsort
SELECT + 85 * + col2 + col2 FROM tab1 AS cor0
----
4644
4902
8256

query I rowsort
SELECT ALL 35 + + 18 AS col1 FROM tab0 cor0
----
53
53
53

query I rowsort
SELECT - - 17 * - col0 + + col1 FROM tab2 cor0
----
-1267
-1326
-88

query I rowsort
SELECT - 11 + col0 * - col2 AS col0 FROM tab1 AS cor0
----
-173
-3659
-7691

query I rowsort
SELECT ALL + 46 FROM tab1, tab1 cor0, tab0 AS cor1
----
27 values hashing to 2f97924b57b73102233df7c9ce8ad602

onlyif mysql # use DIV operator for integer division
query I rowsort label-9227
SELECT - col1 + col0 DIV 13 FROM tab2 AS cor0
----
-11
-31
-53

skipif mysql # not compatible
query I rowsort label-9227
SELECT - col1 + col0 / 13 FROM tab2 AS cor0
----
-11
-31
-53

onlyif mysql # use DIV operator for integer division
query I rowsort label-9228
SELECT + col1 + + col2 DIV - tab0.col2 AS col2 FROM tab0
----
85
90
96

skipif mysql # not compatible
query I rowsort label-9228
SELECT + col1 + + col2 / - tab0.col2 AS col2 FROM tab0
----
85
90
96

query I rowsort
SELECT + + 89 AS col2 FROM tab2 cor0
----
89
89
89

query I rowsort
SELECT col0 * 32 FROM tab1 AS cor0
----
2048
2560
96

query I rowsort
SELECT + col1 + 42 AS col2 FROM tab2 cor0
----
101
59
73

query I rowsort
SELECT ALL + col1 * + 56 FROM tab2
----
1736
3304
952

query I rowsort
SELECT DISTINCT - 86 FROM tab1, tab0 AS cor0
----
-86

query I rowsort
SELECT ALL 9 + cor0.col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 34fd81085212653715dfaa4adbfa6276

query I rowsort
SELECT - 89 * cor0.col2 AS col0 FROM tab2 AS cor0
----
-2314
-2403
-3382

query I rowsort
SELECT - 77 + tab0.col1 FROM tab0
----
14
20
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-9237
SELECT - col0 + + col1 DIV - 5 AS col0 FROM tab1 AS cor0
----
-66
-8
-82

skipif mysql # not compatible
query I rowsort label-9237
SELECT - col0 + + col1 / - 5 AS col0 FROM tab1 AS cor0
----
-66
-8
-82

query I rowsort
SELECT - col1 * col1 * - 64 FROM tab0
----
473344
529984
602176

query I rowsort
SELECT ALL - col0 + + 94 FROM tab1 AS cor0
----
14
30
91

query I rowsort
SELECT DISTINCT + 54 AS col1 FROM tab0, tab0 AS cor0
----
54

query I rowsort
SELECT + - col2 * + col0 + - 62 * - col1 FROM tab1 AS cor0
----
-3028
-6874
1450

onlyif mysql # use DIV operator for integer division
query I rowsort label-9242
SELECT + col0 - tab0.col2 DIV + col0 FROM tab0
----
23
35
89

skipif mysql # not compatible
query I rowsort label-9242
SELECT + col0 - tab0.col2 / + col0 FROM tab0
----
23
35
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab2.col2 + + ( 26 ) col1 FROM tab2
----
-1
-12
0

query I rowsort
SELECT cor0.col1 + - 34 + col1 FROM tab1 cor0
----
-14
-8
18

query I rowsort
SELECT - + cor0.col1 + col0 * 27 AS col0 FROM tab0 AS cor0
----
2312
562
848

query I rowsort
SELECT ALL + 25 * + 92 FROM tab1 AS cor0
----
2300
2300
2300

query I rowsort
SELECT + 82 + - cor0.col1 AS col0 FROM tab1 AS cor0
----
56
69
72

query I rowsort
SELECT + + 78 + 9 AS col2 FROM tab1 AS cor0
----
87
87
87

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9249
SELECT DISTINCT CAST( col0 AS SIGNED ) + - col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9249
SELECT DISTINCT CAST ( col0 AS INTEGER ) + - col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT + ( - cor0.col0 ) + - col1 FROM tab1 AS cor0
----
-29
-74
-93

query I rowsort
SELECT + ( 41 ) AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e

query I rowsort
SELECT + 98 * cor0.col2 AS col2 FROM tab1, tab2, tab1 cor0
----
27 values hashing to 6767b7b6c83cabced588f43545cac2f8

query I rowsort
SELECT DISTINCT - ( - col0 ) * cor0.col1 * col2 FROM tab2 AS cor0
----
119652
51034
5859

onlyif mysql # use DIV operator for integer division
query I rowsort label-9254
SELECT ALL - col0 + 74 DIV col0 AS col2 FROM tab0 AS cor0
----
-21
-33
-89

skipif mysql # not compatible
query I rowsort label-9254
SELECT ALL - col0 + 74 / col0 AS col2 FROM tab0 AS cor0
----
-21
-33
-89

onlyif mysql # use DIV operator for integer division
query I rowsort label-9255
SELECT col1 DIV CAST( + col1 AS SIGNED ) FROM tab0 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9255
SELECT col1 / CAST ( + col1 AS INTEGER ) FROM tab0 cor0
----
1
1
1

query I rowsort
SELECT ALL + ( col2 + 89 ) AS col2 FROM tab2
----
115
116
127

query I rowsort
SELECT - + col1 * - 88 + + col2 AS col1 FROM tab0 AS cor0
----
7601
8090
8537

onlyif mysql # use DIV operator for integer division
query I rowsort label-9258
SELECT col2 * col2 DIV - col0 AS col1 FROM tab2
----
-104
-18
-8

skipif mysql # not compatible
query I rowsort label-9258
SELECT col2 * col2 / - col0 AS col1 FROM tab2
----
-104
-18
-8

query I rowsort
SELECT DISTINCT - tab2.col2 FROM tab2, tab0, tab0 AS cor0
----
-26
-27
-38

query I rowsort
SELECT + 69 * 83 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e4fab7db7fdb07fc496b470853f87955

query I rowsort
SELECT ALL - 97 + col1 * - col2 AS col0 FROM tab0 AS cor0
----
-194
-2935
-7559

query I rowsort
SELECT ALL 39 + col2 FROM tab1 AS cor0
----
135
93
96

query I rowsort
SELECT - 24 + col2 AS col2 FROM tab1 cor0
----
30
33
72

query I rowsort
SELECT DISTINCT + col2 + cor0.col2 * cor0.col0 * - 67 FROM tab0 AS cor0
----
-2344
-488884
-53031

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 98 col0 FROM tab1 AS cor0
----
98
98
98

query I rowsort
SELECT ALL cor0.col1 + - col2 AS col2 FROM tab0 cor0
----
53
9
96

query I rowsort
SELECT DISTINCT + 61 AS col0 FROM tab2 cor0
----
61

query I rowsort
SELECT ALL - 25 * col0 + + 67 * + col0 FROM tab1 AS cor0
----
126
2688
3360

query I rowsort
SELECT ALL - col2 + - 8 + 88 AS col2 FROM tab2 AS cor0
----
42
53
54

query I rowsort
SELECT ALL + col2 * - 88 FROM tab2 AS cor0
----
-2288
-2376
-3344

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9271
SELECT col2 * CAST( NULL AS SIGNED ) - ( + col2 ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9271
SELECT col2 * CAST ( NULL AS INTEGER ) - ( + col2 ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9272
SELECT ALL + col0 + CAST( NULL AS SIGNED ) / + cor0.col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9272
SELECT ALL + col0 + CAST ( NULL AS INTEGER ) / + cor0.col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 * + 52 AS col2 FROM tab2 AS cor0
----
1352
1404
1976

query I rowsort
SELECT DISTINCT + - col1 * col2 + cor0.col2 * col0 FROM tab2 AS cor0
----
-648
2356
494

query I rowsort
SELECT - col1 + - col0 * 3 AS col2 FROM tab0 cor0
----
-158
-202
-358

query I rowsort
SELECT cor0.col0 * 41 * col0 AS col2 FROM tab1 cor0
----
167936
262400
369

query I rowsort
SELECT DISTINCT - col1 * - 54 AS col2 FROM tab0 AS cor0
----
4644
4914
5238

onlyif mysql # use DIV operator for integer division
query I rowsort label-9278
SELECT col2 DIV + 6 + col1 + + cor0.col0 FROM tab0 AS cor0
----
115
132
193

skipif mysql # not compatible
query I rowsort label-9278
SELECT col2 / + 6 + col1 + + cor0.col0 FROM tab0 AS cor0
----
115
132
193

query I rowsort
SELECT DISTINCT + 94 + - cor0.col2 FROM tab0 AS cor0
----
12
61
93

query I rowsort
SELECT DISTINCT + - col2 * + 13 + + col2 AS col0 FROM tab0 AS cor0
----
-12
-396
-984

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 46 + 15 + - col0 col0 FROM tab2 AS cor0
----
-109
-110
-38

query I rowsort
SELECT ALL col2 + + cor0.col2 * col1 + 12 AS col0 FROM tab0 cor0
----
110
2883
7556

query I rowsort
SELECT ALL - ( cor0.col1 ) * col2 + ( - 23 ) AS col0 FROM tab2 AS cor0
----
-1557
-669
-860

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + ( + col1 ) * + col2 col1 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT ALL + ( col2 ) * col1 + - cor0.col1 AS col0 FROM tab0 AS cor0
----
0
2752
7371

query I rowsort
SELECT ALL - 76 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to f8b6589bc7503fc720ca5430e3569317

query I rowsort
SELECT DISTINCT - ( - col2 ) + - col1 * col2 FROM tab1 cor0
----
-1152
-1350
-513

onlyif mysql # use DIV operator for integer division
query I rowsort label-9288
SELECT DISTINCT - - col0 DIV - cor0.col1 + cor0.col0 * col2 FROM tab2 AS cor0
----
189
2027
2998

skipif mysql # not compatible
query I rowsort label-9288
SELECT DISTINCT - - col0 / - cor0.col1 + cor0.col0 * col2 FROM tab2 AS cor0
----
189
2027
2998

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 22 col2 FROM tab1 AS cor0
----
22
22
22

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9290
SELECT ALL + col2 * col2 + CAST( - col1 AS SIGNED ) FROM tab1 AS cor0
----
2890
3239
9203

skipif mysql # not compatible
query I rowsort label-9290
SELECT ALL + col2 * col2 + CAST ( - col1 AS INTEGER ) FROM tab1 AS cor0
----
2890
3239
9203

query I rowsort
SELECT DISTINCT - col2 * - col0 AS col0 FROM tab1 cor0
----
162
3648
7680

query I rowsort
SELECT ( ( - tab2.col1 ) ) * ( 86 ) * + col0 AS col2 FROM tab2
----
-115498
-18662
-395772

query I rowsort
SELECT + col0 - + 3 AS col2 FROM tab1
----
0
61
77

query I rowsort
SELECT + ( - col1 ) * 47 + + col2 FROM tab2 AS cor0
----
-1430
-2747
-761

skipif mysql # not compatible
query I rowsort
SELECT ( col2 ) + - CAST ( - 48 AS REAL ) FROM tab2 AS cor0
----
74
75
86

query I rowsort
SELECT + 1 + col2 AS col1 FROM tab0 cor0
----
2
34
83

query I rowsort
SELECT 97 + - cor0.col0 FROM tab2 AS cor0
----
18
19
90

query I rowsort
SELECT - 66 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to a408108d423d7784b7d610cb779e515a

query I rowsort
SELECT DISTINCT 64 FROM tab0, tab1 cor0, tab0 AS cor1
----
64

query I rowsort
SELECT - col0 * + col2 + - col2 * - col0 AS col1 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT - + 28 AS col0 FROM tab2, tab1, tab0 AS cor0
----
-28

onlyif mysql # use DIV operator for integer division
query I rowsort label-9302
SELECT ALL - - 57 + - col0 * col2 DIV + col0 FROM tab0 AS cor0
----
-25
24
56

skipif mysql # not compatible
query I rowsort label-9302
SELECT ALL - - 57 + - col0 * col2 / + col0 FROM tab0 AS cor0
----
-25
24
56

query I rowsort
SELECT ALL + - 96 + col2 * - col1 AS col1 FROM tab0 AS cor0
----
-193
-2934
-7558

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 60 col0 FROM tab2
----
60

onlyif mysql # use DIV operator for integer division
query I rowsort label-9305
SELECT DISTINCT tab0.col2 + - 62 DIV - col1 AS col2 FROM tab0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-9305
SELECT DISTINCT tab0.col2 + - 62 / - col1 AS col2 FROM tab0
----
1
33
82

query I rowsort
SELECT DISTINCT tab0.col0 * + col0 * + 99 + - col1 AS col1 FROM tab0
----
121178
56938
784088

onlyif mysql # use DIV operator for integer division
query I rowsort label-9307
SELECT col2 DIV ( + tab1.col0 ) AS col2 FROM tab1
----
0
1
18

skipif mysql # not compatible
query I rowsort label-9307
SELECT col2 / ( + tab1.col0 ) AS col2 FROM tab1
----
0
1
18

query I rowsort
SELECT + col0 * - ( col0 ) FROM tab0
----
-1225
-576
-7921

query I rowsort
SELECT ( col2 ) + cor0.col2 + col2 AS col2 FROM tab1 AS cor0
----
162
171
288

query I rowsort
SELECT ( - col1 ) * col2 AS col2 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT 4 * - 47 + - col1 * - ( col0 ) FROM tab2 AS cor0
----
1155
29
4414

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 * - col0 * 65 col0 FROM tab2 AS cor0
----
-3185
-395460
-405665

query I rowsort
SELECT DISTINCT - tab0.col1 + 64 FROM tab0
----
-22
-27
-33

query I rowsort
SELECT ALL col1 + + 96 * + 37 AS col1 FROM tab1
----
3562
3565
3578

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + cor0.col0 ) - col2 col0 FROM tab0 cor0
----
-9
34
7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9316
SELECT + + CAST( + col2 AS SIGNED ) * + col2 + + col1 * - col0 FROM tab2 AS cor0
----
-3926
101
512

skipif mysql # not compatible
query I rowsort label-9316
SELECT + + CAST ( + col2 AS INTEGER ) * + col2 + + col1 * - col0 FROM tab2 AS cor0
----
-3926
101
512

query I rowsort
SELECT DISTINCT - ( 44 ) + - col2 FROM tab2 AS cor0
----
-70
-71
-82

query I rowsort
SELECT 79 FROM tab0, tab2 AS cor0 CROSS JOIN tab1
----
27 values hashing to 4857f2e1b1dbd184de4827f145dd02a1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9319
SELECT - - CAST( NULL AS DECIMAL ) 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-9319
SELECT - - CAST ( NULL AS REAL ) col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + col1 - + col1 * cor0.col0 AS col1 FROM tab2 AS cor0
----
-1360
-248
-4661

onlyif mysql # use DIV operator for integer division
query I rowsort label-9321
SELECT DISTINCT 69 * col1 + + cor0.col0 DIV - col2 + - col0 FROM tab1 AS cor0
----
1791
625
817

skipif mysql # not compatible
query I rowsort label-9321
SELECT DISTINCT 69 * col1 + + cor0.col0 / - col2 + - col0 FROM tab1 AS cor0
----
1791
625
817

query I rowsort
SELECT ALL col0 + col0 - col2 * - col1 AS col1 FROM tab0 AS cor0
----
167
2886
7640

query I rowsort
SELECT - ( + col2 ) + - col1 FROM tab0 AS cor0
----
-119
-173
-98

query I rowsort
SELECT ALL - col1 - 47 AS col2 FROM tab2 AS cor0
----
-106
-64
-78

query I rowsort
SELECT + 72 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 53 col2 FROM tab2, tab2 AS cor0
----
9 values hashing to fede6033dee346dbd272085c05724fda

query I rowsort
SELECT DISTINCT 53 AS col0 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
53

onlyif mysql # use DIV operator for integer division
query I rowsort label-9328
SELECT col1 - - col1 DIV - col2 FROM tab1
----
10
13
26

skipif mysql # not compatible
query I rowsort label-9328
SELECT col1 - - col1 / - col2 FROM tab1
----
10
13
26

query I rowsort
SELECT ALL + 45 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050

onlyif mysql # use DIV operator for integer division
query I rowsort label-9330
SELECT ALL col1 DIV - ( col2 ) + col2 FROM tab0
----
-96
31
81

skipif mysql # not compatible
query I rowsort label-9330
SELECT ALL col1 / - ( col2 ) + col2 FROM tab0
----
-96
31
81

query I rowsort
SELECT + col2 * - col0 + col0 AS col2 FROM tab1 cor0
----
-159
-3584
-7600

query I rowsort
SELECT DISTINCT - - col2 + + col2 * 77 FROM tab1 AS cor0
----
4212
4446
7488

onlyif mysql # use DIV operator for integer division
query I rowsort label-9333
SELECT DISTINCT - col0 + col1 * col1 DIV + col0 AS col2 FROM tab1 AS cor0
----
-63
-78
222

skipif mysql # not compatible
query I rowsort label-9333
SELECT DISTINCT - col0 + col1 * col1 / + col0 AS col2 FROM tab1 AS cor0
----
-63
-78
222

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 24 col0 FROM tab2 AS cor0
----
-24
-24
-24

query I rowsort
SELECT + + col2 + + cor0.col1 * col2 AS col0 FROM tab2 AS cor0
----
1560
684
864

query I rowsort
SELECT + 6 * - col2 AS col1 FROM tab2 AS cor0
----
-156
-162
-228

query I rowsort
SELECT ALL tab1.col2 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 30 + col0 col0 FROM tab0 AS cor0
----
119
54
65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 83 + col2 * - col0 col0 FROM tab0 AS cor0
----
-709
-7215
48

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9340
SELECT - col2 * + cor0.col0 + + CAST( - 21 AS SIGNED ) FROM tab1 cor0
----
-183
-3669
-7701

skipif mysql # not compatible
query I rowsort label-9340
SELECT - col2 * + cor0.col0 + + CAST ( - 21 AS INTEGER ) FROM tab1 cor0
----
-183
-3669
-7701

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9341
SELECT col0 * + col1 + ( col1 + col2 ) / + CAST( NULL AS SIGNED ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9341
SELECT col0 * + col1 + ( col1 + col2 ) / + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 33 * - cor0.col0 * - 19 FROM tab0 cor0
----
15048
21945
55803

query I rowsort
SELECT - ( col2 + + col0 ) * col2 FROM tab1
----
-16896
-3078
-6897

query I rowsort
SELECT ALL 55 + col0 AS col0 FROM tab0
----
144
79
90

query I rowsort
SELECT + + cor0.col0 - col2 FROM tab0 AS cor0
----
-9
34
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-9346
SELECT DISTINCT 69 DIV col1 FROM tab2
----
1
2
4

skipif mysql # not compatible
query I rowsort label-9346
SELECT DISTINCT 69 / col1 FROM tab2
----
1
2
4

query I rowsort
SELECT DISTINCT - ( 11 ) AS col1 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
-11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col0 + - 74 * + cor0.col2 col0 FROM tab0 AS cor0
----
-109
-2466
-6157

query I rowsort
SELECT - col1 * - col2 + ( col0 ) * + col0 FROM tab2 AS cor0
----
6887
7618
886

query I rowsort
SELECT ALL - + col0 * col2 * + 92 AS col2 FROM tab1 AS cor0
----
-14904
-335616
-706560

query I rowsort
SELECT + col1 + - ( + col0 + + cor0.col2 ) * ( - col2 ) FROM tab2 AS cor0
----
2763
4463
949

query I rowsort
SELECT - col1 * + col2 * - cor0.col1 + - col2 AS col1 FROM tab1 cor0
----
16128
36450
5643

query I rowsort
SELECT + - col2 * ( 19 ) AS col2 FROM tab0 AS cor0
----
-1558
-19
-627

query I rowsort
SELECT DISTINCT - col0 * 84 FROM tab2 cor0
----
-588
-6552
-6636

query I rowsort
SELECT - col2 * col2 * col1 + + col1 + + col2 AS col0 FROM tab2
----
-22541
-24493
-39799

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9356
SELECT ALL + col0 + CAST( col0 AS SIGNED ) FROM tab0
----
178
48
70

skipif mysql # not compatible
query I rowsort label-9356
SELECT ALL + col0 + CAST ( col0 AS INTEGER ) FROM tab0
----
178
48
70

query I rowsort
SELECT - + 68 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5febf382d36d6e0191889c41b928786f

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9358
SELECT ALL - + col2 * CAST( cor0.col1 AS SIGNED ) * + col0 FROM tab0 AS cor0
----
-3395
-664118
-68112

skipif mysql # not compatible
query I rowsort label-9358
SELECT ALL - + col2 * CAST ( cor0.col1 AS INTEGER ) * + col0 FROM tab0 AS cor0
----
-3395
-664118
-68112

query I rowsort
SELECT ALL - + col2 * + col2 + + 79 AS col1 FROM tab0 AS cor0
----
-1010
-6645
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-9360
SELECT + + col0 * - 29 + + col2 DIV - col1 FROM tab2 AS cor0
----
-203
-2262
-2293

skipif mysql # not compatible
query I rowsort label-9360
SELECT + + col0 * - 29 + + col2 / - col1 FROM tab2 AS cor0
----
-203
-2262
-2293

query I rowsort
SELECT + + col0 + - 42 FROM tab1 AS cor0
----
-39
22
38

query I rowsort
SELECT DISTINCT cor0.col1 + + ( col2 ) + col1 AS col2 FROM tab0 AS cor0
----
195
205
264

query I rowsort
SELECT - ( - 34 ) * col1 AS col0 FROM tab1 AS cor0
----
340
442
884

query I rowsort
SELECT ( col0 ) + cor0.col1 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT + col0 * - 98 FROM tab1 AS cor0
----
-294
-6272
-7840

query I rowsort
SELECT DISTINCT 2 AS col0 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
2

query I rowsort
SELECT ( col0 ) * + 90 FROM tab0
----
2160
3150
8010

query I rowsort
SELECT ALL 60 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 1d2ab302ae60f95b15e68cf89083b162

query I rowsort
SELECT ALL + 33 + col2 FROM tab1 AS cor0
----
129
87
90

query I rowsort
SELECT DISTINCT + 49 AS col0 FROM tab2 cor0
----
49

onlyif mysql # use DIV operator for integer division
query I rowsort label-9371
SELECT ALL - - cor0.col2 DIV col1 - + cor0.col0 AS col2 FROM tab0 AS cor0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-9371
SELECT ALL - - cor0.col2 / col1 - + cor0.col0 AS col2 FROM tab0 AS cor0
----
-24
-35
-89

onlyif mysql # use DIV operator for integer division
query I rowsort label-9372
SELECT DISTINCT + col1 + - col2 DIV ( + ( col0 ) ) AS col0 FROM tab2 cor0
----
17
28
59

skipif mysql # not compatible
query I rowsort label-9372
SELECT DISTINCT + col1 + - col2 / ( + ( col0 ) ) AS col0 FROM tab2 cor0
----
17
28
59

query I rowsort
SELECT ALL - 68 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5febf382d36d6e0191889c41b928786f

query I rowsort
SELECT - col1 + 9 AS col0 FROM tab0
----
-77
-82
-88

query I rowsort
SELECT + col1 + 52 FROM tab1
----
62
65
78

query I rowsort
SELECT DISTINCT col2 + - 50 * + col1 FROM tab1 AS cor0
----
-1246
-443
-554

onlyif mysql # use DIV operator for integer division
query I rowsort label-9377
SELECT - col2 + + 91 DIV - 11 FROM tab0 AS cor0
----
-41
-9
-90

skipif mysql # not compatible
query I rowsort label-9377
SELECT - col2 + + 91 / - 11 FROM tab0 AS cor0
----
-41
-9
-90

query I rowsort
SELECT - col0 * + 47 FROM tab2 AS cor0
----
-329
-3666
-3713

onlyif mysql # use DIV operator for integer division
query I rowsort label-9379
SELECT ALL - col1 DIV - cor0.col1 - cor0.col0 AS col1 FROM tab2 AS cor0
----
-6
-77
-78

skipif mysql # not compatible
query I rowsort label-9379
SELECT ALL - col1 / - cor0.col1 - cor0.col0 AS col1 FROM tab2 AS cor0
----
-6
-77
-78

query I rowsort
SELECT ALL - - ( 96 ) + cor0.col0 + + cor0.col1 * col1 FROM tab1 AS cor0
----
260
345
775

query I rowsort
SELECT - ( + tab1.col1 ) + col0 * - col2 AS col2 FROM tab1
----
-188
-3658
-7693

query I rowsort
SELECT ( + col2 ) + col0 FROM tab0
----
171
36
57

query I rowsort
SELECT ALL - col1 * ( - col2 ) AS col1 FROM tab2 AS cor0
----
1534
646
837

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9384
SELECT + CAST( col1 AS SIGNED ) * - col2 AS col0 FROM tab2 AS cor0
----
-1534
-646
-837

skipif mysql # not compatible
query I rowsort label-9384
SELECT + CAST ( col1 AS INTEGER ) * - col2 AS col0 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT cor1.col1 AS col0 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

query I rowsort
SELECT ALL + - col0 * col1 - - col2 FROM tab2 AS cor0
----
-1305
-190
-4576

query I rowsort
SELECT 64 * 29 FROM tab1 cor0
----
1856
1856
1856

query I rowsort
SELECT DISTINCT + cor0.col2 AS col0 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
1
33
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-9389
SELECT + col0 + cor0.col2 DIV + 4 FROM tab2 AS cor0
----
13
84
88

skipif mysql # not compatible
query I rowsort label-9389
SELECT + col0 + cor0.col2 / + 4 FROM tab2 AS cor0
----
13
84
88

query I rowsort
SELECT DISTINCT tab0.col1 + + tab0.col2 AS col2 FROM tab0
----
119
173
98

query I rowsort
SELECT col0 * cor0.col2 + + 49 AS col1 FROM tab0 AS cor0
----
7347
84
841

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - - col2 / + col1 + CAST ( + 12 AS REAL ) AS col2 FROM tab0 AS cor0
----
12

query I rowsort
SELECT ALL + 89 * - col2 AS col0 FROM tab2 cor0
----
-2314
-2403
-3382

query I rowsort
SELECT ALL + cor0.col2 + + 46 FROM tab1 AS cor0
----
100
103
142

query I rowsort
SELECT DISTINCT col0 + 94 FROM tab1 AS cor0
----
158
174
97

query I rowsort
SELECT DISTINCT + - col1 * - ( + cor0.col2 ) * + col1 FROM tab0 AS cor0
----
244068
679042
9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-9397
SELECT + col2 DIV - ( col1 ) FROM tab1 AS cor0
----
-2
-5
-7

skipif mysql # not compatible
query I rowsort label-9397
SELECT + col2 / - ( col1 ) FROM tab1 AS cor0
----
-2
-5
-7

query I rowsort
SELECT ALL col0 * - col1 + col1 AS col2 FROM tab1 AS cor0
----
-1027
-52
-630

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * - 92 col1 FROM tab1 AS cor0
----
276
5888
7360

onlyif mysql # use DIV operator for integer division
query I rowsort label-9400
SELECT DISTINCT - - cor0.col2 * col2 DIV col1 AS col0 FROM tab2 AS cor0
----
11
23
84

skipif mysql # not compatible
query I rowsort label-9400
SELECT DISTINCT - - cor0.col2 * col2 / col1 AS col0 FROM tab2 AS cor0
----
11
23
84

query I rowsort
SELECT DISTINCT col1 + col1 * col2 FROM tab0
----
194
2924
7553

query I rowsort
SELECT DISTINCT col1 * tab1.col0 + tab1.col2 + + col2 FROM tab1
----
1232
186
754

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col2 ) * - ( - ( - col2 ) + + col0 ) col1 FROM tab1
----
-16896
-3078
-6897

onlyif mysql # use DIV operator for integer division
query I rowsort label-9404
SELECT 2 DIV col1 + col0 AS col2 FROM tab0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-9404
SELECT 2 / col1 + col0 AS col2 FROM tab0
----
24
35
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-9405
SELECT - 66 + col1 DIV col2 FROM tab1
----
-66
-66
-66

skipif mysql # not compatible
query I rowsort label-9405
SELECT - 66 + col1 / col2 FROM tab1
----
-66
-66
-66

query I rowsort
SELECT DISTINCT + + col1 * 70 FROM tab1 AS cor0
----
1820
700
910

query I rowsort
SELECT + 67 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to eea8a0738728ea55e4e7ba1506c9905a

onlyif mysql # use DIV operator for integer division
query I rowsort label-9408
SELECT - + col1 DIV 66 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9408
SELECT - + col1 / 66 AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - col1 * col1 * col0 + col0 FROM tab0 AS cor0
----
-177480
-329280
-736920

query I rowsort
SELECT - cor0.col2 * 0 + + col1 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT + + 67 FROM tab1, tab0 cor0
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9412
SELECT - col0 + CAST( NULL AS SIGNED ) * - col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9412
SELECT - col0 + CAST ( NULL AS INTEGER ) * - col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort
SELECT ALL + col0 * col2 + CAST ( col0 AS REAL ) AS col1 FROM tab0
----
70
7387
816

onlyif mysql # use DIV operator for integer division
query I rowsort label-9414
SELECT - 20 DIV ( col0 ) FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9414
SELECT - 20 / ( col0 ) FROM tab0 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-9415
SELECT ALL col2 DIV 37 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-9415
SELECT ALL col2 / 37 FROM tab2
----
0
0
1

query I rowsort
SELECT ALL - col0 * col0 * col2 AS col1 FROM tab0
----
-1225
-19008
-649522

query I rowsort
SELECT + 74 * + cor0.col2 AS col2 FROM tab0 AS cor0
----
2442
6068
74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 + + 48 col2 FROM tab0 AS cor0
----
-38
-43
-49

query I rowsort
SELECT - cor0.col1 * - col2 + - cor0.col2 AS col2 FROM tab1 AS cor0
----
1152
1350
513

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9420
SELECT - col2 * + CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9420
SELECT - col2 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 76 * + col1 FROM tab0 AS cor0
----
-6536
-6916
-7372

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col2 + cor0.col1 col1 FROM tab2 cor0
----
-21
33
4

query I rowsort
SELECT + ( 55 ) AS col1 FROM tab0
----
55
55
55

query I rowsort
SELECT DISTINCT - 89 + cor0.col0 FROM tab0, tab2, tab1 AS cor0
----
-25
-86
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 12 col1 FROM tab1
----
12
12
12

query I rowsort
SELECT DISTINCT - - 79 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-9427
SELECT - 16 DIV - col1 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-9427
SELECT - 16 / - col1 FROM tab1
----
0
1
1

query I rowsort
SELECT DISTINCT - 56 + col0 AS col2 FROM tab0
----
-21
-32
33

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9429
SELECT DISTINCT 42 + + col1 * CAST( col1 AS SIGNED ) - col1 AS col0 FROM tab2 AS cor0
----
314
3464
972

skipif mysql # not compatible
query I rowsort label-9429
SELECT DISTINCT 42 + + col1 * CAST ( col1 AS INTEGER ) - col1 AS col0 FROM tab2 AS cor0
----
314
3464
972

query I rowsort
SELECT - - col0 + + col0 * col1 FROM tab0 AS cor0
----
2088
3430
8188

query I rowsort
SELECT 99 + - col2 FROM tab2 AS cor0
----
61
72
73

query I rowsort
SELECT ALL + + cor0.col1 * col2 + - col0 AS col0 FROM tab0 AS cor0
----
2814
62
7373

query I rowsort
SELECT + - cor0.col1 * cor0.col2 - + col2 * + col2 * col1 FROM tab2 AS cor0
----
-23436
-25194
-41418

query I rowsort
SELECT ALL 5 - col2 AS col0 FROM tab2 AS cor0
----
-21
-22
-33

onlyif mysql # use DIV operator for integer division
query I rowsort label-9435
SELECT - col2 DIV + col0 + + ( ( - col2 ) ) AS col0 FROM tab0 AS cor0
----
-1
-34
-82

skipif mysql # not compatible
query I rowsort label-9435
SELECT - col2 / + col0 + + ( ( - col2 ) ) AS col0 FROM tab0 AS cor0
----
-1
-34
-82

query I rowsort
SELECT - col2 * col1 - 51 * 85 FROM tab2 AS cor0
----
-4981
-5172
-5869

query I rowsort
SELECT ALL + cor0.col0 + col0 * + cor0.col1 AS col2 FROM tab1 AS cor0
----
1120
704
81

query I rowsort
SELECT ALL 35 * 19 FROM tab2
----
665
665
665

onlyif mysql # use DIV operator for integer division
query I rowsort label-9439
SELECT 59 DIV col2 FROM tab0
----
0
1
59

skipif mysql # not compatible
query I rowsort label-9439
SELECT 59 / col2 FROM tab0
----
0
1
59

query I rowsort
SELECT - 84 * - col1 AS col0 FROM tab1
----
1092
2184
840

onlyif mysql # use DIV operator for integer division
query I rowsort label-9441
SELECT ALL col1 * tab2.col2 DIV col0 col1 FROM tab2
----
119
19
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9441
SELECT ALL col1 * tab2.col2 / col0 col1 FROM tab2
----
119
19
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - col0 col1 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT - + ( col2 ) * + col1 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT - 44 * + col1 AS col2 FROM tab0 AS cor0
----
-3784
-4004
-4268

query I rowsort
SELECT - 78 * col1 + ( col0 * col1 ) FROM tab1 AS cor0
----
-140
-1950
26

onlyif mysql # use DIV operator for integer division
query I rowsort label-9446
SELECT + col2 * col1 DIV cor0.col1 col2 FROM tab2 AS cor0
----
26
27
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9446
SELECT + col2 * col1 / cor0.col1 col2 FROM tab2 AS cor0
----
26
27
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 77 + - col2 col1 FROM tab1 AS cor0
----
-19
20
23

query I rowsort
SELECT + 54 * col2 + - 33 FROM tab2 AS cor0
----
1371
1425
2019

query I rowsort
SELECT - - ( + col1 ) + 42 FROM tab2 AS cor0
----
101
59
73

query I rowsort
SELECT - col0 + - col1 * col2 * + col2 FROM tab1 AS cor0
----
-119888
-32554
-75819

query I rowsort
SELECT DISTINCT + 36 + cor0.col2 * col2 * 16 FROM tab1 AS cor0
----
147492
46692
52020

query I rowsort
SELECT - col0 * 27 FROM tab1 AS cor0
----
-1728
-2160
-81

query I rowsort
SELECT + + col2 + ( + 83 ) AS col1 FROM tab1 cor0
----
137
140
179

query I rowsort
SELECT + + 31 * col2 FROM tab0 AS cor0
----
1023
2542
31

query I rowsort
SELECT - 51 * 79 + col2 * + ( 3 ) * + col0 - - ( cor0.col1 ) * col0 FROM tab1 cor0
----
-3465
20051
7555

query I rowsort
SELECT ( 24 ) AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef

query I rowsort
SELECT 16 + cor0.col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to db9a8d4aa7bd32eedc7a1808f801baa5

onlyif mysql # use DIV operator for integer division
query I rowsort label-9458
SELECT ALL col0 DIV + tab0.col1 + col1 * + tab0.col1 FROM tab0
----
7396
8281
9409

skipif mysql # not compatible
query I rowsort label-9458
SELECT ALL col0 / + tab0.col1 + col1 * + tab0.col1 FROM tab0
----
7396
8281
9409

query I rowsort
SELECT DISTINCT - 87 AS col2 FROM tab0, tab1 cor0
----
-87

query I rowsort
SELECT DISTINCT - col0 * + ( + 48 ) FROM tab2
----
-336
-3744
-3792

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9461
SELECT ALL + CAST( - ( col0 ) AS SIGNED ) * col2 AS col2 FROM tab0 AS cor0
----
-35
-7298
-792

skipif mysql # not compatible
query I rowsort label-9461
SELECT ALL + CAST ( - ( col0 ) AS INTEGER ) * col2 AS col2 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT col0 + - 1 * - cor0.col0 AS col0 FROM tab2 AS cor0
----
14
156
158

query I rowsort
SELECT ALL + 19 * - ( col1 ) * + cor0.col0 + + 53 FROM tab0 AS cor0
----
-153828
-39163
-64452

query I rowsort
SELECT DISTINCT 66 FROM tab0 cor0
----
66

onlyif mysql # use DIV operator for integer division
query I rowsort label-9465
SELECT DISTINCT - cor0.col2 + cor0.col1 DIV col1 FROM tab1 AS cor0
----
-53
-56
-95

skipif mysql # not compatible
query I rowsort label-9465
SELECT DISTINCT - cor0.col2 + cor0.col1 / col1 FROM tab1 AS cor0
----
-53
-56
-95

query I rowsort
SELECT DISTINCT + col1 * + col1 + - col0 AS col2 FROM tab0 AS cor0
----
7372
8192
9374

onlyif mysql # use DIV operator for integer division
query I rowsort label-9467
SELECT ALL + col1 DIV col1 + + col2 * col0 FROM tab2 AS cor0
----
190
2029
3003

skipif mysql # not compatible
query I rowsort label-9467
SELECT ALL + col1 / col1 + + col2 * col0 FROM tab2 AS cor0
----
190
2029
3003

query I rowsort
SELECT ALL + col2 * ( + col0 ) AS col0 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT 12 * + col2 + col1 AS col2 FROM tab0 AS cor0
----
1075
109
482

onlyif mysql # use DIV operator for integer division
query I rowsort label-9470
SELECT DISTINCT - ( col2 ) + + cor0.col1 + cor0.col0 DIV + col0 AS col1 FROM tab2 AS cor0
----
-20
34
5

skipif mysql # not compatible
query I rowsort label-9470
SELECT DISTINCT - ( col2 ) + + cor0.col1 + cor0.col0 / + col0 AS col1 FROM tab2 AS cor0
----
-20
34
5

query I rowsort
SELECT DISTINCT - + 66 + cor0.col2 * col2 AS col1 FROM tab1 AS cor0
----
2850
3183
9150

onlyif mysql # use DIV operator for integer division
query I rowsort label-9472
SELECT ALL + 19 * + col1 - cor0.col0 DIV + col0 FROM tab0 AS cor0
----
1633
1728
1842

skipif mysql # not compatible
query I rowsort label-9472
SELECT ALL + 19 * + col1 - cor0.col0 / + col0 FROM tab0 AS cor0
----
1633
1728
1842

query I rowsort
SELECT tab2.col0 + tab2.col1 + - col1 AS col1 FROM tab2
----
7
78
79

query I rowsort
SELECT ALL + col0 + col2 + 96 AS col2 FROM tab1 AS cor0
----
153
217
272

query I rowsort
SELECT ALL - ( col1 ) + + col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + - cor1.col0 + + 8 FROM tab1 cor0 CROSS JOIN tab0 cor1
----
-16
-27
-81

query I rowsort
SELECT 95 FROM tab0 cor0
----
95
95
95

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9478
SELECT - - cor0.col2 - CAST( NULL AS SIGNED ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-9478
SELECT - - cor0.col2 - CAST ( NULL AS INTEGER ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT col0 + - 0 * - col0 FROM tab1 cor0
----
3
64
80

query I rowsort
SELECT - col1 * ( + col2 ) + col1 * + col1 AS col1 FROM tab2 AS cor0
----
-357
124
1947

query I rowsort
SELECT DISTINCT + cor1.col1 AS col0 FROM tab1, tab0 AS cor0, tab2 cor1
----
17
31
59

skipif mysql # not compatible
query I rowsort
SELECT + cor0.col1 * CAST ( col2 AS REAL ) AS col0 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT ALL + col2 * col1 + 21 AS col1 FROM tab0 AS cor0
----
118
2859
7483

query I rowsort
SELECT + 4 + + col0 FROM tab1 AS cor0
----
68
7
84

query I rowsort
SELECT DISTINCT - - 74 - col0 FROM tab0 AS cor0
----
-15
39
50

query I rowsort
SELECT + - 19 + cor0.col0 AS col0 FROM tab0 cor0
----
16
5
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col0 + + col2 col0 FROM tab2 AS cor0
----
-41
-52
20

query I rowsort
SELECT ALL - + col1 + - col0 + 80 * - col2 AS col1 FROM tab1 AS cor0
----
-4349
-4634
-7773

query I rowsort
SELECT ALL + + col0 * - col1 - 41 FROM tab1 AS cor0
----
-1081
-119
-681

query I rowsort
SELECT ( - col1 ) * - col1 + - 86 FROM tab0
----
7310
8195
9323

query I rowsort
SELECT 37 + - 77 FROM tab0
----
-40
-40
-40

query I rowsort
SELECT DISTINCT + 18 + - col0 * col1 AS col1 FROM tab0
----
-2046
-3377
-8081

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9493
SELECT DISTINCT CAST( 70 AS SIGNED ) + col2 * col1 * 69 AS col0 FROM tab1
----
39400
86182
96946

skipif mysql # not compatible
query I rowsort label-9493
SELECT DISTINCT CAST ( 70 AS INTEGER ) + col2 * col1 * 69 AS col0 FROM tab1
----
39400
86182
96946

query I rowsort
SELECT ALL col1 + tab1.col1 * - tab1.col0 AS col1 FROM tab1
----
-1027
-52
-630

query I rowsort
SELECT + - 88 - + col1 AS col1 FROM tab2 AS cor0
----
-105
-119
-147

query I rowsort
SELECT - col2 * 41 + - col0 FROM tab2
----
-1114
-1144
-1637

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 60 col2 FROM tab0, tab1 AS cor0
----
-60

onlyif mysql # use DIV operator for integer division
query I rowsort label-9498
SELECT DISTINCT - + col1 DIV + col2 + + 11 FROM tab1 cor0
----
11

skipif mysql # not compatible
query I rowsort label-9498
SELECT DISTINCT - + col1 / + col2 + + 11 FROM tab1 cor0
----
11

query I rowsort
SELECT ALL + + 47 * col1 + col1 AS col0 FROM tab0 AS cor0
----
4128
4368
4656

query I rowsort
SELECT 99 + col2 AS col1 FROM tab1 AS cor0
----
153
156
195

query I rowsort
SELECT - - 15 + col2 * - ( - 95 ) FROM tab1 AS cor0
----
5145
5430
9135

query I rowsort
SELECT DISTINCT - col1 * - col1 + - col1 + col0 FROM tab2 AS cor0
----
3500
351
937

onlyif mysql # use DIV operator for integer division
query I rowsort label-9503
SELECT - col2 DIV ( tab2.col0 ) + col2 - col0 FROM tab2
----
-41
-52
17

skipif mysql # not compatible
query I rowsort label-9503
SELECT - col2 / ( tab2.col0 ) + col2 - col0 FROM tab2
----
-41
-52
17

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9504
SELECT - CAST( - col1 AS SIGNED ) * - cor0.col1 + - col0 AS col1 FROM tab2 AS cor0
----
-3559
-368
-968

skipif mysql # not compatible
query I rowsort label-9504
SELECT - CAST ( - col1 AS INTEGER ) * - cor0.col1 + - col0 AS col1 FROM tab2 AS cor0
----
-3559
-368
-968

query I rowsort
SELECT ALL - 33 FROM tab1, tab0 cor0
----
9 values hashing to 8035c665a75d22be5922be1a4e574e03

query I rowsort
SELECT col2 * ( - col2 ) + + col1 AS col0 FROM tab0
----
-1003
-6633
96

query I rowsort
SELECT ALL - col1 * + col1 + - col0 * col0 AS col2 FROM tab1 AS cor0
----
-4196
-6569
-685

query I rowsort
SELECT DISTINCT 93 FROM tab2, tab1, tab1 AS cor0
----
93

query I rowsort
SELECT DISTINCT + col0 + tab0.col1 * col0 * - col0 AS col2 FROM tab0
----
-118790
-49512
-720722

query I rowsort
SELECT ALL - + 24 FROM tab2 AS cor0
----
-24
-24
-24

query I rowsort
SELECT ALL col2 + cor0.col2 * cor0.col0 FROM tab0 AS cor0
----
36
7380
825

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + + cor0.col1 * + col1 * + 61 col1 FROM tab2 AS cor0
----
17667
212367
58648

query I rowsort
SELECT DISTINCT - cor1.col1 * + cor0.col0 FROM tab2, tab1 AS cor0, tab1 cor1
----
9 values hashing to d6e251a4a6d3e8483c15062bde9b3abb

query I rowsort
SELECT + cor0.col2 + 83 FROM tab2 AS cor0
----
109
110
121

query I rowsort
SELECT ALL + cor0.col2 + - 89 * - col0 AS col2 FROM tab0 AS cor0
----
2169
3116
8003

onlyif mysql # use DIV operator for integer division
query I rowsort label-9516
SELECT 18 DIV + 91 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9516
SELECT 18 / + 91 AS col0 FROM tab1
----
0
0
0

query I rowsort
SELECT + cor1.col1 AS col2 FROM tab2, tab0 cor0, tab1 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

query I rowsort
SELECT ALL - ( - 92 ) * col1 AS col2 FROM tab0 AS cor0
----
7912
8372
8924

query I rowsort
SELECT ALL + + cor0.col1 + - col1 FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 35 * + col0 col2 FROM tab1 AS cor0
----
105
2240
2800

query I rowsort
SELECT + - col2 + cor0.col0 * col0 AS col1 FROM tab2 AS cor0
----
22
6058
6203

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9522
SELECT DISTINCT - + CAST( col0 AS SIGNED ) + + col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9522
SELECT DISTINCT - + CAST ( col0 AS INTEGER ) + + col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL + 59 AS col1 FROM tab2 cor0
----
59
59
59

query I rowsort
SELECT + + 96 * - col1 * col1 FROM tab1 AS cor0
----
-16224
-64896
-9600

query I rowsort
SELECT + 20 * + col1 AS col1 FROM tab0 AS cor0
----
1720
1820
1940

query I rowsort
SELECT DISTINCT 41 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
41

query I rowsort
SELECT ALL + 66 + 5 * - col2 AS col2 FROM tab0
----
-344
-99
61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 56 + col0 col1 FROM tab2 AS cor0
----
-49
22
23

query I rowsort
SELECT + 2 * col1 + col1 AS col2 FROM tab0 AS cor0
----
258
273
291

query I rowsort
SELECT DISTINCT - col0 * - 18 FROM tab1 AS cor0
----
1152
1440
54

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9531
SELECT DISTINCT col2 * CAST( col0 AS SIGNED ) AS col2 FROM tab2 cor0
----
189
2028
3002

skipif mysql # not compatible
query I rowsort label-9531
SELECT DISTINCT col2 * CAST ( col0 AS INTEGER ) AS col2 FROM tab2 cor0
----
189
2028
3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-9532
SELECT ALL + col2 DIV - cor0.col1 AS col2 FROM tab2 AS cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-9532
SELECT ALL + col2 / - cor0.col1 AS col2 FROM tab2 AS cor0
----
-2
0
0

query I rowsort
SELECT + cor0.col0 * - col0 + col2 + - col2 AS col0 FROM tab1 AS cor0
----
-4096
-6400
-9

query I rowsort
SELECT ALL + 28 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97

query I rowsort
SELECT - 17 + + col0 * col1 FROM tab0 AS cor0
----
2047
3378
8082

onlyif mysql # use DIV operator for integer division
query I rowsort label-9536
SELECT DISTINCT col1 * col1 DIV col2 AS col0 FROM tab1
----
1
12

skipif mysql # not compatible
query I rowsort label-9536
SELECT DISTINCT col1 * col1 / col2 AS col0 FROM tab1
----
1
12

query I rowsort
SELECT 59 * - 69 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 077d884891b0c1614a11f860f1efcdfb

query I rowsort
SELECT - tab2.col2 + 90 * ( col0 ) FROM tab2
----
603
6994
7072

query I rowsort
SELECT 69 + + tab1.col1 AS col0 FROM tab1, tab0 cor0
----
9 values hashing to 35cd26f33597c096312fa50511b41cbe

onlyif mysql # use DIV operator for integer division
query I rowsort label-9540
SELECT ALL + col1 DIV ( col1 * cor0.col0 ) + - 27 AS col1 FROM tab0 AS cor0
----
-27
-27
-27

skipif mysql # not compatible
query I rowsort label-9540
SELECT ALL + col1 / ( col1 * cor0.col0 ) + - 27 AS col1 FROM tab0 AS cor0
----
-27
-27
-27

query I rowsort
SELECT DISTINCT col0 + 17 FROM tab1 cor0
----
20
81
97

query I rowsort
SELECT ALL - - col0 * col2 + - col2 + + col1 AS col1 FROM tab1 AS cor0
----
134
3601
7597

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col1 * col1 + - col0 col1 FROM tab1 cor0
----
36
673
89

query I rowsort
SELECT 27 FROM tab0, tab0 AS cor0, tab2 cor1
----
27 values hashing to 1a3cef5c33b8f87ffeded378fd207753

query I rowsort
SELECT DISTINCT col0 * 85 FROM tab2 AS cor0
----
595
6630
6715

query I rowsort
SELECT DISTINCT + col1 - col2 * - col0 AS col0 FROM tab1
----
188
3658
7693

onlyif mysql # use DIV operator for integer division
query I rowsort label-9547
SELECT col2 * + ( col2 ) DIV + col2 + col0 DIV col0 - - col0 AS col0 FROM tab0
----
172
37
58

skipif mysql # not compatible
query I rowsort label-9547
SELECT col2 * + ( col2 ) / + col2 + col0 / col0 - - col0 AS col0 FROM tab0
----
172
37
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 + ( col1 ) * - cor0.col0 * cor0.col0 col2 FROM tab1 AS cor0
----
-260
-40970
-83213

query I rowsort
SELECT DISTINCT - col2 - + col1 AS col2 FROM tab1
----
-109
-67
-80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9550
SELECT - tab1.col0 * col1 * + tab1.col0 + col1 + CAST( NULL AS SIGNED ) * - 75 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9550
SELECT - tab1.col0 * col1 * + tab1.col0 + col1 + CAST ( NULL AS INTEGER ) * - 75 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( tab2.col0 ) col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a

onlyif mysql # use DIV operator for integer division
query I rowsort label-9552
SELECT + - cor0.col1 - + col1 DIV + cor0.col2 FROM tab1 cor0
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-9552
SELECT + - cor0.col1 - + col1 / + cor0.col2 FROM tab1 cor0
----
-10
-13
-26

query I rowsort
SELECT DISTINCT + 6 * + 49 AS col0 FROM tab1
----
294

query I rowsort
SELECT ( + col1 + - col1 * + col0 ) AS col0 FROM tab0
----
-1978
-3298
-8008

query I rowsort
SELECT DISTINCT + + col0 + + col2 AS col0 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT - 37 + 7 FROM tab0
----
-30
-30
-30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 90 + + 95 + + col2 * + col1 col2 FROM tab0
----
282
3023
7647

query I rowsort
SELECT + 58 * + col1 AS col1 FROM tab0 cor0
----
4988
5278
5626

query I rowsort
SELECT DISTINCT + col2 + col2 * 39 FROM tab0 AS cor0
----
1320
3280
40

query I rowsort
SELECT - 89 * + cor0.col2 AS col1 FROM tab0 AS cor0
----
-2937
-7298
-89

query I rowsort
SELECT DISTINCT - ( col2 ) * - cor0.col0 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT - - 72 AS col0 FROM tab2 AS cor0
----
72
72
72

query I rowsort
SELECT - ( + col0 ) + 89 * col1 FROM tab0 AS cor0
----
7630
8010
8598

query I rowsort
SELECT ALL + ( tab2.col2 ) * col1 AS col2 FROM tab2
----
1534
646
837

query I rowsort
SELECT ALL + 28 * - tab0.col1 * + col1 AS col2 FROM tab0
----
-207088
-231868
-263452

onlyif mysql # use DIV operator for integer division
query I rowsort label-9566
SELECT + col0 DIV + cor0.col1 AS col1 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9566
SELECT + col0 / + cor0.col1 AS col1 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT - 85 + + col2 AS col1 FROM tab1 AS cor0
----
-28
-31
11

query I rowsort
SELECT DISTINCT + cor0.col2 * - col2 AS col1 FROM tab2 AS cor0
----
-1444
-676
-729

query I rowsort
SELECT ALL + ( + col0 ) + + 42 AS col0 FROM tab0 AS cor0
----
131
66
77

onlyif mysql # use DIV operator for integer division
query I rowsort label-9570
SELECT - col2 + col0 DIV col0 AS col1 FROM tab2 AS cor0
----
-25
-26
-37

skipif mysql # not compatible
query I rowsort label-9570
SELECT - col2 + col0 / col0 AS col1 FROM tab2 AS cor0
----
-25
-26
-37

query I rowsort
SELECT col2 * + tab1.col0 * - ( col2 ) + - col0 FROM tab1
----
-208000
-737360
-8751

query I rowsort
SELECT DISTINCT + - col1 * 97 AS col2 FROM tab2 AS cor0
----
-1649
-3007
-5723

query I rowsort
SELECT - col2 * - ( - cor0.col1 ) AS col0 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT DISTINCT + col1 * 41 + col0 FROM tab2 cor0
----
1278
2497
776

query I rowsort
SELECT ALL - cor0.col0 * col0 + - cor0.col2 - + col2 FROM tab2 AS cor0
----
-103
-6136
-6317

query I rowsort
SELECT ALL + col0 + ( 27 ) + - cor0.col1 AS col0 FROM tab0 AS cor0
----
-35
-35
25

query I rowsort
SELECT ALL - + cor0.col1 * - col2 AS col2 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT + col0 + + ( - col2 ) * - cor0.col0 AS col2 FROM tab0 cor0
----
70
7387
816

onlyif mysql # use DIV operator for integer division
query I rowsort label-9579
SELECT col2 DIV - 61 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9579
SELECT col2 / - 61 AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + 85 * - col1 + + col1 * - col0 FROM tab2
----
-2788
-2852
-9617

query I rowsort
SELECT DISTINCT - col1 * - ( 57 ) - + col2 * col1 FROM tab1 cor0
----
-507
0
78

query I rowsort
SELECT DISTINCT + - col1 + col0 * col0 * col0 FROM tab2 AS cor0
----
312
474493
493022

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 + - col1 col0 FROM tab0 cor0
----
-2
-62
-62

query I rowsort
SELECT DISTINCT + + col2 * - 95 AS col0 FROM tab1 AS cor0
----
-5130
-5415
-9120

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9585
SELECT ALL - col0 * CAST( col1 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-1343
-217
-4602

skipif mysql # not compatible
query I rowsort label-9585
SELECT ALL - col0 * CAST ( col1 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT ALL - col1 * - 82 AS col2 FROM tab2 AS cor0
----
1394
2542
4838

onlyif mysql # use DIV operator for integer division
query I rowsort label-9587
SELECT DISTINCT - + col0 DIV + 71 FROM tab1 cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-9587
SELECT DISTINCT - + col0 / + 71 FROM tab1 cor0
----
-1
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-9588
SELECT - col0 * + col0 + - col0 DIV 4 AS col2 FROM tab2 cor0
----
-50
-6103
-6260

skipif mysql # not compatible
query I rowsort label-9588
SELECT - col0 * + col0 + - col0 / 4 AS col2 FROM tab2 cor0
----
-50
-6103
-6260

query I rowsort
SELECT + 6 + col1 * col0 AS col0 FROM tab1 AS cor0
----
1046
646
84

query I rowsort
SELECT + cor0.col1 + + 62 * + col1 FROM tab0 AS cor0
----
5418
5733
6111

onlyif mysql # use DIV operator for integer division
query I rowsort label-9591
SELECT 9 DIV col1 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9591
SELECT 9 / col1 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - - ( + col1 ) * col0 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT + - col2 + - 91 FROM tab1 AS cor0
----
-145
-148
-187

query I rowsort
SELECT - col0 * 25 + col0 AS col0 FROM tab2 AS cor0
----
-168
-1872
-1896

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9595
SELECT - CAST( - col1 AS SIGNED ) * col2 * col2 + + cor0.col1 * cor0.col0 FROM tab0 AS cor0
----
3492
619983
95718

skipif mysql # not compatible
query I rowsort label-9595
SELECT - CAST ( - col1 AS INTEGER ) * col2 * col2 + + cor0.col1 * cor0.col0 FROM tab0 AS cor0
----
3492
619983
95718

query I rowsort
SELECT ALL - 50 * - col2 FROM tab1 AS cor0
----
2700
2850
4800

onlyif mysql # use DIV operator for integer division
query I rowsort label-9597
SELECT DISTINCT 19 + - col1 DIV + col2 FROM tab1 AS cor0
----
19

skipif mysql # not compatible
query I rowsort label-9597
SELECT DISTINCT 19 + - col1 / + col2 FROM tab1 AS cor0
----
19

query I rowsort
SELECT - + 0 * col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - - col0 * 76 + + col0 AS col0 FROM tab1 AS cor0
----
231
4928
6160

query I rowsort
SELECT ALL + - ( - 68 ) * - col1 FROM tab2 AS cor0
----
-1156
-2108
-4012

query I rowsort
SELECT ALL col2 * - 40 AS col2 FROM tab1 AS cor0
----
-2160
-2280
-3840

query I rowsort
SELECT ALL - 37 AS col0 FROM tab1, tab2 cor0
----
9 values hashing to ed4644af7729c2425ea6cc3d84c6504f

query I rowsort
SELECT - 65 * - col2 + 76 * - col2 AS col2 FROM tab1 AS cor0
----
-1056
-594
-627

query I rowsort
SELECT DISTINCT - - cor0.col2 + col1 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT tab0.col1 * + col0 - - col0 FROM tab0
----
2088
3430
8188

query I rowsort
SELECT ALL + tab2.col2 AS col2 FROM tab2 WHERE NOT col0 < + col2
----
26
38

query I rowsort
SELECT ALL col0 * col1 * + col1 - + col0 AS col0 FROM tab0
----
177480
329280
736920

query I rowsort
SELECT + col0 * col0 AS col2 FROM tab0 WHERE ( NULL ) BETWEEN ( + col0 ) AND ( NULL )
----

query I rowsort
SELECT + col2 * - col2 * - col1 FROM tab0
----
611884
93654
97

query I rowsort
SELECT - col2 * col2 * col1 AS col1 FROM tab1
----
-119808
-32490
-75816

onlyif mysql # use DIV operator for integer division
query I rowsort label-9611
SELECT DISTINCT tab1.col2 DIV tab1.col0 FROM tab1
----
0
1
18

skipif mysql # not compatible
query I rowsort label-9611
SELECT DISTINCT tab1.col2 / tab1.col0 FROM tab1
----
0
1
18

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col2 - col2 * col1 <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + + col2 * col0 col0 FROM tab1
----
165
3712
7760

onlyif mysql # use DIV operator for integer division
query I rowsort label-9614
SELECT - col2 DIV + tab0.col1 + col2 AS col2 FROM tab0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-9614
SELECT - col2 / + tab0.col1 + col2 AS col2 FROM tab0
----
1
33
82

query I rowsort
SELECT ALL + tab2.col1 * col0 * col2 FROM tab2
----
119652
51034
5859

query I rowsort
SELECT + col1 FROM tab0 WHERE NOT NULL BETWEEN ( NULL ) AND + col1 + col0
----

query I rowsort
SELECT ALL col1 * col0 * - col2 FROM tab0
----
-3395
-664118
-68112

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9618
SELECT DISTINCT + CAST( NULL AS SIGNED ) * 30 AS col0 FROM tab2, tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9618
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * 30 AS col0 FROM tab2, tab1 cor0
----
NULL

query I rowsort
SELECT ALL + col0 * + col1 * col2 FROM tab2
----
119652
51034
5859

query I rowsort
SELECT - col2 * tab1.col0 - col1 AS col2 FROM tab1
----
-188
-3658
-7693

query I rowsort
SELECT DISTINCT col1 + col2 * + col2 * col2 AS col2 FROM tab0
----
36023
551459
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-9622
SELECT col0 * col0 - + tab1.col1 DIV - col2 FROM tab1
----
4096
6400
9

skipif mysql # not compatible
query I rowsort label-9622
SELECT col0 * col0 - + tab1.col1 / - col2 FROM tab1
----
4096
6400
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * tab0.col1 + + col1 + col2 col2 FROM tab0
----
195
2957
7635

query I rowsort
SELECT DISTINCT - col2 * col1 * - col2 AS col2 FROM tab2
----
22599
24548
39884

query I rowsort
SELECT DISTINCT col1 * tab1.col2 + col2 - col0 AS col1 FROM tab1
----
1264
1455
563

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - - col0 col0 FROM tab1 WHERE col2 + - col0 <> ( col1 * col0 )
----
128
160
6

query I rowsort
SELECT col1 * + col0 + + col2 / - col0 FROM tab1 AS cor0 WHERE + col1 IN ( + col2 * col0 * + col2 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-9628
SELECT - col1 * col2 DIV col1 + - col2 AS col1 FROM tab0
----
-164
-2
-66

skipif mysql # not compatible
query I rowsort label-9628
SELECT - col1 * col2 / col1 + - col2 AS col1 FROM tab0
----
-164
-2
-66

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT IN ( + col0 + col1 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 IN ( + col0 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

query I rowsort
SELECT col2 * + col1 AS col1 FROM tab2 WHERE NULL <> + col1 * col2
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-9632
SELECT DISTINCT + col1 DIV - tab2.col1 - + col0 FROM tab2
----
-79
-8
-80

skipif mysql # not compatible
query I rowsort label-9632
SELECT DISTINCT + col1 / - tab2.col1 - + col0 FROM tab2
----
-79
-8
-80

query I rowsort
SELECT ALL + col1 * - col2 + + col1 FROM tab0 AS cor0
----
-2752
-7371
0

query I rowsort
SELECT ALL - col0 * + col0 - - col0 FROM tab0 AS cor0
----
-1190
-552
-7832

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 <= - col0
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

query I rowsort
SELECT + col1 + + col1 * col0 AS col1 FROM tab2 WHERE - col1 <= ( NULL )
----

query I rowsort
SELECT + col2 * 13 + col2 * col2 FROM tab0
----
14
1518
7790

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9638
SELECT CAST( 37 AS SIGNED ) FROM tab0 cor0
----
37
37
37

skipif mysql # not compatible
query I rowsort label-9638
SELECT CAST ( 37 AS INTEGER ) FROM tab0 cor0
----
37
37
37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 7 col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76

query I rowsort
SELECT DISTINCT - col2 * 48 AS col1 FROM tab1
----
-2592
-2736
-4608

query I rowsort
SELECT + 19 * cor1.col2 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 747894a9126ad3d3f44cf80b407a42e9

query I rowsort
SELECT ALL - ( tab0.col2 ) AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to b5a4102107e5ebd26e341538f4fede1e

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9643
SELECT ALL - CAST( NULL AS SIGNED ) * ( col2 ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9643
SELECT ALL - CAST ( NULL AS INTEGER ) * ( col2 ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - tab1.col2 + + cor0.col2 AS col1 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 12f25781b1248b197d1419c2b5cf2d28

query I rowsort
SELECT ALL - - col1 + - ( - cor0.col0 ) AS col1 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT DISTINCT 5 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
5

query I rowsort
SELECT DISTINCT - 2 * - col1 AS col2 FROM tab1 AS cor0
----
20
26
52

query I rowsort
SELECT - + col0 * ( + cor0.col1 + col2 ) FROM tab2 AS cor0
----
-406
-4345
-6630

query I rowsort
SELECT col1 + cor0.col1 AS col0 FROM tab1 cor0
----
20
26
52

query I rowsort
SELECT col1 + - col2 * tab0.col0 FROM tab0
----
-706
-7207
62

query I rowsort
SELECT ALL - 31 AS col0 FROM tab1, tab2, tab1 cor0
----
27 values hashing to c6c8eebeb1a59f7c046402e25630c0ac

query I rowsort
SELECT col0 * cor0.col0 * 57 + col2 AS col0 FROM tab1 AS cor0
----
233529
364896
567

query I rowsort
SELECT + - 93 * + col0 FROM tab0 AS cor0
----
-2232
-3255
-8277

query I rowsort
SELECT cor0.col1 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0, tab0 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

query I rowsort
SELECT ALL 14 + col0 + col0 FROM tab2 AS cor0
----
170
172
28

query I rowsort
SELECT ALL 36 + + cor0.col0 * + cor0.col2 AS col0 FROM tab1 AS cor0
----
198
3684
7716

query I rowsort
SELECT - tab1.col1 FROM tab1, tab0, tab0 cor0
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6

query I rowsort
SELECT DISTINCT + ( col0 * col1 ) FROM tab0
----
2064
3395
8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * col1 * col0 col0 FROM tab0
----
177504
329315
737009

query I rowsort
SELECT ALL + cor0.col1 * + col0 FROM tab2 cor0
----
1343
217
4602

query I rowsort
SELECT DISTINCT + col0 * - cor0.col0 + - cor0.col1 FROM tab2 AS cor0
----
-6143
-6258
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 48 + + col0 col0 FROM tab2 AS cor0
----
-41
30
31

query I rowsort
SELECT ALL + - col2 * - col0 AS col0 FROM tab1 cor0
----
162
3648
7680

query I rowsort
SELECT DISTINCT + + col0 + col2 * cor0.col0 FROM tab0 cor0
----
70
7387
816

query I rowsort
SELECT + col1 + 25 AS col2 FROM tab0 cor0
----
111
116
122

query I rowsort
SELECT + col2 * col1 + - 99 AS col1 FROM tab2 AS cor0
----
1435
547
738

onlyif mysql # use DIV operator for integer division
query I rowsort label-9667
SELECT + col0 DIV tab0.col1 AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9667
SELECT + col0 / tab0.col1 AS col0 FROM tab0
----
0
0
0

query I rowsort
SELECT ( 63 ) FROM tab0, tab0 AS cor0
----
9 values hashing to c3eea92c46f2c49716f386a58b575025

query I rowsort
SELECT col2 + + ( - 28 ) FROM tab2 AS cor0
----
-1
-2
10

query I rowsort
SELECT + col1 * - 63 AS col1 FROM tab1 AS cor0
----
-1638
-630
-819

query I rowsort
SELECT - col2 * ( col0 ) + - col1 FROM tab0 cor0
----
-132
-7389
-878

onlyif mysql # use DIV operator for integer division
query I rowsort label-9672
SELECT - cor0.col0 DIV - col1 + + col2 DIV - col0 col1 FROM tab2 AS cor0
----
-3
1
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9672
SELECT - cor0.col0 / - col1 + + col2 / - col0 col1 FROM tab2 AS cor0
----
-3
1
4

query I rowsort
SELECT + col2 + - tab2.col0 + - col1 AS col2 FROM tab2
----
-11
-111
-58

query I rowsort
SELECT DISTINCT tab0.col2 + + col0 AS col0 FROM tab0
----
171
36
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-9675
SELECT col2 DIV col0 + + col1 AS col0 FROM tab2
----
17
34
59

skipif mysql # not compatible
query I rowsort label-9675
SELECT col2 / col0 + + col1 AS col0 FROM tab2
----
17
34
59

query I rowsort
SELECT + cor0.col2 * cor0.col0 FROM tab0 cor0
----
35
7298
792

query I rowsort
SELECT - - col2 + + col2 + - col1 * + col1 FROM tab2 AS cor0
----
-213
-3429
-907

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + - tab2.col2 * - col2 col0 FROM tab2
----
1365
598
722

query I rowsort
SELECT col2 * + tab0.col2 + col1 AS col2 FROM tab0
----
1175
6815
98

query I rowsort
SELECT - col1 * + col0 + - col0 AS col0 FROM tab0
----
-2088
-3430
-8188

query I rowsort
SELECT DISTINCT col1 * tab1.col1 + - col0 * col1 FROM tab1
----
-540
-871
598

query I rowsort
SELECT DISTINCT col0 + + col0 * col0 FROM tab0 cor0
----
1260
600
8010

query I rowsort
SELECT cor0.col1 * cor0.col2 + - col2 FROM tab0 AS cor0
----
2805
7380
96

query I rowsort
SELECT ALL - cor0.col0 * + cor0.col0 * - col1 + - col2 AS col2 FROM tab2 AS cor0
----
106059
1492
358930

query I rowsort
SELECT col0 * col1 - col1 * - tab0.col2 FROM tab0
----
15561
3492
4902

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 * col0 + col1 col2 FROM tab0 AS cor0
----
132
7389
878

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 + + col1 * - col2 col2 FROM tab0 cor0
----
-2805
-7380
-96

query I rowsort
SELECT DISTINCT - col2 - col0 * - col1 * - col2 AS col0 FROM tab2 cor0
----
-119678
-51072
-5886

query I rowsort
SELECT DISTINCT - col2 * col1 + cor0.col0 FROM tab0 AS cor0
----
-2814
-62
-7373

query I rowsort
SELECT ALL + 74 - col1 FROM tab1
----
48
61
64

query I rowsort
SELECT + col2 + + cor0.col0 + col1 FROM tab2 AS cor0
----
134
163
65

query I rowsort
SELECT + col2 * col0 * cor0.col1 AS col1 FROM tab1 AS cor0
----
36480
4212
99840

onlyif mysql # use DIV operator for integer division
query I rowsort label-9693
SELECT ALL - col2 + - col2 DIV col0 AS col0 FROM tab2 AS cor0
----
-26
-30
-38

skipif mysql # not compatible
query I rowsort label-9693
SELECT ALL - col2 + - col2 / col0 AS col0 FROM tab2 AS cor0
----
-26
-30
-38

query I rowsort
SELECT DISTINCT - + ( col0 ) + + col0 AS col2 FROM tab1 AS cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-9695
SELECT ALL + + 48 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-9695
SELECT ALL + + 48 / + col2 col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT 39 * - col1 FROM tab1 AS cor0
----
-1014
-390
-507

query I rowsort
SELECT ALL - + col1 * col1 + - cor0.col1 FROM tab2 AS cor0
----
-306
-3540
-992

query I rowsort
SELECT ALL cor0.col2 + + cor0.col1 AS col1 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT DISTINCT tab1.col2 * - col1 * tab1.col2 FROM tab1
----
-119808
-32490
-75816

onlyif mysql # use DIV operator for integer division
query I rowsort label-9700
SELECT - col1 + + col2 DIV + col1 + + col2 * col1 AS col2 FROM tab1 AS cor0
----
1242
1380
565

skipif mysql # not compatible
query I rowsort label-9700
SELECT - col1 + + col2 / + col1 + + col2 * col1 AS col2 FROM tab1 AS cor0
----
1242
1380
565

query I rowsort
SELECT + + col0 * col2 * - cor0.col2 FROM tab2 AS cor0
----
-114076
-5103
-52728

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + col2 * + col1 col2 FROM tab2
----
119652
51034
5859

query I rowsort
SELECT ( col0 ) + + col2 * + col1 FROM tab1
----
1328
1407
634

onlyif mysql # use DIV operator for integer division
query I rowsort label-9704
SELECT DISTINCT cor0.col2 DIV - col1 AS col2 FROM tab2 AS cor0
----
-2
0

skipif mysql # not compatible
query I rowsort label-9704
SELECT DISTINCT cor0.col2 / - col1 AS col2 FROM tab2 AS cor0
----
-2
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9705
SELECT ALL 3 + col2 * + CAST( col1 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
100
2841
7465

skipif mysql # not compatible
query I rowsort label-9705
SELECT ALL 3 + col2 * + CAST ( col1 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
100
2841
7465

query I rowsort
SELECT col1 * - col2 * col2 AS col0 FROM tab1 AS cor0
----
-119808
-32490
-75816

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 96 col2 FROM tab2
----
96

query I rowsort
SELECT DISTINCT col0 * + col0 * col0 AS col1 FROM tab0
----
13824
42875
704969

query I rowsort
SELECT + col0 + + cor0.col0 * + 61 FROM tab2 AS cor0
----
434
4836
4898

query I rowsort
SELECT ALL - col0 * 65 FROM tab1 AS cor0
----
-195
-4160
-5200

onlyif mysql # use DIV operator for integer division
query I rowsort label-9711
SELECT - col1 DIV - ( - col1 ) col0 FROM tab1
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9711
SELECT - col1 / - ( - col1 ) col0 FROM tab1
----
-1
-1
-1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9712
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + 43 FROM tab0, tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9712
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + 43 FROM tab0, tab1 AS cor0
----
NULL

query I rowsort
SELECT + cor0.col2 * - col0 FROM tab1 cor0
----
-162
-3648
-7680

query I rowsort
SELECT DISTINCT 42 * col1 FROM tab2
----
1302
2478
714

query I rowsort
SELECT cor1.col0 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870

query I rowsort
SELECT DISTINCT + ( - col0 ) * col1 + col2 AS col0 FROM tab2 AS cor0
----
-1305
-190
-4576

query I rowsort
SELECT ALL ( - 95 ) FROM tab0 cor0
----
-95
-95
-95

query I rowsort
SELECT + + col0 * 83 + cor0.col2 AS col2 FROM tab2 AS cor0
----
608
6500
6595

query I rowsort
SELECT + 4 AS col1 FROM tab1, tab2 AS cor0, tab2, tab0 cor1
----
81 values hashing to 3347a3237b37ed63205e9440d8818a46

query I rowsort
SELECT - col0 + 80 FROM tab0 AS cor0
----
-9
45
56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col1 + col1 * - col2 col2 FROM tab1 AS cor0
----
-1261
-1430
-580

query I rowsort
SELECT - col0 * col2 * col2 + col1 AS col2 FROM tab2 cor0
----
-114059
-5072
-52669

query I rowsort
SELECT DISTINCT + 42 + col1 * + col2 AS col1 FROM tab2 AS cor0
----
1576
688
879

onlyif mysql # use DIV operator for integer division
query I rowsort label-9724
SELECT - + col2 + - col0 DIV col1 AS col2 FROM tab1 AS cor0
----
-102
-54
-63

skipif mysql # not compatible
query I rowsort label-9724
SELECT - + col2 + - col0 / col1 AS col2 FROM tab1 AS cor0
----
-102
-54
-63

query I rowsort
SELECT DISTINCT - 56 + col2 FROM tab2 AS cor0
----
-18
-29
-30

query I rowsort
SELECT ALL 69 * - cor0.col2 AS col2 FROM tab0 AS cor0
----
-2277
-5658
-69

query I rowsort
SELECT - col0 * col0 + ( - 31 ) FROM tab0 AS cor0
----
-1256
-607
-7952

query I rowsort
SELECT DISTINCT - cor0.col0 * - 50 FROM tab2, tab0 cor0
----
1200
1750
4450

query I rowsort
SELECT + 60 + cor0.col1 * + col0 AS col1 FROM tab2 AS cor0
----
1403
277
4662

query I rowsort
SELECT ( - col1 ) * col1 + tab0.col0 FROM tab0
----
-7372
-8192
-9374

query I rowsort
SELECT + - 65 * - col0 + ( + col0 ) AS col0 FROM tab1 AS cor0
----
198
4224
5280

query I rowsort
SELECT col1 * col2 * ( cor0.col0 * + col1 + cor0.col0 ) FROM tab2 AS cor0
----
187488
7179120
918612

query I rowsort
SELECT + + ( col2 ) + - col2 * col1 AS col1 FROM tab0 AS cor0
----
-2805
-7380
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 38 col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e571541ae40cb0ddaca16e11f4359507

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9735
SELECT + - CAST( NULL AS SIGNED ) - + col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9735
SELECT + - CAST ( NULL AS INTEGER ) - + col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 64 + - col2 * col2 col0 FROM tab1 AS cor0
----
-2852
-3185
-9152

query I rowsort
SELECT + - col1 * 24 * + col2 + - col0 FROM tab2 AS cor0
----
-15583
-20095
-36894

query I rowsort
SELECT DISTINCT 35 AS col1 FROM tab0, tab2 AS cor0
----
35

query I rowsort
SELECT ALL 73 * + 46 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 3104bca1dee3aa486671f794748d11d7

query I rowsort
SELECT ( tab0.col2 ) AS col2 FROM tab0, tab1, tab1 cor0
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT DISTINCT ( + col1 * - col0 ) AS col0 FROM tab0
----
-2064
-3395
-8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-9742
SELECT - 80 DIV ( col2 ) + - CAST( col1 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-11
-13
-27

skipif mysql # not compatible
query I rowsort label-9742
SELECT - 80 / ( col2 ) + - CAST ( col1 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-11
-13
-27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 49 * - col1 col2 FROM tab1
----
-1274
-490
-637

query I rowsort
SELECT ALL - - col2 + col0 * col1 AS col1 FROM tab2 AS cor0
----
1381
244
4628

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab2, tab2 AS cor2
----
3645 values hashing to 3eea7cef970c8ff51d71b8a23ee129bf

onlyif mysql # use DIV operator for integer division
query I rowsort label-9746
SELECT - col2 * + ( 25 ) + col2 * - col2 + - col1 DIV - col0 FROM tab0 AS cor0
----
-1911
-24
-8773

skipif mysql # not compatible
query I rowsort label-9746
SELECT - col2 * + ( 25 ) + col2 * - col2 + - col1 / - col0 FROM tab0 AS cor0
----
-1911
-24
-8773

query I rowsort
SELECT - col0 * + ( col1 ) * - col0 + - col2 AS col1 FROM tab0 AS cor0
----
118824
49503
720729

query I rowsort
SELECT - - 72 + + col2 FROM tab0 AS cor0
----
105
154
73

query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab1 AS cor0, tab1 cor1, tab2 cor2
----
972 values hashing to 72eb3d4d523f5d0c69d1b855edd18f4a

query I rowsort
SELECT ALL col2 * + col0 + col1 * - 76 FROM tab0 AS cor0
----
-5744
-7337
382

query I rowsort
SELECT - col1 + - 42 * col0 AS col0 FROM tab0 cor0
----
-1094
-1567
-3829

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( col1 ) * col2 + - col0 * 34 col2 FROM tab0 AS cor0
----
-10488
-1287
-3654

query I rowsort
SELECT DISTINCT col0 - 20 FROM tab2 AS cor0
----
-13
58
59

query I rowsort
SELECT ALL + + col2 * col1 - - col2 AS col1 FROM tab2 AS cor0
----
1560
684
864

query I rowsort
SELECT DISTINCT - 88 - col1 FROM tab2 AS cor0
----
-105
-119
-147

query I rowsort
SELECT DISTINCT - 63 + + col2 - col1 AS col0 FROM tab1
----
-16
-35
20

query I rowsort
SELECT 58 + + 9 AS col0 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to eea8a0738728ea55e4e7ba1506c9905a

query I rowsort
SELECT + cor0.col2 * col1 + + cor0.col0 + 85 FROM tab2 AS cor0
----
1697
810
929

query I rowsort
SELECT - 7 + cor0.col2 * col2 FROM tab0 AS cor0
----
-6
1082
6717

query I rowsort
SELECT + + col2 + 37 + 38 * col0 * - cor0.col2 FROM tab2 AS cor0
----
-114001
-7118
-77001

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9761
SELECT ALL + col1 * - col1 * - col2 + - cor0.col2 * CAST( col1 AS SIGNED ) FROM tab1 AS cor0
----
14976
35100
5130

skipif mysql # not compatible
query I rowsort label-9761
SELECT ALL + col1 * - col1 * - col2 + - cor0.col2 * CAST ( col1 AS INTEGER ) FROM tab1 AS cor0
----
14976
35100
5130

query I rowsort
SELECT - col0 + col0 + cor0.col0 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT DISTINCT - + col1 * + col2 * col2 FROM tab0 cor0
----
-611884
-93654
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-9764
SELECT + col1 DIV 85 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9764
SELECT + col1 / 85 FROM tab2 cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-9765
SELECT - col0 DIV ( col1 * col0 ) + ( - cor0.col2 ) + + col2 * - col2 AS col0 FROM tab0 AS cor0
----
-1122
-2
-6806

skipif mysql # not compatible
query I rowsort label-9765
SELECT - col0 / ( col1 * col0 ) + ( - cor0.col2 ) + + col2 * - col2 AS col0 FROM tab0 AS cor0
----
-1122
-2
-6806

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9766
SELECT DISTINCT + + col0 * CAST( col0 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
4096
6400
9

skipif mysql # not compatible
query I rowsort label-9766
SELECT DISTINCT + + col0 * CAST ( col0 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT DISTINCT + col2 + - 64 FROM tab0 cor0
----
-31
-63
18

query I rowsort
SELECT col1 * col1 + + 93 * - cor0.col2 AS col0 FROM tab1 AS cor0
----
-4346
-5201
-8759

query I rowsort
SELECT DISTINCT col0 + - col1 - 57 * - col0 FROM tab2
----
375
4465
4565

query I rowsort
SELECT ALL + ( + col0 ) * + 40 FROM tab0
----
1400
3560
960

query I rowsort
SELECT ALL - - col2 + 6 FROM tab2 AS cor0
----
32
33
44

onlyif mysql # use DIV operator for integer division
query I rowsort label-9772
SELECT DISTINCT + col1 DIV ( col1 ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-9772
SELECT DISTINCT + col1 / ( col1 ) FROM tab1 AS cor0
----
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9773
SELECT + 94 + + col2 + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9773
SELECT + 94 + + col2 + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT col2 - ( 72 ) * + tab0.col0 AS col0 FROM tab0
----
-1695
-2519
-6326

query I rowsort
SELECT DISTINCT col2 + + col2 + 71 AS col2 FROM tab2
----
123
125
147

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9776
SELECT col1 + + CAST( NULL AS SIGNED ) / col0 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9776
SELECT col1 + + CAST ( NULL AS INTEGER ) / col0 AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-9777
SELECT col1 DIV + tab2.col1 + + tab2.col1 * + col0 col1 FROM tab2
----
1344
218
4603

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9777
SELECT col1 / + tab2.col1 + + tab2.col1 * + col0 col1 FROM tab2
----
1344
218
4603

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9778
SELECT tab0.col1 * - col2 + - tab0.col0 * - col1 + + CAST( - 15 AS SIGNED ) AS col1 FROM tab0
----
-789
3283
622

skipif mysql # not compatible
query I rowsort label-9778
SELECT tab0.col1 * - col2 + - tab0.col0 * - col1 + + CAST ( - 15 AS INTEGER ) AS col1 FROM tab0
----
-789
3283
622

query I rowsort
SELECT col0 * - ( col1 + - col2 ) * - col0 AS col2 FROM tab0
----
117600
30528
71289

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * col2 col0 FROM tab0
----
35
7298
792

query I rowsort
SELECT + 35 - col0 * col0 FROM tab2
----
-14
-6049
-6206

query I rowsort
SELECT ALL + ( - 93 ) AS col0 FROM tab0
----
-93
-93
-93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 25 * + col0 col1 FROM tab2 AS cor0
----
175
1950
1975

query I rowsort
SELECT DISTINCT - col0 * col2 - - col1 AS col2 FROM tab1 AS cor0
----
-136
-3638
-7667

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + cor0.col0 * ( + col0 ) + - col0 * col0 col1 FROM tab1 cor0
----
54
57
96

query I rowsort
SELECT - - cor0.col0 * - col1 AS col2 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT ALL ( + col2 ) - - 49 FROM tab2 AS cor0
----
75
76
87

query I rowsort
SELECT - - 85 + + col0 FROM tab1 cor0
----
149
165
88

query I rowsort
SELECT col0 - 63 AS col0 FROM tab1
----
-60
1
17

query I rowsort
SELECT DISTINCT - ( + 15 ) AS col0 FROM tab0, tab2, tab0 AS cor0
----
-15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 45 col2 FROM tab1 AS cor0
----
45
45
45

query I rowsort
SELECT ALL - col0 * + col1 - - col0 AS col1 FROM tab2 AS cor0
----
-1264
-210
-4524

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9793
SELECT ALL - - col0 * + cor0.col1 + CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9793
SELECT ALL - - col0 * + cor0.col1 + CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9794
SELECT + col0 / - cor0.col0 + - col0 * - CAST( NULL AS SIGNED ) * + col0 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-9794
SELECT + col0 / - cor0.col0 + - col0 * - CAST ( NULL AS INTEGER ) * + col0 col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 32 col0 FROM tab2, tab2 AS cor0
----
9 values hashing to d30a2acbf33c88274474306936d3227b

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9796
SELECT DISTINCT - CAST( NULL AS DECIMAL ) / + col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9796
SELECT DISTINCT - CAST ( NULL AS REAL ) / + col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-9797
SELECT ALL - col0 DIV col0 + col1 FROM tab1 AS cor0
----
12
25
9

skipif mysql # not compatible
query I rowsort label-9797
SELECT ALL - col0 / col0 + col1 FROM tab1 AS cor0
----
12
25
9

query I rowsort
SELECT DISTINCT col2 + 71 * - cor0.col1 * + cor0.col2 AS col0 FROM tab2 cor0
----
-108888
-45828
-59400

query I rowsort
SELECT ALL + + 61 + - col0 AS col1 FROM tab0 AS cor0
----
-28
26
37

query I rowsort
SELECT ALL + col2 * 66 - col1 FROM tab0 AS cor0
----
-31
2092
5321

query I rowsort
SELECT - + ( 30 ) * + col1 FROM tab0 cor0
----
-2580
-2730
-2910

query I rowsort
SELECT ALL - col1 * col2 * + col0 FROM tab0 AS cor0
----
-3395
-664118
-68112

query I rowsort
SELECT ALL + - col2 * col1 + col1 AS col0 FROM tab1 AS cor0
----
-1235
-1378
-560

query I rowsort
SELECT col0 * col1 + - col0 AS col1 FROM tab1 AS cor0
----
576
75
960

query I rowsort
SELECT ALL - - 52 - + 55 AS col1 FROM tab0 AS cor0
----
-3
-3
-3

query I rowsort
SELECT DISTINCT + col1 + - col0 * + col2 * + col2 FROM tab0 AS cor0
----
-26050
-598345
62

query I rowsort
SELECT ALL 21 * - col2 AS col1 FROM tab1 AS cor0
----
-1134
-1197
-2016

query I rowsort
SELECT ALL + - 80 * col2 FROM tab2 AS cor0
----
-2080
-2160
-3040

query I rowsort
SELECT + + col2 - cor0.col0 AS col0 FROM tab1 AS cor0
----
-7
16
51

query I rowsort
SELECT - + cor0.col1 * col2 + - col2 * col1 AS col0 FROM tab0 cor0
----
-14924
-194
-5676

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 61 col2 FROM tab2 cor0
----
-61

query I rowsort
SELECT - - col1 + + 80 FROM tab2 AS cor0
----
111
139
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9813
SELECT DISTINCT - + col1 + + CAST( NULL AS DECIMAL ) + col2 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9813
SELECT DISTINCT - + col1 + + CAST ( NULL AS REAL ) + col2 AS col0 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 * - 40 col0 FROM tab1 AS cor0
----
-120
-2560
-3200

query I rowsort
SELECT ALL 93 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 85ef191bf1b307f300b3fd49992fcae7

onlyif mysql # use DIV operator for integer division
query I rowsort label-9816
SELECT + + col2 DIV + col0 + + col1 * col1 col1 FROM tab1 AS cor0
----
100
170
694

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9816
SELECT + + col2 / + col0 + + col1 * col1 col1 FROM tab1 AS cor0
----
100
170
694

query I rowsort
SELECT DISTINCT + col1 * col1 * - col0 + col1 FROM tab1 AS cor0
----
-13507
-2002
-6390

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9818
SELECT DISTINCT + col0 + - CAST( col0 AS SIGNED ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9818
SELECT DISTINCT + col0 + - CAST ( col0 AS INTEGER ) FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL col1 + ( 2 ) - - col1 FROM tab0 AS cor0
----
174
184
196

query I rowsort
SELECT - - col1 + 16 AS col1 FROM tab0 cor0
----
102
107
113

query I rowsort
SELECT col0 + + 47 + col2 FROM tab0 cor0
----
104
218
83

query I rowsort
SELECT col0 + ( 25 ) AS col1 FROM tab2 AS cor0
----
103
104
32

query I rowsort
SELECT - col2 + + ( + col1 ) FROM tab2 cor0
----
-21
33
4

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9824
SELECT + CAST( - col1 AS SIGNED ) + col0 + + cor0.col0 * 57 FROM tab1 AS cor0
----
148
3702
4627

skipif mysql # not compatible
query I rowsort label-9824
SELECT + CAST ( - col1 AS INTEGER ) + col0 + + cor0.col0 * 57 FROM tab1 AS cor0
----
148
3702
4627

query I rowsort
SELECT - 28 + + cor0.col0 AS col0 FROM tab2 cor0
----
-21
50
51

onlyif mysql # use DIV operator for integer division
query I rowsort label-9826
SELECT ALL col0 DIV ( tab2.col1 ) FROM tab2
----
0
1
4

skipif mysql # not compatible
query I rowsort label-9826
SELECT ALL col0 / ( tab2.col1 ) FROM tab2
----
0
1
4

query I rowsort
SELECT DISTINCT - col2 * 63 * - tab0.col0 FROM tab0
----
2205
459774
49896

query I rowsort
SELECT + 6 AS col0 FROM tab1, tab2 AS cor0, tab2 cor1
----
27 values hashing to f1e8f0199f3714ee8fcc24ce0cc3ea04

query I rowsort
SELECT DISTINCT - 72 + cor0.col0 * + col1 FROM tab2 AS cor0
----
1271
145
4530

query I rowsort
SELECT DISTINCT - ( + 95 ) FROM tab1
----
-95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 3 * + col1 + + col1 col0 FROM tab1
----
104
40
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 32 col1 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to cf4f01ac97eb83445b1721f3ae28961a

onlyif mysql # use DIV operator for integer division
query I rowsort label-9833
SELECT 32 DIV + tab2.col1 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-9833
SELECT 32 / + tab2.col1 FROM tab2
----
0
1
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9834
SELECT DISTINCT ( col2 ) + col2 * 74 + col1 * CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9834
SELECT DISTINCT ( col2 ) + col2 * 74 + col1 * CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL

query I rowsort
SELECT col1 * col0 - + 47 * - cor0.col1 AS col1 FROM tab2 AS cor0
----
1674
2142
7375

onlyif mysql # use DIV operator for integer division
query I rowsort label-9836
SELECT ALL + 68 DIV col1 FROM tab1
----
2
5
6

skipif mysql # not compatible
query I rowsort label-9836
SELECT ALL + 68 / col1 FROM tab1
----
2
5
6

query I rowsort
SELECT 57 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a

query I rowsort
SELECT DISTINCT - col1 - col0 AS col0 FROM tab0 AS cor0
----
-110
-132
-180

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 cor0, tab1 cor1, tab1 cor2
----
972 values hashing to cee640567b2a4ba7d97109d5025bf4d9

query I rowsort
SELECT - cor0.col2 + - col0 AS col2 FROM tab1 AS cor0
----
-121
-176
-57

onlyif mysql # use DIV operator for integer division
query I rowsort label-9841
SELECT DISTINCT - - col1 DIV - col1 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-9841
SELECT DISTINCT - - col1 / - col1 FROM tab1 AS cor0
----
-1

query I rowsort
SELECT ALL col0 * + col2 + col1 FROM tab1 cor0
----
188
3658
7693

query I rowsort
SELECT ALL + ( + col1 * + col2 ) - + 31 FROM tab1
----
1217
1373
539

onlyif mysql # use DIV operator for integer division
query I rowsort label-9844
SELECT + + 60 + cor0.col0 DIV col1 FROM tab1 AS cor0
----
60
66
66

skipif mysql # not compatible
query I rowsort label-9844
SELECT + + 60 + cor0.col0 / col1 FROM tab1 AS cor0
----
60
66
66

query I rowsort
SELECT tab1.col1 + - 31 - - col0 * col1 FROM tab1
----
1022
619
73

query I rowsort
SELECT - tab1.col0 * + tab1.col0 AS col1 FROM tab1
----
-4096
-6400
-9

query I rowsort
SELECT ALL - col2 * - col2 + ( col2 ) FROM tab1 AS cor0
----
2970
3306
9312

query I rowsort
SELECT ALL col1 + - col1 * - col0 + - col1 AS col2 FROM tab0 AS cor0
----
2064
3395
8099

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9849
SELECT DISTINCT - - col0 * col0 + - CAST( NULL AS SIGNED ) col0 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9849
SELECT DISTINCT - - col0 * col0 + - CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - 69 AS col1 FROM tab0 cor0
----
-69
-69
-69

query I rowsort
SELECT + cor0.col1 * - tab2.col1 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to e246f01e7527290f6f8a00299a40ecad

onlyif mysql # use DIV operator for integer division
query I rowsort label-9852
SELECT ALL col2 * col1 DIV + col0 FROM tab0
----
118
2
83

skipif mysql # not compatible
query I rowsort label-9852
SELECT ALL col2 * col1 / + col0 FROM tab0
----
118
2
83

query I rowsort
SELECT + col0 * - col1 * - col1 AS col0 FROM tab1 AS cor0
----
13520
2028
6400

onlyif mysql # use DIV operator for integer division
query I rowsort label-9854
SELECT - col1 DIV ( 71 + - col0 ) FROM tab0 AS cor0
----
-1
-2
5

skipif mysql # not compatible
query I rowsort label-9854
SELECT - col1 / ( 71 + - col0 ) FROM tab0 AS cor0
----
-1
-2
5

query I rowsort
SELECT - - col2 + + col2 * + col0 FROM tab1 AS cor0
----
216
3705
7776

query I rowsort
SELECT - ( + col0 ) * + cor0.col2 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT + col1 - - ( - col0 ) * - 70 FROM tab2 AS cor0
----
521
5519
5547

query I rowsort
SELECT + 79 * + ( - col2 ) FROM tab0 AS cor0
----
-2607
-6478
-79

onlyif mysql # use DIV operator for integer division
query I rowsort label-9859
SELECT + - col2 * - cor0.col1 DIV - col1 + ( col1 ) * + col1 col2 FROM tab0 AS cor0
----
7363
8199
9408

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9859
SELECT + - col2 * - cor0.col1 / - col1 + ( col1 ) * + col1 col2 FROM tab0 AS cor0
----
7363
8199
9408

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9860
SELECT ALL - + CAST( NULL AS SIGNED ) - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9860
SELECT ALL - + CAST ( NULL AS INTEGER ) - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 56 + ( + col2 + - col0 ) AS col1 FROM tab0 AS cor0
----
22
49
65

query I rowsort
SELECT DISTINCT col2 * + 76 FROM tab2 AS cor0
----
1976
2052
2888

query I rowsort
SELECT ALL - ( 46 ) - + col1 FROM tab0 AS cor0
----
-132
-137
-143

query I rowsort
SELECT ALL + 76 * + col2 + cor0.col1 FROM tab0 AS cor0
----
173
2594
6323

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9865
SELECT DISTINCT - - CAST( NULL AS DECIMAL ) + - col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9865
SELECT DISTINCT - - CAST ( NULL AS REAL ) + - col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ( ( - col0 ) ) AS col1 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT DISTINCT 51 * + 81 FROM tab2 AS cor0
----
4131

query I rowsort
SELECT ALL 91 + - 11 * col2 FROM tab0 AS cor0
----
-272
-811
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9869
SELECT ALL - + CAST( NULL AS SIGNED ) + col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9869
SELECT ALL - + CAST ( NULL AS INTEGER ) + col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 42 + - col0 FROM tab1
----
-22
-38
39

onlyif mysql # use DIV operator for integer division
query I rowsort label-9871
SELECT DISTINCT + col1 DIV 56 FROM tab2
----
0
1

skipif mysql # not compatible
query I rowsort label-9871
SELECT DISTINCT + col1 / 56 FROM tab2
----
0
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-9872
SELECT - - col2 + + 62 DIV col0 FROM tab2 AS cor0
----
26
35
38

skipif mysql # not compatible
query I rowsort label-9872
SELECT - - col2 + + 62 / col0 FROM tab2 AS cor0
----
26
35
38

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9873
SELECT ALL + col2 + cor0.col2 * CAST( + 76 AS SIGNED ) AS col1 FROM tab0 cor0
----
2541
6314
77

skipif mysql # not compatible
query I rowsort label-9873
SELECT ALL + col2 + cor0.col2 * CAST ( + 76 AS INTEGER ) AS col1 FROM tab0 cor0
----
2541
6314
77

query I rowsort
SELECT ALL + tab0.col1 - tab0.col1 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL + 88 + col0 - tab1.col0 FROM tab1
----
88
88
88

query I rowsort
SELECT col2 + col2 + + 39 * - col0 AS col1 FROM tab2 AS cor0
----
-219
-2990
-3005

query I rowsort
SELECT ALL 92 * col1 AS col0 FROM tab1 AS cor0
----
1196
2392
920

query I rowsort
SELECT ALL - 5 + - col1 * - col0 FROM tab2 AS cor0
----
1338
212
4597

query I rowsort
SELECT col2 * col2 + - 47 * ( col0 ) + - col2 AS col1 FROM tab1 AS cor0
----
184
2721
5360

query I rowsort
SELECT DISTINCT - col1 + + col0 * col0 FROM tab2 AS cor0
----
18
6025
6224

query I rowsort
SELECT 81 + - 92 FROM tab1
----
-11
-11
-11

query I rowsort
SELECT - col0 + - col0 * - col1 AS col0 FROM tab2
----
1264
210
4524

query I rowsort
SELECT DISTINCT 59 * col0 FROM tab1
----
177
3776
4720

query I rowsort
SELECT + col2 * col0 * - col0 + col2 * + col1 FROM tab0
----
-1128
-16170
-642060

query I rowsort
SELECT ALL col0 * - col2 - - col1 FROM tab2
----
-158
-1969
-2985

query I rowsort
SELECT ALL + 81 - tab2.col1 * - col2 AS col0 FROM tab2
----
1615
727
918

query I rowsort
SELECT - col0 + - ( + col0 ) FROM tab1
----
-128
-160
-6

query I rowsort
SELECT DISTINCT - col0 + + 51 AS col0 FROM tab0 AS cor0
----
-38
16
27

onlyif mysql # use DIV operator for integer division
query I rowsort label-9889
SELECT ALL col1 + - 96 - + col1 DIV col1 FROM tab2 AS cor0
----
-38
-66
-80

skipif mysql # not compatible
query I rowsort label-9889
SELECT ALL col1 + - 96 - + col1 / col1 FROM tab2 AS cor0
----
-38
-66
-80

query I rowsort
SELECT + col2 * + 72 + - col0 AS col0 FROM tab1 AS cor0
----
3885
4040
6832

onlyif mysql # use DIV operator for integer division
query I rowsort label-9891
SELECT ALL + col2 DIV col2 - - col0 AS col1 FROM tab1 cor0
----
4
65
81

skipif mysql # not compatible
query I rowsort label-9891
SELECT ALL + col2 / col2 - - col0 AS col1 FROM tab1 cor0
----
4
65
81

query I rowsort
SELECT DISTINCT cor0.col2 + + 88 FROM tab1 AS cor0
----
142
145
184

query I rowsort
SELECT col1 * - ( + col1 + - col0 ) * 63 FROM tab2 AS cor0
----
-46872
66402
70623

query I rowsort
SELECT + col0 * + ( 56 ) AS col1 FROM tab2 AS cor0
----
392
4368
4424

query I rowsort
SELECT + col1 * - tab2.col0 AS col0 FROM tab2
----
-1343
-217
-4602

query I rowsort
SELECT DISTINCT ( tab0.col1 ) + 2 AS col0 FROM tab0
----
88
93
99

query I rowsort
SELECT DISTINCT - tab2.col2 + col1 * - col0 AS col2 FROM tab2
----
-1381
-244
-4628

query I rowsort
SELECT + 27 + - tab2.col2 * + 89 * - tab2.col0 AS col0 FROM tab2
----
16848
180519
267205

query I rowsort
SELECT - ( col2 ) * tab0.col0 FROM tab0
----
-35
-7298
-792

onlyif mysql # use DIV operator for integer division
query I rowsort label-9900
SELECT ALL - + cor0.col2 + - col0 DIV + cor0.col0 AS col1 FROM tab0 AS cor0
----
-2
-34
-83

skipif mysql # not compatible
query I rowsort label-9900
SELECT ALL - + cor0.col2 + - col0 / + cor0.col0 AS col1 FROM tab0 AS cor0
----
-2
-34
-83

onlyif mysql # use DIV operator for integer division
query I rowsort label-9901
SELECT - + cor0.col2 DIV 39 + cor0.col2 FROM tab1 AS cor0
----
53
56
94

skipif mysql # not compatible
query I rowsort label-9901
SELECT - + cor0.col2 / 39 + cor0.col2 FROM tab1 AS cor0
----
53
56
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 - ( col2 ) * + col1 col0 FROM tab1
----
-1235
-1378
-560

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + cor0.col1 + + ( - col0 ) col0 FROM tab2 AS cor0
----
1456
567
830

onlyif mysql # use DIV operator for integer division
query I rowsort label-9904
SELECT DISTINCT - col0 + col2 DIV ( col0 ) + - cor0.col1 AS col2 FROM tab1 AS cor0
----
-11
-74
-92

skipif mysql # not compatible
query I rowsort label-9904
SELECT DISTINCT - col0 + col2 / ( col0 ) + - cor0.col1 AS col2 FROM tab1 AS cor0
----
-11
-74
-92

query I rowsort
SELECT DISTINCT col2 * 53 AS col1 FROM tab0
----
1749
4346
53

query I rowsort
SELECT - col0 * col1 + col0 AS col1 FROM tab0 cor0
----
-2040
-3360
-8010

query I rowsort
SELECT col0 + tab0.col0 * - col1 AS col1 FROM tab0
----
-2040
-3360
-8010

query I rowsort
SELECT col0 + - col0 * + col1 FROM tab2 AS cor0
----
-1264
-210
-4524

query I rowsort
SELECT col0 * - col0 + col1 * + col2 AS col0 FROM tab0 AS cor0
----
-1128
-459
2262

onlyif mysql # use DIV operator for integer division
query I rowsort label-9910
SELECT ALL + col1 + col2 DIV - tab2.col1 + + col0 FROM tab2
----
137
38
94

skipif mysql # not compatible
query I rowsort label-9910
SELECT ALL + col1 + col2 / - tab2.col1 + + col0 FROM tab2
----
137
38
94

query I rowsort
SELECT + col0 * + col2 * cor0.col1 + col0 AS col0 FROM tab2 AS cor0
----
119730
51113
5866

query I rowsort
SELECT + col1 * + col1 + - col1 * col1 AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + col2 + col2 * + col0 FROM tab0 WHERE NOT NULL NOT IN ( - col0 * + col2 )
----

query I rowsort
SELECT DISTINCT col1 - - col1 AS col2 FROM tab1
----
20
26
52

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL IN ( - col2 / col1 + tab1.col0 )
----

query I rowsort
SELECT ALL tab1.col2 - col0 * - tab1.col0 FROM tab1
----
4153
63
6496

onlyif mysql # use DIV operator for integer division
query I rowsort label-9917
SELECT col1 - - tab2.col2 DIV + col0 FROM tab2
----
17
34
59

skipif mysql # not compatible
query I rowsort label-9917
SELECT col1 - - tab2.col2 / + col0 FROM tab2
----
17
34
59

query I rowsort
SELECT DISTINCT + col0 * col2 * col2 FROM tab0
----
26136
35
598436

query I rowsort
SELECT col2 + - col2 * col2 AS col0 FROM tab2 WHERE NOT col0 * + col1 < + col2
----
-1406
-650
-702

query I rowsort
SELECT tab2.col0 * + col0 + + col0 FROM tab2
----
56
6162
6320

query I rowsort
SELECT ALL col0 FROM tab0 WHERE + col1 * col2 NOT IN ( col0 - col1 )
----
24
35
89

query I rowsort
SELECT col2 + col2 * - tab0.col2 AS col0 FROM tab0
----
-1056
-6642
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL IN ( col2 * col1 ) OR - col2 = NULL
----

query I rowsort
SELECT ALL col1 * col1 * - col2 + + cor0.col1 FROM tab0 AS cor0
----
-243982
-678951
-9312

query I rowsort
SELECT cor0.col1 * col0 + - col1 * col1 AS col2 FROM tab2 AS cor0
----
-744
1054
1121

query I rowsort
SELECT + col0 * tab2.col2 * col2 - col2 AS col0 FROM tab2
----
114038
5076
52702

query I rowsort
SELECT ALL - col1 * col0 * + tab0.col1 + - col0 * - tab0.col1 * - col1 FROM tab0
----
-1474018
-355008
-658630

onlyif mysql # use DIV operator for integer division
query I rowsort label-9928
SELECT ALL - col2 + - col1 * - tab1.col1 + - tab1.col2 DIV + col1 FROM tab1
----
38
620
66

skipif mysql # not compatible
query I rowsort label-9928
SELECT ALL - col2 + - col1 * - tab1.col1 + - tab1.col2 / + col1 FROM tab1
----
38
620
66

onlyif mysql # use DIV operator for integer division
query I rowsort label-9929
SELECT ALL + col1 * + col1 + col0 DIV col2 AS col0 FROM tab1
----
101
169
676

skipif mysql # not compatible
query I rowsort label-9929
SELECT ALL + col1 * + col1 + col0 / col2 AS col0 FROM tab1
----
101
169
676

query I rowsort
SELECT + + col0 * col1 + - cor0.col0 * col0 FROM tab0 AS cor0
----
1488
178
2170

query I rowsort
SELECT - col1 + + col0 - cor0.col0 AS col1 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT ALL + - cor0.col0 + + col2 AS col2 FROM tab0 AS cor0
----
-34
-7
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + col1 + + col2 * col2 col2 FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT ALL - - col0 + - col2 + + cor0.col2 AS col0 FROM tab2 AS cor0
----
7
78
79

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 BETWEEN ( NULL ) AND + col2 * - tab2.col0
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

query I rowsort
SELECT ALL + - col2 + col2 * col0 + - col0 FROM tab0 AS cor0
----
-1
7127
735

query I rowsort
SELECT - col0 + - col2 + + col2 * - col1 FROM tab2 cor0
----
-1638
-763
-871

query I rowsort
SELECT ALL + col0 * - col1 + col2 FROM tab0 AS cor0
----
-2031
-3394
-8017

query I rowsort
SELECT DISTINCT 65 + col1 * ( col2 ) * col0 AS col0 FROM tab0
----
3460
664183
68177

onlyif mysql # use DIV operator for integer division
query I rowsort label-9940
SELECT - 13 DIV col0 AS col1 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-9940
SELECT - 13 / col0 AS col1 FROM tab2
----
-1
0
0

query I rowsort
SELECT + - cor0.col1 + 50 * + ( cor0.col1 ) AS col2 FROM tab2 AS cor0
----
1519
2891
833

query I rowsort
SELECT + col0 * 52 AS col2 FROM tab2 AS cor0
----
364
4056
4108

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9943
SELECT ALL + cor0.col2 + CAST( NULL AS SIGNED ) - ( - col1 ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9943
SELECT ALL + cor0.col2 + CAST ( NULL AS INTEGER ) - ( - col1 ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9944
SELECT - cor0.col1 + - CAST( col2 AS SIGNED ) FROM tab1 AS cor0
----
-109
-67
-80

skipif mysql # not compatible
query I rowsort label-9944
SELECT - cor0.col1 + - CAST ( col2 AS INTEGER ) FROM tab1 AS cor0
----
-109
-67
-80

query I rowsort
SELECT ALL - + cor0.col1 + 92 AS col1 FROM tab2 cor0
----
33
61
75

onlyif mysql # use DIV operator for integer division
query I rowsort label-9946
SELECT DISTINCT - cor0.col1 DIV + col0 - col2 AS col2 FROM tab1 AS cor0
----
-57
-62
-96

skipif mysql # not compatible
query I rowsort label-9946
SELECT DISTINCT - cor0.col1 / + col0 - col2 AS col2 FROM tab1 AS cor0
----
-57
-62
-96

query I rowsort
SELECT ALL - 14 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to d321461994ba49c3a70fa6373032fc94

query I rowsort
SELECT + + col2 + + 88 FROM tab2 AS cor0
----
114
115
126

query I rowsort
SELECT DISTINCT - 53 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-53

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9950
SELECT + col0 - CAST( - 56 AS SIGNED ) * col2 AS col0 FROM tab1 AS cor0
----
3027
3256
5456

skipif mysql # not compatible
query I rowsort label-9950
SELECT + col0 - CAST ( - 56 AS INTEGER ) * col2 AS col0 FROM tab1 AS cor0
----
3027
3256
5456

onlyif mysql # use DIV operator for integer division
query I rowsort label-9951
SELECT - + col2 + col0 DIV col0 AS col0 FROM tab1 AS cor0
----
-53
-56
-95

skipif mysql # not compatible
query I rowsort label-9951
SELECT - + col2 + col0 / col0 AS col0 FROM tab1 AS cor0
----
-53
-56
-95

onlyif mysql # use DIV operator for integer division
query I rowsort label-9952
SELECT - - col0 DIV + CAST( col1 AS SIGNED ) + + col0 AS col0 FROM tab1 AS cor0
----
3
70
86

skipif mysql # not compatible
query I rowsort label-9952
SELECT - - col0 / + CAST ( col1 AS INTEGER ) + + col0 AS col0 FROM tab1 AS cor0
----
3
70
86

query I rowsort
SELECT col0 * + col1 + + col2 AS col2 FROM tab1 cor0
----
1136
132
697

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - - tab2.col0 col2 FROM tab2
----
137
38
96

query I rowsort
SELECT ALL col0 + col1 * + col2 AS col0 FROM tab0
----
132
2862
7551

query I rowsort
SELECT ALL - col0 + col2 * - col0 AS col1 FROM tab0
----
-70
-7387
-816

query III rowsort
SELECT * FROM tab2 WHERE ( col1 ) <> col2 + col2 * - col2 * + col2
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL ) BETWEEN NULL AND ( NULL )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-9959
SELECT ALL + col0 DIV - col0 + + col1 DIV tab2.col0 AS col0 FROM tab2
----
-1
-1
3

skipif mysql # not compatible
query I rowsort label-9959
SELECT ALL + col0 / - col0 + + col1 / tab2.col0 AS col0 FROM tab2
----
-1
-1
3

query I rowsort
SELECT ALL col2 FROM tab0 WHERE ( NULL ) IN ( - col1 + - col0 )
----

query I rowsort
SELECT - col0 * - col2 + cor0.col2 AS col0 FROM tab0 AS cor0
----
36
7380
825

onlyif mysql # use DIV operator for integer division
query I rowsort label-9962
SELECT DISTINCT + tab1.col1 DIV col2 + col1 FROM tab1
----
10
13
26

skipif mysql # not compatible
query I rowsort label-9962
SELECT DISTINCT + tab1.col1 / col2 + col1 FROM tab1
----
10
13
26

query I rowsort
SELECT ALL col0 * ( - col2 ) + + cor0.col0 * + col1 AS col2 FROM tab0 AS cor0
----
1272
3360
801

query I rowsort
SELECT DISTINCT - + col2 + - 67 * + col1 + col1 FROM tab2 cor0
----
-1160
-2073
-3920

query I rowsort
SELECT ALL + col1 + - ( ( - col0 ) + + col0 ) * - col1 AS col2 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT ALL - col0 * 95 + + col2 * - col2 AS col2 FROM tab0 AS cor0
----
-15179
-3326
-3369

query I rowsort
SELECT + + col0 * ( - col2 * - col0 ) FROM tab0 AS cor0
----
1225
19008
649522

query I rowsort
SELECT - - cor0.col2 * - 13 - cor0.col2 * col2 AS col0 FROM tab0 AS cor0
----
-14
-1518
-7790

query I rowsort
SELECT DISTINCT - col0 * - 35 * col1 + cor0.col1 * - col0 FROM tab2 AS cor0
----
156468
45662
7378

query I rowsort
SELECT ( - col0 + - col2 ) AS col1 FROM tab1
----
-121
-176
-57

query I rowsort
SELECT DISTINCT - col2 + 38 * - 97 AS col2 FROM tab1 AS cor0
----
-3740
-3743
-3782

query I rowsort
SELECT DISTINCT tab1.col1 * col2 * - tab1.col0 FROM tab1
----
-36480
-4212
-99840

onlyif mysql # use DIV operator for integer division
query I rowsort label-9973
SELECT DISTINCT tab2.col1 DIV col1 AS col2 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-9973
SELECT DISTINCT tab2.col1 / col1 AS col2 FROM tab2
----
1

query I rowsort
SELECT ALL cor0.col2 + ( col1 ) AS col1 FROM tab2 cor0
----
55
58
85

query I rowsort
SELECT ALL - col0 + 47 FROM tab2 AS cor0
----
-31
-32
40

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9976
SELECT - - col1 / CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9976
SELECT - - col1 / CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 + - 54 col2 FROM tab0 cor0
----
-140
-145
-151

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col2 * col2 col0 FROM tab1
----
2916
3249
9216

query I rowsort
SELECT cor0.col0 * - cor1.col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to a5747c01cc59c7dd6ac59c9369299556

query I rowsort
SELECT - col2 + col0 * - col2 + col0 FROM tab0 AS cor0
----
-1
-7291
-801

query I rowsort
SELECT ALL ( + cor0.col0 * + cor0.col1 ) AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to f2938bee011b8d49dd931b1f9235e7f5

query I rowsort
SELECT ALL 21 + cor0.col0 * col0 AS col1 FROM tab0 AS cor0
----
1246
597
7942

query I rowsort
SELECT - col0 * + 82 + + 94 + + col1 FROM tab1
----
-126
-5144
-6453

query I rowsort
SELECT ALL tab1.col1 + ( - 66 * col2 ) AS col0 FROM tab1
----
-3538
-3752
-6323

onlyif mysql # use DIV operator for integer division
query I rowsort label-9985
SELECT ALL + - cor0.col0 + col2 DIV - ( + col1 ) FROM tab2 cor0
----
-7
-78
-81

skipif mysql # not compatible
query I rowsort label-9985
SELECT ALL + - cor0.col0 + col2 / - ( + col1 ) FROM tab2 cor0
----
-7
-78
-81

query I rowsort
SELECT + 26 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584

onlyif mysql # use DIV operator for integer division
query I rowsort label-9987
SELECT DISTINCT + - col1 DIV - col0 + col1 + col1 FROM tab0 AS cor0
----
175
183
196

skipif mysql # not compatible
query I rowsort label-9987
SELECT DISTINCT + - col1 / - col0 + col1 + col1 FROM tab0 AS cor0
----
175
183
196

onlyif mysql # use DIV operator for integer division
query I rowsort label-9988
SELECT ALL - 19 DIV cor0.col1 AS col1 FROM tab1 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-9988
SELECT ALL - 19 / cor0.col1 AS col1 FROM tab1 AS cor0
----
-1
-1
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9989
SELECT - col1 + col1 * - CAST( 18 AS SIGNED ) FROM tab2 AS cor0
----
-1121
-323
-589

skipif mysql # not compatible
query I rowsort label-9989
SELECT - col1 + col1 * - CAST ( 18 AS INTEGER ) FROM tab2 AS cor0
----
-1121
-323
-589

query I rowsort
SELECT DISTINCT cor0.col0 FROM tab2, tab0 AS cor0, tab0, tab0 AS cor1
----
24
35
89

query I rowsort
SELECT + cor1.col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc

query I rowsort
SELECT ALL ( + col0 ) + - ( cor0.col2 + - col1 ) FROM tab2 AS cor0
----
11
111
58

query I rowsort
SELECT DISTINCT + cor0.col2 + col2 * ( cor0.col2 + col2 ) AS col2 FROM tab2 AS cor0
----
1378
1485
2926

query I rowsort
SELECT + - cor1.col0 + + cor1.col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT ALL + 47 AS col0 FROM tab0
----
47
47
47

onlyif mysql # use DIV operator for integer division
query I rowsort label-9996
SELECT - col0 DIV + col0 + col2 FROM tab2
----
25
26
37

skipif mysql # not compatible
query I rowsort label-9996
SELECT - col0 / + col0 + col2 FROM tab2
----
25
26
37

query I rowsort
SELECT ALL + ( + tab2.col0 * col1 + col1 ) FROM tab2
----
1360
248
4661

query I rowsort
SELECT ALL + 84 + cor0.col2 FROM tab0 AS cor0
----
117
166
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 * col1 * col1 col2 FROM tab1 AS cor0
----
-16224
-36504
-5700