sqllogictest
Artifact Content
Not logged in

Artifact a10b6e590f40f05b142a126b0b08cc764a477a7b:


hash-threshold 8

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1
SELECT DISTINCT - - 37 + - col0 / + col2 FROM tab0 AS cor0
----
2
36
37

query I rowsort
SELECT DISTINCT - + 17 FROM tab1 AS cor0
----
-17

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

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

query I rowsort
SELECT ALL col0 * col0 + cor0.col0 * cor0.col0 FROM tab1 AS cor0
----
12800
18
8192

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

skipif mysql # not compatible
query I rowsort label-6
SELECT - tab0.col0 + - CAST ( NULL AS REAL ) * - 77 FROM tab0
----
NULL
NULL
NULL

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

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

query I rowsort
SELECT - col0 + - col1 + + col0 AS col0 FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT ALL + col2 * 73 AS col2 FROM tab0 AS cor0
----
2409
5986
73

query I rowsort
SELECT DISTINCT + 20 * col0 AS col0 FROM tab0
----
1780
480
700

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

query I rowsort
SELECT - + 21 + + col0 AS col0 FROM tab1 AS cor0
----
-18
43
59

query I rowsort
SELECT DISTINCT - cor0.col1 - cor0.col1 AS col2 FROM tab1, tab1 AS cor0
----
-20
-26
-52

query I rowsort
SELECT 99 * + cor0.col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 429d3cabfc257e3c1552e5ae7e68a4d2

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-18
SELECT ALL - + ( + col2 ) DIV + cor0.col1 + col1 FROM tab0 cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-18
SELECT ALL - + ( + col2 ) / + cor0.col1 + col1 FROM tab0 cor0
----
86
91
97

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

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

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

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

query I rowsort
SELECT ALL + cor0.col0 * 24 + col0 * - 93 FROM tab2 AS cor0
----
-483
-5382
-5451

query I rowsort
SELECT col0 * - ( - col1 * - col2 ) + col2 + 60 FROM tab2
----
-119566
-50936
-5772

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-25
SELECT ALL 88 + + ( col0 + - col2 ) * - col0 DIV + col0 AS col1 FROM tab2 AS cor0
----
108
36
47

skipif mysql # not compatible
query I rowsort label-25
SELECT ALL 88 + + ( col0 + - col2 ) * - col0 / + col0 AS col1 FROM tab2 AS cor0
----
108
36
47

query I rowsort
SELECT DISTINCT - col0 - - 99 FROM tab2 AS cor0
----
20
21
92

query I rowsort
SELECT ALL - + col2 + 13 * + col0 AS col0 FROM tab1 cor0
----
-15
775
944

query I rowsort
SELECT ALL + + 49 FROM tab0 AS cor0
----
49
49
49

query I rowsort
SELECT cor0.col2 AS col0 FROM tab0, tab2 cor0, tab2, tab2 AS cor1
----
81 values hashing to c4e6b1f1d28e731664a15a6f7cda4da9

query I rowsort
SELECT - 42 * 90 FROM tab2 AS cor0
----
-3780
-3780
-3780

query I rowsort
SELECT - 62 + + col1 AS col2 FROM tab1 AS cor0
----
-36
-49
-52

query I rowsort
SELECT + 78 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4

query I rowsort
SELECT - - col2 * + col0 * + ( + 90 ) AS col2 FROM tab0 AS cor0
----
3150
656820
71280

query I rowsort
SELECT + col1 * 7 - col1 * - col0 AS col1 FROM tab0 AS cor0
----
2666
4074
8736

query I rowsort
SELECT ALL col0 - 31 FROM tab2
----
-24
47
48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab1.col0 - - col0 col2 FROM tab1
----
0
0
0

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

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

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

query I rowsort
SELECT ALL 21 FROM tab1, tab2 cor0
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 57 col0 FROM tab0 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab2 AS cor2
----
81 values hashing to 23b62d6905061dab566f3a9e15667302

query I rowsort
SELECT ALL + - col2 + col2 * 13 FROM tab1 AS cor0
----
1152
648
684

query I rowsort
SELECT DISTINCT col0 * - 28 AS col0 FROM tab0 AS cor0
----
-2492
-672
-980

query I rowsort
SELECT DISTINCT + col1 + + 62 * col0 AS col1 FROM tab0 AS cor0
----
1574
2267
5609

query I rowsort
SELECT + cor0.col2 * + 12 FROM tab1 AS cor0
----
1152
648
684

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-49
SELECT DISTINCT CAST ( + ( col0 ) AS INTEGER ) FROM tab1 AS cor0
----
3
64
80

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

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

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

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

skipif mysql # not compatible
query I rowsort
SELECT col1 * CAST ( 83 AS REAL ) FROM tab2
----
1411
2573
4897

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

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

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

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

query I rowsort
SELECT DISTINCT - ( col1 ) + - 75 AS col0 FROM tab2 AS cor0
----
-106
-134
-92

query I rowsort
SELECT + ( col0 + 58 ) AS col0 FROM tab1
----
122
138
61

query I rowsort
SELECT + - cor0.col0 * ( col0 + - col1 ) AS col0 FROM tab2 cor0
----
-1482
-4898
168

query I rowsort
SELECT DISTINCT + + col0 * - 8 AS col2 FROM tab0 AS cor0
----
-192
-280
-712

query I rowsort
SELECT DISTINCT + col0 + 26 * col2 AS col2 FROM tab2 AS cor0
----
1067
709
754

query I rowsort
SELECT DISTINCT - - col1 * + col2 + - col2 AS col0 FROM tab1 AS cor0
----
1152
1350
513

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

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

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

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

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

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

query I rowsort
SELECT - col0 - col0 * + 55 AS col0 FROM tab2
----
-392
-4368
-4424

onlyif mysql # use DIV operator for integer division
query I rowsort label-69
SELECT - col1 - col0 DIV col0 FROM tab2
----
-18
-32
-60

skipif mysql # not compatible
query I rowsort label-69
SELECT - col1 - col0 / col0 FROM tab2
----
-18
-32
-60

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

query I rowsort
SELECT col0 * - col2 + 25 AS col0 FROM tab1
----
-137
-3623
-7655

query I rowsort
SELECT ALL 16 * + tab1.col0 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 164aed5ce180379f03cc8376ea456b4d

query I rowsort
SELECT - 55 * + tab2.col0 - 85 AS col2 FROM tab2
----
-4375
-4430
-470

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-75
SELECT DISTINCT cor1.col0 DIV 37 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
0
2

skipif mysql # not compatible
query I rowsort label-75
SELECT DISTINCT cor1.col0 / 37 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
0
2

query I rowsort
SELECT 95 * - col2 FROM tab2
----
-2470
-2565
-3610

query I rowsort
SELECT ALL - 72 * - cor0.col1 FROM tab2 AS cor0
----
1224
2232
4248

query I rowsort
SELECT + - 3 FROM tab2 cor0
----
-3
-3
-3

query I rowsort
SELECT ALL + 36 * col2 + - 52 AS col0 FROM tab1 AS cor0
----
1892
2000
3404

onlyif mysql # use DIV operator for integer division
query I rowsort label-80
SELECT + col0 DIV col0 - ( + col0 ) * cor0.col0 DIV 70 AS col1 FROM tab1 AS cor0
----
-57
-90
1

skipif mysql # not compatible
query I rowsort label-80
SELECT + col0 / col0 - ( + col0 ) * cor0.col0 / 70 AS col1 FROM tab1 AS cor0
----
-57
-90
1

query I rowsort
SELECT + - col2 * - col1 - 75 AS col1 FROM tab2 AS cor0
----
1459
571
762

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

query I rowsort
SELECT ALL + ( - col1 ) + 82 AS col2 FROM tab1 AS cor0
----
56
69
72

query I rowsort
SELECT DISTINCT col2 * 65 FROM tab2
----
1690
1755
2470

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

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

skipif mysql # not compatible
query I rowsort label-86
SELECT + col2 * CAST ( col1 AS INTEGER ) FROM tab2
----
1534
646
837

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

query I rowsort
SELECT ALL + col1 + 9 * col1 AS col2 FROM tab0 AS cor0
----
860
910
970

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

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

query I rowsort
SELECT ALL - + 81 + - col2 FROM tab1 AS cor0
----
-135
-138
-177

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

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

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

query I rowsort
SELECT + cor0.col2 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17

query I rowsort
SELECT DISTINCT - - col1 - + 72 * + cor0.col0 AS col2 FROM tab0 AS cor0
----
-1642
-2423
-6317

query I rowsort
SELECT ALL + + ( col0 ) + col0 AS col2 FROM tab2 AS cor0
----
14
156
158

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

query I rowsort
SELECT ALL + 72 - - col0 AS col1 FROM tab1 AS cor0
----
136
152
75

query I rowsort
SELECT + 28 * + col0 + + col1 AS col0 FROM tab0 AS cor0
----
1077
2583
758

query I rowsort
SELECT col2 + - 98 AS col1 FROM tab1
----
-2
-41
-44

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-102
SELECT + col2 * col1 / - col2 - + col2 col2 FROM tab1
----
-109
-67
-80

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

skipif mysql # not compatible
query I rowsort label-103
SELECT ALL + - CAST ( + col2 AS INTEGER ) * cor0.col0 * col0 FROM tab1 cor0
----
-233472
-486
-614400

query I rowsort
SELECT DISTINCT + + col2 + 90 AS col0 FROM tab1 AS cor0
----
144
147
186

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

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

query I rowsort
SELECT ALL + cor0.col2 AS col2 FROM tab0, tab1 cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17

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

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

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

query I rowsort
SELECT ALL - ( 46 * - col0 ) AS col2 FROM tab0
----
1104
1610
4094

query I rowsort
SELECT ALL - 15 * + 56 FROM tab2
----
-840
-840
-840

query I rowsort
SELECT + 9 * - col1 + 63 * cor0.col1 FROM tab2 AS cor0
----
1674
3186
918

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

query I rowsort
SELECT + cor0.col1 + + ( 13 * - col0 ) AS col1 FROM tab0 AS cor0
----
-1066
-226
-358

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

query I rowsort
SELECT - col1 + 22 * + 22 * col2 FROM tab2 AS cor0
----
12525
13037
18375

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

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

query I rowsort
SELECT ALL + col0 * + ( - 81 + col2 ) FROM tab0 cor0
----
-1152
-2800
89

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

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

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

query I rowsort
SELECT + col1 + + 25 * + col2 FROM tab0 AS cor0
----
122
2141
911

query I rowsort
SELECT - tab1.col0 * cor0.col1 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 737dbb26f65dd374aa3c71dabdd3903c

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * 31 + - 91 + col0 col1 FROM tab2 AS cor0
----
-2431
-2461
-301

query I rowsort
SELECT DISTINCT - col2 + tab2.col2 * 70 + ( + col1 ) * + tab2.col2 FROM tab2
----
2700
3268
3328

query I rowsort
SELECT DISTINCT - 93 + + 28 FROM tab1, tab0 AS cor0
----
-65

onlyif mysql # use DIV operator for integer division
query I rowsort label-128
SELECT + - 65 + + col1 + + col2 DIV col0 FROM tab0 AS cor0
----
22
26
32

skipif mysql # not compatible
query I rowsort label-128
SELECT + - 65 + + col1 + + col2 / col0 FROM tab0 AS cor0
----
22
26
32

query I rowsort
SELECT ALL col2 + - 47 * col1 FROM tab0 cor0
----
-4009
-4195
-4558

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

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

query I rowsort
SELECT col2 * col0 + ( - 56 ) FROM tab2 AS cor0
----
133
1972
2946

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

query I rowsort
SELECT - col2 + - col2 * 53 AS col2 FROM tab2 AS cor0
----
-1404
-1458
-2052

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-136
SELECT - 95 + col2 DIV - col1 FROM tab1 AS cor0
----
-100
-102
-97

skipif mysql # not compatible
query I rowsort label-136
SELECT - 95 + col2 / - col1 FROM tab1 AS cor0
----
-100
-102
-97

query I rowsort
SELECT + - 76 + col1 FROM tab2 AS cor0
----
-17
-45
-59

query I rowsort
SELECT 76 * - col1 + + col2 + + col0 FROM tab1 AS cor0
----
-1919
-639
-812

query I rowsort
SELECT ALL + ( col1 ) * 1 AS col0 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT + col1 + cor0.col2 * ( 79 + + col0 * col1 ) FROM tab1 cor0
----
107437
40993
8504

query I rowsort
SELECT + col0 + col1 * ( col1 ) + - col1 FROM tab2 cor0
----
3500
351
937

query I rowsort
SELECT ALL 76 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 85 + + cor0.col0 col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-50
-61
4

query I rowsort
SELECT - col1 + col2 * 48 + col2 * col2 FROM tab2
----
1865
1994
3251

query I rowsort
SELECT - 84 AS col1 FROM tab0 cor0
----
-84
-84
-84

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

query I rowsort
SELECT - 72 + cor0.col2 AS col1 FROM tab0 AS cor0
----
-39
-71
10

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

query I rowsort
SELECT DISTINCT - col1 * + col0 * col2 + + col0 FROM tab0 cor0
----
-3360
-664029
-68088

onlyif mysql # use DIV operator for integer division
query I rowsort label-150
SELECT ALL + + col0 DIV col2 + col1 * col0 FROM tab1 AS cor0
----
1040
641
78

skipif mysql # not compatible
query I rowsort label-150
SELECT ALL + + col0 / col2 + col1 * col0 FROM tab1 AS cor0
----
1040
641
78

query I rowsort
SELECT + col0 * col2 * 31 FROM tab1 AS cor0
----
113088
238080
5022

query I rowsort
SELECT DISTINCT - + 28 * - col1 - ( 89 ) FROM tab0 AS cor0
----
2319
2459
2627

query I rowsort
SELECT DISTINCT - ( col1 ) + + 7 AS col1 FROM tab1 AS cor0
----
-19
-3
-6

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

skipif mysql # not compatible
query I rowsort label-154
SELECT DISTINCT + + ( col1 ) / - ( - col2 ) + col2 FROM tab0 AS cor0
----
35
83
98

query I rowsort
SELECT DISTINCT col2 + - col0 + col2 FROM tab0
----
-33
42
75

onlyif mysql # use DIV operator for integer division
query I rowsort label-156
SELECT DISTINCT + col0 + 76 DIV + col0 + + col1 col0 FROM tab1
----
54
75
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-156
SELECT DISTINCT + col0 + 76 / + col0 + + col1 col0 FROM tab1
----
54
75
93

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

query I rowsort
SELECT col1 + - col1 * ( + col1 * 6 ) AS col0 FROM tab0 AS cor0
----
-44290
-49595
-56357

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

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

query I rowsort
SELECT col2 * - ( 58 ) FROM tab2 AS cor0
----
-1508
-1566
-2204

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

query I rowsort
SELECT ALL - 59 * + 92 * col0 AS col1 FROM tab0 AS cor0
----
-130272
-189980
-483092

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col2 * cor0.col2 + cor0.col2 * - ( 91 ) * - col0 col1 FROM tab2 cor0
----
16470
183872
271738

onlyif mysql # use DIV operator for integer division
query I rowsort label-166
SELECT DISTINCT + col2 + 14 - - col2 DIV + 56 AS col2 FROM tab2 AS cor0
----
40
41
52

skipif mysql # not compatible
query I rowsort label-166
SELECT DISTINCT + col2 + 14 - - col2 / + 56 AS col2 FROM tab2 AS cor0
----
40
41
52

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

query I rowsort
SELECT - col1 + ( - col1 ) + 66 FROM tab0 cor0
----
-106
-116
-128

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

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

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

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

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

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

query I rowsort
SELECT ALL + cor0.col0 * - 65 + col2 AS col2 FROM tab1 AS cor0
----
-141
-4103
-5104

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

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

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

query I rowsort
SELECT - + col2 + - 94 * cor0.col2 FROM tab2 cor0
----
-2470
-2565
-3610

query I rowsort
SELECT DISTINCT - col2 * + 48 FROM tab1 cor0
----
-2592
-2736
-4608

query I rowsort
SELECT DISTINCT + col1 + 2 AS col2 FROM tab2 AS cor0
----
19
33
61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - 41 * + ( col2 ) * + cor0.col2 col0 FROM tab2 AS cor0
----
-27657
-29858
-59187

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

skipif mysql # not compatible
query I rowsort label-182
SELECT ALL tab2.col2 / ( + tab2.col1 ) FROM tab2
----
0
0
2

query I rowsort
SELECT ALL col1 * col1 * - 5 FROM tab2
----
-1445
-17405
-4805

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-184
SELECT DISTINCT + col0 + CAST( 94 * col2 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
2522
2545
3651

skipif mysql # not compatible
query I rowsort label-184
SELECT DISTINCT + col0 + CAST ( 94 * col2 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
2522
2545
3651

query I rowsort
SELECT ALL - col0 * col0 + - col2 * col0 * + tab0.col1 AS col1 FROM tab0
----
-4620
-672039
-68688

skipif mysql # not compatible
query I rowsort
SELECT ALL + 24 * col1 - CAST ( col1 * col2 AS REAL ) FROM tab1 cor0
----
-330
-780
-936

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

query I rowsort
SELECT + - col2 + cor0.col1 * cor0.col1 AS col1 FROM tab1 AS cor0
----
43
622
73

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

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

query I rowsort
SELECT ALL + ( 27 * col1 ) + col1 FROM tab0
----
2408
2548
2716

query I rowsort
SELECT 99 + + col2 AS col0 FROM tab1 AS cor0
----
153
156
195

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

query I rowsort
SELECT - 29 * col1 AS col2 FROM tab1 AS cor0
----
-290
-377
-754

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

query I rowsort
SELECT DISTINCT - + 38 * col2 + col0 * + 83 FROM tab0 AS cor0
----
2867
4271
738

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

query I rowsort
SELECT ALL - 74 * col0 AS col2 FROM tab1 cor0
----
-222
-4736
-5920

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - ( col0 ) + + 5 * + 5 col2 FROM tab0 AS cor0
----
114
49
60

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

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

query I rowsort
SELECT ALL + - col0 + col0 FROM tab1 cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 18 + col1 * + 84 col0 FROM tab1 AS cor0
----
1074
2166
822

query I rowsort
SELECT ALL 25 + col1 * ( col2 * col0 ) FROM tab0 AS cor0
----
3420
664143
68137

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

query I rowsort
SELECT ALL + 68 + col0 FROM tab1 cor0
----
132
148
71

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

query I rowsort
SELECT - 64 * + col0 AS col2 FROM tab0
----
-1536
-2240
-5696

query I rowsort
SELECT ALL + col1 * + cor0.col0 * - 99 AS col0 FROM tab2 cor0
----
-132957
-21483
-455598

onlyif mysql # use DIV operator for integer division
query I rowsort label-210
SELECT ALL - col1 * - cor0.col0 - col2 * col1 DIV col2 FROM tab0 AS cor0
----
1978
3298
8008

skipif mysql # not compatible
query I rowsort label-210
SELECT ALL - col1 * - cor0.col0 - col2 * col1 / col2 FROM tab0 AS cor0
----
1978
3298
8008

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

query I rowsort
SELECT + - col2 + + ( + 92 ) FROM tab0 cor0
----
10
59
91

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * 23 + col0 col0 FROM tab1 AS cor0
----
294
379
601

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

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab2 AS cor0 CROSS JOIN tab1, tab0 cor1
----
972 values hashing to 67c5300bc5cba0be4f54a444dc6f05b9

query I rowsort
SELECT - + col2 * - col0 * col0 + ( - ( col1 ) ) AS col1 FROM tab2 cor0
----
1292
158125
237141

query I rowsort
SELECT DISTINCT + 43 * + 88 FROM tab1 AS cor0
----
3784

query I rowsort
SELECT + + cor0.col1 * - 65 AS col2 FROM tab1 AS cor0
----
-1690
-650
-845

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-222
SELECT DISTINCT + - CAST( col1 AS SIGNED ) col1 FROM tab2 cor0
----
-17
-31
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-222
SELECT DISTINCT + - CAST ( col1 AS INTEGER ) col1 FROM tab2 cor0
----
-17
-31
-59

query I rowsort
SELECT 62 + 29 * col1 FROM tab1 AS cor0
----
352
439
816

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-226
SELECT - ( cor0.col2 ) DIV col2 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-226
SELECT - ( cor0.col2 ) / col2 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ALL + 34 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 1146d159f0b9b4378a8b738b963f7039

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

query I rowsort
SELECT 80 * - cor0.col1 FROM tab2 cor0
----
-1360
-2480
-4720

query I rowsort
SELECT 91 + col0 FROM tab2
----
169
170
98

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

query I rowsort
SELECT + col0 * + col0 + + col0 * - col2 FROM tab2
----
-140
3239
4056

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

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

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

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE NOT ( col2 ) BETWEEN col0 AND ( - cor0.col1 + col2 ) OR NOT - cor0.col2 + col1 * col1 + - col1 NOT BETWEEN col2 AND ( NULL )
----
17
31
59

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-238
SELECT ALL col0 * col1 - + col1 DIV col0 AS col2 FROM tab1 AS cor0
----
1040
640
70

skipif mysql # not compatible
query I rowsort label-238
SELECT ALL col0 * col1 - + col1 / col0 AS col2 FROM tab1 AS cor0
----
1040
640
70

query I rowsort
SELECT DISTINCT - + col0 - + col0 * col1 * col1 FROM tab1 cor0
----
-13600
-2031
-6464

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

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

skipif mysql # not compatible
query I rowsort label-241
SELECT col0 / col2 + col0 + + cor0.col0 FROM tab1 cor0
----
129
160
6

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

query I rowsort
SELECT - 74 * col1 * col2 AS col1 FROM tab1 AS cor0
----
-103896
-42180
-92352

query I rowsort
SELECT - - 40 AS col1 FROM tab1 AS cor0
----
40
40
40

query I rowsort
SELECT - ( col0 ) * + col1 + - col2 + col0 FROM tab0 AS cor0
----
-2073
-3361
-8092

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

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

query I rowsort
SELECT + col1 * - col1 FROM tab1 WHERE NULL <> NULL
----

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

query I rowsort
SELECT ALL - col0 FROM tab0 WHERE col2 IN ( - col2 / - col0 )
----

query I rowsort
SELECT DISTINCT + col1 + tab2.col0 * tab2.col1 FROM tab2
----
1360
248
4661

query I rowsort
SELECT + col0 * - col0 - - tab2.col0 FROM tab2
----
-42
-6006
-6162

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

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN ( - col1 * + col2 ) AND + col1 / + col2
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-255
SELECT DISTINCT tab1.col1 + + col1 DIV col1 + col0 DIV + col2 FROM tab1
----
12
14
27

skipif mysql # not compatible
query I rowsort label-255
SELECT DISTINCT tab1.col1 + + col1 / col1 + col0 / + col2 FROM tab1
----
12
14
27

query I rowsort
SELECT col0 + - tab1.col1 * - tab1.col1 AS col2 FROM tab1
----
164
249
679

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

query I rowsort
SELECT + col2 * + col2 FROM tab0 WHERE NULL >= NULL
----

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

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

query I rowsort
SELECT ALL col1 / - col1 + - col2 AS col2 FROM tab1 WHERE NULL BETWEEN ( NULL ) AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col0 / - col2 + + tab0.col0 IN ( - col0 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

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

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

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

query I rowsort
SELECT ALL col2 + + col2 * col1 * col0 AS col1 FROM tab2
----
119678
51072
5886

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

query I rowsort
SELECT - col0 AS col1 FROM tab2 WHERE - col2 * - col2 NOT IN ( - col2 + + col0 )
----
-7
-78
-79

query I rowsort
SELECT DISTINCT tab2.col1 + - col2 FROM tab2
----
-21
33
4

query I rowsort
SELECT + tab2.col1 AS col2 FROM tab2 WHERE NOT ( NULL ) < col0 / col0
----

query I rowsort
SELECT + col2 / col0 FROM tab1 WHERE NULL >= NULL
----

query III rowsort
SELECT * FROM tab1 WHERE col1 IN ( + col0 )
----

query III rowsort
SELECT * FROM tab2 WHERE + col0 * - col2 + + col2 < ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col2 * tab1.col2 * col1 col0 FROM tab1
----
119808
32490
75816

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-276
SELECT DISTINCT col0 DIV tab0.col0 - - col2 * col2 * - col2 AS col2 FROM tab0
----
-35936
-551367
0

skipif mysql # not compatible
query I rowsort label-276
SELECT DISTINCT col0 / tab0.col0 - - col2 * col2 * - col2 AS col2 FROM tab0
----
-35936
-551367
0

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

query I rowsort
SELECT ALL tab1.col1 - + tab1.col0 AS col2 FROM tab1
----
-54
-67
23

query I rowsort
SELECT tab2.col2 * - tab2.col2 + + col1 * + col0 + col0 FROM tab2
----
-22
-505
4004

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

query I rowsort
SELECT DISTINCT - col2 * tab1.col1 - - col1 * col0 * col1 FROM tab1
----
12272
5830
624

query I rowsort
SELECT ALL + tab0.col1 * col0 * col1 + col1 FROM tab0
----
177590
329412
737100

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col0 + - col0 * + tab0.col2 >= NULL
----

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

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

query III rowsort
SELECT ALL * FROM tab2 WHERE ( - col1 * col0 + - col2 ) >= col1
----

query I rowsort
SELECT ALL col2 + col2 AS col2 FROM tab0 WHERE NOT ( NULL ) >= ( col2 )
----

query I rowsort
SELECT cor0.col1 + col1 - - col1 * col1 * cor0.col1 FROM tab1 AS cor0
----
1020
17628
2223

query I rowsort
SELECT + col0 * 72 FROM tab2 AS cor0
----
504
5616
5688

query I rowsort
SELECT ALL ( col2 ) + col1 * - 9 FROM tab0 AS cor0
----
-737
-741
-872

query I rowsort
SELECT col1 + + 56 FROM tab0 AS cor0
----
142
147
153

query I rowsort
SELECT + - col1 + col0 * + col0 * 10 AS col2 FROM tab0 AS cor0
----
12153
5674
79119

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-295
SELECT + col1 + col0 * + col1 DIV col1 AS col1 FROM tab1 cor0
----
29
74
93

skipif mysql # not compatible
query I rowsort label-295
SELECT + col1 + col0 * + col1 / col1 AS col1 FROM tab1 cor0
----
29
74
93

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-298
SELECT DISTINCT ( - 17 ) * - col1 * col0 + col0 + col2 DIV col2 AS col0 FROM tab1 AS cor0
----
10945
1330
17761

skipif mysql # not compatible
query I rowsort label-298
SELECT DISTINCT ( - 17 ) * - col1 * col0 + col0 + col2 / col2 AS col0 FROM tab1 AS cor0
----
10945
1330
17761

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

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

query I rowsort
SELECT ALL col2 * cor0.col2 * ( col2 ) + col0 FROM tab0 AS cor0
----
35961
36
551457

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-303
SELECT - cor0.col0 DIV 3 FROM tab2 AS cor0
----
-2
-26
-26

skipif mysql # not compatible
query I rowsort label-303
SELECT - cor0.col0 / 3 FROM tab2 AS cor0
----
-2
-26
-26

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

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

query I rowsort
SELECT ALL col0 * + 26 FROM tab1 AS cor0
----
1664
2080
78

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

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

query I rowsort
SELECT - cor1.col1 * 86 FROM tab0 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 9ff1f8be9e1e4fbfc49ccebbe6d270e7

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

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

query I rowsort
SELECT + - 20 * - col2 + + col2 + col1 FROM tab1 AS cor0
----
1160
1207
2029

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + + 23 * - col1 col0 FROM tab0
----
-1954
-2004
-2196

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 84 + + 25 col1 FROM tab1, tab2 cor0
----
9 values hashing to 75d8c4a7dcf2a4283954a2a59f1d80d6

query I rowsort
SELECT ALL - col2 * ( tab0.col0 ) + + col2 * + 61 FROM tab0
----
-2296
1221
26

query I rowsort
SELECT - - ( - 71 ) * cor0.col0 + col1 AS col1 FROM tab2 AS cor0
----
-466
-5479
-5592

query I rowsort
SELECT DISTINCT - + 9 + cor0.col2 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
17
18
29

onlyif mysql # use DIV operator for integer division
query I rowsort label-320
SELECT DISTINCT col0 * tab0.col2 * 9 + col2 DIV + col0 AS col0 FROM tab0
----
315
65682
7129

skipif mysql # not compatible
query I rowsort label-320
SELECT DISTINCT col0 * tab0.col2 * 9 + col2 / + col0 AS col0 FROM tab0
----
315
65682
7129

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

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

query I rowsort
SELECT - ( col1 ) * + col0 * col0 FROM tab0
----
-118825
-49536
-720811

query I rowsort
SELECT 51 * col2 FROM tab0
----
1683
4182
51

query I rowsort
SELECT 61 * + col2 FROM tab1
----
3294
3477
5856

query I rowsort
SELECT ALL col0 * col1 * 60 FROM tab1
----
38400
4680
62400

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

query I rowsort
SELECT ALL - col1 - - 43 FROM tab1 AS cor0
----
17
30
33

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

query I rowsort
SELECT - ( + tab1.col2 ) FROM tab1, tab2 AS cor0
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba

query I rowsort
SELECT DISTINCT col1 + - col2 * 73 * col0 FROM tab1 AS cor0
----
-11800
-266294
-560627

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-332
SELECT DISTINCT ( col2 ) DIV + col2 + col2 FROM tab0
----
2
34
83

skipif mysql # not compatible
query I rowsort label-332
SELECT DISTINCT ( col2 ) / + col2 + col2 FROM tab0
----
2
34
83

query I rowsort
SELECT DISTINCT - col1 + + col0 * col0 FROM tab1
----
-17
4086
6387

query I rowsort
SELECT + col1 + cor0.col2 * 94 AS col2 FROM tab1 AS cor0
----
5102
5368
9037

query I rowsort
SELECT + col2 + 41 AS col1 FROM tab2 AS cor0
----
67
68
79

query I rowsort
SELECT ALL - col0 + + cor0.col1 * 52 * - col0 + - col1 FROM tab1 AS cor0
----
-33354
-4085
-54173

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

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

query I rowsort
SELECT ALL - col0 * cor0.col2 + - 68 * - col1 * + 62 AS col2 FROM tab1 AS cor0
----
109454
38512
47128

query I rowsort
SELECT - - col1 + - 27 FROM tab2 cor0
----
-10
32
4

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

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

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

query I rowsort
SELECT + + 73 + col1 AS col0 FROM tab2 AS cor0
----
104
132
90

query I rowsort
SELECT + - 91 * col2 * col0 AS col0 FROM tab0 AS cor0
----
-3185
-664118
-72072

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

query I rowsort
SELECT - 60 + + cor0.col1 FROM tab1, tab1 AS cor0
----
9 values hashing to c7efbb3e3205a7d354a2a9a33cd7ddaa

onlyif mysql # use DIV operator for integer division
query I rowsort label-348
SELECT ALL + 80 DIV - cor0.col2 FROM tab2, tab1 cor0
----
9 values hashing to b2e225572af74ba853e10fb5414ea67f

skipif mysql # not compatible
query I rowsort label-348
SELECT ALL + 80 / - cor0.col2 FROM tab2, tab1 cor0
----
9 values hashing to b2e225572af74ba853e10fb5414ea67f

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

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

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

query I rowsort
SELECT ALL + col0 * col0 + + 27 FROM tab0 AS cor0
----
1252
603
7948

onlyif mysql # use DIV operator for integer division
query I rowsort label-353
SELECT ALL + col1 DIV - col0 + + col0 * - col2 AS col1 FROM tab0 AS cor0
----
-37
-7299
-795

skipif mysql # not compatible
query I rowsort label-353
SELECT ALL + col1 / - col0 + + col0 * - col2 AS col1 FROM tab0 AS cor0
----
-37
-7299
-795

query I rowsort
SELECT - 48 + + col1 * cor0.col2 AS col2 FROM tab1 AS cor0
----
1200
1356
522

onlyif mysql # use DIV operator for integer division
query I rowsort label-355
SELECT - 4 * col1 DIV ( 19 ) FROM tab0 AS cor0
----
-18
-19
-20

skipif mysql # not compatible
query I rowsort label-355
SELECT - 4 * col1 / ( 19 ) FROM tab0 AS cor0
----
-18
-19
-20

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 31 * col1 col1 FROM tab2 AS cor0
----
1829
527
961

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

query I rowsort
SELECT + col0 * - col0 * - 38 - - ( + cor0.col1 ) FROM tab0 AS cor0
----
21974
301089
46647

query I rowsort
SELECT DISTINCT + 6 * + cor0.col2 FROM tab0 AS cor0
----
198
492
6

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-361
SELECT col0 + + cor0.col1 DIV - col2 + 46 AS col1 FROM tab1 AS cor0
----
110
126
49

skipif mysql # not compatible
query I rowsort label-361
SELECT col0 + + cor0.col1 / - col2 + 46 AS col1 FROM tab1 AS cor0
----
110
126
49

query I rowsort
SELECT DISTINCT - col2 * col2 + - ( 40 ) AS col1 FROM tab0 AS cor0
----
-1129
-41
-6764

query I rowsort
SELECT ALL 29 + col1 * + col1 FROM tab2 AS cor0
----
318
3510
990

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

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

query I rowsort
SELECT DISTINCT - 69 - - cor0.col0 AS col1 FROM tab0, tab0 cor0
----
-34
-45
20

query I rowsort
SELECT - 67 * 99 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e44cc16f4a3bdb5722b40726c8736526

query I rowsort
SELECT DISTINCT cor0.col1 + - 79 * 97 FROM tab2 AS cor0
----
-7604
-7632
-7646

query I rowsort
SELECT col1 + col0 * + tab0.col0 - - col0 AS col1 FROM tab0
----
1357
686
8101

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

query I rowsort
SELECT DISTINCT - 33 * col0 + col1 FROM tab2 AS cor0
----
-200
-2515
-2590

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-371
SELECT ALL - CAST( 79 AS SIGNED ) + - col1 FROM tab1 AS cor0
----
-105
-89
-92

skipif mysql # not compatible
query I rowsort label-371
SELECT ALL - CAST ( 79 AS INTEGER ) + - col1 FROM tab1 AS cor0
----
-105
-89
-92

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

query I rowsort
SELECT 69 FROM tab1, tab2 cor0
----
9 values hashing to 85d9b90a03b9def161891b13085271f7

onlyif mysql # use DIV operator for integer division
query I rowsort label-374
SELECT + ( - col2 ) DIV - col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-374
SELECT + ( - col2 ) / - col1 FROM tab0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( tab2.col1 ) col2 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2

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

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

query I rowsort
SELECT ALL col0 - - 92 AS col0 FROM tab2
----
170
171
99

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

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

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

query I rowsort
SELECT + col1 + + 84 AS col0 FROM tab2
----
101
115
143

onlyif mysql # use DIV operator for integer division
query I rowsort label-382
SELECT DISTINCT tab0.col2 + col0 DIV - 54 FROM tab0
----
1
33
81

skipif mysql # not compatible
query I rowsort label-382
SELECT DISTINCT tab0.col2 + col0 / - 54 FROM tab0
----
1
33
81

query I rowsort
SELECT DISTINCT + col1 * + 30 - - col0 FROM tab1 AS cor0
----
364
470
783

query I rowsort
SELECT + col1 - 27 FROM tab1 AS cor0
----
-1
-14
-17

query I rowsort
SELECT - col1 * - ( cor0.col2 * cor0.col0 ) + - 93 * - 44 FROM tab0 AS cor0
----
668210
72204
7487

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

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

query I rowsort
SELECT - - 89 FROM tab1 cor0
----
89
89
89

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

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

query I rowsort
SELECT ALL + 46 AS col1 FROM tab2
----
46
46
46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + ( - 26 ) - - col1 * col2 col0 FROM tab1 AS cor0
----
1274
1430
596

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

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

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

query I rowsort
SELECT - 77 FROM tab0, tab0 AS cor0, tab2 cor1, tab0 AS cor2
----
81 values hashing to a4b782d7c3e9c22c8343c69c156c0bdd

query I rowsort
SELECT DISTINCT 84 + col1 AS col0 FROM tab2 AS cor0
----
101
115
143

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-397
SELECT + + 37 * col0 DIV cor0.col2 AS col0 FROM tab0 AS cor0
----
1295
26
40

skipif mysql # not compatible
query I rowsort label-397
SELECT + + 37 * col0 / cor0.col2 AS col0 FROM tab0 AS cor0
----
1295
26
40

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

query I rowsort
SELECT DISTINCT - 7 AS col2 FROM tab0 AS cor0
----
-7

query I rowsort
SELECT DISTINCT - 43 + + col1 FROM tab0 AS cor0
----
43
48
54

query I rowsort
SELECT col1 + col1 - col1 FROM tab1 cor0
----
10
13
26

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-405
SELECT - col1 DIV col2 - - col0 FROM tab0
----
-62
22
88

skipif mysql # not compatible
query I rowsort label-405
SELECT - col1 / col2 - - col0 FROM tab0
----
-62
22
88

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

query I rowsort
SELECT + cor0.col2 + col2 * - 41 * col1 FROM tab0 AS cor0
----
-116325
-305860
-3976

query I rowsort
SELECT - col1 + - 81 FROM tab1 AS cor0
----
-107
-91
-94

onlyif mysql # use DIV operator for integer division
query I rowsort label-409
SELECT - - col1 DIV - ( - col0 ) FROM tab2 AS cor0
----
0
0
4

skipif mysql # not compatible
query I rowsort label-409
SELECT - - col1 / - ( - col0 ) FROM tab2 AS cor0
----
0
0
4

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

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

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

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

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

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

query I rowsort
SELECT ALL 97 FROM tab1, tab2 AS cor0
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c

query I rowsort
SELECT 1 * - col2 FROM tab0 cor0
----
-1
-33
-82

query I rowsort
SELECT + 72 FROM tab1, tab2 AS cor0
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49

query I rowsort
SELECT ALL 57 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a

query I rowsort
SELECT + 1 * col0 AS col1 FROM tab1
----
3
64
80

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

query I rowsort
SELECT DISTINCT + 46 + - col2 * col2 FROM tab2 AS cor0
----
-1398
-630
-683

query I rowsort
SELECT ALL + - 73 * col2 FROM tab0 AS cor0
----
-2409
-5986
-73

onlyif mysql # use DIV operator for integer division
query I rowsort label-422
SELECT ALL 7 DIV - col0 AS col0 FROM tab1 AS cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-422
SELECT ALL 7 / - col0 AS col0 FROM tab1 AS cor0
----
-2
0
0

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

query I rowsort
SELECT - - 79 + col0 * - col2 AS col2 FROM tab1 AS cor0
----
-3569
-7601
-83

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + CAST ( + col1 AS REAL ) * - col2 * + col2 AS col0 FROM tab0 AS cor0
----
-611884
-93654
-97

query I rowsort
SELECT + 84 FROM tab1 cor0
----
84
84
84

skipif mysql # not compatible
query I rowsort
SELECT CAST ( col1 AS REAL ) + col0 FROM tab0 AS cor0
----
110
132
180

onlyif mysql # use DIV operator for integer division
query I rowsort label-428
SELECT + 10 + + 79 * cor1.col0 DIV 30 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0, tab1 AS cor1
----
27 values hashing to e4d2a586af5bb0f2870e5e2ad67c9af6

skipif mysql # not compatible
query I rowsort label-428
SELECT + 10 + + 79 * cor1.col0 / 30 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0, tab1 AS cor1
----
27 values hashing to e4d2a586af5bb0f2870e5e2ad67c9af6

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

query I rowsort
SELECT DISTINCT col0 * + 30 AS col2 FROM tab2 cor0
----
210
2340
2370

query I rowsort
SELECT ALL 92 + tab1.col2 AS col1 FROM tab1
----
146
149
188

query I rowsort
SELECT ALL + tab0.col1 + 73 FROM tab0
----
159
164
170

query I rowsort
SELECT ALL + col1 * col0 + - col2 * tab0.col2 FROM tab0
----
1375
3394
975

onlyif mysql # use DIV operator for integer division
query I rowsort label-434
SELECT DISTINCT - col0 + - 58 * 25 DIV col1 FROM tab1 AS cor0
----
-191
-209
-58

skipif mysql # not compatible
query I rowsort label-434
SELECT DISTINCT - col0 + - 58 * 25 / col1 FROM tab1 AS cor0
----
-191
-209
-58

query I rowsort
SELECT DISTINCT + col0 + - col1 * 40 FROM tab2 AS cor0
----
-1233
-2282
-601

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

query I rowsort
SELECT - col0 * ( + 1 ) * + cor0.col1 + - col2 * + col1 FROM tab2 AS cor0
----
-1054
-1989
-6136

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

query I rowsort
SELECT + 49 - col2 FROM tab0
----
-33
16
48

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

query I rowsort
SELECT 22 - + col2 FROM tab1
----
-32
-35
-74

query I rowsort
SELECT 1 * 7 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 4e72e9e33dacac757f48d0ce46094607

query I rowsort
SELECT DISTINCT tab1.col0 - + 6 AS col0 FROM tab1
----
-3
58
74

query I rowsort
SELECT + col1 * - col2 * 12 + + col2 + col1 FROM tab0
----
-1066
-33937
-89371

query I rowsort
SELECT DISTINCT - 16 * + cor1.col2 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-1312
-16
-528

query I rowsort
SELECT DISTINCT tab1.col1 * col0 + - 21 - + col0 AS col1 FROM tab1
----
54
555
939

onlyif mysql # use DIV operator for integer division
query I rowsort label-447
SELECT + - col1 + + ( col1 ) DIV col2 + + 7 * cor0.col1 FROM tab1 AS cor0
----
156
60
78

skipif mysql # not compatible
query I rowsort label-447
SELECT + - col1 + + ( col1 ) / col2 + + 7 * cor0.col1 FROM tab1 AS cor0
----
156
60
78

query I rowsort
SELECT + col2 * + 41 * - col0 - col2 * - 52 AS col2 FROM tab0 AS cor0
----
-1383
-294954
-30756

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 + 23 col2 FROM tab1 AS cor0
----
103
26
87

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

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

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

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

query I rowsort
SELECT ALL + col1 - col0 AS col1 FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT ALL col2 * 2 * cor0.col0 + + col2 AS col1 FROM tab2 AS cor0
----
405
4082
6042

query I rowsort
SELECT ALL - col2 * 14 FROM tab2
----
-364
-378
-532

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-458
SELECT DISTINCT + 64 + col0 * col1 DIV col2 + cor0.col2 * col2 * 16 FROM tab1 AS cor0
----
147530
46721
52059

skipif mysql # not compatible
query I rowsort label-458
SELECT DISTINCT + 64 + col0 * col1 / col2 + cor0.col2 * col2 * 16 FROM tab1 AS cor0
----
147530
46721
52059

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-461
SELECT ALL - CAST( col0 AS SIGNED ) - col2 FROM tab0 AS cor0
----
-171
-36
-57

skipif mysql # not compatible
query I rowsort label-461
SELECT ALL - CAST ( col0 AS INTEGER ) - col2 FROM tab0 AS cor0
----
-171
-36
-57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 20 + col2 * + col1 col1 FROM tab2 AS cor0
----
1514
626
817

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-464
SELECT + 61 + col1 DIV + col1 AS col2 FROM tab2 AS cor0
----
62
62
62

skipif mysql # not compatible
query I rowsort label-464
SELECT + 61 + col1 / + col1 AS col2 FROM tab2 AS cor0
----
62
62
62

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

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

query I rowsort
SELECT DISTINCT + col1 * 89 * col1 + - col0 FROM tab2 cor0
----
25642
309731
85522

query I rowsort
SELECT + + col1 + - 86 + + col1 FROM tab1 AS cor0
----
-34
-60
-66

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

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

skipif mysql # not compatible
query I rowsort label-469
SELECT ALL col2 - + col1 / col0 AS col1 FROM tab0 AS cor0
----
-1
30
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-470
SELECT DISTINCT - 66 DIV 97 + - col1 AS col2 FROM tab2 AS cor0
----
-17
-31
-59

skipif mysql # not compatible
query I rowsort label-470
SELECT DISTINCT - 66 / 97 + - col1 AS col2 FROM tab2 AS cor0
----
-17
-31
-59

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

query I rowsort
SELECT ALL + - col2 * 29 + + col2 AS col2 FROM tab1 AS cor0
----
-1512
-1596
-2688

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 92 - - col2 col0 FROM tab1 AS cor0
----
146
149
188

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

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

query I rowsort
SELECT ALL ( - col0 ) * ( + 20 ) FROM tab2 AS cor0
----
-140
-1560
-1580

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

query I rowsort
SELECT - 58 + col2 AS col2 FROM tab2 AS cor0
----
-20
-31
-32

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

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

query I rowsort
SELECT 29 * - col2 * + col2 + + col0 * col2 + + cor0.col0 AS col2 FROM tab1 AS cor0
----
-259504
-84399
-90509

query I rowsort
SELECT DISTINCT - - col0 * - col1 + - ( + col1 ) * col2 FROM tab0 AS cor0
----
-15561
-3492
-4902

query I rowsort
SELECT DISTINCT 12 + cor0.col1 * col2 * - 17 FROM tab2 AS cor0
----
-10970
-14217
-26066

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

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

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

query I rowsort
SELECT ALL + col0 * - 77 + + 60 FROM tab1 AS cor0
----
-171
-4868
-6100

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

query I rowsort
SELECT DISTINCT + col1 - + 52 FROM tab2 AS cor0
----
-21
-35
7

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

query I rowsort
SELECT ALL tab1.col0 + - cor0.col2 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 1ace51a0be43a9fe5a17cb22cf5efab7

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

query I rowsort
SELECT - col0 + - cor0.col0 * - col1 * 27 FROM tab0 AS cor0
----
218584
55704
91630

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - tab1.col1 * col2 col0 FROM tab1
----
-1168
-1401
-506

query I rowsort
SELECT ALL 58 + col1 FROM tab0
----
144
149
155

query I rowsort
SELECT - 22 AS col2 FROM tab0, tab0 cor0, tab0 AS cor1
----
27 values hashing to 647e567609c5ada1d3454d2102819bfe

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

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

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

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

query I rowsort
SELECT DISTINCT - + 41 * + col2 AS col2 FROM tab1 AS cor0
----
-2214
-2337
-3936

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-502
SELECT + 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-502
SELECT + col1 + col1 / col0 col2 FROM tab1 AS cor0
----
10
13
34

query I rowsort
SELECT - - col2 + - col0 - + 50 FROM tab1 AS cor0
----
-34
-57
1

query I rowsort
SELECT - ( 77 ) * col1 AS col0 FROM tab2 AS cor0
----
-1309
-2387
-4543

query I rowsort
SELECT DISTINCT + col2 * col0 + 6 * col2 AS col2 FROM tab2 cor0
----
2184
3230
351

query I rowsort
SELECT ALL - + col1 + - 57 FROM tab2 AS cor0
----
-116
-74
-88

query I rowsort
SELECT + col2 + + 98 * 17 AS col1 FROM tab0 AS cor0
----
1667
1699
1748

query I rowsort
SELECT ALL - - col1 * 37 AS col1 FROM tab2 AS cor0
----
1147
2183
629

query I rowsort
SELECT ( - cor1.col2 ) FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 44fdcd7cd603352d4d127811d164cc1e

query I rowsort
SELECT ALL col2 + + 63 FROM tab0 AS cor0
----
145
64
96

query I rowsort
SELECT ALL + 95 + 68 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 53cb9eeb5020f5cee09ffce57258caa5

query I rowsort
SELECT ALL - 80 AS col1 FROM tab2
----
-80
-80
-80

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

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

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

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

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

query I rowsort
SELECT DISTINCT - 38 * col0 + cor0.col0 FROM tab2 AS cor0
----
-259
-2886
-2923

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

query I rowsort
SELECT - - ( col1 ) * col1 + + col1 * col1 FROM tab0 AS cor0
----
14792
16562
18818

onlyif mysql # use DIV operator for integer division
query I rowsort label-520
SELECT - col2 + ( - cor0.col2 ) * 43 + + ( cor0.col1 ) DIV 6 AS col1 FROM tab1 AS cor0
----
-2372
-2507
-4222

skipif mysql # not compatible
query I rowsort label-520
SELECT - col2 + ( - cor0.col2 ) * 43 + + ( cor0.col1 ) / 6 AS col1 FROM tab1 AS cor0
----
-2372
-2507
-4222

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

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-523
SELECT - CAST( NULL AS SIGNED ) FROM tab0, tab1 AS cor0 CROSS JOIN tab1, tab2, tab2 cor1
----
243 values hashing to 76933ee8cce600e48802fbdea2376d45

skipif mysql # not compatible
query I rowsort label-523
SELECT - CAST ( NULL AS INTEGER ) FROM tab0, tab1 AS cor0 CROSS JOIN tab1, tab2, tab2 cor1
----
243 values hashing to 76933ee8cce600e48802fbdea2376d45

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

query I rowsort
SELECT col0 * - 39 AS col1 FROM tab2 AS cor0
----
-273
-3042
-3081

query I rowsort
SELECT col1 + - 58 * + col0 AS col2 FROM tab0 AS cor0
----
-1306
-1933
-5071

onlyif mysql # use DIV operator for integer division
query I rowsort label-527
SELECT col1 * - 43 + - col0 DIV - ( + col0 + col2 ) AS col2 FROM tab2 AS cor0
----
-1333
-2537
-731

skipif mysql # not compatible
query I rowsort label-527
SELECT col1 * - 43 + - col0 / - ( + col0 + col2 ) AS col2 FROM tab2 AS cor0
----
-1333
-2537
-731

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

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

query I rowsort
SELECT ALL 15 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd

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

query I rowsort
SELECT ALL + col0 * - col2 * - tab0.col2 - - col0 * + col2 FROM tab0
----
26928
605734
70

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

query I rowsort
SELECT DISTINCT 61 + - col2 * cor0.col0 AS col2 FROM tab1 AS cor0
----
-101
-3587
-7619

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 65 + + col0 - col2 col1 FROM tab0 AS cor0
----
-31
-58
-74

query I rowsort
SELECT DISTINCT + + col2 * col2 - col2 FROM tab2 AS cor0
----
1406
650
702

query I rowsort
SELECT - 76 - - col2 * ( + col0 ) FROM tab1 AS cor0
----
3572
7604
86

query I rowsort
SELECT cor0.col0 + cor0.col0 * 64 * + col2 AS col0 FROM tab0 AS cor0
----
2275
467161
50712

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

query I rowsort
SELECT col2 * + 51 FROM tab2 AS cor0
----
1326
1377
1938

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

query I rowsort
SELECT DISTINCT + col1 + ( + 2 ) * + col2 + col1 FROM tab1 AS cor0
----
134
160
218

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

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

query I rowsort
SELECT + col2 + - col0 + 15 FROM tab1
----
31
66
8

query I rowsort
SELECT + 85 + - col1 AS col2 FROM tab1
----
59
72
75

query I rowsort
SELECT 95 AS col1 FROM tab2 AS cor0
----
95
95
95

query I rowsort
SELECT DISTINCT + - 71 + - 32 + - cor0.col0 * + 98 * - col0 FROM tab2 cor0
----
4699
596129
611515

query I rowsort
SELECT ALL + col0 + 48 * col2 AS col0 FROM tab2 AS cor0
----
1303
1326
1903

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * + 14 col0 FROM tab2
----
364
378
532

onlyif mysql # use DIV operator for integer division
query I rowsort label-552
SELECT ALL tab2.col2 DIV ( + 91 ) AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-552
SELECT ALL tab2.col2 / ( + 91 ) AS col1 FROM tab2
----
0
0
0

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

query I rowsort
SELECT - + 6 AS col2 FROM tab2 AS cor0
----
-6
-6
-6

query I rowsort
SELECT 24 FROM tab1, tab0 cor0
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef

query I rowsort
SELECT ALL tab1.col1 * 98 AS col0 FROM tab1
----
1274
2548
980

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

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

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

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

query I rowsort
SELECT - 15 * col0 AS col2 FROM tab0 AS cor0
----
-1335
-360
-525

query I rowsort
SELECT ALL col2 + - col2 + cor0.col1 AS col1 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT DISTINCT + 6 FROM tab2 cor0
----
6

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

skipif mysql # not compatible
query I rowsort label-563
SELECT DISTINCT - 19 * + col1 + CAST ( col0 AS INTEGER ) FROM tab2 AS cor0
----
-1043
-244
-582

query I rowsort
SELECT + + 25 + + col0 FROM tab2 AS cor0
----
103
104
32

query I rowsort
SELECT DISTINCT + 87 * + col2 + cor0.col2 FROM tab2 AS cor0
----
2288
2376
3344

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

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

skipif mysql # not compatible
query I rowsort label-567
SELECT + CAST ( NULL AS INTEGER ) / - 15 + + col0 / - 42 AS col2 FROM tab1
----
NULL
NULL
NULL

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

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-570
SELECT DISTINCT 9 + + col2 * CAST( + 91 AS SIGNED ) AS col1 FROM tab0 cor0
----
100
3012
7471

skipif mysql # not compatible
query I rowsort label-570
SELECT DISTINCT 9 + + col2 * CAST ( + 91 AS INTEGER ) AS col1 FROM tab0 cor0
----
100
3012
7471

onlyif mysql # use DIV operator for integer division
query I rowsort label-571
SELECT DISTINCT + 97 + - cor0.col0 + - col1 DIV - col1 AS col1 FROM tab0 AS cor0
----
63
74
9

skipif mysql # not compatible
query I rowsort label-571
SELECT DISTINCT + 97 + - cor0.col0 + - col1 / - col1 AS col1 FROM tab0 AS cor0
----
63
74
9

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

query I rowsort
SELECT DISTINCT col2 + - cor0.col0 * 3 FROM tab0 AS cor0
----
-104
-185
-39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 72 * col1 col2 FROM tab2 AS cor0
----
1224
2232
4248

onlyif mysql # use DIV operator for integer division
query I rowsort label-575
SELECT DISTINCT + 23 * col1 + - col1 DIV - col0 + + col1 FROM tab2 AS cor0
----
1416
408
748

skipif mysql # not compatible
query I rowsort label-575
SELECT DISTINCT + 23 * col1 + - col1 / - col0 + + col1 FROM tab2 AS cor0
----
1416
408
748

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

query I rowsort
SELECT + col2 * + 41 AS col1 FROM tab1
----
2214
2337
3936

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

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

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

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

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

query I rowsort
SELECT - 23 * 8 AS col2 FROM tab2 AS cor0
----
-184
-184
-184

query I rowsort
SELECT ALL - ( + 41 ) * col1 + + col0 FROM tab2 AS cor0
----
-1264
-2341
-618

query I rowsort
SELECT + ( tab2.col0 ) * col0 + - ( - col2 + + tab2.col1 ) * 72 AS col0 FROM tab2
----
-239
3708
7753

query I rowsort
SELECT + 94 + 6 * - tab0.col2 FROM tab0
----
-104
-398
88

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

query I rowsort
SELECT DISTINCT ( + 50 ) + + col1 + col0 * - cor0.col1 FROM tab2 AS cor0
----
-1276
-136
-4493

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 81 * col1 + col2 + col1 col2 FROM tab2 AS cor0
----
1432
2569
4864

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-590
SELECT cor1.col1 DIV cor0.col0 AS col2 FROM tab0, tab2 AS cor0, tab0 cor1
----
27 values hashing to 67eb71a038d7d3ee31795813c19233dd

skipif mysql # not compatible
query I rowsort label-590
SELECT cor1.col1 / cor0.col0 AS col2 FROM tab0, tab2 AS cor0, tab0 cor1
----
27 values hashing to 67eb71a038d7d3ee31795813c19233dd

query I rowsort
SELECT ALL col2 + + col1 * - col1 * - col0 FROM tab2 AS cor0
----
22869
271544
6754

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

query I rowsort
SELECT DISTINCT - - cor0.col0 * + 81 AS col2 FROM tab1 AS cor0
----
243
5184
6480

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

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

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

query I rowsort
SELECT ALL + col2 * 77 AS col1 FROM tab1 AS cor0
----
4158
4389
7392

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

query I rowsort
SELECT DISTINCT 74 * col2 AS col1 FROM tab2
----
1924
1998
2812

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

query I rowsort
SELECT DISTINCT 25 + - 18 FROM tab1, tab1 cor0
----
7

query I rowsort
SELECT DISTINCT - 35 FROM tab2, tab2 AS cor0
----
-35

query I rowsort
SELECT + 30 * 38 AS col2 FROM tab2, tab2 cor0
----
9 values hashing to ea227f2f7da375ab2ef428be45e25400

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

query I rowsort
SELECT - 52 * + 37 AS col2 FROM tab0, tab0 cor0
----
9 values hashing to 662766d5c02e19a76f16181bfaafc499

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - col0 + col2 col1 FROM tab0
----
1
33
82

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

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

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

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

query I rowsort
SELECT + 57 * - col1 + 60 AS col2 FROM tab1
----
-1422
-510
-681

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

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

query I rowsort
SELECT ALL + 6 * - col1 * cor0.col2 FROM tab1 AS cor0
----
-3420
-7488
-8424

query I rowsort
SELECT ALL - - 72 * ( cor0.col2 ) FROM tab2, tab0 AS cor0
----
9 values hashing to 923ce748554f5aa7535b233559d7d16a

query I rowsort
SELECT ALL - + col0 * cor0.col0 + 29 AS col2 FROM tab1 AS cor0
----
-4067
-6371
20

query I rowsort
SELECT + 23 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d94fadcc1c8cc4fc51b78b83e04795f2

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

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

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

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

query I rowsort
SELECT DISTINCT col0 * 45 FROM tab0
----
1080
1575
4005

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

query I rowsort
SELECT - 19 AS col0 FROM tab1
----
-19
-19
-19

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

query I rowsort
SELECT col1 * - 80 FROM tab0 AS cor0
----
-6880
-7280
-7760

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-625
SELECT - + CAST( 86 AS SIGNED ) * cor0.col2 + col2 + 86 AS col1 FROM tab1 cor0
----
-4504
-4759
-8074

skipif mysql # not compatible
query I rowsort label-625
SELECT - + CAST ( 86 AS INTEGER ) * cor0.col2 + col2 + 86 AS col1 FROM tab1 cor0
----
-4504
-4759
-8074

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-626
SELECT DISTINCT + ( col0 ) * - col0 + - CAST( - col2 AS SIGNED ) + + col0 * cor0.col2 AS col1 FROM tab1 AS cor0
----
-391
1376
207

skipif mysql # not compatible
query I rowsort label-626
SELECT DISTINCT + ( col0 ) * - col0 + - CAST ( - col2 AS INTEGER ) + + col0 * cor0.col2 AS col1 FROM tab1 AS cor0
----
-391
1376
207

query I rowsort
SELECT cor1.col0 + + ( - cor1.col2 ) FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to a6800e768401748ae504acf0ffb720a7

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

query I rowsort
SELECT - - col0 * + col1 + 89 * col2 FROM tab1 AS cor0
----
4884
5713
9584

query I rowsort
SELECT - + col1 * cor0.col2 - - col0 * + col2 FROM tab1 AS cor0
----
-1242
3078
6432

onlyif mysql # use DIV operator for integer division
query I rowsort label-631
SELECT + - col0 DIV col0 + col1 FROM tab2 AS cor0
----
16
30
58

skipif mysql # not compatible
query I rowsort label-631
SELECT + - col0 / col0 + col1 FROM tab2 AS cor0
----
16
30
58

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT - 73 * col0 * - CAST ( 77 AS REAL ) col2 FROM tab1 AS cor0
----
16863
359744
449680

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

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

query I rowsort
SELECT ALL - col1 + 21 FROM tab0
----
-65
-70
-76

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-638
SELECT ALL CAST( + col2 * + col1 AS SIGNED ) + 52 * col1 * col0 FROM tab1
----
33850
5460
55328

skipif mysql # not compatible
query I rowsort label-638
SELECT ALL CAST ( + col2 * + col1 AS INTEGER ) + 52 * col1 * col0 FROM tab1
----
33850
5460
55328

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

query I rowsort
SELECT + col1 * - cor0.col1 + 49 AS col0 FROM tab2 cor0
----
-240
-3432
-912

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 * + col1 * 42 col2 FROM tab0 AS cor0
----
142590
340158
86688

query I rowsort
SELECT - ( ( col2 ) ) + - 20 AS col0 FROM tab0 AS cor0
----
-102
-21
-53

query I rowsort
SELECT - - 64 + - col0 * + col0 FROM tab0 AS cor0
----
-1161
-512
-7857

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

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

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

query I rowsort
SELECT DISTINCT 35 + col2 FROM tab2
----
61
62
73

query I rowsort
SELECT ALL 75 * tab1.col0 + + 69 * 67 AS col0 FROM tab1
----
10623
4848
9423

query I rowsort
SELECT DISTINCT - + col1 - + col1 FROM tab0 AS cor0
----
-172
-182
-194

query I rowsort
SELECT ALL col1 * col2 + + col0 + - col1 * + col2 * + cor0.col1 AS col1 FROM tab2 AS cor0
----
-10257
-25103
-88894

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-654
SELECT - 73 DIV - col2 AS col2 FROM tab0 AS cor0
----
0
2
73

skipif mysql # not compatible
query I rowsort label-654
SELECT - 73 / - col2 AS col2 FROM tab0 AS cor0
----
0
2
73

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-656
SELECT ALL + + 92 + col0 * CAST( ( + col2 ) AS SIGNED ) FROM tab2 AS cor0
----
2120
281
3094

skipif mysql # not compatible
query I rowsort label-656
SELECT ALL + + 92 + col0 * CAST ( ( + col2 ) AS INTEGER ) FROM tab2 AS cor0
----
2120
281
3094

query I rowsort
SELECT ALL - col2 + ( + 12 ) FROM tab0
----
-21
-70
11

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

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

query I rowsort
SELECT ALL + col2 * - col0 + col2 + + col1 AS col2 FROM tab2 AS cor0
----
-131
-1943
-2947

query I rowsort
SELECT ALL col0 + col1 + + 41 AS col1 FROM tab0 AS cor0
----
151
173
221

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-662
SELECT DISTINCT + col1 * CAST( col2 AS SIGNED ) + + cor0.col2 * + col2 FROM tab2 AS cor0
----
1566
2090
2210

skipif mysql # not compatible
query I rowsort label-662
SELECT DISTINCT + col1 * CAST ( col2 AS INTEGER ) + + cor0.col2 * + col2 FROM tab2 AS cor0
----
1566
2090
2210

query I rowsort
SELECT - col1 * - 73 + + col1 AS col0 FROM tab1 AS cor0
----
1924
740
962

query I rowsort
SELECT DISTINCT + col1 + col1 * + col0 + + col1 FROM tab2 AS cor0
----
1377
279
4720

query I rowsort
SELECT ( col1 ) + cor0.col1 AS col2 FROM tab0 cor0
----
172
182
194

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-667
SELECT ALL + col0 DIV col0 + - col2 * + col1 AS col2 FROM tab0 AS cor0
----
-2837
-7461
-96

skipif mysql # not compatible
query I rowsort label-667
SELECT ALL + col0 / col0 + - col2 * + col1 AS col2 FROM tab0 AS cor0
----
-2837
-7461
-96

query I rowsort
SELECT DISTINCT - 6 * + col0 + col2 AS col1 FROM tab0 AS cor0
----
-111
-209
-452

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

query I rowsort
SELECT ALL + col1 * 63 + cor0.col2 AS col0 FROM tab2 AS cor0
----
1109
1980
3743

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-673
SELECT DISTINCT + - col1 DIV col0 + col0 AS col0 FROM tab2 AS cor0
----
3
78
79

skipif mysql # not compatible
query I rowsort label-673
SELECT DISTINCT + - col1 / col0 + col0 AS col0 FROM tab2 AS cor0
----
3
78
79

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 13 * + col1 col0 FROM tab2 AS cor0
----
-221
-403
-767

query I rowsort
SELECT DISTINCT - 10 FROM tab0, tab0 AS cor0
----
-10

query I rowsort
SELECT DISTINCT 39 - col0 FROM tab1 AS cor0
----
-25
-41
36

query I rowsort
SELECT ALL cor0.col1 + col1 + col2 AS col2 FROM tab0 AS cor0
----
195
205
264

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

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

query I rowsort
SELECT DISTINCT col2 * tab1.col1 * col1 FROM tab1
----
16224
36504
5700

query I rowsort
SELECT + - ( 81 ) * col2 * + col1 AS col0 FROM tab2 AS cor0
----
-124254
-52326
-67797

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

query I rowsort
SELECT DISTINCT - - col0 * - 43 FROM tab0 AS cor0
----
-1032
-1505
-3827

query I rowsort
SELECT - + cor0.col0 * - cor0.col1 FROM tab1 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 815fccd4c3d372b28d3f3fb103025775

query I rowsort
SELECT col1 * + 23 + - 56 AS col1 FROM tab1
----
174
243
542

query I rowsort
SELECT ALL col1 * 84 FROM tab2 AS cor0
----
1428
2604
4956

onlyif mysql # use DIV operator for integer division
query I rowsort label-689
SELECT - + ( + col0 ) + col0 DIV - 59 + 43 FROM tab1 AS cor0
----
-22
-38
40

skipif mysql # not compatible
query I rowsort label-689
SELECT - + ( + col0 ) + col0 / - 59 + 43 FROM tab1 AS cor0
----
-22
-38
40

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

query I rowsort
SELECT col0 * - tab0.col0 * + col0 AS col1 FROM tab0
----
-13824
-42875
-704969

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

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

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

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

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

query I rowsort
SELECT - + col0 + - cor0.col0 * + col0 * - col0 + + ( 92 ) AS col0 FROM tab1 AS cor0
----
116
262172
512012

query I rowsort
SELECT ALL + + col0 * ( + 69 ) + col0 AS col0 FROM tab1 AS cor0
----
210
4480
5600

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * col2 * + 92 col0 FROM tab1 AS cor0
----
114816
129168
52440

query I rowsort
SELECT ALL + col2 * + col0 + - 74 FROM tab2 cor0
----
115
1954
2928

query I rowsort
SELECT DISTINCT + col1 * 85 FROM tab0 AS cor0
----
7310
7735
8245

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT col0 + col0 - col0 FROM tab0
----
24
35
89

query I rowsort
SELECT ALL col0 * - tab0.col2 - col0 AS col0 FROM tab0
----
-70
-7387
-816

query I rowsort
SELECT col2 + - col1 * col1 + tab0.col0 AS col1 FROM tab0
----
-7339
-8110
-9373

query I rowsort
SELECT DISTINCT col2 * col2 - + 91 FROM tab0
----
-90
6633
998

query I rowsort
SELECT col0 + col0 - col2 * + tab1.col1 * tab1.col2 AS col2 FROM tab1
----
-119648
-32362
-75810

query I rowsort
SELECT ALL - cor1.col1 FROM tab2 AS cor0 CROSS JOIN tab0, tab1 AS cor1
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6

query I rowsort
SELECT ALL + 52 * - 64 * - tab0.col1 FROM tab0, tab1 AS cor0, tab2, tab0 AS cor1
----
81 values hashing to ecc4ac10db5429e911dd7c35d6135f3b

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

query I rowsort
SELECT DISTINCT col0 * - 3 + col1 FROM tab2
----
-175
-220
10

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

query I rowsort
SELECT + col1 * + 43 AS col2 FROM tab1
----
1118
430
559

query I rowsort
SELECT DISTINCT col0 + col1 + + col1 FROM tab2
----
113
196
69

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

query I rowsort
SELECT + + cor0.col2 * col2 + col2 FROM tab1 AS cor0
----
2970
3306
9312

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-718
SELECT ALL - col1 / col2 col0 FROM tab0 AS cor0
----
-1
-2
-97

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-720
SELECT ALL + col1 * col0 + col2 DIV col1 + ( + 93 ) FROM tab1 cor0
----
1140
173
738

skipif mysql # not compatible
query I rowsort label-720
SELECT ALL + col1 * col0 + col2 / col1 + ( + 93 ) FROM tab1 cor0
----
1140
173
738

query I rowsort
SELECT DISTINCT - 99 AS col1 FROM tab0
----
-99

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

query I rowsort
SELECT ALL 6 + - col0 FROM tab1 AS cor0
----
-58
-74
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab0.col2 col1 FROM tab0, tab2, tab1 cor0
----
-1
-33
-82

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab2, tab0 AS cor0, tab1 cor1
----
972 values hashing to 0210050fb1701e2797a9b17e1ebac91e

query I rowsort
SELECT DISTINCT - 12 AS col1 FROM tab1
----
-12

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

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

query I rowsort
SELECT DISTINCT + col0 + - col2 * - col0 * cor0.col2 FROM tab1 AS cor0
----
208000
737360
8751

query I rowsort
SELECT ALL cor0.col1 + + col2 * col1 + col1 * col1 FROM tab2 AS cor0
----
1829
5074
952

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

query I rowsort
SELECT - col2 + + 11 * col0 AS col2 FROM tab0 AS cor0
----
231
384
897

query I rowsort
SELECT ALL col0 + - col2 * col2 FROM tab2
----
-1365
-598
-722

query III rowsort
SELECT ALL * FROM tab2 WHERE col1 = ( tab2.col0 )
----

query I rowsort
SELECT ALL - col0 FROM tab2 WHERE NOT - col2 * col2 * - col1 <= ( NULL )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-736
SELECT + col2 * col0 DIV col1 + - col2 * col0 FROM tab1
----
-156
-3284
-7090

skipif mysql # not compatible
query I rowsort label-736
SELECT + col2 * col0 / col1 + - col2 * col0 FROM tab1
----
-156
-3284
-7090

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-738
SELECT DISTINCT col1 * + col1 + + col0 DIV col2 + + col2 col0 FROM tab0
----
7429
8364
9445

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-738
SELECT DISTINCT col1 * + col1 + + col0 / col2 + + col2 col0 FROM tab0
----
7429
8364
9445

onlyif mysql # use DIV operator for integer division
query I rowsort label-739
SELECT DISTINCT + tab2.col2 + col1 DIV col1 FROM tab2
----
27
28
39

skipif mysql # not compatible
query I rowsort label-739
SELECT DISTINCT + tab2.col2 + col1 / col1 FROM tab2
----
27
28
39

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-741
SELECT DISTINCT - col2 DIV col1 + - col0 + + col2 * - col2 FROM tab0
----
-1113
-36
-6813

skipif mysql # not compatible
query I rowsort label-741
SELECT DISTINCT - col2 / col1 + - col0 + + col2 * - col2 FROM tab0
----
-1113
-36
-6813

query I rowsort
SELECT ALL col1 + col2 - + col0 FROM tab2
----
-24
51
7

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

query I rowsort
SELECT ALL - col1 * col2 * col1 AS col1 FROM tab0
----
-244068
-679042
-9409

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 <> ( NULL )
----

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

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

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

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

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

query I rowsort
SELECT ALL - col0 * - col2 + col0 AS col0 FROM tab0
----
70
7387
816

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

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

skipif mysql # not compatible
query I rowsort label-752
SELECT - col2 + cor0.col0 / col0 FROM tab2 AS cor0
----
-25
-26
-37

query I rowsort
SELECT - col1 * - cor0.col2 * 90 + col2 - + col2 FROM tab1 AS cor0
----
112320
126360
51300

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + col1 * 47 col1 FROM tab2 AS cor0
----
1464
2851
878

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

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

query I rowsort
SELECT - col2 * col2 + + 68 * 56 AS col1 FROM tab1 cor0
----
-5408
559
892

query I rowsort
SELECT ALL + 96 * - col1 FROM tab1 cor0
----
-1248
-2496
-960

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

query I rowsort
SELECT + cor0.col1 + col2 - + 86 FROM tab1 AS cor0
----
-19
-6
23

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

query I rowsort
SELECT + - 18 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 09afafec657a5e9f082beb6a16ec85de

query I rowsort
SELECT + + col2 + 94 * - 11 FROM tab1 AS cor0
----
-938
-977
-980

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

query I rowsort
SELECT - col0 + + tab1.col2 * ( 45 ) * col1 + + ( - 8 ) FROM tab1
----
25578
56072
63169

query I rowsort
SELECT - cor0.col2 * - col1 * col0 + - cor0.col2 * col0 AS col1 FROM tab1 cor0
----
32832
4050
92160

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * 21 col0 FROM tab2
----
546
567
798

query I rowsort
SELECT DISTINCT + cor1.col2 AS col1 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
1
33
82

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-768
SELECT - CAST ( col2 AS INTEGER ) + col2 * - col2 col1 FROM tab0 AS cor0
----
-1122
-2
-6806

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( 16 ) * + col1 col2 FROM tab1 AS cor0
----
-160
-208
-416

query I rowsort
SELECT DISTINCT - col0 + + 29 AS col0 FROM tab0 AS cor0
----
-6
-60
5

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

skipif mysql # not compatible
query I rowsort label-771
SELECT col2 * CAST ( - col2 AS INTEGER ) + col0 FROM tab0 AS cor0
----
-1065
-6635
34

query I rowsort
SELECT ALL + + col0 * 92 + - col1 AS col0 FROM tab1 AS cor0
----
250
5878
7347

onlyif mysql # use DIV operator for integer division
query I rowsort label-773
SELECT - - col2 DIV CAST( col1 AS SIGNED ) FROM tab0 AS cor0
----
0
0
0

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

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

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

query I rowsort
SELECT ALL - 96 + + cor0.col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b92a054ffc260f778beaf1c73159007c

query I rowsort
SELECT - col2 - + ( 95 ) FROM tab2
----
-121
-122
-133

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-778
SELECT - col0 DIV - 5 AS col1 FROM tab1 cor0
----
0
12
16

skipif mysql # not compatible
query I rowsort label-778
SELECT - col0 / - 5 AS col1 FROM tab1 cor0
----
0
12
16

query I rowsort
SELECT DISTINCT + col0 + + 81 * 97 FROM tab1 AS cor0
----
7860
7921
7937

query I rowsort
SELECT 1 - + tab2.col2 FROM tab2
----
-25
-26
-37

query I rowsort
SELECT + col0 + col2 * col2 - + col2 AS col1 FROM tab2
----
1485
709
728

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

query I rowsort
SELECT 22 * 86 AS col0 FROM tab0
----
1892
1892
1892

query I rowsort
SELECT + + 7 + + col2 FROM tab0 cor0
----
40
8
89

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT ALL CAST ( + 95 AS REAL ) col0 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 14faa6dda52e3dfe1f5db2579c274a7e

query I rowsort
SELECT + - col2 * col1 + - 20 FROM tab0 AS cor0
----
-117
-2858
-7482

query I rowsort
SELECT ALL + col0 + - col1 * cor0.col0 + - col1 AS col1 FROM tab0 cor0
----
-2126
-3457
-8101

onlyif mysql # use DIV operator for integer division
query I rowsort label-790
SELECT 71 + + col2 DIV col1 AS col2 FROM tab2 AS cor0
----
71
71
73

skipif mysql # not compatible
query I rowsort label-790
SELECT 71 + + col2 / col1 AS col2 FROM tab2 AS cor0
----
71
71
73

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

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

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

query I rowsort
SELECT + - 57 FROM tab2 AS cor0
----
-57
-57
-57

onlyif mysql # use DIV operator for integer division
query I rowsort label-795
SELECT DISTINCT + col1 * - cor0.col0 DIV col0 + + 21 FROM tab2 cor0
----
-10
-38
4

skipif mysql # not compatible
query I rowsort label-795
SELECT DISTINCT + col1 * - cor0.col0 / col0 + + 21 FROM tab2 cor0
----
-10
-38
4

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

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

query I rowsort
SELECT + 99 + col0 FROM tab1
----
102
163
179

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-800
SELECT DISTINCT CAST ( NULL AS REAL ) col2 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
NULL

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

query I rowsort
SELECT ALL - 3 * 75 AS col2 FROM tab0, tab0 cor0
----
9 values hashing to 813a94d3bca6b709f66c4a8a8b57105b

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

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

query I rowsort
SELECT ALL col2 * col1 - + col2 * + col2 FROM tab0 AS cor0
----
1749
738
96

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

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

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

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

query I rowsort
SELECT DISTINCT - cor0.col1 * + ( - 74 ) - col0 * 45 AS col1 FROM tab0 AS cor0
----
2729
5284
5603

query I rowsort
SELECT cor0.col2 * 22 + col0 FROM tab2 AS cor0
----
601
650
915

query I rowsort
SELECT + cor0.col0 + - 83 * + col1 AS col0 FROM tab1 AS cor0
----
-2155
-766
-999

query I rowsort
SELECT ALL - col1 * + 79 FROM tab0 AS cor0
----
-6794
-7189
-7663

query I rowsort
SELECT DISTINCT + - col1 * + col1 + - cor0.col0 FROM tab1 AS cor0
----
-164
-249
-679

query I rowsort
SELECT DISTINCT + col1 * + 94 + + col1 * col0 FROM tab0 AS cor0
----
10148
12513
16653

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

query I rowsort
SELECT DISTINCT + + col2 + - 25 * col0 * - col2 AS col1 FROM tab1 AS cor0
----
192096
4104
91257

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 - + 76 col0 FROM tab0 AS cor0
----
10
15
21

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

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

query I rowsort
SELECT 14 + col2 AS col0 FROM tab0 AS cor0
----
15
47
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-821
SELECT + 57 + + col1 DIV + cor0.col0 AS col2 FROM tab2 AS cor0
----
57
57
61

skipif mysql # not compatible
query I rowsort label-821
SELECT + 57 + + col1 / + cor0.col0 AS col2 FROM tab2 AS cor0
----
57
57
61

query I rowsort
SELECT ALL - 97 * + 23 FROM tab1 AS cor0
----
-2231
-2231
-2231

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

query I rowsort
SELECT + 23 * + 77 + - cor0.col1 FROM tab1 AS cor0
----
1745
1758
1761

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-826
SELECT + 9 DIV - 15 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-826
SELECT + 9 / - 15 FROM tab2 AS cor0
----
0
0
0

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

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

query I rowsort
SELECT DISTINCT + ( 18 ) * col0 AS col1 FROM tab2 AS cor0
----
126
1404
1422

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

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

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

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

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

query I rowsort
SELECT DISTINCT + - 67 + + col1 * + col2 AS col2 FROM tab0 AS cor0
----
2771
30
7395

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

query I rowsort
SELECT - 33 + - col2 * col2 AS col1 FROM tab1 AS cor0
----
-2949
-3282
-9249

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

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

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

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

query I rowsort
SELECT ALL + col0 * + 14 AS col0 FROM tab1 cor0
----
1120
42
896

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

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

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

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

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

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

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

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

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-849
SELECT col2 DIV 54 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-849
SELECT col2 / 54 FROM tab2
----
0
0
0

query I rowsort
SELECT col2 * 42 * + 54 AS col1 FROM tab0
----
185976
2268
74844

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

skipif mysql # not compatible
query I rowsort label-851
SELECT ALL col1 / ( col0 ) AS col1 FROM tab1
----
0
0
8

query I rowsort
SELECT + col2 * + 37 * + col2 FROM tab2
----
25012
26973
53428

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + col1 + 17 * col2 col2 FROM tab1
----
1539
2322
2880

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1 cor0, tab1, tab0 cor1
----
972 values hashing to 909b7ebab62aff8f69dc42ccbb5c2eae

query I rowsort
SELECT + - 88 * col1 AS col1 FROM tab0 AS cor0
----
-7568
-8008
-8536

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

query I rowsort
SELECT DISTINCT col2 + ( col2 ) AS col1 FROM tab1 AS cor0
----
108
114
192

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

query I rowsort
SELECT + ( 59 ) FROM tab0 cor0
----
59
59
59

query I rowsort
SELECT DISTINCT cor1.col0 * + 96 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
288
6144
7680

query I rowsort
SELECT DISTINCT 12 + cor0.col0 * - 50 FROM tab1 AS cor0
----
-138
-3188
-3988

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 97 + col1 * - col1 col2 FROM tab2 AS cor0
----
-192
-3384
-864

query I rowsort
SELECT ALL - col1 * col2 + cor0.col0 - - col0 FROM tab2 AS cor0
----
-1378
-488
-823

query I rowsort
SELECT DISTINCT - 17 FROM tab2 cor0
----
-17

query I rowsort
SELECT + - col2 + col2 FROM tab1 cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-867
SELECT ALL - - col1 * cor0.col2 + col0 DIV col0 FROM tab0 AS cor0
----
2839
7463
98

skipif mysql # not compatible
query I rowsort label-867
SELECT ALL - - col1 * cor0.col2 + col0 / col0 FROM tab0 AS cor0
----
2839
7463
98

query I rowsort
SELECT - ( + col1 ) * - col2 * + 43 AS col1 FROM tab0 AS cor0
----
122034
320866
4171

query I rowsort
SELECT + col0 + col1 * 42 AS col0 FROM tab1 AS cor0
----
1095
484
626

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

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

query I rowsort
SELECT DISTINCT - - cor0.col0 * 47 * + col0 + col0 FROM tab0 AS cor0
----
27096
372376
57610

query I rowsort
SELECT - cor0.col2 - 67 FROM tab0 AS cor0
----
-100
-149
-68

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT ALL - col2 * ( col1 ) + + 14 AS col2 FROM tab2 cor0
----
-1520
-632
-823

query I rowsort
SELECT + - 37 FROM tab1 AS cor0
----
-37
-37
-37

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

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

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

query I rowsort
SELECT DISTINCT - 98 * col1 FROM tab0
----
-8428
-8918
-9506

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

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

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

query I rowsort
SELECT ALL - 88 - - ( + col0 * - cor0.col1 + col2 ) FROM tab2 AS cor0
----
-1393
-278
-4664

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

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

query I rowsort
SELECT - col2 + 85 AS col2 FROM tab1 AS cor0
----
-11
28
31

query I rowsort
SELECT + col0 * + ( col2 + - col0 ) FROM tab0
----
-1190
-623
216

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

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

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

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

query I rowsort
SELECT + - 35 * + col1 FROM tab2 AS cor0
----
-1085
-2065
-595

query I rowsort
SELECT + 28 * col1 + - col0 AS col2 FROM tab0 AS cor0
----
2384
2459
2681

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

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

query I rowsort
SELECT DISTINCT - + col0 * + 8 * - col1 + cor0.col2 FROM tab2 AS cor0
----
10782
1763
36842

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-903
SELECT 69 * 86 DIV - col1 + + col1 AS col0 FROM tab1 AS cor0
----
-202
-443
-583

skipif mysql # not compatible
query I rowsort label-903
SELECT 69 * 86 / - col1 + + col1 AS col0 FROM tab1 AS cor0
----
-202
-443
-583

query I rowsort
SELECT ( 20 ) * col2 - - cor0.col2 FROM tab0 AS cor0
----
1722
21
693

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

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

query I rowsort
SELECT ALL + col1 * - 38 * col0 AS col1 FROM tab0 AS cor0
----
-129010
-307762
-78432

query I rowsort
SELECT ( 38 ) - tab0.col1 AS col0 FROM tab0
----
-48
-53
-59

query I rowsort
SELECT DISTINCT 97 + cor0.col1 * - 76 FROM tab1 cor0
----
-1879
-663
-891

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col1 + ( - col2 ) col1 FROM tab1 AS cor0
----
-109
-67
-80

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-913
SELECT DISTINCT + + col2 * col2 DIV - cor0.col0 col1 FROM tab2 AS cor0
----
-104
-18
-8

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-913
SELECT DISTINCT + + col2 * col2 / - cor0.col0 col1 FROM tab2 AS cor0
----
-104
-18
-8

query I rowsort
SELECT + 55 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0

query I rowsort
SELECT ( - tab2.col0 ) * col1 * tab2.col1 + col0 FROM tab2
----
-22752
-271440
-6720

query I rowsort
SELECT ALL col2 + - ( + col1 ) - - col2 * col0 FROM tab1
----
190
3695
7763

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab2.col1 - 48 * - col0 col1 FROM tab2
----
367
3803
3809

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

skipif mysql # not compatible
query I rowsort label-919
SELECT - cor0.col0 * + cor0.col2 + ( col2 + ( - col2 ) ) * + col2 / + col2 FROM tab1 AS cor0
----
-162
-3648
-7680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-920
SELECT ALL - tab2.col2 + CAST( + col0 AS SIGNED ) * col1 * col0 + - col2 AS col1 FROM tab2
----
106021
1465
358904

skipif mysql # not compatible
query I rowsort label-920
SELECT ALL - tab2.col2 + CAST ( + col0 AS INTEGER ) * col1 * col0 + - col2 AS col1 FROM tab2
----
106021
1465
358904

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

query I rowsort
SELECT - col2 - col2 * + col2 FROM tab1 AS cor0
----
-2970
-3306
-9312

query I rowsort
SELECT - col1 + + col1 * - col0 * col1 FROM tab0
----
-177590
-329412
-737100

query I rowsort
SELECT + ( + col1 + + tab2.col1 * col1 ) FROM tab2
----
306
3540
992

query I rowsort
SELECT DISTINCT + ( + 15 ) AS col1 FROM tab2
----
15

query I rowsort
SELECT ALL 37 + + tab2.col1 + tab2.col0 * 25 FROM tab2
----
2029
2046
243

query I rowsort
SELECT + 84 + col0 * + col1 + - ( col1 ) AS col0 FROM tab1
----
1111
136
714

query I rowsort
SELECT - - col1 - 61 AS col0 FROM tab2 AS cor0
----
-2
-30
-44

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

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

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

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

query I rowsort
SELECT + + col1 * 35 - col1 * 22 AS col1 FROM tab1 AS cor0
----
130
169
338

query I rowsort
SELECT - cor0.col2 * col1 + col1 FROM tab1 AS cor0
----
-1235
-1378
-560

onlyif mysql # use DIV operator for integer division
query I rowsort label-934
SELECT 22 DIV - col0 - + col2 * 49 FROM tab2 AS cor0
----
-1274
-1326
-1862

skipif mysql # not compatible
query I rowsort label-934
SELECT 22 / - col0 - + col2 * 49 FROM tab2 AS cor0
----
-1274
-1326
-1862

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

query I rowsort
SELECT DISTINCT + 75 + 50 * col0 AS col1 FROM tab2 AS cor0
----
3975
4025
425

query I rowsort
SELECT col0 * - col2 + 37 AS col2 FROM tab0
----
-7261
-755
2

query I rowsort
SELECT + ( col1 ) + 92 * 41 AS col2 FROM tab2
----
3789
3803
3831

query I rowsort
SELECT DISTINCT - + col0 + - col0 + col1 * col0 FROM tab1 cor0
----
512
72
880

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

query I rowsort
SELECT ALL + - col0 * ( + 46 ) + col1 AS col1 FROM tab1 cor0
----
-112
-2934
-3667

onlyif mysql # use DIV operator for integer division
query I rowsort label-942
SELECT DISTINCT - - col1 * + ( - col0 ) + + col0 DIV + CAST( + cor0.col1 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-1034
-634
-78

skipif mysql # not compatible
query I rowsort label-942
SELECT DISTINCT - - col1 * + ( - col0 ) + + col0 / + CAST ( + cor0.col1 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-1034
-634
-78

onlyif mysql # use DIV operator for integer division
query I rowsort label-943
SELECT ALL - col0 * - col2 * - col0 + cor0.col0 * col0 * - col1 + col0 DIV 10 AS col1 FROM tab0 AS cor0
----
-120047
-1370325
-68542

skipif mysql # not compatible
query I rowsort label-943
SELECT ALL - col0 * - col2 * - col0 + cor0.col0 * col0 * - col1 + col0 / 10 AS col1 FROM tab0 AS cor0
----
-120047
-1370325
-68542

onlyif mysql # use DIV operator for integer division
query I rowsort label-944
SELECT DISTINCT + - col0 + - ( - col0 ) DIV col0 col2 FROM tab1 cor0
----
-2
-63
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-944
SELECT DISTINCT + - col0 + - ( - col0 ) / col0 col2 FROM tab1 cor0
----
-2
-63
-79

query I rowsort
SELECT - + col1 * 70 + - ( + col0 ) AS col2 FROM tab0 AS cor0
----
-6044
-6459
-6825

query I rowsort
SELECT 59 + col1 FROM tab0
----
145
150
156

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 * cor0.col0 col1 FROM tab2 AS cor0
----
49
6084
6241

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

query I rowsort
SELECT col0 + - 73 FROM tab1 AS cor0
----
-70
-9
7

query I rowsort
SELECT ALL - col1 * col1 * col0 - cor0.col1 FROM tab0 AS cor0
----
-177590
-329412
-737100

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

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

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

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

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

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

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

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

query I rowsort
SELECT - + 70 FROM tab2, tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
27 values hashing to c2a2994a4e94583683ccda2cc098c58f

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-965
SELECT + - 26 DIV col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-965
SELECT + - 26 / col2 FROM tab1 AS cor0
----
0
0
0

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

skipif mysql # not compatible
query I rowsort label-966
SELECT DISTINCT col0 / col0 FROM tab1 cor0
----
1

query I rowsort
SELECT ALL 30 + - col1 FROM tab1 AS cor0
----
17
20
4

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-968
SELECT CAST ( - col0 AS INTEGER ) + col2 * col1 col2 FROM tab1
----
1168
1401
506

query I rowsort
SELECT - 10 + + cor0.col0 * cor0.col1 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 0c21da11c48e984b16e44ffe034655e6

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-971
SELECT ALL + col0 DIV col0 + col1 * col1 * col2 FROM tab1
----
16225
36505
5701

skipif mysql # not compatible
query I rowsort label-971
SELECT ALL + col0 / col0 + col1 * col1 * col2 FROM tab1
----
16225
36505
5701

query I rowsort
SELECT DISTINCT col0 * col2 + - col2 * col0 FROM tab1
----
0

query I rowsort
SELECT DISTINCT - tab2.col2 * col0 * col2 + 71 AS col2 FROM tab2
----
-114005
-5032
-52657

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

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

query I rowsort
SELECT ALL + + ( - cor0.col1 ) * col2 + + col0 * col2 + + ( col0 * col0 + col0 ) AS col2 FROM tab2 AS cor0
----
-592
6656
8676

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

query I rowsort
SELECT DISTINCT - col1 * + col2 + - ( cor0.col2 ) * + col1 FROM tab0 AS cor0
----
-14924
-194
-5676

query I rowsort
SELECT ALL ( col0 ) + 1 AS col1 FROM tab2 AS cor0
----
79
8
80

query I rowsort
SELECT cor1.col1 FROM tab2 AS cor0 CROSS JOIN tab0, tab2 cor1, tab1, tab0 AS cor2
----
243 values hashing to 42b04a30acb32fcd35bf97afdee87fe6

query I rowsort
SELECT col2 * col2 + - cor0.col2 * col0 AS col1 FROM tab0 AS cor0
----
-34
-574
297

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

query I rowsort
SELECT + col2 * - 50 + - col2 FROM tab0 AS cor0
----
-1683
-4182
-51

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

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

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

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

query I rowsort
SELECT ALL - col1 * ( col0 * + 50 ) + col1 FROM tab0 AS cor0
----
-103114
-169653
-404859

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

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

query I rowsort
SELECT DISTINCT - col1 + 25 AS col1 FROM tab0 cor0
----
-61
-66
-72

query I rowsort
SELECT - + 22 * + col2 * col1 AS col1 FROM tab2 cor0
----
-14212
-18414
-33748

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

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

query I rowsort
SELECT - col1 + - col2 + col2 * + col1 FROM tab2
----
1449
591
779

query I rowsort
SELECT ALL + 91 - col0 * col2 FROM tab1
----
-3557
-71
-7589

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

query I rowsort
SELECT ALL - - 63 * + col1 * + col1 + col2 AS col1 FROM tab2 AS cor0
----
18245
219329
60570

onlyif mysql # use DIV operator for integer division
query I rowsort label-996
SELECT DISTINCT 15 + col0 DIV - col0 FROM tab0 AS cor0
----
14

skipif mysql # not compatible
query I rowsort label-996
SELECT DISTINCT 15 + col0 / - col0 FROM tab0 AS cor0
----
14

query I rowsort
SELECT DISTINCT 81 * - col0 + col2 * cor0.col2 FROM tab2 AS cor0
----
-4955
-5642
162

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

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

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

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

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

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

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

query I rowsort
SELECT + - col1 + - 1 FROM tab2 AS cor0
----
-18
-32
-60

query I rowsort
SELECT + + 53 * - col1 AS col0 FROM tab2 AS cor0
----
-1643
-3127
-901

query I rowsort
SELECT ALL 12 - - col1 * - col2 FROM tab1 AS cor0
----
-1236
-1392
-558

query I rowsort
SELECT DISTINCT 67 + col0 FROM tab0 cor0
----
102
156
91

query I rowsort
SELECT DISTINCT cor0.col1 * + col1 * + col0 + cor0.col1 * col1 FROM tab1 AS cor0
----
13689
2704
6500

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

query I rowsort
SELECT ALL - col2 * + col0 + col1 + - col2 FROM tab0 AS cor0
----
-7289
-739
61

query I rowsort
SELECT - 11 + + col1 AS col2 FROM tab2 AS cor0
----
20
48
6

query I rowsort
SELECT DISTINCT 96 * + col1 FROM tab2 AS cor0
----
1632
2976
5664

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1014
SELECT + 78 DIV ( + col1 ) + - tab2.col0 FROM tab2
----
-5
-75
-77

skipif mysql # not compatible
query I rowsort label-1014
SELECT + 78 / ( + col1 ) + - tab2.col0 FROM tab2
----
-5
-75
-77

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

query I rowsort
SELECT + 53 + - col2 * tab1.col0 AS col1 FROM tab1
----
-109
-3595
-7627

query I rowsort
SELECT DISTINCT - 77 AS col2 FROM tab0
----
-77

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab0 AS cor0 WHERE NOT col1 = + col1 + + col2 * col1
----
24
35
89

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL IN ( + col2 * - col2 )
----

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1022
SELECT col0 - tab1.col2 DIV col2 FROM tab1
----
2
63
79

skipif mysql # not compatible
query I rowsort label-1022
SELECT col0 - tab1.col2 / col2 FROM tab1
----
2
63
79

query I rowsort
SELECT DISTINCT - col1 FROM tab0 WHERE NULL NOT BETWEEN NULL AND + col2
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + tab1.col0 * col0 <= - col1 - - tab1.col2
----
64
10
57
80
13
96

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col0 * + col0 col1 FROM tab1 AS cor0
----
4096
6400
9

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

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

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

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

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

query I rowsort
SELECT ALL - col0 + + tab0.col0 * col0 FROM tab0
----
1190
552
7832

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1033
SELECT + col1 + + col2 DIV col1 col2 FROM tab1 AS cor0
----
15
20
28

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1033
SELECT + col1 + + col2 / col1 col2 FROM tab1 AS cor0
----
15
20
28

query I rowsort
SELECT ALL col0 * cor0.col0 + col0 + col0 AS col1 FROM tab0 AS cor0
----
1295
624
8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-1035
SELECT DISTINCT - cor0.col0 + cor0.col1 DIV + col2 AS col2 FROM tab0 AS cor0
----
-22
-88
62

skipif mysql # not compatible
query I rowsort label-1035
SELECT DISTINCT - cor0.col0 + cor0.col1 / + col2 AS col2 FROM tab0 AS cor0
----
-22
-88
62

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + col0 col2 FROM tab2
----
137
38
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-1039
SELECT DISTINCT col1 DIV + col0 + - col0 + + col2 * + col2 * col0 AS col2 FROM tab1
----
207872
737200
8753

skipif mysql # not compatible
query I rowsort label-1039
SELECT DISTINCT col1 / + col0 + - col0 + + col2 * + col2 * col0 AS col2 FROM tab1
----
207872
737200
8753

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

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

query I rowsort
SELECT DISTINCT col1 * col2 + col0 * - col2 AS col2 FROM tab1
----
-3078
-6432
1242

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

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

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

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

query I rowsort
SELECT ALL + cor0.col1 + col2 * - col1 FROM tab1 cor0
----
-1235
-1378
-560

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

query I rowsort
SELECT - 61 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to c91d7b51e91f33d302e697913fb438b6

query I rowsort
SELECT 55 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 832128adb1ddc65c3105e29cc2c8b3a3

query I rowsort
SELECT + cor0.col1 + - 85 FROM tab2 AS cor0
----
-26
-54
-68

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

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

query I rowsort
SELECT ALL - 60 FROM tab1, tab0 cor0
----
9 values hashing to 067a4b5daf8747042e3b07ca8459859f

query I rowsort
SELECT - + col1 + col2 + - 15 FROM tab0 AS cor0
----
-111
-24
-68

query I rowsort
SELECT 24 + - col2 * ( - 70 ) AS col0 FROM tab2 AS cor0
----
1844
1914
2684

query I rowsort
SELECT col0 * cor0.col1 * ( ( + col1 ) * - col0 ) AS col1 FROM tab0 AS cor0
----
-11526025
-4260096
-65593801

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

query I rowsort
SELECT ALL cor0.col0 + - col2 * 6 AS col1 FROM tab2 AS cor0
----
-149
-155
-78

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

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

query I rowsort
SELECT - col2 + + col1 * + 38 AS col1 FROM tab2 AS cor0
----
1151
2216
608

query I rowsort
SELECT col0 * col2 * cor0.col1 + ( - col0 ) FROM tab2 AS cor0
----
119574
50955
5852

onlyif mysql # use DIV operator for integer division
query I rowsort label-1063
SELECT DISTINCT col0 DIV 96 + col2 AS col2 FROM tab2
----
26
27
38

skipif mysql # not compatible
query I rowsort label-1063
SELECT DISTINCT col0 / 96 + col2 AS col2 FROM tab2
----
26
27
38

query I rowsort
SELECT - - col2 * + col1 + cor0.col2 * - 21 * - col1 FROM tab2 AS cor0
----
14212
18414
33748

query I rowsort
SELECT ALL 81 * - col1 * ( + col1 ) AS col1 FROM tab0
----
-599076
-670761
-762129

query I rowsort
SELECT DISTINCT + cor0.col2 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
1
33
82

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

skipif mysql # not compatible
query I rowsort label-1067
SELECT - col2 / - col1 + ( col0 ) FROM tab2 AS cor0
----
7
78
81

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

skipif mysql # not compatible
query I rowsort label-1068
SELECT ALL - CAST ( NULL AS INTEGER ) - - 50 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

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

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

query I rowsort
SELECT DISTINCT + 23 * - cor1.col0 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-1472
-1840
-69

onlyif mysql # use DIV operator for integer division
query I rowsort label-1072
SELECT col1 + col2 + col0 DIV col1 AS col0 FROM tab2 AS cor0
----
58
59
86

skipif mysql # not compatible
query I rowsort label-1072
SELECT col1 + col2 + col0 / col1 AS col0 FROM tab2 AS cor0
----
58
59
86

onlyif mysql # use DIV operator for integer division
query I rowsort label-1073
SELECT ALL - cor0.col2 + col2 DIV + col0 + + col1 * + col2 AS col2 FROM tab0 AS cor0
----
2806
7380
96

skipif mysql # not compatible
query I rowsort label-1073
SELECT ALL - cor0.col2 + col2 / + col0 + + col1 * + col2 AS col2 FROM tab0 AS cor0
----
2806
7380
96

query I rowsort
SELECT - + col1 + col0 + + col1 AS col1 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT DISTINCT cor0.col1 * 37 AS col1 FROM tab2 AS cor0
----
1147
2183
629

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

query I rowsort
SELECT ALL - col2 + + 75 FROM tab2 AS cor0
----
37
48
49

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

skipif mysql # not compatible
query I rowsort label-1078
SELECT 83 / col2 AS col2 FROM tab1
----
0
1
1

query I rowsort
SELECT + 62 * + 56 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to d05e84a952f6965daa97f64829ac89f7

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

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

skipif mysql # not compatible
query I rowsort label-1081
SELECT + cor0.col0 / ( col1 * + col1 + - col1 ) FROM tab2 AS cor0
----
0
0
0

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

query I rowsort
SELECT + col0 * - col2 * + col0 AS col0 FROM tab2
----
-1323
-158184
-237158

query I rowsort
SELECT col1 * + 62 FROM tab0
----
5332
5642
6014

onlyif mysql # use DIV operator for integer division
query I rowsort label-1085
SELECT - - 5 DIV - col0 - + col0 FROM tab2 cor0
----
-7
-78
-79

skipif mysql # not compatible
query I rowsort label-1085
SELECT - - 5 / - col0 - + col0 FROM tab2 cor0
----
-7
-78
-79

query I rowsort
SELECT ALL col2 * col0 - ( col0 * col0 + col0 ) FROM tab1
----
-512
1200
150

onlyif mysql # use DIV operator for integer division
query I rowsort label-1087
SELECT DISTINCT col2 DIV col1 + 75 - + col1 AS col1 FROM tab1
----
51
69
70

skipif mysql # not compatible
query I rowsort label-1087
SELECT DISTINCT col2 / col1 + 75 - + col1 AS col1 FROM tab1
----
51
69
70

query I rowsort
SELECT + - 65 * - col0 AS col0 FROM tab2 AS cor0
----
455
5070
5135

query I rowsort
SELECT DISTINCT ( + col2 ) + 56 AS col1 FROM tab0 AS cor0
----
138
57
89

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

query I rowsort
SELECT - 8 * - col0 FROM tab1 AS cor0
----
24
512
640

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

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

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

query I rowsort
SELECT col2 + 50 FROM tab2
----
76
77
88

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

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

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

query I rowsort
SELECT DISTINCT - - ( - 41 ) * cor1.col1 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-1271
-2419
-697

onlyif mysql # use DIV operator for integer division
query I rowsort label-1099
SELECT DISTINCT col1 - col1 DIV tab1.col2 AS col0 FROM tab1
----
10
13
26

skipif mysql # not compatible
query I rowsort label-1099
SELECT DISTINCT col1 - col1 / tab1.col2 AS col0 FROM tab1
----
10
13
26

query I rowsort
SELECT ALL ( + tab2.col2 + col2 ) * col2 AS col1 FROM tab2
----
1352
1458
2888

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

query I rowsort
SELECT ALL + + ( col2 ) * 84 + + 50 * + col1 * col2 AS col0 FROM tab0 AS cor0
----
144672
379988
4934

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

query I rowsort
SELECT + - 18 * col2 FROM tab0 AS cor0
----
-1476
-18
-594

query I rowsort
SELECT ALL + 72 * - cor0.col0 FROM tab1 AS cor0
----
-216
-4608
-5760

query I rowsort
SELECT ALL + 71 + col0 * + 89 AS col1 FROM tab0 AS cor0
----
2207
3186
7992

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

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

skipif mysql # not compatible
query I rowsort label-1108
SELECT - col2 + + col2 / ( col0 * col1 + col1 ) FROM tab2 AS cor0
----
-26
-27
-38

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab1.col2 * - col2 * col2 + col1 col1 FROM tab1
----
-157438
-185183
-884723

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - col2 + col2 * col2 col0 FROM tab0
----
14022
1881
36

query I rowsort
SELECT ALL + col2 * - col2 - cor0.col1 * + col1 AS col0 FROM tab1 AS cor0
----
-3349
-3592
-9385

query I rowsort
SELECT - + col0 + + ( col2 + - col1 ) * col2 AS col1 FROM tab1 AS cor0
----
1509
2615
7888

query I rowsort
SELECT DISTINCT col0 - + 64 FROM tab0 AS cor0
----
-29
-40
25

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

query I rowsort
SELECT ALL + - 52 * - cor0.col0 FROM tab0 cor0
----
1248
1820
4628

query I rowsort
SELECT 78 + - col1 AS col2 FROM tab0
----
-13
-19
-8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - 98 col0 FROM tab0 AS cor0
----
-2352
-3430
-8722

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

query I rowsort
SELECT ALL + ( + col1 ) * col2 * col1 + col2 AS col2 FROM tab2 AS cor0
----
11020
25974
90532

query I rowsort
SELECT col2 - - 58 * - col0 AS col1 FROM tab0
----
-1359
-2029
-5080

query I rowsort
SELECT DISTINCT - - ( + col0 ) * cor0.col1 + - 85 AS col2 FROM tab1 AS cor0
----
-7
555
955

query I rowsort
SELECT col1 + 5 AS col2 FROM tab0 AS cor0
----
102
91
96

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

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

query I rowsort
SELECT DISTINCT + + col1 + col2 * + cor0.col2 * - col2 FROM tab1 AS cor0
----
-157438
-185183
-884723

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

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

query I rowsort
SELECT - + 75 * col1 + + col1 FROM tab0 AS cor0
----
-6364
-6734
-7178

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( 32 ) + col1 * + ( - col1 ) col1 FROM tab1 AS cor0
----
-132
-201
-708

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1132
SELECT DISTINCT + col1 * col1 - - col0 DIV - cor0.col0 AS col2 FROM tab0 AS cor0
----
7395
8280
9408

skipif mysql # not compatible
query I rowsort label-1132
SELECT DISTINCT + col1 * col1 - - col0 / - cor0.col0 AS col2 FROM tab0 AS cor0
----
7395
8280
9408

query I rowsort
SELECT ALL cor0.col2 + 87 FROM tab2 AS cor0
----
113
114
125

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1137
SELECT + ( col2 ) + + col1 * + CAST ( - col0 AS INTEGER ) FROM tab1 AS cor0
----
-24
-583
-944

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * 38 col2 FROM tab0 AS cor0
----
1254
3116
38

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

query I rowsort
SELECT + 44 * col1 AS col2 FROM tab1 AS cor0
----
1144
440
572

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

query I rowsort
SELECT 5 * + col2 FROM tab1 AS cor0
----
270
285
480

query I rowsort
SELECT + tab2.col0 FROM tab0, tab0 AS cor0 CROSS JOIN tab2
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

query I rowsort
SELECT + col1 - + cor0.col0 * + col2 * col1 AS col1 FROM tab2 AS cor0
----
-119593
-51017
-5828

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

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

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

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

query I rowsort
SELECT ALL - col2 - 19 FROM tab1 AS cor0
----
-115
-73
-76

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

query I rowsort
SELECT DISTINCT cor0.col1 + - col2 * + col1 FROM tab1 cor0
----
-1235
-1378
-560

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

query I rowsort
SELECT DISTINCT col1 * col1 + col1 AS col0 FROM tab1
----
110
182
702

query I rowsort
SELECT col2 * + 50 FROM tab0
----
1650
4100
50

query I rowsort
SELECT ALL col1 + - 50 AS col1 FROM tab1
----
-24
-37
-40

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

query I rowsort
SELECT + col1 + col0 * + col1 + tab2.col0 * + col2 AS col2 FROM tab2
----
4362
437
6689

onlyif mysql # use DIV operator for integer division
query I rowsort label-1159
SELECT ALL 86 DIV - col1 AS col1 FROM tab1
----
-3
-6
-8

skipif mysql # not compatible
query I rowsort label-1159
SELECT ALL 86 / - col1 AS col1 FROM tab1
----
-3
-6
-8

query I rowsort
SELECT ALL - col2 * - 66 AS col1 FROM tab2 AS cor0
----
1716
1782
2508

query I rowsort
SELECT + - cor0.col0 FROM tab2, tab1, tab1 cor0
----
27 values hashing to 729c1edda9332398299f39cd174ed840

query I rowsort
SELECT DISTINCT - 75 * - 35 AS col2 FROM tab1, tab0 cor0
----
2625

query I rowsort
SELECT ALL + col0 * + col0 + - ( col1 ) * 97 + - col0 FROM tab2
----
-2965
283
4513

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

skipif mysql # not compatible
query I rowsort label-1164
SELECT tab1.col1 / - tab1.col1 FROM tab1
----
-1
-1
-1

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

query I rowsort
SELECT + + 32 * col0 - + col2 AS col2 FROM tab2 AS cor0
----
197
2470
2490

query I rowsort
SELECT 4 * 54 FROM tab1 cor0
----
216
216
216

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

query I rowsort
SELECT - col2 * ( - col2 * - ( col2 ) ) FROM tab1
----
-157464
-185193
-884736

query I rowsort
SELECT + col1 + cor0.col1 + - cor0.col1 * + col2 AS col0 FROM tab2 cor0
----
-1416
-612
-775

query I rowsort
SELECT 20 + cor0.col2 AS col0 FROM tab2 AS cor0
----
46
47
58

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

query I rowsort
SELECT + col1 + - col0 * col2 * col1 + cor0.col2 FROM tab0 AS cor0
----
-3297
-663945
-67993

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

query I rowsort
SELECT ALL + tab1.col0 + + col1 * col1 FROM tab1
----
164
249
679

query I rowsort
SELECT ALL 67 * col2 + - col0 FROM tab2
----
1664
1802
2467

query I rowsort
SELECT - + col0 * col1 - cor0.col2 FROM tab2 cor0
----
-1381
-244
-4628

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 - col1 * ( col1 ) col2 FROM tab2
----
-251
-3455
-934

onlyif mysql # use DIV operator for integer division
query I rowsort label-1179
SELECT ALL col1 DIV - col1 + - col2 AS col0 FROM tab0
----
-2
-34
-83

skipif mysql # not compatible
query I rowsort label-1179
SELECT ALL col1 / - col1 + - col2 AS col0 FROM tab0
----
-2
-34
-83

query I rowsort
SELECT - ( col1 + + 60 ) * + col0 FROM tab2
----
-6083
-637
-9282

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

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

query I rowsort
SELECT 7 + col0 FROM tab1 cor0
----
10
71
87

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1186
SELECT DISTINCT + col0 + col1 DIV col0 AS col0 FROM tab2 AS cor0
----
11
78
79

skipif mysql # not compatible
query I rowsort label-1186
SELECT DISTINCT + col0 + col1 / col0 AS col0 FROM tab2 AS cor0
----
11
78
79

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

query I rowsort
SELECT - col0 * + ( 24 ) + - col1 AS col2 FROM tab1 cor0
----
-1546
-1933
-98

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

query I rowsort
SELECT + - col0 + + 18 FROM tab0 AS cor0
----
-17
-6
-71

query I rowsort
SELECT ALL + cor0.col2 * + 83 + col2 AS col2 FROM tab1 AS cor0
----
4536
4788
8064

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

query I rowsort
SELECT col2 * tab2.col1 + - col0 + - col0 * + tab2.col1 AS col0 FROM tab2
----
-3146
-776
613

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

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

query I rowsort
SELECT ALL - 10 + col0 * col2 FROM tab2 AS cor0
----
179
2018
2992

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

query I rowsort
SELECT 73 AS col2 FROM tab2 AS cor0
----
73
73
73

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1202
SELECT col0 DIV 81 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1202
SELECT col0 / 81 FROM tab2 AS cor0
----
0
0
0

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

query I rowsort
SELECT ALL + 96 * cor0.col2 - + 63 FROM tab1 AS cor0
----
5121
5409
9153

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 89 col0 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 860d55eb6785972467218a9c3badb5ad

query I rowsort
SELECT + 36 + + col2 * + col0 FROM tab1 AS cor0
----
198
3684
7716

query I rowsort
SELECT cor0.col1 + + 85 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 9c85fb3a12ddb75e2a1a4f63b4ff6e2c

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

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

query I rowsort
SELECT DISTINCT - - col1 * + ( + 75 ) FROM tab0 AS cor0
----
6450
6825
7275

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1212
SELECT DISTINCT - col2 * + CAST( - 54 * cor0.col1 + col1 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
34238
44361
81302

skipif mysql # not compatible
query I rowsort label-1212
SELECT DISTINCT - col2 * + CAST ( - 54 * cor0.col1 + col1 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
34238
44361
81302

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + + ( + col0 ) col1 FROM tab0 AS cor0
----
178
48
70

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

query I rowsort
SELECT + col1 * ( 10 ) AS col2 FROM tab0 AS cor0
----
860
910
970

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

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

query I rowsort
SELECT + col1 + + cor0.col2 + - col2 FROM tab2 cor0
----
17
31
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - col1 * + col1 col2 FROM tab0 AS cor0
----
-7310
-8190
-9312

query I rowsort
SELECT - ( + cor0.col0 ) AS col0 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to 729c1edda9332398299f39cd174ed840

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0 cor0 CROSS JOIN tab1, tab2 AS cor1, tab0 AS cor2, tab0 AS cor3
----
3645 values hashing to 53ea9df66efbebef5063fb0b15c25baa

onlyif mysql # use DIV operator for integer division
query I rowsort label-1221
SELECT col1 DIV - CAST( col0 AS SIGNED ) + - col0 * - ( col0 * - col2 ) FROM tab0
----
-1227
-19011
-649523

skipif mysql # not compatible
query I rowsort label-1221
SELECT col1 / - CAST ( col0 AS INTEGER ) + - col0 * - ( col0 * - col2 ) FROM tab0
----
-1227
-19011
-649523

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

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

query I rowsort
SELECT DISTINCT - cor0.col1 + + 74 FROM tab0 AS cor0
----
-12
-17
-23

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

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

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1228
SELECT col1 DIV 38 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1228
SELECT col1 / 38 AS col2 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT 26 - col2 AS col1 FROM tab2
----
-1
-12
0

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1232
SELECT 94 DIV - col0 + col1 AS col2 FROM tab1
----
-5
12
9

skipif mysql # not compatible
query I rowsort label-1232
SELECT 94 / - col0 + col1 AS col2 FROM tab1
----
-5
12
9

query I rowsort
SELECT ALL ( - col1 ) * 79 + col0 + + tab2.col2 * + col1 AS col2 FROM tab2
----
-1605
-3049
-618

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

query I rowsort
SELECT DISTINCT 87 * + col2 + + tab2.col1 AS col0 FROM tab2
----
2321
2380
3323

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1236
SELECT DISTINCT - col0 + col1 - CAST( col0 AS SIGNED ) col2 FROM tab2 cor0
----
-141
-97
17

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1236
SELECT DISTINCT - col0 + col1 - CAST ( col0 AS INTEGER ) col2 FROM tab2 cor0
----
-141
-97
17

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

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

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

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

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

query I rowsort
SELECT 44 * + cor0.col1 FROM tab0 AS cor0
----
3784
4004
4268

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

query I rowsort
SELECT ALL + ( - col2 ) + 54 + - col2 FROM tab1 AS cor0
----
-138
-54
-60

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

skipif mysql # not compatible
query I rowsort label-1243
SELECT + col0 + cor0.col2 / + 91 FROM tab0 cor0
----
24
35
89

query I rowsort
SELECT ALL + col0 * 44 AS col2 FROM tab2 AS cor0
----
308
3432
3476

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1246
SELECT + cor0.col1 * 27 DIV - col0 AS col1 FROM tab0 AS cor0
----
-27
-74
-96

skipif mysql # not compatible
query I rowsort label-1246
SELECT + cor0.col1 * 27 / - col0 AS col1 FROM tab0 AS cor0
----
-27
-74
-96

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1248
SELECT DISTINCT - + 7 * + 2 + col2 DIV + col1 FROM tab0 cor0
----
-14

skipif mysql # not compatible
query I rowsort label-1248
SELECT DISTINCT - + 7 * + 2 + col2 / + col1 FROM tab0 cor0
----
-14

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

query I rowsort
SELECT ALL - 88 AS col1 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to eb8cbefa7d831e1a0183e919e2caef32

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

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

query I rowsort
SELECT + 96 * col0 + col1 FROM tab1 AS cor0
----
314
6154
7693

query I rowsort
SELECT DISTINCT - + 23 + - col1 AS col1 FROM tab2 AS cor0
----
-40
-54
-82

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

query I rowsort
SELECT ALL cor0.col0 + col1 * 57 AS col2 FROM tab1 AS cor0
----
1485
634
821

query I rowsort
SELECT DISTINCT + ( col0 ) + ( col0 ) AS col1 FROM tab2 AS cor0
----
14
156
158

query I rowsort
SELECT + 20 * cor0.col1 - col0 FROM tab0 AS cor0
----
1696
1731
1905

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1259
SELECT - 7 + ( + col2 ) DIV + col0 FROM tab1
----
-6
-7
11

skipif mysql # not compatible
query I rowsort label-1259
SELECT - 7 + ( + col2 ) / + col0 FROM tab1
----
-6
-7
11

query I rowsort
SELECT col0 * 16 + col1 AS col2 FROM tab0
----
1515
470
657

query I rowsort
SELECT 84 + - col0 FROM tab0
----
-5
49
60

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1262
SELECT + CAST( + col0 AS SIGNED ) * col0 * 33 - + col2 AS col1 FROM tab0
----
18975
261311
40424

skipif mysql # not compatible
query I rowsort label-1262
SELECT + CAST ( + col0 AS INTEGER ) * col0 * 33 - + col2 AS col1 FROM tab0
----
18975
261311
40424

onlyif mysql # use DIV operator for integer division
query I rowsort label-1263
SELECT DISTINCT CAST( - col1 AS SIGNED ) DIV - col0 - ( col0 ) * + col0 FROM tab0
----
-1223
-573
-7920

skipif mysql # not compatible
query I rowsort label-1263
SELECT DISTINCT CAST ( - col1 AS INTEGER ) / - col0 - ( col0 ) * + col0 FROM tab0
----
-1223
-573
-7920

query I rowsort
SELECT + + col2 * + 89 AS col1 FROM tab2 AS cor0
----
2314
2403
3382

query I rowsort
SELECT 52 * + col2 AS col2 FROM tab0 AS cor0
----
1716
4264
52

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

query I rowsort
SELECT + 59 * cor0.col0 AS col1 FROM tab2 cor0
----
413
4602
4661

query I rowsort
SELECT DISTINCT - 60 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-60

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

query I rowsort
SELECT - 70 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 35707a5d99c98b2657c084a50ff1b073

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 39 col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf

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

query I rowsort
SELECT - + 94 AS col2 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 7eeab220fc6bbc2fb3fa4aef8600159f

query I rowsort
SELECT DISTINCT col0 * 73 AS col0 FROM tab2
----
511
5694
5767

query I rowsort
SELECT 51 * col1 * + tab2.col1 FROM tab2
----
14739
177531
49011

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

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

query I rowsort
SELECT ALL 55 AS col2 FROM tab2
----
55
55
55

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

query I rowsort
SELECT - + col0 * 59 FROM tab2 AS cor0
----
-413
-4602
-4661

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

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

query I rowsort
SELECT ALL cor0.col0 + - 76 FROM tab0, tab1 AS cor0
----
9 values hashing to d6c4cf4d16e2af6e07369ca9d8a6d51d

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

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

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

query I rowsort
SELECT ALL 59 * - col2 FROM tab1 AS cor0
----
-3186
-3363
-5664

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1287
SELECT - cor0.col1 / col1 col2 FROM tab1 AS cor0
----
-1
-1
-1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1288
SELECT col1 - CAST( + col2 AS SIGNED ) FROM tab1
----
-28
-47
-83

skipif mysql # not compatible
query I rowsort label-1288
SELECT col1 - CAST ( + col2 AS INTEGER ) FROM tab1
----
-28
-47
-83

query I rowsort
SELECT + - col2 + col2 * 54 FROM tab1 AS cor0
----
2862
3021
5088

onlyif mysql # use DIV operator for integer division
query I rowsort label-1290
SELECT ALL + col2 * - 13 + - col1 DIV col1 FROM tab2 AS cor0
----
-339
-352
-495

skipif mysql # not compatible
query I rowsort label-1290
SELECT ALL + col2 * - 13 + - col1 / col1 FROM tab2 AS cor0
----
-339
-352
-495

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

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

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

query I rowsort
SELECT ALL - 24 + col2 AS col2 FROM tab2 AS cor0
----
14
2
3

query I rowsort
SELECT - + col2 + 54 * col1 AS col0 FROM tab1 AS cor0
----
1350
483
606

query I rowsort
SELECT DISTINCT col1 + 63 * - col2 AS col0 FROM tab0 AS cor0
----
-1993
-5075
34

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

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

query I rowsort
SELECT - + 88 * + col1 + col1 * - col0 + - ( + col2 ) FROM tab2 AS cor0
----
-2877
-2972
-9820

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

query I rowsort
SELECT ALL + - 24 * - 47 + col2 FROM tab1 AS cor0
----
1182
1185
1224

query I rowsort
SELECT ALL + col2 + 99 AS col0 FROM tab2 AS cor0
----
125
126
137

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

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

query I rowsort
SELECT ALL col0 + 97 * + col2 * 93 + 85 AS col2 FROM tab1 AS cor0
----
487222
514346
866181

query I rowsort
SELECT DISTINCT + col1 + 50 AS col1 FROM tab1 AS cor0
----
60
63
76

query I rowsort
SELECT ALL + 53 + + col0 FROM tab2
----
131
132
60

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col1 * + col1 col2 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT + + ( col0 ) * - 77 AS col1 FROM tab1 cor0
----
-231
-4928
-6160

query I rowsort
SELECT col2 * col0 + - 24 + + col2 FROM tab2 AS cor0
----
192
2030
3016

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

skipif mysql # not compatible
query I rowsort label-1313
SELECT DISTINCT - 84 + - cor0.col2 / + col0 FROM tab0 AS cor0
----
-84
-85

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1315
SELECT 56 * col1 + + 69 DIV col0 + + cor0.col0 AS col0 FROM tab0 AS cor0
----
4842
5185
5468

skipif mysql # not compatible
query I rowsort label-1315
SELECT 56 * col1 + + 69 / col0 + + cor0.col0 AS col0 FROM tab0 AS cor0
----
4842
5185
5468

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

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

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

query I rowsort
SELECT DISTINCT + cor0.col0 + col2 * col2 * + col2 FROM tab0 AS cor0
----
35961
36
551457

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

query I rowsort
SELECT + + 34 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 1146d159f0b9b4378a8b738b963f7039

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

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

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + CAST ( - col0 AS REAL ) * - col1 + col0 FROM tab2 AS cor0
----
1422
224
4680

query I rowsort
SELECT ALL col1 * - 71 + - col2 AS col0 FROM tab0
----
-6139
-6543
-6888

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

query I rowsort
SELECT DISTINCT 27 * col0 + + col2 AS col2 FROM tab2
----
2132
216
2171

query I rowsort
SELECT DISTINCT - col0 + 33 - col0 AS col0 FROM tab1 AS cor0
----
-127
-95
27

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 11 - - col0 * col1 col0 FROM tab1 AS cor0
----
1051
651
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-1330
SELECT ALL - 93 DIV col1 col0 FROM tab2 cor0
----
-1
-3
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1330
SELECT ALL - 93 / col1 col0 FROM tab2 cor0
----
-1
-3
-5

query I rowsort
SELECT ALL - 94 + col0 AS col2 FROM tab1 AS cor0
----
-14
-30
-91

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

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

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

skipif mysql # not compatible
query I rowsort label-1334
SELECT - 36 / cor0.col2 AS col0 FROM tab0 AS cor0
----
-1
-36
0

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 25 * + col2 + + cor0.col1 col2 FROM tab2 AS cor0
----
706
709
967

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

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

query I rowsort
SELECT DISTINCT + ( col0 ) * col1 + col0 FROM tab2 AS cor0
----
1422
224
4680

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

skipif mysql # not compatible
query I rowsort label-1342
SELECT DISTINCT 1 / - col0 AS col0 FROM tab2 AS cor0
----
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1343
SELECT ALL CAST( - 55 * - col1 AS SIGNED ) + col0 FROM tab2
----
1014
1712
3323

skipif mysql # not compatible
query I rowsort label-1343
SELECT ALL CAST ( - 55 * - col1 AS INTEGER ) + col0 FROM tab2
----
1014
1712
3323

query I rowsort
SELECT DISTINCT col1 + + 52 AS col0 FROM tab1
----
62
65
78

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1345
SELECT ALL CAST( + col2 * + col1 AS SIGNED ) + tab1.col0 FROM tab1
----
1328
1407
634

skipif mysql # not compatible
query I rowsort label-1345
SELECT ALL CAST ( + col2 * + col1 AS INTEGER ) + tab1.col0 FROM tab1
----
1328
1407
634

query I rowsort
SELECT DISTINCT + col0 - 81 * 99 FROM tab1 AS cor0
----
-7939
-7955
-8016

query I rowsort
SELECT DISTINCT - col1 * - cor0.col0 * col2 + - col2 FROM tab1 AS cor0
----
36423
4158
99744

query I rowsort
SELECT + col2 * ( - 48 + cor0.col0 ) * col0 AS col2 FROM tab1 cor0
----
-7290
245760
58368

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

query I rowsort
SELECT + col0 * + 70 FROM tab0 AS cor0
----
1680
2450
6230

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 * 90 col2 FROM tab0 AS cor0
----
-2160
-3150
-8010

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

skipif mysql # not compatible
query I rowsort label-1353
SELECT DISTINCT 16 / + col1 FROM tab1
----
0
1

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

query I rowsort
SELECT DISTINCT - col1 * - 92 + col0 + col1 AS col0 FROM tab1 AS cor0
----
1289
2421
994

query I rowsort
SELECT col0 * - 31 AS col0 FROM tab1 cor0
----
-1984
-2480
-93

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1358
SELECT tab0.col2 + + 93 + - col2 DIV - col2 AS col0 FROM tab0
----
127
176
95

skipif mysql # not compatible
query I rowsort label-1358
SELECT tab0.col2 + + 93 + - col2 / - col2 AS col0 FROM tab0
----
127
176
95

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1359
SELECT - - CAST( col2 AS SIGNED ) * - cor0.col2 FROM tab1 AS cor0
----
-2916
-3249
-9216

skipif mysql # not compatible
query I rowsort label-1359
SELECT - - CAST ( col2 AS INTEGER ) * - cor0.col2 FROM tab1 AS cor0
----
-2916
-3249
-9216

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

skipif mysql # not compatible
query I rowsort
SELECT ALL + CAST ( col0 AS REAL ) FROM tab2 cor0
----
7
78
79

query I rowsort
SELECT + col0 + - 86 + ( col2 * col1 ) FROM tab1
----
1242
1321
548

onlyif mysql # use DIV operator for integer division
query I rowsort label-1363
SELECT - col0 DIV 60 AS col0 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-1363
SELECT - col0 / 60 AS col0 FROM tab1
----
-1
-1
0

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1366
SELECT ALL col2 * col1 DIV tab0.col0 FROM tab0
----
118
2
83

skipif mysql # not compatible
query I rowsort label-1366
SELECT ALL col2 * col1 / tab0.col0 FROM tab0
----
118
2
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab2.col1 * - tab2.col1 col2 FROM tab2
----
-289
-3481
-961

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

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

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

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

query I rowsort
SELECT + col2 * - cor0.col1 + col2 * col2 FROM tab0 AS cor0
----
-1749
-738
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-1372
SELECT - col1 DIV cor0.col1 + col0 - cor0.col0 * col0 FROM tab1 AS cor0
----
-4033
-6321
-7

skipif mysql # not compatible
query I rowsort label-1372
SELECT - col1 / cor0.col1 + col0 - cor0.col0 * col0 FROM tab1 AS cor0
----
-4033
-6321
-7

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

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

query I rowsort
SELECT ALL - col2 * + col1 + + cor0.col1 AS col2 FROM tab2 AS cor0
----
-1475
-629
-806

query I rowsort
SELECT + - col2 + col1 * - col0 * - col0 FROM tab2 AS cor0
----
106059
1492
358930

onlyif mysql # use DIV operator for integer division
query I rowsort label-1377
SELECT col2 DIV col2 FROM tab1 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1377
SELECT col2 / col2 FROM tab1 cor0
----
1
1
1

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

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

query I rowsort
SELECT 9 + + col0 AS col2 FROM tab1 cor0
----
12
73
89

query I rowsort
SELECT + col2 + + col2 * - 3 FROM tab1 cor0
----
-108
-114
-192

query I rowsort
SELECT ALL ( + col2 ) + - 6 * - cor0.col1 FROM tab2 AS cor0
----
140
213
380

query I rowsort
SELECT DISTINCT 52 * + col2 FROM tab2 AS cor0
----
1352
1404
1976

onlyif mysql # use DIV operator for integer division
query I rowsort label-1384
SELECT - cor0.col1 DIV + col1 + + col0 AS col1 FROM tab2 AS cor0
----
6
77
78

skipif mysql # not compatible
query I rowsort label-1384
SELECT - cor0.col1 / + col1 + + col0 AS col1 FROM tab2 AS cor0
----
6
77
78

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

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

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

query I rowsort
SELECT - 81 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 205b3ff2d7b1817c98d7980b8c17e6c1

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

skipif mysql # not compatible
query I rowsort label-1389
SELECT + + CAST ( - col1 AS INTEGER ) * + col0 + + col2 FROM tab1 AS cor0
----
-24
-583
-944

query I rowsort
SELECT ALL + 89 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab1 AS cor2
----
81 values hashing to bb5bb13eab35a33bb4641905f5e7c9b6

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

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

query I rowsort
SELECT DISTINCT + 26 * cor0.col0 AS col2 FROM tab0 AS cor0
----
2314
624
910

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

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

query I rowsort
SELECT ( ( - col1 ) ) * ( col0 * + tab2.col2 ) + col2 AS col0 FROM tab2
----
-119626
-50996
-5832

query I rowsort
SELECT + col1 * + col2 * + 26 + - tab0.col1 AS col1 FROM tab0
----
193921
2425
73702

query I rowsort
SELECT col0 * - col1 + ( + col1 + tab0.col2 ) FROM tab0
----
-1945
-3297
-7926

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

query I rowsort
SELECT ALL - + 50 * col2 * cor0.col1 FROM tab0 AS cor0
----
-141900
-373100
-4850

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT + col2 + col2 - col2 FROM tab1
----
54
57
96

query I rowsort
SELECT ALL col2 * + 48 - col0 AS col1 FROM tab2
----
1170
1289
1745

onlyif mysql # use DIV operator for integer division
query I rowsort label-1407
SELECT + tab0.col0 DIV 6 FROM tab0
----
14
4
5

skipif mysql # not compatible
query I rowsort label-1407
SELECT + tab0.col0 / 6 FROM tab0
----
14
4
5

query I rowsort
SELECT col0 * 67 * col2 FROM tab1
----
10854
244416
514560

query I rowsort
SELECT col2 - 25 FROM tab2 AS cor0
----
1
13
2

query I rowsort
SELECT - col2 + + 90 - - 2 FROM tab0
----
10
59
91

onlyif mysql # use DIV operator for integer division
query I rowsort label-1411
SELECT - col1 - col2 DIV col1 FROM tab2
----
-19
-31
-59

skipif mysql # not compatible
query I rowsort label-1411
SELECT - col1 - col2 / col1 FROM tab2
----
-19
-31
-59

query I rowsort
SELECT - 9 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to caf28657beb43049740febe1fa9ded5a

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

skipif mysql # not compatible
query I rowsort label-1413
SELECT tab2.col2 + - ( + ( + col2 ) + CAST ( col2 AS INTEGER ) ) * - tab2.col1 FROM tab2
----
1330
1701
3094

query I rowsort
SELECT ALL - col2 * 85 + + col2 AS col2 FROM tab1
----
-4536
-4788
-8064

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

query I rowsort
SELECT - col0 + 38 * col2 * 95 FROM tab1 AS cor0
----
194937
205706
346480

query I rowsort
SELECT - + col2 * + col0 + + col1 + col2 AS col1 FROM tab0 AS cor0
----
-673
-7125
63

query I rowsort
SELECT - + 44 * + col2 + col2 + + col0 * - 84 FROM tab0 AS cor0
----
-11002
-2983
-3435

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 25 + - col1 col0 FROM tab2 cor0
----
-34
-6
8

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

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

query I rowsort
SELECT DISTINCT col0 + + 12 + col2 FROM tab2 AS cor0
----
116
129
46

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

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

query I rowsort
SELECT DISTINCT + - col2 + + 8 FROM tab1 AS cor0
----
-46
-49
-88

query I rowsort
SELECT ALL + ( col1 ) * col2 * 91 + - ( + col0 ) * col0 + + col1 AS col1 FROM tab0 AS cor0
----
257768
671212
7699

query I rowsort
SELECT 28 * col0 FROM tab2 AS cor0
----
196
2184
2212

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

query I rowsort
SELECT DISTINCT - + col2 + ( - col2 ) AS col2 FROM tab1 AS cor0
----
-108
-114
-192

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * col2 + - 2 + col0 col1 FROM tab0
----
68
7385
814

query I rowsort
SELECT ALL - col0 * - col0 * col2 - col2 FROM tab2
----
1296
158158
237120

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

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

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

query I rowsort
SELECT ALL + col1 + 97 AS col0 FROM tab0 AS cor0
----
183
188
194

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

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

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

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

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

query I rowsort
SELECT ALL - 23 + ( - col1 ) AS col1 FROM tab0 AS cor0
----
-109
-114
-120

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

query I rowsort
SELECT ALL 73 + - 18 AS col2 FROM tab2 AS cor0
----
55
55
55

query I rowsort
SELECT 76 + col0 + - col2 AS col2 FROM tab0 AS cor0
----
110
67
83

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

skipif mysql # not compatible
query I rowsort label-1443
SELECT col0 / tab0.col0 AS col2 FROM tab0
----
1
1
1

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

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

query I rowsort
SELECT - 40 * + col0 + col1 FROM tab1 cor0
----
-2550
-3187
-94

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

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

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

query I rowsort
SELECT - 60 + + col0 AS col2 FROM tab1 cor0
----
-57
20
4

query I rowsort
SELECT DISTINCT col1 * 81 FROM tab1 AS cor0
----
1053
2106
810

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

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

query I rowsort
SELECT DISTINCT 57 + cor0.col1 * - col2 * - col2 AS col2 FROM tab2 AS cor0
----
22656
24605
39941

onlyif mysql # use DIV operator for integer division
query I rowsort label-1452
SELECT ALL - col2 DIV - 72 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1452
SELECT ALL - col2 / - 72 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - - 49 * - col2 + col1 AS col0 FROM tab0 AS cor0
----
-1531
-3927
48

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

query I rowsort
SELECT ALL col2 + col2 AS col0 FROM tab2 cor0
----
52
54
76

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

query I rowsort
SELECT ALL + 86 + + col0 AS col0 FROM tab0 AS cor0
----
110
121
175

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

query I rowsort
SELECT + + 39 + col2 AS col0 FROM tab2 AS cor0
----
65
66
77

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

query I rowsort
SELECT DISTINCT + + col0 + - col0 FROM tab1 cor0
----
0

query I rowsort
SELECT ALL cor0.col0 * + 26 AS col0 FROM tab0 AS cor0
----
2314
624
910

query I rowsort
SELECT ALL - + col2 + - col0 * + 51 AS col2 FROM tab0 AS cor0
----
-1257
-1786
-4621

query I rowsort
SELECT ALL - col0 + 99 AS col1 FROM tab0 cor0
----
10
64
75

query I rowsort
SELECT DISTINCT + + col0 * 25 AS col1 FROM tab1 AS cor0
----
1600
2000
75

onlyif mysql # use DIV operator for integer division
query I rowsort label-1466
SELECT DISTINCT cor0.col0 DIV + cor0.col0 + + cor0.col2 * col2 * ( 68 * col1 ) FROM tab1 AS cor0
----
2209321
5155489
8146945

skipif mysql # not compatible
query I rowsort label-1466
SELECT DISTINCT cor0.col0 / + cor0.col0 + + cor0.col2 * col2 * ( 68 * col1 ) FROM tab1 AS cor0
----
2209321
5155489
8146945

query I rowsort
SELECT ALL 10 AS col2 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 0fe3e45a9ecd49584c2ab442100d5176

query I rowsort
SELECT col2 + + tab2.col1 * - 68 * + ( col2 ) AS col2 FROM tab2
----
-104286
-43890
-56889

query I rowsort
SELECT DISTINCT - col1 + ( 41 ) * cor0.col0 - + col2 * + col0 AS col0 FROM tab2 AS cor0
----
1111
220
67

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

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

query I rowsort
SELECT ALL col1 + 7 - col2 AS col0 FROM tab0 cor0
----
103
16
60

query I rowsort
SELECT DISTINCT - col2 + - ( + 58 ) * - col1 AS col1 FROM tab0 AS cor0
----
4955
5196
5625

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

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

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

query I rowsort
SELECT ALL - cor0.col0 + - col1 * - ( col1 ) AS col2 FROM tab1 AS cor0
----
36
673
89

query I rowsort
SELECT + col2 * + ( col0 + col1 ) FROM tab1 AS cor0
----
1566
4218
8928

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

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

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

query I rowsort
SELECT DISTINCT 55 + - 61 FROM tab1
----
-6

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

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

query I rowsort
SELECT 44 * col0 FROM tab1
----
132
2816
3520

query I rowsort
SELECT + ( tab0.col1 ) * col0 + + col1 * col0 * col1 FROM tab0
----
179568
332710
745108

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

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

query I rowsort
SELECT ( col2 * col2 ) + - 5 AS col1 FROM tab0
----
-4
1084
6719

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

query I rowsort
SELECT + col2 * col0 FROM tab2 WHERE NOT col2 BETWEEN col1 * col1 AND col2 + + col0 * col1 / col0 - - col2 * + col2
----
189
2028
3002

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

query I rowsort
SELECT DISTINCT - col1 * - tab2.col1 * - tab2.col2 FROM tab2 WHERE NOT ( col0 ) <= ( NULL )
----

query I rowsort
SELECT ALL col0 + col1 AS col1 FROM tab0 WHERE ( col0 ) > col0
----

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

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

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

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

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

query I rowsort
SELECT ALL + col0 FROM tab1 WHERE NULL BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * col2 + col2 col0 FROM tab0
----
2871
7544
98

query I rowsort
SELECT ALL - col0 * - col1 + col1 * col0 AS col2 FROM tab0
----
16198
4128
6790

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - col2 + col0 + col1 col2 FROM tab2
----
-151
-1891
-2906

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + cor0.col2 * col2 col0 FROM tab0 AS cor0
----
1
35937
551368

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

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

query I rowsort
SELECT 72 FROM tab0, tab1 AS cor0, tab0 AS cor1, tab0 AS cor2
----
81 values hashing to e1618abfe12be6a950cc575d695639b7

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1510
SELECT DISTINCT - - col0 + + cor0.col0 DIV + ( - col2 * col1 ) + col2 DIV + 5 FROM tab0 AS cor0
----
105
30
35

skipif mysql # not compatible
query I rowsort label-1510
SELECT DISTINCT - - col0 + + cor0.col0 / + ( - col2 * col1 ) + col2 / + 5 FROM tab0 AS cor0
----
105
30
35

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

query I rowsort
SELECT DISTINCT - col0 + + col2 * + col2 FROM tab1
----
2913
3185
9136

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

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

query I rowsort
SELECT DISTINCT cor0.col1 * cor0.col1 FROM tab2, tab0 AS cor0
----
7396
8281
9409

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) >= NULL
----

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 III rowsort
SELECT * FROM tab1 WHERE col0 > ( NULL )
----

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

query I rowsort
SELECT tab1.col0 + col2 - - col2 AS col1 FROM tab1
----
111
178
272

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

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

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 BETWEEN NULL AND ( col1 )
----
64
10
57
80
13
96

query I rowsort
SELECT ALL + col1 + - col0 * col0 * col2 FROM tab0
----
-1128
-18922
-649431

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab1.col2 * col1 * + col1 - - tab1.col0 col0 FROM tab1
----
16304
36507
5764

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1526
SELECT col1 + - col2 / - col1 col1 FROM tab0
----
86
91
97

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - col2 ) * + col1 + + 63 * col1 + cor0.col1 col2 FROM tab1 AS cor0
----
1210
2080
3068

query I rowsort
SELECT + 11 + ( - col0 ) FROM tab0 AS cor0
----
-13
-24
-78

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

query I rowsort
SELECT - col2 * + 23 * col2 AS col0 FROM tab1 AS cor0
----
-211968
-67068
-74727

query I rowsort
SELECT DISTINCT ( + 15 ) FROM tab0 cor0
----
15

query I rowsort
SELECT ALL + - ( + ( - col2 ) ) * + 15 AS col1 FROM tab1 AS cor0
----
1440
810
855

query I rowsort
SELECT DISTINCT - - col0 * - col0 + - col0 * col2 AS col0 FROM tab0 cor0
----
-1260
-1368
-15219

query I rowsort
SELECT ( 99 ) AS col2 FROM tab1, tab1 cor0
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db

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

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

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

query I rowsort
SELECT ALL + col0 + 98 FROM tab1 AS cor0
----
101
162
178

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

query I rowsort
SELECT DISTINCT 61 * - 23 + col1 FROM tab2
----
-1344
-1372
-1386

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1544
SELECT DISTINCT - col1 * col2 + CAST( col1 * cor0.col1 AS SIGNED ) + - 65 AS col1 FROM tab0 cor0
----
4493
754
9247

skipif mysql # not compatible
query I rowsort label-1544
SELECT DISTINCT - col1 * col2 + CAST ( col1 * cor0.col1 AS INTEGER ) + - 65 AS col1 FROM tab0 cor0
----
4493
754
9247

query I rowsort
SELECT ALL - - 61 + col2 AS col0 FROM tab0 AS cor0
----
143
62
94

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1547
SELECT DISTINCT ( 33 ) + - col2 + - tab2.col2 DIV + 44 AS col2 FROM tab2
----
-5
6
7

skipif mysql # not compatible
query I rowsort label-1547
SELECT DISTINCT ( 33 ) + - col2 + - tab2.col2 / + 44 AS col2 FROM tab2
----
-5
6
7

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1549
SELECT ALL CAST ( NULL AS INTEGER ) + - col1 col2 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 99 col0 FROM tab2, tab1 cor0
----
99

query I rowsort
SELECT + col0 * - col2 + col1 * + col1 AS col0 FROM tab2
----
-2713
1453
772

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

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

query I rowsort
SELECT ALL - col1 * 53 AS col2 FROM tab0 cor0
----
-4558
-4823
-5141

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

query I rowsort
SELECT 13 * + col1 + - col0 AS col0 FROM tab0
----
1094
1094
1226

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

query I rowsort
SELECT ALL col2 + + 97 - ( col1 ) AS col1 FROM tab0
----
1
44
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + tab2.col1 * + 98 - col2 * ( - 90 ) col1 FROM tab2
----
5165
5475
8200

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

query I rowsort
SELECT ALL tab2.col1 - 33 AS col1 FROM tab2
----
-16
-2
26

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

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

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

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

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

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

query I rowsort
SELECT + + 94 * col2 + 98 FROM tab2 AS cor0
----
2542
2636
3670

query I rowsort
SELECT DISTINCT + - col2 - + cor0.col2 FROM tab1 AS cor0
----
-108
-114
-192

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

query I rowsort
SELECT DISTINCT 11 * 53 FROM tab0
----
583

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

query I rowsort
SELECT + tab0.col0 FROM tab2, tab1, tab0 cor0, tab0
----
81 values hashing to 2304fcc140e955eb2d1ee28ab1eea994

query I rowsort
SELECT - col2 * + 19 * - col2 - col2 AS col0 FROM tab2 cor0
----
12818
13824
27398

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1575
SELECT DISTINCT + 61 + - col2 * - CAST( col1 AS SIGNED ) FROM tab2 AS cor0
----
1595
707
898

skipif mysql # not compatible
query I rowsort label-1575
SELECT DISTINCT + 61 + - col2 * - CAST ( col1 AS INTEGER ) FROM tab2 AS cor0
----
1595
707
898

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 * + col0 + + col2 col0 FROM tab0 AS cor0
----
-1224
-543
-7839

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 85 col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 8ebc8ffafb1517ea04e3a6fc4059d88a

query I rowsort
SELECT ALL col0 + 56 AS col0 FROM tab0
----
145
80
91

query I rowsort
SELECT ALL - col2 + 61 AS col2 FROM tab0
----
-21
28
60

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

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

query I rowsort
SELECT ALL cor0.col2 + - col2 * col1 FROM tab0 AS cor0
----
-2805
-7380
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-1583
SELECT + + 80 DIV + 60 AS col2 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1583
SELECT + + 80 / + 60 AS col2 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT + 33 * - col2 FROM tab1 cor0
----
-1782
-1881
-3168

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1585
SELECT - CAST( col0 AS SIGNED ) + - col2 + 31 * - ( cor0.col0 ) FROM tab2 AS cor0
----
-251
-2522
-2566

skipif mysql # not compatible
query I rowsort label-1585
SELECT - CAST ( col0 AS INTEGER ) + - col2 + 31 * - ( cor0.col0 ) FROM tab2 AS cor0
----
-251
-2522
-2566

query I rowsort
SELECT 87 + ( - col2 ) + + 71 FROM tab1 AS cor0
----
101
104
62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1587
SELECT DISTINCT + CAST( 52 AS SIGNED ) col0 FROM tab0 AS cor0
----
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1587
SELECT DISTINCT + CAST ( 52 AS INTEGER ) col0 FROM tab0 AS cor0
----
52

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1588
SELECT + - CAST( - col2 AS SIGNED ) + - col0 * 58 FROM tab1 AS cor0
----
-120
-3655
-4544

skipif mysql # not compatible
query I rowsort label-1588
SELECT + - CAST ( - col2 AS INTEGER ) + - col0 * 58 FROM tab1 AS cor0
----
-120
-3655
-4544

query I rowsort
SELECT ALL + + 69 * col0 AS col0 FROM tab1 cor0
----
207
4416
5520

onlyif mysql # use DIV operator for integer division
query I rowsort label-1590
SELECT ALL - - col0 DIV - cor0.col1 AS col1 FROM tab1 AS cor0
----
-6
-6
0

skipif mysql # not compatible
query I rowsort label-1590
SELECT ALL - - col0 / - cor0.col1 AS col1 FROM tab1 AS cor0
----
-6
-6
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-1591
SELECT - ( col1 ) DIV col1 AS col0 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1591
SELECT - ( col1 ) / col1 AS col0 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT + ( + col1 ) * - cor0.col1 AS col1 FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT + + col2 + + col0 + - col1 AS col1 FROM tab2 AS cor0
----
100
3
45

query I rowsort
SELECT DISTINCT + ( 97 + col0 ) * + col1 AS col0 FROM tab1
----
1610
2301
2600

query I rowsort
SELECT ALL - tab1.col0 AS col1 FROM tab1, tab2 cor0
----
9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - 74 ) col0 FROM tab2
----
-74
-74
-74

onlyif mysql # use DIV operator for integer division
query I rowsort label-1597
SELECT ALL + ( col1 ) DIV tab0.col2 AS col1 FROM tab0
----
1
2
97

skipif mysql # not compatible
query I rowsort label-1597
SELECT ALL + ( col1 ) / tab0.col2 AS col1 FROM tab0
----
1
2
97

query I rowsort
SELECT DISTINCT - 70 AS col1 FROM tab1
----
-70

query I rowsort
SELECT DISTINCT + - col1 + ( - col0 ) + + cor0.col1 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT - 39 * + col0 AS col1 FROM tab1 AS cor0
----
-117
-2496
-3120

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1601
SELECT 45 * + col1 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1601
SELECT 45 * + col1 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 10 * + col1 FROM tab1 AS cor0
----
-100
-130
-260

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1603
SELECT + CAST( NULL AS SIGNED ) * - col1 + col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1603
SELECT + CAST ( NULL AS INTEGER ) * - col1 + col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-1604
SELECT + 29 DIV + cor0.col2 FROM tab0 AS cor0
----
0
0
29

skipif mysql # not compatible
query I rowsort label-1604
SELECT + 29 / + cor0.col2 FROM tab0 AS cor0
----
0
0
29

onlyif mysql # use DIV operator for integer division
query I rowsort label-1605
SELECT + col2 DIV - col0 AS col1 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-1605
SELECT + col2 / - col0 AS col1 FROM tab0 AS cor0
----
-1
0
0

query I rowsort
SELECT DISTINCT col2 * 58 + col0 * + col0 AS col0 FROM tab0 AS cor0
----
12677
1283
2490

query I rowsort
SELECT - col2 * + col2 + + col2 * col0 FROM tab2 AS cor0
----
-540
1352
1558

query I rowsort
SELECT ALL + col2 + + col0 * col0 FROM tab0 AS cor0
----
1226
609
8003

query I rowsort
SELECT DISTINCT + col0 * col0 + - col0 FROM tab1 AS cor0
----
4032
6
6320

query I rowsort
SELECT DISTINCT + col1 + + ( + col2 ) * - col1 + col2 * - col1 AS col1 FROM tab0 AS cor0
----
-14833
-5590
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col1 * 95 * col2 col1 FROM tab0
----
269610
708890
9215

query I rowsort
SELECT DISTINCT - 19 FROM tab0, tab0 AS cor0
----
-19

query I rowsort
SELECT + - col1 + 17 FROM tab1 AS cor0
----
-9
4
7

query I rowsort
SELECT ALL + + col2 * 72 - - col2 AS col0 FROM tab2 AS cor0
----
1898
1971
2774

query I rowsort
SELECT - col0 + cor0.col0 * col1 FROM tab0 AS cor0
----
2040
3360
8010

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1616
SELECT - col0 + CAST( NULL AS SIGNED ) * - col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1616
SELECT - col0 + CAST ( NULL AS INTEGER ) * - col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - 24 + - col2 FROM tab0 cor0
----
-58
-9
23

query I rowsort
SELECT col2 * ( + col1 ) FROM tab2
----
1534
646
837

query I rowsort
SELECT DISTINCT + col1 * col0 + col1 AS col0 FROM tab1
----
104
1053
650

query I rowsort
SELECT ALL - cor0.col1 + + ( cor0.col0 ) - col2 FROM tab0 AS cor0
----
-63
-84
-95

query I rowsort
SELECT DISTINCT + - col2 + + ( col2 ) * col0 AS col1 FROM tab2 AS cor0
----
162
2002
2964

query I rowsort
SELECT + col2 * ( + col2 ) AS col1 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT + col1 * + col2 * - col2 AS col2 FROM tab1
----
-119808
-32490
-75816

query I rowsort
SELECT DISTINCT 14 FROM tab1, tab2 cor0, tab0 cor1
----
14

query I rowsort
SELECT col1 - - col2 * - 41 AS col2 FROM tab0
----
-1267
-3271
56

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1626
SELECT DISTINCT - col1 + + CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1626
SELECT DISTINCT - col1 + + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query I rowsort
SELECT - col2 + - ( + col2 ) + + col0 * col0 * cor0.col0 AS col0 FROM tab2 cor0
----
289
474500
492963

query I rowsort
SELECT + - col2 + 2 * col2 * col1 AS col0 FROM tab1 AS cor0
----
1083
2400
2754

query I rowsort
SELECT col0 + - 0 + col2 AS col2 FROM tab2 cor0
----
104
117
34

query I rowsort
SELECT + 86 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to ed1a39c2752ca3723602e4a92c54bbc4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - col2 ) col0 FROM tab0
----
-1
-33
-82

query I rowsort
SELECT DISTINCT + 33 AS col0 FROM tab1, tab0 AS cor0
----
33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 66 * col0 * + col2 col2 FROM tab1
----
10692
240768
506880

query I rowsort
SELECT ALL 71 * - col2 FROM tab2
----
-1846
-1917
-2698

query I rowsort
SELECT - + 57 + - 51 FROM tab2 AS cor0
----
-108
-108
-108

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1636
SELECT col1 / + col1 - - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1636
SELECT col1 / + col1 - - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col0 + - col0 * 96 FROM tab1
----
-285
-6080
-7600

query I rowsort
SELECT - 45 AS col0 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 63e2b488a204f83ec8c063dafdfd4371

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1639
SELECT ALL - CAST( NULL AS SIGNED ) AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-1639
SELECT ALL - CAST ( NULL AS INTEGER ) AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1640
SELECT DISTINCT - col0 * col2 + - CAST( + col0 AS SIGNED ) FROM tab0 AS cor0
----
-70
-7387
-816

skipif mysql # not compatible
query I rowsort label-1640
SELECT DISTINCT - col0 * col2 + - CAST ( + col0 AS INTEGER ) FROM tab0 AS cor0
----
-70
-7387
-816

query I rowsort
SELECT - 16 * - col2 * col1 AS col0 FROM tab0 AS cor0
----
119392
1552
45408

query I rowsort
SELECT col2 * + col2 + + col1 * col2 + + col1 * - 91 AS col2 FROM tab0
----
-3899
-8729
5905

onlyif mysql # use DIV operator for integer division
query I rowsort label-1643
SELECT DISTINCT col0 * col2 + 48 * col2 + col0 DIV + col1 AS col0 FROM tab2
----
1485
3277
4830

skipif mysql # not compatible
query I rowsort label-1643
SELECT DISTINCT col0 * col2 + 48 * col2 + col0 / + col1 AS col0 FROM tab2
----
1485
3277
4830

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 - + ( - col2 ) + cor0.col2 FROM tab0 AS cor0
----
164
2
66

onlyif mysql # use DIV operator for integer division
query I rowsort label-1646
SELECT DISTINCT - - 64 + cor0.col0 DIV 57 AS col0 FROM tab2 AS cor0
----
64
65

skipif mysql # not compatible
query I rowsort label-1646
SELECT DISTINCT - - 64 + cor0.col0 / 57 AS col0 FROM tab2 AS cor0
----
64
65

query I rowsort
SELECT ALL - 16 + col0 + col1 FROM tab0 AS cor0
----
116
164
94

query I rowsort
SELECT DISTINCT + col1 - col1 * - col0 AS col1 FROM tab0 AS cor0
----
2150
3492
8190

query I rowsort
SELECT + + 40 + - col1 FROM tab2 AS cor0
----
-19
23
9

query I rowsort
SELECT ALL - 91 * + col0 AS col2 FROM tab1 AS cor0
----
-273
-5824
-7280

query I rowsort
SELECT DISTINCT + 93 + + col0 FROM tab2 AS cor0
----
100
171
172

query I rowsort
SELECT ALL - ( - col2 ) * ( - col1 ) - col2 FROM tab2 AS cor0
----
-1560
-684
-864

query I rowsort
SELECT col1 - + col0 * col0 AS col2 FROM tab1 AS cor0
----
-4086
-6387
17

query I rowsort
SELECT ALL + cor0.col2 + - col2 AS col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + 18 - col1 AS col0 FROM tab1 AS cor0
----
-8
5
8

query I rowsort
SELECT DISTINCT col0 * - col1 * - col1 FROM tab0 AS cor0
----
177504
329315
737009

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1657
SELECT ALL - CAST( NULL AS SIGNED ) / - cor0.col1 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-1657
SELECT ALL - CAST ( NULL AS INTEGER ) / - cor0.col1 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT - col1 + 94 * ( col1 ) + 96 AS col0 FROM tab1 AS cor0
----
1026
1305
2514

query I rowsort
SELECT DISTINCT - 35 - - cor1.col1 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
-22
-25
-9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1660
SELECT ALL - + col0 + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1660
SELECT ALL - + col0 + CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + tab2.col1 - col2 FROM tab2
----
-21
33
4

query I rowsort
SELECT DISTINCT + col2 + 86 AS col1 FROM tab2 AS cor0
----
112
113
124

query I rowsort
SELECT ALL - - cor0.col0 + col2 * col0 * - col0 AS col2 FROM tab1 AS cor0
----
-233408
-483
-614320

onlyif mysql # use DIV operator for integer division
query I rowsort label-1664
SELECT ALL ( + col1 ) DIV - col1 + col1 AS col2 FROM tab1 AS cor0
----
12
25
9

skipif mysql # not compatible
query I rowsort label-1664
SELECT ALL ( + col1 ) / - col1 + col1 AS col2 FROM tab1 AS cor0
----
12
25
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-1665
SELECT DISTINCT 31 DIV - col1 FROM tab1 AS cor0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-1665
SELECT DISTINCT 31 / - col1 FROM tab1 AS cor0
----
-1
-2
-3

query I rowsort
SELECT DISTINCT - ( 78 ) + + col1 * - 37 - + 26 AS col2 FROM tab0 AS cor0
----
-3286
-3471
-3693

query I rowsort
SELECT ALL - + col1 * - col1 - - col1 AS col2 FROM tab0 AS cor0
----
7482
8372
9506

query I rowsort
SELECT + + ( 17 ) AS col2 FROM tab2 AS cor0
----
17
17
17

query I rowsort
SELECT ( - col0 ) * + cor0.col2 FROM tab1 AS cor0
----
-162
-3648
-7680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1670
SELECT DISTINCT + + CAST( NULL AS SIGNED ) * col0 - + col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1670
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) * col0 - + col1 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 46 + + col0 col1 FROM tab0 AS cor0
----
-11
-22
43

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 30 col1 FROM tab2
----
30
30
30

query I rowsort
SELECT DISTINCT + tab1.col1 * tab1.col0 AS col0 FROM tab1, tab0 AS cor0
----
1040
640
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * col1 * 49 + cor0.col0 col0 FROM tab0 AS cor0
----
-139038
-365549
-4718

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1675
SELECT DISTINCT - col2 * col0 + - CAST( NULL AS SIGNED ) + 23 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1675
SELECT DISTINCT - col2 * col0 + - CAST ( NULL AS INTEGER ) + 23 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT - col2 + col1 * CAST ( 48 AS REAL ) col2 FROM tab0 AS cor0
----
4095
4286
4655

query I rowsort
SELECT DISTINCT col0 * - 37 FROM tab2
----
-259
-2886
-2923

query I rowsort
SELECT - 21 * col2 + col0 AS col2 FROM tab2
----
-468
-560
-719

query I rowsort
SELECT 52 * col2 + - col2 FROM tab2
----
1326
1377
1938

query I rowsort
SELECT - 10 * - col0 + - col0 AS col0 FROM tab0
----
216
315
801

query I rowsort
SELECT ALL - col0 + 0 * - col2 FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT DISTINCT + - col2 * 46 AS col0 FROM tab2 AS cor0
----
-1196
-1242
-1748

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1683
SELECT DISTINCT - CAST( NULL AS SIGNED ) col1 FROM tab2, tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1683
SELECT DISTINCT - CAST ( NULL AS INTEGER ) col1 FROM tab2, tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL col2 + col0 * 49 + - col2 * - col0 AS col2 FROM tab1 AS cor0
----
11696
363
6841

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1685
SELECT - col1 * CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1685
SELECT - col1 * CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 col0 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

onlyif mysql # use DIV operator for integer division
query I rowsort label-1687
SELECT DISTINCT + col1 DIV - ( + col1 ) + - col2 * col0 DIV - col1 + cor0.col1 AS col0 FROM tab2 AS cor0
----
192
36
92

skipif mysql # not compatible
query I rowsort label-1687
SELECT DISTINCT + col1 / - ( + col1 ) + - col2 * col0 / - col1 + cor0.col1 AS col0 FROM tab2 AS cor0
----
192
36
92

query I rowsort
SELECT + col0 + ( col0 ) * - col1 FROM tab1 AS cor0
----
-576
-75
-960

query I rowsort
SELECT col0 * 48 * col2 AS col1 FROM tab0 AS cor0
----
1680
350304
38016

query I rowsort
SELECT + cor2.col2 FROM tab1, tab0 AS cor0, tab1 AS cor1, tab2, tab2 AS cor2
----
243 values hashing to 3dcd863493ac16ce594c62d4ac8b0412

skipif mysql # not compatible
query I rowsort
SELECT + col2 * CAST ( col1 AS REAL ) + - col1 * ( 48 ) FROM tab1 AS cor0
----
156
624
90

query I rowsort
SELECT + col1 * ( cor0.col0 ) AS col0 FROM tab2 AS cor0
----
1343
217
4602

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1693
SELECT - col0 + CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1693
SELECT - col0 + CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - cor0.col2 + - col0 * ( + 16 ) AS col0 FROM tab1 AS cor0
----
-102
-1081
-1376

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1695
SELECT + + col1 + col0 * CAST( col2 * col0 AS SIGNED ) FROM tab1 cor0
----
233482
512
614413

skipif mysql # not compatible
query I rowsort label-1695
SELECT + + col1 + col0 * CAST ( col2 * col0 AS INTEGER ) FROM tab1 cor0
----
233482
512
614413

query I rowsort
SELECT col2 * + cor0.col2 AS col0 FROM tab1 cor0
----
2916
3249
9216

query I rowsort
SELECT col0 - + col0 * + ( col0 ) FROM tab1 AS cor0
----
-4032
-6
-6320

query I rowsort
SELECT DISTINCT - 25 * - cor0.col2 + 88 * col0 AS col0 FROM tab0 AS cor0
----
2937
3105
9882

onlyif mysql # use DIV operator for integer division
query I rowsort label-1699
SELECT - + 47 * + col0 + 13 DIV col2 FROM tab1 AS cor0
----
-141
-3008
-3760

skipif mysql # not compatible
query I rowsort label-1699
SELECT - + 47 * + col0 + 13 / col2 FROM tab1 AS cor0
----
-141
-3008
-3760

onlyif mysql # use DIV operator for integer division
query I rowsort label-1700
SELECT - cor0.col0 DIV col0 + ( + 99 ) AS col0 FROM tab0 AS cor0
----
98
98
98

skipif mysql # not compatible
query I rowsort label-1700
SELECT - cor0.col0 / col0 + ( + 99 ) AS col0 FROM tab0 AS cor0
----
98
98
98

query I rowsort
SELECT DISTINCT 84 - - col1 AS col2 FROM tab1
----
110
94
97

query I rowsort
SELECT + 99 + + col1 AS col0 FROM tab2
----
116
130
158

query I rowsort
SELECT DISTINCT - col0 + - 95 FROM tab2
----
-102
-173
-174

query I rowsort
SELECT ALL + col2 + + 68 AS col0 FROM tab0
----
101
150
69

query I rowsort
SELECT ALL + tab0.col1 + ( + col1 ) + col2 AS col2 FROM tab0
----
195
205
264

query I rowsort
SELECT ( - col1 ) + + col1 * - col2 AS col0 FROM tab0
----
-194
-2924
-7553

query I rowsort
SELECT col1 + - col2 * - col0 FROM tab0
----
132
7389
878

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 18 * col0 - + col0 col1 FROM tab2
----
119
1326
1343

query I rowsort
SELECT + tab2.col1 + + col1 * tab2.col1 FROM tab2
----
306
3540
992

query I rowsort
SELECT ALL - 29 + + col0 + 16 FROM tab2
----
-6
65
66

query I rowsort
SELECT - 51 * - col0 FROM tab2
----
357
3978
4029

query I rowsort
SELECT + col1 * + col0 * - col0 AS col2 FROM tab0 AS cor0
----
-118825
-49536
-720811

query I rowsort
SELECT DISTINCT + + col0 * cor0.col2 AS col2 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT + cor1.col1 + + 58 FROM tab2, tab0 AS cor0, tab0, tab0 AS cor1
----
81 values hashing to 37119e5bf22c25217327e72ea7fe922b

query I rowsort
SELECT DISTINCT cor0.col1 * col1 * - col2 FROM tab0 cor0
----
-244068
-679042
-9409

query I rowsort
SELECT - col1 * col2 + col1 AS col1 FROM tab1 AS cor0
----
-1235
-1378
-560

query I rowsort
SELECT ALL + col1 + - col0 * col2 AS col1 FROM tab2
----
-158
-1969
-2985

onlyif mysql # use DIV operator for integer division
query I rowsort label-1718
SELECT ALL col2 + + col1 + - 8 DIV - col1 FROM tab0
----
119
173
98

skipif mysql # not compatible
query I rowsort label-1718
SELECT ALL col2 + + col1 + - 8 / - col1 FROM tab0
----
119
173
98

query I rowsort
SELECT - col1 + 23 + 70 FROM tab0 AS cor0
----
-4
2
7

query I rowsort
SELECT DISTINCT + 22 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
22

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1721
SELECT - col2 + CAST( col0 AS SIGNED ) * + col0 + - cor0.col0 AS col2 FROM tab0 AS cor0
----
1189
519
7750

skipif mysql # not compatible
query I rowsort label-1721
SELECT - col2 + CAST ( col0 AS INTEGER ) * + col0 + - cor0.col0 AS col2 FROM tab0 AS cor0
----
1189
519
7750

query I rowsort
SELECT - + col1 * - col0 + - col0 + + col1 * 2 * - col2 AS col0 FROM tab1 AS cor0
----
-1536
-2733
-564

query I rowsort
SELECT - - col2 * + ( - col1 ) * + col2 + - col2 FROM tab2 AS cor0
----
-22626
-24586
-39910

query I rowsort
SELECT - - col2 * col1 + - col0 * col1 + cor0.col1 FROM tab0 AS cor0
----
-3201
-546
860

query I rowsort
SELECT + col0 + col1 * ( - col0 ) AS col0 FROM tab0 AS cor0
----
-2040
-3360
-8010

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( + col2 * + col1 AS REAL ) AS col1 FROM tab0
----
2838
7462
97

query I rowsort
SELECT DISTINCT + 3 * - col0 FROM tab1
----
-192
-240
-9

query I rowsort
SELECT DISTINCT - - col1 * col1 + + col1 FROM tab2 AS cor0
----
306
3540
992

query I rowsort
SELECT DISTINCT - col0 * 9 + col1 AS col2 FROM tab1 AS cor0
----
-1
-566
-707

onlyif mysql # use DIV operator for integer division
query I rowsort label-1730
SELECT ALL - - col2 + col0 DIV + cor0.col0 col1 FROM tab0 AS cor0
----
2
34
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1730
SELECT ALL - - col2 + col0 / + cor0.col0 col1 FROM tab0 AS cor0
----
2
34
83

query I rowsort
SELECT DISTINCT + + cor0.col0 + col0 + col0 * - col2 FROM tab1 AS cor0
----
-156
-3520
-7520

query I rowsort
SELECT DISTINCT + - 60 + col0 FROM tab2 cor0
----
-53
18
19

query I rowsort
SELECT ALL + 94 + col1 AS col2 FROM tab2 AS cor0
----
111
125
153

query I rowsort
SELECT ALL - 98 + 6 * + col1 FROM tab0 AS cor0
----
418
448
484

onlyif mysql # use DIV operator for integer division
query I rowsort label-1735
SELECT - 98 DIV col1 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1735
SELECT - 98 / col1 FROM tab0 AS cor0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col1 * ( 7 * col0 ) col2 FROM tab0
----
346752
5045677
831775

query I rowsort
SELECT ALL col2 * - col0 + col0 AS col1 FROM tab1 AS cor0
----
-159
-3584
-7600

query I rowsort
SELECT DISTINCT + + 2 AS col0 FROM tab2 AS cor0
----
2

query I rowsort
SELECT + col0 + col2 * col0 FROM tab0 cor0
----
70
7387
816

query I rowsort
SELECT 22 * + col0 AS col1 FROM tab0 cor0
----
1958
528
770

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1741
SELECT - CAST( NULL AS SIGNED ) / ( col1 ) - + 28 * - 62 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1741
SELECT - CAST ( NULL AS INTEGER ) / ( col1 ) - + 28 * - 62 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 34 * col1 + - col2 AS col2 FROM tab2 AS cor0
----
1027
1980
540

query I rowsort
SELECT + col2 - col2 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + col2 * 65 FROM tab2
----
1690
1755
2470

onlyif mysql # use DIV operator for integer division
query I rowsort label-1745
SELECT ALL + - 68 DIV + col0 AS col0 FROM tab0 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-1745
SELECT ALL + - 68 / + col0 AS col0 FROM tab0 AS cor0
----
-1
-2
0

query I rowsort
SELECT 64 + col2 AS col2 FROM tab0 cor0
----
146
65
97

query I rowsort
SELECT ALL + - 18 * col0 + col2 FROM tab2 AS cor0
----
-1378
-1384
-99

query I rowsort
SELECT ALL - - 51 + + col1 FROM tab0 AS cor0
----
137
142
148

query I rowsort
SELECT col1 * col2 * col0 - + ( col1 ) AS col0 FROM tab2 AS cor0
----
119593
51017
5828

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1750
SELECT ALL - CAST( ( - col2 ) AS SIGNED ) * ( + 9 ) FROM tab1 AS cor0
----
486
513
864

skipif mysql # not compatible
query I rowsort label-1750
SELECT ALL - CAST ( ( - col2 ) AS INTEGER ) * ( + 9 ) FROM tab1 AS cor0
----
486
513
864

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1751
SELECT CAST( NULL AS SIGNED ) + + col0 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1751
SELECT CAST ( NULL AS INTEGER ) + + col0 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 95 + - col1 AS col2 FROM tab1 cor0
----
-105
-108
-121

query I rowsort
SELECT + cor0.col1 FROM tab0, tab2 AS cor0, tab1, tab2 AS cor1
----
81 values hashing to a5b6acb471910ea4ad7f31cae3b818f7

query I rowsort
SELECT DISTINCT 85 * col0 + - col2 FROM tab2
----
568
6604
6677

onlyif mysql # use DIV operator for integer division
query I rowsort label-1755
SELECT + col1 DIV + 58 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1755
SELECT + col1 / + 58 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + col2 * col1 + - col2 FROM tab1 AS cor0
----
1152
1350
513

query I rowsort
SELECT ALL + - tab1.col1 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6

query I rowsort
SELECT - col0 - - tab1.col0 AS col2 FROM tab1
----
0
0
0

query I rowsort
SELECT col1 - col1 * - ( col2 ) FROM tab0
----
194
2924
7553

query I rowsort
SELECT DISTINCT + 98 + + 87 FROM tab2, tab1 cor0
----
185

onlyif mysql # use DIV operator for integer division
query I rowsort label-1761
SELECT ALL col1 DIV 26 AS col1 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-1761
SELECT ALL col1 / 26 AS col1 FROM tab1
----
0
0
1

query I rowsort
SELECT - col2 * + 40 AS col1 FROM tab0
----
-1320
-3280
-40

query I rowsort
SELECT col2 * - ( - col2 + + col2 ) FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT col2 * col0 * + ( col1 ) AS col0 FROM tab1
----
36480
4212
99840

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1765
SELECT - + col0 * CAST( col1 + cor0.col0 AS SIGNED ) * - col0 FROM tab0 cor0
----
1425780
161700
63360

skipif mysql # not compatible
query I rowsort label-1765
SELECT - + col0 * CAST ( col1 + cor0.col0 AS INTEGER ) * - col0 FROM tab0 cor0
----
1425780
161700
63360

query I rowsort
SELECT ALL 22 AS col1 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 7dda382e7c08428abac8600fd696eb3e

query I rowsort
SELECT DISTINCT 90 + 89 FROM tab1, tab0 AS cor0
----
179

query I rowsort
SELECT DISTINCT - 36 + col2 AS col1 FROM tab0 AS cor0
----
-3
-35
46

query I rowsort
SELECT ALL - - ( + 18 ) AS col2 FROM tab1 AS cor0
----
18
18
18

query I rowsort
SELECT + + 61 + - 76 - cor0.col2 FROM tab2 AS cor0
----
-41
-42
-53

query I rowsort
SELECT ALL tab0.col0 + 43 * - col2 + + 18 FROM tab0
----
-1377
-3419
10

query I rowsort
SELECT ALL 96 * col1 + - col0 + col1 FROM tab0 AS cor0
----
8318
8738
9374

query I rowsort
SELECT ALL + col0 + + 52 * col2 FROM tab0 AS cor0
----
1740
4353
87

query I rowsort
SELECT DISTINCT - col0 * - 60 FROM tab1 AS cor0
----
180
3840
4800

query I rowsort
SELECT 33 * 83 AS col0 FROM tab0 cor0
----
2739
2739
2739

onlyif mysql # use DIV operator for integer division
query I rowsort label-1776
SELECT ( col0 ) DIV + col0 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1776
SELECT ( col0 ) / + col0 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT ALL - ( - ( + col2 ) ) FROM tab0 AS cor0
----
1
33
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-1778
SELECT ALL + col0 DIV - col0 + + col1 * col2 FROM tab2
----
1533
645
836

skipif mysql # not compatible
query I rowsort label-1778
SELECT ALL + col0 / - col0 + + col1 * col2 FROM tab2
----
1533
645
836

query I rowsort
SELECT + - 4 AS col1 FROM tab0 AS cor0
----
-4
-4
-4

query I rowsort
SELECT - cor0.col2 + col1 * ( col2 * - col2 ) FROM tab2 AS cor0
----
-22626
-24586
-39910

query I rowsort
SELECT DISTINCT - ( col0 ) * col2 * 98 + col0 AS col0 FROM tab1 AS cor0
----
-15873
-357440
-752560

onlyif mysql # use DIV operator for integer division
query I rowsort label-1782
SELECT DISTINCT - 92 DIV col1 FROM tab2 AS cor0
----
-1
-2
-5

skipif mysql # not compatible
query I rowsort label-1782
SELECT DISTINCT - 92 / col1 FROM tab2 AS cor0
----
-1
-2
-5

onlyif mysql # use DIV operator for integer division
query I rowsort label-1783
SELECT ALL cor0.col2 DIV 73 FROM tab0, tab1 AS cor0
----
9 values hashing to 14fcfa6c11198893073049d94262832c

skipif mysql # not compatible
query I rowsort label-1783
SELECT ALL cor0.col2 / 73 FROM tab0, tab1 AS cor0
----
9 values hashing to 14fcfa6c11198893073049d94262832c

query I rowsort
SELECT DISTINCT - cor0.col0 + + cor0.col1 FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT ALL + + col1 * - 67 FROM tab0 AS cor0
----
-5762
-6097
-6499

query I rowsort
SELECT + + col1 * - 84 AS col2 FROM tab2 AS cor0
----
-1428
-2604
-4956

query I rowsort
SELECT ALL - + col0 * + 98 * col1 AS col0 FROM tab2 AS cor0
----
-131614
-21266
-450996

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1788
SELECT ALL + col0 * + 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-1788
SELECT ALL + col0 * + CAST ( NULL AS INTEGER ) col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - col1 + - cor0.col2 FROM tab1 AS cor0
----
-28
-47
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 * cor0.col0 * - col1 + col1 col0 FROM tab0 AS cor0
----
-177418
-329218
-736918

onlyif mysql # use DIV operator for integer division
query I rowsort label-1791
SELECT ALL - col0 DIV + 98 AS col0 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1791
SELECT ALL - col0 / + 98 AS col0 FROM tab2 cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-1792
SELECT ALL + - col1 DIV 39 AS col1 FROM tab0 cor0
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-1792
SELECT ALL + - col1 / 39 AS col1 FROM tab0 cor0
----
-2
-2
-2

query I rowsort
SELECT col2 + 52 * - 65 AS col0 FROM tab2 AS cor0
----
-3342
-3353
-3354

query I rowsort
SELECT DISTINCT - + col2 * - ( + col1 ) * - col0 FROM tab0 AS cor0
----
-3395
-664118
-68112

query I rowsort
SELECT DISTINCT 73 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
73

query I rowsort
SELECT DISTINCT col0 * + col0 + + col2 AS col0 FROM tab0 AS cor0
----
1226
609
8003

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col1 * - 78 col2 FROM tab0 AS cor0
----
-6708
-7098
-7566

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1798
SELECT col1 + - CAST( col2 * col2 AS SIGNED ) FROM tab2 AS cor0
----
-1427
-617
-698

skipif mysql # not compatible
query I rowsort label-1798
SELECT col1 + - CAST ( col2 * col2 AS INTEGER ) FROM tab2 AS cor0
----
-1427
-617
-698

query I rowsort
SELECT DISTINCT + cor0.col0 * - ( col0 ) + cor0.col0 * col2 FROM tab1 AS cor0
----
-448
1280
153

query I rowsort
SELECT DISTINCT + col2 + - col2 * ( - 75 + col1 * col2 ) FROM tab2
----
-20547
-21660
-37908

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 49 * - col1 col2 FROM tab1
----
-1274
-490
-637

query I rowsort
SELECT DISTINCT + col0 * col0 + + 55 FROM tab0
----
1280
631
7976

query I rowsort
SELECT ALL - tab2.col0 * + col0 + col2 * + col1 FROM tab2
----
-4550
-5595
788

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 - col1 col1 FROM tab0 AS cor0
----
-53
-9
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-1805
SELECT DISTINCT + - 67 + col0 DIV col1 FROM tab0 AS cor0
----
-67

skipif mysql # not compatible
query I rowsort label-1805
SELECT DISTINCT + - 67 + col0 / col1 FROM tab0 AS cor0
----
-67

query I rowsort
SELECT DISTINCT - ( - col0 ) * col1 + 44 * - col2 * col1 AS col2 FROM tab1 AS cor0
----
-24440
-53872
-61698

query I rowsort
SELECT DISTINCT + cor0.col1 + + col0 * - ( - col2 + col0 ) AS col2 FROM tab1 AS cor0
----
-438
1293
179

onlyif mysql # use DIV operator for integer division
query I rowsort label-1808
SELECT DISTINCT - col0 DIV + col2 AS col1 FROM tab1 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-1808
SELECT DISTINCT - col0 / + col2 AS col1 FROM tab1 AS cor0
----
-1
0

query I rowsort
SELECT col0 * 52 * col1 + + col2 + + 36 AS col2 FROM tab1 AS cor0
----
33373
4146
54212

query I rowsort
SELECT ALL - 51 + cor0.col0 FROM tab1 AS cor0
----
-48
13
29

query I rowsort
SELECT ALL - ( + 55 ) * col2 + - 50 AS col2 FROM tab0 AS cor0
----
-105
-1865
-4560

query I rowsort
SELECT ALL + 20 FROM tab2, tab2 AS cor0
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4

query I rowsort
SELECT DISTINCT 98 FROM tab2, tab1 AS cor0
----
98

query I rowsort
SELECT DISTINCT 13 - ( + cor0.col1 ) * + col2 AS col2 FROM tab1 AS cor0
----
-1235
-1391
-557

query I rowsort
SELECT ALL + 52 * + col0 FROM tab2 AS cor0
----
364
4056
4108

query I rowsort
SELECT ALL - 56 + + col0 AS col1 FROM tab0 AS cor0
----
-21
-32
33

query I rowsort
SELECT DISTINCT - + col1 * + col1 * cor0.col1 FROM tab1 AS cor0
----
-1000
-17576
-2197

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 - + cor0.col1 col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - cor0.col1 + col0 + + col0 FROM tab0 cor0
----
-27
-38
87

query I rowsort
SELECT + 8 * col1 AS col2 FROM tab1 AS cor0
----
104
208
80

query I rowsort
SELECT 85 + - col2 AS col0 FROM tab1 AS cor0
----
-11
28
31

query I rowsort
SELECT DISTINCT + + 77 * col0 FROM tab2 AS cor0
----
539
6006
6083

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1823
SELECT DISTINCT - + col2 + - col1 * CAST( 2 * col0 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-1337
-210
-2176

skipif mysql # not compatible
query I rowsort label-1823
SELECT DISTINCT - + col2 + - col1 * CAST ( 2 * col0 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-1337
-210
-2176

query I rowsort
SELECT ALL + + col0 + + col2 * + col2 * + cor0.col2 FROM tab1 AS cor0
----
157467
185257
884816

query I rowsort
SELECT ALL + 43 + ( + tab1.col1 ) FROM tab1
----
53
56
69

query I rowsort
SELECT + col2 + col2 * col2 + + col0 AS col2 FROM tab0
----
1146
37
6895

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1827
SELECT CAST( + col2 AS SIGNED ) * col0 + CAST( ( - col1 ) AS SIGNED ) FROM tab1
----
136
3638
7667

skipif mysql # not compatible
query I rowsort label-1827
SELECT CAST ( + col2 AS INTEGER ) * col0 + CAST ( ( - col1 ) AS INTEGER ) FROM tab1
----
136
3638
7667

onlyif mysql # use DIV operator for integer division
query I rowsort label-1828
SELECT ( + tab0.col2 ) DIV - col2 AS col0 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1828
SELECT ( + tab0.col2 ) / - col2 AS col0 FROM tab0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab2.col2 + + 2 * + col2 col2 FROM tab2
----
26
27
38

query I rowsort
SELECT + 36 AS col0 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 4d1892e880125dc90345721151acb22c

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1831
SELECT col0 * col1 + - CAST( NULL AS SIGNED ) * col0 * tab2.col2 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1831
SELECT col0 * col1 + - CAST ( NULL AS INTEGER ) * col0 * tab2.col2 AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-1832
SELECT 21 + col0 DIV col2 AS col2 FROM tab0
----
21
22
56

skipif mysql # not compatible
query I rowsort label-1832
SELECT 21 + col0 / col2 AS col2 FROM tab0
----
21
22
56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 39 * col1 col2 FROM tab0 AS cor0
----
-3354
-3549
-3783

query I rowsort
SELECT + cor0.col1 + + col1 * + col1 AS col0 FROM tab0 AS cor0
----
7482
8372
9506

query I rowsort
SELECT - col0 * col0 + - col1 FROM tab0 AS cor0
----
-1322
-662
-8012

query I rowsort
SELECT - col1 * + col2 - col0 AS col2 FROM tab2 AS cor0
----
-1612
-725
-844

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1837
SELECT + col1 + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1837
SELECT + col1 + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col1 + col1 + + ( col1 ) FROM tab0 AS cor0
----
258
273
291

query I rowsort
SELECT DISTINCT - col0 * col2 * col2 + col1 - col2 * + col2 AS col1 FROM tab0 AS cor0
----
-27139
-605069
61

query I rowsort
SELECT + - col1 + 88 FROM tab0 AS cor0
----
-3
-9
2

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1841
SELECT ALL + col2 * - CAST( NULL AS SIGNED ) - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1841
SELECT ALL + col2 * - CAST ( NULL AS INTEGER ) - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - cor0.col2 AS col0 FROM tab1, tab2, tab0 AS cor0, tab2 AS cor1
----
81 values hashing to 87af467938ef355540b8de24db1bf3b8

query I rowsort
SELECT + col1 * + tab2.col2 * + 79 FROM tab2
----
121186
51034
66123

query I rowsort
SELECT + col2 + ( col1 ) * col0 AS col1 FROM tab1
----
1136
132
697

query I rowsort
SELECT tab1.col2 FROM tab1, tab0, tab0 cor0
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT 77 FROM tab1, tab1 cor0, tab0 AS cor1
----
27 values hashing to d7b027bca5d37c67e29013904def8125

query I rowsort
SELECT + + ( col2 ) * col2 AS col1 FROM tab1 AS cor0
----
2916
3249
9216

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 86 col0 FROM tab0 AS cor0
----
86
86
86

query I rowsort
SELECT ALL - + cor0.col1 - col1 * col1 AS col1 FROM tab2 AS cor0
----
-306
-3540
-992

query I rowsort
SELECT + 24 * - col1 AS col1 FROM tab2 AS cor0
----
-1416
-408
-744

query I rowsort
SELECT DISTINCT col2 * + col0 - - col1 FROM tab1
----
188
3658
7693

query I rowsort
SELECT DISTINCT + col0 * col0 FROM tab2 WHERE ( col2 / col0 ) BETWEEN NULL AND ( col0 )
----

query I rowsort
SELECT DISTINCT - col0 + + tab0.col1 - col0 * - col2 FROM tab0 WHERE ( col1 * + col0 ) NOT IN ( col2 * - col0 )
----
7300
854
97

query I rowsort
SELECT col2 AS col1 FROM tab2 WHERE NOT ( NULL ) < NULL
----

query I rowsort
SELECT tab2.col2 / - col2 FROM tab2 WHERE ( - col1 ) IN ( + col2 )
----

query I rowsort
SELECT DISTINCT col0 + + col1 * col0 AS col2 FROM tab0
----
2088
3430
8188

query I rowsort
SELECT + col0 * + col2 FROM tab2 WHERE ( NULL ) <> col2 * + col2
----

query I rowsort
SELECT + col0 * col1 * col2 FROM tab0 WHERE NOT NULL <= NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NULL ) IN ( col1 )
----

query I rowsort
SELECT col0 * - col0 + col1 * col2 FROM tab0
----
-1128
-459
2262

onlyif mysql # use DIV operator for integer division
query I rowsort label-1861
SELECT - col0 DIV + col2 + col1 FROM tab0
----
62
86
90

skipif mysql # not compatible
query I rowsort label-1861
SELECT - col0 / + col2 + col1 FROM tab0
----
62
86
90

onlyif mysql # use DIV operator for integer division
query I rowsort label-1862
SELECT DISTINCT - col0 + - col1 DIV col0 FROM tab2
----
-11
-78
-79

skipif mysql # not compatible
query I rowsort label-1862
SELECT DISTINCT - col0 + - col1 / col0 FROM tab2
----
-11
-78
-79

query I rowsort
SELECT DISTINCT col0 * col0 * tab1.col0 AS col1 FROM tab1
----
262144
27
512000

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col1 FROM tab2 WHERE NOT NULL <> ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col1 BETWEEN NULL AND ( col2 + - col0 )
----

query I rowsort
SELECT tab1.col2 * tab1.col2 + + col1 AS col2 FROM tab1
----
2942
3259
9229

query I rowsort
SELECT col2 * col0 + - col2 + + col1 FROM tab1 WHERE NULL NOT IN ( col0 - col1 )
----

query I rowsort
SELECT ALL col2 + - col2 * tab2.col2 + - col1 AS col2 FROM tab2
----
-1423
-709
-733

query I rowsort
SELECT DISTINCT + col1 * col2 * tab0.col0 AS col2 FROM tab0
----
3395
664118
68112

onlyif mysql # use DIV operator for integer division
query I rowsort label-1870
SELECT - col0 DIV + col1 + col0 FROM tab1
----
3
58
74

skipif mysql # not compatible
query I rowsort label-1870
SELECT - col0 / + col1 + col0 FROM tab1
----
3
58
74

onlyif mysql # use DIV operator for integer division
query I rowsort label-1871
SELECT col1 DIV - col0 + col1 FROM tab0
----
83
90
95

skipif mysql # not compatible
query I rowsort label-1871
SELECT col1 / - col0 + col1 FROM tab0
----
83
90
95

query III rowsort
SELECT * FROM tab0 WHERE NULL <> ( + col0 )
----

query I rowsort
SELECT DISTINCT col2 + - tab2.col1 * tab2.col0 FROM tab2
----
-1305
-190
-4576

query III rowsort
SELECT * FROM tab2 WHERE - col0 * + col2 NOT IN ( col2 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

query I rowsort
SELECT tab0.col1 AS col0 FROM tab0 WHERE NOT + col0 NOT IN ( tab0.col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col2 NOT IN ( col0 )
----

query I rowsort
SELECT + - col1 * + col0 + col1 AS col0 FROM tab0 AS cor0
----
-1978
-3298
-8008

query I rowsort
SELECT - col2 * - col1 + col2 * col2 FROM tab0 AS cor0
----
14186
3927
98

query I rowsort
SELECT DISTINCT + col1 * col1 + col1 * - col1 + - cor0.col1 * - col1 FROM tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT ALL cor0.col1 * - col2 - - col0 AS col1 FROM tab0 cor0
----
-2814
-62
-7373

query I rowsort
SELECT - + col2 * + col2 + - cor0.col0 * + col0 FROM tab2 AS cor0
----
-6760
-7685
-778

query I rowsort
SELECT DISTINCT + cor0.col0 - col1 * + col0 FROM tab1 AS cor0
----
-576
-75
-960

query I rowsort
SELECT ALL + cor0.col0 * col0 + cor0.col1 + cor0.col1 FROM tab1 AS cor0
----
4116
61
6426

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 IN ( col1 - col0 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

query I rowsort
SELECT DISTINCT col1 * + col2 + + col1 * col1 * - col0 AS col2 FROM tab1
----
-12272
-5830
-624

query I rowsort
SELECT + - col1 + col2 + - cor0.col1 AS col2 FROM tab2 cor0
----
-35
-92
4

onlyif mysql # use DIV operator for integer division
query I rowsort label-1887
SELECT DISTINCT - col1 + + col2 DIV + col2 FROM tab0 AS cor0
----
-85
-90
-96

skipif mysql # not compatible
query I rowsort label-1887
SELECT DISTINCT - col1 + + col2 / + col2 FROM tab0 AS cor0
----
-85
-90
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 + col2 col0 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT ALL + col2 - col1 AS col1 FROM tab1 cor0
----
28
47
83

query I rowsort
SELECT DISTINCT col0 + + col1 * + col1 FROM tab0 AS cor0
----
7420
8370
9444

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1891
SELECT ALL col2 * + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1891
SELECT ALL col2 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 91 + - col2 FROM tab2
----
-117
-118
-129

onlyif mysql # use DIV operator for integer division
query I rowsort label-1893
SELECT ALL + 34 + + col1 DIV + col0 AS col0 FROM tab2
----
34
34
38

skipif mysql # not compatible
query I rowsort label-1893
SELECT ALL + 34 + + col1 / + col0 AS col0 FROM tab2
----
34
34
38

query I rowsort
SELECT ALL + - col2 + 4 * ( col1 ) * + 1 - - 45 AS col2 FROM tab1 cor0
----
1
28
95

query I rowsort
SELECT ALL + col0 + + ( - ( cor0.col1 ) * + cor0.col1 + + col0 * - col2 ) FROM tab0 AS cor0
----
-15490
-8164
-9409

query I rowsort
SELECT + - col0 + + 31 FROM tab0 AS cor0
----
-4
-58
7

query I rowsort
SELECT ALL + col2 * col2 + + 56 * cor0.col1 AS col1 FROM tab2 AS cor0
----
2396
2465
3980

query I rowsort
SELECT 11 + col0 FROM tab0
----
100
35
46

query I rowsort
SELECT DISTINCT + col2 - + col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT col2 * - col0 + + ( 36 ) * - col2 AS col1 FROM tab2
----
-1161
-2964
-4370

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1901
SELECT - col0 * + CAST( col2 AS SIGNED ) col2 FROM tab2 AS cor0
----
-189
-2028
-3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1901
SELECT - col0 * + CAST ( col2 AS INTEGER ) col2 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT DISTINCT + col1 * ( col0 ) + col2 * ( 29 ) AS col0 FROM tab0 cor0
----
10477
3021
3424

query I rowsort
SELECT + cor0.col2 FROM tab1 AS cor0 CROSS JOIN tab2, tab0 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT DISTINCT - col0 FROM tab0 WHERE NOT + col2 >= + tab0.col1 * col1 * col0
----
-24
-35
-89

onlyif mysql # use DIV operator for integer division
query I rowsort label-1905
SELECT DISTINCT - col2 DIV + col1 AS col1 FROM tab1
----
-2
-5
-7

skipif mysql # not compatible
query I rowsort label-1905
SELECT DISTINCT - col2 / + col1 AS col1 FROM tab1
----
-2
-5
-7

query I rowsort
SELECT + tab0.col0 * col2 * col1 AS col1 FROM tab0
----
3395
664118
68112

onlyif mysql # use DIV operator for integer division
query I rowsort label-1907
SELECT DISTINCT - col0 DIV + col2 FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-1907
SELECT DISTINCT - col0 / + col2 FROM tab1
----
-1
0

query I rowsort
SELECT DISTINCT - + col2 + - col0 * 0 * 6 AS col2 FROM tab0 AS cor0
----
-1
-33
-82

onlyif mysql # use DIV operator for integer division
query I rowsort label-1909
SELECT DISTINCT - col2 DIV cor0.col1 FROM tab1 AS cor0
----
-2
-5
-7

skipif mysql # not compatible
query I rowsort label-1909
SELECT DISTINCT - col2 / cor0.col1 FROM tab1 AS cor0
----
-2
-5
-7

query I rowsort
SELECT + - 61 + + cor0.col1 * - col1 AS col0 FROM tab2 AS cor0
----
-1022
-350
-3542

query I rowsort
SELECT - + col1 * col1 * col0 FROM tab2 AS cor0
----
-22831
-271518
-6727

query I rowsort
SELECT ALL + 33 * + col2 FROM tab1 cor0
----
1782
1881
3168

query I rowsort
SELECT DISTINCT + col1 * tab2.col1 AS col2 FROM tab2
----
289
3481
961

query I rowsort
SELECT DISTINCT - col1 * col2 * + col2 FROM tab0
----
-611884
-93654
-97

query I rowsort
SELECT col0 - - col1 * + col2 FROM tab0
----
132
2862
7551

query I rowsort
SELECT DISTINCT col1 + - tab2.col2 * tab2.col2 + col1 * + tab2.col0 FROM tab2
----
-481
-84
3985

query I rowsort
SELECT col0 * + col1 * col1 AS col1 FROM tab2
----
22831
271518
6727

query I rowsort
SELECT ALL col0 + col1 + - col1 * col1 AS col0 FROM tab1
----
-26
-647
-76

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL IN ( + col0 * - col0 * col1 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-1920
SELECT DISTINCT + col1 + - col0 DIV col0 + col0 FROM tab0
----
109
131
179

skipif mysql # not compatible
query I rowsort label-1920
SELECT DISTINCT + col1 + - col0 / col0 + col0 FROM tab0
----
109
131
179

onlyif mysql # use DIV operator for integer division
query I rowsort label-1921
SELECT ALL - col1 + col0 + + col0 DIV + col0 AS col0 FROM tab2
----
-23
20
63

skipif mysql # not compatible
query I rowsort label-1921
SELECT ALL - col1 + col0 + + col0 / + col0 AS col0 FROM tab2
----
-23
20
63

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col0 * col0 - col2 * + col0 >= col2 * + col2
----

query I rowsort
SELECT col2 + + tab0.col0 + col1 FROM tab0
----
133
143
262

query III rowsort
SELECT * FROM tab0 WHERE NOT + col1 - col2 >= - col1 * + col2 + col0
----

query I rowsort
SELECT DISTINCT + col2 * - col0 * + col1 AS col0 FROM tab1
----
-36480
-4212
-99840

onlyif mysql # use DIV operator for integer division
query I rowsort label-1926
SELECT - col2 * - col1 DIV tab2.col1 FROM tab2
----
26
27
38

skipif mysql # not compatible
query I rowsort label-1926
SELECT - col2 * - col1 / tab2.col1 FROM tab2
----
26
27
38

query I rowsort
SELECT - ( col2 ) * 87 AS col2 FROM tab1
----
-4698
-4959
-8352

onlyif mysql # use DIV operator for integer division
query I rowsort label-1928
SELECT ALL + tab2.col2 * col2 DIV - col0 + 44 FROM tab2
----
-60
26
36

skipif mysql # not compatible
query I rowsort label-1928
SELECT ALL + tab2.col2 * col2 / - col0 + 44 FROM tab2
----
-60
26
36

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1929
SELECT - + CAST( NULL AS SIGNED ) AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-1929
SELECT - + CAST ( NULL AS INTEGER ) AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT - - col1 * - cor0.col2 AS col2 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT DISTINCT cor0.col1 FROM tab0, tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT - 34 + col1 + col2 FROM tab2 AS cor0
----
21
24
51

query I rowsort
SELECT + 81 AS col2 FROM tab0 AS cor0
----
81
81
81

query I rowsort
SELECT ALL 58 * col1 AS col2 FROM tab0 cor0
----
4988
5278
5626

query I rowsort
SELECT ALL + col0 * + col1 * col2 FROM tab2 AS cor0
----
119652
51034
5859

query I rowsort
SELECT - 42 + 10 FROM tab2, tab1 AS cor0
----
9 values hashing to ef8f93119983b962f4c81381ebf4b1e6

query I rowsort
SELECT - 96 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to c89b545346f99713888a7934e4caa539

query I rowsort
SELECT + ( - ( - cor0.col1 ) ) * + col1 AS col2 FROM tab2 AS cor0
----
289
3481
961

onlyif mysql # use DIV operator for integer division
query I rowsort label-1939
SELECT + col2 * - col2 DIV col2 AS col2 FROM tab1 AS cor0
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-1939
SELECT + col2 * - col2 / col2 AS col2 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT DISTINCT - col1 * 42 AS col1 FROM tab2
----
-1302
-2478
-714

query I rowsort
SELECT ( + col2 ) * + tab1.col0 AS col2 FROM tab1
----
162
3648
7680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1942
SELECT DISTINCT - CAST( 62 AS SIGNED ) AS col2 FROM tab0
----
-62

skipif mysql # not compatible
query I rowsort label-1942
SELECT DISTINCT - CAST ( 62 AS INTEGER ) AS col2 FROM tab0
----
-62

query I rowsort
SELECT 51 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 02a7de94365b8cb5b5cb92c4b1d1e7c5

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1944
SELECT - CAST( 77 AS SIGNED ) + + col2 * col1 FROM tab2 cor0
----
1457
569
760

skipif mysql # not compatible
query I rowsort label-1944
SELECT - CAST ( 77 AS INTEGER ) + + col2 * col1 FROM tab2 cor0
----
1457
569
760

query I rowsort
SELECT DISTINCT + + 57 + + col1 * col0 FROM tab1 AS cor0
----
1097
135
697

query I rowsort
SELECT - ( - col1 ) * col2 + 47 FROM tab2 AS cor0
----
1581
693
884

query I rowsort
SELECT cor0.col1 AS col0 FROM tab0, tab2 AS cor0, tab0 cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

query I rowsort
SELECT ALL + + 23 * 67 FROM tab2 AS cor0
----
1541
1541
1541

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1949
SELECT ( + col0 ) * cor0.col1 * + col1 - ( col1 * - CAST( - col2 AS SIGNED ) ) AS col0 FROM tab1 AS cor0
----
12272
5830
624

skipif mysql # not compatible
query I rowsort label-1949
SELECT ( + col0 ) * cor0.col1 * + col1 - ( col1 * - CAST ( - col2 AS INTEGER ) ) AS col0 FROM tab1 AS cor0
----
12272
5830
624

query I rowsort
SELECT DISTINCT col1 * - tab2.col1 * tab2.col2 FROM tab2
----
-10982
-25947
-90506

query I rowsort
SELECT - 19 + - col1 AS col1 FROM tab0
----
-105
-110
-116

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1952
SELECT + 1 * col0 + + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1952
SELECT + 1 * col0 + + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query IIIIIIIII rowsort
SELECT ALL * FROM tab2, tab0, tab2 AS cor0 WHERE NULL > NULL
----

query I rowsort
SELECT col1 + + col0 * + ( col0 ) AS col0 FROM tab0
----
1322
662
8012

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1955
SELECT DISTINCT + ( col0 ) * CAST( 96 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
288
6144
7680

skipif mysql # not compatible
query I rowsort label-1955
SELECT DISTINCT + ( col0 ) * CAST ( 96 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
288
6144
7680

query I rowsort
SELECT DISTINCT - ( - col2 ) + - 56 * cor0.col2 * + col0 FROM tab0 AS cor0
----
-1959
-408606
-44319

query I rowsort
SELECT - + ( col1 ) + cor0.col1 AS col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1958
SELECT DISTINCT - cor0.col1 * CAST( - 27 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
270
351
702

skipif mysql # not compatible
query I rowsort label-1958
SELECT DISTINCT - cor0.col1 * CAST ( - 27 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
270
351
702

query I rowsort
SELECT ALL - + col1 * col2 * + col1 FROM tab1 AS cor0
----
-16224
-36504
-5700

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - 39 col2 FROM tab1 AS cor0
----
117
2496
3120

query I rowsort
SELECT ALL - col2 + - 90 * - col2 FROM tab1 AS cor0
----
4806
5073
8544

query I rowsort
SELECT ALL - cor0.col1 + ( + col0 ) AS col0 FROM tab1 cor0
----
-23
54
67

query I rowsort
SELECT DISTINCT col2 + - 31 AS col2 FROM tab2 AS cor0
----
-4
-5
7

query I rowsort
SELECT DISTINCT - - cor0.col0 + + 73 AS col1 FROM tab1 AS cor0
----
137
153
76

query I rowsort
SELECT ( col2 ) * - tab0.col2 * - col2 + col2 FROM tab0
----
2
35970
551450

query I rowsort
SELECT + col2 * 83 AS col0 FROM tab1 AS cor0
----
4482
4731
7968

query I rowsort
SELECT + + col0 + ( - col0 ) * - cor0.col0 FROM tab2 AS cor0
----
56
6162
6320

query I rowsort
SELECT 26 * 32 FROM tab2, tab2 AS cor0
----
9 values hashing to a7723b24f8a7661e132ceeff45e377b4

query I rowsort
SELECT - + col1 * col1 + col0 FROM tab1 AS cor0
----
-36
-673
-89

onlyif mysql # use DIV operator for integer division
query I rowsort label-1970
SELECT - col2 DIV + 31 col2 FROM tab0 AS cor0
----
-1
-2
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1970
SELECT - col2 / + 31 col2 FROM tab0 AS cor0
----
-1
-2
0

query I rowsort
SELECT ( - col0 ) * + col0 AS col2 FROM tab0 cor0
----
-1225
-576
-7921

query I rowsort
SELECT - + col1 + + col1 * col1 FROM tab0 AS cor0
----
7310
8190
9312

onlyif mysql # use DIV operator for integer division
query I rowsort label-1973
SELECT col0 DIV - 62 AS col2 FROM tab1 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-1973
SELECT col0 / - 62 AS col2 FROM tab1 AS cor0
----
-1
-1
0

query I rowsort
SELECT col2 * + 82 + - col1 FROM tab2
----
2073
2183
3099

query I rowsort
SELECT col0 * col2 + 78 AS col0 FROM tab0 AS cor0
----
113
7376
870

query I rowsort
SELECT + 57 * col1 FROM tab2 cor0
----
1767
3363
969

query I rowsort
SELECT - - col2 * - col1 + col0 * 55 AS col0 FROM tab0 AS cor0
----
-1518
-2567
1828

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1978
SELECT ALL - CAST( NULL AS SIGNED ) + ( + col2 + - 14 ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1978
SELECT ALL - CAST ( NULL AS INTEGER ) + ( + col2 + - 14 ) FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + 8 + tab1.col0 col1 FROM tab1
----
101
37
82

query I rowsort
SELECT ALL col2 * + col1 + col0 FROM tab2
----
1612
725
844

onlyif mysql # use DIV operator for integer division
query I rowsort label-1981
SELECT ALL + 26 DIV 25 + col1 AS col1 FROM tab2
----
18
32
60

skipif mysql # not compatible
query I rowsort label-1981
SELECT ALL + 26 / 25 + col1 AS col1 FROM tab2
----
18
32
60

onlyif mysql # use DIV operator for integer division
query I rowsort label-1982
SELECT + col1 + col1 DIV - col2 FROM tab0
----
0
84
90

skipif mysql # not compatible
query I rowsort label-1982
SELECT + col1 + col1 / - col2 FROM tab0
----
0
84
90

query I rowsort
SELECT col0 * tab2.col0 + col0 AS col2 FROM tab2
----
56
6162
6320

query I rowsort
SELECT ALL - + 97 + + col1 FROM tab0 cor0
----
-11
-6
0

query I rowsort
SELECT + col1 + col0 * 65 FROM tab2 cor0
----
486
5129
5152

query I rowsort
SELECT ALL 88 * col1 AS col0 FROM tab1 AS cor0
----
1144
2288
880

query I rowsort
SELECT DISTINCT 99 + - cor0.col2 FROM tab0 AS cor0
----
17
66
98

query I rowsort
SELECT ALL ( + 69 ) + col0 + col1 FROM tab0
----
179
201
249

query I rowsort
SELECT ALL 96 + - col2 AS col2 FROM tab1
----
0
39
42

query I rowsort
SELECT ALL ( - col0 ) * col2 + - col0 FROM tab1
----
-165
-3712
-7760

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + tab0.col0 + col2 col0 FROM tab0
----
133
143
262

onlyif mysql # use DIV operator for integer division
query I rowsort label-1992
SELECT ALL + 88 + tab1.col0 DIV - tab1.col2 AS col1 FROM tab1
----
87
88
88

skipif mysql # not compatible
query I rowsort label-1992
SELECT ALL + 88 + tab1.col0 / - tab1.col2 AS col1 FROM tab1
----
87
88
88

onlyif mysql # use DIV operator for integer division
query I rowsort label-1993
SELECT ALL col1 DIV col1 AS col1 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1993
SELECT ALL col1 / col1 AS col1 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT - 4 * col0 * col0 FROM tab2 cor0
----
-196
-24336
-24964

query I rowsort
SELECT DISTINCT + - cor0.col0 * - col2 AS col2 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT + col1 * col2 + - col0 * col2 - 34 FROM tab1
----
-3112
-6466
1208

query I rowsort
SELECT + - col2 + ( - col0 ) AS col0 FROM tab0 cor0
----
-171
-36
-57

query I rowsort
SELECT ALL + cor0.col2 * + 26 FROM tab1 cor0
----
1404
1482
2496

query I rowsort
SELECT DISTINCT - + ( col1 ) * - col0 AS col0 FROM tab2 AS cor0
----
1343
217
4602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 72 col0 FROM tab2 AS cor0
----
-72
-72
-72

query I rowsort
SELECT DISTINCT + ( - col0 ) + col1 FROM tab0 AS cor0
----
2
62

query I rowsort
SELECT DISTINCT + 41 * ( col2 ) + col1 FROM tab2 AS cor0
----
1125
1138
1575

query I rowsort
SELECT + 82 * - 86 + cor0.col1 * - cor0.col1 AS col2 FROM tab0 AS cor0
----
-14448
-15333
-16461

query I rowsort
SELECT ALL ( + 59 ) * col0 + ( - 64 ) FROM tab2 cor0
----
349
4538
4597

query I rowsort
SELECT DISTINCT + col2 * + 9 FROM tab0 AS cor0
----
297
738
9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2006
SELECT - CAST( + 28 AS SIGNED ) * - col2 + + col0 AS col1 FROM tab2 AS cor0
----
1143
763
806

skipif mysql # not compatible
query I rowsort label-2006
SELECT - CAST ( + 28 AS INTEGER ) * - col2 + + col0 AS col1 FROM tab2 AS cor0
----
1143
763
806

query I rowsort
SELECT + col1 * - 19 + col1 FROM tab2 AS cor0
----
-1062
-306
-558

query I rowsort
SELECT DISTINCT + ( cor0.col1 ) * - col1 FROM tab1 AS cor0
----
-100
-169
-676

onlyif mysql # use DIV operator for integer division
query I rowsort label-2009
SELECT ALL + ( ( col0 ) ) DIV - ( + ( col0 ) ) + - 72 * ( col1 ) FROM tab2 AS cor0
----
-1225
-2233
-4249

skipif mysql # not compatible
query I rowsort label-2009
SELECT ALL + ( ( col0 ) ) / - ( + ( col0 ) ) + - 72 * ( col1 ) FROM tab2 AS cor0
----
-1225
-2233
-4249

query I rowsort
SELECT - + col0 * ( col2 ) * col2 FROM tab0 AS cor0
----
-26136
-35
-598436

query I rowsort
SELECT ALL + 72 * + 39 - + col2 FROM tab2 AS cor0
----
2770
2781
2782

query I rowsort
SELECT + + col0 - + col0 AS col0 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT ALL + ( - col1 ) * - col1 * col0 + col0 AS col1 FROM tab0 cor0
----
177528
329350
737098

query I rowsort
SELECT + cor0.col2 * - col2 + col1 AS col2 FROM tab0 AS cor0
----
-1003
-6633
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-2015
SELECT DISTINCT - + col0 DIV col1 + - col1 AS col0 FROM tab2 AS cor0
----
-21
-31
-60

skipif mysql # not compatible
query I rowsort label-2015
SELECT DISTINCT - + col0 / col1 + - col1 AS col0 FROM tab2 AS cor0
----
-21
-31
-60

query I rowsort
SELECT ALL 71 * + col2 AS col2 FROM tab0 AS cor0
----
2343
5822
71

query I rowsort
SELECT ( + cor0.col0 ) + col0 * col2 FROM tab0 AS cor0
----
70
7387
816

onlyif mysql # use DIV operator for integer division
query I rowsort label-2018
SELECT col0 DIV + col2 + cor0.col0 DIV col1 FROM tab0 cor0
----
0
1
35

skipif mysql # not compatible
query I rowsort label-2018
SELECT col0 / + col2 + cor0.col0 / col1 FROM tab0 cor0
----
0
1
35

query I rowsort
SELECT ALL ( col2 ) + col1 + cor0.col0 FROM tab0 AS cor0
----
133
143
262

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0 AS cor0, tab2 AS cor1, tab0, tab0 cor2
----
3645 values hashing to 38896d3a4bd953cc78f93d73ae064cbd

query I rowsort
SELECT - 3 + + col0 FROM tab2
----
4
75
76

query I rowsort
SELECT 87 + + col1 * col2 AS col0 FROM tab0
----
184
2925
7549

query I rowsort
SELECT DISTINCT col2 * col0 + - col1 - col2 FROM tab1 AS cor0
----
3581
7571
82

query I rowsort
SELECT ALL col0 * ( col1 ) + + cor0.col0 AS col1 FROM tab1 AS cor0
----
1120
704
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-2025
SELECT ALL - - col2 * ( + col2 * col0 ) + ( + 91 + col0 ) * cor0.col2 DIV col1 AS col0 FROM tab2 AS cor0
----
114456
5188
52802

skipif mysql # not compatible
query I rowsort label-2025
SELECT ALL - - col2 * ( + col2 * col0 ) + ( + 91 + col0 ) * cor0.col2 / col1 AS col0 FROM tab2 AS cor0
----
114456
5188
52802

query I rowsort
SELECT - col2 + 68 - - col1 FROM tab2 AS cor0
----
101
47
72

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2027
SELECT ALL col1 - + CAST( - 68 + col0 AS SIGNED ) AS col2 FROM tab1
----
1
14
91

skipif mysql # not compatible
query I rowsort label-2027
SELECT ALL col1 - + CAST ( - 68 + col0 AS INTEGER ) AS col2 FROM tab1
----
1
14
91

query I rowsort
SELECT - col1 * - 39 FROM tab0
----
3354
3549
3783

query I rowsort
SELECT ALL + col2 * col2 + + 39 AS col2 FROM tab1
----
2955
3288
9255

query I rowsort
SELECT - col2 - 20 FROM tab1
----
-116
-74
-77

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2031
SELECT col1 * - CAST( NULL AS SIGNED ) + ( + col1 ) - col0 * tab2.col2 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2031
SELECT col1 * - CAST ( NULL AS INTEGER ) + ( + col1 ) - col0 * tab2.col2 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col0 + - col2 col2 FROM tab1
----
-16
-51
7

query I rowsort
SELECT DISTINCT - col2 + col0 * - col1 FROM tab1 AS cor0
----
-1136
-132
-697

query I rowsort
SELECT ALL - col0 + + 46 AS col1 FROM tab2
----
-32
-33
39

query I rowsort
SELECT ALL - 85 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 8ebc8ffafb1517ea04e3a6fc4059d88a

query I rowsort
SELECT ALL + col2 + - ( 8 ) * - tab0.col1 AS col1 FROM tab0
----
721
777
810

query I rowsort
SELECT ALL tab0.col0 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 83 * - col0 col0 FROM tab0 AS cor0
----
-1992
-2905
-7387

query I rowsort
SELECT ALL + cor0.col2 - - cor0.col1 AS col0 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT 61 AS col2 FROM tab0 cor0
----
61
61
61

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2041
SELECT ALL + + col1 * + col1 + - CAST( - 38 AS SIGNED ) * - col0 AS col2 FROM tab1 AS cor0
----
-2332
-2871
562

skipif mysql # not compatible
query I rowsort label-2041
SELECT ALL + + col1 * + col1 + - CAST ( - 38 AS INTEGER ) * - col0 AS col2 FROM tab1 AS cor0
----
-2332
-2871
562

query I rowsort
SELECT DISTINCT 85 - + col2 * + 52 * + cor0.col1 AS col1 FROM tab0 AS cor0
----
-147491
-387939
-4959

query I rowsort
SELECT ALL cor0.col1 * 30 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 014c83c26abd20da9de5ac8894c81835

query I rowsort
SELECT DISTINCT - ( + 54 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-54

query I rowsort
SELECT + + col2 + + 99 FROM tab0 AS cor0
----
100
132
181

query I rowsort
SELECT ALL + 74 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31

query I rowsort
SELECT + - 20 * - col2 + col2 FROM tab2 AS cor0
----
546
567
798

query I rowsort
SELECT col1 + + col2 * + col1 AS col0 FROM tab0 AS cor0
----
194
2924
7553

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab1, tab2 AS cor1, tab2, tab0 AS cor2
----
3645 values hashing to 76de18c5bf2cf2620e1f411d7bde86e7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab2.col2 * col0 col0 FROM tab2
----
-189
-2028
-3002

query I rowsort
SELECT ALL - - cor0.col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775

query I rowsort
SELECT 21 * tab2.col0 * + col2 FROM tab2
----
3969
42588
63042

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 23 + col0 col1 FROM tab0 AS cor0
----
112
47
58

query I rowsort
SELECT DISTINCT - 90 + + 57 + - cor0.col2 FROM tab2 AS cor0
----
-59
-60
-71

query I rowsort
SELECT - cor0.col1 * ( - col2 ) FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT DISTINCT 52 + col0 FROM tab0 cor0
----
141
76
87

query I rowsort
SELECT ALL + 19 + - 7 * + col2 AS col0 FROM tab1 AS cor0
----
-359
-380
-653

query I rowsort
SELECT DISTINCT - col1 + col2 * - ( col0 ) FROM tab0 cor0
----
-132
-7389
-878

query I rowsort
SELECT - 21 * col2 * - cor0.col2 AS col2 FROM tab2 AS cor0
----
14196
15309
30324

query I rowsort
SELECT - ( - col2 ) * - col0 AS col0 FROM tab2
----
-189
-2028
-3002

query I rowsort
SELECT + tab2.col0 * ( - col0 ) FROM tab2
----
-49
-6084
-6241

query I rowsort
SELECT - + 1 AS col1 FROM tab0, tab1, tab0 cor0
----
27 values hashing to 84da757b1b7b0069ce25607f39bc08d9

query I rowsort
SELECT DISTINCT + ( - 72 ) FROM tab1, tab0 AS cor0, tab0 cor1
----
-72

query I rowsort
SELECT - 64 * + col2 FROM tab1 AS cor0
----
-3456
-3648
-6144

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col1 - 73 * + cor0.col0 col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 439e5adff1899a2272968ca010086e5f

query I rowsort
SELECT + - cor0.col0 * col0 + ( ( - col2 ) ) FROM tab2 AS cor0
----
-6110
-6279
-76

query I rowsort
SELECT + 33 * tab2.col0 - tab2.col1 FROM tab2, tab2 AS cor0
----
9 values hashing to b0a03bd5582631c43e8f9b9128779ef7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * tab1.col2 * + col1 col0 FROM tab1
----
16224
36504
5700

query I rowsort
SELECT ALL + 13 FROM tab2, tab1 AS cor0
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb

query I rowsort
SELECT col0 - + 11 FROM tab1 AS cor0
----
-8
53
69

query I rowsort
SELECT DISTINCT + col0 * 73 AS col2 FROM tab2 AS cor0
----
511
5694
5767

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( - cor0.col1 ) * col0 - col1 * col2 col0 FROM tab0 cor0
----
-15561
-3492
-4902

query I rowsort
SELECT ( + cor0.col2 ) * col0 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT - + col1 + 24 * col2 + + ( 3 ) AS col0 FROM tab1 cor0
----
1273
1361
2294

query I rowsort
SELECT - - col0 * cor0.col2 AS col1 FROM tab1 cor0
----
162
3648
7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-2076
SELECT ALL + col0 DIV col0 + col1 AS col2 FROM tab1
----
11
14
27

skipif mysql # not compatible
query I rowsort label-2076
SELECT ALL + col0 / col0 + col1 AS col2 FROM tab1
----
11
14
27

query I rowsort
SELECT ALL - col0 + tab1.col0 * + col2 + + col1 FROM tab1
----
185
3594
7613

onlyif mysql # use DIV operator for integer division
query I rowsort label-2078
SELECT ALL tab1.col0 DIV - 35 AS col2 FROM tab1
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-2078
SELECT ALL tab1.col0 / - 35 AS col2 FROM tab1
----
-1
-2
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2079
SELECT + CAST( NULL AS SIGNED ) / - cor0.col1 + + cor0.col0 + + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2079
SELECT + CAST ( NULL AS INTEGER ) / - cor0.col1 + + cor0.col0 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 * ( - col1 ) AS col1 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT ALL - - col0 * + 75 AS col0 FROM tab1 AS cor0
----
225
4800
6000

query I rowsort
SELECT DISTINCT + col0 * - 31 AS col2 FROM tab2 cor0
----
-217
-2418
-2449

onlyif mysql # use DIV operator for integer division
query I rowsort label-2083
SELECT ALL - col0 DIV ( col0 ) AS col1 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2083
SELECT ALL - col0 / ( col0 ) AS col1 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ALL - col2 * 40 AS col0 FROM tab0 AS cor0
----
-1320
-3280
-40

onlyif mysql # use DIV operator for integer division
query I rowsort label-2085
SELECT col2 DIV ( cor0.col0 ) + col2 * 41 FROM tab1 AS cor0
----
2232
2337
3937

skipif mysql # not compatible
query I rowsort label-2085
SELECT col2 / ( cor0.col0 ) + col2 * 41 FROM tab1 AS cor0
----
2232
2337
3937

query I rowsort
SELECT DISTINCT col0 + + 43 * cor0.col2 * - col0 FROM tab0 AS cor0
----
-1470
-313725
-34032

query I rowsort
SELECT + + cor0.col0 + - col0 * cor0.col0 AS col0 FROM tab0 AS cor0
----
-1190
-552
-7832

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2088
SELECT ALL col1 + - CAST( NULL AS DECIMAL ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2088
SELECT ALL col1 + - CAST ( NULL AS REAL ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL ( + col2 ) + cor0.col0 AS col1 FROM tab0 AS cor0
----
171
36
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-2090
SELECT DISTINCT + col0 - + col0 DIV col2 FROM tab1 AS cor0
----
3
63
80

skipif mysql # not compatible
query I rowsort label-2090
SELECT DISTINCT + col0 - + col0 / col2 FROM tab1 AS cor0
----
3
63
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-2091
SELECT col0 DIV 3 + - col1 AS col2 FROM tab1
----
-25
11
13

skipif mysql # not compatible
query I rowsort label-2091
SELECT col0 / 3 + - col1 AS col2 FROM tab1
----
-25
11
13

query I rowsort
SELECT ALL col1 + col2 * + 95 * col1 AS col1 FROM tab0
----
269696
708981
9312

query I rowsort
SELECT ALL + col2 + 99 FROM tab0
----
100
132
181

query I rowsort
SELECT DISTINCT + col1 + 82 AS col2 FROM tab1
----
108
92
95

query I rowsort
SELECT ALL tab1.col1 + ( - col2 ) FROM tab1
----
-28
-47
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + + col2 * 18 col2 FROM tab0
----
1565
53
618

query I rowsort
SELECT + 13 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb

query I rowsort
SELECT - cor0.col1 - + col2 * col2 AS col0 FROM tab0 AS cor0
----
-1175
-6815
-98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2099
SELECT + ( + col2 ) + CAST( NULL AS SIGNED ) * - cor0.col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2099
SELECT + ( + col2 ) + CAST ( NULL AS INTEGER ) * - cor0.col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 92 + 11 FROM tab0
----
103
103
103

query I rowsort
SELECT col1 * + col1 + - tab2.col0 FROM tab2
----
210
3403
954

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 37 col1 FROM tab1
----
-37

query I rowsort
SELECT + + 25 AS col1 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to 2c77240b60ac01c717a5ed5d0165f450

onlyif mysql # use DIV operator for integer division
query I rowsort label-2104
SELECT - ( col0 ) DIV col1 AS col2 FROM tab1
----
-6
-6
0

skipif mysql # not compatible
query I rowsort label-2104
SELECT - ( col0 ) / col1 AS col2 FROM tab1
----
-6
-6
0

query I rowsort
SELECT ALL ( 41 + col2 ) * + col1 FROM tab0
----
11193
4074
6364

query I rowsort
SELECT DISTINCT - col0 * - col1 + col0 AS col1 FROM tab0
----
2088
3430
8188

query I rowsort
SELECT - col1 * col1 + + 25 * + col2 AS col1 FROM tab1 AS cor0
----
1325
2231
674

query I rowsort
SELECT DISTINCT 0 + cor0.col2 FROM tab1 AS cor0
----
54
57
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 18 col0 FROM tab0 AS cor0
----
18
18
18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * + col0 col0 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT DISTINCT 19 AS col0 FROM tab0 AS cor0
----
19

query I rowsort
SELECT 94 * col0 FROM tab2 AS cor0
----
658
7332
7426

query I rowsort
SELECT + - 42 * col0 + - col2 AS col0 FROM tab1 AS cor0
----
-180
-2745
-3456

query I rowsort
SELECT + 5 + + col1 AS col2 FROM tab0 AS cor0
----
102
91
96

query I rowsort
SELECT DISTINCT col1 * + col1 + col2 * - tab0.col2 + - col1 * - tab0.col0 FROM tab0
----
12803
8371
9656

onlyif mysql # use DIV operator for integer division
query I rowsort label-2116
SELECT + tab2.col1 DIV col1 col0 FROM tab2
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2116
SELECT + tab2.col1 / col1 col0 FROM tab2
----
1
1
1

query I rowsort
SELECT DISTINCT + 63 + col1 FROM tab1
----
73
76
89

query I rowsort
SELECT DISTINCT + cor0.col1 + tab0.col2 * + tab0.col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 11ef8a118176c20a91c6e2ffef8d2438

query I rowsort
SELECT - col0 + col2 * ( col0 + - col0 * 95 ) FROM tab2
----
-17773
-190710
-282267

onlyif mysql # use DIV operator for integer division
query I rowsort label-2120
SELECT - - col0 DIV col2 FROM tab0 AS cor0
----
0
1
35

skipif mysql # not compatible
query I rowsort label-2120
SELECT - - col0 / col2 FROM tab0 AS cor0
----
0
1
35

query I rowsort
SELECT ( col0 * col0 ) - col2 * + col2 AS col0 FROM tab1
----
-2816
-2907
847

query I rowsort
SELECT DISTINCT col0 * col0 - - ( col2 ) * tab0.col0 AS col2 FROM tab0
----
1260
1368
15219

query I rowsort
SELECT + 49 + + tab2.col0 FROM tab2
----
127
128
56

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2124
SELECT + 83 + col0 + CAST( NULL AS DECIMAL ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2124
SELECT + 83 + col0 + CAST ( NULL AS REAL ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-2125
SELECT - col2 DIV + ( - col1 ) + - col0 FROM tab2 AS cor0
----
-7
-77
-78

skipif mysql # not compatible
query I rowsort label-2125
SELECT - col2 / + ( - col1 ) + - col0 FROM tab2 AS cor0
----
-7
-77
-78

query I rowsort
SELECT ALL - col1 * - 80 * - cor0.col1 AS col2 FROM tab0 AS cor0
----
-591680
-662480
-752720

query I rowsort
SELECT + - col1 * col1 + col2 + - col1 AS col1 FROM tab0 AS cor0
----
-7449
-8290
-9505

query I rowsort
SELECT ALL - + cor0.col0 * col0 - - col2 AS col2 FROM tab0 cor0
----
-1224
-543
-7839

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2129
SELECT ALL - col0 * + CAST( NULL AS SIGNED ) + + 36 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2129
SELECT ALL - col0 * + CAST ( NULL AS INTEGER ) + + 36 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 * + 64 FROM tab0 AS cor0
----
-1536
-2240
-5696

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2131
SELECT DISTINCT + cor0.col2 * CAST( NULL AS SIGNED ) - + 39 AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2131
SELECT DISTINCT + cor0.col2 * CAST ( NULL AS INTEGER ) - + 39 AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + col1 - 6 * col1 FROM tab0 AS cor0
----
-430
-455
-485

query I rowsort
SELECT - col0 + ( - cor0.col2 ) AS col1 FROM tab2 AS cor0
----
-104
-117
-34

query I rowsort
SELECT + cor0.col2 * - 19 + col2 AS col0 FROM tab1 AS cor0
----
-1026
-1728
-972

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - ( + col1 ) col2 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT + + col0 + - 82 FROM tab2 AS cor0
----
-3
-4
-75

query I rowsort
SELECT col1 + - 79 FROM tab2 AS cor0
----
-20
-48
-62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2138
SELECT col1 + CAST( NULL AS SIGNED ) * ( + col1 * col2 + + col1 * col0 ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2138
SELECT col1 + CAST ( NULL AS INTEGER ) * ( + col1 * col2 + + col1 * col0 ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2139
SELECT col1 - - CAST( - col2 * - col0 AS SIGNED ) FROM tab2 AS cor0
----
2087
220
3019

skipif mysql # not compatible
query I rowsort label-2139
SELECT col1 - - CAST ( - col2 * - col0 AS INTEGER ) FROM tab2 AS cor0
----
2087
220
3019

query I rowsort
SELECT - cor0.col0 + - cor0.col0 * + col1 FROM tab0 AS cor0
----
-2088
-3430
-8188

query I rowsort
SELECT DISTINCT - + 43 FROM tab1 cor0
----
-43

query I rowsort
SELECT ALL + 71 * - col2 + col1 * - ( cor0.col1 ) FROM tab1 AS cor0
----
-4147
-4510
-6985

query I rowsort
SELECT DISTINCT - col0 * cor0.col0 AS col0 FROM tab1 AS cor0
----
-4096
-6400
-9

query I rowsort
SELECT ALL - + 11 + - ( col1 ) + 83 AS col1 FROM tab0 AS cor0
----
-14
-19
-25

query I rowsort
SELECT 63 + + col2 FROM tab1 AS cor0
----
117
120
159

query I rowsort
SELECT ALL - 54 + - 29 FROM tab2 AS cor0
----
-83
-83
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 83 * col1 col1 FROM tab0 cor0
----
7138
7553
8051

query I rowsort
SELECT DISTINCT - + 35 AS col0 FROM tab1 AS cor0
----
-35

query I rowsort
SELECT ALL + 57 + - ( + col0 ) AS col2 FROM tab1 AS cor0
----
-23
-7
54

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2150
SELECT ALL - CAST( NULL AS SIGNED ) * + ( + col0 + 80 ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2150
SELECT ALL - CAST ( NULL AS INTEGER ) * + ( + col0 + 80 ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col1 * col1 * + col1 FROM tab2 AS cor0
----
205379
29791
4913

query I rowsort
SELECT ALL - - 46 * 9 AS col1 FROM tab1 AS cor0
----
414
414
414

onlyif mysql # use DIV operator for integer division
query I rowsort label-2153
SELECT DISTINCT - - col2 * col0 DIV + col1 FROM tab1 AS cor0
----
364
590
6

skipif mysql # not compatible
query I rowsort label-2153
SELECT DISTINCT - - col2 * col0 / + col1 FROM tab1 AS cor0
----
364
590
6

query I rowsort
SELECT DISTINCT + 54 + - col0 * + cor0.col2 FROM tab1 cor0
----
-108
-3594
-7626

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2155
SELECT DISTINCT + + col0 * - col0 + CAST( - col2 + - col0 AS SIGNED ) * + ( - col0 ) AS col2 FROM tab2 AS cor0
----
189
2028
3002

skipif mysql # not compatible
query I rowsort label-2155
SELECT DISTINCT + + col0 * - col0 + CAST ( - col2 + - col0 AS INTEGER ) * + ( - col0 ) AS col2 FROM tab2 AS cor0
----
189
2028
3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 51 + - ( + col2 ) col0 FROM tab1
----
-3
-45
-6

query I rowsort
SELECT col0 + + 77 FROM tab1 AS cor0
----
141
157
80

query I rowsort
SELECT - col1 + ( + col1 ) AS col0 FROM tab1 cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 * col1 col0 FROM tab1 AS cor0
----
-1040
-640
-78

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2160
SELECT DISTINCT - - col1 + + CAST( NULL AS SIGNED ) col2 FROM tab1 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2160
SELECT DISTINCT - - col1 + + CAST ( NULL AS INTEGER ) col2 FROM tab1 cor0
----
NULL

query I rowsort
SELECT - - col0 * + cor0.col1 + col2 FROM tab0 AS cor0
----
2097
3396
8181

query I rowsort
SELECT ALL + - col1 * + 74 AS col2 FROM tab1 AS cor0
----
-1924
-740
-962

query I rowsort
SELECT + col1 * col2 + col2 * col1 FROM tab1 AS cor0
----
1140
2496
2808

query I rowsort
SELECT ALL - + col1 + - col2 * col2 AS col1 FROM tab1 AS cor0
----
-2942
-3259
-9229

query I rowsort
SELECT - 54 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 4ecdb0f1b85f0d4fdc3a826efd9f2342

query I rowsort
SELECT - - 88 AS col0 FROM tab2 AS cor0
----
88
88
88

query I rowsort
SELECT + 0 FROM tab1, tab2 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT col2 + - ( + 46 ) AS col0 FROM tab2
----
-19
-20
-8

query I rowsort
SELECT ALL col0 + - col0 * + col2 AS col0 FROM tab0 AS cor0
----
-7209
-768
0

query I rowsort
SELECT DISTINCT - col0 + cor0.col2 * - 81 AS col1 FROM tab0 AS cor0
----
-116
-2697
-6731

query I rowsort
SELECT DISTINCT + col2 * col2 - 71 * - col0 FROM tab2 AS cor0
----
1226
6214
7053

onlyif mysql # use DIV operator for integer division
query I rowsort label-2172
SELECT DISTINCT cor0.col2 DIV col1 AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2172
SELECT DISTINCT cor0.col2 / col1 AS col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT + ( - col2 ) * cor0.col2 FROM tab1 cor0
----
-2916
-3249
-9216

query I rowsort
SELECT - 76 * + col2 FROM tab0 AS cor0
----
-2508
-6232
-76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 24 + - col1 col2 FROM tab0
----
-62
-67
-73

query I rowsort
SELECT - cor0.col1 * + col0 + col1 FROM tab0 AS cor0
----
-1978
-3298
-8008

query I rowsort
SELECT col0 + - 30 AS col2 FROM tab1 AS cor0
----
-27
34
50

query I rowsort
SELECT + - col2 * col1 + col0 FROM tab0 AS cor0
----
-2814
-62
-7373

query I rowsort
SELECT ALL col2 * + col2 * - col1 FROM tab0
----
-611884
-93654
-97

query I rowsort
SELECT ALL - col1 + + col1 * col2 * col0 FROM tab1
----
36470
4186
99827

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( tab2.col2 ) + 13 * 25 col2 FROM tab2
----
351
352
363

query I rowsort
SELECT ALL + - col0 * + col2 AS col2 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT ALL - + col1 + + col1 AS col2 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT + col2 * col2 * + col2 AS col1 FROM tab1 AS cor0
----
157464
185193
884736

query I rowsort
SELECT - col2 * + col0 * + tab2.col0 FROM tab2
----
-1323
-158184
-237158

query I rowsort
SELECT col2 FROM tab1 WHERE + col0 + col2 NOT IN ( col0 ) AND NOT col1 * col2 > ( NULL )
----

query I rowsort
SELECT - col2 + + col0 * col0 FROM tab0 AS cor0
----
1224
543
7839

query I rowsort
SELECT - col0 * - tab1.col0 + col1 + tab1.col0 AS col0 FROM tab1
----
38
4170
6493

query I rowsort
SELECT - col0 * col0 + col0 AS col0 FROM tab1
----
-4032
-6
-6320

query I rowsort
SELECT DISTINCT tab2.col2 * - tab2.col1 * - col1 + + col1 AS col0 FROM tab2
----
10999
25978
90565

query I rowsort
SELECT DISTINCT + 38 * - col2 FROM tab1
----
-2052
-2166
-3648

query I rowsort
SELECT + ( col1 + - col1 ) FROM tab2
----
0
0
0

query I rowsort
SELECT ( ( tab2.col2 ) ) FROM tab2
----
26
27
38

query I rowsort
SELECT + 15 + - 15 * + col2 FROM tab0
----
-1215
-480
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * col0 * cor0.col1 + cor0.col2 * - cor0.col1 * cor0.col1 + cor0.col1 * - cor0.col0 * - col2 col2 FROM tab1 AS cor0
----
-28080
183456
67260

query I rowsort
SELECT ALL 74 FROM tab1, tab0 cor0
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31

query I rowsort
SELECT + 27 + - col1 * col0 FROM tab2 AS cor0
----
-1316
-190
-4575

onlyif mysql # use DIV operator for integer division
query I rowsort label-2198
SELECT - 95 DIV tab0.col1 FROM tab0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-2198
SELECT - 95 / tab0.col1 FROM tab0
----
-1
-1
0

query I rowsort
SELECT - 22 * cor0.col1 FROM tab2 AS cor0
----
-1298
-374
-682

query I rowsort
SELECT + + col1 * col2 * - col2 FROM tab0 AS cor0
----
-611884
-93654
-97

query I rowsort
SELECT DISTINCT - cor0.col0 * cor0.col0 AS col1 FROM tab1, tab1 AS cor0
----
-4096
-6400
-9

query I rowsort
SELECT + 37 - + 75 FROM tab1 AS cor0
----
-38
-38
-38

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2203
SELECT DISTINCT + CAST( 75 AS SIGNED ) * col0 + 18 AS col1 FROM tab0
----
1818
2643
6693

skipif mysql # not compatible
query I rowsort label-2203
SELECT DISTINCT + CAST ( 75 AS INTEGER ) * col0 + 18 AS col1 FROM tab0
----
1818
2643
6693

query I rowsort
SELECT ALL 53 * 80 + col2 AS col1 FROM tab1
----
4294
4297
4336

query I rowsort
SELECT DISTINCT - 69 AS col1 FROM tab0 cor0
----
-69

onlyif mysql # use DIV operator for integer division
query I rowsort label-2206
SELECT ALL - col2 + col0 DIV col0 AS col2 FROM tab1 AS cor0
----
-53
-56
-95

skipif mysql # not compatible
query I rowsort label-2206
SELECT ALL - col2 + col0 / col0 AS col2 FROM tab1 AS cor0
----
-53
-56
-95

query I rowsort
SELECT + 33 * 92 - cor0.col2 FROM tab1 AS cor0
----
2940
2979
2982

query I rowsort
SELECT DISTINCT col0 * 19 FROM tab0 AS cor0
----
1691
456
665

query I rowsort
SELECT DISTINCT + 77 AS col2 FROM tab0 AS cor0
----
77

query I rowsort
SELECT ALL 30 * + col2 + - col2 AS col2 FROM tab1 AS cor0
----
1566
1653
2784

query I rowsort
SELECT DISTINCT + 3 * + col1 * + 93 AS col1 FROM tab0 AS cor0
----
23994
25389
27063

query I rowsort
SELECT - col0 + col1 + ( - 3 ) AS col2 FROM tab1 AS cor0
----
-57
-70
20

query I rowsort
SELECT + 42 + col1 AS col0 FROM tab2 AS cor0
----
101
59
73

query I rowsort
SELECT DISTINCT + 50 * col1 + col1 AS col0 FROM tab0 cor0
----
4386
4641
4947

query I rowsort
SELECT ALL - 2 * col1 + + col1 AS col2 FROM tab2 cor0
----
-17
-31
-59

query I rowsort
SELECT ALL + + col0 + + col0 AS col1 FROM tab1 AS cor0
----
128
160
6

onlyif mysql # use DIV operator for integer division
query I rowsort label-2217
SELECT + col1 DIV + 10 FROM tab0
----
8
9
9

skipif mysql # not compatible
query I rowsort label-2217
SELECT + col1 / + 10 FROM tab0
----
8
9
9

query I rowsort
SELECT col0 * 9 FROM tab1
----
27
576
720

query I rowsort
SELECT - ( - col1 + col2 ) FROM tab0
----
53
9
96

query I rowsort
SELECT col1 * + ( + col2 ) AS col1 FROM tab0
----
2838
7462
97

query I rowsort
SELECT 43 - - tab1.col0 AS col2 FROM tab1
----
107
123
46

query I rowsort
SELECT DISTINCT - cor0.col0 * + 18 FROM tab2 AS cor0
----
-126
-1404
-1422

query I rowsort
SELECT + col0 * - col2 * 61 AS col0 FROM tab0 AS cor0
----
-2135
-445178
-48312

query I rowsort
SELECT cor0.col1 * - col0 AS col1 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT ALL - col0 * ( 65 * + col2 ) FROM tab0 AS cor0
----
-2275
-474370
-51480

query I rowsort
SELECT DISTINCT + col0 + + 78 FROM tab0 AS cor0
----
102
113
167

query I rowsort
SELECT - cor0.col0 + + ( col1 ) AS col0 FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT + cor0.col2 * 92 FROM tab0 AS cor0
----
3036
7544
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - tab1.col2 col2 FROM tab1
----
-162
-3648
-7680

query I rowsort
SELECT ALL - - cor0.col0 + ( - col0 ) AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + 24 AS col1 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to aeeac431d22528188e8a5a2a60d2d080

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2232
SELECT - col2 + - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2232
SELECT - col2 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 * + 25 + col2 * - col2 FROM tab0
----
-4449
1061
2424

skipif mysql # not compatible
query I rowsort
SELECT ALL + + CAST ( - 3 AS REAL ) AS col1 FROM tab1 AS cor0
----
-3
-3
-3

onlyif mysql # use DIV operator for integer division
query I rowsort label-2235
SELECT - ( 54 ) DIV col2 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2235
SELECT - ( 54 ) / col2 FROM tab1 AS cor0
----
-1
0
0

query I rowsort
SELECT DISTINCT - - 1 FROM tab2 AS cor0
----
1

query I rowsort
SELECT DISTINCT col0 * + col0 * col1 FROM tab0 cor0
----
118825
49536
720811

query I rowsort
SELECT DISTINCT + ( col2 ) + + col1 AS col1 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT - tab2.col1 * 63 + 17 * + col2 FROM tab2
----
-1494
-3275
-425

query I rowsort
SELECT ( - 59 + - tab2.col2 * + 41 ) AS col1 FROM tab2
----
-1125
-1166
-1617

query I rowsort
SELECT ALL + ( tab2.col0 ) + col2 FROM tab2
----
104
117
34

query I rowsort
SELECT DISTINCT ( ( - col0 ) ) * - col0 + col1 AS col0 FROM tab0
----
1322
662
8012

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab0 cor0 CROSS JOIN tab1, tab0 cor1
----
972 values hashing to 5342fb4caf4767cb98bd21989bad099f

query I rowsort
SELECT + - 50 AS col0 FROM tab2 AS cor0
----
-50
-50
-50

query I rowsort
SELECT DISTINCT ( - 52 ) AS col1 FROM tab0 AS cor0
----
-52

query I rowsort
SELECT DISTINCT ( + col1 ) * col2 FROM tab2 AS cor0
----
1534
646
837

onlyif mysql # use DIV operator for integer division
query I rowsort label-2247
SELECT ALL + col0 DIV col2 AS col2 FROM tab0 cor0
----
0
1
35

skipif mysql # not compatible
query I rowsort label-2247
SELECT ALL + col0 / col2 AS col2 FROM tab0 cor0
----
0
1
35

query I rowsort
SELECT ALL - col2 * + col1 * col1 FROM tab2 AS cor0
----
-10982
-25947
-90506

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 34 + + ( col2 ) * - col0 col1 FROM tab0 AS cor0
----
-1
-7264
-758

query I rowsort
SELECT DISTINCT - - cor0.col0 + 25 FROM tab2 AS cor0
----
103
104
32

query I rowsort
SELECT DISTINCT + 42 AS col0 FROM tab0 cor0
----
42

query I rowsort
SELECT DISTINCT col1 + + col2 + cor0.col1 FROM tab1 AS cor0
----
106
122
77

query I rowsort
SELECT ALL + col0 * + 1 - - col2 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT ALL + + col0 - col2 AS col0 FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT - 40 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f02f17e9bc17e514af018c6f245ed7a9

query I rowsort
SELECT col1 * - col2 * col0 FROM tab1
----
-36480
-4212
-99840

query I rowsort
SELECT DISTINCT - col2 + - cor0.col0 + + ( col0 ) * col1 * col0 FROM tab0 AS cor0
----
118789
49479
720640

query I rowsort
SELECT + cor0.col1 + + col2 + ( - cor0.col1 * col0 ) AS col2 FROM tab2 cor0
----
-1288
-159
-4517

query I rowsort
SELECT DISTINCT - - ( col1 ) + + cor0.col2 * col0 FROM tab2 AS cor0
----
2087
220
3019

query I rowsort
SELECT ALL - col1 + - 89 * col2 FROM tab0 AS cor0
----
-186
-3023
-7389

onlyif mysql # use DIV operator for integer division
query I rowsort label-2261
SELECT + - col1 + col1 * col1 DIV + col0 FROM tab2 AS cor0
----
-14
-15
106

skipif mysql # not compatible
query I rowsort label-2261
SELECT + - col1 + col1 * col1 / + col0 FROM tab2 AS cor0
----
-14
-15
106

query I rowsort
SELECT DISTINCT + col0 + ( col0 ) * + cor0.col0 FROM tab1 AS cor0
----
12
4160
6480

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col0 + - 94 col0 FROM tab2
----
1934
2908
95

onlyif mysql # use DIV operator for integer division
query I rowsort label-2264
SELECT cor0.col2 DIV + 23 AS col2 FROM tab0 AS cor0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-2264
SELECT cor0.col2 / + 23 AS col2 FROM tab0 AS cor0
----
0
1
3

query I rowsort
SELECT DISTINCT - col0 * + 12 FROM tab2 AS cor0
----
-84
-936
-948

query I rowsort
SELECT - + tab2.col1 AS col1 FROM tab2, tab2 AS cor0, tab1, tab0 AS cor1
----
81 values hashing to b7a1b38fe8e4f34388e3be1f52601ae5

query I rowsort
SELECT DISTINCT + col2 + col2 + + 3 AS col2 FROM tab0
----
167
5
69

query I rowsort
SELECT DISTINCT 27 * 52 AS col1 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
1404

query I rowsort
SELECT ALL - col2 * + col1 + 20 AS col0 FROM tab0
----
-2818
-7442
-77

query I rowsort
SELECT ALL col0 + - col1 * + 45 + col1 AS col1 FROM tab1
----
-1141
-376
-492

query I rowsort
SELECT - + col1 - + ( + 0 ) AS col1 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT ALL cor0.col0 AS col2 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

query I rowsort
SELECT - 11 FROM tab0, tab2, tab2 cor0
----
27 values hashing to 7120875811e4d19a19b69cd34b6bc202

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 76 + + 65 col2 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
-11

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2275
SELECT ALL - CAST( NULL AS SIGNED ) AS col0 FROM tab1, tab2 AS cor0, tab2, tab1 AS cor1
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

skipif mysql # not compatible
query I rowsort label-2275
SELECT ALL - CAST ( NULL AS INTEGER ) AS col0 FROM tab1, tab2 AS cor0, tab2, tab1 AS cor1
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

query I rowsort
SELECT ALL 68 FROM tab2, tab1 cor0
----
9 values hashing to 599bee15ac4cc39b859854e07dfe7990

query I rowsort
SELECT DISTINCT + - col0 * - ( col1 ) FROM tab0 AS cor0
----
2064
3395
8099

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2278
SELECT + CAST( NULL AS DECIMAL ) FROM tab2, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2278
SELECT + CAST ( NULL AS REAL ) FROM tab2, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT - cor0.col0 * - cor0.col1 * col0 FROM tab0 AS cor0
----
118825
49536
720811

query I rowsort
SELECT - col0 + - col2 * col2 * col1 + cor0.col2 * - col2 AS col1 FROM tab2 AS cor0
----
-23335
-26071
-40638

query I rowsort
SELECT - - col0 + col1 * - 24 AS col1 FROM tab0 AS cor0
----
-2040
-2095
-2293

query I rowsort
SELECT + col0 * col2 + - 17 FROM tab2 cor0
----
172
2011
2985

query I rowsort
SELECT + col1 + cor0.col0 AS col2 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT + col2 + - ( + ( cor0.col0 ) ) FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT + - col1 * - col2 + col0 * cor0.col0 * - ( + 6 ) AS col1 FROM tab2 cor0
----
-34970
-36800
543

query I rowsort
SELECT - col0 * + 67 FROM tab2 AS cor0
----
-469
-5226
-5293

onlyif mysql # use DIV operator for integer division
query I rowsort label-2287
SELECT ALL - CAST( + 47 AS SIGNED ) DIV - cor0.col2 FROM tab0 AS cor0
----
0
1
47

skipif mysql # not compatible
query I rowsort label-2287
SELECT ALL - CAST ( + 47 AS INTEGER ) / - cor0.col2 FROM tab0 AS cor0
----
0
1
47

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2288
SELECT ALL + ( - col2 ) + col2 * CAST( NULL AS DECIMAL ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2288
SELECT ALL + ( - col2 ) + col2 * CAST ( NULL AS REAL ) FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + ( 21 ) * col1 AS col2 FROM tab2 AS cor0
----
1239
357
651

query I rowsort
SELECT - + 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 - ( col0 ) * - col2 col2 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT + + col0 + cor0.col0 * + col1 AS col2 FROM tab0 AS cor0
----
2088
3430
8188

query I rowsort
SELECT - col0 + col0 - + col2 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT ALL - 91 + cor0.col1 AS col1 FROM tab0 AS cor0
----
-5
0
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col1 * col1 col0 FROM tab2 cor0
----
-289
-3481
-961

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - col1 * + col0 * + col0 col0 FROM tab2 AS cor0
----
-106080
-1488
-358897

query I rowsort
SELECT + - col0 + col0 * - 38 FROM tab1 AS cor0
----
-117
-2496
-3120

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2298
SELECT DISTINCT + - ( + col1 ) * - CAST( col2 + - col1 AS SIGNED ) FROM tab0 AS cor0
----
-4558
-819
-9312

skipif mysql # not compatible
query I rowsort label-2298
SELECT DISTINCT + - ( + col1 ) * - CAST ( col2 + - col1 AS INTEGER ) FROM tab0 AS cor0
----
-4558
-819
-9312

onlyif mysql # use DIV operator for integer division
query I rowsort label-2299
SELECT 60 DIV col1 col2 FROM tab2 AS cor0
----
1
1
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2299
SELECT 60 / col1 col2 FROM tab2 AS cor0
----
1
1
3

query I rowsort
SELECT 32 * + col1 AS col0 FROM tab1 cor0
----
320
416
832

query I rowsort
SELECT + ( + col2 ) * - cor0.col0 AS col1 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT ALL col1 + col2 * ( - col1 + - col2 ) AS col1 FROM tab1 AS cor0
----
-10451
-3809
-4294

onlyif mysql # use DIV operator for integer division
query I rowsort label-2303
SELECT - col0 + col1 DIV ( + cor0.col1 + + col2 ) FROM tab2 AS cor0
----
-7
-78
-79

skipif mysql # not compatible
query I rowsort label-2303
SELECT - col0 + col1 / ( + cor0.col1 + + col2 ) FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT ALL - 85 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 8ebc8ffafb1517ea04e3a6fc4059d88a

query I rowsort
SELECT DISTINCT - col2 * + col0 AS col0 FROM tab2 cor0
----
-189
-2028
-3002

query I rowsort
SELECT cor1.col2 FROM tab0, tab2 cor0, tab0 AS cor1, tab1, tab0 AS cor2
----
243 values hashing to 291cdf20f55dc7bbcb55f561dc0b74d8

query I rowsort
SELECT ALL - cor0.col2 + + col1 * + cor0.col2 FROM tab2 AS cor0
----
1508
608
810

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * ( col0 ) + + col0 + 97 col0 FROM tab2 AS cor0
----
153
6259
6417

query I rowsort
SELECT tab0.col2 + - cor0.col2 + - 4 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 969d85f9fad54d038c74875b116951f4

query I rowsort
SELECT ALL + 98 * - col2 * tab1.col2 AS col1 FROM tab1
----
-285768
-318402
-903168

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - ( + col2 ) col0 FROM tab2 AS cor0
----
-55
-58
-85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 99 col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 64d06513850a26495bc6c2fddeb254b7

query I rowsort
SELECT DISTINCT - col2 + + col0 * + col2 + ( cor0.col0 ) * col1 AS col2 FROM tab1 AS cor0
----
186
4231
8624

onlyif mysql # use DIV operator for integer division
query I rowsort label-2314
SELECT ALL col2 DIV + ( - col1 ) FROM tab1
----
-2
-5
-7

skipif mysql # not compatible
query I rowsort label-2314
SELECT ALL col2 / + ( - col1 ) FROM tab1
----
-2
-5
-7

query I rowsort
SELECT DISTINCT - 47 + + col0 * ( + 90 ) AS col2 FROM tab2 cor0
----
583
6973
7063

query I rowsort
SELECT 12 * col0 FROM tab2 AS cor0
----
84
936
948

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2317
SELECT - CAST( NULL AS SIGNED ) * col0 + col0 * - 13 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2317
SELECT - CAST ( NULL AS INTEGER ) * col0 + col0 * - 13 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-2318
SELECT col1 - - col1 DIV 80 FROM tab0
----
87
92
98

skipif mysql # not compatible
query I rowsort label-2318
SELECT col1 - - col1 / 80 FROM tab0
----
87
92
98

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab0, tab1 AS cor2
----
3645 values hashing to e5255b2277726ba4514ff55622dec830

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2320
SELECT DISTINCT - + CAST( 29 AS SIGNED ) + col2 FROM tab0 AS cor0
----
-28
4
53

skipif mysql # not compatible
query I rowsort label-2320
SELECT DISTINCT - + CAST ( 29 AS INTEGER ) + col2 FROM tab0 AS cor0
----
-28
4
53

query I rowsort
SELECT tab1.col2 * 96 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 19c7ed22afd5c2bc0716e97bd608270e

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab0.col2 * tab0.col2 * ( + col1 ) col0 FROM tab0
----
611884
93654
97

query I rowsort
SELECT DISTINCT + cor1.col2 AS col0 FROM tab0, tab1 AS cor0, tab2 cor1
----
26
27
38

query I rowsort
SELECT - col1 + ( - 98 ) * col0 FROM tab0
----
-2438
-3527
-8813

query I rowsort
SELECT DISTINCT 52 FROM tab0, tab2 AS cor0
----
52

query I rowsort
SELECT ALL - col2 + + col2 AS col1 FROM tab2
----
0
0
0

query I rowsort
SELECT + + ( col2 ) - col1 AS col1 FROM tab0 cor0
----
-53
-9
-96

query I rowsort
SELECT DISTINCT - 69 AS col1 FROM tab1, tab1 AS cor0
----
-69

query I rowsort
SELECT ALL - ( 25 ) AS col0 FROM tab0 AS cor0
----
-25
-25
-25

query I rowsort
SELECT ALL col2 + tab0.col0 AS col2 FROM tab0
----
171
36
57

query I rowsort
SELECT ALL - 32 * - ( - col0 ) + + col1 - - col1 AS col2 FROM tab1 AS cor0
----
-2028
-2534
-44

query I rowsort
SELECT DISTINCT - col1 + col2 - col1 FROM tab0 AS cor0
----
-100
-139
-193

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab0 AS cor0, tab1 cor1, tab0, tab0 cor2
----
3645 values hashing to d24b34b0673c90715a7101e7e630fa94

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2334
SELECT DISTINCT - - CAST( NULL AS SIGNED ) + - col0 * - col1 AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2334
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) + - col0 * - col1 AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL + + 70 + 87 AS col2 FROM tab1 AS cor0
----
157
157
157

query I rowsort
SELECT col2 * col2 - - col1 FROM tab0 AS cor0
----
1175
6815
98

query I rowsort
SELECT ALL col2 + col0 + 95 * ( - col1 ) FROM tab1
----
-1059
-2413
-829

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 75 col2 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
75

query I rowsort
SELECT ALL + + 75 + col1 AS col0 FROM tab2 AS cor0
----
106
134
92

query I rowsort
SELECT + cor0.col2 * cor0.col1 FROM tab0, tab2 AS cor0
----
9 values hashing to f5605ce6cbd6ecc79a4a887488bb6947

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 33 col2 FROM tab0 cor0
----
-33
-33
-33

onlyif mysql # use DIV operator for integer division
query I rowsort label-2342
SELECT - 60 DIV - col0 AS col2 FROM tab0 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-2342
SELECT - 60 / - col0 AS col2 FROM tab0 AS cor0
----
0
1
2

query I rowsort
SELECT ALL + + col0 * - col2 + 36 FROM tab2 cor0
----
-153
-1992
-2966

onlyif mysql # use DIV operator for integer division
query I rowsort label-2344
SELECT ALL col2 + + 2 DIV + col0 AS col1 FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-2344
SELECT ALL col2 + + 2 / + col0 AS col1 FROM tab0 AS cor0
----
1
33
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-2345
SELECT - col0 DIV + ( + 36 ) FROM tab2 AS cor0
----
-2
-2
0

skipif mysql # not compatible
query I rowsort label-2345
SELECT - col0 / + ( + 36 ) FROM tab2 AS cor0
----
-2
-2
0

query I rowsort
SELECT DISTINCT + + col2 * + 19 * col1 AS col1 FROM tab2 AS cor0
----
12274
15903
29146

query I rowsort
SELECT ALL - - col2 + col0 * - col0 FROM tab2 cor0
----
-22
-6058
-6203

query I rowsort
SELECT col1 + + col1 * col2 FROM tab0 AS cor0
----
194
2924
7553

query I rowsort
SELECT ALL col2 * + 65 FROM tab2 AS cor0
----
1690
1755
2470

query I rowsort
SELECT ALL - cor0.col1 * - col2 AS col2 FROM tab1 cor0
----
1248
1404
570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * ( - col0 ) col1 FROM tab1 AS cor0
----
-4096
-6400
-9

query I rowsort
SELECT DISTINCT + + col0 * + ( + cor0.col0 ) * - col0 AS col0 FROM tab0 AS cor0
----
-13824
-42875
-704969

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2353
SELECT DISTINCT - col1 * + CAST( - col2 AS SIGNED ) * + cor0.col1 + + 36 AS col1 FROM tab0 AS cor0
----
244104
679078
9445

skipif mysql # not compatible
query I rowsort label-2353
SELECT DISTINCT - col1 * + CAST ( - col2 AS INTEGER ) * + cor0.col1 + + 36 AS col1 FROM tab0 AS cor0
----
244104
679078
9445

onlyif mysql # use DIV operator for integer division
query I rowsort label-2354
SELECT - + cor0.col1 + - 82 DIV + col0 AS col1 FROM tab2 AS cor0
----
-18
-42
-60

skipif mysql # not compatible
query I rowsort label-2354
SELECT - + cor0.col1 + - 82 / + col0 AS col1 FROM tab2 AS cor0
----
-18
-42
-60

query I rowsort
SELECT DISTINCT + 69 * + col2 + col0 FROM tab2
----
1870
1872
2701

query I rowsort
SELECT DISTINCT col2 * ( ( cor0.col0 ) * + col0 ) FROM tab0 AS cor0
----
1225
19008
649522

query I rowsort
SELECT DISTINCT + col0 * + col0 AS col2 FROM tab0 cor0
----
1225
576
7921

query I rowsort
SELECT + col2 + + col1 * + cor0.col2 AS col0 FROM tab2 AS cor0
----
1560
684
864

query I rowsort
SELECT ALL col2 * 45 AS col1 FROM tab0 AS cor0
----
1485
3690
45

query I rowsort
SELECT DISTINCT + col1 * + col0 * - ( + col0 + col1 ) FROM tab1
----
-2262
-47360
-96720

query I rowsort
SELECT DISTINCT - 57 FROM tab1, tab1 cor0
----
-57

onlyif mysql # use DIV operator for integer division
query I rowsort label-2362
SELECT DISTINCT - col1 DIV + ( cor0.col1 ) + cor0.col0 FROM tab2 AS cor0
----
6
77
78

skipif mysql # not compatible
query I rowsort label-2362
SELECT DISTINCT - col1 / + ( cor0.col1 ) + cor0.col0 FROM tab2 AS cor0
----
6
77
78

query I rowsort
SELECT DISTINCT col1 + col0 * col0 + col1 FROM tab1 AS cor0
----
4116
61
6426

query I rowsort
SELECT DISTINCT tab1.col2 * - 15 AS col2 FROM tab1, tab2 AS cor0
----
-1440
-810
-855

query I rowsort
SELECT - 46 AS col1 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 5a5d45989dcc6a06d9ee5a08945518f9

query I rowsort
SELECT ALL col2 + + 87 * - col0 AS col2 FROM tab2 AS cor0
----
-582
-6760
-6835

query I rowsort
SELECT ALL ( tab1.col1 ) + ( - 6 ) AS col1 FROM tab1
----
20
4
7

query I rowsort
SELECT ALL + - cor0.col1 * - cor0.col2 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT DISTINCT - col0 + + col1 FROM tab2 cor0
----
-19
-62
24

query I rowsort
SELECT + - col2 + ( + ( - col0 ) ) AS col2 FROM tab2 AS cor0
----
-104
-117
-34

query I rowsort
SELECT + col0 + col0 * + col1 * - col1 FROM tab1
----
-13440
-2025
-6336

query I rowsort
SELECT col1 * + col0 + + tab1.col1 AS col2 FROM tab1
----
104
1053
650

query I rowsort
SELECT ALL - col1 * - cor0.col2 AS col1 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT ALL + col2 * - col0 * col2 AS col2 FROM tab1 AS cor0
----
-207936
-737280
-8748

query I rowsort
SELECT DISTINCT - 6 AS col0 FROM tab1 cor0
----
-6

query I rowsort
SELECT ALL 93 + + col2 AS col1 FROM tab1 AS cor0
----
147
150
189

query I rowsort
SELECT DISTINCT - - cor0.col0 - - col2 * 60 * 25 FROM tab1 AS cor0
----
144080
81003
85564

query I rowsort
SELECT DISTINCT + 19 * col1 FROM tab1 AS cor0
----
190
247
494

query I rowsort
SELECT DISTINCT - col2 + + col0 * + col1 FROM tab2 cor0
----
1305
190
4576

query I rowsort
SELECT - 79 + + col1 * - ( col2 + + col2 ) AS col2 FROM tab1 AS cor0
----
-1219
-2575
-2887

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col2 * col2 + - col2 col0 FROM tab2 AS cor0
----
-1482
-702
-756

query I rowsort
SELECT DISTINCT 54 + col1 AS col2 FROM tab1 cor0
----
64
67
80

query I rowsort
SELECT ALL + col0 * col2 + - col0 FROM tab1 AS cor0
----
159
3584
7600

query I rowsort
SELECT col0 + + 47 + tab2.col0 AS col1 FROM tab2
----
203
205
61

query I rowsort
SELECT DISTINCT 76 + + col1 FROM tab0
----
162
167
173

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2386
SELECT ALL + CAST( - col0 AS SIGNED ) * col2 + - col2 col1 FROM tab2
----
-2054
-216
-3040

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2386
SELECT ALL + CAST ( - col0 AS INTEGER ) * col2 + - col2 col1 FROM tab2
----
-2054
-216
-3040

onlyif mysql # use DIV operator for integer division
query I rowsort label-2387
SELECT DISTINCT + ( - 65 ) DIV col0 + col1 AS col2 FROM tab2
----
17
22
59

skipif mysql # not compatible
query I rowsort label-2387
SELECT DISTINCT + ( - 65 ) / col0 + col1 AS col2 FROM tab2
----
17
22
59

query I rowsort
SELECT 14 - col2 FROM tab1
----
-40
-43
-82

query I rowsort
SELECT DISTINCT ( + col1 ) - col2 AS col0 FROM tab2
----
-21
33
4

query I rowsort
SELECT + 84 + 24 * + col0 * ( tab1.col0 ) AS col1 FROM tab1
----
153684
300
98388

query I rowsort
SELECT + col2 + + col0 * - 82 FROM tab0
----
-1935
-2869
-7216

query I rowsort
SELECT ALL 90 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 96f7a90428db93f472e0d219bab64853

query I rowsort
SELECT - 27 + col2 + - col2 * + col0 * - col2 FROM tab0
----
26142
598491
9

query I rowsort
SELECT DISTINCT - 88 * col1 + - col1 AS col1 FROM tab2
----
-1513
-2759
-5251

query I rowsort
SELECT 20 * col2 AS col2 FROM tab1
----
1080
1140
1920

query I rowsort
SELECT ALL + + col2 - col2 AS col0 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - cor0.col1 * col0 + - col2 col2 FROM tab0 AS cor0
----
2031
3394
8017

query I rowsort
SELECT + col0 + col2 * cor0.col0 FROM tab1 cor0
----
165
3712
7760

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2399
SELECT ALL - col0 * + cor0.col0 + + CAST( NULL AS DECIMAL ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2399
SELECT ALL - col0 * + cor0.col0 + + CAST ( NULL AS REAL ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - ( + col2 ) AS col1 FROM tab1 cor0
----
-54
-57
-96

query I rowsort
SELECT ALL + 31 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540

onlyif mysql # use DIV operator for integer division
query I rowsort label-2402
SELECT - + col0 * + 82 + - col1 * col1 DIV - col0 AS col1 FROM tab0 AS cor0
----
-1660
-2602
-7205

skipif mysql # not compatible
query I rowsort label-2402
SELECT - + col0 * + 82 + - col1 * col1 / - col0 AS col1 FROM tab0 AS cor0
----
-1660
-2602
-7205

query I rowsort
SELECT - ( + col2 ) AS col2 FROM tab2 cor0
----
-26
-27
-38

query I rowsort
SELECT + - col0 - - 92 * - col2 AS col0 FROM tab0 AS cor0
----
-127
-3060
-7633

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2405
SELECT CAST( col0 AS SIGNED ) * col2 + 73 * col0 FROM tab1 AS cor0
----
13520
381
8320

skipif mysql # not compatible
query I rowsort label-2405
SELECT CAST ( col0 AS INTEGER ) * col2 + 73 * col0 FROM tab1 AS cor0
----
13520
381
8320

skipif mysql # not compatible
query I rowsort
SELECT col2 + CAST ( + ( col2 ) AS REAL ) FROM tab1
----
108
114
192

query I rowsort
SELECT col1 * - col2 + ( + col1 ) * + col2 AS col2 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT + 87 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
87

query I rowsort
SELECT - 75 + - col0 AS col0 FROM tab0 AS cor0
----
-110
-164
-99

query I rowsort
SELECT DISTINCT 9 * col2 + + tab2.col2 AS col1 FROM tab2
----
260
270
380

query I rowsort
SELECT + tab2.col0 AS col2 FROM tab1, tab0 AS cor0 CROSS JOIN tab2
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

query I rowsort
SELECT ALL + col2 + - 12 FROM tab2 AS cor0
----
14
15
26

query I rowsort
SELECT DISTINCT - 24 + cor0.col0 FROM tab0 AS cor0
----
0
11
65

query I rowsort
SELECT - cor0.col0 - - cor0.col2 * col2 FROM tab0 AS cor0
----
-34
1065
6635

query I rowsort
SELECT + 78 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4

query I rowsort
SELECT - + col0 * col1 + + col2 FROM tab2 AS cor0
----
-1305
-190
-4576

query I rowsort
SELECT DISTINCT 89 * - col2 AS col0 FROM tab2 cor0
----
-2314
-2403
-3382

query I rowsort
SELECT ALL + ( tab2.col2 * - col1 ) AS col2 FROM tab2
----
-1534
-646
-837

onlyif mysql # use DIV operator for integer division
query I rowsort label-2419
SELECT ALL + col0 DIV + col2 FROM tab1 cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2419
SELECT ALL + col0 / + col2 FROM tab1 cor0
----
0
0
1

query I rowsort
SELECT DISTINCT 20 + 91 AS col0 FROM tab2, tab0 cor0
----
111

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 47 col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + - 76 * + col2 * col0 col1 FROM tab0 AS cor0
----
-2625
-554559
-60168

query I rowsort
SELECT ALL - cor0.col0 - col1 FROM tab0 AS cor0
----
-110
-132
-180

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + ( col0 ) * + col0 col2 FROM tab0 AS cor0
----
13824
42875
704969

query I rowsort
SELECT - 77 FROM tab1, tab0 cor0, tab2 AS cor1, tab0, tab0 AS cor2
----
243 values hashing to 9f1fa4636fcfbf4aa9468536da2992d8

query I rowsort
SELECT DISTINCT 99 AS col2 FROM tab0, tab2 AS cor0, tab2 cor1
----
99

query I rowsort
SELECT DISTINCT 45 + 57 FROM tab1, tab2 AS cor0
----
102

query I rowsort
SELECT + col0 * 98 FROM tab1 AS cor0
----
294
6272
7840

onlyif mysql # use DIV operator for integer division
query I rowsort label-2429
SELECT cor0.col0 + 92 * ( col1 ) DIV - 80 AS col0 FROM tab2 AS cor0
----
-28
11
60

skipif mysql # not compatible
query I rowsort label-2429
SELECT cor0.col0 + 92 * ( col1 ) / - 80 AS col0 FROM tab2 AS cor0
----
-28
11
60

query I rowsort
SELECT col0 * 92 FROM tab2 AS cor0
----
644
7176
7268

query I rowsort
SELECT - col2 * 33 AS col0 FROM tab1 cor0
----
-1782
-1881
-3168

query I rowsort
SELECT col1 * + col2 + - 27 FROM tab1
----
1221
1377
543

query I rowsort
SELECT + + ( - col2 ) * col1 * ( + col0 + + col1 ) AS col2 FROM tab2 AS cor0
----
-210158
-31806
-62016

onlyif mysql # use DIV operator for integer division
query I rowsort label-2434
SELECT + 35 * col0 DIV - col1 AS col1 FROM tab0 AS cor0
----
-12
-34
-9

skipif mysql # not compatible
query I rowsort label-2434
SELECT + 35 * col0 / - col1 AS col1 FROM tab0 AS cor0
----
-12
-34
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - 32 ) * - col1 * - ( + ( col1 ) * col1 ) col1 FROM tab0 cor0
----
20353792
24114272
29205536

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col0 ) col2 FROM tab2
----
7
78
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + tab2.col1 ) col2 FROM tab2
----
-17
-31
-59

query I rowsort
SELECT + ( + col1 ) + + col2 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT ALL - 97 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to e4a6bd848a69226cbb7ad3d154be321b

query I rowsort
SELECT DISTINCT cor0.col1 + - 61 FROM tab1 AS cor0
----
-35
-48
-51

query I rowsort
SELECT ALL + cor0.col2 * - ( col2 ) FROM tab1 AS cor0
----
-2916
-3249
-9216

query I rowsort
SELECT - col0 + 96 FROM tab2 AS cor0
----
17
18
89

query I rowsort
SELECT 82 * col2 AS col2 FROM tab2
----
2132
2214
3116

query I rowsort
SELECT 4 AS col0 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 730dff78e83112374961ea711f98ebaa

query I rowsort
SELECT ALL + tab2.col1 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2446
SELECT DISTINCT CAST( - col0 AS SIGNED ) + + tab0.col0 * + col0 AS col1 FROM tab0
----
1190
552
7832

skipif mysql # not compatible
query I rowsort label-2446
SELECT DISTINCT CAST ( - col0 AS INTEGER ) + + tab0.col0 * + col0 AS col1 FROM tab0
----
1190
552
7832

query I rowsort
SELECT - ( - col2 * col0 ) + col0 * - col0 AS col2 FROM tab0
----
-1190
-623
216

onlyif mysql # use DIV operator for integer division
query I rowsort label-2448
SELECT - col1 DIV + 75 + col2 AS col0 FROM tab0
----
0
32
81

skipif mysql # not compatible
query I rowsort label-2448
SELECT - col1 / + 75 + col2 AS col0 FROM tab0
----
0
32
81

query I rowsort
SELECT DISTINCT + 55 FROM tab1, tab2 AS cor0
----
55

query I rowsort
SELECT 34 - - tab1.col0 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to 52c08cd59d50e4e475953ab826c18095

query I rowsort
SELECT - 97 + + col0 AS col0 FROM tab0 AS cor0
----
-62
-73
-8

query I rowsort
SELECT DISTINCT + - col2 * col1 - col0 * ( + col0 * - col2 ) AS col1 FROM tab0 AS cor0
----
1128
16170
642060

query I rowsort
SELECT - tab0.col2 + - tab0.col0 * + col1 FROM tab0
----
-2097
-3396
-8181

query I rowsort
SELECT tab2.col2 + ( tab2.col2 ) FROM tab2
----
52
54
76

query I rowsort
SELECT + col1 * - ( + col2 ) + col1 FROM tab2 cor0
----
-1475
-629
-806

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2456
SELECT + CAST( col0 AS SIGNED ) col1 FROM tab1 AS cor0
----
3
64
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2456
SELECT + CAST ( col0 AS INTEGER ) col1 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT + ( + col2 ) + col2 * 55 FROM tab1 AS cor0
----
3024
3192
5376

onlyif mysql # use DIV operator for integer division
query I rowsort label-2458
SELECT DISTINCT - col0 DIV 17 AS col0 FROM tab0 AS cor0
----
-1
-2
-5

skipif mysql # not compatible
query I rowsort label-2458
SELECT DISTINCT - col0 / 17 AS col0 FROM tab0 AS cor0
----
-1
-2
-5

query I rowsort
SELECT ALL - - 96 + col2 * + col1 * cor0.col0 AS col1 FROM tab2 AS cor0
----
119748
51130
5955

query I rowsort
SELECT DISTINCT - + 89 AS col1 FROM tab2 AS cor0
----
-89

query I rowsort
SELECT - - ( 45 ) * + col2 AS col2 FROM tab0 AS cor0
----
1485
3690
45

query I rowsort
SELECT col1 + + col1 + col0 FROM tab0 AS cor0
----
196
229
271

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2463
SELECT ALL CAST( + col2 AS SIGNED ) + col1 - - col2 AS col0 FROM tab0 AS cor0
----
152
255
99

skipif mysql # not compatible
query I rowsort label-2463
SELECT ALL CAST ( + col2 AS INTEGER ) + col1 - - col2 AS col0 FROM tab0 AS cor0
----
152
255
99

query I rowsort
SELECT col0 + col0 + + cor0.col1 * ( 83 * - col1 ) AS col0 FROM tab2 AS cor0
----
-23829
-288767
-79749

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 98 col2 FROM tab0 AS cor0
----
-98
-98
-98

query I rowsort
SELECT ALL 86 + 62 FROM tab2
----
148
148
148

query I rowsort
SELECT - 70 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 35707a5d99c98b2657c084a50ff1b073

query I rowsort
SELECT + ( ( - col1 ) ) FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT ALL - - col2 * + 72 AS col0 FROM tab2 cor0
----
1872
1944
2736

query I rowsort
SELECT ALL - - ( cor0.col2 ) + + col0 AS col0 FROM tab1 AS cor0
----
121
176
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 + col2 col0 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT DISTINCT + cor0.col1 * cor1.col2 AS col1 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
9 values hashing to e5422173e1caaeeb02bbae09b3f4e2fd

query I rowsort
SELECT - ( + cor0.col0 ) + - col0 AS col1 FROM tab2 cor0
----
-14
-156
-158

query I rowsort
SELECT ALL 75 + cor0.col2 * col1 FROM tab1 AS cor0
----
1323
1479
645

query I rowsort
SELECT - + col0 * col0 + + ( + col1 ) AS col2 FROM tab2 AS cor0
----
-18
-6025
-6224

query I rowsort
SELECT - - 39 + col0 FROM tab2 AS cor0
----
117
118
46

query I rowsort
SELECT - col1 * col0 + col0 AS col0 FROM tab2 AS cor0
----
-1264
-210
-4524

query I rowsort
SELECT DISTINCT 72 AS col0 FROM tab2 AS cor0
----
72

query I rowsort
SELECT + col0 + cor0.col1 * ( ( col0 ) ) FROM tab2 cor0
----
1422
224
4680

query I rowsort
SELECT ALL + + col1 + + col1 * 78 + col2 FROM tab1 AS cor0
----
1123
2108
847

query I rowsort
SELECT ALL + cor0.col1 - 1 * - col1 FROM tab1 AS cor0
----
20
26
52

query I rowsort
SELECT DISTINCT + col0 + col0 * col0 * col0 FROM tab1 AS cor0
----
262208
30
512080

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + 25 col1 FROM tab0 AS cor0
----
107
26
58

query I rowsort
SELECT ALL + col0 + 46 * - 52 FROM tab0 AS cor0
----
-2303
-2357
-2368

query I rowsort
SELECT DISTINCT + + col0 + + 67 AS col2 FROM tab1 AS cor0
----
131
147
70

query I rowsort
SELECT + col1 * + col0 + - col0 AS col1 FROM tab0 AS cor0
----
2040
3360
8010

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2487
SELECT - - col2 + + CAST( - col2 AS SIGNED ) AS col2 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2487
SELECT - - col2 + + CAST ( - col2 AS INTEGER ) AS col2 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT ALL col0 + 93 AS col2 FROM tab2 AS cor0
----
100
171
172

query I rowsort
SELECT ALL col1 * ( - cor0.col0 ) AS col2 FROM tab0 AS cor0
----
-2064
-3395
-8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-2490
SELECT ALL - - col2 DIV - ( col0 ) + + col1 col0 FROM tab2 AS cor0
----
17
28
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2490
SELECT ALL - - col2 / - ( col0 ) + + col1 col0 FROM tab2 AS cor0
----
17
28
59

query I rowsort
SELECT DISTINCT col0 + col0 AS col0 FROM tab0 cor0
----
178
48
70

query I rowsort
SELECT DISTINCT - col1 * + ( col1 ) AS col0 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT ALL - col0 * - ( col0 ) * col1 + + col0 AS col2 FROM tab1 AS cor0
----
237
41024
83280

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0 cor0, tab0, tab0 cor1
----
972 values hashing to ea0f747588ddf5869ee18a5e22d9f237

query I rowsort
SELECT col0 - ( - col0 ) AS col0 FROM tab0
----
178
48
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 50 col1 FROM tab2 cor0
----
50
50
50

query I rowsort
SELECT DISTINCT - col2 * - 81 AS col2 FROM tab2 AS cor0
----
2106
2187
3078

query I rowsort
SELECT ( col1 ) + col0 AS col2 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT + - col2 + ( + col0 ) AS col0 FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT DISTINCT + 85 * tab0.col0 + - tab0.col2 * - 59 AS col0 FROM tab0, tab2 AS cor0
----
12403
3034
3987

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2501
SELECT DISTINCT col0 + - CAST( col1 AS SIGNED ) AS col2 FROM tab2
----
-24
19
62

skipif mysql # not compatible
query I rowsort label-2501
SELECT DISTINCT col0 + - CAST ( col1 AS INTEGER ) AS col2 FROM tab2
----
-24
19
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-2502
SELECT + + cor0.col0 DIV col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2502
SELECT + + cor0.col0 / col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + 21 AS col0 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 312c166f4dc412730c43555105b1f44b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + col2 col1 FROM tab2 AS cor0
----
-1444
-676
-729

query I rowsort
SELECT + col0 * - ( col2 + col2 ) FROM tab0 AS cor0
----
-14596
-1584
-70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - ( + col0 ) col1 FROM tab0 AS cor0
----
-178
-48
-70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 + 62 col1 FROM tab1 AS cor0
----
126
142
65

query I rowsort
SELECT - + 81 + - ( + col1 ) FROM tab0 AS cor0
----
-167
-172
-178

query I rowsort
SELECT + 22 + 8 * col2 * 21 FROM tab2 AS cor0
----
4390
4558
6406

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2510
SELECT ALL - CAST( NULL AS DECIMAL ) * - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2510
SELECT ALL - CAST ( NULL AS REAL ) * - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - cor0.col1 * + col0 + col1 * col2 * col1 FROM tab1 AS cor0
----
15184
36426
5060

onlyif mysql # use DIV operator for integer division
query I rowsort label-2512
SELECT 50 + - cor0.col0 * cor0.col0 DIV ( col1 ) FROM tab2 AS cor0
----
-317
-53
49

skipif mysql # not compatible
query I rowsort label-2512
SELECT 50 + - cor0.col0 * cor0.col0 / ( col1 ) FROM tab2 AS cor0
----
-317
-53
49

query I rowsort
SELECT ALL 62 AS col2 FROM tab2, tab1, tab0 AS cor0, tab2 AS cor1
----
81 values hashing to 0bc652564a158b9c0f7952026f90b60a

query I rowsort
SELECT ALL - col1 + + 77 FROM tab2
----
18
46
60

query I rowsort
SELECT ( + 83 ) AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c

query I rowsort
SELECT col1 + - col0 * col2 AS col2 FROM tab2 AS cor0
----
-158
-1969
-2985

query I rowsort
SELECT - 78 * ( - col0 ) FROM tab1 AS cor0
----
234
4992
6240

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 90 col1 FROM tab2 AS cor0
----
90
90
90

query I rowsort
SELECT ALL 11 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 69116737f3f57e2e3273f6dbb04d036c

onlyif mysql # use DIV operator for integer division
query I rowsort label-2520
SELECT + 72 DIV col2 + col0 col1 FROM tab1 AS cor0
----
4
65
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2520
SELECT + 72 / col2 + col0 col1 FROM tab1 AS cor0
----
4
65
80

query I rowsort
SELECT ALL - - cor0.col1 * col1 AS col1 FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT ALL - 22 + col0 FROM tab0 AS cor0
----
13
2
67

query I rowsort
SELECT + col1 + col0 + col1 AS col0 FROM tab1 AS cor0
----
106
55
84

query I rowsort
SELECT ALL + col2 - + cor0.col1 AS col1 FROM tab2 cor0
----
-33
-4
21

query I rowsort
SELECT ALL + col2 * + col1 * col1 FROM tab1 AS cor0
----
16224
36504
5700

query I rowsort
SELECT + col2 + - cor0.col1 * + col2 FROM tab2 AS cor0
----
-1508
-608
-810

query I rowsort
SELECT ALL - col0 + col0 * - col2 + - cor0.col0 FROM tab1 AS cor0
----
-168
-3776
-7840

query I rowsort
SELECT DISTINCT - col0 * + col1 - col0 AS col1 FROM tab2 AS cor0
----
-1422
-224
-4680

query I rowsort
SELECT - 26 * - col0 AS col0 FROM tab2
----
182
2028
2054

query I rowsort
SELECT DISTINCT 2 AS col2 FROM tab2, tab2 AS cor0
----
2

onlyif mysql # use DIV operator for integer division
query I rowsort label-2531
SELECT DISTINCT ( tab0.col2 ) * - col1 + col0 DIV - col0 FROM tab0
----
-2839
-7463
-98

skipif mysql # not compatible
query I rowsort label-2531
SELECT DISTINCT ( tab0.col2 ) * - col1 + col0 / - col0 FROM tab0
----
-2839
-7463
-98

query I rowsort
SELECT col1 * + 75 + col1 - col2 * - col1 * - col2 AS col1 FROM tab0
----
-604968
-87118
7275

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - col0 col2 FROM tab0
----
-1225
-576
-7921

query I rowsort
SELECT DISTINCT + 3 AS col1 FROM tab0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 87 col1 FROM tab0
----
-87
-87
-87

query I rowsort
SELECT + - 47 + col2 AS col1 FROM tab1 AS cor0
----
10
49
7

query I rowsort
SELECT + 52 AS col0 FROM tab2, tab2 cor0
----
9 values hashing to 7f4ae30893ab330784829711032ae599

query I rowsort
SELECT ALL + - cor1.col0 AS col0 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 3000337dd3f11e9cfd5a312b01ef3f8b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 + 7 col2 FROM tab1 AS cor0
----
103
61
64

query I rowsort
SELECT ALL col0 * - ( + col0 * + tab1.col1 ) FROM tab1
----
-234
-40960
-83200

query I rowsort
SELECT - 67 * - col0 AS col0 FROM tab1
----
201
4288
5360

query I rowsort
SELECT col2 * - 46 - tab2.col2 AS col1 FROM tab2
----
-1222
-1269
-1786

query I rowsort
SELECT DISTINCT + tab0.col1 * - ( col0 ) + - col2 FROM tab0
----
-2097
-3396
-8181

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2544
SELECT DISTINCT CAST( NULL AS SIGNED ) * col0 + + col0 * - col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2544
SELECT DISTINCT CAST ( NULL AS INTEGER ) * col0 + + col0 * - col0 FROM tab2
----
NULL

query I rowsort
SELECT + col1 * - cor0.col2 + col0 FROM tab1 AS cor0
----
-1168
-1401
-506

query I rowsort
SELECT DISTINCT - 72 + + ( - col2 + col2 ) FROM tab0 AS cor0
----
-72

query I rowsort
SELECT 88 * col0 AS col1 FROM tab2 AS cor0
----
616
6864
6952

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( col0 ) + - col0 col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - - col1 * 91 FROM tab0 AS cor0
----
7826
8281
8827

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2550
SELECT ALL - col0 + + CAST( NULL AS SIGNED ) * col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2550
SELECT ALL - col0 + + CAST ( NULL AS INTEGER ) * col0 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - cor0.col1 * - col1 + - 59 FROM tab0 AS cor0
----
7337
8222
9350

query I rowsort
SELECT DISTINCT + col0 + 57 AS col1 FROM tab2 AS cor0
----
135
136
64

query I rowsort
SELECT DISTINCT - - cor0.col2 * - cor0.col1 + col2 AS col0 FROM tab2 AS cor0
----
-1508
-608
-810

query I rowsort
SELECT ALL col1 * 16 + + 44 AS col0 FROM tab0 AS cor0
----
1420
1500
1596

query I rowsort
SELECT ALL + col1 * + col1 AS col2 FROM tab0 cor0
----
7396
8281
9409

query I rowsort
SELECT ALL - col2 + + ( + col0 * - col0 ) FROM tab1 AS cor0
----
-4153
-63
-6496

query I rowsort
SELECT DISTINCT + col2 + 45 + 30 AS col1 FROM tab1 AS cor0
----
129
132
171

onlyif mysql # use DIV operator for integer division
query I rowsort label-2558
SELECT + col0 - col1 DIV - col0 FROM tab0 AS cor0
----
27
37
90

skipif mysql # not compatible
query I rowsort label-2558
SELECT + col0 - col1 / - col0 FROM tab0 AS cor0
----
27
37
90

onlyif mysql # use DIV operator for integer division
query I rowsort label-2559
SELECT ALL - col0 + + 98 DIV + col1 AS col2 FROM tab2 AS cor0
----
-4
-74
-77

skipif mysql # not compatible
query I rowsort label-2559
SELECT ALL - col0 + + 98 / + col1 AS col2 FROM tab2 AS cor0
----
-4
-74
-77

onlyif mysql # use DIV operator for integer division
query I rowsort label-2560
SELECT DISTINCT - col2 DIV - col0 - - col2 FROM tab0 cor0
----
1
34
82

skipif mysql # not compatible
query I rowsort label-2560
SELECT DISTINCT - col2 / - col0 - - col2 FROM tab0 cor0
----
1
34
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - ( col0 ) + col1 * 54 * - cor0.col1 col0 FROM tab2 AS cor0
----
-12604
-185946
-51705

query I rowsort
SELECT DISTINCT + 28 + cor0.col2 FROM tab0, tab1 cor0
----
124
82
85

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2563
SELECT + col0 + - CAST( col1 AS SIGNED ) * + col2 FROM tab2
----
-1456
-567
-830

skipif mysql # not compatible
query I rowsort label-2563
SELECT + col0 + - CAST ( col1 AS INTEGER ) * + col2 FROM tab2
----
-1456
-567
-830

onlyif mysql # use DIV operator for integer division
query I rowsort label-2564
SELECT ALL ( col0 ) + col1 DIV + 16 AS col0 FROM tab2 cor0
----
8
80
81

skipif mysql # not compatible
query I rowsort label-2564
SELECT ALL ( col0 ) + col1 / + 16 AS col0 FROM tab2 cor0
----
8
80
81

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2565
SELECT - CAST( + 17 AS SIGNED ) + - col0 FROM tab2 AS cor0
----
-24
-95
-96

skipif mysql # not compatible
query I rowsort label-2565
SELECT - CAST ( + 17 AS INTEGER ) + - col0 FROM tab2 AS cor0
----
-24
-95
-96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2566
SELECT DISTINCT - CAST( col1 AS SIGNED ) + + col2 AS col1 FROM tab0 AS cor0
----
-53
-9
-96

skipif mysql # not compatible
query I rowsort label-2566
SELECT DISTINCT - CAST ( col1 AS INTEGER ) + + col2 AS col1 FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT ALL cor0.col0 AS col0 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT ALL - cor0.col2 AS col2 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc

query I rowsort
SELECT ALL 1 FROM tab1, tab1 cor0, tab1 cor1, tab2 AS cor2
----
81 values hashing to 2a004dce2d308bae163576f54ee1a3fc

query I rowsort
SELECT DISTINCT + cor2.col1 FROM tab2 cor0 CROSS JOIN tab0, tab1 cor1, tab2 cor2
----
17
31
59

query I rowsort
SELECT + - 20 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f1cccb95c90889319e7a51e4ae9475bb

query I rowsort
SELECT + col2 * 69 - col1 AS col1 FROM tab2
----
1735
1832
2605

query I rowsort
SELECT col2 * - cor0.col1 * col1 - + ( col1 * + 54 + + 3 * + col0 ) FROM tab1 AS cor0
----
-17166
-37917
-6432

query I rowsort
SELECT DISTINCT col0 * - cor0.col2 - - col1 AS col2 FROM tab2 AS cor0
----
-158
-1969
-2985

query I rowsort
SELECT ALL - col0 * col0 - col0 AS col0 FROM tab2 AS cor0
----
-56
-6162
-6320

onlyif mysql # use DIV operator for integer division
query I rowsort label-2576
SELECT ALL - + col2 - col0 DIV col0 AS col2 FROM tab0 AS cor0
----
-2
-34
-83

skipif mysql # not compatible
query I rowsort label-2576
SELECT ALL - + col2 - col0 / col0 AS col2 FROM tab0 AS cor0
----
-2
-34
-83

query I rowsort
SELECT ALL + 20 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 0a35fe98f3e7d5fc8ff2ae815bd20ef4

query I rowsort
SELECT 29 + col1 + - col2 FROM tab2
----
33
62
8

query I rowsort
SELECT ( - col1 ) * - 25 FROM tab2
----
1475
425
775

onlyif mysql # use DIV operator for integer division
query I rowsort label-2580
SELECT + col0 - - col2 DIV + col2 AS col1 FROM tab0
----
25
36
90

skipif mysql # not compatible
query I rowsort label-2580
SELECT + col0 - - col2 / + col2 AS col1 FROM tab0
----
25
36
90

query I rowsort
SELECT - 97 * - col1 + col1 FROM tab1
----
1274
2548
980

query I rowsort
SELECT DISTINCT + col0 * col1 + + col2 FROM tab1
----
1136
132
697

query I rowsort
SELECT 20 * + tab0.col1 AS col2 FROM tab0
----
1720
1820
1940

query I rowsort
SELECT ALL + col2 - - col1 AS col1 FROM tab0
----
119
173
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 75 * - col1 col2 FROM tab2
----
-1275
-2325
-4425

query I rowsort
SELECT DISTINCT col1 * + col1 * ( tab2.col2 ) - col2 AS col2 FROM tab2
----
10944
25920
90480

query I rowsort
SELECT DISTINCT 94 * col2 - - 68 AS col0 FROM tab0
----
162
3170
7776

onlyif mysql # use DIV operator for integer division
query I rowsort label-2588
SELECT DISTINCT + 4 + col2 DIV + col1 AS col0 FROM tab2 AS cor0
----
4
6

skipif mysql # not compatible
query I rowsort label-2588
SELECT DISTINCT + 4 + col2 / + col1 AS col0 FROM tab2 AS cor0
----
4
6

query I rowsort
SELECT ALL + 30 AS col2 FROM tab0 AS cor0
----
30
30
30

query I rowsort
SELECT 57 * + cor0.col0 - 34 FROM tab2 AS cor0
----
365
4412
4469

query I rowsort
SELECT tab2.col0 * - tab2.col2 + 80 + ( + col1 ) * - 48 * + tab2.col1 FROM tab2
----
-16794
-169036
-46237

query I rowsort
SELECT - 77 + - col0 FROM tab2
----
-155
-156
-84

query I rowsort
SELECT DISTINCT + 34 * + col2 + 10 AS col1 FROM tab2
----
1302
894
928

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2594
SELECT - - CAST( NULL AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2594
SELECT - - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ALL 76 + + col2 FROM tab1
----
130
133
172

query I rowsort
SELECT + col0 * + 59 * + col1 - col2 FROM tab1 AS cor0
----
37703
4548
61264

query I rowsort
SELECT DISTINCT + tab1.col2 * col1 + col2 FROM tab1
----
1344
1458
627

query I rowsort
SELECT + 82 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( 65 ) col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805

query I rowsort
SELECT 84 FROM tab0, tab0 cor0, tab2 AS cor1
----
27 values hashing to e8cd683fe8cea77b4326d9b80f21c74a

query I rowsort
SELECT col2 * 67 FROM tab1 AS cor0
----
3618
3819
6432

query I rowsort
SELECT ALL + col0 * ( - 32 ) + col0 + 75 * ( + col2 ) AS col1 FROM tab2 AS cor0
----
-468
1808
401

query I rowsort
SELECT DISTINCT 68 * col2 FROM tab2
----
1768
1836
2584

onlyif mysql # use DIV operator for integer division
query I rowsort label-2604
SELECT - col0 DIV - col0 + + col1 FROM tab1
----
11
14
27

skipif mysql # not compatible
query I rowsort label-2604
SELECT - col0 / - col0 + + col1 FROM tab1
----
11
14
27

query I rowsort
SELECT col0 + tab0.col1 * + col2 AS col0 FROM tab0
----
132
2862
7551

query I rowsort
SELECT ALL - 37 * + col0 AS col1 FROM tab0
----
-1295
-3293
-888

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2607
SELECT DISTINCT - CAST( NULL AS SIGNED ) FROM tab1, tab0, tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2607
SELECT DISTINCT - CAST ( NULL AS INTEGER ) FROM tab1, tab0, tab0 cor0
----
NULL

query I rowsort
SELECT - ( col0 ) + + col0 AS col2 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL - col0 * cor0.col2 + - col0 FROM tab0 AS cor0
----
-70
-7387
-816

query I rowsort
SELECT cor0.col0 * + cor0.col0 * cor0.col1 FROM tab1 AS cor0
----
234
40960
83200

query I rowsort
SELECT + ( - 35 + col2 ) FROM tab1
----
19
22
61

query I rowsort
SELECT - col1 + + 96 AS col0 FROM tab1
----
70
83
86

onlyif mysql # use DIV operator for integer division
query I rowsort label-2613
SELECT DISTINCT ( + col2 ) DIV + col1 AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2613
SELECT DISTINCT ( + col2 ) / + col1 AS col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT - col2 * col1 * + col0 AS col1 FROM tab0 AS cor0
----
-3395
-664118
-68112

query I rowsort
SELECT + col0 + col0 * - 95 AS col0 FROM tab0 cor0
----
-2256
-3290
-8366

onlyif mysql # use DIV operator for integer division
query I rowsort label-2616
SELECT ALL + col1 DIV + col2 AS col1 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2616
SELECT ALL + col1 / + col2 AS col1 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT ALL - + 74 + - col2 * + 5 FROM tab1 AS cor0
----
-344
-359
-554

query I rowsort
SELECT + 31 AS col2 FROM tab1
----
31
31
31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 9 col2 FROM tab0 AS cor0
----
-9
-9
-9

query I rowsort
SELECT DISTINCT cor0.col2 * + col0 AS col0 FROM tab1 cor0
----
162
3648
7680

query I rowsort
SELECT - + cor0.col0 * col1 * - col0 FROM tab1 AS cor0
----
234
40960
83200

query I rowsort
SELECT - ( + col2 * - col2 ) AS col0 FROM tab2
----
1444
676
729

query I rowsort
SELECT col2 * 2 AS col2 FROM tab0
----
164
2
66

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2624
SELECT + CAST( col2 AS SIGNED ) * - col1 AS col2 FROM tab2
----
-1534
-646
-837

skipif mysql # not compatible
query I rowsort label-2624
SELECT + CAST ( col2 AS INTEGER ) * - col1 AS col2 FROM tab2
----
-1534
-646
-837

query I rowsort
SELECT 84 * + col0 FROM tab1 AS cor0
----
252
5376
6720

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col2 ) * + col1 * col0 col1 FROM tab0 AS cor0
----
3395
664118
68112

query I rowsort
SELECT + + col0 + col1 * 35 AS col1 FROM tab0 AS cor0
----
3034
3274
3430

query I rowsort
SELECT ( - col1 ) * + 11 FROM tab0 AS cor0
----
-1001
-1067
-946

query I rowsort
SELECT - col0 * - 78 - col0 FROM tab2 AS cor0
----
539
6006
6083

query I rowsort
SELECT + col1 * + ( col0 ) * - tab0.col0 AS col2 FROM tab0
----
-118825
-49536
-720811

query I rowsort
SELECT + ( 11 ) AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00

query I rowsort
SELECT cor0.col0 - cor0.col1 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT - - col1 + 81 * 39 AS col0 FROM tab2 AS cor0
----
3176
3190
3218

query I rowsort
SELECT + col2 * + ( - col0 ) * + col1 + ( 53 + + col0 ) AS col0 FROM tab1 AS cor0
----
-36363
-4156
-99707

onlyif mysql # use DIV operator for integer division
query I rowsort label-2635
SELECT - col2 - + CAST( col1 AS SIGNED ) DIV - cor0.col2 AS col1 FROM tab1 AS cor0
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-2635
SELECT - col2 - + CAST ( col1 AS INTEGER ) / - cor0.col2 AS col1 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT + - col1 * 28 - col2 * col1 FROM tab2 AS cor0
----
-1122
-1705
-3186

query I rowsort
SELECT - col0 + - cor0.col0 * - cor0.col1 AS col2 FROM tab2 AS cor0
----
1264
210
4524

query I rowsort
SELECT ( - cor0.col2 ) FROM tab2, tab2 AS cor0
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75

query I rowsort
SELECT + ( - 96 ) * - cor0.col0 FROM tab0 AS cor0
----
2304
3360
8544

query I rowsort
SELECT DISTINCT + tab0.col0 * + tab0.col0 * - col0 AS col1 FROM tab0
----
-13824
-42875
-704969

query I rowsort
SELECT 21 + - col0 * + col0 AS col0 FROM tab1 AS cor0
----
-4075
-6379
12

query I rowsort
SELECT + - ( 98 ) + + col2 * 9 FROM tab2 AS cor0
----
136
145
244

query I rowsort
SELECT ALL - col1 * + col2 + - cor0.col1 AS col2 FROM tab2 AS cor0
----
-1593
-663
-868

query I rowsort
SELECT + cor0.col1 + ( - col0 ) FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT - + cor0.col1 + 86 * col0 AS col1 FROM tab1 AS cor0
----
232
5494
6867

query I rowsort
SELECT + cor0.col2 * - 65 AS col0 FROM tab2 AS cor0
----
-1690
-1755
-2470

query I rowsort
SELECT - cor0.col0 + + col0 * - col1 AS col0 FROM tab2 AS cor0
----
-1422
-224
-4680

query I rowsort
SELECT DISTINCT + 11 AS col0 FROM tab2 AS cor0
----
11

query I rowsort
SELECT - 90 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to f6f26b9a04da14807208b93d507095c5

query I rowsort
SELECT ALL 82 + + col2 FROM tab0 AS cor0
----
115
164
83

query I rowsort
SELECT + ( - cor0.col2 ) + col2 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - col2 + + 93 FROM tab1 AS cor0
----
-3
36
39

onlyif mysql # use DIV operator for integer division
query I rowsort label-2653
SELECT DISTINCT col1 + col1 DIV + col1 FROM tab1 AS cor0
----
11
14
27

skipif mysql # not compatible
query I rowsort label-2653
SELECT DISTINCT col1 + col1 / + col1 FROM tab1 AS cor0
----
11
14
27

query I rowsort
SELECT ALL col1 * + col0 + col1 AS col2 FROM tab2 cor0
----
1360
248
4661

query I rowsort
SELECT + ( + 91 ) AS col0 FROM tab0 AS cor0
----
91
91
91

query I rowsort
SELECT - cor1.col1 + 39 AS col1 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cdefed405184723816836ad3e6fed253

query I rowsort
SELECT + cor0.col1 + + cor0.col0 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT + 62 + - col1 FROM tab2 AS cor0
----
3
31
45

query I rowsort
SELECT DISTINCT - + col2 * col2 + ( col0 ) * - cor0.col1 AS col1 FROM tab0 AS cor0
----
-14823
-3153
-3396

onlyif mysql # use DIV operator for integer division
query I rowsort label-2660
SELECT DISTINCT - col2 DIV - col1 + 76 AS col0 FROM tab2 cor0
----
76
78

skipif mysql # not compatible
query I rowsort label-2660
SELECT DISTINCT - col2 / - col1 + 76 AS col0 FROM tab2 cor0
----
76
78

query I rowsort
SELECT DISTINCT + ( tab2.col1 ) AS col2 FROM tab2, tab1 AS cor0
----
17
31
59

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2662
SELECT DISTINCT - CAST( NULL AS SIGNED ) / col0 + col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2662
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / col0 + col0 FROM tab0
----
NULL

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab2 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab2 AS cor2
----
3645 values hashing to e3826bc27970dd1a441a9cd4c13b096d

query I rowsort
SELECT ( 45 ) AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050

query I rowsort
SELECT col2 * - 51 FROM tab0 AS cor0
----
-1683
-4182
-51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + 7 * - 76 col1 FROM tab1
----
-436
-475
-478

onlyif mysql # use DIV operator for integer division
query I rowsort label-2667
SELECT + tab1.col0 * CAST( col2 * - col2 AS SIGNED ) - ( 86 + col2 ) DIV 62 FROM tab1
----
-207938
-737282
-8750

skipif mysql # not compatible
query I rowsort label-2667
SELECT + tab1.col0 * CAST ( col2 * - col2 AS INTEGER ) - ( 86 + col2 ) / 62 FROM tab1
----
-207938
-737282
-8750

query I rowsort
SELECT - col1 FROM tab1 WHERE ( NULL ) NOT IN ( col2 + - col2 * + col0 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-2669
SELECT ALL col0 DIV col0 + + col0 col2 FROM tab0
----
25
36
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2669
SELECT ALL col0 / col0 + + col0 col2 FROM tab0
----
25
36
90

onlyif mysql # use DIV operator for integer division
query I rowsort label-2670
SELECT ALL - tab0.col0 DIV - col2 + - col1 * tab0.col1 + col0 AS col0 FROM tab0
----
-7372
-8191
-9339

skipif mysql # not compatible
query I rowsort label-2670
SELECT ALL - tab0.col0 / - col2 + - col1 * tab0.col1 + col0 AS col0 FROM tab0
----
-7372
-8191
-9339

onlyif mysql # use DIV operator for integer division
query I rowsort label-2671
SELECT - col1 * col2 + col1 DIV + col1 FROM tab0 AS cor0
----
-2837
-7461
-96

skipif mysql # not compatible
query I rowsort label-2671
SELECT - col1 * col2 + col1 / + col1 FROM tab0 AS cor0
----
-2837
-7461
-96

query I rowsort
SELECT col0 * col2 - col1 FROM tab0 AS cor0
----
-62
706
7207

onlyif mysql # use DIV operator for integer division
query I rowsort label-2673
SELECT ALL - - col0 * - col2 + + col0 DIV + col1 FROM tab0 AS cor0
----
-35
-7298
-792

skipif mysql # not compatible
query I rowsort label-2673
SELECT ALL - - col0 * - col2 + + col0 / + col1 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT + cor0.col2 + cor0.col1 AS col1 FROM tab0 cor0
----
119
173
98

query I rowsort
SELECT - col0 * + col1 - col2 FROM tab0 WHERE NOT ( NULL ) >= ( col0 * col1 * + col2 )
----

query I rowsort
SELECT DISTINCT - col2 + col0 * col0 AS col2 FROM tab2
----
22
6058
6203

query I rowsort
SELECT - col0 + - cor0.col0 * - col0 AS col1 FROM tab2 cor0
----
42
6006
6162

query I rowsort
SELECT ALL cor0.col1 * - col0 * col0 FROM tab0 AS cor0
----
-118825
-49536
-720811

query I rowsort
SELECT ALL - cor0.col0 * cor0.col1 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT DISTINCT tab2.col2 - tab2.col0 AS col2 FROM tab2
----
-41
-52
20

query I rowsort
SELECT ALL + col2 + tab1.col2 - + col2 FROM tab1
----
54
57
96

query I rowsort
SELECT ALL - col1 * col1 + - cor0.col0 FROM tab2 AS cor0
----
-3559
-368
-968

query I rowsort
SELECT + cor0.col1 + + col0 * col1 AS col2 FROM tab1 AS cor0
----
104
1053
650

onlyif mysql # use DIV operator for integer division
query I rowsort label-2684
SELECT DISTINCT - - col2 DIV col1 + + col1 AS col2 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-2684
SELECT DISTINCT - - col2 / col1 + + col1 AS col2 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT DISTINCT - cor0.col0 * col2 * + col0 + col0 FROM tab2 AS cor0
----
-1316
-158106
-237079

query I rowsort
SELECT DISTINCT - col0 + col2 * - col0 AS col0 FROM tab2 cor0
----
-196
-2106
-3081

query I rowsort
SELECT DISTINCT + col2 + - col2 * col2 * col0 FROM tab2 cor0
----
-114038
-5076
-52702

onlyif mysql # use DIV operator for integer division
query I rowsort label-2688
SELECT DISTINCT + + col0 * + col0 DIV + col0 AS col1 FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-2688
SELECT DISTINCT + + col0 * + col0 / + col0 AS col1 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT - col1 * col2 + col2 AS col2 FROM tab1
----
-1152
-1350
-513

onlyif mysql # use DIV operator for integer division
query I rowsort label-2690
SELECT + col1 + col0 + col1 DIV - col0 AS col0 FROM tab0 AS cor0
----
107
130
179

skipif mysql # not compatible
query I rowsort label-2690
SELECT + col1 + col0 + col1 / - col0 AS col0 FROM tab0 AS cor0
----
107
130
179

query I rowsort
SELECT - col0 * + col1 * col0 + col1 * tab1.col0 FROM tab1
----
-156
-40320
-82160

query I rowsort
SELECT 15 * + col0 AS col1 FROM tab2 AS cor0
----
105
1170
1185

query I rowsort
SELECT + cor0.col0 * + col1 AS col1 FROM tab1 AS cor0
----
1040
640
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-2694
SELECT DISTINCT + - col2 * - col0 + 30 DIV col1 AS col0 FROM tab0 AS cor0
----
35
7298
792

skipif mysql # not compatible
query I rowsort label-2694
SELECT DISTINCT + - col2 * - col0 + 30 / col1 AS col0 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT ALL col2 * + col0 + - col2 * col0 * col0 FROM tab2 cor0
----
-1134
-156156
-234156

query I rowsort
SELECT DISTINCT + col2 * col2 * col0 + - col0 FROM tab1
----
207872
737200
8745

onlyif mysql # use DIV operator for integer division
query I rowsort label-2697
SELECT ALL col0 DIV col0 + - col2 FROM tab2
----
-25
-26
-37

skipif mysql # not compatible
query I rowsort label-2697
SELECT ALL col0 / col0 + - col2 FROM tab2
----
-25
-26
-37

query III rowsort
SELECT * FROM tab2 WHERE - col1 IN ( + col1 * tab2.col2 )
----

query I rowsort
SELECT ALL + tab1.col0 * col1 + + col2 * col2 FROM tab1
----
10256
2994
3889

query I rowsort
SELECT DISTINCT - tab0.col1 * + col0 AS col0 FROM tab0
----
-2064
-3395
-8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 + cor0.col0 * + col2 col0 FROM tab2 AS cor0
----
182
1950
2923

query I rowsort
SELECT - ( + col0 ) + 65 + + 71 AS col1 FROM tab0
----
101
112
47

query I rowsort
SELECT 18 * col1 + + 58 * + col0 AS col0 FROM tab1
----
3892
4874
642

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + tab2.col1 col1 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

query I rowsort
SELECT ( - cor0.col1 ) AS col2 FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT DISTINCT - col1 + - col0 * - col1 FROM tab2 cor0
----
1326
186
4543

query I rowsort
SELECT DISTINCT - - col1 * + col1 + - col2 FROM tab0 AS cor0
----
7363
8199
9408

onlyif mysql # use DIV operator for integer division
query I rowsort label-2708
SELECT ALL 25 DIV + col0 AS col2 FROM tab1
----
0
0
8

skipif mysql # not compatible
query I rowsort label-2708
SELECT ALL 25 / + col0 AS col2 FROM tab1
----
0
0
8

query I rowsort
SELECT DISTINCT col0 * - col0 * tab1.col1 AS col0 FROM tab1
----
-234
-40960
-83200

query I rowsort
SELECT DISTINCT tab0.col1 - + col2 * col1 AS col0 FROM tab0
----
-2752
-7371
0

query I rowsort
SELECT - col2 + - col2 * + col1 AS col0 FROM tab2
----
-1560
-684
-864

query I rowsort
SELECT col1 * - col0 * - col0 AS col0 FROM tab0
----
118825
49536
720811

query I rowsort
SELECT col0 * - col2 + col1 * col1 AS col1 FROM tab2
----
-2713
1453
772

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + col2 col2 FROM tab2
----
55
58
85

query I rowsort
SELECT ALL col1 * - col2 * - col1 FROM tab1
----
16224
36504
5700

onlyif mysql # use DIV operator for integer division
query I rowsort label-2716
SELECT DISTINCT tab2.col0 DIV + col0 + col2 FROM tab2
----
27
28
39

skipif mysql # not compatible
query I rowsort label-2716
SELECT DISTINCT tab2.col0 / + col0 + col2 FROM tab2
----
27
28
39

query I rowsort
SELECT col1 AS col0 FROM tab0 WHERE NOT col2 + + col2 <= NULL
----

query I rowsort
SELECT - tab2.col0 + - col2 AS col1 FROM tab2
----
-104
-117
-34

query I rowsort
SELECT DISTINCT - col2 FROM tab0 WHERE NOT NULL < ( col2 + col0 * + col0 )
----

query I rowsort
SELECT DISTINCT col0 * col0 FROM tab0 WHERE - col2 * col1 * + col1 NOT IN ( col1 )
----
1225
576
7921

onlyif mysql # use DIV operator for integer division
query I rowsort label-2721
SELECT ALL col2 DIV + tab1.col1 + - col1 FROM tab1
----
-24
-5
-6

skipif mysql # not compatible
query I rowsort label-2721
SELECT ALL col2 / + tab1.col1 + - col1 FROM tab1
----
-24
-5
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - col1 * col1 * col1 col0 FROM tab2
----
-205320
-29760
-4896

query I rowsort
SELECT - tab1.col1 AS col2 FROM tab1 WHERE col2 < + col2 * col0
----
-10
-13
-26

query I rowsort
SELECT ALL - col2 AS col0 FROM tab2 WHERE ( NULL ) NOT BETWEEN col0 AND col1 + + col1
----

query I rowsort
SELECT DISTINCT col1 + col2 FROM tab0 WHERE ( + col1 ) NOT IN ( col1 * + col2 + col2 )
----
119
173
98

query I rowsort
SELECT col2 + + tab1.col2 + col0 AS col0 FROM tab1 WHERE NOT col2 IN ( col1 )
----
111
178
272

onlyif mysql # use DIV operator for integer division
query I rowsort label-2727
SELECT ALL col0 DIV - tab0.col0 + - tab0.col1 * tab0.col1 * + col0 FROM tab0
----
-177505
-329316
-737010

skipif mysql # not compatible
query I rowsort label-2727
SELECT ALL col0 / - tab0.col0 + - tab0.col1 * tab0.col1 * + col0 FROM tab0
----
-177505
-329316
-737010

query I rowsort
SELECT tab0.col2 AS col1 FROM tab0 WHERE ( - col0 ) < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + + col2 * - col2 col0 FROM tab0
----
-1175
-6815
-98

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NULL ) < + col2 * - col0
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-2731
SELECT DISTINCT + col2 * - col2 DIV + col2 + col1 col1 FROM tab0
----
53
9
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2731
SELECT DISTINCT + col2 * - col2 / + col2 + col1 col1 FROM tab0
----
53
9
96

query I rowsort
SELECT + col0 + + col1 * cor0.col2 AS col1 FROM tab1 AS cor0
----
1328
1407
634

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2733
SELECT DISTINCT + col1 + CAST( col1 AS SIGNED ) FROM tab0 AS cor0
----
172
182
194

skipif mysql # not compatible
query I rowsort label-2733
SELECT DISTINCT + col1 + CAST ( col1 AS INTEGER ) FROM tab0 AS cor0
----
172
182
194

query I rowsort
SELECT ALL + + 52 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 7f4ae30893ab330784829711032ae599

query I rowsort
SELECT DISTINCT + 6 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
6

query I rowsort
SELECT + 69 FROM tab0, tab2 AS cor0
----
9 values hashing to 85d9b90a03b9def161891b13085271f7

query I rowsort
SELECT col0 * - 74 AS col0 FROM tab1
----
-222
-4736
-5920

query I rowsort
SELECT - col1 * - 25 AS col0 FROM tab0 AS cor0
----
2150
2275
2425

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - col0 * - col0 col2 FROM tab0
----
1128
490
7830

query I rowsort
SELECT + ( col1 ) * + ( - col2 ) AS col0 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT ( col1 ) * 96 AS col0 FROM tab2 AS cor0
----
1632
2976
5664

query I rowsort
SELECT - 86 + tab2.col2 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to fa19a0760972cc4df0c3bd0b2f424637

query I rowsort
SELECT ALL - + 66 - + cor0.col1 FROM tab0 AS cor0
----
-152
-157
-163

query I rowsort
SELECT ALL + 75 * + col0 * col1 FROM tab1
----
48000
5850
78000

query I rowsort
SELECT DISTINCT + 5 AS col0 FROM tab1, tab1 AS cor0
----
5

query I rowsort
SELECT ALL 71 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0

query I rowsort
SELECT + 10 * col2 FROM tab2 AS cor0
----
260
270
380

query I rowsort
SELECT - cor0.col0 + + col1 - - col2 * ( + col1 ) * 4 AS col0 FROM tab2 cor0
----
2522
3372
6117

query I rowsort
SELECT - + col1 * col0 * col0 - + ( col1 * + ( - col0 ) + cor0.col2 ) AS col0 FROM tab0 AS cor0
----
-115431
-47505
-712794

query I rowsort
SELECT + - col2 * col1 + - col1 FROM tab0 AS cor0
----
-194
-2924
-7553

onlyif mysql # use DIV operator for integer division
query I rowsort label-2751
SELECT - + col1 * col0 + col1 DIV + col0 + + cor0.col2 FROM tab1 cor0
----
-16
-583
-944

skipif mysql # not compatible
query I rowsort label-2751
SELECT - + col1 * col0 + col1 / + col0 + + cor0.col2 FROM tab1 cor0
----
-16
-583
-944

onlyif mysql # use DIV operator for integer division
query I rowsort label-2752
SELECT + col1 DIV + col1 + - ( + col1 ) FROM tab1
----
-12
-25
-9

skipif mysql # not compatible
query I rowsort label-2752
SELECT + col1 / + col1 + - ( + col1 ) FROM tab1
----
-12
-25
-9

onlyif mysql # use DIV operator for integer division
query I rowsort label-2753
SELECT + - col1 DIV + 28 + + col2 * + col0 FROM tab1 AS cor0
----
162
3648
7680

skipif mysql # not compatible
query I rowsort label-2753
SELECT + - col1 / + 28 + + col2 * + col0 FROM tab1 AS cor0
----
162
3648
7680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2754
SELECT ALL + - col0 * CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2754
SELECT ALL + - col0 * CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + col0 - - col1 AS col2 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT - + col0 - ( 0 ) AS col1 FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT - col0 * - cor0.col1 - 47 * - col2 * col0 FROM tab2 AS cor0
----
142437
9100
99918

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2758
SELECT + cor0.col0 + CAST( + col0 AS SIGNED ) FROM tab2 AS cor0
----
14
156
158

skipif mysql # not compatible
query I rowsort label-2758
SELECT + cor0.col0 + CAST ( + col0 AS INTEGER ) FROM tab2 AS cor0
----
14
156
158

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 * col1 col2 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT ALL + - col0 * ( 29 + col1 ) AS col1 FROM tab2 AS cor0
----
-3634
-420
-6864

query I rowsort
SELECT DISTINCT - col2 * 28 AS col0 FROM tab2 AS cor0
----
-1064
-728
-756

query I rowsort
SELECT ALL + col2 - - ( col1 ) * - col0 AS col2 FROM tab0 AS cor0
----
-2031
-3394
-8017

onlyif mysql # use DIV operator for integer division
query I rowsort label-2763
SELECT - col0 DIV + col1 - col2 FROM tab1 AS cor0
----
-102
-54
-63

skipif mysql # not compatible
query I rowsort label-2763
SELECT - col0 / + col1 - col2 FROM tab1 AS cor0
----
-102
-54
-63

query I rowsort
SELECT DISTINCT - - col0 * + cor0.col0 * col2 AS col0 FROM tab0 AS cor0
----
1225
19008
649522

query I rowsort
SELECT DISTINCT - col0 * + ( col1 ) * col0 AS col0 FROM tab1 AS cor0
----
-234
-40960
-83200

query I rowsort
SELECT + 11 * - col1 FROM tab0 cor0
----
-1001
-1067
-946

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2767
SELECT ALL - - CAST( - ( col1 ) AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-2767
SELECT ALL - - CAST ( - ( col1 ) AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT DISTINCT + col1 * 79 FROM tab2 cor0
----
1343
2449
4661

query I rowsort
SELECT ALL + col1 * ( col1 ) FROM tab0 AS cor0
----
7396
8281
9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-2770
SELECT + 91 DIV - col2 AS col1 FROM tab1 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-2770
SELECT + 91 / - col2 AS col1 FROM tab1 AS cor0
----
-1
-1
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col0 * col2 col1 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT ALL cor1.col0 AS col2 FROM tab0, tab1 cor0, tab0 cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT ALL 37 AS col0 FROM tab2 AS cor0
----
37
37
37

onlyif mysql # use DIV operator for integer division
query I rowsort label-2774
SELECT ALL + - col0 + col0 DIV col1 FROM tab0 AS cor0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-2774
SELECT ALL + - col0 + col0 / col1 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT DISTINCT + - 94 + col1 * + col0 AS col0 FROM tab0 AS cor0
----
1970
3301
8005

onlyif mysql # use DIV operator for integer division
query I rowsort label-2776
SELECT - 44 DIV - col1 FROM tab2 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-2776
SELECT - 44 / - col1 FROM tab2 AS cor0
----
0
1
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - cor1.col1 ) col0 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2

query I rowsort
SELECT DISTINCT - cor0.col1 * col2 + + 92 * - cor0.col0 AS col0 FROM tab0 AS cor0
----
-15650
-3317
-5046

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2779
SELECT CAST( NULL AS SIGNED ) * + 94 * - col2 + - ( + col2 ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2779
SELECT CAST ( NULL AS INTEGER ) * + 94 * - col2 + - ( + col2 ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2780
SELECT DISTINCT - - CAST( NULL AS SIGNED ) + col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2780
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) + col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-2781
SELECT ALL - ( - 53 ) DIV - col1 - + ( - cor0.col1 ) * col0 * col1 col1 FROM tab0 cor0
----
177504
329315
737009

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2781
SELECT ALL - ( - 53 ) / - col1 - + ( - cor0.col1 ) * col0 * col1 col1 FROM tab0 cor0
----
177504
329315
737009

query I rowsort
SELECT DISTINCT col0 * 43 FROM tab2 AS cor0
----
301
3354
3397

query I rowsort
SELECT DISTINCT ( - 61 ) * + col0 + + 39 * cor0.col1 FROM tab2 AS cor0
----
-2457
-4156
782

query I rowsort
SELECT + ( + col0 ) * - col1 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT + col0 + - col2 * col2 FROM tab0
----
-1065
-6635
34

onlyif mysql # use DIV operator for integer division
query I rowsort label-2786
SELECT col1 DIV ( + col1 ) AS col0 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2786
SELECT col1 / ( + col1 ) AS col0 FROM tab0
----
1
1
1

query I rowsort
SELECT ALL - 48 + - col0 AS col2 FROM tab0
----
-137
-72
-83

query I rowsort
SELECT DISTINCT + + cor1.col1 * 49 AS col2 FROM tab2 cor0 CROSS JOIN tab1 cor1
----
1274
490
637

query I rowsort
SELECT ALL + + col2 * - 40 + col0 * ( col2 ) FROM tab2 AS cor0
----
-891
1482
988

query I rowsort
SELECT ALL + cor0.col1 * + 36 FROM tab0 AS cor0
----
3096
3276
3492

query I rowsort
SELECT ALL 87 * - col1 * - col1 AS col2 FROM tab2 AS cor0
----
25143
302847
83607

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2792
SELECT DISTINCT CAST( - col0 AS SIGNED ) + + cor0.col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2792
SELECT DISTINCT CAST ( - col0 AS INTEGER ) + + cor0.col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + CAST ( col2 AS REAL ) + col0 * ( col0 + + col1 ) FROM tab1 cor0
----
141
4793
7536

query I rowsort
SELECT ALL - col2 + col0 * - col1 FROM tab2 AS cor0
----
-1381
-244
-4628

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col1 col2 FROM tab0, tab0 AS cor0 CROSS JOIN tab1, tab2, tab0 cor1
----
-86
-91
-97

query I rowsort
SELECT - 43 - col0 * col0 AS col1 FROM tab2 AS cor0
----
-6127
-6284
-92

onlyif mysql # use DIV operator for integer division
query I rowsort label-2797
SELECT DISTINCT col2 DIV 2 - cor0.col2 AS col2 FROM tab1 AS cor0
----
-27
-29
-48

skipif mysql # not compatible
query I rowsort label-2797
SELECT DISTINCT col2 / 2 - cor0.col2 AS col2 FROM tab1 AS cor0
----
-27
-29
-48

query I rowsort
SELECT DISTINCT + - ( col1 ) * col2 * + 33 AS col2 FROM tab2 AS cor0
----
-21318
-27621
-50622

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2799
SELECT - tab1.col2 * col1 - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2799
SELECT - tab1.col2 * col1 - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-2800
SELECT - + ( cor0.col0 ) DIV 28 + - cor0.col1 * + col2 * + 76 AS col2 FROM tab1 AS cor0
----
-106704
-43322
-94850

skipif mysql # not compatible
query I rowsort label-2800
SELECT - + ( cor0.col0 ) / 28 + - cor0.col1 * + col2 * + 76 AS col2 FROM tab1 AS cor0
----
-106704
-43322
-94850

onlyif mysql # use DIV operator for integer division
query I rowsort label-2801
SELECT DISTINCT col1 DIV + col1 col0 FROM tab1 AS cor0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2801
SELECT DISTINCT col1 / + col1 col0 FROM tab1 AS cor0
----
1

query I rowsort
SELECT ALL - 51 FROM tab1 cor0
----
-51
-51
-51

query I rowsort
SELECT ALL + col0 * col0 + col1 AS col0 FROM tab0 cor0
----
1322
662
8012

query I rowsort
SELECT DISTINCT - col1 + - col1 FROM tab0 cor0
----
-172
-182
-194

query I rowsort
SELECT + + col1 + - ( col2 ) * + col2 FROM tab2 AS cor0
----
-1427
-617
-698

query I rowsort
SELECT ALL col0 * + ( - cor0.col1 ) + col1 FROM tab0 AS cor0
----
-1978
-3298
-8008

query I rowsort
SELECT ALL + 2 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

query I rowsort
SELECT DISTINCT - - col0 + 47 FROM tab2 AS cor0
----
125
126
54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col2 * cor0.col0 col2 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT - col2 + + col0 * - col1 AS col2 FROM tab1 AS cor0
----
-1136
-132
-697

query I rowsort
SELECT - - col0 * - 18 AS col0 FROM tab0 AS cor0
----
-1602
-432
-630

query I rowsort
SELECT - cor0.col1 + - col0 * - col2 FROM tab1 AS cor0
----
136
3638
7667

query I rowsort
SELECT DISTINCT + + col2 * - 55 + - 6 * - col2 * + col0 FROM tab0 AS cor0
----
155
2937
39278

query I rowsort
SELECT ALL + + col2 * + col1 AS col2 FROM tab0 cor0
----
2838
7462
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2815
SELECT + - col1 + - CAST( NULL AS SIGNED ) * col2 col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2815
SELECT + - col1 + - CAST ( NULL AS INTEGER ) * col2 col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2816
SELECT DISTINCT col1 * + ( ( col0 ) ) + + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2816
SELECT DISTINCT col1 * + ( ( col0 ) ) + + CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + col1 + 50 * - col2 FROM tab0 AS cor0
----
-1564
-4009
47

query I rowsort
SELECT - col2 + - col1 * col1 AS col0 FROM tab0 cor0
----
-7429
-8363
-9410

onlyif mysql # use DIV operator for integer division
query I rowsort label-2819
SELECT col1 * 39 DIV + cor0.col0 FROM tab2 AS cor0
----
172
29
8

skipif mysql # not compatible
query I rowsort label-2819
SELECT col1 * 39 / + cor0.col0 FROM tab2 AS cor0
----
172
29
8

query I rowsort
SELECT + col0 * 35 FROM tab1 AS cor0
----
105
2240
2800

query I rowsort
SELECT - 31 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to f4b05206ee2fc0cf8007d9c3514885fa

query I rowsort
SELECT DISTINCT + - 18 FROM tab0 cor0
----
-18

query I rowsort
SELECT DISTINCT + ( col0 ) + col0 * - col0 AS col2 FROM tab1 AS cor0
----
-4032
-6
-6320

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 9 col0 FROM tab0 AS cor0
----
-9
-9
-9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2825
SELECT ALL col1 + - col1 * CAST( NULL AS SIGNED ) + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2825
SELECT ALL col1 + - col1 * CAST ( NULL AS INTEGER ) + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 * col2 + - col0 * - col2 * - col0 AS col2 FROM tab0
----
-1190
-18216
-642224

query I rowsort
SELECT col1 * - ( col1 ) + + col2 AS col2 FROM tab2 cor0
----
-251
-3455
-934

onlyif mysql # use DIV operator for integer division
query I rowsort label-2828
SELECT col2 + - cor0.col2 + - cor0.col1 DIV - col1 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2828
SELECT col2 + - cor0.col2 + - cor0.col1 / - col1 FROM tab0 AS cor0
----
1
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-2829
SELECT + + col0 + 11 DIV - col1 FROM tab1 AS cor0
----
3
63
80

skipif mysql # not compatible
query I rowsort label-2829
SELECT + + col0 + 11 / - col1 FROM tab1 AS cor0
----
3
63
80

query I rowsort
SELECT ALL + 66 + col2 AS col0 FROM tab2
----
104
92
93

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2831
SELECT - CAST( + col0 AS SIGNED ) * - col1 - ( col0 ) * cor0.col1 * + 18 AS col0 FROM tab2 AS cor0
----
-22831
-3689
-78234

skipif mysql # not compatible
query I rowsort label-2831
SELECT - CAST ( + col0 AS INTEGER ) * - col1 - ( col0 ) * cor0.col1 * + 18 AS col0 FROM tab2 AS cor0
----
-22831
-3689
-78234

query I rowsort
SELECT DISTINCT cor0.col2 + cor0.col2 FROM tab0, tab2 AS cor0
----
52
54
76

query I rowsort
SELECT + ( + tab1.col1 ) * cor0.col2 FROM tab1, tab0 AS cor0
----
9 values hashing to e8cccfbaf514cde36022d227725713e6

query I rowsort
SELECT ( ( + col1 ) ) AS col0 FROM tab1 cor0
----
10
13
26

query I rowsort
SELECT - cor0.col2 AS col1 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 44fdcd7cd603352d4d127811d164cc1e

query I rowsort
SELECT + ( col2 ) * - col2 FROM tab1
----
-2916
-3249
-9216

query I rowsort
SELECT - ( - col2 ) + + 49 + col2 FROM tab2 AS cor0
----
101
103
125

query I rowsort
SELECT - ( + col2 ) * cor0.col2 FROM tab0 AS cor0
----
-1
-1089
-6724

query I rowsort
SELECT col2 * - col0 * + 7 AS col1 FROM tab1 AS cor0
----
-1134
-25536
-53760

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col1 + - col1 * - col2 col2 FROM tab0 AS cor0
----
0
2752
7371

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2841
SELECT ALL ( col0 ) * + col2 * CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2841
SELECT ALL ( col0 ) * + col2 * CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 61 * 5 FROM tab0
----
305
305
305

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 * ( - col1 ) * + cor0.col2 col0 FROM tab2 AS cor0
----
-22599
-24548
-39884

query I rowsort
SELECT 69 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to 2810c3097fe4771e273cfff903357b40

query I rowsort
SELECT 31 * - col2 * col2 AS col0 FROM tab0
----
-208444
-31
-33759

query I rowsort
SELECT DISTINCT 44 AS col1 FROM tab2
----
44

query I rowsort
SELECT DISTINCT 9 FROM tab1, tab0 AS cor0
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 16 col1 FROM tab0, tab2 AS cor0
----
9 values hashing to be22ac76b42c6f7212ecc0ba7c89eb34

query I rowsort
SELECT ALL tab0.col0 AS col2 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT + col1 - + col0 * ( col0 ) FROM tab2
----
-18
-6025
-6224

onlyif mysql # use DIV operator for integer division
query I rowsort label-2851
SELECT ALL + + 21 DIV + ( - col2 ) AS col2 FROM tab0 AS cor0
----
-21
0
0

skipif mysql # not compatible
query I rowsort label-2851
SELECT ALL + + 21 / + ( - col2 ) AS col2 FROM tab0 AS cor0
----
-21
0
0

query I rowsort
SELECT DISTINCT + 82 * + 32 FROM tab1 cor0
----
2624

query I rowsort
SELECT DISTINCT + + col1 * 96 AS col0 FROM tab2 AS cor0
----
1632
2976
5664

query I rowsort
SELECT col2 * 48 + 98 FROM tab1 AS cor0
----
2690
2834
4706

query I rowsort
SELECT DISTINCT + col1 * 69 AS col0 FROM tab0
----
5934
6279
6693

query I rowsort
SELECT ALL - 61 * ( - col2 ) FROM tab1
----
3294
3477
5856

query I rowsort
SELECT DISTINCT + ( + col0 ) - col1 * + col2 FROM tab2 AS cor0
----
-1456
-567
-830

query I rowsort
SELECT DISTINCT - 76 * - ( cor0.col1 * - col2 ) FROM tab1 AS cor0
----
-106704
-43320
-94848

query I rowsort
SELECT 16 AS col0 FROM tab0 cor0
----
16
16
16

query I rowsort
SELECT col0 + - 10 FROM tab2 AS cor0
----
-3
68
69

query I rowsort
SELECT DISTINCT col2 * + 6 + + col1 * + 59 FROM tab1 cor0
----
1343
1858
932

query I rowsort
SELECT DISTINCT - - col2 - col0 AS col1 FROM tab2 AS cor0
----
-41
-52
20

query I rowsort
SELECT + 75 AS col2 FROM tab1 AS cor0
----
75
75
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 51 * - ( - col0 ) * + 77 + + 40 col1 FROM tab1 AS cor0
----
11821
251368
314200

query I rowsort
SELECT DISTINCT col2 * + 4 AS col1 FROM tab1 AS cor0
----
216
228
384

query I rowsort
SELECT ALL - - cor0.col0 * col1 + - col0 + + col1 * + cor0.col2 * col1 FROM tab1 AS cor0
----
17184
36579
6276

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 85 + col1 + - col1 col0 FROM tab2 AS cor0
----
-85
-85
-85

query I rowsort
SELECT col0 + - col1 * + col1 + + col2 FROM tab0 AS cor0
----
-7339
-8110
-9373

query I rowsort
SELECT - col1 * - col0 + + ( cor0.col2 ) * col0 FROM tab2 AS cor0
----
406
4345
6630

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2870
SELECT ALL + col2 * CAST( NULL AS SIGNED ) * col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2870
SELECT ALL + col2 * CAST ( NULL AS INTEGER ) * col1 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col0 * 62 + 17 + + col1 * + 47 FROM tab0 AS cor0
----
5547
6746
9812

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 + + col1 + col0 col2 FROM tab1 AS cor0
----
-25
-3
17

query I rowsort
SELECT ( 14 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 83e5779d2487d12495e7d816c797264f

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2874
SELECT col0 + CAST( NULL AS SIGNED ) + col2 * + col1 * col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2874
SELECT col0 + CAST ( NULL AS INTEGER ) + col2 * + col1 * col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 97 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-2876
SELECT ALL - col0 DIV + cor0.col1 + - cor0.col0 + + col0 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2876
SELECT ALL - col0 / + cor0.col1 + - cor0.col0 + + col0 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - col1 - + col2 AS col2 FROM tab0 AS cor0
----
-119
-173
-98

query I rowsort
SELECT - 82 + - col2 AS col2 FROM tab2 AS cor0
----
-108
-109
-120

query I rowsort
SELECT ALL col1 + col0 * col0 FROM tab1 cor0
----
35
4106
6413

query I rowsort
SELECT ALL - 24 + col0 FROM tab2 AS cor0
----
-17
54
55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 99 col1 FROM tab1 AS cor0
----
-99
-99
-99

query I rowsort
SELECT DISTINCT - 23 + col2 * cor0.col2 FROM tab2 AS cor0
----
1421
653
706

query I rowsort
SELECT DISTINCT 18 + - col2 AS col0 FROM tab0 AS cor0
----
-15
-64
17

query I rowsort
SELECT DISTINCT - col1 * cor0.col2 - col2 * col2 * + col0 AS col1 FROM tab0 AS cor0
----
-132
-28974
-605898

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - ( col0 ) + - 25 * col2 + cor0.col2 col2 FROM tab1 cor0
----
-1299
-1432
-2384

query I rowsort
SELECT DISTINCT 36 * col1 AS col1 FROM tab2 AS cor0
----
1116
2124
612

query I rowsort
SELECT DISTINCT 37 + - col0 AS col0 FROM tab2 AS cor0
----
-41
-42
30

query I rowsort
SELECT ( + 48 ) * col0 * - ( - ( - tab2.col0 ) ) FROM tab2
----
-2352
-292032
-299568

query I rowsort
SELECT DISTINCT - 31 * + col1 FROM tab2 AS cor0
----
-1829
-527
-961

query I rowsort
SELECT DISTINCT col0 + - col0 * - 38 + col0 FROM tab2 AS cor0
----
280
3120
3160

query I rowsort
SELECT + 63 + + col1 * 65 FROM tab0 AS cor0
----
5653
5978
6368

query I rowsort
SELECT ALL + col1 - col2 AS col0 FROM tab2 AS cor0
----
-21
33
4

query I rowsort
SELECT ALL - ( - 99 ) FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 05ea182fd6036c7f5e0ea08fc061cc67

onlyif mysql # use DIV operator for integer division
query I rowsort label-2894
SELECT tab1.col1 DIV 67 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-2894
SELECT tab1.col1 / 67 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

onlyif mysql # use DIV operator for integer division
query I rowsort label-2895
SELECT + tab0.col1 + + col1 * col1 DIV 10 FROM tab0
----
1037
825
919

skipif mysql # not compatible
query I rowsort label-2895
SELECT + tab0.col1 + + col1 * col1 / 10 FROM tab0
----
1037
825
919

query I rowsort
SELECT DISTINCT + 8 * col0 FROM tab0 AS cor0
----
192
280
712

query I rowsort
SELECT ALL + ( col2 ) * col1 + 87 AS col0 FROM tab1 AS cor0
----
1335
1491
657

query I rowsort
SELECT ALL - + cor0.col0 + 7 FROM tab1 AS cor0
----
-57
-73
4

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2899
SELECT DISTINCT - + CAST( NULL AS SIGNED ) - + 75 * col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2899
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) - + 75 * col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT 34 FROM tab2, tab1 AS cor0, tab2 cor1
----
27 values hashing to 4e2ca147a59e0d5661c28cf3e5431caa

query I rowsort
SELECT ALL + col0 + col0 * col0 + + col0 * col0 FROM tab1
----
12880
21
8256

query I rowsort
SELECT - 47 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 6942a0d9558277afd0d00408d65cf5aa

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2903
SELECT ALL - CAST( 55 AS SIGNED ) FROM tab2
----
-55
-55
-55

skipif mysql # not compatible
query I rowsort label-2903
SELECT ALL - CAST ( 55 AS INTEGER ) FROM tab2
----
-55
-55
-55

query I rowsort
SELECT - ( + 31 ) * + col0 AS col0 FROM tab1
----
-1984
-2480
-93

onlyif mysql # use DIV operator for integer division
query I rowsort label-2905
SELECT ALL - col2 + + col1 DIV - col1 FROM tab0
----
-2
-34
-83

skipif mysql # not compatible
query I rowsort label-2905
SELECT ALL - col2 + + col1 / - col1 FROM tab0
----
-2
-34
-83

query I rowsort
SELECT DISTINCT + ( + 76 ) FROM tab2 AS cor0
----
76

onlyif mysql # use DIV operator for integer division
query I rowsort label-2907
SELECT - cor0.col1 DIV - cor0.col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-2907
SELECT - cor0.col1 / - cor0.col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT + + col2 * cor0.col2 + col2 FROM tab1 AS cor0
----
2970
3306
9312

query I rowsort
SELECT DISTINCT + 78 FROM tab0, tab0 AS cor0
----
78

query I rowsort
SELECT ALL cor0.col0 AS col1 FROM tab1, tab0 cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63

query I rowsort
SELECT DISTINCT col1 * 82 FROM tab1 cor0
----
1066
2132
820

query I rowsort
SELECT ALL + 81 + - 75 FROM tab2 AS cor0
----
6
6
6

query I rowsort
SELECT - col1 * 27 FROM tab0 AS cor0
----
-2322
-2457
-2619

query I rowsort
SELECT ALL + col1 + - cor0.col2 * + cor0.col0 AS col1 FROM tab2 AS cor0
----
-158
-1969
-2985

onlyif mysql # use DIV operator for integer division
query I rowsort label-2915
SELECT DISTINCT - - cor0.col1 + col2 DIV - col1 AS col1 FROM tab2 AS cor0
----
15
31
59

skipif mysql # not compatible
query I rowsort label-2915
SELECT DISTINCT - - cor0.col1 + col2 / - col1 AS col1 FROM tab2 AS cor0
----
15
31
59

query I rowsort
SELECT - 6 + - 0 * + col2 AS col1 FROM tab2 AS cor0
----
-6
-6
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * 35 + + col1 * - col1 * - col1 col2 FROM tab1 AS cor0
----
19466
2995
5557

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2918
SELECT ALL - CAST( col2 AS SIGNED ) + - col1 FROM tab0 AS cor0
----
-119
-173
-98

skipif mysql # not compatible
query I rowsort label-2918
SELECT ALL - CAST ( col2 AS INTEGER ) + - col1 FROM tab0 AS cor0
----
-119
-173
-98

query I rowsort
SELECT - col2 * 66 AS col1 FROM tab1
----
-3564
-3762
-6336

query I rowsort
SELECT ALL 68 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 599bee15ac4cc39b859854e07dfe7990

query I rowsort
SELECT + ( - cor0.col2 ) * col0 - 59 AS col1 FROM tab2 cor0
----
-2087
-248
-3061

onlyif mysql # use DIV operator for integer division
query I rowsort label-2922
SELECT + cor0.col1 DIV 82 + col1 col1 FROM tab0 cor0
----
87
92
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2922
SELECT + cor0.col1 / 82 + col1 col1 FROM tab0 cor0
----
87
92
98

query I rowsort
SELECT ALL + 49 + col1 FROM tab0 AS cor0
----
135
140
146

query I rowsort
SELECT ALL - 48 * - col1 AS col1 FROM tab2 AS cor0
----
1488
2832
816

onlyif mysql # use DIV operator for integer division
query I rowsort label-2925
SELECT DISTINCT 50 DIV + col1 AS col1 FROM tab1 cor0
----
1
3
5

skipif mysql # not compatible
query I rowsort label-2925
SELECT DISTINCT 50 / + col1 AS col1 FROM tab1 cor0
----
1
3
5

onlyif mysql # use DIV operator for integer division
query I rowsort label-2926
SELECT col1 DIV - 27 FROM tab0
----
-3
-3
-3

skipif mysql # not compatible
query I rowsort label-2926
SELECT col1 / - 27 FROM tab0
----
-3
-3
-3

onlyif mysql # use DIV operator for integer division
query I rowsort label-2927
SELECT DISTINCT 54 DIV + col1 FROM tab2
----
0
1
3

skipif mysql # not compatible
query I rowsort label-2927
SELECT DISTINCT 54 / + col1 FROM tab2
----
0
1
3

query I rowsort
SELECT + cor0.col0 + cor0.col1 FROM tab2, tab0 AS cor0
----
9 values hashing to f65167375aa80cc8b3f3f8987d2662a3

query I rowsort
SELECT + cor1.col1 + 49 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ca39a2df60f5559cd03c4dc4a8b9eeb7

query I rowsort
SELECT DISTINCT + 92 * + col0 AS col1 FROM tab2 AS cor0
----
644
7176
7268

query I rowsort
SELECT ALL - 92 * - col0 AS col2 FROM tab2 AS cor0
----
644
7176
7268

query I rowsort
SELECT ALL - ( + col2 ) AS col2 FROM tab1 cor0
----
-54
-57
-96

query I rowsort
SELECT DISTINCT tab1.col2 * col0 * col0 AS col2 FROM tab1
----
233472
486
614400

query I rowsort
SELECT + col2 * - col1 + - 29 * col0 FROM tab2 AS cor0
----
-1040
-2937
-3796

query I rowsort
SELECT 62 + + col1 FROM tab1 AS cor0
----
72
75
88

query I rowsort
SELECT 99 AS col2 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 05ea182fd6036c7f5e0ea08fc061cc67

query I rowsort
SELECT DISTINCT + col1 * ( - 55 ) + + col1 FROM tab0 cor0
----
-4644
-4914
-5238

onlyif mysql # use DIV operator for integer division
query I rowsort label-2938
SELECT tab1.col2 DIV 14 AS col2 FROM tab1
----
3
4
6

skipif mysql # not compatible
query I rowsort label-2938
SELECT tab1.col2 / 14 AS col2 FROM tab1
----
3
4
6

query I rowsort
SELECT + col0 * - 59 FROM tab0
----
-1416
-2065
-5251

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + 73 col0 FROM tab0 AS cor0
----
2409
5986
73

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2941
SELECT ALL + col0 + - CAST( 63 * - col2 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
2103
5255
98

skipif mysql # not compatible
query I rowsort label-2941
SELECT ALL + col0 + - CAST ( 63 * - col2 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
2103
5255
98

query I rowsort
SELECT ALL + col1 + col0 * - 11 FROM tab2 AS cor0
----
-46
-799
-852

query I rowsort
SELECT ALL + col0 * + ( + col1 + + col0 ) FROM tab2 cor0
----
10686
266
7584

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 + + 96 * cor0.col0 col2 FROM tab1 AS cor0
----
291
6208
7760

query I rowsort
SELECT ALL - - 88 + - col0 FROM tab0 AS cor0
----
-1
53
64

query I rowsort
SELECT ALL + ( - ( cor0.col2 ) ) FROM tab2, tab1 AS cor0
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba

query I rowsort
SELECT + col1 + + ( col0 ) + col1 AS col2 FROM tab2
----
113
196
69

query I rowsort
SELECT 46 + 68 AS col0 FROM tab0 AS cor0
----
114
114
114

onlyif mysql # use DIV operator for integer division
query I rowsort label-2949
SELECT + tab1.col2 + col2 DIV 73 FROM tab1
----
54
57
97

skipif mysql # not compatible
query I rowsort label-2949
SELECT + tab1.col2 + col2 / 73 FROM tab1
----
54
57
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2950
SELECT DISTINCT + col1 * + CAST( NULL AS DECIMAL ) + - 56 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2950
SELECT DISTINCT + col1 * + CAST ( NULL AS REAL ) + - 56 FROM tab2
----
NULL

query I rowsort
SELECT - + cor0.col2 * - col0 AS col1 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT - col0 + + 61 * cor0.col0 * col1 FROM tab1 AS cor0
----
38976
4755
63360

query I rowsort
SELECT + + col2 * 79 + col2 * - col0 FROM tab1 cor0
----
-96
4104
855

query I rowsort
SELECT + 39 * col0 AS col1 FROM tab2 AS cor0
----
273
3042
3081

query I rowsort
SELECT - - col0 * + col0 + - col2 AS col0 FROM tab2 AS cor0
----
22
6058
6203

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col1 * + col0 col2 FROM tab0 AS cor0
----
177504
329315
737009

query I rowsort
SELECT DISTINCT - - 89 * - ( col2 ) - + 33 FROM tab2 AS cor0
----
-2347
-2436
-3415

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col0 col2 FROM tab1 cor0
----
4096
6400
9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2959
SELECT DISTINCT CAST( NULL AS SIGNED ) * - ( cor0.col2 ) + col0 AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2959
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - ( cor0.col2 ) + col0 AS col0 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( col1 ) * + col0 col0 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT col2 + col0 * 47 FROM tab1 AS cor0
----
195
3065
3856

onlyif mysql # use DIV operator for integer division
query I rowsort label-2962
SELECT DISTINCT 48 DIV tab0.col0 col0 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
0
1
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2962
SELECT DISTINCT 48 / tab0.col0 col0 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
0
1
2

query I rowsort
SELECT + ( col1 ) + - col1 - tab2.col1 FROM tab2
----
-17
-31
-59

query I rowsort
SELECT - + cor0.col0 + cor0.col1 AS col1 FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT DISTINCT - 9 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
-9

query I rowsort
SELECT + col0 * col0 * 78 FROM tab1
----
319488
499200
702

query I rowsort
SELECT ALL - tab2.col0 AS col0 FROM tab2, tab0, tab1 cor0
----
27 values hashing to c82df1de3cb666224690a83f3d790d79

query I rowsort
SELECT - ( - col1 ) * 6 AS col0 FROM tab0
----
516
546
582

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - 82 * col1 * - col1 col1 FROM tab0 AS cor0
----
606558
679133
771635

query I rowsort
SELECT ALL col1 + - cor0.col2 FROM tab0 cor0
----
53
9
96

query I rowsort
SELECT ALL - col2 * ( cor0.col0 * - col1 ) + col1 AS col1 FROM tab0 AS cor0
----
3492
664209
68198

query I rowsort
SELECT ALL + col2 + 68 * col1 AS col0 FROM tab1 AS cor0
----
1822
737
980

onlyif mysql # use DIV operator for integer division
query I rowsort label-2973
SELECT - + cor0.col2 DIV ( 34 ) + col1 FROM tab0 cor0
----
86
89
97

skipif mysql # not compatible
query I rowsort label-2973
SELECT - + cor0.col2 / ( 34 ) + col1 FROM tab0 cor0
----
86
89
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2974
SELECT col1 * CAST( NULL AS SIGNED ) - + 44 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2974
SELECT col1 * CAST ( NULL AS INTEGER ) - + 44 AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2975
SELECT ALL col2 + CAST( ( + col0 ) AS SIGNED ) AS col0 FROM tab1
----
121
176
57

skipif mysql # not compatible
query I rowsort label-2975
SELECT ALL col2 + CAST ( ( + col0 ) AS INTEGER ) AS col0 FROM tab1
----
121
176
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 38 * + col1 * - col0 col1 FROM tab1 AS cor0
----
24320
2964
39520

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2977
SELECT - CAST( col0 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-7
-78
-79

skipif mysql # not compatible
query I rowsort label-2977
SELECT - CAST ( col0 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-7
-78
-79

onlyif mysql # use DIV operator for integer division
query I rowsort label-2978
SELECT ALL - - col0 DIV - cor0.col0 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2978
SELECT ALL - - col0 / - cor0.col0 FROM tab2 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ALL - col1 * - col0 * - col1 + col2 + tab0.col0 FROM tab0
----
-177447
-329279
-736838

query I rowsort
SELECT ALL + 18 * 64 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to c0fbd589ffb6a23b3d06a4e6e8db2139

query I rowsort
SELECT DISTINCT - + 94 + col1 AS col0 FROM tab2 AS cor0
----
-35
-63
-77

query I rowsort
SELECT DISTINCT ( col1 ) * 27 + - col1 * - col1 * 9 FROM tab1 AS cor0
----
1170
1872
6786

onlyif mysql # use DIV operator for integer division
query I rowsort label-2983
SELECT + col0 DIV col0 + - col1 AS col1 FROM tab0 AS cor0
----
-85
-90
-96

skipif mysql # not compatible
query I rowsort label-2983
SELECT + col0 / col0 + - col1 AS col1 FROM tab0 AS cor0
----
-85
-90
-96

query I rowsort
SELECT ALL + - col0 * - col0 AS col2 FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT col1 * ( + col1 ) * 28 FROM tab1
----
18928
2800
4732

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 72 col2 FROM tab0
----
72
72
72

query I rowsort
SELECT DISTINCT + + col0 * col0 AS col0 FROM tab0 cor0
----
1225
576
7921

onlyif mysql # use DIV operator for integer division
query I rowsort label-2988
SELECT ( col0 ) * col2 - col2 DIV - col1 AS col1 FROM tab2 AS cor0
----
189
2028
3004

skipif mysql # not compatible
query I rowsort label-2988
SELECT ( col0 ) * col2 - col2 / - col1 AS col1 FROM tab2 AS cor0
----
189
2028
3004

query I rowsort
SELECT ALL + + col0 * - col1 * col2 + - col0 FROM tab0 AS cor0
----
-3430
-664207
-68136

query I rowsort
SELECT DISTINCT - col0 + + cor0.col0 AS col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT 1 + col2 + ( 11 ) AS col1 FROM tab1 AS cor0
----
108
66
69

query I rowsort
SELECT - ( + cor0.col1 ) * cor0.col1 * 76 + + col2 FROM tab2 cor0
----
-21926
-264530
-73009

query I rowsort
SELECT ALL + + 28 * col0 AS col0 FROM tab0 AS cor0
----
2492
672
980

query I rowsort
SELECT ALL + 36 AS col2 FROM tab2
----
36
36
36

query I rowsort
SELECT ALL + tab2.col1 - col2 * col2 AS col0 FROM tab2
----
-1427
-617
-698

query I rowsort
SELECT ALL ( col2 ) + + cor0.col0 AS col2 FROM tab0 AS cor0
----
171
36
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 - cor0.col0 col1 FROM tab2 AS cor0
----
-137
-38
-96

query I rowsort
SELECT DISTINCT + col2 * - cor0.col2 + col1 FROM tab0 AS cor0
----
-1003
-6633
96

query I rowsort
SELECT ALL - ( col1 ) + col0 FROM tab2 AS cor0
----
-24
19
62

query I rowsort
SELECT + - cor0.col2 * col0 AS col1 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT DISTINCT col0 * + col2 * - col2 FROM tab0
----
-26136
-35
-598436

query I rowsort
SELECT DISTINCT + + col0 * + col0 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT + - cor0.col0 + + col0 * col0 + + col0 * + col2 FROM tab1 AS cor0
----
14000
168
7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-3004
SELECT DISTINCT - - col2 + col1 * - cor0.col2 DIV col2 FROM tab1 AS cor0
----
28
47
83

skipif mysql # not compatible
query I rowsort label-3004
SELECT DISTINCT - - col2 + col1 * - cor0.col2 / col2 FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT ALL - cor0.col0 * - col2 - col2 FROM tab0 cor0
----
34
7216
759

query I rowsort
SELECT + cor0.col2 + - cor0.col2 AS col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col1 + - col1 * - col0 AS col1 FROM tab1
----
104
1053
650

query I rowsort
SELECT + col1 + tab2.col1 * - col0 * - col1 AS col2 FROM tab2
----
22848
271577
6758

query I rowsort
SELECT ALL - col1 + - tab2.col2 * col0 + col1 AS col0 FROM tab2
----
-189
-2028
-3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col1 col2 FROM tab2, tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT col1 * col1 * + col0 FROM tab2
----
22831
271518
6727

onlyif mysql # use DIV operator for integer division
query I rowsort label-3012
SELECT - col1 DIV col2 + + col1 + - col2 AS col1 FROM tab1 AS cor0
----
-28
-47
-83

skipif mysql # not compatible
query I rowsort label-3012
SELECT - col1 / col2 + + col1 + - col2 AS col1 FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT - cor0.col2 + - col0 * cor0.col1 AS col2 FROM tab2 AS cor0
----
-1381
-244
-4628

query I rowsort
SELECT - col0 + - col0 * - col0 + + col1 FROM tab2 AS cor0
----
6065
6179
73

query I rowsort
SELECT DISTINCT + col2 * col0 + + col0 FROM tab0 cor0
----
70
7387
816

query I rowsort
SELECT + + 62 - col0 * - col0 FROM tab2 AS cor0
----
111
6146
6303

query I rowsort
SELECT + ( - col0 ) - col1 AS col0 FROM tab1 cor0
----
-29
-74
-93

query I rowsort
SELECT ALL col2 + - col1 * - cor0.col2 AS col2 FROM tab2 AS cor0
----
1560
684
864

onlyif mysql # use DIV operator for integer division
query I rowsort label-3019
SELECT DISTINCT - cor0.col1 DIV + col0 + - col0 FROM tab0 cor0
----
-27
-37
-90

skipif mysql # not compatible
query I rowsort label-3019
SELECT DISTINCT - cor0.col1 / + col0 + - col0 FROM tab0 cor0
----
-27
-37
-90

query I rowsort
SELECT DISTINCT - ( - col2 ) + - tab0.col2 * col1 + - col2 AS col2 FROM tab0
----
-2838
-7462
-97

query I rowsort
SELECT ALL - 7 AS col1 FROM tab0 cor0
----
-7
-7
-7

onlyif mysql # use DIV operator for integer division
query I rowsort label-3022
SELECT + - col2 DIV + col0 AS col0 FROM tab1 cor0
----
-1
-18
0

skipif mysql # not compatible
query I rowsort label-3022
SELECT + - col2 / + col0 AS col0 FROM tab1 cor0
----
-1
-18
0

query I rowsort
SELECT DISTINCT - ( cor0.col1 ) * col0 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT 11 * + col2 FROM tab0 AS cor0
----
11
363
902

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - cor0.col1 + col1 * + col2 col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + + col1 + + col2 * - col1 * cor0.col1 + + cor0.col2 * - col2 FROM tab0 AS cor0
----
-245071
-685675
-9313

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * - col0 col1 FROM tab2 cor0
----
-1343
-217
-4602

query I rowsort
SELECT ALL - 89 * col2 FROM tab1
----
-4806
-5073
-8544

onlyif mysql # use DIV operator for integer division
query I rowsort label-3029
SELECT ALL col0 DIV - 2 FROM tab2
----
-3
-39
-39

skipif mysql # not compatible
query I rowsort label-3029
SELECT ALL col0 / - 2 FROM tab2
----
-3
-39
-39

query I rowsort
SELECT DISTINCT + col1 * + col0 + col0 AS col2 FROM tab1 AS cor0
----
1120
704
81

query I rowsort
SELECT ALL - + cor0.col0 * col2 AS col0 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT DISTINCT + 29 AS col2 FROM tab1 AS cor0
----
29

query I rowsort
SELECT ALL 10 + + col2 FROM tab2 AS cor0
----
36
37
48

query I rowsort
SELECT DISTINCT col1 * col0 - col1 FROM tab1
----
1027
52
630

query I rowsort
SELECT ALL 40 + col1 + col2 AS col2 FROM tab1
----
107
120
149

query I rowsort
SELECT - + col2 + col1 + + col1 AS col1 FROM tab0 AS cor0
----
100
139
193

query I rowsort
SELECT - col1 + + col2 * col1 FROM tab1 cor0
----
1235
1378
560

onlyif mysql # use DIV operator for integer division
query I rowsort label-3038
SELECT - 50 DIV + col0 AS col1 FROM tab0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-3038
SELECT - 50 / + col0 AS col1 FROM tab0
----
-1
-2
0

query I rowsort
SELECT ALL - col0 * col1 + - col1 + + tab2.col2 AS col2 FROM tab2
----
-1322
-221
-4635

query I rowsort
SELECT ALL 9 + - col1 * col1 AS col1 FROM tab1
----
-160
-667
-91

onlyif mysql # use DIV operator for integer division
query I rowsort label-3041
SELECT DISTINCT + col1 DIV - col2 AS col0 FROM tab0
----
-1
-2
-97

skipif mysql # not compatible
query I rowsort label-3041
SELECT DISTINCT + col1 / - col2 AS col0 FROM tab0
----
-1
-2
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-3042
SELECT DISTINCT - col2 DIV tab2.col1 FROM tab2
----
-2
0

skipif mysql # not compatible
query I rowsort label-3042
SELECT DISTINCT - col2 / tab2.col1 FROM tab2
----
-2
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3043
SELECT - col1 DIV - col1 + - col2 FROM tab2
----
-25
-26
-37

skipif mysql # not compatible
query I rowsort label-3043
SELECT - col1 / - col1 + - col2 FROM tab2
----
-25
-26
-37

query I rowsort
SELECT + col2 * col1 * - col0 AS col2 FROM tab1
----
-36480
-4212
-99840

query I rowsort
SELECT ALL col0 + col1 + col0 AS col0 FROM tab0
----
134
167
269

query I rowsort
SELECT ALL col2 + + col0 - col2 FROM tab1
----
3
64
80

query I rowsort
SELECT - col1 * - col1 * col2 FROM tab0
----
244068
679042
9409

query I rowsort
SELECT ALL - col1 + col1 + tab0.col1 * + col1 AS col0 FROM tab0
----
7396
8281
9409

query I rowsort
SELECT col1 AS col2 FROM tab0 WHERE NULL = NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-3050
SELECT ALL tab0.col2 DIV + col2 + col1 AS col2 FROM tab0
----
87
92
98

skipif mysql # not compatible
query I rowsort label-3050
SELECT ALL tab0.col2 / + col2 + col1 AS col2 FROM tab0
----
87
92
98

query I rowsort
SELECT DISTINCT - col1 * - col2 + - col2 * + col1 AS col2 FROM tab1
----
0

query I rowsort
SELECT + col0 + tab0.col0 * + col0 * col0 AS col2 FROM tab0
----
13848
42910
705058

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT DISTINCT col1 + - col2 * + col1 + tab0.col0 * - col2 FROM tab0
----
-14669
-35
-3544

query I rowsort
SELECT DISTINCT + col1 + + col2 * - col1 + col2 AS col2 FROM tab1
----
-1139
-1324
-503

query I rowsort
SELECT DISTINCT tab1.col1 + col1 AS col2 FROM tab1 WHERE NOT NULL NOT BETWEEN col1 / col1 + col0 AND NULL
----

query I rowsort
SELECT col0 * - col2 * col0 - - col1 AS col2 FROM tab2
----
-1292
-158125
-237141

onlyif mysql # use DIV operator for integer division
query I rowsort label-3058
SELECT + - col2 DIV - col1 + ( + col2 ) 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-3058
SELECT + - col2 / - col1 + ( + col2 ) col1 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT col2 AS col2 FROM tab2 WHERE NOT ( col1 ) IN ( - col2 )
----
26
27
38

query I rowsort
SELECT col2 + col2 * + tab2.col2 * - col0 FROM tab2
----
-114038
-5076
-52702

query I rowsort
SELECT DISTINCT + col2 + - tab2.col0 AS col2 FROM tab2
----
-41
-52
20

query I rowsort
SELECT ALL + col0 + + col1 + col2 FROM tab0
----
133
143
262

query I rowsort
SELECT - tab2.col1 * + col2 - - col0 FROM tab2 WHERE NOT NULL IN ( tab2.col2 )
----

query I rowsort
SELECT DISTINCT tab2.col0 * tab2.col0 + + col2 + col2 FROM tab2
----
103
6136
6317

onlyif mysql # use DIV operator for integer division
query I rowsort label-3065
SELECT - col1 DIV - col1 + tab2.col2 * - col1 * + col1 col0 FROM tab2
----
-10981
-25946
-90505

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3065
SELECT - col1 / - col1 + tab2.col2 * - col1 * + col1 col0 FROM tab2
----
-10981
-25946
-90505

onlyif mysql # use DIV operator for integer division
query I rowsort label-3066
SELECT DISTINCT col0 DIV col0 + col1 AS col0 FROM tab1
----
11
14
27

skipif mysql # not compatible
query I rowsort label-3066
SELECT DISTINCT col0 / col0 + col1 AS col0 FROM tab1
----
11
14
27

query I rowsort
SELECT col1 AS col2 FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-3068
SELECT col1 DIV col1 + tab0.col0 AS col0 FROM tab0
----
25
36
90

skipif mysql # not compatible
query I rowsort label-3068
SELECT col1 / col1 + tab0.col0 AS col0 FROM tab0
----
25
36
90

query I rowsort
SELECT ALL col1 * + col2 AS col1 FROM tab0
----
2838
7462
97

query I rowsort
SELECT ALL tab1.col1 * - tab1.col2 AS col2 FROM tab1 WHERE - col2 = col1
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL BETWEEN col1 + - col1 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * col2 + tab1.col2 * col2 col0 FROM tab1
----
10464
3819
4320

query I rowsort
SELECT DISTINCT + col0 - + tab1.col0 * col0 FROM tab1
----
-4032
-6
-6320

query I rowsort
SELECT - ( col1 ) * tab2.col1 FROM tab2
----
-289
-3481
-961

query I rowsort
SELECT + 6 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to f1e8f0199f3714ee8fcc24ce0cc3ea04

query I rowsort
SELECT ALL + 28 + - col1 - - col2 AS col1 FROM tab2 AS cor0
----
-5
24
49

query I rowsort
SELECT 62 + cor0.col2 FROM tab2 cor0
----
100
88
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-3078
SELECT ALL + + col1 * col2 + ( + ( + col1 ) ) DIV 29 + col0 FROM tab0 AS cor0
----
135
2864
7554

skipif mysql # not compatible
query I rowsort label-3078
SELECT ALL + + col1 * col2 + ( + ( + col1 ) ) / 29 + col0 FROM tab0 AS cor0
----
135
2864
7554

onlyif mysql # use DIV operator for integer division
query I rowsort label-3079
SELECT DISTINCT - + col0 * + col2 - - 41 DIV ( + col2 * 88 ) FROM tab1 AS cor0
----
-162
-3648
-7680

skipif mysql # not compatible
query I rowsort label-3079
SELECT DISTINCT - + col0 * + col2 - - 41 / ( + col2 * 88 ) FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT col1 * + tab1.col0 - + 31 FROM tab1
----
1009
47
609

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * + ( - 3 ) col2 FROM tab1
----
-30
-39
-78

query I rowsort
SELECT + col2 + - ( - col2 ) * cor0.col0 AS col0 FROM tab1 AS cor0
----
216
3705
7776

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3083
SELECT CAST( 31 AS SIGNED ) * tab2.col2 AS col2 FROM tab2, tab1 cor0
----
9 values hashing to 36aacb3bc0b49f2dd7a7495233630fa1

skipif mysql # not compatible
query I rowsort label-3083
SELECT CAST ( 31 AS INTEGER ) * tab2.col2 AS col2 FROM tab2, tab1 cor0
----
9 values hashing to 36aacb3bc0b49f2dd7a7495233630fa1

query I rowsort
SELECT - cor1.col0 AS col0 FROM tab0, tab0 AS cor0, tab1 cor1
----
27 values hashing to 729c1edda9332398299f39cd174ed840

query I rowsort
SELECT + cor0.col0 + - col0 + col1 AS col1 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT + col1 * + col2 + + cor0.col0 AS col0 FROM tab2 AS cor0
----
1612
725
844

query I rowsort
SELECT DISTINCT + 16 * - cor0.col1 + col0 + 43 * 82 AS col1 FROM tab1 AS cor0
----
3113
3398
3430

onlyif mysql # use DIV operator for integer division
query I rowsort label-3088
SELECT DISTINCT + 32 - col0 DIV + cor0.col0 AS col2 FROM tab1 AS cor0
----
31

skipif mysql # not compatible
query I rowsort label-3088
SELECT DISTINCT + 32 - col0 / + cor0.col0 AS col2 FROM tab1 AS cor0
----
31

query I rowsort
SELECT ALL col1 * 6 AS col2 FROM tab1 cor0
----
156
60
78

query I rowsort
SELECT - - 83 + col1 * col2 FROM tab2 AS cor0
----
1617
729
920

query I rowsort
SELECT - 63 + 48 + col0 * + col2 FROM tab2 AS cor0
----
174
2013
2987

query I rowsort
SELECT + - 26 * - 70 AS col1 FROM tab1 cor0
----
1820
1820
1820

query I rowsort
SELECT DISTINCT + + col2 * - col0 + + col2 * col0 FROM tab2 cor0
----
0

query I rowsort
SELECT - - col0 - ( col2 ) AS col2 FROM tab1 cor0
----
-16
-51
7

query I rowsort
SELECT - + ( ( + col0 ) ) + - 68 * col1 * + col2 FROM tab1 AS cor0
----
-38824
-84944
-95475

onlyif mysql # use DIV operator for integer division
query I rowsort label-3096
SELECT DISTINCT CAST( + col1 AS SIGNED ) + col1 DIV col1 + tab2.col1 FROM tab2
----
119
35
63

skipif mysql # not compatible
query I rowsort label-3096
SELECT DISTINCT CAST ( + col1 AS INTEGER ) + col1 / col1 + tab2.col1 FROM tab2
----
119
35
63

query I rowsort
SELECT DISTINCT 98 * col2 * col2 + 34 AS col0 FROM tab2
----
141546
66282
71476

query I rowsort
SELECT ALL 50 + + tab0.col2 + col2 FROM tab0
----
116
214
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 66 col0 FROM tab2
----
66
66
66

query I rowsort
SELECT col1 * ( + col2 ) FROM tab1
----
1248
1404
570

query I rowsort
SELECT + ( ( col0 ) ) * + col1 * col1 AS col1 FROM tab2
----
22831
271518
6727

query I rowsort
SELECT - 26 - + col2 * col0 AS col0 FROM tab0 AS cor0
----
-61
-7324
-818

query I rowsort
SELECT DISTINCT 78 * col0 * col0 FROM tab0 AS cor0
----
44928
617838
95550

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 * + col2 col2 FROM tab0 cor0
----
-1
-1089
-6724

query I rowsort
SELECT col1 + col0 * - ( col0 ) + col1 AS col2 FROM tab1 cor0
----
-4076
-6374
43

query I rowsort
SELECT ALL 85 * col2 + - 0 FROM tab0 AS cor0
----
2805
6970
85

query I rowsort
SELECT - 97 + - cor0.col1 FROM tab0 AS cor0
----
-183
-188
-194

query I rowsort
SELECT DISTINCT + col1 * col2 * col0 + col1 * col0 FROM tab1 AS cor0
----
100880
37120
4290

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 54 col2 FROM tab1 AS cor0
----
54
54
54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 94 * - col2 * - col2 col0 FROM tab2 AS cor0
----
135736
63544
68526

query I rowsort
SELECT ALL + + cor0.col2 * col2 FROM tab1 cor0
----
2916
3249
9216

query I rowsort
SELECT DISTINCT + 45 + - col1 AS col1 FROM tab1 AS cor0
----
19
32
35

onlyif mysql # use DIV operator for integer division
query I rowsort label-3113
SELECT ALL col2 DIV + cor0.col0 AS col0 FROM tab2 AS cor0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-3113
SELECT ALL col2 / + cor0.col0 AS col0 FROM tab2 AS cor0
----
0
0
3

onlyif mysql # use DIV operator for integer division
query I rowsort label-3114
SELECT DISTINCT CAST( - col1 AS SIGNED ) * + col2 + + col2 DIV col1 AS col0 FROM tab1
----
-1241
-1402
-565

skipif mysql # not compatible
query I rowsort label-3114
SELECT DISTINCT CAST ( - col1 AS INTEGER ) * + col2 + + col2 / col1 AS col0 FROM tab1
----
-1241
-1402
-565

query I rowsort
SELECT DISTINCT + ( + 23 ) + col2 FROM tab2
----
49
50
61

query I rowsort
SELECT - ( tab0.col2 ) * col0 * col2 FROM tab0
----
-26136
-35
-598436

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3117
SELECT 72 + col0 + col1 * + CAST( col1 AS SIGNED ) FROM tab2
----
1040
3631
440

skipif mysql # not compatible
query I rowsort label-3117
SELECT 72 + col0 + col1 * + CAST ( col1 AS INTEGER ) FROM tab2
----
1040
3631
440

query I rowsort
SELECT + tab1.col2 * ( col1 ) * + col0 AS col2 FROM tab1
----
36480
4212
99840

query I rowsort
SELECT DISTINCT - 51 * col1 FROM tab0
----
-4386
-4641
-4947

query I rowsort
SELECT col1 + - 16 FROM tab1
----
-3
-6
10

query I rowsort
SELECT - ( - col1 ) * col2 * - ( tab0.col2 ) + - col2 + + col2 AS col2 FROM tab0
----
-611884
-93654
-97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3122
SELECT DISTINCT CAST( NULL AS SIGNED ) - col1 AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3122
SELECT DISTINCT CAST ( NULL AS INTEGER ) - col1 AS col2 FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + 14 col0 FROM tab0 AS cor0
----
-19
-68
13

query I rowsort
SELECT ALL - cor0.col2 * + 95 + + ( + col0 ) AS col2 FROM tab2 AS cor0
----
-2392
-2558
-3531

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * - ( + cor0.col2 ) col1 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT ALL + col1 + + col1 * col2 FROM tab2 AS cor0
----
1593
663
868

onlyif mysql # use DIV operator for integer division
query I rowsort label-3127
SELECT DISTINCT col2 + CAST( col2 AS SIGNED ) DIV col0 FROM tab2 AS cor0
----
26
30
38

skipif mysql # not compatible
query I rowsort label-3127
SELECT DISTINCT col2 + CAST ( col2 AS INTEGER ) / col0 FROM tab2 AS cor0
----
26
30
38

query I rowsort
SELECT ALL - + col1 * - 93 AS col1 FROM tab1 AS cor0
----
1209
2418
930

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 * col2 + - 93 col2 FROM tab0 AS cor0
----
-92
6631
996

query I rowsort
SELECT DISTINCT - - col1 + - col1 - col1 FROM tab0 cor0
----
-86
-91
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-3131
SELECT ALL + col2 DIV - 20 FROM tab0 AS cor0
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-3131
SELECT ALL + col2 / - 20 FROM tab0 AS cor0
----
-1
-4
0

query I rowsort
SELECT - col1 + - col0 * col2 + - col0 AS col0 FROM tab1
----
-191
-3722
-7773

query I rowsort
SELECT DISTINCT - 13 * + col1 AS col1 FROM tab1 AS cor0
----
-130
-169
-338

query I rowsort
SELECT + 59 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc

query I rowsort
SELECT DISTINCT + 10 + + col1 * col1 AS col1 FROM tab1
----
110
179
686

query I rowsort
SELECT - ( + tab2.col2 ) * + col0 AS col0 FROM tab2
----
-189
-2028
-3002

query I rowsort
SELECT col0 * tab1.col2 * + col0 + + tab1.col1 FROM tab1
----
233482
512
614413

query I rowsort
SELECT DISTINCT 52 + col2 * - 34 AS col0 FROM tab1
----
-1784
-1886
-3212

onlyif mysql # use DIV operator for integer division
query I rowsort label-3139
SELECT ALL - col1 + col0 * + cor0.col2 + - col0 * col0 DIV col1 FROM tab1 AS cor0
----
136
3229
7175

skipif mysql # not compatible
query I rowsort label-3139
SELECT ALL - col1 + col0 * + cor0.col2 + - col0 * col0 / col1 FROM tab1 AS cor0
----
136
3229
7175

onlyif mysql # use DIV operator for integer division
query I rowsort label-3140
SELECT DISTINCT col1 * ( + 92 ) + + col2 DIV + 45 col1 FROM tab0 AS cor0
----
7912
8373
8924

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3140
SELECT DISTINCT col1 * ( + 92 ) + + col2 / + 45 col1 FROM tab0 AS cor0
----
7912
8373
8924

query I rowsort
SELECT ALL - col1 * col2 - + 59 AS col0 FROM tab2 AS cor0
----
-1593
-705
-896

query I rowsort
SELECT - cor0.col0 * + ( col2 ) + cor0.col0 AS col1 FROM tab0 AS cor0
----
-7209
-768
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3143
SELECT ALL CAST( NULL AS SIGNED ) + - 99 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-3143
SELECT ALL CAST ( NULL AS INTEGER ) + - 99 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort
SELECT + col2 + CAST ( col2 AS REAL ) AS col0 FROM tab1 AS cor0
----
108
114
192

query I rowsort
SELECT ALL - - col0 * + cor0.col1 AS col2 FROM tab2 AS cor0
----
1343
217
4602

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3146
SELECT - col2 * + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3146
SELECT - col2 * + CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3147
SELECT - col1 DIV col1 - + col0 AS col2 FROM tab2 AS cor0
----
-79
-8
-80

skipif mysql # not compatible
query I rowsort label-3147
SELECT - col1 / col1 - + col0 AS col2 FROM tab2 AS cor0
----
-79
-8
-80

query I rowsort
SELECT ALL - + col1 * + col0 + col1 FROM tab1 AS cor0
----
-1027
-52
-630

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + col0 ) * - tab0.col2 * - col1 col0 FROM tab0
----
3395
664118
68112

query I rowsort
SELECT - - 93 * - col2 FROM tab0 AS cor0
----
-3069
-7626
-93

skipif mysql # not compatible
query I rowsort
SELECT - + CAST ( col0 AS REAL ) FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT ALL + - col0 * - 51 FROM tab0 AS cor0
----
1224
1785
4539

query I rowsort
SELECT + 43 * + col2 AS col0 FROM tab2 AS cor0
----
1118
1161
1634

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3154
SELECT DISTINCT + CAST( NULL AS SIGNED ) / 11 AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3154
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / 11 AS col2 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + col0 * col1 col0 FROM tab1 AS cor0
----
104
1053
650

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 45 * col1 col2 FROM tab2 cor0
----
-1395
-2655
-765

query I rowsort
SELECT ( 14 ) * col0 AS col1 FROM tab1 cor0
----
1120
42
896

query I rowsort
SELECT ALL - col2 + ( + col2 ) AS col2 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3159
SELECT + - cor0.col1 + 50 * col0 DIV 31 FROM tab1 AS cor0
----
-22
116
93

skipif mysql # not compatible
query I rowsort label-3159
SELECT + - cor0.col1 + 50 * col0 / 31 FROM tab1 AS cor0
----
-22
116
93

query I rowsort
SELECT DISTINCT + - 34 * col2 + - col0 FROM tab1 AS cor0
----
-1839
-2002
-3344

query I rowsort
SELECT ALL + col0 * + 67 + col0 * + ( + 52 ) + + col2 AS col0 FROM tab0 AS cor0
----
10673
2889
4166

query I rowsort
SELECT ALL - + 97 + col1 * - 92 FROM tab2 cor0
----
-1661
-2949
-5525

onlyif mysql # use DIV operator for integer division
query I rowsort label-3163
SELECT ALL + col0 DIV col0 AS col2 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3163
SELECT ALL + col0 / col0 AS col2 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT ALL + + 70 * col1 AS col2 FROM tab2 AS cor0
----
1190
2170
4130

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3165
SELECT - ( + col1 ) - CAST( col1 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-118
-34
-62

skipif mysql # not compatible
query I rowsort label-3165
SELECT - ( + col1 ) - CAST ( col1 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-118
-34
-62

query I rowsort
SELECT - cor1.col1 AS col1 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 58ed467a9a332e4d7bfaa9abdbbd063f

query I rowsort
SELECT + col0 + col1 * + ( cor0.col1 ) FROM tab1 cor0
----
164
249
679

query I rowsort
SELECT DISTINCT 19 + cor0.col0 FROM tab2 AS cor0
----
26
97
98

query I rowsort
SELECT - - ( cor0.col0 ) AS col1 FROM tab1 AS cor0
----
3
64
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col2 + col1 * cor0.col0 + col2 * - cor0.col1 col1 FROM tab1 cor0
----
-112
-1272
127

query I rowsort
SELECT col1 * 24 + cor0.col2 * col0 * + col0 - ( + cor0.col1 ) AS col1 FROM tab0 AS cor0
----
20986
3456
651615

onlyif mysql # use DIV operator for integer division
query I rowsort label-3172
SELECT + + cor0.col2 DIV ( - cor0.col1 ) FROM tab2 cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-3172
SELECT + + cor0.col2 / ( - cor0.col1 ) FROM tab2 cor0
----
-2
0
0

query I rowsort
SELECT DISTINCT + ( - col1 + + ( - col2 ) ) * col1 FROM tab2
----
-1798
-5015
-935

query I rowsort
SELECT + ( cor0.col0 ) * + col2 * - col1 AS col1 FROM tab0 AS cor0
----
-3395
-664118
-68112

query I rowsort
SELECT 39 * + 71 + + col0 AS col1 FROM tab0 AS cor0
----
2793
2804
2858

query I rowsort
SELECT DISTINCT col0 * col0 + col1 * col1 FROM tab1
----
4196
6569
685

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * - col0 col2 FROM tab1 AS cor0
----
162
3648
7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-3178
SELECT - col2 DIV + col2 AS col0 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3178
SELECT - col2 / + col2 AS col0 FROM tab1 AS cor0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 65 col1 FROM tab0 AS cor0
----
-65

query I rowsort
SELECT ALL - + ( 27 ) * cor0.col2 + 32 AS col0 FROM tab2 AS cor0
----
-670
-697
-994

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 9 col0 FROM tab1, tab1 AS cor0
----
-9

query I rowsort
SELECT DISTINCT col1 * 75 FROM tab2 cor0
----
1275
2325
4425

query I rowsort
SELECT col0 * + 43 + - col0 + + col0 FROM tab2 AS cor0
----
301
3354
3397

query I rowsort
SELECT + col1 - - ( + col2 ) AS col1 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT ALL - col2 * + 28 AS col0 FROM tab1 AS cor0
----
-1512
-1596
-2688

onlyif mysql # use DIV operator for integer division
query I rowsort label-3186
SELECT col1 DIV ( 56 * col0 ) + col1 + col2 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-3186
SELECT col1 / ( 56 * col0 ) + col1 + col2 col0 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT - - col0 * - 43 AS col1 FROM tab1 AS cor0
----
-129
-2752
-3440

onlyif mysql # use DIV operator for integer division
query I rowsort label-3188
SELECT ALL - col0 DIV col1 AS col1 FROM tab2
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-3188
SELECT ALL - col0 / col1 AS col1 FROM tab2
----
-1
-4
0

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 col1 * 95 + - col2 * - col2 FROM tab0 cor0
----
15369
9216
9259

query I rowsort
SELECT ALL - col2 * ( + col0 ) - col1 FROM tab0 AS cor0
----
-132
-7389
-878

onlyif mysql # use DIV operator for integer division
query I rowsort label-3192
SELECT DISTINCT - col2 DIV 6 AS col0 FROM tab1
----
-16
-9

skipif mysql # not compatible
query I rowsort label-3192
SELECT DISTINCT - col2 / 6 AS col0 FROM tab1
----
-16
-9

query I rowsort
SELECT DISTINCT + - col1 * - 33 * col1 FROM tab2 AS cor0
----
114873
31713
9537

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 55 + - col2 col0 FROM tab1 AS cor0
----
-109
-112
-151

query I rowsort
SELECT ALL col1 * 81 AS col0 FROM tab2 AS cor0
----
1377
2511
4779

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0, tab2 cor1, tab2 AS cor2, tab1 AS cor3
----
3645 values hashing to 15ae1b54cae2dcf5c6eef7f1d15689eb

query I rowsort
SELECT DISTINCT col2 * + cor0.col1 AS col1 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT ALL 30 + - cor0.col1 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 55470b96a4f7c9f2ff4af5cd7433536e

onlyif mysql # use DIV operator for integer division
query I rowsort label-3199
SELECT DISTINCT + 77 * + col2 - ( + col2 + col1 ) DIV - 39 AS col1 FROM tab2
----
2004
2080
2927

skipif mysql # not compatible
query I rowsort label-3199
SELECT DISTINCT + 77 * + col2 - ( + col2 + col1 ) / - 39 AS col1 FROM tab2
----
2004
2080
2927

query I rowsort
SELECT col1 + + col2 - col1 FROM tab2
----
26
27
38

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3201
SELECT - col2 + col2 * CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3201
SELECT - col2 + col2 * CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3202
SELECT DISTINCT - tab2.col2 DIV col0 - ( - col1 ) FROM tab2
----
17
28
59

skipif mysql # not compatible
query I rowsort label-3202
SELECT DISTINCT - tab2.col2 / col0 - ( - col1 ) FROM tab2
----
17
28
59

query I rowsort
SELECT ( + cor0.col1 ) * + col1 - 4 FROM tab1 AS cor0
----
165
672
96

query I rowsort
SELECT + ( + col0 ) * ( 86 ) - - col0 FROM tab1
----
261
5568
6960

query I rowsort
SELECT ALL 70 * + col2 FROM tab2
----
1820
1890
2660

query I rowsort
SELECT ALL col1 * - col2 * + col1 FROM tab0
----
-244068
-679042
-9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 79 + + cor0.col0 col2 FROM tab0 AS cor0
----
103
114
168

query I rowsort
SELECT DISTINCT + ( - col2 * + 44 ) AS col0 FROM tab1
----
-2376
-2508
-4224

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3209
SELECT DISTINCT + CAST( cor1.col2 AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
26
27
38

skipif mysql # not compatible
query I rowsort label-3209
SELECT DISTINCT + CAST ( cor1.col2 AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
26
27
38

query I rowsort
SELECT col1 * - col1 * 50 + col0 AS col0 FROM tab1
----
-33797
-4936
-8370

query I rowsort
SELECT DISTINCT + 86 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
86

onlyif mysql # use DIV operator for integer division
query I rowsort label-3212
SELECT ALL + col0 + col2 DIV - col0 FROM tab1
----
-15
64
79

skipif mysql # not compatible
query I rowsort label-3212
SELECT ALL + col0 + col2 / - col0 FROM tab1
----
-15
64
79

query I rowsort
SELECT ALL - cor0.col1 - + 28 AS col0 FROM tab0 AS cor0
----
-114
-119
-125

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3214
SELECT ALL - CAST( + 21 AS SIGNED ) FROM tab0, tab0 AS cor0
----
9 values hashing to 631fbd1fd929405aba54a22c2a06c757

skipif mysql # not compatible
query I rowsort label-3214
SELECT ALL - CAST ( + 21 AS INTEGER ) FROM tab0, tab0 AS cor0
----
9 values hashing to 631fbd1fd929405aba54a22c2a06c757

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3215
SELECT + col0 - CAST( col2 + + col1 AS SIGNED ) FROM tab0 AS cor0
----
-63
-84
-95

skipif mysql # not compatible
query I rowsort label-3215
SELECT + col0 - CAST ( col2 + + col1 AS INTEGER ) FROM tab0 AS cor0
----
-63
-84
-95

query I rowsort
SELECT ALL - cor0.col1 * - 48 + + col0 FROM tab0 AS cor0
----
4152
4457
4691

query I rowsort
SELECT ALL - + col2 * 51 FROM tab0 AS cor0
----
-1683
-4182
-51

query I rowsort
SELECT cor0.col2 * + 6 + - col0 FROM tab1 cor0
----
278
321
496

query I rowsort
SELECT ALL + 14 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 409c1790b702540dd9dc067c1965b7c0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( cor0.col0 ) * cor0.col0 col2 FROM tab2, tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT DISTINCT + col1 * col1 - cor0.col2 * col0 FROM tab0 AS cor0
----
6604
9374
983

query I rowsort
SELECT DISTINCT + + cor0.col1 * - col0 + + col2 AS col2 FROM tab0 AS cor0
----
-2031
-3394
-8017

query I rowsort
SELECT ALL tab1.col1 * + col2 AS col1 FROM tab1
----
1248
1404
570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor1.col0 col2 FROM tab0, tab1 AS cor0, tab2 cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

query I rowsort
SELECT - cor1.col0 AS col1 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 729c1edda9332398299f39cd174ed840

query I rowsort
SELECT - ( + 13 ) + col0 * + col1 AS col2 FROM tab2 AS cor0
----
1330
204
4589

query I rowsort
SELECT + + ( - col0 ) * 58 AS col0 FROM tab0 cor0
----
-1392
-2030
-5162

onlyif mysql # use DIV operator for integer division
query I rowsort label-3228
SELECT ALL col0 + col1 DIV + col2 FROM tab0 AS cor0
----
132
26
90

skipif mysql # not compatible
query I rowsort label-3228
SELECT ALL col0 + col1 / + col2 FROM tab0 AS cor0
----
132
26
90

query I rowsort
SELECT - 80 + - cor0.col0 * - ( col2 ) AS col1 FROM tab0 AS cor0
----
-45
712
7218

query I rowsort
SELECT ALL ( col2 ) * + 57 FROM tab1 AS cor0
----
3078
3249
5472

query I rowsort
SELECT col2 + + col1 * - col2 AS col2 FROM tab0 AS cor0
----
-2805
-7380
-96

query I rowsort
SELECT DISTINCT + col1 + cor0.col1 + 7 FROM tab2 AS cor0
----
125
41
69

query I rowsort
SELECT ALL - - 23 * + col1 - 86 FROM tab2 cor0
----
1271
305
627

query I rowsort
SELECT + - col2 + - col1 * ( col1 ) * + col2 AS col2 FROM tab2 AS cor0
----
-11020
-25974
-90532

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 - col1 * ( 96 ) * - col1 col0 FROM tab0 AS cor0
----
710040
795065
903299

query I rowsort
SELECT ( 73 * - col2 + + 68 ) FROM tab0
----
-2341
-5
-5918

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3237
SELECT CAST( NULL AS SIGNED ) * 21 - col2 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3237
SELECT CAST ( NULL AS INTEGER ) * 21 - col2 AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 * - col0 * cor0.col2 FROM tab0 cor0
----
3395
664118
68112

query I rowsort
SELECT DISTINCT + - col1 * col1 + 55 AS col0 FROM tab2 AS cor0
----
-234
-3426
-906

query I rowsort
SELECT ALL + 51 * cor0.col1 FROM tab0 AS cor0
----
4386
4641
4947

query I rowsort
SELECT 1 * + col0 * 75 AS col1 FROM tab2 AS cor0
----
525
5850
5925

query I rowsort
SELECT ALL + 54 * col1 FROM tab1 cor0
----
1404
540
702

query I rowsort
SELECT + + col1 + - col1 * col0 FROM tab2 AS cor0
----
-1326
-186
-4543

query I rowsort
SELECT ALL 60 AS col2 FROM tab1, tab2 cor0
----
9 values hashing to a97561e17ecaa618227c75a57b268f33

query I rowsort
SELECT + col2 + 49 AS col2 FROM tab1
----
103
106
145

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3246
SELECT CAST( 96 AS SIGNED ) FROM tab2
----
96
96
96

skipif mysql # not compatible
query I rowsort label-3246
SELECT CAST ( 96 AS INTEGER ) FROM tab2
----
96
96
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-3247
SELECT - 85 DIV - ( tab1.col2 ) + col0 * col2 col1 FROM tab1
----
163
3649
7680

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3247
SELECT - 85 / - ( tab1.col2 ) + col0 * col2 col1 FROM tab1
----
163
3649
7680

query I rowsort
SELECT + 58 AS col2 FROM tab2
----
58
58
58

query I rowsort
SELECT DISTINCT - col1 * + col0 + - tab0.col1 * + 39 FROM tab0
----
-11648
-5418
-7178

query I rowsort
SELECT ( + 95 ) + - col2 AS col2 FROM tab2
----
57
68
69

query I rowsort
SELECT ALL + 21 + - cor0.col2 * + col0 FROM tab2 AS cor0
----
-168
-2007
-2981

query I rowsort
SELECT 48 AS col2 FROM tab2
----
48
48
48

query I rowsort
SELECT DISTINCT col0 * col0 + + 73 AS col2 FROM tab2
----
122
6157
6314

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 77 col1 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to d7b027bca5d37c67e29013904def8125

query I rowsort
SELECT DISTINCT - 18 + col2 FROM tab0
----
-17
15
64

onlyif mysql # use DIV operator for integer division
query I rowsort label-3256
SELECT col0 DIV + tab0.col2 + + col2 FROM tab0
----
33
36
83

skipif mysql # not compatible
query I rowsort label-3256
SELECT col0 / + tab0.col2 + + col2 FROM tab0
----
33
36
83

query I rowsort
SELECT tab1.col1 * col1 * + col2 + col0 * col2 FROM tab1
----
23904
36666
9348

query I rowsort
SELECT DISTINCT - 2 * + col0 FROM tab2
----
-14
-156
-158

query I rowsort
SELECT DISTINCT + + col2 + - col0 + col1 AS col1 FROM tab2 AS cor0
----
-24
51
7

query IIIIIIIIIIIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab0, tab2 AS cor2, tab1
----
13122 values hashing to c01627d9241ecd49446e527e6827fe5f

query I rowsort
SELECT ALL - col2 - col2 AS col2 FROM tab0 AS cor0
----
-164
-2
-66

query I rowsort
SELECT DISTINCT + + col2 * + ( + 78 ) FROM tab1 AS cor0
----
4212
4446
7488

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 * ( col2 ) * col1 col1 FROM tab2 AS cor0
----
-22599
-24548
-39884

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3264
SELECT - - col2 + + CAST( - 38 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
16
19
58

skipif mysql # not compatible
query I rowsort label-3264
SELECT - - col2 + + CAST ( - 38 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
16
19
58

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3265
SELECT DISTINCT + col0 * - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3265
SELECT DISTINCT + col0 * - CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + + col1 + - col0 AS col2 FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT ALL - col2 * col1 - + col1 * + col1 AS col1 FROM tab0 AS cor0
----
-10234
-15743
-9506

query I rowsort
SELECT ALL - + col1 + - 59 * - col2 + cor0.col0 AS col0 FROM tab1 AS cor0
----
3163
3417
5731

query I rowsort
SELECT ALL col1 - + col2 * + col1 AS col0 FROM tab1 AS cor0
----
-1235
-1378
-560

query I rowsort
SELECT col1 * 10 * + col0 FROM tab0
----
20640
33950
80990

query I rowsort
SELECT 99 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 05ea182fd6036c7f5e0ea08fc061cc67

query I rowsort
SELECT ALL + 99 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db

query I rowsort
SELECT - col0 + cor0.col1 FROM tab0 cor0
----
2
62
62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3274
SELECT + CAST( - 78 AS SIGNED ) col2 FROM tab1 AS cor0
----
-78
-78
-78

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3274
SELECT + CAST ( - 78 AS INTEGER ) col2 FROM tab1 AS cor0
----
-78
-78
-78

query I rowsort
SELECT ALL - - 32 * 73 + cor0.col0 - 20 * col2 AS col0 FROM tab1 AS cor0
----
1259
1260
496

query I rowsort
SELECT - 27 + col2 * - col2 FROM tab2 AS cor0
----
-1471
-703
-756

query I rowsort
SELECT DISTINCT 12 * cor0.col2 AS col1 FROM tab2 AS cor0
----
312
324
456

query I rowsort
SELECT - + 27 * + col1 + 99 * col0 FROM tab0 AS cor0
----
54
6354
846

query I rowsort
SELECT + col1 + cor0.col1 * 23 + + col1 * + col1 FROM tab2 AS cor0
----
1705
4897
697

query I rowsort
SELECT DISTINCT 64 * col1 AS col2 FROM tab2
----
1088
1984
3776

query I rowsort
SELECT + col1 - cor0.col1 * + 28 * col2 FROM tab2 cor0
----
-18071
-23405
-42893

query I rowsort
SELECT col0 + + cor0.col0 + + 27 FROM tab2 AS cor0
----
183
185
41

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3283
SELECT 96 * + cor0.col2 / - CAST( NULL AS DECIMAL ) + - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3283
SELECT 96 * + cor0.col2 / - CAST ( NULL AS REAL ) + - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3284
SELECT + col2 + col0 DIV col0 + - col2 AS col1 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3284
SELECT + col2 + col0 / col0 + - col2 AS col1 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT + col0 * - ( - col2 ) + cor0.col2 FROM tab0 AS cor0
----
36
7380
825

query I rowsort
SELECT ALL col2 + ( - col2 ) - + col0 AS col1 FROM tab1
----
-3
-64
-80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3287
SELECT + CAST( NULL AS SIGNED ) + + 28 - tab0.col2 * 68 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3287
SELECT + CAST ( NULL AS INTEGER ) + + 28 - tab0.col2 * 68 AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 - 70 FROM tab1
----
-6
-67
10

query I rowsort
SELECT + - 48 * + col1 FROM tab1 AS cor0
----
-1248
-480
-624

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3290
SELECT - CAST( 27 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-27
-27
-27

skipif mysql # not compatible
query I rowsort label-3290
SELECT - CAST ( 27 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-27
-27
-27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 97 + col0 col0 FROM tab2 AS cor0
----
104
175
176

query I rowsort
SELECT ALL - 44 * - col0 AS col1 FROM tab1 AS cor0
----
132
2816
3520

query I rowsort
SELECT + ( 34 ) - - cor0.col0 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 661d72d5ba2e99bddf766076e396d5cd

query I rowsort
SELECT + col2 * col2 * + cor0.col0 FROM tab2 AS cor0
----
114076
5103
52728

query I rowsort
SELECT 41 * + cor0.col1 FROM tab0 AS cor0
----
3526
3731
3977

query I rowsort
SELECT ALL 43 + - cor0.col2 FROM tab2 AS cor0
----
16
17
5

onlyif mysql # use DIV operator for integer division
query I rowsort label-3297
SELECT ALL - col2 + - cor0.col1 DIV - 82 AS col0 FROM tab1 AS cor0
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-3297
SELECT ALL - col2 + - cor0.col1 / - 82 AS col0 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT + 94 AS col2 FROM tab2, tab2 cor0
----
9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24

query I rowsort
SELECT DISTINCT + col2 * + 67 FROM tab1
----
3618
3819
6432

query I rowsort
SELECT DISTINCT - + ( col0 ) + + col0 AS col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT - ( + cor0.col0 ) + col2 - - col2 AS col1 FROM tab0 AS cor0
----
-33
42
75

skipif mysql # not compatible
query I rowsort
SELECT ALL CAST ( - col2 AS REAL ) + + col0 * col2 FROM tab1 AS cor0
----
108
3591
7584

query I rowsort
SELECT ALL - col2 * + col0 * + col2 + + col2 AS col1 FROM tab0 cor0
----
-26103
-34
-598354

query I rowsort
SELECT 41 + - 77 FROM tab2
----
-36
-36
-36

query I rowsort
SELECT ( col2 ) + + col1 FROM tab1
----
109
67
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-3306
SELECT ALL 44 DIV col2 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3306
SELECT ALL 44 / col2 AS col2 FROM tab1
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3307
SELECT 51 - - col2 DIV col2 AS col2 FROM tab0
----
52
52
52

skipif mysql # not compatible
query I rowsort label-3307
SELECT 51 - - col2 / col2 AS col2 FROM tab0
----
52
52
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-3308
SELECT DISTINCT + + ( + col0 ) * + col2 + col1 DIV cor0.col1 FROM tab1 AS cor0
----
163
3649
7681

skipif mysql # not compatible
query I rowsort label-3308
SELECT DISTINCT + + ( + col0 ) * + col2 + col1 / cor0.col1 FROM tab1 AS cor0
----
163
3649
7681

query I rowsort
SELECT DISTINCT - ( 93 ) AS col0 FROM tab0 AS cor0
----
-93

query I rowsort
SELECT ALL - ( 13 ) - col2 FROM tab2 AS cor0
----
-39
-40
-51

query I rowsort
SELECT ( + tab0.col0 * tab0.col1 ) + col1 FROM tab0
----
2150
3492
8190

query I rowsort
SELECT DISTINCT + col1 * + 43 + col2 AS col1 FROM tab0 AS cor0
----
3731
3995
4172

onlyif mysql # use DIV operator for integer division
query I rowsort label-3313
SELECT col2 DIV tab0.col2 + + col1 - 93 FROM tab0
----
-1
-6
5

skipif mysql # not compatible
query I rowsort label-3313
SELECT col2 / tab0.col2 + + col1 - 93 FROM tab0
----
-1
-6
5

onlyif mysql # use DIV operator for integer division
query I rowsort label-3314
SELECT DISTINCT + col1 + col1 + col1 DIV - tab1.col1 FROM tab1
----
19
25
51

skipif mysql # not compatible
query I rowsort label-3314
SELECT DISTINCT + col1 + col1 + col1 / - tab1.col1 FROM tab1
----
19
25
51

query I rowsort
SELECT ALL + + col1 - cor0.col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - 46 * col2 AS col2 FROM tab2
----
-1196
-1242
-1748

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 61 * col1 col2 FROM tab2 AS cor0
----
1037
1891
3599

query I rowsort
SELECT + col2 * tab2.col1 + 61 + - col0 AS col1 FROM tab2
----
1517
628
891

query I rowsort
SELECT DISTINCT tab1.col2 * col1 + col1 FROM tab1
----
1261
1430
580

query I rowsort
SELECT DISTINCT + 26 * col1 + + tab0.col2 FROM tab0
----
2269
2448
2523

query I rowsort
SELECT ALL col2 + col0 + - 11 FROM tab1
----
110
165
46

query I rowsort
SELECT ALL - cor0.col1 * + col2 + + ( col0 ) FROM tab2 cor0
----
-1456
-567
-830

query I rowsort
SELECT + col0 * 97 + 43 FROM tab0 AS cor0
----
2371
3438
8676

query I rowsort
SELECT + + col0 * - 30 + - col1 AS col1 FROM tab1 cor0
----
-116
-1930
-2413

query I rowsort
SELECT DISTINCT + col2 + 92 * - cor0.col2 AS col0 FROM tab0 AS cor0
----
-3003
-7462
-91

onlyif mysql # use DIV operator for integer division
query I rowsort label-3326
SELECT ALL + + col2 DIV col0 - 62 AS col2 FROM tab0 AS cor0
----
-61
-62
-62

skipif mysql # not compatible
query I rowsort label-3326
SELECT ALL + + col2 / col0 - 62 AS col2 FROM tab0 AS cor0
----
-61
-62
-62

query I rowsort
SELECT - tab2.col2 + - col0 AS col1 FROM tab2
----
-104
-117
-34

query I rowsort
SELECT DISTINCT - col0 * - 81 AS col2 FROM tab0 AS cor0
----
1944
2835
7209

query I rowsort
SELECT - cor0.col2 * col2 + - ( col2 ) FROM tab2 AS cor0
----
-1482
-702
-756

query I rowsort
SELECT DISTINCT + - col2 * - col1 AS col1 FROM tab0 cor0
----
2838
7462
97

query I rowsort
SELECT - col0 * + 20 AS col0 FROM tab2 AS cor0
----
-140
-1560
-1580

query I rowsort
SELECT + + col0 * + 53 AS col0 FROM tab2 AS cor0
----
371
4134
4187

query I rowsort
SELECT ALL + col2 * + 40 FROM tab2 cor0
----
1040
1080
1520

query I rowsort
SELECT DISTINCT - 30 FROM tab0 AS cor0
----
-30

onlyif mysql # use DIV operator for integer division
query I rowsort label-3335
SELECT + cor0.col0 DIV - col1 FROM tab2 AS cor0
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-3335
SELECT + cor0.col0 / - col1 FROM tab2 AS cor0
----
-1
-4
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3336
SELECT - 76 DIV - col2 AS col1 FROM tab1 cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-3336
SELECT - 76 / - col2 AS col1 FROM tab1 cor0
----
0
1
1

query I rowsort
SELECT ALL 61 + col1 AS col1 FROM tab0 AS cor0
----
147
152
158

query I rowsort
SELECT ALL - 67 + - 79 AS col1 FROM tab2, tab0 cor0, tab2 AS cor1
----
27 values hashing to b2b4e55f0cd9f40d9eaef8ce1edb0c94

query I rowsort
SELECT + 88 + - cor0.col2 * - col1 AS col2 FROM tab2 AS cor0
----
1622
734
925

query I rowsort
SELECT - col2 * - 87 FROM tab1 AS cor0
----
4698
4959
8352

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3341
SELECT - col0 * + CAST( col2 AS SIGNED ) FROM tab2 AS cor0
----
-189
-2028
-3002

skipif mysql # not compatible
query I rowsort label-3341
SELECT - col0 * + CAST ( col2 AS INTEGER ) FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT + cor0.col0 * + col1 AS col1 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT DISTINCT - ( tab2.col2 ) AS col2 FROM tab2, tab0, tab1 AS cor0
----
-26
-27
-38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * col0 * col1 col0 FROM tab0
----
-3395
-664118
-68112

query I rowsort
SELECT + col1 + - col2 * + ( - 20 ) AS col1 FROM tab1
----
1106
1150
1933

query I rowsort
SELECT DISTINCT - ( + 6 ) + col2 AS col1 FROM tab1 AS cor0
----
48
51
90

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3347
SELECT ALL + CAST( NULL AS SIGNED ) + + col0 * - col0 + + col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3347
SELECT ALL + CAST ( NULL AS INTEGER ) + + col0 * - col0 + + col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 + + 22 AS col1 FROM tab1 AS cor0
----
102
25
86

query I rowsort
SELECT + - ( + 19 ) AS col2 FROM tab0 cor0
----
-19
-19
-19

query I rowsort
SELECT DISTINCT + 97 + - 43 + - col0 * + col0 AS col2 FROM tab1 AS cor0
----
-4042
-6346
45

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3351
SELECT ALL - + CAST( NULL AS SIGNED ) + - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3351
SELECT ALL - + CAST ( NULL AS INTEGER ) + - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 * + col1 - + col2 * tab2.col0 FROM tab2
----
-2356
-494
648

query I rowsort
SELECT col2 + - col2 * + ( + col0 ) FROM tab0
----
-34
-7216
-759

query I rowsort
SELECT tab1.col1 + + 18 AS col2 FROM tab1
----
28
31
44

query I rowsort
SELECT DISTINCT col1 + col1 + tab0.col1 FROM tab0
----
258
273
291

query I rowsort
SELECT DISTINCT - col1 - - col2 AS col0 FROM tab2
----
-33
-4
21

query I rowsort
SELECT DISTINCT - tab1.col1 * + col1 * - 21 + tab1.col1 AS col1 FROM tab1
----
14222
2110
3562

query I rowsort
SELECT DISTINCT col2 + tab2.col0 * col2 FROM tab2
----
2054
216
3040

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + 85 col0 FROM tab0
----
-2805
-6970
-85

query I rowsort
SELECT ALL - col2 + tab1.col2 + col0 AS col1 FROM tab1
----
3
64
80

query I rowsort
SELECT - 79 * col1 + col1 * - tab1.col2 FROM tab1
----
-1360
-2275
-3458

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3362
SELECT DISTINCT CAST( - ( col2 ) AS SIGNED ) + - col1 FROM tab1 AS cor0
----
-109
-67
-80

skipif mysql # not compatible
query I rowsort label-3362
SELECT DISTINCT CAST ( - ( col2 ) AS INTEGER ) + - col1 FROM tab1 AS cor0
----
-109
-67
-80

query I rowsort
SELECT ALL + 17 * + cor0.col2 FROM tab1 cor0
----
1632
918
969

query I rowsort
SELECT + col0 + - 85 AS col2 FROM tab0 cor0
----
-50
-61
4

query I rowsort
SELECT DISTINCT - + 66 AS col0 FROM tab1 AS cor0
----
-66

query I rowsort
SELECT ALL + 73 + 44 FROM tab2 AS cor0
----
117
117
117

query I rowsort
SELECT + col2 * ( col0 ) * + col1 + - col0 + - col0 FROM tab1 AS cor0
----
36352
4206
99680

query I rowsort
SELECT 48 * tab2.col0 + col0 FROM tab2
----
343
3822
3871

query I rowsort
SELECT ALL - 72 AS col1 FROM tab0
----
-72
-72
-72

query I rowsort
SELECT + - col1 + col2 AS col0 FROM tab1 cor0
----
28
47
83

query I rowsort
SELECT - col1 * + col2 + col0 AS col2 FROM tab0 AS cor0
----
-2814
-62
-7373

query I rowsort
SELECT cor0.col0 FROM tab0, tab2, tab1 AS cor0, tab0 AS cor1
----
81 values hashing to e28bf7f922650ca423ade3642ce0285b

query I rowsort
SELECT ALL + 70 * col0 FROM tab1
----
210
4480
5600

query I rowsort
SELECT DISTINCT + cor1.col2 + 3 AS col2 FROM tab0, tab2 AS cor0, tab1, tab0 AS cor1
----
36
4
85

query I rowsort
SELECT ALL + ( + 56 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 9c4523312174730bbc525b9977aa99fa

query I rowsort
SELECT - col0 + + col2 * col2 * - cor0.col1 FROM tab0 AS cor0
----
-132
-611973
-93678

query I rowsort
SELECT 38 FROM tab1 cor0
----
38
38
38

query I rowsort
SELECT - cor1.col1 + - 89 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2, tab0 AS cor1
----
27 values hashing to 86c24ec7536099a3a7532e54d404258f

query I rowsort
SELECT + 82 * + tab2.col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 1d2c15e844e1ec06584e2530ccb9d047

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0 cor0 CROSS JOIN tab0, tab1 AS cor1, tab1 AS cor2
----
972 values hashing to d222ba302bd1ddd1c8b2ddf1a4d0b07a

onlyif mysql # use DIV operator for integer division
query I rowsort label-3381
SELECT DISTINCT col2 DIV - cor0.col1 AS col2 FROM tab2 AS cor0
----
-2
0

skipif mysql # not compatible
query I rowsort label-3381
SELECT DISTINCT col2 / - cor0.col1 AS col2 FROM tab2 AS cor0
----
-2
0

query I rowsort
SELECT ALL - + col2 * 45 * - ( col1 * + 54 + col0 ) FROM tab2 AS cor0
----
1704870
2042415
3818880

query I rowsort
SELECT ALL + + col1 * + col1 + + col0 AS col2 FROM tab2 cor0
----
3559
368
968

onlyif mysql # use DIV operator for integer division
query I rowsort label-3384
SELECT col1 * 72 DIV + col0 AS col1 FROM tab2 AS cor0
----
15
318
54

skipif mysql # not compatible
query I rowsort label-3384
SELECT col1 * 72 / + col0 AS col1 FROM tab2 AS cor0
----
15
318
54

query I rowsort
SELECT + col1 * - col1 - - col2 FROM tab1 AS cor0
----
-43
-622
-73

query I rowsort
SELECT ALL + cor0.col0 + cor0.col1 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to f65167375aa80cc8b3f3f8987d2662a3

query I rowsort
SELECT DISTINCT + 94 + - col2 * + col1 * - 32 - col1 FROM tab0 AS cor0
----
238787
3101
90824

query I rowsort
SELECT - 64 FROM tab1, tab2 cor0
----
9 values hashing to 601ec439a72fb4786a9cb7a6547ace5e

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - 96 + - col0 col2 FROM tab1
----
-1024
-1328
-2499

query I rowsort
SELECT ALL - 19 * - col0 * cor0.col0 + + col1 FROM tab0 AS cor0
----
11030
150590
23372

query I rowsort
SELECT ALL col0 * + cor0.col2 + col0 + cor0.col2 AS col0 FROM tab1 cor0
----
219
3769
7856

query I rowsort
SELECT DISTINCT ( ( cor0.col0 ) ) AS col2 FROM tab1, tab0 AS cor0
----
24
35
89

query I rowsort
SELECT + 50 AS col1 FROM tab2, tab0 cor0, tab0 AS cor1
----
27 values hashing to 314aace40e704c20a6be06204a329f80

query I rowsort
SELECT DISTINCT - ( ( + col0 ) ) * + 8 FROM tab0
----
-192
-280
-712

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab0 AS cor2
----
3645 values hashing to 38dccc9c32724260ec175f754830d863

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3396
SELECT CAST( NULL AS DECIMAL ) + - tab1.col2 / - col2 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3396
SELECT CAST ( NULL AS REAL ) + - tab1.col2 / - col2 AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3397
SELECT DISTINCT - col2 DIV + col2 + + col2 AS col2 FROM tab0 AS cor0
----
0
32
81

skipif mysql # not compatible
query I rowsort label-3397
SELECT DISTINCT - col2 / + col2 + + col2 AS col2 FROM tab0 AS cor0
----
0
32
81

query I rowsort
SELECT ALL ( col0 ) * col2 - - col0 FROM tab2 AS cor0
----
196
2106
3081

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3399
SELECT DISTINCT + + CAST( NULL AS SIGNED ) / - 54 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3399
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) / - 54 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL - cor0.col2 + cor0.col2 * col1 AS col1 FROM tab0 AS cor0
----
2805
7380
96

query I rowsort
SELECT ALL + + col1 * - 25 - - col0 AS col0 FROM tab2 AS cor0
----
-1397
-346
-768

query I rowsort
SELECT DISTINCT + col1 * 20 FROM tab2 AS cor0
----
1180
340
620

query I rowsort
SELECT ALL - cor0.col0 + - 92 AS col0 FROM tab0 AS cor0
----
-116
-127
-181

query I rowsort
SELECT ALL - ( - 72 ) + + col2 * - ( col1 ) FROM tab1 AS cor0
----
-1176
-1332
-498

query I rowsort
SELECT DISTINCT - 73 + col2 AS col0 FROM tab1 AS cor0
----
-16
-19
23

query I rowsort
SELECT tab2.col0 * - col2 + 9 FROM tab2
----
-180
-2019
-2993

query I rowsort
SELECT + tab0.col2 * - 82 FROM tab0, tab1 AS cor0
----
9 values hashing to 13c480322d6694ba12f2eb926dfd3e4f

query I rowsort
SELECT - - ( col2 ) + - 63 * 22 FROM tab0 AS cor0
----
-1304
-1353
-1385

query I rowsort
SELECT - 63 * col0 * 85 FROM tab0 AS cor0
----
-128520
-187425
-476595

onlyif mysql # use DIV operator for integer division
query I rowsort label-3410
SELECT ALL col1 + 63 DIV col0 + col2 * + CAST( - 39 AS SIGNED ) * + col1 FROM tab0 AS cor0
----
-110594
-290927
-3685

skipif mysql # not compatible
query I rowsort label-3410
SELECT ALL col1 + 63 / col0 + col2 * + CAST ( - 39 AS INTEGER ) * + col1 FROM tab0 AS cor0
----
-110594
-290927
-3685

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3411
SELECT - col1 * + 1 + + col1 * + col2 * + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3411
SELECT - col1 * + 1 + + col1 * + col2 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3412
SELECT ALL - col0 * ( + col0 ) DIV - col2 + - cor0.col2 * ( col2 * + col2 + + col2 ) AS col0 FROM tab1 AS cor0
----
-160380
-188371
-893886

skipif mysql # not compatible
query I rowsort label-3412
SELECT ALL - col0 * ( + col0 ) / - col2 + - cor0.col2 * ( col2 * + col2 + + col2 ) AS col0 FROM tab1 AS cor0
----
-160380
-188371
-893886

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3413
SELECT DISTINCT - col2 - CAST( NULL AS SIGNED ) * - 93 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3413
SELECT DISTINCT - col2 - CAST ( NULL AS INTEGER ) * - 93 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + col1 - 41 FROM tab0 AS cor0
----
45
50
56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col0 * + col1 + - col2 col1 FROM tab0 AS cor0
----
2031
3394
8017

query I rowsort
SELECT + - col2 + - cor0.col0 * + ( col1 ) FROM tab2 AS cor0
----
-1381
-244
-4628

onlyif mysql # use DIV operator for integer division
query I rowsort label-3417
SELECT DISTINCT - 43 DIV + 8 FROM tab2, tab0 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-3417
SELECT DISTINCT - 43 / + 8 FROM tab2, tab0 AS cor0
----
-5

query I rowsort
SELECT ALL + cor0.col1 * 71 * - col1 FROM tab1 AS cor0
----
-11999
-47996
-7100

onlyif mysql # use DIV operator for integer division
query I rowsort label-3419
SELECT ALL - col0 + 62 DIV - col0 AS col0 FROM tab0 AS cor0
----
-26
-36
-89

skipif mysql # not compatible
query I rowsort label-3419
SELECT ALL - col0 + 62 / - col0 AS col0 FROM tab0 AS cor0
----
-26
-36
-89

query I rowsort
SELECT ALL - - col0 + - 82 FROM tab0 cor0
----
-47
-58
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-3421
SELECT ALL col0 + 11 + col1 DIV + cor0.col0 FROM tab2 AS cor0
----
22
89
90

skipif mysql # not compatible
query I rowsort label-3421
SELECT ALL col0 + 11 + col1 / + cor0.col0 FROM tab2 AS cor0
----
22
89
90

query I rowsort
SELECT DISTINCT + col2 * + col2 * col0 FROM tab0 AS cor0
----
26136
35
598436

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3423
SELECT - + col2 + CAST( NULL AS DECIMAL ) * + col1 + cor0.col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3423
SELECT - + col2 + CAST ( NULL AS REAL ) * + col1 + cor0.col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + cor0.col0 * + 66 + col0 * - cor0.col2 + + 57 AS col1 FROM tab1 AS cor0
----
-2343
633
93

query I rowsort
SELECT DISTINCT col2 * - 5 FROM tab0 AS cor0
----
-165
-410
-5

query I rowsort
SELECT DISTINCT + col2 + + col1 * col0 + + col1 AS col1 FROM tab0 AS cor0
----
2183
3493
8272

query I rowsort
SELECT + cor0.col0 + + col1 + + col2 AS col0 FROM tab2 AS cor0
----
134
163
65

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3428
SELECT ALL - col2 * CAST( - col0 AS SIGNED ) * col1 AS col2 FROM tab1 AS cor0
----
36480
4212
99840

skipif mysql # not compatible
query I rowsort label-3428
SELECT ALL - col2 * CAST ( - col0 AS INTEGER ) * col1 AS col2 FROM tab1 AS cor0
----
36480
4212
99840

onlyif mysql # use DIV operator for integer division
query I rowsort label-3429
SELECT DISTINCT - col0 + - ( col1 ) DIV - col1 FROM tab2 AS cor0
----
-6
-77
-78

skipif mysql # not compatible
query I rowsort label-3429
SELECT DISTINCT - col0 + - ( col1 ) / - col1 FROM tab2 AS cor0
----
-6
-77
-78

query I rowsort
SELECT - 50 FROM tab2, tab2 AS cor0, tab0 AS cor1, tab2 AS cor2
----
81 values hashing to ece34ebef3a06d71156ce9f5c546aa60

query I rowsort
SELECT - - ( - cor0.col2 ) + - col2 FROM tab1 AS cor0
----
-108
-114
-192

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col2 * col2 - col2 * col1 col1 FROM tab1 AS cor0
----
1512
2679
7968

query I rowsort
SELECT DISTINCT + 9 + - cor0.col0 FROM tab0 AS cor0
----
-15
-26
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 10 - - 7 col1 FROM tab0 AS cor0
----
-3
-3
-3

query I rowsort
SELECT + 28 * + ( col1 ) AS col0 FROM tab2 AS cor0
----
1652
476
868

query I rowsort
SELECT DISTINCT - col1 + col2 * - col0 FROM tab1 cor0
----
-188
-3658
-7693

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 92 col0 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to c64cb7a81da51f4be0b6906a223e8817

query I rowsort
SELECT col2 * col1 * + ( col1 ) - col1 * - ( 60 * col1 ) AS col0 FROM tab2 cor0
----
28322
299366
83607

query I rowsort
SELECT - col2 + - col1 * 38 AS col2 FROM tab2 AS cor0
----
-1205
-2268
-684

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - col2 ) - col2 col0 FROM tab2
----
-52
-54
-76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col1 ) * 13 col1 FROM tab1 AS cor0
----
130
169
338

onlyif mysql # use DIV operator for integer division
query I rowsort label-3442
SELECT ALL + col1 DIV + col1 FROM tab1 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3442
SELECT ALL + col1 / + col1 FROM tab1 cor0
----
1
1
1

query I rowsort
SELECT DISTINCT col1 + col2 + - tab0.col0 FROM tab0
----
63
84
95

query I rowsort
SELECT cor0.col1 AS col1 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

query I rowsort
SELECT 63 + - col0 * - col1 AS col2 FROM tab2
----
1406
280
4665

onlyif mysql # use DIV operator for integer division
query I rowsort label-3446
SELECT DISTINCT ( col2 ) DIV ( - 6 ) + - col2 + - 45 FROM tab1
----
-108
-111
-157

skipif mysql # not compatible
query I rowsort label-3446
SELECT DISTINCT ( col2 ) / ( - 6 ) + - col2 + - 45 FROM tab1
----
-108
-111
-157

query I rowsort
SELECT DISTINCT 90 + col1 * - col1 FROM tab0
----
-7306
-8191
-9319

query I rowsort
SELECT - 41 * col0 AS col1 FROM tab0
----
-1435
-3649
-984

query I rowsort
SELECT tab0.col2 * 88 FROM tab0
----
2904
7216
88

query I rowsort
SELECT + col1 + - col2 * col0 * + col0 AS col0 FROM tab0 AS cor0
----
-1128
-18922
-649431

query I rowsort
SELECT ( - col1 ) * + col0 AS col0 FROM tab1
----
-1040
-640
-78

query I rowsort
SELECT DISTINCT - col1 + + col2 * + col1 FROM tab0 AS cor0
----
0
2752
7371

query I rowsort
SELECT ALL + - 71 + 34 * cor0.col2 AS col0 FROM tab0 AS cor0
----
-37
1051
2717

query I rowsort
SELECT - col0 * ( - col0 ) FROM tab1 cor0
----
4096
6400
9

query I rowsort
SELECT ALL - ( - col1 ) * cor0.col0 AS col2 FROM tab1 AS cor0
----
1040
640
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-3456
SELECT ( - col0 ) + + col0 DIV 77 AS col1 FROM tab0 AS cor0
----
-24
-35
-88

skipif mysql # not compatible
query I rowsort label-3456
SELECT ( - col0 ) + + col0 / 77 AS col1 FROM tab0 AS cor0
----
-24
-35
-88

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3457
SELECT ALL - 32 + col1 * + CAST( col2 AS SIGNED ) FROM tab1 cor0
----
1216
1372
538

skipif mysql # not compatible
query I rowsort label-3457
SELECT ALL - 32 + col1 * + CAST ( col2 AS INTEGER ) FROM tab1 cor0
----
1216
1372
538

onlyif mysql # use DIV operator for integer division
query I rowsort label-3458
SELECT ALL col2 * - col0 + ( + col2 ) DIV - col2 + cor0.col0 * col0 AS col1 FROM tab1 AS cor0
----
-1281
-154
447

skipif mysql # not compatible
query I rowsort label-3458
SELECT ALL col2 * - col0 + ( + col2 ) / - col2 + cor0.col0 * col0 AS col1 FROM tab1 AS cor0
----
-1281
-154
447

query I rowsort
SELECT ( - col1 + ( - 69 ) ) FROM tab2
----
-100
-128
-86

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3460
SELECT + col1 * col2 + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3460
SELECT + col1 * col2 + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * ( + 47 ) - col2 col1 FROM tab1 AS cor0
----
2951
3664
87

query I rowsort
SELECT DISTINCT - tab2.col0 + tab2.col2 * col1 FROM tab2
----
1456
567
830

onlyif mysql # use DIV operator for integer division
query I rowsort label-3463
SELECT + col1 DIV 80 AS col0 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3463
SELECT + col1 / 80 AS col0 FROM tab0
----
1
1
1

query I rowsort
SELECT col1 * 90 FROM tab1
----
1170
2340
900

onlyif mysql # use DIV operator for integer division
query I rowsort label-3465
SELECT ALL tab0.col1 DIV col0 + col1 AS col2 FROM tab0
----
89
92
99

skipif mysql # not compatible
query I rowsort label-3465
SELECT ALL tab0.col1 / col0 + col1 AS col2 FROM tab0
----
89
92
99

onlyif mysql # use DIV operator for integer division
query I rowsort label-3466
SELECT cor0.col0 DIV 64 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3466
SELECT cor0.col0 / 64 FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT DISTINCT 63 AS col1 FROM tab0, tab0 AS cor0
----
63

query I rowsort
SELECT ALL + + col0 * + col2 AS col1 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT ALL + cor0.col0 * cor0.col0 + cor0.col0 AS col0 FROM tab1 cor0
----
12
4160
6480

query I rowsort
SELECT + col1 - col2 * col1 * cor0.col2 FROM tab1 AS cor0
----
-119795
-32480
-75790

query I rowsort
SELECT - cor0.col2 + cor0.col0 FROM tab2 cor0
----
-20
41
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + + col2 + + col2 col2 FROM tab0
----
253
37
90

query I rowsort
SELECT - tab0.col1 AS col1 FROM tab0, tab1, tab2 cor0
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84

query I rowsort
SELECT col1 * ( 25 * col1 ) FROM tab0
----
184900
207025
235225

query I rowsort
SELECT DISTINCT - col0 + - ( 26 ) + col0 AS col2 FROM tab1
----
-26

onlyif mysql # use DIV operator for integer division
query I rowsort label-3476
SELECT tab0.col0 DIV + 47 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3476
SELECT tab0.col0 / + 47 FROM tab0
----
0
0
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-3477
SELECT col0 DIV - 83 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3477
SELECT col0 / - 83 AS col0 FROM tab2
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3478
SELECT col0 + + tab1.col2 + col1 DIV - col2 FROM tab1
----
121
176
57

skipif mysql # not compatible
query I rowsort label-3478
SELECT col0 + + tab1.col2 + col1 / - col2 FROM tab1
----
121
176
57

query I rowsort
SELECT ALL + tab1.col0 + ( - tab1.col1 ) FROM tab1
----
-23
54
67

query I rowsort
SELECT + col1 + ( col2 * col2 ) FROM tab0
----
1175
6815
98

query I rowsort
SELECT + - col2 * - col1 * - col0 FROM tab0 AS cor0
----
-3395
-664118
-68112

query I rowsort
SELECT ALL ( - 12 ) * - col2 - 75 AS col0 FROM tab1
----
1077
573
609

query I rowsort
SELECT - 55 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to ac76841ceecd2311e80c621d15bacdd3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + col0 ) * col1 col0 FROM tab2
----
1343
217
4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-3485
SELECT + ( col2 ) + cor0.col0 DIV ( col2 ) FROM tab0 AS cor0
----
33
36
83

skipif mysql # not compatible
query I rowsort label-3485
SELECT + ( col2 ) + cor0.col0 / ( col2 ) FROM tab0 AS cor0
----
33
36
83

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3486
SELECT + col0 - col1 * CAST( - cor0.col2 + col0 AS SIGNED ) col1 FROM tab1 AS cor0
----
-6
1329
288

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3486
SELECT + col0 - col1 * CAST ( - cor0.col2 + col0 AS INTEGER ) col1 FROM tab1 AS cor0
----
-6
1329
288

query I rowsort
SELECT 80 * + col0 AS col0 FROM tab1 AS cor0
----
240
5120
6400

onlyif mysql # use DIV operator for integer division
query I rowsort label-3488
SELECT - 62 DIV - col0 AS col2 FROM tab0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-3488
SELECT - 62 / - col0 AS col2 FROM tab0
----
0
1
2

query I rowsort
SELECT - col0 * col0 + cor0.col1 AS col1 FROM tab0 AS cor0
----
-1128
-490
-7830

query I rowsort
SELECT + col0 + - col2 * ( - col1 ) AS col1 FROM tab1 AS cor0
----
1328
1407
634

query I rowsort
SELECT ALL + + 95 * col2 - + 7 * col0 FROM tab0 AS cor0
----
-150
2967
7167

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col1 ) col1 FROM tab0 cor0
----
86
91
97

query I rowsort
SELECT DISTINCT + 99 * col2 FROM tab2 AS cor0
----
2574
2673
3762

query I rowsort
SELECT DISTINCT 74 AS col1 FROM tab0, tab1 AS cor0
----
74

query I rowsort
SELECT ALL col1 * 45 FROM tab0
----
3870
4095
4365

query I rowsort
SELECT + col2 + + col0 * - 23 FROM tab0 cor0
----
-1965
-519
-804

query I rowsort
SELECT 36 + cor0.col1 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to b659e9f0c660852745841dae9026a923

query I rowsort
SELECT DISTINCT - 23 + cor0.col0 * col1 FROM tab2 AS cor0
----
1320
194
4579

onlyif mysql # use DIV operator for integer division
query I rowsort label-3499
SELECT DISTINCT - + cor0.col0 DIV + col0 + + col0 FROM tab2 AS cor0
----
6
77
78

skipif mysql # not compatible
query I rowsort label-3499
SELECT DISTINCT - + cor0.col0 / + col0 + + col0 FROM tab2 AS cor0
----
6
77
78

query I rowsort
SELECT + + 77 FROM tab0 AS cor0
----
77
77
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 * col1 col2 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT - - col0 * + col0 + - col0 AS col0 FROM tab1 AS cor0
----
4032
6
6320

query I rowsort
SELECT DISTINCT ( - cor0.col2 ) * - col0 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT DISTINCT + 57 * - col2 * col0 AS col1 FROM tab1 AS cor0
----
-207936
-437760
-9234

query I rowsort
SELECT ALL + 64 * col2 AS col2 FROM tab2 AS cor0
----
1664
1728
2432

query I rowsort
SELECT + ( - col1 ) + - 25 AS col2 FROM tab1 AS cor0
----
-35
-38
-51

query I rowsort
SELECT DISTINCT + 79 * + col1 + + cor0.col1 FROM tab2 AS cor0
----
1360
2480
4720

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3508
SELECT + CAST( - 90 AS SIGNED ) AS col2 FROM tab2
----
-90
-90
-90

skipif mysql # not compatible
query I rowsort label-3508
SELECT + CAST ( - 90 AS INTEGER ) AS col2 FROM tab2
----
-90
-90
-90

onlyif mysql # use DIV operator for integer division
query I rowsort label-3509
SELECT - col2 DIV - col1 + + col2 FROM tab1
----
103
56
62

skipif mysql # not compatible
query I rowsort label-3509
SELECT - col2 / - col1 + + col2 FROM tab1
----
103
56
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + + tab2.col0 + - col2 col2 FROM tab2
----
11
111
58

query I rowsort
SELECT DISTINCT + 26 * 47 AS col0 FROM tab2, tab0, tab1 AS cor0
----
1222

query I rowsort
SELECT ( + col1 ) + + 60 FROM tab1 AS cor0
----
70
73
86

query I rowsort
SELECT + ( - cor0.col0 ) AS col1 FROM tab2 cor0
----
-7
-78
-79

query I rowsort
SELECT - col0 * tab1.col1 + - tab1.col1 FROM tab1
----
-104
-1053
-650

query I rowsort
SELECT 65 - - col1 FROM tab0
----
151
156
162

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3516
SELECT DISTINCT + col0 + CAST( - col0 AS SIGNED ) - col0 * - tab2.col1 FROM tab2
----
1343
217
4602

skipif mysql # not compatible
query I rowsort label-3516
SELECT DISTINCT + col0 + CAST ( - col0 AS INTEGER ) - col0 * - tab2.col1 FROM tab2
----
1343
217
4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-3517
SELECT col1 + 15 - - col0 DIV + col0 AS col0 FROM tab1 AS cor0
----
26
29
42

skipif mysql # not compatible
query I rowsort label-3517
SELECT col1 + 15 - - col0 / + col0 AS col0 FROM tab1 AS cor0
----
26
29
42

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab0 cor2, tab0 AS cor3
----
3645 values hashing to 7e665e04e6102323f69d70091871d1d2

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3519
SELECT + CAST( NULL AS SIGNED ) * - col2 + - tab0.col2 / 40 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3519
SELECT + CAST ( NULL AS INTEGER ) * - col2 + - tab0.col2 / 40 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 81 * - 77 * col1 col0 FROM tab2 AS cor0
----
-106029
-193347
-367983

query I rowsort
SELECT col1 * + col1 + - col0 FROM tab2 AS cor0
----
210
3403
954

query I rowsort
SELECT ALL ( - ( col0 ) ) AS col2 FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT 22 * - 56 * + col0 AS col1 FROM tab0 AS cor0
----
-109648
-29568
-43120

query I rowsort
SELECT DISTINCT ( + col1 * - col2 ) + ( + col0 ) FROM tab1
----
-1168
-1401
-506

query I rowsort
SELECT ALL - col0 + 88 AS col1 FROM tab2
----
10
81
9

query I rowsort
SELECT DISTINCT - tab0.col1 + 17 AS col2 FROM tab1, tab2 cor0 CROSS JOIN tab0
----
-69
-74
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * + col2 col1 FROM tab2 AS cor0
----
-1444
-676
-729

onlyif mysql # use DIV operator for integer division
query I rowsort label-3528
SELECT - 0 - col2 DIV col2 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3528
SELECT - 0 - col2 / col2 FROM tab0 AS cor0
----
-1
-1
-1

onlyif mysql # use DIV operator for integer division
query I rowsort label-3529
SELECT col2 DIV + 15 FROM tab0 AS cor0
----
0
2
5

skipif mysql # not compatible
query I rowsort label-3529
SELECT col2 / + 15 FROM tab0 AS cor0
----
0
2
5

query I rowsort
SELECT ALL - ( ( cor0.col1 ) ) FROM tab0 AS cor0
----
-86
-91
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-3531
SELECT DISTINCT CAST( + col2 AS SIGNED ) DIV col1 + - 53 * + col0 + col0 FROM tab0 AS cor0
----
-1248
-1820
-4628

skipif mysql # not compatible
query I rowsort label-3531
SELECT DISTINCT CAST ( + col2 AS INTEGER ) / col1 + - 53 * + col0 + col0 FROM tab0 AS cor0
----
-1248
-1820
-4628

query I rowsort
SELECT ALL col1 + + 23 AS col2 FROM tab0 AS cor0
----
109
114
120

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col2 ) + col1 - - 7 col2 FROM tab2 AS cor0
----
62
65
92

query I rowsort
SELECT ALL + 3 + + cor0.col1 FROM tab0 AS cor0
----
100
89
94

query I rowsort
SELECT + 96 * - 29 AS col2 FROM tab2 AS cor0
----
-2784
-2784
-2784

query I rowsort
SELECT ALL 40 * col0 + cor0.col0 * + col0 - cor0.col0 FROM tab0 AS cor0
----
11392
1512
2590

query I rowsort
SELECT DISTINCT col0 * + cor0.col0 AS col0 FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT ALL - - 36 * - col2 FROM tab1 AS cor0
----
-1944
-2052
-3456

query I rowsort
SELECT DISTINCT 5 + 7 FROM tab2 AS cor0
----
12

query I rowsort
SELECT ALL - col2 + - col1 + - col1 AS col1 FROM tab2 cor0
----
-144
-72
-89

query I rowsort
SELECT cor0.col0 * + cor0.col2 + + col0 FROM tab1 AS cor0
----
165
3712
7760

query I rowsort
SELECT ALL + ( cor0.col2 ) * cor0.col0 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT col0 * col1 + 86 FROM tab0 AS cor0
----
2150
3481
8185

query I rowsort
SELECT ALL - + 75 + col1 FROM tab2 AS cor0
----
-16
-44
-58

query I rowsort
SELECT + 10 * cor0.col0 FROM tab2, tab1 AS cor0
----
9 values hashing to eac72a19176f52ed86650bfbb5c81eb1

query I rowsort
SELECT + - col1 + col1 + col2 AS col0 FROM tab0 AS cor0
----
1
33
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + cor0.col2 col0 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT + col2 * + 8 * + col2 FROM tab2 AS cor0
----
11552
5408
5832

query I rowsort
SELECT - col1 * + cor0.col1 AS col1 FROM tab0 cor0
----
-7396
-8281
-9409

query I rowsort
SELECT 66 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 29794915b585eea848ad670075452c88

query I rowsort
SELECT DISTINCT col0 + - 9 * col1 FROM tab2 cor0
----
-272
-453
-74

onlyif mysql # use DIV operator for integer division
query I rowsort label-3552
SELECT DISTINCT + col2 DIV 41 AS col0 FROM tab1 AS cor0
----
1
2

skipif mysql # not compatible
query I rowsort label-3552
SELECT DISTINCT + col2 / 41 AS col0 FROM tab1 AS cor0
----
1
2

onlyif mysql # use DIV operator for integer division
query I rowsort label-3553
SELECT + - col0 DIV + col0 AS col0 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3553
SELECT + - col0 / + col0 AS col0 FROM tab2 AS cor0
----
-1
-1
-1

onlyif mysql # use DIV operator for integer division
query I rowsort label-3554
SELECT tab0.col0 * col0 + col0 DIV + col0 FROM tab0
----
1226
577
7922

skipif mysql # not compatible
query I rowsort label-3554
SELECT tab0.col0 * col0 + col0 / + col0 FROM tab0
----
1226
577
7922

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3555
SELECT + col1 * + CAST( NULL AS DECIMAL ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3555
SELECT + col1 * + CAST ( NULL AS REAL ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col1 * - ( tab2.col0 ) AS col0 FROM tab2
----
-1343
-217
-4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-3557
SELECT DISTINCT - col1 * - col0 + + cor0.col1 DIV col0 AS col0 FROM tab2 cor0
----
1343
221
4602

skipif mysql # not compatible
query I rowsort label-3557
SELECT DISTINCT - col1 * - col0 + + cor0.col1 / col0 AS col0 FROM tab2 cor0
----
1343
221
4602

query I rowsort
SELECT 31 AS col2 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to c3c6f92f0ca72d71793339f88a57e336

query I rowsort
SELECT ALL + cor0.col1 * - col2 + + col2 + col1 FROM tab2 AS cor0
----
-1449
-591
-779

query I rowsort
SELECT DISTINCT + col1 + 85 FROM tab2 AS cor0
----
102
116
144

query I rowsort
SELECT + 27 - col0 * + cor0.col0 * + col0 AS col0 FROM tab2 AS cor0
----
-316
-474525
-493012

query I rowsort
SELECT ALL col0 * + ( + 16 ) FROM tab2
----
112
1248
1264

query I rowsort
SELECT DISTINCT - 5 + + 96 FROM tab1 AS cor0
----
91

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3564
SELECT ALL CAST( - col2 AS SIGNED ) col0 FROM tab2 cor0
----
-26
-27
-38

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3564
SELECT ALL CAST ( - col2 AS INTEGER ) col0 FROM tab2 cor0
----
-26
-27
-38

query I rowsort
SELECT col1 * ( cor0.col0 ) AS col1 FROM tab0 cor0
----
2064
3395
8099

query I rowsort
SELECT DISTINCT + 8 * + col1 AS col2 FROM tab0 AS cor0
----
688
728
776

query I rowsort
SELECT + cor0.col0 - cor0.col0 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + ( - 95 ) FROM tab2 AS cor0
----
-95
-95
-95

query I rowsort
SELECT col1 - col0 * col2 * col1 FROM tab0 cor0
----
-3298
-664027
-68026

query I rowsort
SELECT DISTINCT col2 * + col1 * - col2 FROM tab2 AS cor0
----
-22599
-24548
-39884

query I rowsort
SELECT DISTINCT cor0.col2 + + col0 * col0 AS col0 FROM tab1 cor0
----
4153
63
6496

query I rowsort
SELECT DISTINCT 0 FROM tab1, tab0 cor0
----
0

query I rowsort
SELECT + - col1 * cor0.col2 FROM tab1 cor0
----
-1248
-1404
-570

query I rowsort
SELECT - + col1 * - ( col0 * col0 ) + - col2 AS col0 FROM tab0 cor0
----
118824
49503
720729

query I rowsort
SELECT ( + col0 ) + col0 + col0 AS col0 FROM tab0
----
105
267
72

query I rowsort
SELECT ALL - cor0.col0 + cor1.col2 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 2689e3ba6de7ff1daca62260a4832077

query I rowsort
SELECT - 73 + col2 + ( col2 ) AS col0 FROM tab1
----
119
35
41

onlyif mysql # use DIV operator for integer division
query I rowsort label-3578
SELECT ALL col0 * col1 DIV - ( col2 ) FROM tab1
----
-1
-10
-11

skipif mysql # not compatible
query I rowsort label-3578
SELECT ALL col0 * col1 / - ( col2 ) FROM tab1
----
-1
-10
-11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( 41 ) col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e

query I rowsort
SELECT DISTINCT - col0 * 74 + - cor0.col0 FROM tab2 AS cor0
----
-525
-5850
-5925

query I rowsort
SELECT DISTINCT col0 + - 50 * + col0 FROM tab1 AS cor0
----
-147
-3136
-3920

query I rowsort
SELECT ALL - cor0.col2 + ( col0 ) FROM tab2 AS cor0
----
-20
41
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 - ( - 50 * + cor0.col1 + col0 ) col0 FROM tab1 AS cor0
----
1351
493
666

query I rowsort
SELECT + 62 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 4911b1417a3797d23dd8f38b6ed05c1b

query I rowsort
SELECT DISTINCT + col2 * col1 + col0 - col2 AS col0 FROM tab1 cor0
----
1232
1353
577

query I rowsort
SELECT ALL - col0 * - 84 FROM tab2
----
588
6552
6636

query I rowsort
SELECT DISTINCT + ( + 62 ) FROM tab1 AS cor0
----
62

query I rowsort
SELECT - 89 AS col1 FROM tab2, tab2 cor0
----
9 values hashing to 924a74d31360fa4301c953b423a4710e

query I rowsort
SELECT ALL - cor0.col2 - - 95 AS col0 FROM tab1, tab0, tab1 cor0
----
27 values hashing to 5b7080f693fc1b1673e706cfa737063f

query I rowsort
SELECT ALL - 24 AS col2 FROM tab0 AS cor0
----
-24
-24
-24

onlyif mysql # use DIV operator for integer division
query I rowsort label-3591
SELECT DISTINCT col0 * col1 + - col2 + col0 DIV col0 FROM tab1 AS cor0
----
25
584
945

skipif mysql # not compatible
query I rowsort label-3591
SELECT DISTINCT col0 * col1 + - col2 + col0 / col0 FROM tab1 AS cor0
----
25
584
945

query I rowsort
SELECT ALL + - ( + col0 ) * 48 + col2 AS col0 FROM tab0 AS cor0
----
-1119
-1679
-4190

query I rowsort
SELECT ALL - col0 * col0 - 51 * + 13 AS col1 FROM tab0 AS cor0
----
-1239
-1888
-8584

query I rowsort
SELECT ALL + + 63 + - col1 AS col1 FROM tab1 AS cor0
----
37
50
53

query I rowsort
SELECT ALL + col0 * + col1 + col0 * col2 AS col2 FROM tab1 AS cor0
----
240
4288
8720

query I rowsort
SELECT DISTINCT 51 AS col1 FROM tab2 AS cor0
----
51

query I rowsort
SELECT DISTINCT - - col2 * + col1 + 17 FROM tab0 AS cor0
----
114
2855
7479

query I rowsort
SELECT - col0 * col1 + - 53 FROM tab0 AS cor0
----
-2117
-3448
-8152

query I rowsort
SELECT col1 + + col0 * col2 AS col1 FROM tab1 AS cor0
----
188
3658
7693

query I rowsort
SELECT + - 9 + col2 AS col0 FROM tab1 AS cor0
----
45
48
87

query I rowsort
SELECT DISTINCT - 32 AS col0 FROM tab1
----
-32

onlyif mysql # use DIV operator for integer division
query I rowsort label-3602
SELECT - - col2 DIV - col2 FROM tab0 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3602
SELECT - - col2 / - col2 FROM tab0 cor0
----
-1
-1
-1

query I rowsort
SELECT 14 * + col2 AS col1 FROM tab2 cor0
----
364
378
532

query I rowsort
SELECT - ( col0 ) AS col2 FROM tab2 cor0
----
-7
-78
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * 54 col1 FROM tab2 AS cor0
----
1404
1458
2052

query I rowsort
SELECT col2 + + col2 * - col0 FROM tab0 cor0
----
-34
-7216
-759

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 58 * + tab2.col0 col1 FROM tab2
----
406
4524
4582

query I rowsort
SELECT ALL - col1 * ( + 28 ) AS col0 FROM tab1 AS cor0
----
-280
-364
-728

query I rowsort
SELECT ( - 27 ) AS col2 FROM tab2 AS cor0
----
-27
-27
-27

onlyif mysql # use DIV operator for integer division
query I rowsort label-3610
SELECT + 16 DIV 58 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3610
SELECT + 16 / 58 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - tab0.col0 + tab0.col0 AS col0 FROM tab0
----
0

query I rowsort
SELECT - - 53 + col0 * col0 FROM tab2 cor0
----
102
6137
6294

query I rowsort
SELECT - col2 * 85 + - col0 * ( - 93 ) + - col1 FROM tab1 AS cor0
----
-4337
-733
1097

query I rowsort
SELECT - ( 24 ) * + col0 AS col1 FROM tab2 AS cor0
----
-168
-1872
-1896

query I rowsort
SELECT col1 + col2 * - col1 AS col0 FROM tab1 AS cor0
----
-1235
-1378
-560

query I rowsort
SELECT ALL cor1.col0 AS col0 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870

query I rowsort
SELECT ALL 76 FROM tab2, tab2 cor0
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5

query I rowsort
SELECT - - cor1.col0 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870

query I rowsort
SELECT ALL + 22 FROM tab0, tab1 AS cor0
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9

query I rowsort
SELECT - + 47 * col1 FROM tab0 AS cor0
----
-4042
-4277
-4559

query I rowsort
SELECT DISTINCT 84 FROM tab2, tab1 AS cor0
----
84

query I rowsort
SELECT col0 * - col1 * tab1.col0 FROM tab1
----
-234
-40960
-83200

query I rowsort
SELECT DISTINCT col1 * col1 + - col1 FROM tab1
----
156
650
90

query I rowsort
SELECT + col2 * + ( + 85 ) + + col2 * 68 FROM tab0
----
12546
153
5049

query I rowsort
SELECT DISTINCT - - cor0.col1 + col0 * + cor0.col2 FROM tab0 AS cor0
----
132
7389
878

query I rowsort
SELECT DISTINCT + col0 * - 82 * ( col0 ) AS col0 FROM tab2 AS cor0
----
-4018
-498888
-511762

query I rowsort
SELECT ALL col1 + ( 90 ) * col2 AS col1 FROM tab1 cor0
----
4886
5140
8653

onlyif mysql # use DIV operator for integer division
query I rowsort label-3628
SELECT + - col2 DIV + 73 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3628
SELECT + - col2 / + 73 FROM tab1 AS cor0
----
-1
0
0

query I rowsort
SELECT 84 AS col0 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to e8cd683fe8cea77b4326d9b80f21c74a

query I rowsort
SELECT ALL - col0 * + 87 FROM tab1 AS cor0
----
-261
-5568
-6960

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3631
SELECT DISTINCT - col0 * CAST( 59 AS SIGNED ) FROM tab2 AS cor0
----
-413
-4602
-4661

skipif mysql # not compatible
query I rowsort label-3631
SELECT DISTINCT - col0 * CAST ( 59 AS INTEGER ) FROM tab2 AS cor0
----
-413
-4602
-4661

onlyif mysql # use DIV operator for integer division
query I rowsort label-3632
SELECT col2 + + col1 * + cor0.col2 DIV col2 AS col2 FROM tab1 AS cor0
----
109
67
80

skipif mysql # not compatible
query I rowsort label-3632
SELECT col2 + + col1 * + cor0.col2 / col2 AS col2 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT col1 + 22 FROM tab0 AS cor0
----
108
113
119

query I rowsort
SELECT ALL - ( - col2 ) + col1 AS col1 FROM tab1 cor0
----
109
67
80

query I rowsort
SELECT 5 + col0 AS col0 FROM tab2 AS cor0
----
12
83
84

query I rowsort
SELECT ALL + - 2 + + col1 + + col1 * - 16 * + col2 AS col0 FROM tab2 AS cor0
----
-10321
-13363
-24487

query I rowsort
SELECT DISTINCT 85 - - col2 FROM tab2 AS cor0
----
111
112
123

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3638
SELECT - CAST( col0 AS SIGNED ) * - cor0.col2 AS col0 FROM tab1 AS cor0
----
162
3648
7680

skipif mysql # not compatible
query I rowsort label-3638
SELECT - CAST ( col0 AS INTEGER ) * - cor0.col2 AS col0 FROM tab1 AS cor0
----
162
3648
7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-3639
SELECT DISTINCT col1 DIV col0 AS col2 FROM tab0 cor0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-3639
SELECT DISTINCT col1 / col0 AS col2 FROM tab0 cor0
----
1
2
3

query I rowsort
SELECT ALL + + col2 + 51 FROM tab1 AS cor0
----
105
108
147

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 + 47 + + cor0.col1 col2 FROM tab2 AS cor0
----
47
47
47

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3642
SELECT ALL - CAST( NULL AS SIGNED ) - col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3642
SELECT ALL - CAST ( NULL AS INTEGER ) - col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col0 + col0 + + col0 AS col1 FROM tab1 cor0
----
192
240
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-3644
SELECT + 51 DIV col1 + col2 DIV + col1 FROM tab1 AS cor0
----
10
10
3

skipif mysql # not compatible
query I rowsort label-3644
SELECT + 51 / col1 + col2 / + col1 FROM tab1 AS cor0
----
10
10
3

query I rowsort
SELECT ALL - col2 * - ( col1 ) + + 82 * - col1 AS col1 FROM tab2 AS cor0
----
-1705
-3304
-748

query I rowsort
SELECT DISTINCT + col2 * 63 + - col2 FROM tab1
----
3348
3534
5952

onlyif mysql # use DIV operator for integer division
query I rowsort label-3647
SELECT ALL - col2 + col0 DIV tab1.col2 + + col1 AS col0 FROM tab1
----
-28
-46
-83

skipif mysql # not compatible
query I rowsort label-3647
SELECT ALL - col2 + col0 / tab1.col2 + + col1 AS col0 FROM tab1
----
-28
-46
-83

query I rowsort
SELECT 63 * col1 + col1 FROM tab0 AS cor0
----
5504
5824
6208

query I rowsort
SELECT DISTINCT - col0 * col2 * col1 + 76 FROM tab1 AS cor0
----
-36404
-4136
-99764

query I rowsort
SELECT ALL + 13 + col0 FROM tab1 AS cor0
----
16
77
93

query I rowsort
SELECT ALL ( cor0.col2 ) + 67 FROM tab0 AS cor0
----
100
149
68

query I rowsort
SELECT - + col0 + col0 * - cor0.col1 FROM tab2 cor0
----
-1422
-224
-4680

query I rowsort
SELECT - ( col1 ) * - col2 AS col2 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT 33 AS col0 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 76da8bc7cae18ecf856438f872430c80

query I rowsort
SELECT + 95 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 14faa6dda52e3dfe1f5db2579c274a7e

query I rowsort
SELECT ALL cor0.col1 + col2 AS col2 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT ALL + 75 + col0 FROM tab0 AS cor0
----
110
164
99

skipif mysql # not compatible
query I rowsort
SELECT 34 + col1 - + CAST ( - col0 AS REAL ) FROM tab0
----
144
166
214

query I rowsort
SELECT ALL 36 AS col0 FROM tab2
----
36
36
36

query I rowsort
SELECT - col1 + + ( + cor0.col0 ) AS col2 FROM tab2 AS cor0
----
-24
19
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-3661
SELECT DISTINCT + col2 DIV + ( col1 ) - + col1 FROM tab0 AS cor0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-3661
SELECT DISTINCT + col2 / + ( col1 ) - + col1 FROM tab0 AS cor0
----
-86
-91
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-3662
SELECT DISTINCT cor0.col2 + - 96 DIV col1 AS col1 FROM tab0 AS cor0
----
1
32
81

skipif mysql # not compatible
query I rowsort label-3662
SELECT DISTINCT cor0.col2 + - 96 / col1 AS col1 FROM tab0 AS cor0
----
1
32
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-3663
SELECT + col2 DIV - ( 44 * col1 ) FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3663
SELECT + col2 / - ( 44 * col1 ) FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT ALL - col1 * ( - cor0.col2 ) AS col0 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT cor0.col0 * 92 * - 97 FROM tab0 cor0
----
-214176
-312340
-794236

query I rowsort
SELECT ALL - col1 + 94 + + tab2.col2 FROM tab2
----
115
61
90

query I rowsort
SELECT col2 * - 64 + - 59 + tab0.col1 * - col2 * col2 FROM tab0
----
-220
-617191
-95825

query I rowsort
SELECT ALL col0 * - 35 + 92 FROM tab2
----
-153
-2638
-2673

query I rowsort
SELECT DISTINCT 47 AS col2 FROM tab2, tab0 AS cor0
----
47

query I rowsort
SELECT 30 * + cor0.col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 387c5a092dca2619969b8e6e32bd3af6

onlyif mysql # use DIV operator for integer division
query I rowsort label-3671
SELECT - col0 DIV + cor0.col2 + col1 AS col1 FROM tab0 AS cor0
----
62
86
90

skipif mysql # not compatible
query I rowsort label-3671
SELECT - col0 / + cor0.col2 + col1 AS col1 FROM tab0 AS cor0
----
62
86
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT ALL col1 + CAST ( 73 AS REAL ) col0 FROM tab2 AS cor0
----
104
132
90

query I rowsort
SELECT ALL col0 + 94 FROM tab0 cor0
----
118
129
183

onlyif mysql # use DIV operator for integer division
query I rowsort label-3674
SELECT + - col2 + 20 DIV col1 AS col2 FROM tab2 AS cor0
----
-26
-27
-37

skipif mysql # not compatible
query I rowsort label-3674
SELECT + - col2 + 20 / col1 AS col2 FROM tab2 AS cor0
----
-26
-27
-37

query I rowsort
SELECT ALL + cor0.col2 + ( - col1 + + col1 ) AS col0 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT ALL + col1 * col1 + - col2 FROM tab2 AS cor0
----
251
3455
934

onlyif mysql # use DIV operator for integer division
query I rowsort label-3677
SELECT col1 DIV - ( col2 * - col1 ) AS col2 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3677
SELECT col1 / - ( col2 * - col1 ) AS col2 FROM tab0
----
0
0
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-3678
SELECT - - col0 + - col2 DIV col1 FROM tab2 AS cor0
----
7
77
78

skipif mysql # not compatible
query I rowsort label-3678
SELECT - - col0 + - col2 / col1 FROM tab2 AS cor0
----
7
77
78

query I rowsort
SELECT ALL col0 * - 97 FROM tab0 AS cor0
----
-2328
-3395
-8633

query I rowsort
SELECT ALL col2 * col0 + + col0 * col2 * - col2 FROM tab0 cor0
----
-25344
-591138
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3681
SELECT ALL + col2 + + ( + col1 + - col2 ) DIV col1 AS col2 FROM tab2 AS cor0
----
26
27
37

skipif mysql # not compatible
query I rowsort label-3681
SELECT ALL + col2 + + ( + col1 + - col2 ) / col1 AS col2 FROM tab2 AS cor0
----
26
27
37

query I rowsort
SELECT 30 + + col1 * col1 FROM tab0
----
7426
8311
9439

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3683
SELECT + CAST( NULL AS SIGNED ) + + tab2.col0 * tab2.col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3683
SELECT + CAST ( NULL AS INTEGER ) + + tab2.col0 * tab2.col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - cor1.col0 * 59 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f4878f7c67a9d3dfbbc408ed517e79bb

query I rowsort
SELECT - ( col2 + + col2 * col2 ) AS col2 FROM tab2
----
-1482
-702
-756

query I rowsort
SELECT ALL + 38 + - col1 AS col1 FROM tab2 AS cor0
----
-21
21
7

query I rowsort
SELECT + + 12 FROM tab1 cor0
----
12
12
12

query I rowsort
SELECT ALL - 38 + col2 AS col2 FROM tab0 AS cor0
----
-37
-5
44

query I rowsort
SELECT ALL - 94 + 48 * col0 AS col2 FROM tab1 AS cor0
----
2978
3746
50

onlyif mysql # use DIV operator for integer division
query I rowsort label-3690
SELECT + ( - col0 ) DIV col1 + CAST( col2 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
25
27
34

skipif mysql # not compatible
query I rowsort label-3690
SELECT + ( - col0 ) / col1 + CAST ( col2 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
25
27
34

query I rowsort
SELECT DISTINCT - 43 + - ( - col0 ) FROM tab2 AS cor0
----
-36
35
36

query I rowsort
SELECT ALL col2 * 53 AS col2 FROM tab2 AS cor0
----
1378
1431
2014

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + col1 + - col1 ) col2 FROM tab2
----
0

query I rowsort
SELECT tab1.col2 * - tab1.col2 + + 71 FROM tab1
----
-2845
-3178
-9145

query I rowsort
SELECT + 40 AS col0 FROM tab0
----
40
40
40

query I rowsort
SELECT ALL - + col2 * col2 - - ( - col1 + + col2 ) * - cor0.col2 AS col0 FROM tab2 AS cor0
----
-2242
-621
182

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 11 + col0 * ( col2 * - col1 ) col0 FROM tab2 AS cor0
----
-119663
-51045
-5870

onlyif mysql # use DIV operator for integer division
query I rowsort label-3698
SELECT DISTINCT - - col0 * - cor0.col1 + ( - col2 ) DIV + cor0.col1 FROM tab1 AS cor0
----
-1047
-645
-80

skipif mysql # not compatible
query I rowsort label-3698
SELECT DISTINCT - - col0 * - cor0.col1 + ( - col2 ) / + cor0.col1 FROM tab1 AS cor0
----
-1047
-645
-80

query I rowsort
SELECT DISTINCT ( + 42 ) AS col0 FROM tab1 AS cor0
----
42

query I rowsort
SELECT - 35 * + col0 * cor0.col0 FROM tab0 AS cor0
----
-20160
-277235
-42875

query I rowsort
SELECT col0 * 70 FROM tab0 AS cor0
----
1680
2450
6230

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab0 AS cor0 CROSS JOIN tab0, tab1 cor1, tab2 AS cor2
----
3645 values hashing to c3f17e238f07c9d20c4ee001084f26c7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3703
SELECT ALL col1 + + col2 * + cor0.col2 + - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3703
SELECT ALL col1 + + col2 * + cor0.col2 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3704
SELECT DISTINCT - ( + col2 ) DIV + col0 + + col2 - col1 * col1 AS col1 FROM tab0 AS cor0
----
-7364
-8199
-9408

skipif mysql # not compatible
query I rowsort label-3704
SELECT DISTINCT - ( + col2 ) / + col0 + + col2 - col1 * col1 AS col1 FROM tab0 AS cor0
----
-7364
-8199
-9408

onlyif mysql # use DIV operator for integer division
query I rowsort label-3705
SELECT - ( 46 ) DIV col0 AS col1 FROM tab1 cor0
----
-15
0
0

skipif mysql # not compatible
query I rowsort label-3705
SELECT - ( 46 ) / col0 AS col1 FROM tab1 cor0
----
-15
0
0

query I rowsort
SELECT - 77 + + col2 * + col1 FROM tab0 AS cor0
----
20
2761
7385

query I rowsort
SELECT - tab1.col0 AS col2 FROM tab2, tab2 AS cor0 CROSS JOIN tab1
----
27 values hashing to 729c1edda9332398299f39cd174ed840

query I rowsort
SELECT ALL + tab1.col0 * 57 AS col2 FROM tab1
----
171
3648
4560

query I rowsort
SELECT DISTINCT + 76 FROM tab0, tab2 AS cor0
----
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 + + col0 col1 FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT DISTINCT 38 FROM tab0, tab0 cor0
----
38

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3712
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col2 FROM tab1, tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3712
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col2 FROM tab1, tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor1.col0 col0 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

onlyif mysql # use DIV operator for integer division
query I rowsort label-3714
SELECT DISTINCT col1 DIV - 97 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3714
SELECT DISTINCT col1 / - 97 FROM tab2
----
0

query I rowsort
SELECT DISTINCT col2 * - 28 FROM tab2
----
-1064
-728
-756

query I rowsort
SELECT DISTINCT - cor0.col1 - - 85 FROM tab2 AS cor0
----
26
54
68

query I rowsort
SELECT + 58 * + col2 + + col0 FROM tab1 cor0
----
3135
3370
5648

onlyif mysql # use DIV operator for integer division
query I rowsort label-3718
SELECT - ( col0 ) * col1 + - ( - 64 ) DIV + cor0.col0 FROM tab0 AS cor0
----
-2062
-3394
-8099

skipif mysql # not compatible
query I rowsort label-3718
SELECT - ( col0 ) * col1 + - ( - 64 ) / + cor0.col0 FROM tab0 AS cor0
----
-2062
-3394
-8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-3719
SELECT col1 * col2 DIV - col0 AS col1 FROM tab2 AS cor0
----
-119
-19
-8

skipif mysql # not compatible
query I rowsort label-3719
SELECT col1 * col2 / - col0 AS col1 FROM tab2 AS cor0
----
-119
-19
-8

onlyif mysql # use DIV operator for integer division
query I rowsort label-3720
SELECT + 95 DIV 34 FROM tab2, tab2 AS cor0
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

skipif mysql # not compatible
query I rowsort label-3720
SELECT + 95 / 34 FROM tab2, tab2 AS cor0
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

query I rowsort
SELECT + - cor0.col0 AS col0 FROM tab2 cor0
----
-7
-78
-79

query I rowsort
SELECT col0 + - 37 FROM tab2 AS cor0
----
-30
41
42

query I rowsort
SELECT 31 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 - - col0 col1 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT + 92 * - col1 FROM tab0 AS cor0
----
-7912
-8372
-8924

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 * cor0.col0 col1 FROM tab1 AS cor0
----
162
3648
7680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3727
SELECT - 74 * col0 * CAST( - col1 * col1 AS SIGNED ) FROM tab0 AS cor0
----
13135296
24369310
54538666

skipif mysql # not compatible
query I rowsort label-3727
SELECT - 74 * col0 * CAST ( - col1 * col1 AS INTEGER ) FROM tab0 AS cor0
----
13135296
24369310
54538666

query I rowsort
SELECT + cor0.col1 + 40 * cor0.col2 AS col1 FROM tab0 AS cor0
----
137
1406
3371

query I rowsort
SELECT + + col2 + - col1 * + 67 AS col1 FROM tab2 AS cor0
----
-1101
-2050
-3927

query I rowsort
SELECT col0 * + 9 + col1 * + col2 FROM tab0 AS cor0
----
3054
412
8263

query I rowsort
SELECT col0 + col2 * cor0.col1 AS col0 FROM tab2 AS cor0
----
1612
725
844

query I rowsort
SELECT col2 + - 50 FROM tab2 AS cor0
----
-12
-23
-24

query I rowsort
SELECT - col0 + - 44 * col0 FROM tab1 AS cor0
----
-135
-2880
-3600

query I rowsort
SELECT ALL - col1 * col0 - col2 AS col0 FROM tab1 AS cor0
----
-1136
-132
-697

query I rowsort
SELECT col0 * - col2 * + cor0.col2 FROM tab2 AS cor0
----
-114076
-5103
-52728

query I rowsort
SELECT + tab1.col2 * + col2 * col2 - - col1 FROM tab1
----
157490
185203
884749

query I rowsort
SELECT col1 * - col2 + ( + 32 ) AS col0 FROM tab0
----
-2806
-65
-7430

query I rowsort
SELECT + ( + col2 ) * - col2 AS col2 FROM tab0 AS cor0
----
-1
-1089
-6724

query I rowsort
SELECT + + col0 + 47 AS col1 FROM tab2 AS cor0
----
125
126
54

query I rowsort
SELECT DISTINCT - - col0 + col2 + col0 FROM tab2 AS cor0
----
182
196
41

query I rowsort
SELECT - cor0.col1 + - col2 * - 75 FROM tab1 AS cor0
----
4024
4265
7187

query I rowsort
SELECT + col1 + 17 AS col0 FROM tab2 cor0
----
34
48
76

query I rowsort
SELECT ALL + + col1 + ( col1 ) FROM tab1 cor0
----
20
26
52

query I rowsort
SELECT + - cor0.col1 * col0 + - cor0.col0 FROM tab2 AS cor0
----
-1422
-224
-4680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3745
SELECT DISTINCT + col1 + CAST( col1 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
20
26
52

skipif mysql # not compatible
query I rowsort label-3745
SELECT DISTINCT + col1 + CAST ( col1 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
20
26
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-3746
SELECT DISTINCT - cor0.col2 * col1 DIV col2 + col2 FROM tab1 AS cor0
----
28
47
83

skipif mysql # not compatible
query I rowsort label-3746
SELECT DISTINCT - cor0.col2 * col1 / col2 + col2 FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT ALL 71 + + 3 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3748
SELECT + + col1 * + CAST( col2 AS SIGNED ) * col0 + col1 AS col0 FROM tab1 AS cor0
----
36490
4238
99853

skipif mysql # not compatible
query I rowsort label-3748
SELECT + + col1 * + CAST ( col2 AS INTEGER ) * col0 + col1 AS col0 FROM tab1 AS cor0
----
36490
4238
99853

query I rowsort
SELECT ALL - + col1 + 85 FROM tab2 AS cor0
----
26
54
68

query I rowsort
SELECT ALL - col2 * - ( 53 ) + col2 AS col0 FROM tab1 AS cor0
----
2916
3078
5184

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + col2 * col0 col0 FROM tab0 AS cor0
----
0
7209
768

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3752
SELECT ALL - col0 * + CAST( col0 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-4096
-6400
-9

skipif mysql # not compatible
query I rowsort label-3752
SELECT ALL - col0 * + CAST ( col0 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-4096
-6400
-9

query I rowsort
SELECT DISTINCT col2 * + ( col0 * + col0 ) AS col2 FROM tab1 AS cor0
----
233472
486
614400

query I rowsort
SELECT 44 * col1 AS col0 FROM tab1
----
1144
440
572

query I rowsort
SELECT ALL + 49 * + col1 * + col0 FROM tab0
----
101136
166355
396851

query I rowsort
SELECT + + col1 - - col0 * col2 AS col0 FROM tab1 AS cor0
----
188
3658
7693

query I rowsort
SELECT ALL - col2 - cor0.col0 * - col2 FROM tab2 AS cor0
----
162
2002
2964

query I rowsort
SELECT ALL + col1 + + 79 * ( cor0.col2 * + col1 ) AS col0 FROM tab1 AS cor0
----
110942
45040
98605

onlyif mysql # use DIV operator for integer division
query I rowsort label-3759
SELECT ALL col1 * + col1 + + col0 DIV col1 + col0 * - col0 col2 FROM tab1 cor0
----
-3990
-6225
667

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3759
SELECT ALL col1 * + col1 + + col0 / col1 + col0 * - col0 col2 FROM tab1 cor0
----
-3990
-6225
667

query I rowsort
SELECT DISTINCT - col1 - + ( + cor0.col2 ) * + col0 * cor0.col1 AS col2 FROM tab2 AS cor0
----
-119711
-51051
-5890

onlyif mysql # use DIV operator for integer division
query I rowsort label-3761
SELECT col1 DIV + 73 - col1 AS col2 FROM tab1 AS cor0
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-3761
SELECT col1 / + 73 - col1 AS col2 FROM tab1 AS cor0
----
-10
-13
-26

query III rowsort
SELECT * FROM tab1 WHERE - col0 * - col2 <> NULL
----

query I rowsort
SELECT - tab2.col1 AS col0 FROM tab2 WHERE NOT col1 / - col0 <= + col0 + - col1
----
-31

query III rowsort
SELECT * FROM tab0 WHERE col0 <= NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NULL ) IN ( + col2 * + col2 )
----

query I rowsort
SELECT ALL - col0 * - col1 + tab2.col0 * col2 AS col0 FROM tab2
----
406
4345
6630

query I rowsort
SELECT DISTINCT col0 + - tab1.col1 * col1 AS col0 FROM tab1
----
-36
-673
-89

query I rowsort
SELECT DISTINCT + col1 * + col0 FROM tab0 WHERE NOT - col1 * - col2 BETWEEN col1 - col0 * col1 AND NULL
----

query I rowsort
SELECT DISTINCT col1 * col2 * tab2.col1 FROM tab2 WHERE - col2 < tab2.col0 * + tab2.col2 + col0
----
10982
25947
90506

query I rowsort
SELECT DISTINCT + + col1 * - col2 * 46 + - col1 AS col0 FROM tab0 AS cor0
----
-130634
-343343
-4559

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( - col0 ) col0 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT ALL + 2 - + col1 FROM tab2 AS cor0
----
-15
-29
-57

onlyif mysql # use DIV operator for integer division
query I rowsort label-3773
SELECT - col0 + col1 + + col1 DIV + col1 AS col0 FROM tab2
----
-18
-61
25

skipif mysql # not compatible
query I rowsort label-3773
SELECT - col0 + col1 + + col1 / + col1 AS col0 FROM tab2
----
-18
-61
25

query I rowsort
SELECT DISTINCT col1 + col1 * col2 AS col1 FROM tab0
----
194
2924
7553

onlyif mysql # use DIV operator for integer division
query I rowsort label-3775
SELECT - + col2 + col0 DIV + col2 FROM tab0 AS cor0
----
-33
-81
34

skipif mysql # not compatible
query I rowsort label-3775
SELECT - + col2 + col0 / + col2 FROM tab0 AS cor0
----
-33
-81
34

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3776
SELECT DISTINCT + + col2 * + col0 / - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3776
SELECT DISTINCT + + col2 * + col0 / - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

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 col2 + col2 * + 16 col1 FROM tab2 AS cor0
----
442
459
646

query I rowsort
SELECT - + col0 * col2 + - col2 * col2 FROM tab0 cor0
----
-14022
-1881
-36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( 53 ) col2 FROM tab2
----
53
53
53

query I rowsort
SELECT DISTINCT + tab2.col2 + - col0 FROM tab2
----
-41
-52
20

onlyif mysql # use DIV operator for integer division
query I rowsort label-3782
SELECT DISTINCT + + cor0.col1 * col1 DIV + cor0.col2 AS col0 FROM tab0 AS cor0
----
100
224
9409

skipif mysql # not compatible
query I rowsort label-3782
SELECT DISTINCT + + cor0.col1 * col1 / + cor0.col2 AS col0 FROM tab0 AS cor0
----
100
224
9409

query I rowsort
SELECT - + col0 * col0 + - col1 FROM tab0 AS cor0
----
-1322
-662
-8012

query I rowsort
SELECT col0 - + col0 AS col0 FROM tab2
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 44 col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d

query I rowsort
SELECT - col0 + ( - col1 ) * col0 FROM tab0 AS cor0
----
-2088
-3430
-8188

query I rowsort
SELECT ALL + ( col2 ) + - col0 * + col2 AS col1 FROM tab1 AS cor0
----
-108
-3591
-7584

query I rowsort
SELECT DISTINCT - col0 + col2 * + col2 AS col0 FROM tab1 AS cor0
----
2913
3185
9136

query I rowsort
SELECT DISTINCT 76 * col1 * ( + 93 * + col2 ) FROM tab1
----
4028760
8820864
9923472

query I rowsort
SELECT DISTINCT + 46 + col1 AS col1 FROM tab1 AS cor0
----
56
59
72

query I rowsort
SELECT + 2 FROM tab0, tab0 AS cor0
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

query I rowsort
SELECT DISTINCT - + col0 + - 45 FROM tab1 cor0
----
-109
-125
-48

query I rowsort
SELECT + ( + ( + col1 ) ) + col0 AS col1 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT DISTINCT + cor0.col2 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
26
27
38

query I rowsort
SELECT ALL + 43 * col0 AS col2 FROM tab2 AS cor0
----
301
3354
3397

query I rowsort
SELECT DISTINCT - + 8 + - col0 FROM tab2 AS cor0
----
-15
-86
-87

query I rowsort
SELECT ALL - 69 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 3bd7460efa48c66c072ad5f3c2def7e9

query I rowsort
SELECT 93 * col1 + col2 FROM tab1 AS cor0
----
1305
2472
987

query I rowsort
SELECT 52 FROM tab1, tab0 AS cor0, tab2 cor1
----
27 values hashing to 76100d10f51995d20efdeb657e444d3c

query I rowsort
SELECT tab2.col1 + col0 + + col0 AS col1 FROM tab2
----
175
215
45

query I rowsort
SELECT - cor1.col1 FROM tab1, tab2 AS cor0, tab0 cor1
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84

query I rowsort
SELECT tab2.col2 * + col0 * - col0 + tab2.col0 AS col1 FROM tab2
----
-1316
-158106
-237079

query I rowsort
SELECT ALL + 17 AS col0 FROM tab0
----
17
17
17

onlyif mysql # use DIV operator for integer division
query I rowsort label-3804
SELECT ALL + + col0 * - col2 + cor0.col0 DIV + col0 FROM tab2 AS cor0
----
-188
-2027
-3001

skipif mysql # not compatible
query I rowsort label-3804
SELECT ALL + + col0 * - col2 + cor0.col0 / + col0 FROM tab2 AS cor0
----
-188
-2027
-3001

query I rowsort
SELECT + cor0.col0 + cor0.col0 FROM tab1, tab2 cor0
----
9 values hashing to 10977325261681ddca962e0a5d2b348b

query I rowsort
SELECT ALL 41 * - 69 FROM tab0 AS cor0
----
-2829
-2829
-2829

query I rowsort
SELECT DISTINCT + + 99 * 89 FROM tab2 AS cor0
----
8811

query I rowsort
SELECT DISTINCT 71 * + col1 AS col2 FROM tab1 AS cor0
----
1846
710
923

query I rowsort
SELECT - 11 * + col0 FROM tab1 cor0
----
-33
-704
-880

query I rowsort
SELECT 75 * - cor0.col2 + + col1 * col1 AS col2 FROM tab0 AS cor0
----
2131
4921
9334

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - col0 ) col2 FROM tab1 cor0
----
-3
-64
-80

query I rowsort
SELECT + + col0 * col0 AS col2 FROM tab1 cor0
----
4096
6400
9

query I rowsort
SELECT cor0.col1 * - col1 + col0 AS col0 FROM tab0 AS cor0
----
-7372
-8192
-9374

query I rowsort
SELECT 26 * col2 * - cor0.col2 AS col0 FROM tab0 AS cor0
----
-174824
-26
-28314

query I rowsort
SELECT - 30 * 57 * - col1 FROM tab1 AS cor0
----
17100
22230
44460

query I rowsort
SELECT - col0 + 56 * col2 AS col2 FROM tab0 AS cor0
----
1824
21
4503

query I rowsort
SELECT col2 * 68 AS col2 FROM tab0
----
2244
5576
68

query I rowsort
SELECT col0 * + tab0.col1 * - col1 AS col1 FROM tab0
----
-177504
-329315
-737009

query I rowsort
SELECT ALL + - 34 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 40442a74794ded4c78101eefe525a5bb

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3820
SELECT CAST( NULL AS SIGNED ) + col2 + + cor0.col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3820
SELECT CAST ( NULL AS INTEGER ) + col2 + + cor0.col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 96 + + col0 * - col2 AS col0 FROM tab0
----
-696
-7202
61

query I rowsort
SELECT 48 + col0 AS col1 FROM tab1
----
112
128
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 57 * col1 * col1 + col2 col2 FROM tab0
----
421605
472099
536314

onlyif mysql # use DIV operator for integer division
query I rowsort label-3824
SELECT DISTINCT + 42 * col2 DIV - col1 AS col2 FROM tab1
----
-239
-310
-87

skipif mysql # not compatible
query I rowsort label-3824
SELECT DISTINCT + 42 * col2 / - col1 AS col2 FROM tab1
----
-239
-310
-87

query I rowsort
SELECT ALL 76 * 66 * + col1 FROM tab1
----
130416
50160
65208

query I rowsort
SELECT DISTINCT - cor0.col0 + col0 AS col0 FROM tab0 AS cor0 WHERE NOT ( - col2 ) IN ( + cor0.col1 * - col2 )
----
0

query I rowsort
SELECT col1 * + col2 * col1 AS col0 FROM tab1
----
16224
36504
5700

query I rowsort
SELECT - col1 * tab0.col0 AS col1 FROM tab0
----
-2064
-3395
-8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab1.col0 col2 FROM tab1 WHERE NOT ( col2 * + col1 ) > ( NULL )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-3830
SELECT col2 + + col2 DIV - tab1.col1 FROM tab1
----
52
52
89

skipif mysql # not compatible
query I rowsort label-3830
SELECT col2 + + col2 / - tab1.col1 FROM tab1
----
52
52
89

query I rowsort
SELECT col0 * - col0 - - col0 * col1 FROM tab2
----
-1482
-4898
168

query I rowsort
SELECT ALL col1 + tab2.col2 AS col2 FROM tab2
----
55
58
85

query III rowsort
SELECT * FROM tab0 WHERE col1 NOT BETWEEN ( NULL ) AND NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-3834
SELECT DISTINCT col1 + col1 DIV col1 AS col1 FROM tab2
----
18
32
60

skipif mysql # not compatible
query I rowsort label-3834
SELECT DISTINCT col1 + col1 / col1 AS col1 FROM tab2
----
18
32
60

query I rowsort
SELECT + col2 AS col2 FROM tab1 WHERE ( NULL ) <= NULL
----

query I rowsort
SELECT col2 * - col2 + tab1.col1 FROM tab1
----
-2890
-3239
-9203

query I rowsort
SELECT ALL col2 + col0 * - col1 * + col2 + + col0 * + col2 AS col2 FROM tab1
----
-32775
-3996
-92064

query I rowsort
SELECT DISTINCT + col2 * col1 + + col2 + - col2 AS col0 FROM tab1
----
1248
1404
570

query I rowsort
SELECT col1 + tab1.col0 * col0 FROM tab1
----
35
4106
6413

query I rowsort
SELECT ALL + tab0.col2 * col1 * + col2 AS col2 FROM tab0
----
611884
93654
97

query I rowsort
SELECT ALL - col1 * + col0 + + col2 - + col1 FROM tab2
----
-1322
-221
-4635

query III rowsort
SELECT ALL * FROM tab2 WHERE col2 * + col2 + col2 NOT IN ( col2 / col0 + col1 + + col0 * - col1 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

query I rowsort
SELECT - + cor0.col1 + + col2 AS col1 FROM tab2 AS cor0
----
-33
-4
21

query I rowsort
SELECT - col1 - + col1 * + col2 AS col0 FROM tab2 cor0
----
-1593
-663
-868

query I rowsort
SELECT - tab2.col2 * - col0 + + col2 * - col0 - col2 * - col0 * col2 AS col1 FROM tab2
----
114076
5103
52728

query I rowsort
SELECT DISTINCT + col2 - - col2 * tab0.col1 AS col1 FROM tab0
----
2871
7544
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-3847
SELECT col1 * tab0.col0 DIV - col2 FROM tab0
----
-3395
-62
-98

skipif mysql # not compatible
query I rowsort label-3847
SELECT col1 * tab0.col0 / - col2 FROM tab0
----
-3395
-62
-98

query I rowsort
SELECT - + col1 * - col2 + - col2 FROM tab0 AS cor0
----
2805
7380
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 - cor0.col1 col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT - - col1 * - col2 + col1 AS col1 FROM tab1 AS cor0
----
-1235
-1378
-560

query I rowsort
SELECT ALL cor1.col1 - + cor0.col1 FROM tab1, tab1 AS cor0, tab1 cor1
----
27 values hashing to 17c10b049c4bab241687e228247609ac

onlyif mysql # use DIV operator for integer division
query I rowsort label-3852
SELECT DISTINCT col1 * - col1 + + col1 * cor0.col0 DIV col1 FROM tab1 AS cor0
----
-36
-673
-89

skipif mysql # not compatible
query I rowsort label-3852
SELECT DISTINCT col1 * - col1 + + col1 * cor0.col0 / col1 FROM tab1 AS cor0
----
-36
-673
-89

query I rowsort
SELECT - - 28 * 38 AS col0 FROM tab0 AS cor0
----
1064
1064
1064

query I rowsort
SELECT DISTINCT - + col1 + + col2 + + cor0.col0 * cor0.col1 AS col1 FROM tab2 AS cor0
----
1364
213
4569

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3855
SELECT + CAST( NULL AS SIGNED ) AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3855
SELECT + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - + cor0.col2 * - cor0.col2 FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT + 45 * + 92 AS col0 FROM tab1 AS cor0
----
4140
4140
4140

query I rowsort
SELECT - 75 + tab0.col2 AS col0 FROM tab0, tab0 AS cor0, tab1 cor1
----
27 values hashing to 707bd1fbe5d4ac514617bf90c5cc67ac

query I rowsort
SELECT ALL + 61 * col0 * col2 FROM tab1
----
222528
468480
9882

query I rowsort
SELECT col0 + 57 FROM tab0
----
146
81
92

query I rowsort
SELECT - ( col2 ) + + col2 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL - tab0.col0 * + cor0.col0 FROM tab2, tab1, tab2 AS cor0, tab0
----
81 values hashing to 660e026a639458e3b2584598d73f08ed

query I rowsort
SELECT ALL + 5 * + tab1.col0 + tab1.col0 * 23 FROM tab1, tab2 AS cor0
----
9 values hashing to 9824bb722e221c0f2ae79c21d5a651d2

query I rowsort
SELECT + 31 FROM tab1, tab2 AS cor0
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540

query I rowsort
SELECT ALL + col1 * col0 + + cor0.col0 + 95 AS col1 FROM tab1 AS cor0
----
1215
176
799

query I rowsort
SELECT DISTINCT 59 FROM tab1, tab2 AS cor0
----
59

query I rowsort
SELECT DISTINCT - col2 + + col0 * col2 FROM tab0 AS cor0
----
34
7216
759

query I rowsort
SELECT tab2.col1 AS col2 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

query I rowsort
SELECT DISTINCT - 68 * 91 AS col1 FROM tab2
----
-6188

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3870
SELECT ALL + CAST( 69 AS SIGNED ) * col1 AS col0 FROM tab1 AS cor0
----
1794
690
897

skipif mysql # not compatible
query I rowsort label-3870
SELECT ALL + CAST ( 69 AS INTEGER ) * col1 AS col0 FROM tab1 AS cor0
----
1794
690
897

query I rowsort
SELECT ALL - tab0.col1 FROM tab0, tab2, tab1 cor0
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84

onlyif mysql # use DIV operator for integer division
query I rowsort label-3872
SELECT + ( col0 ) * + col0 - - 16 DIV col0 AS col1 FROM tab1
----
14
4096
6400

skipif mysql # not compatible
query I rowsort label-3872
SELECT + ( col0 ) * + col0 - - 16 / col0 AS col1 FROM tab1
----
14
4096
6400

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + col0 + col2 * 93 * + tab0.col1 + 60 col1 FROM tab0
----
261930
5686
685927

query I rowsort
SELECT DISTINCT + 70 FROM tab0, tab2, tab0 AS cor0
----
70

query I rowsort
SELECT ALL + 18 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 903ac227935c1532300db45a8537c595

onlyif mysql # use DIV operator for integer division
query I rowsort label-3876
SELECT - col2 + - cor0.col2 DIV + 23 AS col2 FROM tab0 AS cor0
----
-1
-34
-85

skipif mysql # not compatible
query I rowsort label-3876
SELECT - col2 + - cor0.col2 / + 23 AS col2 FROM tab0 AS cor0
----
-1
-34
-85

query I rowsort
SELECT DISTINCT + - col1 * - col2 + + col2 AS col0 FROM tab0 AS cor0
----
2871
7544
98

query I rowsort
SELECT DISTINCT - + col2 * + ( 36 ) FROM tab2 AS cor0
----
-1368
-936
-972

query I rowsort
SELECT - col0 * + col1 + col0 FROM tab0 AS cor0
----
-2040
-3360
-8010

query I rowsort
SELECT ALL col2 + - ( col2 ) FROM tab2 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3881
SELECT - col2 DIV col0 + col2 * col1 FROM tab1 AS cor0
----
1247
1386
570

skipif mysql # not compatible
query I rowsort label-3881
SELECT - col2 / col0 + col2 * col1 FROM tab1 AS cor0
----
1247
1386
570

query I rowsort
SELECT col2 + col1 * ( - col2 ) FROM tab0 cor0
----
-2805
-7380
-96

query I rowsort
SELECT DISTINCT col0 - + ( col0 * cor0.col1 ) FROM tab2 cor0
----
-1264
-210
-4524

query I rowsort
SELECT DISTINCT col2 * 8 AS col0 FROM tab0 cor0
----
264
656
8

query I rowsort
SELECT ALL - - col0 * - 58 + - col0 AS col1 FROM tab0 AS cor0
----
-1416
-2065
-5251

query I rowsort
SELECT ALL col0 + cor0.col2 + col0 AS col1 FROM tab0 AS cor0
----
260
71
81

query I rowsort
SELECT col1 * + 30 FROM tab2 AS cor0
----
1770
510
930

query I rowsort
SELECT DISTINCT - col1 * + ( - col0 ) FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT ALL + - col1 * 74 AS col2 FROM tab0 AS cor0
----
-6364
-6734
-7178

onlyif mysql # use DIV operator for integer division
query I rowsort label-3890
SELECT DISTINCT col2 + - col1 DIV + 50 AS col0 FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-3890
SELECT DISTINCT col2 + - col1 / + 50 AS col0 FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort
SELECT + col1 + + col0 * - ( + col2 + CAST ( + ( + col0 ) AS REAL ) ) AS col0 FROM tab1 cor0
----
-14067
-145
-7734

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + col0 * + 95 col0 FROM tab2 AS cor0
----
672
7488
7584

query I rowsort
SELECT - 32 + 20 * col0 FROM tab2 cor0
----
108
1528
1548

query I rowsort
SELECT ALL + - ( 36 ) + col2 * + col0 FROM tab0 AS cor0
----
-1
7262
756

query I rowsort
SELECT DISTINCT - col0 * ( col0 ) - - col0 FROM tab1 AS cor0
----
-4032
-6
-6320

query I rowsort
SELECT ALL 22 AS col2 FROM tab2 cor0
----
22
22
22

query I rowsort
SELECT + col1 - col1 * ( - col0 ) AS col2 FROM tab2
----
1360
248
4661

query I rowsort
SELECT + col2 * - col1 * - tab0.col0 FROM tab0
----
3395
664118
68112

query I rowsort
SELECT - 63 * + col1 AS col0 FROM tab2 AS cor0
----
-1071
-1953
-3717

query I rowsort
SELECT DISTINCT - col0 + - col1 * 12 AS col1 FROM tab2 AS cor0
----
-283
-379
-786

onlyif mysql # use DIV operator for integer division
query I rowsort label-3901
SELECT - col0 DIV + col2 - - col0 * col1 * - col1 AS col0 FROM tab1 AS cor0
----
-13520
-2028
-6401

skipif mysql # not compatible
query I rowsort label-3901
SELECT - col0 / + col2 - - col0 * col1 * - col1 AS col0 FROM tab1 AS cor0
----
-13520
-2028
-6401

query I rowsort
SELECT DISTINCT - col2 + col0 * col0 FROM tab1 AS cor0
----
-45
4039
6304

query I rowsort
SELECT ALL - - 8 * + col2 AS col0 FROM tab1 AS cor0
----
432
456
768

query I rowsort
SELECT ALL + + 69 * col0 AS col1 FROM tab1 AS cor0
----
207
4416
5520

onlyif mysql # use DIV operator for integer division
query I rowsort label-3905
SELECT + - col2 * col2 - - 2 DIV - cor0.col1 FROM tab1 AS cor0
----
-2916
-3249
-9216

skipif mysql # not compatible
query I rowsort label-3905
SELECT + - col2 * col2 - - 2 / - cor0.col1 FROM tab1 AS cor0
----
-2916
-3249
-9216

query I rowsort
SELECT - 79 + + col0 AS col0 FROM tab1 AS cor0
----
-15
-76
1

query I rowsort
SELECT ALL col0 + + tab1.col0 + col2 FROM tab1
----
185
256
60

onlyif mysql # use DIV operator for integer division
query I rowsort label-3908
SELECT + col0 * - col2 + + ( col2 ) DIV col1 AS col0 FROM tab0 AS cor0
----
-35
-7298
-792

skipif mysql # not compatible
query I rowsort label-3908
SELECT + col0 * - col2 + + ( col2 ) / col1 AS col0 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT - - col2 - + col0 FROM tab2 AS cor0
----
-41
-52
20

query I rowsort
SELECT ALL - 81 * + col0 AS col2 FROM tab1 AS cor0
----
-243
-5184
-6480

query I rowsort
SELECT ALL + 74 + + col1 AS col2 FROM tab1 AS cor0
----
100
84
87

query I rowsort
SELECT - ( col1 ) + + 82 FROM tab2 AS cor0
----
23
51
65

query I rowsort
SELECT ALL 74 * - col2 AS col1 FROM tab2 cor0
----
-1924
-1998
-2812

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3914
SELECT - + 31 + + col1 * - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3914
SELECT - + 31 + + col1 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 24 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef

query I rowsort
SELECT ALL + + 45 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050

onlyif mysql # use DIV operator for integer division
query I rowsort label-3917
SELECT 51 DIV - tab2.col1 + + 28 + col2 col2 FROM tab2
----
54
54
63

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3917
SELECT 51 / - tab2.col1 + + 28 + col2 col2 FROM tab2
----
54
54
63

query I rowsort
SELECT + - col2 + + col0 * col0 + col1 AS col1 FROM tab1 AS cor0
----
-19
4049
6317

onlyif mysql # use DIV operator for integer division
query I rowsort label-3919
SELECT + col2 DIV + col1 + col1 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-3919
SELECT + col2 / + col1 + col1 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT DISTINCT cor0.col1 AS col0 FROM tab1, tab0 cor0, tab0 AS cor1
----
86
91
97

query I rowsort
SELECT DISTINCT - 16 FROM tab2 AS cor0
----
-16

query I rowsort
SELECT - cor0.col0 * - col2 + 50 FROM tab0 AS cor0
----
7348
842
85

query I rowsort
SELECT 43 * col2 FROM tab1
----
2322
2451
4128

onlyif mysql # use DIV operator for integer division
query I rowsort label-3924
SELECT 54 + + col0 DIV - col2 FROM tab1
----
53
54
54

skipif mysql # not compatible
query I rowsort label-3924
SELECT 54 + + col0 / - col2 FROM tab1
----
53
54
54

query I rowsort
SELECT 57 AS col0 FROM tab0 cor0
----
57
57
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - tab0.col2 + tab0.col1 * - 44 ) col0 FROM tab0
----
-3817
-4086
-4269

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3927
SELECT ALL - CAST( col1 AS SIGNED ) col0 FROM tab2
----
-17
-31
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3927
SELECT ALL - CAST ( col1 AS INTEGER ) col0 FROM tab2
----
-17
-31
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 48 * cor0.col2 col1 FROM tab0 AS cor0
----
1584
3936
48

query I rowsort
SELECT + - col2 + cor0.col1 * - 29 FROM tab1 AS cor0
----
-347
-473
-808

onlyif mysql # use DIV operator for integer division
query I rowsort label-3930
SELECT - 7 DIV - cor0.col1 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3930
SELECT - 7 / - cor0.col1 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT - 67 + + col0 AS col2 FROM tab1 cor0
----
-3
-64
13

query I rowsort
SELECT - - 1 * - col0 AS col1 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT - 65 FROM tab2, tab2 AS cor0
----
9 values hashing to 744531575c1b6461ed2916d4940e4d23

query I rowsort
SELECT ALL - col0 + ( - col2 ) AS col0 FROM tab2
----
-104
-117
-34

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3935
SELECT ALL col2 * + CAST( NULL AS SIGNED ) + + col2 * - col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3935
SELECT ALL col2 * + CAST ( NULL AS INTEGER ) + + col2 * - col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 52 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 7f4ae30893ab330784829711032ae599

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3937
SELECT - + col0 + - ( + ( col2 ) ) * CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3937
SELECT - + col0 + - ( + ( col2 ) ) * CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - - col1 * + 15 + 53 * col0 FROM tab1 AS cor0
----
3542
4435
549

query I rowsort
SELECT - + col0 + 91 * - ( - col2 ) AS col2 FROM tab0 AS cor0
----
2979
56
7373

query I rowsort
SELECT ALL col1 * col2 + - col1 + col0 AS col2 FROM tab2 AS cor0
----
1553
708
813

onlyif mysql # use DIV operator for integer division
query I rowsort label-3941
SELECT DISTINCT cor0.col2 * col0 DIV col1 - cor0.col0 FROM tab2 AS cor0
----
-1
-44
97

skipif mysql # not compatible
query I rowsort label-3941
SELECT DISTINCT cor0.col2 * col0 / col1 - cor0.col0 FROM tab2 AS cor0
----
-1
-44
97

query I rowsort
SELECT + 33 + - 62 AS col2 FROM tab2 AS cor0
----
-29
-29
-29

query I rowsort
SELECT + - 4 * 14 AS col2 FROM tab0 cor0
----
-56
-56
-56

query I rowsort
SELECT ALL col1 * tab0.col0 + ( tab0.col1 ) AS col0 FROM tab0
----
2150
3492
8190

query I rowsort
SELECT DISTINCT + col1 + - col2 - tab0.col0 * col2 AS col0 FROM tab0
----
-7289
-739
61

query I rowsort
SELECT ( ( - col0 ) ) * col2 FROM tab0 AS cor0
----
-35
-7298
-792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col2 * col2 * col0 col1 FROM tab2 cor0
----
-114076
-5103
-52728

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 17 + - 9 col0 FROM tab1 AS cor0
----
8

query I rowsort
SELECT 91 * col1 AS col0 FROM tab0 AS cor0
----
7826
8281
8827

query I rowsort
SELECT col1 * + col2 + + cor0.col0 FROM tab2 AS cor0
----
1612
725
844

query I rowsort
SELECT DISTINCT + + 27 FROM tab1 AS cor0
----
27

query I rowsort
SELECT DISTINCT ( - col0 ) AS col0 FROM tab2 cor0
----
-7
-78
-79

query I rowsort
SELECT ALL + col2 + + col1 * col2 AS col1 FROM tab2 AS cor0
----
1560
684
864

onlyif mysql # use DIV operator for integer division
query I rowsort label-3954
SELECT + - col1 DIV ( col2 + col2 ) AS col2 FROM tab0 AS cor0
----
-1
-48
0

skipif mysql # not compatible
query I rowsort label-3954
SELECT + - col1 / ( col2 + col2 ) AS col2 FROM tab0 AS cor0
----
-1
-48
0

query I rowsort
SELECT DISTINCT + + tab2.col2 AS col2 FROM tab2, tab1, tab0 cor0
----
26
27
38

query I rowsort
SELECT DISTINCT - ( + col0 ) * + cor0.col0 AS col2 FROM tab2 AS cor0
----
-49
-6084
-6241

query I rowsort
SELECT DISTINCT col1 * ( - col1 ) FROM tab0
----
-7396
-8281
-9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-3958
SELECT ALL - + col0 DIV - col0 AS col2 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3958
SELECT ALL - + col0 / - col0 AS col2 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT ALL - - col0 + - col0 * - col1 FROM tab1 cor0
----
1120
704
81

query I rowsort
SELECT + 52 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 7f4ae30893ab330784829711032ae599

query I rowsort
SELECT ALL - col2 * 50 FROM tab0
----
-1650
-4100
-50

query I rowsort
SELECT + 93 FROM tab1, tab2 cor0, tab2 AS cor1
----
27 values hashing to 85ef191bf1b307f300b3fd49992fcae7

onlyif mysql # use DIV operator for integer division
query I rowsort label-3963
SELECT DISTINCT + col1 DIV + 36 AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3963
SELECT DISTINCT + col1 / + 36 AS col0 FROM tab1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col1 + col1 * 71 col1 FROM tab0 AS cor0
----
6192
6552
6984

query I rowsort
SELECT ALL - 61 AS col1 FROM tab0 AS cor0
----
-61
-61
-61

query I rowsort
SELECT 0 AS col2 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

query I rowsort
SELECT DISTINCT - + col0 * col1 * - 63 FROM tab1 AS cor0
----
40320
4914
65520

query I rowsort
SELECT col0 * + cor0.col2 + col0 + + 98 AS col0 FROM tab0 AS cor0
----
168
7485
914

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 55 col2 FROM tab1 AS cor0
----
-55
-55
-55

query I rowsort
SELECT + + cor0.col0 + col1 + + ( col2 ) * col0 AS col1 FROM tab0 AS cor0
----
167
7478
902

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 48 - + col2 col2 FROM tab1
----
-48
-6
-9

query I rowsort
SELECT ( tab2.col0 ) + - col0 * + ( col2 * col0 ) AS col0 FROM tab2
----
-1316
-158106
-237079

query I rowsort
SELECT ALL col1 + col1 * - 30 FROM tab1 AS cor0
----
-290
-377
-754

query I rowsort
SELECT col2 * + 60 AS col0 FROM tab1 AS cor0
----
3240
3420
5760

onlyif mysql # use DIV operator for integer division
query I rowsort label-3975
SELECT - col1 + - col1 DIV - 43 col0 FROM tab1 AS cor0
----
-10
-13
-26

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3975
SELECT - col1 + - col1 / - 43 col0 FROM tab1 AS cor0
----
-10
-13
-26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * - cor0.col2 col2 FROM tab2 cor0
----
1444
676
729

query I rowsort
SELECT DISTINCT - + col0 * 81 + + col2 AS col2 FROM tab2 AS cor0
----
-540
-6292
-6361

query I rowsort
SELECT ALL + + cor0.col2 - - col2 * 97 AS col1 FROM tab0 AS cor0
----
3234
8036
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-3979
SELECT ALL col1 DIV tab0.col1 AS col1 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3979
SELECT ALL col1 / tab0.col1 AS col1 FROM tab0
----
1
1
1

query I rowsort
SELECT + ( + cor1.col0 ) AS col0 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

query I rowsort
SELECT DISTINCT 29 * col1 AS col2 FROM tab1 AS cor0
----
290
377
754

query I rowsort
SELECT col2 + - col1 + col2 AS col0 FROM tab0 AS cor0
----
-20
-95
73

query I rowsort
SELECT ALL tab2.col1 * - col2 * + 91 FROM tab2
----
-139594
-58786
-76167

query I rowsort
SELECT ALL + col0 * 41 + + col0 FROM tab2 AS cor0
----
294
3276
3318

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3985
SELECT ALL - CAST( col0 AS SIGNED ) * - col2 - 81 AS col2 FROM tab2 AS cor0
----
108
1947
2921

skipif mysql # not compatible
query I rowsort label-3985
SELECT ALL - CAST ( col0 AS INTEGER ) * - col2 - 81 AS col2 FROM tab2 AS cor0
----
108
1947
2921

query I rowsort
SELECT DISTINCT - 39 AS col2 FROM tab0 AS cor0
----
-39

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3987
SELECT ALL CAST( ( + col2 ) AS SIGNED ) + + cor0.col0 + col0 AS col1 FROM tab0 AS cor0
----
260
71
81

skipif mysql # not compatible
query I rowsort label-3987
SELECT ALL CAST ( ( + col2 ) AS INTEGER ) + + cor0.col0 + col0 AS col1 FROM tab0 AS cor0
----
260
71
81

query I rowsort
SELECT + 87 + 76 + cor0.col1 AS col1 FROM tab2 cor0
----
180
194
222

onlyif mysql # use DIV operator for integer division
query I rowsort label-3989
SELECT col0 DIV 29 FROM tab0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-3989
SELECT col0 / 29 FROM tab0
----
0
1
3

query I rowsort
SELECT ALL - 35 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to c12e8bdd687c9040a5600dab3b6adf5b

query I rowsort
SELECT ALL - col1 - - ( + col2 ) * + col2 FROM tab0
----
-96
1003
6633

query I rowsort
SELECT ALL - 87 * + col1 + - col1 AS col2 FROM tab0
----
-7568
-8008
-8536

query I rowsort
SELECT DISTINCT - ( ( cor0.col2 ) ) * cor0.col1 + - col0 FROM tab0 cor0
----
-132
-2862
-7551

query I rowsort
SELECT ALL - - 40 + 2 * - col2 AS col2 FROM tab0 AS cor0
----
-124
-26
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 53 col1 FROM tab1 AS cor0
----
53

query I rowsort
SELECT cor0.col2 + col0 FROM tab2 cor0
----
104
117
34

onlyif mysql # use DIV operator for integer division
query I rowsort label-3997
SELECT DISTINCT + 3 + - 69 * + col2 + - col1 DIV col1 AS col2 FROM tab2 AS cor0
----
-1792
-1861
-2620

skipif mysql # not compatible
query I rowsort label-3997
SELECT DISTINCT + 3 + - 69 * + col2 + - col1 / col1 AS col2 FROM tab2 AS cor0
----
-1792
-1861
-2620

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * cor0.col0 col0 FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT + + 24 + - cor0.col0 AS col2 FROM tab2 AS cor0
----
-54
-55
17

query I rowsort
SELECT DISTINCT - 25 * col2 * col1 FROM tab0 cor0
----
-186550
-2425
-70950

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col1 ) + col1 col0 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col1 + + col2 * col0 FROM tab0
----
132
7389
878

query I rowsort
SELECT tab2.col0 * + 45 AS col1 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 751a9b3d74d10c25f99bf08bc8a5c350

query I rowsort
SELECT DISTINCT + col2 + 98 AS col1 FROM tab0
----
131
180
99

query I rowsort
SELECT - 73 * - col0 FROM tab2
----
511
5694
5767

query I rowsort
SELECT cor0.col0 + + col0 FROM tab1 cor0
----
128
160
6

query I rowsort
SELECT ALL - col2 * + col2 + col1 * tab2.col2 FROM tab2
----
-798
108
858

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4008
SELECT CAST( NULL AS SIGNED ) * col2 / col2 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4008
SELECT CAST ( NULL AS INTEGER ) * col2 / col2 AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 50 * col0 - col2 AS col0 FROM tab0 AS cor0
----
1167
1749
4368

onlyif mysql # use DIV operator for integer division
query I rowsort label-4010
SELECT DISTINCT 80 DIV 91 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4010
SELECT DISTINCT 80 / 91 FROM tab2 AS cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4011
SELECT DISTINCT ( + col2 ) * col2 + col1 DIV ( + col0 * col0 ) FROM tab0
----
1
1089
6724

skipif mysql # not compatible
query I rowsort label-4011
SELECT DISTINCT ( + col2 ) * col2 + col1 / ( + col0 * col0 ) FROM tab0
----
1
1089
6724

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4012
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + col2 * - col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4012
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + col2 * - col2 FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - col2 ) col2 FROM tab1
----
54
57
96

query I rowsort
SELECT ALL col1 * 86 + col2 FROM tab2
----
1500
2693
5100

onlyif mysql # use DIV operator for integer division
query I rowsort label-4015
SELECT ALL tab2.col0 + + col2 DIV + col1 FROM tab2
----
7
78
81

skipif mysql # not compatible
query I rowsort label-4015
SELECT ALL tab2.col0 + + col2 / + col1 FROM tab2
----
7
78
81

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4016
SELECT ALL + col2 * - col0 + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4016
SELECT ALL + col2 * - col0 + CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 74 + col1 * + 87 FROM tab2 cor0
----
1405
2623
5059

query I rowsort
SELECT DISTINCT + col2 + + cor0.col1 * col0 AS col2 FROM tab0 AS cor0
----
2097
3396
8181

query I rowsort
SELECT ALL + col0 * + cor0.col0 + ( + col0 ) AS col0 FROM tab1 cor0
----
12
4160
6480

query I rowsort
SELECT ALL 59 + - col1 FROM tab1 AS cor0
----
33
46
49

onlyif mysql # use DIV operator for integer division
query I rowsort label-4021
SELECT DISTINCT + + 99 DIV col1 FROM tab2 AS cor0
----
1
3
5

skipif mysql # not compatible
query I rowsort label-4021
SELECT DISTINCT + + 99 / col1 FROM tab2 AS cor0
----
1
3
5

query I rowsort
SELECT + col2 * - col2 + ( - col2 ) FROM tab1 AS cor0
----
-2970
-3306
-9312

query I rowsort
SELECT ALL - 45 + + cor0.col1 AS col2 FROM tab0 AS cor0
----
41
46
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-4024
SELECT + col2 * col2 + 42 DIV col0 FROM tab1 AS cor0
----
2930
3249
9216

skipif mysql # not compatible
query I rowsort label-4024
SELECT + col2 * col2 + 42 / col0 FROM tab1 AS cor0
----
2930
3249
9216

onlyif mysql # use DIV operator for integer division
query I rowsort label-4025
SELECT ALL + col2 * + cor0.col1 * col1 - col2 * col0 DIV - col0 FROM tab1 AS cor0
----
16320
36558
5757

skipif mysql # not compatible
query I rowsort label-4025
SELECT ALL + col2 * + cor0.col1 * col1 - col2 * col0 / - col0 FROM tab1 AS cor0
----
16320
36558
5757

query IIIIIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab0 cor2
----
972 values hashing to d522b52b67b20888d3544d25cb98f232

query I rowsort
SELECT - col0 * - 94 AS col1 FROM tab2 AS cor0
----
658
7332
7426

query I rowsort
SELECT DISTINCT - col1 + ( - cor0.col0 ) FROM tab0 AS cor0
----
-110
-132
-180

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4029
SELECT ALL + col1 * - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4029
SELECT ALL + col1 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + cor0.col0 + ( + col2 ) AS col0 FROM tab2 AS cor0
----
104
117
34

onlyif mysql # use DIV operator for integer division
query I rowsort label-4031
SELECT DISTINCT + cor0.col2 + col2 DIV cor0.col0 AS col1 FROM tab1 AS cor0
----
57
72
97

skipif mysql # not compatible
query I rowsort label-4031
SELECT DISTINCT + cor0.col2 + col2 / cor0.col0 AS col1 FROM tab1 AS cor0
----
57
72
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + - ( 35 ) col2 FROM tab2 cor0
----
-113
-114
-42

query I rowsort
SELECT DISTINCT col0 * 42 FROM tab2 AS cor0
----
294
3276
3318

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4034
SELECT cor0.col1 + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4034
SELECT cor0.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-4035
SELECT ALL - - cor0.col2 / CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4035
SELECT ALL - - cor0.col2 / CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + - col0 + + col2 AS col2 FROM tab0 cor0
----
-34
-7
9

query I rowsort
SELECT ALL + cor0.col2 * - col1 - col2 FROM tab2 AS cor0
----
-1560
-684
-864

query I rowsort
SELECT - col0 * - ( col1 ) + col2 AS col2 FROM tab2
----
1381
244
4628

query IIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 AS cor0 WHERE NOT NULL <> ( NULL )
----

query I rowsort
SELECT + 12 + - cor0.col1 FROM tab1 AS cor0
----
-1
-14
2

query I rowsort
SELECT + col0 - ( - 66 ) AS col0 FROM tab1 AS cor0
----
130
146
69

query I rowsort
SELECT cor0.col2 * - ( cor0.col2 ) FROM tab1 AS cor0
----
-2916
-3249
-9216

query I rowsort
SELECT DISTINCT + col2 * col0 * col1 + 43 FROM tab2
----
119695
51077
5902

query I rowsort
SELECT DISTINCT + tab1.col0 * col2 + 45 AS col1 FROM tab1
----
207
3693
7725

query I rowsort
SELECT col0 - 95 * + 31 FROM tab0 AS cor0
----
-2856
-2910
-2921

query I rowsort
SELECT - - col1 * - cor0.col1 - - cor0.col2 AS col0 FROM tab1 AS cor0
----
-43
-622
-73

onlyif mysql # use DIV operator for integer division
query I rowsort label-4047
SELECT + col2 DIV - tab2.col1 AS col2 FROM tab2
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-4047
SELECT + col2 / - tab2.col1 AS col2 FROM tab2
----
-2
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 74 col1 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to dc22979e6d261795bd3ce2990fdbbf82

query I rowsort
SELECT DISTINCT + cor0.col1 * + ( tab2.col1 ) AS col1 FROM tab2, tab1 cor0
----
9 values hashing to 819d50aeaf27d8e4e8dec203fb8f53ce

query I rowsort
SELECT 23 * - cor0.col0 AS col1 FROM tab2, tab1 cor0
----
9 values hashing to e9624cdc45488e38bd1d49c31ef0f48b

query I rowsort
SELECT - cor1.col2 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6

query I rowsort
SELECT ALL ( 56 ) AS col2 FROM tab0, tab0 cor0
----
9 values hashing to 9c4523312174730bbc525b9977aa99fa

onlyif mysql # use DIV operator for integer division
query I rowsort label-4053
SELECT DISTINCT col2 DIV ( + col1 ) AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4053
SELECT DISTINCT col2 / ( + col1 ) AS col0 FROM tab0
----
0

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab0, tab2 AS cor2
----
3645 values hashing to 713ff9f9cde43214a064a8e6ada00f4e

onlyif mysql # use DIV operator for integer division
query I rowsort label-4055
SELECT col1 DIV 13 AS col2 FROM tab2
----
1
2
4

skipif mysql # not compatible
query I rowsort label-4055
SELECT col1 / 13 AS col2 FROM tab2
----
1
2
4

query I rowsort
SELECT - ( 28 ) AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to c3e7fa3d059fc708f03c60e9cef0c115

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + col2 * col1 ) col1 FROM tab1
----
1248
1404
570

onlyif mysql # use DIV operator for integer division
query I rowsort label-4058
SELECT ALL 16 DIV + col2 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4058
SELECT ALL 16 / + col2 AS col1 FROM tab1
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4059
SELECT DISTINCT + cor0.col0 DIV + col0 + + 98 FROM tab2 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-4059
SELECT DISTINCT + cor0.col0 / + col0 + + 98 FROM tab2 AS cor0
----
99

query I rowsort
SELECT - cor0.col0 * 51 AS col1 FROM tab1 AS cor0
----
-153
-3264
-4080

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4061
SELECT col2 * tab1.col1 * + ( tab1.col0 ) + CAST( 46 AS SIGNED ) * - col1 * - ( + col1 ) FROM tab1
----
107614
35308
41080

skipif mysql # not compatible
query I rowsort label-4061
SELECT col2 * tab1.col1 * + ( tab1.col0 ) + CAST ( 46 AS INTEGER ) * - col1 * - ( + col1 ) FROM tab1
----
107614
35308
41080

query I rowsort
SELECT ALL col1 * col0 * col2 - col0 FROM tab2 AS cor0
----
119574
50955
5852

query I rowsort
SELECT DISTINCT + col0 * 83 FROM tab2 cor0
----
581
6474
6557

query I rowsort
SELECT + cor0.col2 * cor0.col1 * - col0 AS col1 FROM tab2 AS cor0
----
-119652
-51034
-5859

query I rowsort
SELECT DISTINCT col2 * - 73 + 23 * col1 AS col1 FROM tab0 AS cor0
----
-3893
-431
2158

query I rowsort
SELECT ALL col0 * col1 * 85 FROM tab1 AS cor0
----
54400
6630
88400

query I rowsort
SELECT - col2 + col1 * cor0.col2 FROM tab1 AS cor0
----
1152
1350
513

query I rowsort
SELECT + ( + tab2.col2 ) * col2 * col2 FROM tab2
----
17576
19683
54872

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4069
SELECT DISTINCT col2 * + col2 * col1 + + CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4069
SELECT DISTINCT col2 * + col2 * col1 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL

query I rowsort
SELECT - + col2 + - col2 + + cor0.col1 * - col0 FROM tab2 AS cor0
----
-1419
-271
-4654

query I rowsort
SELECT + 40 + col1 * cor0.col0 FROM tab1 cor0
----
1080
118
680

query I rowsort
SELECT ALL + - cor0.col0 + - cor0.col2 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 72844961641a3f6d21e0110ae40f640c

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4073
SELECT + CAST( NULL AS SIGNED ) * ( col1 ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4073
SELECT + CAST ( NULL AS INTEGER ) * ( col1 ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + - col0 - col1 * - col1 * - cor0.col0 AS col0 FROM tab0 AS cor0
----
-177528
-329350
-737098

onlyif mysql # use DIV operator for integer division
query I rowsort label-4075
SELECT ALL col2 + cor0.col2 DIV col0 FROM tab0 AS cor0
----
1
34
82

skipif mysql # not compatible
query I rowsort label-4075
SELECT ALL col2 + cor0.col2 / col0 FROM tab0 AS cor0
----
1
34
82

query I rowsort
SELECT ALL - ( - col2 ) + + col0 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT DISTINCT - col2 + + col2 AS col2 FROM tab1 cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 * col0 col2 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT + 9 * col2 * - 21 FROM tab0 AS cor0
----
-15498
-189
-6237

query I rowsort
SELECT 98 * cor0.col2 AS col2 FROM tab1 AS cor0
----
5292
5586
9408

query I rowsort
SELECT - 89 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 924a74d31360fa4301c953b423a4710e

onlyif mysql # use DIV operator for integer division
query I rowsort label-4082
SELECT DISTINCT col0 + col0 DIV tab2.col0 FROM tab2
----
79
8
80

skipif mysql # not compatible
query I rowsort label-4082
SELECT DISTINCT col0 + col0 / tab2.col0 FROM tab2
----
79
8
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-4083
SELECT col2 DIV col1 + tab2.col2 * col1 AS col1 FROM tab2
----
1534
648
837

skipif mysql # not compatible
query I rowsort label-4083
SELECT col2 / col1 + tab2.col2 * col1 AS col1 FROM tab2
----
1534
648
837

query I rowsort
SELECT ALL col2 + - col0 * col1 FROM tab0
----
-2031
-3394
-8017

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col0 FROM tab0 WHERE col0 + - col2 BETWEEN + col1 - - col1 / col1 AND col2 * col1 + - col1
----

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT IN ( - col1 * - col0 + col2 )
----

query I rowsort
SELECT ALL - tab1.col0 * - col0 AS col2 FROM tab1
----
4096
6400
9

query I rowsort
SELECT col1 - col1 * - col2 FROM tab1
----
1261
1430
580

onlyif mysql # use DIV operator for integer division
query I rowsort label-4089
SELECT DISTINCT + col2 + + col2 DIV - col0 + col2 FROM tab1
----
114
191
90

skipif mysql # not compatible
query I rowsort label-4089
SELECT DISTINCT + col2 + + col2 / - col0 + col2 FROM tab1
----
114
191
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * col1 + tab1.col0 col1 FROM tab1 WHERE NOT ( col1 ) NOT IN ( + col1 )
----
-36
-673
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + col0 col0 FROM tab0 WHERE ( NULL ) <= ( col1 / + col0 )
----

query I rowsort
SELECT tab0.col0 * tab0.col1 * - col0 FROM tab0
----
-118825
-49536
-720811

query I rowsort
SELECT cor0.col2 + + col2 * + col1 FROM tab0 AS cor0
----
2871
7544
98

query I rowsort
SELECT DISTINCT + 82 * + col0 + + col1 FROM tab1 AS cor0
----
272
5258
6573

query I rowsort
SELECT ALL col1 * - col1 AS col1 FROM tab1 cor0
----
-100
-169
-676

onlyif mysql # use DIV operator for integer division
query I rowsort label-4096
SELECT ALL - col0 DIV col1 + col2 + - tab1.col0 * col2 AS col2 FROM tab1
----
-108
-3597
-7590

skipif mysql # not compatible
query I rowsort label-4096
SELECT ALL - col0 / col1 + col2 + - tab1.col0 * col2 AS col2 FROM tab1
----
-108
-3597
-7590

query I rowsort
SELECT ALL + tab2.col1 FROM tab2 WHERE NOT NULL IN ( tab2.col1 )
----

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab1 AS cor0, tab0 AS cor1, tab2 cor2
----
972 values hashing to 591a9a93560839231c038a1e10bd240a

query I rowsort
SELECT DISTINCT + col0 * + col1 + + col1 * col2 + + col1 AS col1 FROM tab1 AS cor0
----
1220
1508
2301

onlyif mysql # use DIV operator for integer division
query I rowsort label-4100
SELECT DISTINCT cor0.col1 DIV + cor0.col0 FROM tab2, tab1 AS cor0
----
0
8

skipif mysql # not compatible
query I rowsort label-4100
SELECT DISTINCT cor0.col1 / + cor0.col0 FROM tab2, tab1 AS cor0
----
0
8

onlyif mysql # use DIV operator for integer division
query I rowsort label-4101
SELECT ALL - col2 DIV + col2 - - cor0.col1 FROM tab0 AS cor0
----
85
90
96

skipif mysql # not compatible
query I rowsort label-4101
SELECT ALL - col2 / + col2 - - cor0.col1 FROM tab0 AS cor0
----
85
90
96

query I rowsort
SELECT ALL + col2 * + col0 - col2 AS col0 FROM tab2 cor0
----
162
2002
2964

query I rowsort
SELECT - cor0.col1 - cor0.col1 FROM tab2, tab0 AS cor0
----
9 values hashing to bdd04a15c7f6060b912a3c21908a1cde

query I rowsort
SELECT + col1 / col2 FROM tab1 AS cor0 WHERE NOT + col0 NOT IN ( cor0.col2 )
----

query I rowsort
SELECT ALL - col1 - + cor0.col0 AS col0 FROM tab0 cor0
----
-110
-132
-180

query I rowsort
SELECT ALL - col0 + tab2.col0 AS col0 FROM tab2
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4107
SELECT ALL + col0 * col1 DIV - col2 FROM tab0 AS cor0
----
-3395
-62
-98

skipif mysql # not compatible
query I rowsort label-4107
SELECT ALL + col0 * col1 / - col2 FROM tab0 AS cor0
----
-3395
-62
-98

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab2 WHERE col2 > NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-4109
SELECT DISTINCT + col0 DIV col2 + + col2 FROM tab0 AS cor0 WHERE NOT - col2 DIV col2 >= ( col1 + + col0 + + col1 )
----
33
36
83

skipif mysql # not compatible
query I rowsort label-4109
SELECT DISTINCT + col0 / col2 + + col2 FROM tab0 AS cor0 WHERE NOT - col2 / col2 >= ( col1 + + col0 + + col1 )
----
33
36
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-4110
SELECT ALL 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-4110
SELECT ALL col0 / + col0 col2 FROM tab1
----
1
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-4111
SELECT col0 * col2 DIV col2 FROM tab0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-4111
SELECT col0 * col2 / col2 FROM tab0
----
24
35
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-4112
SELECT - col2 * tab1.col2 + - col0 DIV col2 FROM tab1
----
-2916
-3250
-9216

skipif mysql # not compatible
query I rowsort label-4112
SELECT - col2 * tab1.col2 + - col0 / col2 FROM tab1
----
-2916
-3250
-9216

onlyif mysql # use DIV operator for integer division
query I rowsort label-4113
SELECT col0 DIV tab1.col0 + - col0 FROM tab1
----
-2
-63
-79

skipif mysql # not compatible
query I rowsort label-4113
SELECT col0 / tab1.col0 + - col0 FROM tab1
----
-2
-63
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col0 + col2 col1 FROM tab0
----
171
36
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-4115
SELECT - tab1.col2 + - col1 DIV + col0 - col0 FROM tab1
----
-121
-176
-65

skipif mysql # not compatible
query I rowsort label-4115
SELECT - tab1.col2 + - col1 / + col0 - col0 FROM tab1
----
-121
-176
-65

query I rowsort
SELECT col0 * col2 + col2 * col1 * col0 FROM tab2 WHERE NOT col1 IN ( - tab2.col0 + col0 )
----
121680
54036
6048

query I rowsort
SELECT DISTINCT - col2 + tab0.col2 * col0 * col1 + col0 AS col0 FROM tab0
----
3429
664125
68103

query I rowsort
SELECT + col2 * - col2 * col0 FROM tab0
----
-26136
-35
-598436

query III rowsort
SELECT ALL * FROM tab0 WHERE col1 - col1 * col1 IN ( - col1 )
----

query I rowsort
SELECT ALL col1 + - col2 * col1 FROM tab0
----
-2752
-7371
0

query I rowsort
SELECT DISTINCT + 80 FROM tab2, tab0 AS cor0
----
80

query I rowsort
SELECT ALL + + 41 * + col0 FROM tab1 AS cor0
----
123
2624
3280

query I rowsort
SELECT DISTINCT - 83 * 72 FROM tab2 AS cor0
----
-5976

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4124
SELECT - - CAST( - col2 AS SIGNED ) * col2 AS col2 FROM tab1 AS cor0
----
-2916
-3249
-9216

skipif mysql # not compatible
query I rowsort label-4124
SELECT - - CAST ( - col2 AS INTEGER ) * col2 AS col2 FROM tab1 AS cor0
----
-2916
-3249
-9216

query I rowsort
SELECT ( - ( col0 ) ) FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT ALL - 69 FROM tab1, tab1 cor0
----
9 values hashing to 3bd7460efa48c66c072ad5f3c2def7e9

query I rowsort
SELECT + 29 + col1 * + col0 + tab1.col2 AS col1 FROM tab1
----
1165
161
726

query I rowsort
SELECT + 13 + - col0 FROM tab2 AS cor0
----
-65
-66
6

query I rowsort
SELECT DISTINCT ( col2 ) + + col0 + + col2 * + col0 AS col2 FROM tab0
----
71
7469
849

query I rowsort
SELECT ALL col2 + - col1 * + col2 FROM tab0
----
-2805
-7380
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-4131
SELECT DISTINCT - col1 + + col1 DIV + tab1.col0 + - tab1.col0 * col2 AS col2 FROM tab1
----
-180
-3658
-7693

skipif mysql # not compatible
query I rowsort label-4131
SELECT DISTINCT - col1 + + col1 / + tab1.col0 + - tab1.col0 * col2 AS col2 FROM tab1
----
-180
-3658
-7693

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4132
SELECT DISTINCT + CAST( col2 AS SIGNED ) + col2 FROM tab2 cor0
----
52
54
76

skipif mysql # not compatible
query I rowsort label-4132
SELECT DISTINCT + CAST ( col2 AS INTEGER ) + col2 FROM tab2 cor0
----
52
54
76

query I rowsort
SELECT DISTINCT tab0.col1 * 10 FROM tab0
----
860
910
970

query I rowsort
SELECT - - col1 + 90 FROM tab1 AS cor0
----
100
103
116

query I rowsort
SELECT DISTINCT - 27 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-27

query I rowsort
SELECT - 74 FROM tab2, tab2 AS cor0, tab2 cor1
----
27 values hashing to 5a477330c946251f814fbbfd08e77c28

query I rowsort
SELECT ALL col0 * col0 + + col1 FROM tab1 AS cor0
----
35
4106
6413

query I rowsort
SELECT ALL - col1 * 8 FROM tab0 cor0
----
-688
-728
-776

query I rowsort
SELECT DISTINCT + col2 + 67 AS col0 FROM tab0 AS cor0
----
100
149
68

onlyif mysql # use DIV operator for integer division
query I rowsort label-4140
SELECT ALL - - col0 + - cor0.col2 DIV + col0 FROM tab0 AS cor0
----
23
35
89

skipif mysql # not compatible
query I rowsort label-4140
SELECT ALL - - col0 + - cor0.col2 / + col0 FROM tab0 AS cor0
----
23
35
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-4141
SELECT DISTINCT col2 * 60 DIV col0 + + col2 * - col1 AS col2 FROM tab0 AS cor0
----
-2756
-7407
-96

skipif mysql # not compatible
query I rowsort label-4141
SELECT DISTINCT col2 * 60 / col0 + + col2 * - col1 AS col2 FROM tab0 AS cor0
----
-2756
-7407
-96

query I rowsort
SELECT DISTINCT + 47 * - ( col0 ) AS col1 FROM tab1
----
-141
-3008
-3760

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - cor0.col1 col0 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 15 col0 FROM tab2
----
-15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col0 * col1 + col1 col2 FROM tab1 cor0
----
-1027
-52
-630

query I rowsort
SELECT ( - col2 ) * - col1 - col0 AS col2 FROM tab0 AS cor0
----
2814
62
7373

query I rowsort
SELECT DISTINCT - 80 * - tab1.col0 FROM tab1
----
240
5120
6400

onlyif mysql # use DIV operator for integer division
query I rowsort label-4148
SELECT col2 + col2 DIV col2 AS col1 FROM tab0 AS cor0
----
2
34
83

skipif mysql # not compatible
query I rowsort label-4148
SELECT col2 + col2 / col2 AS col1 FROM tab0 AS cor0
----
2
34
83

query I rowsort
SELECT + col2 * + ( 33 ) + + col0 AS col1 FROM tab2 AS cor0
----
1333
898
936

query I rowsort
SELECT + col1 * + 58 AS col2 FROM tab2 AS cor0
----
1798
3422
986

query I rowsort
SELECT ALL - + col0 * col2 * 21 FROM tab0 AS cor0
----
-153258
-16632
-735

query I rowsort
SELECT 25 + col0 AS col2 FROM tab0
----
114
49
60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + tab0.col2 col2 FROM tab0, tab1, tab2 AS cor0
----
1
33
82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4154
SELECT + col2 * CAST( 13 AS SIGNED ) + col1 FROM tab1 AS cor0
----
1261
728
751

skipif mysql # not compatible
query I rowsort label-4154
SELECT + col2 * CAST ( 13 AS INTEGER ) + col1 FROM tab1 AS cor0
----
1261
728
751

query I rowsort
SELECT DISTINCT + + col1 + 64 * cor0.col1 AS col2 FROM tab2 AS cor0
----
1105
2015
3835

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4156
SELECT - CAST( col1 AS SIGNED ) * + col1 FROM tab0 AS cor0
----
-7396
-8281
-9409

skipif mysql # not compatible
query I rowsort label-4156
SELECT - CAST ( col1 AS INTEGER ) * + col1 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT DISTINCT + col1 + col0 * col0 * - col1 AS col1 FROM tab1 AS cor0
----
-208
-40950
-83187

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col0 + col2 < ( NULL ) OR NULL >= ( NULL )
----

query I rowsort
SELECT ALL col1 + cor0.col1 * cor0.col0 FROM tab2 AS cor0
----
1360
248
4661

onlyif mysql # use DIV operator for integer division
query I rowsort label-4160
SELECT ALL + col0 + + col2 DIV col0 AS col1 FROM tab2 AS cor0
----
10
78
79

skipif mysql # not compatible
query I rowsort label-4160
SELECT ALL + col0 + + col2 / col0 AS col1 FROM tab2 AS cor0
----
10
78
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab1.col1 + col0 col1 FROM tab1
----
29
74
93

query I rowsort
SELECT + col0 * + col2 + col2 AS col2 FROM tab2
----
2054
216
3040

query I rowsort
SELECT - col0 + + cor0.col0 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + + col2 * col2 + - col1 FROM tab1 cor0
----
2890
3239
9203

onlyif mysql # use DIV operator for integer division
query I rowsort label-4165
SELECT - col0 + col0 DIV col1 FROM tab2
----
-7
-75
-77

skipif mysql # not compatible
query I rowsort label-4165
SELECT - col0 + col0 / col1 FROM tab2
----
-7
-75
-77

query I rowsort
SELECT col0 * + col2 + col2 * - col0 FROM tab2
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4167
SELECT + col2 DIV col0 AS col2 FROM tab1
----
0
1
18

skipif mysql # not compatible
query I rowsort label-4167
SELECT + col2 / col0 AS col2 FROM tab1
----
0
1
18

query I rowsort
SELECT 68 * + tab1.col1 FROM tab1
----
1768
680
884

query I rowsort
SELECT cor0.col2 + col2 * col2 AS col2 FROM tab0 cor0
----
1122
2
6806

query I rowsort
SELECT + ( cor0.col1 ) + col2 * + col0 * col1 AS col0 FROM tab1 AS cor0
----
36490
4238
99853

query I rowsort
SELECT - 12 * + col0 AS col1 FROM tab2
----
-84
-936
-948

onlyif mysql # use DIV operator for integer division
query I rowsort label-4172
SELECT - col2 * - col0 + - col0 DIV + col0 - col1 * - col0 AS col1 FROM tab0
----
15396
2855
3429

skipif mysql # not compatible
query I rowsort label-4172
SELECT - col2 * - col0 + - col0 / + col0 - col1 * - col0 AS col1 FROM tab0
----
15396
2855
3429

query I rowsort
SELECT - tab0.col1 + + col1 * col2 FROM tab0
----
0
2752
7371

query I rowsort
SELECT DISTINCT - tab1.col1 + - col1 AS col2 FROM tab1
----
-20
-26
-52

query I rowsort
SELECT DISTINCT col1 * col2 + tab0.col0 AS col1 FROM tab0
----
132
2862
7551

query I rowsort
SELECT col0 * - col1 - col1 FROM tab1
----
-104
-1053
-650

query I rowsort
SELECT DISTINCT - + col1 + - col2 AS col2 FROM tab0 AS cor0
----
-119
-173
-98

query I rowsort
SELECT ALL + cor0.col0 FROM tab1, tab2 cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a

query I rowsort
SELECT DISTINCT 37 * col1 * ( 35 + col1 ) AS col0 FROM tab0
----
385022
424242
473748

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4180
SELECT col2 * col2 + CAST( - col0 AS SIGNED ) AS col1 FROM tab2
----
1365
598
722

skipif mysql # not compatible
query I rowsort label-4180
SELECT col2 * col2 + CAST ( - col0 AS INTEGER ) AS col1 FROM tab2
----
1365
598
722

query I rowsort
SELECT DISTINCT 4 - col0 FROM tab1
----
-60
-76
1

query I rowsort
SELECT DISTINCT + cor0.col1 * cor1.col0 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c7e3d87815c66f5a8360e4fe15424a79

query I rowsort
SELECT ALL col0 + ( + tab0.col1 ) AS col0 FROM tab0
----
110
132
180

query I rowsort
SELECT - 26 * tab2.col2 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to d2878fb37176fc97de177c4de6ed975e

onlyif mysql # use DIV operator for integer division
query I rowsort label-4185
SELECT DISTINCT - cor0.col2 DIV - ( col0 ) + - col0 FROM tab1 AS cor0
----
-64
-79
15

skipif mysql # not compatible
query I rowsort label-4185
SELECT DISTINCT - cor0.col2 / - ( col0 ) + - col0 FROM tab1 AS cor0
----
-64
-79
15

onlyif mysql # use DIV operator for integer division
query I rowsort label-4186
SELECT - tab2.col0 DIV 10 FROM tab2
----
-7
-7
0

skipif mysql # not compatible
query I rowsort label-4186
SELECT - tab2.col0 / 10 FROM tab2
----
-7
-7
0

query I rowsort
SELECT ALL 64 FROM tab0, tab2 AS cor0, tab0 cor1
----
27 values hashing to c8b19f4c3ff38700cd2bb8a077bf29b9

query I rowsort
SELECT ALL - col0 * col0 + - 88 FROM tab1 AS cor0
----
-4184
-6488
-97

query I rowsort
SELECT col0 * col2 * col2 + cor0.col0 FROM tab1 AS cor0
----
208000
737360
8751

query I rowsort
SELECT DISTINCT + col0 * ( - col0 + col1 ) * col2 FROM tab0 AS cor0
----
14596
2170
49104

query I rowsort
SELECT ALL - 4 AS col1 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 39ed23475412c3cbba02ecdd2d7018e6

query I rowsort
SELECT DISTINCT + col2 + - cor0.col0 * col2 AS col1 FROM tab0 cor0
----
-34
-7216
-759

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 89 col1 FROM tab2
----
89
89
89

query I rowsort
SELECT ALL 56 FROM tab0, tab2, tab0 cor0
----
27 values hashing to b5ba4b44e3deadce1edb30e76df61200

query I rowsort
SELECT ALL + ( col2 * - col1 ) FROM tab2
----
-1534
-646
-837

query I rowsort
SELECT ALL 37 * tab0.col0 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 03926241d49439289a83c509cb84d356

onlyif mysql # use DIV operator for integer division
query I rowsort label-4197
SELECT DISTINCT + col1 + col0 DIV col2 FROM tab0 AS cor0
----
132
86
92

skipif mysql # not compatible
query I rowsort label-4197
SELECT DISTINCT + col1 + col0 / col2 FROM tab0 AS cor0
----
132
86
92

query I rowsort
SELECT cor0.col1 - + 1 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to ca457652e100139e52b85eb2c55fdbab

query I rowsort
SELECT - ( + col2 ) + - col2 AS col1 FROM tab2 AS cor0
----
-52
-54
-76

query I rowsort
SELECT + col0 * 84 AS col2 FROM tab0 cor0
----
2016
2940
7476

query I rowsort
SELECT ALL 51 FROM tab2 cor0
----
51
51
51

query I rowsort
SELECT ( 96 ) FROM tab2 AS cor0
----
96
96
96

query I rowsort
SELECT DISTINCT + 96 + cor0.col0 FROM tab2 AS cor0
----
103
174
175

query I rowsort
SELECT + + col2 + + col1 AS col2 FROM tab1 cor0
----
109
67
80

query I rowsort
SELECT DISTINCT - cor2.col1 AS col0 FROM tab2, tab1 cor0, tab0 AS cor1, tab0, tab2 AS cor2
----
-17
-31
-59

query I rowsort
SELECT ALL + + 68 * - cor0.col1 + + 77 FROM tab0 AS cor0
----
-5771
-6111
-6519

query I rowsort
SELECT ALL - + 17 + cor0.col1 AS col1 FROM tab0 cor0
----
69
74
80

query I rowsort
SELECT DISTINCT - - col0 + col1 * - 2 AS col2 FROM tab0 cor0
----
-148
-159
-93

query I rowsort
SELECT ALL + - ( + col1 ) + 49 * col1 FROM tab2 AS cor0
----
1488
2832
816

query I rowsort
SELECT DISTINCT + - col1 * col0 + + 5 FROM tab0 AS cor0
----
-2059
-3390
-8094

query I rowsort
SELECT ALL col0 + + col0 * + col0 FROM tab0 AS cor0
----
1260
600
8010

query I rowsort
SELECT ALL + ( col2 ) + col2 AS col2 FROM tab0 AS cor0
----
164
2
66

query I rowsort
SELECT 14 * + col2 FROM tab1 AS cor0
----
1344
756
798

query I rowsort
SELECT DISTINCT 72 - col1 AS col2 FROM tab1 AS cor0
----
46
59
62

query I rowsort
SELECT DISTINCT + col0 * col2 * ( col0 + - cor0.col2 ) FROM tab2 cor0
----
-3780
105456
123082

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 83 col2 FROM tab0 AS cor0
----
-83
-83
-83

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4217
SELECT DISTINCT + col1 * col2 - CAST( NULL AS SIGNED ) * col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4217
SELECT DISTINCT + col1 * col2 - CAST ( NULL AS INTEGER ) * col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4218
SELECT ALL 82 DIV cor0.col2 FROM tab0 AS cor0
----
1
2
82

skipif mysql # not compatible
query I rowsort label-4218
SELECT ALL 82 / cor0.col2 FROM tab0 AS cor0
----
1
2
82

query I rowsort
SELECT DISTINCT - ( + tab1.col1 ) AS col0 FROM tab1, tab1 AS cor0
----
-10
-13
-26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - + tab0.col2 col2 FROM tab0
----
53
9
96

query I rowsort
SELECT DISTINCT cor0.col0 * col1 * cor0.col1 + - 56 FROM tab2 cor0
----
22775
271462
6671

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 80 + + col1 * ( - col0 ) col2 FROM tab2 AS cor0
----
-1263
-137
-4522

query I rowsort
SELECT DISTINCT + + col1 - col2 FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT DISTINCT - 11 * + col1 + col2 * - col2 AS col2 FROM tab2 AS cor0
----
-1070
-1325
-1631

query I rowsort
SELECT DISTINCT + + cor0.col0 + col1 + 66 FROM tab0 AS cor0
----
176
198
246

query I rowsort
SELECT DISTINCT 13 + col2 * 20 FROM tab0 cor0
----
1653
33
673

query I rowsort
SELECT ALL + col1 - + col1 AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL 30 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 6c98840ed134c765d56389f4150075f0

query I rowsort
SELECT ALL + 45 AS col0 FROM tab1, tab0 cor0, tab1 AS cor1, tab1 AS cor2
----
81 values hashing to 8a6d20810140ea088e8e0fd74ffb8339

query I rowsort
SELECT - - 52 AS col1 FROM tab2 AS cor0
----
52
52
52

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4231
SELECT - col1 * - CAST( col2 AS SIGNED ) * + col0 AS col2 FROM tab2 AS cor0
----
119652
51034
5859

skipif mysql # not compatible
query I rowsort label-4231
SELECT - col1 * - CAST ( col2 AS INTEGER ) * + col0 AS col2 FROM tab2 AS cor0
----
119652
51034
5859

query I rowsort
SELECT - 26 * - 29 AS col1 FROM tab2 AS cor0
----
754
754
754

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4233
SELECT - - CAST( 81 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
81
81
81

skipif mysql # not compatible
query I rowsort label-4233
SELECT - - CAST ( 81 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
81
81
81

query I rowsort
SELECT + - col1 * col1 + + col2 + - col2 AS col1 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT - + col0 + 17 + - col0 AS col2 FROM tab2 AS cor0
----
-139
-141
3

query I rowsort
SELECT ALL + ( col1 ) * col2 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT DISTINCT + col2 + 42 + + col0 AS col1 FROM tab1 cor0
----
163
218
99

query I rowsort
SELECT ALL + 39 * col1 + col0 + - 46 FROM tab0 cor0
----
3332
3592
3772

query I rowsort
SELECT DISTINCT - 85 + 61 AS col2 FROM tab1 AS cor0
----
-24

query I rowsort
SELECT + col0 * 5 * - col2 AS col0 FROM tab1
----
-18240
-38400
-810

onlyif mysql # use DIV operator for integer division
query I rowsort label-4241
SELECT col2 DIV - 98 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4241
SELECT col2 / - 98 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT - tab2.col1 + - 33 * + tab2.col1 AS col2 FROM tab2
----
-1054
-2006
-578

query I rowsort
SELECT ALL - tab2.col1 + - 47 + + col2 AS col2 FROM tab2
----
-26
-51
-80

query I rowsort
SELECT DISTINCT col2 + + col1 * col1 + tab1.col0 FROM tab1
----
221
345
733

query I rowsort
SELECT ALL - + col1 * + ( - cor0.col1 + 94 ) * - col1 FROM tab0 AS cor0
----
-28227
24843
59168

onlyif mysql # use DIV operator for integer division
query I rowsort label-4246
SELECT cor0.col2 * - ( col0 ) + 96 + 62 DIV - col0 FROM tab1 AS cor0
----
-3552
-7584
-86

skipif mysql # not compatible
query I rowsort label-4246
SELECT cor0.col2 * - ( col0 ) + 96 + 62 / - col0 FROM tab1 AS cor0
----
-3552
-7584
-86

query I rowsort
SELECT - col0 + col2 + - col2 FROM tab2 AS cor0
----
-7
-78
-79

onlyif mysql # use DIV operator for integer division
query I rowsort label-4248
SELECT ALL - cor0.col1 DIV 10 AS col0 FROM tab1 AS cor0
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-4248
SELECT ALL - cor0.col1 / 10 AS col0 FROM tab1 AS cor0
----
-1
-1
-2

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4249
SELECT - + CAST( NULL AS SIGNED ) * - col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4249
SELECT - + CAST ( NULL AS INTEGER ) * - col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4250
SELECT DISTINCT + CAST( - col1 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-17
-31
-59

skipif mysql # not compatible
query I rowsort label-4250
SELECT DISTINCT + CAST ( - col1 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT - cor0.col1 FROM tab0, tab1 AS cor0, tab1, tab1 AS cor1
----
81 values hashing to 96e9ef2950805bca93a295eeea43ef5b

query I rowsort
SELECT DISTINCT - 54 AS col1 FROM tab1, tab0 AS cor0
----
-54

query I rowsort
SELECT - col2 * col2 * col2 AS col0 FROM tab0
----
-1
-35937
-551368

query I rowsort
SELECT ALL - col2 + - ( col1 ) AS col0 FROM tab0
----
-119
-173
-98

query I rowsort
SELECT DISTINCT col1 + 37 * col0 AS col2 FROM tab1
----
137
2378
2973

onlyif mysql # use DIV operator for integer division
query I rowsort label-4256
SELECT + col0 DIV - 14 FROM tab2 AS cor0
----
-5
-5
0

skipif mysql # not compatible
query I rowsort label-4256
SELECT + col0 / - 14 FROM tab2 AS cor0
----
-5
-5
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 15 * - 5 col0 FROM tab0 AS cor0
----
-75
-75
-75

query I rowsort
SELECT - + col1 + 36 * col2 FROM tab1 cor0
----
1918
2042
3443

query I rowsort
SELECT - cor1.col1 AS col0 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6

onlyif mysql # use DIV operator for integer division
query I rowsort label-4260
SELECT ALL col1 * + col0 + + col1 DIV ( + 42 * - col1 ) AS col1 FROM tab1 AS cor0
----
1040
640
78

skipif mysql # not compatible
query I rowsort label-4260
SELECT ALL col1 * + col0 + + col1 / ( + 42 * - col1 ) AS col1 FROM tab1 AS cor0
----
1040
640
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-4261
SELECT - + ( cor0.col1 ) DIV cor0.col1 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4261
SELECT - + ( cor0.col1 ) / cor0.col1 FROM tab2 AS cor0
----
-1
-1
-1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4262
SELECT + - CAST( NULL AS DECIMAL ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4262
SELECT + - CAST ( NULL AS REAL ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 46 * + col2 FROM tab0 AS cor0
----
1518
3772
46

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4264
SELECT ALL + + col1 * - col2 + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4264
SELECT ALL + + col1 * - col2 + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 * col2 + - col1 FROM tab2 cor0
----
1427
617
698

query I rowsort
SELECT ALL - + col0 + cor0.col1 AS col1 FROM tab0 AS cor0
----
2
62
62

query I rowsort
SELECT DISTINCT + - 67 - col2 AS col1 FROM tab1 AS cor0
----
-121
-124
-163

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 - + col2 * 50 col2 FROM tab2 AS cor0
----
-1241
-1319
-1883

onlyif mysql # use DIV operator for integer division
query I rowsort label-4269
SELECT + - col2 DIV col1 + col1 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-4269
SELECT + - col2 / col1 + col1 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT + 72 * col2 AS col0 FROM tab0 cor0
----
2376
5904
72

query I rowsort
SELECT - - col2 - col2 * col2 * col1 AS col1 FROM tab1 AS cor0
----
-119712
-32433
-75762

query I rowsort
SELECT + col1 * + col1 * + col2 FROM tab2 AS cor0
----
10982
25947
90506

query I rowsort
SELECT 39 + col2 AS col2 FROM tab2 AS cor0
----
65
66
77

query I rowsort
SELECT - + col1 * cor0.col1 * 18 FROM tab2 AS cor0
----
-17298
-5202
-62658

query I rowsort
SELECT - 43 + - 84 FROM tab2, tab1 cor0
----
9 values hashing to 79c908460abee25181b50da08dd87a21

query I rowsort
SELECT + col2 * - col1 * - cor0.col0 + col2 AS col0 FROM tab2 AS cor0
----
119678
51072
5886

query I rowsort
SELECT - col2 * col1 * 87 FROM tab0 AS cor0
----
-246906
-649194
-8439

query I rowsort
SELECT cor0.col2 * ( 32 ) AS col2 FROM tab0 AS cor0
----
1056
2624
32

onlyif mysql # use DIV operator for integer division
query I rowsort label-4279
SELECT tab2.col2 + col2 + - col0 DIV col0 AS col0 FROM tab2
----
51
53
75

skipif mysql # not compatible
query I rowsort label-4279
SELECT tab2.col2 + col2 + - col0 / col0 AS col0 FROM tab2
----
51
53
75

query I rowsort
SELECT DISTINCT + 6 * - col1 FROM tab0
----
-516
-546
-582

query I rowsort
SELECT - + cor0.col1 + - 51 FROM tab2 AS cor0
----
-110
-68
-82

query I rowsort
SELECT - col0 * col2 - col1 FROM tab1 AS cor0
----
-188
-3658
-7693

onlyif mysql # use DIV operator for integer division
query I rowsort label-4283
SELECT ALL col2 DIV 50 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4283
SELECT ALL col2 / 50 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + col2 * + cor0.col2 + col1 + + cor0.col0 * 8 FROM tab1 AS cor0
----
2966
3771
9869

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4285
SELECT + col0 + CAST( col2 AS SIGNED ) + + col1 * - cor0.col1 AS col1 FROM tab1 AS cor0
----
-619
21
7

skipif mysql # not compatible
query I rowsort label-4285
SELECT + col0 + CAST ( col2 AS INTEGER ) + + col1 * - cor0.col1 AS col1 FROM tab1 AS cor0
----
-619
21
7

query I rowsort
SELECT + col2 + 95 * col0 AS col1 FROM tab1 AS cor0
----
339
6137
7696

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4287
SELECT DISTINCT + - col1 + + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4287
SELECT DISTINCT + - col1 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + + col1 * + col2 + - col2 * col1 FROM tab1 AS cor0
----
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4289
SELECT DISTINCT - col0 * CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4289
SELECT DISTINCT - col0 * CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT col2 + + cor0.col2 * col2 + + col0 FROM tab1 AS cor0
----
2973
3370
9392

query I rowsort
SELECT - + col0 * - 0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - col2 * + 54 FROM tab1 AS cor0
----
-2916
-3078
-5184

onlyif mysql # use DIV operator for integer division
query I rowsort label-4293
SELECT DISTINCT - - col2 DIV - col2 AS col2 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4293
SELECT DISTINCT - - col2 / - col2 AS col2 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT - col0 + 15 * - cor0.col0 + + 6 AS col1 FROM tab2 AS cor0
----
-106
-1242
-1258

query I rowsort
SELECT ALL + ( + col0 ) + col0 FROM tab1 AS cor0
----
128
160
6

query I rowsort
SELECT DISTINCT + - ( cor0.col1 ) AS col0 FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT - - ( + col1 ) * col1 FROM tab0 cor0
----
7396
8281
9409

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4298
SELECT - CAST( NULL AS SIGNED ) + - ( - cor0.col0 ) * - ( + col1 ) + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4298
SELECT - CAST ( NULL AS INTEGER ) + - ( - cor0.col0 ) * - ( + col1 ) + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col1 + tab1.col1 * + col0 * col1 AS col0 FROM tab1
----
13533
2054
6410

onlyif mysql # use DIV operator for integer division
query I rowsort label-4300
SELECT ALL - + 69 DIV col2 AS col1 FROM tab1 cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-4300
SELECT ALL - + 69 / col2 AS col1 FROM tab1 cor0
----
-1
-1
0

query I rowsort
SELECT - ( + 27 ) AS col0 FROM tab1
----
-27
-27
-27

query I rowsort
SELECT ALL col2 + col1 - - ( - 15 ) FROM tab2
----
40
43
70

query I rowsort
SELECT DISTINCT 30 - col2 FROM tab0
----
-3
-52
29

query I rowsort
SELECT - 79 + - col0 AS col0 FROM tab0
----
-103
-114
-168

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 col0 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to c82df1de3cb666224690a83f3d790d79

query I rowsort
SELECT + - col0 + + col0 - - col2 * col0 AS col2 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT ALL col0 + tab1.col2 - - ( + col2 ) FROM tab1
----
111
178
272

query I rowsort
SELECT + 17 * - col1 * + cor0.col1 FROM tab2 AS cor0
----
-16337
-4913
-59177

query I rowsort
SELECT ALL - col0 - + 34 FROM tab0 AS cor0
----
-123
-58
-69

query I rowsort
SELECT + ( cor0.col1 ) * - col1 FROM tab2 AS cor0
----
-289
-3481
-961

query I rowsort
SELECT ( + 45 ) * - cor0.col2 FROM tab0 AS cor0
----
-1485
-3690
-45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + col0 ) + cor0.col0 * 6 col2 FROM tab0 cor0
----
168
245
623

query I rowsort
SELECT + col0 * - col2 * col0 FROM tab2 AS cor0
----
-1323
-158184
-237158

query I rowsort
SELECT + col1 + col0 * col1 * - col2 FROM tab2 cor0
----
-119593
-51017
-5828

query I rowsort
SELECT DISTINCT + + col0 * - 91 AS col2 FROM tab2 AS cor0
----
-637
-7098
-7189

onlyif mysql # use DIV operator for integer division
query I rowsort label-4316
SELECT DISTINCT col2 DIV 93 AS col2 FROM tab1
----
0
1

skipif mysql # not compatible
query I rowsort label-4316
SELECT DISTINCT col2 / 93 AS col2 FROM tab1
----
0
1

query I rowsort
SELECT DISTINCT col1 * - 32 FROM tab0
----
-2752
-2912
-3104

query I rowsort
SELECT ALL ( - 58 ) + + col1 AS col0 FROM tab2 AS cor0
----
-27
-41
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 43 col0 FROM tab2 AS cor0
----
-43
-43
-43

query I rowsort
SELECT DISTINCT tab2.col1 FROM tab2, tab0 AS cor0, tab0, tab0 cor1
----
17
31
59

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4321
SELECT + CAST( NULL AS SIGNED ) * - tab0.col1 * - col1 + + 8 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4321
SELECT + CAST ( NULL AS INTEGER ) * - tab0.col1 * - col1 + + 8 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 70 col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 35707a5d99c98b2657c084a50ff1b073

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * + col0 col2 FROM tab2
----
-1343
-217
-4602

query I rowsort
SELECT 17 + - col2 * - col0 FROM tab2 AS cor0
----
2045
206
3019

query I rowsort
SELECT ALL + - col2 * + 28 AS col1 FROM tab0 AS cor0
----
-2296
-28
-924

onlyif mysql # use DIV operator for integer division
query I rowsort label-4326
SELECT DISTINCT + + 45 DIV - col0 AS col2 FROM tab0 cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-4326
SELECT DISTINCT + + 45 / - col0 AS col2 FROM tab0 cor0
----
-1
0

query I rowsort
SELECT - + col0 * col1 * col2 + col2 * col2 * - col0 FROM tab2 cor0
----
-10962
-165110
-172380

query I rowsort
SELECT + ( - 83 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d55748f39f403ec273099c0d87b0bfbb

onlyif mysql # use DIV operator for integer division
query I rowsort label-4329
SELECT ALL col0 + col2 * + col2 + - col0 * col2 DIV + col2 AS col0 FROM tab1
----
2916
3249
9216

skipif mysql # not compatible
query I rowsort label-4329
SELECT ALL col0 + col2 * + col2 + - col0 * col2 / + col2 AS col0 FROM tab1
----
2916
3249
9216

query I rowsort
SELECT ALL col0 + - ( col0 ) AS col1 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4331
SELECT ALL cor0.col0 * ( + col2 ) + col1 DIV + col1 + col1 AS col2 FROM tab2 AS cor0
----
2088
221
3020

skipif mysql # not compatible
query I rowsort label-4331
SELECT ALL cor0.col0 * ( + col2 ) + col1 / + col1 + col1 AS col2 FROM tab2 AS cor0
----
2088
221
3020

query I rowsort
SELECT DISTINCT cor0.col2 * - tab1.col1 FROM tab1, tab2 AS cor0
----
9 values hashing to e4fd9d16116443b7eee5ff68e1d13137

query I rowsort
SELECT DISTINCT - tab0.col1 * + col0 + 53 + col0 FROM tab0
----
-1987
-3307
-7957

query I rowsort
SELECT - tab0.col2 * - col0 * - 71 AS col1 FROM tab0
----
-2485
-518158
-56232

onlyif mysql # use DIV operator for integer division
query I rowsort label-4335
SELECT ALL 64 DIV - cor0.col1 FROM tab0, tab1 AS cor0
----
9 values hashing to f1f783f16b9da0098e899f1d2bf82e73

skipif mysql # not compatible
query I rowsort label-4335
SELECT ALL 64 / - cor0.col1 FROM tab0, tab1 AS cor0
----
9 values hashing to f1f783f16b9da0098e899f1d2bf82e73

query I rowsort
SELECT - col0 + + ( ( + tab1.col0 ) ) * col0 FROM tab1
----
4032
6
6320

query I rowsort
SELECT + ( cor0.col0 ) AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 77 col2 FROM tab2, tab0 cor0
----
-77

query I rowsort
SELECT + + cor0.col0 + + 64 FROM tab0 AS cor0
----
153
88
99

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 AS cor0, tab2 cor1, tab2, tab0 AS cor2
----
3645 values hashing to 5ec52b92c3c8d78cc0a61df3fc16f18b

query I rowsort
SELECT DISTINCT + + col1 + 57 AS col2 FROM tab2 AS cor0
----
116
74
88

query I rowsort
SELECT ALL - + cor0.col2 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to b5a4102107e5ebd26e341538f4fede1e

query I rowsort
SELECT DISTINCT col2 + - 57 FROM tab1 AS cor0
----
-3
0
39

onlyif mysql # use DIV operator for integer division
query I rowsort label-4344
SELECT DISTINCT - - col1 DIV col1 + + 30 FROM tab2 AS cor0
----
31

skipif mysql # not compatible
query I rowsort label-4344
SELECT DISTINCT - - col1 / col1 + + 30 FROM tab2 AS cor0
----
31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 * - col0 col1 FROM tab0 AS cor0
----
1225
576
7921

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + ( - 33 ) * col2 col2 FROM tab1 cor0
----
-1785
-1945
-3248

query I rowsort
SELECT 27 * 82 AS col2 FROM tab2 AS cor0
----
2214
2214
2214

query I rowsort
SELECT DISTINCT 16 * - cor0.col1 FROM tab2 AS cor0
----
-272
-496
-944

onlyif mysql # use DIV operator for integer division
query I rowsort label-4349
SELECT col2 * + col0 + col2 DIV + col0 FROM tab1 AS cor0
----
180
3648
7681

skipif mysql # not compatible
query I rowsort label-4349
SELECT col2 * + col0 + col2 / + col0 FROM tab1 AS cor0
----
180
3648
7681

onlyif mysql # use DIV operator for integer division
query I rowsort label-4350
SELECT + col2 DIV cor0.col1 col0 FROM tab2 AS cor0
----
0
0
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4350
SELECT + col2 / cor0.col1 col0 FROM tab2 AS cor0
----
0
0
2

query I rowsort
SELECT ALL + 62 + - col0 FROM tab2 AS cor0
----
-16
-17
55

onlyif mysql # use DIV operator for integer division
query I rowsort label-4352
SELECT ALL - + col0 DIV col2 + col0 DIV - cor0.col0 + - col1 * + CAST( col1 AS SIGNED ) FROM tab0 AS cor0
----
-7397
-8283
-9445

skipif mysql # not compatible
query I rowsort label-4352
SELECT ALL - + col0 / col2 + col0 / - cor0.col0 + - col1 * + CAST ( col1 AS INTEGER ) FROM tab0 AS cor0
----
-7397
-8283
-9445

query I rowsort
SELECT ( col2 + 85 ) FROM tab1
----
139
142
181

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4354
SELECT + col1 + - col0 * CAST( NULL AS DECIMAL ) col2 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4354
SELECT + col1 + - col0 * CAST ( NULL AS REAL ) col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT 9 * col0 AS col2 FROM tab0
----
216
315
801

query I rowsort
SELECT ALL ( + col0 ) * + col1 + col2 FROM tab1 cor0
----
1136
132
697

query I rowsort
SELECT DISTINCT - col0 * + col2 + - col0 * col1 - - col1 AS col2 FROM tab1 AS cor0
----
-214
-4278
-8707

query I rowsort
SELECT DISTINCT - col0 * + 86 + 99 AS col1 FROM tab1 AS cor0
----
-159
-5405
-6781

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4359
SELECT - cor0.col0 + CAST( col1 AS SIGNED ) col2 FROM tab0 AS cor0
----
2
62
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4359
SELECT - cor0.col0 + CAST ( col1 AS INTEGER ) col2 FROM tab0 AS cor0
----
2
62
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-4360
SELECT ( + col1 ) DIV + col0 AS col1 FROM tab1
----
0
0
8

skipif mysql # not compatible
query I rowsort label-4360
SELECT ( + col1 ) / + col0 AS col1 FROM tab1
----
0
0
8

query I rowsort
SELECT + col1 * col0 * - col1 + 3 AS col0 FROM tab0
----
-177501
-329312
-737006

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + col2 col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - 46 * col2 * 75 AS col2 FROM tab1 AS cor0
----
-186300
-196650
-331200

query I rowsort
SELECT - cor0.col2 + col1 + + ( col2 ) FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT DISTINCT col2 * 85 * col1 FROM tab1
----
106080
119340
48450

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - cor0.col1 ) + + 56 + + cor0.col0 * - cor0.col2 col2 FROM tab2 AS cor0
----
-164
-2031
-2963

query I rowsort
SELECT + 27 * - col1 AS col0 FROM tab2
----
-1593
-459
-837

query I rowsort
SELECT DISTINCT - col1 * col2 + ( - col2 ) * + col2 AS col0 FROM tab1
----
-10464
-3819
-4320

query I rowsort
SELECT + 51 AS col2 FROM tab1, tab1 cor0, tab2 AS cor1
----
27 values hashing to 02a7de94365b8cb5b5cb92c4b1d1e7c5

query I rowsort
SELECT - ( - col1 ) - + 45 FROM tab0
----
41
46
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-4371
SELECT + tab1.col0 DIV ( - 90 + col1 ) AS col1 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4371
SELECT + tab1.col0 / ( - 90 + col1 ) AS col1 FROM tab1
----
-1
0
0

query I rowsort
SELECT DISTINCT + - 24 + - col2 AS col0 FROM tab1 AS cor0
----
-120
-78
-81

query I rowsort
SELECT DISTINCT col0 + ( col1 ) * col0 AS col2 FROM tab2 AS cor0
----
1422
224
4680

query I rowsort
SELECT ( + 44 ) - - cor0.col0 FROM tab1 AS cor0
----
108
124
47

onlyif mysql # use DIV operator for integer division
query I rowsort label-4375
SELECT tab2.col1 DIV - tab2.col0 FROM tab2
----
-4
0
0

skipif mysql # not compatible
query I rowsort label-4375
SELECT tab2.col1 / - tab2.col0 FROM tab2
----
-4
0
0

query I rowsort
SELECT ALL col1 * + 67 AS col0 FROM tab0
----
5762
6097
6499

onlyif mysql # use DIV operator for integer division
query I rowsort label-4377
SELECT DISTINCT - col1 DIV + tab1.col0 FROM tab1
----
-8
0

skipif mysql # not compatible
query I rowsort label-4377
SELECT DISTINCT - col1 / + tab1.col0 FROM tab1
----
-8
0

query I rowsort
SELECT - ( - col0 ) + col0 + - col2 AS col2 FROM tab0 AS cor0
----
15
69
96

query I rowsort
SELECT - 1 + col0 + col1 AS col2 FROM tab2 cor0
----
136
37
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col0 ) * col1 col2 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT col2 * ( + col2 ) AS col2 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT + col1 - - col0 * + col1 FROM tab2 AS cor0
----
1360
248
4661

query I rowsort
SELECT + - 13 + cor0.col0 + - col2 FROM tab0 AS cor0
----
-22
-6
21

query I rowsort
SELECT - ( col1 ) + + col1 + ( + 7 ) FROM tab2 AS cor0
----
7
7
7

query I rowsort
SELECT ALL - ( col2 * col0 ) - col1 FROM tab2
----
-2087
-220
-3019

query I rowsort
SELECT ALL - 20 * col0 * col2 + - ( col1 + cor0.col1 ) * + 83 FROM tab0 AS cor0
----
-161066
-16802
-30116

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4387
SELECT ALL + CAST( NULL AS SIGNED ) * col0 - col2 * col1 * ( + col2 ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4387
SELECT ALL + CAST ( NULL AS INTEGER ) * col0 - col2 * col1 * ( + col2 ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ( 19 ) + + col2 * col0 FROM tab0
----
54
7317
811

query I rowsort
SELECT - 76 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to d90b4aa5f03b4a149aa925c4a88acca0

query I rowsort
SELECT 85 + 9 FROM tab1
----
94
94
94

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4391
SELECT CAST( + col1 AS SIGNED ) + col2 AS col1 FROM tab0
----
119
173
98

skipif mysql # not compatible
query I rowsort label-4391
SELECT CAST ( + col1 AS INTEGER ) + col2 AS col1 FROM tab0
----
119
173
98

query I rowsort
SELECT DISTINCT col0 + col0 + 56 AS col1 FROM tab0 AS cor0
----
104
126
234

query I rowsort
SELECT DISTINCT col0 * - col1 - - col0 * + col0 FROM tab1 AS cor0
----
-69
3456
5360

query I rowsort
SELECT ALL + 92 AS col0 FROM tab1 AS cor0
----
92
92
92

query I rowsort
SELECT ALL - col1 + cor0.col1 * - col1 + - col1 FROM tab1 AS cor0
----
-120
-195
-728

query I rowsort
SELECT DISTINCT + 27 + col1 + - 64 AS col2 FROM tab1 AS cor0
----
-11
-24
-27

query I rowsort
SELECT DISTINCT - ( - col1 ) + 79 AS col2 FROM tab1 cor0
----
105
89
92

query I rowsort
SELECT ALL + ( - col1 ) + 44 * col1 AS col1 FROM tab1 AS cor0
----
1118
430
559

onlyif mysql # use DIV operator for integer division
query I rowsort label-4399
SELECT ALL - col0 DIV + col0 + - ( col0 ) col1 FROM tab0 AS cor0
----
-25
-36
-90

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4399
SELECT ALL - col0 / + col0 + - ( col0 ) col1 FROM tab0 AS cor0
----
-25
-36
-90

query I rowsort
SELECT ALL - 5 * cor0.col2 FROM tab1 AS cor0
----
-270
-285
-480

query I rowsort
SELECT + 80 * - col0 + + cor0.col2 AS col1 FROM tab0 AS cor0
----
-1887
-2799
-7038

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * + col1 + + col2 col0 FROM tab1 cor0
----
-43
-622
-73

onlyif mysql # use DIV operator for integer division
query I rowsort label-4403
SELECT - col0 - - col2 * 33 DIV col0 FROM tab1 AS cor0
----
-35
-41
591

skipif mysql # not compatible
query I rowsort label-4403
SELECT - col0 - - col2 * 33 / col0 FROM tab1 AS cor0
----
-35
-41
591

query I rowsort
SELECT - col2 * col0 + + ( + col2 ) FROM tab2 cor0
----
-162
-2002
-2964

query I rowsort
SELECT DISTINCT + 99 + cor0.col0 AS col2 FROM tab1 AS cor0
----
102
163
179

query I rowsort
SELECT col1 - + col2 * 46 * - col2 FROM tab1 AS cor0
----
134162
149464
423949

query I rowsort
SELECT DISTINCT + - 11 * + col1 + + ( - 72 ) FROM tab2 AS cor0
----
-259
-413
-721

query I rowsort
SELECT col1 * 47 FROM tab1 cor0
----
1222
470
611

query I rowsort
SELECT DISTINCT col1 - + ( + col1 ) AS col2 FROM tab0 AS cor0
----
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4410
SELECT ALL - cor0.col2 + + CAST( ( col2 ) AS DECIMAL ) * - CAST( NULL AS SIGNED ) * col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4410
SELECT ALL - cor0.col2 + + CAST ( ( col2 ) AS REAL ) * - CAST ( NULL AS INTEGER ) * col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT cor0.col0 * + col2 + 12 * col2 * col1 FROM tab0 AS cor0
----
1199
34848
96842

onlyif mysql # use DIV operator for integer division
query I rowsort label-4412
SELECT DISTINCT + col1 + col0 DIV ( col1 ) AS col0 FROM tab2 AS cor0
----
21
31
60

skipif mysql # not compatible
query I rowsort label-4412
SELECT DISTINCT + col1 + col0 / ( col1 ) AS col0 FROM tab2 AS cor0
----
21
31
60

query I rowsort
SELECT DISTINCT - cor0.col1 + - col1 - 24 AS col2 FROM tab0 AS cor0
----
-196
-206
-218

onlyif mysql # use DIV operator for integer division
query I rowsort label-4414
SELECT ALL - col2 DIV + 4 AS col1 FROM tab0 AS cor0
----
-20
-8
0

skipif mysql # not compatible
query I rowsort label-4414
SELECT ALL - col2 / + 4 AS col1 FROM tab0 AS cor0
----
-20
-8
0

query I rowsort
SELECT DISTINCT - + col0 * col2 + 55 AS col0 FROM tab0 AS cor0
----
-7243
-737
20

query I rowsort
SELECT ALL + + col2 - - 84 AS col1 FROM tab1 AS cor0
----
138
141
180

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + ( col1 ) * + col2 col1 FROM tab0 AS cor0
----
2871
7544
98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4418
SELECT ALL + CAST( NULL AS SIGNED ) * - col0 + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4418
SELECT ALL + CAST ( NULL AS INTEGER ) * - col0 + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 * 76 + - cor0.col0 FROM tab1 AS cor0
----
1973
696
908

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4420
SELECT - - col0 * + col1 + CAST( - col1 AS SIGNED ) AS col2 FROM tab1 cor0
----
1027
52
630

skipif mysql # not compatible
query I rowsort label-4420
SELECT - - col0 * + col1 + CAST ( - col1 AS INTEGER ) AS col2 FROM tab1 cor0
----
1027
52
630

query I rowsort
SELECT ALL - + 76 AS col0 FROM tab1 AS cor0
----
-76
-76
-76

onlyif mysql # use DIV operator for integer division
query I rowsort label-4422
SELECT + col0 DIV - col0 + col0 FROM tab1 AS cor0
----
2
63
79

skipif mysql # not compatible
query I rowsort label-4422
SELECT + col0 / - col0 + col0 FROM tab1 AS cor0
----
2
63
79

query I rowsort
SELECT ALL - 64 * - col1 * col1 + + col1 FROM tab0 AS cor0
----
473430
530075
602273

query I rowsort
SELECT ALL - 93 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 38f445d95788c7dc754ff688a62df03b

query I rowsort
SELECT ALL + col0 + + cor0.col2 * + col2 FROM tab0 AS cor0
----
1113
36
6813

onlyif mysql # use DIV operator for integer division
query I rowsort label-4426
SELECT DISTINCT + col0 * - cor0.col2 + + col1 - + col2 DIV - col2 FROM tab0 AS cor0
----
-705
-7206
63

skipif mysql # not compatible
query I rowsort label-4426
SELECT DISTINCT + col0 * - cor0.col2 + + col1 - + col2 / - col2 FROM tab0 AS cor0
----
-705
-7206
63

query I rowsort
SELECT ALL + 67 - + col0 FROM tab2 AS cor0
----
-11
-12
60

query I rowsort
SELECT + - col0 * - col1 + + col2 FROM tab0 cor0
----
2097
3396
8181

query I rowsort
SELECT col0 + col0 * - ( 97 * col2 + + ( col1 ) ) AS col2 FROM tab0 AS cor0
----
-6755
-715916
-78864

query I rowsort
SELECT DISTINCT + 40 + + col0 + + 4 * ( col1 ) FROM tab2 cor0
----
171
187
354

query I rowsort
SELECT DISTINCT ( col2 ) + 41 * col1 AS col0 FROM tab0 AS cor0
----
3559
3813
3978

query I rowsort
SELECT - - col0 * - col2 + + col0 FROM tab0 AS cor0
----
-7209
-768
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + + cor0.col1 col0 FROM tab1 cor0
----
-28
-47
-83

query I rowsort
SELECT - col0 * cor0.col1 * - col2 AS col0 FROM tab1 AS cor0
----
36480
4212
99840

query I rowsort
SELECT ALL col0 * 39 + + cor0.col1 FROM tab0 AS cor0
----
1022
1462
3562

query I rowsort
SELECT DISTINCT + - col0 * col0 - - col0 FROM tab0 AS cor0
----
-1190
-552
-7832

onlyif mysql # use DIV operator for integer division
query I rowsort label-4437
SELECT ALL - - col0 DIV + 33 FROM tab1 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-4437
SELECT ALL - - col0 / + 33 FROM tab1 AS cor0
----
0
1
2

query I rowsort
SELECT ALL ( col2 ) * cor0.col2 FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT - col2 * - col2 - - col1 * + col0 AS col2 FROM tab0 AS cor0
----
14823
3153
3396

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col1 + - col0 col2 FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT ALL + col0 * 82 + cor0.col0 FROM tab0 AS cor0
----
1992
2905
7387

query I rowsort
SELECT ALL 97 AS col1 FROM tab2 cor0
----
97
97
97

query I rowsort
SELECT col2 + - col0 * - col0 AS col1 FROM tab2 AS cor0
----
6110
6279
76

onlyif mysql # use DIV operator for integer division
query I rowsort label-4444
SELECT col1 DIV 55 - col0 FROM tab0
----
-23
-34
-88

skipif mysql # not compatible
query I rowsort label-4444
SELECT col1 / 55 - col0 FROM tab0
----
-23
-34
-88

query I rowsort
SELECT ALL + col2 * - col0 + + tab2.col2 AS col1 FROM tab2
----
-162
-2002
-2964

query I rowsort
SELECT ALL 27 AS col1 FROM tab1, tab1 cor0
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8

query I rowsort
SELECT ALL 38 + ( - col1 * + ( tab2.col1 ) ) FROM tab2
----
-251
-3443
-923

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 63 col2 FROM tab2 AS cor0
----
-63

query I rowsort
SELECT 13 * + 13 * - col2 FROM tab0 AS cor0
----
-13858
-169
-5577

query I rowsort
SELECT DISTINCT + col2 * 22 + + tab0.col0 * - ( col1 ) FROM tab0
----
-1338
-3373
-6295

query I rowsort
SELECT - 40 * col1 AS col0 FROM tab2 cor0
----
-1240
-2360
-680

query I rowsort
SELECT ALL tab0.col1 + - 66 + col1 * col2 AS col2 FROM tab0
----
128
2858
7487

onlyif mysql # use DIV operator for integer division
query I rowsort label-4453
SELECT - cor0.col0 DIV - cor0.col0 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

skipif mysql # not compatible
query I rowsort label-4453
SELECT - cor0.col0 / - cor0.col0 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

query I rowsort
SELECT - ( + col0 ) + + col0 * - col2 + + cor0.col1 * cor0.col2 * col0 AS col1 FROM tab2 AS cor0
----
117546
47953
5663

onlyif mysql # use DIV operator for integer division
query I rowsort label-4455
SELECT DISTINCT + - cor0.col0 DIV col1 AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4455
SELECT DISTINCT + - cor0.col0 / col1 AS col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL - + 16 + col2 FROM tab2 AS cor0
----
10
11
22

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4457
SELECT ALL + col0 * CAST( 84 AS SIGNED ) + col0 FROM tab1 cor0
----
255
5440
6800

skipif mysql # not compatible
query I rowsort label-4457
SELECT ALL + col0 * CAST ( 84 AS INTEGER ) + col0 FROM tab1 cor0
----
255
5440
6800

query I rowsort
SELECT ALL + - cor0.col2 + ( - ( - col0 ) ) FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT - cor0.col0 AS col1 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4460
SELECT ALL - - col0 + col1 * + col0 + + CAST( col1 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
107
1133
714

skipif mysql # not compatible
query I rowsort label-4460
SELECT ALL - - col0 + col1 * + col0 + + CAST ( col1 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
107
1133
714

query I rowsort
SELECT DISTINCT + - col1 + col1 * - col0 AS col0 FROM tab1 cor0
----
-104
-1053
-650

query I rowsort
SELECT DISTINCT - 85 * - ( col1 ) - - ( + col0 * col2 ) FROM tab2 AS cor0
----
2824
4447
7043

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + ( - ( col1 ) ) + col0 + col2 * col2 col0 FROM tab2 AS cor0
----
1540
767
813

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4464
SELECT ALL CAST( NULL AS SIGNED ) * + col0 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4464
SELECT ALL CAST ( NULL AS INTEGER ) * + col0 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - ( cor0.col2 ) + - col2 * col0 FROM tab1 AS cor0
----
-216
-3705
-7776

query I rowsort
SELECT ALL 19 * - 10 + + cor0.col1 AS col2 FROM tab2 AS cor0
----
-131
-159
-173

query I rowsort
SELECT 11 - + 74 * + col1 FROM tab1 AS cor0
----
-1913
-729
-951

query I rowsort
SELECT 5 * + col1 FROM tab2 AS cor0
----
155
295
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + col1 + - col1 col2 FROM tab0
----
24
35
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 - + col2 col0 FROM tab0
----
53
9
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-4471
SELECT DISTINCT col0 DIV ( - col0 ) - + col0 * + col2 AS col1 FROM tab0
----
-36
-7299
-793

skipif mysql # not compatible
query I rowsort label-4471
SELECT DISTINCT col0 / ( - col0 ) - + col0 * + col2 AS col1 FROM tab0
----
-36
-7299
-793

query I rowsort
SELECT - col2 * ( col0 ) AS col1 FROM tab2 AS cor0
----
-189
-2028
-3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-4473
SELECT DISTINCT + + col0 + CAST( col1 AS SIGNED ) DIV + col1 AS col1 FROM tab1 AS cor0
----
4
65
81

skipif mysql # not compatible
query I rowsort label-4473
SELECT DISTINCT + + col0 + CAST ( col1 AS INTEGER ) / + col1 AS col1 FROM tab1 AS cor0
----
4
65
81

query I rowsort
SELECT + cor0.col2 AS col1 FROM tab2, tab0, tab0 cor0
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT ALL + 98 * col2 FROM tab0 AS cor0
----
3234
8036
98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4476
SELECT + col0 * + cor0.col2 * - col0 + + CAST( NULL AS SIGNED ) * col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4476
SELECT + col0 * + cor0.col2 * - col0 + + CAST ( NULL AS INTEGER ) * col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 * + 92 col1 FROM tab2 AS cor0
----
1564
2852
5428

query I rowsort
SELECT ALL - + 61 FROM tab1 AS cor0
----
-61
-61
-61

query I rowsort
SELECT col1 * col2 + col1 * - col0 AS col2 FROM tab0 AS cor0
----
-3298
-637
774

query I rowsort
SELECT + col0 + 57 AS col0 FROM tab1 AS cor0
----
121
137
60

query I rowsort
SELECT DISTINCT - col2 * + col0 * col1 FROM tab0 AS cor0
----
-3395
-664118
-68112

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4482
SELECT - + col1 + - col0 / CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4482
SELECT - + col1 + - col0 / CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4483
SELECT ALL - col0 DIV col0 AS col1 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4483
SELECT ALL - col0 / col0 AS col1 FROM tab2
----
-1
-1
-1

onlyif mysql # use DIV operator for integer division
query I rowsort label-4484
SELECT ALL + col0 DIV tab2.col0 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4484
SELECT ALL + col0 / tab2.col0 FROM tab2
----
1
1
1

query I rowsort
SELECT ALL 52 * - col0 * + col2 FROM tab2
----
-105456
-156104
-9828

query I rowsort
SELECT - 10 + cor0.col1 AS col1 FROM tab2 AS cor0
----
21
49
7

query I rowsort
SELECT DISTINCT + - cor0.col0 + 90 AS col0 FROM tab1 AS cor0
----
10
26
87

onlyif mysql # use DIV operator for integer division
query I rowsort label-4488
SELECT ALL - col2 * + col1 DIV col1 AS col1 FROM tab0 AS cor0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-4488
SELECT ALL - col2 * + col1 / col1 AS col1 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT + col1 * + col1 + + col0 * col2 AS col1 FROM tab2
----
1150
3291
5509

query I rowsort
SELECT DISTINCT + 39 * col0 AS col0 FROM tab2
----
273
3042
3081

query I rowsort
SELECT ALL col2 * + 47 AS col1 FROM tab2
----
1222
1269
1786

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4492
SELECT - col1 * CAST( NULL AS SIGNED ) * - col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4492
SELECT - col1 * CAST ( NULL AS INTEGER ) * - col0 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - tab2.col2 + ( + col0 ) FROM tab2
----
-20
41
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-4494
SELECT DISTINCT + col2 * cor0.col2 DIV ( col2 ) FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-4494
SELECT DISTINCT + col2 * cor0.col2 / ( col2 ) FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT DISTINCT col0 + ( + ( cor0.col2 ) ) FROM tab2 AS cor0
----
104
117
34

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4496
SELECT ALL col2 + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4496
SELECT ALL col2 + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4497
SELECT ALL + + cor0.col2 DIV - col0 AS col2 FROM tab2 AS cor0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-4497
SELECT ALL + + cor0.col2 / - col0 AS col2 FROM tab2 AS cor0
----
-3
0
0

query I rowsort
SELECT col0 + col1 * col1 AS col1 FROM tab0
----
7420
8370
9444

onlyif mysql # use DIV operator for integer division
query I rowsort label-4499
SELECT - col1 DIV + col1 + + col1 DIV - col0 AS col1 FROM tab1 AS cor0
----
-1
-1
-9

skipif mysql # not compatible
query I rowsort label-4499
SELECT - col1 / + col1 + + col1 / - col0 AS col1 FROM tab1 AS cor0
----
-1
-1
-9

query I rowsort
SELECT ALL 14 + + col1 * + col2 AS col1 FROM tab2 AS cor0
----
1548
660
851

onlyif mysql # use DIV operator for integer division
query I rowsort label-4501
SELECT DISTINCT - + col2 DIV - cor0.col0 + col0 FROM tab0 AS cor0
----
25
35
89

skipif mysql # not compatible
query I rowsort label-4501
SELECT DISTINCT - + col2 / - cor0.col0 + col0 FROM tab0 AS cor0
----
25
35
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-4502
SELECT 81 DIV - cor0.col1 FROM tab1 AS cor0
----
-3
-6
-8

skipif mysql # not compatible
query I rowsort label-4502
SELECT 81 / - cor0.col1 FROM tab1 AS cor0
----
-3
-6
-8

query I rowsort
SELECT DISTINCT - - 58 * - col1 AS col2 FROM tab1 cor0
----
-1508
-580
-754

query I rowsort
SELECT ALL + + col1 * + col2 + + ( col0 ) FROM tab2 AS cor0
----
1612
725
844

query I rowsort
SELECT DISTINCT col0 + + col0 + col0 AS col0 FROM tab0 AS cor0
----
105
267
72

query I rowsort
SELECT ALL - col1 + - col0 * + col1 FROM tab2 AS cor0
----
-1360
-248
-4661

query I rowsort
SELECT - ( 47 * col0 ) + - tab0.col1 AS col2 FROM tab0
----
-1214
-1742
-4274

query I rowsort
SELECT 16 * col2 + col1 AS col1 FROM tab0
----
113
1403
614

query I rowsort
SELECT + 39 * col1 AS col1 FROM tab0
----
3354
3549
3783

query I rowsort
SELECT + col0 * + col0 + col2 FROM tab2
----
6110
6279
76

query I rowsort
SELECT ALL 52 FROM tab0, tab2 cor0
----
9 values hashing to 7f4ae30893ab330784829711032ae599

query I rowsort
SELECT col0 * + cor0.col2 + cor0.col2 FROM tab2 AS cor0
----
2054
216
3040

query I rowsort
SELECT DISTINCT 9 * col0 + col1 FROM tab1 cor0
----
53
586
733

onlyif mysql # use DIV operator for integer division
query I rowsort label-4514
SELECT + + col1 + col0 DIV - col2 FROM tab0 AS cor0
----
62
86
90

skipif mysql # not compatible
query I rowsort label-4514
SELECT + + col1 + col0 / - col2 FROM tab0 AS cor0
----
62
86
90

query I rowsort
SELECT ALL + cor0.col2 * - col0 FROM tab2 cor0
----
-189
-2028
-3002

query I rowsort
SELECT ALL 69 AS col2 FROM tab0 AS cor0
----
69
69
69

query I rowsort
SELECT + cor0.col2 * - col1 + + col1 AS col1 FROM tab1 AS cor0
----
-1235
-1378
-560

query I rowsort
SELECT DISTINCT 3 * col1 FROM tab0 cor0
----
258
273
291

query I rowsort
SELECT + - 55 + col2 AS col0 FROM tab1 AS cor0
----
-1
2
41

query I rowsort
SELECT - - ( + col0 ) * col0 + col2 + + cor0.col1 FROM tab0 AS cor0
----
1323
695
8094

query I rowsort
SELECT ALL + col2 * - ( - 7 ) - col2 FROM tab1 AS cor0
----
324
342
576

query I rowsort
SELECT DISTINCT col2 + 66 AS col0 FROM tab1 cor0
----
120
123
162

query I rowsort
SELECT DISTINCT - + cor0.col2 * - col1 FROM tab0 AS cor0
----
2838
7462
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + 41 col0 FROM tab2 AS cor0
----
-18
10
24

query I rowsort
SELECT + col2 * + col0 + + 8 AS col0 FROM tab1 AS cor0
----
170
3656
7688

query I rowsort
SELECT DISTINCT - col2 * col1 + - col2 FROM tab2 AS cor0
----
-1560
-684
-864

query I rowsort
SELECT ALL - + col2 * + col1 FROM tab1 cor0
----
-1248
-1404
-570

query I rowsort
SELECT ALL col1 * - 28 + - col0 AS col1 FROM tab2 AS cor0
----
-1730
-555
-875

query I rowsort
SELECT - col2 - - 91 AS col1 FROM tab2 cor0
----
53
64
65

query I rowsort
SELECT DISTINCT + - col1 + + 31 * col2 AS col0 FROM tab1 AS cor0
----
1648
1757
2963

query I rowsort
SELECT ALL - 7 * cor0.col2 FROM tab2 AS cor0
----
-182
-189
-266

query I rowsort
SELECT - + col2 - col1 AS col2 FROM tab0 AS cor0
----
-119
-173
-98

query I rowsort
SELECT + + ( ( col1 ) ) * + 3 AS col1 FROM tab1 cor0
----
30
39
78

query I rowsort
SELECT DISTINCT + 33 * tab0.col0 FROM tab0
----
1155
2937
792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 + 9 col2 FROM tab0 AS cor0
----
10
42
91

query I rowsort
SELECT DISTINCT 39 AS col2 FROM tab1 AS cor0
----
39

query I rowsort
SELECT + + col2 * 10 AS col2 FROM tab1 AS cor0
----
540
570
960

query I rowsort
SELECT ALL + tab2.col2 FROM tab2, tab1, tab1 cor0
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT col2 + 57 AS col1 FROM tab1 AS cor0
----
111
114
153

query I rowsort
SELECT + - 95 + + 13 * col1 FROM tab0 AS cor0
----
1023
1088
1166

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4541
SELECT + - CAST( - ( - col2 ) AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-4541
SELECT + - CAST ( - ( - col2 ) AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT - + col1 + + col2 * - col1 AS col1 FROM tab1 AS cor0
----
-1261
-1430
-580

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 84 + cor0.col1 col1 FROM tab1, tab0 cor0
----
9 values hashing to c1ffda6ca9c620c9836edc45e92a9bf1

query I rowsort
SELECT ALL 52 AS col2 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 76100d10f51995d20efdeb657e444d3c

query I rowsort
SELECT ALL 73 * 50 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to a74823453bf47c36c8ea13b76897f759

onlyif mysql # use DIV operator for integer division
query I rowsort label-4546
SELECT ALL - - col0 + cor0.col1 DIV col1 AS col1 FROM tab1 AS cor0
----
4
65
81

skipif mysql # not compatible
query I rowsort label-4546
SELECT ALL - - col0 + cor0.col1 / col1 AS col1 FROM tab1 AS cor0
----
4
65
81

query I rowsort
SELECT - - cor1.col1 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4548
SELECT - col1 * col1 + + CAST( col0 AS SIGNED ) * - col2 FROM tab1
----
-3748
-7849
-838

skipif mysql # not compatible
query I rowsort label-4548
SELECT - col1 * col1 + + CAST ( col0 AS INTEGER ) * - col2 FROM tab1
----
-3748
-7849
-838

query I rowsort
SELECT ALL + 25 + - cor1.col2 AS col2 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to a564a9a11be5d1c1f3fddfc707b6a273

query I rowsort
SELECT - + 30 + - col2 FROM tab1 AS cor0
----
-126
-84
-87

query I rowsort
SELECT - - col1 - + 70 AS col1 FROM tab2 AS cor0
----
-11
-39
-53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 73 col2 FROM tab2, tab1 cor0, tab1 AS cor1
----
73

onlyif mysql # use DIV operator for integer division
query I rowsort label-4553
SELECT - col0 DIV + 47 + + col1 * - col1 * - col2 AS col2 FROM tab1
----
16223
36504
5699

skipif mysql # not compatible
query I rowsort label-4553
SELECT - col0 / + 47 + + col1 * - col1 * - col2 AS col2 FROM tab1
----
16223
36504
5699

query I rowsort
SELECT + col1 - - col2 AS col2 FROM tab0 AS cor0
----
119
173
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-4555
SELECT - + col2 + col1 DIV - cor0.col1 FROM tab2 AS cor0
----
-27
-28
-39

skipif mysql # not compatible
query I rowsort label-4555
SELECT - + col2 + col1 / - cor0.col1 FROM tab2 AS cor0
----
-27
-28
-39

query I rowsort
SELECT DISTINCT + cor0.col0 + ( - 12 ) * col0 AS col1 FROM tab2 AS cor0
----
-77
-858
-869

query I rowsort
SELECT DISTINCT - - col1 * + col0 * + col2 AS col0 FROM tab0 AS cor0
----
3395
664118
68112

query I rowsort
SELECT ALL - col0 + ( + col2 ) * col0 AS col0 FROM tab2 AS cor0
----
182
1950
2923

query I rowsort
SELECT + ( - 3 ) FROM tab2 AS cor0
----
-3
-3
-3

query I rowsort
SELECT + - 38 FROM tab1 cor0
----
-38
-38
-38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col2 + - col1 ) * - ( col1 + + tab1.col2 ) * + col0 col0 FROM tab1
----
-201536
-6720
-723760

query I rowsort
SELECT + 30 + - 17 FROM tab2
----
13
13
13

query I rowsort
SELECT ALL + cor0.col0 FROM tab1, tab0 cor0, tab2 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

skipif mysql # not compatible
query I rowsort
SELECT CAST ( col2 AS REAL ) + - col1 AS col0 FROM tab1 cor0
----
28
47
83

query I rowsort
SELECT + cor1.col2 * - 17 - cor1.col1 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 92211b9a742fc8a1023475e66bd296f8

query I rowsort
SELECT DISTINCT - cor0.col2 + - col1 * - cor0.col1 AS col1 FROM tab1 AS cor0
----
43
622
73

query I rowsort
SELECT ALL - - ( - cor0.col0 ) * - 75 * + 37 - + col1 AS col1 FROM tab1 AS cor0
----
177590
221987
8299

query I rowsort
SELECT ALL col2 * col0 + - ( + col1 ) - - col1 AS col2 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT DISTINCT + 68 * cor0.col1 FROM tab0 AS cor0
----
5848
6188
6596

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 * - cor0.col1 * - 17 col0 FROM tab0 AS cor0
----
-126854
-1649
-48246

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col0 * - col1 col2 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT + col1 + + cor0.col2 + col2 FROM tab1 cor0
----
124
134
205

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - cor1.col2 ) col2 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 44fdcd7cd603352d4d127811d164cc1e

query I rowsort
SELECT ALL + + 64 + col1 AS col1 FROM tab1 AS cor0
----
74
77
90

onlyif mysql # use DIV operator for integer division
query I rowsort label-4575
SELECT ALL + - col2 DIV col1 + CAST( col2 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-4575
SELECT ALL + - col2 / col1 + CAST ( col2 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT DISTINCT + col1 - + col2 AS col2 FROM tab0 AS cor0
----
53
9
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + col1 * cor0.col0 col1 FROM tab1 AS cor0
----
1136
132
697

query I rowsort
SELECT + ( col2 ) + col2 * col1 AS col1 FROM tab0 AS cor0
----
2871
7544
98

query I rowsort
SELECT DISTINCT - - 58 * - col2 + ( + col1 * col2 ) FROM tab1 AS cor0
----
-1728
-2736
-4320

onlyif mysql # use DIV operator for integer division
query I rowsort label-4580
SELECT DISTINCT col2 * col2 - + col0 DIV 98 AS col2 FROM tab0 cor0
----
1
1089
6724

skipif mysql # not compatible
query I rowsort label-4580
SELECT DISTINCT col2 * col2 - + col0 / 98 AS col2 FROM tab0 cor0
----
1
1089
6724

query I rowsort
SELECT DISTINCT - 67 * tab2.col1 FROM tab2
----
-1139
-2077
-3953

query I rowsort
SELECT 86 - - col2 AS col1 FROM tab1
----
140
143
182

onlyif mysql # use DIV operator for integer division
query I rowsort label-4583
SELECT DISTINCT - cor0.col0 DIV col1 AS col0 FROM tab1 AS cor0
----
-6
0

skipif mysql # not compatible
query I rowsort label-4583
SELECT DISTINCT - cor0.col0 / col1 AS col0 FROM tab1 AS cor0
----
-6
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * 35 * 9 col1 FROM tab1 AS cor0
----
17010
17955
30240

query I rowsort
SELECT ALL + col1 + + ( 70 ) FROM tab1 AS cor0
----
80
83
96

query I rowsort
SELECT DISTINCT + + cor0.col0 * - col2 - - 73 AS col2 FROM tab2 AS cor0
----
-116
-1955
-2929

query I rowsort
SELECT - col2 * 65 FROM tab1 AS cor0
----
-3510
-3705
-6240

query I rowsort
SELECT cor0.col2 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4589
SELECT + CAST( NULL AS SIGNED ) + col2 / col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4589
SELECT + CAST ( NULL AS INTEGER ) + col2 / col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col0 + cor0.col2 * + col1 FROM tab2 AS cor0
----
1456
567
830

query I rowsort
SELECT ( col1 ) * - col2 + 80 + - col2 * - col0 FROM tab0 AS cor0
----
-1966
-84
18

query I rowsort
SELECT ALL + 34 * - col2 + + col2 AS col2 FROM tab0 AS cor0
----
-1089
-2706
-33

onlyif mysql # use DIV operator for integer division
query I rowsort label-4593
SELECT - cor0.col2 + + 8 DIV - col1 AS col1 FROM tab1 AS cor0
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-4593
SELECT - cor0.col2 + + 8 / - col1 AS col1 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT ALL + 42 * col2 FROM tab0 AS cor0
----
1386
3444
42

query I rowsort
SELECT + cor0.col2 * 6 FROM tab2 AS cor0
----
156
162
228

query I rowsort
SELECT DISTINCT - col1 * 85 AS col1 FROM tab0 cor0
----
-7310
-7735
-8245

query I rowsort
SELECT ( col2 ) * + col2 * - col0 + - col2 * col0 FROM tab1 cor0
----
-211584
-744960
-8910

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4598
SELECT ALL + CAST( NULL AS SIGNED ) * - col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4598
SELECT ALL + CAST ( NULL AS INTEGER ) * - col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 + cor0.col2 * col1 AS col2 FROM tab1 AS cor0
----
1344
1458
627

onlyif mysql # use DIV operator for integer division
query I rowsort label-4600
SELECT ALL - ( col2 ) DIV - col1 FROM tab2 AS cor0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-4600
SELECT ALL - ( col2 ) / - col1 FROM tab2 AS cor0
----
0
0
2

query I rowsort
SELECT ALL + col1 + + col1 - - col0 AS col2 FROM tab0
----
196
229
271

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4602
SELECT ALL CAST( + col1 AS SIGNED ) + + tab0.col0 FROM tab0
----
110
132
180

skipif mysql # not compatible
query I rowsort label-4602
SELECT ALL CAST ( + col1 AS INTEGER ) + + tab0.col0 FROM tab0
----
110
132
180

query I rowsort
SELECT ALL + ( col1 ) + col1 * col2 AS col1 FROM tab0
----
194
2924
7553

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4604
SELECT ALL CAST( NULL AS SIGNED ) + + 79 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4604
SELECT ALL CAST ( NULL AS INTEGER ) + + 79 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - - col2 * 24 AS col0 FROM tab2 AS cor0
----
624
648
912

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4606
SELECT ALL CAST( NULL AS SIGNED ) * col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4606
SELECT ALL CAST ( NULL AS INTEGER ) * col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - ( col0 ) + + col1 * col0 FROM tab2 AS cor0
----
1264
210
4524

query I rowsort
SELECT DISTINCT 36 * col2 FROM tab0 cor0
----
1188
2952
36

query I rowsort
SELECT 67 + col0 * + col2 * col0 + 31 FROM tab1 AS cor0
----
233570
584
614498

query I rowsort
SELECT + col2 + 37 FROM tab2 cor0
----
63
64
75

query I rowsort
SELECT - - col1 * - col2 + - 36 * col0 - ( ( col1 ) ) FROM tab1 cor0
----
-1538
-2884
-4141

onlyif mysql # use DIV operator for integer division
query I rowsort label-4612
SELECT - - col2 * col1 + + ( + col2 ) * + 6 - col1 DIV - col2 FROM tab1 AS cor0
----
1728
1824
912

skipif mysql # not compatible
query I rowsort label-4612
SELECT - - col2 * col1 + + ( + col2 ) * + 6 - col1 / - col2 FROM tab1 AS cor0
----
1728
1824
912

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4613
SELECT + - col2 - + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4613
SELECT + - col2 - + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4614
SELECT ALL col2 * CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4614
SELECT ALL col2 * CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - col2 + ( col0 ) * - col2 AS col1 FROM tab1 AS cor0
----
-216
-3705
-7776

query I rowsort
SELECT + 65 AS col1 FROM tab2
----
65
65
65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 55 col1 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 832128adb1ddc65c3105e29cc2c8b3a3

query I rowsort
SELECT ALL col1 * + tab2.col2 * + 89 FROM tab2
----
136526
57494
74493

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4619
SELECT + CAST( NULL AS SIGNED ) FROM tab2, tab0 AS cor0, tab1, tab0 cor1
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

skipif mysql # not compatible
query I rowsort label-4619
SELECT + CAST ( NULL AS INTEGER ) FROM tab2, tab0 AS cor0, tab1, tab0 cor1
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

query I rowsort
SELECT + + col2 * - cor0.col0 + + col2 FROM tab0 AS cor0
----
-34
-7216
-759

query I rowsort
SELECT DISTINCT - + cor0.col1 * col0 AS col1 FROM tab2 cor0
----
-1343
-217
-4602

query I rowsort
SELECT DISTINCT - col1 * cor0.col1 + + col0 AS col0 FROM tab0 cor0
----
-7372
-8192
-9374

query I rowsort
SELECT - 75 AS col1 FROM tab0 cor0 CROSS JOIN tab2, tab0 AS cor1, tab1 AS cor2
----
81 values hashing to a0b2f2fd1ab7466175d5b39a8fa7be73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + + 21 col0 FROM tab2 AS cor0
----
38
52
80

query I rowsort
SELECT DISTINCT col1 + 24 * col2 FROM tab0 cor0
----
121
2059
878

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4626
SELECT + cor0.col0 * CAST( col0 + col0 AS SIGNED ) * col2 AS col1 FROM tab1 AS cor0
----
1228800
466944
972

skipif mysql # not compatible
query I rowsort label-4626
SELECT + cor0.col0 * CAST ( col0 + col0 AS INTEGER ) * col2 AS col1 FROM tab1 AS cor0
----
1228800
466944
972

query I rowsort
SELECT tab0.col0 + + 70 AS col2 FROM tab0
----
105
159
94

query I rowsort
SELECT DISTINCT - + cor0.col1 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-10
-13
-26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col0 + - col2 * - col2 * - ( 66 * col2 ) col0 FROM tab1 AS cor0
----
-10392621
-12222674
-58392496

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4630
SELECT DISTINCT - + CAST( col0 AS SIGNED ) + + col1 * - col1 FROM tab2 AS cor0
----
-3559
-368
-968

skipif mysql # not compatible
query I rowsort label-4630
SELECT DISTINCT - + CAST ( col0 AS INTEGER ) + + col1 * - col1 FROM tab2 AS cor0
----
-3559
-368
-968

query I rowsort
SELECT ALL col1 + - col2 + col2 * ( - col0 ) AS col2 FROM tab2 AS cor0
----
-185
-1995
-3023

query I rowsort
SELECT DISTINCT + ( ( col0 ) ) + 82 * col0 * - col2 FROM tab1 AS cor0
----
-13281
-299072
-629680

query I rowsort
SELECT DISTINCT 98 * col2 - + col1 AS col1 FROM tab1 AS cor0
----
5266
5576
9395

query I rowsort
SELECT ALL - ( col1 ) * + col2 FROM tab1 cor0
----
-1248
-1404
-570

query I rowsort
SELECT ALL + 53 * cor0.col0 + col1 * 97 + + col0 AS col1 FROM tab2 AS cor0
----
3385
5915
9935

onlyif mysql # use DIV operator for integer division
query I rowsort label-4636
SELECT DISTINCT - col2 + col1 DIV - ( col2 * cor0.col1 ) AS col2 FROM tab0 AS cor0
----
-2
-33
-82

skipif mysql # not compatible
query I rowsort label-4636
SELECT DISTINCT - col2 + col1 / - ( col2 * cor0.col1 ) AS col2 FROM tab0 AS cor0
----
-2
-33
-82

query I rowsort
SELECT DISTINCT + + col0 * col2 AS col2 FROM tab2 cor0
----
189
2028
3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-4638
SELECT ALL col2 + + col2 DIV 60 AS col0 FROM tab0 AS cor0
----
1
33
83

skipif mysql # not compatible
query I rowsort label-4638
SELECT ALL col2 + + col2 / 60 AS col0 FROM tab0 AS cor0
----
1
33
83

query I rowsort
SELECT ALL - 19 AS col1 FROM tab0, tab0 cor0, tab0 AS cor1
----
27 values hashing to 0fbbff28a7b63c37b01cf369f9325662

query I rowsort
SELECT DISTINCT + cor0.col0 * + col1 AS col0 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT ALL + - cor0.col2 * + col0 + + col1 * + col2 AS col1 FROM tab2 AS cor0
----
-2356
-494
648

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4642
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col0 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-4642
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
NULL

query I rowsort
SELECT ALL 63 + - col2 FROM tab1 cor0
----
-33
6
9

query I rowsort
SELECT ALL col2 + + col2 + + 51 FROM tab2 AS cor0
----
103
105
127

onlyif mysql # use DIV operator for integer division
query I rowsort label-4645
SELECT DISTINCT - + col1 DIV cor0.col0 + 67 AS col0 FROM tab1 AS cor0
----
59
67

skipif mysql # not compatible
query I rowsort label-4645
SELECT DISTINCT - + col1 / cor0.col0 + 67 AS col0 FROM tab1 AS cor0
----
59
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 48 col0 FROM tab1 cor0
----
48
48
48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - cor0.col0 col2 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT + 97 AS col2 FROM tab0, tab0 cor0
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - col2 * + col2 col1 FROM tab0 cor0
----
-611884
-93654
-97

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1 AS cor0, tab1 cor1, tab1, tab1 AS cor2
----
3645 values hashing to 0a3bf4d9642f43f11aad64de0d046e6b

query I rowsort
SELECT col1 * 72 * - col1 AS col1 FROM tab2 AS cor0
----
-20808
-250632
-69192

query I rowsort
SELECT + col0 + + 51 * - col0 FROM tab0 AS cor0
----
-1200
-1750
-4450

onlyif mysql # use DIV operator for integer division
query I rowsort label-4653
SELECT - cor0.col1 + 35 DIV + col1 FROM tab0 AS cor0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-4653
SELECT - cor0.col1 + 35 / + col1 FROM tab0 AS cor0
----
-86
-91
-97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4654
SELECT ALL + - CAST( NULL AS SIGNED ) * col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4654
SELECT ALL + - CAST ( NULL AS INTEGER ) * col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - col2 * cor0.col0 * col2 + - col0 + 90 AS col0 FROM tab2 AS cor0
----
-114065
-5020
-52716

query I rowsort
SELECT 1 * - ( col2 * 61 ) FROM tab0 cor0
----
-2013
-5002
-61

query I rowsort
SELECT col2 * ( + cor0.col2 ) + + col2 FROM tab2 AS cor0
----
1482
702
756

query I rowsort
SELECT - col1 * - cor0.col2 * 55 + col1 * col0 + + col2 * col0 AS col0 FROM tab0 AS cor0
----
158946
425807
8765

onlyif mysql # use DIV operator for integer division
query I rowsort label-4659
SELECT + 60 + + tab1.col0 DIV + col2 FROM tab1
----
60
60
61

skipif mysql # not compatible
query I rowsort label-4659
SELECT + 60 + + tab1.col0 / + col2 FROM tab1
----
60
60
61

query I rowsort
SELECT ( - cor0.col0 ) + + 23 FROM tab1, tab0 AS cor0
----
9 values hashing to 1ef3ceb280f162cb3bf884358eb2c607

query I rowsort
SELECT - col1 * col0 + - ( - col0 ) FROM tab0 AS cor0
----
-2040
-3360
-8010

onlyif mysql # use DIV operator for integer division
query I rowsort label-4662
SELECT 40 DIV + col2 + col2 AS col1 FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-4662
SELECT 40 / + col2 + col2 AS col1 FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort
SELECT ALL + CAST ( - col1 AS REAL ) * + col2 AS col2 FROM tab2
----
-1534
-646
-837

query I rowsort
SELECT DISTINCT 66 FROM tab2, tab1 AS cor0, tab1 AS cor1, tab2 AS cor2
----
66

query I rowsort
SELECT ALL - cor0.col1 * col1 + cor0.col2 * cor0.col1 AS col0 FROM tab2 AS cor0
----
-124
-1947
357

query I rowsort
SELECT ALL - 35 + - cor0.col1 AS col1 FROM tab0 AS cor0
----
-121
-126
-132

query I rowsort
SELECT ALL - 18 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 2dbe09d9295cfd52d854fefabf2cec4e

query I rowsort
SELECT col2 + ( - col0 ) FROM tab1
----
-7
16
51

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4669
SELECT - CAST( NULL AS SIGNED ) - tab1.col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4669
SELECT - CAST ( NULL AS INTEGER ) - tab1.col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4670
SELECT DISTINCT 95 DIV + 59 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-4670
SELECT DISTINCT 95 / + 59 FROM tab1
----
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-4671
SELECT + col0 DIV 32 FROM tab2 AS cor0
----
0
2
2

skipif mysql # not compatible
query I rowsort label-4671
SELECT + col0 / 32 FROM tab2 AS cor0
----
0
2
2

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4672
SELECT - + CAST( - col2 AS SIGNED ) * col2 FROM tab1 AS cor0
----
2916
3249
9216

skipif mysql # not compatible
query I rowsort label-4672
SELECT - + CAST ( - col2 AS INTEGER ) * col2 FROM tab1 AS cor0
----
2916
3249
9216

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 - - col0 * col2 col0 FROM tab2 AS cor0
----
158
1969
2985

query I rowsort
SELECT - + cor0.col0 + 3 AS col1 FROM tab0 AS cor0
----
-21
-32
-86

query I rowsort
SELECT - col1 * + 52 + col2 AS col1 FROM tab1 AS cor0
----
-1298
-463
-580

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col0 col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63

query I rowsort
SELECT - col1 + 93 FROM tab2 AS cor0
----
34
62
76

query I rowsort
SELECT cor0.col0 + 76 AS col0 FROM tab2 cor0
----
154
155
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-4679
SELECT ALL - + col0 + col1 * + col2 DIV col2 FROM tab1 cor0
----
-54
-67
23

skipif mysql # not compatible
query I rowsort label-4679
SELECT ALL - + col0 + col1 * + col2 / col2 FROM tab1 cor0
----
-54
-67
23

onlyif mysql # use DIV operator for integer division
query I rowsort label-4680
SELECT + col1 DIV 30 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4680
SELECT + col1 / 30 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - col1 + ( 85 ) + - col0 FROM tab2 AS cor0
----
-11
-52
47

query I rowsort
SELECT DISTINCT - col0 * 16 AS col2 FROM tab2 AS cor0
----
-112
-1248
-1264

query I rowsort
SELECT ALL - - col1 + + col0 AS col0 FROM tab2 AS cor0
----
137
38
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-4684
SELECT + - col0 DIV + 35 FROM tab1 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-4684
SELECT + - col0 / + 35 FROM tab1 AS cor0
----
-1
-2
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4685
SELECT - col1 DIV - tab0.col0 + + 11 + + col0 * - 81 FROM tab0
----
-1930
-2822
-7197

skipif mysql # not compatible
query I rowsort label-4685
SELECT - col1 / - tab0.col0 + + 11 + + col0 * - 81 FROM tab0
----
-1930
-2822
-7197

query I rowsort
SELECT tab1.col1 + + ( col0 + - col2 ) FROM tab1
----
-25
-3
17

query I rowsort
SELECT + - col1 * + 58 AS col0 FROM tab2 AS cor0
----
-1798
-3422
-986

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 col2 - - tab0.col2 AS col2 FROM tab0
----
164
2
66

query I rowsort
SELECT DISTINCT + col0 + + 99 FROM tab2
----
106
177
178

onlyif mysql # use DIV operator for integer division
query I rowsort label-4691
SELECT col2 DIV 72 + - 76 * col2 AS col2 FROM tab0
----
-2508
-6231
-76

skipif mysql # not compatible
query I rowsort label-4691
SELECT col2 / 72 + - 76 * col2 AS col2 FROM tab0
----
-2508
-6231
-76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + col0 * col0 col0 FROM tab0
----
1322
662
8012

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * - 83 + col1 col0 FROM tab0 AS cor0
----
-7052
-7462
-7954

query I rowsort
SELECT + col0 + - ( col0 ) * - col1 FROM tab1 AS cor0
----
1120
704
81

query I rowsort
SELECT DISTINCT ( cor0.col1 ) AS col2 FROM tab0, tab2 AS cor0
----
17
31
59

query I rowsort
SELECT DISTINCT + col2 * + ( + 65 ) AS col1 FROM tab1 cor0
----
3510
3705
6240

query I rowsort
SELECT + 70 * col0 + col2 AS col1 FROM tab2 AS cor0
----
517
5486
5568

onlyif mysql # use DIV operator for integer division
query I rowsort label-4698
SELECT ALL - ( + cor0.col1 ) * col1 + + CAST( + col1 AS SIGNED ) * col1 + + col1 DIV + col2 AS col2 FROM tab0 AS cor0
----
1
2
97

skipif mysql # not compatible
query I rowsort label-4698
SELECT ALL - ( + cor0.col1 ) * col1 + + CAST ( + col1 AS INTEGER ) * col1 + + col1 / + col2 AS col2 FROM tab0 AS cor0
----
1
2
97

query I rowsort
SELECT ALL - ( col1 ) * - col2 + 1 FROM tab0 AS cor0
----
2839
7463
98

query I rowsort
SELECT ALL - - cor0.col0 + 68 FROM tab2 AS cor0
----
146
147
75

query I rowsort
SELECT ( cor0.col1 ) * - col2 + - ( + col0 ) FROM tab1 AS cor0
----
-1328
-1407
-634

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( 35 ) * + col0 col1 FROM tab2 AS cor0
----
245
2730
2765

query I rowsort
SELECT DISTINCT + 3 - 7 AS col2 FROM tab1 AS cor0
----
-4

query I rowsort
SELECT 13 AS col1 FROM tab2 AS cor0
----
13
13
13

query I rowsort
SELECT DISTINCT + + col2 * 32 + col2 + - 63 * + col1 AS col0 FROM tab1 AS cor0
----
1251
144
2349

query I rowsort
SELECT DISTINCT - 7 * + col0 AS col2 FROM tab2 AS cor0
----
-49
-546
-553

query I rowsort
SELECT ALL + col0 * - col1 - col1 FROM tab2 AS cor0
----
-1360
-248
-4661

query I rowsort
SELECT col1 * - 36 FROM tab1 AS cor0
----
-360
-468
-936

query I rowsort
SELECT ALL col2 + 77 * + 28 AS col1 FROM tab1
----
2210
2213
2252

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4710
SELECT DISTINCT col0 * + col0 + CAST( NULL AS SIGNED ) AS col0 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4710
SELECT DISTINCT col0 * + col0 + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * + cor0.col1 + cor0.col1 col0 FROM tab2 AS cor0
----
-1475
-629
-806

query I rowsort
SELECT ALL - 64 + + col0 AS col2 FROM tab2 AS cor0
----
-57
14
15

query I rowsort
SELECT DISTINCT + 30 AS col1 FROM tab1
----
30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - cor0.col2 - 67 * + cor0.col2 col1 FROM tab0 AS cor0
----
-12956
-164
-5049

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 + col1 * - cor0.col2 col0 FROM tab1 AS cor0
----
-1168
-1401
-506

query I rowsort
SELECT DISTINCT - 16 AS col0 FROM tab2 AS cor0
----
-16

query I rowsort
SELECT col2 + col2 - + col1 AS col1 FROM tab1
----
104
179
82

query I rowsort
SELECT col0 + 8 FROM tab0 AS cor0
----
32
43
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4719
SELECT + ( col1 ) / CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4719
SELECT + ( col1 ) / CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4720
SELECT - cor0.col1 DIV cor0.col2 - - 1 * 81 FROM tab1 AS cor0
----
81
81
81

skipif mysql # not compatible
query I rowsort label-4720
SELECT - cor0.col1 / cor0.col2 - - 1 * 81 FROM tab1 AS cor0
----
81
81
81

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4721
SELECT + - CAST( NULL AS SIGNED ) * col2 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4721
SELECT + - CAST ( NULL AS INTEGER ) * col2 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 72 * + ( col1 ) + 10 FROM tab1 AS cor0
----
1882
730
946

query I rowsort
SELECT DISTINCT - + col0 * 46 + col1 AS col1 FROM tab0 AS cor0
----
-1018
-1513
-4003

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 * - col1 * col0 col1 FROM tab2 AS cor0
----
-106097
-1519
-358956

query I rowsort
SELECT ( + col2 + - tab2.col0 ) FROM tab2
----
-41
-52
20

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4726
SELECT ALL + + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4726
SELECT ALL + + CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + 18 AS col2 FROM tab1 AS cor0
----
18
18
18

query I rowsort
SELECT 54 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to d2364c4ffc09ac2cf1f6fa4d767d8b09

query I rowsort
SELECT + cor0.col1 * col0 + + 97 * - cor0.col2 FROM tab2 AS cor0
----
-2343
-2402
2080

query I rowsort
SELECT - col2 + col1 + col2 * + col2 AS col1 FROM tab1 AS cor0
----
2888
3202
9133

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4731
SELECT col2 * + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4731
SELECT col2 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4732
SELECT DISTINCT col2 * - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4732
SELECT DISTINCT col2 * - CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL col1 * ( - col2 ) FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT + cor0.col0 + 98 + - 8 * + col1 FROM tab1 AS cor0
----
-107
74
82

query I rowsort
SELECT DISTINCT col1 * col0 + + col1 * + 37 AS col0 FROM tab1
----
1010
1040
1521

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab1.col1 + col0 col2 FROM tab1
----
29
74
93

query I rowsort
SELECT tab2.col1 FROM tab1, tab0, tab2 AS cor0, tab2
----
81 values hashing to a5b6acb471910ea4ad7f31cae3b818f7

onlyif mysql # use DIV operator for integer division
query I rowsort label-4738
SELECT col1 * + 31 DIV + 31 + + col0 FROM tab0
----
110
132
180

skipif mysql # not compatible
query I rowsort label-4738
SELECT col1 * + 31 / + 31 + + col0 FROM tab0
----
110
132
180

query I rowsort
SELECT DISTINCT - - col2 * + 19 + + cor0.col2 AS col2 FROM tab2 AS cor0
----
520
540
760

query I rowsort
SELECT ALL + - cor0.col1 - + col1 AS col2 FROM tab0 cor0
----
-172
-182
-194

onlyif mysql # use DIV operator for integer division
query I rowsort label-4741
SELECT ALL - col2 DIV - col2 + - 84 FROM tab1 AS cor0
----
-83
-83
-83

skipif mysql # not compatible
query I rowsort label-4741
SELECT ALL - col2 / - col2 + - 84 FROM tab1 AS cor0
----
-83
-83
-83

query I rowsort
SELECT ALL - - col2 * - col0 - - ( col2 ) AS col1 FROM tab1 AS cor0
----
-108
-3591
-7584

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4743
SELECT - col0 + CAST( NULL AS DECIMAL ) * - ( - col1 ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4743
SELECT - col0 + CAST ( NULL AS REAL ) * - ( - col1 ) AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 + col1 + col2 * col2 AS col0 FROM tab0 cor0
----
1261
195
6906

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4745
SELECT col0 * - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4745
SELECT col0 * - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4746
SELECT 5 DIV 92 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4746
SELECT 5 / 92 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT 20 AS col2 FROM tab1 AS cor0
----
20
20
20

query I rowsort
SELECT 60 * 14 + col2 * col2 + + col0 AS col0 FROM tab0 AS cor0
----
1953
7653
876

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4749
SELECT tab0.col2 * CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4749
SELECT tab0.col2 * CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col1 * 39 * 1 FROM tab0
----
3354
3549
3783

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab0.col1 * ( ( - col2 ) ) col0 FROM tab0
----
2838
7462
97

query I rowsort
SELECT - + ( + cor0.col2 ) * col2 + - 66 * 71 FROM tab1 AS cor0
----
-13902
-7602
-7935

query I rowsort
SELECT DISTINCT 33 AS col1 FROM tab2, tab2 AS cor0 CROSS JOIN tab0
----
33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * 6 + - cor0.col2 * ( col0 ) * + col2 col2 FROM tab2 AS cor0
----
-113974
-4917
-52374

query I rowsort
SELECT - - 30 * + col0 * col0 AS col2 FROM tab2 AS cor0
----
1470
182520
187230

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4756
SELECT ALL + + col2 + + col2 * CAST( col1 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
1560
684
864

skipif mysql # not compatible
query I rowsort label-4756
SELECT ALL + + col2 + + col2 * CAST ( col1 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
1560
684
864

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + col1 * - 1 * + col1 + + 73 col0 FROM tab0 AS cor0
----
-7299
-8119
-9301

onlyif mysql # use DIV operator for integer division
query I rowsort label-4758
SELECT - - col2 + col2 DIV 64 AS col2 FROM tab0 AS cor0
----
1
33
83

skipif mysql # not compatible
query I rowsort label-4758
SELECT - - col2 + col2 / 64 AS col2 FROM tab0 AS cor0
----
1
33
83

query I rowsort
SELECT DISTINCT + 46 + + col2 * cor0.col1 FROM tab2 AS cor0
----
1580
692
883

query I rowsort
SELECT DISTINCT 73 * + cor0.col2 FROM tab1 AS cor0
----
3942
4161
7008

query I rowsort
SELECT - 27 + cor0.col1 AS col2 FROM tab1 cor0
----
-1
-14
-17

query I rowsort
SELECT ALL - 24 + col2 FROM tab1 AS cor0
----
30
33
72

query I rowsort
SELECT + - cor0.col0 * - col2 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT ALL col2 + - col0 + ( + col1 ) FROM tab2 AS cor0
----
-24
51
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-4765
SELECT 81 DIV col1 AS col2 FROM tab2
----
1
2
4

skipif mysql # not compatible
query I rowsort label-4765
SELECT 81 / col1 AS col2 FROM tab2
----
1
2
4

query I rowsort
SELECT col0 * + cor0.col2 * - ( 11 ) AS col2 FROM tab0 AS cor0
----
-385
-80278
-8712

query I rowsort
SELECT DISTINCT + - cor0.col0 + col2 AS col1 FROM tab2 AS cor0
----
-41
-52
20

query I rowsort
SELECT DISTINCT 54 * col0 + col2 * - ( col2 ) FROM tab2 AS cor0
----
-351
2822
3536

query I rowsort
SELECT col0 + + col0 * + col1 FROM tab1 AS cor0
----
1120
704
81

query I rowsort
SELECT DISTINCT 68 + + col0 FROM tab2 cor0
----
146
147
75

query I rowsort
SELECT ALL col2 * - cor0.col2 - 61 AS col2 FROM tab0 AS cor0
----
-1150
-62
-6785

query I rowsort
SELECT ALL ( - col2 ) * + col2 AS col2 FROM tab1
----
-2916
-3249
-9216

query I rowsort
SELECT col2 * + 48 + - 4 FROM tab1 AS cor0
----
2588
2732
4604

query I rowsort
SELECT DISTINCT - col1 - 4 FROM tab0 AS cor0
----
-101
-90
-95

query I rowsort
SELECT - col1 * ( - col1 ) + col2 FROM tab2 AS cor0
----
327
3507
988

query I rowsort
SELECT + - col1 + + 13 * col0 FROM tab2 AS cor0
----
1010
60
955

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4777
SELECT DISTINCT col0 + + CAST( - col2 * - col1 AS SIGNED ) + 49 FROM tab2 AS cor0
----
1661
774
893

skipif mysql # not compatible
query I rowsort label-4777
SELECT DISTINCT col0 + + CAST ( - col2 * - col1 AS INTEGER ) + 49 FROM tab2 AS cor0
----
1661
774
893

query I rowsort
SELECT - 38 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to e571541ae40cb0ddaca16e11f4359507

onlyif mysql # use DIV operator for integer division
query I rowsort label-4779
SELECT + col0 - + col2 DIV col0 FROM tab1
----
-15
64
79

skipif mysql # not compatible
query I rowsort label-4779
SELECT + col0 - + col2 / col0 FROM tab1
----
-15
64
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-4780
SELECT DISTINCT + - col1 * col0 DIV col1 FROM tab2 AS cor0
----
-7
-78
-79

skipif mysql # not compatible
query I rowsort label-4780
SELECT DISTINCT + - col1 * col0 / col1 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT DISTINCT + + col1 * - 67 AS col2 FROM tab0 AS cor0
----
-5762
-6097
-6499

onlyif mysql # use DIV operator for integer division
query I rowsort label-4782
SELECT + cor0.col0 DIV + 3 col1 FROM tab1 AS cor0
----
1
21
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4782
SELECT + cor0.col0 / + 3 col1 FROM tab1 AS cor0
----
1
21
26

query I rowsort
SELECT ( col0 ) + col1 AS col2 FROM tab2 AS cor0
----
137
38
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 98 col0 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to c758e8afbdfa6aae279045b0e9cbacc2

query I rowsort
SELECT ALL 76 - + col1 FROM tab1
----
50
63
66

onlyif mysql # use DIV operator for integer division
query I rowsort label-4786
SELECT ALL + tab0.col2 DIV + tab0.col0 + - col0 * 99 - col2 * - col0 AS col2 FROM tab0
----
-1513
-1583
-3430

skipif mysql # not compatible
query I rowsort label-4786
SELECT ALL + tab0.col2 / + tab0.col0 + - col0 * 99 - col2 * - col0 AS col2 FROM tab0
----
-1513
-1583
-3430

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 61 * tab1.col2 col0 FROM tab1
----
3294
3477
5856

query I rowsort
SELECT ( - 98 ) AS col1 FROM tab1
----
-98
-98
-98

query I rowsort
SELECT - col1 * - 27 FROM tab1 AS cor0
----
270
351
702

onlyif mysql # use DIV operator for integer division
query I rowsort label-4790
SELECT + cor0.col0 DIV - cor0.col1 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 0cf123df00ec8476d9e0a7b2d2f6001e

skipif mysql # not compatible
query I rowsort label-4790
SELECT + cor0.col0 / - cor0.col1 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 0cf123df00ec8476d9e0a7b2d2f6001e

query I rowsort
SELECT col0 * col2 - col1 AS col2 FROM tab0 AS cor0
----
-62
706
7207

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4792
SELECT + CAST( NULL AS SIGNED ) * - col2 * cor0.col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4792
SELECT + CAST ( NULL AS INTEGER ) * - col2 * cor0.col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 99 - + col2 FROM tab1
----
3
42
45

query I rowsort
SELECT DISTINCT - tab2.col0 * col0 + - col1 - + col1 FROM tab2
----
-111
-6202
-6275

query I rowsort
SELECT DISTINCT - - cor0.col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
3
64
80

query I rowsort
SELECT ( + cor0.col1 ) * + 81 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to a41cb13b9f16fe898ec644a492963a64

onlyif mysql # use DIV operator for integer division
query I rowsort label-4797
SELECT ALL col0 DIV - col0 col0 FROM tab0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4797
SELECT ALL col0 / - col0 col0 FROM tab0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 33 + - col1 col1 FROM tab2 cor0
----
-50
-64
-92

query I rowsort
SELECT ALL + col0 * col0 + 19 FROM tab2 AS cor0
----
6103
6260
68

query I rowsort
SELECT col1 + col1 * + col0 + col0 * col0 AS col1 FROM tab1
----
113
4746
7453

query I rowsort
SELECT DISTINCT + col0 * - col0 AS col0 FROM tab0 cor0
----
-1225
-576
-7921

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4802
SELECT col2 + - col1 + CAST( NULL AS SIGNED ) * + col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4802
SELECT col2 + - col1 + CAST ( NULL AS INTEGER ) * + col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col1 * + col2 col2 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT DISTINCT + col0 * + col0 * - col0 AS col2 FROM tab1 AS cor0
----
-262144
-27
-512000

onlyif mysql # use DIV operator for integer division
query I rowsort label-4805
SELECT ALL + ( - col2 ) DIV cor0.col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4805
SELECT ALL + ( - col2 ) / cor0.col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4806
SELECT + col1 * - CAST( 36 AS SIGNED ) + col1 * col0 FROM tab2
----
-899
2478
731

skipif mysql # not compatible
query I rowsort label-4806
SELECT + col1 * - CAST ( 36 AS INTEGER ) + col1 * col0 FROM tab2
----
-899
2478
731

query I rowsort
SELECT col2 - + 72 * col2 FROM tab2
----
-1846
-1917
-2698

query I rowsort
SELECT ALL - 9 FROM tab0, tab0 AS cor0
----
9 values hashing to caf28657beb43049740febe1fa9ded5a

query I rowsort
SELECT + col2 + col2 * col1 FROM tab2
----
1560
684
864

query I rowsort
SELECT + col2 * 82 + 44 AS col0 FROM tab0
----
126
2750
6768

query I rowsort
SELECT ALL cor0.col2 + + ( + col0 ) FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT ALL - col0 + col2 + - 97 FROM tab0 AS cor0
----
-104
-131
-88

query I rowsort
SELECT ALL 62 AS col2 FROM tab1, tab2 cor0
----
9 values hashing to 51dd2771d516ceb935483eded78a5fa0

query I rowsort
SELECT ( cor1.col0 ) FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

query I rowsort
SELECT DISTINCT col2 * + ( + 87 ) FROM tab1 AS cor0
----
4698
4959
8352

query I rowsort
SELECT DISTINCT + + col0 * - 81 * cor0.col1 FROM tab2 AS cor0
----
-108783
-17577
-372762

onlyif mysql # use DIV operator for integer division
query I rowsort label-4817
SELECT ALL + - col1 + 30 DIV col0 AS col0 FROM tab2 AS cor0
----
-17
-27
-59

skipif mysql # not compatible
query I rowsort label-4817
SELECT ALL + - col1 + 30 / col0 AS col0 FROM tab2 AS cor0
----
-17
-27
-59

query I rowsort
SELECT DISTINCT + + col2 + 93 FROM tab1 cor0
----
147
150
189

query I rowsort
SELECT ALL + + col0 + + col0 * - col1 AS col0 FROM tab0 AS cor0
----
-2040
-3360
-8010

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + - col1 col1 FROM tab2 cor0
----
-24
19
62

query I rowsort
SELECT - + 90 FROM tab0 cor0
----
-90
-90
-90

query I rowsort
SELECT ALL + cor0.col1 + 6 * col2 FROM tab0 AS cor0
----
103
284
583

query I rowsort
SELECT DISTINCT - + col1 * - ( - col0 ) + ( - col2 ) AS col0 FROM tab0 AS cor0
----
-2097
-3396
-8181

query I rowsort
SELECT DISTINCT tab1.col2 * ( - tab1.col2 ) AS col1 FROM tab1
----
-2916
-3249
-9216

query I rowsort
SELECT ALL + - col0 + cor0.col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + col2 * 63 FROM tab0 AS cor0
----
2079
5166
63

query I rowsort
SELECT ALL + col2 + col0 * + col0 AS col0 FROM tab1
----
4153
63
6496

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN - col2 AND ( NULL )
----

query I rowsort
SELECT + tab2.col1 * col1 + col0 * col0 FROM tab2
----
1010
6530
9565

query I rowsort
SELECT ALL col2 * - tab0.col1 + col0 FROM tab0
----
-2814
-62
-7373

query I rowsort
SELECT col2 AS col1 FROM tab1 WHERE NOT NULL > NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-4832
SELECT - col0 DIV + col2 AS col0 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4832
SELECT - col0 / + col2 AS col0 FROM tab1 AS cor0
----
-1
0
0

query I rowsort
SELECT DISTINCT + col0 * + col0 * col1 FROM tab0 AS cor0
----
118825
49536
720811

query I rowsort
SELECT ALL col0 AS col1 FROM tab1 AS cor0 WHERE NOT NULL = - col2
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL NOT IN ( col2 )
----

query I rowsort
SELECT DISTINCT cor0.col0 FROM tab0 AS cor0 WHERE NOT col1 NOT BETWEEN + col2 * + col2 * col2 AND ( NULL )
----

query I rowsort
SELECT DISTINCT cor0.col0 * cor0.col2 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT ALL col0 / + col0 FROM tab0 WHERE NULL >= ( NULL )
----

query I rowsort
SELECT + col1 + + col0 - col1 FROM tab1
----
3
64
80

query I rowsort
SELECT DISTINCT + col1 + - col2 * col2 FROM tab2
----
-1427
-617
-698

query I rowsort
SELECT DISTINCT col0 * - col2 * col1 + - col1 FROM tab2
----
-119711
-51051
-5890

query I rowsort
SELECT col2 + + col2 - - col1 FROM tab1
----
124
134
205

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * + tab2.col1 col0 FROM tab2
----
289
3481
961

query III rowsort
SELECT * FROM tab2 WHERE - col0 / - col0 NOT IN ( - col2 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

query I rowsort
SELECT ALL + col0 + col1 * - col1 FROM tab0
----
-7372
-8192
-9374

onlyif mysql # use DIV operator for integer division
query I rowsort label-4846
SELECT + - col1 DIV - col1 - col2 AS col0 FROM tab2 AS cor0
----
-25
-26
-37

skipif mysql # not compatible
query I rowsort label-4846
SELECT + - col1 / - col1 - col2 AS col0 FROM tab2 AS cor0
----
-25
-26
-37

query I rowsort
SELECT ALL + + col1 - + col0 * + col1 AS col1 FROM tab1 AS cor0
----
-1027
-52
-630

query I rowsort
SELECT DISTINCT - cor0.col0 * - col2 AS col1 FROM tab2 cor0
----
189
2028
3002

query I rowsort
SELECT + col2 + cor0.col2 * col2 FROM tab0 AS cor0
----
1122
2
6806

onlyif mysql # use DIV operator for integer division
query I rowsort label-4850
SELECT DISTINCT - col0 + - col0 DIV col0 FROM tab1 AS cor0
----
-4
-65
-81

skipif mysql # not compatible
query I rowsort label-4850
SELECT DISTINCT - col0 + - col0 / col0 FROM tab1 AS cor0
----
-4
-65
-81

query I rowsort
SELECT ALL col0 * tab0.col2 - tab0.col2 * - col2 AS col2 FROM tab0
----
14022
1881
36

query I rowsort
SELECT - tab1.col2 + col2 - - tab1.col0 FROM tab1
----
3
64
80

query I rowsort
SELECT - cor0.col1 + + col0 - - cor0.col0 FROM tab2 AS cor0
----
-17
141
97

query I rowsort
SELECT col2 + + col0 * + col0 AS col2 FROM tab2 AS cor0
----
6110
6279
76

query I rowsort
SELECT ALL col1 + - col2 - col1 * - col1 FROM tab1 AS cor0
----
53
648
86

query I rowsort
SELECT ALL - col0 + + col0 AS col1 FROM tab0 cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4857
SELECT ALL + col2 DIV cor0.col1 + col1 * col0 AS col2 FROM tab2 AS cor0
----
1345
217
4602

skipif mysql # not compatible
query I rowsort label-4857
SELECT ALL + col2 / cor0.col1 + col1 * col0 AS col2 FROM tab2 AS cor0
----
1345
217
4602

query I rowsort
SELECT col1 * col0 + col2 * - col1 AS col0 FROM tab2 AS cor0
----
-620
3068
697

query I rowsort
SELECT col1 + + col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) < NULL
----

query I rowsort
SELECT ALL + col1 * - col0 FROM tab0 WHERE NULL NOT IN ( - col0 )
----

query I rowsort
SELECT ALL col2 * col1 + + col0 AS col1 FROM tab2
----
1612
725
844

query I rowsort
SELECT DISTINCT col0 + + tab0.col2 AS col0 FROM tab0
----
171
36
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-4863
SELECT col1 DIV cor0.col1 + col2 + - col0 * 2 AS col0 FROM tab0 AS cor0
----
-14
-68
-95

skipif mysql # not compatible
query I rowsort label-4863
SELECT col1 / cor0.col1 + col2 + - col0 * 2 AS col0 FROM tab0 AS cor0
----
-14
-68
-95

query I rowsort
SELECT - - col0 * + ( col2 * + col1 ) FROM tab1 cor0
----
36480
4212
99840

query I rowsort
SELECT + + col1 * cor0.col1 AS col0 FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT - + col2 * - col0 + + col2 FROM tab1 AS cor0
----
216
3705
7776

query I rowsort
SELECT + - cor0.col2 + - 58 FROM tab0 AS cor0
----
-140
-59
-91

query I rowsort
SELECT - col1 + 16 * - cor0.col2 FROM tab1 AS cor0
----
-1549
-890
-922

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4869
SELECT col1 + - col2 + - CAST( + col0 AS SIGNED ) * col0 col0 FROM tab0
----
-1129
-523
-7912

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4869
SELECT col1 + - col2 + - CAST ( + col0 AS INTEGER ) * col0 col0 FROM tab0
----
-1129
-523
-7912

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 80 * + tab1.col2 col1 FROM tab1
----
4320
4560
7680

query I rowsort
SELECT + - ( - cor0.col1 ) AS col1 FROM tab0, tab1, tab2 cor0
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

query I rowsort
SELECT + + col1 + ( 17 ) * - col2 FROM tab0 cor0
----
-1303
-475
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4873
SELECT - cor0.col2 * CAST( + col1 AS SIGNED ) FROM tab1 AS cor0
----
-1248
-1404
-570

skipif mysql # not compatible
query I rowsort label-4873
SELECT - cor0.col2 * CAST ( + col1 AS INTEGER ) FROM tab1 AS cor0
----
-1248
-1404
-570

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4874
SELECT + col2 / - CAST( NULL AS SIGNED ) - - 55 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4874
SELECT + col2 / - CAST ( NULL AS INTEGER ) - - 55 FROM tab1 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL IN ( - col1 )
----

query I rowsort
SELECT ALL tab0.col1 + + col0 FROM tab0 WHERE NOT NULL < col0 * col2
----

query I rowsort
SELECT ALL - tab1.col1 AS col0 FROM tab1 WHERE ( NULL ) >= NULL
----

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4878
SELECT CAST( NULL AS SIGNED ) FROM tab1, tab2 cor0, tab1 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-4878
SELECT CAST ( NULL AS INTEGER ) FROM tab1, tab2 cor0, tab1 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT DISTINCT - col2 * tab1.col0 + tab1.col1 AS col1 FROM tab1
----
-136
-3638
-7667

query I rowsort
SELECT tab0.col0 + col2 AS col1 FROM tab0
----
171
36
57

query I rowsort
SELECT ALL + col0 + col0 / col2 - tab2.col1 FROM tab2 WHERE NULL < NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE col1 BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT - ( col2 * - ( ( + col2 ) ) ) AS col2 FROM tab1
----
2916
3249
9216

onlyif mysql # use DIV operator for integer division
query I rowsort label-4884
SELECT ALL - cor0.col1 DIV cor0.col1 + - col1 AS col2 FROM tab1 AS cor0
----
-11
-14
-27

skipif mysql # not compatible
query I rowsort label-4884
SELECT ALL - cor0.col1 / cor0.col1 + - col1 AS col2 FROM tab1 AS cor0
----
-11
-14
-27

query I rowsort
SELECT - + col2 + + col0 * + col2 FROM tab0 AS cor0
----
34
7216
759

query I rowsort
SELECT - col2 + - col1 + - col2 FROM tab1
----
-124
-134
-205

onlyif mysql # use DIV operator for integer division
query I rowsort label-4887
SELECT DISTINCT col1 DIV - col1 - col0 AS col1 FROM tab0
----
-25
-36
-90

skipif mysql # not compatible
query I rowsort label-4887
SELECT DISTINCT col1 / - col1 - col0 AS col1 FROM tab0
----
-25
-36
-90

query I rowsort
SELECT col0 * - col0 * col1 + - col2 AS col0 FROM tab1 AS cor0
----
-288
-41017
-83296

query I rowsort
SELECT ALL + col1 * + 5 - col2 FROM tab2 cor0
----
128
269
47

query I rowsort
SELECT DISTINCT + col0 * ( col0 * + cor0.col1 ) FROM tab1 AS cor0
----
234
40960
83200

query I rowsort
SELECT - + col1 * col1 + - col2 AS col0 FROM tab2 AS cor0
----
-327
-3507
-988

query I rowsort
SELECT - - col2 * + 16 - + col1 FROM tab2 AS cor0
----
357
401
591

onlyif mysql # use DIV operator for integer division
query I rowsort label-4893
SELECT + col2 * - col0 * col0 - col2 DIV + col1 AS col2 FROM tab2 AS cor0
----
-1323
-158184
-237160

skipif mysql # not compatible
query I rowsort label-4893
SELECT + col2 * - col0 * col0 - col2 / + col1 AS col2 FROM tab2 AS cor0
----
-1323
-158184
-237160

query I rowsort
SELECT col0 - 29 AS col0 FROM tab1 AS cor0
----
-26
35
51

query I rowsort
SELECT ALL - col2 * + col1 + col0 FROM tab1 AS cor0
----
-1168
-1401
-506

query I rowsort
SELECT DISTINCT + - ( + col1 ) + col2 FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT - ( cor0.col2 ) + col1 * + col1 AS col0 FROM tab0 AS cor0
----
7363
8199
9408

query I rowsort
SELECT + tab2.col1 * + tab2.col0 AS col2 FROM tab2
----
1343
217
4602

query I rowsort
SELECT - cor0.col2 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0, tab1 AS cor1
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6

query I rowsort
SELECT ALL - ( 64 ) FROM tab2 cor0
----
-64
-64
-64

query I rowsort
SELECT 46 AS col2 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 2f97924b57b73102233df7c9ce8ad602

query I rowsort
SELECT - 15 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 91b10a00c89b36b5bf0bed723e656ccc

query I rowsort
SELECT DISTINCT - 19 - + col2 FROM tab0 AS cor0
----
-101
-20
-52

query I rowsort
SELECT DISTINCT + 84 FROM tab2, tab0, tab2 AS cor0
----
84

query I rowsort
SELECT DISTINCT 39 * - col0 FROM tab2
----
-273
-3042
-3081

query I rowsort
SELECT ALL - col1 - - cor0.col2 FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT + - col1 * - 95 AS col0 FROM tab1 cor0
----
1235
2470
950

query I rowsort
SELECT DISTINCT - - cor0.col2 + - col1 AS col0 FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT DISTINCT tab0.col2 * + col0 AS col2 FROM tab0
----
35
7298
792

onlyif mysql # use DIV operator for integer division
query I rowsort label-4910
SELECT col2 DIV col1 - - 38 FROM tab1
----
40
43
45

skipif mysql # not compatible
query I rowsort label-4910
SELECT col2 / col1 - - 38 FROM tab1
----
40
43
45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + col0 * col0 col0 FROM tab0 cor0
----
1226
609
8003

query I rowsort
SELECT DISTINCT + col2 * - col1 * - tab2.col2 AS col1 FROM tab2
----
22599
24548
39884

query I rowsort
SELECT col2 * col2 + col0 * + col2 * tab1.col2 FROM tab1
----
11664
211185
746496

onlyif mysql # use DIV operator for integer division
query I rowsort label-4914
SELECT ALL + col1 DIV + col1 AS col2 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4914
SELECT ALL + col1 / + col1 AS col2 FROM tab2
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * - col0 col0 FROM tab1
----
162
3648
7680

query I rowsort
SELECT - - cor0.col0 * + col1 * - cor0.col1 AS col2 FROM tab1 AS cor0
----
-13520
-2028
-6400

query I rowsort
SELECT + col0 * - col0 * + col2 FROM tab0 AS cor0
----
-1225
-19008
-649522

query I rowsort
SELECT ALL - col2 * col1 * col2 AS col2 FROM tab1
----
-119808
-32490
-75816

onlyif mysql # use DIV operator for integer division
query I rowsort label-4919
SELECT col0 + + col2 DIV col2 FROM tab1
----
4
65
81

skipif mysql # not compatible
query I rowsort label-4919
SELECT col0 + + col2 / col2 FROM tab1
----
4
65
81

query I rowsort
SELECT DISTINCT - - col2 - col0 * + col2 AS col2 FROM tab1 cor0
----
-108
-3591
-7584

query I rowsort
SELECT + col2 + 63 FROM tab2
----
101
89
90

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4922
SELECT - CAST( col2 + col1 AS SIGNED ) FROM tab1
----
-109
-67
-80

skipif mysql # not compatible
query I rowsort label-4922
SELECT - CAST ( col2 + col1 AS INTEGER ) FROM tab1
----
-109
-67
-80

query I rowsort
SELECT ALL 81 AS col1 FROM tab2 AS cor0
----
81
81
81

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4924
SELECT ALL + CAST( + 30 AS SIGNED ) AS col1 FROM tab1
----
30
30
30

skipif mysql # not compatible
query I rowsort label-4924
SELECT ALL + CAST ( + 30 AS INTEGER ) AS col1 FROM tab1
----
30
30
30

onlyif mysql # use DIV operator for integer division
query I rowsort label-4925
SELECT + 30 + col1 * col2 DIV + col0 AS col2 FROM tab2
----
149
38
49

skipif mysql # not compatible
query I rowsort label-4925
SELECT + 30 + col1 * col2 / + col0 AS col2 FROM tab2
----
149
38
49

query I rowsort
SELECT DISTINCT tab2.col2 + - col1 * - col0 AS col1 FROM tab2
----
1381
244
4628

query I rowsort
SELECT DISTINCT + col2 + col2 * - tab0.col1 * + col1 FROM tab0
----
-244035
-678960
-9408

query I rowsort
SELECT DISTINCT - col0 + col1 + col1 AS col2 FROM tab1
----
-44
-54
49

query I rowsort
SELECT - col2 + ( - tab2.col1 ) AS col2 FROM tab2
----
-55
-58
-85

query I rowsort
SELECT + 93 * + cor0.col2 FROM tab1 cor0
----
5022
5301
8928

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * col2 + col0 col0 FROM tab1 AS cor0
----
165
3712
7760

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 68 + col0 col1 FROM tab2 cor0
----
146
147
75

query I rowsort
SELECT DISTINCT - 34 + col1 FROM tab0 AS cor0
----
52
57
63

query I rowsort
SELECT + col1 + col1 * col0 * - cor0.col2 FROM tab2 AS cor0
----
-119593
-51017
-5828

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + col0 ) + col2 * col1 col1 FROM tab2 AS cor0
----
1456
567
830

query I rowsort
SELECT DISTINCT - - 29 * - col0 AS col1 FROM tab0 AS cor0
----
-1015
-2581
-696

query I rowsort
SELECT ALL - ( - col1 ) * - col0 AS col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT + + col0 + - cor0.col2 AS col1 FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT DISTINCT + ( col0 ) AS col0 FROM tab0 cor0
----
24
35
89

query I rowsort
SELECT col0 * - col0 + ( + col2 ) FROM tab1 AS cor0
----
-4039
-6304
45

onlyif mysql # use DIV operator for integer division
query I rowsort label-4941
SELECT + - 64 DIV - col1 + - CAST( - col2 AS SIGNED ) + col0 FROM tab0 cor0
----
171
36
57

skipif mysql # not compatible
query I rowsort label-4941
SELECT + - 64 / - col1 + - CAST ( - col2 AS INTEGER ) + col0 FROM tab0 cor0
----
171
36
57

query I rowsort
SELECT + + cor0.col1 + + cor0.col2 AS col1 FROM tab2 AS cor0
----
55
58
85

onlyif mysql # use DIV operator for integer division
query I rowsort label-4943
SELECT + + cor0.col1 * col0 * - col2 + + ( col1 ) + + 35 DIV 19 FROM tab0 cor0
----
-3297
-664026
-68025

skipif mysql # not compatible
query I rowsort label-4943
SELECT + + cor0.col1 * col0 * - col2 + + ( col1 ) + + 35 / 19 FROM tab0 cor0
----
-3297
-664026
-68025

query I rowsort
SELECT ALL 77 * + cor0.col0 AS col0 FROM tab2, tab2 AS cor0 CROSS JOIN tab1, tab0 AS cor1
----
81 values hashing to d2534a62e58a826a333edad8d376e981

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4945
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - col2 + + col1 * + tab0.col0 + + tab0.col0 * col0 AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4945
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - col2 + + col1 * + tab0.col0 + + tab0.col0 * col0 AS col0 FROM tab0
----
NULL

query I rowsort
SELECT + col1 * col1 * ( - col2 ) FROM tab2
----
-10982
-25947
-90506

query IIIIIIIII rowsort
SELECT * FROM tab0, tab1, tab1 AS cor0 WHERE NULL IN ( - cor0.col1 )
----

query I rowsort
SELECT DISTINCT - ( 51 ) FROM tab1, tab2 AS cor0
----
-51

query I rowsort
SELECT - 43 + col0 FROM tab2 AS cor0
----
-36
35
36

query I rowsort
SELECT ALL cor0.col2 * 6 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to f293fb31cc171abeef4b8f6e790a6ab0

query I rowsort
SELECT ALL tab0.col2 * ( - col2 ) AS col1 FROM tab0
----
-1
-1089
-6724

query I rowsort
SELECT ALL + col2 + col2 * col0 AS col1 FROM tab2 AS cor0
----
2054
216
3040

onlyif mysql # use DIV operator for integer division
query I rowsort label-4953
SELECT col2 + col0 DIV cor0.col1 AS col0 FROM tab1 AS cor0
----
102
54
63

skipif mysql # not compatible
query I rowsort label-4953
SELECT col2 + col0 / cor0.col1 AS col0 FROM tab1 AS cor0
----
102
54
63

query I rowsort
SELECT ( ( + col1 ) ) + - 92 * - col0 FROM tab0 AS cor0
----
2294
3317
8279

query I rowsort
SELECT DISTINCT - ( + 29 ) FROM tab2 AS cor0
----
-29

onlyif mysql # use DIV operator for integer division
query I rowsort label-4956
SELECT - - ( - col0 ) + col2 DIV + col1 AS col2 FROM tab1 AS cor0
----
-1
-59
-73

skipif mysql # not compatible
query I rowsort label-4956
SELECT - - ( - col0 ) + col2 / + col1 AS col2 FROM tab1 AS cor0
----
-1
-59
-73

onlyif mysql # use DIV operator for integer division
query I rowsort label-4957
SELECT cor0.col2 DIV ( col0 * col0 ) FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4957
SELECT cor0.col2 / ( col0 * col0 ) FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT - - ( cor0.col2 ) + + col2 FROM tab0 AS cor0
----
164
2
66

query I rowsort
SELECT ALL + 1 * col2 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT - - 75 * 71 - - col2 AS col1 FROM tab1 AS cor0
----
5379
5382
5421

query I rowsort
SELECT ALL col2 * 31 * cor0.col1 FROM tab2 AS cor0
----
20026
25947
47554

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4962
SELECT CAST( - 67 AS SIGNED ) FROM tab1 AS cor0
----
-67
-67
-67

skipif mysql # not compatible
query I rowsort label-4962
SELECT CAST ( - 67 AS INTEGER ) FROM tab1 AS cor0
----
-67
-67
-67

query I rowsort
SELECT - - 66 * col1 FROM tab2 AS cor0
----
1122
2046
3894

query I rowsort
SELECT 3 + + ( col2 ) * 3 FROM tab1
----
165
174
291

query I rowsort
SELECT ALL + ( + tab0.col1 + col1 ) FROM tab0
----
172
182
194

query I rowsort
SELECT DISTINCT - ( 39 ) FROM tab2
----
-39

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4967
SELECT CAST( 79 AS SIGNED ) FROM tab1 cor0
----
79
79
79

skipif mysql # not compatible
query I rowsort label-4967
SELECT CAST ( 79 AS INTEGER ) FROM tab1 cor0
----
79
79
79

query I rowsort
SELECT + col2 * col1 * - col2 + 93 FROM tab0 cor0
----
-4
-611791
-93561

query I rowsort
SELECT DISTINCT + + col2 * + col1 + + 20 FROM tab1 AS cor0
----
1268
1424
590

query I rowsort
SELECT - col0 * - col1 + + col0 * + col1 FROM tab0 cor0
----
16198
4128
6790

query I rowsort
SELECT ALL ( + col0 ) + col1 FROM tab1 cor0
----
29
74
93

query I rowsort
SELECT + col0 * col2 - + 43 FROM tab1 AS cor0
----
119
3605
7637

query I rowsort
SELECT DISTINCT 88 * col2 AS col2 FROM tab2 AS cor0
----
2288
2376
3344

query I rowsort
SELECT ALL + 79 * + col0 FROM tab0
----
1896
2765
7031

query I rowsort
SELECT ( tab1.col1 ) AS col2 FROM tab1
----
10
13
26

query I rowsort
SELECT ALL col2 + col2 * 86 AS col2 FROM tab1
----
4698
4959
8352

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4977
SELECT - cor0.col2 + CAST( NULL AS SIGNED ) col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4977
SELECT - cor0.col2 + CAST ( NULL AS INTEGER ) col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + ( col2 + + col0 ) FROM tab0
----
171
36
57

query I rowsort
SELECT + col0 + 61 * cor0.col1 + + col1 AS col2 FROM tab1 AS cor0
----
1615
684
886

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + + col2 col0 FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT ALL 13 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb

query I rowsort
SELECT ( ( col2 ) ) * 94 + + 14 FROM tab0 AS cor0
----
108
3116
7722

query I rowsort
SELECT + + ( col0 ) + col0 FROM tab2 AS cor0
----
14
156
158

query I rowsort
SELECT + cor1.col2 AS col1 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4985
SELECT - 63 - col2 * CAST( NULL AS DECIMAL ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4985
SELECT - 63 - col2 * CAST ( NULL AS REAL ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + 51 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 02a7de94365b8cb5b5cb92c4b1d1e7c5

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4987
SELECT DISTINCT + - cor0.col2 * + CAST( NULL AS DECIMAL ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4987
SELECT DISTINCT + - cor0.col2 * + CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4988
SELECT DISTINCT + cor0.col2 * CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4988
SELECT DISTINCT + cor0.col2 * CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT 32 AS col0 FROM tab2
----
32

query I rowsort
SELECT 6 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to f1e8f0199f3714ee8fcc24ce0cc3ea04

query I rowsort
SELECT ALL - 46 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 5a5d45989dcc6a06d9ee5a08945518f9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4992
SELECT + col2 + + CAST( 62 AS SIGNED ) * + col0 FROM tab1 AS cor0
----
240
4025
5056

skipif mysql # not compatible
query I rowsort label-4992
SELECT + col2 + + CAST ( 62 AS INTEGER ) * + col0 FROM tab1 AS cor0
----
240
4025
5056

query I rowsort
SELECT DISTINCT col0 - tab1.col0 AS col2 FROM tab1
----
0

query I rowsort
SELECT DISTINCT + col0 + col0 * col1 - + cor0.col1 AS col2 FROM tab1 AS cor0
----
1107
55
694

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + cor0.col2 * col1 + - col1 col2 FROM tab1 AS cor0
----
1235
1378
560

query I rowsort
SELECT DISTINCT - col1 * + 91 FROM tab2 AS cor0
----
-1547
-2821
-5369

query I rowsort
SELECT + col2 + - col1 * 99 AS col1 FROM tab1 AS cor0
----
-1191
-2520
-933

query I rowsort
SELECT - cor0.col1 * - ( ( col0 ) ) FROM tab2 cor0
----
1343
217
4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-4999
SELECT - - col1 DIV - cor0.col0 col2 FROM tab2 AS cor0
----
-4
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4999
SELECT - - col1 / - cor0.col0 col2 FROM tab2 AS cor0
----
-4
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * + 48 col2 FROM tab1 AS cor0
----
144
3072
3840

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + + col2 col1 FROM tab2
----
52
54
76

query I rowsort
SELECT - + 92 * + 35 FROM tab2 AS cor0
----
-3220
-3220
-3220

query I rowsort
SELECT + ( + 17 ) * + col2 + ( - ( - col1 ) ) FROM tab1 AS cor0
----
1645
944
979

query I rowsort
SELECT + - 68 * + col2 + - col2 + - col0 AS col1 FROM tab2 AS cor0
----
-1870
-1872
-2701

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5005
SELECT + CAST( NULL AS SIGNED ) + - col0 / col0 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5005
SELECT + CAST ( NULL AS INTEGER ) + - col0 / col0 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - + col1 * + col2 + cor0.col0 AS col1 FROM tab1 AS cor0
----
-1168
-1401
-506

onlyif mysql # use DIV operator for integer division
query I rowsort label-5007
SELECT - col1 * cor0.col1 DIV + col0 FROM tab1 AS cor0
----
-1
-2
-225

skipif mysql # not compatible
query I rowsort label-5007
SELECT - col1 * cor0.col1 / + col0 FROM tab1 AS cor0
----
-1
-2
-225

onlyif mysql # use DIV operator for integer division
query I rowsort label-5008
SELECT ALL - cor0.col0 * col2 + + col2 + ( col1 ) DIV - 64 col1 FROM tab0 AS cor0
----
-35
-7217
-760

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5008
SELECT ALL - cor0.col0 * col2 + + col2 + ( col1 ) / - 64 col1 FROM tab0 AS cor0
----
-35
-7217
-760

query I rowsort
SELECT DISTINCT + + 78 + col1 FROM tab0 AS cor0
----
164
169
175

onlyif mysql # use DIV operator for integer division
query I rowsort label-5010
SELECT DISTINCT + - col2 DIV + col2 + - 15 * - col1 AS col2 FROM tab1 cor0
----
149
194
389

skipif mysql # not compatible
query I rowsort label-5010
SELECT DISTINCT + - col2 / + col2 + - 15 * - col1 AS col2 FROM tab1 cor0
----
149
194
389

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5011
SELECT DISTINCT + - 53 * col2 + - CAST( NULL AS SIGNED ) * - 57 col1 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5011
SELECT DISTINCT + - 53 * col2 + - CAST ( NULL AS INTEGER ) * - 57 col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - col1 * col0 + + ( col2 ) * - col2 * + col2 + + col2 FROM tab0 AS cor0
----
-3395
-37968
-559385

query I rowsort
SELECT ALL 98 + col2 + + col0 * col1 * + cor0.col0 AS col0 FROM tab1 AS cor0
----
386
41115
83394

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + cor0.col0 + cor0.col2 * 57 col1 FROM tab2 AS cor0
----
1404
1532
2087

query I rowsort
SELECT ALL 35 + + col0 * col0 AS col0 FROM tab0 AS cor0
----
1260
611
7956

query I rowsort
SELECT ALL + col2 - + col1 FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT DISTINCT + ( 51 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
51

query I rowsort
SELECT DISTINCT - + col0 + + col0 * col0 AS col0 FROM tab2 cor0
----
42
6006
6162

onlyif mysql # use DIV operator for integer division
query I rowsort label-5019
SELECT - cor0.col0 + - col0 * 36 DIV col2 AS col0 FROM tab0 cor0
----
-128
-1295
-50

skipif mysql # not compatible
query I rowsort label-5019
SELECT - cor0.col0 + - col0 * 36 / col2 AS col0 FROM tab0 cor0
----
-128
-1295
-50

query I rowsort
SELECT DISTINCT + col0 - col1 * col1 FROM tab2 AS cor0
----
-210
-3403
-954

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5021
SELECT DISTINCT + ( + col1 ) + CAST( col1 AS SIGNED ) FROM tab2 AS cor0
----
118
34
62

skipif mysql # not compatible
query I rowsort label-5021
SELECT DISTINCT + ( + col1 ) + CAST ( col1 AS INTEGER ) FROM tab2 AS cor0
----
118
34
62

query I rowsort
SELECT ALL - col0 + + col2 + - col1 AS col2 FROM tab0 AS cor0
----
-131
-77
-98

query I rowsort
SELECT - + col0 + col2 AS col2 FROM tab0 cor0
----
-34
-7
9

query I rowsort
SELECT DISTINCT - - cor0.col1 - + cor0.col1 AS col2 FROM tab0 AS cor0
----
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5025
SELECT ALL - cor0.col0 * col0 * ( col2 ) + cor0.col0 * CAST( NULL AS DECIMAL ) + + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5025
SELECT ALL - cor0.col0 * col0 * ( col2 ) + cor0.col0 * CAST ( NULL AS REAL ) + + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - - ( col1 ) * col1 + - 67 AS col2 FROM tab0 AS cor0
----
7329
8214
9342

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col0 col1 FROM tab1 cor0
----
-3
-64
-80

query I rowsort
SELECT - cor0.col0 * col2 + + 27 AS col1 FROM tab1 AS cor0
----
-135
-3621
-7653

onlyif mysql # use DIV operator for integer division
query I rowsort label-5029
SELECT DISTINCT - col1 * - col1 + + cor0.col2 DIV col0 col2 FROM tab1 AS cor0
----
100
170
694

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5029
SELECT DISTINCT - col1 * - col1 + + cor0.col2 / col0 col2 FROM tab1 AS cor0
----
100
170
694

onlyif mysql # use DIV operator for integer division
query I rowsort label-5030
SELECT + col2 DIV 16 FROM tab0 cor0
----
0
2
5

skipif mysql # not compatible
query I rowsort label-5030
SELECT + col2 / 16 FROM tab0 cor0
----
0
2
5

query I rowsort
SELECT DISTINCT - col0 + 14 * + col1 + cor0.col2 AS col0 FROM tab0 AS cor0
----
1213
1267
1324

query I rowsort
SELECT - col0 * + 22 FROM tab1 AS cor0
----
-1408
-1760
-66

query I rowsort
SELECT + ( cor0.col0 ) FROM tab0, tab1 AS cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870

query I rowsort
SELECT - 76 - - 31 * col2 AS col2 FROM tab2 AS cor0
----
1102
730
761

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - col2 col0 FROM tab2 AS cor0
----
-1444
-676
-729

query I rowsort
SELECT DISTINCT - - 56 + - col2 FROM tab1 AS cor0
----
-1
-40
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 - - col2 * col2 col1 FROM tab2
----
1523
736
754

query I rowsort
SELECT - 93 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 38f445d95788c7dc754ff688a62df03b

query I rowsort
SELECT + col1 + + 83 + 50 FROM tab1
----
143
146
159

query I rowsort
SELECT ALL - col0 - - 37 FROM tab2
----
-41
-42
30

query I rowsort
SELECT ALL col1 * + 11 + col1 AS col1 FROM tab2 AS cor0
----
204
372
708

query I rowsort
SELECT + col1 * ( + tab1.col1 ) AS col2 FROM tab1
----
100
169
676

onlyif mysql # use DIV operator for integer division
query I rowsort label-5043
SELECT + 96 DIV col1 + col2 AS col2 FROM tab2
----
27
30
43

skipif mysql # not compatible
query I rowsort label-5043
SELECT + 96 / col1 + col2 AS col2 FROM tab2
----
27
30
43

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + col0 col2 FROM tab2
----
137
38
96

query I rowsort
SELECT col0 * + col0 + col2 + - col1 FROM tab2
----
45
6051
6262

query I rowsort
SELECT + 84 + - col0 + + col0 FROM tab1
----
84
84
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + tab2.col0 col0 FROM tab2
----
137
38
96

query I rowsort
SELECT ALL - col1 + - ( col0 ) AS col0 FROM tab2
----
-137
-38
-96

query I rowsort
SELECT + col1 * + col0 + col0 FROM tab2
----
1422
224
4680

query I rowsort
SELECT DISTINCT - col1 * + 47 * - col2 AS col1 FROM tab2 AS cor0
----
30362
39339
72098

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 79 * - cor1.col1 col1 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to fcbacfe385c2d470e0790f4332b50b8a

query I rowsort
SELECT - col2 * - col1 + cor0.col0 FROM tab2 AS cor0
----
1612
725
844

query I rowsort
SELECT col0 * 34 FROM tab0 cor0
----
1190
3026
816

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 + ( + cor0.col2 ) col1 FROM tab1 AS cor0
----
108
114
192

onlyif mysql # use DIV operator for integer division
query I rowsort label-5055
SELECT ALL col2 * - 92 - cor0.col0 DIV cor0.col2 AS col1 FROM tab0 AS cor0
----
-127
-3036
-7545

skipif mysql # not compatible
query I rowsort label-5055
SELECT ALL col2 * - 92 - cor0.col0 / cor0.col2 AS col1 FROM tab0 AS cor0
----
-127
-3036
-7545

query I rowsort
SELECT + col2 * + col1 + - col0 * + col0 FROM tab0 cor0
----
-1128
-459
2262

query I rowsort
SELECT DISTINCT + cor1.col2 AS col1 FROM tab1, tab2 AS cor0, tab2, tab0 AS cor1
----
1
33
82

query I rowsort
SELECT - col0 + - 71 * + ( cor0.col0 ) AS col2 FROM tab0 AS cor0
----
-1728
-2520
-6408

onlyif mysql # use DIV operator for integer division
query I rowsort label-5059
SELECT 17 DIV 34 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-5059
SELECT 17 / 34 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT ALL + 53 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 866ae1b4ab9e5b4043ac1bcfd413aaa6

query I rowsort
SELECT ALL + ( - cor0.col2 ) FROM tab2, tab1 AS cor0
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba

query I rowsort
SELECT + col2 * 0 AS col2 FROM tab1
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5063
SELECT col0 * ( col1 ) + + col1 + col1 DIV + tab1.col1 FROM tab1
----
105
1054
651

skipif mysql # not compatible
query I rowsort label-5063
SELECT col0 * ( col1 ) + + col1 + col1 / + tab1.col1 FROM tab1
----
105
1054
651

query I rowsort
SELECT DISTINCT tab2.col2 * tab2.col0 + col1 FROM tab2
----
2087
220
3019

query I rowsort
SELECT DISTINCT col2 * + col1 + col0 FROM tab0
----
132
2862
7551

query I rowsort
SELECT col1 + + 53 FROM tab1
----
63
66
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-5067
SELECT DISTINCT + col1 * 38 DIV - col0 + - col0 + - col0 * + col0 col2 FROM tab2 cor0
----
-224
-6190
-6328

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5067
SELECT DISTINCT + col1 * 38 / - col0 + - col0 + - col0 * + col0 col2 FROM tab2 cor0
----
-224
-6190
-6328

query I rowsort
SELECT ALL - col2 * col2 + - col0 - col2 AS col0 FROM tab2 AS cor0
----
-1561
-763
-780

query I rowsort
SELECT col0 + col2 * - col1 AS col0 FROM tab0
----
-2814
-62
-7373

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 4 * col1 col0 FROM tab2
----
124
236
68

onlyif mysql # use DIV operator for integer division
query I rowsort label-5071
SELECT + + col0 + col2 DIV - col0 FROM tab2 AS cor0
----
4
78
79

skipif mysql # not compatible
query I rowsort label-5071
SELECT + + col0 + col2 / - col0 FROM tab2 AS cor0
----
4
78
79

query I rowsort
SELECT DISTINCT + - cor0.col2 - ( cor0.col1 ) FROM tab2, tab1, tab2 AS cor0
----
-55
-58
-85

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5073
SELECT DISTINCT - CAST( col0 AS SIGNED ) AS col1 FROM tab2
----
-7
-78
-79

skipif mysql # not compatible
query I rowsort label-5073
SELECT DISTINCT - CAST ( col0 AS INTEGER ) AS col1 FROM tab2
----
-7
-78
-79

query I rowsort
SELECT ALL - 43 + col2 AS col1 FROM tab2 AS cor0
----
-16
-17
-5

onlyif mysql # use DIV operator for integer division
query I rowsort label-5075
SELECT 88 DIV col0 AS col2 FROM tab1 AS cor0
----
1
1
29

skipif mysql # not compatible
query I rowsort label-5075
SELECT 88 / col0 AS col2 FROM tab1 AS cor0
----
1
1
29

query I rowsort
SELECT DISTINCT + 42 * - col1 AS col0 FROM tab2 AS cor0
----
-1302
-2478
-714

query I rowsort
SELECT DISTINCT + + col1 * - col0 - - 8 FROM tab2 AS cor0
----
-1335
-209
-4594

query I rowsort
SELECT 72 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 92cc3d5daa550304e96c1542787691c7

query I rowsort
SELECT 85 - - col0 * 52 AS col0 FROM tab2
----
4141
4193
449

onlyif mysql # use DIV operator for integer division
query I rowsort label-5080
SELECT - tab0.col1 * col2 DIV 46 + tab0.col1 FROM tab0
----
-71
25
95

skipif mysql # not compatible
query I rowsort label-5080
SELECT - tab0.col1 * col2 / 46 + tab0.col1 FROM tab0
----
-71
25
95

onlyif mysql # use DIV operator for integer division
query I rowsort label-5081
SELECT DISTINCT - tab2.col0 * - col0 DIV col0 + col1 FROM tab2
----
137
38
96

skipif mysql # not compatible
query I rowsort label-5081
SELECT DISTINCT - tab2.col0 * - col0 / col0 + col1 FROM tab2
----
137
38
96

query I rowsort
SELECT DISTINCT col0 * + col1 + col0 FROM tab2
----
1422
224
4680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5083
SELECT ALL + col0 * - CAST( + 37 AS SIGNED ) AS col1 FROM tab1
----
-111
-2368
-2960

skipif mysql # not compatible
query I rowsort label-5083
SELECT ALL + col0 * - CAST ( + 37 AS INTEGER ) AS col1 FROM tab1
----
-111
-2368
-2960

query I rowsort
SELECT 27 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab2 AS cor2
----
81 values hashing to 092918b9163061e291041d594b1a402a

query I rowsort
SELECT ALL + - cor0.col2 * ( - col0 ) FROM tab0 AS cor0
----
35
7298
792

onlyif mysql # use DIV operator for integer division
query I rowsort label-5086
SELECT col1 DIV + ( + col1 + + col2 ) FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5086
SELECT col1 / + ( + col1 + + col2 ) FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + col1 + col2 * - col0 FROM tab1 AS cor0
----
-136
-3638
-7667

query I rowsort
SELECT DISTINCT + col2 * + 13 * - col0 FROM tab1 AS cor0
----
-2106
-47424
-99840

query I rowsort
SELECT + col1 * col1 + cor0.col2 FROM tab0 AS cor0
----
7429
8363
9410

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( col0 ) + + col0 col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + ( + 45 ) * + col2 AS col0 FROM tab0 cor0
----
1485
3690
45

query I rowsort
SELECT ( - col2 + col1 ) AS col2 FROM tab2
----
-21
33
4

query I rowsort
SELECT col2 - + 98 AS col0 FROM tab2 AS cor0
----
-60
-71
-72

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5094
SELECT - CAST( NULL AS SIGNED ) * 39 + col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5094
SELECT - CAST ( NULL AS INTEGER ) * 39 + col0 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - col0 + - 3 FROM tab2 AS cor0
----
-10
-81
-82

query I rowsort
SELECT col0 * cor0.col0 - col0 FROM tab2 AS cor0
----
42
6006
6162

query I rowsort
SELECT - 79 + + cor0.col0 FROM tab0, tab1 cor0, tab2 AS cor1
----
27 values hashing to a792f850fb3a90867a4e26d19a0b913e

query I rowsort
SELECT DISTINCT - + col1 - + col1 * + col2 AS col2 FROM tab0 AS cor0
----
-194
-2924
-7553

query I rowsort
SELECT ALL - col1 * + ( + col1 ) AS col1 FROM tab0
----
-7396
-8281
-9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-5100
SELECT ALL col1 + col2 DIV + col1 AS col0 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-5100
SELECT ALL col1 + col2 / + col1 AS col0 FROM tab0 AS cor0
----
86
91
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( + 70 ) * - col0 + cor0.col2 col1 FROM tab2 AS cor0
----
-463
-5434
-5492

query I rowsort
SELECT DISTINCT + col2 * 7 AS col2 FROM tab2 AS cor0
----
182
189
266

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5103
SELECT - CAST( NULL AS SIGNED ) * col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5103
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 ALL - col2 * 11 col1 FROM tab1 AS cor0
----
-1056
-594
-627

onlyif mysql # use DIV operator for integer division
query I rowsort label-5105
SELECT DISTINCT - 22 DIV - 71 AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5105
SELECT DISTINCT - 22 / - 71 AS col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT col2 + 18 FROM tab0 AS cor0
----
100
19
51

query I rowsort
SELECT col0 - - col2 AS col2 FROM tab1
----
121
176
57

query I rowsort
SELECT + 39 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to ed2ebd9def3e2c38aa46cb3af60fe229

query I rowsort
SELECT - col1 - + 47 FROM tab0
----
-133
-138
-144

query I rowsort
SELECT DISTINCT col0 + - ( - col0 ) AS col0 FROM tab2
----
14
156
158

query I rowsort
SELECT ALL col2 * - ( ( col1 ) * - col1 ) FROM tab0
----
244068
679042
9409

query I rowsort
SELECT DISTINCT ( - 32 ) * - cor0.col1 AS col0 FROM tab1, tab0 AS cor0
----
2752
2912
3104

query I rowsort
SELECT ALL col0 * + col1 - - col0 AS col2 FROM tab2 cor0
----
1422
224
4680

query I rowsort
SELECT DISTINCT + - 36 + col0 * + col2 FROM tab2 AS cor0
----
153
1992
2966

query I rowsort
SELECT - cor0.col1 FROM tab0, tab1 AS cor0 CROSS JOIN tab1
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6

query I rowsort
SELECT ALL 33 - col2 * + col0 * - col0 AS col1 FROM tab1
----
233505
519
614433

query I rowsort
SELECT col2 + col0 + col0 FROM tab0 AS cor0
----
260
71
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-5118
SELECT DISTINCT col1 DIV col1 - col0 * col2 FROM tab1
----
-161
-3647
-7679

skipif mysql # not compatible
query I rowsort label-5118
SELECT DISTINCT col1 / col1 - col0 * col2 FROM tab1
----
-161
-3647
-7679

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5119
SELECT DISTINCT CAST( NULL AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-5119
SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

query I rowsort
SELECT 59 + col1 + - ( - col0 + + col0 ) * 44 FROM tab1
----
69
72
85

query I rowsort
SELECT DISTINCT col2 + ( col0 + + col0 ) FROM tab2
----
182
196
41

query I rowsort
SELECT - tab1.col1 - col1 * - col1 AS col1 FROM tab1
----
156
650
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - tab2.col1 col1 FROM tab2
----
-24
19
62

query I rowsort
SELECT + col1 + cor0.col0 * + col0 AS col1 FROM tab2 AS cor0
----
6143
6258
80

query I rowsort
SELECT + col0 + ( 58 ) AS col0 FROM tab1 AS cor0
----
122
138
61

query I rowsort
SELECT - - col2 + 90 * - 53 FROM tab2 AS cor0
----
-4732
-4743
-4744

query I rowsort
SELECT ALL + col2 * - 68 + col2 FROM tab0
----
-2211
-5494
-67

query I rowsort
SELECT ( - 42 ) FROM tab0, tab2 AS cor0
----
9 values hashing to 9894093f29c0defae91347934f060329

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab1, tab2 cor2
----
3645 values hashing to 6193516da5556fc054f35e0d2f4e5372

query I rowsort
SELECT + col0 + + ( col0 ) + + col1 * - col0 * col2 AS col2 FROM tab1 AS cor0
----
-36352
-4206
-99680

query I rowsort
SELECT DISTINCT - col2 * ( - col2 ) AS col0 FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT DISTINCT - + col0 * - col2 + 59 FROM tab0 AS cor0
----
7357
851
94

query I rowsort
SELECT - col1 + - col2 * col2 * col0 + - 80 FROM tab2 AS cor0
----
-114173
-5214
-52867

query I rowsort
SELECT ALL + col0 + + col2 + 46 FROM tab2 AS cor0
----
150
163
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 * + ( - col0 ) col0 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT ALL - + col1 * col0 + - col0 * - col1 AS col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT - col0 + - col0 AS col1 FROM tab0 cor0
----
-178
-48
-70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + - 5 * col2 col0 FROM tab2 AS cor0
----
-104
-108
-152

query I rowsort
SELECT DISTINCT - + col1 + + 17 FROM tab2 AS cor0
----
-14
-42
0

query I rowsort
SELECT - 87 FROM tab1, tab1 AS cor0, tab2 AS cor1, tab2 AS cor2
----
81 values hashing to edb5a8bbcb3204ac8254e54507073328

query I rowsort
SELECT ALL + 76 AS col2 FROM tab1 cor0
----
76
76
76

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5142
SELECT ALL CAST( - 85 AS SIGNED ) + - col1 * 74 AS col0 FROM tab0 AS cor0
----
-6449
-6819
-7263

skipif mysql # not compatible
query I rowsort label-5142
SELECT ALL CAST ( - 85 AS INTEGER ) + - col1 * 74 AS col0 FROM tab0 AS cor0
----
-6449
-6819
-7263

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5143
SELECT + CAST( col1 AS SIGNED ) * + col0 * cor0.col2 + col1 FROM tab0 AS cor0
----
3492
664209
68198

skipif mysql # not compatible
query I rowsort label-5143
SELECT + CAST ( col1 AS INTEGER ) * + col0 * cor0.col2 + col1 FROM tab0 AS cor0
----
3492
664209
68198

query I rowsort
SELECT ALL - 44 * 94 FROM tab1
----
-4136
-4136
-4136

onlyif mysql # use DIV operator for integer division
query I rowsort label-5145
SELECT 47 + col2 DIV - col0 FROM tab0 cor0
----
46
47
47

skipif mysql # not compatible
query I rowsort label-5145
SELECT 47 + col2 / - col0 FROM tab0 cor0
----
46
47
47

query I rowsort
SELECT DISTINCT cor0.col1 * cor0.col2 FROM tab1, tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT + cor0.col0 * - 11 + col1 AS col2 FROM tab1 cor0
----
-694
-7
-867

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5148
SELECT DISTINCT col0 + ( col0 ) * col0 + - CAST( + ( col2 ) * col1 AS SIGNED ) AS col0 FROM tab1
----
-1392
3590
5232

skipif mysql # not compatible
query I rowsort label-5148
SELECT DISTINCT col0 + ( col0 ) * col0 + - CAST ( + ( col2 ) * col1 AS INTEGER ) AS col0 FROM tab1
----
-1392
3590
5232

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 cor0 CROSS JOIN tab0, tab1 AS cor1, tab2, tab0 AS cor2
----
3645 values hashing to 32e6d0f63bf719b0a999c75379e75eca

query I rowsort
SELECT DISTINCT + - ( 78 ) * col1 + + ( col1 + - col2 ) FROM tab2 AS cor0
----
-1347
-2414
-4569

query I rowsort
SELECT DISTINCT - ( 51 ) AS col0 FROM tab0 AS cor0
----
-51

onlyif mysql # use DIV operator for integer division
query I rowsort label-5152
SELECT DISTINCT + col0 DIV cor0.col1 + col0 FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-5152
SELECT DISTINCT + col0 / cor0.col1 + col0 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT + - 62 + col2 FROM tab1 AS cor0
----
-5
-8
34

query I rowsort
SELECT - - ( - 62 ) FROM tab0 AS cor0
----
-62
-62
-62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + col2 * cor0.col0 col1 FROM tab2 AS cor0
----
2054
216
3040

onlyif mysql # use DIV operator for integer division
query I rowsort label-5156
SELECT DISTINCT col1 - + cor0.col0 DIV - col1 AS col0 FROM tab1 AS cor0
----
16
19
26

skipif mysql # not compatible
query I rowsort label-5156
SELECT DISTINCT col1 - + cor0.col0 / - col1 AS col0 FROM tab1 AS cor0
----
16
19
26

query I rowsort
SELECT DISTINCT - - ( cor0.col2 ) * 44 + + col2 + + col0 * - col1 FROM tab2 AS cor0
----
-3432
367
998

onlyif mysql # use DIV operator for integer division
query I rowsort label-5158
SELECT DISTINCT - + col1 * cor0.col2 - + col1 DIV col1 FROM tab2 AS cor0
----
-1535
-647
-838

skipif mysql # not compatible
query I rowsort label-5158
SELECT DISTINCT - + col1 * cor0.col2 - + col1 / col1 FROM tab2 AS cor0
----
-1535
-647
-838

query I rowsort
SELECT ALL 0 * col0 + - col1 AS col0 FROM tab2 cor0
----
-17
-31
-59

query I rowsort
SELECT ALL - col2 * - col0 * - col0 FROM tab2 cor0
----
-1323
-158184
-237158

onlyif mysql # use DIV operator for integer division
query I rowsort label-5161
SELECT ALL 4 DIV cor1.col1 AS col1 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

skipif mysql # not compatible
query I rowsort label-5161
SELECT ALL 4 / cor1.col1 AS col1 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

query I rowsort
SELECT 64 FROM tab0, tab0 cor0, tab1 AS cor1, tab1, tab2 AS cor2
----
243 values hashing to 9c0c5be8e8d74b914a03b75b88ba18ff

query I rowsort
SELECT ALL - ( + col1 ) + ( col1 ) FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + 55 + col1 AS col2 FROM tab2 cor0
----
114
72
86

query I rowsort
SELECT ALL + col2 + ( + 4 ) FROM tab2 AS cor0
----
30
31
42

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5166
SELECT DISTINCT + cor0.col0 + CAST( NULL AS DECIMAL ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5166
SELECT DISTINCT + cor0.col0 + CAST ( NULL AS REAL ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort
SELECT ALL col1 + - CAST ( col0 AS REAL ) FROM tab0 AS cor0
----
2
62
62

query I rowsort
SELECT DISTINCT 53 - col1 * + 98 FROM tab1
----
-1221
-2495
-927

query I rowsort
SELECT ALL col2 * + 79 FROM tab0 AS cor0
----
2607
6478
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - cor0.col0 * col2 + 97 col1 FROM tab0 AS cor0
----
132
7395
889

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 * + col2 * col1 + + col2 col1 FROM tab0 AS cor0
----
-611802
-93621
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * ( + col1 ) col1 FROM tab2 AS cor0
----
1343
217
4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-5173
SELECT DISTINCT - - col2 + + col2 DIV + col1 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-5173
SELECT DISTINCT - - col2 + + col2 / + col1 col1 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT ALL tab2.col1 * tab2.col2 - 12 FROM tab2
----
1522
634
825

query I rowsort
SELECT DISTINCT col0 - + tab1.col1 * + col0 AS col1 FROM tab1
----
-576
-75
-960

query I rowsort
SELECT DISTINCT - col1 * col1 * col0 + + col1 * col0 FROM tab2 WHERE NOT - col2 * + col0 + + col1 + - col0 IN ( + col0 + - col0 )
----
-21488
-266916
-6510

query III rowsort
SELECT ALL * FROM tab0 WHERE col0 > + col0
----

query I rowsort
SELECT - col0 * col0 + cor0.col2 AS col2 FROM tab0 AS cor0
----
-1224
-543
-7839

query I rowsort
SELECT DISTINCT - cor0.col0 * col0 + col1 FROM tab2 AS cor0
----
-18
-6025
-6224

query IIIIII rowsort
SELECT ALL * FROM tab2, tab2 AS cor0 WHERE NULL > ( NULL )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-5181
SELECT col1 DIV - col0 AS col2 FROM tab0 cor0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-5181
SELECT col1 / - col0 AS col2 FROM tab0 cor0
----
-1
-2
-3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL <> - col0
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-5183
SELECT col2 DIV + col0 + - cor0.col0 * col2 FROM tab0 AS cor0
----
-35
-7298
-791

skipif mysql # not compatible
query I rowsort label-5183
SELECT col2 / + col0 + - cor0.col0 * col2 FROM tab0 AS cor0
----
-35
-7298
-791

query I rowsort
SELECT 23 + + col0 - col2 * + col2 FROM tab1
----
-2890
-3162
-9113

query I rowsort
SELECT + cor0.col2 + col1 * - col1 FROM tab0 AS cor0
----
-7363
-8199
-9408

query I rowsort
SELECT - col0 * col0 + + col0 AS col1 FROM tab1 AS cor0
----
-4032
-6
-6320

query I rowsort
SELECT DISTINCT + 16 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
16

query I rowsort
SELECT + col1 + + col0 * col0 AS col1 FROM tab1 AS cor0
----
35
4106
6413

query I rowsort
SELECT ALL - col1 * + col1 AS col2 FROM tab0 WHERE NOT ( col0 ) IN ( col0 / col1 )
----
-7396
-8281
-9409

query I rowsort
SELECT col2 * + tab1.col0 * + col0 + - col2 FROM tab1
----
233415
432
614304

onlyif mysql # use DIV operator for integer division
query I rowsort label-5191
SELECT ALL - 28 DIV + col1 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5191
SELECT ALL - 28 / + col1 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT - 18 * + cor0.col2 AS col0 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 68207aa8fa114ceb2a5cef010bb7185b

query I rowsort
SELECT DISTINCT 49 + ( - cor0.col1 + 42 ) * 88 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
1457
2601
2865

query I rowsort
SELECT DISTINCT + cor0.col2 AS col1 FROM tab1, tab2, tab0 AS cor0
----
1
33
82

query I rowsort
SELECT + + col1 + - 73 FROM tab1 AS cor0
----
-47
-60
-63

query I rowsort
SELECT ALL col0 * cor0.col0 * ( + cor0.col0 * col2 ) + col2 FROM tab0 AS cor0
----
42876
456225
57807540

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab2.col1 col2 FROM tab2, tab2 AS cor0
----
9 values hashing to ccaa5dd3388d9ee0fea676fa35299fe5

query I rowsort
SELECT col2 * col2 + 60 AS col0 FROM tab0
----
1149
61
6784

query I rowsort
SELECT DISTINCT - 83 + col1 * - col1 * + 10 + - col2 * ( 36 ) AS col0 FROM tab2
----
-10665
-35829
-4341

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT 72 * col2 + - 0 / ( + col0 + - CAST ( + col0 AS REAL ) * - col2 ) col2 FROM tab1
----
3888
4104
6912

query I rowsort
SELECT col0 - col2 * - 3 AS col1 FROM tab0
----
123
335
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + tab1.col1 col1 FROM tab1
----
109
67
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-5203
SELECT + col0 DIV - tab0.col0 + col2 * tab0.col0 FROM tab0
----
34
7297
791

skipif mysql # not compatible
query I rowsort label-5203
SELECT + col0 / - tab0.col0 + col2 * tab0.col0 FROM tab0
----
34
7297
791

query I rowsort
SELECT DISTINCT tab0.col0 * - tab0.col1 FROM tab0 WHERE NOT + col0 / col2 <= - col0
----
-2064
-3395
-8099

query I rowsort
SELECT col2 * - col2 - + tab1.col2 AS col2 FROM tab1
----
-2970
-3306
-9312

query I rowsort
SELECT - col0 * - col0 + col0 FROM tab0
----
1260
600
8010

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL BETWEEN ( NULL ) AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + - tab0.col1 col0 FROM tab0
----
0

query I rowsort
SELECT DISTINCT tab1.col1 + tab1.col0 AS col1 FROM tab1
----
29
74
93

onlyif mysql # use DIV operator for integer division
query I rowsort label-5210
SELECT ALL col0 + + col1 DIV col1 AS col2 FROM tab0
----
25
36
90

skipif mysql # not compatible
query I rowsort label-5210
SELECT ALL col0 + + col1 / col1 AS col2 FROM tab0
----
25
36
90

query I rowsort
SELECT ALL col2 * - col2 + col0 AS col0 FROM tab1
----
-2913
-3185
-9136

query I rowsort
SELECT col1 + col2 * + col2 + - col0 FROM tab1
----
2939
3195
9149

query I rowsort
SELECT - col0 + + col1 * + col2 FROM tab2 WHERE NOT NULL IN ( col2 )
----

query I rowsort
SELECT DISTINCT + col2 + + col2 AS col2 FROM tab1
----
108
114
192

query I rowsort
SELECT col0 + - col0 * + col1 AS col0 FROM tab1
----
-576
-75
-960

query I rowsort
SELECT DISTINCT - col0 * col1 * tab2.col1 - tab2.col2 AS col0 FROM tab2
----
-22869
-271544
-6754

query I rowsort
SELECT ALL col1 + - col2 + + tab0.col2 AS col2 FROM tab0
----
86
91
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-5218
SELECT col2 DIV col0 + tab1.col2 FROM tab1
----
57
72
97

skipif mysql # not compatible
query I rowsort label-5218
SELECT col2 / col0 + tab1.col2 FROM tab1
----
57
72
97

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 - col0 NOT IN ( + col1 * col1 )
----

query I rowsort
SELECT DISTINCT - col2 + col1 * tab2.col0 + - col2 * tab2.col2 FROM tab2
----
-139
-539
3900

query I rowsort
SELECT - col0 * + col1 * tab2.col2 AS col1 FROM tab2
----
-119652
-51034
-5859

query I rowsort
SELECT col0 AS col1 FROM tab0 WHERE NOT col2 IN ( - col2 + + tab0.col0 + col0 )
----
24
35
89

query I rowsort
SELECT col0 + col2 * + col0 * col2 - + col0 FROM tab2
----
114076
5103
52728

query I rowsort
SELECT DISTINCT + col2 + + col0 + - col0 AS col0 FROM tab2
----
26
27
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-5225
SELECT col1 DIV col2 + - col1 * col0 AS col0 FROM tab1
----
-1040
-640
-78

skipif mysql # not compatible
query I rowsort label-5225
SELECT col1 / col2 + - col1 * col0 AS col0 FROM tab1
----
-1040
-640
-78

query I rowsort
SELECT DISTINCT + col2 * - col2 * + col1 FROM tab0
----
-611884
-93654
-97

query I rowsort
SELECT ALL - col2 FROM tab2 WHERE col1 + col1 + col1 <= col1
----

query I rowsort
SELECT col2 + col2 + + col1 * - col0 AS col0 FROM tab0
----
-1998
-3393
-7935

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - tab2.col0 * - col2 col2 FROM tab2
----
-114076
-5103
-52728

query I rowsort
SELECT col0 * + tab2.col0 * - col0 FROM tab2
----
-343
-474552
-493039

query I rowsort
SELECT + col2 * + col2 * - col2 AS col2 FROM tab2
----
-17576
-19683
-54872

query I rowsort
SELECT DISTINCT - col1 + - col2 + + col1 FROM tab0
----
-1
-33
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * col2 + col1 + + col0 * - col2 col1 FROM tab2
----
-2339
-435
679

query I rowsort
SELECT DISTINCT col1 + + col1 * - col2 FROM tab1
----
-1235
-1378
-560

query I rowsort
SELECT 79 * col1 FROM tab1
----
1027
2054
790

query I rowsort
SELECT col0 * col0 * col1 - ( col0 + col0 ) * col0 FROM tab0
----
116375
48384
704969

query I rowsort
SELECT DISTINCT - col0 * + col1 + + 82 + - col2 * col0 AS col0 FROM tab2
----
-324
-4263
-6548

query I rowsort
SELECT - 88 + tab1.col0 + 75 * tab1.col2 AS col1 FROM tab1
----
3965
4251
7192

query I rowsort
SELECT DISTINCT 48 + col1 * - ( - cor0.col1 ) FROM tab1 AS cor0
----
148
217
724

query I rowsort
SELECT + - col0 * - col2 + col1 AS col1 FROM tab2 cor0
----
2087
220
3019

onlyif mysql # use DIV operator for integer division
query I rowsort label-5241
SELECT - col2 + + col2 DIV + col2 AS col1 FROM tab1 AS cor0
----
-53
-56
-95

skipif mysql # not compatible
query I rowsort label-5241
SELECT - col2 + + col2 / + col2 AS col1 FROM tab1 AS cor0
----
-53
-56
-95

query I rowsort
SELECT ALL + + cor0.col1 + + ( col0 ) FROM tab1 AS cor0
----
29
74
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * ( col0 ) col1 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT ALL + + col0 * - 53 + + col2 FROM tab0 AS cor0
----
-1239
-1854
-4635

onlyif mysql # use DIV operator for integer division
query I rowsort label-5245
SELECT - - col0 * 36 + - col2 * col1 DIV col0 FROM tab1 AS cor0
----
-360
2296
2865

skipif mysql # not compatible
query I rowsort label-5245
SELECT - - col0 * 36 + - col2 * col1 / col0 FROM tab1 AS cor0
----
-360
2296
2865

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5246
SELECT - - col2 * + CAST( cor0.col2 AS SIGNED ) AS col0 FROM tab2 cor0
----
1444
676
729

skipif mysql # not compatible
query I rowsort label-5246
SELECT - - col2 * + CAST ( cor0.col2 AS INTEGER ) AS col0 FROM tab2 cor0
----
1444
676
729

query I rowsort
SELECT ALL + + cor0.col1 + - 11 * - cor0.col0 FROM tab2 AS cor0
----
108
886
917

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * ( col2 ) + cor0.col1 col2 FROM tab2 AS cor0
----
1461
735
760

onlyif mysql # use DIV operator for integer division
query I rowsort label-5249
SELECT ALL + tab1.col0 * col0 DIV + col2 + col1 * + tab1.col1 AS col1 FROM tab1
----
171
235
676

skipif mysql # not compatible
query I rowsort label-5249
SELECT ALL + tab1.col0 * col0 / + col2 + col1 * + tab1.col1 AS col1 FROM tab1
----
171
235
676

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 23 * col0 col0 FROM tab0
----
2047
552
805

onlyif mysql # use DIV operator for integer division
query I rowsort label-5251
SELECT + col0 DIV + col0 + - 86 FROM tab0 AS cor0
----
-85
-85
-85

skipif mysql # not compatible
query I rowsort label-5251
SELECT + col0 / + col0 + - 86 FROM tab0 AS cor0
----
-85
-85
-85

query I rowsort
SELECT - cor0.col0 * col1 * - cor0.col0 + + col2 FROM tab2 cor0
----
106135
1546
358982

query I rowsort
SELECT DISTINCT + col1 + - cor0.col1 * col1 FROM tab1 AS cor0
----
-156
-650
-90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 79 col1 FROM tab1 cor0
----
79
79
79

query I rowsort
SELECT ALL col2 * col2 + col2 FROM tab0 cor0
----
1122
2
6806

query I rowsort
SELECT DISTINCT col0 * + col1 + - col1 + - 47 AS col2 FROM tab2 AS cor0
----
1279
139
4496

query I rowsort
SELECT DISTINCT + + 14 - col1 * col1 FROM tab1 AS cor0
----
-155
-662
-86

query I rowsort
SELECT + 42 * - col2 + col2 FROM tab0 AS cor0
----
-1353
-3362
-41

skipif mysql # not compatible
query I rowsort
SELECT + CAST ( - col2 AS REAL ) FROM tab0 AS cor0
----
-1
-33
-82

onlyif mysql # use DIV operator for integer division
query I rowsort label-5260
SELECT ALL - - cor0.col2 - 8 DIV cor0.col1 FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-5260
SELECT ALL - - cor0.col2 - 8 / cor0.col1 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT DISTINCT - col2 * - col2 + - cor0.col2 FROM tab0 AS cor0
----
0
1056
6642

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 * - col2 col2 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT ALL + col0 * + cor0.col0 FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT DISTINCT + + col0 * cor0.col2 AS col2 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT 56 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to b5ba4b44e3deadce1edb30e76df61200

query I rowsort
SELECT - 91 * cor0.col2 + + cor0.col2 * + 10 FROM tab2 AS cor0
----
-2106
-2187
-3078

query I rowsort
SELECT ALL + cor0.col1 FROM tab1, tab1 AS cor0 CROSS JOIN tab2
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 - - cor0.col0 col2 FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT - 22 * + 97 + + col2 AS col2 FROM tab2
----
-2096
-2107
-2108

query I rowsort
SELECT ALL + ( - col0 ) + - col2 - col1 FROM tab2 AS cor0
----
-134
-163
-65

query I rowsort
SELECT + col0 * col0 + col2 * col2 FROM tab1 AS cor0
----
15616
2925
7345

query I rowsort
SELECT DISTINCT - col0 * col0 + col1 AS col1 FROM tab2 AS cor0
----
-18
-6025
-6224

query I rowsort
SELECT + ( + cor0.col0 ) + col2 FROM tab2 cor0
----
104
117
34

query I rowsort
SELECT ALL - 57 * col1 AS col2 FROM tab0
----
-4902
-5187
-5529

onlyif mysql # use DIV operator for integer division
query I rowsort label-5275
SELECT - col2 DIV + col0 + - col0 DIV col0 + + col1 FROM tab0
----
84
90
96

skipif mysql # not compatible
query I rowsort label-5275
SELECT - col2 / + col0 + - col0 / col0 + + col1 FROM tab0
----
84
90
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-5276
SELECT - 14 DIV - col1 + col1 AS col0 FROM tab1 AS cor0
----
11
14
26

skipif mysql # not compatible
query I rowsort label-5276
SELECT - 14 / - col1 + col1 AS col0 FROM tab1 AS cor0
----
11
14
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 * col0 + cor0.col0 col2 FROM tab0 AS cor0
----
70
7387
816

onlyif mysql # use DIV operator for integer division
query I rowsort label-5278
SELECT ( + col1 ) DIV cor0.col2 - - col0 * cor0.col1 FROM tab1 AS cor0
----
1040
640
78

skipif mysql # not compatible
query I rowsort label-5278
SELECT ( + col1 ) / cor0.col2 - - col0 * cor0.col1 FROM tab1 AS cor0
----
1040
640
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-5279
SELECT ALL col1 + - col1 DIV col1 AS col0 FROM tab0 AS cor0
----
85
90
96

skipif mysql # not compatible
query I rowsort label-5279
SELECT ALL col1 + - col1 / col1 AS col0 FROM tab0 AS cor0
----
85
90
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-5280
SELECT + 50 DIV - col2 - - col0 AS col0 FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-5280
SELECT + 50 / - col2 - - col0 AS col0 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT DISTINCT + 94 - + col1 FROM tab0 AS cor0
----
-3
3
8

query I rowsort
SELECT + - col1 * + col0 + + cor0.col0 AS col1 FROM tab1 AS cor0
----
-576
-75
-960

onlyif mysql # use DIV operator for integer division
query I rowsort label-5283
SELECT - cor0.col2 - col1 DIV col0 AS col0 FROM tab2 cor0
----
-26
-31
-38

skipif mysql # not compatible
query I rowsort label-5283
SELECT - cor0.col2 - col1 / col0 AS col0 FROM tab2 cor0
----
-26
-31
-38

onlyif mysql # use DIV operator for integer division
query I rowsort label-5284
SELECT + col0 DIV + col2 + tab1.col1 FROM tab1
----
11
13
26

skipif mysql # not compatible
query I rowsort label-5284
SELECT + col0 / + col2 + tab1.col1 FROM tab1
----
11
13
26

query I rowsort
SELECT DISTINCT - 11 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
-11

onlyif mysql # use DIV operator for integer division
query I rowsort label-5286
SELECT ALL + - col2 * cor0.col0 DIV - col2 col1 FROM tab1 AS cor0
----
3
64
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5286
SELECT ALL + - col2 * cor0.col0 / - col2 col1 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT + col0 + 68 AS col2 FROM tab2 cor0
----
146
147
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + 27 col2 FROM tab2 AS cor0
----
-189
-2106
-2133

onlyif mysql # use DIV operator for integer division
query I rowsort label-5289
SELECT DISTINCT - 40 DIV + 10 AS col2 FROM tab2, tab0 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-5289
SELECT DISTINCT - 40 / + 10 AS col2 FROM tab2, tab0 AS cor0
----
-4

query I rowsort
SELECT ( col2 ) * col1 AS col0 FROM tab2 cor0
----
1534
646
837

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5291
SELECT ALL CAST( + ( col1 ) AS SIGNED ) * + col2 FROM tab0 cor0
----
2838
7462
97

skipif mysql # not compatible
query I rowsort label-5291
SELECT ALL CAST ( + ( col1 ) AS INTEGER ) * + col2 FROM tab0 cor0
----
2838
7462
97

query I rowsort
SELECT ALL - 9 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to caf28657beb43049740febe1fa9ded5a

query I rowsort
SELECT 53 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to fede6033dee346dbd272085c05724fda

query I rowsort
SELECT DISTINCT 59 * col1 * - col0 AS col2 FROM tab2
----
-12803
-271518
-79237

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5295
SELECT CAST( - col0 AS SIGNED ) * + col2 + col1 AS col2 FROM tab2
----
-158
-1969
-2985

skipif mysql # not compatible
query I rowsort label-5295
SELECT CAST ( - col0 AS INTEGER ) * + col2 + col1 AS col2 FROM tab2
----
-158
-1969
-2985

query I rowsort
SELECT ALL + 78 * cor0.col2 AS col0 FROM tab0, tab1 cor0
----
9 values hashing to 33991048d4fe4da87a7eabd3f9b40f78

query I rowsort
SELECT - col2 * - col0 + - col2 AS col0 FROM tab1 AS cor0
----
108
3591
7584

query I rowsort
SELECT 77 AS col2 FROM tab2, tab1 cor0
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622

onlyif mysql # use DIV operator for integer division
query I rowsort label-5299
SELECT + ( col0 ) DIV col0 AS col2 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5299
SELECT + ( col0 ) / col0 AS col2 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT - 23 * - col1 + + col1 FROM tab0 AS cor0
----
2064
2184
2328

onlyif mysql # use DIV operator for integer division
query I rowsort label-5301
SELECT DISTINCT + 0 DIV - cor0.col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5301
SELECT DISTINCT + 0 / - cor0.col1 FROM tab2 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - ( cor0.col2 ) col1 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT ALL - cor0.col2 AS col0 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc

query I rowsort
SELECT ALL + col0 + - 62 * - col0 * - cor0.col0 FROM tab2 AS cor0
----
-3031
-377130
-386863

query I rowsort
SELECT DISTINCT - 59 FROM tab1, tab0 cor0
----
-59

query I rowsort
SELECT DISTINCT - 34 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-34

query I rowsort
SELECT ALL + col2 * + col1 + col1 FROM tab1 AS cor0
----
1261
1430
580

onlyif mysql # use DIV operator for integer division
query I rowsort label-5308
SELECT col1 * - ( col0 ) + col2 DIV - 63 AS col1 FROM tab0 AS cor0
----
-2064
-3395
-8100

skipif mysql # not compatible
query I rowsort label-5308
SELECT col1 * - ( col0 ) + col2 / - 63 AS col1 FROM tab0 AS cor0
----
-2064
-3395
-8100

query I rowsort
SELECT - + col2 + - ( - col1 ) AS col2 FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT DISTINCT 73 * col2 FROM tab1
----
3942
4161
7008

query I rowsort
SELECT col0 + 12 * + col1 * - col2 AS col2 FROM tab1 AS cor0
----
-14896
-16845
-6776

query I rowsort
SELECT 47 FROM tab0 AS cor0
----
47
47
47

query I rowsort
SELECT DISTINCT - 86 * col0 + 1 FROM tab0 AS cor0
----
-2063
-3009
-7653

query I rowsort
SELECT DISTINCT + col1 * col1 + - col2 * - col2 FROM tab1
----
3349
3592
9385

query I rowsort
SELECT - 41 * + col0 AS col1 FROM tab2
----
-287
-3198
-3239

onlyif mysql # use DIV operator for integer division
query I rowsort label-5316
SELECT 52 DIV col0 FROM tab1
----
0
0
17

skipif mysql # not compatible
query I rowsort label-5316
SELECT 52 / col0 FROM tab1
----
0
0
17

query I rowsort
SELECT ALL + 83 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 002a717a3d902d97220759065fb107c3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 16 - col0 col2 FROM tab2 AS cor0
----
-62
-63
9

query I rowsort
SELECT - col1 * cor0.col0 + cor0.col1 FROM tab2 AS cor0
----
-1326
-186
-4543

query I rowsort
SELECT col1 * col0 + + col2 FROM tab1 AS cor0
----
1136
132
697

query I rowsort
SELECT - col1 + ( col1 ) - + col2 AS col2 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT DISTINCT - ( - col1 ) + - 5 + col1 AS col0 FROM tab2
----
113
29
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-5323
SELECT 62 DIV col0 AS col0 FROM tab0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-5323
SELECT 62 / col0 AS col0 FROM tab0
----
0
1
2

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT tab1.col2 * - col0 * ( col0 ) + col1 * CAST ( - 30 AS REAL ) FROM tab1
----
-1266
-233772
-614790

query I rowsort
SELECT 73 + col1 FROM tab0
----
159
164
170

query I rowsort
SELECT + col1 - + 27 * - col1 AS col1 FROM tab0
----
2408
2548
2716

query I rowsort
SELECT ALL col0 - tab2.col0 AS col1 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT + cor1.col2 FROM tab1, tab2 cor0, tab2 cor1
----
26
27
38

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5329
SELECT ALL + CAST( NULL AS SIGNED ) FROM tab2 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-5329
SELECT ALL + CAST ( NULL AS INTEGER ) FROM tab2 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT tab1.col1 * + col1 + - col2 FROM tab1
----
43
622
73

query I rowsort
SELECT + ( cor1.col2 ) FROM tab2, tab2 AS cor0, tab0 cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT DISTINCT + 61 + - col1 AS col0 FROM tab0 AS cor0
----
-25
-30
-36

onlyif mysql # use DIV operator for integer division
query I rowsort label-5333
SELECT ALL - + col0 * col0 DIV col1 + + ( col2 ) * - col1 col1 FROM tab0 AS cor0
----
-109
-2844
-7549

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5333
SELECT ALL - + col0 * col0 / col1 + + ( col2 ) * - col1 col1 FROM tab0 AS cor0
----
-109
-2844
-7549

query I rowsort
SELECT ALL + + col1 * + col2 + col1 FROM tab1 AS cor0
----
1261
1430
580

query I rowsort
SELECT DISTINCT + cor0.col0 * ( + col1 ) * cor0.col2 + - col0 * col0 * ( col1 ) FROM tab0 AS cor0
----
-115430
-56693
18576

query I rowsort
SELECT ALL - - 77 * col1 FROM tab0 AS cor0
----
6622
7007
7469

query I rowsort
SELECT - col1 * col1 + + col1 FROM tab0 cor0
----
-7310
-8190
-9312

query I rowsort
SELECT ALL 94 + + 95 * col1 * - 34 AS col1 FROM tab1 cor0
----
-32206
-41896
-83886

query I rowsort
SELECT - + ( col1 ) + col1 AS col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + tab1.col0 - ( col0 ) FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 - + 27 col0 FROM tab2
----
-1
0
11

query I rowsort
SELECT + cor0.col0 * + col0 FROM tab2 cor0
----
49
6084
6241

query I rowsort
SELECT ALL - col1 * cor0.col1 * + 73 AS col2 FROM tab2 AS cor0
----
-21097
-254113
-70153

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 22 col0 FROM tab1 AS cor0
----
-22
-22
-22

query I rowsort
SELECT col1 + cor0.col1 * col1 FROM tab0 cor0
----
7482
8372
9506

query I rowsort
SELECT - - cor0.col1 * cor0.col2 AS col1 FROM tab0 AS cor0
----
2838
7462
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 81 * + tab2.col1 col2 FROM tab2
----
1377
2511
4779

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 29 col1 FROM tab2, tab1, tab0 AS cor0, tab0
----
29

query I rowsort
SELECT ALL ( - 39 ) * col2 AS col1 FROM tab1
----
-2106
-2223
-3744

query I rowsort
SELECT ALL ( + 7 ) AS col0 FROM tab1
----
7
7
7

query I rowsort
SELECT ALL + 86 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19

query I rowsort
SELECT - 0 + - col1 * 91 FROM tab2 AS cor0
----
-1547
-2821
-5369

query I rowsort
SELECT DISTINCT 73 FROM tab1, tab0, tab2 cor0
----
73

query I rowsort
SELECT ALL tab1.col0 * col2 - - col0 * tab1.col1 FROM tab1
----
240
4288
8720

query I rowsort
SELECT ALL - 50 - col0 FROM tab1
----
-114
-130
-53

query I rowsort
SELECT DISTINCT - 30 * - tab2.col0 + col0 - col0 FROM tab2
----
210
2340
2370

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 55 + col0 * + col0 col2 FROM tab0 AS cor0
----
1280
631
7976

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + 37 col0 FROM tab0
----
126
61
72

query I rowsort
SELECT ALL + col2 * col1 * 80 FROM tab1 AS cor0
----
112320
45600
99840

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 43 + col2 + + col0 col2 FROM tab1 AS cor0
----
100
164
219

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 25 * col0 + + 56 + + col0 col0 FROM tab2 AS cor0
----
-112
-1816
-1840

query I rowsort
SELECT ALL - cor0.col0 * cor0.col1 AS col1 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT ALL ( cor0.col0 ) * - ( + col1 * + col2 ) AS col0 FROM tab2 AS cor0
----
-119652
-51034
-5859

onlyif mysql # use DIV operator for integer division
query I rowsort label-5364
SELECT DISTINCT + col1 DIV col2 + + 40 * col2 * col0 FROM tab1 AS cor0
----
145920
307200
6480

skipif mysql # not compatible
query I rowsort label-5364
SELECT DISTINCT + col1 / col2 + + 40 * col2 * col0 FROM tab1 AS cor0
----
145920
307200
6480

onlyif mysql # use DIV operator for integer division
query I rowsort label-5365
SELECT ALL col1 * + col1 + + col0 DIV col1 + + col1 col0 FROM tab1 AS cor0
----
116
188
702

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5365
SELECT ALL col1 * + col1 + + col0 / col1 + + col1 col0 FROM tab1 AS cor0
----
116
188
702

query I rowsort
SELECT DISTINCT - - cor0.col0 + col2 * 75 * col1 FROM tab1 AS cor0
----
105303
42814
93680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 15 col0 FROM tab2
----
15
15
15

query I rowsort
SELECT DISTINCT + 61 * cor0.col2 * + col1 AS col1 FROM tab2 AS cor0
----
39406
51057
93574

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 + + col1 * 47 col1 FROM tab2 AS cor0
----
1464
2851
878

query I rowsort
SELECT + + 67 * col0 * ( - 27 ) - - cor0.col2 FROM tab1 AS cor0
----
-115719
-144624
-5373

query I rowsort
SELECT col0 * ( - cor0.col1 ) * + col2 FROM tab2 cor0
----
-119652
-51034
-5859

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5372
SELECT ALL col2 + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5372
SELECT ALL col2 + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5373
SELECT ALL + - col0 DIV + cor0.col1 + + col1 * col0 AS col0 FROM tab1 cor0
----
1034
634
78

skipif mysql # not compatible
query I rowsort label-5373
SELECT ALL + - col0 / + cor0.col1 + + col1 * col0 AS col0 FROM tab1 cor0
----
1034
634
78

query I rowsort
SELECT ALL + - col2 * col2 + + col0 FROM tab2 AS cor0
----
-1365
-598
-722

query I rowsort
SELECT ALL + col1 * ( + cor0.col2 ) + + col0 * 85 - col2 FROM tab0 cor0
----
14945
3071
4845

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 * - 87 + - col2 * cor0.col1 col0 FROM tab0 AS cor0
----
-14596
-184
-5709

query I rowsort
SELECT ALL - col0 + - 10 AS col1 FROM tab2 AS cor0
----
-17
-88
-89

onlyif mysql # use DIV operator for integer division
query I rowsort label-5378
SELECT ALL col2 + ( cor0.col0 ) DIV col1 AS col0 FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-5378
SELECT ALL col2 + ( cor0.col0 ) / col1 AS col0 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT 3 + - cor0.col2 FROM tab1 AS cor0
----
-51
-54
-93

query I rowsort
SELECT - 30 * cor0.col0 AS col1 FROM tab0 cor0
----
-1050
-2670
-720

onlyif mysql # use DIV operator for integer division
query I rowsort label-5381
SELECT + - col1 DIV - col1 AS col1 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5381
SELECT + - col1 / - col1 AS col1 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT + + ( - col2 ) + - col1 FROM tab0 AS cor0
----
-119
-173
-98

query I rowsort
SELECT DISTINCT + + col1 * + 77 FROM tab2 AS cor0
----
1309
2387
4543

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 72 col0 FROM tab0 cor0
----
72
72
72

query I rowsort
SELECT DISTINCT - + 92 + + 12 FROM tab1 AS cor0
----
-80

query I rowsort
SELECT DISTINCT + - col0 * col0 - - col2 FROM tab2 AS cor0
----
-22
-6058
-6203

query I rowsort
SELECT + - col0 + - 84 AS col0 FROM tab0 cor0
----
-108
-119
-173

query I rowsort
SELECT ALL + - 71 * + col1 AS col1 FROM tab2 AS cor0
----
-1207
-2201
-4189

query I rowsort
SELECT col1 * + col1 + + cor0.col1 * 29 FROM tab2 cor0
----
1860
5192
782

query I rowsort
SELECT DISTINCT + ( cor0.col0 ) AS col1 FROM tab1 cor0
----
3
64
80

query I rowsort
SELECT DISTINCT - ( - ( col2 ) ) + col1 AS col1 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT ALL 12 + col2 FROM tab0 AS cor0
----
13
45
94

query I rowsort
SELECT ALL - col0 - + ( col1 ) FROM tab0 AS cor0
----
-110
-132
-180

query I rowsort
SELECT ALL - - 24 * + col1 + + col1 AS col1 FROM tab1 AS cor0
----
250
325
650

query I rowsort
SELECT DISTINCT col1 * - ( + col0 ) AS col1 FROM tab2 AS cor0
----
-1343
-217
-4602

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5396
SELECT ALL CAST( NULL AS SIGNED ) * col0 * - col2 + - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5396
SELECT ALL CAST ( NULL AS INTEGER ) * col0 * - col2 + - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 42 AS col1 FROM tab0, tab0 AS cor0, tab2 cor1
----
27 values hashing to 56f86ff01cd96a3511acd46e0e811e27

query I rowsort
SELECT col2 - ( tab2.col2 ) AS col0 FROM tab2
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5399
SELECT - - CAST( col1 AS SIGNED ) * + col0 FROM tab2 AS cor0
----
1343
217
4602

skipif mysql # not compatible
query I rowsort label-5399
SELECT - - CAST ( col1 AS INTEGER ) * + col0 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT - ( col1 ) * col2 AS col1 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT ALL 24 FROM tab0, tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
27 values hashing to aeeac431d22528188e8a5a2a60d2d080

onlyif mysql # use DIV operator for integer division
query I rowsort label-5402
SELECT 42 DIV - col1 + tab0.col0 FROM tab0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-5402
SELECT 42 / - col1 + tab0.col0 FROM tab0
----
24
35
89

query I rowsort
SELECT + - col0 * + ( + col0 * - col0 ) FROM tab2 cor0
----
343
474552
493039

query I rowsort
SELECT - col0 + - col0 + - 78 * - cor0.col2 AS col1 FROM tab2 AS cor0
----
1872
2092
2806

query I rowsort
SELECT DISTINCT - 87 + tab1.col1 + - col0 FROM tab1
----
-141
-154
-64

query I rowsort
SELECT + col0 + ( + col0 * + col0 ) + cor0.col1 FROM tab1 AS cor0
----
38
4170
6493

query I rowsort
SELECT ALL 51 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d8bf0a05c9c4d2a93812d106baae4752

query I rowsort
SELECT DISTINCT + col0 + + tab1.col2 * + 16 FROM tab1
----
1616
867
976

onlyif mysql # use DIV operator for integer division
query I rowsort label-5409
SELECT col2 + 60 DIV + 74 FROM tab0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-5409
SELECT col2 + 60 / + 74 FROM tab0
----
1
33
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-5410
SELECT DISTINCT - cor0.col0 + + ( 70 ) DIV - col2 AS col2 FROM tab1 AS cor0
----
-4
-65
-80

skipif mysql # not compatible
query I rowsort label-5410
SELECT DISTINCT - cor0.col0 + + ( 70 ) / - col2 AS col2 FROM tab1 AS cor0
----
-4
-65
-80

query I rowsort
SELECT DISTINCT + col2 * col1 * - col1 + col0 * 53 FROM tab2 AS cor0
----
-25576
-6795
-86372

onlyif mysql # use DIV operator for integer division
query I rowsort label-5412
SELECT ALL - - col0 - 50 DIV col0 FROM tab2 AS cor0
----
0
78
79

skipif mysql # not compatible
query I rowsort label-5412
SELECT ALL - - col0 - 50 / col0 FROM tab2 AS cor0
----
0
78
79

query I rowsort
SELECT DISTINCT + col0 * 89 + + col2 FROM tab1 AS cor0
----
321
5753
7216

query I rowsort
SELECT + 28 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97

query I rowsort
SELECT - ( col0 ) - col2 * 85 FROM tab1 AS cor0
----
-4593
-4909
-8240

query I rowsort
SELECT + ( - col1 ) + + 25 FROM tab0 AS cor0
----
-61
-66
-72

query I rowsort
SELECT ALL tab0.col2 * + 78 * col2 AS col0 FROM tab0
----
524472
78
84942

query I rowsort
SELECT ALL - ( col0 ) * col1 FROM tab0 cor0
----
-2064
-3395
-8099

query I rowsort
SELECT - 6 * - col1 + + col1 FROM tab1
----
182
70
91

query I rowsort
SELECT col2 * - 34 + - col2 FROM tab2
----
-1330
-910
-945

query I rowsort
SELECT + cor1.col1 AS col1 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

query I rowsort
SELECT - 95 + 87 FROM tab1 cor0
----
-8
-8
-8

query I rowsort
SELECT ALL col2 * - col1 * tab2.col1 FROM tab2
----
-10982
-25947
-90506

query I rowsort
SELECT DISTINCT ( tab2.col0 ) AS col0 FROM tab2
----
7
78
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-5425
SELECT + col1 * + tab0.col2 DIV - col2 AS col1 FROM tab0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-5425
SELECT + col1 * + tab0.col2 / - col2 AS col1 FROM tab0
----
-86
-91
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-5426
SELECT ( ( + col1 ) ) DIV ( col0 + col2 * 5 ) FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5426
SELECT ( ( + col1 ) ) / ( col0 + col2 * 5 ) FROM tab2
----
0
0
0

query I rowsort
SELECT - + ( col2 ) * col0 * col2 AS col1 FROM tab0 AS cor0
----
-26136
-35
-598436

query I rowsort
SELECT - + 14 * col0 * col2 AS col0 FROM tab1 AS cor0
----
-107520
-2268
-51072

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 68 col1 FROM tab2, tab1 cor0
----
9 values hashing to 599bee15ac4cc39b859854e07dfe7990

query I rowsort
SELECT - 95 * 10 FROM tab1 AS cor0
----
-950
-950
-950

query I rowsort
SELECT - + ( + col0 ) * col1 AS col2 FROM tab2 cor0
----
-1343
-217
-4602

query I rowsort
SELECT DISTINCT 15 * + col1 - - col1 AS col2 FROM tab1
----
160
208
416

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5433
SELECT DISTINCT - col2 * + col1 + CAST( col0 AS SIGNED ) * + col0 AS col1 FROM tab0
----
-2262
1128
459

skipif mysql # not compatible
query I rowsort label-5433
SELECT DISTINCT - col2 * + col1 + CAST ( col0 AS INTEGER ) * + col0 AS col1 FROM tab0
----
-2262
1128
459

query I rowsort
SELECT + - col1 + cor0.col0 * - col1 - - col1 FROM tab2 AS cor0
----
-1343
-217
-4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-5435
SELECT - col2 + + col0 * col2 DIV 26 FROM tab1 AS cor0
----
-48
199
83

skipif mysql # not compatible
query I rowsort label-5435
SELECT - col2 + + col0 * col2 / 26 FROM tab1 AS cor0
----
-48
199
83

query I rowsort
SELECT - cor0.col1 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2

onlyif mysql # use DIV operator for integer division
query I rowsort label-5437
SELECT ALL + + ( col1 ) DIV - col0 AS col2 FROM tab0 cor0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-5437
SELECT ALL + + ( col1 ) / - col0 AS col2 FROM tab0 cor0
----
-1
-2
-3

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5438
SELECT ALL + CAST( NULL AS SIGNED ) + tab0.col1 FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-5438
SELECT ALL + CAST ( NULL AS INTEGER ) + tab0.col1 FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col2 - - col1 col0 FROM tab2
----
1461
735
760

onlyif mysql # use DIV operator for integer division
query I rowsort label-5440
SELECT + tab1.col0 - ( col1 ) DIV + tab1.col2 FROM tab1
----
3
64
80

skipif mysql # not compatible
query I rowsort label-5440
SELECT + tab1.col0 - ( col1 ) / + tab1.col2 FROM tab1
----
3
64
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5441
SELECT DISTINCT - col2 + - col1 + col1 * + col2 / + CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5441
SELECT DISTINCT - col2 + - col1 + col1 * + col2 / + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5442
SELECT DISTINCT - col0 + + CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5442
SELECT DISTINCT - col0 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL

query I rowsort
SELECT + col1 + col1 * - 66 FROM tab1 cor0
----
-1690
-650
-845

query I rowsort
SELECT + col0 + col1 * col0 AS col1 FROM tab0 AS cor0
----
2088
3430
8188

query I rowsort
SELECT - col1 + + ( col2 ) * + col2 AS col2 FROM tab1 AS cor0
----
2890
3239
9203

query I rowsort
SELECT + + col0 + 86 FROM tab1 AS cor0
----
150
166
89

query I rowsort
SELECT + col0 + - ( - col2 ) FROM tab1 cor0
----
121
176
57

query I rowsort
SELECT ALL + + col1 * 37 FROM tab1 AS cor0
----
370
481
962

query I rowsort
SELECT DISTINCT - + col2 * + ( col2 ) * + 80 FROM tab2 AS cor0
----
-115520
-54080
-58320

query I rowsort
SELECT ALL - 50 + ( cor0.col0 ) * col1 AS col2 FROM tab2 AS cor0
----
1293
167
4552

query I rowsort
SELECT - - 98 * + 21 AS col0 FROM tab0 AS cor0
----
2058
2058
2058

query I rowsort
SELECT DISTINCT + ( col0 ) * + col0 + + ( + col2 ) * - col2 FROM tab1 AS cor0
----
-2816
-2907
847

query I rowsort
SELECT ALL + tab2.col2 * 65 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 85df5d3dacc5ae0a06f5015130ef3aeb

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5454
SELECT DISTINCT + + cor0.col1 - - CAST( col2 AS SIGNED ) FROM tab1 AS cor0
----
109
67
80

skipif mysql # not compatible
query I rowsort label-5454
SELECT DISTINCT + + cor0.col1 - - CAST ( col2 AS INTEGER ) FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT 86 * - cor1.col0 AS col1 FROM tab0, tab1 AS cor0, tab2 AS cor1, tab1, tab1 AS cor2
----
243 values hashing to f459b7dbb0900dc1e2e77dc3b0fac531

query I rowsort
SELECT ALL - + col0 * 60 - - 50 AS col2 FROM tab0 cor0
----
-1390
-2050
-5290

query I rowsort
SELECT 74 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31

onlyif mysql # use DIV operator for integer division
query I rowsort label-5458
SELECT ALL + col2 DIV 25 + - col0 FROM tab1 AS cor0
----
-1
-62
-77

skipif mysql # not compatible
query I rowsort label-5458
SELECT ALL + col2 / 25 + - col0 FROM tab1 AS cor0
----
-1
-62
-77

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5459
SELECT DISTINCT - + col1 * - CAST( - col1 AS SIGNED ) - col0 FROM tab0 cor0
----
-7420
-8370
-9444

skipif mysql # not compatible
query I rowsort label-5459
SELECT DISTINCT - + col1 * - CAST ( - col1 AS INTEGER ) - col0 FROM tab0 cor0
----
-7420
-8370
-9444

query I rowsort
SELECT DISTINCT cor0.col0 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
24
35
89

query I rowsort
SELECT - ( 45 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 71160abf09589695379a70558726f0ba

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5462
SELECT DISTINCT CAST( NULL AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-5462
SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

query I rowsort
SELECT + col0 - + col2 AS col2 FROM tab2
----
-20
41
52

query I rowsort
SELECT col0 + + ( 5 ) + col0 AS col1 FROM tab1
----
11
133
165

query I rowsort
SELECT ALL + col1 * + col0 - - 54 AS col2 FROM tab0
----
2118
3449
8153

onlyif mysql # use DIV operator for integer division
query I rowsort label-5466
SELECT ALL + - col1 DIV ( - 98 + col0 ) AS col0 FROM tab0 AS cor0
----
1
1
10

skipif mysql # not compatible
query I rowsort label-5466
SELECT ALL + - col1 / ( - 98 + col0 ) AS col0 FROM tab0 AS cor0
----
1
1
10

query I rowsort
SELECT ALL - + col2 * cor0.col1 + + col1 * + col1 AS col1 FROM tab1 AS cor0
----
-1079
-470
-728

query I rowsort
SELECT ALL + tab0.col1 + + col0 + + col0 FROM tab0
----
134
167
269

query I rowsort
SELECT ALL - - 84 + + col2 * - ( col1 ) AS col0 FROM tab1 AS cor0
----
-1164
-1320
-486

onlyif mysql # use DIV operator for integer division
query I rowsort label-5470
SELECT + col0 + col0 DIV + col2 FROM tab0
----
24
70
90

skipif mysql # not compatible
query I rowsort label-5470
SELECT + col0 + col0 / + col2 FROM tab0
----
24
70
90

query I rowsort
SELECT DISTINCT ( - ( - col0 ) ) + col2 + 46 AS col1 FROM tab1
----
103
167
222

query I rowsort
SELECT + ( - 68 ) AS col2 FROM tab2 AS cor0
----
-68
-68
-68

query I rowsort
SELECT DISTINCT 79 + - col1 * + col0 FROM tab2
----
-1264
-138
-4523

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5474
SELECT - ( col1 ) + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5474
SELECT - ( col1 ) + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 8 + + col2 * + 18 + col0 col2 FROM tab0 AS cor0
----
1557
45
610

query I rowsort
SELECT DISTINCT - - col2 * col1 + + col1 * col2 FROM tab2 cor0
----
1292
1674
3068

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col2 * + col1 + + ( col1 ) col1 FROM tab0 AS cor0
----
-2752
-7371
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5478
SELECT + + 53 DIV - col0 FROM tab2 AS cor0
----
-7
0
0

skipif mysql # not compatible
query I rowsort label-5478
SELECT + + 53 / - col0 FROM tab2 AS cor0
----
-7
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5479
SELECT ALL - col1 - + col1 * 97 DIV col2 AS col1 FROM tab0 cor0
----
-198
-338
-9506

skipif mysql # not compatible
query I rowsort label-5479
SELECT ALL - col1 - + col1 * 97 / col2 AS col1 FROM tab0 cor0
----
-198
-338
-9506

query I rowsort
SELECT ALL - + 22 AS col1 FROM tab0 cor0
----
-22
-22
-22

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 97 + + col2 col2 FROM tab0 AS cor0
----
-15
-64
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-5482
SELECT ( - col2 ) DIV col1 FROM tab2 AS cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-5482
SELECT ( - col2 ) / col1 FROM tab2 AS cor0
----
-2
0
0

query I rowsort
SELECT 45 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to 14cec871edc37b5056cda01c8331fdca

query I rowsort
SELECT DISTINCT + 14 AS col2 FROM tab1
----
14

query I rowsort
SELECT 14 + + col2 * tab0.col1 AS col2 FROM tab0
----
111
2852
7476

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col2 + col0 col2 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT DISTINCT 8 * + col2 + + col2 AS col2 FROM tab2 AS cor0
----
234
243
342

query I rowsort
SELECT - 45 * col2 FROM tab2 AS cor0
----
-1170
-1215
-1710

query I rowsort
SELECT + - 21 FROM tab0, tab1 cor0, tab1 AS cor1, tab2, tab2 cor2
----
243 values hashing to 2388aaad3e0b3269d9dd4c19c7651676

query I rowsort
SELECT ALL 40 AS col1 FROM tab0, tab2 AS cor0, tab0 cor1
----
27 values hashing to e4d10f7d6c34a281f524e45e82ebd2a0

query I rowsort
SELECT ALL + + 42 * + cor0.col2 * col1 AS col1 FROM tab2 cor0
----
27132
35154
64428

query I rowsort
SELECT col1 + - col0 * 91 AS col2 FROM tab1 AS cor0
----
-247
-5814
-7267

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 + 0 * col2 col0 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT ALL col2 + 38 * col2 FROM tab2 AS cor0
----
1014
1053
1482

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5495
SELECT + col0 * + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5495
SELECT + col0 * + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 + + col0 * col0 AS col1 FROM tab2 cor0
----
6110
6279
76

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5497
SELECT - col2 * CAST( NULL AS SIGNED ) col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5497
SELECT - col2 * CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + cor0.col1 + + col2 * col1 col0 FROM tab1 cor0
----
-70
1326
208

query I rowsort
SELECT DISTINCT - + 73 + + col0 AS col1 FROM tab1 AS cor0
----
-70
-9
7

query I rowsort
SELECT ALL + cor0.col0 + col2 * col0 AS col0 FROM tab1 AS cor0
----
165
3712
7760

query I rowsort
SELECT + ( 86 ) * + col1 - cor0.col0 * 76 FROM tab1 AS cor0
----
-4004
-4962
2008

query I rowsort
SELECT ALL - 22 + cor0.col2 AS col0 FROM tab1 AS cor0
----
32
35
74

query I rowsort
SELECT 40 FROM tab0, tab2, tab2 AS cor0, tab1 AS cor1
----
81 values hashing to 09624b9180d40f03a4dda4b4c17356c0

query I rowsort
SELECT ALL + col1 - - col2 * + tab0.col2 AS col1 FROM tab0
----
1175
6815
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-5505
SELECT ALL col1 DIV col0 + - col0 - ( - col2 ) * col0 AS col2 FROM tab1 AS cor0
----
167
3584
7600

skipif mysql # not compatible
query I rowsort label-5505
SELECT ALL col1 / col0 + - col0 - ( - col2 ) * col0 AS col2 FROM tab1 AS cor0
----
167
3584
7600

onlyif mysql # use DIV operator for integer division
query I rowsort label-5506
SELECT DISTINCT + col1 DIV - col0 + + col1 FROM tab0 AS cor0
----
83
90
95

skipif mysql # not compatible
query I rowsort label-5506
SELECT DISTINCT + col1 / - col0 + + col1 FROM tab0 AS cor0
----
83
90
95

query I rowsort
SELECT - col1 + col0 * col2 * - 34 FROM tab2 AS cor0
----
-102085
-6457
-69011

query I rowsort
SELECT ALL ( 38 ) AS col1 FROM tab1 AS cor0
----
38
38
38

query I rowsort
SELECT ALL - 38 + col2 FROM tab0 cor0
----
-37
-5
44

query I rowsort
SELECT 90 * col0 + col1 * col1 AS col2 FROM tab2 AS cor0
----
10501
1591
7399

query I rowsort
SELECT - cor0.col2 + - col1 AS col0 FROM tab2 AS cor0
----
-55
-58
-85

query I rowsort
SELECT DISTINCT - ( + col0 ) * col1 + ( col2 ) FROM tab2
----
-1305
-190
-4576

query I rowsort
SELECT ALL ( + col2 ) + + tab1.col2 * + col1 AS col2 FROM tab1
----
1344
1458
627

query I rowsort
SELECT DISTINCT + cor0.col2 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
1
33
82

query I rowsort
SELECT - + cor0.col1 * - 13 AS col0 FROM tab1 AS cor0
----
130
169
338

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 + + 83 * col2 col2 FROM tab0 AS cor0
----
2772
6888
84

onlyif mysql # use DIV operator for integer division
query I rowsort label-5517
SELECT - 31 * - cor0.col1 DIV col1 + - 12 FROM tab0 AS cor0
----
19
19
19

skipif mysql # not compatible
query I rowsort label-5517
SELECT - 31 * - cor0.col1 / col1 + - 12 FROM tab0 AS cor0
----
19
19
19

skipif mysql # not compatible
query I rowsort
SELECT + col1 * CAST ( + col0 AS REAL ) + + col0 FROM tab1
----
1120
704
81

query I rowsort
SELECT + + col1 * 70 AS col2 FROM tab1 AS cor0
----
1820
700
910

query I rowsort
SELECT ALL col2 * - ( 68 ) * col0 FROM tab0
----
-2380
-496264
-53856

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + col0 * col0 col1 FROM tab0 AS cor0
----
1322
662
8012

query I rowsort
SELECT - 14 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to c2bf0e2420d22cd58d7ee3b30827afcc

query I rowsort
SELECT + cor1.col1 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

onlyif mysql # use DIV operator for integer division
query I rowsort label-5524
SELECT DISTINCT col2 DIV col1 col1 FROM tab0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5524
SELECT DISTINCT col2 / col1 col1 FROM tab0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5525
SELECT + col1 * tab0.col0 DIV + col1 + - tab0.col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5525
SELECT + col1 * tab0.col0 / + col1 + - tab0.col0 FROM tab0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5526
SELECT col0 + CAST( col1 AS SIGNED ) FROM tab2
----
137
38
96

skipif mysql # not compatible
query I rowsort label-5526
SELECT col0 + CAST ( col1 AS INTEGER ) FROM tab2
----
137
38
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5527
SELECT ALL cor0.col2 * CAST( + col2 AS SIGNED ) FROM tab1 AS cor0
----
2916
3249
9216

skipif mysql # not compatible
query I rowsort label-5527
SELECT ALL cor0.col2 * CAST ( + col2 AS INTEGER ) FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT DISTINCT 78 FROM tab2, tab1 AS cor0
----
78

query I rowsort
SELECT DISTINCT - cor0.col0 + col1 * - 90 AS col1 FROM tab0 AS cor0
----
-7764
-8279
-8765

query I rowsort
SELECT ALL col1 - cor0.col0 AS col2 FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT + + col2 + cor0.col2 * + col1 FROM tab0 AS cor0
----
2871
7544
98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5532
SELECT - col1 / - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5532
SELECT - col1 / - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5533
SELECT ALL CAST( + col1 AS SIGNED ) * + col1 FROM tab2
----
289
3481
961

skipif mysql # not compatible
query I rowsort label-5533
SELECT ALL CAST ( + col1 AS INTEGER ) * + col1 FROM tab2
----
289
3481
961

query I rowsort
SELECT ALL 40 AS col2 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to e4d10f7d6c34a281f524e45e82ebd2a0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5535
SELECT ALL - col1 DIV - 19 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5535
SELECT ALL - col1 / - 19 FROM tab1
----
0
0
1

query I rowsort
SELECT + 35 FROM tab0, tab2 cor0
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29

query I rowsort
SELECT ALL - + cor0.col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 3000337dd3f11e9cfd5a312b01ef3f8b

query I rowsort
SELECT + cor0.col1 + - col1 + + ( ( col2 ) * - col2 ) AS col2 FROM tab0 AS cor0
----
-1
-1089
-6724

query I rowsort
SELECT + 43 * col0 FROM tab1 AS cor0
----
129
2752
3440

skipif mysql # not compatible
query I rowsort
SELECT ALL + - ( col1 ) + - CAST ( ( + col1 ) + 98 AS REAL ) * - col2 AS col0 FROM tab1 AS cor0
----
10643
6146
6670

query I rowsort
SELECT ALL - col0 + - col0 * 80 AS col2 FROM tab2 cor0
----
-567
-6318
-6399

query I rowsort
SELECT + ( tab0.col2 ) AS col0 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT + 19 * 43 FROM tab2
----
817
817
817

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col1 * + col0 ) col2 FROM tab2
----
1343
217
4602

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5545
SELECT DISTINCT - + CAST( NULL AS DECIMAL ) FROM tab1, tab0, tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5545
SELECT DISTINCT - + CAST ( NULL AS REAL ) FROM tab1, tab0, tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL + col1 * + col2 + + cor0.col0 AS col2 FROM tab2 AS cor0
----
1612
725
844

query I rowsort
SELECT DISTINCT - - 70 AS col1 FROM tab2 AS cor0
----
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col1 * - cor0.col2 col1 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT DISTINCT - col1 + - col1 * col2 AS col1 FROM tab2 AS cor0
----
-1593
-663
-868

query I rowsort
SELECT ALL cor0.col1 + 12 + col1 AS col2 FROM tab1 AS cor0
----
32
38
64

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5551
SELECT DISTINCT CAST( 33 AS SIGNED ) + - col2 FROM tab2 cor0
----
-5
6
7

skipif mysql # not compatible
query I rowsort label-5551
SELECT DISTINCT CAST ( 33 AS INTEGER ) + - col2 FROM tab2 cor0
----
-5
6
7

query I rowsort
SELECT ALL 83 * 88 FROM tab1 AS cor0
----
7304
7304
7304

query I rowsort
SELECT + cor0.col1 * + 26 AS col1 FROM tab1 AS cor0
----
260
338
676

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 18 * col1 col1 FROM tab0 AS cor0
----
-1548
-1638
-1746

query I rowsort
SELECT DISTINCT 54 * col2 FROM tab1 cor0
----
2916
3078
5184

query I rowsort
SELECT - col1 + + tab0.col1 - - col0 AS col2 FROM tab0
----
24
35
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + cor0.col1 col2 FROM tab1 cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + - CAST ( col2 AS REAL ) * + col0 - - col2 AS col0 FROM tab1 AS cor0
----
-108
-3591
-7584

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5559
SELECT + + CAST( NULL AS DECIMAL ) * ( col1 ) + CAST( NULL AS SIGNED ) * cor0.col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5559
SELECT + + CAST ( NULL AS REAL ) * ( col1 ) + CAST ( NULL AS INTEGER ) * cor0.col0 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5560
SELECT ALL - cor0.col1 + col0 + col2 DIV - col0 FROM tab0 AS cor0
----
-2
-62
-63

skipif mysql # not compatible
query I rowsort label-5560
SELECT ALL - cor0.col1 + col0 + col2 / - col0 FROM tab0 AS cor0
----
-2
-62
-63

query I rowsort
SELECT - 87 + col2 AS col0 FROM tab1
----
-30
-33
9

query I rowsort
SELECT - ( - col1 ) * - col1 + col0 AS col2 FROM tab0
----
-7372
-8192
-9374

query I rowsort
SELECT DISTINCT 4 + + col2 AS col1 FROM tab0 AS cor0
----
37
5
86

query I rowsort
SELECT + 96 * col2 * + col1 FROM tab1 AS cor0
----
119808
134784
54720

query I rowsort
SELECT DISTINCT col2 + + col0 * col2 AS col2 FROM tab1 cor0
----
216
3705
7776

query I rowsort
SELECT col2 + - col1 * + col1 FROM tab1 AS cor0
----
-43
-622
-73

query I rowsort
SELECT DISTINCT + 59 AS col2 FROM tab0
----
59

query I rowsort
SELECT DISTINCT + tab1.col2 FROM tab0, tab2, tab0 AS cor0, tab1
----
54
57
96

query I rowsort
SELECT - col1 + + 88 FROM tab2
----
29
57
71

query I rowsort
SELECT DISTINCT + col0 + - 13 + cor0.col0 AS col2 FROM tab0 AS cor0
----
165
35
57

query I rowsort
SELECT ALL - cor0.col0 * col0 AS col2 FROM tab1 AS cor0
----
-4096
-6400
-9

query I rowsort
SELECT - col2 + - ( + cor0.col2 ) FROM tab0 AS cor0
----
-164
-2
-66

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5573
SELECT ALL + cor0.col0 * - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5573
SELECT ALL + cor0.col0 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 * col0 - - col1 FROM tab2 AS cor0
----
1360
248
4661

query I rowsort
SELECT DISTINCT - + col0 * + col1 + cor0.col0 * col0 FROM tab0 AS cor0
----
-1488
-178
-2170

query I rowsort
SELECT - col1 * + ( 99 ) + + col0 FROM tab0 AS cor0
----
-8490
-8920
-9568

query I rowsort
SELECT DISTINCT + col1 * + col1 - col2 FROM tab0 AS cor0
----
7363
8199
9408

query I rowsort
SELECT ALL + - col1 * + col1 AS col0 FROM tab0 cor0
----
-7396
-8281
-9409

query I rowsort
SELECT + col2 * col0 * col2 AS col0 FROM tab0
----
26136
35
598436

onlyif mysql # use DIV operator for integer division
query I rowsort label-5580
SELECT ALL - col2 - + col2 DIV + tab0.col2 FROM tab0
----
-2
-34
-83

skipif mysql # not compatible
query I rowsort label-5580
SELECT ALL - col2 - + col2 / + tab0.col2 FROM tab0
----
-2
-34
-83

query I rowsort
SELECT DISTINCT tab1.col2 + + col1 - 76 * + col2 AS col2 FROM tab1
----
-4024
-4265
-7187

query I rowsort
SELECT col0 + + tab1.col0 + - col1 FROM tab1
----
-20
118
147

query I rowsort
SELECT - + col1 * + col2 + col2 FROM tab1 AS cor0
----
-1152
-1350
-513

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5584
SELECT DISTINCT + - col0 + + CAST( NULL AS SIGNED ) * + 81 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5584
SELECT DISTINCT + - col0 + + CAST ( NULL AS INTEGER ) * + 81 FROM tab0 cor0
----
NULL

query I rowsort
SELECT ALL - + col1 + + col1 * col1 AS col0 FROM tab0 cor0
----
7310
8190
9312

query I rowsort
SELECT ALL cor0.col0 + 29 + + col0 AS col2 FROM tab2 AS cor0
----
185
187
43

query I rowsort
SELECT DISTINCT + col2 * cor0.col2 * + 38 + - col0 AS col0 FROM tab1 AS cor0
----
110805
123398
350128

query I rowsort
SELECT DISTINCT + col2 + 96 FROM tab1
----
150
153
192

query I rowsort
SELECT - 28 AS col0 FROM tab2 cor0
----
-28
-28
-28

query I rowsort
SELECT - col1 + ( - col1 * - 45 ) + - ( + col1 ) AS col1 FROM tab0 AS cor0
----
3698
3913
4171

query I rowsort
SELECT col0 + + ( col1 ) * col1 + tab1.col1 * - col0 AS col2 FROM tab1
----
-476
-791
601

query I rowsort
SELECT 32 AS col1 FROM tab1, tab0 cor0
----
9 values hashing to d30a2acbf33c88274474306936d3227b

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5593
SELECT - col1 * CAST( col2 AS SIGNED ) AS col0 FROM tab0
----
-2838
-7462
-97

skipif mysql # not compatible
query I rowsort label-5593
SELECT - col1 * CAST ( col2 AS INTEGER ) AS col0 FROM tab0
----
-2838
-7462
-97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5594
SELECT DISTINCT - + col2 * - CAST( NULL AS SIGNED ) + - ( + col2 ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5594
SELECT DISTINCT - + col2 * - CAST ( NULL AS INTEGER ) + - ( + col2 ) FROM tab2 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5595
SELECT col2 DIV + col0 + - col2 FROM tab2
----
-24
-26
-38

skipif mysql # not compatible
query I rowsort label-5595
SELECT col2 / + col0 + - col2 FROM tab2
----
-24
-26
-38

query I rowsort
SELECT - cor0.col0 * cor0.col0 FROM tab0, tab1 cor0
----
9 values hashing to b1a10d0ce1bd78a97a3f25900325a81f

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + col1 col2 FROM tab0
----
172
182
194

onlyif mysql # use DIV operator for integer division
query I rowsort label-5598
SELECT - col1 + + CAST( + col0 AS SIGNED ) DIV + col1 FROM tab2
----
-13
-31
-58

skipif mysql # not compatible
query I rowsort label-5598
SELECT - col1 + + CAST ( + col0 AS INTEGER ) / + col1 FROM tab2
----
-13
-31
-58

onlyif mysql # use DIV operator for integer division
query I rowsort label-5599
SELECT DISTINCT col2 DIV 18 FROM tab1
----
3
5

skipif mysql # not compatible
query I rowsort label-5599
SELECT DISTINCT col2 / 18 FROM tab1
----
3
5

query IIIIIIIII rowsort
SELECT * FROM tab0, tab2 cor0 CROSS JOIN tab2 cor1
----
243 values hashing to 5d85c5683e3ffd6d68920690d7302f7d

onlyif mysql # use DIV operator for integer division
query I rowsort label-5601
SELECT - col2 * 10 + - col1 + + col0 DIV - 48 AS col2 FROM tab0 AS cor0
----
-107
-416
-912

skipif mysql # not compatible
query I rowsort label-5601
SELECT - col2 * 10 + - col1 + + col0 / - 48 AS col2 FROM tab0 AS cor0
----
-107
-416
-912

onlyif mysql # use DIV operator for integer division
query I rowsort label-5602
SELECT ALL ( col1 ) DIV col0 AS col2 FROM tab0 AS cor0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-5602
SELECT ALL ( col1 ) / col0 AS col2 FROM tab0 AS cor0
----
1
2
3

query I rowsort
SELECT - - col2 + - 72 AS col0 FROM tab2 cor0
----
-34
-45
-46

query I rowsort
SELECT DISTINCT + 86 AS col1 FROM tab1, tab2 AS cor0, tab0, tab1 AS cor1
----
86

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5605
SELECT - + CAST( NULL AS SIGNED ) * cor0.col2 + col0 * + col0 + 53 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5605
SELECT - + CAST ( NULL AS INTEGER ) * cor0.col2 + col0 * + col0 + 53 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - - col2 + ( col0 ) FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT ALL + + col0 + + col1 AS col1 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT DISTINCT ( cor0.col0 ) + - col0 * col1 FROM tab2 AS cor0
----
-1264
-210
-4524

query I rowsort
SELECT DISTINCT + - 22 FROM tab0 cor0
----
-22

query I rowsort
SELECT ALL - 5 * - col1 AS col0 FROM tab0 AS cor0
----
430
455
485

query I rowsort
SELECT + + ( + col1 ) * cor0.col0 * - 13 AS col2 FROM tab2 AS cor0
----
-17459
-2821
-59826

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - col0 * col1 col0 FROM tab0 AS cor0
----
-1978
-3298
-8008

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5613
SELECT + CAST( NULL AS SIGNED ) AS col2 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-5613
SELECT + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT 46 AS col2 FROM tab2 cor0
----
46
46
46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + - cor0.col2 * 15 + + 65 col2 FROM tab1 AS cor0
----
-1388
-771
-800

onlyif mysql # use DIV operator for integer division
query I rowsort label-5616
SELECT cor0.col0 + + cor0.col1 DIV col2 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-5616
SELECT cor0.col0 + + cor0.col1 / col2 col2 FROM tab1 AS cor0
----
3
64
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-5617
SELECT DISTINCT + 60 DIV + cor0.col0 col0 FROM tab2 AS cor0
----
0
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5617
SELECT DISTINCT + 60 / + cor0.col0 col0 FROM tab2 AS cor0
----
0
8

query I rowsort
SELECT ALL - 61 + col0 FROM tab2 AS cor0
----
-54
17
18

onlyif mysql # use DIV operator for integer division
query I rowsort label-5619
SELECT DISTINCT col1 DIV + col0 + - 47 FROM tab0 AS cor0
----
-44
-45
-46

skipif mysql # not compatible
query I rowsort label-5619
SELECT DISTINCT col1 / + col0 + - 47 FROM tab0 AS cor0
----
-44
-45
-46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 64 + + col2 * + ( + col1 * col0 ) col0 FROM tab1 AS cor0
----
36416
4148
99776

query I rowsort
SELECT DISTINCT - + col0 * col2 * 42 FROM tab2 AS cor0
----
-126084
-7938
-85176

query I rowsort
SELECT ALL + 82 AS col1 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 99920d9f7cd9cdccef99cfa459ae6944

query I rowsort
SELECT ALL col2 + + col0 * col1 AS col0 FROM tab2 AS cor0
----
1381
244
4628

query I rowsort
SELECT DISTINCT + col0 * - ( - col0 + + col2 ) FROM tab2 AS cor0
----
-140
3239
4056

query I rowsort
SELECT + + col2 - + col2 * col2 FROM tab0 AS cor0
----
-1056
-6642
0

query I rowsort
SELECT ALL col0 + + col2 AS col2 FROM tab0 cor0
----
171
36
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 - 27 * col0 col2 FROM tab2 AS cor0
----
-182
-2028
-2054

query I rowsort
SELECT col0 + + col2 + col0 AS col0 FROM tab2 AS cor0
----
182
196
41

query I rowsort
SELECT ALL 40 FROM tab2, tab2 AS cor0, tab1 cor1
----
27 values hashing to e4d10f7d6c34a281f524e45e82ebd2a0

query I rowsort
SELECT DISTINCT - 40 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
-40

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5631
SELECT + cor0.col2 + CAST( col1 AS SIGNED ) * col0 FROM tab1 AS cor0
----
1136
132
697

skipif mysql # not compatible
query I rowsort label-5631
SELECT + cor0.col2 + CAST ( col1 AS INTEGER ) * col0 FROM tab1 AS cor0
----
1136
132
697

query I rowsort
SELECT DISTINCT col0 * col1 + + col1 * col1 * col1 + 94 FROM tab1
----
1734
17748
3331

onlyif mysql # use DIV operator for integer division
query I rowsort label-5633
SELECT - - 27 DIV cor0.col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5633
SELECT - - 27 / cor0.col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + 67 * + col0 + col0 AS col0 FROM tab0
----
1632
2380
6052

query I rowsort
SELECT cor0.col1 * - 71 FROM tab0 AS cor0
----
-6106
-6461
-6887

onlyif mysql # use DIV operator for integer division
query I rowsort label-5636
SELECT col1 DIV + 62 + ( + col1 ) * - ( col1 ) FROM tab1
----
-100
-169
-676

skipif mysql # not compatible
query I rowsort label-5636
SELECT col1 / + 62 + ( + col1 ) * - ( col1 ) FROM tab1
----
-100
-169
-676

query I rowsort
SELECT + - col0 * 9 FROM tab1 AS cor0
----
-27
-576
-720

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5638
SELECT ALL cor0.col0 * CAST( - col2 AS SIGNED ) FROM tab1 AS cor0
----
-162
-3648
-7680

skipif mysql # not compatible
query I rowsort label-5638
SELECT ALL cor0.col0 * CAST ( - col2 AS INTEGER ) FROM tab1 AS cor0
----
-162
-3648
-7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-5639
SELECT + cor0.col2 + + col2 DIV - col1 col1 FROM tab1 AS cor0
----
52
52
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5639
SELECT + cor0.col2 + + col2 / - col1 col1 FROM tab1 AS cor0
----
52
52
89

query I rowsort
SELECT + - 34 * col1 + col0 + + col0 AS col0 FROM tab2 AS cor0
----
-1040
-1850
-420

query I rowsort
SELECT + - cor1.col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 09d8a912de1b8ab762e5ffbe028ce99e

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5642
SELECT + CAST( col1 AS SIGNED ) * - col2 + col0 AS col0 FROM tab2 AS cor0
----
-1456
-567
-830

skipif mysql # not compatible
query I rowsort label-5642
SELECT + CAST ( col1 AS INTEGER ) * - col2 + col0 AS col0 FROM tab2 AS cor0
----
-1456
-567
-830

query I rowsort
SELECT + 74 + - 81 * - col0 * - 83 FROM tab2 AS cor0
----
-46987
-524320
-531043

query I rowsort
SELECT cor0.col1 * col0 + col0 AS col2 FROM tab1 AS cor0
----
1120
704
81

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5645
SELECT + ( + col2 ) + CAST( NULL AS SIGNED ) * cor0.col0 AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5645
SELECT + ( + col2 ) + CAST ( NULL AS INTEGER ) * cor0.col0 AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - 25 + + col1 AS col2 FROM tab2 cor0
----
-8
34
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col0 ) * + col0 + - col2 col2 FROM tab0 cor0
----
-1226
-609
-8003

query I rowsort
SELECT DISTINCT 8 * - col2 + - 16 * - col1 FROM tab0 AS cor0
----
1112
1544
800

query I rowsort
SELECT - 37 AS col2 FROM tab1 cor0
----
-37
-37
-37

onlyif mysql # use DIV operator for integer division
query I rowsort label-5650
SELECT DISTINCT - col2 DIV col1 AS col1 FROM tab1 AS cor0
----
-2
-5
-7

skipif mysql # not compatible
query I rowsort label-5650
SELECT DISTINCT - col2 / col1 AS col1 FROM tab1 AS cor0
----
-2
-5
-7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 + col0 * - cor0.col2 * cor0.col0 col1 FROM tab1 AS cor0
----
-233536
-489
-614480

query I rowsort
SELECT ALL + - col1 * cor0.col1 - + col2 * - col0 FROM tab1 AS cor0
----
-514
3548
7511

query I rowsort
SELECT DISTINCT ( + cor0.col0 ) * + 70 FROM tab1 AS cor0
----
210
4480
5600

query I rowsort
SELECT ALL 11 * - col2 * ( col2 ) + col0 * 2 FROM tab2 AS cor0
----
-15726
-7280
-8005

query I rowsort
SELECT DISTINCT - col2 - col2 AS col2 FROM tab2 cor0
----
-52
-54
-76

query I rowsort
SELECT + + cor0.col1 + col2 * 56 AS col0 FROM tab1 AS cor0
----
3050
3202
5389

query I rowsort
SELECT + col1 * col1 + - 44 FROM tab0 AS cor0
----
7352
8237
9365

onlyif mysql # use DIV operator for integer division
query I rowsort label-5658
SELECT ALL - - col0 DIV col1 - col1 AS col2 FROM tab1 AS cor0
----
-26
-4
-7

skipif mysql # not compatible
query I rowsort label-5658
SELECT ALL - - col0 / col1 - col1 AS col2 FROM tab1 AS cor0
----
-26
-4
-7

query I rowsort
SELECT ALL + + col2 + 37 FROM tab1 AS cor0
----
133
91
94

onlyif mysql # use DIV operator for integer division
query I rowsort label-5660
SELECT DISTINCT - + col2 DIV col0 FROM tab0 cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-5660
SELECT DISTINCT - + col2 / col0 FROM tab0 cor0
----
-1
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5661
SELECT ALL col2 + col2 * + CAST( + 27 AS SIGNED ) col1 FROM tab2
----
1064
728
756

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5661
SELECT ALL col2 + col2 * + CAST ( + 27 AS INTEGER ) col1 FROM tab2
----
1064
728
756

query I rowsort
SELECT + - col0 + - 83 AS col1 FROM tab2 AS cor0
----
-161
-162
-90

query I rowsort
SELECT - cor0.col0 * + ( 28 ) + - cor0.col0 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to d92716868d5bdc9272f7ba54dfbc5e44

query I rowsort
SELECT + + ( + 79 ) FROM tab2 cor0
----
79
79
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-5665
SELECT ALL - col2 DIV - col1 + col2 - col1 * + col1 * + col1 AS col1 FROM tab2 cor0
----
-205353
-29764
-4873

skipif mysql # not compatible
query I rowsort label-5665
SELECT ALL - col2 / - col1 + col2 - col1 * + col1 * + col1 AS col1 FROM tab2 cor0
----
-205353
-29764
-4873

query I rowsort
SELECT - 36 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to afecaf209e79e23b6674a73fffa3e837

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5667
SELECT ALL + CAST( 85 AS SIGNED ) - col0 FROM tab2
----
6
7
78

skipif mysql # not compatible
query I rowsort label-5667
SELECT ALL + CAST ( 85 AS INTEGER ) - col0 FROM tab2
----
6
7
78

query I rowsort
SELECT 64 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to c8b19f4c3ff38700cd2bb8a077bf29b9

query I rowsort
SELECT ALL 89 * + col0 - col2 AS col0 FROM tab1
----
213
5639
7024

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5670
SELECT ALL - CAST( NULL AS SIGNED ) - + col0 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5670
SELECT ALL - CAST ( NULL AS INTEGER ) - + col0 AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col2 - 83 AS col0 FROM tab1
----
-137
-140
-179

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5672
SELECT + CAST( NULL AS SIGNED ) + col1 * cor0.col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5672
SELECT + CAST ( NULL AS INTEGER ) + col1 * cor0.col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - 62 + col2 * col0 * col1 AS col2 FROM tab0 AS cor0
----
3457
664180
68174

query I rowsort
SELECT DISTINCT 60 + tab2.col2 FROM tab2, tab1 AS cor0
----
86
87
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-5675
SELECT ALL col2 * 60 + col2 DIV 16 col0 FROM tab2
----
1561
1621
2282

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5675
SELECT ALL col2 * 60 + col2 / 16 col0 FROM tab2
----
1561
1621
2282

query I rowsort
SELECT DISTINCT - 76 FROM tab0, tab2 cor0, tab2 AS cor1
----
-76

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5677
SELECT ALL + col0 + CAST( col1 AS SIGNED ) FROM tab2
----
137
38
96

skipif mysql # not compatible
query I rowsort label-5677
SELECT ALL + col0 + CAST ( col1 AS INTEGER ) FROM tab2
----
137
38
96

query I rowsort
SELECT DISTINCT - col0 * + col1 + col0 FROM tab2 cor0
----
-1264
-210
-4524

query I rowsort
SELECT DISTINCT - col2 * 74 + col0 * - col2 + - 86 * col1 AS col1 FROM tab0 AS cor0
----
-10630
-21192
-8451

query I rowsort
SELECT + cor0.col0 * col2 - - col1 * - col1 FROM tab0 AS cor0
----
-6604
-9374
-983

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5681
SELECT + - col0 + + CAST( NULL AS SIGNED ) * + col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5681
SELECT + - col0 + + CAST ( NULL AS INTEGER ) * + col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 + - 41 * + col1 AS col1 FROM tab0 AS cor0
----
-3502
-3642
-3942

query I rowsort
SELECT DISTINCT - cor0.col2 * cor0.col0 AS col2 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT DISTINCT + - 80 * cor0.col1 FROM tab2 cor0
----
-1360
-2480
-4720

query I rowsort
SELECT - + 12 + col0 AS col1 FROM tab1 AS cor0
----
-9
52
68

query I rowsort
SELECT + - 31 FROM tab1 cor0
----
-31
-31
-31

query I rowsort
SELECT DISTINCT col0 * col2 + - ( col0 ) + + 26 * - 51 AS col0 FROM tab2
----
-1144
1597
624

query I rowsort
SELECT - col0 * col1 + - tab0.col0 * - col2 + 78 FROM tab0
----
-1194
-3282
-723

query I rowsort
SELECT DISTINCT - + 46 * - col2 FROM tab1 AS cor0
----
2484
2622
4416

query I rowsort
SELECT + 97 * 33 AS col2 FROM tab0 AS cor0
----
3201
3201
3201

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5691
SELECT DISTINCT + - CAST( - 49 AS SIGNED ) FROM tab2 cor0
----
49

skipif mysql # not compatible
query I rowsort label-5691
SELECT DISTINCT + - CAST ( - 49 AS INTEGER ) FROM tab2 cor0
----
49

query I rowsort
SELECT - - 93 AS col0 FROM tab1 AS cor0
----
93
93
93

query I rowsort
SELECT - + 68 * col1 AS col1 FROM tab0 AS cor0
----
-5848
-6188
-6596

query I rowsort
SELECT DISTINCT - 19 + col2 AS col2 FROM tab2 cor0
----
19
7
8

onlyif mysql # use DIV operator for integer division
query I rowsort label-5695
SELECT + 84 DIV col1 FROM tab1
----
3
6
8

skipif mysql # not compatible
query I rowsort label-5695
SELECT + 84 / col1 FROM tab1
----
3
6
8

query I rowsort
SELECT DISTINCT - + col0 * - col0 AS col0 FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT DISTINCT col2 - + col1 FROM tab2 AS cor0
----
-33
-4
21

query I rowsort
SELECT ALL cor0.col2 + - col2 * - ( col1 ) FROM tab0 AS cor0
----
2871
7544
98

query I rowsort
SELECT ALL + col0 + col0 AS col2 FROM tab2 cor0
----
14
156
158

query I rowsort
SELECT DISTINCT - col0 * col0 - col1 FROM tab0 AS cor0
----
-1322
-662
-8012

query I rowsort
SELECT - col2 + - 94 + - 77 FROM tab0 AS cor0
----
-172
-204
-253

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5702
SELECT + cor0.col1 * - CAST( NULL AS SIGNED ) / col0 + col0 * col1 + + col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5702
SELECT + cor0.col1 * - CAST ( NULL AS INTEGER ) / col0 + col0 * col1 + + col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 - col1 * col1 * - cor0.col0 FROM tab2 AS cor0
----
22793
271492
6700

query I rowsort
SELECT DISTINCT cor0.col0 * col2 + col1 * col1 FROM tab1 AS cor0
----
3748
7849
838

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5705
SELECT DISTINCT - col1 * - CAST( col0 AS SIGNED ) FROM tab1 AS cor0
----
1040
640
78

skipif mysql # not compatible
query I rowsort label-5705
SELECT DISTINCT - col1 * - CAST ( col0 AS INTEGER ) FROM tab1 AS cor0
----
1040
640
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-5706
SELECT ALL col2 DIV + ( col1 ) AS col0 FROM tab2 AS cor0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-5706
SELECT ALL col2 / + ( col1 ) AS col0 FROM tab2 AS cor0
----
0
0
2

onlyif mysql # use DIV operator for integer division
query I rowsort label-5707
SELECT + + col2 - - ( - col0 ) DIV - col1 AS col1 FROM tab2 AS cor0
----
27
27
42

skipif mysql # not compatible
query I rowsort label-5707
SELECT + + col2 - - ( - col0 ) / - col1 AS col1 FROM tab2 AS cor0
----
27
27
42

query I rowsort
SELECT ALL col2 + col1 * - 25 AS col2 FROM tab2
----
-1449
-387
-748

query I rowsort
SELECT + cor0.col0 FROM tab0, tab2, tab1 cor0, tab2 AS cor1
----
81 values hashing to e28bf7f922650ca423ade3642ce0285b

query I rowsort
SELECT col1 * + col0 + - col2 - - 51 * + col2 FROM tab2
----
1567
3243
5902

query I rowsort
SELECT ALL - + col0 + ( col2 * col2 ) AS col2 FROM tab2 AS cor0
----
1365
598
722

query I rowsort
SELECT col2 * 84 - - col0 FROM tab0 AS cor0
----
119
2796
6977

query I rowsort
SELECT - 74 * col2 + + ( + col2 ) AS col1 FROM tab1
----
-3942
-4161
-7008

query I rowsort
SELECT col1 + + ( 75 ) FROM tab0 AS cor0
----
161
166
172

query I rowsort
SELECT - col2 * + 71 AS col1 FROM tab2
----
-1846
-1917
-2698

query I rowsort
SELECT DISTINCT - col2 * + tab2.col2 + - 62 FROM tab2
----
-1506
-738
-791

query I rowsort
SELECT - 60 AS col1 FROM tab2, tab0, tab2 cor0, tab0 AS cor1
----
81 values hashing to 17ea60db8bdc9b534fe91b7fd55df3f9

query I rowsort
SELECT + tab2.col2 - 80 FROM tab2, tab2 AS cor0
----
9 values hashing to f2c969aae7dce12078998cdab205bf51

onlyif mysql # use DIV operator for integer division
query I rowsort label-5719
SELECT - ( - 33 ) + cor0.col0 DIV cor0.col1 col1 FROM tab1 AS cor0
----
33
39
39

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5719
SELECT - ( - 33 ) + cor0.col0 / cor0.col1 col1 FROM tab1 AS cor0
----
33
39
39

query I rowsort
SELECT ALL - col2 + - 43 FROM tab2
----
-69
-70
-81

query I rowsort
SELECT - col1 * 9 - cor0.col1 AS col0 FROM tab1 AS cor0
----
-100
-130
-260

query I rowsort
SELECT col1 * + col0 * col2 AS col0 FROM tab1
----
36480
4212
99840

query I rowsort
SELECT DISTINCT 1 * col1 FROM tab2
----
17
31
59

query I rowsort
SELECT col2 * - col1 + - col2 * + col1 FROM tab1
----
-1140
-2496
-2808

query I rowsort
SELECT col2 * + col0 + - 98 FROM tab2 AS cor0
----
1930
2904
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 24 col1 FROM tab1, tab2 AS cor0
----
24

query I rowsort
SELECT - col2 * cor0.col2 * + col0 AS col0 FROM tab2 AS cor0
----
-114076
-5103
-52728

query I rowsort
SELECT ALL + 2 * + cor0.col2 FROM tab1 cor0
----
108
114
192

query I rowsort
SELECT DISTINCT + + cor0.col0 * - col2 - - 76 FROM tab2 cor0
----
-113
-1952
-2926

query I rowsort
SELECT ALL + + col2 + + col0 AS col2 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT DISTINCT 78 * col2 + col2 FROM tab2 AS cor0
----
2054
2133
3002

query I rowsort
SELECT DISTINCT - ( col2 ) * 79 FROM tab1 AS cor0
----
-4266
-4503
-7584

query I rowsort
SELECT ALL - cor0.col1 * col1 + - col1 AS col0 FROM tab0 AS cor0
----
-7482
-8372
-9506

query I rowsort
SELECT DISTINCT ( + col1 ) + col0 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT ALL - + 15 AS col2 FROM tab2 cor0
----
-15
-15
-15

query I rowsort
SELECT + + cor0.col2 + col0 * 38 AS col2 FROM tab1 AS cor0
----
168
2489
3136

query I rowsort
SELECT DISTINCT - + col0 + 20 - - col1 * - 49 * + cor0.col1 FROM tab1 AS cor0
----
-33107
-4944
-8341

query I rowsort
SELECT - ( ( + cor0.col2 ) ) + + ( col0 * + cor0.col1 ) FROM tab0 AS cor0
----
2031
3394
8017

query I rowsort
SELECT ALL - ( - cor0.col1 ) * - col2 + - 35 AS col0 FROM tab1 AS cor0
----
-1283
-1439
-605

query I rowsort
SELECT DISTINCT col2 * + col0 * + ( col1 ) AS col0 FROM tab2
----
119652
51034
5859

query I rowsort
SELECT - 25 AS col2 FROM tab0, tab1 cor0
----
9 values hashing to 40ac8fd000b2e49317aed2411077839e

query I rowsort
SELECT + + ( col0 ) * - col0 FROM tab0 AS cor0
----
-1225
-576
-7921

onlyif mysql # use DIV operator for integer division
query I rowsort label-5743
SELECT col0 DIV + ( + col0 ) + - col0 col2 FROM tab1 AS cor0
----
-2
-63
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5743
SELECT col0 / + ( + col0 ) + - col0 col2 FROM tab1 AS cor0
----
-2
-63
-79

query I rowsort
SELECT DISTINCT + col2 - 71 * + col2 AS col1 FROM tab0 cor0
----
-2310
-5740
-70

query I rowsort
SELECT + col0 * 12 FROM tab1
----
36
768
960

query I rowsort
SELECT ALL col1 * + col2 * col0 FROM tab0
----
3395
664118
68112

onlyif mysql # use DIV operator for integer division
query I rowsort label-5747
SELECT + + 88 DIV - cor0.col1 + - col0 * col1 col1 FROM tab1 AS cor0
----
-1046
-648
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5747
SELECT + + 88 / - cor0.col1 + - col0 * col1 col1 FROM tab1 AS cor0
----
-1046
-648
-81

query I rowsort
SELECT + ( ( cor0.col1 ) ) * col2 + + col1 FROM tab2 AS cor0
----
1593
663
868

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 * - cor0.col2 col2 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT + tab0.col2 FROM tab0, tab1 AS cor0, tab2, tab2 AS cor1
----
81 values hashing to e938777ebffc2e3e9c0cdfaa4f732c05

query I rowsort
SELECT - cor0.col0 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5752
SELECT 22 DIV - col1 - - 43 AS col2 FROM tab2 AS cor0
----
42
43
43

skipif mysql # not compatible
query I rowsort label-5752
SELECT 22 / - col1 - - 43 AS col2 FROM tab2 AS cor0
----
42
43
43

query I rowsort
SELECT DISTINCT - 70 + + col0 * ( col2 ) AS col2 FROM tab2 cor0
----
119
1958
2932

query I rowsort
SELECT DISTINCT + tab1.col0 AS col2 FROM tab1, tab0, tab0 AS cor0
----
3
64
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 + 86 + - col1 col2 FROM tab2 AS cor0
----
1
28
31

query I rowsort
SELECT + col1 * - 3 AS col0 FROM tab0 AS cor0
----
-258
-273
-291

query I rowsort
SELECT ALL - + 42 FROM tab0, tab2 AS cor0
----
9 values hashing to 9894093f29c0defae91347934f060329

onlyif mysql # use DIV operator for integer division
query I rowsort label-5758
SELECT ALL col2 DIV + 72 + col2 + col1 * - 96 FROM tab1
----
-1151
-2442
-903

skipif mysql # not compatible
query I rowsort label-5758
SELECT ALL col2 / + 72 + col2 + col1 * - 96 FROM tab1
----
-1151
-2442
-903

query I rowsort
SELECT + col2 + + col2 + + col0 FROM tab2
----
130
155
61

query I rowsort
SELECT ALL + col1 + ( - col2 ) AS col2 FROM tab2 cor0
----
-21
33
4

query I rowsort
SELECT DISTINCT - col2 + + col2 * 61 AS col1 FROM tab2 AS cor0
----
1560
1620
2280

query I rowsort
SELECT col1 * - 28 - cor0.col2 FROM tab1 AS cor0
----
-337
-460
-782

query I rowsort
SELECT + col2 * ( + col0 ) AS col0 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT col0 * 45 - + col1 FROM tab2 AS cor0
----
284
3451
3538

query I rowsort
SELECT ALL - col2 + 19 * col1 FROM tab0 AS cor0
----
1601
1647
1842

query I rowsort
SELECT - cor0.col2 + - 30 FROM tab0 AS cor0
----
-112
-31
-63

query I rowsort
SELECT - - col0 + 17 FROM tab2 AS cor0
----
24
95
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5768
SELECT - ( 31 ) * col0 + CAST( 18 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-1067
-2741
-726

skipif mysql # not compatible
query I rowsort label-5768
SELECT - ( 31 ) * col0 + CAST ( 18 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-1067
-2741
-726

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - ( col2 ) + - col1 col2 FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT - 77 FROM tab1, tab2 AS cor0, tab0 AS cor1, tab2 cor2
----
81 values hashing to a4b782d7c3e9c22c8343c69c156c0bdd

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 + + 80 + col0 col0 FROM tab1 cor0
----
134
147
57

query I rowsort
SELECT + ( 32 ) AS col0 FROM tab0, tab1 AS cor0, tab0 AS cor1, tab0 AS cor2
----
81 values hashing to 6bef041528d0147be26f7de162c66a5f

query I rowsort
SELECT 38 AS col2 FROM tab2, tab0 AS cor0 CROSS JOIN tab0
----
27 values hashing to a7827a79248ee7bf2cee915a631d02cb

onlyif mysql # use DIV operator for integer division
query I rowsort label-5774
SELECT ALL - col2 DIV + col0 + + CAST( cor0.col2 + - col1 AS SIGNED ) FROM tab1 AS cor0
----
10
47
82

skipif mysql # not compatible
query I rowsort label-5774
SELECT ALL - col2 / + col0 + + CAST ( cor0.col2 + - col1 AS INTEGER ) FROM tab1 AS cor0
----
10
47
82

query I rowsort
SELECT - + cor0.col0 * - col0 AS col1 FROM tab2 AS cor0
----
49
6084
6241

onlyif mysql # use DIV operator for integer division
query I rowsort label-5776
SELECT DISTINCT - col1 DIV col0 col2 FROM tab1 AS cor0
----
-8
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5776
SELECT DISTINCT - col1 / col0 col2 FROM tab1 AS cor0
----
-8
0

query I rowsort
SELECT - - col2 + col2 * + 32 FROM tab1 AS cor0
----
1782
1881
3168

query I rowsort
SELECT DISTINCT + 25 AS col2 FROM tab1
----
25

query I rowsort
SELECT 80 - col0 AS col0 FROM tab1
----
0
16
77

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5780
SELECT ( tab1.col2 + + CAST( NULL AS DECIMAL ) ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5780
SELECT ( tab1.col2 + + CAST ( NULL AS REAL ) ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ( col2 ) * + col2 + col1 + + ( + col1 ) FROM tab0
----
1261
195
6906

onlyif mysql # use DIV operator for integer division
query I rowsort label-5782
SELECT DISTINCT tab1.col2 DIV col2 col0 FROM tab1
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5782
SELECT DISTINCT tab1.col2 / col2 col0 FROM tab1
----
1

query I rowsort
SELECT DISTINCT col1 - 27 AS col1 FROM tab2
----
-10
32
4

query I rowsort
SELECT - col1 * + col2 + col2 AS col1 FROM tab0
----
-2805
-7380
-96

query I rowsort
SELECT ALL - - 24 - col0 AS col1 FROM tab1 AS cor0
----
-40
-56
21

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5786
SELECT + col1 * - col1 * CAST( col1 AS SIGNED ) - - col2 * + col1 AS col0 FROM tab0 AS cor0
----
-633218
-746109
-912576

skipif mysql # not compatible
query I rowsort label-5786
SELECT + col1 * - col1 * CAST ( col1 AS INTEGER ) - - col2 * + col1 AS col0 FROM tab0 AS cor0
----
-633218
-746109
-912576

query I rowsort
SELECT DISTINCT ( col2 ) + 13 AS col0 FROM tab2
----
39
40
51

query I rowsort
SELECT - col1 + col0 * col1 FROM tab1
----
1027
52
630

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5789
SELECT ALL cor0.col2 + - CAST( NULL AS SIGNED ) * cor0.col1 FROM tab0, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-5789
SELECT ALL cor0.col2 + - CAST ( NULL AS INTEGER ) * cor0.col1 FROM tab0, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT col1 + col2 * cor0.col1 AS col0 FROM tab1 AS cor0
----
1261
1430
580

query I rowsort
SELECT ALL + col2 * + col0 * - 69 FROM tab0 AS cor0
----
-2415
-503562
-54648

query I rowsort
SELECT - + col2 * + col2 + - cor0.col1 * + 76 FROM tab0 cor0
----
-13640
-7373
-7625

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * + col2 col2 FROM tab0 cor0
----
1
1089
6724

query I rowsort
SELECT - cor0.col2 * - col0 * - col0 FROM tab1 AS cor0
----
-233472
-486
-614400

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5795
SELECT tab2.col1 + CAST( + 22 AS SIGNED ) FROM tab2
----
39
53
81

skipif mysql # not compatible
query I rowsort label-5795
SELECT tab2.col1 + CAST ( + 22 AS INTEGER ) FROM tab2
----
39
53
81

query I rowsort
SELECT col2 + - ( tab1.col0 + + col1 ) FROM tab1
----
-17
25
3

query I rowsort
SELECT ALL - col0 * - ( + col2 * + col2 ) AS col2 FROM tab2
----
114076
5103
52728

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * 59 col1 FROM tab2
----
1534
1593
2242

query I rowsort
SELECT - tab2.col0 + 67 AS col1 FROM tab2
----
-11
-12
60

query I rowsort
SELECT - col2 + 74 * ( col2 + + col1 ) FROM tab0
----
12720
7251
8773

query I rowsort
SELECT DISTINCT + col0 * + 78 AS col2 FROM tab0 AS cor0
----
1872
2730
6942

onlyif mysql # use DIV operator for integer division
query I rowsort label-5802
SELECT ALL col2 + col1 * col1 DIV cor0.col0 FROM tab2 cor0
----
164
41
70

skipif mysql # not compatible
query I rowsort label-5802
SELECT ALL col2 + col1 * col1 / cor0.col0 FROM tab2 cor0
----
164
41
70

query I rowsort
SELECT ALL - + col2 * - col1 + cor0.col0 + col0 FROM tab1 AS cor0
----
1408
1410
698

onlyif mysql # use DIV operator for integer division
query I rowsort label-5804
SELECT DISTINCT - col1 DIV col1 + + col2 DIV - cor0.col0 + - cor0.col2 * col0 FROM tab2 AS cor0
----
-193
-2029
-3003

skipif mysql # not compatible
query I rowsort label-5804
SELECT DISTINCT - col1 / col1 + + col2 / - cor0.col0 + - cor0.col2 * col0 FROM tab2 AS cor0
----
-193
-2029
-3003

query I rowsort
SELECT DISTINCT + - 70 AS col0 FROM tab1 AS cor0
----
-70

query I rowsort
SELECT ALL 30 + - col0 AS col1 FROM tab2 AS cor0
----
-48
-49
23

query I rowsort
SELECT DISTINCT - col0 * + col2 * + col0 FROM tab0 AS cor0
----
-1225
-19008
-649522

onlyif mysql # use DIV operator for integer division
query I rowsort label-5808
SELECT - 15 DIV col1 col0 FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5808
SELECT - 15 / col1 col0 FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 16 * 45 col0 FROM tab0 AS cor0
----
720
720
720

onlyif mysql # use DIV operator for integer division
query I rowsort label-5810
SELECT ALL + 7 DIV col2 + col1 AS col2 FROM tab1 AS cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-5810
SELECT ALL + 7 / col2 + col1 AS col2 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT col2 + + col0 * col0 * + col0 AS col0 FROM tab1 AS cor0
----
262201
512096
81

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5812
SELECT DISTINCT + ( col0 ) + + col0 * + CAST( col1 AS SIGNED ) FROM tab0 AS cor0
----
2088
3430
8188

skipif mysql # not compatible
query I rowsort label-5812
SELECT DISTINCT + ( col0 ) + + col0 * + CAST ( col1 AS INTEGER ) FROM tab0 AS cor0
----
2088
3430
8188

query I rowsort
SELECT DISTINCT - col2 + 42 AS col0 FROM tab0 AS cor0
----
-40
41
9

query I rowsort
SELECT + tab0.col1 + 91 AS col0 FROM tab0
----
177
182
188

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5815
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - ( cor0.col2 ) / 50 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5815
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - ( cor0.col2 ) / 50 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL + col1 * ( col2 ) FROM tab2 cor0
----
1534
646
837

query I rowsort
SELECT ALL 11 * - 19 FROM tab0 AS cor0
----
-209
-209
-209

query I rowsort
SELECT - ( cor0.col2 ) + col1 * + col2 * col1 AS col0 FROM tab0 cor0
----
244035
678960
9408

query I rowsort
SELECT 0 AS col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5820
SELECT ALL + CAST( 69 AS SIGNED ) AS col2 FROM tab0
----
69
69
69

skipif mysql # not compatible
query I rowsort label-5820
SELECT ALL + CAST ( 69 AS INTEGER ) AS col2 FROM tab0
----
69
69
69

query I rowsort
SELECT + cor0.col1 + col2 * + col1 AS col0 FROM tab2 AS cor0
----
1593
663
868

query I rowsort
SELECT - ( - col2 ) + ( cor0.col2 ) * cor0.col2 AS col0 FROM tab2 AS cor0
----
1482
702
756

query I rowsort
SELECT + 12 + tab2.col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 29b546233bf5a4d8e76418c2401f7992

query I rowsort
SELECT - ( - 20 * col1 ) FROM tab0
----
1720
1820
1940

query I rowsort
SELECT DISTINCT + col2 * - col0 * + 26 + col2 AS col1 FROM tab2 AS cor0
----
-4887
-52702
-78014

query I rowsort
SELECT - cor0.col1 * + cor0.col1 + - col2 AS col2 FROM tab1 AS cor0
----
-157
-265
-730

query I rowsort
SELECT DISTINCT + - col1 + col2 * + col2 AS col2 FROM tab0 AS cor0
----
-96
1003
6633

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + cor0.col1 col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - col2 + ( + 26 ) * - col0 AS col2 FROM tab1 AS cor0
----
-132
-1721
-2176

query I rowsort
SELECT ALL + - col0 + 15 FROM tab2 cor0
----
-63
-64
8

query I rowsort
SELECT + 33 - col0 FROM tab0
----
-2
-56
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-5832
SELECT col2 DIV col2 + col1 * col1 + col2 * + ( - 73 ) col0 FROM tab0
----
2296
4988
9337

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5832
SELECT col2 / col2 + col1 * col1 + col2 * + ( - 73 ) col0 FROM tab0
----
2296
4988
9337

query I rowsort
SELECT - cor0.col1 FROM tab1, tab2 AS cor0, tab2 cor1
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2

query I rowsort
SELECT + + col0 + cor0.col0 * - 76 FROM tab1 AS cor0
----
-225
-4800
-6000

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 50 * - col1 * - col2 + + tab2.col2 col0 FROM tab2
----
-32262
-41823
-76674

onlyif mysql # use DIV operator for integer division
query I rowsort label-5836
SELECT ALL + 4 + - col0 DIV col1 FROM tab1
----
-2
-2
4

skipif mysql # not compatible
query I rowsort label-5836
SELECT ALL + 4 + - col0 / col1 FROM tab1
----
-2
-2
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 4 + + cor1.col0 col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-1
60
76

query I rowsort
SELECT DISTINCT col0 * - 32 + + 39 AS col2 FROM tab1 AS cor0
----
-2009
-2521
-57

query I rowsort
SELECT col2 * + 66 FROM tab2 AS cor0
----
1716
1782
2508

query I rowsort
SELECT ALL col2 + - ( - 84 ) FROM tab1 AS cor0
----
138
141
180

query I rowsort
SELECT + col0 * 76 AS col0 FROM tab1 AS cor0
----
228
4864
6080

query I rowsort
SELECT DISTINCT - col0 * 21 AS col1 FROM tab2 AS cor0
----
-147
-1638
-1659

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 - - col2 col0 FROM tab1 AS cor0
----
-7
16
51

query I rowsort
SELECT ALL - col0 + + col0 AS col2 FROM tab0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 + col0 * col0 col1 FROM tab2 AS cor0
----
56
6162
6320

query I rowsort
SELECT ALL cor0.col1 + + col1 * + ( + col1 ) + col2 * + col2 AS col0 FROM tab2 AS cor0
----
1721
1750
4216

query I rowsort
SELECT 85 + + col0 * + 49 FROM tab0 AS cor0
----
1261
1800
4446

query I rowsort
SELECT - + col1 * col2 + + ( + 4 + - col0 ) AS col0 FROM tab2 AS cor0
----
-1608
-721
-840

query I rowsort
SELECT DISTINCT + col1 * 11 FROM tab2 AS cor0
----
187
341
649

query I rowsort
SELECT ALL - + col0 + 21 AS col0 FROM tab0 AS cor0
----
-14
-3
-68

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5851
SELECT col0 / - CAST( NULL AS SIGNED ) + 51 + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5851
SELECT col0 / - CAST ( NULL AS INTEGER ) + 51 + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 + ( + col1 ) FROM tab1 AS cor0
----
29
74
93

onlyif mysql # use DIV operator for integer division
query I rowsort label-5853
SELECT DISTINCT cor0.col2 DIV + col0 + + col2 FROM tab0 cor0
----
1
34
82

skipif mysql # not compatible
query I rowsort label-5853
SELECT DISTINCT cor0.col2 / + col0 + + col2 FROM tab0 cor0
----
1
34
82

query I rowsort
SELECT ALL - - col0 * + ( 26 + - col2 ) AS col2 FROM tab0 AS cor0
----
-168
-4984
875

query I rowsort
SELECT DISTINCT - + col1 + - 71 * + 58 FROM tab0 AS cor0
----
-4204
-4209
-4215

query I rowsort
SELECT DISTINCT + - col0 + 83 AS col2 FROM tab0 cor0
----
-6
48
59

query I rowsort
SELECT ALL - 22 - tab2.col2 AS col0 FROM tab2
----
-48
-49
-60

query I rowsort
SELECT - 9 * cor0.col0 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to beb652d02ae800468d38c1e2b339c342

query I rowsort
SELECT DISTINCT - + 28 * - tab0.col0 AS col2 FROM tab0, tab2, tab2 AS cor0
----
2492
672
980

query I rowsort
SELECT - tab1.col1 * col0 * - ( col2 ) FROM tab1
----
36480
4212
99840

query I rowsort
SELECT col0 + - 5 * col2 AS col2 FROM tab2 AS cor0
----
-111
-128
-52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 95 + + col2 * - col0 col2 FROM tab1 AS cor0
----
-3553
-67
-7585

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 92 * + col0 + col1 * - col2 col0 FROM tab2 AS cor0
----
-1481
-7914
-8710

skipif mysql # not compatible
query I rowsort
SELECT CAST ( cor0.col2 AS REAL ) FROM tab0 cor0
----
1
33
82

query I rowsort
SELECT ALL - col0 * + 43 AS col0 FROM tab1
----
-129
-2752
-3440

query I rowsort
SELECT - 41 AS col2 FROM tab0, tab0 cor0
----
9 values hashing to 4ba0c102091f9cbc9fe9439b04584e70

query I rowsort
SELECT ALL cor0.col0 * + 71 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 9ba0073b29b2011dfaebe56df3667c42

query I rowsort
SELECT - 20 * 90 FROM tab0
----
-1800
-1800
-1800

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 85 col2 FROM tab2, tab2 AS cor0
----
85

query I rowsort
SELECT - ( - ( + cor0.col1 ) ) + - 55 FROM tab2 cor0
----
-24
-38
4

query I rowsort
SELECT ALL + 62 AS col2 FROM tab2
----
62
62
62

query I rowsort
SELECT 31 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540

query I rowsort
SELECT DISTINCT + ( 58 ) FROM tab0
----
58

query I rowsort
SELECT DISTINCT + - 6 AS col0 FROM tab2 AS cor0
----
-6

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5875
SELECT DISTINCT ( - col2 ) * - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5875
SELECT DISTINCT ( - col2 ) * - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - 17 + - col1 FROM tab1 AS cor0
----
-27
-30
-43

query I rowsort
SELECT ALL - ( col0 ) - - col2 FROM tab0 AS cor0
----
-34
-7
9

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 DISTINCT + tab0.col1 * - col0 * col1 FROM tab0
----
-177504
-329315
-737009

query I rowsort
SELECT - ( - col1 ) * + col2 + + col1 AS col1 FROM tab2
----
1593
663
868

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( tab1.col2 * + col2 ) col0 FROM tab1
----
2916
3249
9216

onlyif mysql # use DIV operator for integer division
query I rowsort label-5882
SELECT + col2 + + col1 * - col1 DIV + col1 col2 FROM tab2
----
-33
-4
21

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5882
SELECT + col2 + + col1 * - col1 / + col1 col2 FROM tab2
----
-33
-4
21

query I rowsort
SELECT DISTINCT + col0 * col2 * col2 AS col2 FROM tab2
----
114076
5103
52728

query I rowsort
SELECT DISTINCT tab2.col0 * + ( col2 ) FROM tab2
----
189
2028
3002

query I rowsort
SELECT + ( col2 * - 87 ) + 9 + col0 AS col2 FROM tab0
----
-2838
-43
-7036

onlyif mysql # use DIV operator for integer division
query I rowsort label-5886
SELECT - + col0 * col2 - ( col1 ) DIV col1 FROM tab1 AS cor0
----
-163
-3649
-7681

skipif mysql # not compatible
query I rowsort label-5886
SELECT - + col0 * col2 - ( col1 ) / col1 FROM tab1 AS cor0
----
-163
-3649
-7681

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5887
SELECT ALL - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-5887
SELECT ALL - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT col1 * col0 + - col1 + + col1 AS col0 FROM tab2
----
1343
217
4602

query I rowsort
SELECT ALL + + 14 * + col2 FROM tab2 AS cor0
----
364
378
532

onlyif mysql # use DIV operator for integer division
query I rowsort label-5890
SELECT ALL - cor0.col0 DIV col2 AS col1 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-5890
SELECT ALL - cor0.col0 / col2 AS col1 FROM tab1 AS cor0
----
-1
0
0

query I rowsort
SELECT ALL - + col1 + cor0.col1 * col2 AS col1 FROM tab1 cor0
----
1235
1378
560

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col0 + + col1 * col2 col1 FROM tab2 AS cor0
----
1456
567
830

query I rowsort
SELECT ALL + ( - cor0.col2 ) * col1 + ( + col2 + - col1 ) * col2 FROM tab1 AS cor0
----
108
2109
6720

query I rowsort
SELECT ALL - - ( - cor0.col2 ) AS col0 FROM tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT DISTINCT - + 65 + - cor0.col0 FROM tab2 AS cor0
----
-143
-144
-72

query I rowsort
SELECT - + col2 * + col1 * + col1 FROM tab2 AS cor0
----
-10982
-25947
-90506

query I rowsort
SELECT col1 + col2 * + 57 * col2 FROM tab2
----
38591
41584
82325

query I rowsort
SELECT ALL col0 + + col0 * 68 AS col1 FROM tab1
----
207
4416
5520

onlyif mysql # use DIV operator for integer division
query I rowsort label-5899
SELECT + col0 DIV - 16 AS col0 FROM tab0 AS cor0
----
-1
-2
-5

skipif mysql # not compatible
query I rowsort label-5899
SELECT + col0 / - 16 AS col0 FROM tab0 AS cor0
----
-1
-2
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * 56 + col1 col0 FROM tab0 AS cor0
----
-4730
-5005
-5335

query I rowsort
SELECT DISTINCT + + 67 * + 72 FROM tab0 AS cor0
----
4824

query I rowsort
SELECT DISTINCT + - cor0.col0 + + col1 FROM tab0 AS cor0
----
2
62

query I rowsort
SELECT + - col1 + col1 * cor0.col2 AS col1 FROM tab2 AS cor0
----
1475
629
806

query I rowsort
SELECT ALL - + col0 * ( - 10 ) AS col0 FROM tab1 AS cor0
----
30
640
800

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col2 * - 10 col1 FROM tab2 cor0
----
260
270
380

query I rowsort
SELECT DISTINCT + - cor0.col1 * - col2 + 68 * - col0 AS col0 FROM tab2 AS cor0
----
-3770
-4726
361

onlyif mysql # use DIV operator for integer division
query I rowsort label-5907
SELECT - - col2 DIV + 91 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5907
SELECT - - col2 / + 91 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + col2 + + col1 * col1 AS col2 FROM tab0 AS cor0
----
7429
8363
9410

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5909
SELECT col2 * - col0 + - CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5909
SELECT col2 * - col0 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 75 * 45 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 561fed088d78d413eb9c6d1bbc391e01

query I rowsort
SELECT - 50 * col0 - col1 * col2 FROM tab2
----
-1187
-4596
-5434

query I rowsort
SELECT + ( - col1 ) + cor0.col1 FROM tab1 AS cor0
----
0
0
0

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab2, tab0 AS cor2
----
3645 values hashing to 93ed44f621cc970f32b0cc9543b45262

query I rowsort
SELECT ALL + cor0.col2 * cor1.col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e8cccfbaf514cde36022d227725713e6

query I rowsort
SELECT - 44 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 38f05fdaaf15e64b62f27cd96f73fb79

query I rowsort
SELECT + 98 + - cor0.col1 FROM tab2 AS cor0
----
39
67
81

query I rowsort
SELECT + 32 + col2 - col0 * + col2 AS col2 FROM tab2
----
-130
-1970
-2932

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab1 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab2 AS cor2
----
3645 values hashing to 7eb416b97f0ed263f6364cf59aa64c2b

query I rowsort
SELECT 29 AS col2 FROM tab2
----
29
29
29

query I rowsort
SELECT 81 + col1 AS col2 FROM tab0
----
167
172
178

query I rowsort
SELECT col0 + col0 * - col2 FROM tab2
----
-182
-1950
-2923

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + - col2 * 99 * + 93 - col2 col2 FROM tab2 AS cor0
----
-239330
-248609
-349825

query I rowsort
SELECT DISTINCT - - 29 + col0 FROM tab0 cor0
----
118
53
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col1 + col0 col2 FROM tab1 AS cor0
----
29
74
93

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5925
SELECT ALL 92 * col2 + - CAST( col0 AS SIGNED ) col2 FROM tab2 cor0
----
2314
2477
3417

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5925
SELECT ALL 92 * col2 + - CAST ( col0 AS INTEGER ) col2 FROM tab2 cor0
----
2314
2477
3417

query I rowsort
SELECT + 39 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to ed2ebd9def3e2c38aa46cb3af60fe229

query I rowsort
SELECT DISTINCT 34 * - col2 FROM tab0 AS cor0
----
-1122
-2788
-34

onlyif mysql # use DIV operator for integer division
query I rowsort label-5928
SELECT ( col1 ) + 90 + + col2 DIV col0 AS col2 FROM tab1 AS cor0
----
100
104
134

skipif mysql # not compatible
query I rowsort label-5928
SELECT ( col1 ) + 90 + + col2 / col0 AS col2 FROM tab1 AS cor0
----
100
104
134

query I rowsort
SELECT ALL + 18 AS col0 FROM tab0 AS cor0
----
18
18
18

query I rowsort
SELECT ALL 75 FROM tab2, tab1 cor0, tab0 AS cor1
----
27 values hashing to e61b59795204c348103a58c0a8e4ce16

query I rowsort
SELECT - col1 * col1 + col0 FROM tab2 AS cor0
----
-210
-3403
-954

query I rowsort
SELECT DISTINCT - - 2 AS col1 FROM tab0, tab2 AS cor0
----
2

onlyif mysql # use DIV operator for integer division
query I rowsort label-5933
SELECT + col0 DIV - 51 + cor0.col1 + col0 * - cor0.col1 FROM tab0 AS cor0
----
-1978
-3298
-8009

skipif mysql # not compatible
query I rowsort label-5933
SELECT + col0 / - 51 + cor0.col1 + col0 * - cor0.col1 FROM tab0 AS cor0
----
-1978
-3298
-8009

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * 70 col1 FROM tab0 AS cor0
----
-6020
-6370
-6790

query I rowsort
SELECT - ( + 35 ) FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 6d967b3bac2e01a0318865f682f9a97b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 1 col0 FROM tab2
----
1

query I rowsort
SELECT 90 * - col0 AS col2 FROM tab2
----
-630
-7020
-7110

onlyif mysql # use DIV operator for integer division
query I rowsort label-5938
SELECT 35 DIV - col2 col2 FROM tab0
----
-1
-35
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5938
SELECT 35 / - col2 col2 FROM tab0
----
-1
-35
0

query I rowsort
SELECT - cor0.col1 - - cor0.col1 * col0 * - col2 AS col1 FROM tab2 AS cor0
----
-119711
-51051
-5890

query I rowsort
SELECT - - cor0.col1 * col0 AS col2 FROM tab2 AS cor0
----
1343
217
4602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 7 * - col0 + + col1 * + ( - col1 * + col2 ) col1 FROM tab1 AS cor0
----
-16784
-36525
-6148

query I rowsort
SELECT - ( col2 ) + cor0.col0 + - cor0.col2 FROM tab0 AS cor0
----
-42
-75
33

query I rowsort
SELECT - - 82 + - col2 AS col2 FROM tab1 AS cor0
----
-14
25
28

query I rowsort
SELECT + col2 + col0 * + cor0.col1 AS col2 FROM tab0 AS cor0
----
2097
3396
8181

query I rowsort
SELECT col0 + + cor0.col0 + - col2 AS col0 FROM tab1 AS cor0
----
-48
64
71

query I rowsort
SELECT ALL - col0 * - col1 + col0 + + ( + col1 ) AS col0 FROM tab0
----
2174
3527
8279

query I rowsort
SELECT DISTINCT tab1.col1 + 85 * + tab1.col1 AS col2 FROM tab1
----
1118
2236
860

onlyif mysql # use DIV operator for integer division
query I rowsort label-5948
SELECT 73 * col1 + col2 + - col1 DIV + col2 FROM tab0
----
6309
6724
6985

skipif mysql # not compatible
query I rowsort label-5948
SELECT 73 * col1 + col2 + - col1 / + col2 FROM tab0
----
6309
6724
6985

query I rowsort
SELECT - ( 93 ) AS col1 FROM tab1
----
-93
-93
-93

query I rowsort
SELECT - 72 * - col0 FROM tab0
----
1728
2520
6408

onlyif mysql # use DIV operator for integer division
query I rowsort label-5951
SELECT ALL + col1 DIV + col0 + - tab1.col0 * ( col1 ) * col2 + - 16 DIV col0 FROM tab1
----
-36480
-4209
-99840

skipif mysql # not compatible
query I rowsort label-5951
SELECT ALL + col1 / + col0 + - tab1.col0 * ( col1 ) * col2 + - 16 / col0 FROM tab1
----
-36480
-4209
-99840

onlyif mysql # use DIV operator for integer division
query I rowsort label-5952
SELECT col2 DIV + col2 + - col2 DIV - col0 AS col2 FROM tab1
----
1
19
2

skipif mysql # not compatible
query I rowsort label-5952
SELECT col2 / + col2 + - col2 / - col0 AS col2 FROM tab1
----
1
19
2

query I rowsort
SELECT DISTINCT + col0 * + tab1.col1 FROM tab1
----
1040
640
78

query IIIIII rowsort
SELECT * FROM tab2, tab2 AS cor0 WHERE NOT ( NULL ) <> NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-5955
SELECT - col1 DIV - col1 + col0 FROM tab2 AS cor0
----
79
8
80

skipif mysql # not compatible
query I rowsort label-5955
SELECT - col1 / - col1 + col0 FROM tab2 AS cor0
----
79
8
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-5956
SELECT - col2 DIV col1 - + col0 * col0 AS col1 FROM tab0 AS cor0
----
-1225
-576
-7921

skipif mysql # not compatible
query I rowsort label-5956
SELECT - col2 / col1 - + col0 * col0 AS col1 FROM tab0 AS cor0
----
-1225
-576
-7921

query I rowsort
SELECT + + col2 + col2 * - col2 * + col2 AS col2 FROM tab1 AS cor0
----
-157410
-185136
-884640

onlyif mysql # use DIV operator for integer division
query I rowsort label-5958
SELECT tab0.col2 DIV col1 AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5958
SELECT tab0.col2 / col1 AS col0 FROM tab0
----
0
0
0

query I rowsort
SELECT - 33 FROM tab1 cor0
----
-33
-33
-33

query I rowsort
SELECT - - col1 * col1 + - col1 AS col2 FROM tab2 AS cor0
----
272
3422
930

query I rowsort
SELECT - cor0.col1 + col2 * + col1 * - col2 FROM tab1 cor0
----
-119821
-32500
-75842

query I rowsort
SELECT - col2 * col0 + - col1 * - col2 FROM tab1 AS cor0
----
-3078
-6432
1242

query I rowsort
SELECT + + col2 * - cor0.col1 + col1 FROM tab2 AS cor0
----
-1475
-629
-806

query I rowsort
SELECT - cor0.col1 * col1 + col0 * col2 FROM tab2 AS cor0
----
-1453
-772
2713

query I rowsort
SELECT - - 66 + - col0 AS col0 FROM tab0 cor0
----
-23
31
42

query I rowsort
SELECT DISTINCT - 82 * col2 AS col1 FROM tab1
----
-4428
-4674
-7872

onlyif mysql # use DIV operator for integer division
query I rowsort label-5967
SELECT - col1 DIV - col1 col0 FROM tab0 AS cor0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5967
SELECT - col1 / - col1 col0 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT ALL - col2 + + col0 * + col1 AS col0 FROM tab1
----
24
583
944

query I rowsort
SELECT ALL col1 + tab1.col1 * + col2 AS col2 FROM tab1
----
1261
1430
580

query I rowsort
SELECT DISTINCT col2 * + col1 + + col0 AS col2 FROM tab0
----
132
2862
7551

query I rowsort
SELECT col2 + + col1 FROM tab2 WHERE NOT - col2 IN ( col0 * - tab2.col1 + tab2.col0 )
----
55
58
85

query I rowsort
SELECT ALL - col2 AS col2 FROM tab2 WHERE NOT col1 < ( NULL )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-5973
SELECT ALL col2 * tab1.col2 + col2 DIV col2 FROM tab1
----
2917
3250
9217

skipif mysql # not compatible
query I rowsort label-5973
SELECT ALL col2 * tab1.col2 + col2 / col2 FROM tab1
----
2917
3250
9217

query I rowsort
SELECT DISTINCT tab0.col2 + tab0.col2 * col2 AS col0 FROM tab0
----
1122
2
6806

onlyif mysql # use DIV operator for integer division
query I rowsort label-5975
SELECT - col1 DIV + col2 AS col0 FROM tab0
----
-1
-2
-97

skipif mysql # not compatible
query I rowsort label-5975
SELECT - col1 / + col2 AS col0 FROM tab0
----
-1
-2
-97

query I rowsort
SELECT col2 + + col1 * col1 AS col0 FROM tab2
----
327
3507
988

query I rowsort
SELECT DISTINCT tab1.col1 + tab1.col2 * col2 AS col0 FROM tab1
----
2942
3259
9229

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) <= ( col0 * col1 )
----

query I rowsort
SELECT ALL col0 * + tab0.col0 + tab0.col0 AS col1 FROM tab0
----
1260
600
8010

onlyif mysql # use DIV operator for integer division
query I rowsort label-5980
SELECT DISTINCT + tab0.col2 + - col2 DIV tab0.col0 AS col2 FROM tab0
----
1
32
82

skipif mysql # not compatible
query I rowsort label-5980
SELECT DISTINCT + tab0.col2 + - col2 / tab0.col0 AS col2 FROM tab0
----
1
32
82

query I rowsort
SELECT + col2 + tab0.col2 * tab0.col2 FROM tab0
----
1122
2
6806

query I rowsort
SELECT + tab0.col1 * - col1 FROM tab0 WHERE NOT NULL NOT IN ( col2 + col1 )
----

query I rowsort
SELECT col1 * col0 AS col0 FROM tab2 WHERE NULL NOT BETWEEN col1 AND + col2 * col1
----

query I rowsort
SELECT ALL col2 * + tab2.col0 + tab2.col1 FROM tab2
----
2087
220
3019

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL IN ( col0 * tab2.col0 )
----

query I rowsort
SELECT tab1.col2 FROM tab1 WHERE ( NULL ) > NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT IN ( + tab0.col2 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-5988
SELECT + col1 + - col2 DIV col0 + col2 AS col0 FROM tab1
----
108
62
67

skipif mysql # not compatible
query I rowsort label-5988
SELECT + col1 + - col2 / col0 + col2 AS col0 FROM tab1
----
108
62
67

onlyif mysql # use DIV operator for integer division
query I rowsort label-5989
SELECT tab2.col1 * - col0 + tab2.col2 DIV col0 + col0 FROM tab2
----
-1264
-207
-4524

skipif mysql # not compatible
query I rowsort label-5989
SELECT tab2.col1 * - col0 + tab2.col2 / col0 + col0 FROM tab2
----
-1264
-207
-4524

query I rowsort
SELECT col0 + - col1 * - col2 * col1 AS col1 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN ( + col1 ) AND NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-5991
SELECT ALL - col0 * - col2 + col2 + col0 DIV col1 AS col2 FROM tab2 cor0
----
2055
216
3044

skipif mysql # not compatible
query I rowsort label-5991
SELECT ALL - col0 * - col2 + col2 + col0 / col1 AS col2 FROM tab2 cor0
----
2055
216
3044

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + col0 * - col0 col0 FROM tab0
----
-1190
-552
-7832

query I rowsort
SELECT DISTINCT - col1 * col2 + col0 - + col0 AS col0 FROM tab2
----
-1534
-646
-837

query I rowsort
SELECT + col0 + col1 - col1 * col2 FROM tab0
----
-2728
-7282
35

query I rowsort
SELECT - col2 + tab1.col1 + - col2 AS col2 FROM tab1
----
-104
-179
-82

query I rowsort
SELECT tab2.col0 * tab2.col2 + tab2.col0 * tab2.col0 * tab2.col1 FROM tab2
----
109099
1708
360984

query I rowsort
SELECT DISTINCT col0 * col2 + col2 AS col2 FROM tab2
----
2054
216
3040

query I rowsort
SELECT + col1 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) < ( NULL )
----

query I rowsort
SELECT ALL col2 FROM tab1 WHERE NOT ( NULL ) IN ( - col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * - tab2.col0 * + col2 + col0 col0 FROM tab2
----
-113997
-5096
-52650

query I rowsort
SELECT col2 FROM tab1 WHERE + col1 + col0 NOT BETWEEN ( NULL ) AND col1
----
54
57
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-6002
SELECT ALL tab1.col2 * col1 + - tab1.col2 DIV col0 FROM tab1
----
1247
1386
570

skipif mysql # not compatible
query I rowsort label-6002
SELECT ALL tab1.col2 * col1 + - tab1.col2 / col0 FROM tab1
----
1247
1386
570

query I rowsort
SELECT DISTINCT + col0 FROM tab0 WHERE NOT ( NULL ) <> ( + col1 * + col0 )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( + col2 )
----

query I rowsort
SELECT col2 + col0 + col2 AS col0 FROM tab1 cor0
----
111
178
272

query I rowsort
SELECT + col0 + - col1 + col0 * - cor0.col1 FROM tab2 cor0
----
-1281
-241
-4583

query I rowsort
SELECT ALL col1 * col2 * - col0 FROM tab1 AS cor0
----
-36480
-4212
-99840

query I rowsort
SELECT - col0 + + col1 AS col1 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( col1 / - col2 )
----

query I rowsort
SELECT col2 * + col1 + col2 FROM tab1 AS cor0
----
1344
1458
627

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6010
SELECT DISTINCT - CAST( + ( col0 ) AS SIGNED ) * ( col0 ) col2 FROM tab1
----
-4096
-6400
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6010
SELECT DISTINCT - CAST ( + ( col0 ) AS INTEGER ) * ( col0 ) col2 FROM tab1
----
-4096
-6400
-9

query I rowsort
SELECT DISTINCT - - col0 + col1 AS col2 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT - 93 * - col1 FROM tab0 AS cor0
----
7998
8463
9021

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6013
SELECT DISTINCT + CAST( 71 AS SIGNED ) FROM tab2 AS cor0
----
71

skipif mysql # not compatible
query I rowsort label-6013
SELECT DISTINCT + CAST ( 71 AS INTEGER ) FROM tab2 AS cor0
----
71

query I rowsort
SELECT ( + col1 + tab0.col2 ) FROM tab0
----
119
173
98

query I rowsort
SELECT DISTINCT - + cor0.col1 * 77 AS col1 FROM tab1 AS cor0
----
-1001
-2002
-770

query I rowsort
SELECT ALL - - ( + col0 ) * col2 + - col1 AS col2 FROM tab2 AS cor0
----
158
1969
2985

query I rowsort
SELECT DISTINCT + + col0 + col2 AS col0 FROM tab0 AS cor0
----
171
36
57

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6018
SELECT - - CAST( + col2 AS SIGNED ) + col0 FROM tab2 AS cor0
----
104
117
34

skipif mysql # not compatible
query I rowsort label-6018
SELECT - - CAST ( + col2 AS INTEGER ) + col0 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT 92 + 68 FROM tab2 AS cor0
----
160
160
160

query I rowsort
SELECT - + ( 10 ) * + col2 FROM tab1 AS cor0
----
-540
-570
-960

query I rowsort
SELECT DISTINCT - col2 * + col1 + + col0 AS col2 FROM tab0 AS cor0
----
-2814
-62
-7373

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + ( col2 ) * col0 col0 FROM tab0 AS cor0
----
70
7387
816

query I rowsort
SELECT DISTINCT + + col1 + - col2 * col1 AS col1 FROM tab2 AS cor0
----
-1475
-629
-806

query I rowsort
SELECT - - 76 + col1 FROM tab0 AS cor0
----
162
167
173

query I rowsort
SELECT ALL - ( + 70 ) AS col1 FROM tab2 cor0
----
-70
-70
-70

query I rowsort
SELECT + - 75 + 82 FROM tab0 AS cor0
----
7
7
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-6027
SELECT DISTINCT + - 26 DIV - col1 + col1 * - 53 AS col1 FROM tab0 AS cor0
----
-4558
-4823
-5141

skipif mysql # not compatible
query I rowsort label-6027
SELECT DISTINCT + - 26 / - col1 + col1 * - 53 AS col1 FROM tab0 AS cor0
----
-4558
-4823
-5141

query I rowsort
SELECT + cor0.col0 + - col2 * - col0 AS col1 FROM tab2 AS cor0
----
196
2106
3081

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 1 col0 FROM tab0 AS cor0
----
1
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-6030
SELECT DISTINCT + col2 DIV - 55 FROM tab1 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-6030
SELECT DISTINCT + col2 / - 55 FROM tab1 AS cor0
----
-1
0

query I rowsort
SELECT - + col0 - ( col1 ) * - col0 * - col1 AS col2 FROM tab0 AS cor0
----
-177528
-329350
-737098

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 col2 FROM tab2 cor0
----
17
31
59

query I rowsort
SELECT DISTINCT + col2 * col1 - + col1 AS col1 FROM tab0
----
0
2752
7371

query I rowsort
SELECT ALL + tab1.col2 - + col0 * - ( - col0 ) AS col1 FROM tab1
----
-4039
-6304
45

query I rowsort
SELECT ALL + col2 + - 98 FROM tab2
----
-60
-71
-72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + tab1.col2 * col2 + - col0 * - col1 col1 FROM tab1
----
10256
2994
3889

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + + 55 * 67 + + col1 * - ( 78 ) col2 FROM tab2
----
-839
1274
2438

query I rowsort
SELECT ALL + tab0.col1 + + col2 * - col0 FROM tab0
----
-706
-7207
62

query I rowsort
SELECT col0 * 81 FROM tab0
----
1944
2835
7209

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6040
SELECT DISTINCT - col1 * + CAST( NULL AS DECIMAL ) col2 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6040
SELECT DISTINCT - col1 * + CAST ( NULL AS REAL ) col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT col2 + + 48 * - cor0.col0 FROM tab2 AS cor0
----
-309
-3718
-3754

query I rowsort
SELECT ALL col1 * 89 * col2 + col2 AS col2 FROM tab0
----
252615
664200
8634

query I rowsort
SELECT DISTINCT tab1.col0 + + col1 * - col2 FROM tab1
----
-1168
-1401
-506

query I rowsort
SELECT DISTINCT col0 * + ( col1 ) + + col1 * col2 FROM tab1
----
1210
1482
2288

query I rowsort
SELECT col1 * 34 AS col0 FROM tab2
----
1054
2006
578

query I rowsort
SELECT - col1 * - 48 FROM tab2
----
1488
2832
816

onlyif mysql # use DIV operator for integer division
query I rowsort label-6047
SELECT col0 DIV col1 + cor0.col1 * + col2 AS col1 FROM tab1 AS cor0
----
1254
1404
576

skipif mysql # not compatible
query I rowsort label-6047
SELECT col0 / col1 + cor0.col1 * + col2 AS col1 FROM tab1 AS cor0
----
1254
1404
576

query I rowsort
SELECT ALL + col2 * 40 FROM tab1
----
2160
2280
3840

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 51 col0 FROM tab2, tab0 AS cor0
----
9 values hashing to d8bf0a05c9c4d2a93812d106baae4752

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6050
SELECT + CAST( 77 AS SIGNED ) * col0 + - col2 AS col2 FROM tab1
----
177
4871
6064

skipif mysql # not compatible
query I rowsort label-6050
SELECT + CAST ( 77 AS INTEGER ) * col0 + - col2 AS col2 FROM tab1
----
177
4871
6064

query I rowsort
SELECT - cor0.col2 AS col2 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 44fdcd7cd603352d4d127811d164cc1e

query I rowsort
SELECT DISTINCT ( + 99 ) FROM tab0
----
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + col0 + + col0 col1 FROM tab1 AS cor0
----
-48
64
71

query I rowsort
SELECT ( - col2 ) * - col1 * col1 AS col2 FROM tab2 AS cor0
----
10982
25947
90506

query I rowsort
SELECT ALL - 18 + - cor0.col2 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 23935a4af011f400aca1a123b587206f

query I rowsort
SELECT ALL 43 * - col0 AS col2 FROM tab0
----
-1032
-1505
-3827

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 91 * col2 col1 FROM tab2
----
2366
2457
3458

query I rowsort
SELECT ALL - ( col2 ) * ( - col0 ) * - tab2.col2 AS col2 FROM tab2
----
-114076
-5103
-52728

query I rowsort
SELECT DISTINCT - tab0.col0 AS col2 FROM tab0, tab2 cor0
----
-24
-35
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - col1 col0 FROM tab0
----
-2838
-7462
-97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6061
SELECT - col0 * col2 * CAST( - 54 AS SIGNED ) FROM tab2 AS cor0
----
10206
109512
162108

skipif mysql # not compatible
query I rowsort label-6061
SELECT - col0 * col2 * CAST ( - 54 AS INTEGER ) FROM tab2 AS cor0
----
10206
109512
162108

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 31 col1 FROM tab0 AS cor0
----
31

query I rowsort
SELECT ALL 2 + + col0 AS col1 FROM tab0 AS cor0
----
26
37
91

query I rowsort
SELECT ALL + + col1 * + col2 + 74 AS col0 FROM tab2 AS cor0
----
1608
720
911

query I rowsort
SELECT ALL col2 + + col1 * ( col1 ) * + col1 + + col1 AS col0 FROM tab0 AS cor0
----
636175
753744
912771

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 - + ( - col1 + col2 ) * - col0 col0 FROM tab0 AS cor0
----
-1248
-3325
-712

query I rowsort
SELECT + - col2 * - col0 + + cor0.col0 FROM tab1 cor0
----
165
3712
7760

query I rowsort
SELECT ALL + + col1 + col1 * 28 AS col2 FROM tab1 AS cor0
----
290
377
754

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - ( 99 ) col0 FROM tab0 AS cor0
----
-8514
-9009
-9603

query I rowsort
SELECT col0 * + 23 FROM tab1 AS cor0
----
1472
1840
69

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6071
SELECT - col2 + CAST( 50 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-32
17
49

skipif mysql # not compatible
query I rowsort label-6071
SELECT - col2 + CAST ( 50 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-32
17
49

query I rowsort
SELECT col1 * 50 * - 49 FROM tab0 AS cor0
----
-210700
-222950
-237650

query I rowsort
SELECT + + col1 * ( col0 ) - + col2 FROM tab2 AS cor0
----
1305
190
4576

query I rowsort
SELECT + col1 + + cor0.col0 AS col2 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT col1 + + col2 * col0 FROM tab2 cor0
----
2087
220
3019

query I rowsort
SELECT ALL + + cor0.col2 + + col1 * - col2 FROM tab2 AS cor0
----
-1508
-608
-810

query I rowsort
SELECT - 73 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 84ab9db5468b4a1781bd8d5c8e0e77fc

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6078
SELECT + col2 + - CAST( NULL AS SIGNED ) * 99 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6078
SELECT + col2 + - CAST ( NULL AS INTEGER ) * 99 AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6079
SELECT - col1 * - ( - col2 ) + + col2 * - CAST( col0 AS SIGNED ) * - tab2.col1 AS col1 FROM tab2
----
118118
5022
50388

skipif mysql # not compatible
query I rowsort label-6079
SELECT - col1 * - ( - col2 ) + + col2 * - CAST ( col0 AS INTEGER ) * - tab2.col1 AS col1 FROM tab2
----
118118
5022
50388

onlyif mysql # use DIV operator for integer division
query I rowsort label-6080
SELECT col1 * col0 DIV 30 - col2 FROM tab1
----
-36
-52
-62

skipif mysql # not compatible
query I rowsort label-6080
SELECT col1 * col0 / 30 - col2 FROM tab1
----
-36
-52
-62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + ( + cor0.col0 ) * cor0.col0 col0 FROM tab0 AS cor0
----
1128
490
7830

query I rowsort
SELECT ALL col1 * - 56 + ( + col2 ) FROM tab0 AS cor0
----
-4783
-5014
-5431

query I rowsort
SELECT DISTINCT + + col0 + col2 - + 19 AS col1 FROM tab0 AS cor0
----
152
17
38

query I rowsort
SELECT ALL + - 40 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 01aad4539198a6509248e086869f90a6

query I rowsort
SELECT ALL cor0.col1 FROM tab1, tab2, tab1 cor0
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

query I rowsort
SELECT + col2 * + 7 AS col0 FROM tab0
----
231
574
7

query I rowsort
SELECT DISTINCT 86 * + ( col1 ) FROM tab0
----
7396
7826
8342

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 - 74 col0 FROM tab2 AS cor0
----
-152
-153
-81

query I rowsort
SELECT + - 89 + - col2 * - col2 AS col1 FROM tab1 AS cor0
----
2827
3160
9127

query I rowsort
SELECT ALL + col0 + - ( - col0 ) FROM tab0
----
178
48
70

query I rowsort
SELECT - cor0.col0 * col0 + cor0.col2 FROM tab2 AS cor0
----
-22
-6058
-6203

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 34 * - col0 + + col2 col2 FROM tab2 AS cor0
----
-211
-2626
-2648

query I rowsort
SELECT ALL - + 10 + 15 * - cor0.col1 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 90d965274569ccc66df9128a219c2f20

query I rowsort
SELECT - col0 + col1 * + cor0.col2 FROM tab1 AS cor0
----
1168
1401
506

query I rowsort
SELECT DISTINCT - + 84 AS col0 FROM tab0 AS cor0
----
-84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 + col1 + + ( cor0.col2 + col2 * + col2 ) col1 FROM tab2 cor0
----
1578
794
839

query I rowsort
SELECT - 68 * + col2 AS col0 FROM tab1 AS cor0
----
-3672
-3876
-6528

query I rowsort
SELECT DISTINCT + - col0 * col1 AS col0 FROM tab1 cor0
----
-1040
-640
-78

query I rowsort
SELECT - 28 * col1 + - ( + ( col2 ) ) FROM tab0 AS cor0
----
-2441
-2630
-2717

query I rowsort
SELECT ALL - - col0 + + cor0.col1 * - col1 * col0 AS col2 FROM tab2 AS cor0
----
-22752
-271440
-6720

query I rowsort
SELECT DISTINCT col2 * + col0 * - col1 AS col0 FROM tab2
----
-119652
-51034
-5859

query I rowsort
SELECT ALL - 55 + + col0 * tab2.col0 * + 18 AS col1 FROM tab2
----
109457
112283
827

query I rowsort
SELECT - 79 * col1 + + 32 FROM tab0
----
-6762
-7157
-7631

query I rowsort
SELECT - col2 + col0 * + cor0.col2 AS col2 FROM tab0 AS cor0
----
34
7216
759

query I rowsort
SELECT - col0 + - cor0.col1 * col1 AS col2 FROM tab1 AS cor0
----
-164
-249
-679

onlyif mysql # use DIV operator for integer division
query I rowsort label-6106
SELECT DISTINCT + col1 DIV ( + col2 + + col0 ) AS col0 FROM tab0 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-6106
SELECT DISTINCT + col1 / ( + col2 + + col0 ) AS col0 FROM tab0 AS cor0
----
0
1
2

query I rowsort
SELECT ALL col0 * + 41 FROM tab1 AS cor0
----
123
2624
3280

query I rowsort
SELECT + col1 + 50 AS col1 FROM tab2 AS cor0
----
109
67
81

query I rowsort
SELECT col0 + col2 AS col2 FROM tab2 cor0
----
104
117
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + - col1 col0 FROM tab1 AS cor0
----
-109
-67
-80

query I rowsort
SELECT DISTINCT - - col1 * - col0 * + 29 FROM tab1 cor0
----
-18560
-2262
-30160

query I rowsort
SELECT ALL - 40 + col1 * - col0 FROM tab1
----
-1080
-118
-680

query I rowsort
SELECT ALL + + col0 * 78 AS col1 FROM tab1 cor0
----
234
4992
6240

query I rowsort
SELECT 33 - col0 FROM tab0 AS cor0
----
-2
-56
9

query I rowsort
SELECT ALL 47 * + col0 AS col0 FROM tab2 AS cor0
----
329
3666
3713

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6116
SELECT DISTINCT CAST( NULL AS SIGNED ) * - 68 + cor0.col1 * 73 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6116
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - 68 + cor0.col1 * 73 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - - ( col2 ) + col1 * - 6 FROM tab0 AS cor0
----
-464
-483
-581

onlyif mysql # use DIV operator for integer division
query I rowsort label-6118
SELECT col0 DIV - cor0.col2 + cor0.col0 + + 51 AS col0 FROM tab1 AS cor0
----
114
131
54

skipif mysql # not compatible
query I rowsort label-6118
SELECT col0 / - cor0.col2 + cor0.col0 + + 51 AS col0 FROM tab1 AS cor0
----
114
131
54

skipif mysql # not compatible
query I rowsort
SELECT ALL CAST ( col0 AS REAL ) + col0 * 23 FROM tab0 AS cor0
----
2136
576
840

query I rowsort
SELECT + col2 - - 8 AS col1 FROM tab2 AS cor0
----
34
35
46

query I rowsort
SELECT ALL - ( + col1 ) * col2 + + col2 AS col0 FROM tab1 AS cor0
----
-1152
-1350
-513

query I rowsort
SELECT - ( + col1 ) - - col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6123
SELECT DISTINCT - col1 DIV col2 + + col2 FROM tab0 cor0
----
-96
31
81

skipif mysql # not compatible
query I rowsort label-6123
SELECT DISTINCT - col1 / col2 + + col2 FROM tab0 cor0
----
-96
31
81

query I rowsort
SELECT ALL + col1 * + col1 - - col2 AS col1 FROM tab0 AS cor0
----
7429
8363
9410

query I rowsort
SELECT DISTINCT + col0 * ( col1 * col2 ) + ( - col0 * - col0 ) FROM tab1 AS cor0
----
106240
40576
4221

query I rowsort
SELECT ALL + - 30 * col0 FROM tab0 AS cor0
----
-1050
-2670
-720

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6127
SELECT ALL - col2 * + 52 * col1 + CAST( NULL AS SIGNED ) * - col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6127
SELECT ALL - col2 * + 52 * col1 + CAST ( NULL AS INTEGER ) * - col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6128
SELECT - 90 DIV ( col1 ) + ( col1 * col2 ) + + col1 AS col0 FROM tab0
----
194
2923
7553

skipif mysql # not compatible
query I rowsort label-6128
SELECT - 90 / ( col1 ) + ( col1 * col2 ) + + col1 AS col0 FROM tab0
----
194
2923
7553

query I rowsort
SELECT - - col1 + + col0 AS col2 FROM tab2 cor0
----
137
38
96

query I rowsort
SELECT DISTINCT - col0 * + col2 + cor0.col0 * - col0 FROM tab0 cor0
----
-1260
-1368
-15219

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6131
SELECT DISTINCT CAST( NULL AS SIGNED ) + col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6131
SELECT DISTINCT CAST ( NULL AS INTEGER ) + col1 FROM tab2
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6132
SELECT - col1 DIV 42 FROM tab0
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-6132
SELECT - col1 / 42 FROM tab0
----
-2
-2
-2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 88 col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37

onlyif mysql # use DIV operator for integer division
query I rowsort label-6134
SELECT col1 DIV - col0 + col2 AS col0 FROM tab1
----
46
57
96

skipif mysql # not compatible
query I rowsort label-6134
SELECT col1 / - col0 + col2 AS col0 FROM tab1
----
46
57
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - col0 * + col0 * col0 + + col1 col0 FROM tab2 AS cor0
----
-305
-474415
-492943

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * cor0.col2 col1 FROM tab0 AS cor0
----
-2838
-7462
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + tab2.col0 * + col0 col1 FROM tab2
----
56
6162
6320

query I rowsort
SELECT ALL 63 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to c3eea92c46f2c49716f386a58b575025

query I rowsort
SELECT ALL + col0 + + 66 AS col1 FROM tab1 cor0
----
130
146
69

query I rowsort
SELECT + 72 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 92cc3d5daa550304e96c1542787691c7

onlyif mysql # use DIV operator for integer division
query I rowsort label-6141
SELECT DISTINCT + - col0 * col1 DIV + col1 + + col1 FROM tab2 AS cor0
----
-19
-62
24

skipif mysql # not compatible
query I rowsort label-6141
SELECT DISTINCT + - col0 * col1 / + col1 + + col1 FROM tab2 AS cor0
----
-19
-62
24

onlyif mysql # use DIV operator for integer division
query I rowsort label-6142
SELECT ALL - 76 * - col2 + - col0 DIV + CAST( - 10 AS SIGNED ) AS col0 FROM tab2 cor0
----
1983
2052
2895

skipif mysql # not compatible
query I rowsort label-6142
SELECT ALL - 76 * - col2 + - col0 / + CAST ( - 10 AS INTEGER ) AS col0 FROM tab2 cor0
----
1983
2052
2895

query I rowsort
SELECT DISTINCT col0 * 16 AS col0 FROM tab2 AS cor0
----
112
1248
1264

query I rowsort
SELECT + col2 + ( col0 ) AS col2 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT ALL 95 AS col1 FROM tab2
----
95
95
95

query I rowsort
SELECT + - 17 + cor0.col1 AS col0 FROM tab2 AS cor0
----
0
14
42

query I rowsort
SELECT + col2 * + col2 + - col2 AS col1 FROM tab0 AS cor0
----
0
1056
6642

query I rowsort
SELECT ALL + + col1 * + col1 + + col2 FROM tab2 AS cor0
----
327
3507
988

onlyif mysql # use DIV operator for integer division
query I rowsort label-6149
SELECT - col2 DIV - cor0.col1 + + col1 AS col0 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-6149
SELECT - col2 / - cor0.col1 + + col1 AS col0 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - col2 + - col1 + + CAST ( col2 AS REAL ) * col0 AS col0 FROM tab2
----
131
1943
2947

query I rowsort
SELECT - - 76 * col2 FROM tab2 cor0
----
1976
2052
2888

query I rowsort
SELECT ALL + col0 + + cor0.col2 + col2 AS col1 FROM tab0 cor0
----
253
37
90

onlyif mysql # use DIV operator for integer division
query I rowsort label-6153
SELECT ALL + 29 DIV - col1 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-6153
SELECT ALL + 29 / - col1 FROM tab2 AS cor0
----
-1
0
0

query I rowsort
SELECT + ( - col1 ) * 44 AS col2 FROM tab2 AS cor0
----
-1364
-2596
-748

query I rowsort
SELECT DISTINCT ( + cor0.col1 ) * col1 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT + + col2 * col1 * cor0.col0 FROM tab1 AS cor0
----
36480
4212
99840

onlyif mysql # use DIV operator for integer division
query I rowsort label-6157
SELECT DISTINCT - ( + col0 ) DIV 64 AS col2 FROM tab1 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-6157
SELECT DISTINCT - ( + col0 ) / 64 AS col2 FROM tab1 AS cor0
----
-1
0

query I rowsort
SELECT - cor0.col0 + 70 FROM tab0 AS cor0
----
-19
35
46

query I rowsort
SELECT + col0 + col0 * 63 FROM tab2 AS cor0
----
448
4992
5056

query I rowsort
SELECT ALL + col2 * ( cor0.col1 ) AS col2 FROM tab1 AS cor0
----
1248
1404
570

onlyif mysql # use DIV operator for integer division
query I rowsort label-6161
SELECT DISTINCT + cor0.col1 DIV + ( + 7 * cor0.col2 ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6161
SELECT DISTINCT + cor0.col1 / + ( + 7 * cor0.col2 ) FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT - cor0.col1 + cor0.col1 AS col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL - col1 + + col1 * - 31 AS col0 FROM tab2
----
-1888
-544
-992

query I rowsort
SELECT - col1 - col2 AS col1 FROM tab1 AS cor0
----
-109
-67
-80

onlyif mysql # use DIV operator for integer division
query I rowsort label-6165
SELECT - col2 DIV CAST( 15 AS SIGNED ) col2 FROM tab0 AS cor0
----
-2
-5
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6165
SELECT - col2 / CAST ( 15 AS INTEGER ) col2 FROM tab0 AS cor0
----
-2
-5
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6166
SELECT + col2 + ( + cor0.col2 ) DIV col0 FROM tab0 AS cor0
----
1
34
82

skipif mysql # not compatible
query I rowsort label-6166
SELECT + col2 + ( + cor0.col2 ) / col0 FROM tab0 AS cor0
----
1
34
82

query I rowsort
SELECT - col1 * 11 FROM tab1 AS cor0
----
-110
-143
-286

onlyif mysql # use DIV operator for integer division
query I rowsort label-6168
SELECT col1 DIV ( col2 ) col0 FROM tab0 AS cor0
----
1
2
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6168
SELECT col1 / ( col2 ) col0 FROM tab0 AS cor0
----
1
2
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-6169
SELECT + - col0 + 27 DIV - col0 + - col2 DIV cor0.col2 FROM tab1 AS cor0
----
-13
-65
-81

skipif mysql # not compatible
query I rowsort label-6169
SELECT + - col0 + 27 / - col0 + - col2 / cor0.col2 FROM tab1 AS cor0
----
-13
-65
-81

query I rowsort
SELECT ALL col1 * 38 AS col0 FROM tab0 AS cor0
----
3268
3458
3686

query I rowsort
SELECT - 65 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 744531575c1b6461ed2916d4940e4d23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - ( ( - tab1.col2 ) ) + - col0 * - col0 * - col2 col1 FROM tab1
----
-230223
-605184
2430

query I rowsort
SELECT - - cor0.col1 FROM tab2, tab0 cor0, tab0, tab0 AS cor1
----
81 values hashing to 8c9db501a604ea66e3b5e5598f3f2a91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 + cor0.col0 * ( - 86 ) col1 FROM tab0 AS cor0
----
-2150
-3107
-7745

onlyif mysql # use DIV operator for integer division
query I rowsort label-6175
SELECT + cor1.col1 DIV ( + 25 ) col1 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 14fcfa6c11198893073049d94262832c

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6175
SELECT + cor1.col1 / ( + 25 ) col1 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 14fcfa6c11198893073049d94262832c

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 50 col2 FROM tab0
----
50
50
50

query I rowsort
SELECT DISTINCT ( cor0.col1 ) + - col2 FROM tab1 AS cor0
----
-28
-47
-83

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6178
SELECT DISTINCT CAST( NULL AS SIGNED ) + - cor0.col2 AS col1 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-6178
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - cor0.col2 AS col1 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
NULL

query I rowsort
SELECT - 94 + - cor0.col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 5f326fd9f0fdf50f971f4c7be28fd5a3

query I rowsort
SELECT ALL + + col0 + - col2 + col2 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT ALL + - col0 * col2 * col2 + col1 AS col2 FROM tab2 AS cor0
----
-114059
-5072
-52669

query I rowsort
SELECT - col2 * + col0 + - col1 AS col2 FROM tab1 AS cor0
----
-188
-3658
-7693

query I rowsort
SELECT + 0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT DISTINCT 26 + col2 * col0 FROM tab0 AS cor0
----
61
7324
818

query I rowsort
SELECT - tab0.col2 AS col1 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc

query I rowsort
SELECT ALL + 97 + - 46 FROM tab0
----
51
51
51

onlyif mysql # use DIV operator for integer division
query I rowsort label-6187
SELECT ALL - col1 + - col2 DIV + 25 + - col2 * col2 * + 76 AS col2 FROM tab1 AS cor0
----
-221644
-246936
-700432

skipif mysql # not compatible
query I rowsort label-6187
SELECT ALL - col1 + - col2 / + 25 + - col2 * col2 * + 76 AS col2 FROM tab1 AS cor0
----
-221644
-246936
-700432

onlyif mysql # use DIV operator for integer division
query I rowsort label-6188
SELECT ALL ( ( col0 ) ) DIV 45 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-6188
SELECT ALL ( ( col0 ) ) / 45 FROM tab1
----
0
1
1

query I rowsort
SELECT DISTINCT 91 * col1 + + col2 AS col2 FROM tab0
----
7859
8363
8828

query I rowsort
SELECT cor1.col0 + + 21 AS col1 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to e5ff1b70ee27c67ccb66e3599eb34b38

query I rowsort
SELECT DISTINCT - ( + col1 ) + - col1 FROM tab2
----
-118
-34
-62

query I rowsort
SELECT - col2 + ( col2 ) * col2 FROM tab2 cor0
----
1406
650
702

query I rowsort
SELECT ALL + cor0.col2 + cor0.col2 AS col0 FROM tab1 AS cor0
----
108
114
192

onlyif mysql # use DIV operator for integer division
query I rowsort label-6194
SELECT DISTINCT + col1 DIV + 32 AS col2 FROM tab2 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-6194
SELECT DISTINCT + col1 / + 32 AS col2 FROM tab2 AS cor0
----
0
1

query I rowsort
SELECT - - col1 * col2 - col0 AS col0 FROM tab1 AS cor0
----
1168
1401
506

query I rowsort
SELECT DISTINCT 53 + - cor0.col1 AS col0 FROM tab2, tab1, tab2 AS cor0
----
-6
22
36

query I rowsort
SELECT DISTINCT 24 AS col1 FROM tab2
----
24

query I rowsort
SELECT DISTINCT col0 * + col0 * ( 14 + col1 ) AS col1 FROM tab0
----
135975
57600
831705

onlyif mysql # use DIV operator for integer division
query I rowsort label-6199
SELECT col0 + col0 + + col2 DIV + col0 AS col2 FROM tab2
----
156
158
17

skipif mysql # not compatible
query I rowsort label-6199
SELECT col0 + col0 + + col2 / + col0 AS col2 FROM tab2
----
156
158
17

query I rowsort
SELECT 25 - + 1 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab1 AS cor2
----
81 values hashing to dfdfceb3acab6f866df9d676c07043ad

query I rowsort
SELECT DISTINCT col2 - + col1 * - col0 AS col0 FROM tab0
----
2097
3396
8181

onlyif mysql # use DIV operator for integer division
query I rowsort label-6202
SELECT - - col1 DIV col0 + col1 col0 FROM tab1 AS cor0
----
10
13
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6202
SELECT - - col1 / col0 + col1 col0 FROM tab1 AS cor0
----
10
13
34

onlyif mysql # use DIV operator for integer division
query I rowsort label-6203
SELECT col2 * - 45 * + 88 - + col1 DIV + 25 FROM tab0 AS cor0
----
-130683
-324723
-3963

skipif mysql # not compatible
query I rowsort label-6203
SELECT col2 * - 45 * + 88 - + col1 / + 25 FROM tab0 AS cor0
----
-130683
-324723
-3963

query I rowsort
SELECT + col2 * + col1 + - cor0.col0 AS col2 FROM tab1 AS cor0
----
1168
1401
506

onlyif mysql # use DIV operator for integer division
query I rowsort label-6205
SELECT col2 * 73 DIV col0 + col2 FROM tab2 AS cor0
----
308
50
73

skipif mysql # not compatible
query I rowsort label-6205
SELECT col2 * 73 / col0 + col2 FROM tab2 AS cor0
----
308
50
73

query I rowsort
SELECT + col2 - - col1 * 63 FROM tab0 AS cor0
----
5451
5815
6112

query I rowsort
SELECT col0 * col2 + + col1 * col0 AS col1 FROM tab2 AS cor0
----
406
4345
6630

query I rowsort
SELECT - col2 + col1 + - col2 * - col0 * tab1.col1 AS col2 FROM tab1
----
36433
4184
99757

query I rowsort
SELECT ALL col2 * col0 - 40 * col0 FROM tab1
----
1088
42
4480

query I rowsort
SELECT + col1 * tab1.col2 + col0 FROM tab1
----
1328
1407
634

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 - - 34 col2 FROM tab1
----
114
37
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-6212
SELECT - col0 DIV ( + 79 ) - - col1 AS col0 FROM tab0 AS cor0
----
86
90
97

skipif mysql # not compatible
query I rowsort label-6212
SELECT - col0 / ( + 79 ) - - col1 AS col0 FROM tab0 AS cor0
----
86
90
97

query I rowsort
SELECT ALL - col2 + - col0 + col1 * col0 * - col2 AS col1 FROM tab1 AS cor0
----
-100016
-36601
-4269

query I rowsort
SELECT + 49 * + col2 + col2 * + col2 AS col0 FROM tab2 AS cor0
----
1950
2052
3306

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + ( + 7 ) + col0 col0 FROM tab1 cor0
----
10
71
87

query I rowsort
SELECT DISTINCT 84 + col0 * col2 FROM tab2 AS cor0
----
2112
273
3086

query I rowsort
SELECT DISTINCT + 88 + col2 * col1 + cor0.col1 AS col0 FROM tab0 AS cor0
----
282
3012
7641

query I rowsort
SELECT ALL - col2 * ( col1 ) - + col0 AS col0 FROM tab2 AS cor0
----
-1612
-725
-844

query I rowsort
SELECT ALL - 27 * + col2 + + col0 + + ( - 67 ) AS col1 FROM tab0 AS cor0
----
-2192
-59
-934

query I rowsort
SELECT 32 + - 13 FROM tab2 AS cor0
----
19
19
19

query I rowsort
SELECT DISTINCT + 28 * + col2 * col2 + + ( col2 ) + + col0 * + 84 FROM tab1 AS cor0
----
264864
81954
96405

query I rowsort
SELECT - 32 * col2 AS col0 FROM tab1 AS cor0
----
-1728
-1824
-3072

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 15 col0 FROM tab2 AS cor0
----
-15
-15
-15

query I rowsort
SELECT ALL + - 52 - - col1 * - col1 AS col0 FROM tab2 AS cor0
----
-1013
-341
-3533

onlyif mysql # use DIV operator for integer division
query I rowsort label-6225
SELECT ALL + ( - col2 ) + + col2 DIV col1 AS col0 FROM tab0 AS cor0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-6225
SELECT ALL + ( - col2 ) + + 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 + 19 col1 FROM tab1 AS cor0
----
19
19
19

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 15 + 13 col0 FROM tab0 cor0
----
28
28
28

query I rowsort
SELECT ALL 14 * + cor0.col1 AS col2 FROM tab1 AS cor0
----
140
182
364

query I rowsort
SELECT - col1 * ( + col2 ) - col2 * col1 FROM tab2 cor0
----
-1292
-1674
-3068

query I rowsort
SELECT DISTINCT - 45 * - col1 * + cor0.col2 FROM tab2 AS cor0
----
29070
37665
69030

query I rowsort
SELECT + col2 + - 19 * col0 - col1 FROM tab2
----
-137
-1480
-1515

onlyif mysql # use DIV operator for integer division
query I rowsort label-6232
SELECT DISTINCT col2 + - col1 DIV + col2 FROM tab1 cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-6232
SELECT DISTINCT col2 + - col1 / + col2 FROM tab1 cor0
----
54
57
96

query I rowsort
SELECT - col2 * - col0 * + col0 FROM tab1 AS cor0
----
233472
486
614400

query I rowsort
SELECT DISTINCT + ( - 46 ) * col2 FROM tab1 cor0
----
-2484
-2622
-4416

query I rowsort
SELECT col1 * + cor0.col2 + col2 * col2 FROM tab0 AS cor0
----
14186
3927
98

query I rowsort
SELECT DISTINCT - - cor1.col2 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
26
27
38

query I rowsort
SELECT - tab2.col2 + col1 AS col0 FROM tab2
----
-21
33
4

query I rowsort
SELECT ( - cor0.col0 ) * - col2 AS col0 FROM tab1 AS cor0
----
162
3648
7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-6239
SELECT ALL - - col1 DIV + col2 + cor0.col1 * col2 FROM tab1 AS cor0
----
1248
1404
570

skipif mysql # not compatible
query I rowsort label-6239
SELECT ALL - - col1 / + col2 + cor0.col1 * col2 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT ALL + - cor0.col0 * col0 - - 53 * - 66 FROM tab0 AS cor0
----
-11419
-4074
-4723

query I rowsort
SELECT DISTINCT col2 * col0 + - col2 * - col2 AS col1 FROM tab0 cor0
----
14022
1881
36

query I rowsort
SELECT ALL - col1 * - col1 AS col2 FROM tab1 cor0
----
100
169
676

onlyif mysql # use DIV operator for integer division
query I rowsort label-6243
SELECT DISTINCT - - col0 DIV - col1 + + ( - col1 ) AS col0 FROM tab0 AS cor0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-6243
SELECT DISTINCT - - col0 / - col1 + + ( - col1 ) AS col0 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT DISTINCT - 35 * cor0.col0 + col2 * + col2 + col1 AS col0 FROM tab2 AS cor0
----
-1304
-1995
515

query I rowsort
SELECT DISTINCT col2 * + col1 + col0 AS col0 FROM tab2 AS cor0
----
1612
725
844

query I rowsort
SELECT DISTINCT ( col1 ) * col1 * - col2 + col0 AS col2 FROM tab1 AS cor0
----
-16144
-36501
-5636

query I rowsort
SELECT - col0 + - col0 AS col0 FROM tab0 cor0
----
-178
-48
-70

onlyif mysql # use DIV operator for integer division
query I rowsort label-6248
SELECT + cor0.col0 + ( cor0.col1 ) DIV col1 FROM tab0 AS cor0
----
25
36
90

skipif mysql # not compatible
query I rowsort label-6248
SELECT + cor0.col0 + ( cor0.col1 ) / col1 FROM tab0 AS cor0
----
25
36
90

query I rowsort
SELECT DISTINCT - col0 * ( 80 ) AS col2 FROM tab0 AS cor0
----
-1920
-2800
-7120

query I rowsort
SELECT DISTINCT 59 FROM tab0, tab0 AS cor0
----
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 80 - col1 col1 FROM tab0 AS cor0
----
-166
-171
-177

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 79 * col0 + - col2 col2 FROM tab2 cor0
----
-580
-6188
-6279

onlyif mysql # use DIV operator for integer division
query I rowsort label-6253
SELECT - 45 * + col0 - + 43 DIV col0 FROM tab0 AS cor0
----
-1081
-1576
-4005

skipif mysql # not compatible
query I rowsort label-6253
SELECT - 45 * + col0 - + 43 / col0 FROM tab0 AS cor0
----
-1081
-1576
-4005

query I rowsort
SELECT ALL + col1 * col2 + - col0 * - col2 FROM tab1
----
1566
4218
8928

query I rowsort
SELECT + ( 11 ) AS col0 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 69116737f3f57e2e3273f6dbb04d036c

query I rowsort
SELECT - cor0.col2 AS col2 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + col2 * - 28 + + col0 * col1 col0 FROM tab1
----
-1380
-1552
-899

query I rowsort
SELECT + cor0.col2 * col2 + + 82 FROM tab0 AS cor0
----
1171
6806
83

query I rowsort
SELECT DISTINCT - + ( + col1 ) + ( col0 ) FROM tab0 AS cor0
----
-2
-62

query I rowsort
SELECT DISTINCT - ( col0 ) * - cor0.col0 + + col2 AS col0 FROM tab2 AS cor0
----
6110
6279
76

query I rowsort
SELECT ALL + 25 * cor0.col2 + 32 AS col2 FROM tab0 AS cor0
----
2082
57
857

query I rowsort
SELECT DISTINCT 38 - col0 FROM tab2 AS cor0
----
-40
-41
31

query I rowsort
SELECT ALL + 7 * col1 - - col1 AS col1 FROM tab0 AS cor0
----
688
728
776

query I rowsort
SELECT - 12 + cor0.col0 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 5e60b5586d4dda7db89500c5cda040b9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 5 col2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 74665fbb47d5b17da011bca567195b21

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6266
SELECT CAST( cor0.col1 AS SIGNED ) * cor0.col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 9708a433b981d9b5fd095bfe2ea45aea

skipif mysql # not compatible
query I rowsort label-6266
SELECT CAST ( cor0.col1 AS INTEGER ) * cor0.col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 9708a433b981d9b5fd095bfe2ea45aea

query I rowsort
SELECT DISTINCT 70 AS col1 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
70

query I rowsort
SELECT ALL + cor0.col0 * + 23 AS col2 FROM tab2 AS cor0
----
161
1794
1817

query I rowsort
SELECT DISTINCT cor0.col0 * cor0.col2 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT col2 * cor0.col0 * + 9 FROM tab2 AS cor0
----
1701
18252
27018

query I rowsort
SELECT ALL - + col0 + - 35 FROM tab1 AS cor0
----
-115
-38
-99

query I rowsort
SELECT DISTINCT + col0 * + 93 AS col0 FROM tab2
----
651
7254
7347

onlyif mysql # use DIV operator for integer division
query I rowsort label-6273
SELECT DISTINCT + - CAST( - col0 AS SIGNED ) * + col1 + 86 DIV col2 AS col0 FROM tab1 AS cor0
----
1040
641
79

skipif mysql # not compatible
query I rowsort label-6273
SELECT DISTINCT + - CAST ( - col0 AS INTEGER ) * + col1 + 86 / col2 AS col0 FROM tab1 AS cor0
----
1040
641
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 - + 43 * col0 col0 FROM tab2 AS cor0
----
-270
-3295
-3380

query I rowsort
SELECT DISTINCT - 67 * - col1 + + col2 AS col0 FROM tab1 AS cor0
----
1796
727
967

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + 48 ) col1 FROM tab0
----
48
48
48

query I rowsort
SELECT - + 19 * - col2 FROM tab1 AS cor0
----
1026
1083
1824

query I rowsort
SELECT + 9 + col2 FROM tab0 AS cor0
----
10
42
91

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6279
SELECT ALL CAST( NULL AS SIGNED ) col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6279
SELECT ALL CAST ( NULL AS INTEGER ) col2 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - - col2 - 13 AS col0 FROM tab2 AS cor0
----
13
14
25

query I rowsort
SELECT ALL + ( 63 ) * - col0 - - ( 90 ) FROM tab1 cor0
----
-3942
-4950
-99

skipif mysql # not compatible
query I rowsort
SELECT + CAST ( + col1 AS REAL ) * - col0 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT + + ( - col1 ) + col1 AS col0 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT + + 81 * - col2 FROM tab1 AS cor0
----
-4374
-4617
-7776

onlyif mysql # use DIV operator for integer division
query I rowsort label-6285
SELECT - 31 DIV cor0.col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6285
SELECT - 31 / cor0.col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + col2 * cor0.col0 AS col2 FROM tab2 cor0
----
189
2028
3002

query I rowsort
SELECT - ( - col0 + col2 * 13 ) FROM tab1
----
-1168
-677
-699

query I rowsort
SELECT + cor0.col0 * + cor0.col0 FROM tab2 AS cor0
----
49
6084
6241

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * col0 + col0 col1 FROM tab0 AS cor0
----
1260
600
8010

onlyif mysql # use DIV operator for integer division
query I rowsort label-6290
SELECT - col1 DIV 80 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6290
SELECT - col1 / 80 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ALL + col2 * + col2 AS col0 FROM tab0 cor0
----
1
1089
6724

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + 76 col1 FROM tab0 AS cor0
----
162
167
173

query I rowsort
SELECT - + col0 * ( col1 * + col2 ) + + ( col2 ) * col0 FROM tab1 AS cor0
----
-32832
-4050
-92160

query I rowsort
SELECT - col1 + 16 * 90 AS col2 FROM tab1 AS cor0
----
1414
1427
1430

query I rowsort
SELECT - 5 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 74665fbb47d5b17da011bca567195b21

query I rowsort
SELECT - + col2 + 93 AS col2 FROM tab0 AS cor0
----
11
60
92

query I rowsort
SELECT + 62 FROM tab2, tab0 AS cor0
----
9 values hashing to 51dd2771d516ceb935483eded78a5fa0

query I rowsort
SELECT col2 + + 9 FROM tab0
----
10
42
91

query I rowsort
SELECT + ( + col0 ) * + col2 AS col0 FROM tab0 AS cor0
----
35
7298
792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col0 * 23 col0 FROM tab1
----
1472
1840
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + 15 col2 FROM tab0
----
1230
15
495

query I rowsort
SELECT DISTINCT + col2 * ( col1 ) FROM tab2
----
1534
646
837

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col0 * col0 + col0 - - col2 col1 FROM tab2
----
106214
1553
359060

query I rowsort
SELECT + - col0 * + col1 AS col0 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT - col1 + col1 + - col0 * col1 AS col2 FROM tab0
----
-2064
-3395
-8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 + col2 col2 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT DISTINCT col0 * col0 + + col1 * + col0 AS col2 FROM tab2 cor0
----
10686
266
7584

query I rowsort
SELECT - ( - col0 ) + - col0 AS col2 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT ( col2 ) * - cor0.col1 AS col1 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT - col2 - + col0 * + cor0.col2 FROM tab2 cor0
----
-2054
-216
-3040

query I rowsort
SELECT + col2 * cor0.col1 * - cor0.col1 FROM tab2 AS cor0
----
-10982
-25947
-90506

query I rowsort
SELECT DISTINCT + - col1 * col1 + - col0 * col1 FROM tab0 cor0
----
-12804
-16380
-9460

query I rowsort
SELECT ALL col1 * col0 + + col1 AS col2 FROM tab0 AS cor0
----
2150
3492
8190

query I rowsort
SELECT col1 + col2 * + col2 + - col1 FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT DISTINCT - - cor0.col2 * - col2 + - col2 + col2 * col0 AS col2 FROM tab0 AS cor0
----
-330
33
492

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6316
SELECT ALL CAST( + col2 AS SIGNED ) * col0 col2 FROM tab2 AS cor0
----
189
2028
3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6316
SELECT ALL CAST ( + col2 AS INTEGER ) * col0 col2 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT DISTINCT 70 + cor0.col1 * + col1 FROM tab1 AS cor0
----
170
239
746

onlyif mysql # use DIV operator for integer division
query I rowsort label-6318
SELECT CAST( 1 AS SIGNED ) DIV - cor0.col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6318
SELECT CAST ( 1 AS INTEGER ) / - cor0.col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - col2 + + col1 * cor0.col1 FROM tab1 AS cor0
----
43
622
73

onlyif mysql # use DIV operator for integer division
query I rowsort label-6320
SELECT - 74 + col0 DIV - col0 FROM tab1 AS cor0
----
-75
-75
-75

skipif mysql # not compatible
query I rowsort label-6320
SELECT - 74 + col0 / - col0 FROM tab1 AS cor0
----
-75
-75
-75

query I rowsort
SELECT - - col2 * col2 + col2 + col2 AS col0 FROM tab1 cor0
----
3024
3363
9408

query I rowsort
SELECT DISTINCT + - cor0.col2 * + col1 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT DISTINCT - ( + 77 ) FROM tab0
----
-77

query I rowsort
SELECT ALL + + col0 + col2 AS col0 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT DISTINCT - ( 47 ) AS col2 FROM tab1
----
-47

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6326
SELECT CAST( NULL AS DECIMAL ) * - 1 + col1 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6326
SELECT CAST ( NULL AS REAL ) * - 1 + col1 AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + 42 - - 72 FROM tab1
----
114
114
114

query I rowsort
SELECT col1 + 37 AS col0 FROM tab2
----
54
68
96

query I rowsort
SELECT DISTINCT + tab0.col0 + - cor0.col0 FROM tab0, tab1, tab2 AS cor0
----
9 values hashing to ca8ec3f73e2033fdfd432059c411d9ca

query I rowsort
SELECT col2 + 6 FROM tab2
----
32
33
44

query I rowsort
SELECT tab2.col1 + ( - col0 ) * col0 FROM tab2
----
-18
-6025
-6224

query I rowsort
SELECT 62 - 91 * - col1 AS col2 FROM tab2
----
1609
2883
5431

query I rowsort
SELECT ALL - cor0.col1 - + cor0.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 - - col2 col0 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT ALL col1 * + col2 - - col0 FROM tab0 AS cor0
----
132
2862
7551

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * col1 col2 FROM tab2
----
-289
-3481
-961

onlyif mysql # use DIV operator for integer division
query I rowsort label-6337
SELECT ALL - col2 * col0 + col2 DIV + tab1.col1 + col0 DIV col2 FROM tab1
----
-160
-3642
-7673

skipif mysql # not compatible
query I rowsort label-6337
SELECT ALL - col2 * col0 + col2 / + tab1.col1 + col0 / col2 FROM tab1
----
-160
-3642
-7673

query I rowsort
SELECT DISTINCT col2 + - col2 + col2 FROM tab0
----
1
33
82

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL >= ( NULL )
----

query I rowsort
SELECT ALL col0 * + col0 * + col2 FROM tab0
----
1225
19008
649522

query I rowsort
SELECT ALL + col0 * - tab2.col1 AS col2 FROM tab2
----
-1343
-217
-4602

query III rowsort
SELECT * FROM tab0 WHERE NOT + col1 + col1 + - col0 NOT IN ( + col2 )
----

query I rowsort
SELECT ALL tab2.col0 + - col0 + - col1 FROM tab2
----
-17
-31
-59

query I rowsort
SELECT ALL tab1.col1 + col0 - tab1.col0 AS col2 FROM tab1
----
10
13
26

query I rowsort
SELECT DISTINCT cor0.col2 * + col1 + - cor0.col0 FROM tab1 AS cor0
----
1168
1401
506

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL >= ( NULL )
----

query I rowsort
SELECT DISTINCT - col2 + - col2 * + col2 * col1 FROM tab2
----
-22626
-24586
-39910

query I rowsort
SELECT ALL + col0 + tab0.col0 * col0 AS col0 FROM tab0
----
1260
600
8010

query I rowsort
SELECT ALL tab2.col2 + col0 + - col0 FROM tab2
----
26
27
38

query I rowsort
SELECT ALL - col1 + - tab2.col0 * + tab2.col0 FROM tab2
----
-6143
-6258
-80

query I rowsort
SELECT DISTINCT + col1 + + col0 * col1 AS col1 FROM tab0
----
2150
3492
8190

query I rowsort
SELECT ALL col1 * col1 + col0 AS col0 FROM tab0
----
7420
8370
9444

query I rowsort
SELECT ALL + col1 + col2 * - col2 AS col2 FROM tab2
----
-1427
-617
-698

query I rowsort
SELECT DISTINCT - tab0.col0 + col1 * + tab0.col0 * + col0 AS col1 FROM tab0
----
118790
49512
720722

query I rowsort
SELECT - col0 + tab2.col0 * col1 AS col1 FROM tab2
----
1264
210
4524

query I rowsort
SELECT ALL - col2 * - col0 + col2 FROM tab0
----
36
7380
825

query I rowsort
SELECT ALL - col1 * + col1 * + col2 + col0 AS col0 FROM tab1
----
-16144
-36501
-5636

onlyif mysql # use DIV operator for integer division
query I rowsort label-6358
SELECT ALL + - col2 DIV cor0.col1 AS col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6358
SELECT ALL + - col2 / cor0.col1 AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col0 + - cor0.col0 AS col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL + - col2 * - col0 + + col2 AS col0 FROM tab0 cor0
----
36
7380
825

query I rowsort
SELECT DISTINCT tab0.col1 + col2 AS col0 FROM tab0 WHERE NOT ( NULL ) <> col1
----

query I rowsort
SELECT ALL - col1 * - col2 + - col2 * - col0 * col0 FROM tab0 AS cor0
----
1322
21846
656984

query I rowsort
SELECT DISTINCT cor0.col1 + cor0.col2 * + cor0.col1 AS col1 FROM tab1 AS cor0
----
1261
1430
580

onlyif mysql # use DIV operator for integer division
query I rowsort label-6364
SELECT ALL - + col2 DIV col0 + + col0 AS col0 FROM tab2 AS cor0
----
4
78
79

skipif mysql # not compatible
query I rowsort label-6364
SELECT ALL - + col2 / col0 + + col0 AS col0 FROM tab2 AS cor0
----
4
78
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col1 - - col2 col0 FROM tab2 AS cor0
----
-33
-4
21

query I rowsort
SELECT col0 * col2 + - col1 AS col2 FROM tab2 AS cor0
----
158
1969
2985

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + cor0.col2 * col0 * - col0 + - col0 col1 FROM tab0 AS cor0
----
-1260
-19032
-649611

query I rowsort
SELECT ALL - + col1 * - cor0.col0 AS col2 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT + col0 * col2 + col1 AS col1 FROM tab0 AS cor0
----
132
7389
878

onlyif mysql # use DIV operator for integer division
query I rowsort label-6370
SELECT ALL - col0 DIV col0 + - col0 AS col0 FROM tab0 cor0
----
-25
-36
-90

skipif mysql # not compatible
query I rowsort label-6370
SELECT ALL - col0 / col0 + - col0 AS col0 FROM tab0 cor0
----
-25
-36
-90

query I rowsort
SELECT ALL + + col1 * - col0 + - col2 FROM tab2 AS cor0
----
-1381
-244
-4628

query I rowsort
SELECT ALL + + col1 * col0 - + col0 FROM tab2 AS cor0
----
1264
210
4524

query I rowsort
SELECT ALL - cor0.col0 + 36 FROM tab0 cor0
----
-53
1
12

query I rowsort
SELECT ALL - col2 * + 48 * col2 FROM tab1 AS cor0
----
-139968
-155952
-442368

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6375
SELECT - CAST( NULL AS SIGNED ) + + col1 * col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6375
SELECT - CAST ( NULL AS INTEGER ) + + col1 * col0 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - ( 94 ) * - col2 FROM tab0 AS cor0
----
3102
7708
94

query I rowsort
SELECT - 68 + - col1 * col0 AS col2 FROM tab2 AS cor0
----
-1411
-285
-4670

query I rowsort
SELECT + cor0.col2 + 42 AS col1 FROM tab0 AS cor0
----
124
43
75

onlyif mysql # use DIV operator for integer division
query I rowsort label-6379
SELECT + ( 9 ) DIV col1 AS col0 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6379
SELECT + ( 9 ) / col1 AS col0 FROM tab1 cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6380
SELECT - - 92 DIV col0 col1 FROM tab2 AS cor0
----
1
1
13

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6380
SELECT - - 92 / col0 col1 FROM tab2 AS cor0
----
1
1
13

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * col0 col0 FROM tab0
----
1225
576
7921

query I rowsort
SELECT 2 FROM tab1, tab2 cor0
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

query I rowsort
SELECT - col2 + col0 * - col2 FROM tab2 AS cor0
----
-2054
-216
-3040

query I rowsort
SELECT - 91 * + col1 + + cor0.col0 FROM tab1 AS cor0
----
-1103
-2363
-846

onlyif mysql # use DIV operator for integer division
query I rowsort label-6385
SELECT + - col2 + col2 DIV col1 FROM tab2 AS cor0
----
-26
-27
-36

skipif mysql # not compatible
query I rowsort label-6385
SELECT + - col2 + col2 / col1 FROM tab2 AS cor0
----
-26
-27
-36

query I rowsort
SELECT 13 * - col1 AS col1 FROM tab1 AS cor0
----
-130
-169
-338

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6387
SELECT DISTINCT - + col1 * - col0 * CAST( - col2 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-119652
-51034
-5859

skipif mysql # not compatible
query I rowsort label-6387
SELECT DISTINCT - + col1 * - col0 * CAST ( - col2 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-119652
-51034
-5859

query I rowsort
SELECT ALL - + col1 * col1 + + ( 48 ) AS col2 FROM tab2 AS cor0
----
-241
-3433
-913

query I rowsort
SELECT ALL + + col1 * + col0 + col0 FROM tab1 AS cor0
----
1120
704
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-6390
SELECT ALL + 66 * + col1 + + col0 DIV col1 + cor0.col1 * - 29 AS col0 FROM tab2 AS cor0
----
1147
2184
633

skipif mysql # not compatible
query I rowsort label-6390
SELECT ALL + 66 * + col1 + + col0 / col1 + cor0.col1 * - 29 AS col0 FROM tab2 AS cor0
----
1147
2184
633

query I rowsort
SELECT DISTINCT + 33 * 54 + col0 FROM tab1
----
1785
1846
1862

query I rowsort
SELECT ALL + col0 * col2 + col1 FROM tab1
----
188
3658
7693

query I rowsort
SELECT - 23 + col0 FROM tab1 AS cor0
----
-20
41
57

query I rowsort
SELECT ALL + ( + col0 ) + col2 FROM tab1
----
121
176
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab2.col0 col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a

query I rowsort
SELECT ALL - 65 AS col0 FROM tab2
----
-65
-65
-65

query I rowsort
SELECT ALL + cor0.col2 + col2 * - 62 FROM tab0 AS cor0
----
-2013
-5002
-61

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 + 97 AS col0 FROM tab2
----
97
97
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col0 + - col1 col0 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT ALL + + col0 + + col2 * - col2 * col0 FROM tab2 cor0
----
-113997
-5096
-52650

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6402
SELECT ALL + - col0 + CAST( col1 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-19
-62
24

skipif mysql # not compatible
query I rowsort label-6402
SELECT ALL + - col0 + CAST ( col1 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT + col2 * cor0.col2 + - 65 FROM tab1 AS cor0
----
2851
3184
9151

query I rowsort
SELECT ALL + + col2 * + 26 - 43 FROM tab1 AS cor0
----
1361
1439
2453

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col0 col1 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 5 * col1 * 1 col2 FROM tab2
----
155
295
85

query I rowsort
SELECT - cor1.col1 AS col1 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2

query I rowsort
SELECT DISTINCT - col1 * col0 + + 59 FROM tab0
----
-2005
-3336
-8040

query I rowsort
SELECT col0 + - col2 * 95 AS col0 FROM tab1 cor0
----
-5127
-5351
-9040

query I rowsort
SELECT 15 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd

query I rowsort
SELECT - - 82 AS col0 FROM tab1, tab0 AS cor0, tab0, tab2 AS cor1
----
81 values hashing to 660751b3166f5cb8964b7ef659605795

query I rowsort
SELECT col1 * - col0 - + col0 FROM tab0 AS cor0
----
-2088
-3430
-8188

query I rowsort
SELECT + + col2 + + 4 * + col0 FROM tab2 AS cor0
----
338
354
55

query I rowsort
SELECT ALL 53 * col2 * col2 AS col0 FROM tab2
----
35828
38637
76532

query I rowsort
SELECT ALL - 66 * + col1 + 77 AS col2 FROM tab1
----
-1639
-583
-781

query I rowsort
SELECT - cor0.col0 * cor0.col0 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to b1a10d0ce1bd78a97a3f25900325a81f

query I rowsort
SELECT DISTINCT + 29 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 89 + 99 * + cor0.col2 col0 FROM tab0 AS cor0
----
188
3356
8207

query I rowsort
SELECT + - cor1.col1 + 84 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e336b7b1a7d223abf47a7e0bef3c7fa4

query I rowsort
SELECT DISTINCT 90 AS col1 FROM tab2, tab1 AS cor0 CROSS JOIN tab0
----
90

query I rowsort
SELECT - + cor0.col2 + - col1 - - 91 FROM tab0 AS cor0
----
-28
-7
-82

query I rowsort
SELECT ALL 91 AS col2 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to deebbcfb9c7803a34dca6bd860849afe

query I rowsort
SELECT DISTINCT + 78 AS col2 FROM tab0 cor0
----
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - cor0.col0 - - col1 * - col1 col0 FROM tab2 AS cor0
----
-1010
-6530
-9565

query I rowsort
SELECT DISTINCT 67 + tab1.col2 FROM tab1
----
121
124
163

query I rowsort
SELECT DISTINCT - 59 + col0 AS col1 FROM tab1 AS cor0
----
-56
21
5

query I rowsort
SELECT DISTINCT + 59 * col0 + 3 FROM tab0 cor0
----
1419
2068
5254

query I rowsort
SELECT - ( col2 ) * col2 - - col1 AS col1 FROM tab1 AS cor0
----
-2890
-3239
-9203

query I rowsort
SELECT - ( cor0.col2 ) * + ( - cor0.col1 ) * col0 FROM tab1 cor0
----
36480
4212
99840

query I rowsort
SELECT ALL - col1 * col2 + - col0 FROM tab1 AS cor0
----
-1328
-1407
-634

query I rowsort
SELECT col1 * 61 AS col0 FROM tab2 AS cor0
----
1037
1891
3599

query I rowsort
SELECT ALL col2 + + 75 * + col2 FROM tab1
----
4104
4332
7296

query I rowsort
SELECT + cor0.col2 + + col0 * + 18 * + cor0.col0 FROM tab1 AS cor0
----
115296
216
73785

query I rowsort
SELECT ALL - col0 + col2 + cor0.col0 * - col0 AS col2 FROM tab2 AS cor0
----
-29
-6136
-6282

query I rowsort
SELECT DISTINCT col2 + 94 * col1 * - col2 AS col2 FROM tab1 AS cor0
----
-117216
-131922
-53523

query I rowsort
SELECT DISTINCT + - col1 * cor0.col2 AS col0 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT - 26 AS col2 FROM tab1 AS cor0
----
-26
-26
-26

query I rowsort
SELECT - ( 21 ) * col2 * 92 FROM tab0 AS cor0
----
-158424
-1932
-63756

onlyif mysql # use DIV operator for integer division
query I rowsort label-6439
SELECT col2 + col0 DIV col1 AS col1 FROM tab2 AS cor0
----
27
27
42

skipif mysql # not compatible
query I rowsort label-6439
SELECT col2 + col0 / col1 AS col1 FROM tab2 AS cor0
----
27
27
42

query I rowsort
SELECT + 10 * - col0 FROM tab2 cor0
----
-70
-780
-790

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6441
SELECT ALL - CAST( - 77 AS SIGNED ) * - col0 AS col0 FROM tab2 cor0
----
-539
-6006
-6083

skipif mysql # not compatible
query I rowsort label-6441
SELECT ALL - CAST ( - 77 AS INTEGER ) * - col0 AS col0 FROM tab2 cor0
----
-539
-6006
-6083

query I rowsort
SELECT ALL col0 * 36 FROM tab1
----
108
2304
2880

onlyif mysql # use DIV operator for integer division
query I rowsort label-6443
SELECT ALL col0 DIV ( - col2 ) FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-6443
SELECT ALL col0 / ( - col2 ) FROM tab1
----
-1
0
0

query I rowsort
SELECT ALL - col1 * + 46 FROM tab1 AS cor0
----
-1196
-460
-598

query I rowsort
SELECT DISTINCT + 14 + + col1 AS col2 FROM tab0 AS cor0
----
100
105
111

query I rowsort
SELECT ALL - col0 * + 34 * - col0 FROM tab1
----
139264
217600
306

query I rowsort
SELECT ALL - + col0 + 86 * - col2 AS col0 FROM tab1 cor0
----
-4647
-4966
-8336

query I rowsort
SELECT DISTINCT cor1.col2 + 15 AS col2 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
41
42
53

onlyif mysql # use DIV operator for integer division
query I rowsort label-6449
SELECT ALL + col1 * cor0.col0 + - col0 DIV + 14 + col1 col1 FROM tab0 AS cor0
----
2149
3490
8184

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6449
SELECT ALL + col1 * cor0.col0 + - col0 / + 14 + col1 col1 FROM tab0 AS cor0
----
2149
3490
8184

query I rowsort
SELECT ALL + 61 FROM tab0, tab2 cor0
----
9 values hashing to 07149905a72bd87553381f34d19ed290

onlyif mysql # use DIV operator for integer division
query I rowsort label-6451
SELECT ALL - col1 * 98 + - col0 + + col0 DIV + col2 FROM tab1 AS cor0
----
-1043
-1354
-2551

skipif mysql # not compatible
query I rowsort label-6451
SELECT ALL - col1 * 98 + - col0 + + col0 / + col2 FROM tab1 AS cor0
----
-1043
-1354
-2551

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( 55 ) + + col0 col2 FROM tab0 AS cor0
----
144
79
90

query I rowsort
SELECT - col1 + - 56 * + 73 * col0 AS col1 FROM tab0
----
-143177
-363923
-98198

query I rowsort
SELECT - 63 + col0 AS col0 FROM tab1 AS cor0
----
-60
1
17

query I rowsort
SELECT DISTINCT - cor0.col1 + + 77 AS col0 FROM tab0 AS cor0
----
-14
-20
-9

onlyif mysql # use DIV operator for integer division
query I rowsort label-6456
SELECT DISTINCT - + col0 DIV col0 col1 FROM tab1 AS cor0
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6456
SELECT DISTINCT - + col0 / col0 col1 FROM tab1 AS cor0
----
-1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6457
SELECT DISTINCT + CAST( + ( col0 ) AS SIGNED ) + - 7 * col2 * col2 FROM tab0 cor0
----
-46979
-7599
28

skipif mysql # not compatible
query I rowsort label-6457
SELECT DISTINCT + CAST ( + ( col0 ) AS INTEGER ) + - 7 * col2 * col2 FROM tab0 cor0
----
-46979
-7599
28

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6458
SELECT + - CAST( col2 AS SIGNED ) FROM tab1 AS cor0
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-6458
SELECT + - CAST ( col2 AS INTEGER ) FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT col2 * col1 + - col2 AS col2 FROM tab1
----
1152
1350
513

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6460
SELECT ALL CAST( + 37 AS SIGNED ) * - col0 AS col0 FROM tab2
----
-259
-2886
-2923

skipif mysql # not compatible
query I rowsort label-6460
SELECT ALL CAST ( + 37 AS INTEGER ) * - col0 AS col0 FROM tab2
----
-259
-2886
-2923

query I rowsort
SELECT tab1.col2 + + tab1.col0 * - col0 FROM tab1
----
-4039
-6304
45

query I rowsort
SELECT ALL + + col1 + - col0 * - col2 AS col0 FROM tab1 AS cor0
----
188
3658
7693

query I rowsort
SELECT + tab1.col2 * col0 + + col1 AS col2 FROM tab1
----
188
3658
7693

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col2 * tab1.col1 ) col1 FROM tab1
----
1248
1404
570

query I rowsort
SELECT 13 + - 55 * + col0 FROM tab0
----
-1307
-1912
-4882

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6466
SELECT + + cor0.col1 * + CAST( NULL AS SIGNED ) * 68 + cor0.col1 * ( + 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-6466
SELECT + + cor0.col1 * + CAST ( NULL AS INTEGER ) * 68 + cor0.col1 * ( + col1 ) col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6467
SELECT ALL + col1 + CAST( col0 AS SIGNED ) * col2 * col1 AS col0 FROM tab1 AS cor0
----
36490
4238
99853

skipif mysql # not compatible
query I rowsort label-6467
SELECT ALL + col1 + CAST ( col0 AS INTEGER ) * col2 * col1 AS col0 FROM tab1 AS cor0
----
36490
4238
99853

query I rowsort
SELECT DISTINCT col0 + col2 * col2 * + col1 FROM tab2 AS cor0
----
22606
24627
39962

query I rowsort
SELECT ALL - col0 * cor0.col2 * - ( - col0 ) + + 11 * + col0 FROM tab0 AS cor0
----
-18744
-648543
-840

query I rowsort
SELECT ALL + col0 * col1 - + col0 FROM tab0 AS cor0
----
2040
3360
8010

query I rowsort
SELECT DISTINCT - - col1 * + ( ( col2 ) ) AS col0 FROM tab0 AS cor0
----
2838
7462
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - col0 * + col2 - cor0.col0 * ( + 69 ) col1 FROM tab0 AS cor0
----
-1190
17352
643381

query I rowsort
SELECT ALL + col2 * - 12 + col0 * col2 FROM tab2 AS cor0
----
-135
1716
2546

query I rowsort
SELECT DISTINCT cor0.col1 * + ( + col1 ) FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT - cor0.col1 * 31 + + 2 AS col2 FROM tab1 cor0
----
-308
-401
-804

query I rowsort
SELECT col2 + - 16 * col0 * col0 AS col0 FROM tab2 AS cor0
----
-757
-97318
-99818

query I rowsort
SELECT 47 - - col2 AS col2 FROM tab0
----
129
48
80

query I rowsort
SELECT ALL - ( col0 ) * 92 * - col1 - tab2.col0 * 23 FROM tab2
----
121739
19803
421590

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 34 - col0 col2 FROM tab0
----
-1
-55
10

query I rowsort
SELECT col2 * + col0 - 21 AS col1 FROM tab0
----
14
7277
771

query I rowsort
SELECT + col2 + - col1 * + col0 AS col2 FROM tab0 AS cor0
----
-2031
-3394
-8017

query I rowsort
SELECT DISTINCT + col0 * 54 + 37 AS col2 FROM tab1 AS cor0
----
199
3493
4357

onlyif mysql # use DIV operator for integer division
query I rowsort label-6483
SELECT DISTINCT + + col1 DIV col2 AS col1 FROM tab0 cor0
----
1
2
97

skipif mysql # not compatible
query I rowsort label-6483
SELECT DISTINCT + + col1 / col2 AS col1 FROM tab0 cor0
----
1
2
97

query I rowsort
SELECT + col2 + + 17 AS col0 FROM tab1 AS cor0
----
113
71
74

query I rowsort
SELECT DISTINCT - cor0.col1 + + ( - col2 ) FROM tab1 AS cor0
----
-109
-67
-80

query I rowsort
SELECT ALL cor0.col1 - + 55 * col0 FROM tab2 AS cor0
----
-354
-4231
-4328

query I rowsort
SELECT DISTINCT + col1 + ( + col1 + col2 ) * - 55 FROM tab0 AS cor0
----
-5293
-6459
-9424

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col2 col2 FROM tab0 cor0
----
1
33
82

query I rowsort
SELECT - 32 * + col1 * col1 FROM tab2
----
-111392
-30752
-9248

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 19 col0 FROM tab1
----
19

query I rowsort
SELECT ALL - col0 + col2 * col0 AS col2 FROM tab2 AS cor0
----
182
1950
2923

query I rowsort
SELECT ALL 75 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6493
SELECT - - col1 / CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6493
SELECT - - col1 / CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6494
SELECT ALL col0 DIV cor0.col1 AS col2 FROM tab2 AS cor0
----
0
1
4

skipif mysql # not compatible
query I rowsort label-6494
SELECT ALL col0 / cor0.col1 AS col2 FROM tab2 AS cor0
----
0
1
4

query I rowsort
SELECT + col2 * - 4 AS col2 FROM tab1 cor0
----
-216
-228
-384

query I rowsort
SELECT - tab0.col1 AS col0 FROM tab0, tab2 cor0, tab1 AS cor1
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6497
SELECT - cor0.col0 * + CAST( - col0 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
49
6084
6241

skipif mysql # not compatible
query I rowsort label-6497
SELECT - cor0.col0 * + CAST ( - col0 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
49
6084
6241

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL >= NULL
----

query I rowsort
SELECT DISTINCT - col1 + - col2 FROM tab2 WHERE NOT NULL BETWEEN NULL AND NULL
----

query I rowsort
SELECT col0 * + col0 - - col0 FROM tab1
----
12
4160
6480

query I rowsort
SELECT DISTINCT + col1 * col1 + col2 * col1 FROM tab2 WHERE NOT NULL <> NULL
----

query I rowsort
SELECT ALL col1 * col2 + - col1 + + col0 FROM tab1
----
1315
1381
624

query I rowsort
SELECT col0 * col2 + - col1 * + col2 AS col0 FROM tab2
----
-648
2356
494

onlyif mysql # use DIV operator for integer division
query I rowsort label-6504
SELECT ALL - col1 + col1 + col0 DIV col0 AS col2 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6504
SELECT ALL - col1 + col1 + col0 / col0 AS col2 FROM tab1
----
1
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-6505
SELECT DISTINCT col0 DIV - col0 col0 FROM tab2
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6505
SELECT DISTINCT col0 / - col0 col0 FROM tab2
----
-1

query I rowsort
SELECT ALL + col1 FROM tab0 WHERE ( NULL ) >= - col1 + + col1 * + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - col2 col2 FROM tab2
----
-20
41
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-6508
SELECT + col0 * col1 DIV - tab1.col1 FROM tab1
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-6508
SELECT + col0 * col1 / - tab1.col1 FROM tab1
----
-3
-64
-80

onlyif mysql # use DIV operator for integer division
query I rowsort label-6509
SELECT - col1 DIV + col1 + col0 * tab0.col2 FROM tab0
----
34
7297
791

skipif mysql # not compatible
query I rowsort label-6509
SELECT - col1 / + col1 + col0 * tab0.col2 FROM tab0
----
34
7297
791

query I rowsort
SELECT DISTINCT col2 + col2 * col0 * + col0 + - col1 * - col0 FROM tab2
----
1567
162812
238539

query I rowsort
SELECT 70 + col0 AS col2 FROM tab2 cor0
----
148
149
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * tab1.col0 col1 FROM tab1
----
-1040
-640
-78

query I rowsort
SELECT + + 84 * cor0.col0 FROM tab2 AS cor0
----
588
6552
6636

onlyif mysql # use DIV operator for integer division
query I rowsort label-6514
SELECT cor0.col0 + + col2 * + 25 + - col2 DIV - col0 FROM tab1 AS cor0
----
1371
1489
2481

skipif mysql # not compatible
query I rowsort label-6514
SELECT cor0.col0 + + col2 * + 25 + - col2 / - col0 FROM tab1 AS cor0
----
1371
1489
2481

query I rowsort
SELECT col0 * - col0 * + col2 AS col1 FROM tab2
----
-1323
-158184
-237158

query I rowsort
SELECT col1 * - col0 - tab0.col0 AS col1 FROM tab0
----
-2088
-3430
-8188

query I rowsort
SELECT - col0 + tab2.col0 * + col0 + - col2 * - col2 FROM tab2
----
6682
7606
771

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col2 + + col1 NOT BETWEEN NULL AND ( col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * col1 * col0 col0 FROM tab0
----
-118825
-49536
-720811

query I rowsort
SELECT - col0 + + col1 + - col2 FROM tab0
----
-80
29
61

query I rowsort
SELECT ALL col1 * - col0 * + col0 AS col0 FROM tab2
----
-106097
-1519
-358956

query I rowsort
SELECT DISTINCT col0 * col1 * col1 AS col2 FROM tab0
----
177504
329315
737009

query I rowsort
SELECT - col1 + col2 - - cor0.col0 AS col0 FROM tab0 cor0
----
-29
-61
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6524
SELECT + + col2 + + col0 + + CAST( col2 AS SIGNED ) FROM tab1 AS cor0
----
111
178
272

skipif mysql # not compatible
query I rowsort label-6524
SELECT + + col2 + + col0 + + CAST ( col2 AS INTEGER ) FROM tab1 AS cor0
----
111
178
272

query I rowsort
SELECT - 96 - col1 * 11 AS col1 FROM tab0 AS cor0
----
-1042
-1097
-1163

query I rowsort
SELECT - + cor0.col1 + col2 * - col0 FROM tab1 AS cor0
----
-188
-3658
-7693

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab1.col2 col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17

query I rowsort
SELECT + ( col1 ) * + col0 * col0 FROM tab0
----
118825
49536
720811

query I rowsort
SELECT DISTINCT + ( + cor0.col2 ) FROM tab2, tab0, tab0 AS cor0
----
1
33
82

query I rowsort
SELECT - cor0.col0 * + col1 - - cor0.col2 FROM tab1 AS cor0
----
-24
-583
-944

query I rowsort
SELECT + col0 + + col0 * - ( - col1 ) AS col2 FROM tab0 AS cor0
----
2088
3430
8188

query I rowsort
SELECT DISTINCT - - col1 * + cor0.col2 + - 90 FROM tab1 AS cor0
----
1158
1314
480

query I rowsort
SELECT col0 * col2 + - 52 AS col0 FROM tab1 cor0
----
110
3596
7628

query I rowsort
SELECT ALL + col0 + + cor0.col0 AS col2 FROM tab2 cor0
----
14
156
158

query I rowsort
SELECT DISTINCT + 11 AS col0 FROM tab0
----
11

query I rowsort
SELECT 1 * + cor1.col0 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

query I rowsort
SELECT ( cor0.col0 ) AS col2 FROM tab0, tab0 AS cor0, tab1 AS cor1, tab0 AS cor2
----
81 values hashing to 2304fcc140e955eb2d1ee28ab1eea994

query I rowsort
SELECT 96 * col1 FROM tab2
----
1632
2976
5664

onlyif mysql # use DIV operator for integer division
query I rowsort label-6539
SELECT + 3 DIV col0 AS col0 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6539
SELECT + 3 / col0 AS col0 FROM tab1
----
0
0
1

query I rowsort
SELECT ( col2 ) * + tab1.col2 FROM tab1
----
2916
3249
9216

query I rowsort
SELECT + + col2 + + 30 FROM tab2 cor0
----
56
57
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - col2 - + col2 col0 FROM tab0 AS cor0
----
0
1056
6642

query I rowsort
SELECT DISTINCT - - col0 - - col0 FROM tab2 AS cor0
----
14
156
158

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6544
SELECT DISTINCT col0 * CAST( + col1 AS SIGNED ) - col0 * 57 FROM tab1 cor0
----
-3008
-3520
-93

skipif mysql # not compatible
query I rowsort label-6544
SELECT DISTINCT col0 * CAST ( + col1 AS INTEGER ) - col0 * 57 FROM tab1 cor0
----
-3008
-3520
-93

query I rowsort
SELECT DISTINCT col0 + + 63 AS col2 FROM tab1 AS cor0
----
127
143
66

query I rowsort
SELECT ALL - cor0.col2 + ( 19 ) * - col0 AS col1 FROM tab2 AS cor0
----
-1508
-1539
-160

query I rowsort
SELECT - col0 * ( cor0.col2 ) AS col0 FROM tab1 cor0
----
-162
-3648
-7680

query I rowsort
SELECT ALL col2 * - ( col1 ) * col2 + + col0 + - col0 * col2 FROM tab1 AS cor0
----
-127408
-36074
-75975

query I rowsort
SELECT col1 * ( col0 ) AS col1 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT ALL - 83 * col0 + + 77 AS col1 FROM tab1
----
-172
-5235
-6563

onlyif mysql # use DIV operator for integer division
query I rowsort label-6551
SELECT - col1 DIV - col1 FROM tab1 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6551
SELECT - col1 / - col1 FROM tab1 cor0
----
1
1
1

query I rowsort
SELECT - col0 - - col2 * + ( col2 + + col1 ) FROM tab0
----
14097
3903
63

query I rowsort
SELECT DISTINCT + col2 * 38 FROM tab1
----
2052
2166
3648

onlyif mysql # use DIV operator for integer division
query I rowsort label-6554
SELECT - col0 * - col2 DIV col2 AS col0 FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-6554
SELECT - col0 * - col2 / col2 AS col0 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT ALL col0 * + 57 FROM tab1 AS cor0
----
171
3648
4560

query I rowsort
SELECT DISTINCT col1 * - 56 AS col0 FROM tab2 AS cor0
----
-1736
-3304
-952

query I rowsort
SELECT ALL + + cor0.col1 + - 52 * 23 + col2 FROM tab2 AS cor0
----
-1111
-1138
-1141

query I rowsort
SELECT col1 * - col0 + + col1 * - 73 FROM tab1 AS cor0
----
-1370
-1976
-1989

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab1.col1 * + col0 col1 FROM tab1
----
1040
640
78

query I rowsort
SELECT + ( - cor0.col1 ) * col1 * 84 FROM tab0 AS cor0
----
-621264
-695604
-790356

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 - 68 col0 FROM tab1
----
-11
-14
28

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col0 + - col0 + - tab0.col2 col1 FROM tab0
----
2007
3359
7928

query I rowsort
SELECT ALL col0 * col1 + - tab1.col2 FROM tab1
----
24
583
944

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( tab2.col0 ) + col0 col0 FROM tab2
----
14
156
158

onlyif mysql # use DIV operator for integer division
query I rowsort label-6565
SELECT DISTINCT col0 * - tab1.col2 * + col2 + tab1.col1 DIV - col1 AS col2 FROM tab1
----
-207937
-737281
-8749

skipif mysql # not compatible
query I rowsort label-6565
SELECT DISTINCT col0 * - tab1.col2 * + col2 + tab1.col1 / - col1 AS col2 FROM tab1
----
-207937
-737281
-8749

query I rowsort
SELECT ALL 60 FROM tab0, tab1 AS cor0
----
9 values hashing to a97561e17ecaa618227c75a57b268f33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 41 - - tab1.col2 col2 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 27eb4b252911b8d0ad0e6ed9cfd65b13

query I rowsort
SELECT 89 + col2 FROM tab0
----
122
171
90

query I rowsort
SELECT - + ( - col0 ) * 87 + - col0 AS col0 FROM tab2 AS cor0
----
602
6708
6794

query I rowsort
SELECT DISTINCT - - col1 + col0 + + col2 FROM tab1 AS cor0
----
131
189
83

query I rowsort
SELECT DISTINCT + col0 * cor0.col2 + col1 FROM tab0 AS cor0
----
132
7389
878

query I rowsort
SELECT + col1 + cor0.col1 * ( + cor0.col0 + col2 ) AS col0 FROM tab1 AS cor0
----
1220
1508
2301

onlyif mysql # use DIV operator for integer division
query I rowsort label-6573
SELECT ALL + + 39 DIV col1 FROM tab1 AS cor0
----
1
3
3

skipif mysql # not compatible
query I rowsort label-6573
SELECT ALL + + 39 / col1 FROM tab1 AS cor0
----
1
3
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 * + col1 + col2 * + 36 * col0 col0 FROM tab0 AS cor0
----
-2135
254629
26448

query I rowsort
SELECT ALL 47 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 65 col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805

onlyif mysql # use DIV operator for integer division
query I rowsort label-6577
SELECT + 72 + col1 DIV - tab0.col1 FROM tab0
----
71
71
71

skipif mysql # not compatible
query I rowsort label-6577
SELECT + 72 + col1 / - tab0.col1 FROM tab0
----
71
71
71

query I rowsort
SELECT DISTINCT col0 * + col0 + col0 + + 82 FROM tab2
----
138
6244
6402

onlyif mysql # use DIV operator for integer division
query I rowsort label-6579
SELECT - col0 DIV col1 + col2 AS col1 FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-6579
SELECT - col0 / col1 + col2 AS col1 FROM tab0 AS cor0
----
1
33
82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6580
SELECT + + 66 + cor0.col2 + CAST( + col2 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
132
230
68

skipif mysql # not compatible
query I rowsort label-6580
SELECT + + 66 + cor0.col2 + CAST ( + col2 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
132
230
68

query I rowsort
SELECT ALL + cor0.col2 * - col0 + col0 * - col2 FROM tab1 AS cor0
----
-15360
-324
-7296

query I rowsort
SELECT 66 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 29794915b585eea848ad670075452c88

query I rowsort
SELECT DISTINCT 55 AS col2 FROM tab1, tab2 AS cor0
----
55

query I rowsort
SELECT - col1 + - 19 FROM tab1 AS cor0
----
-29
-32
-45

query I rowsort
SELECT DISTINCT + 55 + tab0.col1 FROM tab0
----
141
146
152

query I rowsort
SELECT DISTINCT + col0 * + 8 + cor0.col1 * - cor0.col2 FROM tab0 AS cor0
----
-2646
-6750
183

query I rowsort
SELECT DISTINCT - + cor0.col0 * cor0.col0 AS col2 FROM tab2 AS cor0
----
-49
-6084
-6241

query I rowsort
SELECT + cor0.col2 + - ( 10 ) FROM tab2, tab1 AS cor0
----
9 values hashing to 7682ecbb7f990fafe0009ea194bf5a31

query I rowsort
SELECT - ( 80 ) * col1 FROM tab0 AS cor0
----
-6880
-7280
-7760

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6590
SELECT DISTINCT + CAST( col1 AS SIGNED ) * col1 col1 FROM tab2 AS cor0
----
289
3481
961

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6590
SELECT DISTINCT + CAST ( col1 AS INTEGER ) * col1 col1 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT ALL ( col2 ) + col1 FROM tab2
----
55
58
85

query I rowsort
SELECT - 86 * cor0.col1 AS col2 FROM tab1 AS cor0
----
-1118
-2236
-860

query I rowsort
SELECT DISTINCT - - 71 AS col2 FROM tab0 AS cor0
----
71

skipif mysql # not compatible
query I rowsort
SELECT ALL - CAST ( col2 AS REAL ) AS col2 FROM tab2 cor0
----
-26
-27
-38

query I rowsort
SELECT + col0 * ( col1 + + col2 ) AS col2 FROM tab1 cor0
----
240
4288
8720

onlyif mysql # use DIV operator for integer division
query I rowsort label-6596
SELECT cor0.col2 DIV - col2 AS col0 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6596
SELECT cor0.col2 / - col2 AS col0 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT + - col1 * col2 AS col1 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT DISTINCT cor0.col2 + - 23 * - col2 FROM tab0 AS cor0
----
1968
24
792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 80 + col2 * - col2 col0 FROM tab0 AS cor0
----
-1009
-6644
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-6600
SELECT - col1 * + cor0.col2 DIV + col2 FROM tab0 AS cor0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-6600
SELECT - col1 * + cor0.col2 / + col2 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT DISTINCT col0 - ( col0 ) * + 89 * - 84 FROM tab2
----
52339
583206
590683

query I rowsort
SELECT - cor0.col2 + col0 * + ( - col1 ) AS col2 FROM tab2 AS cor0
----
-1381
-244
-4628

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6603
SELECT + col1 * col2 + + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6603
SELECT + col1 * col2 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 + - col2 + + col2 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT DISTINCT - col0 * + cor0.col1 * 77 FROM tab0 AS cor0
----
-158928
-261415
-623623

query I rowsort
SELECT DISTINCT col2 + + 26 AS col0 FROM tab2
----
52
53
64

query I rowsort
SELECT ALL ( 93 ) * col2 + + col0 FROM tab0
----
128
3093
7715

query I rowsort
SELECT ALL + col2 * + 15 + col0 * ( 22 ) * + tab2.col0 FROM tab2
----
134238
137872
1483

query I rowsort
SELECT DISTINCT tab1.col1 - - col2 AS col0 FROM tab1
----
109
67
80

query I rowsort
SELECT - col0 * + 43 AS col0 FROM tab0
----
-1032
-1505
-3827

query I rowsort
SELECT ALL + col0 - - 2 FROM tab2
----
80
81
9

query I rowsort
SELECT + + ( + ( col1 ) ) + - col2 AS col2 FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT tab0.col0 * col0 * - col2 + col2 + - ( col0 + + col1 * - ( 69 ) ) FROM tab0
----
-13065
-643250
5434

query I rowsort
SELECT + - col2 * - col2 + - col0 * + col1 FROM tab0 AS cor0
----
-1375
-3394
-975

query I rowsort
SELECT DISTINCT - col2 + - 14 + 54 FROM tab0
----
-42
39
7

query I rowsort
SELECT ALL cor1.col1 * - 59 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to ac86bf57c11709bfa15b00c3b6f93048

onlyif mysql # use DIV operator for integer division
query I rowsort label-6617
SELECT ALL - cor1.col2 DIV - 76 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0, tab1 cor1, tab1 AS cor2
----
81 values hashing to 0b11509574b38a6005fbf722b6afa708

skipif mysql # not compatible
query I rowsort label-6617
SELECT ALL - cor1.col2 / - 76 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0, tab1 cor1, tab1 AS cor2
----
81 values hashing to 0b11509574b38a6005fbf722b6afa708

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( tab2.col1 ) col0 FROM tab2, tab2 AS cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272

query I rowsort
SELECT 86 FROM tab2 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab2 AS cor2
----
81 values hashing to e219687f6f4ab6f7ee442792edcebca9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6620
SELECT col1 * CAST( col0 + col1 AS SIGNED ) FROM tab2
----
1178
1632
8083

skipif mysql # not compatible
query I rowsort label-6620
SELECT col1 * CAST ( col0 + col1 AS INTEGER ) FROM tab2
----
1178
1632
8083

query I rowsort
SELECT - 19 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 339c9d62143bf2f7566b89a1b56eeeb4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 63 col1 FROM tab0
----
63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col2 col2 FROM tab1, tab1 AS cor0
----
-54
-57
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-6624
SELECT - col0 + - 88 DIV col2 FROM tab1 AS cor0
----
-4
-65
-80

skipif mysql # not compatible
query I rowsort label-6624
SELECT - col0 + - 88 / col2 FROM tab1 AS cor0
----
-4
-65
-80

onlyif mysql # use DIV operator for integer division
query I rowsort label-6625
SELECT tab1.col1 + col0 DIV 54 FROM tab1
----
11
14
26

skipif mysql # not compatible
query I rowsort label-6625
SELECT tab1.col1 + col0 / 54 FROM tab1
----
11
14
26

query I rowsort
SELECT DISTINCT col1 * col1 * col1 AS col0 FROM tab2
----
205379
29791
4913

query I rowsort
SELECT ( col0 ) + ( col1 ) AS col0 FROM tab1
----
29
74
93

query I rowsort
SELECT ALL - 19 FROM tab1
----
-19
-19
-19

query I rowsort
SELECT DISTINCT col1 * col0 + - 85 + - col0 AS col0 FROM tab0 AS cor0
----
1955
3275
7925

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6630
SELECT DISTINCT CAST( NULL AS DECIMAL ) col2 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6630
SELECT DISTINCT CAST ( NULL AS REAL ) col2 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6631
SELECT ALL col1 + CAST( 2 AS SIGNED ) DIV - col1 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-6631
SELECT ALL col1 + CAST ( 2 AS INTEGER ) / - col1 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT + cor0.col0 * - 58 * + cor0.col1 + - col2 FROM tab0 AS cor0
----
-119745
-196911
-469824

query I rowsort
SELECT cor0.col2 + - 91 FROM tab1 AS cor0
----
-34
-37
5

query I rowsort
SELECT DISTINCT col1 + + col0 * - 35 - + col0 AS col0 FROM tab2 AS cor0
----
-221
-2749
-2827

query I rowsort
SELECT cor0.col2 * 61 - - col2 FROM tab2 AS cor0
----
1612
1674
2356

query I rowsort
SELECT + col2 * + col1 + col2 * col1 AS col0 FROM tab1 cor0
----
1140
2496
2808

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6637
SELECT col2 + + CAST( col2 + col2 AS SIGNED ) FROM tab2 AS cor0
----
114
78
81

skipif mysql # not compatible
query I rowsort label-6637
SELECT col2 + + CAST ( col2 + col2 AS INTEGER ) FROM tab2 AS cor0
----
114
78
81

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6638
SELECT - col1 - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6638
SELECT - col1 - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col0 * + 38 AS col0 FROM tab2
----
266
2964
3002

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6640
SELECT + - col2 + + 40 * ( cor0.col1 ) * CAST( + col0 AS SIGNED ) FROM tab0 AS cor0
----
135799
323878
82527

skipif mysql # not compatible
query I rowsort label-6640
SELECT + - col2 + + 40 * ( cor0.col1 ) * CAST ( + col0 AS INTEGER ) FROM tab0 AS cor0
----
135799
323878
82527

query I rowsort
SELECT col2 + - col0 * + col0 FROM tab0 AS cor0
----
-1224
-543
-7839

onlyif mysql # use DIV operator for integer division
query I rowsort label-6642
SELECT DISTINCT + col2 DIV + 1 FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-6642
SELECT DISTINCT + col2 / + 1 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT - col2 * col2 + col1 AS col1 FROM tab1 AS cor0
----
-2890
-3239
-9203

onlyif mysql # use DIV operator for integer division
query I rowsort label-6644
SELECT ALL - col0 DIV col1 + - col1 FROM tab0 AS cor0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-6644
SELECT ALL - col0 / col1 + - col1 FROM tab0 AS cor0
----
-86
-91
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-6645
SELECT DISTINCT col2 DIV col0 AS col0 FROM tab0 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-6645
SELECT DISTINCT col2 / col0 AS col0 FROM tab0 AS cor0
----
0
1

query I rowsort
SELECT ALL + + cor0.col2 + + col2 FROM tab0 AS cor0
----
164
2
66

onlyif mysql # use DIV operator for integer division
query I rowsort label-6647
SELECT + + col1 - - col1 DIV col0 AS col2 FROM tab0 AS cor0
----
89
92
99

skipif mysql # not compatible
query I rowsort label-6647
SELECT + + col1 - - col1 / col0 AS col2 FROM tab0 AS cor0
----
89
92
99

query I rowsort
SELECT ALL - - col2 * col0 + - col0 FROM tab1 AS cor0
----
159
3584
7600

query I rowsort
SELECT DISTINCT - col0 * - col1 * - col2 - col1 FROM tab2 AS cor0
----
-119711
-51051
-5890

query I rowsort
SELECT ALL - ( + cor0.col2 ) AS col2 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT + cor0.col1 * - col0 + - col1 FROM tab1 AS cor0
----
-104
-1053
-650

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 35 col0 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
-35

query I rowsort
SELECT col1 + + col1 * - ( col1 ) AS col0 FROM tab2 AS cor0
----
-272
-3422
-930

query I rowsort
SELECT - 34 * 92 FROM tab1
----
-3128
-3128
-3128

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 78 - - tab2.col0 col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 447dd2aaff0aa377f4e2bad5139814b8

query I rowsort
SELECT - + col1 * cor0.col2 + cor0.col0 AS col0 FROM tab2 AS cor0
----
-1456
-567
-830

onlyif mysql # use DIV operator for integer division
query I rowsort label-6657
SELECT - col1 + - col1 * 89 DIV col1 AS col1 FROM tab2 AS cor0
----
-106
-120
-148

skipif mysql # not compatible
query I rowsort label-6657
SELECT - col1 + - col1 * 89 / col1 AS col1 FROM tab2 AS cor0
----
-106
-120
-148

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT - ( - col2 * CAST ( - col1 AS REAL ) ) col0 FROM tab2
----
-1534
-646
-837

query I rowsort
SELECT ALL cor0.col2 AS col0 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT DISTINCT - col1 * 7 AS col2 FROM tab1 cor0
----
-182
-70
-91

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6661
SELECT ALL - - col0 * + ( cor0.col0 ) * CAST( + 85 AS SIGNED ) + + col0 AS col1 FROM tab0 AS cor0
----
104160
48984
673374

skipif mysql # not compatible
query I rowsort label-6661
SELECT ALL - - col0 * + ( cor0.col0 ) * CAST ( + 85 AS INTEGER ) + + col0 AS col1 FROM tab0 AS cor0
----
104160
48984
673374

query I rowsort
SELECT DISTINCT - cor0.col2 * - 58 + - col1 AS col0 FROM tab1 AS cor0
----
3106
3296
5555

query I rowsort
SELECT DISTINCT - - 40 AS col2 FROM tab1 AS cor0
----
40

query I rowsort
SELECT - 81 * col1 * - col0 + 72 AS col0 FROM tab0 AS cor0
----
167256
275067
656091

query I rowsort
SELECT + - col2 + - col2 * - col0 FROM tab2 AS cor0
----
162
2002
2964

query I rowsort
SELECT col2 + 68 AS col0 FROM tab2
----
106
94
95

query I rowsort
SELECT ( col2 ) + + cor0.col1 FROM tab2 AS cor0
----
55
58
85

onlyif mysql # use DIV operator for integer division
query I rowsort label-6668
SELECT col2 + - col1 DIV - col0 FROM tab1 cor0
----
57
62
96

skipif mysql # not compatible
query I rowsort label-6668
SELECT col2 + - col1 / - col0 FROM tab1 cor0
----
57
62
96

query I rowsort
SELECT ALL + ( + ( - cor0.col2 ) ) * - col0 + col0 + - col1 AS col2 FROM tab2 AS cor0
----
165
2047
3064

onlyif mysql # use DIV operator for integer division
query I rowsort label-6670
SELECT ALL - - col1 DIV col1 AS col0 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6670
SELECT ALL - - col1 / col1 AS col0 FROM tab0 AS cor0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * 68 col0 FROM tab0 AS cor0
----
1632
2380
6052

query I rowsort
SELECT DISTINCT + cor0.col1 + - 52 AS col1 FROM tab1 AS cor0
----
-26
-39
-42

query I rowsort
SELECT DISTINCT + + cor0.col1 * 36 * col2 AS col0 FROM tab1 AS cor0
----
20520
44928
50544

query I rowsort
SELECT + 62 * col0 + + col2 * col2 AS col0 FROM tab1 cor0
----
14176
3102
7217

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + ( + 37 ) + col1 * + col0 * - 37 col1 FROM tab2 AS cor0
----
-170237
-49654
-7992

query I rowsort
SELECT ALL - col0 * - col0 + - 90 FROM tab2 cor0
----
-41
5994
6151

query I rowsort
SELECT - cor0.col0 * cor0.col0 AS col0 FROM tab0 AS cor0
----
-1225
-576
-7921

query I rowsort
SELECT DISTINCT + - 8 * + cor0.col2 + - col1 FROM tab0 AS cor0
----
-105
-350
-747

query I rowsort
SELECT DISTINCT - + 55 + 73 AS col0 FROM tab0, tab0 cor0
----
18

onlyif mysql # use DIV operator for integer division
query I rowsort label-6680
SELECT DISTINCT col1 + col2 DIV + col1 AS col0 FROM tab0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-6680
SELECT DISTINCT col1 + col2 / + col1 AS col0 FROM tab0
----
86
91
97

query I rowsort
SELECT + 90 + - col1 FROM tab0
----
-1
-7
4

query I rowsort
SELECT DISTINCT - cor0.col2 * 18 + + col2 * col0 + ( - col0 ) FROM tab0 AS cor0
----
-18
174
5733

query I rowsort
SELECT - cor0.col1 + ( - col1 ) + - col0 AS col2 FROM tab1 AS cor0
----
-106
-55
-84

query I rowsort
SELECT ALL - col2 * + 78 FROM tab2 AS cor0
----
-2028
-2106
-2964

query I rowsort
SELECT DISTINCT + + col0 + 9 FROM tab1 AS cor0
----
12
73
89

query I rowsort
SELECT DISTINCT 96 * + cor0.col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
1248
2496
960

query I rowsort
SELECT ALL col1 - 52 FROM tab0
----
34
39
45

query I rowsort
SELECT - col0 * - col1 * + col1 FROM tab0
----
177504
329315
737009

query I rowsort
SELECT ( + 0 ) FROM tab2, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT - tab1.col0 + 14 FROM tab1
----
-50
-66
11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + - ( - tab0.col0 ) * col1 + + col0 * + col2 * col1 col1 FROM tab0
----
672306
6825
70200

query I rowsort
SELECT - 92 AS col0 FROM tab1, tab0 cor0
----
9 values hashing to 1af709a79a3e56281ffdce4d931d5965

query I rowsort
SELECT DISTINCT cor0.col2 * tab2.col2 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to bbf44891fdcfbe372162a2e549d3eeed

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * tab0.col0 col0 FROM tab0
----
35
7298
792

onlyif mysql # use DIV operator for integer division
query I rowsort label-6695
SELECT col0 DIV - 88 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-6695
SELECT col0 / - 88 FROM tab0
----
-1
0
0

query I rowsort
SELECT ALL col2 - ( - col2 ) FROM tab0
----
164
2
66

onlyif mysql # use DIV operator for integer division
query I rowsort label-6697
SELECT ALL - tab2.col1 DIV + col1 + col2 FROM tab2
----
25
26
37

skipif mysql # not compatible
query I rowsort label-6697
SELECT ALL - tab2.col1 / + col1 + col2 FROM tab2
----
25
26
37

query I rowsort
SELECT DISTINCT col0 + 46 * - col2 FROM tab2
----
-1118
-1235
-1669

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab2.col2 col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3

query I rowsort
SELECT DISTINCT ( - col1 * col2 ) FROM tab0
----
-2838
-7462
-97

query I rowsort
SELECT ( col2 ) * + col2 - - 82 * - col2 FROM tab1 cor0
----
-1425
-1512
1344

query I rowsort
SELECT DISTINCT - - 21 + - col0 AS col0 FROM tab2 AS cor0
----
-57
-58
14

query I rowsort
SELECT col1 + - col0 * - col2 * 47 FROM tab1 cor0
----
171466
360973
7640

query I rowsort
SELECT DISTINCT 58 + 57 FROM tab2 AS cor0
----
115

query I rowsort
SELECT + col1 * 59 * col0 + - col1 FROM tab1 AS cor0
----
37750
4576
61347

query I rowsort
SELECT DISTINCT + 37 * col2 * col0 AS col1 FROM tab1 AS cor0
----
134976
284160
5994

onlyif mysql # use DIV operator for integer division
query I rowsort label-6707
SELECT ALL col1 DIV - col0 AS col1 FROM tab0 AS cor0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-6707
SELECT ALL col1 / - col0 AS col1 FROM tab0 AS cor0
----
-1
-2
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor1.col0 - + cor1.col1 col2 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to f011342d1d9d8c72bbbc12939a290616

query I rowsort
SELECT - ( + ( cor0.col1 ) ) FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT col1 * tab2.col1 + + col0 * col0 FROM tab2
----
1010
6530
9565

query I rowsort
SELECT DISTINCT col2 * tab2.col1 * + col2 FROM tab2
----
22599
24548
39884

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6712
SELECT col0 * + col1 * - CAST( NULL AS DECIMAL ) AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6712
SELECT col0 * + col1 * - CAST ( NULL AS REAL ) AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col1 * col2 AS col0 FROM tab2 cor0
----
-1534
-646
-837

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6714
SELECT - CAST( NULL AS SIGNED ) * + 19 AS col1 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-6714
SELECT - CAST ( NULL AS INTEGER ) * + 19 AS col1 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT DISTINCT + + cor0.col1 * cor0.col2 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT - + 57 * col0 AS col1 FROM tab2 cor0
----
-399
-4446
-4503

query I rowsort
SELECT + 93 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 85ef191bf1b307f300b3fd49992fcae7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 75 col2 FROM tab0 AS cor0
----
-75
-75
-75

query I rowsort
SELECT - cor0.col2 + cor0.col2 * - col2 AS col0 FROM tab2 AS cor0
----
-1482
-702
-756

onlyif mysql # use DIV operator for integer division
query I rowsort label-6720
SELECT + + col1 DIV + col2 AS col1 FROM tab0 AS cor0
----
1
2
97

skipif mysql # not compatible
query I rowsort label-6720
SELECT + + col1 / + col2 AS col1 FROM tab0 AS cor0
----
1
2
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * col0 col1 FROM tab1 cor0
----
4096
6400
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-6722
SELECT DISTINCT - col1 + cor0.col1 DIV - col1 col2 FROM tab1 AS cor0
----
-11
-14
-27

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6722
SELECT DISTINCT - col1 + cor0.col1 / - col1 col2 FROM tab1 AS cor0
----
-11
-14
-27

query I rowsort
SELECT DISTINCT - col1 + 43 - col0 AS col2 FROM tab1 AS cor0
----
-31
-50
14

query I rowsort
SELECT ALL col1 * col2 + col1 + + col2 AS col2 FROM tab2 AS cor0
----
1619
701
895

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6725
SELECT DISTINCT + col0 * + CAST( - 40 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-1400
-3560
-960

skipif mysql # not compatible
query I rowsort label-6725
SELECT DISTINCT + col0 * + CAST ( - 40 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-1400
-3560
-960

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab2.col0 + + col2 col2 FROM tab2
----
104
117
34

query I rowsort
SELECT 28 + col2 * col2 * col1 FROM tab0
----
125
611912
93682

onlyif mysql # use DIV operator for integer division
query I rowsort label-6728
SELECT DISTINCT - col2 * + col1 + col1 DIV - cor0.col2 FROM tab0 AS cor0
----
-194
-2840
-7463

skipif mysql # not compatible
query I rowsort label-6728
SELECT DISTINCT - col2 * + col1 + col1 / - cor0.col2 FROM tab0 AS cor0
----
-194
-2840
-7463

query I rowsort
SELECT DISTINCT + - col0 * + col2 - 22 FROM tab0 AS cor0
----
-57
-7320
-814

query I rowsort
SELECT ALL col1 * + 9 AS col0 FROM tab0 AS cor0
----
774
819
873

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6731
SELECT + cor0.col1 * + col1 - CAST( NULL AS SIGNED ) * - col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6731
SELECT + cor0.col1 * + col1 - CAST ( NULL AS INTEGER ) * - col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - cor0.col1 * + col1 * 92 FROM tab2 AS cor0
----
-26588
-320252
-88412

query I rowsort
SELECT ALL col0 * - col1 * + ( - tab0.col1 ) AS col0 FROM tab0
----
177504
329315
737009

query I rowsort
SELECT col0 * - tab2.col1 AS col0 FROM tab2
----
-1343
-217
-4602

query I rowsort
SELECT + - col1 + - col0 * - 81 * col1 + - cor0.col2 * - col0 * - col0 AS col1 FROM tab0 cor0
----
148090
273673
6406

query I rowsort
SELECT - - col0 * 66 + - 3 + col2 AS col1 FROM tab2 AS cor0
----
486
5171
5249

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + col2 col1 FROM tab1
----
162
3648
7680

query I rowsort
SELECT ( col1 ) * 29 * + 62 AS col2 FROM tab0
----
154628
163618
174406

query I rowsort
SELECT ALL - 51 * col0 * col2 FROM tab2
----
-103428
-153102
-9639

onlyif mysql # use DIV operator for integer division
query I rowsort label-6740
SELECT col0 DIV + col0 col1 FROM tab1
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6740
SELECT col0 / + col0 col1 FROM tab1
----
1
1
1

query I rowsort
SELECT DISTINCT + 55 AS col2 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
55

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6742
SELECT tab0.col1 * - CAST( NULL AS SIGNED ) FROM tab0, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-6742
SELECT tab0.col1 * - CAST ( NULL AS INTEGER ) FROM tab0, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT + + 79 * + 86 * - cor0.col2 AS col1 FROM tab0 AS cor0
----
-224202
-557108
-6794

query I rowsort
SELECT ALL ( + 78 ) FROM tab0, tab2 AS cor0
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4

query I rowsort
SELECT + ( + cor0.col1 ) * 82 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 7f50b55341d5b0dab1e04150b348241c

query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab0 AS cor0 CROSS JOIN tab0, tab2 cor1
----
972 values hashing to 1e9d01970ae508486ddabec967bb176c

query I rowsort
SELECT ALL + 56 + 79 FROM tab0 AS cor0
----
135
135
135

query I rowsort
SELECT ALL 48 + - col2 * col2 AS col2 FROM tab0 AS cor0
----
-1041
-6676
47

onlyif mysql # use DIV operator for integer division
query I rowsort label-6749
SELECT DISTINCT + 15 + 95 DIV - col0 FROM tab2 AS cor0
----
14
2

skipif mysql # not compatible
query I rowsort label-6749
SELECT DISTINCT + 15 + 95 / - col0 FROM tab2 AS cor0
----
14
2

query I rowsort
SELECT DISTINCT + 18 FROM tab2 cor0
----
18

query I rowsort
SELECT DISTINCT + + 6 * + 47 + col2 FROM tab1 AS cor0
----
336
339
378

query I rowsort
SELECT DISTINCT - 11 * cor0.col2 + + col1 * col0 FROM tab1 AS cor0
----
-16
-516
13

query I rowsort
SELECT DISTINCT - ( col2 ) * col1 FROM tab2
----
-1534
-646
-837

query I rowsort
SELECT ALL + 8 AS col0 FROM tab2, tab0 cor0
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57

query I rowsort
SELECT DISTINCT + 52 FROM tab2, tab0, tab2 AS cor0
----
52

query I rowsort
SELECT DISTINCT + col0 * - 94 * + tab0.col2 AS col2 FROM tab0
----
-3290
-686012
-74448

query I rowsort
SELECT - - 23 * + cor0.col1 FROM tab1 AS cor0
----
230
299
598

query I rowsort
SELECT ALL + - 64 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 601ec439a72fb4786a9cb7a6547ace5e

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 97 + col1 col1 FROM tab1 AS cor0
----
107
110
123

query I rowsort
SELECT ALL + col0 - + cor0.col0 AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT 57 * col1 FROM tab2 AS cor0
----
1767
3363
969

query I rowsort
SELECT DISTINCT - 75 * - col1 - 95 * - cor0.col0 FROM tab0 AS cor0
----
10600
15280
8730

query I rowsort
SELECT ALL + cor0.col0 * col0 * 80 + 56 AS col2 FROM tab0 AS cor0
----
46136
633736
98056

query I rowsort
SELECT DISTINCT col2 - + cor0.col0 * cor0.col1 AS col0 FROM tab1 AS cor0
----
-24
-583
-944

query I rowsort
SELECT + col0 + + 20 AS col0 FROM tab2 AS cor0
----
27
98
99

query I rowsort
SELECT + - col0 + 12 AS col2 FROM tab2 AS cor0
----
-66
-67
5

query I rowsort
SELECT 5 + + cor0.col1 FROM tab0, tab2 cor0
----
9 values hashing to 20ace770fb6189a78e5b0276def42344

query I rowsort
SELECT - col1 + - col1 + - col1 AS col0 FROM tab2 AS cor0
----
-177
-51
-93

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6769
SELECT - - col1 * - CAST( NULL AS SIGNED ) + col2 * - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6769
SELECT - - col1 * - CAST ( NULL AS INTEGER ) + col2 * - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 * + 66 AS col0 FROM tab1 AS cor0
----
1716
660
858

query I rowsort
SELECT + col1 + + ( col2 ) FROM tab0 AS cor0
----
119
173
98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6772
SELECT ALL - - ( 96 ) * + col2 + + col0 * col2 - cor0.col2 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6772
SELECT ALL - - ( 96 ) * + col2 + + col0 * col2 - cor0.col2 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 + + col2 * - col0 FROM tab1
----
-159
-3584
-7600

query I rowsort
SELECT DISTINCT + col0 + ( col0 + + col0 * tab1.col1 ) FROM tab1
----
1200
768
84

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6775
SELECT ALL - col2 + - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6775
SELECT ALL - col2 + - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT tab2.col0 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

query I rowsort
SELECT ALL - col0 + - col1 + + ( tab1.col0 ) FROM tab1
----
-10
-13
-26

onlyif mysql # use DIV operator for integer division
query I rowsort label-6778
SELECT - col1 DIV + tab1.col1 - + col0 * - col1 FROM tab1
----
1039
639
77

skipif mysql # not compatible
query I rowsort label-6778
SELECT - col1 / + tab1.col1 - + col0 * - col1 FROM tab1
----
1039
639
77

onlyif mysql # use DIV operator for integer division
query I rowsort label-6779
SELECT DISTINCT col0 DIV + tab2.col1 - + 52 FROM tab2
----
-48
-51
-52

skipif mysql # not compatible
query I rowsort label-6779
SELECT DISTINCT col0 / + tab2.col1 - + 52 FROM tab2
----
-48
-51
-52

query I rowsort
SELECT DISTINCT col2 - 79 FROM tab0
----
-46
-78
3

onlyif mysql # use DIV operator for integer division
query I rowsort label-6781
SELECT + - col0 * + col0 - cor0.col0 DIV - cor0.col2 AS col1 FROM tab1 AS cor0
----
-4095
-6400
-9

skipif mysql # not compatible
query I rowsort label-6781
SELECT + - col0 * + col0 - cor0.col0 / - cor0.col2 AS col1 FROM tab1 AS cor0
----
-4095
-6400
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * + col2 col2 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT ALL + col0 - col0 * cor0.col1 * - col1 AS col0 FROM tab0 AS cor0
----
177528
329350
737098

query I rowsort
SELECT DISTINCT + - col2 * 64 * + col0 FROM tab0 cor0
----
-2240
-467072
-50688

query I rowsort
SELECT - col2 * col2 + + col1 AS col2 FROM tab2 AS cor0
----
-1427
-617
-698

query I rowsort
SELECT ALL + - col1 + + cor0.col2 + + col1 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT DISTINCT - ( + col0 ) AS col0 FROM tab0 cor0
----
-24
-35
-89

onlyif mysql # use DIV operator for integer division
query I rowsort label-6788
SELECT DISTINCT - 53 - - col0 DIV - col0 AS col0 FROM tab0 AS cor0
----
-54

skipif mysql # not compatible
query I rowsort label-6788
SELECT DISTINCT - 53 - - col0 / - col0 AS col0 FROM tab0 AS cor0
----
-54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 * + col0 + col1 col1 FROM tab2 AS cor0
----
6143
6258
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6790
SELECT ALL CAST( NULL AS SIGNED ) * - ( col0 + col1 ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6790
SELECT ALL CAST ( NULL AS INTEGER ) * - ( col0 + col1 ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 47 FROM tab2, tab2 AS cor0
----
47

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6792
SELECT - CAST( - col1 AS SIGNED ) + + col0 * - 96 * 87 FROM tab1 AS cor0
----
-25030
-534518
-668147

skipif mysql # not compatible
query I rowsort label-6792
SELECT - CAST ( - col1 AS INTEGER ) + + col0 * - 96 * 87 FROM tab1 AS cor0
----
-25030
-534518
-668147

query I rowsort
SELECT ALL + - 7 FROM tab2 cor0
----
-7
-7
-7

query I rowsort
SELECT DISTINCT - col2 * 15 + col1 * + ( col2 * - cor0.col1 + ( 75 ) ) AS col0 FROM tab2 AS cor0
----
-10277
-24027
-86471

query I rowsort
SELECT ALL ( col0 ) + - col1 AS col2 FROM tab0 AS cor0
----
-2
-62
-62

query I rowsort
SELECT col1 * cor0.col0 + - cor0.col2 * - ( col2 ) AS col0 FROM tab1 AS cor0
----
10256
2994
3889

query I rowsort
SELECT + 83 + - col1 AS col2 FROM tab0 cor0
----
-14
-3
-8

query I rowsort
SELECT DISTINCT - 9 + col1 AS col1 FROM tab1 AS cor0
----
1
17
4

query I rowsort
SELECT ALL - + ( + 63 ) + - col2 * ( col1 ) FROM tab2 AS cor0
----
-1597
-709
-900

query I rowsort
SELECT ALL - - col1 * 17 AS col2 FROM tab0 AS cor0
----
1462
1547
1649

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6801
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + col0 AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6801
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + col0 AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + ( 16 ) * + col1 + col1 AS col1 FROM tab2 AS cor0
----
1003
289
527

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 * col2 + col0 * - col2 * + col1 col0 FROM tab1 AS cor0
----
-109056
-39729
-7128

query I rowsort
SELECT col1 * col0 + + col2 FROM tab0
----
2097
3396
8181

query I rowsort
SELECT - col0 + cor0.col1 * col2 AS col1 FROM tab0 cor0
----
2814
62
7373

onlyif mysql # use DIV operator for integer division
query I rowsort label-6806
SELECT DISTINCT + - 73 DIV + col2 AS col2 FROM tab1 cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-6806
SELECT DISTINCT + - 73 / + col2 AS col2 FROM tab1 cor0
----
-1
0

query I rowsort
SELECT ALL 13 + - col2 AS col0 FROM tab1 AS cor0
----
-41
-44
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * + cor0.col2 col1 FROM tab1 cor0
----
-162
-3648
-7680

query I rowsort
SELECT DISTINCT - 81 * + col0 AS col0 FROM tab2 AS cor0
----
-567
-6318
-6399

query I rowsort
SELECT ALL + col1 + col0 + ( col2 ) FROM tab1 AS cor0
----
131
189
83

query I rowsort
SELECT ALL + - col0 + - col2 AS col1 FROM tab2 AS cor0
----
-104
-117
-34

query I rowsort
SELECT - col1 * + ( col0 + + col2 ) * - col0 AS col0 FROM tab1 AS cor0
----
183040
4446
77440

query I rowsort
SELECT ALL + col1 * - col1 + col1 FROM tab1 cor0
----
-156
-650
-90

query I rowsort
SELECT DISTINCT + + col2 * + cor0.col2 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT cor0.col2 * - 5 FROM tab2 cor0
----
-130
-135
-190

query I rowsort
SELECT DISTINCT + col0 * + cor0.col2 AS col2 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT + 23 + col2 FROM tab1
----
119
77
80

query I rowsort
SELECT 84 * 36 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 99e0abe2588d577b69cded568ae172c5

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6819
SELECT - - col2 * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6819
SELECT - - col2 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6820
SELECT DISTINCT col0 * CAST( NULL AS SIGNED ) + - 3 AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6820
SELECT DISTINCT col0 * CAST ( NULL AS INTEGER ) + - 3 AS col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6821
SELECT DISTINCT cor0.col1 DIV ( - cor0.col0 ) AS col0 FROM tab0 AS cor0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-6821
SELECT DISTINCT cor0.col1 / ( - cor0.col0 ) AS col0 FROM tab0 AS cor0
----
-1
-2
-3

query I rowsort
SELECT ALL + + col0 * col0 + col1 FROM tab0 AS cor0
----
1322
662
8012

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 + - ( - 72 ) col0 FROM tab0 AS cor0
----
-17
37
48

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6824
SELECT - col0 * CAST( NULL AS SIGNED ) + + 19 * - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6824
SELECT - col0 * CAST ( NULL AS INTEGER ) + + 19 * - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - + col0 + - col1 AS col2 FROM tab0 AS cor0
----
-110
-132
-180

query I rowsort
SELECT - col1 + - tab0.col1 AS col1 FROM tab0
----
-172
-182
-194

query I rowsort
SELECT DISTINCT - - ( cor0.col0 ) AS col1 FROM tab2, tab1, tab0 AS cor0
----
24
35
89

query I rowsort
SELECT ALL 41 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to f6a440b478f0d00f8326a8c51fe094b8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * 5 col0 FROM tab0 AS cor0
----
165
410
5

query I rowsort
SELECT col0 * - ( 16 ) AS col2 FROM tab0
----
-1424
-384
-560

onlyif mysql # use DIV operator for integer division
query I rowsort label-6831
SELECT DISTINCT col2 * + col0 + - 17 * tab1.col0 DIV col2 + col1 FROM tab1
----
188
3639
7679

skipif mysql # not compatible
query I rowsort label-6831
SELECT DISTINCT col2 * + col0 + - 17 * tab1.col0 / col2 + col1 FROM tab1
----
188
3639
7679

query I rowsort
SELECT + 30 * col1 AS col2 FROM tab1 AS cor0
----
300
390
780

query I rowsort
SELECT 33 + + col0 AS col0 FROM tab1 AS cor0
----
113
36
97

query I rowsort
SELECT + col2 - tab1.col2 * - col1 AS col0 FROM tab1
----
1344
1458
627

query I rowsort
SELECT ALL + cor0.col2 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17

query I rowsort
SELECT ALL + cor0.col2 + col2 + col2 AS col2 FROM tab2 AS cor0
----
114
78
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-6837
SELECT ALL + col2 * col1 * col1 + - col2 DIV col2 FROM tab1 AS cor0
----
16223
36503
5699

skipif mysql # not compatible
query I rowsort label-6837
SELECT ALL + col2 * col1 * col1 + - col2 / col2 FROM tab1 AS cor0
----
16223
36503
5699

query I rowsort
SELECT ALL + 88 * - tab1.col2 + + col1 FROM tab1
----
-4726
-5006
-8435

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab1 AS cor0 CROSS JOIN tab1, tab0 cor1, tab0 AS cor2
----
3645 values hashing to 4037d65571c1bbf6e0e7d759f858120e

query I rowsort
SELECT DISTINCT 65 + + 79 + - col2 FROM tab0
----
111
143
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-6841
SELECT cor0.col0 DIV - col1 AS col2 FROM tab2 AS cor0
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-6841
SELECT cor0.col0 / - col1 AS col2 FROM tab2 AS cor0
----
-1
-4
0

query I rowsort
SELECT - + 99 + + col1 FROM tab0 cor0
----
-13
-2
-8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - ( col0 ) * col2 + col2 col0 FROM tab2 AS cor0
----
2054
216
3040

query I rowsort
SELECT ALL + 53 + - col1 AS col2 FROM tab1 cor0
----
27
40
43

query I rowsort
SELECT ALL - 16 AS col0 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 71c8b08964ab47ce12158975c0ee1fd9

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL < col1
----

query I rowsort
SELECT - col0 + col0 * tab1.col0 * + col0 AS col2 FROM tab1
----
24
262080
511920

query III rowsort
SELECT * FROM tab2 WHERE col0 IN ( col2 )
----

query I rowsort
SELECT DISTINCT tab2.col1 * col1 + - col1 * - tab2.col0 * + col1 AS col2 FROM tab2
----
23120
274999
7688

query I rowsort
SELECT DISTINCT + col2 * col1 * col2 + col0 AS col0 FROM tab1
----
119888
32554
75819

query I rowsort
SELECT ALL col2 * tab0.col0 + - col0 AS col1 FROM tab0
----
0
7209
768

query III rowsort
SELECT * FROM tab0 WHERE - col0 BETWEEN col0 * - col2 AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL = col1
----

query I rowsort
SELECT 39 AS col2 FROM tab2, tab2 AS cor0, tab0 AS cor1, tab2 cor2
----
81 values hashing to 9c9fbbb9cf0068f5900dff6ceb1046eb

query I rowsort
SELECT - 81 * - col0 * + col0 FROM tab1 AS cor0
----
331776
518400
729

query I rowsort
SELECT - 47 + col2 * + ( - col0 ) FROM tab2 AS cor0
----
-2075
-236
-3049

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL >= - col0
----

query I rowsort
SELECT ALL col0 * col0 + - col0 AS col0 FROM tab0
----
1190
552
7832

query I rowsort
SELECT - - cor0.col0 * - col1 + - 91 AS col0 FROM tab1 AS cor0
----
-1131
-169
-731

query I rowsort
SELECT + col2 FROM tab1 WHERE NOT col0 * + col1 IN ( - col1 + + col1 * col1 )
----
54
57
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + + col1 col1 FROM tab0
----
110
132
180

query I rowsort
SELECT - 86 * - col0 AS col2 FROM tab1 AS cor0
----
258
5504
6880

query I rowsort
SELECT col0 - tab0.col0 * + col1 FROM tab0
----
-2040
-3360
-8010

onlyif mysql # use DIV operator for integer division
query I rowsort label-6864
SELECT ALL + col2 DIV col1 col1 FROM tab2 AS cor0
----
0
0
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6864
SELECT ALL + col2 / col1 col1 FROM tab2 AS cor0
----
0
0
2

query IIIIII rowsort
SELECT DISTINCT * FROM tab2, tab2 AS cor0 WHERE NULL > NULL
----

query I rowsort
SELECT + col2 * col1 * col2 + col1 AS col1 FROM tab0
----
194
611975
93740

onlyif mysql # use DIV operator for integer division
query I rowsort label-6867
SELECT DISTINCT tab1.col0 * col0 + col1 DIV - col1 + col2 AS col2 FROM tab1
----
4152
62
6495

skipif mysql # not compatible
query I rowsort label-6867
SELECT DISTINCT tab1.col0 * col0 + col1 / - col1 + col2 AS col2 FROM tab1
----
4152
62
6495

query I rowsort
SELECT col1 + - col0 + tab0.col2 AS col2 FROM tab0
----
63
84
95

query I rowsort
SELECT + col2 * - cor0.col1 FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN col0 * + col0 AND col0 * - col0
----

query I rowsort
SELECT DISTINCT - col1 + - tab1.col0 * - col0 FROM tab1
----
-17
4086
6387

onlyif mysql # use DIV operator for integer division
query I rowsort label-6871
SELECT col2 + col1 * col0 DIV - col0 AS col0 FROM tab0
----
-53
-9
-96

skipif mysql # not compatible
query I rowsort label-6871
SELECT col2 + col1 * col0 / - col0 AS col0 FROM tab0
----
-53
-9
-96

query I rowsort
SELECT DISTINCT tab0.col2 * + col2 + + col1 AS col2 FROM tab0
----
1175
6815
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-6873
SELECT ALL - col2 DIV - tab0.col2 + tab0.col1 col0 FROM tab0
----
87
92
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6873
SELECT ALL - col2 / - tab0.col2 + tab0.col1 col0 FROM tab0
----
87
92
98

query I rowsort
SELECT DISTINCT col2 + + col0 * + tab1.col0 AS col2 FROM tab1
----
4153
63
6496

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + - col2 col0 FROM tab2
----
-55
-58
-85

query I rowsort
SELECT + col2 AS col0 FROM tab0 WHERE NOT NULL > NULL
----

query I rowsort
SELECT ALL + 89 AS col2 FROM tab2 AS cor0
----
89
89
89

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6878
SELECT DISTINCT + CAST( NULL AS SIGNED ) * 11 + col2 AS col2 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6878
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * 11 + col2 AS col2 FROM tab2 cor0
----
NULL

query I rowsort
SELECT ALL 57 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a

onlyif mysql # use DIV operator for integer division
query I rowsort label-6880
SELECT DISTINCT - + ( - 60 ) DIV col1 + 64 AS col1 FROM tab0 cor0
----
64

skipif mysql # not compatible
query I rowsort label-6880
SELECT DISTINCT - + ( - 60 ) / col1 + 64 AS col1 FROM tab0 cor0
----
64

query I rowsort
SELECT + - ( - col2 ) * - col0 AS col0 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT DISTINCT - ( + 36 ) * + cor0.col0 AS col2 FROM tab0 AS cor0
----
-1260
-3204
-864

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( col1 ) * col2 + col2 col0 FROM tab1 AS cor0
----
-1152
-1350
-513

query I rowsort
SELECT DISTINCT - 27 AS col0 FROM tab0, tab2 cor0
----
-27

query I rowsort
SELECT + 19 + + 93 AS col1 FROM tab2 AS cor0
----
112
112
112

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab0 AS cor2, tab0 AS cor3
----
3645 values hashing to 4037d65571c1bbf6e0e7d759f858120e

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + + 74 col1 FROM tab0 cor0
----
160
165
171

onlyif mysql # use DIV operator for integer division
query I rowsort label-6888
SELECT ALL 63 DIV col2 FROM tab0
----
0
1
63

skipif mysql # not compatible
query I rowsort label-6888
SELECT ALL 63 / col2 FROM tab0
----
0
1
63

query I rowsort
SELECT - col0 * ( col2 ) - ( col2 ) AS col2 FROM tab2
----
-2054
-216
-3040

query I rowsort
SELECT DISTINCT - + 32 + - col1 AS col2 FROM tab0 AS cor0
----
-118
-123
-129

onlyif mysql # use DIV operator for integer division
query I rowsort label-6891
SELECT ALL + + ( - col0 ) DIV + col1 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6891
SELECT ALL + + ( - col0 ) / + col1 AS col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6892
SELECT - 78 DIV col0 AS col2 FROM tab0 cor0
----
-2
-3
0

skipif mysql # not compatible
query I rowsort label-6892
SELECT - 78 / col0 AS col2 FROM tab0 cor0
----
-2
-3
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6893
SELECT ALL + 18 DIV - col2 + - col2 col1 FROM tab0
----
-19
-33
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6893
SELECT ALL + 18 / - col2 + - col2 col1 FROM tab0
----
-19
-33
-82

query I rowsort
SELECT DISTINCT + ( col2 ) + tab1.col2 * col2 FROM tab1
----
2970
3306
9312

query I rowsort
SELECT ALL tab1.col2 + tab1.col0 * - tab1.col2 * ( col1 ) AS col2 FROM tab1
----
-36423
-4158
-99744

onlyif mysql # use DIV operator for integer division
query I rowsort label-6896
SELECT 66 DIV col1 FROM tab1
----
2
5
6

skipif mysql # not compatible
query I rowsort label-6896
SELECT 66 / col1 FROM tab1
----
2
5
6

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6897
SELECT ALL - col0 + CAST( + 3 + col1 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-16
-59
27

skipif mysql # not compatible
query I rowsort label-6897
SELECT ALL - col0 + CAST ( + 3 + col1 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-16
-59
27

query I rowsort
SELECT DISTINCT + col2 * - ( 22 ) FROM tab2 AS cor0
----
-572
-594
-836

query I rowsort
SELECT - cor0.col1 + - 97 FROM tab1 AS cor0
----
-107
-110
-123

query I rowsort
SELECT + - col1 * col1 - - 86 FROM tab2 cor0
----
-203
-3395
-875

query I rowsort
SELECT ALL + + col0 + - 77 FROM tab1 cor0
----
-13
-74
3

query I rowsort
SELECT DISTINCT - col0 * - col1 - - cor0.col2 AS col1 FROM tab2 AS cor0
----
1381
244
4628

onlyif mysql # use DIV operator for integer division
query I rowsort label-6903
SELECT cor0.col0 + - col1 DIV col1 AS col0 FROM tab0 AS cor0
----
23
34
88

skipif mysql # not compatible
query I rowsort label-6903
SELECT cor0.col0 + - col1 / col1 AS col0 FROM tab0 AS cor0
----
23
34
88

query I rowsort
SELECT DISTINCT + - col2 * col0 + + cor0.col0 FROM tab2 AS cor0
----
-182
-1950
-2923

query I rowsort
SELECT col2 * - col2 * 65 FROM tab2
----
-43940
-47385
-93860

onlyif mysql # use DIV operator for integer division
query I rowsort label-6906
SELECT - 75 DIV col1 + col2 - col0 AS col1 FROM tab2
----
-45
-53
18

skipif mysql # not compatible
query I rowsort label-6906
SELECT - 75 / col1 + col2 - col0 AS col1 FROM tab2
----
-45
-53
18

query I rowsort
SELECT + col2 + col2 - - 47 AS col2 FROM tab0
----
113
211
49

skipif mysql # not compatible
query I rowsort
SELECT cor0.col0 + CAST ( + col0 AS REAL ) * + cor0.col2 AS col0 FROM tab2 cor0
----
196
2106
3081

query I rowsort
SELECT + col0 * 59 + + col2 AS col2 FROM tab0
----
1449
2066
5333

query I rowsort
SELECT + col1 * - ( + col1 ) AS col2 FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT - + col1 + - 74 - col0 * + col0 FROM tab2 AS cor0
----
-154
-6217
-6332

query I rowsort
SELECT + col1 + 96 * col2 AS col1 FROM tab0 AS cor0
----
193
3254
7963

query I rowsort
SELECT - cor0.col2 + - col2 * 26 AS col2 FROM tab2 AS cor0
----
-1026
-702
-729

query I rowsort
SELECT DISTINCT - col1 + cor0.col0 + - 54 AS col0 FROM tab2 cor0
----
-35
-78
8

query I rowsort
SELECT DISTINCT 96 * + col1 - 39 * + col1 FROM tab2 AS cor0
----
1767
3363
969

query I rowsort
SELECT 81 + col1 AS col2 FROM tab1 AS cor0
----
107
91
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + col0 * col2 col1 FROM tab0 AS cor0
----
36
7380
825

query I rowsort
SELECT + ( col1 ) + 3 * + col1 FROM tab0 cor0
----
344
364
388

query I rowsort
SELECT DISTINCT + + col1 + + col0 AS col0 FROM tab1 cor0
----
29
74
93

query I rowsort
SELECT + 35 + - tab1.col0 AS col1 FROM tab1
----
-29
-45
32

query I rowsort
SELECT col1 * + col1 * col1 - + col2 FROM tab0
----
636023
753489
912672

query I rowsort
SELECT + ( 73 ) - + col2 AS col1 FROM tab0
----
-9
40
72

query I rowsort
SELECT 78 + + col0 AS col2 FROM tab1
----
142
158
81

query I rowsort
SELECT DISTINCT + tab0.col1 + tab0.col2 FROM tab0
----
119
173
98

query I rowsort
SELECT ALL + 41 + + col0 + + col1 * - 78 FROM tab0 AS cor0
----
-6643
-6968
-7490

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 45 * col2 col0 FROM tab1 AS cor0
----
2430
2565
4320

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * - col2 + 43 * ( + cor0.col0 ) col1 FROM tab2 AS cor0
----
-536
1820
2751

query I rowsort
SELECT ALL + 50 + cor0.col2 AS col1 FROM tab0 AS cor0
----
132
51
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * - col1 + - ( + cor0.col2 ) * + col2 col1 FROM tab2 AS cor0
----
-798
108
858

query I rowsort
SELECT col0 + col2 * + 2 + + col0 AS col2 FROM tab1 AS cor0
----
114
242
352

query I rowsort
SELECT DISTINCT + - col1 + col2 * - 10 * - col0 FROM tab2 cor0
----
1859
20221
30003

query I rowsort
SELECT ALL col0 * col2 * 10 + col2 FROM tab0 AS cor0
----
351
73062
7953

query I rowsort
SELECT - 57 + col0 + + cor0.col1 AS col0 FROM tab2 AS cor0
----
-19
39
80

query I rowsort
SELECT ALL + - col0 * - col2 + col2 FROM tab2 AS cor0
----
2054
216
3040

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6935
SELECT col0 * - CAST( col2 AS SIGNED ) * + col2 FROM tab2 AS cor0
----
-114076
-5103
-52728

skipif mysql # not compatible
query I rowsort label-6935
SELECT col0 * - CAST ( col2 AS INTEGER ) * + col2 FROM tab2 AS cor0
----
-114076
-5103
-52728

onlyif mysql # use DIV operator for integer division
query I rowsort label-6936
SELECT DISTINCT - - col0 DIV + CAST( col1 AS SIGNED ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6936
SELECT DISTINCT - - col0 / + CAST ( col1 AS INTEGER ) FROM tab0 AS cor0
----
0

query I rowsort
SELECT + col2 + col1 * + col2 AS col0 FROM tab0 cor0
----
2871
7544
98

query I rowsort
SELECT ALL + col1 + - ( col1 ) AS col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - 48 * - col0 FROM tab1 AS cor0
----
144
3072
3840

query I rowsort
SELECT DISTINCT - - cor0.col1 * col0 + col1 AS col2 FROM tab1 AS cor0
----
104
1053
650

query I rowsort
SELECT + ( col0 ) * col0 FROM tab0 cor0
----
1225
576
7921

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6942
SELECT DISTINCT CAST( - 59 AS SIGNED ) + + col2 * - col1 FROM tab2 AS cor0
----
-1593
-705
-896

skipif mysql # not compatible
query I rowsort label-6942
SELECT DISTINCT CAST ( - 59 AS INTEGER ) + + col2 * - col1 FROM tab2 AS cor0
----
-1593
-705
-896

query I rowsort
SELECT ALL - - col1 * + 8 - col1 AS col0 FROM tab2 AS cor0
----
119
217
413

query I rowsort
SELECT ALL - tab2.col1 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to ccaa5dd3388d9ee0fea676fa35299fe5

query I rowsort
SELECT DISTINCT - - col1 * - 70 + col1 AS col1 FROM tab1 AS cor0
----
-1794
-690
-897

query I rowsort
SELECT ALL - - 3 * + 47 * col2 AS col2 FROM tab2 AS cor0
----
3666
3807
5358

query I rowsort
SELECT ALL col2 * col2 - col0 AS col1 FROM tab1 AS cor0
----
2913
3185
9136

query I rowsort
SELECT ALL + tab1.col0 * - 66 FROM tab1
----
-198
-4224
-5280

query I rowsort
SELECT ALL 37 + + ( + col1 ) FROM tab2 AS cor0
----
54
68
96

query I rowsort
SELECT ALL + - col1 + 1 FROM tab1 AS cor0
----
-12
-25
-9

query I rowsort
SELECT DISTINCT - col1 * ( + col1 ) + - 53 FROM tab2 AS cor0
----
-1014
-342
-3534

query I rowsort
SELECT DISTINCT + 88 * - 54 AS col1 FROM tab1 AS cor0
----
-4752

onlyif mysql # use DIV operator for integer division
query I rowsort label-6953
SELECT DISTINCT + + ( - cor0.col2 ) DIV + col0 FROM tab1 AS cor0
----
-1
-18
0

skipif mysql # not compatible
query I rowsort label-6953
SELECT DISTINCT + + ( - cor0.col2 ) / + col0 FROM tab1 AS cor0
----
-1
-18
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6954
SELECT ALL CAST( NULL AS SIGNED ) * col1 + col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6954
SELECT ALL CAST ( NULL AS INTEGER ) * col1 + col2 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 * - 81 AS col1 FROM tab0 AS cor0
----
-6966
-7371
-7857

query I rowsort
SELECT - col2 + + cor0.col0 * - col1 FROM tab2 AS cor0
----
-1381
-244
-4628

query I rowsort
SELECT + cor0.col1 * + 39 + col2 FROM tab1 cor0
----
1068
447
603

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - col0 ) * - col0 col2 FROM tab2 cor0
----
-49
-6084
-6241

query I rowsort
SELECT DISTINCT 53 * + ( col1 ) FROM tab2 AS cor0
----
1643
3127
901

query I rowsort
SELECT + - col1 * - col2 + col1 FROM tab0 cor0
----
194
2924
7553

query I rowsort
SELECT - col0 + col2 * col2 FROM tab0 cor0
----
-34
1065
6635

query I rowsort
SELECT - 39 * - col1 + + col1 AS col1 FROM tab0 cor0
----
3440
3640
3880

query I rowsort
SELECT - - cor0.col0 * - 76 + - col0 FROM tab0 AS cor0
----
-1848
-2695
-6853

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col0 + col2 col1 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT + + col0 + ( - 31 ) FROM tab1 AS cor0
----
-28
33
49

query I rowsort
SELECT ALL cor0.col0 * - 58 FROM tab0 AS cor0
----
-1392
-2030
-5162

query I rowsort
SELECT DISTINCT - col1 * 9 * - col0 AS col1 FROM tab0 AS cor0
----
18576
30555
72891

onlyif mysql # use DIV operator for integer division
query I rowsort label-6968
SELECT col1 + + col1 DIV col1 FROM tab2 AS cor0
----
18
32
60

skipif mysql # not compatible
query I rowsort label-6968
SELECT col1 + + col1 / col1 FROM tab2 AS cor0
----
18
32
60

query I rowsort
SELECT + col0 + - col0 - tab1.col2 AS col1 FROM tab1
----
-54
-57
-96

query I rowsort
SELECT DISTINCT 37 + - col0 - ( + col0 ) * + col2 AS col1 FROM tab2
----
-159
-2069
-3044

query I rowsort
SELECT DISTINCT col0 * - 37 AS col2 FROM tab2 cor0
----
-259
-2886
-2923

query I rowsort
SELECT ALL col2 + + ( col0 * tab2.col2 ) FROM tab2
----
2054
216
3040

query I rowsort
SELECT + ( cor0.col0 ) + - col1 AS col1 FROM tab2 AS cor0
----
-24
19
62

query I rowsort
SELECT + col2 * + col2 * - 39 FROM tab0
----
-262236
-39
-42471

query I rowsort
SELECT DISTINCT - 17 FROM tab2, tab1 AS cor0, tab1 AS cor1, tab1, tab2 AS cor2
----
-17

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6976
SELECT CAST( NULL AS DECIMAL ) - 4 * - cor0.col2 FROM tab0, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-6976
SELECT CAST ( NULL AS REAL ) - 4 * - cor0.col2 FROM tab0, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + 13 col0 FROM tab2
----
30
44
72

query I rowsort
SELECT DISTINCT col2 + ( - col1 ) * - col2 + - col1 FROM tab0
----
1
2785
7453

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - 31 col0 FROM tab0
----
-1085
-2759
-744

query I rowsort
SELECT + col2 * 89 AS col1 FROM tab2
----
2314
2403
3382

query I rowsort
SELECT + 17 * col2 + col1 * + col0 FROM tab0 cor0
----
2625
3412
9493

query I rowsort
SELECT + 72 FROM tab2, tab1 cor0, tab0 AS cor1
----
27 values hashing to 92cc3d5daa550304e96c1542787691c7

query I rowsort
SELECT + 16 AS col0 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to ee5bde9f68ee828e8cd86b0d590090bc

query I rowsort
SELECT col0 * - col2 + 66 FROM tab2 AS cor0
----
-123
-1962
-2936

query I rowsort
SELECT + + cor0.col0 * + cor0.col0 FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT ALL ( + 59 ) FROM tab2, tab0 AS cor0
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6987
SELECT - col1 * CAST( col2 * - col0 AS SIGNED ) + - 26 col2 FROM tab0 AS cor0
----
3369
664092
68086

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6987
SELECT - col1 * CAST ( col2 * - col0 AS INTEGER ) + - 26 col2 FROM tab0 AS cor0
----
3369
664092
68086

query I rowsort
SELECT ALL - + cor0.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-6989
SELECT ALL + CAST( 21 * col1 AS SIGNED ) AS col1 FROM tab1
----
210
273
546

skipif mysql # not compatible
query I rowsort label-6989
SELECT ALL + CAST ( 21 * col1 AS INTEGER ) AS col1 FROM tab1
----
210
273
546

query I rowsort
SELECT ( 47 ) FROM tab2
----
47
47
47

onlyif mysql # use DIV operator for integer division
query I rowsort label-6991
SELECT ALL + cor0.col1 - col0 DIV col1 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-6991
SELECT ALL + cor0.col1 - col0 / col1 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT - 83 * + col0 - + col0 * 10 * col2 FROM tab1 AS cor0
----
-1869
-41792
-83440

query I rowsort
SELECT 84 * col0 * + col2 + + col2 FROM tab2 AS cor0
----
15903
170378
252206

query I rowsort
SELECT + cor0.col0 + - col1 AS col2 FROM tab1 AS cor0
----
-23
54
67

onlyif mysql # use DIV operator for integer division
query I rowsort label-6995
SELECT - col1 + col2 DIV - cor0.col0