sqllogictest
Artifact Content
Not logged in

Artifact 62ac3698861c33c3ec0433c559f22d94bf5d2f96:


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 + 56 DIV col2 - - col0 FROM tab1 cor0
----
4
64
80

skipif mysql # not compatible
query I rowsort label-0
SELECT + 56 / col2 - - col0 FROM tab1 cor0
----
4
64
80

query I rowsort
SELECT ALL - cor2.col2 FROM tab0, tab1 AS cor0, tab0 AS cor1, tab0 AS cor2
----
81 values hashing to 87af467938ef355540b8de24db1bf3b8

query I rowsort
SELECT cor0.col0 * - 60 FROM tab2, tab2 AS cor0, tab2 cor1
----
27 values hashing to a807a0f03e7fb3654fdf35047fe966dd

query I rowsort
SELECT - 31 + + col0 FROM tab1 AS cor0
----
-28
33
49

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

query I rowsort
SELECT ALL + 82 * 83 AS col1 FROM tab1 AS cor0
----
6806
6806
6806

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

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

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

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

query I rowsort
SELECT DISTINCT - col2 * tab2.col0 + + col0 FROM tab2
----
-182
-1950
-2923

onlyif mysql # use DIV operator for integer division
query I rowsort label-10
SELECT DISTINCT ( col1 ) DIV - tab0.col1 + + col0 FROM tab0
----
23
34
88

skipif mysql # not compatible
query I rowsort label-10
SELECT DISTINCT ( col1 ) / - tab0.col1 + + col0 FROM tab0
----
23
34
88

query I rowsort
SELECT ALL + tab1.col1 + - col1 * col2 FROM tab1
----
-1235
-1378
-560

query I rowsort
SELECT col0 * col1 * col1 + col2 * + 20 + col2 FROM tab0
----
178197
329336
738731

query I rowsort
SELECT + ( col0 ) + col2 AS col1 FROM tab0
----
171
36
57

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

query I rowsort
SELECT - col1 + + col1 * + 19 AS col1 FROM tab2 AS cor0
----
1062
306
558

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

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

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

query I rowsort
SELECT ALL tab2.col2 + + col2 + + col1 * + 75 AS col2 FROM tab2
----
1351
2379
4477

query I rowsort
SELECT ALL 54 + 38 FROM tab2
----
92
92
92

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

query I rowsort
SELECT ALL col1 + - col0 * - col0 FROM tab1
----
35
4106
6413

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

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

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

query I rowsort
SELECT - 84 + col2 * - col0 AS col0 FROM tab0 AS cor0
----
-119
-7382
-876

query I rowsort
SELECT ALL - 23 * - col1 * + col2 AS col0 FROM tab0
----
171626
2231
65274

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 67 * + col1 col2 FROM tab0 AS cor0
----
-5762
-6097
-6499

query I rowsort
SELECT - + 86 + - col2 AS col1 FROM tab2 AS cor0
----
-112
-113
-124

onlyif mysql # use DIV operator for integer division
query I rowsort label-30
SELECT DISTINCT + col1 * - col2 + col0 DIV cor0.col0 FROM tab1 AS cor0
----
-1247
-1403
-569

skipif mysql # not compatible
query I rowsort label-30
SELECT DISTINCT + col1 * - col2 + col0 / cor0.col0 FROM tab1 AS cor0
----
-1247
-1403
-569

query I rowsort
SELECT - 89 * col2 + col0 FROM tab2 AS cor0
----
-2236
-2396
-3303

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

query I rowsort
SELECT ( - 85 ) AS col0 FROM tab1
----
-85
-85
-85

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-35
SELECT ALL col0 * col2 DIV + col1 FROM tab0
----
0
80
9

skipif mysql # not compatible
query I rowsort label-35
SELECT ALL col0 * col2 / + col1 FROM tab0
----
0
80
9

query I rowsort
SELECT + col1 + col0 AS col0 FROM tab0 WHERE col1 - - col2 >= NULL
----

query I rowsort
SELECT + col1 + - col1 + - col2 * col2 FROM tab2
----
-1444
-676
-729

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-39
SELECT DISTINCT col2 DIV tab0.col2 AS col2 FROM tab0
----
1

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

query I rowsort
SELECT DISTINCT cor0.col2 + - cor0.col0 FROM tab2, tab0 AS cor0
----
-34
-7
9

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

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

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

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

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

query I rowsort
SELECT ALL col2 * - col2 * col1 FROM tab1
----
-119808
-32490
-75816

query III rowsort
SELECT ALL * FROM tab0 WHERE - col2 * col2 <= ( col1 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 - + col0 * tab0.col1 col1 FROM tab0
----
-2031
-3394
-8017

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

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

query I rowsort
SELECT col1 * + tab1.col2 - col2 FROM tab1
----
1152
1350
513

query I rowsort
SELECT col0 * + col0 - - col2 * tab2.col0 FROM tab2
----
238
8112
9243

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

skipif mysql # not compatible
query I rowsort label-52
SELECT + cor0.col1 * col1 / - col0 AS col0 FROM tab1 cor0
----
-1
-2
-225

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

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

query III rowsort
SELECT * FROM tab2 WHERE NOT + col0 = NULL
----

query I rowsort
SELECT tab1.col1 FROM tab0, tab1 AS cor0 CROSS JOIN tab1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

query I rowsort
SELECT + col0 FROM tab2 WHERE NOT - col1 / col1 NOT BETWEEN NULL AND col2
----

query I rowsort
SELECT + 27 * 81 + col1 FROM tab0 AS cor0
----
2273
2278
2284

query I rowsort
SELECT DISTINCT - ( 97 ) + - col2 AS col0 FROM tab2 cor0
----
-123
-124
-135

query I rowsort
SELECT - + 79 + + 70 * + col2 AS col1 FROM tab1 AS cor0
----
3701
3911
6641

query I rowsort
SELECT ALL - cor0.col2 - + 13 FROM tab1 AS cor0
----
-109
-67
-70

query I rowsort
SELECT ALL 79 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f

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

query I rowsort
SELECT ( 77 ) + col1 * + col0 * + 27 AS col1 FROM tab2 AS cor0
----
124331
36338
5936

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

query I rowsort
SELECT - col2 * - 72 + cor0.col1 AS col1 FROM tab1 AS cor0
----
3914
4114
6925

onlyif mysql # use DIV operator for integer division
query I rowsort label-67
SELECT - 33 * col0 DIV - ( 81 ) + - col2 FROM tab2 AS cor0
----
-25
-6
5

skipif mysql # not compatible
query I rowsort label-67
SELECT - 33 * col0 / - ( 81 ) + - col2 FROM tab2 AS cor0
----
-25
-6
5

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

query I rowsort
SELECT DISTINCT + col0 + cor0.col2 + 9 FROM tab1 AS cor0
----
130
185
66

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

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

query I rowsort
SELECT DISTINCT + 28 * cor0.col0 + + col1 * - col2 FROM tab2 cor0
----
-641
1566
650

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

query I rowsort
SELECT ALL - 63 * ( - col2 ) FROM tab1
----
3402
3591
6048

onlyif mysql # use DIV operator for integer division
query I rowsort label-74
SELECT + col1 + ( cor0.col1 ) - - cor0.col2 DIV 74 FROM tab0 AS cor0
----
172
183
194

skipif mysql # not compatible
query I rowsort label-74
SELECT + col1 + ( cor0.col1 ) - - cor0.col2 / 74 FROM tab0 AS cor0
----
172
183
194

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

query I rowsort
SELECT ALL + col0 * 48 * col0 AS col2 FROM tab0 AS cor0
----
27648
380208
58800

query I rowsort
SELECT DISTINCT - + col1 * - 32 AS col1 FROM tab1 AS cor0
----
320
416
832

query I rowsort
SELECT + - col1 * + 26 * + cor0.col0 + cor0.col2 FROM tab2 AS cor0
----
-119626
-34880
-5615

query I rowsort
SELECT ( col0 ) + - 24 AS col0 FROM tab1
----
-21
40
56

query I rowsort
SELECT + 93 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 85ef191bf1b307f300b3fd49992fcae7

query I rowsort
SELECT - col1 + - col1 - cor0.col0 * - col0 FROM tab0 AS cor0
----
1031
404
7739

query I rowsort
SELECT DISTINCT + cor1.col1 AS col2 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
17
31
59

query I rowsort
SELECT ALL - 1 AS col0 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 84da757b1b7b0069ce25607f39bc08d9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + col2 * col0 + + col1 + tab2.col1 * - 13 col2 FROM tab2
----
-120360
-51238
-6231

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

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

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

query I rowsort
SELECT ALL - - col0 + ( 38 + - col2 ) FROM tab0 AS cor0
----
29
45
72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - 98 * + 31 + col2 col0 FROM tab2 cor0
----
-3017
-3042
-3071

query I rowsort
SELECT DISTINCT - col1 * - 7 FROM tab1 AS cor0
----
182
70
91

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-92
SELECT ALL - col0 DIV + cor0.col1 + 4 * col1 + 71 DIV col1 FROM tab0 AS cor0
----
344
364
388

skipif mysql # not compatible
query I rowsort label-92
SELECT ALL - col0 / + cor0.col1 + 4 * col1 + 71 / col1 FROM tab0 AS cor0
----
344
364
388

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-94
SELECT col2 DIV CAST( 30 AS SIGNED ) + - col2 + - col2 FROM tab2
----
-52
-54
-75

skipif mysql # not compatible
query I rowsort label-94
SELECT col2 / CAST ( 30 AS INTEGER ) + - col2 + - col2 FROM tab2
----
-52
-54
-75

query I rowsort
SELECT + + ( - col2 ) + col0 FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT 4 + ( + col0 ) AS col1 FROM tab1 cor0
----
68
7
84

onlyif mysql # use DIV operator for integer division
query I rowsort label-97
SELECT ALL + col2 + 65 DIV col0 AS col0 FROM tab1
----
58
75
96

skipif mysql # not compatible
query I rowsort label-97
SELECT ALL + col2 + 65 / col0 AS col0 FROM tab1
----
58
75
96

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

query I rowsort
SELECT - col2 * 50 FROM tab2
----
-1300
-1350
-1900

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 76 * - cor0.col2 col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 7c7275be2a652135d8807f37aa5bda8f

query I rowsort
SELECT ALL 25 * ( col2 ) AS col2 FROM tab2
----
650
675
950

query I rowsort
SELECT - - col2 + - 87 FROM tab2 AS cor0
----
-49
-60
-61

query I rowsort
SELECT + col1 * 98 + col2 FROM tab1 AS cor0
----
1037
1370
2602

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-105
SELECT + - 4 DIV 78 AS col0 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-105
SELECT + - 4 / 78 AS col0 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT ALL + 38 * - col2 + col1 FROM tab2 AS cor0
----
-1427
-929
-995

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 62 * col0 col1 FROM tab2 cor0
----
434
4836
4898

query I rowsort
SELECT DISTINCT - 11 * cor0.col0 + - col1 FROM tab0 AS cor0
----
-1070
-350
-482

query I rowsort
SELECT ALL + - 68 * - col1 FROM tab2 AS cor0
----
1156
2108
4012

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

skipif mysql # not compatible
query I rowsort label-110
SELECT DISTINCT + col0 * - col2 * col1 + CAST ( - col2 AS INTEGER ) * + cor0.col2 FROM tab2 AS cor0
----
-120328
-52478
-6588

query I rowsort
SELECT - + 62 + - col0 * cor0.col1 FROM tab1 AS cor0
----
-1102
-140
-702

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

query I rowsort
SELECT DISTINCT + col0 + col2 * - ( col2 ) + col1 AS col1 FROM tab1 AS cor0
----
-2887
-3175
-9123

query I rowsort
SELECT DISTINCT - - col0 + - cor0.col2 FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT ALL col0 + 85 * - col1 FROM tab2 AS cor0
----
-1366
-2628
-4937

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * col0 * + 80 + - col0 + col1 col0 FROM tab2 AS cor0
----
15144
162221
240098

query I rowsort
SELECT DISTINCT + + cor0.col0 + - 3 AS col1 FROM tab2 AS cor0
----
4
75
76

query I rowsort
SELECT DISTINCT - col0 * + ( 13 * col0 ) FROM tab1 AS cor0
----
-117
-53248
-83200

query I rowsort
SELECT - col0 + col1 * col1 AS col2 FROM tab1 AS cor0
----
36
673
89

query I rowsort
SELECT - 23 * col1 AS col2 FROM tab0 AS cor0
----
-1978
-2093
-2231

query I rowsort
SELECT - col2 * col1 - 96 AS col0 FROM tab1 AS cor0
----
-1344
-1500
-666

query I rowsort
SELECT + - col1 + - col1 + ( + col1 * + col2 ) FROM tab2 AS cor0
----
1416
612
775

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * col2 * ( + col2 ) + col2 * + cor0.col0 col2 FROM tab0 cor0
----
-25344
-591138
0

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col2 ) - 59 * + col1 col0 FROM tab0 AS cor0
----
-5041
-5287
-5722

query I rowsort
SELECT - 4 - + col1 AS col1 FROM tab1 AS cor0
----
-14
-17
-30

query I rowsort
SELECT - col2 * col2 + col1 * + 70 + col0 FROM tab2 AS cor0
----
-175
1448
3532

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

query I rowsort
SELECT ALL + 76 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 7b2b08dd3f1adef028d3f40ef7c716da

query I rowsort
SELECT ALL col1 * col2 + tab0.col0 - tab0.col1 * col1 AS col2 FROM tab0
----
-4534
-730
-9277

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-133
SELECT ALL ( + tab1.col1 ) DIV col0 FROM tab1
----
0
0
8

skipif mysql # not compatible
query I rowsort label-133
SELECT ALL ( + tab1.col1 ) / col0 FROM tab1
----
0
0
8

query I rowsort
SELECT ALL cor0.col1 AS col1 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

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

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

query I rowsort
SELECT 31 + + col1 AS col1 FROM tab0
----
117
122
128

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

query I rowsort
SELECT ALL 75 + + cor0.col2 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to aa32311f907061e523d687f4636d298e

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab1.col1 * tab1.col2 * tab1.col0 + col2 col2 FROM tab1
----
-36423
-4158
-99744

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

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

query I rowsort
SELECT DISTINCT - - col2 + + cor0.col0 * - col0 FROM tab2 cor0
----
-22
-6058
-6203

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

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

query I rowsort
SELECT DISTINCT - 45 AS col1 FROM tab1
----
-45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 60 * col1 col2 FROM tab0
----
5160
5460
5820

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-148
SELECT - col1 + + col1 * CAST( + 28 AS SIGNED ) FROM tab1 AS cor0
----
270
351
702

skipif mysql # not compatible
query I rowsort label-148
SELECT - col1 + + col1 * CAST ( + 28 AS INTEGER ) FROM tab1 AS cor0
----
270
351
702

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-150
SELECT ALL - col2 DIV 60 + + col2 FROM tab0
----
1
33
81

skipif mysql # not compatible
query I rowsort label-150
SELECT ALL - col2 / 60 + + col2 FROM tab0
----
1
33
81

query I rowsort
SELECT ALL col0 + 42 AS col0 FROM tab1
----
106
122
45

query I rowsort
SELECT ALL - tab0.col0 + - col0 * + 34 AS col0 FROM tab0
----
-1225
-3115
-840

query I rowsort
SELECT + - col2 + - 94 + col1 AS col2 FROM tab0 AS cor0
----
-41
-85
2

query I rowsort
SELECT + col0 + 96 AS col1 FROM tab2 AS cor0
----
103
174
175

query I rowsort
SELECT ALL + - col0 + - col0 AS col1 FROM tab1 AS cor0
----
-128
-160
-6

query I rowsort
SELECT DISTINCT + - col1 * col1 - cor0.col2 * col1 AS col0 FROM tab1 cor0
----
-1417
-2080
-670

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

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

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

query I rowsort
SELECT DISTINCT col1 + + 73 * col1 - + col0 FROM tab1 cor0
----
1921
676
882

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 34 + - col1 col0 FROM tab2 cor0
----
-25
17
3

query I rowsort
SELECT col2 * - 23 * - tab1.col0 FROM tab1
----
176640
3726
83904

query I rowsort
SELECT DISTINCT 13 - - col1 FROM tab2 AS cor0
----
30
44
72

query I rowsort
SELECT + - ( - 42 ) * + col1 FROM tab1 AS cor0
----
1092
420
546

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

query I rowsort
SELECT ALL + ( + ( col0 ) ) * col0 FROM tab1 cor0
----
4096
6400
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-166
SELECT - 48 - + col0 DIV col2 FROM tab1
----
-48
-48
-49

skipif mysql # not compatible
query I rowsort label-166
SELECT - 48 - + col0 / col2 FROM tab1
----
-48
-48
-49

query I rowsort
SELECT DISTINCT + 41 + + col2 FROM tab0
----
123
42
74

query I rowsort
SELECT + col1 * col0 - col2 * 41 * col1 FROM tab0 AS cor0
----
-114294
-297843
-582

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

query I rowsort
SELECT DISTINCT cor0.col1 + cor0.col2 + 12 FROM tab0, tab2 AS cor0
----
67
70
97

query I rowsort
SELECT DISTINCT - 13 * - cor0.col2 FROM tab0 AS cor0
----
1066
13
429

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

skipif mysql # not compatible
query I rowsort label-172
SELECT ALL + + cor0.col2 / col1 AS col2 FROM tab1 cor0
----
2
5
7

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

skipif mysql # not compatible
query I rowsort label-173
SELECT ALL + - col2 * + cor0.col2 + col0 * - col1 * CAST ( col2 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-109056
-39729
-7128

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - - cor0.col0 * CAST ( col0 AS REAL ) - col1 AS col1 FROM tab0 cor0
----
1128
490
7830

query I rowsort
SELECT - - cor0.col2 + col1 * ( + col0 ) * 89 FROM tab1 AS cor0
----
57017
6996
92656

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

query I rowsort
SELECT ALL col2 + col2 + ( col2 * col0 ) AS col2 FROM tab2 AS cor0
----
2080
243
3078

query I rowsort
SELECT DISTINCT col1 * col0 + + col0 * col2 FROM tab2
----
406
4345
6630

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

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

query I rowsort
SELECT - col1 * 24 + col2 * - 34 FROM tab1 AS cor0
----
-2178
-2460
-3576

onlyif mysql # use DIV operator for integer division
query I rowsort label-182
SELECT ALL - CAST( + ( col0 ) AS SIGNED ) DIV + col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-182
SELECT ALL - CAST ( + ( col0 ) AS INTEGER ) / + col1 FROM tab0 AS cor0
----
0
0
0

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

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

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

skipif mysql # not compatible
query I rowsort label-185
SELECT ALL + CAST ( col1 AS INTEGER ) * + col0 * + col0 AS col0 FROM tab0 AS cor0
----
118825
49536
720811

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

query I rowsort
SELECT + + cor0.col1 * + cor0.col0 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 815fccd4c3d372b28d3f3fb103025775

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-190
SELECT - - col2 + + 85 DIV + col1 FROM tab1 AS cor0
----
102
57
65

skipif mysql # not compatible
query I rowsort label-190
SELECT - - col2 + + 85 / + col1 FROM tab1 AS cor0
----
102
57
65

query I rowsort
SELECT - 7 + 11 * col1 FROM tab2 AS cor0
----
180
334
642

onlyif mysql # use DIV operator for integer division
query I rowsort label-192
SELECT DISTINCT + CAST( + col0 AS SIGNED ) * col1 + col2 DIV + 56 + col0 * 87 FROM tab0 AS cor0
----
15843
4152
6440

skipif mysql # not compatible
query I rowsort label-192
SELECT DISTINCT + CAST ( + col0 AS INTEGER ) * col1 + col2 / + 56 + col0 * 87 FROM tab0 AS cor0
----
15843
4152
6440

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 * 71 col2 FROM tab1, tab0 cor0
----
9 values hashing to 0f2523bfe6dc2dbed77f633d6bb57f11

query I rowsort
SELECT - ( tab2.col1 ) FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2

query I rowsort
SELECT ALL - 84 * + 74 AS col2 FROM tab1 AS cor0
----
-6216
-6216
-6216

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-197
SELECT - 31 + + 39 DIV col1 AS col0 FROM tab1 AS cor0
----
-28
-28
-30

skipif mysql # not compatible
query I rowsort label-197
SELECT - 31 + + 39 / col1 AS col0 FROM tab1 AS cor0
----
-28
-28
-30

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

skipif mysql # not compatible
query I rowsort label-198
SELECT DISTINCT + 84 / cor0.col0 AS col1 FROM tab2 cor0
----
1
12

query I rowsort
SELECT DISTINCT 19 + col0 FROM tab2 AS cor0
----
26
97
98

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

skipif mysql # not compatible
query I rowsort label-200
SELECT DISTINCT - cor0.col0 - col1 * - CAST ( ( - col2 ) AS INTEGER ) FROM tab1 AS cor0
----
-1328
-1407
-634

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

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

query I rowsort
SELECT col1 * cor0.col2 - col0 * + col0 * col0 FROM tab2 AS cor0
----
-473018
-492393
494

query I rowsort
SELECT tab2.col2 + - 70 * col2 * col2 FROM tab2
----
-101042
-47294
-51003

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

query I rowsort
SELECT DISTINCT - 49 + - col1 FROM tab2 AS cor0
----
-108
-66
-80

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

query I rowsort
SELECT DISTINCT + 3 + + col2 FROM tab1
----
57
60
99

query I rowsort
SELECT ALL - - 99 AS col2 FROM tab0 AS cor0
----
99
99
99

query I rowsort
SELECT DISTINCT 88 + + cor0.col1 * 86 AS col0 FROM tab2 cor0
----
1550
2754
5162

query I rowsort
SELECT ALL + col2 * + 25 + - 60 * tab0.col1 FROM tab0
----
-3410
-4335
-5795

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 79 col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f

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

query I rowsort
SELECT ALL 98 + - 59 FROM tab0, tab2 AS cor0
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf

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

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

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

query I rowsort
SELECT ALL 80 * + col0 AS col1 FROM tab1
----
240
5120
6400

onlyif mysql # use DIV operator for integer division
query I rowsort label-218
SELECT ALL + ( 32 ) DIV col1 AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-218
SELECT ALL + ( 32 ) / col1 AS col0 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL col1 * 75 AS col1 FROM tab1
----
1950
750
975

query I rowsort
SELECT 33 AS col0 FROM tab2 cor0
----
33
33
33

query I rowsort
SELECT 74 * cor0.col1 + + 25 * - cor0.col2 FROM tab2, tab2 cor0
----
9 values hashing to 843e5c9987bf8914c8f7e5b1c5a27a83

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

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

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

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

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

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

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

query I rowsort
SELECT 41 AS col1 FROM tab0, tab0 AS cor0, tab2 cor1, tab1 AS cor2
----
81 values hashing to 0733f496a5445ffeac9d19797afe4831

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

query I rowsort
SELECT DISTINCT - 21 AS col0 FROM tab0, tab0 cor0, tab0 AS cor1, tab0 AS cor2
----
-21

onlyif mysql # use DIV operator for integer division
query I rowsort label-230
SELECT - 50 * cor0.col2 - + col2 * + col1 DIV - cor0.col1 col2 FROM tab0 AS cor0
----
-1617
-4018
-49

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-230
SELECT - 50 * cor0.col2 - + col2 * + col1 / - cor0.col1 col2 FROM tab0 AS cor0
----
-1617
-4018
-49

query I rowsort
SELECT + 62 AS col0 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 51dd2771d516ceb935483eded78a5fa0

query I rowsort
SELECT ALL - col0 * ( + col1 * + 58 ) - 13 FROM tab0 AS cor0
----
-119725
-196923
-469755

query I rowsort
SELECT 9 * - cor0.col0 AS col1 FROM tab0 AS cor0
----
-216
-315
-801

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

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

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

skipif mysql # not compatible
query I rowsort label-236
SELECT + - col2 + + CAST ( + col1 AS INTEGER ) * - col2 FROM tab1 AS cor0
----
-1344
-1458
-627

query I rowsort
SELECT + 99 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 05ea182fd6036c7f5e0ea08fc061cc67

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

query I rowsort
SELECT DISTINCT - + col1 * ( 61 + col2 ) AS col2 FROM tab1 AS cor0
----
-1180
-2041
-2990

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-241
SELECT ALL + + col0 * + CAST( - 64 AS SIGNED ) FROM tab0 AS cor0
----
-1536
-2240
-5696

skipif mysql # not compatible
query I rowsort label-241
SELECT ALL + + col0 * + CAST ( - 64 AS INTEGER ) FROM tab0 AS cor0
----
-1536
-2240
-5696

query I rowsort
SELECT + 75 AS col0 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to e61b59795204c348103a58c0a8e4ce16

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab1 cor0, tab2, tab0 AS cor1
----
972 values hashing to 95de14c88adc44eda4adb5267fe9ebd1

query I rowsort
SELECT tab1.col1 + + 12 * 93 * - col1 FROM tab1
----
-11150
-14495
-28990

query I rowsort
SELECT ALL tab0.col2 * col2 * col1 AS col2 FROM tab0
----
611884
93654
97

query I rowsort
SELECT + col0 * + 12 + col0 AS col0 FROM tab2 cor0
----
1014
1027
91

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

query I rowsort
SELECT ALL ( + 87 ) AS col2 FROM tab1
----
87
87
87

query I rowsort
SELECT ( col1 ) * - col1 - col0 AS col1 FROM tab2 cor0
----
-3559
-368
-968

query I rowsort
SELECT ALL tab0.col1 - 1 FROM tab0
----
85
90
96

query I rowsort
SELECT tab1.col2 - col0 * + col0 * col1 AS col0 FROM tab1
----
-180
-40903
-83104

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

query I rowsort
SELECT ALL + col0 + + col2 * + 1 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT DISTINCT col1 - - col1 * - col1 * - col0 AS col1 FROM tab0 AS cor0
----
177590
329412
737100

query I rowsort
SELECT DISTINCT - + 87 * col2 + 76 FROM tab1 AS cor0
----
-4622
-4883
-8276

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

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

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

query I rowsort
SELECT ALL 30 * + col0 + + col1 AS col1 FROM tab1 cor0
----
116
1930
2413

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

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

query I rowsort
SELECT - col2 * + col2 + col0 AS col0 FROM tab2 AS cor0
----
-1365
-598
-722

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

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

query I rowsort
SELECT ALL 97 + col0 + 31 * - 48 FROM tab0 AS cor0
----
-1302
-1356
-1367

query I rowsort
SELECT col2 * col1 + + col0 - - col0 FROM tab2
----
1690
804
851

query I rowsort
SELECT ALL + col1 * - col1 + col1 FROM tab0
----
-7310
-8190
-9312

query I rowsort
SELECT - col1 + - col0 * tab2.col2 FROM tab2
----
-2087
-220
-3019

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

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

query I rowsort
SELECT DISTINCT col2 - col0 * col1 * col1 AS col1 FROM tab2
----
-22793
-271492
-6700

query I rowsort
SELECT DISTINCT - col0 * - col2 + + col0 * - col2 FROM tab1
----
0

query I rowsort
SELECT ALL 71 + + tab0.col1 * col0 * 57 AS col2 FROM tab0
----
117719
193586
461714

query I rowsort
SELECT ALL - 57 + - col0 AS col1 FROM tab1
----
-121
-137
-60

query I rowsort
SELECT ALL + + 26 + col2 AS col1 FROM tab0 cor0
----
108
27
59

query I rowsort
SELECT + cor0.col0 * cor0.col1 * 23 + 52 * + col1 AS col0 FROM tab1 cor0
----
15240
24596
3146

query I rowsort
SELECT ALL col0 + + col2 * col2 + - col0 * col2 * + 73 AS col0 FROM tab2 AS cor0
----
-13061
-147290
-217623

query I rowsort
SELECT ALL + 87 * + col1 + 89 AS col1 FROM tab1 AS cor0
----
1220
2351
959

query I rowsort
SELECT - - 88 * col2 + + col0 * - col2 + - cor0.col2 * + col1 * - ( col1 ) FROM tab0 AS cor0
----
246180
678960
9462

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 77 * col0 col2 FROM tab0 cor0
----
1848
2695
6853

query I rowsort
SELECT 1 + + col1 + + col0 * + 84 AS col0 FROM tab1 AS cor0
----
279
5387
6734

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

query I rowsort
SELECT ALL + tab1.col1 AS col2 FROM tab1 WHERE NOT + col0 IN ( - col2 )
----
10
13
26

onlyif mysql # use DIV operator for integer division
query I rowsort label-283
SELECT ALL col1 * col2 + col0 DIV col0 AS col2 FROM tab1
----
1249
1405
571

skipif mysql # not compatible
query I rowsort label-283
SELECT ALL col1 * col2 + col0 / col0 AS col2 FROM tab1
----
1249
1405
571

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

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT IN ( col1 / col2 )
----

query I rowsort
SELECT DISTINCT col2 - - col2 FROM tab1 WHERE NULL IN ( + col2 )
----

query I rowsort
SELECT tab1.col2 * + col2 + - col0 + + col0 * col1 AS col2 FROM tab1
----
10176
2991
3825

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

query I rowsort
SELECT ALL - col2 + + col1 - col0 FROM tab2 cor0
----
-100
-3
-45

query I rowsort
SELECT - col2 + + col0 FROM tab2 AS cor0 WHERE NOT col0 > NULL
----

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

query I rowsort
SELECT ALL col0 * col1 FROM tab1 WHERE NOT ( NULL ) BETWEEN NULL AND ( NULL )
----

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

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

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

query III rowsort
SELECT ALL * FROM tab1 WHERE + col2 NOT IN ( col2 + col0 + col2 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

query I rowsort
SELECT - col0 FROM tab0 WHERE col0 BETWEEN - col1 / col0 AND NULL
----

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

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

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

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-302
SELECT + 95 + ( col1 ) * + CAST( 51 + - col1 AS SIGNED ) * + col2 FROM tab1 AS cor0
----
23465
35195
47519

skipif mysql # not compatible
query I rowsort label-302
SELECT + 95 + ( col1 ) * + CAST ( 51 + - col1 AS INTEGER ) * + col2 FROM tab1 AS cor0
----
23465
35195
47519

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

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

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

query I rowsort
SELECT ALL - - col1 * 22 FROM tab2 AS cor0
----
1298
374
682

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + col2 * col1 col2 FROM tab0 AS cor0
----
0
2752
7371

query I rowsort
SELECT DISTINCT + + col1 * col0 * - 93 FROM tab1 AS cor0
----
-59520
-7254
-96720

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

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

query I rowsort
SELECT DISTINCT col1 * 75 FROM tab0 cor0
----
6450
6825
7275

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

query I rowsort
SELECT ALL + - col2 * + col2 * + 72 + col1 FROM tab0 AS cor0
----
-484037
-78322
25

query I rowsort
SELECT ALL + + col0 - - 8 * + col1 FROM tab2 AS cor0
----
215
255
550

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

query I rowsort
SELECT - col1 * - ( 37 * col1 ) + col1 * + 92 - - col0 FROM tab1 AS cor0
----
27407
4684
7529

query I rowsort
SELECT col2 * - 11 + col0 + col0 FROM tab0 AS cor0
----
-315
-724
59

query I rowsort
SELECT - col0 + + ( - 88 ) FROM tab0
----
-112
-123
-177

query I rowsort
SELECT + - 93 + + col2 * + cor0.col1 FROM tab2 AS cor0
----
1441
553
744

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-320
SELECT CAST( + col1 AS SIGNED ) * col0 FROM tab0
----
2064
3395
8099

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

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

query I rowsort
SELECT + col1 * 93 AS col2 FROM tab0
----
7998
8463
9021

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 14 * col0 col0 FROM tab2
----
1092
1106
98

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

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

query I rowsort
SELECT DISTINCT + col2 * cor0.col1 + + col2 * col2 FROM tab1 AS cor0
----
10464
3819
4320

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

query I rowsort
SELECT - 45 * 34 FROM tab0
----
-1530
-1530
-1530

query I rowsort
SELECT 17 * - col1 FROM tab0
----
-1462
-1547
-1649

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

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

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

query I rowsort
SELECT - 43 * - cor0.col2 FROM tab0 AS cor0
----
1419
3526
43

query I rowsort
SELECT + + col1 - 54 AS col2 FROM tab1 AS cor0
----
-28
-41
-44

onlyif mysql # use DIV operator for integer division
query I rowsort label-334
SELECT col1 + - cor0.col0 * col2 DIV + col1 FROM tab2 AS cor0
----
-159
25
25

skipif mysql # not compatible
query I rowsort label-334
SELECT col1 + - cor0.col0 * col2 / + col1 FROM tab2 AS cor0
----
-159
25
25

onlyif mysql # use DIV operator for integer division
query I rowsort label-335
SELECT cor0.col2 * 22 + + col1 DIV + col1 FROM tab0 AS cor0
----
1805
23
727

skipif mysql # not compatible
query I rowsort label-335
SELECT cor0.col2 * 22 + + col1 / + col1 FROM tab0 AS cor0
----
1805
23
727

query I rowsort
SELECT - col0 * + 65 - col2 AS col1 FROM tab1 cor0
----
-249
-4217
-5296

onlyif mysql # use DIV operator for integer division
query I rowsort label-337
SELECT - col1 DIV ( col0 ) + col0 * + col1 FROM tab0 AS cor0
----
2061
3393
8098

skipif mysql # not compatible
query I rowsort label-337
SELECT - col1 / ( col0 ) + col0 * + col1 FROM tab0 AS cor0
----
2061
3393
8098

query I rowsort
SELECT + col1 * - ( + 66 * + col0 ) AS col1 FROM tab0
----
-136224
-224070
-534534

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

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

skipif mysql # not compatible
query I rowsort
SELECT CAST ( + ( - col2 ) AS REAL ) + col1 AS col0 FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT col0 - + col2 * col1 * - col2 AS col0 FROM tab1 AS cor0
----
119888
32554
75819

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

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

query I rowsort
SELECT DISTINCT - col2 + - col1 + col0 AS col2 FROM tab1 AS cor0
----
-29
-3
-77

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

query I rowsort
SELECT - col2 + - col2 + - col2 AS col0 FROM tab0
----
-246
-3
-99

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

query I rowsort
SELECT + col2 + col0 + + col2 * col2 AS col2 FROM tab2
----
1561
763
780

query I rowsort
SELECT DISTINCT col0 * + col0 * col0 FROM tab2 AS cor0
----
343
474552
493039

query I rowsort
SELECT DISTINCT + col0 * - col1 * col1 - col2 AS col2 FROM tab1 cor0
----
-13616
-2082
-6457

query I rowsort
SELECT DISTINCT + col1 * col1 * + cor0.col1 AS col1 FROM tab2 AS cor0
----
205379
29791
4913

query I rowsort
SELECT - col0 FROM tab1 AS cor0 WHERE NOT col2 * col2 BETWEEN ( + col0 / col1 ) AND ( cor0.col1 )
----
-3
-64
-80

query I rowsort
SELECT DISTINCT tab0.col2 + col2 * col2 FROM tab0
----
1122
2
6806

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab2 WHERE NOT NULL <> NULL
----

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-357
SELECT ALL + col1 * col1 * + col0 - col0 DIV col1 FROM tab2
----
22827
271517
6727

skipif mysql # not compatible
query I rowsort label-357
SELECT ALL + col1 * col1 * + col0 - col0 / col1 FROM tab2
----
22827
271517
6727

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

query I rowsort
SELECT DISTINCT + col0 - + col1 * col0 * tab2.col1 FROM tab2
----
-22752
-271440
-6720

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + col1 + col1 col1 FROM tab1
----
30
39
78

query I rowsort
SELECT + col0 * col0 * - col0 + - col2 - col0 AS col1 FROM tab0
----
-13881
-42911
-705140

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col1 * + tab1.col0 col1 FROM tab1
----
234
40960
83200

onlyif mysql # use DIV operator for integer division
query I rowsort label-366
SELECT ALL tab0.col2 DIV col0 + - col0 * - col1 - col2 FROM tab0
----
2032
3394
8017

skipif mysql # not compatible
query I rowsort label-366
SELECT ALL tab0.col2 / col0 + - col0 * - col1 - col2 FROM tab0
----
2032
3394
8017

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

skipif mysql # not compatible
query I rowsort label-367
SELECT DISTINCT - col2 * CAST ( - 51 + + col0 AS INTEGER ) AS col1 FROM tab1 cor0
----
-2784
-741
2592

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-368
SELECT cor0.col0 * + CAST( 69 AS SIGNED ) FROM tab0 AS cor0
----
1656
2415
6141

skipif mysql # not compatible
query I rowsort label-368
SELECT cor0.col0 * + CAST ( 69 AS INTEGER ) FROM tab0 AS cor0
----
1656
2415
6141

onlyif mysql # use DIV operator for integer division
query I rowsort label-369
SELECT 17 * + col1 - col1 DIV tab0.col0 FROM tab0
----
1459
1546
1647

skipif mysql # not compatible
query I rowsort label-369
SELECT 17 * + col1 - col1 / tab0.col0 FROM tab0
----
1459
1546
1647

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

query I rowsort
SELECT - tab1.col2 * col2 * col1 - + col2 FROM tab1
----
-119904
-32547
-75870

query I rowsort
SELECT + col0 * 62 + col0 AS col1 FROM tab0
----
1512
2205
5607

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-374
SELECT col1 DIV + ( - col0 ) + + col1 * col1 * tab2.col0 AS col0 FROM tab2
----
22831
271518
6723

skipif mysql # not compatible
query I rowsort label-374
SELECT col1 / + ( - col0 ) + + col1 * col1 * tab2.col0 AS col0 FROM tab2
----
22831
271518
6723

query I rowsort
SELECT ALL 72 AS col2 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 92cc3d5daa550304e96c1542787691c7

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - tab2.col2 ) * tab2.col0 + - 38 col0 FROM tab2
----
-2066
-227
-3040

query I rowsort
SELECT col2 * + col2 * tab2.col0 FROM tab2
----
114076
5103
52728

query I rowsort
SELECT - col2 + + col1 * 11 FROM tab1 cor0
----
232
47
53

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-381
SELECT DISTINCT + ( - col2 ) DIV col1 + col0 * - col1 + - ( - col0 ) AS col0 FROM tab0 AS cor0
----
-2040
-3360
-8010

skipif mysql # not compatible
query I rowsort label-381
SELECT DISTINCT + ( - col2 ) / col1 + col0 * - col1 + - ( - col0 ) AS col0 FROM tab0 AS cor0
----
-2040
-3360
-8010

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

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

query I rowsort
SELECT ALL 35 * ( tab1.col1 ) + ( 76 ) AS col1 FROM tab1
----
426
531
986

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * col0 + - tab2.col0 * 46 col0 FROM tab2
----
-273
2496
2607

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

query I rowsort
SELECT ALL + col0 + col2 * 62 FROM tab2 AS cor0
----
1681
1690
2435

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

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

query I rowsort
SELECT ALL + + cor0.col2 + - col0 * - 9 AS col1 FROM tab2 AS cor0
----
728
749
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col2 + - col2 * col1 * 43 + col1 col2 FROM tab2 AS cor0
----
-27723
-35933
-65877

onlyif mysql # use DIV operator for integer division
query I rowsort label-390
SELECT DISTINCT + 53 + - cor0.col1 DIV 9 AS col0 FROM tab2 AS cor0
----
47
50
52

skipif mysql # not compatible
query I rowsort label-390
SELECT DISTINCT + 53 + - cor0.col1 / 9 AS col0 FROM tab2 AS cor0
----
47
50
52

query I rowsort
SELECT DISTINCT + cor0.col1 * col2 * + 89 + + 68 FROM tab0 cor0
----
252650
664186
8701

onlyif mysql # use DIV operator for integer division
query I rowsort label-392
SELECT ALL + - 71 * col2 DIV - ( ( col2 ) ) FROM tab0 AS cor0
----
71
71
71

skipif mysql # not compatible
query I rowsort label-392
SELECT ALL + - 71 * col2 / - ( ( col2 ) ) FROM tab0 AS cor0
----
71
71
71

query I rowsort
SELECT - col2 * col1 * 70 AS col0 FROM tab0 AS cor0
----
-198660
-522340
-6790

query I rowsort
SELECT DISTINCT - 50 + + col0 AS col1 FROM tab0 cor0
----
-15
-26
39

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

query I rowsort
SELECT col2 - cor0.col0 * - 75 AS col2 FROM tab0 AS cor0
----
1833
2626
6757

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-398
SELECT DISTINCT col1 DIV + col1 + - 25 + cor0.col0 FROM tab2 AS cor0
----
-17
54
55

skipif mysql # not compatible
query I rowsort label-398
SELECT DISTINCT col1 / + col1 + - 25 + cor0.col0 FROM tab2 AS cor0
----
-17
54
55

query I rowsort
SELECT ALL + col0 + col0 * 6 * + ( - cor0.col2 ) AS col1 FROM tab0 AS cor0
----
-175
-43699
-4728

query I rowsort
SELECT ( + col0 + - tab2.col0 ) * - col1 FROM tab2
----
0
0
0

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-404
SELECT + cor0.col2 DIV + col1 + - col1 FROM tab2 cor0
----
-15
-31
-59

skipif mysql # not compatible
query I rowsort label-404
SELECT + cor0.col2 / + col1 + - col1 FROM tab2 cor0
----
-15
-31
-59

query I rowsort
SELECT + col2 * + 66 - - col1 AS col2 FROM tab2 AS cor0
----
1775
1813
2525

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

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

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

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-409
SELECT CAST( 29 AS SIGNED ) + + col1 FROM tab1 AS cor0
----
39
42
55

skipif mysql # not compatible
query I rowsort label-409
SELECT CAST ( 29 AS INTEGER ) + + col1 FROM tab1 AS cor0
----
39
42
55

query I rowsort
SELECT ALL 11 + - col2 * col0 AS col1 FROM tab2 AS cor0
----
-178
-2017
-2991

onlyif mysql # use DIV operator for integer division
query I rowsort label-411
SELECT DISTINCT 42 * col2 + col2 DIV col0 FROM tab2
----
1092
1137
1596

skipif mysql # not compatible
query I rowsort label-411
SELECT DISTINCT 42 * col2 + col2 / col0 FROM tab2
----
1092
1137
1596

query I rowsort
SELECT - ( + col2 + - col1 ) * ( - 82 ) FROM tab1
----
2296
3854
6806

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

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

query I rowsort
SELECT DISTINCT 52 * - col0 FROM tab1 AS cor0
----
-156
-3328
-4160

query I rowsort
SELECT ALL - 27 AS col1 FROM tab1 cor0
----
-27
-27
-27

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

query I rowsort
SELECT 48 + col1 * 26 * col2 FROM tab2 AS cor0
----
16844
21810
39932

query I rowsort
SELECT - ( 92 + tab2.col0 ) * ( - 88 ) AS col0 FROM tab2
----
14960
15048
8712

onlyif mysql # use DIV operator for integer division
query I rowsort label-420
SELECT ( - col2 ) DIV col1 + + col0 * col2 FROM tab0
----
35
7298
792

skipif mysql # not compatible
query I rowsort label-420
SELECT ( - col2 ) / col1 + + col0 * col2 FROM tab0
----
35
7298
792

query I rowsort
SELECT - col1 * - 58 + col1 * 45 AS col2 FROM tab0 cor0
----
8858
9373
9991

query I rowsort
SELECT ALL 80 * + cor0.col1 * col0 AS col2 FROM tab0 AS cor0
----
165120
271600
647920

query I rowsort
SELECT DISTINCT - + col1 * + 13 FROM tab0 AS cor0
----
-1118
-1183
-1261

query I rowsort
SELECT + cor0.col1 + 61 FROM tab0 AS cor0
----
147
152
158

onlyif mysql # use DIV operator for integer division
query I rowsort label-425
SELECT - - cor0.col0 * 30 DIV + col2 FROM tab0 AS cor0
----
1050
21
32

skipif mysql # not compatible
query I rowsort label-425
SELECT - - cor0.col0 * 30 / + col2 FROM tab0 AS cor0
----
1050
21
32

query I rowsort
SELECT DISTINCT + - 46 + col1 FROM tab2 AS cor0
----
-15
-29
13

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - col1 ) * - col2 + col0 * - 84 col0 FROM tab0 AS cor0
----
-14
-2843
822

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

query I rowsort
SELECT + col0 * ( col1 + col0 ) AS col0 FROM tab0
----
16020
2640
4620

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

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

query I rowsort
SELECT 74 * tab0.col1 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 2bc65e52b35c1e02e7c244003eb6ecdb

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-432
SELECT ALL + CAST( + 29 AS SIGNED ) * col2 AS col0 FROM tab1
----
1566
1653
2784

skipif mysql # not compatible
query I rowsort label-432
SELECT ALL + CAST ( + 29 AS INTEGER ) * col2 AS col0 FROM tab1
----
1566
1653
2784

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

skipif mysql # not compatible
query I rowsort label-433
SELECT 81 / - col2 AS col2 FROM tab1 cor0
----
-1
-1
0

query I rowsort
SELECT + col1 + - 20 AS col1 FROM tab1 AS cor0
----
-10
-7
6

query I rowsort
SELECT DISTINCT 77 + 71 FROM tab1
----
148

query I rowsort
SELECT ALL + col0 + - col0 * + 98 * cor0.col2 FROM tab1 AS cor0
----
-15873
-357440
-752560

query I rowsort
SELECT col1 - tab2.col0 * + col0 * col1 FROM tab2
----
-106080
-1488
-358897

query I rowsort
SELECT - col1 + ( col0 ) - col2 AS col1 FROM tab0
----
-63
-84
-95

query I rowsort
SELECT + col2 - - 0 * + col1 * col0 FROM tab0 AS cor0
----
1
33
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-440
SELECT col2 + 34 DIV + cor0.col0 FROM tab1 AS cor0
----
57
65
96

skipif mysql # not compatible
query I rowsort label-440
SELECT col2 + 34 / + cor0.col0 FROM tab1 AS cor0
----
57
65
96

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

query I rowsort
SELECT ALL + col2 - 7 AS col1 FROM tab1
----
47
50
89

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-444
SELECT cor0.col2 * CAST( + col2 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
2916
3249
9216

skipif mysql # not compatible
query I rowsort label-444
SELECT cor0.col2 * CAST ( + col2 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT DISTINCT col1 * ( 97 ) AS col0 FROM tab1 AS cor0
----
1261
2522
970

query I rowsort
SELECT - - col2 * - 5 FROM tab1 AS cor0
----
-270
-285
-480

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

query I rowsort
SELECT ALL col0 + + 28 AS col0 FROM tab1 AS cor0
----
108
31
92

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

query I rowsort
SELECT ALL ( 8 ) + - col1 * 27 FROM tab2 cor0
----
-1585
-451
-829

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

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

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

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

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

query I rowsort
SELECT 53 + ( col0 ) - cor0.col2 * col0 FROM tab1 AS cor0
----
-106
-3531
-7547

onlyif mysql # use DIV operator for integer division
query I rowsort label-456
SELECT 29 - cor0.col2 DIV col1 FROM tab2 AS cor0
----
27
29
29

skipif mysql # not compatible
query I rowsort label-456
SELECT 29 - cor0.col2 / col1 FROM tab2 AS cor0
----
27
29
29

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

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

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

query I rowsort
SELECT DISTINCT - col2 + + ( col0 ) * - col0 * + 26 AS col1 FROM tab1 AS cor0
----
-106553
-166496
-288

onlyif mysql # use DIV operator for integer division
query I rowsort label-460
SELECT DISTINCT 35 DIV - 2 + col2 - 96 FROM tab2 AS cor0
----
-75
-86
-87

skipif mysql # not compatible
query I rowsort label-460
SELECT DISTINCT 35 / - 2 + col2 - 96 FROM tab2 AS cor0
----
-75
-86
-87

query I rowsort
SELECT ALL - 22 * + col0 AS col1 FROM tab2 AS cor0
----
-154
-1716
-1738

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

query I rowsort
SELECT ALL - 21 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 631fbd1fd929405aba54a22c2a06c757

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-464
SELECT CAST( 80 AS SIGNED ) AS col0 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 6dd5038be71dffa82f5ceba787caab91

skipif mysql # not compatible
query I rowsort label-464
SELECT CAST ( 80 AS INTEGER ) AS col0 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 6dd5038be71dffa82f5ceba787caab91

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

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

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

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

query I rowsort
SELECT col0 * 13 FROM tab1 AS cor0
----
1040
39
832

query I rowsort
SELECT DISTINCT col0 + - cor0.col2 + col0 FROM tab0 AS cor0
----
15
69
96

query I rowsort
SELECT ALL col2 * + 23 FROM tab0 cor0
----
1886
23
759

query I rowsort
SELECT ALL - - col1 + 45 AS col1 FROM tab2 AS cor0
----
104
62
76

query I rowsort
SELECT ALL - col1 + ( - 57 ) * col0 AS col0 FROM tab0 AS cor0
----
-1454
-2092
-5164

onlyif mysql # use DIV operator for integer division
query I rowsort label-473
SELECT DISTINCT + col0 DIV - 70 + + 78 * - col1 AS col2 FROM tab0 AS cor0
----
-6708
-7099
-7566

skipif mysql # not compatible
query I rowsort label-473
SELECT DISTINCT + col0 / - 70 + + 78 * - col1 AS col2 FROM tab0 AS cor0
----
-6708
-7099
-7566

query I rowsort
SELECT DISTINCT + - col2 + 33 AS col0 FROM tab1 cor0
----
-21
-24
-63

query I rowsort
SELECT DISTINCT col2 + 8 * col1 FROM tab1 AS cor0
----
137
200
262

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

query I rowsort
SELECT 21 + 26 + + cor0.col0 AS col2 FROM tab1, tab2 AS cor0, tab2 cor1
----
27 values hashing to 8726ce8bc2d41ce47a20b13d3e08cd83

query I rowsort
SELECT DISTINCT - 75 + 76 AS col1 FROM tab0 AS cor0
----
1

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

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + cor0.col1 + - 84 col1 FROM tab1 AS cor0
----
-58
-71
-74

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-485
SELECT ALL 16 + + col2 + cor0.col1 DIV + cor0.col0 FROM tab2 AS cor0
----
42
47
54

skipif mysql # not compatible
query I rowsort label-485
SELECT ALL 16 + + col2 + cor0.col1 / + cor0.col0 FROM tab2 AS cor0
----
42
47
54

query I rowsort
SELECT DISTINCT - ( - col0 ) * col0 AS col2 FROM tab2 cor0
----
49
6084
6241

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + 96 col2 FROM tab1 AS cor0
----
160
176
99

query I rowsort
SELECT ALL - - col1 * + 76 + col2 - + cor0.col1 * 47 * + col0 FROM tab2 AS cor0
----
-211784
-61791
-7816

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

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

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

query I rowsort
SELECT col2 - - 57 * col0 * + col0 FROM tab2 AS cor0
----
2820
346814
355775

query I rowsort
SELECT ALL - col0 * cor0.col0 + + col0 + + col0 FROM tab1 AS cor0
----
-3
-3968
-6240

query I rowsort
SELECT + cor0.col1 - - col0 * - col1 * + cor0.col0 AS col1 FROM tab1 AS cor0
----
-208
-40950
-83187

query I rowsort
SELECT DISTINCT - col2 + 76 AS col0 FROM tab0 AS cor0
----
-6
43
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col1 + - ( col0 + - col2 ) * col1 col1 FROM tab1 AS cor0
----
1456
2730
500

onlyif mysql # use DIV operator for integer division
query I rowsort label-497
SELECT + - col1 - 50 * + cor0.col0 DIV col0 FROM tab2 AS cor0
----
-109
-67
-81

skipif mysql # not compatible
query I rowsort label-497
SELECT + - col1 - 50 * + cor0.col0 / col0 FROM tab2 AS cor0
----
-109
-67
-81

query I rowsort
SELECT + 89 FROM tab1, tab1 AS cor0
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * ( + col2 ) + + col0 col0 FROM tab1 AS cor0
----
-2913
-3185
-9136

query I rowsort
SELECT - col2 * + 65 - 73 FROM tab0 AS cor0
----
-138
-2218
-5403

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

query I rowsort
SELECT cor0.col1 + 2 AS col2 FROM tab1 AS cor0
----
12
15
28

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

query I rowsort
SELECT DISTINCT col1 + col2 * + col2 * col0 AS col2 FROM tab1
----
207946
737293
8774

query I rowsort
SELECT 48 * - 38 + col2 AS col1 FROM tab1 cor0
----
-1728
-1767
-1770

query I rowsort
SELECT ALL + 42 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 325aada2239b6fe1fe2d843515ae8c5e

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * col2 + col0 * col1 col1 FROM tab1
----
1210
1482
2288

query I rowsort
SELECT ALL - col1 * col2 * + 79 + + tab2.col0 * col0 FROM tab2
----
-115102
-44793
-66074

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

query I rowsort
SELECT - - 8 + + 49 * col2 - - col1 * col1 * cor0.col2 FROM tab2 AS cor0
----
12852
27278
91788

query I rowsort
SELECT col0 + - col1 + + cor0.col1 AS col1 FROM tab1 cor0
----
3
64
80

query I rowsort
SELECT ALL - cor0.col0 - - 85 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 73d0dcb477af572f457d8202cb2f9528

query I rowsort
SELECT + 71 FROM tab1, tab1 cor0
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - col2 ) * col2 col1 FROM tab2
----
-1444
-676
-729

query I rowsort
SELECT ALL 20 FROM tab0, tab1 cor0
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4

onlyif mysql # use DIV operator for integer division
query I rowsort label-516
SELECT DISTINCT + ( tab2.col1 ) + 29 DIV 48 FROM tab2, tab2 AS cor0
----
17
31
59

skipif mysql # not compatible
query I rowsort label-516
SELECT DISTINCT + ( tab2.col1 ) + 29 / 48 FROM tab2, tab2 AS cor0
----
17
31
59

query I rowsort
SELECT col1 + - col2 - col0 FROM tab2
----
-100
-3
-45

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

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

query I rowsort
SELECT 93 * ( + col2 ) FROM tab2
----
2418
2511
3534

query I rowsort
SELECT DISTINCT - 32 * - tab1.col1 FROM tab1
----
320
416
832

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

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

query I rowsort
SELECT DISTINCT - 38 AS col1 FROM tab1, tab1 AS cor0, tab1 cor1
----
-38

query I rowsort
SELECT DISTINCT + 21 * - col0 FROM tab1 AS cor0
----
-1344
-1680
-63

query I rowsort
SELECT col2 + - 12 * col0 FROM tab1 AS cor0
----
-711
-864
18

onlyif mysql # use DIV operator for integer division
query I rowsort label-527
SELECT - col0 DIV + ( 35 ) FROM tab2 AS cor0
----
-2
-2
0

skipif mysql # not compatible
query I rowsort label-527
SELECT - col0 / + ( 35 ) FROM tab2 AS cor0
----
-2
-2
0

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

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

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

query I rowsort
SELECT col1 + col1 + col2 FROM tab1
----
106
122
77

query I rowsort
SELECT + col0 * + col1 + 30 AS col1 FROM tab2
----
1373
247
4632

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 39 * col2 + 2 - col1 col2 FROM tab0
----
-134
-1371
-3287

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

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

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-538
SELECT ALL + + col1 + - col2 * col2 DIV ( - col1 * - 36 ) FROM tab1 AS cor0
----
-6
1
23

skipif mysql # not compatible
query I rowsort label-538
SELECT ALL + + col1 + - col2 * col2 / ( - col1 * - 36 ) FROM tab1 AS cor0
----
-6
1
23

query I rowsort
SELECT + + col0 + + col2 * - 92 FROM tab0 AS cor0
----
-3012
-57
-7455

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

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

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

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

skipif mysql # not compatible
query I rowsort
SELECT - col1 + + ( ( cor0.col1 ) + - CAST ( 53 AS REAL ) ) AS col0 FROM tab1 AS cor0
----
-53
-53
-53

query I rowsort
SELECT ALL - col1 + 46 FROM tab0 AS cor0
----
-40
-45
-51

query I rowsort
SELECT 59 * + col2 AS col0 FROM tab0
----
1947
4838
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-547
SELECT DISTINCT + 72 DIV + col2 - + col1 col1 FROM tab0
----
-25
-84
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-547
SELECT DISTINCT + 72 / + col2 - + col1 col1 FROM tab0
----
-25
-84
-91

query I rowsort
SELECT ALL + col2 + 13 FROM tab0 AS cor0
----
14
46
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 * + col1 + ( - col0 ) col0 FROM tab2 AS cor0
----
-1612
-725
-844

query I rowsort
SELECT ALL - 77 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to c7e5f48ecd3843d54a76808ed1f43ff6

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

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

query I rowsort
SELECT DISTINCT ( - 73 ) * col1 AS col2 FROM tab2 cor0
----
-1241
-2263
-4307

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-553
SELECT + - CAST( 82 AS SIGNED ) * + col1 col1 FROM tab1 AS cor0
----
-1066
-2132
-820

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-553
SELECT + - CAST ( 82 AS INTEGER ) * + col1 col1 FROM tab1 AS cor0
----
-1066
-2132
-820

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

query I rowsort
SELECT ALL + - 92 * col0 AS col1 FROM tab2 cor0
----
-644
-7176
-7268

query I rowsort
SELECT + + tab2.col1 * 51 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 1ac7182efd7a6e02fdf3d993df916f55

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-559
SELECT + 77 + - col0 * CAST( + col1 AS SIGNED ) FROM tab1 AS cor0
----
-1
-563
-963

skipif mysql # not compatible
query I rowsort label-559
SELECT + 77 + - col0 * CAST ( + col1 AS INTEGER ) FROM tab1 AS cor0
----
-1
-563
-963

query I rowsort
SELECT 77 * col1 AS col1 FROM tab0 AS cor0
----
6622
7007
7469

query I rowsort
SELECT ALL - 94 * col1 * col1 FROM tab0 AS cor0
----
-695224
-778414
-884446

query I rowsort
SELECT ALL 99 * ( - col2 ) FROM tab1
----
-5346
-5643
-9504

query I rowsort
SELECT col1 * 60 AS col2 FROM tab1
----
1560
600
780

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

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

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

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

query I rowsort
SELECT + - 18 * col0 * - 1 FROM tab1 AS cor0
----
1152
1440
54

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-568
SELECT DISTINCT ( col0 ) * - CAST( 27 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-1728
-2160
-81

skipif mysql # not compatible
query I rowsort label-568
SELECT DISTINCT ( col0 ) * - CAST ( 27 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-1728
-2160
-81

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

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

query I rowsort
SELECT DISTINCT - col1 * ( col2 ) * col1 + - col0 * + col2 * + col1 FROM tab1
----
-116064
-40716
-42180

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

skipif mysql # not compatible
query I rowsort label-572
SELECT - cor0.col0 / cor0.col2 - + col1 / + col0 AS col0 FROM tab0 AS cor0
----
-2
-3
-37

skipif mysql # not compatible
query I rowsort
SELECT - + col1 + CAST ( - col0 AS REAL ) / + col0 FROM tab0 AS cor0
----
-87
-92
-98

query I rowsort
SELECT col0 + - 3 + + 55 * col0 FROM tab0
----
1341
1957
4981

onlyif mysql # use DIV operator for integer division
query I rowsort label-575
SELECT DISTINCT col0 + + 38 * 33 DIV - col1 AS col2 FROM tab1
----
-16
-45
-61

skipif mysql # not compatible
query I rowsort label-575
SELECT DISTINCT col0 + + 38 * 33 / - col1 AS col2 FROM tab1
----
-16
-45
-61

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

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

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

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

skipif mysql # not compatible
query I rowsort label-579
SELECT DISTINCT + CAST ( NULL AS INTEGER ) FROM tab2, tab2 AS cor0, tab0 AS cor1, tab2 AS cor2
----
NULL

query I rowsort
SELECT 43 * + 91 FROM tab2 AS cor0
----
3913
3913
3913

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

query I rowsort
SELECT ALL col0 * col0 + + tab0.col1 FROM tab0
----
1322
662
8012

query I rowsort
SELECT ALL 80 + - col1 * col2 FROM tab0
----
-17
-2758
-7382

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - col2 * - 89 col1 FROM tab0 AS cor0
----
2913
54
7209

query I rowsort
SELECT DISTINCT + - cor0.col2 + col1 - 49 AS col0 FROM tab2 AS cor0
----
-16
-45
-70

query I rowsort
SELECT DISTINCT + 18 + + col2 AS col0 FROM tab1 cor0
----
114
72
75

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

query I rowsort
SELECT DISTINCT col0 + + 59 FROM tab0 AS cor0
----
148
83
94

query I rowsort
SELECT + col2 + + 46 AS col0 FROM tab2 cor0
----
72
73
84

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

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

query I rowsort
SELECT ALL + 16 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to ee5bde9f68ee828e8cd86b0d590090bc

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-593
SELECT - cor0.col2 * CAST( + 45 AS SIGNED ) AS col0 FROM tab1 cor0
----
-2430
-2565
-4320

skipif mysql # not compatible
query I rowsort label-593
SELECT - cor0.col2 * CAST ( + 45 AS INTEGER ) AS col0 FROM tab1 cor0
----
-2430
-2565
-4320

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 * + col0 + col1 col1 FROM tab0 AS cor0
----
-1128
-490
-7830

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-596
SELECT CAST ( - 57 AS INTEGER ) col0 FROM tab2
----
-57
-57
-57

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

query I rowsort
SELECT DISTINCT - + 59 + - col0 AS col0 FROM tab0 AS cor0
----
-148
-83
-94

query I rowsort
SELECT - ( - 11 ) AS col2 FROM tab2
----
11
11
11

query I rowsort
SELECT DISTINCT 26 * col1 * - col0 AS col0 FROM tab0
----
-210574
-53664
-88270

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

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

query I rowsort
SELECT + 31 * col1 * - col1 AS col1 FROM tab2 AS cor0
----
-107911
-29791
-8959

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

skipif mysql # not compatible
query I rowsort label-603
SELECT DISTINCT - CAST ( - 31 AS INTEGER ) * + col2 AS col1 FROM tab1 AS cor0
----
1674
1767
2976

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

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

query I rowsort
SELECT - col2 * col0 + + 54 FROM tab2 AS cor0
----
-135
-1974
-2948

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

query I rowsort
SELECT DISTINCT - - 6 * - col1 + col2 * + ( - col1 ) * - col1 FROM tab2 cor0
----
10880
25761
90152

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 21 - col2 * col2 col2 FROM tab2 AS cor0
----
-1423
-655
-708

query I rowsort
SELECT - - 71 + col2 * - col2 * 5 AS col0 FROM tab0 AS cor0
----
-33549
-5374
66

query I rowsort
SELECT ALL col2 + + col0 * + 12 AS col0 FROM tab2 AS cor0
----
111
962
986

query I rowsort
SELECT ALL + col2 + - cor0.col0 - + col0 FROM tab0 AS cor0
----
-15
-69
-96

query I rowsort
SELECT DISTINCT + col1 * + col1 + 72 AS col0 FROM tab0 AS cor0
----
7468
8353
9481

query I rowsort
SELECT - col0 - + col0 * 80 FROM tab0 AS cor0
----
-1944
-2835
-7209

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-617
SELECT ALL + 84 DIV - col0 AS col2 FROM tab2
----
-1
-1
-12

skipif mysql # not compatible
query I rowsort label-617
SELECT ALL + 84 / - col0 AS col2 FROM tab2
----
-1
-1
-12

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

skipif mysql # not compatible
query I rowsort label-618
SELECT + col0 * CAST ( col0 * - col1 AS INTEGER ) + col0 AS col1 FROM tab2 cor0
----
-106018
-1512
-358878

query I rowsort
SELECT - col0 * + ( - col0 ) * col1 - cor0.col2 FROM tab0 AS cor0
----
118824
49503
720729

query I rowsort
SELECT col2 + 39 * col1 + - col0 FROM tab0 AS cor0
----
3363
3542
3749

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

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

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

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

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

query I rowsort
SELECT - cor0.col2 * + 31 AS col0 FROM tab0 AS cor0
----
-1023
-2542
-31

query I rowsort
SELECT + - 7 * col2 + + cor0.col0 AS col2 FROM tab0 AS cor0
----
-207
-485
28

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

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

query I rowsort
SELECT ALL + 87 AS col1 FROM tab1, tab1 AS cor0 CROSS JOIN tab0
----
27 values hashing to 8661ffbd1a72897c495405c53b816e50

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

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

query I rowsort
SELECT ALL cor0.col0 + + 20 AS col0 FROM tab0 cor0
----
109
44
55

query I rowsort
SELECT ALL - ( + 45 ) + - col1 AS col1 FROM tab0 cor0
----
-131
-136
-142

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

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

query I rowsort
SELECT - + cor0.col0 * + 8 + + cor0.col2 AS col2 FROM tab1 AS cor0
----
-455
-544
30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 4 * + 54 col1 FROM tab0 cor0
----
216
216
216

query I rowsort
SELECT DISTINCT 90 * + ( - col1 ) FROM tab0 AS cor0
----
-7740
-8190
-8730

query I rowsort
SELECT + col0 + 78 * col2 FROM tab2 AS cor0
----
2106
2113
3043

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * 98 col0 FROM tab0 AS cor0
----
-8428
-8918
-9506

query I rowsort
SELECT + + 52 + - col1 AS col0 FROM tab0 AS cor0
----
-34
-39
-45

query I rowsort
SELECT DISTINCT col1 * + col0 + cor0.col2 AS col2 FROM tab2 AS cor0
----
1381
244
4628

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

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

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

query I rowsort
SELECT + 40 * cor0.col0 * cor0.col2 FROM tab2 AS cor0
----
120080
7560
81120

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

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

query I rowsort
SELECT ALL + 33 AS col2 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 76da8bc7cae18ecf856438f872430c80

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

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

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

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

query I rowsort
SELECT DISTINCT - col2 + - col1 + col2 * 42 FROM tab1 AS cor0
----
2188
2327
3923

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

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

query I rowsort
SELECT 19 + - col2 AS col1 FROM tab2 AS cor0
----
-19
-7
-8

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

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

query I rowsort
SELECT + + col1 * col2 + + cor0.col0 * col0 FROM tab1 AS cor0
----
1413
4666
7648

query I rowsort
SELECT - - 16 + + cor0.col0 * - col2 FROM tab2 AS cor0
----
-173
-2012
-2986

onlyif mysql # use DIV operator for integer division
query I rowsort label-657
SELECT + ( + col2 ) + + CAST( + cor0.col2 AS SIGNED ) DIV - col2 AS col2 FROM tab1 AS cor0
----
53
56
95

skipif mysql # not compatible
query I rowsort label-657
SELECT + ( + col2 ) + + CAST ( + cor0.col2 AS INTEGER ) / - col2 AS col2 FROM tab1 AS cor0
----
53
56
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 + 30 col0 FROM tab0 cor0
----
-5
-59
6

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-659
SELECT ALL - col1 + ( 68 ) * col0 * CAST( + col1 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
14725
312877
91307

skipif mysql # not compatible
query I rowsort label-659
SELECT ALL - col1 + ( 68 ) * col0 * CAST ( + col1 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
14725
312877
91307

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 cor0, tab0, tab0 cor1
----
972 values hashing to 3406497351e4789c89a295ee9b64b201

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

query I rowsort
SELECT DISTINCT - col1 * + 12 AS col0 FROM tab2 AS cor0
----
-204
-372
-708

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

query I rowsort
SELECT - - cor0.col2 * - 34 AS col0 FROM tab1 AS cor0
----
-1836
-1938
-3264

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

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

query I rowsort
SELECT cor0.col2 + cor0.col1 * cor0.col1 AS col2 FROM tab1 AS cor0
----
157
265
730

query I rowsort
SELECT - col2 * + 45 + - cor0.col2 AS col1 FROM tab1 cor0
----
-2484
-2622
-4416

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

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

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

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

query I rowsort
SELECT ALL - col0 * col0 + col0 + col1 AS col0 FROM tab0 AS cor0
----
-1093
-466
-7741

query I rowsort
SELECT DISTINCT + + col2 * + col1 + ( - col1 * col0 ) FROM tab2 AS cor0
----
-3068
-697
620

query I rowsort
SELECT + + 2 - col0 FROM tab0 AS cor0
----
-22
-33
-87

query I rowsort
SELECT DISTINCT + + 4 * col2 + - 15 AS col0 FROM tab2 cor0
----
137
89
93

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-678
SELECT DISTINCT tab0.col0 * col1 + + col2 + col1 DIV col1 FROM tab0
----
2098
3397
8182

skipif mysql # not compatible
query I rowsort label-678
SELECT DISTINCT tab0.col0 * col1 + + col2 + col1 / col1 FROM tab0
----
2098
3397
8182

query I rowsort
SELECT cor0.col0 * - 63 AS col2 FROM tab2, tab0, tab2 AS cor0, tab1
----
81 values hashing to 24ec934134f652b4ce9ec094cbd2121f

query I rowsort
SELECT 17 * col0 * 94 + col2 AS col1 FROM tab1
----
102329
127936
4848

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

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

skipif mysql # not compatible
query I rowsort label-682
SELECT ALL - col2 * col2 * CAST ( + col2 AS INTEGER ) + - col2 AS col1 FROM tab0 AS cor0
----
-2
-35970
-551450

query I rowsort
SELECT - ( + col1 ) * 70 + - col1 FROM tab1 AS cor0
----
-1846
-710
-923

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-686
SELECT - col2 + - col2 DIV tab2.col0 FROM tab2
----
-26
-30
-38

skipif mysql # not compatible
query I rowsort label-686
SELECT - col2 + - col2 / tab2.col0 FROM tab2
----
-26
-30
-38

query I rowsort
SELECT col2 * + tab1.col1 * - col0 + + col2 FROM tab1
----
-36423
-4158
-99744

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

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

query I rowsort
SELECT + + col2 * + 6 - col2 AS col1 FROM tab0 cor0
----
165
410
5

query I rowsort
SELECT ALL - 49 + col0 * - ( col2 ) FROM tab0
----
-7347
-84
-841

query I rowsort
SELECT - 86 + 5 FROM tab0, tab2 cor0, tab2, tab2 cor1
----
81 values hashing to bab7cb237ee73283089388c330f59598

query I rowsort
SELECT + 34 + ( cor0.col1 ) AS col1 FROM tab2 AS cor0
----
51
65
93

query I rowsort
SELECT - 96 * - col2 AS col2 FROM tab2 AS cor0
----
2496
2592
3648

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

query I rowsort
SELECT DISTINCT - ( - 89 ) + + col1 AS col1 FROM tab0 AS cor0
----
175
180
186

query I rowsort
SELECT - ( col0 ) * + col1 * + col1 FROM tab0
----
-177504
-329315
-737009

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-698
SELECT CAST( - col2 AS SIGNED ) + + cor0.col0 AS col2 FROM tab1 AS cor0
----
-16
-51
7

skipif mysql # not compatible
query I rowsort label-698
SELECT CAST ( - col2 AS INTEGER ) + + cor0.col0 AS col2 FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT - col1 + 97 FROM tab0 AS cor0
----
0
11
6

onlyif mysql # use DIV operator for integer division
query I rowsort label-700
SELECT - cor0.col1 DIV + 90 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to b2e225572af74ba853e10fb5414ea67f

skipif mysql # not compatible
query I rowsort label-700
SELECT - cor0.col1 / + 90 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to b2e225572af74ba853e10fb5414ea67f

onlyif mysql # use DIV operator for integer division
query I rowsort label-701
SELECT 47 DIV cor0.col0 FROM tab2 AS cor0
----
0
0
6

skipif mysql # not compatible
query I rowsort label-701
SELECT 47 / cor0.col0 FROM tab2 AS cor0
----
0
0
6

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

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

query I rowsort
SELECT DISTINCT - - col2 + - 80 + 91 FROM tab2 AS cor0
----
37
38
49

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

query I rowsort
SELECT 53 FROM tab0, tab0 AS cor0, tab2 cor1
----
27 values hashing to 866ae1b4ab9e5b4043ac1bcfd413aaa6

query I rowsort
SELECT + col0 * - col1 - 16 FROM tab0 cor0
----
-2080
-3411
-8115

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

query I rowsort
SELECT + col2 * 59 FROM tab0 AS cor0
----
1947
4838
59

query I rowsort
SELECT - 29 + 27 AS col2 FROM tab0 AS cor0
----
-2
-2
-2

query I rowsort
SELECT - col0 * + 49 + col1 FROM tab0 AS cor0
----
-1090
-1618
-4270

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

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

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

query I rowsort
SELECT DISTINCT + col1 + 75 FROM tab1 AS cor0
----
101
85
88

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

query I rowsort
SELECT + col1 + 61 * col1 * - col0 AS col1 FROM tab0 AS cor0
----
-125818
-206998
-493948

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

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

query I rowsort
SELECT ALL col2 + + col0 + + col0 FROM tab2
----
182
196
41

query I rowsort
SELECT col2 - col2 * 90 FROM tab1
----
-4806
-5073
-8544

query I rowsort
SELECT + 28 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97

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

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

query I rowsort
SELECT DISTINCT - tab1.col2 * col2 * + 76 FROM tab1
----
-221616
-246924
-700416

query I rowsort
SELECT col2 * - 6 AS col1 FROM tab0 AS cor0
----
-198
-492
-6

query I rowsort
SELECT ALL + col2 * - 81 FROM tab2 AS cor0
----
-2106
-2187
-3078

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-725
SELECT DISTINCT CAST ( 26 AS INTEGER ) col2 FROM tab2
----
26

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

skipif mysql # not compatible
query I rowsort label-726
SELECT CAST ( + col1 + - col2 AS INTEGER ) * col1 FROM tab1
----
-1079
-470
-728

query I rowsort
SELECT ALL - col2 * - col2 + + 57 FROM tab2 AS cor0
----
1501
733
786

query I rowsort
SELECT ALL ( + 91 * col2 ) FROM tab2
----
2366
2457
3458

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab0.col1 * 83 - col1 * + 81 col2 FROM tab0
----
172
182
194

query I rowsort
SELECT col1 + - 9 FROM tab1 AS cor0
----
1
17
4

onlyif mysql # use DIV operator for integer division
query I rowsort label-731
SELECT + ( col1 ) DIV - col0 + 91 FROM tab2 AS cor0
----
87
91
91

skipif mysql # not compatible
query I rowsort label-731
SELECT + ( col1 ) / - col0 + 91 FROM tab2 AS cor0
----
87
91
91

query I rowsort
SELECT - col2 + - 55 FROM tab1 AS cor0
----
-109
-112
-151

query I rowsort
SELECT DISTINCT + ( col2 ) * - col0 - - col0 * col2 * col2 FROM tab2
----
111074
4914
50700

query I rowsort
SELECT tab1.col0 * 10 FROM tab1
----
30
640
800

query I rowsort
SELECT 25 + col1 * col1 - - 11 FROM tab0
----
7432
8317
9445

query I rowsort
SELECT ( 77 ) * + col0 AS col1 FROM tab2
----
539
6006
6083

query I rowsort
SELECT 85 * + col2 + col1 FROM tab1 AS cor0
----
4616
4855
8173

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

query I rowsort
SELECT col2 * col1 * - 23 AS col0 FROM tab2 AS cor0
----
-14858
-19251
-35282

onlyif mysql # use DIV operator for integer division
query I rowsort label-740
SELECT 54 * col0 + - cor0.col1 DIV cor0.col0 FROM tab2 AS cor0
----
374
4212
4266

skipif mysql # not compatible
query I rowsort label-740
SELECT 54 * col0 + - cor0.col1 / cor0.col0 FROM tab2 AS cor0
----
374
4212
4266

query I rowsort
SELECT ALL - - cor0.col0 + + col2 * col1 + - col1 FROM tab2 AS cor0
----
1553
708
813

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

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

query I rowsort
SELECT ALL - 9 * - col0 AS col1 FROM tab1 AS cor0
----
27
576
720

query I rowsort
SELECT + col0 * - cor0.col1 + 88 FROM tab2 AS cor0
----
-1255
-129
-4514

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

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

query I rowsort
SELECT - 67 * - col0 + col2 AS col0 FROM tab0
----
1641
2346
6045

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-748
SELECT col2 / + col1 + tab0.col0 col2 FROM tab0
----
24
35
89

query I rowsort
SELECT ALL 27 * col1 + + ( + col0 ) FROM tab1
----
334
431
705

query I rowsort
SELECT ALL col0 * + tab2.col1 + + 18 * - 52 FROM tab2
----
-719
3666
407

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

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

query I rowsort
SELECT ALL - col0 + + cor0.col0 * + ( - col0 ) FROM tab0 AS cor0
----
-1260
-600
-8010

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

query I rowsort
SELECT DISTINCT + 90 * + col2 + col0 AS col1 FROM tab0 AS cor0
----
125
2994
7469

query I rowsort
SELECT - col0 + - 40 FROM tab2 AS cor0
----
-118
-119
-47

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 * - col1 + - 39 col0 FROM tab1 AS cor0
----
1001
39
601

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-760
SELECT col1 + 80 DIV 31 col2 FROM tab0 AS cor0
----
88
93
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-760
SELECT col1 + 80 / 31 col2 FROM tab0 AS cor0
----
88
93
99

query I rowsort
SELECT - col0 + 1 AS col2 FROM tab1 AS cor0
----
-2
-63
-79

query I rowsort
SELECT ALL + col1 + col1 * - 86 AS col0 FROM tab1 cor0
----
-1105
-2210
-850

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

query I rowsort
SELECT DISTINCT col0 + - ( 74 ) * col2 AS col0 FROM tab2 AS cor0
----
-1846
-1991
-2733

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( col2 ) + + 90 col0 FROM tab2
----
116
117
128

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

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

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-770
SELECT ALL col2 + col2 DIV col1 col0 FROM tab1 AS cor0
----
103
56
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-770
SELECT ALL col2 + col2 / col1 col0 FROM tab1 AS cor0
----
103
56
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-771
SELECT DISTINCT 14 DIV 88 + col0 FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-771
SELECT DISTINCT 14 / 88 + col0 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT ALL - 75 + cor0.col1 AS col2 FROM tab2 AS cor0
----
-16
-44
-58

query I rowsort
SELECT DISTINCT + 76 * col1 AS col2 FROM tab2 AS cor0
----
1292
2356
4484

query I rowsort
SELECT DISTINCT + + 0 - + col0 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT - - 98 * - col2 FROM tab0 AS cor0
----
-3234
-8036
-98

query I rowsort
SELECT DISTINCT - 50 * + col2 AS col2 FROM tab0 AS cor0
----
-1650
-4100
-50

query I rowsort
SELECT + col2 * - 47 FROM tab2 AS cor0
----
-1222
-1269
-1786

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

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

query I rowsort
SELECT ALL + 50 * cor0.col2 + + col0 FROM tab0 AS cor0
----
1674
4189
85

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

query I rowsort
SELECT ALL - ( + 61 ) + - col0 FROM tab0 AS cor0
----
-150
-85
-96

query I rowsort
SELECT - + cor0.col1 + + col1 * + col2 AS col2 FROM tab1 AS cor0
----
1235
1378
560

query I rowsort
SELECT - 22 + + col1 FROM tab0 cor0
----
64
69
75

query I rowsort
SELECT ALL + + 91 * + col0 AS col0 FROM tab2 AS cor0
----
637
7098
7189

query I rowsort
SELECT DISTINCT + 30 * col0 + 88 AS col1 FROM tab2 AS cor0
----
2428
2458
298

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

query I rowsort
SELECT ALL - col2 * + ( 73 * - col0 ) AS col1 FROM tab2 AS cor0
----
13797
148044
219146

query I rowsort
SELECT + col0 * 96 AS col1 FROM tab2 AS cor0
----
672
7488
7584

query I rowsort
SELECT ALL - col2 + 1 AS col2 FROM tab0 cor0
----
-32
-81
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-791
SELECT DISTINCT + col0 + CAST( 95 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
159
175
98

skipif mysql # not compatible
query I rowsort label-791
SELECT DISTINCT + col0 + CAST ( 95 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
159
175
98

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

query I rowsort
SELECT - col0 * + col0 * + 8 FROM tab1 cor0
----
-32768
-51200
-72

query I rowsort
SELECT DISTINCT - - col2 - - 20 * - cor0.col1 AS col0 FROM tab2 cor0
----
-1154
-302
-593

query I rowsort
SELECT - ( - 83 ) * + cor0.col0 * 24 FROM tab0 AS cor0
----
177288
47808
69720

query I rowsort
SELECT ALL - col2 * - ( 65 ) FROM tab0
----
2145
5330
65

query I rowsort
SELECT DISTINCT ( - col1 ) * + 59 AS col2 FROM tab2 AS cor0
----
-1003
-1829
-3481

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

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

query I rowsort
SELECT ALL 56 AS col0 FROM tab0, tab1 cor0
----
9 values hashing to 9c4523312174730bbc525b9977aa99fa

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

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

query I rowsort
SELECT DISTINCT - ( + tab1.col2 ) AS col0 FROM tab1
----
-54
-57
-96

query I rowsort
SELECT - col1 * - ( 10 ) + - col2 * + 88 AS col2 FROM tab0 AS cor0
----
-2044
-6306
882

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-806
SELECT ALL - col2 * + 12 + col1 DIV col2 + CAST( - col0 AS SIGNED ) FROM tab0
----
-1072
-418
50

skipif mysql # not compatible
query I rowsort label-806
SELECT ALL - col2 * + 12 + col1 / col2 + CAST ( - col0 AS INTEGER ) FROM tab0
----
-1072
-418
50

query I rowsort
SELECT DISTINCT + col1 * tab0.col1 + col2 AS col1 FROM tab0
----
7429
8363
9410

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

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

query I rowsort
SELECT ALL tab1.col2 * - ( 13 ) AS col0 FROM tab1
----
-1248
-702
-741

onlyif mysql # use DIV operator for integer division
query I rowsort label-810
SELECT - col1 + col2 DIV 57 col2 FROM tab1 cor0
----
-12
-26
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-810
SELECT - col1 + col2 / 57 col2 FROM tab1 cor0
----
-12
-26
-9

query I rowsort
SELECT + + col0 * col0 + + 70 AS col2 FROM tab1 AS cor0
----
4166
6470
79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-812
SELECT ALL - CAST( NULL AS SIGNED ) * 89 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-812
SELECT ALL - CAST ( NULL AS INTEGER ) * 89 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + tab0.col1 * cor0.col1 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 5ea193ba73427313aa6d66d856b32bc7

query I rowsort
SELECT DISTINCT + ( + 60 ) + - col2 AS col1 FROM tab0
----
-22
27
59

query I rowsort
SELECT ALL + col0 + 15 FROM tab0
----
104
39
50

query I rowsort
SELECT DISTINCT + 24 + cor0.col1 FROM tab2 AS cor0
----
41
55
83

query I rowsort
SELECT - 62 - - cor0.col1 FROM tab0 AS cor0
----
24
29
35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + + 62 * col2 col1 FROM tab1
----
3374
3544
5965

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-820
SELECT - cor0.col0 + - 75 * col0 + CAST( 14 + - cor0.col0 * + ( 14 ) AS SIGNED ) FROM tab2 AS cor0
----
-616
-7006
-7096

skipif mysql # not compatible
query I rowsort label-820
SELECT - cor0.col0 + - 75 * col0 + CAST ( 14 + - cor0.col0 * + ( 14 ) AS INTEGER ) FROM tab2 AS cor0
----
-616
-7006
-7096

query I rowsort
SELECT DISTINCT + col0 - 79 AS col2 FROM tab1 cor0
----
-15
-76
1

query I rowsort
SELECT 90 + + col1 AS col0 FROM tab0 AS cor0
----
176
181
187

query I rowsort
SELECT ALL - 55 AS col2 FROM tab2 AS cor0
----
-55
-55
-55

query I rowsort
SELECT cor1.col2 * 57 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to c45fb15e8792ec9da5626739cd9fd3bc

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

query I rowsort
SELECT + 12 + + 62 FROM tab2
----
74
74
74

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-828
SELECT ALL - CAST( - 37 AS SIGNED ) * col2 + col0 AS col1 FROM tab2
----
1006
1040
1485

skipif mysql # not compatible
query I rowsort label-828
SELECT ALL - CAST ( - 37 AS INTEGER ) * col2 + col0 AS col1 FROM tab2
----
1006
1040
1485

query I rowsort
SELECT ALL + + 89 * 7 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 4fd2321cbbd500d2f8004e8c715717d5

query I rowsort
SELECT + ( - 19 ) - col1 FROM tab2
----
-36
-50
-78

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

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

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

query I rowsort
SELECT ALL - col2 + col2 * 9 FROM tab0 AS cor0
----
264
656
8

query I rowsort
SELECT DISTINCT 62 * col2 AS col1 FROM tab1
----
3348
3534
5952

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

query I rowsort
SELECT + - col2 + 75 * col2 FROM tab2 AS cor0
----
1924
1998
2812

query I rowsort
SELECT - cor0.col1 * col2 - col2 * col2 FROM tab2 AS cor0
----
-1566
-2090
-2210

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 + col1 * - col2 col1 FROM tab1 cor0
----
-1344
-1458
-627

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

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

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

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

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

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

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

query I rowsort
SELECT + col1 * + col1 * col1 AS col2 FROM tab2 AS cor0
----
205379
29791
4913

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

query I rowsort
SELECT cor0.col2 + - 20 + col1 FROM tab1 AS cor0
----
47
60
89

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

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

skipif mysql # not compatible
query I rowsort label-849
SELECT DISTINCT + col2 / + col2 AS col0 FROM tab1
----
1

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

query I rowsort
SELECT ALL + 46 AS col1 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 2f97924b57b73102233df7c9ce8ad602

query I rowsort
SELECT + 16 * + cor0.col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 553786862e71de41439da18c99707a4e

onlyif mysql # use DIV operator for integer division
query I rowsort label-853
SELECT ALL - cor0.col2 DIV - cor0.col1 + + cor0.col2 * col1 AS col1 FROM tab1 AS cor0
----
1255
1406
575

skipif mysql # not compatible
query I rowsort label-853
SELECT ALL - cor0.col2 / - cor0.col1 + + cor0.col2 * col1 AS col1 FROM tab1 AS cor0
----
1255
1406
575

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

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

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

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

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + CAST ( col2 AS REAL ) + col1 * 37 FROM tab1 AS cor0
----
1016
427
577

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

query I rowsort
SELECT + - 51 * - cor0.col0 + col1 * + ( - col2 ) * - col0 - - col0 FROM tab1 AS cor0
----
104000
39808
4368

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

query I rowsort
SELECT DISTINCT 4 + - ( - col1 ) FROM tab2
----
21
35
63

query I rowsort
SELECT - 64 * + col1 AS col1 FROM tab0 AS cor0
----
-5504
-5824
-6208

query I rowsort
SELECT ALL + 18 * + ( + col2 ) FROM tab1 AS cor0
----
1026
1728
972

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-864
SELECT col0 * + col1 DIV col1 + ( col2 * + col0 + - col0 ) col2 FROM tab1 cor0
----
162
3648
7680

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-864
SELECT col0 * + col1 / col1 + ( col2 * + col0 + - col0 ) col2 FROM tab1 cor0
----
162
3648
7680

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

query I rowsort
SELECT DISTINCT col2 * 87 FROM tab2 AS cor0
----
2262
2349
3306

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

query I rowsort
SELECT + cor0.col1 * - col2 * - col1 + + col1 FROM tab2 AS cor0
----
10999
25978
90565

query I rowsort
SELECT ALL + - 37 + col1 * + col1 FROM tab1 AS cor0
----
132
63
639

query I rowsort
SELECT DISTINCT - - col1 - col0 * col2 AS col2 FROM tab0 AS cor0
----
-706
-7207
62

query I rowsort
SELECT DISTINCT - col1 + col0 * 66 FROM tab0 AS cor0
----
1498
2213
5783

query I rowsort
SELECT DISTINCT - 68 + - col0 * col1 AS col1 FROM tab0 AS cor0
----
-2132
-3463
-8167

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

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

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

query I rowsort
SELECT ALL + - col2 + - 71 FROM tab1 AS cor0
----
-125
-128
-167

query I rowsort
SELECT DISTINCT - col2 + 20 FROM tab0 AS cor0
----
-13
-62
19

query I rowsort
SELECT DISTINCT + col2 * 22 + + 40 AS col0 FROM tab2 AS cor0
----
612
634
876

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

query I rowsort
SELECT - col1 * + 46 + col1 AS col0 FROM tab2 AS cor0
----
-1395
-2655
-765

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-881
SELECT + + cor0.col1 / + col2 + cor0.col2 col1 FROM tab0 AS cor0
----
35
83
98

query I rowsort
SELECT ( - 59 ) * cor0.col1 + + 23 FROM tab1 AS cor0
----
-1511
-567
-744

query I rowsort
SELECT DISTINCT - + col1 * ( col1 ) + cor0.col1 * 70 FROM tab2 AS cor0
----
1209
649
901

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

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

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

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - col2 * - ( - col2 ) col2 FROM tab2 AS cor0
----
-1427
-617
-698

query I rowsort
SELECT + + 34 * + col1 FROM tab2 AS cor0
----
1054
2006
578

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

query I rowsort
SELECT ALL - + col1 * + col2 * col0 + col1 AS col1 FROM tab1 AS cor0
----
-36470
-4186
-99827

query I rowsort
SELECT DISTINCT - - col1 + 61 + - col2 * + col1 FROM tab1 AS cor0
----
-1174
-1317
-499

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

query I rowsort
SELECT ALL col2 + + 17 * 87 AS col2 FROM tab2 AS cor0
----
1505
1506
1517

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 - + ( col0 ) * + col2 col1 FROM tab2 AS cor0
----
-158
-1969
-2985

query I rowsort
SELECT ALL - tab0.col2 * 14 FROM tab0, tab0 AS cor0
----
9 values hashing to 9dc4c3d27681348c44327a9c80a79b08

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

skipif mysql # not compatible
query I rowsort label-899
SELECT - - CAST ( - cor0.col0 AS INTEGER ) * - cor0.col0 * + ( - col1 ) + - col0 + - col1 AS col1 FROM tab0 AS cor0
----
-118957
-49646
-720991

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

skipif mysql # not compatible
query I rowsort
SELECT ALL CAST ( col0 * - col2 AS REAL ) - 1 AS col2 FROM tab1
----
-163
-3649
-7681

query I rowsort
SELECT - - col2 + 79 + + col2 * col1 * ( col1 ) FROM tab0 AS cor0
----
244180
679203
9489

query I rowsort
SELECT + 49 - 6 AS col2 FROM tab0 AS cor0
----
43
43
43

query I rowsort
SELECT ALL - + col2 + 78 FROM tab2 AS cor0
----
40
51
52

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + + col1 - - col0 col0 FROM tab2 AS cor0
----
113
196
69

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

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

query I rowsort
SELECT - cor0.col0 + 93 AS col1 FROM tab2 AS cor0
----
14
15
86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 15 * + 88 + col1 col0 FROM tab0 cor0
----
1406
1411
1417

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

skipif mysql # not compatible
query I rowsort label-911
SELECT CAST ( + cor0.col1 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT ALL - - 75 * - col0 - - cor0.col2 * 17 FROM tab0 AS cor0
----
-1239
-2608
-5281

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

query I rowsort
SELECT DISTINCT - 80 * + col2 FROM tab0 AS cor0
----
-2640
-6560
-80

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

query I rowsort
SELECT ALL + 77 + col2 FROM tab1 cor0
----
131
134
173

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-918
SELECT - col1 * col0 + ( + col2 ) DIV - tab0.col0 AS col0 FROM tab0
----
-2065
-3395
-8099

skipif mysql # not compatible
query I rowsort label-918
SELECT - col1 * col0 + ( + col2 ) / - tab0.col0 AS col0 FROM tab0
----
-2065
-3395
-8099

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

query I rowsort
SELECT ALL col1 * + 70 FROM tab0
----
6020
6370
6790

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-921
SELECT ALL col0 / col0 col0 FROM tab2
----
1
1
1

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

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

query I rowsort
SELECT ALL + 10 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 0fe3e45a9ecd49584c2ab442100d5176

query I rowsort
SELECT ALL col2 - - col0 AS col1 FROM tab1
----
121
176
57

query I rowsort
SELECT ALL - ( col2 ) + 88 AS col1 FROM tab2 AS cor0
----
50
61
62

query I rowsort
SELECT - 52 * col2 AS col0 FROM tab2 cor0
----
-1352
-1404
-1976

query I rowsort
SELECT ALL col2 * 99 + ( - cor0.col1 + + col2 ) FROM tab1 AS cor0
----
5374
5690
9587

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-930
SELECT - col1 DIV 86 + col0 * - col1 FROM tab0 AS cor0
----
-2065
-3396
-8100

skipif mysql # not compatible
query I rowsort label-930
SELECT - col1 / 86 + col0 * - col1 FROM tab0 AS cor0
----
-2065
-3396
-8100

query I rowsort
SELECT - cor0.col0 - col1 * - ( col2 + - col0 ) * - col2 FROM tab2 AS cor0
----
-16747
26407
79690

query I rowsort
SELECT ALL + - col1 * - col2 + - col1 FROM tab1 cor0
----
1235
1378
560

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

query I rowsort
SELECT DISTINCT - - col0 + ( + cor0.col0 ) + col2 AS col2 FROM tab0 AS cor0
----
260
71
81

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + col2 * + 96 - - col0 col2 FROM tab0 AS cor0
----
132
3225
8043

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

query I rowsort
SELECT - col2 * col0 + + col2 - - col0 AS col2 FROM tab2 AS cor0
----
-155
-1924
-2885

query I rowsort
SELECT DISTINCT - + col2 + 95 FROM tab0 AS cor0
----
13
62
94

query I rowsort
SELECT ALL 48 * + col2 + col1 * 45 AS col1 FROM tab0 AS cor0
----
4413
5454
8031

query I rowsort
SELECT DISTINCT - 83 + col0 * + cor0.col0 + ( - col1 + - col0 ) AS col0 FROM tab1 AS cor0
----
-103
3939
6224

query I rowsort
SELECT ALL - - col2 * 49 FROM tab1 cor0
----
2646
2793
4704

query I rowsort
SELECT + cor0.col0 + cor0.col1 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to f65167375aa80cc8b3f3f8987d2662a3

onlyif mysql # use DIV operator for integer division
query I rowsort label-944
SELECT DISTINCT col1 * - cor0.col1 DIV col1 + ( col1 ) * + col0 AS col1 FROM tab1 AS cor0
----
1027
52
630

skipif mysql # not compatible
query I rowsort label-944
SELECT DISTINCT col1 * - cor0.col1 / col1 + ( col1 ) * + col0 AS col1 FROM tab1 AS cor0
----
1027
52
630

query I rowsort
SELECT ALL - 81 + col2 FROM tab2 AS cor0
----
-43
-54
-55

onlyif mysql # use DIV operator for integer division
query I rowsort label-946
SELECT DISTINCT + col0 + - col0 * col1 + 28 DIV + col2 FROM tab1 cor0
----
-576
-75
-960

skipif mysql # not compatible
query I rowsort label-946
SELECT DISTINCT + col0 + - col0 * col1 + 28 / + col2 FROM tab1 cor0
----
-576
-75
-960

query I rowsort
SELECT ALL - 41 + - col0 * 93 FROM tab1 AS cor0
----
-320
-5993
-7481

query I rowsort
SELECT ALL + + 73 - - col2 FROM tab1 AS cor0
----
127
130
169

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 74 * col1 col0 FROM tab2 AS cor0
----
-1258
-2294
-4366

query I rowsort
SELECT ALL - 50 + cor0.col1 + + col2 AS col0 FROM tab2 AS cor0
----
35
5
8

query I rowsort
SELECT ALL - + 83 + + col0 AS col2 FROM tab1 AS cor0
----
-19
-3
-80

query I rowsort
SELECT DISTINCT + col0 * col1 * col1 - ( + col2 * - 77 ) AS col2 FROM tab1 AS cor0
----
10789
20912
6186

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

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

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

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

query I rowsort
SELECT DISTINCT - ( ( col1 ) ) * - 54 FROM tab1
----
1404
540
702

query I rowsort
SELECT DISTINCT 76 * - col0 FROM tab2
----
-532
-5928
-6004

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( col2 ) + + 65 * col1 col1 FROM tab2 AS cor0
----
1143
2042
3861

query I rowsort
SELECT 73 AS col0 FROM tab1, tab0 cor0, tab1 AS cor1
----
27 values hashing to 3933a906d17a820ccf95467e2206df8f

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

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-962
SELECT + CAST( 39 AS SIGNED ) + col2 * - col0 AS col2 FROM tab1 AS cor0
----
-123
-3609
-7641

skipif mysql # not compatible
query I rowsort label-962
SELECT + CAST ( 39 AS INTEGER ) + col2 * - col0 AS col2 FROM tab1 AS cor0
----
-123
-3609
-7641

query I rowsort
SELECT ALL - col1 + - 72 AS col0 FROM tab1
----
-82
-85
-98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + tab1.col1 + col0 col1 FROM tab1
----
3
64
80

query I rowsort
SELECT DISTINCT - ( - 85 ) * + col2 AS col1 FROM tab1
----
4590
4845
8160

query I rowsort
SELECT tab0.col1 * 55 FROM tab0
----
4730
5005
5335

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

query I rowsort
SELECT + 26 + col0 * col1 FROM tab2 AS cor0
----
1369
243
4628

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 13 * col2 * col0 col1 FROM tab1 AS cor0
----
-2106
-47424
-99840

query I rowsort
SELECT ALL - col0 + 68 AS col1 FROM tab1 AS cor0
----
-12
4
65

query I rowsort
SELECT - + col1 * + col0 * + col2 + + 67 AS col2 FROM tab0 AS cor0
----
-3328
-664051
-68045

query I rowsort
SELECT ALL - - col0 * col0 * + col0 FROM tab0 AS cor0
----
13824
42875
704969

query I rowsort
SELECT DISTINCT + - cor0.col0 * 11 FROM tab0 AS cor0
----
-264
-385
-979

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-976
SELECT ALL + col1 DIV col0 + col0 * - col0 + col2 AS col0 FROM tab2
----
-18
-6058
-6203

skipif mysql # not compatible
query I rowsort label-976
SELECT ALL + col1 / col0 + col0 * - col0 + col2 AS col0 FROM tab2
----
-18
-6058
-6203

query I rowsort
SELECT ALL col0 * + tab1.col1 * col0 FROM tab1
----
234
40960
83200

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab0.col0 + col2 col0 FROM tab0
----
-34
-7
9

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * - col2 * + col0 col0 FROM tab0
----
1225
19008
649522

query I rowsort
SELECT col1 FROM tab1 WHERE NOT NULL <= ( col0 )
----

query I rowsort
SELECT col2 + - col1 + - tab0.col1 FROM tab0
----
-100
-139
-193

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

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

query III rowsort
SELECT * FROM tab2 WHERE NOT - col2 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT col0 - col1 * col1 AS col0 FROM tab1
----
-36
-673
-89

query I rowsort
SELECT + col1 + + col0 + + col2 AS col1 FROM tab2
----
134
163
65

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL < + col2 * - col2 * col1
----

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL BETWEEN NULL AND ( NULL )
----

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

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

query I rowsort
SELECT ALL col2 * cor0.col1 + - col1 FROM tab1 cor0
----
1235
1378
560

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab1.col0 - 61 * - col0 col2 FROM tab1
----
180
3840
4800

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

query I rowsort
SELECT ALL - 62 + - col0 * + col0 FROM tab0 AS cor0
----
-1287
-638
-7983

query I rowsort
SELECT - 4 FROM tab2, tab2 AS cor0
----
9 values hashing to 5784540a5af6ca2be84399d314acd2fd

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

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

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

query I rowsort
SELECT ALL - + col1 + - col2 + + col1 AS col0 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT + 33 * - col1 + col2 AS col0 FROM tab0
----
-2805
-2921
-3200

onlyif mysql # use DIV operator for integer division
query I rowsort label-1012
SELECT CAST( 54 AS SIGNED ) DIV cor0.col0 + tab2.col2 col1 FROM tab2, tab2 AS cor0
----
9 values hashing to bd0fd88f5e5ba0d615651366ab6841b6

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1012
SELECT CAST ( 54 AS INTEGER ) / cor0.col0 + tab2.col2 col1 FROM tab2, tab2 AS cor0
----
9 values hashing to bd0fd88f5e5ba0d615651366ab6841b6

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT + col0 + CAST ( - col0 AS REAL ) * - col2 col0 FROM tab2
----
196
2106
3081

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( col1 ) + col2 * + col0 * col0 col2 FROM tab2 AS cor0
----
1292
158125
237141

query I rowsort
SELECT 67 * - col0 * - col0 FROM tab2 AS cor0
----
3283
407628
418147

query I rowsort
SELECT ALL + + cor0.col2 + col1 * - col0 * + col0 FROM tab1 cor0
----
-180
-40903
-83104

query I rowsort
SELECT col0 + + ( col0 + col1 ) * col0 FROM tab2
----
10764
273
7663

query I rowsort
SELECT ( col0 * - col0 ) + - col1 FROM tab1
----
-35
-4106
-6413

query I rowsort
SELECT ALL - 83 FROM tab1, tab1 cor0
----
9 values hashing to d55748f39f403ec273099c0d87b0bfbb

query I rowsort
SELECT - ( - 94 ) + col1 FROM tab0
----
180
185
191

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

query I rowsort
SELECT ( 31 ) FROM tab2 AS cor0
----
31
31
31

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1024
SELECT ALL + - CAST( + col1 AS SIGNED ) * - cor0.col1 FROM tab2 AS cor0
----
289
3481
961

skipif mysql # not compatible
query I rowsort label-1024
SELECT ALL + - CAST ( + col1 AS INTEGER ) * - cor0.col1 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT - 67 * - col1 * col0 FROM tab2 AS cor0
----
14539
308334
89981

onlyif mysql # use DIV operator for integer division
query I rowsort label-1026
SELECT + 33 * col0 DIV - col1 FROM tab1 cor0
----
-203
-211
-3

skipif mysql # not compatible
query I rowsort label-1026
SELECT + 33 * col0 / - col1 FROM tab1 cor0
----
-203
-211
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * tab1.col2 + - tab1.col1 * col2 * col0 col1 FROM tab1
----
-1296
-33231
-90624

query I rowsort
SELECT 50 * col0 * - ( tab1.col0 * - col2 ) AS col0 FROM tab1
----
11673600
24300
30720000

query I rowsort
SELECT DISTINCT + 43 + col0 FROM tab2
----
121
122
50

query I rowsort
SELECT col0 + + col0 * + 58 AS col1 FROM tab1 AS cor0
----
177
3776
4720

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

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

query I rowsort
SELECT DISTINCT - - col0 * 54 + - col1 FROM tab1 cor0
----
136
3446
4307

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

query I rowsort
SELECT DISTINCT - + cor0.col0 * 76 + 96 FROM tab1 AS cor0
----
-132
-4768
-5984

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

query I rowsort
SELECT + col1 * + ( - 41 ) FROM tab1 AS cor0
----
-1066
-410
-533

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

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1042
SELECT ALL col1 * cor0.col0 + - col2 DIV + col0 - col2 AS col0 FROM tab2 AS cor0
----
1305
187
4576

skipif mysql # not compatible
query I rowsort label-1042
SELECT ALL col1 * cor0.col0 + - col2 / + col0 - col2 AS col0 FROM tab2 AS cor0
----
1305
187
4576

query I rowsort
SELECT tab2.col2 + col2 * - col2 AS col0 FROM tab2
----
-1406
-650
-702

query I rowsort
SELECT DISTINCT + col2 * + cor0.col2 FROM tab1 cor0
----
2916
3249
9216

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

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

query I rowsort
SELECT DISTINCT col1 * col1 - col2 * + col1 * col1 FROM tab2 AS cor0
----
-10693
-24986
-87025

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1048
SELECT - col1 + - col1 * col0 + - col2 DIV col2 FROM tab1 AS cor0
----
-105
-1054
-651

skipif mysql # not compatible
query I rowsort label-1048
SELECT - col1 + - col1 * col0 + - col2 / col2 FROM tab1 AS cor0
----
-105
-1054
-651

onlyif mysql # use DIV operator for integer division
query I rowsort label-1049
SELECT col0 DIV - col0 + + col0 AS col0 FROM tab2 AS cor0
----
6
77
78

skipif mysql # not compatible
query I rowsort label-1049
SELECT col0 / - col0 + + col0 AS col0 FROM tab2 AS cor0
----
6
77
78

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

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

query I rowsort
SELECT 95 + col0 + - col2 AS col1 FROM tab0 cor0
----
102
129
86

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

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

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

query I rowsort
SELECT DISTINCT - tab1.col0 - 67 FROM tab1
----
-131
-147
-70

query I rowsort
SELECT DISTINCT ( - 69 ) - col0 FROM tab0
----
-104
-158
-93

query I rowsort
SELECT - col2 * col0 + + col1 + col2 AS col2 FROM tab1
----
-3581
-7571
-82

query I rowsort
SELECT 20 + - col0 FROM tab2
----
-58
-59
13

onlyif mysql # use DIV operator for integer division
query I rowsort label-1059
SELECT DISTINCT + col1 - cor0.col2 DIV - col0 FROM tab2 AS cor0
----
17
34
59

skipif mysql # not compatible
query I rowsort label-1059
SELECT DISTINCT + col1 - cor0.col2 / - col0 FROM tab2 AS cor0
----
17
34
59

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

query I rowsort
SELECT DISTINCT col1 * - cor0.col1 + - col0 * col1 FROM tab1 AS cor0
----
-1209
-740
-754

query I rowsort
SELECT ALL ( - col2 ) - col2 FROM tab0
----
-164
-2
-66

query I rowsort
SELECT ALL 17 + - tab2.col0 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 7c1c2a7701cad6d2149e5739fd24f53c

query I rowsort
SELECT DISTINCT + 3 * tab1.col2 + col0 AS col1 FROM tab1
----
165
235
368

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

query I rowsort
SELECT DISTINCT 38 + + col1 FROM tab0
----
124
129
135

query I rowsort
SELECT - 98 * + col1 + + col0 + + col2 FROM tab0
----
-8371
-8747
-9470

query I rowsort
SELECT - 20 AS col2 FROM tab0, tab1, tab0 cor0
----
27 values hashing to eb3a66728062963cccbd15bd2f5c9eee

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1069
SELECT + - cor0.col2 + + cor0.col2 * + CAST( col0 + + cor0.col2 AS SIGNED ) FROM tab1 AS cor0
----
16800
3024
6840

skipif mysql # not compatible
query I rowsort label-1069
SELECT + - cor0.col2 + + cor0.col2 * + CAST ( col0 + + cor0.col2 AS INTEGER ) FROM tab1 AS cor0
----
16800
3024
6840

query I rowsort
SELECT 87 * + cor0.col0 FROM tab2 AS cor0
----
609
6786
6873

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + col0 * col2 col0 FROM tab1 AS cor0
----
165
3712
7760

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * 83 col1 FROM tab2 AS cor0
----
-1411
-2573
-4897

query I rowsort
SELECT - 46 * col0 FROM tab2
----
-322
-3588
-3634

query I rowsort
SELECT + 63 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 38764a6e696d1a6b5095e29ef84959c0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1076
SELECT + CAST( col1 AS SIGNED ) * + col0 + 35 FROM tab1 AS cor0
----
1075
113
675

skipif mysql # not compatible
query I rowsort label-1076
SELECT + CAST ( col1 AS INTEGER ) * + col0 + 35 FROM tab1 AS cor0
----
1075
113
675

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

skipif mysql # not compatible
query I rowsort label-1077
SELECT - cor0.col1 / 7 AS col1 FROM tab1 AS cor0
----
-1
-1
-3

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

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

query I rowsort
SELECT - col1 * ( col1 ) + + 22 * + 65 FROM tab0 AS cor0
----
-5966
-6851
-7979

query I rowsort
SELECT 8 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57

onlyif mysql # use DIV operator for integer division
query I rowsort label-1082
SELECT ALL + tab0.col1 DIV CAST( col2 AS SIGNED ) FROM tab0
----
1
2
97

skipif mysql # not compatible
query I rowsort label-1082
SELECT ALL + tab0.col1 / CAST ( col2 AS INTEGER ) FROM tab0
----
1
2
97

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 7b5938124253798426fbf09c18e1fd75

query I rowsort
SELECT + cor0.col1 AS col0 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc

onlyif mysql # use DIV operator for integer division
query I rowsort label-1085
SELECT DISTINCT + col1 DIV + col2 + col2 DIV ( col0 * col0 ) col2 FROM tab0 AS cor0
----
1
2
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1085
SELECT DISTINCT + col1 / + col2 + col2 / ( col0 * col0 ) col2 FROM tab0 AS cor0
----
1
2
97

query I rowsort
SELECT DISTINCT + col1 * - col1 - cor0.col2 FROM tab1 AS cor0
----
-157
-265
-730

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - col1 * col0 col1 FROM tab2 AS cor0
----
119652
51034
5859

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

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

query I rowsort
SELECT DISTINCT 44 * tab1.col0 + + col1 FROM tab1
----
158
2826
3533

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

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

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

query I rowsort
SELECT + - col1 * col1 * ( col2 + col2 ) FROM tab2 AS cor0
----
-181012
-21964
-51894

query I rowsort
SELECT - col0 * + col1 * - 10 FROM tab0 AS cor0
----
20640
33950
80990

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * 57 col0 FROM tab2
----
1482
1539
2166

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 + - col1 * cor0.col0 - + col0 col0 FROM tab2 AS cor0
----
-1405
-193
-4621

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * col1 * col1 col2 FROM tab2 AS cor0
----
-205379
-29791
-4913

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

skipif mysql # not compatible
query I rowsort label-1102
SELECT 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 - col2 * ( + col1 ) col0 FROM tab0 AS cor0
----
-2838
-7462
-97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1104
SELECT CAST( - 83 AS SIGNED ) * col1 FROM tab2 AS cor0
----
-1411
-2573
-4897

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

query I rowsort
SELECT ALL + ( tab0.col0 ) AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63

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

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

query I rowsort
SELECT ALL - 65 + col1 * - col1 FROM tab2 AS cor0
----
-1026
-354
-3546

query I rowsort
SELECT ALL - col0 * 9 FROM tab0 AS cor0
----
-216
-315
-801

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1111
SELECT ALL col2 + - 0 / - col0 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT ALL + - col0 * + 49 + - col1 * + cor0.col2 AS col1 FROM tab1 AS cor0
----
-1551
-3706
-5168

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

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

query I rowsort
SELECT DISTINCT + col1 - + col2 * + col1 AS col1 FROM tab1 AS cor0
----
-1235
-1378
-560

query I rowsort
SELECT 40 * tab2.col0 * + tab2.col0 FROM tab2
----
1960
243360
249640

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

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

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

query I rowsort
SELECT ALL + + cor0.col0 * + 23 AS col1 FROM tab1 cor0
----
1472
1840
69

query I rowsort
SELECT ALL + - col2 + + col1 * + 17 * col2 AS col0 FROM tab2 AS cor0
----
10944
14202
26052

query I rowsort
SELECT - col0 + 52 FROM tab1 AS cor0
----
-12
-28
49

query I rowsort
SELECT 10 AS col2 FROM tab2, tab1 AS cor0, tab2 AS cor1, tab0 AS cor2
----
81 values hashing to bf75e71325a06683558cf93fd725ad16

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

query I rowsort
SELECT + col2 * col2 * col2 + 33 - cor0.col0 FROM tab1 cor0
----
157494
185162
884689

query I rowsort
SELECT col0 + + col2 - - col2 FROM tab0 AS cor0
----
253
37
90

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

skipif mysql # not compatible
query I rowsort label-1125
SELECT ALL 31 - + tab0.col2 / - tab0.col2 FROM tab0
----
32
32
32

query I rowsort
SELECT 45 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 14cec871edc37b5056cda01c8331fdca

onlyif mysql # use DIV operator for integer division
query I rowsort label-1127
SELECT ALL col2 DIV col1 + CAST( col0 AS SIGNED ) FROM tab0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-1127
SELECT ALL col2 / col1 + CAST ( col0 AS INTEGER ) FROM tab0
----
24
35
89

query I rowsort
SELECT DISTINCT col0 + + col1 * - 10 FROM tab0
----
-821
-836
-935

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1130
SELECT ALL 64 DIV col1 FROM tab2 AS cor0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-1130
SELECT ALL 64 / col1 FROM tab2 AS cor0
----
1
2
3

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 * col0 * + col1 + + col0 * + cor0.col2 - 64 * - 8 col2 FROM tab0 AS cor0
----
-2848
-656308
-66808

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 43 + col0 col0 FROM tab1 AS cor0
----
107
123
46

onlyif mysql # use DIV operator for integer division
query I rowsort label-1134
SELECT 69 + col1 DIV - tab0.col0 AS col1 FROM tab0
----
66
67
68

skipif mysql # not compatible
query I rowsort label-1134
SELECT 69 + col1 / - tab0.col0 AS col1 FROM tab0
----
66
67
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 13 + col0 col1 FROM tab0
----
102
37
48

query I rowsort
SELECT DISTINCT - - cor1.col0 * 0 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
0

query I rowsort
SELECT + col0 * - col2 + - col1 * + col2 FROM tab0 AS cor0
----
-132
-14760
-3630

query I rowsort
SELECT ALL 30 + col2 AS col0 FROM tab2 AS cor0
----
56
57
68

query I rowsort
SELECT DISTINCT + 45 * - col2 + 51 AS col0 FROM tab1
----
-2379
-2514
-4269

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

query I rowsort
SELECT DISTINCT col2 * + col2 + + 75 AS col2 FROM tab2 AS cor0
----
1519
751
804

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

query I rowsort
SELECT col2 * 77 AS col2 FROM tab2
----
2002
2079
2926

query I rowsort
SELECT + col1 + + 42 * col2 FROM tab0 AS cor0
----
139
1472
3535

query I rowsort
SELECT col1 * - ( + 73 ) + col2 * + 22 FROM tab1 AS cor0
----
-710
1163
524

query I rowsort
SELECT DISTINCT + col2 + + cor0.col0 + col2 AS col1 FROM tab0 AS cor0
----
253
37
90

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1147
SELECT CAST( NULL AS DECIMAL ) + 23 AS col1 FROM tab0, tab1, tab0 cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-1147
SELECT CAST ( NULL AS REAL ) + 23 AS col1 FROM tab0, tab1, tab0 cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

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

query I rowsort
SELECT DISTINCT cor0.col2 + + col0 * - col1 * + cor0.col0 AS col1 FROM tab2 AS cor0
----
-106059
-1492
-358930

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

query I rowsort
SELECT DISTINCT - 20 + - col1 + + col0 FROM tab0 cor0
----
-22
-82

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

query I rowsort
SELECT - col0 + 55 FROM tab1 cor0
----
-25
-9
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 32 * + col1 * + cor0.col2 col0 FROM tab1 AS cor0
----
-18240
-39936
-44928

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 91 * - col2 col2 FROM tab0 cor0
----
3003
7462
91

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1158
SELECT + + col1 DIV - col0 - col1 * - col2 DIV col2 FROM tab0 AS cor0
----
83
90
95

skipif mysql # not compatible
query I rowsort label-1158
SELECT + + col1 / - col0 - col1 * - col2 / col2 FROM tab0 AS cor0
----
83
90
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + cor0.col1 + + col0 * cor0.col0 col0 FROM tab2 AS cor0
----
-168
1482
4898

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 * col0 + + 7 col2 FROM tab2 AS cor0
----
56
6091
6248

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

query I rowsort
SELECT col1 + col1 * 53 AS col2 FROM tab0 AS cor0
----
4644
4914
5238

query I rowsort
SELECT - 67 + col1 AS col0 FROM tab2 AS cor0
----
-36
-50
-8

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

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

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

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

query I rowsort
SELECT col2 + + col0 + - col0 * col0 AS col0 FROM tab1 AS cor0
----
-3975
-6224
48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * 42 col2 FROM tab2 AS cor0
----
1092
1134
1596

query I rowsort
SELECT 53 * + 25 AS col0 FROM tab0, tab2, tab0 cor0, tab1
----
81 values hashing to 08417c344380405853a278aedd3a4a35

query I rowsort
SELECT ALL - + 72 * + col0 AS col1 FROM tab1 AS cor0
----
-216
-4608
-5760

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

query I rowsort
SELECT DISTINCT cor0.col2 * col2 + - col1 - - col0 * col0 AS col2 FROM tab1 AS cor0
----
15603
2899
7335

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

query I rowsort
SELECT + col2 * col2 + col2 * 97 AS col1 FROM tab1 AS cor0
----
18528
8154
8778

query I rowsort
SELECT - 91 + 26 + col0 FROM tab1
----
-1
-62
15

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

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

query I rowsort
SELECT 77 + - col0 * 52 AS col1 FROM tab0 cor0
----
-1171
-1743
-4551

query I rowsort
SELECT - 11 * - col2 FROM tab1
----
1056
594
627

query I rowsort
SELECT ALL 42 AS col2 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 325aada2239b6fe1fe2d843515ae8c5e

query I rowsort
SELECT ALL - col1 + ( + col2 ) * + col1 * + col1 FROM tab2 AS cor0
----
10965
25916
90447

query I rowsort
SELECT col2 * ( 38 ) FROM tab0 AS cor0
----
1254
3116
38

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

query I rowsort
SELECT col2 * col2 * col2 + - col1 FROM tab0 AS cor0
----
-96
35851
551277

query I rowsort
SELECT + - cor0.col2 * 4 AS col1 FROM tab0 AS cor0
----
-132
-328
-4

query I rowsort
SELECT ALL ( 5 ) FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 6797d40099023779b89feb627d94a3e7

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

query I rowsort
SELECT + 8 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 33069adc3c1142d31511ec88fcfa40af

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

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

query I rowsort
SELECT ALL col2 * - ( col2 + - col2 ) FROM tab0
----
0
0
0

query I rowsort
SELECT - col2 + col1 * 58 FROM tab0 AS cor0
----
4955
5196
5625

query I rowsort
SELECT DISTINCT col1 + 58 * col2 AS col1 FROM tab1
----
3158
3316
5581

onlyif mysql # use DIV operator for integer division
query I rowsort label-1194
SELECT ALL - col2 * col0 DIV cor0.col1 AS col1 FROM tab0 AS cor0
----
-80
-9
0

skipif mysql # not compatible
query I rowsort label-1194
SELECT ALL - col2 * col0 / cor0.col1 AS col1 FROM tab0 AS cor0
----
-80
-9
0

query I rowsort
SELECT - - col2 * - col1 + - 27 - ( col0 ) * - col0 FROM tab2 AS cor0
----
-815
4523
5568

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + col0 * - col1 col1 FROM tab2 cor0
----
-1305
-190
-4576

query I rowsort
SELECT - + ( - 89 ) * + cor0.col1 AS col2 FROM tab1 AS cor0
----
1157
2314
890

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

query I rowsort
SELECT - 17 * col2 + ( - col0 ) FROM tab2
----
-466
-520
-725

query I rowsort
SELECT + 75 * col2 + 16 + 84 * + col1 AS col0 FROM tab0
----
13810
8239
9715

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + col1 + + cor0.col2 col2 FROM tab0 AS cor0
----
195
205
264

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

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

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

query I rowsort
SELECT + 52 * col2 FROM tab1
----
2808
2964
4992

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

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

query I rowsort
SELECT ALL - + 77 * col2 + col2 * - col0 FROM tab0 AS cor0
----
-112
-13612
-3333

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1208
SELECT DISTINCT - CAST( + 12 AS SIGNED ) - col1 AS col0 FROM tab2 AS cor0
----
-29
-43
-71

skipif mysql # not compatible
query I rowsort label-1208
SELECT DISTINCT - CAST ( + 12 AS INTEGER ) - col1 AS col0 FROM tab2 AS cor0
----
-29
-43
-71

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

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

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

query I rowsort
SELECT ALL + ( col0 ) * cor0.col1 + col0 + + 64 FROM tab1 AS cor0
----
1184
145
768

onlyif mysql # use DIV operator for integer division
query I rowsort label-1212
SELECT ALL 64 DIV col2 - col2 FROM tab1 AS cor0
----
-53
-56
-96

skipif mysql # not compatible
query I rowsort label-1212
SELECT ALL 64 / col2 - col2 FROM tab1 AS cor0
----
-53
-56
-96

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1214
SELECT 88 * + 17 + + col2 DIV col0 FROM tab1 AS cor0
----
1496
1497
1514

skipif mysql # not compatible
query I rowsort label-1214
SELECT 88 * + 17 + + col2 / col0 FROM tab1 AS cor0
----
1496
1497
1514

query I rowsort
SELECT ALL - - 97 * col1 FROM tab2 AS cor0
----
1649
3007
5723

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( col2 ) + cor0.col0 * ( 28 ) col1 FROM tab0 AS cor0
----
2574
705
981

query I rowsort
SELECT DISTINCT 43 + - cor0.col0 * col1 * - col0 FROM tab2 AS cor0
----
106140
1562
358999

query I rowsort
SELECT ALL + ( + col1 ) * - col1 + ( + cor0.col1 ) + col0 FROM tab2 AS cor0
----
-193
-3344
-923

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

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

query I rowsort
SELECT ALL + col2 + col1 * 40 FROM tab0 cor0
----
3473
3722
3881

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

query I rowsort
SELECT + col0 * - 63 FROM tab1 AS cor0
----
-189
-4032
-5040

query I rowsort
SELECT ALL + - col1 * - col2 + - ( col1 ) FROM tab1 AS cor0
----
1235
1378
560

query I rowsort
SELECT ALL col0 + + 37 FROM tab0 AS cor0
----
126
61
72

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1230
SELECT ALL col0 DIV + tab1.col0 - + col0 FROM tab1
----
-2
-63
-79

skipif mysql # not compatible
query I rowsort label-1230
SELECT ALL col0 / + tab1.col0 - + col0 FROM tab1
----
-2
-63
-79

query I rowsort
SELECT DISTINCT col1 - 9 FROM tab2
----
22
50
8

query I rowsort
SELECT 57 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a

query I rowsort
SELECT - col0 * 53 AS col2 FROM tab0
----
-1272
-1855
-4717

query I rowsort
SELECT + col2 - ( - col2 ) AS col2 FROM tab1 AS cor0
----
108
114
192

query I rowsort
SELECT col2 + col2 + + col1 * - col2 FROM tab1
----
-1056
-1296
-456

query I rowsort
SELECT ALL + 99 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1237
SELECT DISTINCT col1 * CAST( col2 AS SIGNED ) * col2 - 67 AS col1 FROM tab2
----
22532
24481
39817

skipif mysql # not compatible
query I rowsort label-1237
SELECT DISTINCT col1 * CAST ( col2 AS INTEGER ) * col2 - 67 AS col1 FROM tab2
----
22532
24481
39817

query I rowsort
SELECT DISTINCT - col2 * + 36 - + col2 FROM tab2
----
-1406
-962
-999

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

query I rowsort
SELECT ALL + col0 * - 97 FROM tab1
----
-291
-6208
-7760

query I rowsort
SELECT ALL + col1 + 31 FROM tab0
----
117
122
128

query I rowsort
SELECT + 59 + - 6 FROM tab1
----
53
53
53

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

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

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

query I rowsort
SELECT + 18 - - 64 * - col1 FROM tab2 cor0
----
-1070
-1966
-3758

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

skipif mysql # not compatible
query I rowsort label-1246
SELECT DISTINCT col1 / - col1 + cor0.col1 * + col2 FROM tab0 AS cor0
----
2837
7461
96

query I rowsort
SELECT ALL + 6 + 71 FROM tab0 AS cor0
----
77
77
77

query I rowsort
SELECT + 1 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to da8a72a7967c0c73d91239275230aed9

query I rowsort
SELECT 56 - + col1 FROM tab2
----
-3
25
39

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

skipif mysql # not compatible
query I rowsort label-1250
SELECT - col1 * col2 + CAST ( - col0 AS INTEGER ) * col2 + + col0 AS col2 FROM tab1 AS cor0
----
-1563
-4154
-8848

query I rowsort
SELECT DISTINCT 56 FROM tab0 cor0
----
56

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1255
SELECT DISTINCT col1 / 8 FROM tab1 AS cor0
----
1
3

query I rowsort
SELECT ALL col1 * - 64 + + col2 AS col2 FROM tab2 AS cor0
----
-1050
-1957
-3750

onlyif mysql # use DIV operator for integer division
query I rowsort label-1257
SELECT ALL - col0 DIV - 11 FROM tab2 AS cor0
----
0
7
7

skipif mysql # not compatible
query I rowsort label-1257
SELECT ALL - col0 / - 11 FROM tab2 AS cor0
----
0
7
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-1258
SELECT ALL + col0 DIV + col1 + col2 * col0 * ( col2 ) FROM tab2 AS cor0
----
114080
5103
52729

skipif mysql # not compatible
query I rowsort label-1258
SELECT ALL + col0 / + col1 + col2 * col0 * ( col2 ) FROM tab2 AS cor0
----
114080
5103
52729

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

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

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

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

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 * col0 >= - col0
----

query I rowsort
SELECT col0 * - col1 FROM tab0 WHERE NOT ( col1 ) BETWEEN NULL AND + col0
----
-2064
-3395
-8099

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

query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab0 WHERE ( - col2 ) <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 - col2 * col1 col2 FROM tab0
----
-2805
-7380
-96

query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 > + col2 * - col0 * col0
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col0 * col1 <> ( NULL )
----

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

query I rowsort
SELECT - - col0 + - col1 - + col2 * - col1 FROM tab1 AS cor0
----
1315
1381
624

query I rowsort
SELECT + col1 + - col2 + col1 AS col0 FROM tab0 AS cor0
----
100
139
193

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

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

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

query I rowsort
SELECT ALL - col1 + tab2.col0 + - col2 * col0 FROM tab2
----
-2009
-213
-2940

onlyif mysql # use DIV operator for integer division
query I rowsort label-1277
SELECT col2 * col2 + - col0 DIV col0 col1 FROM tab1 AS cor0
----
2915
3248
9215

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1277
SELECT col2 * col2 + - col0 / col0 col1 FROM tab1 AS cor0
----
2915
3248
9215

onlyif mysql # use DIV operator for integer division
query I rowsort label-1278
SELECT + col1 DIV - col2 + - col0 AS col1 FROM tab0 AS cor0
----
-132
-26
-90

skipif mysql # not compatible
query I rowsort label-1278
SELECT + col1 / - col2 + - col0 AS col1 FROM tab0 AS cor0
----
-132
-26
-90

query I rowsort
SELECT - col1 + - col0 * 85 AS col0 FROM tab2 AS cor0
----
-626
-6689
-6732

onlyif mysql # use DIV operator for integer division
query I rowsort label-1280
SELECT ( col0 ) + - col0 DIV col0 FROM tab0
----
23
34
88

skipif mysql # not compatible
query I rowsort label-1280
SELECT ( col0 ) + - col0 / col0 FROM tab0
----
23
34
88

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

query I rowsort
SELECT + 49 + + col2 * col1 * col1 + cor0.col1 FROM tab0 AS cor0
----
244203
679182
9555

query I rowsort
SELECT DISTINCT + col1 + + col2 + cor0.col1 * col0 FROM tab1 AS cor0
----
1149
158
707

query I rowsort
SELECT col2 * - col1 * col2 - + cor0.col1 FROM tab0 AS cor0
----
-194
-611975
-93740

query I rowsort
SELECT - - col1 + col0 - - ( col0 ) * col1 AS col1 FROM tab2 cor0
----
1439
255
4739

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

skipif mysql # not compatible
query I rowsort label-1286
SELECT - - col2 - col2 / ( - col0 ) AS col2 FROM tab2 AS cor0
----
26
30
38

query I rowsort
SELECT DISTINCT - + cor0.col0 * - col0 + col0 FROM tab0 AS cor0
----
1260
600
8010

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

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

query I rowsort
SELECT DISTINCT - col1 * + 99 AS col2 FROM tab2 AS cor0
----
-1683
-3069
-5841

onlyif mysql # use DIV operator for integer division
query I rowsort label-1290
SELECT + col2 + 61 DIV - 99 AS col2 FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-1290
SELECT + col2 + 61 / - 99 AS col2 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT DISTINCT + + cor0.col1 * - col1 + 21 AS col1 FROM tab1 AS cor0
----
-148
-655
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * - col1 + + 62 col1 FROM tab0 AS cor0
----
2126
3457
8161

onlyif mysql # use DIV operator for integer division
query I rowsort label-1293
SELECT ALL - + col0 * cor0.col1 + ( col1 ) DIV 86 AS col1 FROM tab1 AS cor0
----
-1040
-640
-78

skipif mysql # not compatible
query I rowsort label-1293
SELECT ALL - + col0 * cor0.col1 + ( col1 ) / 86 AS col1 FROM tab1 AS cor0
----
-1040
-640
-78

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

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

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

skipif mysql # not compatible
query I rowsort label-1295
SELECT DISTINCT - cor0.col2 + CAST ( + col1 AS INTEGER ) FROM tab0 AS cor0
----
53
9
96

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

skipif mysql # not compatible
query I rowsort label-1296
SELECT - col2 / - ( col1 * + col0 ) AS col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT - col0 * ( + 17 * + col2 ) FROM tab2 AS cor0
----
-3213
-34476
-51034

query I rowsort
SELECT ALL - col2 - col1 AS col0 FROM tab0
----
-119
-173
-98

onlyif mysql # use DIV operator for integer division
query I rowsort label-1299
SELECT - col2 * - 76 + cor0.col0 DIV col0 col1 FROM tab0 AS cor0
----
2509
6233
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1299
SELECT - col2 * - 76 + cor0.col0 / col0 col1 FROM tab0 AS cor0
----
2509
6233
77

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

skipif mysql # not compatible
query I rowsort label-1300
SELECT ALL - cor0.col2 / 97 AS col0 FROM tab2 cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-1301
SELECT DISTINCT + + col0 DIV CAST( + col0 AS SIGNED ) + col0 FROM tab1 AS cor0
----
4
65
81

skipif mysql # not compatible
query I rowsort label-1301
SELECT DISTINCT + + col0 / CAST ( + col0 AS INTEGER ) + col0 FROM tab1 AS cor0
----
4
65
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-1302
SELECT 12 DIV + col2 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1302
SELECT 12 / + col2 AS col2 FROM tab1
----
0
0
0

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col2 = NULL
----

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

query I rowsort
SELECT DISTINCT - col0 * - tab0.col1 * + col2 + + tab0.col1 * col2 AS col1 FROM tab0
----
3492
671580
70950

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col2 NOT IN ( - col1 + + col0 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

query I rowsort
SELECT DISTINCT - tab0.col1 + col2 * - col1 + col1 * col1 AS col2 FROM tab0 WHERE ( col0 ) NOT IN ( col2 * + col0 + - col2 )
----
4472
728
9215

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

query I rowsort
SELECT DISTINCT tab1.col2 * col0 * + col2 + col1 * col0 FROM tab1
----
208576
738320
8826

query I rowsort
SELECT ALL col1 + col0 * tab2.col2 FROM tab2
----
2087
220
3019

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

skipif mysql # not compatible
query I rowsort label-1313
SELECT DISTINCT col1 / - col0 + col2 FROM tab0
----
-1
30
81

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL ) < NULL
----

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

query I rowsort
SELECT - 40 * + col0 + - 42 * - col0 AS col1 FROM tab1
----
128
160
6

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

query I rowsort
SELECT col1 * col0 - - 18 FROM tab2 AS cor0
----
1361
235
4620

onlyif mysql # use DIV operator for integer division
query I rowsort label-1319
SELECT DISTINCT 49 - col2 DIV + col1 AS col0 FROM tab2
----
47
49

skipif mysql # not compatible
query I rowsort label-1319
SELECT DISTINCT 49 - col2 / + col1 AS col0 FROM tab2
----
47
49

query I rowsort
SELECT ALL + 46 + col0 - + col0 FROM tab2
----
46
46
46

query I rowsort
SELECT - col0 * col1 + - 77 FROM tab0
----
-2141
-3472
-8176

query I rowsort
SELECT DISTINCT + 57 * + col1 * + col0 FROM tab0 AS cor0
----
117648
193515
461643

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1323
SELECT col2 + - col2 / col0 col0 FROM tab2
----
24
26
38

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

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

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

query I rowsort
SELECT + col1 + 59 * col1 AS col2 FROM tab1 AS cor0
----
1560
600
780

query I rowsort
SELECT col0 + + 35 + 71 FROM tab2 AS cor0
----
113
184
185

query I rowsort
SELECT ALL col2 * + 69 + col0 FROM tab1
----
3729
3997
6704

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

query I rowsort
SELECT ALL - + col0 * 99 * + col0 FROM tab1 AS cor0
----
-405504
-633600
-891

query I rowsort
SELECT - col0 * ( - col0 ) + col1 FROM tab0 AS cor0
----
1322
662
8012

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

query I rowsort
SELECT ALL - - col0 * + 72 FROM tab0 AS cor0
----
1728
2520
6408

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

skipif mysql # not compatible
query I rowsort label-1334
SELECT ALL col0 * CAST ( NULL AS REAL ) - 11 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT cor0.col1 + - ( col2 * + col0 + col2 * col1 ) AS col2 FROM tab0 AS cor0
----
-14669
-35
-3544

query I rowsort
SELECT 90 + + 37 * col2 AS col0 FROM tab0 AS cor0
----
127
1311
3124

query I rowsort
SELECT ALL + col2 + 86 + cor0.col2 * col2 FROM tab0 AS cor0
----
1208
6892
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - ( 33 ) * col0 + 99 col1 FROM tab2 AS cor0
----
2673
2706
330

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

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + - col2 * + 86 * col0 col1 FROM tab0 cor0
----
-3009
-627546
-68079

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

skipif mysql # not compatible
query I rowsort label-1344
SELECT DISTINCT - 35 / col1 AS col1 FROM tab0
----
0

query I rowsort
SELECT DISTINCT + + col2 * - col0 + ( 15 ) FROM tab0 AS cor0
----
-20
-7283
-777

query I rowsort
SELECT DISTINCT 50 - cor0.col1 FROM tab2 AS cor0
----
-9
19
33

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

query I rowsort
SELECT ALL - 11 * col1 * + col2 FROM tab2 cor0
----
-16874
-7106
-9207

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

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

query I rowsort
SELECT + 76 * col2 FROM tab0 AS cor0
----
2508
6232
76

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

query I rowsort
SELECT DISTINCT - cor0.col0 AS col1 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
-24
-35
-89

query I rowsort
SELECT 61 + + col0 * + col1 FROM tab2 AS cor0
----
1404
278
4663

query I rowsort
SELECT DISTINCT - 92 * col2 AS col0 FROM tab0
----
-3036
-7544
-92

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

skipif mysql # not compatible
query I rowsort label-1356
SELECT ALL CAST ( - ( col0 ) AS INTEGER ) FROM tab1
----
-3
-64
-80

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

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1359
SELECT ALL CAST( ( - tab1.col2 ) * - col1 AS SIGNED ) FROM tab1
----
1248
1404
570

skipif mysql # not compatible
query I rowsort label-1359
SELECT ALL CAST ( ( - tab1.col2 ) * - col1 AS INTEGER ) FROM tab1
----
1248
1404
570

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

query I rowsort
SELECT - - col2 * col0 + cor0.col0 * ( ( col1 ) ) FROM tab0 AS cor0
----
15397
2856
3430

query I rowsort
SELECT - ( + 97 ) + col0 FROM tab1 AS cor0
----
-17
-33
-94

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

query I rowsort
SELECT - cor1.col1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 58ed467a9a332e4d7bfaa9abdbbd063f

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

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

query I rowsort
SELECT - 75 * - col1 AS col1 FROM tab0
----
6450
6825
7275

query I rowsort
SELECT ALL ( col2 + - col1 ) * 69 * 38 AS col2 FROM tab2
----
-10488
-86526
55062

onlyif mysql # use DIV operator for integer division
query I rowsort label-1368
SELECT col2 * + tab1.col2 * - col1 + - ( + 9 ) DIV - col2 - + col2 FROM tab1
----
-119904
-32547
-75870

skipif mysql # not compatible
query I rowsort label-1368
SELECT col2 * + tab1.col2 * - col1 + - ( + 9 ) / - col2 - + col2 FROM tab1
----
-119904
-32547
-75870

query I rowsort
SELECT ALL 58 * + 14 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 7d9bb07faf447831f8ffcff9aec1c0ac

query I rowsort
SELECT - 85 * col1 + ( + col0 ) FROM tab2
----
-1366
-2628
-4937

query I rowsort
SELECT 92 + + tab0.col0 AS col0 FROM tab0
----
116
127
181

query I rowsort
SELECT tab2.col2 + 91 * cor0.col2 AS col1 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to c4e3bb28d030c2072b58bf3699def887

query I rowsort
SELECT DISTINCT - 18 * - col0 FROM tab2
----
126
1404
1422

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1375
SELECT ALL 37 * - cor0.col0 DIV + col0 AS col0 FROM tab0 AS cor0
----
-37
-37
-37

skipif mysql # not compatible
query I rowsort label-1375
SELECT ALL 37 * - cor0.col0 / + col0 AS col0 FROM tab0 AS cor0
----
-37
-37
-37

onlyif mysql # use DIV operator for integer division
query I rowsort label-1376
SELECT DISTINCT 56 DIV - col0 col2 FROM tab1
----
-18
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1376
SELECT DISTINCT 56 / - col0 col2 FROM tab1
----
-18
0

query I rowsort
SELECT ALL 59 AS col0 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to e29fef8cdec1ee45a71d213f16d2f1d3

query I rowsort
SELECT + col0 * 92 AS col0 FROM tab2 AS cor0
----
644
7176
7268

query I rowsort
SELECT - col0 * 95 * - 72 AS col0 FROM tab2 cor0
----
47880
533520
540360

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

skipif mysql # not compatible
query I rowsort label-1380
SELECT - + col1 * + CAST ( - col2 AS INTEGER ) FROM tab1 AS cor0
----
1248
1404
570

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1385
SELECT + col1 * 62 DIV col1 FROM tab2 cor0
----
62
62
62

skipif mysql # not compatible
query I rowsort label-1385
SELECT + col1 * 62 / col1 FROM tab2 cor0
----
62
62
62

query I rowsort
SELECT ( + col2 ) * col2 + + 50 + - 98 * - col2 FROM tab0 AS cor0
----
14810
149
4373

query I rowsort
SELECT col1 + 85 * col2 + - ( 99 + col1 ) FROM tab1 AS cor0
----
4491
4746
8061

query I rowsort
SELECT - - 67 + col2 - + col2 * 21 AS col1 FROM tab1 AS cor0
----
-1013
-1073
-1853

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

skipif mysql # not compatible
query I rowsort label-1389
SELECT DISTINCT - col2 / 40 FROM tab2 AS cor0
----
0

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

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

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

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

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

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

query I rowsort
SELECT ALL - - 28 * - col1 FROM tab2 AS cor0
----
-1652
-476
-868

query I rowsort
SELECT + + col1 * col0 * - ( col1 ) + col1 * cor0.col1 AS col0 FROM tab1 AS cor0
----
-13351
-1352
-6300

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

query I rowsort
SELECT 82 * - cor0.col2 + - col0 * cor0.col2 AS col2 FROM tab1 cor0
----
-15552
-4590
-8322

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1400
SELECT - ( + col2 ) + col0 DIV 6 AS col0 FROM tab1 AS cor0
----
-47
-54
-83

skipif mysql # not compatible
query I rowsort label-1400
SELECT - ( + col2 ) + col0 / 6 AS col0 FROM tab1 AS cor0
----
-47
-54
-83

query I rowsort
SELECT 83 AS col0 FROM tab1 cor0
----
83
83
83

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1406
SELECT - - col2 / - col1 AS col1 FROM tab1 cor0
----
-2
-5
-7

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

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

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

query I rowsort
SELECT + - tab1.col0 + - 4 FROM tab1, tab2, tab1 cor0
----
27 values hashing to 9378fd45c524601b6308ebce567bcc37

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1412
SELECT DISTINCT col1 * - col1 - ( 99 + + col1 ) DIV 43 FROM tab1 AS cor0
----
-102
-171
-678

skipif mysql # not compatible
query I rowsort label-1412
SELECT DISTINCT col1 * - col1 - ( 99 + + col1 ) / 43 FROM tab1 AS cor0
----
-102
-171
-678

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

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

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

query I rowsort
SELECT ALL - col1 + col2 * 92 AS col1 FROM tab0 AS cor0
----
-5
2950
7453

onlyif mysql # use DIV operator for integer division
query I rowsort label-1416
SELECT DISTINCT + col2 DIV - col2 - - CAST( + ( col2 ) AS SIGNED ) DIV - ( - 56 ) AS col0 FROM tab1 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-1416
SELECT DISTINCT + col2 / - col2 - - CAST ( + ( col2 ) AS INTEGER ) / - ( - 56 ) AS col0 FROM tab1 AS cor0
----
-1
0

query I rowsort
SELECT + 9 + cor1.col2 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0, tab1 AS cor1
----
27 values hashing to 0e7cfbc81382421d2d5aaaf1088d9b3a

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 + - 12 col0 FROM tab2 AS cor0
----
-19
-90
-91

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

query I rowsort
SELECT ALL 45 * col0 FROM tab2 AS cor0
----
315
3510
3555

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

query I rowsort
SELECT DISTINCT + col0 * - col0 * col0 FROM tab1
----
-262144
-27
-512000

query I rowsort
SELECT 19 + + col2 AS col1 FROM tab0
----
101
20
52

query I rowsort
SELECT + 81 * col2 FROM tab2
----
2106
2187
3078

query I rowsort
SELECT + col2 * - cor0.col2 AS col2 FROM tab1 cor0
----
-2916
-3249
-9216

query I rowsort
SELECT ALL - + col0 * - ( col0 + - 1 ) * col0 AS col0 FROM tab0 cor0
----
13248
41650
697048

query I rowsort
SELECT DISTINCT + + 53 * col0 AS col0 FROM tab0 AS cor0
----
1272
1855
4717

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

query I rowsort
SELECT ALL 16 * cor0.col0 * col1 AS col2 FROM tab2 AS cor0
----
21488
3472
73632

query I rowsort
SELECT DISTINCT 1 + - col0 FROM tab1 AS cor0
----
-2
-63
-79

query I rowsort
SELECT 94 * col0 AS col0 FROM tab0
----
2256
3290
8366

query I rowsort
SELECT ALL + 66 FROM tab2, tab2 AS cor0
----
9 values hashing to 29794915b585eea848ad670075452c88

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

query I rowsort
SELECT DISTINCT - + 95 + col2 FROM tab2 AS cor0
----
-57
-68
-69

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

query I rowsort
SELECT - ( cor0.col0 ) + col2 * - ( - 74 ) FROM tab0 AS cor0
----
2418
39
5979

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

query I rowsort
SELECT ALL col1 + - 53 FROM tab2 AS cor0
----
-22
-36
6

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

query I rowsort
SELECT ALL - 78 * cor0.col0 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 9438d0df016bd9e06d27edea073c2995

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

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

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

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

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

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

query I rowsort
SELECT - - col2 * col2 + + col0 * col1 FROM tab0 AS cor0
----
14823
3153
3396

query I rowsort
SELECT + 96 AS col2 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to f1d978c2d5bfc6f26e0907ac777be83e

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

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

query I rowsort
SELECT col2 * col1 - 7 AS col1 FROM tab1 AS cor0
----
1241
1397
563

query I rowsort
SELECT tab2.col0 * - col0 + + col2 + ( + col0 ) * 1 AS col0 FROM tab2
----
-15
-5980
-6124

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1453
SELECT + col1 - CAST( 76 + + col2 * - col1 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
1517
587
792

skipif mysql # not compatible
query I rowsort label-1453
SELECT + col1 - CAST ( 76 + + col2 * - col1 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
1517
587
792

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

query I rowsort
SELECT col2 * + col0 + - 74 FROM tab0
----
-39
718
7224

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + + col0 * col1 * - col0 col0 FROM tab2
----
-106059
-1492
-358930

query I rowsort
SELECT ALL - col1 + - tab1.col2 + - col1 FROM tab1
----
-106
-122
-77

query I rowsort
SELECT ALL col0 + - 11 AS col2 FROM tab2
----
-4
67
68

onlyif mysql # use DIV operator for integer division
query I rowsort label-1461
SELECT - col1 * col2 DIV ( col0 ) AS col2 FROM tab0 cor0
----
-118
-2
-83

skipif mysql # not compatible
query I rowsort label-1461
SELECT - col1 * col2 / ( col0 ) AS col2 FROM tab0 cor0
----
-118
-2
-83

query I rowsort
SELECT + 59 * col2 AS col0 FROM tab1 AS cor0
----
3186
3363
5664

query I rowsort
SELECT + + col2 * col0 * + col1 + col2 * + 30 + 12 FROM tab0 AS cor0
----
3437
666590
69114

query I rowsort
SELECT col0 + - 95 - col1 FROM tab1 AS cor0
----
-118
-28
-41

query I rowsort
SELECT DISTINCT + col0 * - 36 FROM tab2 AS cor0
----
-252
-2808
-2844

onlyif mysql # use DIV operator for integer division
query I rowsort label-1466
SELECT ALL - col0 DIV + ( - col1 * + col0 ) + ( + 67 ) + - cor0.col1 FROM tab1 AS cor0
----
41
54
57

skipif mysql # not compatible
query I rowsort label-1466
SELECT ALL - col0 / + ( - col1 * + col0 ) + ( + 67 ) + - cor0.col1 FROM tab1 AS cor0
----
41
54
57

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

query I rowsort
SELECT - + col0 + - cor0.col2 * + col0 - - col1 AS col0 FROM tab1 AS cor0
----
-139
-3702
-7747

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

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

query I rowsort
SELECT - 59 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 1e6537c922fa953e0fd2f59430803703

query I rowsort
SELECT DISTINCT cor0.col2 + + tab0.col1 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to ed0f18675169071c56b762ebcebeac71

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

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

skipif mysql # not compatible
query I rowsort label-1474
SELECT DISTINCT col2 / col0 + col2 AS col0 FROM tab0 AS cor0
----
1
34
82

query I rowsort
SELECT + col1 * + col1 + + col1 * 11 FROM tab2
----
1302
4130
476

query I rowsort
SELECT DISTINCT - 63 * + col2 AS col2 FROM tab1
----
-3402
-3591
-6048

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

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

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

query I rowsort
SELECT ALL - + ( - col0 ) + col2 * col2 + cor0.col1 AS col1 FROM tab0 AS cor0
----
1199
133
6904

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + col2 * - col1 * + col0 col1 FROM tab2 cor0
----
-119593
-51017
-5828

query I rowsort
SELECT ALL - 39 * - col2 AS col0 FROM tab2
----
1014
1053
1482

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

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

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

query I rowsort
SELECT DISTINCT + col0 - + col0 FROM tab0
----
0

query I rowsort
SELECT ALL + col0 - col2 * + 17 AS col2 FROM tab2
----
-364
-452
-567

query I rowsort
SELECT + tab1.col0 * - 40 * tab1.col1 + + col2 + - 24 AS col2 FROM tab1
----
-25567
-3090
-41528

query I rowsort
SELECT DISTINCT col2 + + tab2.col1 * - col0 * + col0 AS col2 FROM tab2
----
-106059
-1492
-358930

query I rowsort
SELECT DISTINCT - 23 * + 28 + - col0 * 28 * 45 AS col2 FROM tab0 AS cor0
----
-112784
-30884
-44744

query I rowsort
SELECT DISTINCT col0 + col1 * - col1 FROM tab1 AS cor0
----
-36
-673
-89

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

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

query I rowsort
SELECT - - col1 * col1 + col2 FROM tab2 AS cor0
----
327
3507
988

query I rowsort
SELECT ALL + - 74 * - col0 AS col0 FROM tab2 cor0
----
518
5772
5846

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

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

query I rowsort
SELECT ALL cor0.col2 * 25 AS col0 FROM tab1 AS cor0
----
1350
1425
2400

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

query I rowsort
SELECT + 62 * + 82 AS col0 FROM tab1 AS cor0
----
5084
5084
5084

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 95 * col1 col1 FROM tab1 AS cor0
----
1235
2470
950

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col1 + - col0 col2 FROM tab2 AS cor0
----
-137
-38
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-1503
SELECT - col1 * col1 DIV + cor0.col1 FROM tab2 cor0
----
-17
-31
-59

skipif mysql # not compatible
query I rowsort label-1503
SELECT - col1 * col1 / + cor0.col1 FROM tab2 cor0
----
-17
-31
-59

query I rowsort
SELECT + - 7 + + cor0.col0 AS col0 FROM tab1 AS cor0
----
-4
57
73

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

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

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

query I rowsort
SELECT col0 * - 77 * col1 FROM tab0
----
-158928
-261415
-623623

query I rowsort
SELECT DISTINCT - col2 * - col0 + - 86 FROM tab1 AS cor0
----
3562
7594
76

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

query I rowsort
SELECT DISTINCT - - cor0.col1 + col0 * 7 FROM tab0 AS cor0
----
254
342
714

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1514
SELECT CAST ( - cor0.col1 AS INTEGER ) + cor0.col0 * - col2 AS col1 FROM tab1 AS cor0
----
-188
-3658
-7693

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1516
SELECT DISTINCT - - 18 DIV + col2 + - cor0.col1 AS col1 FROM tab0 AS cor0
----
-79
-86
-91

skipif mysql # not compatible
query I rowsort label-1516
SELECT DISTINCT - - 18 / + col2 + - cor0.col1 AS col1 FROM tab0 AS cor0
----
-79
-86
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - col0 - col2 * - 68 col2 FROM tab1 cor0
----
-1152
228
3510

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1520
SELECT ALL - col0 * col2 - CAST( col2 AS SIGNED ) col2 FROM tab1 cor0
----
-216
-3705
-7776

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1520
SELECT ALL - col0 * col2 - CAST ( col2 AS INTEGER ) col2 FROM tab1 cor0
----
-216
-3705
-7776

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

query I rowsort
SELECT DISTINCT - ( - col2 ) * - col0 + - col2 * col2 FROM tab2 AS cor0
----
-2704
-4446
-918

query I rowsort
SELECT DISTINCT + + ( col1 ) + col2 + - col0 AS col2 FROM tab0 AS cor0
----
63
84
95

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

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

query I rowsort
SELECT ALL + 4 + cor0.col2 AS col2 FROM tab0 AS cor0
----
37
5
86

query I rowsort
SELECT - col1 + - 51 + col2 FROM tab2
----
-30
-55
-84

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

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

query I rowsort
SELECT ALL + col0 - 35 AS col0 FROM tab0
----
-11
0
54

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1531
SELECT ALL col1 * col0 + - col1 DIV + col0 FROM tab2
----
1343
213
4602

skipif mysql # not compatible
query I rowsort label-1531
SELECT ALL col1 * col0 + - col1 / + col0 FROM tab2
----
1343
213
4602

query I rowsort
SELECT DISTINCT + tab1.col2 + - 38 AS col0 FROM tab1, tab0 AS cor0
----
16
19
58

query I rowsort
SELECT ALL + col1 * - col0 + col1 + col2 AS col2 FROM tab2 cor0
----
-1288
-159
-4517

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

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

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

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

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

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

query I rowsort
SELECT + tab2.col0 * 80 FROM tab2, tab0 AS cor0
----
9 values hashing to ddc7bd17d7a445f09e2b15894c03ffb3

query I rowsort
SELECT + col0 + col2 + - 96 * tab2.col0 AS col2 FROM tab2
----
-638
-7384
-7467

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT ALL + col0 * + col0 + CAST ( ( - col0 ) AS REAL ) col0 FROM tab1
----
4032
6
6320

onlyif mysql # use DIV operator for integer division
query I rowsort label-1542
SELECT - col1 DIV col0 + col1 * + col0 * + 26 AS col2 FROM tab2 AS cor0
----
119652
34918
5638

skipif mysql # not compatible
query I rowsort label-1542
SELECT - col1 / col0 + col1 * + col0 * + 26 AS col2 FROM tab2 AS cor0
----
119652
34918
5638

query I rowsort
SELECT col1 + 82 FROM tab0 AS cor0
----
168
173
179

query I rowsort
SELECT col2 * - col1 + col1 * col0 FROM tab2 AS cor0
----
-620
3068
697

query I rowsort
SELECT ALL tab2.col2 * col1 + col1 * col0 * col1 AS col1 FROM tab2
----
23477
273052
7564

onlyif mysql # use DIV operator for integer division
query I rowsort label-1546
SELECT DISTINCT - 80 + 25 DIV + col0 FROM tab0 AS cor0
----
-79
-80

skipif mysql # not compatible
query I rowsort label-1546
SELECT DISTINCT - 80 + 25 / + col0 FROM tab0 AS cor0
----
-79
-80

query I rowsort
SELECT + - ( 66 ) * - col0 * - ( + col0 + - cor0.col1 ) AS col2 FROM tab1 cor0
----
-228096
-353760
4554

query I rowsort
SELECT DISTINCT + + 41 * 56 FROM tab2 cor0
----
2296

query I rowsort
SELECT ALL + 79 + - col2 AS col0 FROM tab2 AS cor0
----
41
52
53

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

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

query I rowsort
SELECT - col2 + col2 * - ( col2 * col2 ) + ( + 10 ) AS col0 FROM tab0 AS cor0
----
-35960
-551440
8

query I rowsort
SELECT + 35 * - col2 * col2 + + col0 + + col1 * 37 FROM tab0 AS cor0
----
-231884
-34909
3589

query I rowsort
SELECT DISTINCT + 73 AS col1 FROM tab2, tab1 AS cor0
----
73

query I rowsort
SELECT DISTINCT col0 * - 18 FROM tab0
----
-1602
-432
-630

query I rowsort
SELECT + col1 + cor0.col1 + col2 AS col0 FROM tab0 AS cor0
----
195
205
264

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

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

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

query I rowsort
SELECT + + 52 * 91 AS col2 FROM tab1 AS cor0
----
4732
4732
4732

query I rowsort
SELECT + col0 * col2 + - col1 * col2 AS col1 FROM tab0 AS cor0
----
-164
-2046
-62

query I rowsort
SELECT ALL 7 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 4e72e9e33dacac757f48d0ce46094607

query I rowsort
SELECT col1 * col2 - - col0 * + col2 FROM tab2 AS cor0
----
1026
3562
3648

query I rowsort
SELECT 91 AS col2 FROM tab1, tab1 cor0, tab1 AS cor1
----
27 values hashing to deebbcfb9c7803a34dca6bd860849afe

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

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

query I rowsort
SELECT col0 + - col0 * col0 * col2 AS col1 FROM tab0 AS cor0
----
-1190
-18984
-649433

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 + - 14 + - col0 col0 FROM tab0 AS cor0
----
-192
-62
-84

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

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1576
SELECT ALL CAST ( + col2 AS INTEGER ) / col0 FROM tab2 cor0
----
0
0
3

query I rowsort
SELECT 14 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 83e5779d2487d12495e7d816c797264f

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

query I rowsort
SELECT DISTINCT + col0 * - col0 + ( - 54 ) AS col1 FROM tab1 AS cor0
----
-4150
-63
-6454

query I rowsort
SELECT ALL 37 * col0 FROM tab0 AS cor0
----
1295
3293
888

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 55 * + col2 col0 FROM tab1 AS cor0
----
-2970
-3135
-5280

query I rowsort
SELECT DISTINCT + 32 * cor0.col0 - + 77 * cor0.col1 AS col0 FROM tab0 AS cor0
----
-4159
-5854
-6349

query I rowsort
SELECT DISTINCT + - col0 + + col1 * 12 * + 84 AS col0 FROM tab1 AS cor0
----
10016
13024
26205

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

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

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

query I rowsort
SELECT ALL - ( col2 ) * - col2 * col2 FROM tab2 AS cor0
----
17576
19683
54872

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1589
SELECT 52 + - col0 + - CAST( col0 + - col2 AS SIGNED ) * - col1 * col1 AS col0 FROM tab2 AS cor0
----
-19175
11822
180986

skipif mysql # not compatible
query I rowsort label-1589
SELECT 52 + - col0 + - CAST ( col0 + - col2 AS INTEGER ) * - col1 * col1 AS col0 FROM tab2 AS cor0
----
-19175
11822
180986

query I rowsort
SELECT ALL 1 * 65 FROM tab1
----
65
65
65

query I rowsort
SELECT - ( 28 ) AS col2 FROM tab2
----
-28
-28
-28

query I rowsort
SELECT 12 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d4f5a8e032294c3b9342821617800972

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1594
SELECT + col2 - col0 DIV - col2 FROM tab1 cor0
----
54
58
96

skipif mysql # not compatible
query I rowsort label-1594
SELECT + col2 - col0 / - col2 FROM tab1 cor0
----
54
58
96

query I rowsort
SELECT + 53 * col2 - - col1 AS col1 FROM tab1 cor0
----
2888
3031
5101

query I rowsort
SELECT DISTINCT 53 + - col0 AS col2 FROM tab2
----
-25
-26
46

query I rowsort
SELECT DISTINCT col1 + 17 AS col0 FROM tab2
----
34
48
76

query I rowsort
SELECT DISTINCT - - 77 * - 16 AS col2 FROM tab1 AS cor0
----
-1232

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1599
SELECT + CAST ( cor0.col0 AS INTEGER ) * cor0.col2 - - col0 col1 FROM tab1 AS cor0
----
165
3712
7760

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

query I rowsort
SELECT + 29 + + ( col2 ) FROM tab1 AS cor0
----
125
83
86

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

skipif mysql # not compatible
query I rowsort label-1602
SELECT ALL - CAST ( 85 AS INTEGER ) + col2 - - col1 * - col0 AS col0 FROM tab1 AS cor0
----
-1029
-109
-668

query I rowsort
SELECT + col2 * col2 * - 80 AS col1 FROM tab1 AS cor0
----
-233280
-259920
-737280

query I rowsort
SELECT ALL - 97 * + col1 * + col0 AS col1 FROM tab1 AS cor0
----
-100880
-62080
-7566

query I rowsort
SELECT DISTINCT 73 + + col0 FROM tab2 AS cor0
----
151
152
80

query I rowsort
SELECT col2 * - cor0.col0 * + 58 + - col1 FROM tab0 AS cor0
----
-2127
-423375
-46022

query I rowsort
SELECT ALL - + 78 + col0 FROM tab1 AS cor0
----
-14
-75
2

query I rowsort
SELECT ( col1 + tab1.col0 * + 29 ) FROM tab1
----
113
1866
2333

onlyif mysql # use DIV operator for integer division
query I rowsort label-1609
SELECT - ( col0 ) * + 8 + + 56 DIV - cor0.col1 FROM tab2 AS cor0
----
-57
-624
-635

skipif mysql # not compatible
query I rowsort label-1609
SELECT - ( col0 ) * + 8 + + 56 / - cor0.col1 FROM tab2 AS cor0
----
-57
-624
-635

query I rowsort
SELECT DISTINCT tab1.col0 * - 54 + - col1 AS col1 FROM tab1
----
-188
-3466
-4333

query I rowsort
SELECT DISTINCT - 39 * tab2.col2 + + tab2.col1 FROM tab2
----
-1022
-1465
-955

query I rowsort
SELECT col1 + - 88 * - tab1.col2 AS col0 FROM tab1
----
4778
5026
8461

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

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

query I rowsort
SELECT + col2 * cor0.col0 + - 89 FROM tab0 cor0
----
-54
703
7209

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

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

skipif mysql # not compatible
query I rowsort label-1616
SELECT ALL - - col1 / - cor0.col1 + col2 FROM tab0 AS cor0
----
0
32
81

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

query I rowsort
SELECT DISTINCT + - col2 * 46 FROM tab0 AS cor0
----
-1518
-3772
-46

query I rowsort
SELECT col2 + - 48 * col1 FROM tab0 AS cor0
----
-4095
-4286
-4655

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT col1 + 51 * 85 * col1 AS col0 FROM tab2 AS cor0
----
134416
255824
73712

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

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

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

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

query I rowsort
SELECT ALL cor0.col0 * col2 * col2 + + cor0.col2 * - 61 * 85 FROM tab0 AS cor0
----
-144969
-5150
173266

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - cor0.col1 * col0 * + cor0.col1 col0 FROM tab1 AS cor0
----
-13520
-2028
-6400

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + tab0.col1 + + col1 col2 FROM tab0
----
-7310
-8190
-9312

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

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

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

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

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

query I rowsort
SELECT DISTINCT + - 44 * + 30 + + col1 AS col2 FROM tab0 AS cor0
----
-1223
-1229
-1234

query I rowsort
SELECT - ( 78 ) FROM tab0 AS cor0 CROSS JOIN tab1, tab1 AS cor1
----
27 values hashing to c4f3c63f98c3c08f2848f46850a476d4

query I rowsort
SELECT - col2 - + 29 * - 60 AS col0 FROM tab0
----
1658
1707
1739

query I rowsort
SELECT tab0.col2 * - 78 FROM tab0
----
-2574
-6396
-78

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

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

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

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

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

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

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

query I rowsort
SELECT + col2 * + 48 + tab0.col1 * + col0 FROM tab0
----
12035
3443
3648

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1645
SELECT + CAST( + ( - col1 ) AS SIGNED ) - + 85 AS col2 FROM tab1 AS cor0
----
-111
-95
-98

skipif mysql # not compatible
query I rowsort label-1645
SELECT + CAST ( + ( - col1 ) AS INTEGER ) - + 85 AS col2 FROM tab1 AS cor0
----
-111
-95
-98

onlyif mysql # use DIV operator for integer division
query I rowsort label-1646
SELECT DISTINCT + col0 DIV - 73 + col0 FROM tab0 AS cor0
----
24
35
88

skipif mysql # not compatible
query I rowsort label-1646
SELECT DISTINCT + col0 / - 73 + col0 FROM tab0 AS cor0
----
24
35
88

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1647
SELECT DISTINCT CAST( + 85 AS SIGNED ) + - col2 AS col2 FROM tab0 AS cor0
----
3
52
84

skipif mysql # not compatible
query I rowsort label-1647
SELECT DISTINCT CAST ( + 85 AS INTEGER ) + - col2 AS col2 FROM tab0 AS cor0
----
3
52
84

query I rowsort
SELECT - col2 + - 69 * + col2 FROM tab2 AS cor0
----
-1820
-1890
-2660

query I rowsort
SELECT ALL + - col2 * - 50 AS col0 FROM tab1 AS cor0
----
2700
2850
4800

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1653
SELECT + col0 * + CAST ( col0 AS INTEGER ) + - col2 AS col2 FROM tab1 AS cor0
----
-45
4039
6304

query I rowsort
SELECT DISTINCT + + col2 * + col0 + + 2 * cor0.col2 FROM tab1 cor0
----
270
3762
7872

query I rowsort
SELECT ALL cor0.col0 * + 93 FROM tab2 AS cor0
----
651
7254
7347

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1657
SELECT ALL + - col0 DIV 32 + col0 FROM tab1 AS cor0
----
3
62
78

skipif mysql # not compatible
query I rowsort label-1657
SELECT ALL + - col0 / 32 + col0 FROM tab1 AS cor0
----
3
62
78

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

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

query I rowsort
SELECT col1 + ( + 5 ) * col0 AS col0 FROM tab1 AS cor0
----
330
41
413

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1663
SELECT col0 DIV ( + ( + col2 ) ) + - CAST( - col2 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
33
36
83

skipif mysql # not compatible
query I rowsort label-1663
SELECT col0 / ( + ( + col2 ) ) + - CAST ( - col2 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
33
36
83

query I rowsort
SELECT DISTINCT - - 93 - - col2 * + col1 AS col0 FROM tab0 AS cor0
----
190
2931
7555

onlyif mysql # use DIV operator for integer division
query I rowsort label-1665
SELECT ( col0 ) DIV col1 + - ( col2 ) FROM tab2
----
-25
-27
-34

skipif mysql # not compatible
query I rowsort label-1665
SELECT ( col0 ) / col1 + - ( col2 ) FROM tab2
----
-25
-27
-34

query I rowsort
SELECT col0 * - col2 - - tab2.col0 FROM tab2
----
-182
-1950
-2923

query I rowsort
SELECT 33 * - tab0.col0 * - col1 FROM tab0
----
112035
267267
68112

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

query I rowsort
SELECT 3 + - col0 * - col1 FROM tab2
----
1346
220
4605

query I rowsort
SELECT DISTINCT - tab1.col2 - - col2 FROM tab1
----
0

query I rowsort
SELECT - ( + cor1.col1 ) FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2

query I rowsort
SELECT cor0.col2 + + col2 * - 39 * 3 AS col1 FROM tab0 AS cor0
----
-116
-3828
-9512

query I rowsort
SELECT + 56 * cor0.col0 - - col1 AS col0 FROM tab2 cor0
----
423
4427
4441

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1675
SELECT DISTINCT - col2 - col1 * - CAST( 62 * col1 AS SIGNED ) AS col1 FROM tab0
----
458519
513340
583357

skipif mysql # not compatible
query I rowsort label-1675
SELECT DISTINCT - col2 - col1 * - CAST ( 62 * col1 AS INTEGER ) AS col1 FROM tab0
----
458519
513340
583357

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * cor0.col0 col1 FROM tab2 AS cor0
----
49
6084
6241

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - col0 - ( col2 + + col2 * - cor0.col2 ) col1 FROM tab1 AS cor0
----
10160
2940
3832

query I rowsort
SELECT DISTINCT - + cor0.col0 * + 72 * col2 FROM tab2 AS cor0
----
-13608
-146016
-216144

query I rowsort
SELECT - col1 * - 73 + col2 + + col0 * + col1 FROM tab1 AS cor0
----
1427
2030
2085

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

query I rowsort
SELECT DISTINCT - cor0.col0 + 69 FROM tab2, tab2 AS cor0, tab1 cor1, tab1 AS cor2
----
-10
-9
62

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

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

query I rowsort
SELECT DISTINCT - col1 * 7 AS col2 FROM tab2 AS cor0
----
-119
-217
-413

query I rowsort
SELECT + col0 + - 94 - col1 AS col2 FROM tab1 AS cor0
----
-117
-27
-40

query I rowsort
SELECT - cor0.col2 * ( 65 ) FROM tab1 AS cor0
----
-3510
-3705
-6240

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 40 - + col2 col1 FROM tab0
----
-42
39
7

query I rowsort
SELECT DISTINCT - - col1 * - col1 * col2 + col0 AS col0 FROM tab2 AS cor0
----
-10903
-25940
-90428

query I rowsort
SELECT ALL - cor0.col2 + 19 + 36 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to bb0142289e77663614d7897a5e71a7f0

query I rowsort
SELECT DISTINCT 24 * col2 AS col2 FROM tab1
----
1296
1368
2304

query I rowsort
SELECT - ( 19 ) + + col0 FROM tab1
----
-16
45
61

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

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

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

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

query I rowsort
SELECT 89 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743

query I rowsort
SELECT DISTINCT 32 + - col1 AS col2 FROM tab2 AS cor0
----
-27
1
15

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col2 * col2 + 83 col1 FROM tab1 AS cor0
----
2999
3332
9299

onlyif mysql # use DIV operator for integer division
query I rowsort label-1702
SELECT + 48 DIV - col1 AS col1 FROM tab2 cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-1702
SELECT + 48 / - col1 AS col1 FROM tab2 cor0
----
-1
-2
0

query I rowsort
SELECT + + 92 AS col0 FROM tab0, tab2, tab1 cor0
----
27 values hashing to c64cb7a81da51f4be0b6906a223e8817

query I rowsort
SELECT ALL - - cor0.col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a

query I rowsort
SELECT ALL 88 * - 14 FROM tab0, tab0 AS cor0
----
9 values hashing to ae3f9dcad1b7c641565b065d77d5d3bf

query I rowsort
SELECT + 32 - col1 AS col0 FROM tab0 AS cor0
----
-54
-59
-65

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

query I rowsort
SELECT + tab1.col2 AS col2 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT DISTINCT 77 AS col0 FROM tab0, tab1 AS cor0, tab2 AS cor1, tab0 AS cor2
----
77

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

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

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

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

query I rowsort
SELECT 20 * + col2 + col1 AS col2 FROM tab2 AS cor0
----
571
579
777

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

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

query I rowsort
SELECT - 96 - + 69 FROM tab0 AS cor0
----
-165
-165
-165

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

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

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

query I rowsort
SELECT + col2 * + 8 FROM tab2 AS cor0
----
208
216
304

query I rowsort
SELECT ALL - col0 * 87 AS col1 FROM tab0 cor0
----
-2088
-3045
-7743

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

query I rowsort
SELECT ALL col2 * + col1 + - col1 AS col0 FROM tab2 cor0
----
1475
629
806

query I rowsort
SELECT ALL + col2 - - 65 FROM tab2 AS cor0
----
103
91
92

query I rowsort
SELECT col0 * 2 + - 60 FROM tab2 AS cor0
----
-46
96
98

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

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

query I rowsort
SELECT ALL - cor0.col2 + 67 FROM tab2 AS cor0
----
29
40
41

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

query I rowsort
SELECT - 17 FROM tab0, tab0 AS cor0, tab1 cor1
----
27 values hashing to 28cd5b4c959cb41fbc56389ab43d167e

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

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

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

query I rowsort
SELECT col0 + - 12 * + cor0.col1 * col1 AS col1 FROM tab0 AS cor0
----
-112873
-88728
-99283

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

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

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

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

query I rowsort
SELECT 9 * col0 * + col0 AS col1 FROM tab0 AS cor0
----
11025
5184
71289

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

skipif mysql # not compatible
query I rowsort label-1737
SELECT + cor0.col0 * col0 / - col1 AS col1 FROM tab2 AS cor0
----
-1
-103
-367

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

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

query I rowsort
SELECT - + 61 * - col0 AS col2 FROM tab0 AS cor0
----
1464
2135
5429

query I rowsort
SELECT + 67 + - col0 AS col0 FROM tab0 AS cor0
----
-22
32
43

query I rowsort
SELECT + - 5 * col2 + + ( - cor0.col0 ) + col1 * - 87 FROM tab1 AS cor0
----
-1219
-1691
-2535

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1743
SELECT cor0.col0 DIV - cor0.col0 + 54 * + cor0.col0 FROM tab2 AS cor0
----
377
4211
4265

skipif mysql # not compatible
query I rowsort label-1743
SELECT cor0.col0 / - cor0.col0 + 54 * + cor0.col0 FROM tab2 AS cor0
----
377
4211
4265

query I rowsort
SELECT + 25 + col1 FROM tab1 AS cor0
----
35
38
51

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1746
SELECT ( - col2 ) DIV + tab2.col0 + - ( + 76 ) AS col0 FROM tab2
----
-76
-76
-79

skipif mysql # not compatible
query I rowsort label-1746
SELECT ( - col2 ) / + tab2.col0 + - ( + 76 ) AS col0 FROM tab2
----
-76
-76
-79

query I rowsort
SELECT DISTINCT + ( + col1 ) * - col0 + - 66 AS col1 FROM tab0
----
-2130
-3461
-8165

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 - col1 * - 13 col1 FROM tab1 cor0
----
187
265
392

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

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

query I rowsort
SELECT + 47 + col2 * col1 AS col1 FROM tab1 AS cor0
----
1295
1451
617

query I rowsort
SELECT + cor0.col1 * - 56 AS col0 FROM tab2 cor0
----
-1736
-3304
-952

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

query I rowsort
SELECT col2 * 67 AS col0 FROM tab1 AS cor0
----
3618
3819
6432

onlyif mysql # use DIV operator for integer division
query I rowsort label-1754
SELECT - 36 - + 42 DIV col0 AS col1 FROM tab0 AS cor0
----
-36
-37
-37

skipif mysql # not compatible
query I rowsort label-1754
SELECT - 36 - + 42 / col0 AS col1 FROM tab0 AS cor0
----
-36
-37
-37

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

skipif mysql # not compatible
query I rowsort label-1755
SELECT - CAST ( col2 AS INTEGER ) * col1 + - col0 AS col0 FROM tab1 AS cor0
----
-1328
-1407
-634

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

query I rowsort
SELECT ALL + 90 + 4 AS col0 FROM tab2 AS cor0
----
94
94
94

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

skipif mysql # not compatible
query I rowsort label-1758
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) + - col0 AS col2 FROM tab2 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + col1 * col2 * col1 col0 FROM tab0
----
244044
678953
9374

query I rowsort
SELECT - cor0.col1 + + 65 AS col1 FROM tab0 AS cor0
----
-21
-26
-32

query I rowsort
SELECT - cor0.col1 * col2 + + col0 * + ( - col1 * col0 ) FROM tab2 AS cor0
----
-106743
-2356
-360490

query I rowsort
SELECT ALL col0 + 61 FROM tab0 cor0
----
150
85
96

query I rowsort
SELECT ( col0 ) - cor0.col2 FROM tab2 cor0
----
-20
41
52

query I rowsort
SELECT DISTINCT + 94 + + col1 * cor0.col2 AS col1 FROM tab2 AS cor0
----
1628
740
931

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 2 + 1 col2 FROM tab1 AS cor0
----
3

query I rowsort
SELECT - 67 * + col1 FROM tab0 AS cor0
----
-5762
-6097
-6499

query I rowsort
SELECT + ( 36 ) FROM tab0
----
36
36
36

onlyif mysql # use DIV operator for integer division
query I rowsort label-1768
SELECT DISTINCT - col1 * col0 DIV - cor0.col0 AS col2 FROM tab1 AS cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-1768
SELECT DISTINCT - col1 * col0 / - cor0.col0 AS col2 FROM tab1 AS cor0
----
10
13
26

onlyif mysql # use DIV operator for integer division
query I rowsort label-1769
SELECT + 96 DIV - col2 AS col0 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1769
SELECT + 96 / - col2 AS col0 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ( + col2 ) * + col1 FROM tab0
----
2838
7462
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1771
SELECT ALL - tab2.col2 + CAST( NULL AS SIGNED ) FROM tab2, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-1771
SELECT ALL - tab2.col2 + CAST ( NULL AS INTEGER ) FROM tab2, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # use DIV operator for integer division
query I rowsort label-1772
SELECT - 71 DIV - 69 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

skipif mysql # not compatible
query I rowsort label-1772
SELECT - 71 / - 69 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col2 col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
1
33
82

query I rowsort
SELECT - + col0 + - 70 FROM tab0 cor0
----
-105
-159
-94

query I rowsort
SELECT col1 * - ( - col0 ) * col2 - - ( col1 * col1 ) AS col1 FROM tab2
----
123133
51323
6820

query I rowsort
SELECT DISTINCT + - 89 - col2 * col1 FROM tab1 AS cor0
----
-1337
-1493
-659

query I rowsort
SELECT ALL + - 55 * ( col2 ) FROM tab2 AS cor0
----
-1430
-1485
-2090

query I rowsort
SELECT DISTINCT + 16 AS col0 FROM tab0, tab1 AS cor0
----
16

query I rowsort
SELECT ALL ( 41 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab0 AS cor2
----
81 values hashing to 0733f496a5445ffeac9d19797afe4831

query I rowsort
SELECT + 37 + + 37 AS col1 FROM tab2
----
74
74
74

query I rowsort
SELECT ALL col1 - 32 FROM tab2
----
-1
-15
27

query I rowsort
SELECT DISTINCT col1 * - col0 - tab0.col0 FROM tab0
----
-2088
-3430
-8188

query I rowsort
SELECT DISTINCT + col2 * col2 - - col1 FROM tab0
----
1175
6815
98

query I rowsort
SELECT + tab2.col0 + 35 + col1 FROM tab2
----
131
172
73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col0 + + col1 col1 FROM tab0 AS cor0
----
110
132
180

onlyif mysql # use DIV operator for integer division
query I rowsort label-1786
SELECT ALL col1 + - col1 DIV + cor0.col0 FROM tab0 cor0
----
83
90
95

skipif mysql # not compatible
query I rowsort label-1786
SELECT ALL col1 + - col1 / + cor0.col0 FROM tab0 cor0
----
83
90
95

query I rowsort
SELECT DISTINCT - cor0.col1 * 30 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
-2580
-2730
-2910

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 44 * + 19 col1 FROM tab2 cor0
----
836
836
836

query I rowsort
SELECT ALL 64 * - tab1.col2 AS col0 FROM tab1
----
-3456
-3648
-6144

query I rowsort
SELECT + + tab2.col2 - cor0.col2 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 4eefaad6293882477b78a28ec3b90a1c

query I rowsort
SELECT DISTINCT - col0 + - col1 * ( col1 ) AS col0 FROM tab2
----
-3559
-368
-968

query I rowsort
SELECT ALL - + tab2.col1 AS col0 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2

query I rowsort
SELECT 63 + cor0.col1 AS col1 FROM tab2 AS cor0
----
122
80
94

query I rowsort
SELECT - col2 + - col2 + col2 AS col1 FROM tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT ALL + + cor0.col2 + - ( + 24 ) FROM tab1 AS cor0
----
30
33
72

query I rowsort
SELECT DISTINCT cor0.col2 + col2 AS col2 FROM tab1 cor0
----
108
114
192

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1797
SELECT DISTINCT col2 * CAST( + 31 AS SIGNED ) FROM tab1 AS cor0
----
1674
1767
2976

skipif mysql # not compatible
query I rowsort label-1797
SELECT DISTINCT col2 * CAST ( + 31 AS INTEGER ) FROM tab1 AS cor0
----
1674
1767
2976

query I rowsort
SELECT col1 * + col2 * tab0.col0 FROM tab0
----
3395
664118
68112

query I rowsort
SELECT DISTINCT 72 * + tab2.col2 FROM tab2
----
1872
1944
2736

query I rowsort
SELECT ALL - col2 * - 88 FROM tab2 AS cor0
----
2288
2376
3344

query I rowsort
SELECT + col0 + col2 + + col2 FROM tab1 AS cor0
----
111
178
272

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1802
SELECT DISTINCT - cor0.col0 + - CAST( - col0 AS SIGNED ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1802
SELECT DISTINCT - cor0.col0 + - CAST ( - col0 AS INTEGER ) FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT + col1 + 15 + - col1 * - col2 AS col1 FROM tab1 AS cor0
----
1276
1445
595

onlyif mysql # use DIV operator for integer division
query I rowsort label-1804
SELECT - col2 DIV + 16 AS col2 FROM tab2 cor0
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-1804
SELECT - col2 / + 16 AS col2 FROM tab2 cor0
----
-1
-1
-2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + - col1 + col1 * - col2 col1 FROM tab1 cor0
----
-1165
-1376
-523

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1806
SELECT DISTINCT - col1 * cor0.col2 + + CAST( 43 AS SIGNED ) col0 FROM tab0 AS cor0
----
-2795
-54
-7419

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1806
SELECT DISTINCT - col1 * cor0.col2 + + CAST ( 43 AS INTEGER ) col0 FROM tab0 AS cor0
----
-2795
-54
-7419

query I rowsort
SELECT ALL + - cor0.col2 + col2 AS col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ( col0 ) + + 73 AS col2 FROM tab1
----
137
153
76

query I rowsort
SELECT ALL 76 AS col2 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 7b2b08dd3f1adef028d3f40ef7c716da

query I rowsort
SELECT - col2 + cor0.col1 * + col1 AS col2 FROM tab0 AS cor0
----
7363
8199
9408

query I rowsort
SELECT 57 + col2 * ( - ( - col1 ) ) AS col0 FROM tab1
----
1305
1461
627

query I rowsort
SELECT ( col2 + - col2 ) AS col1 FROM tab1
----
0
0
0

query I rowsort
SELECT + 44 + - col0 FROM tab0 AS cor0
----
-45
20
9

query I rowsort
SELECT DISTINCT - 77 + - col1 * + 68 FROM tab1 AS cor0
----
-1845
-757
-961

query I rowsort
SELECT - ( col0 ) + + 68 FROM tab0
----
-21
33
44

query I rowsort
SELECT - tab2.col1 - 68 FROM tab2, tab1 AS cor0
----
9 values hashing to 5b0d8d910a35ef302736fd8d3e3c7168

query I rowsort
SELECT DISTINCT tab1.col1 + ( - col0 + col0 ) * - tab1.col2 FROM tab1
----
10
13
26

query I rowsort
SELECT - col2 * ( - col1 ) + - col2 FROM tab1 AS cor0
----
1152
1350
513

query I rowsort
SELECT - tab2.col1 + + 11 AS col1 FROM tab2
----
-20
-48
-6

onlyif mysql # use DIV operator for integer division
query I rowsort label-1820
SELECT col0 + - col0 DIV col1 AS col1 FROM tab0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-1820
SELECT col0 + - col0 / col1 AS col1 FROM tab0
----
24
35
89

query I rowsort
SELECT ALL + + 81 * ( + col1 ) + - 35 * + 76 FROM tab1 AS cor0
----
-1607
-1850
-554

query I rowsort
SELECT DISTINCT 36 * - ( col1 ) FROM tab2 cor0
----
-1116
-2124
-612

query I rowsort
SELECT - - col0 * - col2 + cor0.col0 * - ( + col2 ) AS col2 FROM tab1 AS cor0
----
-15360
-324
-7296

query I rowsort
SELECT 11 + + 86 FROM tab2 AS cor0
----
97
97
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1825
SELECT CAST( NULL AS SIGNED ) + + col1 * col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1825
SELECT CAST ( NULL AS INTEGER ) + + col1 * col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 * col0 * + col0 AS col0 FROM tab2
----
106097
1519
358956

query I rowsort
SELECT ALL - - ( - col2 ) * col0 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT ALL - col1 * 82 - + cor0.col1 FROM tab0 AS cor0
----
-7138
-7553
-8051

query I rowsort
SELECT ALL + ( - cor0.col1 ) FROM tab0 cor0
----
-86
-91
-97

query I rowsort
SELECT DISTINCT - col2 * + col1 * + col1 AS col2 FROM tab1 AS cor0
----
-16224
-36504
-5700

query I rowsort
SELECT ALL 80 * col0 AS col0 FROM tab0 AS cor0
----
1920
2800
7120

query I rowsort
SELECT DISTINCT - 68 AS col2 FROM tab2
----
-68

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1833
SELECT CAST( col1 AS SIGNED ) * + col0 AS col1 FROM tab0
----
2064
3395
8099

skipif mysql # not compatible
query I rowsort label-1833
SELECT CAST ( col1 AS INTEGER ) * + col0 AS col1 FROM tab0
----
2064
3395
8099

query I rowsort
SELECT col0 * cor0.col0 + + col0 AS col2 FROM tab1 cor0
----
12
4160
6480

query I rowsort
SELECT DISTINCT + cor0.col0 + + cor0.col0 * - cor0.col1 AS col1 FROM tab1 cor0
----
-576
-75
-960

query I rowsort
SELECT DISTINCT + 57 AS col0 FROM tab2, tab0 AS cor0
----
57

query I rowsort
SELECT col0 + - col0 * ( cor0.col2 ) FROM tab2 AS cor0
----
-182
-1950
-2923

query I rowsort
SELECT + ( + col2 ) * + col2 AS col1 FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT - col2 + - col2 * - col0 * - 59 FROM tab0 AS cor0
----
-2066
-430664
-46761

query I rowsort
SELECT - - col0 * - col2 * + col2 + col2 FROM tab0 AS cor0
----
-26103
-34
-598354

query I rowsort
SELECT - + 2 * cor0.col1 FROM tab2 AS cor0
----
-118
-34
-62

query I rowsort
SELECT 0 * + col0 * col2 AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + col1 + col1 * + col0 * + 90 AS col2 FROM tab2 cor0
----
120887
19561
414239

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1844
SELECT ALL CAST( - cor0.col2 AS SIGNED ) FROM tab0, tab0 AS cor0
----
9 values hashing to b5a4102107e5ebd26e341538f4fede1e

skipif mysql # not compatible
query I rowsort label-1844
SELECT ALL CAST ( - cor0.col2 AS INTEGER ) FROM tab0, tab0 AS cor0
----
9 values hashing to b5a4102107e5ebd26e341538f4fede1e

onlyif mysql # use DIV operator for integer division
query I rowsort label-1845
SELECT DISTINCT - col2 DIV - 99 + + cor0.col1 + + col2 FROM tab1 cor0
----
109
67
80

skipif mysql # not compatible
query I rowsort label-1845
SELECT DISTINCT - col2 / - 99 + + cor0.col1 + + col2 FROM tab1 cor0
----
109
67
80

query I rowsort
SELECT + col1 * col1 - 34 FROM tab2 AS cor0
----
255
3447
927

query I rowsort
SELECT cor0.col1 * cor0.col0 - cor0.col1 AS col2 FROM tab1 AS cor0
----
1027
52
630

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1848
SELECT ALL - CAST( NULL AS SIGNED ) FROM tab0, tab2 AS cor0, tab2, tab2 AS cor1
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

skipif mysql # not compatible
query I rowsort label-1848
SELECT ALL - CAST ( NULL AS INTEGER ) FROM tab0, tab2 AS cor0, tab2, tab2 AS cor1
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

query I rowsort
SELECT - col0 + - cor0.col0 * ( col2 ) FROM tab0 cor0
----
-70
-7387
-816

onlyif mysql # use DIV operator for integer division
query I rowsort label-1850
SELECT col1 * col0 DIV - col1 + + col1 AS col0 FROM tab2 cor0
----
-19
-62
24

skipif mysql # not compatible
query I rowsort label-1850
SELECT col1 * col0 / - col1 + + col1 AS col0 FROM tab2 cor0
----
-19
-62
24

query I rowsort
SELECT - col2 * + col2 + - col2 * - cor0.col0 AS col2 FROM tab1 AS cor0
----
-1536
-2754
399

query I rowsort
SELECT DISTINCT col2 * + col1 + + 27 FROM tab1 cor0
----
1275
1431
597

query I rowsort
SELECT DISTINCT col2 + + 96 AS col2 FROM tab0 AS cor0
----
129
178
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-1854
SELECT + - col2 * 84 + + ( - col1 ) * + col1 DIV col1 FROM tab1 AS cor0
----
-4562
-4798
-8077

skipif mysql # not compatible
query I rowsort label-1854
SELECT + - col2 * 84 + + ( - col1 ) * + col1 / col1 FROM tab1 AS cor0
----
-4562
-4798
-8077

onlyif mysql # use DIV operator for integer division
query I rowsort label-1855
SELECT + cor0.col1 DIV - col2 + - col0 * - col1 FROM tab1 AS cor0
----
1040
640
78

skipif mysql # not compatible
query I rowsort label-1855
SELECT + cor0.col1 / - col2 + - col0 * - col1 FROM tab1 AS cor0
----
1040
640
78

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1856
SELECT + CAST( NULL AS SIGNED ) * 53 * - col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1856
SELECT + CAST ( NULL AS INTEGER ) * 53 * - col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 19 col1 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11

query I rowsort
SELECT cor0.col2 * - 46 FROM tab0 AS cor0
----
-1518
-3772
-46

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1859
SELECT col1 + + CAST( col1 AS SIGNED ) * col0 AS col2 FROM tab0 AS cor0
----
2150
3492
8190

skipif mysql # not compatible
query I rowsort label-1859
SELECT col1 + + CAST ( col1 AS INTEGER ) * col0 AS col2 FROM tab0 AS cor0
----
2150
3492
8190

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * 70 + + col2 col1 FROM tab1 AS cor0
----
1006
1874
757

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1861
SELECT - CAST( NULL AS DECIMAL ) col2 FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1861
SELECT - CAST ( NULL AS REAL ) col2 FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT - cor0.col0 * 3 + col1 FROM tab1 AS cor0
----
-182
-227
17

query I rowsort
SELECT + col0 + ( col0 ) AS col2 FROM tab2 cor0
----
14
156
158

query I rowsort
SELECT ALL + col1 * - 59 * col1 FROM tab2 AS cor0
----
-17051
-205379
-56699

query I rowsort
SELECT DISTINCT + 17 * + col0 FROM tab1
----
1088
1360
51

query I rowsort
SELECT DISTINCT - - col1 + 70 AS col1 FROM tab2 AS cor0
----
101
129
87

query I rowsort
SELECT ALL + + col0 * - cor0.col0 * col2 AS col1 FROM tab0 AS cor0
----
-1225
-19008
-649522

query I rowsort
SELECT + col0 + col0 * col0 * cor0.col1 FROM tab2 AS cor0
----
106176
1526
359034

query I rowsort
SELECT + + 87 * col0 + col0 AS col2 FROM tab2 AS cor0
----
616
6864
6952

query I rowsort
SELECT ALL 53 + col1 FROM tab1
----
63
66
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 60 + col0 * - col2 col1 FROM tab2 AS cor0
----
-2088
-249
-3062

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1872
SELECT ALL CAST( 50 AS SIGNED ) col0 FROM tab2 cor0
----
50
50
50

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1872
SELECT ALL CAST ( 50 AS INTEGER ) col0 FROM tab2 cor0
----
50
50
50

query I rowsort
SELECT DISTINCT - 33 * + cor0.col1 + col1 AS col1 FROM tab2 AS cor0
----
-1888
-544
-992

query I rowsort
SELECT DISTINCT + ( + col0 ) * + col2 + - col1 AS col0 FROM tab2 AS cor0
----
158
1969
2985

query I rowsort
SELECT col2 + 18 AS col2 FROM tab0 AS cor0
----
100
19
51

query I rowsort
SELECT 35 * + col0 FROM tab0 cor0
----
1225
3115
840

query I rowsort
SELECT DISTINCT + 25 * + col2 AS col1 FROM tab2 AS cor0
----
650
675
950

query I rowsort
SELECT ALL - col2 * col1 * + col2 FROM tab2 AS cor0
----
-22599
-24548
-39884

query I rowsort
SELECT + col2 * col0 + 13 FROM tab0 AS cor0
----
48
7311
805

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1880
SELECT DISTINCT - + CAST( NULL AS SIGNED ) * 7 FROM tab1, tab0 AS cor0 CROSS JOIN tab2, tab0, tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-1880
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) * 7 FROM tab1, tab0 AS cor0 CROSS JOIN tab2, tab0, tab2 AS cor1
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-1881
SELECT ALL - col1 * + cor0.col0 DIV ( col0 ) + - col0 + 16 FROM tab1 AS cor0
----
-13
-58
-77

skipif mysql # not compatible
query I rowsort label-1881
SELECT ALL - col1 * + cor0.col0 / ( col0 ) + - col0 + 16 FROM tab1 AS cor0
----
-13
-58
-77

query I rowsort
SELECT ALL cor0.col2 + col2 * 72 * - 51 AS col1 FROM tab0 AS cor0
----
-121143
-301022
-3671

query I rowsort
SELECT ALL + + cor0.col1 + col0 * cor0.col2 AS col2 FROM tab1 AS cor0
----
188
3658
7693

query I rowsort
SELECT DISTINCT + col2 * - col2 * cor0.col0 + - 99 + + col0 FROM tab2 AS cor0
----
-114096
-5195
-52749

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - col0 + ( + col0 ) * col0 col0 FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT DISTINCT - col1 * + cor0.col2 + + 75 FROM tab2 AS cor0
----
-1459
-571
-762

query I rowsort
SELECT ( - col0 ) + col0 * col1 AS col0 FROM tab1 AS cor0
----
576
75
960

query I rowsort
SELECT + col2 + ( col2 ) * + ( + col2 ) * col0 FROM tab1
----
207993
737376
8802

query I rowsort
SELECT DISTINCT ( 67 ) + col1 FROM tab0
----
153
158
164

query I rowsort
SELECT - 60 + - 54 FROM tab1
----
-114
-114
-114

query I rowsort
SELECT ALL + - col0 * col1 + col2 AS col1 FROM tab2 AS cor0
----
-1305
-190
-4576

query I rowsort
SELECT DISTINCT + - ( + cor0.col1 ) * + col0 - - 19 AS col2 FROM tab1 AS cor0
----
-1021
-59
-621

onlyif mysql # use DIV operator for integer division
query I rowsort label-1893
SELECT col1 + + col0 DIV ( + 38 ) FROM tab1 AS cor0
----
11
15
26

skipif mysql # not compatible
query I rowsort label-1893
SELECT col1 + + col0 / ( + 38 ) FROM tab1 AS cor0
----
11
15
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 78 col0 FROM tab0 cor0
----
-78
-78
-78

query I rowsort
SELECT DISTINCT col1 + - col0 * col2 AS col1 FROM tab1 AS cor0
----
-136
-3638
-7667

query I rowsort
SELECT ALL + + ( col1 ) * - col2 AS col2 FROM tab1 cor0
----
-1248
-1404
-570

query I rowsort
SELECT - col0 * col2 + - col0 * + ( + col1 ) FROM tab0 AS cor0
----
-15397
-2856
-3430

query I rowsort
SELECT ALL 93 AS col2 FROM tab0 AS cor0
----
93
93
93

onlyif mysql # use DIV operator for integer division
query I rowsort label-1899
SELECT + tab1.col2 DIV - col0 + - ( + col1 ) * - ( col2 ) - col2 FROM tab1
----
1151
1332
513

skipif mysql # not compatible
query I rowsort label-1899
SELECT + tab1.col2 / - col0 + - ( + col1 ) * - ( col2 ) - col2 FROM tab1
----
1151
1332
513

query I rowsort
SELECT ALL 16 - tab1.col1 AS col2 FROM tab0, tab2, tab0 AS cor0, tab1
----
81 values hashing to 4091ea1370f96fdb5a7b2c0e4cb3fd9d

skipif mysql # not compatible
query I rowsort
SELECT ALL + CAST ( - col2 AS REAL ) + tab0.col1 * - tab0.col0 AS col1 FROM tab0
----
-2097
-3396
-8181

query I rowsort
SELECT - 26 * - col2 AS col2 FROM tab2
----
676
702
988

query I rowsort
SELECT ALL col1 + 40 AS col2 FROM tab1
----
50
53
66

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1904
SELECT DISTINCT - CAST( col1 AS SIGNED ) * col1 + col1 AS col1 FROM tab0
----
-7310
-8190
-9312

skipif mysql # not compatible
query I rowsort label-1904
SELECT DISTINCT - CAST ( col1 AS INTEGER ) * col1 + col1 AS col1 FROM tab0
----
-7310
-8190
-9312

query I rowsort
SELECT + 89 * - 0 * - col2 AS col0 FROM tab1
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-1906
SELECT DISTINCT + ( - col2 ) * cor0.col2 + 22 DIV col1 - - col1 AS col2 FROM tab0 cor0
----
-1003
-6633
96

skipif mysql # not compatible
query I rowsort label-1906
SELECT DISTINCT + ( - col2 ) * cor0.col2 + 22 / col1 - - col1 AS col2 FROM tab0 cor0
----
-1003
-6633
96

query I rowsort
SELECT DISTINCT - 97 * cor0.col2 FROM tab0 AS cor0
----
-3201
-7954
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 30 * + cor0.col2 col0 FROM tab1, tab2 cor0
----
9 values hashing to 387c5a092dca2619969b8e6e32bd3af6

query I rowsort
SELECT DISTINCT 62 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1, tab0 AS cor1
----
62

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab1, tab1 cor1, tab2, tab2 AS cor2
----
3645 values hashing to 5a114c3d024b82b28eeddb04849c8215

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * ( + col0 ) col0 FROM tab2
----
49
6084
6241

query I rowsort
SELECT col1 * - 28 FROM tab2
----
-1652
-476
-868

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1913
SELECT - + col1 + CAST( NULL AS SIGNED ) * col2 col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1913
SELECT - + col1 + CAST ( NULL AS INTEGER ) * col2 col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-1914
SELECT - - col0 DIV 95 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1914
SELECT - - col0 / 95 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + col1 * 16 FROM tab1 AS cor0
----
160
208
416

query I rowsort
SELECT ALL + + col0 + + ( + ( col2 ) + - col1 ) AS col1 FROM tab2 AS cor0
----
100
3
45

onlyif mysql # use DIV operator for integer division
query I rowsort label-1917
SELECT DISTINCT - col2 DIV + 73 AS col1 FROM tab1 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-1917
SELECT DISTINCT - col2 / + 73 AS col1 FROM tab1 AS cor0
----
-1
0

query I rowsort
SELECT ALL + col1 * ( col0 ) AS col0 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT DISTINCT - col0 * 5 + + cor0.col0 FROM tab1 AS cor0
----
-12
-256
-320

query I rowsort
SELECT - ( + col0 ) * + col0 * + col2 AS col1 FROM tab0 AS cor0
----
-1225
-19008
-649522

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1921
SELECT ALL cor0.col0 + CAST( NULL AS SIGNED ) - + 80 FROM tab0, tab0 AS cor0, tab1 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-1921
SELECT ALL cor0.col0 + CAST ( NULL AS INTEGER ) - + 80 FROM tab0, tab0 AS cor0, tab1 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT 41 AS col1 FROM tab2, tab2 cor0
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e

query I rowsort
SELECT - ( - 67 ) FROM tab2 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab2 AS cor2
----
81 values hashing to 09fa7af42010457bb3c6ffd0dfea3bc8

query I rowsort
SELECT DISTINCT + 98 + - cor0.col2 AS col2 FROM tab1 AS cor0
----
2
41
44

query I rowsort
SELECT col0 * col1 * - 45 + col0 * cor0.col1 - 29 * col1 FROM tab2 AS cor0
----
-10447
-204199
-59585

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1926
SELECT ALL col0 + cor0.col0 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1926
SELECT ALL col0 + cor0.col0 * 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-1927
SELECT DISTINCT - - col2 * col2 + - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1927
SELECT DISTINCT - - col2 * col2 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL + ( + col2 + - tab1.col1 ) FROM tab1
----
28
47
83

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1929
SELECT ALL + + 68 * - col1 * CAST( col1 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-19652
-236708
-65348

skipif mysql # not compatible
query I rowsort label-1929
SELECT ALL + + 68 * - col1 * CAST ( col1 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-19652
-236708
-65348

query I rowsort
SELECT - col1 * col2 + 67 FROM tab0 AS cor0
----
-2771
-30
-7395

query I rowsort
SELECT DISTINCT 64 - + tab1.col1 FROM tab1
----
38
51
54

onlyif mysql # use DIV operator for integer division
query I rowsort label-1932
SELECT ALL ( + 18 ) - tab0.col2 DIV col2 FROM tab0
----
17
17
17

skipif mysql # not compatible
query I rowsort label-1932
SELECT ALL ( + 18 ) - tab0.col2 / col2 FROM tab0
----
17
17
17

query I rowsort
SELECT + - 39 * col1 * ( - col0 ) - cor0.col0 AS col0 FROM tab1 cor0
----
24896
3039
40480

query I rowsort
SELECT - col0 * col2 + - ( + ( + col0 ) ) + 73 FROM tab0
----
-7314
-743
3

query I rowsort
SELECT col1 + col0 * 98 FROM tab0 AS cor0
----
2438
3527
8813

query I rowsort
SELECT - tab2.col0 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to c82df1de3cb666224690a83f3d790d79

onlyif mysql # use DIV operator for integer division
query I rowsort label-1937
SELECT + 55 DIV + col0 + - col0 + - tab2.col0 * - col2 AS col2 FROM tab2
----
189
1950
2923

skipif mysql # not compatible
query I rowsort label-1937
SELECT + 55 / + col0 + - col0 + - tab2.col0 * - col2 AS col2 FROM tab2
----
189
1950
2923

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1938
SELECT DISTINCT + col0 * col2 + CAST( + col2 AS SIGNED ) * - col2 AS col2 FROM tab1
----
-1536
-2754
399

skipif mysql # not compatible
query I rowsort label-1938
SELECT DISTINCT + col0 * col2 + CAST ( + col2 AS INTEGER ) * - col2 AS col2 FROM tab1
----
-1536
-2754
399

query I rowsort
SELECT DISTINCT tab0.col2 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
1
33
82

query I rowsort
SELECT ALL + + tab1.col2 * 65 AS col1 FROM tab1, tab0, tab2 AS cor0, tab2
----
81 values hashing to bf9e7f7ee270e93f8a19bc9fa2bfcfed

query I rowsort
SELECT + - col0 * cor0.col0 - - 93 AS col1 FROM tab1 AS cor0
----
-4003
-6307
84

query I rowsort
SELECT - col2 * - 1 + - 56 AS col0 FROM tab0 AS cor0
----
-23
-55
26

query I rowsort
SELECT ALL + tab1.col0 * col1 + + col2 FROM tab1
----
1136
132
697

query I rowsort
SELECT tab0.col0 * - 97 FROM tab0
----
-2328
-3395
-8633

query I rowsort
SELECT + ( 46 ) FROM tab1, tab2 AS cor0
----
9 values hashing to 31818c9d4d325eb248735c97cb1dce39

query I rowsort
SELECT - 61 * + col1 + col2 + 10 AS col2 FROM tab1 AS cor0
----
-1522
-543
-687

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1947
SELECT - CAST( 68 AS SIGNED ) * tab0.col1 + 72 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to ccf748b48219ab48a34528fb975a5874

skipif mysql # not compatible
query I rowsort label-1947
SELECT - CAST ( 68 AS INTEGER ) * tab0.col1 + 72 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to ccf748b48219ab48a34528fb975a5874

query I rowsort
SELECT col1 + + ( 31 ) * col1 * - ( + col0 ) + col1 * ( 24 * + tab1.col0 + 22 * - col0 ) AS col0 FROM tab1
----
-18550
-2236
-30147

query I rowsort
SELECT + col1 + col0 * - col0 AS col0 FROM tab1 AS cor0
----
-4086
-6387
17

query I rowsort
SELECT DISTINCT - col1 - col0 * + 43 * + col0 FROM tab1
----
-176138
-275213
-413

onlyif mysql # use DIV operator for integer division
query I rowsort label-1951
SELECT - col2 DIV col2 + col1 AS col1 FROM tab0
----
85
90
96

skipif mysql # not compatible
query I rowsort label-1951
SELECT - col2 / col2 + col1 AS col1 FROM tab0
----
85
90
96

query I rowsort
SELECT 94 AS col2 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to a4d239626cf0546ac1b2f57bb8407089

query I rowsort
SELECT ALL ( + 12 ) FROM tab1
----
12
12
12

query I rowsort
SELECT DISTINCT ( ( + col0 ) ) * + 76 AS col1 FROM tab1
----
228
4864
6080

onlyif mysql # use DIV operator for integer division
query I rowsort label-1955
SELECT DISTINCT - col0 * + col0 DIV col0 FROM tab2
----
-7
-78
-79

skipif mysql # not compatible
query I rowsort label-1955
SELECT DISTINCT - col0 * + col0 / col0 FROM tab2
----
-7
-78
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 84 col0 FROM tab1
----
84
84
84

query I rowsort
SELECT - - 88 AS col1 FROM tab1 cor0
----
88
88
88

onlyif mysql # use DIV operator for integer division
query I rowsort label-1958
SELECT ALL - col0 * cor0.col0 DIV + col2 + col1 FROM tab0 AS cor0
----
-1128
-5
69

skipif mysql # not compatible
query I rowsort label-1958
SELECT ALL - col0 * cor0.col0 / + col2 + col1 FROM tab0 AS cor0
----
-1128
-5
69

query I rowsort
SELECT ALL - col2 * + col0 - - cor0.col1 FROM tab0 AS cor0
----
-706
-7207
62

query I rowsort
SELECT ALL - + col0 + + cor0.col2 + col2 * - col1 * + col2 FROM tab2 AS cor0
----
-22579
-24589
-39936

query I rowsort
SELECT DISTINCT + col2 * + col1 + tab2.col2 AS col0 FROM tab2
----
1560
684
864

onlyif mysql # use DIV operator for integer division
query I rowsort label-1962
SELECT col2 DIV col2 - col2 FROM tab0
----
-32
-81
0

skipif mysql # not compatible
query I rowsort label-1962
SELECT col2 / col2 - col2 FROM tab0
----
-32
-81
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - tab0.col1 col2 FROM tab0
----
-2
-62
-62

query I rowsort
SELECT - - cor0.col1 + col1 * + cor0.col0 FROM tab0 AS cor0
----
2150
3492
8190

query I rowsort
SELECT DISTINCT + cor0.col2 + col2 + - col1 FROM tab0 AS cor0
----
-20
-95
73

query I rowsort
SELECT - - 2 + - col1 AS col2 FROM tab1 AS cor0
----
-11
-24
-8

onlyif mysql # use DIV operator for integer division
query I rowsort label-1967
SELECT - + col2 DIV - cor0.col0 AS col2 FROM tab2 cor0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-1967
SELECT - + col2 / - cor0.col0 AS col2 FROM tab2 cor0
----
0
0
3

onlyif mysql # use DIV operator for integer division
query I rowsort label-1968
SELECT DISTINCT - + col1 DIV col1 col0 FROM tab2 AS cor0
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1968
SELECT DISTINCT - + col1 / col1 col0 FROM tab2 AS cor0
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col1 + col0 col0 FROM tab0
----
2088
3430
8188

query I rowsort
SELECT DISTINCT - col0 * + col2 - col2 AS col2 FROM tab2
----
-2054
-216
-3040

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) IN ( + col2 )
----

query I rowsort
SELECT DISTINCT - tab2.col1 - + col2 FROM tab2
----
-55
-58
-85

query I rowsort
SELECT ALL + col0 * col0 - col2 FROM tab2
----
22
6058
6203

onlyif mysql # use DIV operator for integer division
query I rowsort label-1974
SELECT - col2 DIV - col1 + col0 FROM tab0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-1974
SELECT - col2 / - col1 + col0 FROM tab0
----
24
35
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-1975
SELECT DISTINCT col2 * - col2 + + col0 * col1 DIV - tab1.col0 AS col0 FROM tab1
----
-2942
-3259
-9229

skipif mysql # not compatible
query I rowsort label-1975
SELECT DISTINCT col2 * - col2 + + col0 * col1 / - tab1.col0 AS col0 FROM tab1
----
-2942
-3259
-9229

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1976
SELECT ( - col1 ) * + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1976
SELECT ( - col1 ) * + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 19 * - col1 * ( - cor0.col0 + - col1 ) AS col0 FROM tab2 AS cor0
----
153577
22382
31008

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 * col2 col1 FROM tab2 cor0
----
1534
646
837

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - col1 + + tab2.col0 + tab2.col1 * - col2 * col2 col0 FROM tab2
----
-23429
-25115
-41340

query I rowsort
SELECT DISTINCT - col2 * - col1 * col0 + col0 FROM tab1
----
36544
4215
99920

query I rowsort
SELECT col0 + - col1 * col2 AS col2 FROM tab0
----
-2814
-62
-7373

onlyif mysql # use DIV operator for integer division
query I rowsort label-1982
SELECT col0 + + col1 DIV tab0.col1 AS col0 FROM tab0
----
25
36
90

skipif mysql # not compatible
query I rowsort label-1982
SELECT col0 + + col1 / tab0.col1 AS col0 FROM tab0
----
25
36
90

query I rowsort
SELECT - col1 * + col0 + col1 - - col2 AS col1 FROM tab0
----
-1945
-3297
-7926

query I rowsort
SELECT ALL cor0.col1 + + col2 AS col0 FROM tab0 cor0
----
119
173
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col0 * col0 - + col0 col1 FROM tab1 AS cor0
----
4032
6
6320

query I rowsort
SELECT col0 * col1 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) = col1 + + col2 * + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + - col0 - + col0 col0 FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT DISTINCT + col2 * col0 * col1 AS col2 FROM tab1
----
36480
4212
99840

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col1 * col1 - + col2 * - col2 NOT IN ( col1 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

onlyif mysql # use DIV operator for integer division
query I rowsort label-1990
SELECT + col2 * + col1 + - col2 DIV tab2.col1 AS col0 FROM tab2
----
1534
644
837

skipif mysql # not compatible
query I rowsort label-1990
SELECT + col2 * + col1 + - col2 / tab2.col1 AS col0 FROM tab2
----
1534
644
837

query I rowsort
SELECT + col0 + col0 * + col1 AS col2 FROM tab0
----
2088
3430
8188

query I rowsort
SELECT DISTINCT + tab2.col0 + col1 * col0 FROM tab2
----
1422
224
4680

query I rowsort
SELECT + col2 * col0 + - tab0.col0 AS col1 FROM tab0
----
0
7209
768

query I rowsort
SELECT ALL col0 * - col2 * col2 AS col1 FROM tab2 WHERE ( NULL ) IN ( tab2.col1 / - tab2.col1 )
----

query I rowsort
SELECT - col2 * + col2 * + col1 FROM tab1
----
-119808
-32490
-75816

query I rowsort
SELECT ALL - col0 * col2 * col1 FROM tab1
----
-36480
-4212
-99840

onlyif mysql # use DIV operator for integer division
query I rowsort label-1997
SELECT col0 DIV col0 - - col0 FROM tab2 AS cor0
----
79
8
80

skipif mysql # not compatible
query I rowsort label-1997
SELECT col0 / col0 - - col0 FROM tab2 AS cor0
----
79
8
80

query I rowsort
SELECT col0 + - col0 * col1 * col1 FROM tab1 AS cor0
----
-13440
-2025
-6336

query I rowsort
SELECT ALL tab1.col2 + col1 * + col2 - col1 * col0 FROM tab1
----
-13
1380
304

onlyif mysql # use DIV operator for integer division
query I rowsort label-2000
SELECT DISTINCT col2 + - col1 - col1 * tab1.col1 DIV col0 AS col1 FROM tab1
----
-197
46
81

skipif mysql # not compatible
query I rowsort label-2000
SELECT DISTINCT col2 + - col1 - col1 * tab1.col1 / col0 AS col1 FROM tab1
----
-197
46
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-2001
SELECT - col2 DIV col0 + tab1.col0 FROM tab1
----
-15
64
79

skipif mysql # not compatible
query I rowsort label-2001
SELECT - col2 / col0 + tab1.col0 FROM tab1
----
-15
64
79

query I rowsort
SELECT ALL 92 * + col2 + - col2 FROM tab1
----
4914
5187
8736

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2003
SELECT CAST( NULL AS SIGNED ) + - col0 + + cor0.col0 * + 99 * col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2003
SELECT CAST ( NULL AS INTEGER ) + - col0 + + cor0.col0 * + 99 * col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2004
SELECT CAST( NULL AS SIGNED ) - + 62 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2004
SELECT CAST ( NULL AS INTEGER ) - + 62 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col1 * - cor0.col1 + col1 AS col1 FROM tab2 cor0
----
-272
-3422
-930

query I rowsort
SELECT ALL + ( cor0.col2 ) * - col2 * - 40 - + col2 FROM tab2 AS cor0
----
27014
29133
57722

query I rowsort
SELECT ALL + 75 * col2 FROM tab2
----
1950
2025
2850

query I rowsort
SELECT DISTINCT - ( col0 ) - + col1 AS col0 FROM tab1 AS cor0
----
-29
-74
-93

query I rowsort
SELECT ALL 52 AS col0 FROM tab2, tab1 cor0
----
9 values hashing to 7f4ae30893ab330784829711032ae599

query I rowsort
SELECT ALL col0 * col2 * col2 AS col2 FROM tab1
----
207936
737280
8748

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col0 + + 61 col1 FROM tab2
----
139
140
68

onlyif mysql # use DIV operator for integer division
query I rowsort label-2012
SELECT + + cor0.col0 DIV + ( 76 * - col0 ) FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2012
SELECT + + cor0.col0 / + ( 76 * - col0 ) FROM tab1 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2013
SELECT ALL - col0 * + CAST( - col1 AS SIGNED ) FROM tab2
----
1343
217
4602

skipif mysql # not compatible
query I rowsort label-2013
SELECT ALL - col0 * + CAST ( - col1 AS INTEGER ) FROM tab2
----
1343
217
4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-2014
SELECT DISTINCT + col1 * + ( - col2 ) + col0 DIV + ( 93 ) AS col1 FROM tab1 AS cor0
----
-1248
-1404
-570

skipif mysql # not compatible
query I rowsort label-2014
SELECT DISTINCT + col1 * + ( - col2 ) + col0 / + ( 93 ) AS col1 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT DISTINCT + col2 * + 79 FROM tab1 cor0
----
4266
4503
7584

query I rowsort
SELECT DISTINCT - col0 * - 20 FROM tab2 AS cor0
----
140
1560
1580

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 50 col2 FROM tab0, tab0 AS cor0
----
9 values hashing to c7432a968c8352c12996dfa54dd4b9e8

onlyif mysql # use DIV operator for integer division
query I rowsort label-2018
SELECT + ( - 15 ) + - col0 DIV col2 - 91 col2 FROM tab0 AS cor0
----
-106
-107
-141

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2018
SELECT + ( - 15 ) + - col0 / col2 - 91 col2 FROM tab0 AS cor0
----
-106
-107
-141

query I rowsort
SELECT DISTINCT + col1 * + 92 AS col0 FROM tab2 AS cor0
----
1564
2852
5428

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2020
SELECT + CAST( NULL AS SIGNED ) + col0 * - cor0.col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2020
SELECT + CAST ( NULL AS INTEGER ) + col0 * - cor0.col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2021
SELECT - - CAST( NULL AS SIGNED ) / + cor0.col2 + col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2021
SELECT - - CAST ( NULL AS INTEGER ) / + cor0.col2 + col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + col2 + cor0.col0 * cor0.col1 + ( col0 ) FROM tab0 AS cor0
----
2055
3429
8106

onlyif mysql # use DIV operator for integer division
query I rowsort label-2023
SELECT - - CAST( - ( col0 ) AS SIGNED ) + + 49 DIV col2 - + col0 AS col1 FROM tab0 AS cor0
----
-178
-21
-47

skipif mysql # not compatible
query I rowsort label-2023
SELECT - - CAST ( - ( col0 ) AS INTEGER ) + + 49 / col2 - + col0 AS col1 FROM tab0 AS cor0
----
-178
-21
-47

query I rowsort
SELECT ALL - 33 * 24 FROM tab2 AS cor0
----
-792
-792
-792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 86 * - col2 + col2 col1 FROM tab2 AS cor0
----
-2210
-2295
-3230

query I rowsort
SELECT ALL - col2 * + col0 * + col1 AS col2 FROM tab0 cor0
----
-3395
-664118
-68112

onlyif mysql # use DIV operator for integer division
query I rowsort label-2027
SELECT ALL col1 DIV - col2 - - col1 AS col2 FROM tab0
----
0
84
90

skipif mysql # not compatible
query I rowsort label-2027
SELECT ALL col1 / - col2 - - col1 AS col2 FROM tab0
----
0
84
90

query I rowsort
SELECT - tab2.col0 * ( ( + col2 ) ) + - 26 FROM tab2
----
-2054
-215
-3028

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2029
SELECT - CAST( - 78 AS SIGNED ) FROM tab2 AS cor0
----
78
78
78

skipif mysql # not compatible
query I rowsort label-2029
SELECT - CAST ( - 78 AS INTEGER ) FROM tab2 AS cor0
----
78
78
78

query I rowsort
SELECT ALL + col0 + 75 * - 36 - col2 AS col0 FROM tab0
----
-2666
-2693
-2709

query I rowsort
SELECT DISTINCT - col0 - 45 * - 65 FROM tab1
----
2845
2861
2922

query I rowsort
SELECT - 45 * 33 + col0 FROM tab1 AS cor0
----
-1405
-1421
-1482

query I rowsort
SELECT 67 * - cor0.col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 1d196def0a4a7080184d3dcd07e1df43

query I rowsort
SELECT DISTINCT - 16 AS col0 FROM tab2, tab1 AS cor0
----
-16

query I rowsort
SELECT + 58 + cor0.col0 FROM tab1 AS cor0
----
122
138
61

query I rowsort
SELECT ALL 53 * col0 AS col1 FROM tab2 AS cor0
----
371
4134
4187

skipif mysql # not compatible
query I rowsort
SELECT - CAST ( + col2 AS REAL ) * tab2.col2 AS col2 FROM tab2
----
-1444
-676
-729

query I rowsort
SELECT DISTINCT - 26 * cor0.col1 AS col1 FROM tab1 AS cor0
----
-260
-338
-676

onlyif mysql # use DIV operator for integer division
query I rowsort label-2039
SELECT DISTINCT col0 DIV + col2 + col2 + - col2 AS col1 FROM tab0
----
0
1
35

skipif mysql # not compatible
query I rowsort label-2039
SELECT DISTINCT col0 / + col2 + col2 + - col2 AS col1 FROM tab0
----
0
1
35

skipif mysql # not compatible
query I rowsort
SELECT ALL - CAST ( + col1 AS REAL ) + - tab1.col1 * - col0 + col2 FROM tab1
----
106
1123
687

query I rowsort
SELECT - - ( col1 ) + + col2 AS col1 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT + ( col0 ) * - col1 AS col1 FROM tab2
----
-1343
-217
-4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-2043
SELECT col2 DIV - 58 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2043
SELECT col2 / - 58 FROM tab2
----
0
0
0

query I rowsort
SELECT tab2.col1 * + tab2.col0 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to bc669a3cc969c7619ebcffb5400ba0ba

query I rowsort
SELECT col0 + ( + col2 ) * col2 FROM tab0 cor0
----
1113
36
6813

query I rowsort
SELECT col0 + + 43 * - col0 * - col1 FROM tab0 AS cor0
----
146020
348346
88776

query I rowsort
SELECT DISTINCT + 1 * col2 AS col1 FROM tab1
----
54
57
96

query I rowsort
SELECT - 9 * - col0 AS col0 FROM tab0
----
216
315
801

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * col1 - + col0 col1 FROM tab1 AS cor0
----
36
673
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-2050
SELECT DISTINCT - col2 * col2 DIV cor0.col2 - - cor0.col0 * + col2 AS col2 FROM tab0 AS cor0
----
34
7216
759

skipif mysql # not compatible
query I rowsort label-2050
SELECT DISTINCT - col2 * col2 / cor0.col2 - - cor0.col0 * + col2 AS col2 FROM tab0 AS cor0
----
34
7216
759

query I rowsort
SELECT ALL col1 + ( - col0 ) * - cor0.col0 AS col1 FROM tab2 AS cor0
----
6143
6258
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-2052
SELECT col0 * + col1 + - 47 DIV + col1 FROM tab2 cor0
----
1341
216
4602

skipif mysql # not compatible
query I rowsort label-2052
SELECT col0 * + col1 + - 47 / + col1 FROM tab2 cor0
----
1341
216
4602

query I rowsort
SELECT cor0.col1 * 38 FROM tab2 cor0
----
1178
2242
646

query I rowsort
SELECT ALL + ( - ( + col1 ) ) FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT DISTINCT col1 * + col0 * 73 + - col0 * - tab1.col2 AS col2 FROM tab1
----
50368
5856
83600

query I rowsort
SELECT DISTINCT col0 + + col1 + col2 FROM tab2
----
134
163
65

query I rowsort
SELECT ALL - col0 + + 59 AS col1 FROM tab0 AS cor0
----
-30
24
35

query I rowsort
SELECT - 76 + col0 * col0 * - col0 FROM tab2 AS cor0
----
-419
-474628
-493115

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 83 * - col1 col2 FROM tab2 AS cor0
----
-1411
-2573
-4897

query I rowsort
SELECT DISTINCT - - 25 * col1 FROM tab0 AS cor0
----
2150
2275
2425

query I rowsort
SELECT 21 + 29 FROM tab2, tab1 AS cor0
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2062
SELECT col2 - + CAST( + 84 AS SIGNED ) col0 FROM tab2
----
-46
-57
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2062
SELECT col2 - + CAST ( + 84 AS INTEGER ) col0 FROM tab2
----
-46
-57
-58

query I rowsort
SELECT col0 * - col2 + - col0 * - col0 * col2 FROM tab0
----
1190
18216
642224

query I rowsort
SELECT ALL + col1 * + ( + col0 ) + col1 FROM tab2
----
1360
248
4661

query I rowsort
SELECT DISTINCT col2 + - 80 FROM tab0
----
-47
-79
2

query I rowsort
SELECT - col1 * + tab2.col1 + col0 * col0 FROM tab2
----
-912
2603
5952

query I rowsort
SELECT ALL - col0 * + col2 * col0 + + col2 AS col0 FROM tab1 AS cor0
----
-233415
-432
-614304

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2068
SELECT ALL + 18 * + col0 + CAST( NULL AS SIGNED ) / + cor0.col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2068
SELECT ALL + 18 * + col0 + CAST ( NULL AS INTEGER ) / + cor0.col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 92 * col0 + + col2 AS col2 FROM tab2 cor0
----
-617
-7150
-7230

query I rowsort
SELECT DISTINCT - col0 + col1 + + ( col0 + col0 ) AS col1 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT ALL - 1 + + cor0.col0 + 15 FROM tab1 AS cor0
----
17
78
94

query I rowsort
SELECT 5 + col2 AS col1 FROM tab2 AS cor0
----
31
32
43

query I rowsort
SELECT + col0 * col1 + cor0.col0 * ( + col0 ) FROM tab1 AS cor0
----
4736
7440
87

query I rowsort
SELECT DISTINCT cor0.col0 * cor0.col2 * 49 FROM tab1, tab2 AS cor0
----
147098
9261
99372

query I rowsort
SELECT ALL + ( col2 ) * col1 AS col2 FROM tab0
----
2838
7462
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + 19 ) col0 FROM tab1
----
-19
-19
-19

query I rowsort
SELECT ALL col1 + col1 * 0 FROM tab1
----
10
13
26

query I rowsort
SELECT - 98 + + col1 * col0 FROM tab1 AS cor0
----
-20
542
942

query I rowsort
SELECT + 29 + - col1 FROM tab1 AS cor0
----
16
19
3

query I rowsort
SELECT + cor0.col1 * - col0 - col1 * col2 * + col1 FROM tab0 AS cor0
----
-12804
-246132
-687141

query I rowsort
SELECT + 44 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 0cc3e52e781e46962291c3060c6ae73b

onlyif mysql # use DIV operator for integer division
query I rowsort label-2082
SELECT + col1 DIV cor0.col0 + - cor0.col0 AS col2 FROM tab2 AS cor0
----
-3
-78
-79

skipif mysql # not compatible
query I rowsort label-2082
SELECT + col1 / cor0.col0 + - cor0.col0 AS col2 FROM tab2 AS cor0
----
-3
-78
-79

query I rowsort
SELECT ALL + 94 - col2 AS col0 FROM tab1
----
-2
37
40

query I rowsort
SELECT DISTINCT col0 * + col0 - + ( col2 ) FROM tab2
----
22
6058
6203

query I rowsort
SELECT DISTINCT 98 * col0 FROM tab0
----
2352
3430
8722

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - col1 * col0 / CAST ( col0 AS REAL ) AS col2 FROM tab1 cor0
----
-10
-13
-26

onlyif mysql # use DIV operator for integer division
query I rowsort label-2087
SELECT - + col2 DIV + col0 col2 FROM tab0 AS cor0
----
-1
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2087
SELECT - + col2 / + col0 col2 FROM tab0 AS cor0
----
-1
0
0

query I rowsort
SELECT DISTINCT 54 * col0 + col2 * + col2 FROM tab1
----
13536
3078
6705

onlyif mysql # use DIV operator for integer division
query I rowsort label-2089
SELECT col1 * + col0 + + col0 * col1 + - col1 * col1 DIV + 45 AS col0 FROM tab1
----
1278
141
2077

skipif mysql # not compatible
query I rowsort label-2089
SELECT col1 * + col0 + + col0 * col1 + - col1 * col1 / + 45 AS col0 FROM tab1
----
1278
141
2077

query I rowsort
SELECT DISTINCT - - cor1.col2 FROM tab2 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab0, tab2 cor2
----
54
57
96

query I rowsort
SELECT ALL col2 + 31 * ( + col1 ) * - 40 FROM tab0 AS cor0
----
-106607
-112758
-120279

query I rowsort
SELECT ALL col1 - ( col0 ) FROM tab2 AS cor0
----
-19
-62
24

onlyif mysql # use DIV operator for integer division
query I rowsort label-2093
SELECT col2 DIV col1 + + cor0.col2 FROM tab1 AS cor0
----
103
56
62

skipif mysql # not compatible
query I rowsort label-2093
SELECT col2 / col1 + + cor0.col2 FROM tab1 AS cor0
----
103
56
62

query I rowsort
SELECT DISTINCT - col1 - ( - ( col1 ) ) FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT + cor0.col1 * ( col0 ) AS col2 FROM tab1 AS cor0
----
1040
640
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-2096
SELECT + col2 + tab0.col1 DIV col0 + - tab0.col0 col1 FROM tab0
----
-32
-6
12

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2096
SELECT + col2 + tab0.col1 / col0 + - tab0.col0 col1 FROM tab0
----
-32
-6
12

query I rowsort
SELECT col2 * col1 + tab1.col0 AS col1 FROM tab1
----
1328
1407
634

query I rowsort
SELECT + + col1 + + col2 * col0 AS col1 FROM tab1 cor0
----
188
3658
7693

query I rowsort
SELECT - col1 + - col1 * - cor0.col0 FROM tab0 AS cor0
----
1978
3298
8008

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - cor0.col1 * + col1 col0 FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT - + col2 + ( col0 ) + + cor0.col1 FROM tab1 AS cor0
----
-25
-3
17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * col2 + - 69 col2 FROM tab2 AS cor0
----
-1603
-715
-906

query I rowsort
SELECT - - col1 - col2 AS col1 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT ALL - cor0.col2 * + 73 + col2 + + cor0.col0 AS col1 FROM tab1 AS cor0
----
-3885
-4040
-6832

query I rowsort
SELECT - col2 * + 74 AS col2 FROM tab1 AS cor0
----
-3996
-4218
-7104

onlyif mysql # use DIV operator for integer division
query I rowsort label-2106
SELECT col0 * - 13 - - 20 DIV col1 FROM tab0 AS cor0
----
-1157
-312
-455

skipif mysql # not compatible
query I rowsort label-2106
SELECT col0 * - 13 - - 20 / col1 FROM tab0 AS cor0
----
-1157
-312
-455

onlyif mysql # use DIV operator for integer division
query I rowsort label-2107
SELECT ALL + col2 + + ( + col0 ) DIV + col2 FROM tab1 AS cor0
----
54
58
96

skipif mysql # not compatible
query I rowsort label-2107
SELECT ALL + col2 + + ( + col0 ) / + col2 FROM tab1 AS cor0
----
54
58
96

query I rowsort
SELECT DISTINCT - col0 * col2 - cor0.col1 * col1 FROM tab1 AS cor0
----
-3748
-7849
-838

query I rowsort
SELECT - - cor0.col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c61d27a0022e6d022371dc58819ab272

query I rowsort
SELECT ALL - + cor0.col0 * + 96 FROM tab0 AS cor0
----
-2304
-3360
-8544

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2111
SELECT + CAST( NULL AS SIGNED ) + col2 / + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2111
SELECT + CAST ( NULL AS INTEGER ) + col2 / + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort
SELECT + + CAST ( + col1 AS REAL ) * col2 AS col2 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT DISTINCT - ( 47 ) + col2 * col0 FROM tab0 AS cor0
----
-12
7251
745

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 16 * col1 col2 FROM tab0 AS cor0
----
1376
1456
1552

onlyif mysql # use DIV operator for integer division
query I rowsort label-2115
SELECT cor0.col1 DIV - 6 FROM tab2 AS cor0
----
-2
-5
-9

skipif mysql # not compatible
query I rowsort label-2115
SELECT cor0.col1 / - 6 FROM tab2 AS cor0
----
-2
-5
-9

query I rowsort
SELECT ALL - ( - col0 ) + col2 AS col1 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT ALL col2 + cor0.col2 AS col1 FROM tab1 AS cor0
----
108
114
192

onlyif mysql # use DIV operator for integer division
query I rowsort label-2118
SELECT DISTINCT 3 DIV 63 AS col2 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-2118
SELECT DISTINCT 3 / 63 AS col2 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
0

query I rowsort
SELECT - - 77 AS col1 FROM tab2 AS cor0
----
77
77
77

query I rowsort
SELECT DISTINCT + col2 * col2 + 55 AS col1 FROM tab1 AS cor0
----
2971
3304
9271

onlyif mysql # use DIV operator for integer division
query I rowsort label-2121
SELECT 2 DIV - 49 + + tab0.col0 FROM tab0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-2121
SELECT 2 / - 49 + + tab0.col0 FROM tab0
----
24
35
89

query I rowsort
SELECT + col0 * col1 * + 89 FROM tab1 AS cor0
----
56960
6942
92560

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - col1 ) + - col2 col1 FROM tab0
----
53
9
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-2124
SELECT - - col0 DIV - cor0.col0 - + col2 FROM tab1 AS cor0
----
-55
-58
-97

skipif mysql # not compatible
query I rowsort label-2124
SELECT - - col0 / - cor0.col0 - + col2 FROM tab1 AS cor0
----
-55
-58
-97

query I rowsort
SELECT DISTINCT + col2 * + col1 + + col1 AS col2 FROM tab2 AS cor0
----
1593
663
868

query I rowsort
SELECT 87 - 99 * col2 AS col1 FROM tab2 AS cor0
----
-2487
-2586
-3675

query I rowsort
SELECT + col0 * cor0.col1 + - col0 FROM tab0 AS cor0
----
2040
3360
8010

query I rowsort
SELECT col0 * - 81 + col0 * + col1 - col1 * - cor0.col2 * col0 FROM tab0 AS cor0
----
3955
665008
68232

query I rowsort
SELECT - col2 + + 57 FROM tab2
----
19
30
31

onlyif mysql # use DIV operator for integer division
query I rowsort label-2130
SELECT col0 DIV + 97 + col2 DIV - col0 AS col0 FROM tab2
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-2130
SELECT col0 / + 97 + col2 / - col0 AS col0 FROM tab2
----
-3
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2131
SELECT 7 / + cor0.col1 + CAST( NULL AS SIGNED ) FROM tab2, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2131
SELECT 7 / + cor0.col1 + CAST ( NULL AS INTEGER ) FROM tab2, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ALL col0 + + col2 * col2 * - col1 AS col0 FROM tab2
----
-22592
-24469
-39806

query I rowsort
SELECT + - 59 - col1 FROM tab2 AS cor0
----
-118
-76
-90

query I rowsort
SELECT ALL + + cor0.col0 + col2 * - col0 AS col1 FROM tab1 AS cor0
----
-159
-3584
-7600

query I rowsort
SELECT + ( col0 ) * cor0.col1 + - 7 FROM tab2 AS cor0
----
1336
210
4595

query I rowsort
SELECT + col0 * 63 AS col1 FROM tab1 AS cor0
----
189
4032
5040

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab2.col2 col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75

query I rowsort
SELECT ALL + col2 * col2 * + col1 AS col2 FROM tab0 AS cor0
----
611884
93654
97

query I rowsort
SELECT DISTINCT col0 * + tab1.col1 * col1 FROM tab1
----
13520
2028
6400

query I rowsort
SELECT DISTINCT + + col0 * col0 + col0 FROM tab2 AS cor0
----
56
6162
6320

query I rowsort
SELECT DISTINCT + col1 + - col1 * + col1 * + col0 AS col1 FROM tab2 AS cor0
----
-22814
-271459
-6696

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab1 AS cor2, tab1 AS cor3
----
3645 values hashing to 44545a6297aa29bb730ffb907c13bc58

query I rowsort
SELECT + col2 - + 45 FROM tab0
----
-12
-44
37

query I rowsort
SELECT DISTINCT - col2 + - 95 AS col1 FROM tab1
----
-149
-152
-191

query I rowsort
SELECT 83 AS col2 FROM tab1, tab2 cor0, tab2 cor1, tab1 AS cor2
----
81 values hashing to 5ced3720d5aeff0dd77d5059a38001b6

query I rowsort
SELECT + 53 FROM tab2, tab0 cor0
----
9 values hashing to fede6033dee346dbd272085c05724fda

query I rowsort
SELECT ALL - ( - col0 ) * - tab0.col2 FROM tab0
----
-35
-7298
-792

query I rowsort
SELECT ALL - ( col2 ) * cor0.col2 AS col2 FROM tab1 AS cor0
----
-2916
-3249
-9216

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2149
SELECT - CAST( NULL AS SIGNED ) + ( col1 ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2149
SELECT - CAST ( NULL AS INTEGER ) + ( col1 ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2150
SELECT ALL + ( + col1 ) * col0 * - CAST( NULL AS SIGNED ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2150
SELECT ALL + ( + col1 ) * col0 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - + ( + 88 ) + - cor0.col1 FROM tab0 AS cor0
----
-174
-179
-185

query I rowsort
SELECT ( - col2 ) + + col2 FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - 77 ) * - col1 col0 FROM tab0 AS cor0
----
6622
7007
7469

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2154
SELECT DISTINCT CAST( + col0 AS SIGNED ) + - cor0.col0 * - 69 AS col0 FROM tab0 AS cor0
----
1680
2450
6230

skipif mysql # not compatible
query I rowsort label-2154
SELECT DISTINCT CAST ( + col0 AS INTEGER ) + - cor0.col0 * - 69 AS col0 FROM tab0 AS cor0
----
1680
2450
6230

query I rowsort
SELECT + + col2 + + col1 * 31 FROM tab0 AS cor0
----
2699
2903
3008

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 24 * col0 col0 FROM tab2
----
168
1872
1896

query I rowsort
SELECT ALL 91 * - col2 FROM tab1
----
-4914
-5187
-8736

query I rowsort
SELECT - - 75 + - cor0.col1 AS col2 FROM tab2 AS cor0
----
16
44
58

query I rowsort
SELECT - col2 * - cor0.col2 + + col1 FROM tab0 AS cor0
----
1175
6815
98

query I rowsort
SELECT + - cor0.col0 + col0 * + col1 FROM tab1 cor0
----
576
75
960

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 + - col1 col2 FROM tab0 AS cor0
----
-53
-9
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-2162
SELECT ALL + - col1 * col0 DIV - 16 AS col0 FROM tab0 AS cor0
----
129
212
506

skipif mysql # not compatible
query I rowsort label-2162
SELECT ALL + - col1 * col0 / - 16 AS col0 FROM tab0 AS cor0
----
129
212
506

query I rowsort
SELECT - col1 + - ( + 84 ) AS col2 FROM tab2 AS cor0
----
-101
-115
-143

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2164
SELECT DISTINCT CAST( ( col0 ) AS SIGNED ) * col0 + - col2 + - col2 col1 FROM tab1
----
-99
3982
6208

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2164
SELECT DISTINCT CAST ( ( col0 ) AS INTEGER ) * col0 + - col2 + - col2 col1 FROM tab1
----
-99
3982
6208

query I rowsort
SELECT DISTINCT tab1.col0 AS col1 FROM tab1, tab1 cor0
----
3
64
80

query I rowsort
SELECT DISTINCT - col1 + - 30 * + col0 AS col0 FROM tab0
----
-1147
-2761
-806

onlyif mysql # use DIV operator for integer division
query I rowsort label-2167
SELECT CAST( + 75 AS SIGNED ) * + col0 + - col2 + + col1 DIV - col0 AS col0 FROM tab2 AS cor0
----
494
5824
5887

skipif mysql # not compatible
query I rowsort label-2167
SELECT CAST ( + 75 AS INTEGER ) * + col0 + - col2 + + col1 / - col0 AS col0 FROM tab2 AS cor0
----
494
5824
5887

query I rowsort
SELECT tab2.col2 * 6 + + col0 + - 3 AS col2 FROM tab2
----
166
231
304

query I rowsort
SELECT DISTINCT tab1.col2 - - col1 FROM tab1
----
109
67
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 50 col2 FROM tab2 AS cor0
----
-50
-50
-50

query I rowsort
SELECT ALL - 43 * 60 + + col2 FROM tab0 AS cor0
----
-2498
-2547
-2579

query I rowsort
SELECT - col2 - - 97 AS col1 FROM tab2 AS cor0
----
59
70
71

query I rowsort
SELECT DISTINCT - 89 + - col1 + + col0 AS col1 FROM tab2 cor0
----
-113
-27
-70

onlyif mysql # use DIV operator for integer division
query I rowsort label-2174
SELECT ALL + col2 DIV - cor0.col0 + + col2 AS col1 FROM tab2 AS cor0
----
24
26
38

skipif mysql # not compatible
query I rowsort label-2174
SELECT ALL + col2 / - cor0.col0 + + col2 AS col1 FROM tab2 AS cor0
----
24
26
38

query I rowsort
SELECT DISTINCT + - 43 * 62 + - col1 FROM tab2 AS cor0
----
-2683
-2697
-2725

query I rowsort
SELECT - cor0.col1 - cor0.col2 FROM tab0 AS cor0
----
-119
-173
-98

query I rowsort
SELECT - 60 * col2 + col0 FROM tab0 AS cor0
----
-1956
-25
-4831

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 30 * - col2 col1 FROM tab0 AS cor0
----
2460
30
990

query I rowsort
SELECT col2 * + col1 * + col0 AS col2 FROM tab1 cor0
----
36480
4212
99840

query I rowsort
SELECT DISTINCT + - col1 + col2 * 1 AS col1 FROM tab2 AS cor0
----
-33
-4
21

query I rowsort
SELECT + 51 + - col1 * + ( - col2 ) FROM tab0 AS cor0
----
148
2889
7513

onlyif mysql # use DIV operator for integer division
query I rowsort label-2182
SELECT ALL - - col0 DIV col1 col2 FROM tab2 AS cor0
----
0
1
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2182
SELECT ALL - - col0 / col1 col2 FROM tab2 AS cor0
----
0
1
4

query I rowsort
SELECT ALL + ( col2 ) - 75 AS col0 FROM tab1 AS cor0
----
-18
-21
21

onlyif mysql # use DIV operator for integer division
query I rowsort label-2184
SELECT DISTINCT + + col0 DIV - col1 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-2184
SELECT DISTINCT + + col0 / - col1 FROM tab0 cor0
----
0

query I rowsort
SELECT ALL - - col0 + - cor0.col2 * cor0.col0 AS col0 FROM tab0 AS cor0
----
-7209
-768
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2186
SELECT ALL col0 DIV tab0.col1 col2 FROM tab0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2186
SELECT ALL col0 / tab0.col1 col2 FROM tab0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2187
SELECT - 16 * col2 + - col2 + - CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2187
SELECT - 16 * col2 + - col2 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col0 * 85 + col2 * col0 AS col1 FROM tab1 AS cor0
----
14480
417
9088

query I rowsort
SELECT DISTINCT - cor0.col2 * + col1 * - col0 AS col0 FROM tab2 cor0
----
119652
51034
5859

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 * 67 col0 FROM tab2 AS cor0
----
469
5226
5293

query I rowsort
SELECT - cor0.col0 AS col0 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to c82df1de3cb666224690a83f3d790d79

query I rowsort
SELECT ALL cor0.col1 + col2 * - 62 AS col1 FROM tab0 AS cor0
----
-1960
-4993
35

query I rowsort
SELECT ALL + - col0 + 59 FROM tab0 AS cor0
----
-30
24
35

query I rowsort
SELECT - 4 * 61 FROM tab1, tab0 AS cor0
----
9 values hashing to e1b505b29b0279ae40e8d474dbf4d476

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2195
SELECT - + CAST( NULL AS DECIMAL ) + + ( + col2 ) * - 97 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2195
SELECT - + CAST ( NULL AS REAL ) + + ( + col2 ) * - 97 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + tab0.col0 * - 3 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to cc772670b71e4d935bad8c8e9dd3d9fd

query I rowsort
SELECT - col2 - col0 * - ( col1 * - col2 ) AS col1 FROM tab1
----
-36537
-4266
-99936

onlyif mysql # use DIV operator for integer division
query I rowsort label-2198
SELECT DISTINCT col0 + col1 + - cor0.col0 * + ( col1 + cor0.col1 ) DIV col1 col2 FROM tab0 cor0
----
2
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2198
SELECT DISTINCT col0 + col1 + - cor0.col0 * + ( col1 + cor0.col1 ) / col1 col2 FROM tab0 cor0
----
2
62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2199
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * col2 + col1 col2 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2199
SELECT DISTINCT - CAST ( NULL AS REAL ) * col2 + col1 col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + col0 * + 1 AS col0 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT 77 AS col2 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to d7b027bca5d37c67e29013904def8125

query I rowsort
SELECT ALL + ( + col2 ) + + col0 + col0 AS col1 FROM tab1 cor0
----
185
256
60

query I rowsort
SELECT ALL + col1 * + col2 * + col0 + + 43 * ( + col1 ) + - ( + col2 * - cor0.col1 ) AS col2 FROM tab2 AS cor0
----
123723
52411
8029

query I rowsort
SELECT DISTINCT + - 19 AS col2 FROM tab2 AS cor0
----
-19

query I rowsort
SELECT ALL - - col0 + + cor0.col0 AS col1 FROM tab1 AS cor0
----
128
160
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col1 col0 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6

query I rowsort
SELECT + 92 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a

query I rowsort
SELECT col1 + + 37 AS col2 FROM tab2
----
54
68
96

query I rowsort
SELECT ALL - 40 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to f02f17e9bc17e514af018c6f245ed7a9

query I rowsort
SELECT - ( + tab2.col1 ) + - tab2.col0 * + col1 FROM tab2
----
-1360
-248
-4661

query I rowsort
SELECT ALL 53 + - cor0.col0 AS col2 FROM tab1 AS cor0
----
-11
-27
50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 - - 82 col1 FROM tab0 AS cor0
----
168
173
179

query I rowsort
SELECT - + col0 + + col1 * - cor0.col1 FROM tab1 cor0
----
-164
-249
-679

query I rowsort
SELECT ALL + col2 * + cor0.col0 + col1 * ( + col0 ) - cor0.col0 FROM tab0 AS cor0
----
15308
2832
3395

query I rowsort
SELECT DISTINCT col0 + + col0 * 6 * - col2 AS col2 FROM tab2
----
-1127
-12090
-17933

query I rowsort
SELECT DISTINCT - col1 + col1 + - 76 AS col0 FROM tab0 AS cor0
----
-76

query I rowsort
SELECT - 72 * col0 * - 6 + + ( col2 ) AS col0 FROM tab1 AS cor0
----
1350
27705
34656

query I rowsort
SELECT ALL + + col1 * col2 * - 57 FROM tab1 AS cor0
----
-32490
-71136
-80028

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2219
SELECT col0 + - cor0.col2 + + CAST( - 18 * col1 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-1557
-1631
-1712

skipif mysql # not compatible
query I rowsort label-2219
SELECT col0 + - cor0.col2 + + CAST ( - 18 * col1 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-1557
-1631
-1712

query I rowsort
SELECT DISTINCT + col2 + col0 * ( + col2 ) FROM tab2 cor0
----
2054
216
3040

query I rowsort
SELECT ALL col2 + + 75 FROM tab0 cor0
----
108
157
76

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2222
SELECT DISTINCT - col2 * CAST( - col0 * col0 AS SIGNED ) - - col2 FROM tab0 AS cor0
----
1226
19041
649604

skipif mysql # not compatible
query I rowsort label-2222
SELECT DISTINCT - col2 * CAST ( - col0 * col0 AS INTEGER ) - - col2 FROM tab0 AS cor0
----
1226
19041
649604

query I rowsort
SELECT ALL + col1 * 89 * col1 AS col2 FROM tab0 AS cor0
----
658244
737009
837401

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 6 col1 FROM tab1, tab0 AS cor0, tab0 cor1
----
27 values hashing to f1e8f0199f3714ee8fcc24ce0cc3ea04

query I rowsort
SELECT DISTINCT col2 * ( - 81 ) AS col2 FROM tab1 AS cor0
----
-4374
-4617
-7776

query I rowsort
SELECT DISTINCT col1 * 29 AS col1 FROM tab0 AS cor0
----
2494
2639
2813

query I rowsort
SELECT DISTINCT 25 * cor0.col2 AS col2 FROM tab0, tab1 AS cor0
----
1350
1425
2400

query I rowsort
SELECT ALL col0 * 89 + - col1 FROM tab1 AS cor0
----
241
5686
7107

query I rowsort
SELECT - - col1 + - ( col0 ) * - col0 AS col0 FROM tab0 AS cor0
----
1322
662
8012

query I rowsort
SELECT + - 46 AS col0 FROM tab2 AS cor0
----
-46
-46
-46

query I rowsort
SELECT DISTINCT + 2 * - col2 FROM tab2 AS cor0
----
-52
-54
-76

query I rowsort
SELECT ALL 64 * cor0.col0 FROM tab0 AS cor0
----
1536
2240
5696

query I rowsort
SELECT col2 * + col2 + - 9 * col2 AS col0 FROM tab2 AS cor0
----
1102
442
486

onlyif mysql # use DIV operator for integer division
query I rowsort label-2234
SELECT - 37 * col2 DIV ( col2 ) FROM tab0 AS cor0
----
-37
-37
-37

skipif mysql # not compatible
query I rowsort label-2234
SELECT - 37 * col2 / ( col2 ) FROM tab0 AS cor0
----
-37
-37
-37

query I rowsort
SELECT + + col0 * 79 FROM tab2 AS cor0
----
553
6162
6241

query I rowsort
SELECT col1 * 20 + col2 * - cor0.col0 FROM tab0 AS cor0
----
-5478
1905
928

query I rowsort
SELECT ALL - col1 - 52 AS col2 FROM tab2 AS cor0
----
-111
-69
-83

query I rowsort
SELECT ALL cor0.col1 + - col2 AS col0 FROM tab2 AS cor0
----
-21
33
4

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2239
SELECT CAST( col0 AS SIGNED ) + - col1 FROM tab0
----
-2
-62
-62

skipif mysql # not compatible
query I rowsort label-2239
SELECT CAST ( col0 AS INTEGER ) + - col1 FROM tab0
----
-2
-62
-62

query I rowsort
SELECT cor0.col2 + cor0.col1 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 5484e660e65aa37f29a1eca3fc30f5cc

query I rowsort
SELECT ALL 34 * col2 FROM tab2 cor0
----
1292
884
918

query I rowsort
SELECT ALL - col0 * - cor0.col2 * + col0 + 75 * 84 - + col0 FROM tab1 AS cor0
----
239708
620620
6783

query I rowsort
SELECT ALL + + col0 + - ( col0 ) AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT 93 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde

query I rowsort
SELECT ALL 28 + col1 * - ( col2 * col0 ) AS col1 FROM tab1 AS cor0
----
-36452
-4184
-99812

query I rowsort
SELECT DISTINCT - col2 + col0 * + 50 AS col0 FROM tab0
----
1167
1749
4368

query I rowsort
SELECT DISTINCT + 67 FROM tab1, tab2, tab1 AS cor0
----
67

query I rowsort
SELECT - ( + 97 ) AS col2 FROM tab0, tab1 cor0, tab0 AS cor1, tab2, tab1 AS cor2
----
243 values hashing to deb52fa16b6d112bf86aa258415d922e

query I rowsort
SELECT - 45 AS col0 FROM tab2, tab2 cor0, tab1 AS cor1
----
27 values hashing to 63e2b488a204f83ec8c063dafdfd4371

skipif mysql # not compatible
query I rowsort
SELECT + col0 * + CAST ( ( + col2 ) * - col2 AS REAL ) FROM tab0
----
-26136
-35
-598436

query I rowsort
SELECT + col2 + - 99 * - col2 + col1 AS col2 FROM tab1 cor0
----
5426
5710
9613

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab1 AS cor0, tab0 AS cor1, tab2, tab1 cor2
----
3645 values hashing to 5e27196f2932b25a5297ddec46b8b8f1

query I rowsort
SELECT ALL tab2.col1 * 62 AS col0 FROM tab2
----
1054
1922
3658

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * - 88 col0 FROM tab0
----
-2112
-3080
-7832

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2255
SELECT + 52 + + ( col2 * - ( col0 ) + col2 * + CAST( NULL AS DECIMAL ) ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2255
SELECT + 52 + + ( col2 * - ( col0 ) + col2 * + CAST ( NULL AS REAL ) ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + cor0.col0 + 5 FROM tab0 AS cor0
----
29
40
94

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2257
SELECT + + CAST( NULL AS SIGNED ) * col1 + col2 * ( col1 ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2257
SELECT + + CAST ( NULL AS INTEGER ) * col1 + col2 * ( col1 ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2258
SELECT + CAST( - col1 * col2 AS SIGNED ) + + col1 + + col2 col1 FROM tab1
----
-1139
-1324
-503

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2258
SELECT + CAST ( - col1 * col2 AS INTEGER ) + + col1 + + col2 col1 FROM tab1
----
-1139
-1324
-503

query I rowsort
SELECT - cor0.col1 - + 4 AS col1 FROM tab0 AS cor0
----
-101
-90
-95

query I rowsort
SELECT - col1 * + 54 + col2 * - col0 FROM tab1 AS cor0
----
-1566
-4188
-8382

query I rowsort
SELECT col1 + - col2 + cor0.col2 AS col2 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT DISTINCT col2 * 15 + 91 AS col2 FROM tab2
----
481
496
661

query I rowsort
SELECT + col1 * + col2 * - col0 FROM tab1
----
-36480
-4212
-99840

query I rowsort
SELECT - 48 AS col1 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 2558735eaa258a08592aef9d33020c18

query I rowsort
SELECT - ( col2 ) * col0 + col2 - cor0.col2 AS col2 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT + ( + 71 ) * col0 FROM tab1 cor0
----
213
4544
5680

onlyif mysql # use DIV operator for integer division
query I rowsort label-2267
SELECT DISTINCT - col2 + + col0 DIV col1 AS col1 FROM tab2 AS cor0
----
-25
-27
-34

skipif mysql # not compatible
query I rowsort label-2267
SELECT DISTINCT - col2 + + col0 / col1 AS col1 FROM tab2 AS cor0
----
-25
-27
-34

query I rowsort
SELECT 98 + + col1 FROM tab2
----
115
129
157

query I rowsort
SELECT + col0 + + col1 * col0 * col1 + col2 AS col2 FROM tab2
----
22948
271622
6761

query I rowsort
SELECT col0 + tab0.col1 * tab0.col1 FROM tab0
----
7420
8370
9444

onlyif mysql # use DIV operator for integer division
query I rowsort label-2271
SELECT ALL col2 DIV - col2 + + col1 DIV col0 FROM tab1 AS cor0
----
-1
-1
7

skipif mysql # not compatible
query I rowsort label-2271
SELECT ALL col2 / - col2 + + col1 / col0 FROM tab1 AS cor0
----
-1
-1
7

query I rowsort
SELECT DISTINCT col2 + col1 * col0 AS col0 FROM tab0
----
2097
3396
8181

query I rowsort
SELECT + col1 * tab0.col2 + + col0 AS col2 FROM tab0
----
132
2862
7551

query I rowsort
SELECT tab2.col1 + col1 * col1 + tab2.col0 AS col0 FROM tab2
----
3618
385
999

query I rowsort
SELECT DISTINCT - col0 * col0 + + col1 * + col2 FROM tab1
----
-3526
-5152
1395

query I rowsort
SELECT - tab2.col0 * + col2 + col2 + + col1 FROM tab2
----
-131
-1943
-2947

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab2.col0 * col2 col2 FROM tab2
----
-189
-2028
-3002

query I rowsort
SELECT ALL col2 + - col1 - col0 AS col1 FROM tab0 AS cor0
----
-131
-77
-98

query I rowsort
SELECT DISTINCT + col2 * col0 * - cor0.col1 + - col0 * col2 AS col2 FROM tab2 cor0
----
-121680
-54036
-6048

query I rowsort
SELECT + + col1 + - col0 * - col1 FROM tab0 cor0
----
2150
3492
8190

query I rowsort
SELECT DISTINCT cor0.col1 * col1 + - col0 FROM tab0 AS cor0
----
7372
8192
9374

query I rowsort
SELECT ALL - col0 * + col1 * - col1 + col1 AS col0 FROM tab2 AS cor0
----
22848
271577
6758

query I rowsort
SELECT ALL tab0.col1 * - ( tab0.col1 ) * tab0.col0 + col1 FROM tab0
----
-177418
-329218
-736918

query I rowsort
SELECT 75 + col0 FROM tab1
----
139
155
78

query I rowsort
SELECT DISTINCT col1 * + 2 * col2 AS col1 FROM tab1
----
1140
2496
2808

query I rowsort
SELECT DISTINCT - 90 + - col1 AS col0 FROM tab0
----
-176
-181
-187

query I rowsort
SELECT DISTINCT ( col2 * col0 ) + col2 AS col1 FROM tab0
----
36
7380
825

query I rowsort
SELECT - ( + col0 ) * - col1 - + col2 AS col1 FROM tab1
----
24
583
944

query I rowsort
SELECT + cor0.col2 * 94 FROM tab1 AS cor0
----
5076
5358
9024

query I rowsort
SELECT - col0 + col1 * cor0.col0 AS col2 FROM tab1 AS cor0
----
576
75
960

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2291
SELECT ALL - CAST( NULL AS SIGNED ) + + 63 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2291
SELECT ALL - CAST ( NULL AS INTEGER ) + + 63 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 + cor0.col0 * - col1 col0 FROM tab1 AS cor0
----
-104
-1053
-650

query I rowsort
SELECT DISTINCT - col0 * + col2 - col2 AS col0 FROM tab0 AS cor0
----
-36
-7380
-825

query I rowsort
SELECT ALL col1 * + col1 + col0 AS col1 FROM tab2 cor0
----
3559
368
968

onlyif mysql # use DIV operator for integer division
query I rowsort label-2295
SELECT DISTINCT col2 DIV + col2 + + col1 + + col1 * + col0 FROM tab1 AS cor0
----
105
1054
651

skipif mysql # not compatible
query I rowsort label-2295
SELECT DISTINCT col2 / + col2 + + col1 + + col1 * + col0 FROM tab1 AS cor0
----
105
1054
651

query I rowsort
SELECT DISTINCT ( col0 ) + col0 * col1 FROM tab0 AS cor0
----
2088
3430
8188

query I rowsort
SELECT DISTINCT + - col0 * col2 - col1 AS col0 FROM tab0 AS cor0
----
-132
-7389
-878

query I rowsort
SELECT 11 + col0 * col2 AS col2 FROM tab2 cor0
----
200
2039
3013

query I rowsort
SELECT ALL - ( + 89 ) AS col0 FROM tab2
----
-89
-89
-89

query I rowsort
SELECT ( + 59 ) AS col2 FROM tab1
----
59
59
59

query I rowsort
SELECT 16 FROM tab0, tab1 cor0
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3

query I rowsort
SELECT + - ( col1 ) * - cor0.col0 FROM tab1 AS cor0
----
1040
640
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-2303
SELECT DISTINCT - + cor0.col1 DIV col2 AS col2 FROM tab0 AS cor0
----
-1
-2
-97

skipif mysql # not compatible
query I rowsort label-2303
SELECT DISTINCT - + cor0.col1 / col2 AS col2 FROM tab0 AS cor0
----
-1
-2
-97

query I rowsort
SELECT - 82 * col0 * col2 FROM tab2 AS cor0
----
-15498
-166296
-246164

query I rowsort
SELECT ALL col2 * cor0.col2 AS col1 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT col2 * - cor0.col2 + + cor0.col2 * + col2 * col2 FROM tab0 AS cor0 WHERE NOT col0 * - col1 > + col0 * col1 - - col2 / + col1
----
0
34848
544644

query I rowsort
SELECT - tab2.col0 - - col2 FROM tab2
----
-41
-52
20

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( - col2 ) IN ( col1 * + col2 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 NOT IN ( col1 - col2 * cor0.col1 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

query I rowsort
SELECT DISTINCT - tab2.col2 * col1 FROM tab2 WHERE NOT ( col2 ) NOT BETWEEN NULL AND - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - col0 * col2 col0 FROM tab1
----
-136
-3638
-7667

query I rowsort
SELECT DISTINCT + col0 - tab0.col2 * col0 FROM tab0
----
-7209
-768
0

query I rowsort
SELECT + col1 + + col2 * + col2 FROM tab2
----
1461
735
760

onlyif mysql # use DIV operator for integer division
query I rowsort label-2314
SELECT col2 * tab0.col1 + - col1 DIV + tab0.col1 + + col2 AS col0 FROM tab0
----
2870
7543
97

skipif mysql # not compatible
query I rowsort label-2314
SELECT col2 * tab0.col1 + - col1 / + tab0.col1 + + col2 AS col0 FROM tab0
----
2870
7543
97

query I rowsort
SELECT tab0.col0 AS col2 FROM tab0 WHERE NOT col0 BETWEEN + col1 * col0 AND ( NULL )
----
24
35
89

query I rowsort
SELECT ALL col2 * col0 AS col2 FROM tab1 WHERE NULL NOT IN ( tab1.col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL <> col2
----

query I rowsort
SELECT ALL - cor0.col1 + - cor0.col0 FROM tab0 AS cor0
----
-110
-132
-180

onlyif mysql # use DIV operator for integer division
query I rowsort label-2319
SELECT DISTINCT + + col0 DIV col1 + col1 AS col0 FROM tab2 cor0
----
21
31
60

skipif mysql # not compatible
query I rowsort label-2319
SELECT DISTINCT + + col0 / col1 + col1 AS col0 FROM tab2 cor0
----
21
31
60

query I rowsort
SELECT DISTINCT col1 + col1 * - col1 FROM tab0 AS cor0
----
-7310
-8190
-9312

query I rowsort
SELECT - col1 + - col0 * - col0 * - col2 AS col0 FROM tab2 AS cor0
----
-1354
-158243
-237175

query I rowsort
SELECT DISTINCT - - col2 * cor0.col1 - col1 AS col1 FROM tab0 AS cor0
----
0
2752
7371

query I rowsort
SELECT + + col2 * + col0 + col2 * col1 AS col0 FROM tab1 AS cor0
----
1566
4218
8928

query I rowsort
SELECT ALL col0 * - col2 * - col0 + col1 AS col2 FROM tab0 AS cor0
----
1322
19094
649613

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col2 + + col1 * col0 col0 FROM tab1 cor0
----
1136
132
697

query I rowsort
SELECT DISTINCT col1 + col2 * - col0 AS col0 FROM tab2 cor0
----
-158
-1969
-2985

query I rowsort
SELECT - col0 - + col1 * + col1 FROM tab2
----
-3559
-368
-968

query I rowsort
SELECT DISTINCT col0 * - col1 - + col2 * - col2 AS col0 FROM tab0
----
-1375
-3394
-975

onlyif mysql # use DIV operator for integer division
query I rowsort label-2329
SELECT ALL - col1 - col0 DIV col2 AS col2 FROM tab0
----
-132
-86
-92

skipif mysql # not compatible
query I rowsort label-2329
SELECT ALL - col1 - col0 / col2 AS col2 FROM tab0
----
-132
-86
-92

query I rowsort
SELECT ALL col2 - + tab0.col2 FROM tab0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2331
SELECT ALL + col0 DIV col2 + col1 + col1 DIV - col1 AS col1 FROM tab0
----
131
85
91

skipif mysql # not compatible
query I rowsort label-2331
SELECT ALL + col0 / col2 + col1 + col1 / - col1 AS col1 FROM tab0
----
131
85
91

query I rowsort
SELECT ALL - - col1 * + col1 AS col2 FROM tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT DISTINCT - + col2 + col1 * - col0 FROM tab0 AS cor0
----
-2097
-3396
-8181

onlyif mysql # use DIV operator for integer division
query I rowsort label-2334
SELECT ALL + + col2 DIV + cor0.col0 + - col0 FROM tab2 AS cor0
----
-4
-78
-79

skipif mysql # not compatible
query I rowsort label-2334
SELECT ALL + + col2 / + cor0.col0 + - col0 FROM tab2 AS cor0
----
-4
-78
-79

query I rowsort
SELECT DISTINCT - col1 + col2 + - col1 AS col2 FROM tab0
----
-100
-139
-193

onlyif mysql # use DIV operator for integer division
query I rowsort label-2336
SELECT col1 * col1 + - col1 + col2 DIV col0 AS col2 FROM tab2
----
272
3422
933

skipif mysql # not compatible
query I rowsort label-2336
SELECT col1 * col1 + - col1 + col2 / col0 AS col2 FROM tab2
----
272
3422
933

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 52 + - col0 col0 FROM tab1 AS cor0
----
-12
-28
49

query I rowsort
SELECT - tab0.col1 + + col1 * - col2 FROM tab0
----
-194
-2924
-7553

query I rowsort
SELECT DISTINCT + + col1 * ( 69 ) FROM tab1 AS cor0
----
1794
690
897

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 1 ) col0 FROM tab2 AS cor0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 77 * + col1 col2 FROM tab2 AS cor0
----
1309
2387
4543

query I rowsort
SELECT - - col2 * col2 + + 20 AS col1 FROM tab2 AS cor0
----
1464
696
749

query I rowsort
SELECT + col0 * + col1 + + 75 AS col2 FROM tab1 AS cor0
----
1115
153
715

query I rowsort
SELECT + 51 * - tab0.col1 * + 81 FROM tab0
----
-355266
-375921
-400707

query I rowsort
SELECT DISTINCT 17 * tab2.col0 AS col1 FROM tab2
----
119
1326
1343

query I rowsort
SELECT + col2 - + col2 AS col1 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT col1 + + col1 + - 51 FROM tab1 AS cor0
----
-25
-31
1

query I rowsort
SELECT DISTINCT + + col1 + col2 * 63 * col2 FROM tab0 AS cor0
----
160
423703
68693

onlyif mysql # use DIV operator for integer division
query I rowsort label-2349
SELECT cor0.col2 + + cor0.col1 DIV + col1 FROM tab1 AS cor0
----
55
58
97

skipif mysql # not compatible
query I rowsort label-2349
SELECT cor0.col2 + + cor0.col1 / + col1 FROM tab1 AS cor0
----
55
58
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-2350
SELECT ALL 67 DIV col1 FROM tab1 AS cor0
----
2
5
6

skipif mysql # not compatible
query I rowsort label-2350
SELECT ALL 67 / col1 FROM tab1 AS cor0
----
2
5
6

query I rowsort
SELECT ALL col0 * col1 + ( + col1 ) FROM tab2
----
1360
248
4661

onlyif mysql # use DIV operator for integer division
query I rowsort label-2352
SELECT - col1 DIV col1 + col1 * col1 FROM tab1 AS cor0
----
168
675
99

skipif mysql # not compatible
query I rowsort label-2352
SELECT - col1 / col1 + col1 * col1 FROM tab1 AS cor0
----
168
675
99

query I rowsort
SELECT + + col1 * - col2 + + 81 AS col2 FROM tab0 cor0
----
-16
-2757
-7381

onlyif mysql # use DIV operator for integer division
query I rowsort label-2354
SELECT - col0 + ( col1 ) DIV col2 - col0 * col2 col0 FROM tab0 AS cor0
----
-7386
-814
27

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2354
SELECT - col0 + ( col1 ) / col2 - col0 * col2 col0 FROM tab0 AS cor0
----
-7386
-814
27

query I rowsort
SELECT + col2 * ( - col2 ) * - col1 + - col0 AS col0 FROM tab0 AS cor0
----
611795
62
93630

query I rowsort
SELECT cor0.col2 * cor0.col0 AS col1 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT ALL + - cor0.col2 + + cor0.col0 FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT DISTINCT + + col2 * ( col2 ) * + col1 AS col2 FROM tab0 AS cor0
----
611884
93654
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 * + 91 + col1 col1 FROM tab2 AS cor0
----
668
7157
7206

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2360
SELECT col1 + CAST( + col0 AS SIGNED ) col0 FROM tab0 cor0
----
110
132
180

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2360
SELECT col1 + CAST ( + col0 AS INTEGER ) col0 FROM tab0 cor0
----
110
132
180

query I rowsort
SELECT ALL + + col1 * cor0.col0 * + col2 FROM tab2 AS cor0
----
119652
51034
5859

onlyif mysql # use DIV operator for integer division
query I rowsort label-2362
SELECT ALL - col2 + + col0 + + ( col2 + cor0.col2 ) DIV + col2 col0 FROM tab0 AS cor0
----
-7
36
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2362
SELECT ALL - col2 + + col0 + + ( col2 + cor0.col2 ) / + col2 col0 FROM tab0 AS cor0
----
-7
36
9

query I rowsort
SELECT + col0 + 30 * col0 AS col2 FROM tab2 AS cor0
----
217
2418
2449

onlyif mysql # use DIV operator for integer division
query I rowsort label-2364
SELECT DISTINCT 15 DIV - cor0.col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2364
SELECT DISTINCT 15 / - cor0.col2 FROM tab1 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 7 col1 FROM tab0, tab1 cor0
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76

query I rowsort
SELECT ALL + ( - 43 ) * - col2 FROM tab2 AS cor0
----
1118
1161
1634

onlyif mysql # use DIV operator for integer division
query I rowsort label-2367
SELECT ALL ( 50 ) DIV + col1 AS col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2367
SELECT ALL ( 50 ) / + col1 AS col2 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + col1 ) + col0 col1 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT col1 * 88 FROM tab1 cor0
----
1144
2288
880

query I rowsort
SELECT DISTINCT + 87 * col2 AS col0 FROM tab0 AS cor0
----
2871
7134
87

query I rowsort
SELECT DISTINCT col2 + 78 * + col0 - col2 FROM tab0
----
1872
2730
6942

query I rowsort
SELECT DISTINCT + 83 + - col2 + 35 * - col2 FROM tab2 AS cor0
----
-1285
-853
-889

onlyif mysql # use DIV operator for integer division
query I rowsort label-2373
SELECT DISTINCT - + cor0.col1 * + cor0.col1 + 46 DIV 90 AS col1 FROM tab0 AS cor0
----
-7396
-8281
-9409

skipif mysql # not compatible
query I rowsort label-2373
SELECT DISTINCT - + cor0.col1 * + cor0.col1 + 46 / 90 AS col1 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT ALL ( - col2 * col1 ) AS col2 FROM tab2
----
-1534
-646
-837

query I rowsort
SELECT DISTINCT ( 79 ) FROM tab2
----
79

query I rowsort
SELECT - 60 - - col2 FROM tab0
----
-27
-59
22

query I rowsort
SELECT 50 - + col0 AS col2 FROM tab2
----
-28
-29
43

query I rowsort
SELECT DISTINCT + 97 * + col0 + col1 FROM tab2 AS cor0
----
710
7625
7680

query I rowsort
SELECT DISTINCT col1 * col1 + col2 AS col1 FROM tab1 AS cor0
----
157
265
730

query I rowsort
SELECT ALL - col1 + col1 * + ( - col1 ) AS col2 FROM tab2 AS cor0
----
-306
-3540
-992

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col2 ) + tab0.col1 col0 FROM tab0
----
119
173
98

query I rowsort
SELECT DISTINCT ( - col2 ) * cor0.col1 + col0 * cor0.col2 AS col0 FROM tab2 AS cor0
----
-648
2356
494

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2383
SELECT ALL - CAST( NULL AS SIGNED ) FROM tab0, tab0 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2383
SELECT ALL - CAST ( NULL AS INTEGER ) FROM tab0, tab0 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT + col1 * 18 FROM tab1
----
180
234
468

query I rowsort
SELECT col1 * + col2 * col0 + + col0 - + col2 * + col2 AS col1 FROM tab2 AS cor0
----
119054
49669
5137

query I rowsort
SELECT - col0 + col1 * col0 + col2 AS col0 FROM tab1 AS cor0
----
1056
129
633

query I rowsort
SELECT - col1 + - 85 + - col1 AS col0 FROM tab0 AS cor0
----
-257
-267
-279

query I rowsort
SELECT DISTINCT + tab2.col2 - - 6 * + col2 FROM tab2
----
182
189
266

query I rowsort
SELECT DISTINCT 56 + - cor0.col2 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
-26
23
55

skipif mysql # not compatible
query I rowsort
SELECT col0 + col0 * - col0 * CAST ( + ( col2 ) AS REAL ) FROM tab2 AS cor0
----
-1316
-158106
-237079

query I rowsort
SELECT ALL 11 + 24 AS col1 FROM tab1 AS cor0
----
35
35
35

query I rowsort
SELECT + cor0.col0 * 12 + + col1 AS col0 FROM tab1 AS cor0
----
62
778
973

query I rowsort
SELECT DISTINCT + + col1 + + col0 * col0 AS col0 FROM tab1 AS cor0
----
35
4106
6413

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - cor0.col1 + - col0 col1 FROM tab2 AS cor0
----
-1612
-725
-844

query I rowsort
SELECT ( ( col2 ) ) FROM tab1 AS cor0
----
54
57
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2396
SELECT ALL - CAST( col1 AS SIGNED ) + col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2396
SELECT ALL - CAST ( col1 AS INTEGER ) + col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - ( col1 ) + - col2 * + col1 FROM tab2 AS cor0
----
-1593
-663
-868

query I rowsort
SELECT ALL + - col2 + 72 FROM tab2 AS cor0
----
34
45
46

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2399
SELECT DISTINCT - CAST( + ( col1 ) AS SIGNED ) - - 56 AS col2 FROM tab2 AS cor0
----
-3
25
39

skipif mysql # not compatible
query I rowsort label-2399
SELECT DISTINCT - CAST ( + ( col1 ) AS INTEGER ) - - 56 AS col2 FROM tab2 AS cor0
----
-3
25
39

query I rowsort
SELECT + 76 + - 52 AS col0 FROM tab2
----
24
24
24

query I rowsort
SELECT DISTINCT - ( + ( tab2.col1 ) ) FROM tab2
----
-17
-31
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - col1 * - col0 + ( 27 ) col0 FROM tab0
----
2177
3519
8217

query I rowsort
SELECT col1 * + col1 + + col2 + 3 AS col0 FROM tab1
----
160
268
733

query I rowsort
SELECT DISTINCT + - 39 + col0 * cor0.col1 FROM tab0 AS cor0
----
2025
3356
8060

query I rowsort
SELECT ( + col2 ) * + col0 * col1 + ( + col2 ) * - 59 + col1 FROM tab2 AS cor0
----
118177
4297
48809

query I rowsort
SELECT DISTINCT 39 + 68 FROM tab1 AS cor0
----
107

query I rowsort
SELECT ALL + col2 * + ( - cor0.col1 ) AS col2 FROM tab0 AS cor0
----
-2838
-7462
-97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2408
SELECT + CAST( - ( col0 ) AS SIGNED ) + col1 * col2 + col0 FROM tab2 AS cor0
----
1534
646
837

skipif mysql # not compatible
query I rowsort label-2408
SELECT + CAST ( - ( col0 ) AS INTEGER ) + col1 * col2 + col0 FROM tab2 AS cor0
----
1534
646
837

onlyif mysql # use DIV operator for integer division
query I rowsort label-2409
SELECT + 24 DIV + col1 AS col0 FROM tab1 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-2409
SELECT + 24 / + col1 AS col0 FROM tab1 AS cor0
----
0
1
2

query I rowsort
SELECT ALL + + 70 * col2 AS col1 FROM tab1 AS cor0
----
3780
3990
6720

onlyif mysql # use DIV operator for integer division
query I rowsort label-2411
SELECT DISTINCT - col2 - - col1 DIV + col0 AS col0 FROM tab2 cor0
----
-23
-26
-38

skipif mysql # not compatible
query I rowsort label-2411
SELECT DISTINCT - col2 - - col1 / + col0 AS col0 FROM tab2 cor0
----
-23
-26
-38

query I rowsort
SELECT - ( col2 ) * + ( col1 ) FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT ALL ( cor0.col1 ) * - col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT - col0 * + cor0.col2 + + 83 FROM tab1 AS cor0
----
-3565
-7597
-79

query I rowsort
SELECT ALL + 32 + col2 AS col2 FROM tab0 cor0
----
114
33
65

query I rowsort
SELECT DISTINCT + - col1 * - cor0.col0 + 1 AS col2 FROM tab1 AS cor0
----
1041
641
79

query I rowsort
SELECT ALL + - 43 * - cor0.col2 AS col2 FROM tab0 AS cor0
----
1419
3526
43

query I rowsort
SELECT - 27 + + col1 FROM tab1 AS cor0
----
-1
-14
-17

onlyif mysql # use DIV operator for integer division
query I rowsort label-2419
SELECT DISTINCT + col0 - + col0 DIV + 98 FROM tab2 cor0
----
7
78
79

skipif mysql # not compatible
query I rowsort label-2419
SELECT DISTINCT + col0 - + col0 / + 98 FROM tab2 cor0
----
7
78
79

query I rowsort
SELECT - 36 * col2 + 78 * + col1 FROM tab0 AS cor0
----
4146
5520
7530

query I rowsort
SELECT ALL col2 * col1 + + col1 * 77 AS col2 FROM tab1 AS cor0
----
1340
2249
3406

query I rowsort
SELECT col1 * cor0.col2 * 5 FROM tab0 AS cor0
----
14190
37310
485

onlyif mysql # use DIV operator for integer division
query I rowsort label-2423
SELECT DISTINCT 52 DIV - col1 + + col2 * CAST( col0 * - col0 AS SIGNED ) + 19 FROM tab0
----
-1206
-18989
-649503

skipif mysql # not compatible
query I rowsort label-2423
SELECT DISTINCT 52 / - col1 + + col2 * CAST ( col0 * - col0 AS INTEGER ) + 19 FROM tab0
----
-1206
-18989
-649503

onlyif mysql # use DIV operator for integer division
query I rowsort label-2424
SELECT - + 53 * col0 + + col1 DIV 3 AS col0 FROM tab1 AS cor0
----
-151
-3389
-4236

skipif mysql # not compatible
query I rowsort label-2424
SELECT - + 53 * col0 + + col1 / 3 AS col0 FROM tab1 AS cor0
----
-151
-3389
-4236

query I rowsort
SELECT - cor0.col1 * col0 + - ( + col1 ) AS col2 FROM tab0 AS cor0
----
-2150
-3492
-8190

onlyif mysql # use DIV operator for integer division
query I rowsort label-2426
SELECT + - cor0.col0 + col1 DIV + col0 FROM tab1 AS cor0
----
-64
-80
5

skipif mysql # not compatible
query I rowsort label-2426
SELECT + - cor0.col0 + col1 / + col0 FROM tab1 AS cor0
----
-64
-80
5

query I rowsort
SELECT DISTINCT col1 * - 17 AS col1 FROM tab0 AS cor0
----
-1462
-1547
-1649

query I rowsort
SELECT + col2 * 28 AS col1 FROM tab0 AS cor0
----
2296
28
924

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2429
SELECT ALL + - col2 + + CAST( col2 AS SIGNED ) * col1 FROM tab1 AS cor0
----
1152
1350
513

skipif mysql # not compatible
query I rowsort label-2429
SELECT ALL + - col2 + + CAST ( col2 AS INTEGER ) * col1 FROM tab1 AS cor0
----
1152
1350
513

onlyif mysql # use DIV operator for integer division
query I rowsort label-2430
SELECT col1 DIV 59 FROM tab0 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2430
SELECT col1 / 59 FROM tab0 cor0
----
1
1
1

query I rowsort
SELECT DISTINCT col2 * ( - ( + col0 ) ) + col2 * col1 FROM tab1 AS cor0
----
-3078
-6432
1242

onlyif mysql # use DIV operator for integer division
query I rowsort label-2432
SELECT DISTINCT col0 DIV - col0 + col1 + col2 * - ( + col1 ) col0 FROM tab1 AS cor0
----
-1236
-1379
-561

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2432
SELECT DISTINCT col0 / - col0 + col1 + col2 * - ( + col1 ) col0 FROM tab1 AS cor0
----
-1236
-1379
-561

query I rowsort
SELECT 32 + col0 AS col2 FROM tab0
----
121
56
67

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2434
SELECT DISTINCT cor0.col1 * CAST( NULL AS SIGNED ) col1 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2434
SELECT DISTINCT cor0.col1 * CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL - col2 * ( + cor0.col2 + - col1 ) FROM tab2 AS cor0
----
-798
108
858

query I rowsort
SELECT ALL + col1 + ( + 11 * - col1 ) FROM tab1 AS cor0
----
-100
-130
-260

query I rowsort
SELECT col1 * 61 FROM tab2 cor0
----
1037
1891
3599

onlyif mysql # use DIV operator for integer division
query I rowsort label-2438
SELECT DISTINCT - col2 - + col2 DIV tab1.col2 col1 FROM tab1
----
-55
-58
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2438
SELECT DISTINCT - col2 - + col2 / tab1.col2 col1 FROM tab1
----
-55
-58
-97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2439
SELECT DISTINCT + - CAST( - ( - col0 ) AS SIGNED ) + + 44 * col1 + + col2 * - ( - col0 + col0 ) AS col2 FROM tab1 AS cor0
----
1141
376
492

skipif mysql # not compatible
query I rowsort label-2439
SELECT DISTINCT + - CAST ( - ( - col0 ) AS INTEGER ) + + 44 * col1 + + col2 * - ( - col0 + col0 ) AS col2 FROM tab1 AS cor0
----
1141
376
492

query I rowsort
SELECT + + cor0.col2 - cor0.col1 AS col2 FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT DISTINCT ( - col0 ) + - col1 * - ( col1 ) AS col2 FROM tab1 AS cor0
----
36
673
89

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2442
SELECT DISTINCT col0 + CAST( col1 * + col0 AS SIGNED ) col0 FROM tab2
----
1422
224
4680

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2442
SELECT DISTINCT col0 + CAST ( col1 * + col0 AS INTEGER ) col0 FROM tab2
----
1422
224
4680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab0.col1 * - 77 col2 FROM tab0, tab2 AS cor0, tab1, tab2 AS cor1
----
81 values hashing to 7683375429533df4c4de3667e6cce805

query I rowsort
SELECT - + cor1.col0 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 3000337dd3f11e9cfd5a312b01ef3f8b

query I rowsort
SELECT - cor1.col0 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 3000337dd3f11e9cfd5a312b01ef3f8b

query I rowsort
SELECT - ( + tab2.col1 ) + - col0 FROM tab2
----
-137
-38
-96

query I rowsort
SELECT 18 * col0 * - col2 AS col1 FROM tab2
----
-3402
-36504
-54036

query I rowsort
SELECT ALL 71 + + tab1.col2 * + 68 AS col1 FROM tab1
----
3743
3947
6599

query I rowsort
SELECT cor1.col2 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8

query I rowsort
SELECT DISTINCT tab0.col0 * - 8 FROM tab0, tab2 AS cor0
----
-192
-280
-712

onlyif mysql # use DIV operator for integer division
query I rowsort label-2451
SELECT col0 DIV + 18 + + col0 AS col0 FROM tab2 AS cor0
----
7
82
83

skipif mysql # not compatible
query I rowsort label-2451
SELECT col0 / + 18 + + col0 AS col0 FROM tab2 AS cor0
----
7
82
83

query I rowsort
SELECT col0 + - cor0.col2 AS col1 FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT + - col0 + ( col1 * col0 + 97 ) FROM tab0 AS cor0
----
2137
3457
8107

query I rowsort
SELECT ALL + col2 * - col2 + col1 AS col2 FROM tab2 cor0
----
-1427
-617
-698

query I rowsort
SELECT - col0 + col1 * 19 AS col1 FROM tab2 AS cor0
----
1043
244
582

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col1 <= NULL
----

query I rowsort
SELECT DISTINCT + col0 * col2 + col1 AS col2 FROM tab1
----
188
3658
7693

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL BETWEEN + col2 / col0 AND NULL
----

query I rowsort
SELECT ALL - col0 * col1 + - col0 FROM tab1
----
-1120
-704
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab2.col0 + + col2 col0 FROM tab2
----
104
117
34

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL IN ( col1 - col2 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-2462
SELECT DISTINCT col0 * - tab0.col2 + - col2 DIV col2 FROM tab0
----
-36
-7299
-793

skipif mysql # not compatible
query I rowsort label-2462
SELECT DISTINCT col0 * - tab0.col2 + - col2 / col2 FROM tab0
----
-36
-7299
-793

query I rowsort
SELECT ALL col2 + col0 * + col1 FROM tab1
----
1136
132
697

query I rowsort
SELECT ALL col2 + + col1 * col0 AS col2 FROM tab0
----
2097
3396
8181

query I rowsort
SELECT ALL + tab0.col0 + + col0 AS col0 FROM tab0
----
178
48
70

query I rowsort
SELECT col0 + - col2 * + col2 AS col0 FROM tab1
----
-2913
-3185
-9136

query I rowsort
SELECT DISTINCT col2 + col2 * - tab0.col1 * - col2 FROM tab0
----
611966
93687
98

query I rowsort
SELECT ALL - ( cor0.col0 ) + 76 AS col2 FROM tab2 AS cor0
----
-2
-3
69

query I rowsort
SELECT - + cor0.col2 + col1 * col0 AS col0 FROM tab2 AS cor0
----
1305
190
4576

query I rowsort
SELECT ALL col2 + + col2 * col2 * col0 AS col2 FROM tab2
----
114114
5130
52754

query I rowsort
SELECT - ( + col2 ) * - col1 - + cor0.col2 FROM tab1 cor0
----
1152
1350
513

query I rowsort
SELECT + - 0 * col1 + + 35 AS col0 FROM tab2 AS cor0
----
35
35
35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * + col0 col2 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT + 72 * + col0 + + 28 AS col1 FROM tab2 AS cor0
----
532
5644
5716

query I rowsort
SELECT + 42 * - cor0.col0 AS col2 FROM tab0 cor0
----
-1008
-1470
-3738

query I rowsort
SELECT - + 48 * - col0 * - ( cor0.col2 ) FROM tab1 AS cor0
----
-175104
-368640
-7776

query I rowsort
SELECT DISTINCT - col1 + col1 - col1 AS col2 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT + col1 * col2 - col1 * col0 AS col1 FROM tab0 AS cor0
----
-3298
-637
774

query I rowsort
SELECT col2 - 48 FROM tab1 AS cor0
----
48
6
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 53 col1 FROM tab1 AS cor0
----
53
53
53

query I rowsort
SELECT 51 - 72 FROM tab1, tab1 AS cor0, tab0 AS cor1, tab2 AS cor2
----
81 values hashing to b6019fd8f0ff78caeaf4b2de3226eb65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 96 col2 FROM tab1, tab1 cor0
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303

query I rowsort
SELECT ALL col2 * col1 + + col1 FROM tab2 AS cor0
----
1593
663
868

query I rowsort
SELECT + cor0.col0 + col2 AS col2 FROM tab0 cor0
----
171
36
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * - col0 col2 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT ALL col2 + col2 * 35 AS col0 FROM tab0 AS cor0
----
1188
2952
36

onlyif mysql # use DIV operator for integer division
query I rowsort label-2487
SELECT DISTINCT + 38 DIV col1 AS col1 FROM tab1
----
1
2
3

skipif mysql # not compatible
query I rowsort label-2487
SELECT DISTINCT + 38 / col1 AS col1 FROM tab1
----
1
2
3

query I rowsort
SELECT col0 + ( - tab2.col1 * - tab2.col1 ) + + 89 FROM tab2
----
1057
3648
457

query I rowsort
SELECT col2 * col2 * - 71 + + col0 FROM tab0 AS cor0
----
-36
-477315
-77295

query I rowsort
SELECT ALL cor0.col1 * + ( - col0 ) AS col2 FROM tab1 cor0
----
-1040
-640
-78

query I rowsort
SELECT + col0 + ( 33 ) AS col1 FROM tab2 AS cor0
----
111
112
40

query I rowsort
SELECT ALL tab1.col1 + + col2 + - 63 AS col1 FROM tab1
----
17
4
46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col1 * col2 col0 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT ALL - + col2 + 19 * - col2 AS col2 FROM tab2 AS cor0
----
-520
-540
-760

onlyif mysql # use DIV operator for integer division
query I rowsort label-2495
SELECT DISTINCT col1 DIV + ( - col2 + + col1 * - col0 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2495
SELECT DISTINCT col1 / + ( - col2 + + col1 * - col0 ) FROM tab0 AS cor0
----
0

query I rowsort
SELECT + cor0.col0 + + ( 32 * col1 ) - col1 * - col1 FROM tab2 AS cor0
----
1960
5447
912

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2497
SELECT col1 + CAST( 4 * - col0 AS SIGNED ) FROM tab1 AS cor0
----
-246
-307
14

skipif mysql # not compatible
query I rowsort label-2497
SELECT col1 + CAST ( 4 * - col0 AS INTEGER ) FROM tab1 AS cor0
----
-246
-307
14

query I rowsort
SELECT ALL cor0.col0 * col1 * col2 AS col1 FROM tab0 AS cor0
----
3395
664118
68112

query I rowsort
SELECT + + col2 * - ( col2 ) + col1 * - ( - 45 ) AS col1 FROM tab1 AS cor0
----
-1746
-2799
-8631

onlyif mysql # use DIV operator for integer division
query I rowsort label-2500
SELECT ALL + col1 DIV + 53 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2500
SELECT ALL + col1 / + 53 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + + col1 * col1 * 70 FROM tab1 AS cor0
----
11830
47320
7000

onlyif mysql # use DIV operator for integer division
query I rowsort label-2502
SELECT col1 + - 26 DIV + 18 AS col2 FROM tab0 AS cor0
----
85
90
96

skipif mysql # not compatible
query I rowsort label-2502
SELECT col1 + - 26 / + 18 AS col2 FROM tab0 AS cor0
----
85
90
96

query I rowsort
SELECT ALL + col2 + col1 * - col2 + col0 FROM tab2 AS cor0
----
-1430
-529
-803

query I rowsort
SELECT + - 52 + col1 * col2 AS col1 FROM tab2 cor0
----
1482
594
785

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * + col0 * - col1 col1 FROM tab1 AS cor0
----
234
40960
83200

query I rowsort
SELECT - 97 * - cor0.col2 AS col1 FROM tab2 cor0
----
2522
2619
3686

query I rowsort
SELECT 11 AS col1 FROM tab0, tab1 cor0
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00

query I rowsort
SELECT ALL - + 75 + ( - col2 ) AS col1 FROM tab0 AS cor0
----
-108
-157
-76

query I rowsort
SELECT DISTINCT + 86 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
86

query I rowsort
SELECT ALL - 72 FROM tab2, tab2 AS cor0, tab1, tab0 AS cor1
----
81 values hashing to 95a1a68628dd064d94b4fe1543a3419f

query I rowsort
SELECT tab2.col1 * 6 AS col2 FROM tab2
----
102
186
354

query I rowsort
SELECT ALL + tab1.col2 + 58 * + ( - col2 * + col1 ) AS col2 FROM tab1
----
-33003
-72288
-81378

query I rowsort
SELECT ( + 29 ) AS col2 FROM tab0, tab0 cor0
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2

query I rowsort
SELECT ALL - cor0.col0 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1, tab1 AS cor1
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8

query I rowsort
SELECT DISTINCT - - 4 AS col2 FROM tab1 cor0
----
4

query I rowsort
SELECT - + col2 + col0 - + cor0.col1 FROM tab0 cor0
----
-63
-84
-95

query I rowsort
SELECT ALL - 54 * col2 FROM tab0 AS cor0
----
-1782
-4428
-54

query I rowsort
SELECT + - col0 + + col2 + + col1 AS col2 FROM tab1 AS cor0
----
29
3
77

query I rowsort
SELECT DISTINCT - 54 + - col2 FROM tab2 AS cor0
----
-80
-81
-92

query I rowsort
SELECT DISTINCT - + col2 * - col1 AS col2 FROM tab1 cor0
----
1248
1404
570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 3 - + col0 * col1 col1 FROM tab2 AS cor0
----
-1340
-214
-4599

query I rowsort
SELECT DISTINCT - + col2 * + col1 + - col1 AS col2 FROM tab1 AS cor0
----
-1261
-1430
-580

query I rowsort
SELECT DISTINCT ( col0 ) + col2 + 98 FROM tab1 AS cor0
----
155
219
274

onlyif mysql # use DIV operator for integer division
query I rowsort label-2524
SELECT ALL + - col2 + + col2 DIV - col1 FROM tab1 AS cor0
----
-103
-56
-62

skipif mysql # not compatible
query I rowsort label-2524
SELECT ALL + - col2 + + col2 / - col1 FROM tab1 AS cor0
----
-103
-56
-62

query I rowsort
SELECT ALL - col2 + col0 * col0 AS col0 FROM tab1 AS cor0
----
-45
4039
6304

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2526
SELECT ALL - col0 - col2 / - CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2526
SELECT ALL - col0 - col2 / - CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-2527
SELECT - col1 * 21 DIV 12 FROM tab1 AS cor0
----
-17
-22
-45

skipif mysql # not compatible
query I rowsort label-2527
SELECT - col1 * 21 / 12 FROM tab1 AS cor0
----
-17
-22
-45

query I rowsort
SELECT + + col1 + + 52 + cor0.col0 FROM tab2 AS cor0
----
148
189
90

query I rowsort
SELECT DISTINCT + col1 + col0 * 61 FROM tab0
----
1550
2232
5520

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 99 + col2 + col1 * + col1 col1 FROM tab1
----
256
364
829

query I rowsort
SELECT DISTINCT col1 * col2 * 37 + - col0 + + tab2.col2 FROM tab2
----
23861
30989
56706

query I rowsort
SELECT + tab2.col0 + 7 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to d00db4bda25e70210401f4b5fa1a4ba9

query I rowsort
SELECT + col0 + 76 - ( col2 + col1 * + ( col0 ) ) FROM tab0 AS cor0
----
-1997
-3285
-8016

query I rowsort
SELECT DISTINCT - ( + cor0.col0 ) + cor0.col1 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
2
62

query I rowsort
SELECT - col2 - - col1 AS col0 FROM tab2 cor0
----
-21
33
4

query I rowsort
SELECT ALL cor0.col1 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

query I rowsort
SELECT DISTINCT + col1 * 86 + col0 AS col1 FROM tab0
----
7420
7915
8377

query I rowsort
SELECT ALL - col2 + 25 AS col1 FROM tab0
----
-57
-8
24

onlyif mysql # use DIV operator for integer division
query I rowsort label-2539
SELECT + col0 DIV + 38 AS col2 FROM tab0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-2539
SELECT + col0 / + 38 AS col2 FROM tab0
----
0
0
2

onlyif mysql # use DIV operator for integer division
query I rowsort label-2540
SELECT ALL - col1 + col0 DIV col0 FROM tab1 AS cor0
----
-12
-25
-9

skipif mysql # not compatible
query I rowsort label-2540
SELECT ALL - col1 + col0 / col0 FROM tab1 AS cor0
----
-12
-25
-9

onlyif mysql # use DIV operator for integer division
query I rowsort label-2541
SELECT ALL + + col2 * col1 DIV col2 + cor0.col0 * + col0 + + cor0.col0 FROM tab0 AS cor0
----
1357
686
8101

skipif mysql # not compatible
query I rowsort label-2541
SELECT ALL + + col2 * col1 / col2 + cor0.col0 * + col0 + + cor0.col0 FROM tab0 AS cor0
----
1357
686
8101

onlyif mysql # use DIV operator for integer division
query I rowsort label-2542
SELECT ALL - col0 DIV col1 AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2542
SELECT ALL - col0 / col1 AS col0 FROM tab0
----
0
0
0

query I rowsort
SELECT - tab0.col0 * tab0.col1 AS col0 FROM tab0
----
-2064
-3395
-8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - cor0.col1 + - col1 col2 FROM tab0 AS cor0
----
-7482
-8372
-9506

query I rowsort
SELECT 15 + 28 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to ee5108f6248be48c54e069545f81c5d9

query I rowsort
SELECT - 17 + col1 * col0 FROM tab0
----
2047
3378
8082

query I rowsort
SELECT ALL col2 * col0 * + col0 FROM tab2
----
1323
158184
237158

query I rowsort
SELECT - + 32 AS col1 FROM tab2 cor0
----
-32
-32
-32

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2549
SELECT ALL - col1 + - col1 * col0 + col0 * cor0.col1 * CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2549
SELECT ALL - col1 + - col1 * col0 + col0 * cor0.col1 * CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 82 AS col2 FROM tab2 cor0
----
82

query I rowsort
SELECT - - 73 + col0 FROM tab2 AS cor0
----
151
152
80

query I rowsort
SELECT DISTINCT - 22 * col2 AS col1 FROM tab0 AS cor0
----
-1804
-22
-726

query I rowsort
SELECT ALL + 26 + col2 AS col0 FROM tab2 AS cor0
----
52
53
64

onlyif mysql # use DIV operator for integer division
query I rowsort label-2554
SELECT DISTINCT col2 + - col1 DIV - cor0.col0 + col2 * - cor0.col1 FROM tab2 AS cor0
----
-1508
-608
-806

skipif mysql # not compatible
query I rowsort label-2554
SELECT DISTINCT col2 + - col1 / - cor0.col0 + col2 * - cor0.col1 FROM tab2 AS cor0
----
-1508
-608
-806

query I rowsort
SELECT + col1 * + col0 * 3 AS col1 FROM tab0 AS cor0
----
10185
24297
6192

query I rowsort
SELECT DISTINCT - cor0.col0 + col2 * + 72 + ( + col2 + 85 ) AS col1 FROM tab0 AS cor0
----
123
2470
5982

query I rowsort
SELECT DISTINCT + col0 + col0 * + ( col1 ) FROM tab2 AS cor0
----
1422
224
4680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 + - col2 col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT + + col0 * 53 * col2 FROM tab1 AS cor0
----
193344
407040
8586

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + ( + cor0.col1 ) * col1 col1 FROM tab2 cor0
----
306
3540
992

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col1 ) * - col0 - ( + col0 ) col2 FROM tab0 AS cor0
----
-2088
-3430
-8188

query I rowsort
SELECT DISTINCT + + col1 * col2 + - 1 AS col1 FROM tab2 AS cor0
----
1533
645
836

query I rowsort
SELECT ALL 87 - col1 * - col0 AS col0 FROM tab2 AS cor0
----
1430
304
4689

onlyif mysql # use DIV operator for integer division
query I rowsort label-2564
SELECT - col1 DIV + col0 + col1 AS col1 FROM tab1 AS cor0
----
10
13
18

skipif mysql # not compatible
query I rowsort label-2564
SELECT - col1 / + col0 + col1 AS col1 FROM tab1 AS cor0
----
10
13
18

query I rowsort
SELECT + tab2.col1 * - 86 AS col0 FROM tab2
----
-1462
-2666
-5074

query I rowsort
SELECT - - 58 * col0 + col1 FROM tab0 AS cor0
----
1478
2127
5253

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col2 ) col1 FROM tab1 cor0
----
54
57
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-2568
SELECT + 55 DIV col2 + col0 col1 FROM tab0 AS cor0
----
25
89
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2568
SELECT + 55 / col2 + col0 col1 FROM tab0 AS cor0
----
25
89
90

query I rowsort
SELECT ALL - cor1.col1 AS col0 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84

query I rowsort
SELECT DISTINCT 74 * + col1 AS col2 FROM tab0
----
6364
6734
7178

query I rowsort
SELECT + 98 FROM tab1, tab2 cor0
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809

query I rowsort
SELECT DISTINCT 15 * col0 AS col2 FROM tab0
----
1335
360
525

onlyif mysql # use DIV operator for integer division
query I rowsort label-2573
SELECT + + col0 + - 93 DIV col2 AS col0 FROM tab0 AS cor0
----
-58
22
88

skipif mysql # not compatible
query I rowsort label-2573
SELECT + + col0 + - 93 / col2 AS col0 FROM tab0 AS cor0
----
-58
22
88

query I rowsort
SELECT - col0 + + 3 AS col2 FROM tab1 cor0
----
-61
-77
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 + + col2 * + col1 col0 FROM tab0 AS cor0
----
2814
62
7373

query I rowsort
SELECT + col1 * - 13 AS col1 FROM tab2 cor0
----
-221
-403
-767

query I rowsort
SELECT DISTINCT + 94 * 55 + cor0.col2 AS col1 FROM tab0 AS cor0
----
5171
5203
5252

query I rowsort
SELECT ALL - + col1 + + 86 AS col1 FROM tab2 AS cor0
----
27
55
69

query I rowsort
SELECT ALL + ( + col0 ) * - col2 - + col0 * + 66 FROM tab2 AS cor0
----
-651
-7176
-8216

query I rowsort
SELECT DISTINCT + col2 * + cor0.col0 AS col2 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT DISTINCT + col0 * + ( + col0 ) + col2 FROM tab1 AS cor0
----
4153
63
6496

query I rowsort
SELECT ALL + ( - col2 ) - col2 AS col1 FROM tab0 cor0
----
-164
-2
-66

query I rowsort
SELECT DISTINCT + col2 + ( - col0 + col2 * + tab1.col1 ) FROM tab1
----
1264
1455
563

query I rowsort
SELECT DISTINCT col1 + col1 * col2 * tab1.col0 AS col0 FROM tab1
----
36490
4238
99853

query I rowsort
SELECT DISTINCT tab1.col2 + tab1.col2 AS col1 FROM tab1
----
108
114
192

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - col2 + - CAST ( col2 AS REAL ) AS col0 FROM tab1
----
-108
-114
-192

query I rowsort
SELECT - col2 + - 35 AS col1 FROM tab2
----
-61
-62
-73

query I rowsort
SELECT - col1 - - tab1.col2 * col0 AS col0 FROM tab1
----
136
3638
7667

onlyif mysql # use DIV operator for integer division
query I rowsort label-2589
SELECT DISTINCT - 3 DIV col2 + col1 FROM tab1 AS cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-2589
SELECT DISTINCT - 3 / col2 + col1 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT DISTINCT + + 20 * col0 AS col1 FROM tab2 AS cor0
----
140
1560
1580

query I rowsort
SELECT ( cor0.col2 ) * col0 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT ALL + 58 * + 95 FROM tab0 AS cor0
----
5510
5510
5510

query I rowsort
SELECT DISTINCT + 60 + cor0.col1 FROM tab1 cor0
----
70
73
86

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2594
SELECT - CAST( col2 AS SIGNED ) AS col0 FROM tab0 cor0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-2594
SELECT - CAST ( col2 AS INTEGER ) AS col0 FROM tab0 cor0
----
-1
-33
-82

query I rowsort
SELECT + - 68 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5febf382d36d6e0191889c41b928786f

query I rowsort
SELECT DISTINCT + 29 * col1 AS col1 FROM tab1
----
290
377
754

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2597
SELECT + + col1 + - col2 - CAST( col0 AS SIGNED ) * col0 FROM tab2 AS cor0
----
-45
-6051
-6262

skipif mysql # not compatible
query I rowsort label-2597
SELECT + + col1 + - col2 - CAST ( col0 AS INTEGER ) * col0 FROM tab2 AS cor0
----
-45
-6051
-6262

onlyif mysql # use DIV operator for integer division
query I rowsort label-2598
SELECT - + col1 * - col0 + col2 DIV 57 + - col2 AS col1 FROM tab2 AS cor0
----
1305
190
4576

skipif mysql # not compatible
query I rowsort label-2598
SELECT - + col1 * - col0 + col2 / 57 + - col2 AS col1 FROM tab2 AS cor0
----
1305
190
4576

onlyif mysql # use DIV operator for integer division
query I rowsort label-2599
SELECT + + col1 * col1 + + CAST( col2 AS SIGNED ) DIV - col2 FROM tab0 AS cor0
----
7395
8280
9408

skipif mysql # not compatible
query I rowsort label-2599
SELECT + + col1 * col1 + + CAST ( col2 AS INTEGER ) / - col2 FROM tab0 AS cor0
----
7395
8280
9408

query I rowsort
SELECT + 15 * - col1 FROM tab1 AS cor0
----
-150
-195
-390

query I rowsort
SELECT + col0 * ( col0 ) + + tab1.col0 FROM tab1
----
12
4160
6480

query I rowsort
SELECT 30 * + col2 FROM tab2
----
1140
780
810

query I rowsort
SELECT ALL + - cor0.col0 * ( 18 ) + - col2 * 34 FROM tab2 AS cor0
----
-1044
-2288
-2714

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + col0 ) * - tab1.col1 - col1 col0 FROM tab1
----
-104
-1053
-650

query I rowsort
SELECT + ( col0 * - col0 ) FROM tab1
----
-4096
-6400
-9

query I rowsort
SELECT ALL + - 3 + - col2 * col2 AS col1 FROM tab0 AS cor0
----
-1092
-4
-6727

query I rowsort
SELECT + + cor0.col0 - col0 AS col0 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2608
SELECT ALL + 24 DIV 84 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2608
SELECT ALL + 24 / 84 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT cor0.col2 + col1 * - col2 + col2 * + ( col1 ) AS col0 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT + 4 * col1 - - col0 * + 35 FROM tab0 AS cor0
----
1184
1613
3479

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * + col0 col0 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT ALL - - col1 * + cor0.col2 AS col2 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT DISTINCT - ( col0 ) + + 5 FROM tab2 AS cor0
----
-2
-73
-74

query I rowsort
SELECT + + ( + 56 ) AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 9c4523312174730bbc525b9977aa99fa

query I rowsort
SELECT - + 46 * 48 - cor0.col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 3796066560327c1537b621290eed26de

query I rowsort
SELECT - - ( col2 ) * ( col0 ) FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT ALL + + col2 * + cor0.col2 AS col1 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT - col2 * 38 FROM tab1 AS cor0
----
-2052
-2166
-3648

query I rowsort
SELECT ALL + cor0.col2 + 76 FROM tab2, tab1 AS cor0
----
9 values hashing to 6eb06975d1c20d9170e94643546f316a

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 * ( - col1 ) + + cor0.col2 + col2 * + 68 * col1 col1 FROM tab1 cor0
----
38917
85129
96202

query I rowsort
SELECT DISTINCT col2 + + 83 * 1 * + col1 AS col1 FROM tab2 AS cor0
----
1449
2600
4923

query I rowsort
SELECT DISTINCT + col1 * + col2 * ( col0 ) FROM tab0 AS cor0
----
3395
664118
68112

query I rowsort
SELECT DISTINCT - - cor0.col0 + + col1 FROM tab1 AS cor0
----
29
74
93

onlyif mysql # use DIV operator for integer division
query I rowsort label-2624
SELECT ALL - ( col0 ) DIV - col1 - - col2 * 3 DIV cor0.col0 col2 FROM tab1 AS cor0
----
54
8
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2624
SELECT ALL - ( col0 ) / - col1 - - col2 * 3 / cor0.col0 col2 FROM tab1 AS cor0
----
54
8
9

query I rowsort
SELECT - 96 * 39 * - col0 FROM tab1 AS cor0
----
11232
239616
299520

query I rowsort
SELECT DISTINCT - 94 * + col2 FROM tab0 AS cor0
----
-3102
-7708
-94

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2627
SELECT ALL - - CAST( NULL AS DECIMAL ) + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2627
SELECT ALL - - CAST ( NULL AS REAL ) + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2628
SELECT + 87 * - col1 + col1 + CAST( NULL AS SIGNED ) * + 16 * col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2628
SELECT + 87 * - col1 + col1 + CAST ( NULL AS INTEGER ) * + 16 * col1 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col2 + + col0 * col1 FROM tab1 AS cor0
----
24
583
944

query I rowsort
SELECT ALL - - ( 3 ) AS col1 FROM tab2 AS cor0
----
3
3
3

onlyif mysql # use DIV operator for integer division
query I rowsort label-2631
SELECT - 51 + - col1 DIV + col0 AS col0 FROM tab1 AS cor0
----
-51
-51
-59

skipif mysql # not compatible
query I rowsort label-2631
SELECT - 51 + - col1 / + col0 AS col0 FROM tab1 AS cor0
----
-51
-51
-59

onlyif mysql # use DIV operator for integer division
query I rowsort label-2632
SELECT DISTINCT cor0.col2 + + col0 DIV col1 FROM tab2 AS cor0
----
27
42

skipif mysql # not compatible
query I rowsort label-2632
SELECT DISTINCT cor0.col2 + + col0 / col1 FROM tab2 AS cor0
----
27
42

query I rowsort
SELECT 87 * + col2 * col2 FROM tab2 AS cor0
----
125628
58812
63423

onlyif mysql # use DIV operator for integer division
query I rowsort label-2634
SELECT ALL ( col2 ) * - col0 * ( col2 ) + cor0.col0 * ( - ( - col0 ) ) DIV CAST( col0 AS SIGNED ) col2 FROM tab1 cor0
----
-207872
-737200
-8745

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2634
SELECT ALL ( col2 ) * - col0 * ( col2 ) + cor0.col0 * ( - ( - col0 ) ) / CAST ( col0 AS INTEGER ) col2 FROM tab1 cor0
----
-207872
-737200
-8745

query I rowsort
SELECT DISTINCT 4 AS col2 FROM tab0, tab0 cor0, tab0 AS cor1
----
4

query I rowsort
SELECT + col2 - + tab2.col2 AS col1 FROM tab2
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2637
SELECT col0 DIV 10 FROM tab0 AS cor0
----
2
3
8

skipif mysql # not compatible
query I rowsort label-2637
SELECT col0 / 10 FROM tab0 AS cor0
----
2
3
8

query I rowsort
SELECT DISTINCT - col1 + col0 * col2 * 8 AS col0 FROM tab0 AS cor0
----
183
58293
6250

query I rowsort
SELECT ALL 77 * col2 FROM tab0 AS cor0
----
2541
6314
77

query I rowsort
SELECT ALL tab1.col1 * + 27 AS col2 FROM tab1
----
270
351
702

query I rowsort
SELECT - + col0 * col0 + col2 AS col0 FROM tab0 AS cor0
----
-1224
-543
-7839

query I rowsort
SELECT - 31 AS col0 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to c6c8eebeb1a59f7c046402e25630c0ac

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * - tab2.col1 * tab2.col0 col1 FROM tab2
----
-106097
-1519
-358956

query I rowsort
SELECT - 85 AS col2 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 91e44ead5e72fa22f87a57243e232ede

query I rowsort
SELECT col1 * + cor0.col0 * 21 + - col2 * + 16 * - cor0.col1 FROM tab2 AS cor0
----
121186
17949
38539

query I rowsort
SELECT DISTINCT - 0 + - col0 AS col1 FROM tab0
----
-24
-35
-89

query I rowsort
SELECT col2 * tab0.col1 * + ( + col2 ) + col1 FROM tab0
----
194
611975
93740

query I rowsort
SELECT DISTINCT + tab1.col1 * + tab1.col1 + 63 FROM tab1
----
163
232
739

query I rowsort
SELECT col2 * col0 * - tab2.col2 + col2 + col2 AS col0 FROM tab2
----
-114000
-5049
-52676

query I rowsort
SELECT ( col0 + col1 ) * col1 FROM tab0
----
12804
16380
9460

query I rowsort
SELECT + 69 * tab2.col1 FROM tab2
----
1173
2139
4071

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 * - 44 - + col2 col0 FROM tab0 AS cor0
----
1419
3526
43

query I rowsort
SELECT DISTINCT - col1 * 23 + - col1 * - col2 FROM tab2 AS cor0
----
124
177
255

onlyif mysql # use DIV operator for integer division
query I rowsort label-2654
SELECT ALL - cor0.col2 DIV + CAST( + col1 + col1 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2654
SELECT ALL - cor0.col2 / + CAST ( + col1 + col1 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + + col2 + ( - col2 ) * col2 AS col1 FROM tab2 AS cor0
----
-1406
-650
-702

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * + ( + col2 ) * + col2 + col1 col2 FROM tab0 AS cor0
----
-26050
-598345
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-2657
SELECT ALL - col2 DIV + col0 + ( col1 ) FROM tab0 AS cor0
----
85
91
97

skipif mysql # not compatible
query I rowsort label-2657
SELECT ALL - col2 / + col0 + ( col1 ) FROM tab0 AS cor0
----
85
91
97

query I rowsort
SELECT + col0 + col1 * col0 FROM tab0 cor0
----
2088
3430
8188

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 42 col0 FROM tab1
----
-42
-42
-42

query I rowsort
SELECT + cor0.col1 * tab2.col2 AS col0 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to ae9e2bb55fd656eb6c7fb22bc2bb0f90

query I rowsort
SELECT ALL 61 AS col2 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 8d4dfe649433a599fc4b10830cc7ce55

query I rowsort
SELECT - 64 * - col0 FROM tab0 cor0
----
1536
2240
5696

query I rowsort
SELECT 57 * + col1 * cor0.col0 FROM tab1 AS cor0
----
36480
4446
59280

query I rowsort
SELECT + - col2 + - 5 AS col1 FROM tab2 AS cor0
----
-31
-32
-43

query I rowsort
SELECT col2 * 94 FROM tab2 cor0
----
2444
2538
3572

query I rowsort
SELECT - cor0.col0 + + ( col0 ) * + cor0.col1 FROM tab2 AS cor0
----
1264
210
4524

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * col0 col2 FROM tab2
----
-189
-2028
-3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 89 * col0 col1 FROM tab0
----
2136
3115
7921

query I rowsort
SELECT 12 * + col2 * col1 AS col0 FROM tab1 AS cor0
----
14976
16848
6840

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col1 ) + + col1 col0 FROM tab0 AS cor0
----
172
182
194

query I rowsort
SELECT + + ( + 13 ) + + col1 AS col2 FROM tab2 AS cor0
----
30
44
72

query I rowsort
SELECT 59 * + cor0.col1 + - col2 AS col2 FROM tab1 AS cor0
----
1480
533
671

query I rowsort
SELECT + 74 * 25 + - col2 * + 4 AS col1 FROM tab0 AS cor0
----
1522
1718
1846

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * col1 + - col2 col1 FROM tab0 cor0
----
-7429
-8363
-9410

query I rowsort
SELECT + + ( 38 ) * - cor0.col0 FROM tab1 AS cor0
----
-114
-2432
-3040

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + col0 col2 FROM tab2
----
0

query I rowsort
SELECT - col2 + 85 AS col2 FROM tab1
----
-11
28
31

query I rowsort
SELECT - col2 * + 77 AS col1 FROM tab0
----
-2541
-6314
-77

query I rowsort
SELECT col0 + 42 FROM tab1
----
106
122
45

onlyif mysql # use DIV operator for integer division
query I rowsort label-2680
SELECT - col2 DIV col2 + col2 * 54 FROM tab0 AS cor0
----
1781
4427
53

skipif mysql # not compatible
query I rowsort label-2680
SELECT - col2 / col2 + col2 * 54 FROM tab0 AS cor0
----
1781
4427
53

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2681
SELECT + + CAST( NULL AS SIGNED ) + col1 * - cor0.col1 * CAST( col1 * col0 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2681
SELECT + + CAST ( NULL AS INTEGER ) + col1 * - cor0.col1 * CAST ( col1 * col0 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + cor0.col2 AS col0 FROM tab1, tab1 cor0
----
54
57
96

query I rowsort
SELECT DISTINCT + 51 * + 37 * col2 FROM tab2
----
49062
50949
71706

query I rowsort
SELECT 12 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to d4f5a8e032294c3b9342821617800972

query I rowsort
SELECT ALL - - col2 * + col2 AS col0 FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT ALL + - col2 + cor0.col2 AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col0 * col2 + col2 FROM tab0 AS cor0
----
36
7380
825

query I rowsort
SELECT - - 72 * col1 + col1 * + cor0.col2 * cor0.col0 + - cor0.col1 FROM tab1 AS cor0
----
100763
37190
6058

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 59 * col2 + - col2 * + col2 * + col0 + col1 col0 FROM tab2 AS cor0
----
-111817
-3479
-51135

onlyif mysql # use DIV operator for integer division
query I rowsort label-2690
SELECT ALL + col0 * col0 + + col2 + + 4 DIV col0 AS col2 FROM tab0
----
1226
609
8003

skipif mysql # not compatible
query I rowsort label-2690
SELECT ALL + col0 * col0 + + col2 + + 4 / col0 AS col2 FROM tab0
----
1226
609
8003

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2691
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + 95 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-2691
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + 95 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
NULL

query I rowsort
SELECT + tab0.col2 - + col0 AS col2 FROM tab0
----
-34
-7
9

query I rowsort
SELECT + 60 * + tab2.col2 * tab2.col1 FROM tab2
----
38760
50220
92040

query I rowsort
SELECT DISTINCT col2 + - col0 * + col2 AS col1 FROM tab2
----
-162
-2002
-2964

query I rowsort
SELECT DISTINCT - 67 + col2 FROM tab0
----
-34
-66
15

query I rowsort
SELECT col1 * ( - col1 ) * ( + col2 ) AS col1 FROM tab2
----
-10982
-25947
-90506

query I rowsort
SELECT - ( col0 ) * col1 - - cor0.col1 AS col1 FROM tab2 AS cor0
----
-1326
-186
-4543

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2698
SELECT CAST( NULL AS SIGNED ) - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2698
SELECT CAST ( NULL AS INTEGER ) - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - 0 + 28 FROM tab2 AS cor0
----
28
28
28

query I rowsort
SELECT ALL - col0 * + col2 + col2 FROM tab1 AS cor0
----
-108
-3591
-7584

query I rowsort
SELECT ALL - 66 + col1 AS col0 FROM tab2 AS cor0
----
-35
-49
-7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 97 col1 FROM tab0 cor0
----
97
97
97

query I rowsort
SELECT col0 * 79 AS col0 FROM tab0 AS cor0
----
1896
2765
7031

query I rowsort
SELECT DISTINCT ( - col0 ) * + col0 * cor0.col0 FROM tab1 AS cor0
----
-262144
-27
-512000

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 86 * - cor0.col2 + - cor0.col2 * - col0 * 22 + - col1 col0 FROM tab1 AS cor0
----
177203
8182
85148

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col1 + + col1 col1 FROM tab1 AS cor0
----
20
26
52

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2707
SELECT ALL - CAST( - col0 AS SIGNED ) + col2 FROM tab2 AS cor0
----
104
117
34

skipif mysql # not compatible
query I rowsort label-2707
SELECT ALL - CAST ( - col0 AS INTEGER ) + col2 FROM tab2 AS cor0
----
104
117
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * + col1 col0 FROM tab0 cor0
----
7396
8281
9409

query I rowsort
SELECT tab1.col0 - 35 AS col1 FROM tab1
----
-32
29
45

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2710
SELECT + col1 + - CAST( NULL AS DECIMAL ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2710
SELECT + col1 + - CAST ( NULL AS REAL ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-2711
SELECT ALL ( + col0 ) + + col2 DIV col2 FROM tab1
----
4
65
81

skipif mysql # not compatible
query I rowsort label-2711
SELECT ALL ( + col0 ) + + col2 / col2 FROM tab1
----
4
65
81

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2712
SELECT CAST( NULL AS SIGNED ) * tab1.col2 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2712
SELECT CAST ( NULL AS INTEGER ) * tab1.col2 AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - + 26 * ( + col1 ) + - 59 * + col2 FROM tab1 AS cor0
----
-3623
-3862
-6002

query I rowsort
SELECT DISTINCT - col2 * col1 + + col0 + - 98 AS col0 FROM tab2 AS cor0
----
-1554
-665
-928

query I rowsort
SELECT + col1 * cor0.col2 + + cor0.col1 AS col0 FROM tab0 AS cor0
----
194
2924
7553

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 87 * col1 + col1 col0 FROM tab2 AS cor0
----
-1462
-2666
-5074

query I rowsort
SELECT ALL + col2 + - 44 * col0 * + 56 AS col0 FROM tab0 AS cor0
----
-219214
-59103
-86239

query I rowsort
SELECT + col1 + + 99 * cor0.col1 FROM tab0 AS cor0
----
8600
9100
9700

query I rowsort
SELECT DISTINCT + + 89 + col1 FROM tab1 AS cor0
----
102
115
99

query I rowsort
SELECT ALL - ( col0 ) * - col2 FROM tab2
----
189
2028
3002

query I rowsort
SELECT + - 69 + col2 FROM tab1 AS cor0
----
-12
-15
27

query I rowsort
SELECT ALL ( col1 ) + col0 FROM tab0
----
110
132
180

query I rowsort
SELECT DISTINCT + col2 + - cor0.col0 * col0 + cor0.col1 AS col1 FROM tab1 AS cor0
----
-4029
-6291
71

query I rowsort
SELECT ALL - 69 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 3bd7460efa48c66c072ad5f3c2def7e9

query I rowsort
SELECT DISTINCT - col0 * + 36 AS col2 FROM tab1 AS cor0
----
-108
-2304
-2880

query I rowsort
SELECT ALL - 91 FROM tab2, tab0 AS cor0
----
9 values hashing to 745d1c3a09d935465cad552325c5c945

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + cor0.col2 col1 FROM tab2 AS cor0
----
-33
-4
21

query I rowsort
SELECT ALL - col1 + col0 * + col0 AS col1 FROM tab1 AS cor0
----
-17
4086
6387

query I rowsort
SELECT col2 + - ( + col2 ) AS col1 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2730
SELECT DISTINCT col2 * CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2730
SELECT DISTINCT col2 * CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL

query I rowsort
SELECT ALL + col2 + 9 * col0 AS col1 FROM tab1 AS cor0
----
633
81
816

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 * ( + col2 ) col1 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT - 97 AS col1 FROM tab0, tab0 cor0
----
9 values hashing to e4a6bd848a69226cbb7ad3d154be321b

query I rowsort
SELECT DISTINCT cor0.col1 * + 58 AS col1 FROM tab1 AS cor0
----
1508
580
754

query I rowsort
SELECT ALL + col1 + + 93 FROM tab2 AS cor0
----
110
124
152

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2736
SELECT col0 * ( 42 + + col0 ) * + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2736
SELECT col0 * ( 42 + + col0 ) * + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 * - 90 FROM tab0 AS cor0
----
2970
7380
90

query I rowsort
SELECT DISTINCT + col2 * cor0.col2 + - col2 AS col1 FROM tab0 cor0
----
0
1056
6642

query I rowsort
SELECT ALL col0 - 59 AS col2 FROM tab0 AS cor0
----
-24
-35
30

query I rowsort
SELECT ALL + + col1 - - col2 AS col2 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT DISTINCT + col2 * - 18 * 74 AS col0 FROM tab0 cor0
----
-109224
-1332
-43956

query I rowsort
SELECT col2 * + 67 AS col2 FROM tab1 AS cor0
----
3618
3819
6432

query I rowsort
SELECT ALL ( col2 ) * - col0 FROM tab1 AS cor0
----
-162
-3648
-7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-2744
SELECT DISTINCT - col1 DIV 33 + col2 FROM tab2 AS cor0
----
25
27
38

skipif mysql # not compatible
query I rowsort label-2744
SELECT DISTINCT - col1 / 33 + col2 FROM tab2 AS cor0
----
25
27
38

query I rowsort
SELECT - 16 * + col0 FROM tab0 AS cor0
----
-1424
-384
-560

onlyif mysql # use DIV operator for integer division
query I rowsort label-2746
SELECT ALL cor0.col1 + cor0.col2 DIV col1 + 15 FROM tab1 AS cor0
----
30
35
43

skipif mysql # not compatible
query I rowsort label-2746
SELECT ALL cor0.col1 + cor0.col2 / col1 + 15 FROM tab1 AS cor0
----
30
35
43

query I rowsort
SELECT + col0 + - col2 - col0 FROM tab0 AS cor0
----
-1
-33
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col0 * - col1 * + 73 col2 FROM tab2 AS cor0
----
15841
335946
98039

onlyif mysql # use DIV operator for integer division
query I rowsort label-2749
SELECT col0 DIV - col0 AS col2 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2749
SELECT col0 / - col0 AS col2 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ( - tab2.col2 ) + + 67 AS col2 FROM tab2
----
29
40
41

query I rowsort
SELECT DISTINCT 11 + col0 AS col1 FROM tab1
----
14
75
91

query I rowsort
SELECT ALL + cor1.col0 + 18 AS col1 FROM tab1, tab0 cor0, tab0 cor1
----
27 values hashing to 75f0d35b9cda61f742c2892d81344e5b

onlyif mysql # use DIV operator for integer division
query I rowsort label-2753
SELECT ALL + col0 + - col0 DIV col0 FROM tab1 AS cor0
----
2
63
79

skipif mysql # not compatible
query I rowsort label-2753
SELECT ALL + col0 + - col0 / col0 FROM tab1 AS cor0
----
2
63
79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2754
SELECT DISTINCT CAST( NULL AS DECIMAL ) / - cor0.col2 AS col0 FROM tab0, tab1 AS cor0, tab2 cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-2754
SELECT DISTINCT CAST ( NULL AS REAL ) / - cor0.col2 AS col0 FROM tab0, tab1 AS cor0, tab2 cor1
----
NULL

query I rowsort
SELECT ALL + col0 * - tab0.col0 * + tab0.col1 + col0 * col0 AS col1 FROM tab0
----
-117600
-48960
-712890

query I rowsort
SELECT ALL col1 * - tab1.col1 * tab1.col0 + col2 FROM tab1
----
-13424
-1974
-6343

onlyif mysql # use DIV operator for integer division
query I rowsort label-2757
SELECT + col2 * col2 DIV col1 FROM tab1
----
112
324
708

skipif mysql # not compatible
query I rowsort label-2757
SELECT + col2 * col2 / col1 FROM tab1
----
112
324
708

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col2 IN ( - col1 * - col0 )
----

query I rowsort
SELECT - col1 + + tab0.col2 * col0 AS col1 FROM tab0
----
-62
706
7207

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( + col0 ) NOT IN ( col2 + - col1 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

query I rowsort
SELECT tab0.col1 * col2 FROM tab0 WHERE NOT ( col2 ) NOT IN ( col0 * + col0 )
----

query I rowsort
SELECT DISTINCT col1 * col0 + - col1 AS col2 FROM tab1
----
1027
52
630

onlyif mysql # use DIV operator for integer division
query I rowsort label-2763
SELECT col2 DIV col0 + col0 col1 FROM tab0
----
25
35
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2763
SELECT col2 / col0 + col0 col1 FROM tab0
----
25
35
89

query I rowsort
SELECT ALL 10 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 0fe3e45a9ecd49584c2ab442100d5176

query I rowsort
SELECT + tab1.col2 * col0 + + col0 AS col2 FROM tab1
----
165
3712
7760

query I rowsort
SELECT + tab0.col1 + - tab0.col2 AS col1 FROM tab0
----
53
9
96

query I rowsort
SELECT DISTINCT tab1.col2 - col0 * col2 * - col0 AS col1 FROM tab1
----
233529
540
614496

query I rowsort
SELECT - col1 + + col2 * - col2 FROM tab0 AS cor0
----
-1175
-6815
-98

query IIIIII rowsort
SELECT * FROM tab2, tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-2770
SELECT + col0 - - col1 DIV col2 AS col2 FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-2770
SELECT + col0 - - col1 / col2 AS col2 FROM tab1 AS cor0
----
3
64
80

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 NOT IN ( + col1 / - col1 )
----

query I rowsort
SELECT ALL + col0 * col1 + + tab1.col0 FROM tab1
----
1120
704
81

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NULL >= ( - cor0.col0 )
----

query I rowsort
SELECT DISTINCT tab2.col0 + + col1 + + col2 AS col2 FROM tab2
----
134
163
65

query I rowsort
SELECT - col2 * - tab0.col1 * col2 AS col2 FROM tab0
----
611884
93654
97

query I rowsort
SELECT col0 * col2 * tab2.col2 - col2 AS col1 FROM tab2
----
114038
5076
52702

query I rowsort
SELECT col0 * - col2 * + col0 + + col0 AS col2 FROM tab2
----
-1316
-158106
-237079

query I rowsort
SELECT ALL col1 + + tab1.col2 * col0 AS col2 FROM tab1 WHERE NOT NULL NOT IN ( - col1 )
----

query I rowsort
SELECT ALL + col2 + - col2 + + col2 * col2 FROM tab1
----
2916
3249
9216

query I rowsort
SELECT + col0 FROM tab2 WHERE NULL IN ( col1 )
----

query I rowsort
SELECT ALL col1 FROM tab0 WHERE NULL >= ( col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col0 + col1 BETWEEN ( NULL ) AND ( - col0 )
----

query I rowsort
SELECT DISTINCT - col1 + col2 * col0 - tab1.col0 * + col2 AS col1 FROM tab1
----
-10
-13
-26

query I rowsort
SELECT DISTINCT - col2 FROM tab0 WHERE NULL NOT IN ( + col2 )
----

query I rowsort
SELECT tab2.col2 * + col2 * + tab2.col2 + + tab2.col2 AS col2 FROM tab2
----
17602
19710
54910

query I rowsort
SELECT ALL col0 * + col2 * + col1 + - col1 + - col1 FROM tab2
----
119534
51000
5797

query I rowsort
SELECT ALL + col1 + - col2 - col2 FROM tab1
----
-104
-179
-82

query I rowsort
SELECT ALL col0 * + col0 + + tab0.col1 * col1 AS col1 FROM tab0
----
10634
16202
7972

query I rowsort
SELECT - tab1.col2 * - tab1.col2 * - col0 AS col0 FROM tab1
----
-207936
-737280
-8748

query I rowsort
SELECT ALL col2 * col0 * + tab2.col1 FROM tab2
----
119652
51034
5859

query I rowsort
SELECT DISTINCT col1 * + col1 + + col2 FROM tab0
----
7429
8363
9410

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( + col2 + + col1 * + col1 ) NOT IN ( + col1 + col0 - + tab1.col1 * + col0 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

query I rowsort
SELECT - col1 + col0 FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN ( col1 ) AND NULL
----

query I rowsort
SELECT DISTINCT 92 + 68 + col1 FROM tab2
----
177
191
219

query I rowsort
SELECT col2 * + col2 + col0 + + 96 AS col2 FROM tab2
----
1619
832
850

query I rowsort
SELECT - 37 * col2 FROM tab2
----
-1406
-962
-999

query I rowsort
SELECT 1 + + 18 * + col1 * + ( ( tab2.col2 ) * + col1 ) FROM tab2
----
1629109
197677
467047

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 74 col0 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to dc22979e6d261795bd3ce2990fdbbf82

query I rowsort
SELECT - ( + col2 ) * + col0 FROM tab2
----
-189
-2028
-3002

query I rowsort
SELECT DISTINCT tab1.col0 + col2 * + col0 * tab1.col2 FROM tab1
----
208000
737360
8751

query I rowsort
SELECT DISTINCT + cor0.col2 * + 13 AS col2 FROM tab2 AS cor0
----
338
351
494

query I rowsort
SELECT ( 77 ) + cor0.col2 - - 54 * - col1 * col0 FROM tab2 AS cor0
----
-11614
-248405
-72407

query I rowsort
SELECT DISTINCT + ( 35 ) * - col1 + + ( col1 ) FROM tab0 AS cor0
----
-2924
-3094
-3298

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + cor0.col1 * - col1 - cor0.col0 col2 FROM tab0 AS cor0
----
-7420
-8370
-9444

query I rowsort
SELECT + 86 * + col1 - col2 FROM tab2 cor0
----
1424
2639
5048

query I rowsort
SELECT ALL - + 29 AS col2 FROM tab0 cor0
----
-29
-29
-29

onlyif mysql # use DIV operator for integer division
query I rowsort label-2807
SELECT DISTINCT + + col1 + + col2 DIV + col0 + col2 FROM tab0 AS cor0
----
120
173
98

skipif mysql # not compatible
query I rowsort label-2807
SELECT DISTINCT + + col1 + + col2 / + col0 + col2 FROM tab0 AS cor0
----
120
173
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-2808
SELECT ALL + + col1 * col1 - col1 DIV ( col0 ) FROM tab2 AS cor0
----
289
3481
957

skipif mysql # not compatible
query I rowsort label-2808
SELECT ALL + + col1 * col1 - col1 / ( col0 ) FROM tab2 AS cor0
----
289
3481
957

query I rowsort
SELECT - 78 + - col0 AS col2 FROM tab0 AS cor0
----
-102
-113
-167

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 27 * - col0 col1 FROM tab0 AS cor0
----
2403
648
945

query I rowsort
SELECT ALL + col1 * col2 * ( col2 ) FROM tab2 cor0
----
22599
24548
39884

query I rowsort
SELECT col2 + col1 * + 87 AS col2 FROM tab0 AS cor0
----
7515
7999
8440

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col0 * col1 col0 FROM tab0 cor0
----
2064
3395
8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-2814
SELECT ALL - ( - col1 ) DIV col0 + col2 * col1 FROM tab0 AS cor0
----
2841
7463
99

skipif mysql # not compatible
query I rowsort label-2814
SELECT ALL - ( - col1 ) / col0 + col2 * col1 FROM tab0 AS cor0
----
2841
7463
99

query I rowsort
SELECT ALL col1 + - col2 * col1 * col1 - col1 FROM tab0 cor0
----
-244068
-679042
-9409

query I rowsort
SELECT ALL 96 * - col1 * col0 AS col2 FROM tab1
----
-61440
-7488
-99840

query I rowsort
SELECT ALL - col2 * 82 AS col2 FROM tab1 AS cor0
----
-4428
-4674
-7872

onlyif mysql # use DIV operator for integer division
query I rowsort label-2818
SELECT DISTINCT - col0 DIV 39 AS col2 FROM tab1 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-2818
SELECT DISTINCT - col0 / 39 AS col2 FROM tab1 AS cor0
----
-1
-2
0

query I rowsort
SELECT - col0 * 71 * col1 FROM tab1 cor0
----
-45440
-5538
-73840

query I rowsort
SELECT - - col1 * 12 * - col0 FROM tab1 AS cor0
----
-12480
-7680
-936

query I rowsort
SELECT + cor0.col0 + - col0 * + col1 FROM tab1 AS cor0
----
-576
-75
-960

query I rowsort
SELECT DISTINCT - + cor0.col1 * ( col1 ) FROM tab2 AS cor0
----
-289
-3481
-961

query I rowsort
SELECT DISTINCT - col2 * 63 FROM tab1
----
-3402
-3591
-6048

query I rowsort
SELECT DISTINCT + col0 + - cor0.col2 + 99 FROM tab2 cor0
----
140
151
79

query I rowsort
SELECT ALL - col1 * - col1 * 36 FROM tab2 AS cor0
----
10404
125316
34596

query I rowsort
SELECT ALL - col1 * cor0.col2 + ( - col1 ) + col0 AS col2 FROM tab1 AS cor0
----
-1181
-1427
-516

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 14 col1 FROM tab1 AS cor0
----
14

query I rowsort
SELECT ALL + ( - col0 ) + col2 * - col2 FROM tab0 AS cor0
----
-1113
-36
-6813

query I rowsort
SELECT 91 * - col1 FROM tab2 AS cor0
----
-1547
-2821
-5369

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2830
SELECT DISTINCT + ( col1 ) * CAST( - 49 AS SIGNED ) + + col2 AS col0 FROM tab1 cor0
----
-1220
-433
-541

skipif mysql # not compatible
query I rowsort label-2830
SELECT DISTINCT + ( col1 ) * CAST ( - 49 AS INTEGER ) + + col2 AS col0 FROM tab1 cor0
----
-1220
-433
-541

query I rowsort
SELECT col2 * + ( col2 ) + ( ( tab1.col1 ) ) FROM tab1
----
2942
3259
9229

query I rowsort
SELECT 96 + + tab1.col2 FROM tab1
----
150
153
192

query I rowsort
SELECT DISTINCT - 0 + ( + col2 ) FROM tab0
----
1
33
82

query I rowsort
SELECT ALL + 59 * col2 FROM tab1 AS cor0
----
3186
3363
5664

query I rowsort
SELECT - col2 + + col1 * cor0.col2 + + col2 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT col0 + - col2 * - 97 + col1 AS col2 FROM tab2 AS cor0
----
2657
2659
3782

query I rowsort
SELECT DISTINCT - 63 * col0 * 77 AS col2 FROM tab1 AS cor0
----
-14553
-310464
-388080

query I rowsort
SELECT col0 * col1 + + col2 + + col1 AS col0 FROM tab1 AS cor0
----
1149
158
707

query I rowsort
SELECT DISTINCT + 78 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * 85 col1 FROM tab1 AS cor0
----
255
5440
6800

query I rowsort
SELECT - tab2.col0 + - col2 * + ( 78 ) FROM tab2
----
-2106
-2113
-3043

query I rowsort
SELECT DISTINCT 40 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
40

query I rowsort
SELECT + + col2 * 75 FROM tab1 AS cor0
----
4050
4275
7200

query I rowsort
SELECT + - col0 * + 61 + - col0 AS col0 FROM tab1 AS cor0
----
-186
-3968
-4960

query I rowsort
SELECT DISTINCT + + col0 * col1 - + col0 FROM tab0 AS cor0
----
2040
3360
8010

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2846
SELECT DISTINCT - CAST( - col0 AS SIGNED ) - + col2 FROM tab1 AS cor0
----
-16
-51
7

skipif mysql # not compatible
query I rowsort label-2846
SELECT DISTINCT - CAST ( - col0 AS INTEGER ) - + col2 FROM tab1 AS cor0
----
-16
-51
7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2847
SELECT ALL - CAST( + col0 AS SIGNED ) + + cor0.col1 AS col1 FROM tab0 cor0
----
2
62
62

skipif mysql # not compatible
query I rowsort label-2847
SELECT ALL - CAST ( + col0 AS INTEGER ) + + cor0.col1 AS col1 FROM tab0 cor0
----
2
62
62

query I rowsort
SELECT ALL - - 70 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 9758da65ae4711e3e8c8def2fe026911

onlyif mysql # use DIV operator for integer division
query I rowsort label-2849
SELECT col0 DIV + col1 + tab0.col0 FROM tab0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-2849
SELECT col0 / + col1 + tab0.col0 FROM tab0
----
24
35
89

query I rowsort
SELECT ALL + col0 + + 91 AS col0 FROM tab0
----
115
126
180

query I rowsort
SELECT - 50 + + 68 AS col0 FROM tab2
----
18
18
18

query I rowsort
SELECT DISTINCT - 86 + tab0.col2 AS col0 FROM tab0
----
-4
-53
-85