sqllogictest
Artifact Content
Not logged in

Artifact 95a9f8ed7e69598af81d045a4dc158bf4604da56:


hash-threshold 8

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

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

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

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT - - 28 * col2 + + col1 FROM tab1 AS cor0
----
1538
1606
2701

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

query I rowsort
SELECT ALL + col1 + - 63 FROM tab1 AS cor0
----
-37
-50
-53

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

query I rowsort
SELECT ALL + cor0.col0 + - col0 * - 25 FROM tab2 AS cor0
----
182
2028
2054

query I rowsort
SELECT tab1.col2 * col2 * + 77 + col0 FROM tab1
----
224535
250237
709712

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

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

query I rowsort
SELECT ALL 95 * col0 * col1 FROM tab1
----
60800
7410
98800

query I rowsort
SELECT + 53 AS col0 FROM tab0
----
53
53
53

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

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

query I rowsort
SELECT + 30 * + col2 * + col2 FROM tab1 cor0
----
276480
87480
97470

query I rowsort
SELECT DISTINCT - ( - 12 ) * - cor0.col2 FROM tab0 AS cor0
----
-12
-396
-984

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

query I rowsort
SELECT + - col1 + - 2 + - col1 FROM tab0 AS cor0
----
-174
-184
-196

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

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

query I rowsort
SELECT 22 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9

onlyif mysql # use DIV operator for integer division
query I rowsort label-20
SELECT ALL + - cor1.col2 DIV 14 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 3c67480122c507e50facac7cf0275b29

skipif mysql # not compatible
query I rowsort label-20
SELECT ALL + - cor1.col2 / 14 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 3c67480122c507e50facac7cf0275b29

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

query I rowsort
SELECT 7 + col1 AS col2 FROM tab2 AS cor0
----
24
38
66

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

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

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

query I rowsort
SELECT ALL + 53 * col1 AS col0 FROM tab2 AS cor0
----
1643
3127
901

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

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

query I rowsort
SELECT + 39 + col2 FROM tab2 cor0
----
65
66
77

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

query I rowsort
SELECT ALL + - col1 * col1 + 20 FROM tab0 AS cor0
----
-7376
-8261
-9389

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

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

query I rowsort
SELECT - - ( col0 ) + + 31 FROM tab0 AS cor0
----
120
55
66

query I rowsort
SELECT cor0.col0 * + col2 + 36 FROM tab2 AS cor0
----
2064
225
3038

query I rowsort
SELECT DISTINCT col0 * 70 FROM tab0
----
1680
2450
6230

query I rowsort
SELECT + col0 * - ( col2 ) * + col0 FROM tab2
----
-1323
-158184
-237158

query I rowsort
SELECT - col0 + + 95 * 48 AS col0 FROM tab1 AS cor0
----
4480
4496
4557

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

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

query I rowsort
SELECT - col2 * ( + 34 * col2 ) - 23 AS col2 FROM tab2 AS cor0
----
-23007
-24809
-49119

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

query I rowsort
SELECT 98 + - col1 * col0 FROM tab1
----
-542
-942
20

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

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

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

skipif mysql # not compatible
query I rowsort label-43
SELECT - + col0 * CAST ( cor0.col0 AS INTEGER ) * - col0 - - CAST ( + col0 AS INTEGER ) * - col2 * col2 AS col0 FROM tab0 AS cor0
----
-12312
106533
42840

query I rowsort
SELECT + - 51 * - cor0.col1 + col0 FROM tab2 AS cor0
----
1588
3087
946

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

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

query I rowsort
SELECT + + ( + 42 ) + col2 AS col0 FROM tab2 AS cor0
----
68
69
80

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

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

query I rowsort
SELECT ALL + col1 + 21 AS col0 FROM tab2
----
38
52
80

query I rowsort
SELECT DISTINCT col1 + + ( 94 ) FROM tab0
----
180
185
191

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

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

query I rowsort
SELECT - col1 * + 15 FROM tab0 AS cor0
----
-1290
-1365
-1455

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

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

query I rowsort
SELECT DISTINCT - 35 + + col1 AS col0 FROM tab1 AS cor0
----
-22
-25
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor1.col1 col2 FROM tab1, tab0 AS cor0, tab2 cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

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

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

query I rowsort
SELECT ALL + 14 + 99 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to e8b0720b8386c308e7f43eb0f4e6aee1

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

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

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

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

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

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

query I rowsort
SELECT - col2 + - col1 * col1 FROM tab0 AS cor0
----
-7429
-8363
-9410

onlyif mysql # use DIV operator for integer division
query I rowsort label-66
SELECT cor0.col1 DIV col0 + col1 * - col1 FROM tab2 AS cor0
----
-289
-3481
-957

skipif mysql # not compatible
query I rowsort label-66
SELECT cor0.col1 / col0 + col1 * - col1 FROM tab2 AS cor0
----
-289
-3481
-957

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-69
SELECT DISTINCT 40 - + tab1.col0 DIV + 37 FROM tab1, tab0, tab0 AS cor0
----
38
39
40

skipif mysql # not compatible
query I rowsort label-69
SELECT DISTINCT 40 - + tab1.col0 / + 37 FROM tab1, tab0, tab0 AS cor0
----
38
39
40

onlyif mysql # use DIV operator for integer division
query I rowsort label-70
SELECT ALL - ( - col2 ) DIV 52 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-70
SELECT ALL - ( - col2 ) / 52 FROM tab0
----
0
0
1

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

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

query I rowsort
SELECT DISTINCT col1 + 86 FROM tab0 AS cor0
----
172
177
183

query I rowsort
SELECT DISTINCT - col2 + + 38 FROM tab2 AS cor0
----
0
11
12

query I rowsort
SELECT DISTINCT + col0 + + 13 FROM tab1 AS cor0
----
16
77
93

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

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

query I rowsort
SELECT 2 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 535345c50a19fdab97ce05d1837b1f09

query I rowsort
SELECT + - 77 AS col2 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to c7e5f48ecd3843d54a76808ed1f43ff6

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

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

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

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

skipif mysql # not compatible
query I rowsort label-82
SELECT DISTINCT - - col1 * + CAST ( + ( + col2 ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
2838
7462
97

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-84
SELECT DISTINCT col2 DIV - col1 + col0 * col0 AS col0 FROM tab0
----
1225
576
7921

skipif mysql # not compatible
query I rowsort label-84
SELECT DISTINCT col2 / - col1 + col0 * col0 AS col0 FROM tab0
----
1225
576
7921

query I rowsort
SELECT + col2 - + 88 * + col0 * tab2.col1 FROM tab2
----
-118146
-19069
-404950

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

query I rowsort
SELECT - col1 - - ( - 13 ) FROM tab1
----
-23
-26
-39

query I rowsort
SELECT DISTINCT + 13 * cor0.col0 AS col2 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
1157
312
455

query I rowsort
SELECT DISTINCT col0 * tab1.col0 * col0 AS col1 FROM tab1
----
262144
27
512000

query I rowsort
SELECT + - col2 * - ( 98 ) AS col1 FROM tab2 AS cor0
----
2548
2646
3724

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-92
SELECT ALL - CAST( NULL AS SIGNED ) FROM tab0, tab2, tab2 AS cor0, tab1
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

skipif mysql # not compatible
query I rowsort label-92
SELECT ALL - CAST ( NULL AS INTEGER ) FROM tab0, tab2, tab2 AS cor0, tab1
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

query I rowsort
SELECT 40 * col2 FROM tab1
----
2160
2280
3840

onlyif mysql # use DIV operator for integer division
query I rowsort label-94
SELECT ( 26 ) DIV + col2 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-94
SELECT ( 26 ) / + col2 AS col2 FROM tab1
----
0
0
0

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

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

query I rowsort
SELECT DISTINCT 5 FROM tab2, tab2 cor0
----
5

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

skipif mysql # not compatible
query I rowsort label-98
SELECT 10 / - col0 FROM tab2 AS cor0
----
-1
0
0

query I rowsort
SELECT DISTINCT + 95 - col0 * - col0 * - col2 FROM tab0
----
-1130
-18913
-649427

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

query I rowsort
SELECT DISTINCT 99 * - col2 FROM tab2 AS cor0
----
-2574
-2673
-3762

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

query I rowsort
SELECT DISTINCT - 85 + col1 FROM tab1 cor0
----
-59
-72
-75

query I rowsort
SELECT - 84 * col2 AS col0 FROM tab2 AS cor0
----
-2184
-2268
-3192

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

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

query I rowsort
SELECT - 33 * - 5 + - col1 * ( col1 + col0 ) AS col2 FROM tab1 AS cor0
----
-1044
-575
-589

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - col2 ) + + cor0.col1 col0 FROM tab1 AS cor0
----
-28
-47
-83

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

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

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

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

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

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

query I rowsort
SELECT col0 + ( col1 + - ( col0 ) * col2 ) FROM tab0
----
-682
-7118
97

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

query I rowsort
SELECT ALL col0 * 33 + ( col2 + ( col0 ) ) AS col0 FROM tab1 AS cor0
----
156
2233
2816

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-117
SELECT DISTINCT + col2 + - col1 + 48 DIV + col1 AS col0 FROM tab2 AS cor0
----
-3
-33
23

skipif mysql # not compatible
query I rowsort label-117
SELECT DISTINCT + col2 + - col1 + 48 / + col1 AS col0 FROM tab2 AS cor0
----
-3
-33
23

query I rowsort
SELECT ALL + cor0.col0 + + col0 * 54 AS col0 FROM tab0 AS cor0
----
1320
1925
4895

query I rowsort
SELECT - - col0 + ( col1 + col1 * col1 ) FROM tab2 AS cor0
----
3618
385
999

query I rowsort
SELECT DISTINCT - col0 + 2 FROM tab1 AS cor0
----
-1
-62
-78

query I rowsort
SELECT ALL cor0.col1 + col2 - col1 * - col2 AS col0 FROM tab0 AS cor0
----
195
2957
7635

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-123
SELECT DISTINCT cor0.col1 * + ( + col0 ) DIV + col0 + - col0 * - col1 DIV col1 AS col2 FROM tab2 AS cor0
----
137
38
96

skipif mysql # not compatible
query I rowsort label-123
SELECT DISTINCT cor0.col1 * + ( + col0 ) / + col0 + - col0 * - col1 / col1 AS col2 FROM tab2 AS cor0
----
137
38
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * + col1 col0 FROM tab0 AS cor0
----
-7396
-8281
-9409

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

query I rowsort
SELECT ALL 19 - col1 AS col1 FROM tab2
----
-12
-40
2

query I rowsort
SELECT + + col1 * 38 FROM tab0 AS cor0
----
3268
3458
3686

query I rowsort
SELECT + 66 * - col2 * col0 AS col2 FROM tab0
----
-2310
-481668
-52272

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

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-131
SELECT cor0.col1 + CAST( col0 AS SIGNED ) * + col2 * 69 AS col1 FROM tab2 AS cor0
----
13072
139991
207155

skipif mysql # not compatible
query I rowsort label-131
SELECT cor0.col1 + CAST ( col0 AS INTEGER ) * + col2 * 69 AS col1 FROM tab2 AS cor0
----
13072
139991
207155

query I rowsort
SELECT - - col2 + 62 FROM tab0 cor0
----
144
63
95

query I rowsort
SELECT col1 + 27 AS col1 FROM tab1
----
37
40
53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col2 ) + col0 * - cor0.col0 col0 FROM tab1 AS cor0
----
-4039
-6304
45

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

query I rowsort
SELECT col1 + + col2 * cor0.col2 * - col1 AS col2 FROM tab0 AS cor0
----
-611793
-93568
0

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

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

skipif mysql # not compatible
query I rowsort label-138
SELECT CAST ( col0 AS INTEGER ) * + col2 * - 30 FROM tab2 AS cor0
----
-5670
-60840
-90060

query I rowsort
SELECT + 53 + cor1.col1 AS col1 FROM tab2, tab2 AS cor0, tab0 cor1
----
27 values hashing to ef82db2c81c448b21df3a112732bca60

query I rowsort
SELECT DISTINCT col0 * - 75 FROM tab0
----
-1800
-2625
-6675

query I rowsort
SELECT + - 44 + + 15 FROM tab2 AS cor0
----
-29
-29
-29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 36 - + 88 col2 FROM tab0 AS cor0
----
-124
-124
-124

query I rowsort
SELECT + ( - cor0.col0 ) * cor0.col1 + col1 AS col2 FROM tab2 AS cor0
----
-1326
-186
-4543

query I rowsort
SELECT - ( + cor0.col0 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0

query I rowsort
SELECT ALL + 50 + + cor0.col0 AS col0 FROM tab2 AS cor0
----
128
129
57

query I rowsort
SELECT DISTINCT + + 69 + - col1 * - col2 AS col1 FROM tab1 cor0
----
1317
1473
639

query I rowsort
SELECT DISTINCT col2 + + col0 * 96 AS col1 FROM tab0 AS cor0
----
2337
3361
8626

query I rowsort
SELECT ALL - 52 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 9500afe5646d620d5e8943351a29d082

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

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

skipif mysql # not compatible
query I rowsort
SELECT ALL - col0 * - CAST ( + 27 AS REAL ) FROM tab2 cor0
----
189
2106
2133

onlyif mysql # use DIV operator for integer division
query I rowsort label-151
SELECT col1 * CAST( col0 AS SIGNED ) DIV + col1 FROM tab1
----
3
64
80

skipif mysql # not compatible
query I rowsort label-151
SELECT col1 * CAST ( col0 AS INTEGER ) / + col1 FROM tab1
----
3
64
80

query I rowsort
SELECT ALL ( + tab0.col1 ) + - 90 AS col1 FROM tab0, tab2 cor0, tab2 AS cor1
----
27 values hashing to 321a1f45ce37b8acaeadf98f4964f318

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

skipif mysql # not compatible
query I rowsort label-153
SELECT + col1 / + 60 AS col1 FROM tab2
----
0
0
0

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

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

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

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

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

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

query I rowsort
SELECT + col1 + + 52 * col2 FROM tab1 AS cor0
----
2834
2974
5005

query I rowsort
SELECT DISTINCT 69 + 10 + + col2 AS col1 FROM tab2
----
105
106
117

query I rowsort
SELECT 21 + - col0 AS col1 FROM tab0 AS cor0
----
-14
-3
-68

query I rowsort
SELECT - tab1.col2 - + col0 * + col0 FROM tab1
----
-4153
-63
-6496

query I rowsort
SELECT 40 + - col0 FROM tab2
----
-38
-39
33

query I rowsort
SELECT DISTINCT - col1 * col1 * 91 FROM tab2
----
-26299
-316771
-87451

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

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

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

query I rowsort
SELECT + 2 * col0 AS col2 FROM tab1 AS cor0
----
128
160
6

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

query I rowsort
SELECT - 84 AS col2 FROM tab2 cor0
----
-84
-84
-84

query I rowsort
SELECT - - 84 + - col0 FROM tab0 AS cor0
----
-5
49
60

query I rowsort
SELECT DISTINCT + 19 + - cor0.col0 * col2 AS col1 FROM tab0 AS cor0
----
-16
-7279
-773

onlyif mysql # use DIV operator for integer division
query I rowsort label-172
SELECT - + 86 DIV - 66 AS col2 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-172
SELECT - + 86 / - 66 AS col2 FROM tab1 AS cor0
----
1
1
1

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

query I rowsort
SELECT + col2 * ( - 5 ) FROM tab0
----
-165
-410
-5

query I rowsort
SELECT ALL 23 * 33 + - col0 FROM tab1 AS cor0
----
679
695
756

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( cor0.col2 ) col0 FROM tab2, tab0 AS cor0
----
-1
-33
-82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-177
SELECT + tab1.col1 * CAST( - col1 AS SIGNED ) * col1 FROM tab1
----
-1000
-17576
-2197

skipif mysql # not compatible
query I rowsort label-177
SELECT + tab1.col1 * CAST ( - col1 AS INTEGER ) * col1 FROM tab1
----
-1000
-17576
-2197

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

query I rowsort
SELECT - + 55 + + col1 * + col1 FROM tab2 cor0
----
234
3426
906

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

query I rowsort
SELECT ALL - col2 + ( + col1 ) * - col1 * + col0 FROM tab0
----
-177537
-329316
-737091

query I rowsort
SELECT - 72 * 90 FROM tab1, tab0 AS cor0
----
9 values hashing to d9e1376c8505c7726db829cb8034aad8

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-184
SELECT + col0 DIV ( + col0 + + col1 * - col1 ) FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-184
SELECT + col0 / ( + col0 + + col1 * - col1 ) FROM tab2
----
0
0
0

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

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

skipif mysql # not compatible
query I rowsort
SELECT - + CAST ( col2 AS REAL ) * col2 - col0 AS col2 FROM tab1 AS cor0
----
-2919
-3313
-9296

query I rowsort
SELECT DISTINCT col2 * col0 + + col0 * col0 - - 48 FROM tab2 AS cor0
----
286
8160
9291

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

query I rowsort
SELECT DISTINCT ( ( col1 ) ) + - 73 AS col1 FROM tab0 AS cor0
----
13
18
24

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-192
SELECT ALL 79 + + col0 DIV + col0 + col2 * 82 FROM tab2
----
2212
2294
3196

skipif mysql # not compatible
query I rowsort label-192
SELECT ALL 79 + + col0 / + col0 + col2 * 82 FROM tab2
----
2212
2294
3196

query I rowsort
SELECT ALL - 46 + cor0.col2 * - ( cor0.col1 ) FROM tab0 AS cor0
----
-143
-2884
-7508

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

skipif mysql # not compatible
query I rowsort label-194
SELECT ALL ( + col1 ) + + CAST ( col2 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
55
58
85

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-195
SELECT DISTINCT - 47 * + col0 * + CAST( col0 AS SIGNED ) + col2 FROM tab2 AS cor0
----
-2276
-285922
-293289

skipif mysql # not compatible
query I rowsort label-195
SELECT DISTINCT - 47 * + col0 * + CAST ( col0 AS INTEGER ) + col2 FROM tab2 AS cor0
----
-2276
-285922
-293289

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

query I rowsort
SELECT DISTINCT col2 * cor0.col1 * ( + 10 ) + col1 FROM tab0 cor0
----
1067
28466
74711

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-199
SELECT ALL + CAST( 11 AS SIGNED ) + col2 * - col0 * col1 FROM tab2
----
-119641
-51023
-5848

skipif mysql # not compatible
query I rowsort label-199
SELECT ALL + CAST ( 11 AS INTEGER ) + col2 * - col0 * col1 FROM tab2
----
-119641
-51023
-5848

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

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

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - + col2 + + CAST ( 30 + col1 AS REAL ) * col1 FROM tab1 AS cor0
----
1402
343
463

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

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

query I rowsort
SELECT - cor0.col0 + + 19 * col0 FROM tab2 AS cor0
----
126
1404
1422

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

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

query I rowsort
SELECT ALL col1 * + ( + 74 * col2 ) AS col2 FROM tab2 AS cor0
----
113516
47804
61938

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

query I rowsort
SELECT ( tab0.col0 * 98 ) FROM tab0
----
2352
3430
8722

query I rowsort
SELECT tab2.col0 * 97 FROM tab2, tab2 cor0
----
9 values hashing to 680888a24a416fac4670ec8fb277d7c9

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

query I rowsort
SELECT + col0 + ( 65 ) AS col1 FROM tab2 AS cor0
----
143
144
72

query I rowsort
SELECT - + col2 * 29 + - col0 * col0 - + col0 AS col1 FROM tab1 AS cor0
----
-1578
-5813
-9264

query I rowsort
SELECT col1 * + col2 + + 68 FROM tab1 AS cor0
----
1316
1472
638

query I rowsort
SELECT DISTINCT col1 - 45 AS col1 FROM tab2
----
-14
-28
14

skipif mysql # not compatible
query I rowsort
SELECT - col2 * - CAST ( col1 AS REAL ) + - col0 FROM tab0 AS cor0
----
2814
62
7373

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

query I rowsort
SELECT ALL 8 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 33069adc3c1142d31511ec88fcfa40af

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

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

query I rowsort
SELECT - 86 * + col0 * ( - 73 ) + col2 + ( - ( col1 ) ) * - 16 AS col2 FROM tab1 AS cor0
----
19304
402009
502544

query I rowsort
SELECT ALL + + 3 * cor0.col2 + col2 AS col1 FROM tab2 AS cor0
----
104
108
152

query I rowsort
SELECT DISTINCT - 53 * col0 AS col2 FROM tab1 cor0
----
-159
-3392
-4240

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

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

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

query I rowsort
SELECT ALL col2 * + col2 * 81 AS col0 FROM tab0 AS cor0
----
544644
81
88209

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

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

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

query I rowsort
SELECT ALL cor0.col0 * 45 * - 86 AS col1 FROM tab1 AS cor0
----
-11610
-247680
-309600

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

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

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

query I rowsort
SELECT + - col2 + ( - col0 ) * col0 + - 92 AS col0 FROM tab1 AS cor0
----
-155
-4245
-6588

query I rowsort
SELECT + cor0.col2 + + col2 + col0 FROM tab0 AS cor0
----
253
37
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + tab1.col0 col0 FROM tab1, tab2 AS cor0
----
3
64
80

query I rowsort
SELECT cor0.col2 + 41 FROM tab1 cor0
----
137
95
98

query I rowsort
SELECT + col1 + + ( - col2 ) * cor0.col0 + cor0.col2 FROM tab0 AS cor0
----
-673
-7125
63

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

query I rowsort
SELECT ALL - 3 + col1 AS col2 FROM tab1 AS cor0
----
10
23
7

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

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

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

skipif mysql # not compatible
query I rowsort label-241
SELECT DISTINCT + 4 / + col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL col0 * - 17 AS col1 FROM tab1 AS cor0
----
-1088
-1360
-51

query I rowsort
SELECT - + col1 + + 11 AS col2 FROM tab0 AS cor0
----
-75
-80
-86

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

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

query I rowsort
SELECT ALL - col1 * - 50 FROM tab1 AS cor0
----
1300
500
650

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-248
SELECT ALL CAST( - ( cor0.col0 ) AS SIGNED ) + - col1 AS col2 FROM tab1 cor0
----
-29
-74
-93

skipif mysql # not compatible
query I rowsort label-248
SELECT ALL CAST ( - ( cor0.col0 ) AS INTEGER ) + - col1 AS col2 FROM tab1 cor0
----
-29
-74
-93

onlyif mysql # use DIV operator for integer division
query I rowsort label-249
SELECT DISTINCT col1 DIV cor0.col1 + col2 AS col1 FROM tab2 AS cor0
----
27
28
39

skipif mysql # not compatible
query I rowsort label-249
SELECT DISTINCT col1 / cor0.col1 + col2 AS col1 FROM tab2 AS cor0
----
27
28
39

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-251
SELECT ALL + + col2 + col1 DIV + col0 col0 FROM tab1 AS cor0
----
57
62
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-251
SELECT ALL + + col2 + col1 / + col0 col0 FROM tab1 AS cor0
----
57
62
96

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

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

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

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

query I rowsort
SELECT col1 * + col0 + - col1 * - cor0.col1 FROM tab0 AS cor0
----
12804
16380
9460

query I rowsort
SELECT ALL tab0.col2 * 10 + cor0.col1 FROM tab2, tab2 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab0 AS cor2
----
243 values hashing to e9c1f4dd499d9d0af56c9b1543b1b17c

query I rowsort
SELECT 21 AS col2 FROM tab2, tab1 AS cor0 CROSS JOIN tab0
----
27 values hashing to 312c166f4dc412730c43555105b1f44b

query I rowsort
SELECT ALL - col2 + + col1 - col0 * 79 FROM tab0
----
-1843
-2669
-7022

query I rowsort
SELECT 9 + - col0 AS col0 FROM tab2
----
-69
-70
2

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

query I rowsort
SELECT - col1 + + col1 * + col1 + + col2 * 78 FROM tab2
----
3036
3236
5450

query I rowsort
SELECT ALL + tab1.col2 + col2 + + 15 FROM tab1
----
123
129
207

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

query I rowsort
SELECT - 24 * + col1 + cor0.col1 AS col2 FROM tab2 AS cor0
----
-1357
-391
-713

query I rowsort
SELECT - + ( cor1.col2 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba

query I rowsort
SELECT DISTINCT cor0.col0 AS col1 FROM tab0, tab2 cor0, tab0 AS cor1
----
7
78
79

query I rowsort
SELECT 40 * cor0.col1 AS col2 FROM tab1 AS cor0
----
1040
400
520

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

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

query I rowsort
SELECT ( + 28 ) FROM tab2, tab1 AS cor0
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT ALL CAST ( - 71 AS REAL ) col2 FROM tab1, tab2 AS cor0, tab1 cor1, tab2 cor2
----
81 values hashing to ac364708ef97c5cf80f126fc088b952e

query I rowsort
SELECT DISTINCT col2 * + 99 * + cor0.col0 AS col2 FROM tab2 AS cor0
----
18711
200772
297198

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

query I rowsort
SELECT DISTINCT - + 84 * 17 - - cor0.col1 FROM tab1 AS cor0
----
-1402
-1415
-1418

query I rowsort
SELECT ALL - 90 * ( col0 ) AS col1 FROM tab2 AS cor0
----
-630
-7020
-7110

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

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-279
SELECT + + col1 + - CAST( 25 AS SIGNED ) * cor0.col0 * col0 AS col0 FROM tab2 cor0
----
-1194
-152041
-156008

skipif mysql # not compatible
query I rowsort label-279
SELECT + + col1 + - CAST ( 25 AS INTEGER ) * cor0.col0 * col0 AS col0 FROM tab2 cor0
----
-1194
-152041
-156008

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

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

query I rowsort
SELECT DISTINCT - col1 * + ( 75 ) * - cor0.col1 + 82 AS col1 FROM tab1 cor0
----
12757
50782
7582

query I rowsort
SELECT + col1 * 28 FROM tab0 AS cor0
----
2408
2548
2716

query I rowsort
SELECT col0 + 19 AS col1 FROM tab1 AS cor0
----
22
83
99

onlyif mysql # use DIV operator for integer division
query I rowsort label-285
SELECT + col2 DIV 31 + - 8 AS col1 FROM tab0
----
-6
-7
-8

skipif mysql # not compatible
query I rowsort label-285
SELECT + col2 / 31 + - 8 AS col1 FROM tab0
----
-6
-7
-8

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

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

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

query I rowsort
SELECT - col1 * + cor0.col2 * - col1 - col0 * - col0 FROM tab1 AS cor0
----
22624
36513
9796

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-289
SELECT col1 * + col1 + + CAST( + 4 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
293
3485
965

skipif mysql # not compatible
query I rowsort label-289
SELECT col1 * + col1 + + CAST ( + 4 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
293
3485
965

query I rowsort
SELECT ALL 41 * - col2 AS col1 FROM tab0 cor0
----
-1353
-3362
-41

onlyif mysql # use DIV operator for integer division
query I rowsort label-291
SELECT DISTINCT 60 * col0 DIV - col2 FROM tab1
----
-3
-50
-67

skipif mysql # not compatible
query I rowsort label-291
SELECT DISTINCT 60 * col0 / - col2 FROM tab1
----
-3
-50
-67

query I rowsort
SELECT DISTINCT tab0.col2 FROM tab1, tab2 AS cor0 CROSS JOIN tab0
----
1
33
82

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

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

query I rowsort
SELECT - col0 * 43 * col2 FROM tab1 AS cor0
----
-156864
-330240
-6966

query I rowsort
SELECT - 4 + + col2 FROM tab0 cor0
----
-3
29
78

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

query I rowsort
SELECT ALL - col2 * + col2 - 43 * col0 AS col2 FROM tab0
----
-10551
-1506
-2121

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

query I rowsort
SELECT + cor0.col2 * cor0.col0 + 65 FROM tab2 AS cor0
----
2093
254
3067

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

query I rowsort
SELECT ALL 76 * 71 AS col1 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8b2e0b2f78375ee14445d5064da5246c

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

query I rowsort
SELECT + - 37 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ed4644af7729c2425ea6cc3d84c6504f

onlyif mysql # use DIV operator for integer division
query I rowsort label-304
SELECT col2 * col0 DIV col1 col0 FROM tab2
----
176
34
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-304
SELECT col2 * col0 / col1 col0 FROM tab2
----
176
34
6

query I rowsort
SELECT ALL cor0.col2 + + 40 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 7c0ee6e4ead56b0a5e24d0e10d5e8432

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-308
SELECT DISTINCT - + col2 / 55 col0 FROM tab1 AS cor0
----
-1
0

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

skipif mysql # not compatible
query I rowsort label-309
SELECT - col2 / 59 AS col1 FROM tab2 AS cor0
----
0
0
0

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

skipif mysql # not compatible
query I rowsort label-310
SELECT - - col1 + ( col2 ) / - col0 FROM tab2 AS cor0
----
17
28
59

query I rowsort
SELECT col1 + - 42 AS col1 FROM tab1 AS cor0
----
-16
-29
-32

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-313
SELECT DISTINCT + + col1 + - cor0.col0 DIV - col0 FROM tab2 AS cor0
----
18
32
60

skipif mysql # not compatible
query I rowsort label-313
SELECT DISTINCT + + col1 + - cor0.col0 / - col0 FROM tab2 AS cor0
----
18
32
60

query I rowsort
SELECT col2 + + 29 FROM tab0 AS cor0
----
111
30
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * + cor0.col0 + 77 col1 FROM tab2 AS cor0
----
2105
266
3079

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col0 + ( col1 * + col0 ) + ( - col1 * col1 ) col0 FROM tab0
----
-5308
-5979
-93

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

query I rowsort
SELECT - col1 * 85 * 0 + - col0 AS col0 FROM tab1 AS cor0
----
-3
-64
-80

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

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

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

query I rowsort
SELECT - + cor0.col1 * + 42 + + col2 AS col0 FROM tab2 AS cor0
----
-1275
-2452
-676

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

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

query I rowsort
SELECT + col0 * 49 FROM tab2 AS cor0
----
343
3822
3871

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 10 * col2 col2 FROM tab2 AS cor0
----
-260
-270
-380

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 9 * col2 col0 FROM tab1 AS cor0
----
486
513
864

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

query I rowsort
SELECT ALL - col2 + - 40 * + col1 AS col0 FROM tab1 AS cor0
----
-1094
-457
-616

query I rowsort
SELECT - cor0.col1 * + cor0.col1 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 38f503ad6f93db2d1a70a8c95bb8c2c2

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 56 * 98 col0 FROM tab1 AS cor0
----
5488
5488
5488

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 + + col2 * + 88 col0 FROM tab2 AS cor0
----
2347
2407
3361

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

query I rowsort
SELECT DISTINCT - 92 * cor0.col1 + - 13 FROM tab1 cor0
----
-1209
-2405
-933

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-340
SELECT + - 79 * col2 DIV - 2 FROM tab0 AS cor0
----
1303
3239
39

skipif mysql # not compatible
query I rowsort label-340
SELECT + - 79 * col2 / - 2 FROM tab0 AS cor0
----
1303
3239
39

query I rowsort
SELECT ALL col0 + col1 * col2 + - 91 AS col2 FROM tab1 cor0
----
1237
1316
543

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-343
SELECT DISTINCT 31 * - col0 DIV + col0 FROM tab2
----
-31

skipif mysql # not compatible
query I rowsort label-343
SELECT DISTINCT 31 * - col0 / + col0 FROM tab2
----
-31

onlyif mysql # use DIV operator for integer division
query I rowsort label-344
SELECT DISTINCT cor0.col1 DIV + 69 AS col1 FROM tab2, tab2 cor0, tab1 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-344
SELECT DISTINCT cor0.col1 / + 69 AS col1 FROM tab2, tab2 cor0, tab1 AS cor1
----
0

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

query I rowsort
SELECT + + 57 * - 68 + col0 FROM tab0 AS cor0
----
-3787
-3841
-3852

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

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

query I rowsort
SELECT ALL 23 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to d94fadcc1c8cc4fc51b78b83e04795f2

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

query I rowsort
SELECT DISTINCT - col0 + - ( tab1.col0 + + 25 ) * + tab1.col1 AS col0 FROM tab1
----
-1445
-731
-954

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

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

query I rowsort
SELECT ALL + 81 * + cor0.col1 AS col0 FROM tab0 AS cor0
----
6966
7371
7857

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( col1 ) + + col0 col0 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT col0 * - col1 * col0 + + ( + ( + col0 ) ) * + col1 FROM tab1 AS cor0
----
-156
-40320
-82160

query I rowsort
SELECT ALL 83 * - col2 AS col2 FROM tab0 AS cor0
----
-2739
-6806
-83

query I rowsort
SELECT - - cor0.col0 * 80 + cor0.col2 * - cor0.col2 FROM tab0 AS cor0
----
2799
396
831

query I rowsort
SELECT + 28 * + col0 FROM tab2
----
196
2184
2212

query I rowsort
SELECT ALL - 6 * + cor0.col1 AS col1 FROM tab1, tab1 AS cor0, tab1 cor1
----
27 values hashing to 6894fc1c86475b799229116dcc3a6cf8

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

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

query I rowsort
SELECT ALL - - col1 + 16 FROM tab1 cor0
----
26
29
42

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

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

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

query I rowsort
SELECT cor0.col2 * + 18 FROM tab0, tab1 AS cor0
----
9 values hashing to 0bf093f7c10a9fd1ff625c454db58fe1

query I rowsort
SELECT DISTINCT col0 * 16 FROM tab0 cor0
----
1424
384
560

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-367
SELECT ALL col0 DIV 54 + - col1 + - col2 FROM tab1 cor0
----
-108
-66
-80

skipif mysql # not compatible
query I rowsort label-367
SELECT ALL col0 / 54 + - col1 + - col2 FROM tab1 cor0
----
-108
-66
-80

query I rowsort
SELECT ALL col2 + + col0 * 63 AS col2 FROM tab0 AS cor0
----
1545
2206
5689

query I rowsort
SELECT DISTINCT + - col2 - 42 FROM tab0 AS cor0
----
-124
-43
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor1.col1 col2 FROM tab0, tab2 cor0, tab0 cor1
----
-86
-91
-97

query I rowsort
SELECT + + col2 * col2 + - 86 AS col1 FROM tab0 AS cor0
----
-85
1003
6638

onlyif mysql # use DIV operator for integer division
query I rowsort label-372
SELECT col2 * col0 * - cor0.col0 + col0 DIV col2 AS col0 FROM tab0 AS cor0
----
-1190
-19008
-649521

skipif mysql # not compatible
query I rowsort label-372
SELECT col2 * col0 * - cor0.col0 + col0 / col2 AS col0 FROM tab0 AS cor0
----
-1190
-19008
-649521

query I rowsort
SELECT DISTINCT - ( - 59 ) FROM tab0, tab0 cor0
----
59

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

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

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

query I rowsort
SELECT - + 19 * + col2 AS col1 FROM tab2 AS cor0
----
-494
-513
-722

query I rowsort
SELECT ALL col0 * + 92 AS col0 FROM tab1
----
276
5888
7360

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

query I rowsort
SELECT + - 44 * cor0.col2 + + ( col0 + - col2 ) * - 71 AS col1 FROM tab1 AS cor0
----
-3005
-3088
1245

query I rowsort
SELECT ALL + cor0.col2 * col2 * + 66 FROM tab1 AS cor0
----
192456
214434
608256

query I rowsort
SELECT DISTINCT + 23 + + cor0.col1 * + 47 FROM tab1 AS cor0
----
1245
493
634

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

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

query I rowsort
SELECT ALL col2 * col0 + - col2 + + col1 * + col1 * - col1 AS col2 FROM tab2 AS cor0
----
-1949
-203377
-29629

query I rowsort
SELECT ALL + 26 + col1 FROM tab0 cor0
----
112
117
123

query I rowsort
SELECT col1 * cor0.col0 - - 84 FROM tab1 AS cor0
----
1124
162
724

onlyif mysql # use DIV operator for integer division
query I rowsort label-388
SELECT ALL + col0 + + col1 DIV col0 col1 FROM tab1
----
11
64
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-388
SELECT ALL + col0 + + col1 / col0 col1 FROM tab1
----
11
64
80

query I rowsort
SELECT + col2 * col1 + 18 * col2 FROM tab0 AS cor0
----
115
3432
8938

query I rowsort
SELECT DISTINCT 87 * col1 AS col0 FROM tab1
----
1131
2262
870

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

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( + col0 + col0 ) >= ( NULL ) OR col0 * col2 IN ( - col1 * col2 )
----

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

query I rowsort
SELECT col0 - - col2 * + col2 * col2 FROM tab2
----
17654
19690
54951

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-396
SELECT DISTINCT - cor0.col2 DIV + col0 + - cor0.col1 * col0 FROM tab0 AS cor0
----
-2065
-3395
-8099

skipif mysql # not compatible
query I rowsort label-396
SELECT DISTINCT - cor0.col2 / + col0 + - cor0.col1 * col0 FROM tab0 AS cor0
----
-2065
-3395
-8099

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

skipif mysql # not compatible
query I rowsort label-397
SELECT DISTINCT - col1 / cor0.col0 AS col1 FROM tab0 AS cor0
----
-1
-2
-3

query I rowsort
SELECT - col2 - col0 * - col0 AS col1 FROM tab0 AS cor0
----
1224
543
7839

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

skipif mysql # not compatible
query I rowsort label-399
SELECT ALL + col0 + col0 / col1 AS col0 FROM tab2 AS cor0
----
7
79
83

query I rowsort
SELECT DISTINCT - - col1 * col1 + cor0.col2 AS col2 FROM tab0 AS cor0
----
7429
8363
9410

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

query I rowsort
SELECT DISTINCT col2 * col2 - + cor0.col1 FROM tab0 cor0
----
-96
1003
6633

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

query I rowsort
SELECT col2 FROM tab1 WHERE ( - col2 ) NOT BETWEEN ( + col2 ) AND ( + col1 * col2 + + col1 )
----
54
57
96

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

query I rowsort
SELECT DISTINCT cor0.col2 + col0 + col0 FROM tab1 cor0
----
185
256
60

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

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

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

query I rowsort
SELECT DISTINCT col0 * col1 FROM tab2 WHERE NOT col1 / col1 + col2 <= - tab2.col0 + + col1 * - col0 AND + col0 IN ( col0 * - col2 * - col1 )
----

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

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

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

query I rowsort
SELECT - col2 + - col1 * - col2 * - 91 FROM tab0 AS cor0
----
-258291
-679124
-8828

query I rowsort
SELECT DISTINCT - 89 * col1 AS col0 FROM tab2 AS cor0
----
-1513
-2759
-5251

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

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

query I rowsort
SELECT + col1 FROM tab2 WHERE NOT ( + col2 ) IN ( + col1 )
----
17
31
59

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

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

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

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

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

query I rowsort
SELECT ALL - ( tab0.col2 ) AS col2 FROM tab0
----
-1
-33
-82

query I rowsort
SELECT + 85 * col2 AS col1 FROM tab2 AS cor0
----
2210
2295
3230

query I rowsort
SELECT DISTINCT + - 14 - - col1 AS col2 FROM tab2 AS cor0
----
17
3
45

query I rowsort
SELECT DISTINCT + 3 * col1 + col1 AS col2 FROM tab2 AS cor0
----
124
236
68

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-431
SELECT + col0 DIV + tab2.col0 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-431
SELECT + col0 / + tab2.col0 FROM tab2
----
1
1
1

query I rowsort
SELECT col0 + - col1 + col2 FROM tab1 AS cor0
----
111
163
31

query I rowsort
SELECT ALL col0 + - col1 + col0 * + cor0.col0 FROM tab0 AS cor0
----
1163
514
7919

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

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

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

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

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NULL ) = - col1
----

query I rowsort
SELECT ALL tab0.col0 * - col1 + - tab0.col2 * + col1 AS col2 FROM tab0
----
-15561
-3492
-4902

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col2 + + col0 * col0 col1 FROM tab2
----
6110
6279
76

onlyif mysql # use DIV operator for integer division
query I rowsort label-440
SELECT - col0 + + col1 + col2 DIV - col0 col1 FROM tab0
----
2
61
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-440
SELECT - col0 + + col1 + col2 / - col0 col1 FROM tab0
----
2
61
62

query III rowsort
SELECT * FROM tab2 WHERE col1 * - col2 IN ( tab2.col1 * + col1 + - col2 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col0 >= NULL
----

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT BETWEEN + col1 AND NULL
----

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-446
SELECT DISTINCT - cor0.col2 * col0 DIV - 26 col1 FROM tab1 AS cor0
----
140
295
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-446
SELECT DISTINCT - cor0.col2 * col0 / - 26 col1 FROM tab1 AS cor0
----
140
295
6

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-451
SELECT col2 + + col1 * col2 DIV - tab0.col0 AS col2 FROM tab0
----
-1
-1
-85

skipif mysql # not compatible
query I rowsort label-451
SELECT col2 + + col1 * col2 / - tab0.col0 AS col2 FROM tab0
----
-1
-1
-85

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

query I rowsort
SELECT DISTINCT - - cor0.col0 AS col0 FROM tab0, tab2, tab0 AS cor0
----
24
35
89

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

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

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

skipif mysql # not compatible
query I rowsort label-456
SELECT DISTINCT - CAST ( - col1 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
17
31
59

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

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

query I rowsort
SELECT - ( + col0 ) + col1 * col1 AS col0 FROM tab0 AS cor0
----
7372
8192
9374

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

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

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

query I rowsort
SELECT tab1.col0 * - col1 + col0 * - col2 + - col1 * 31 AS col0 FROM tab1
----
-1046
-4598
-9123

query I rowsort
SELECT ALL - col2 * - col2 + 43 FROM tab2
----
1487
719
772

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-464
SELECT col2 DIV + col0 + + 2 FROM tab1
----
2
20
3

skipif mysql # not compatible
query I rowsort label-464
SELECT col2 / + col0 + + 2 FROM tab1
----
2
20
3

query I rowsort
SELECT ALL - 84 FROM tab2, tab1 cor0
----
9 values hashing to 975e2ef2a3bf1ee2622362f4e435752f

query I rowsort
SELECT ALL col0 * + 9 * - col0 AS col0 FROM tab1
----
-36864
-57600
-81

query I rowsort
SELECT 73 FROM tab2, tab2 AS cor0 CROSS JOIN tab0
----
27 values hashing to 3933a906d17a820ccf95467e2206df8f

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

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

query I rowsort
SELECT ALL - + col0 + - col0 * col0 AS col0 FROM tab0 AS cor0
----
-1260
-600
-8010

query I rowsort
SELECT ALL + - ( - 31 ) - - cor0.col2 AS col0 FROM tab0 AS cor0
----
113
32
64

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

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

query I rowsort
SELECT ALL - + 14 * - 89 + col0 * + 21 FROM tab0 AS cor0
----
1750
1981
3115

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 37 * - col1 + col0 col2 FROM tab2 AS cor0
----
-1140
-2105
-550

query I rowsort
SELECT DISTINCT - + 68 + - col2 AS col0 FROM tab0 AS cor0
----
-101
-150
-69

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

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

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

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

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

query I rowsort
SELECT - ( + 18 ) * col0 FROM tab0
----
-1602
-432
-630

query I rowsort
SELECT DISTINCT + col1 * - 87 FROM tab0
----
-7482
-7917
-8439

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

skipif mysql # not compatible
query I rowsort label-485
SELECT DISTINCT + tab2.col2 / - tab2.col1 FROM tab2
----
-2
0

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( - 41 ) * - col0 col1 FROM tab0 AS cor0
----
1435
3649
984

query I rowsort
SELECT 17 * tab0.col2 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to cf2c17a44041120e507fcd265ec5deea

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

query I rowsort
SELECT + - 14 + - col2 + - col1 AS col1 FROM tab2 cor0
----
-69
-72
-99

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

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

query I rowsort
SELECT + 8 - col2 FROM tab2
----
-18
-19
-30

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

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

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

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

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

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

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

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

query I rowsort
SELECT 1 + - col2 AS col1 FROM tab1 AS cor0
----
-53
-56
-95

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

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

query I rowsort
SELECT DISTINCT - col1 + + 56 * col2 FROM tab2
----
1397
1481
2111

query I rowsort
SELECT DISTINCT - 61 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-61

query I rowsort
SELECT - 1 + + col1 AS col2 FROM tab1 AS cor0
----
12
25
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-507
SELECT tab0.col2 DIV ( - 4 ) + - col1 * ( - col1 + col1 ) AS col2 FROM tab0
----
-20
-8
0

skipif mysql # not compatible
query I rowsort label-507
SELECT tab0.col2 / ( - 4 ) + - col1 * ( - col1 + col1 ) AS col2 FROM tab0
----
-20
-8
0

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

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

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

query I rowsort
SELECT col2 + + 24 AS col2 FROM tab2
----
50
51
62

query I rowsort
SELECT + 88 - col0 AS col0 FROM tab0 AS cor0
----
-1
53
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 77 + col0 col0 FROM tab0 cor0
----
101
112
166

query I rowsort
SELECT col1 * ( - col1 ) + 81 - col0 AS col0 FROM tab2 AS cor0
----
-287
-3478
-887

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

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

query I rowsort
SELECT DISTINCT 52 * col1 + col2 FROM tab0 AS cor0
----
4505
4814
5045

query I rowsort
SELECT 29 FROM tab2, tab1 cor0 CROSS JOIN tab0
----
27 values hashing to 4c56285992bcb76e1aac22e6d23d1318

query I rowsort
SELECT 65 * + col2 AS col2 FROM tab0 AS cor0
----
2145
5330
65

query I rowsort
SELECT ALL - 10 * 58 * - col2 FROM tab2 AS cor0
----
15080
15660
22040

query I rowsort
SELECT DISTINCT + col1 + + 97 * - col2 AS col0 FROM tab1 AS cor0
----
-5212
-5519
-9299

query I rowsort
SELECT ALL + 4 + 0 FROM tab0, tab2 AS cor0
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b

onlyif mysql # use DIV operator for integer division
query I rowsort label-522
SELECT ALL + - 2 * ( - col0 ) - 84 * col2 DIV col2 col2 FROM tab1 AS cor0
----
-78
44
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-522
SELECT ALL + - 2 * ( - col0 ) - 84 * col2 / col2 col2 FROM tab1 AS cor0
----
-78
44
76

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

query I rowsort
SELECT ALL - col0 * + col2 + + col1 * ( col0 ) FROM tab0 cor0
----
1272
3360
801

query I rowsort
SELECT DISTINCT + 89 AS col0 FROM tab2 AS cor0
----
89

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

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

query I rowsort
SELECT + col1 * col0 * col1 + - col1 AS col1 FROM tab1 AS cor0
----
13507
2002
6390

query I rowsort
SELECT 87 * - col1 + ( - col1 ) FROM tab2 AS cor0
----
-1496
-2728
-5192

query I rowsort
SELECT DISTINCT ( col1 ) + col0 * col2 * + col2 + ( + col0 ) FROM tab0
----
167
26246
598616

onlyif mysql # use DIV operator for integer division
query I rowsort label-531
SELECT - col0 + col2 DIV col0 FROM tab1 AS cor0
----
-64
-79
15

skipif mysql # not compatible
query I rowsort label-531
SELECT - col0 + col2 / col0 FROM tab1 AS cor0
----
-64
-79
15

query I rowsort
SELECT 51 + col2 AS col1 FROM tab0 AS cor0
----
133
52
84

query I rowsort
SELECT + col0 + col1 + 78 FROM tab2 AS cor0
----
116
174
215

query I rowsort
SELECT DISTINCT + col2 * cor0.col2 + - 75 FROM tab1 AS cor0
----
2841
3174
9141

query I rowsort
SELECT ALL + col0 * col1 + 92 + - 33 FROM tab0 AS cor0
----
2123
3454
8158

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

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

query I rowsort
SELECT + + col0 * + 43 FROM tab1 AS cor0
----
129
2752
3440

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

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

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

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

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

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

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

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

query I rowsort
SELECT ALL + cor0.col0 + col0 * 94 FROM tab1 AS cor0
----
285
6080
7600

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

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

query I rowsort
SELECT DISTINCT cor0.col1 * 34 + 83 FROM tab1 AS cor0
----
423
525
967

query I rowsort
SELECT ALL col1 * 95 * + col0 AS col0 FROM tab0 AS cor0
----
196080
322525
769405

query I rowsort
SELECT DISTINCT + col0 * ( col0 * - col2 + col0 ) AS col1 FROM tab2 AS cor0
----
-1274
-152100
-230917

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + - col0 + CAST ( col2 AS REAL ) FROM tab2 cor0
----
-41
-52
20

query I rowsort
SELECT ALL - col0 * 54 FROM tab1 AS cor0
----
-162
-3456
-4320

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + col2 * + tab0.col2 col2 FROM tab0
----
0
1056
6642

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

query I rowsort
SELECT DISTINCT - col2 * 85 FROM tab1 cor0
----
-4590
-4845
-8160

query I rowsort
SELECT ALL - + col0 * 30 * + col0 FROM tab2 AS cor0
----
-1470
-182520
-187230

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor3.col2 col2 FROM tab2 AS cor0 CROSS JOIN tab0, tab1 cor1, tab0 AS cor2, tab1 AS cor3
----
54
57
96

query I rowsort
SELECT col1 + + 86 AS col2 FROM tab2
----
103
117
145

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

query I rowsort
SELECT DISTINCT + - cor1.col2 FROM tab2, tab2 AS cor0, tab1 AS cor1, tab0, tab0 cor2
----
-54
-57
-96

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

query I rowsort
SELECT ALL 63 + - col0 - - col0 FROM tab0 AS cor0
----
63
63
63

query I rowsort
SELECT - 39 + + col2 FROM tab1 AS cor0
----
15
18
57

query I rowsort
SELECT DISTINCT + 50 * - col1 + + 83 FROM tab1 AS cor0
----
-1217
-417
-567

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT col1 * - tab2.col0 - tab2.col2 * - CAST ( col0 * col2 AS REAL ) col0 FROM tab2
----
112733
48126
4886

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

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

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

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

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

query I rowsort
SELECT ALL - 75 + cor0.col1 * + col0 * 64 AS col0 FROM tab0 cor0
----
132021
217205
518261

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - ( - col2 ) - - 7 col0 FROM tab1 AS cor0
----
103
61
64

query I rowsort
SELECT + - 27 + + col1 AS col0 FROM tab0 AS cor0
----
59
64
70

query I rowsort
SELECT ALL - + 36 + - col0 AS col2 FROM tab1 AS cor0
----
-100
-116
-39

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col0 col1 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
3
64
80

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

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

query I rowsort
SELECT ALL 88 * 72 AS col2 FROM tab2 AS cor0
----
6336
6336
6336

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-576
SELECT 65 / col1 + col0 col2 FROM tab0 AS cor0
----
24
35
89

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

query I rowsort
SELECT ALL col2 + 41 * + col2 FROM tab1 AS cor0
----
2268
2394
4032

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

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

query I rowsort
SELECT - 87 * cor0.col2 FROM tab0, tab2 AS cor0, tab2 cor1
----
27 values hashing to 23a009775cc8bbb769ec91d35f36dc9e

query I rowsort
SELECT - cor0.col2 * + col2 * - 3 FROM tab0 AS cor0
----
20172
3
3267

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - ( col0 ) * col2 * col0 col0 FROM tab2 cor0
----
-1292
-158125
-237141

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

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-588
SELECT DISTINCT tab1.col0 DIV 2 AS col2 FROM tab1
----
1
32
40

skipif mysql # not compatible
query I rowsort label-588
SELECT DISTINCT tab1.col0 / 2 AS col2 FROM tab1
----
1
32
40

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

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

skipif mysql # not compatible
query I rowsort label-590
SELECT ALL - col0 / 78 FROM tab2 cor0
----
-1
-1
0

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

query I rowsort
SELECT + col0 + - 66 * - col0 + - col0 * - ( col0 ) FROM tab2 cor0
----
11310
11534
518

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + 4 col0 FROM tab2
----
30
31
42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 + + 86 + - col2 col2 FROM tab2 AS cor0
----
1
28
31

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

skipif mysql # not compatible
query I rowsort label-596
SELECT + CAST ( col1 AS INTEGER ) * + col1 FROM tab1 AS cor0
----
100
169
676

onlyif mysql # use DIV operator for integer division
query I rowsort label-597
SELECT DISTINCT + col1 + col2 DIV col0 + - col2 FROM tab0
----
54
9
96

skipif mysql # not compatible
query I rowsort label-597
SELECT DISTINCT + col1 + col2 / col0 + - col2 FROM tab0
----
54
9
96

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

skipif mysql # not compatible
query I rowsort label-598
SELECT - tab1.col0 * - CAST ( NULL AS REAL ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col1 * ( - 45 ) * col1 AS col0 FROM tab0
----
-332820
-372645
-423405

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

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

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

query I rowsort
SELECT ALL 52 + col2 * col2 FROM tab2 AS cor0
----
1496
728
781

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

skipif mysql # not compatible
query I rowsort
SELECT CAST ( - col0 AS REAL ) * col0 AS col0 FROM tab1
----
-4096
-6400
-9

query I rowsort
SELECT + 32 + col2 * - 80 AS col1 FROM tab2 AS cor0
----
-2048
-2128
-3008

query I rowsort
SELECT ALL - - col0 + + col2 * col1 * col1 AS col2 FROM tab1 AS cor0
----
16304
36507
5764

query I rowsort
SELECT + col0 * 42 AS col1 FROM tab1
----
126
2688
3360

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-611
SELECT CAST( + 32 AS SIGNED ) * - col0 AS col2 FROM tab2
----
-224
-2496
-2528

skipif mysql # not compatible
query I rowsort label-611
SELECT CAST ( + 32 AS INTEGER ) * - col0 AS col2 FROM tab2
----
-224
-2496
-2528

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-613
SELECT DISTINCT 48 + col1 DIV + col0 - + col1 AS col2 FROM tab0
----
-35
-42
-47

skipif mysql # not compatible
query I rowsort label-613
SELECT DISTINCT 48 + col1 / + col0 - + col1 AS col2 FROM tab0
----
-35
-42
-47

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

query I rowsort
SELECT DISTINCT + 19 * - col0 FROM tab2
----
-133
-1482
-1501

query I rowsort
SELECT - + col1 + - 95 AS col1 FROM tab1 AS cor0
----
-105
-108
-121

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

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

query I rowsort
SELECT DISTINCT 12 * + col0 FROM tab0 AS cor0
----
1068
288
420

query I rowsort
SELECT - 86 + - col2 * - 95 * - cor0.col2 AS col2 FROM tab0 AS cor0
----
-103541
-181
-638866

query I rowsort
SELECT ALL - 50 * + col0 - col1 FROM tab2 AS cor0
----
-381
-3959
-3967

query I rowsort
SELECT DISTINCT 42 * - col2 FROM tab0 AS cor0
----
-1386
-3444
-42

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

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

query I rowsort
SELECT DISTINCT + col0 * col0 + col0 AS col2 FROM tab1 AS cor0
----
12
4160
6480

query I rowsort
SELECT ALL 73 * + col0 FROM tab0 AS cor0
----
1752
2555
6497

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

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

query I rowsort
SELECT DISTINCT + 20 * col1 + col1 + tab1.col1 AS col1 FROM tab1
----
220
286
572

query I rowsort
SELECT DISTINCT col2 * col2 + col1 * col0 AS col0 FROM tab1
----
10256
2994
3889

query I rowsort
SELECT DISTINCT - 70 + - col1 AS col0 FROM tab2 AS cor0
----
-101
-129
-87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 10 + - col1 col2 FROM tab0 AS cor0
----
-76
-81
-87

query I rowsort
SELECT ALL 42 + col1 FROM tab0 cor0
----
128
133
139

skipif mysql # not compatible
query I rowsort
SELECT ALL 82 + col0 * + CAST ( - col0 AS REAL ) AS col2 FROM tab0 AS cor0
----
-1143
-494
-7839

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

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

query I rowsort
SELECT - col0 * 36 AS col0 FROM tab0 AS cor0
----
-1260
-3204
-864

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 + col1 + col0 col2 FROM tab1 AS cor0
----
106
55
84

query I rowsort
SELECT + col2 * + 24 AS col1 FROM tab2 AS cor0
----
624
648
912

query I rowsort
SELECT ALL - ( 89 ) AS col1 FROM tab2, tab1 cor0
----
9 values hashing to 924a74d31360fa4301c953b423a4710e

query I rowsort
SELECT - col0 * + 55 + 76 FROM tab2
----
-309
-4214
-4269

query I rowsort
SELECT col2 + ( 93 ) * cor0.col1 + + 10 * + 59 AS col1 FROM tab1 AS cor0
----
1577
1895
3062

query I rowsort
SELECT - 71 + col2 * cor0.col1 + - col0 FROM tab0 AS cor0
----
-9
2743
7302

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 7 * 27 + col0 + + 64 col2 FROM tab2 AS cor0
----
-118
-46
-47

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

query I rowsort
SELECT col0 * - ( - col1 * - 45 ) FROM tab2
----
-207090
-60435
-9765

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

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

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

query I rowsort
SELECT - + 92 + ( - col1 ) AS col1 FROM tab2 cor0
----
-109
-123
-151

query I rowsort
SELECT ALL - 42 * col0 AS col0 FROM tab1 AS cor0
----
-126
-2688
-3360

query I rowsort
SELECT - 77 * ( + col0 ) + + col2 FROM tab0 AS cor0
----
-1815
-2694
-6771

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( 85 ) + + col1 + - col2 col0 FROM tab0 AS cor0
----
138
181
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col2 col0 FROM tab1, tab1 cor0, tab2 AS cor1
----
27 values hashing to 44fdcd7cd603352d4d127811d164cc1e

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

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

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

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

query I rowsort
SELECT ALL - col2 * - 2 + col2 AS col1 FROM tab1
----
162
171
288

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

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

query I rowsort
SELECT ALL - 16 + + 31 AS col2 FROM tab1 AS cor0
----
15
15
15

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-660
SELECT CAST( + col2 AS SIGNED ) * col1 + - 17 * col1 AS col0 FROM tab1 AS cor0
----
1027
400
962

skipif mysql # not compatible
query I rowsort label-660
SELECT CAST ( + col2 AS INTEGER ) * col1 + - 17 * col1 AS col0 FROM tab1 AS cor0
----
1027
400
962

query I rowsort
SELECT ALL - col1 * + 58 FROM tab1 AS cor0
----
-1508
-580
-754

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

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

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

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

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

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

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

query I rowsort
SELECT ALL col1 + + col1 + col1 FROM tab2 AS cor0
----
177
51
93

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-670
SELECT cor0.col0 DIV - 1 AS col0 FROM tab1 AS cor0
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-670
SELECT cor0.col0 / - 1 AS col0 FROM tab1 AS cor0
----
-3
-64
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - col2 + - 18 col0 FROM tab2 AS cor0
----
1426
658
711

query I rowsort
SELECT DISTINCT - - col0 + + 2 FROM tab1 AS cor0
----
5
66
82

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

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

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

query I rowsort
SELECT - 2 + 81 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f

query I rowsort
SELECT DISTINCT + col1 + + 50 FROM tab1 AS cor0
----
60
63
76

query I rowsort
SELECT tab0.col0 + col2 * col0 * - col2 + + col0 FROM tab0
----
-26088
-598258
35

query I rowsort
SELECT ALL + - 69 + cor0.col0 + col1 AS col2 FROM tab2 AS cor0
----
-31
27
68

query I rowsort
SELECT ALL - - ( + ( col1 ) ) * - col2 + + 40 * col2 AS col2 FROM tab1 AS cor0
----
1710
2592
756

query I rowsort
SELECT + col2 * ( 18 ) + + col0 * + col1 FROM tab0
----
2658
3413
9575

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

query I rowsort
SELECT ALL col1 + ( ( + col0 ) * 56 ) FROM tab2
----
423
4427
4441

query I rowsort
SELECT ALL col1 * 53 + - col0 - col0 FROM tab0
----
4510
4645
5071

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-684
SELECT col0 / col0 + + col1 * tab1.col2 col1 FROM tab1
----
1249
1405
571

onlyif mysql # use DIV operator for integer division
query I rowsort label-685
SELECT - col0 DIV 72 + col1 FROM tab2 cor0
----
16
31
58

skipif mysql # not compatible
query I rowsort label-685
SELECT - col0 / 72 + col1 FROM tab2 cor0
----
16
31
58

query I rowsort
SELECT + - 92 * col0 - - col2 FROM tab2 AS cor0
----
-617
-7150
-7230

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-687
SELECT col1 * - CAST( 72 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-6192
-6552
-6984

skipif mysql # not compatible
query I rowsort label-687
SELECT col1 * - CAST ( 72 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-6192
-6552
-6984

query I rowsort
SELECT ALL - col1 + 39 AS col0 FROM tab0 cor0
----
-47
-52
-58

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

query I rowsort
SELECT DISTINCT + 15 AS col2 FROM tab2, tab1 AS cor0
----
15

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-691
SELECT DISTINCT CAST( col0 * - tab2.col2 + 65 AS SIGNED ) AS col2 FROM tab2
----
-124
-1963
-2937

skipif mysql # not compatible
query I rowsort label-691
SELECT DISTINCT CAST ( col0 * - tab2.col2 + 65 AS INTEGER ) AS col2 FROM tab2
----
-124
-1963
-2937

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

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

query I rowsort
SELECT ALL - - col2 * + 39 FROM tab2 AS cor0
----
1014
1053
1482

query I rowsort
SELECT ALL col2 * 12 * + col0 FROM tab1 AS cor0
----
1944
43776
92160

query I rowsort
SELECT ALL - ( 50 ) + - col1 AS col1 FROM tab2 AS cor0
----
-109
-67
-81

onlyif mysql # use DIV operator for integer division
query I rowsort label-697
SELECT 15 + + cor0.col2 - - col1 DIV col1 FROM tab1 cor0
----
112
70
73

skipif mysql # not compatible
query I rowsort label-697
SELECT 15 + + cor0.col2 - - col1 / col1 FROM tab1 cor0
----
112
70
73

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

query I rowsort
SELECT 3 - col1 AS col2 FROM tab0 AS cor0
----
-83
-88
-94

query I rowsort
SELECT ALL + - 89 AS col1 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to c36e597b7bc5727536f5bb580e6cebbc

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

query I rowsort
SELECT col2 + - col2 * + col2 * - col2 FROM tab1 AS cor0
----
157518
185250
884832

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

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

query I rowsort
SELECT - 12 - - col2 FROM tab1
----
42
45
84

onlyif mysql # use DIV operator for integer division
query I rowsort label-705
SELECT ALL - col2 + - col2 DIV + ( - col0 ) col0 FROM tab1 AS cor0
----
-36
-57
-95

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-705
SELECT ALL - col2 + - col2 / + ( - col0 ) col0 FROM tab1 AS cor0
----
-36
-57
-95

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

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

query I rowsort
SELECT DISTINCT + - cor0.col1 + col2 * 66 AS col1 FROM tab2 AS cor0
----
1657
1751
2491

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 + + 8 col1 FROM tab2 cor0
----
-70
-71
1

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

query I rowsort
SELECT + cor0.col1 - 10 AS col0 FROM tab0 AS cor0
----
76
81
87

query I rowsort
SELECT DISTINCT 22 * col1 AS col0 FROM tab0
----
1892
2002
2134

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

query I rowsort
SELECT 8 * - cor0.col0 + + col0 * + col2 FROM tab0 AS cor0
----
-245
600
6586

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

skipif mysql # not compatible
query I rowsort label-715
SELECT + CAST ( - 21 AS INTEGER ) FROM tab0 AS cor0
----
-21
-21
-21

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

query I rowsort
SELECT ALL 5 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 6797d40099023779b89feb627d94a3e7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - 1 col1 FROM tab0
----
85
90
96

query I rowsort
SELECT tab0.col0 + + ( tab0.col1 * + col0 + col1 ) FROM tab0
----
2174
3527
8279

query I rowsort
SELECT ALL + 21 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7

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

query I rowsort
SELECT DISTINCT + cor0.col1 + - 69 FROM tab0 AS cor0
----
17
22
28

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-724
SELECT DISTINCT col1 * col1 DIV - col1 AS col1 FROM tab0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-724
SELECT DISTINCT col1 * col1 / - col1 AS col1 FROM tab0
----
-86
-91
-97

query I rowsort
SELECT ALL 13 FROM tab2, tab1 cor0
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb

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

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

query I rowsort
SELECT DISTINCT col1 * - col1 + - col2 * col2 * - cor0.col1 + - col0 FROM tab1 AS cor0
----
119559
32326
75137

query I rowsort
SELECT - col1 + - col1 * col1 FROM tab2
----
-306
-3540
-992

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

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

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

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

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

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

query I rowsort
SELECT - col2 + cor0.col0 * col2 + + col0 AS col0 FROM tab2 AS cor0
----
169
2080
3043

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT + - col0 + col0 * - col1 + + col1 AS col1 FROM tab2 AS cor0
----
-1405
-193
-4621

query I rowsort
SELECT ALL + col2 + col0 + col1 AS col1 FROM tab2
----
134
163
65

query I rowsort
SELECT ALL - col1 * - col1 * col1 + col1 * col1 + + col1 AS col1 FROM tab2
----
208919
30783
5219

query I rowsort
SELECT col0 * + col2 + - tab2.col2 FROM tab2
----
162
2002
2964

query I rowsort
SELECT ALL + tab0.col1 * col2 + col0 * + col2 + tab0.col1 AS col2 FROM tab0
----
14851
229
3716

query I rowsort
SELECT DISTINCT - 35 * col1 * + col0 FROM tab1 AS cor0
----
-22400
-2730
-36400

query I rowsort
SELECT ALL - + col0 + + col2 + col2 * col0 AS col0 FROM tab0 AS cor0
----
1
7291
801

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

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

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

query I rowsort
SELECT ALL - + 11 - + col2 FROM tab1 AS cor0
----
-107
-65
-68

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

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

query I rowsort
SELECT ALL col0 * col0 + + col1 * col1 FROM tab2 AS cor0
----
1010
6530
9565

query I rowsort
SELECT col2 * - col1 * + col2 - + tab0.col0 AS col0 FROM tab0
----
-132
-611973
-93678

query I rowsort
SELECT ALL - 82 - tab1.col1 * col2 FROM tab1
----
-1330
-1486
-652

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

skipif mysql # not compatible
query I rowsort label-759
SELECT col0 - col2 / col1 FROM tab2 AS cor0
----
7
77
78

query I rowsort
SELECT - 39 + - col2 FROM tab1 cor0
----
-135
-93
-96

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

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

query I rowsort
SELECT + col0 + cor0.col1 + col0 * + col1 FROM tab1 cor0
----
107
1133
714

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

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

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

query I rowsort
SELECT ALL col2 + - col1 - + tab1.col2 * - tab1.col1 FROM tab1
----
1331
1432
617

onlyif mysql # use DIV operator for integer division
query I rowsort label-768
SELECT - tab1.col0 * col0 DIV col2 FROM tab1
----
-66
-71
0

skipif mysql # not compatible
query I rowsort label-768
SELECT - tab1.col0 * col0 / col2 FROM tab1
----
-66
-71
0

query I rowsort
SELECT DISTINCT col1 + + col1 * - col0 + col0 FROM tab0
----
-1954
-3263
-7919

query I rowsort
SELECT ALL col1 AS col0 FROM tab1 WHERE - col0 - col0 > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + col2 + col2 * col0 * - col2 col2 FROM tab1
----
-207869
-737171
-8668

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col2 < NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-773
SELECT DISTINCT + tab1.col2 DIV - col1 + col2 AS col0 FROM tab1
----
52
89

skipif mysql # not compatible
query I rowsort label-773
SELECT DISTINCT + tab1.col2 / - col1 + col2 AS col0 FROM tab1
----
52
89

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col1 * col1 NOT BETWEEN col1 / col2 AND - col1 * col1
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + col0 + col0 col2 FROM tab2
----
56
6162
6320

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-778
SELECT col1 DIV + col2 FROM tab1 WHERE NOT col1 = ( col0 )
----
0
0
0

skipif mysql # not compatible
query I rowsort label-778
SELECT col1 / + col2 FROM tab1 WHERE NOT col1 = ( col0 )
----
0
0
0

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-780
SELECT ALL col1 * + col1 + - col0 * col2 DIV + col2 col0 FROM tab0
----
7372
8192
9374

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-780
SELECT ALL col1 * + col1 + - col0 * col2 / + col2 col0 FROM tab0
----
7372
8192
9374

query I rowsort
SELECT col0 AS col0 FROM tab1 WHERE NOT NULL <> - col1
----

query I rowsort
SELECT - col0 * col2 * - col2 - col2 * col1 AS col0 FROM tab2
----
113430
4266
51194

onlyif mysql # use DIV operator for integer division
query I rowsort label-783
SELECT ALL col1 + - col2 DIV col2 AS col2 FROM tab0
----
85
90
96

skipif mysql # not compatible
query I rowsort label-783
SELECT ALL col1 + - col2 / col2 AS col2 FROM tab0
----
85
90
96

query I rowsort
SELECT col2 * + col2 - - col2 * col2 FROM tab1
----
18432
5832
6498

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-788
SELECT ALL + col2 DIV col2 + + col2 FROM tab1
----
55
58
97

skipif mysql # not compatible
query I rowsort label-788
SELECT ALL + col2 / col2 + + col2 FROM tab1
----
55
58
97

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

skipif mysql # not compatible
query I rowsort label-789
SELECT ALL - col2 / + tab1.col0 AS col2 FROM tab1
----
-1
-18
0

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

query I rowsort
SELECT + col2 + 69 FROM tab2 AS cor0
----
107
95
96

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

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

query I rowsort
SELECT col1 * - col2 + col0 * + tab2.col2 AS col0 FROM tab2
----
-648
2356
494

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

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

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

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

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

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

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

query I rowsort
SELECT - col1 * - 44 AS col0 FROM tab1 AS cor0
----
1144
440
572

query I rowsort
SELECT ALL cor0.col0 - - col0 FROM tab2 AS cor0
----
14
156
158

query I rowsort
SELECT + - col0 * 50 + - cor0.col1 * + col0 AS col1 FROM tab1 cor0
----
-228
-3840
-5040

query I rowsort
SELECT ALL + col1 + cor0.col0 * - col2 * col0 FROM tab1 AS cor0
----
-233462
-460
-614387

query I rowsort
SELECT - 16 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to be22ac76b42c6f7212ecc0ba7c89eb34

query I rowsort
SELECT ALL + col2 * col2 + col2 * - col2 + + col2 AS col2 FROM tab0
----
1
33
82

query I rowsort
SELECT + col0 - + 49 * + col2 * col1 AS col0 FROM tab0
----
-139038
-365549
-4718

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

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

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

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

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

query I rowsort
SELECT cor0.col0 * - col0 * col2 AS col2 FROM tab1 AS cor0
----
-233472
-486
-614400

onlyif mysql # use DIV operator for integer division
query I rowsort label-813
SELECT + col1 DIV cor0.col0 + 23 FROM tab0 cor0
----
24
25
26

skipif mysql # not compatible
query I rowsort label-813
SELECT + col1 / cor0.col0 + 23 FROM tab0 cor0
----
24
25
26

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

query I rowsort
SELECT + - col2 + col1 + - col2 FROM tab1 AS cor0
----
-104
-179
-82

query I rowsort
SELECT + col0 + + 37 + - col1 FROM tab0 cor0
----
-25
-25
35

onlyif mysql # use DIV operator for integer division
query I rowsort label-817
SELECT + - col1 * - cor0.col1 + + col2 + - cor0.col0 * col0 DIV + col0 FROM tab2 AS cor0
----
248
3429
981

skipif mysql # not compatible
query I rowsort label-817
SELECT + - col1 * - cor0.col1 + + col2 + - cor0.col0 * col0 / + col0 FROM tab2 AS cor0
----
248
3429
981

query I rowsort
SELECT + - col1 + 58 FROM tab0 AS cor0
----
-28
-33
-39

query I rowsort
SELECT - 22 * + tab0.col1 FROM tab0
----
-1892
-2002
-2134

query I rowsort
SELECT DISTINCT + col0 + - col2 + col2 FROM tab2
----
7
78
79

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

skipif mysql # not compatible
query I rowsort label-821
SELECT ALL - 0 + - col0 / - col2 - + col1 AS col1 FROM tab1
----
-13
-26
-9

onlyif mysql # use DIV operator for integer division
query I rowsort label-822
SELECT 91 * col0 DIV - cor0.col0 + col0 AS col1 FROM tab0 AS cor0
----
-2
-56
-67

skipif mysql # not compatible
query I rowsort label-822
SELECT 91 * col0 / - cor0.col0 + col0 AS col1 FROM tab0 AS cor0
----
-2
-56
-67

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

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

query I rowsort
SELECT col2 * ( + col0 + + col2 ) AS col0 FROM tab2 AS cor0
----
2704
4446
918

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 + + col2 * + col1 col1 FROM tab0 AS cor0
----
2871
7544
98

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

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

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

query I rowsort
SELECT - + col1 + + 18 * + 10 FROM tab1 AS cor0
----
154
167
170

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-832
SELECT + col1 DIV - col0 + + 62 * + col2 + - col0 col2 FROM tab0 AS cor0
----
2019
25
4994

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-832
SELECT + col1 / - col0 + + 62 * + col2 + - col0 col2 FROM tab0 AS cor0
----
2019
25
4994

onlyif mysql # use DIV operator for integer division
query I rowsort label-833
SELECT + col1 * + col0 + col2 DIV cor0.col2 AS col1 FROM tab0 AS cor0
----
2065
3396
8100

skipif mysql # not compatible
query I rowsort label-833
SELECT + col1 * + col0 + col2 / cor0.col2 AS col1 FROM tab0 AS cor0
----
2065
3396
8100

query I rowsort
SELECT ALL col0 - + 50 * col0 AS col2 FROM tab0 cor0
----
-1176
-1715
-4361

query I rowsort
SELECT ALL cor0.col1 * col1 + 89 AS col1 FROM tab0 AS cor0
----
7485
8370
9498

query I rowsort
SELECT ALL col2 * - col2 + col0 + + col0 AS col1 FROM tab2 AS cor0
----
-1286
-520
-715

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

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

query I rowsort
SELECT DISTINCT + 19 AS col2 FROM tab2 AS cor0
----
19

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-839
SELECT DISTINCT - CAST( - 11 AS SIGNED ) * + col2 * - 78 AS col2 FROM tab2 AS cor0
----
-22308
-23166
-32604

skipif mysql # not compatible
query I rowsort label-839
SELECT DISTINCT - CAST ( - 11 AS INTEGER ) * + col2 * - 78 AS col2 FROM tab2 AS cor0
----
-22308
-23166
-32604

query I rowsort
SELECT - col1 + 90 * col0 FROM tab2 AS cor0
----
599
6961
7093

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

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

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

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

query I rowsort
SELECT ALL + col1 * - 32 * col0 + cor0.col1 FROM tab2 AS cor0
----
-147205
-42959
-6913

query I rowsort
SELECT col0 * + 39 FROM tab1 AS cor0
----
117
2496
3120

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

query I rowsort
SELECT ALL - 53 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to fee5c00ad71c23e23683a32c71fe6e7d

query I rowsort
SELECT DISTINCT + + col1 + - col0 * cor0.col0 - col0 FROM tab1 AS cor0
----
-4150
-6467
14

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

skipif mysql # not compatible
query I rowsort label-849
SELECT DISTINCT - ( col1 ) + - CAST ( col1 AS INTEGER ) - + col2 FROM tab2 AS cor0
----
-144
-72
-89

query I rowsort
SELECT DISTINCT - - 75 AS col2 FROM tab2 cor0
----
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + col0 * col1 * + cor0.col0 col0 FROM tab0 AS cor0
----
118860
49560
720900

query I rowsort
SELECT ALL - 57 + col0 * col0 * col0 FROM tab2 cor0
----
286
474495
492982

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

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

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

query I rowsort
SELECT + 34 * + col1 + col0 FROM tab0
----
2948
3183
3333

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

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

query I rowsort
SELECT ALL - 76 + - col0 FROM tab0 AS cor0
----
-100
-111
-165

query I rowsort
SELECT ALL col2 * + cor0.col0 + 28 * - col2 FROM tab1 AS cor0
----
-1350
2052
4992

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 89 * cor0.col0 col2 FROM tab0 AS cor0
----
-2136
-3115
-7921

query I rowsort
SELECT ALL + 79 + col2 AS col2 FROM tab1 AS cor0
----
133
136
175

query I rowsort
SELECT DISTINCT + + col2 * - col2 * + 18 AS col2 FROM tab1 AS cor0
----
-165888
-52488
-58482

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

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

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

query I rowsort
SELECT 98 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2, tab0 cor1, tab0 AS cor2
----
81 values hashing to 6624b1f09c0594f5576803ac29f4499d

query I rowsort
SELECT col2 * col0 * - col0 + tab0.col0 FROM tab0
----
-1190
-18984
-649433

query I rowsort
SELECT - col0 * - 89 FROM tab1 AS cor0
----
267
5696
7120

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-869
SELECT 76 + ( + 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-869
SELECT 76 + ( + col0 ) * - CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-872
SELECT DISTINCT - col2 + ( col0 ) DIV col1 + - col0 col2 FROM tab0 AS cor0
----
-171
-36
-57

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-872
SELECT DISTINCT - col2 + ( col0 ) / col1 + - col0 col2 FROM tab0 AS cor0
----
-171
-36
-57

query I rowsort
SELECT ALL + 98 * col2 - col2 * ( 59 * + col2 + - col0 ) FROM tab1 AS cor0
----
-166590
-182457
-526656

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-875
SELECT ALL col2 DIV - 84 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-875
SELECT ALL col2 / - 84 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * 32 col1 FROM tab2 AS cor0
----
224
2496
2528

query I rowsort
SELECT ALL - col1 * - 45 + 50 FROM tab0 AS cor0
----
3920
4145
4415

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

query I rowsort
SELECT + 23 AS col1 FROM tab0, tab2 cor0
----
9 values hashing to d94fadcc1c8cc4fc51b78b83e04795f2

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

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

query I rowsort
SELECT + col1 + - col0 * - col1 * 79 FROM tab2 AS cor0
----
106114
17174
363617

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

query I rowsort
SELECT - cor0.col2 * 96 FROM tab0 cor0
----
-3168
-7872
-96

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

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

query I rowsort
SELECT DISTINCT + col1 * - 44 FROM tab0
----
-3784
-4004
-4268

query I rowsort
SELECT - 2 * col0 AS col1 FROM tab1 AS cor0
----
-128
-160
-6

query I rowsort
SELECT - col0 + col1 * ( 50 ) FROM tab2 AS cor0
----
1543
2872
771

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-890
SELECT ALL - + 5 + + col1 DIV col1 FROM tab1 AS cor0
----
-4
-4
-4

skipif mysql # not compatible
query I rowsort label-890
SELECT ALL - + 5 + + col1 / col1 FROM tab1 AS cor0
----
-4
-4
-4

query I rowsort
SELECT col1 * + col1 + col1 + - col2 AS col1 FROM tab1
----
53
648
86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + - col0 col1 FROM tab1
----
-128
-160
-6

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

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

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

query I rowsort
SELECT col1 + col0 + col2 * - col1 FROM tab2
----
-1397
-550
-799

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

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

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

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

query I rowsort
SELECT DISTINCT + 72 * + col0 + - ( col0 ) * cor0.col2 AS col2 FROM tab2 AS cor0
----
2686
315
3588

query I rowsort
SELECT col0 + + col2 * 55 * cor0.col0 FROM tab1 AS cor0
----
200704
422480
8913

onlyif mysql # use DIV operator for integer division
query I rowsort label-902
SELECT - col0 * col0 + col1 DIV - col0 FROM tab2 AS cor0
----
-53
-6084
-6241

skipif mysql # not compatible
query I rowsort label-902
SELECT - col0 * col0 + col1 / - col0 FROM tab2 AS cor0
----
-53
-6084
-6241

query I rowsort
SELECT DISTINCT - 79 + + cor0.col2 * + col0 FROM tab0 AS cor0
----
-44
713
7219

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col2 + - 57 col1 FROM tab0 AS cor0
----
-22
7241
735

query I rowsort
SELECT - - 90 + - cor0.col0 * - cor0.col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 530e58e27c99d687d6556b994f8afce3

query I rowsort
SELECT DISTINCT col2 + + 70 * col0 * col1 AS col2 FROM tab2
----
15217
322166
94048

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + tab1.col0 * col0 col0 FROM tab1
----
-17
4086
6387

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

skipif mysql # not compatible
query I rowsort label-910
SELECT + col1 + CAST ( col2 + + cor0.col0 AS INTEGER ) FROM tab1 cor0
----
131
189
83

query I rowsort
SELECT - col0 + 46 AS col2 FROM tab0 AS cor0
----
-43
11
22

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 + + 62 col1 FROM tab2 AS cor0
----
100
88
89

query I rowsort
SELECT DISTINCT - cor0.col2 * cor0.col2 AS col0 FROM tab1, tab1 cor0, tab0 AS cor1
----
-2916
-3249
-9216

onlyif mysql # use DIV operator for integer division
query I rowsort label-914
SELECT 11 * col1 DIV col2 col2 FROM tab1
----
1
1
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-914
SELECT 11 * col1 / col2 col2 FROM tab1
----
1
1
5

query I rowsort
SELECT ALL - ( + col1 ) * col2 + - 34 AS col2 FROM tab0
----
-131
-2872
-7496

onlyif mysql # use DIV operator for integer division
query I rowsort label-916
SELECT ALL 70 + 88 DIV col0 FROM tab0
----
70
72
73

skipif mysql # not compatible
query I rowsort label-916
SELECT ALL 70 + 88 / col0 FROM tab0
----
70
72
73

query I rowsort
SELECT - ( - 47 ) + + col0 AS col0 FROM tab1 AS cor0
----
111
127
50

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

query I rowsort
SELECT + + ( + 62 ) FROM tab1 cor0
----
62
62
62

query I rowsort
SELECT ( col1 ) * ( 4 ) + col1 FROM tab1 AS cor0
----
130
50
65

query I rowsort
SELECT + col1 * col1 * 29 FROM tab0 AS cor0
----
214484
240149
272861

query I rowsort
SELECT DISTINCT 70 + col0 AS col1 FROM tab0
----
105
159
94

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

query I rowsort
SELECT + - 12 * - col0 * 20 FROM tab1 cor0
----
15360
19200
720

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

query I rowsort
SELECT ALL + col0 + 89 FROM tab2
----
167
168
96

query I rowsort
SELECT - - 20 * col1 FROM tab2 AS cor0
----
1180
340
620

query I rowsort
SELECT - 39 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 504d14939d58aeb4a14f31c80de5b53e

query I rowsort
SELECT ALL - col1 * + 24 * - col0 + cor0.col2 * 46 AS col2 FROM tab1 AS cor0
----
17982
29376
4356

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

query I rowsort
SELECT ALL - - ( 85 ) * - col1 * - col1 + + col1 FROM tab0 AS cor0
----
628746
703976
799862

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-933
SELECT + 76 DIV - col2 AS col0 FROM tab0
----
-2
-76
0

skipif mysql # not compatible
query I rowsort label-933
SELECT + 76 / - col2 AS col0 FROM tab0
----
-2
-76
0

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

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

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

query I rowsort
SELECT DISTINCT - 39 * 46 AS col0 FROM tab2 cor0
----
-1794

query I rowsort
SELECT ALL - ( + 52 ) FROM tab2 AS cor0
----
-52
-52
-52

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-939
SELECT - CAST( - 77 AS SIGNED ) * col0 FROM tab1 AS cor0
----
231
4928
6160

skipif mysql # not compatible
query I rowsort label-939
SELECT - CAST ( - 77 AS INTEGER ) * col0 FROM tab1 AS cor0
----
231
4928
6160

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * col2 * + col1 col1 FROM tab2 AS cor0
----
22599
24548
39884

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

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

query I rowsort
SELECT ALL col2 * tab1.col0 + 65 FROM tab1
----
227
3713
7745

onlyif mysql # use DIV operator for integer division
query I rowsort label-944
SELECT ALL + + 64 DIV + col2 col1 FROM tab1 cor0
----
0
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-944
SELECT ALL + + 64 / + col2 col1 FROM tab1 cor0
----
0
1
1

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

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

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

query I rowsort
SELECT + + cor0.col0 + + 18 * - 75 AS col1 FROM tab1 AS cor0
----
-1270
-1286
-1347

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

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

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

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

query I rowsort
SELECT ALL - - col2 * - col2 * col0 FROM tab2 AS cor0
----
-114076
-5103
-52728

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-952
SELECT DISTINCT - + col2 + CAST( + 55 AS SIGNED ) * + col0 AS col0 FROM tab1 cor0
----
111
3463
4304

skipif mysql # not compatible
query I rowsort label-952
SELECT DISTINCT - + col2 + CAST ( + 55 AS INTEGER ) * + col0 AS col0 FROM tab1 cor0
----
111
3463
4304

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

query I rowsort
SELECT - + col0 * + 14 + col1 + col1 FROM tab1 AS cor0
----
-1094
-876
10

query I rowsort
SELECT + col1 * - 42 + - col0 AS col0 FROM tab0 cor0
----
-3636
-3911
-4109

onlyif mysql # use DIV operator for integer division
query I rowsort label-956
SELECT DISTINCT cor0.col1 * - 79 + - 97 * col1 DIV + 96 FROM tab1 cor0
----
-1040
-2080
-800

skipif mysql # not compatible
query I rowsort label-956
SELECT DISTINCT cor0.col1 * - 79 + - 97 * col1 / + 96 FROM tab1 cor0
----
-1040
-2080
-800

query I rowsort
SELECT DISTINCT - col2 * 85 FROM tab2
----
-2210
-2295
-3230

query I rowsort
SELECT ALL tab0.col0 * - 52 AS col2 FROM tab0
----
-1248
-1820
-4628

query I rowsort
SELECT + - col0 * 44 + + col2 * col2 FROM tab2 AS cor0
----
-2032
-2756
421

query I rowsort
SELECT col1 + 94 + col1 FROM tab1 AS cor0
----
114
120
146

query I rowsort
SELECT DISTINCT col1 + col1 * cor0.col0 * cor0.col0 FROM tab1 AS cor0
----
260
40970
83213

onlyif mysql # use DIV operator for integer division
query I rowsort label-962
SELECT ALL + cor0.col2 * 31 * - col2 + + col2 DIV 84 FROM tab2 AS cor0
----
-20956
-22599
-44764

skipif mysql # not compatible
query I rowsort label-962
SELECT ALL + cor0.col2 * 31 * - col2 + + col2 / 84 FROM tab2 AS cor0
----
-20956
-22599
-44764

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

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

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

query I rowsort
SELECT + 87 + col0 AS col2 FROM tab1 AS cor0
----
151
167
90

query I rowsort
SELECT col1 * - 82 AS col1 FROM tab1 AS cor0
----
-1066
-2132
-820

query I rowsort
SELECT DISTINCT col0 + 44 * col2 FROM tab2 AS cor0
----
1195
1222
1751

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( cor0.col1 ) * - col1 * + col1 col0 FROM tab1 AS cor0
----
-1000
-17576
-2197

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

query I rowsort
SELECT col1 * - 98 * col0 + - col1 * 81 AS col0 FROM tab0
----
-209238
-340567
-801073

query I rowsort
SELECT DISTINCT tab1.col0 * - 47 FROM tab1
----
-141
-3008
-3760

onlyif mysql # use DIV operator for integer division
query I rowsort label-972
SELECT + col1 DIV - 33 + 98 * col1 * 10 FROM tab0
----
84278
89178
95058

skipif mysql # not compatible
query I rowsort label-972
SELECT + col1 / - 33 + 98 * col1 * 10 FROM tab0
----
84278
89178
95058

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 19 * cor0.col2 + - cor0.col2 col0 FROM tab0 AS cor0
----
1476
18
594

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

query I rowsort
SELECT DISTINCT + ( col1 ) + col0 + - 94 FROM tab0 AS cor0
----
16
38
86

query I rowsort
SELECT + 74 + col0 AS col0 FROM tab2 AS cor0
----
152
153
81

query I rowsort
SELECT + col2 * col0 + + 85 + col1 FROM tab0 AS cor0
----
217
7474
963

query I rowsort
SELECT ALL - - 87 * - col2 AS col2 FROM tab0 AS cor0
----
-2871
-7134
-87

query I rowsort
SELECT ALL 53 + + col1 + ( col2 ) FROM tab2 cor0
----
108
111
138

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 73 - - col1 * - col2 col0 FROM tab1
----
-1175
-1331
-497

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-985
SELECT DISTINCT - ( + col0 ) DIV col1 + 72 AS col1 FROM tab2 AS cor0
----
68
71
72

skipif mysql # not compatible
query I rowsort label-985
SELECT DISTINCT - ( + col0 ) / col1 + 72 AS col1 FROM tab2 AS cor0
----
68
71
72

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

query I rowsort
SELECT + col1 + - col0 * ( col0 ) * - col1 FROM tab2 AS cor0
----
106114
1550
359015

query I rowsort
SELECT - 22 + cor0.col1 AS col0 FROM tab2 AS cor0
----
-5
37
9

query I rowsort
SELECT DISTINCT 7 * - col2 FROM tab1 AS cor0
----
-378
-399
-672

query I rowsort
SELECT ALL - 33 * col0 + - cor0.col1 AS col2 FROM tab2 cor0
----
-262
-2624
-2633

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 8 col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 69 * - col1 col1 FROM tab1
----
-1794
-690
-897

query I rowsort
SELECT DISTINCT + - col0 + col1 * 60 + col0 * + col0 AS col1 FROM tab2 AS cor0
----
1902
7182
9546

query I rowsort
SELECT 68 + cor0.col0 * col1 AS col2 FROM tab1 AS cor0
----
1108
146
708

skipif mysql # not compatible
query I rowsort
SELECT CAST ( col2 AS REAL ) FROM tab1
----
54
57
96

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

skipif mysql # not compatible
query I rowsort label-996
SELECT + CAST ( col2 AS INTEGER ) AS col0 FROM tab1
----
54
57
96

query I rowsort
SELECT ALL col0 + + col2 * cor0.col0 * + 15 AS col0 FROM tab0 AS cor0
----
109559
11904
560

query I rowsort
SELECT + col0 * col1 * ( col1 ) - - col1 FROM tab0
----
177590
329412
737100

query I rowsort
SELECT 91 + - col1 * - col2 FROM tab0 AS cor0
----
188
2929
7553

query I rowsort
SELECT + col2 + + cor0.col0 * 60 + 5 * col1 AS col1 FROM tab0 AS cor0
----
1903
2586
5877

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 * col0 * + col2 col1 FROM tab1 AS cor0
----
207936
737280
8748

query I rowsort
SELECT col0 * - col1 - - cor0.col2 * + cor0.col1 FROM tab0 AS cor0
----
-3298
-637
774

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1005
SELECT DISTINCT - col2 DIV + ( 26 ) FROM tab0 AS cor0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-1005
SELECT DISTINCT - col2 / + ( 26 ) FROM tab0 AS cor0
----
-1
-3
0

query I rowsort
SELECT + col2 + col2 - - ( + col1 * + 48 ) FROM tab1 AS cor0
----
1356
594
816

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

skipif mysql # not compatible
query I rowsort label-1007
SELECT + col1 * 18 / - cor0.col0 AS col1 FROM tab1 AS cor0
----
-156
-2
-2

onlyif mysql # use DIV operator for integer division
query I rowsort label-1008
SELECT + col2 DIV - 54 - + 43 FROM tab1 AS cor0
----
-44
-44
-44

skipif mysql # not compatible
query I rowsort label-1008
SELECT + col2 / - 54 - + 43 FROM tab1 AS cor0
----
-44
-44
-44

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

query I rowsort
SELECT + - col2 * - col1 * col2 + - col2 AS col0 FROM tab1 AS cor0
----
119712
32433
75762

query I rowsort
SELECT DISTINCT tab2.col1 * col0 + + 43 FROM tab2
----
1386
260
4645

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1012
SELECT + - CAST( + col2 AS SIGNED ) + - col2 * 20 AS col2 FROM tab1 AS cor0
----
-1134
-1197
-2016

skipif mysql # not compatible
query I rowsort label-1012
SELECT + - CAST ( + col2 AS INTEGER ) + - col2 * 20 AS col2 FROM tab1 AS cor0
----
-1134
-1197
-2016

query I rowsort
SELECT 45 * cor0.col1 + + cor0.col1 * col1 AS col0 FROM tab1 AS cor0
----
1846
550
754

onlyif mysql # use DIV operator for integer division
query I rowsort label-1014
SELECT col0 DIV col1 + + col1 * col0 + - col2 FROM tab0 AS cor0
----
2031
3394
8017

skipif mysql # not compatible
query I rowsort label-1014
SELECT col0 / col1 + + col1 * col0 + - col2 FROM tab0 AS cor0
----
2031
3394
8017

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

skipif mysql # not compatible
query I rowsort label-1015
SELECT - 21 * col0 + - col0 + CAST ( NULL AS REAL ) * - ( + col1 * - col1 ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - cor0.col0 * 23 + + col1 AS col1 FROM tab1 AS cor0
----
-1462
-1827
-43

onlyif mysql # use DIV operator for integer division
query I rowsort label-1017
SELECT + col2 DIV 16 + cor0.col0 FROM tab0 AS cor0
----
26
35
94

skipif mysql # not compatible
query I rowsort label-1017
SELECT + col2 / 16 + cor0.col0 FROM tab0 AS cor0
----
26
35
94

query I rowsort
SELECT + + 42 * ( col2 ) AS col0 FROM tab0 cor0
----
1386
3444
42

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

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

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

query I rowsort
SELECT - + col0 + + col2 + + col2 AS col1 FROM tab0 cor0
----
-33
42
75

query I rowsort
SELECT ALL 87 * + col2 AS col2 FROM tab0 AS cor0
----
2871
7134
87

query I rowsort
SELECT + + col0 * 41 + - col1 AS col1 FROM tab2 AS cor0
----
256
3139
3222

query I rowsort
SELECT DISTINCT - 67 * 7 AS col1 FROM tab0 AS cor0
----
-469

query I rowsort
SELECT DISTINCT + col2 + 11 * - col2 FROM tab0 AS cor0
----
-10
-330
-820

onlyif mysql # use DIV operator for integer division
query I rowsort label-1026
SELECT ALL col0 + - 95 + col2 DIV + 65 FROM tab0 AS cor0
----
-5
-60
-71

skipif mysql # not compatible
query I rowsort label-1026
SELECT ALL col0 + - 95 + col2 / + 65 FROM tab0 AS cor0
----
-5
-60
-71

query I rowsort
SELECT ALL col0 + - col1 * col0 * col1 AS col0 FROM tab1 cor0
----
-13440
-2025
-6336

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + cor0.col2 + 68 col1 FROM tab1 AS cor0
----
115
151
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-1029
SELECT + + col2 * - col2 DIV col2 + - col2 AS col0 FROM tab0 AS cor0
----
-164
-2
-66

skipif mysql # not compatible
query I rowsort label-1029
SELECT + + col2 * - col2 / col2 + - col2 AS col0 FROM tab0 AS cor0
----
-164
-2
-66

query I rowsort
SELECT DISTINCT + 47 * + col0 - + col2 * col0 AS col2 FROM tab1
----
-21
-3920
-640

onlyif mysql # use DIV operator for integer division
query I rowsort label-1031
SELECT DISTINCT + + col0 * col2 + + 20 DIV col2 AS col0 FROM tab0 AS cor0
----
55
7298
792

skipif mysql # not compatible
query I rowsort label-1031
SELECT DISTINCT + + col0 * col2 + + 20 / col2 AS col0 FROM tab0 AS cor0
----
55
7298
792

query I rowsort
SELECT 15 + - cor0.col1 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 270e8b1596a1c77138cc7f8982755e97

query I rowsort
SELECT DISTINCT + 81 + col2 AS col0 FROM tab2 AS cor0
----
107
108
119

query I rowsort
SELECT cor0.col0 * - ( cor0.col2 ) AS col1 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 8e23e17c36b823f4c429aaf1de1c2457

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1038
SELECT DISTINCT - ( - col0 ) * col0 * 18 + - col0 DIV col0 FROM tab0 AS cor0
----
10367
142577
22049

skipif mysql # not compatible
query I rowsort label-1038
SELECT DISTINCT - ( - col0 ) * col0 * 18 + - col0 / col0 FROM tab0 AS cor0
----
10367
142577
22049

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

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

query I rowsort
SELECT - 23 * col2 FROM tab1 AS cor0
----
-1242
-1311
-2208

query I rowsort
SELECT 49 + tab2.col1 FROM tab2
----
108
66
80

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

query I rowsort
SELECT DISTINCT + 14 * - col0 FROM tab2
----
-1092
-1106
-98

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

query I rowsort
SELECT DISTINCT 89 + col1 + col2 AS col2 FROM tab1 AS cor0
----
156
169
198

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

query I rowsort
SELECT + + 55 * - cor0.col0 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to ec1556e43e6aa368731ac4f30738a75a

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1050
SELECT + col0 DIV + col2 + col0 FROM tab0
----
24
70
90

skipif mysql # not compatible
query I rowsort label-1050
SELECT + col0 / + col2 + col0 FROM tab0
----
24
70
90

onlyif mysql # use DIV operator for integer division
query I rowsort label-1051
SELECT + col1 - - col2 DIV ( + col0 ) FROM tab1
----
10
14
44

skipif mysql # not compatible
query I rowsort label-1051
SELECT + col1 - - col2 / ( + col0 ) FROM tab1
----
10
14
44

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1053
SELECT + - CAST( + col0 AS SIGNED ) + - col0 * 5 FROM tab0 AS cor0
----
-144
-210
-534

skipif mysql # not compatible
query I rowsort label-1053
SELECT + - CAST ( + col0 AS INTEGER ) + - col0 * 5 FROM tab0 AS cor0
----
-144
-210
-534

query I rowsort
SELECT cor0.col1 * 53 + cor0.col2 FROM tab2 AS cor0
----
1670
3153
939

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

query I rowsort
SELECT DISTINCT - col1 + + 22 * - cor0.col1 FROM tab2 AS cor0
----
-1357
-391
-713

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

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

query I rowsort
SELECT ALL - col2 + + col2 * + col2 FROM tab1
----
2862
3192
9120

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

query I rowsort
SELECT DISTINCT + 32 * - 60 AS col0 FROM tab0 AS cor0
----
-1920

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 91 - - col2 * col1 col1 FROM tab1 AS cor0
----
1157
1313
479

query I rowsort
SELECT DISTINCT - 9 * col0 * + col0 FROM tab0 AS cor0
----
-11025
-5184
-71289

query I rowsort
SELECT col1 * - col2 * - col2 + 21 FROM tab0 cor0
----
118
611905
93675

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

query I rowsort
SELECT DISTINCT 33 + 48 * - col1 * 74 FROM tab2 cor0
----
-110079
-209535
-60351

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

query I rowsort
SELECT - + ( ( cor0.col1 ) ) + 85 AS col0 FROM tab2 cor0
----
26
54
68

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

query I rowsort
SELECT ALL 64 * + col1 + + col1 * - ( 85 ) FROM tab2 AS cor0
----
-1239
-357
-651

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

query I rowsort
SELECT DISTINCT + ( + 21 ) + col2 * - 21 + col1 AS col0 FROM tab1
----
-1087
-1166
-1982

query I rowsort
SELECT tab2.col1 + 46 + col0 AS col0 FROM tab2
----
142
183
84

query I rowsort
SELECT ALL col2 + + 23 * col0 * col0 + + 42 FROM tab1
----
147338
303
94307

query I rowsort
SELECT ALL ( 75 ) + tab0.col2 AS col0 FROM tab0
----
108
157
76

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

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

query I rowsort
SELECT - ( - 18 ) * - col1 + 61 AS col0 FROM tab0 AS cor0
----
-1487
-1577
-1685

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1079
SELECT - col2 DIV + 62 + - col0 FROM tab0
----
-24
-35
-90

skipif mysql # not compatible
query I rowsort label-1079
SELECT - col2 / + 62 + - col0 FROM tab0
----
-24
-35
-90

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1081
SELECT DISTINCT 44 * col0 DIV col1 AS col2 FROM tab0 AS cor0
----
12
15
43

skipif mysql # not compatible
query I rowsort label-1081
SELECT DISTINCT 44 * col0 / col1 AS col2 FROM tab0 AS cor0
----
12
15
43

query I rowsort
SELECT + 59 * col2 FROM tab1 AS cor0
----
3186
3363
5664

query I rowsort
SELECT 77 * col0 AS col1 FROM tab0 cor0
----
1848
2695
6853

query I rowsort
SELECT DISTINCT - - 77 * col2 - col0 AS col1 FROM tab0 cor0
----
2517
42
6225

onlyif mysql # use DIV operator for integer division
query I rowsort label-1085
SELECT - - 93 + + col2 DIV cor0.col0 FROM tab1 cor0
----
111
93
94

skipif mysql # not compatible
query I rowsort label-1085
SELECT - - 93 + + col2 / cor0.col0 FROM tab1 cor0
----
111
93
94

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

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

query I rowsort
SELECT ALL - col0 * - ( - col0 ) + col0 FROM tab0
----
-1190
-552
-7832

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

query I rowsort
SELECT col0 * + col1 + - 49 AS col1 FROM tab1 AS cor0
----
29
591
991

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

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

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

query I rowsort
SELECT ALL - - col0 + + col1 * ( - cor0.col1 ) FROM tab2 cor0
----
-210
-3403
-954

query I rowsort
SELECT ALL col1 + 86 * 13 + col0 * - col2 FROM tab0 AS cor0
----
-6089
1180
412

query I rowsort
SELECT col0 + ( 83 ) AS col2 FROM tab0
----
107
118
172

query I rowsort
SELECT ALL + col0 + 70 AS col2 FROM tab1 AS cor0
----
134
150
73

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1098
SELECT col0 DIV CAST( - 74 AS SIGNED ) 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-1098
SELECT col0 / CAST ( - 74 AS INTEGER ) col2 FROM tab0 AS cor0
----
-1
0
0

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

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

skipif mysql # not compatible
query I rowsort label-1100
SELECT DISTINCT + cor0.col0 * + ( col2 ) + - cor0.col2 * CAST ( - col1 AS INTEGER ) + + col1 FROM tab2 AS cor0
----
1057
3621
3665

query I rowsort
SELECT DISTINCT - col1 + col1 * 83 FROM tab2 AS cor0
----
1394
2542
4838

onlyif mysql # use DIV operator for integer division
query I rowsort label-1102
SELECT - - 52 DIV + col1 - + col0 AS col1 FROM tab0 AS cor0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-1102
SELECT - - 52 / + col1 - + col0 AS col1 FROM tab0 AS cor0
----
-24
-35
-89

onlyif mysql # use DIV operator for integer division
query I rowsort label-1103
SELECT col1 DIV ( - col0 ) + 82 * 36 FROM tab1 AS cor0
----
2944
2952
2952

skipif mysql # not compatible
query I rowsort label-1103
SELECT col1 / ( - col0 ) + 82 * 36 FROM tab1 AS cor0
----
2944
2952
2952

query I rowsort
SELECT ALL - + col1 * 49 AS col2 FROM tab0 AS cor0
----
-4214
-4459
-4753

query I rowsort
SELECT DISTINCT - col2 * 14 AS col2 FROM tab1 AS cor0
----
-1344
-756
-798

query I rowsort
SELECT DISTINCT 90 + 99 AS col0 FROM tab0, tab2 AS cor0
----
189

query I rowsort
SELECT DISTINCT col2 * 42 + tab2.col1 * - col1 FROM tab2
----
-2389
1307
173

query I rowsort
SELECT - cor1.col0 + cor0.col1 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 64de71f07a6ba954417f781fbdd78d39

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

skipif mysql # not compatible
query I rowsort label-1109
SELECT - col0 + col0 + - col2 / col1 FROM tab0
----
0
0
0

query I rowsort
SELECT + + col1 * + 60 + cor0.col0 AS col2 FROM tab2 AS cor0
----
1099
1867
3618

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

query I rowsort
SELECT ALL 32 + - tab2.col0 * col0 AS col0 FROM tab2
----
-17
-6052
-6209

query I rowsort
SELECT + 45 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050

query I rowsort
SELECT - - col0 * - col0 + + cor0.col0 + + col2 AS col1 FROM tab0 AS cor0
----
-1189
-519
-7750

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + ( 64 ) col1 FROM tab2 AS cor0
----
142
143
71

query I rowsort
SELECT cor0.col0 + + ( 33 ) FROM tab0 AS cor0
----
122
57
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 * + col2 + cor0.col2 col2 FROM tab2 cor0
----
2054
216
3040

query I rowsort
SELECT DISTINCT ( - 96 ) * + col1 AS col0 FROM tab2
----
-1632
-2976
-5664

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * 78 col1 FROM tab2
----
546
6084
6162

query I rowsort
SELECT ALL - - col0 + - ( col0 ) + col1 * col1 FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT DISTINCT - - 29 * cor0.col2 - col2 AS col1 FROM tab1 AS cor0
----
1512
1596
2688

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

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

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

query I rowsort
SELECT DISTINCT col2 + - 10 AS col2 FROM tab1 AS cor0
----
44
47
86

onlyif mysql # use DIV operator for integer division
query I rowsort label-1126
SELECT DISTINCT - col0 DIV col2 - - col2 FROM tab1 AS cor0
----
54
56
96

skipif mysql # not compatible
query I rowsort label-1126
SELECT DISTINCT - col0 / col2 - - col2 FROM tab1 AS cor0
----
54
56
96

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

query I rowsort
SELECT DISTINCT - - 32 + col1 * col0 FROM tab2 AS cor0
----
1375
249
4634

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

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

query I rowsort
SELECT 81 * + col1 AS col0 FROM tab1 cor0
----
1053
2106
810

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

query I rowsort
SELECT DISTINCT + col1 * col1 * 79 FROM tab0
----
584284
654199
743311

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1135
SELECT + + 96 + + col2 DIV 15 AS col1 FROM tab1 AS cor0
----
102
99
99

skipif mysql # not compatible
query I rowsort label-1135
SELECT + + 96 + + col2 / 15 AS col1 FROM tab1 AS cor0
----
102
99
99

query I rowsort
SELECT cor0.col2 + 64 AS col2 FROM tab1 AS cor0
----
118
121
160

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

query I rowsort
SELECT col1 * 54 + ( col0 ) - - ( cor0.col0 * + cor0.col1 ) FROM tab2 cor0
----
1898
2340
7866

query I rowsort
SELECT - 40 FROM tab0, tab1 AS cor0
----
9 values hashing to f02f17e9bc17e514af018c6f245ed7a9

query I rowsort
SELECT + col0 * col1 + ( col1 * - ( col1 ) ) FROM tab0 AS cor0
----
-182
-5332
-6014

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1143
SELECT CAST( - tab0.col2 AS SIGNED ) AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to b5a4102107e5ebd26e341538f4fede1e

skipif mysql # not compatible
query I rowsort label-1143
SELECT CAST ( - tab0.col2 AS INTEGER ) AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to b5a4102107e5ebd26e341538f4fede1e

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

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

query I rowsort
SELECT DISTINCT 94 * - col1 + - col2 FROM tab0
----
-8117
-8636
-9119

query I rowsort
SELECT DISTINCT + 61 * + ( - col2 ) * 86 FROM tab2 AS cor0
----
-136396
-141642
-199348

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - cor1.col2 ) col0 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT + ( 36 ) FROM tab0 cor0
----
36
36
36

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

query I rowsort
SELECT ALL + - col1 + col2 * + col0 * col2 AS col1 FROM tab1 AS cor0
----
207926
737267
8722

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

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

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

query I rowsort
SELECT 18 * - ( - col0 ) + - cor0.col1 * 88 + col2 * ( col0 ) AS col1 FROM tab1 AS cor0
----
-2072
3920
7976

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

query I rowsort
SELECT ALL 11 AS col2 FROM tab1, tab2 cor0
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00

onlyif mysql # use DIV operator for integer division
query I rowsort label-1158
SELECT ALL + col0 + - col0 * col2 DIV - 13 FROM tab2
----
21
234
309

skipif mysql # not compatible
query I rowsort label-1158
SELECT ALL + col0 + - col0 * col2 / - 13 FROM tab2
----
21
234
309

query I rowsort
SELECT ALL col1 - 59 FROM tab1 AS cor0
----
-33
-46
-49

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

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

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

query I rowsort
SELECT + 58 * + col2 FROM tab2 cor0
----
1508
1566
2204

query I rowsort
SELECT DISTINCT - 6 * - 65 FROM tab1 AS cor0
----
390

query I rowsort
SELECT DISTINCT 3 + - 2 FROM tab0 AS cor0
----
1

query I rowsort
SELECT DISTINCT - 35 AS col1 FROM tab1 cor0
----
-35

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

query I rowsort
SELECT ALL 78 * - col1 + + col0 - 80 AS col2 FROM tab1 AS cor0
----
-1014
-2105
-796

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

query I rowsort
SELECT - 46 * cor0.col2 + + col1 FROM tab0 AS cor0
----
-1432
-3681
51

query I rowsort
SELECT col2 + - col2 * + col2 FROM tab1
----
-2862
-3192
-9120

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

query I rowsort
SELECT DISTINCT + 73 * + 1 FROM tab0, tab1 cor0
----
73

query I rowsort
SELECT - - col0 * 39 + col1 * cor0.col1 FROM tab0 AS cor0
----
10774
11752
8332

query I rowsort
SELECT ALL + col2 * + 2 FROM tab1 AS cor0
----
108
114
192

query I rowsort
SELECT DISTINCT + cor0.col1 * + 3 FROM tab0 AS cor0
----
258
273
291

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1179
SELECT ALL + col1 * col1 DIV 62 FROM tab1 cor0
----
1
10
2

skipif mysql # not compatible
query I rowsort label-1179
SELECT ALL + col1 * col1 / 62 FROM tab1 cor0
----
1
10
2

query I rowsort
SELECT DISTINCT - col1 + 14 AS col2 FROM tab2 AS cor0
----
-17
-3
-45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + + 29 * col0 col1 FROM tab1 AS cor0
----
141
1913
2416

query I rowsort
SELECT + col2 + 70 - col1 FROM tab1
----
117
153
98

query I rowsort
SELECT - 45 + + cor0.col0 AS col0 FROM tab1 AS cor0
----
-42
19
35

query I rowsort
SELECT + col1 - + 42 AS col0 FROM tab2 cor0
----
-11
-25
17

query I rowsort
SELECT - col1 * col0 + + 41 FROM tab1
----
-37
-599
-999

query I rowsort
SELECT ALL col1 + 34 * - col0 FROM tab0
----
-1093
-2935
-730

query I rowsort
SELECT - col1 + 70 * col0 FROM tab0 AS cor0
----
1594
2353
6139

query I rowsort
SELECT - - ( 71 ) - col0 FROM tab0 AS cor0
----
-18
36
47

query I rowsort
SELECT - + ( - col2 ) * + col2 + - col1 + + col2 AS col2 FROM tab0 AS cor0
----
-95
1036
6715

query I rowsort
SELECT - tab2.col0 * - col0 AS col2 FROM tab2
----
49
6084
6241

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

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

query I rowsort
SELECT + - 33 * col0 + col2 + col2 * + 38 FROM tab1 AS cor0
----
1104
111
2007

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

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

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

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

query I rowsort
SELECT + + col0 * + col0 + col0 * col1 * cor0.col0 + cor0.col1 * + cor0.col2 FROM tab0 AS cor0
----
120147
52950
736194

onlyif mysql # use DIV operator for integer division
query I rowsort label-1197
SELECT 93 DIV 41 FROM tab2
----
2
2
2

skipif mysql # not compatible
query I rowsort label-1197
SELECT 93 / 41 FROM tab2
----
2
2
2

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

query I rowsort
SELECT ALL - 98 - + col1 FROM tab1 AS cor0
----
-108
-111
-124

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

query I rowsort
SELECT DISTINCT + 79 FROM tab0, tab1, tab0 cor0
----
79

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1203
SELECT ALL - col1 DIV + col0 + + 59 FROM tab0 cor0
----
56
57
58

skipif mysql # not compatible
query I rowsort label-1203
SELECT ALL - col1 / + col0 + + 59 FROM tab0 cor0
----
56
57
58

query I rowsort
SELECT DISTINCT - col0 * 70 + + col1 AS col1 FROM tab2 AS cor0
----
-459
-5401
-5513

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

query I rowsort
SELECT + col0 * - 94 FROM tab0 AS cor0
----
-2256
-3290
-8366

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

query I rowsort
SELECT ALL - + col0 * cor0.col0 + ( - col2 ) - + col0 AS col0 FROM tab0 cor0
----
-1261
-633
-8092

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

skipif mysql # not compatible
query I rowsort label-1209
SELECT - + col0 * CAST ( + 36 * + col0 AS INTEGER ) AS col0 FROM tab1 cor0
----
-147456
-230400
-324

query I rowsort
SELECT ALL - + col2 * ( cor0.col2 * - col0 ) - - col1 AS col2 FROM tab1 AS cor0
----
207946
737293
8774

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

query I rowsort
SELECT + - col2 * 6 FROM tab1 cor0
----
-324
-342
-576

query I rowsort
SELECT ALL + + col2 * - 59 - 72 AS col0 FROM tab0 cor0
----
-131
-2019
-4910

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

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

query I rowsort
SELECT ALL - + cor0.col0 * + ( 19 ) AS col1 FROM tab2 AS cor0
----
-133
-1482
-1501

query I rowsort
SELECT ALL cor0.col2 + col0 * 77 * - col0 AS col0 FROM tab0 cor0
----
-44319
-609835
-94324

query I rowsort
SELECT + col2 - col0 * col0 * col1 FROM tab2 AS cor0
----
-106059
-1492
-358930

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - 36 * - col2 col0 FROM tab0 AS cor0
----
1221
3034
37

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

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

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

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

query I rowsort
SELECT ALL col1 * + col0 + + col2 * col2 * - col1 AS col2 FROM tab2
----
-22382
-23205
-35282

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

query I rowsort
SELECT ALL col2 / col0 - + col2 * - col2 AS col0 FROM tab1 WHERE NULL NOT BETWEEN col2 * col2 * + col2 + - col0 AND NULL
----

query I rowsort
SELECT DISTINCT col0 + tab2.col0 * + col0 FROM tab2
----
56
6162
6320

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

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN NULL AND col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + tab1.col0 col1 FROM tab1
----
29
74
93

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 >= NULL
----

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

query I rowsort
SELECT ALL - col1 + + col1 * col2 + + col2 / + col1 FROM tab1 WHERE ( NULL ) <= NULL
----

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1233
SELECT DISTINCT cor0.col1 + + col1 * - CAST( col0 * + col0 AS SIGNED ) + + cor0.col2 AS col0 FROM tab0 AS cor0
----
-118727
-49417
-720638

skipif mysql # not compatible
query I rowsort label-1233
SELECT DISTINCT cor0.col1 + + col1 * - CAST ( col0 * + col0 AS INTEGER ) + + cor0.col2 AS col0 FROM tab0 AS cor0
----
-118727
-49417
-720638

query I rowsort
SELECT - ( - ( - col2 ) ) FROM tab0
----
-1
-33
-82

query I rowsort
SELECT + + 82 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 99920d9f7cd9cdccef99cfa459ae6944

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

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

skipif mysql # not compatible
query I rowsort label-1237
SELECT DISTINCT cor0.col0 * col0 + - CAST ( + col1 AS INTEGER ) * cor0.col0 + 84 AS col2 FROM tab1 AS cor0
----
15
3540
5444

query I rowsort
SELECT DISTINCT + - col0 * + cor0.col1 + - 28 FROM tab0 AS cor0
----
-2092
-3423
-8127

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1241
SELECT ALL - CAST( col1 AS SIGNED ) + + col2 FROM tab1
----
28
47
83

skipif mysql # not compatible
query I rowsort label-1241
SELECT ALL - CAST ( col1 AS INTEGER ) + + col2 FROM tab1
----
28
47
83

query I rowsort
SELECT ALL + 42 + + 7 AS col2 FROM tab0
----
49
49
49

query I rowsort
SELECT ( cor0.col0 ) AS col1 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

query I rowsort
SELECT DISTINCT + cor0.col0 - + col1 * 31 FROM tab2 AS cor0
----
-1751
-448
-954

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

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

query I rowsort
SELECT - 63 AS col1 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5a7845ef6e239561caf9a17a28e274b5

query I rowsort
SELECT ALL tab2.col0 - tab2.col0 * - col2 * col2 AS col0 FROM tab2
----
114155
5110
52806

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

query I rowsort
SELECT col0 * 59 - - col1 FROM tab2 AS cor0
----
444
4661
4678

query I rowsort
SELECT - col2 * 26 + col0 * col0 AS col2 FROM tab0 AS cor0
----
-282
1199
5789

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

query I rowsort
SELECT + 40 + ( - cor0.col0 ) * + col2 AS col2 FROM tab2 AS cor0
----
-149
-1988
-2962

query I rowsort
SELECT 50 + + col0 FROM tab0 AS cor0
----
139
74
85

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

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

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

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

query I rowsort
SELECT + + col2 + + col2 AS col2 FROM tab2 cor0
----
52
54
76

query I rowsort
SELECT ALL tab0.col1 * col0 - 8 * 84 AS col2 FROM tab0
----
1392
2723
7427

query I rowsort
SELECT + col1 * - col1 - - 82 FROM tab1 AS cor0
----
-18
-594
-87

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

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

query I rowsort
SELECT ALL + - 52 + + col0 AS col0 FROM tab1 AS cor0
----
-49
12
28

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

query I rowsort
SELECT DISTINCT + + col0 * - col0 - ( + 35 * cor0.col0 ) AS col1 FROM tab2 AS cor0
----
-294
-8814
-9006

query I rowsort
SELECT ALL + col1 + col2 * 37 FROM tab2 AS cor0
----
1021
1030
1423

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

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

query I rowsort
SELECT DISTINCT + col0 + ( + col1 ) FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT ALL col2 - - 61 FROM tab0 cor0
----
143
62
94

query I rowsort
SELECT ALL + - col0 * - col0 - - 73 * col1 FROM tab2 AS cor0
----
10391
2312
7482

query I rowsort
SELECT ALL cor0.col0 * col0 + + 73 FROM tab2 AS cor0
----
122
6157
6314

query I rowsort
SELECT - col0 * 41 AS col0 FROM tab1
----
-123
-2624
-3280

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1276
SELECT - col1 DIV + col0 - - col2 * + col0 FROM tab2 AS cor0
----
185
2028
3002

skipif mysql # not compatible
query I rowsort label-1276
SELECT - col1 / + col0 - - col2 * + col0 FROM tab2 AS cor0
----
185
2028
3002

query I rowsort
SELECT col2 * + col1 + ( col0 * cor0.col0 + - col0 ) FROM tab0 AS cor0
----
1287
15294
3390

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

query I rowsort
SELECT DISTINCT - col2 + 39 AS col2 FROM tab0 AS cor0
----
-43
38
6

query I rowsort
SELECT DISTINCT tab0.col2 * - 45 AS col0 FROM tab0
----
-1485
-3690
-45

query I rowsort
SELECT - 85 + 68 * + col0 FROM tab2 AS cor0
----
391
5219
5287

query I rowsort
SELECT DISTINCT col2 + - 32 AS col2 FROM tab0 AS cor0
----
-31
1
50

query I rowsort
SELECT - 34 + col1 AS col2 FROM tab1
----
-21
-24
-8

query I rowsort
SELECT + ( 7 ) FROM tab2
----
7
7
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-1285
SELECT ALL - - ( 91 ) DIV cor0.col1 FROM tab1 AS cor0
----
3
7
9

skipif mysql # not compatible
query I rowsort label-1285
SELECT ALL - - ( 91 ) / cor0.col1 FROM tab1 AS cor0
----
3
7
9

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - 57 col2 FROM tab0 AS cor0
----
1881
4674
57

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

query I rowsort
SELECT DISTINCT + 16 * cor0.col2 AS col1 FROM tab1 AS cor0
----
1536
864
912

onlyif mysql # use DIV operator for integer division
query I rowsort label-1290
SELECT DISTINCT col1 DIV 36 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-1290
SELECT DISTINCT col1 / 36 FROM tab1
----
0

query I rowsort
SELECT DISTINCT - 2 * + col2 AS col2 FROM tab1 AS cor0
----
-108
-114
-192

query I rowsort
SELECT ALL - 3 + - col1 FROM tab1 AS cor0
----
-13
-16
-29

query I rowsort
SELECT + 37 * + cor0.col1 AS col0 FROM tab2 AS cor0
----
1147
2183
629

query I rowsort
SELECT ALL + + 52 FROM tab2 AS cor0
----
52
52
52

query I rowsort
SELECT ALL - ( tab1.col0 * col2 + + 73 ) FROM tab1
----
-235
-3721
-7753

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1297
SELECT ALL - col2 * col0 DIV col0 + - 51 FROM tab1 AS cor0
----
-105
-108
-147

skipif mysql # not compatible
query I rowsort label-1297
SELECT ALL - col2 * col0 / col0 + - 51 FROM tab1 AS cor0
----
-105
-108
-147

query I rowsort
SELECT - 75 * col1 AS col1 FROM tab2 AS cor0
----
-1275
-2325
-4425

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1301
SELECT DISTINCT - 46 * col2 DIV + tab0.col2 FROM tab0
----
-46

skipif mysql # not compatible
query I rowsort label-1301
SELECT DISTINCT - 46 * col2 / + tab0.col2 FROM tab0
----
-46

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

skipif mysql # not compatible
query I rowsort label-1302
SELECT + + col2 - + CAST ( ( col2 ) AS INTEGER ) * cor0.col1 AS col1 FROM tab0 cor0
----
-2805
-7380
-96

query I rowsort
SELECT DISTINCT + col0 * + col1 * ( tab2.col0 ) AS col2 FROM tab2
----
106097
1519
358956

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col2 + 69 col2 FROM tab0
----
104
7367
861

query I rowsort
SELECT ALL col0 * ( + ( + col2 ) * ( - 38 ) ) + - tab2.col2 AS col1 FROM tab2
----
-114114
-7209
-77090

query I rowsort
SELECT DISTINCT - 43 + 13 * col1 * - 79 AS col2 FROM tab0 AS cor0
----
-88365
-93500
-99662

onlyif mysql # use DIV operator for integer division
query I rowsort label-1307
SELECT DISTINCT + cor0.col0 DIV ( + col0 ) + col0 AS col0 FROM tab2 AS cor0
----
79
8
80

skipif mysql # not compatible
query I rowsort label-1307
SELECT DISTINCT + cor0.col0 / ( + col0 ) + col0 AS col0 FROM tab2 AS cor0
----
79
8
80

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

query I rowsort
SELECT col0 * col2 + - 28 FROM tab1
----
134
3620
7652

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

query I rowsort
SELECT ALL + col2 + 58 FROM tab2
----
84
85
96

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

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

query I rowsort
SELECT ALL 67 + - 83 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to be22ac76b42c6f7212ecc0ba7c89eb34

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

query I rowsort
SELECT ALL col2 + 31 FROM tab0 AS cor0
----
113
32
64

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

query I rowsort
SELECT ALL - 93 + col0 * col0 AS col0 FROM tab1 cor0
----
-84
4003
6307

query I rowsort
SELECT + + 92 + + ( - cor0.col2 * - col1 ) FROM tab1 AS cor0
----
1340
1496
662

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

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

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

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

query I rowsort
SELECT ALL - col1 + col0 * col1 * 43 AS col0 FROM tab2 AS cor0
----
197827
57732
9300

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

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

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

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

query I rowsort
SELECT DISTINCT col1 + + 45 * + col2 * - cor0.col2 FROM tab2 AS cor0
----
-30361
-32774
-64963

query I rowsort
SELECT ALL + col2 * 98 AS col2 FROM tab0
----
3234
8036
98

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

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

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

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

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

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

query I rowsort
SELECT col2 * - 84 FROM tab2 cor0
----
-2184
-2268
-3192

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

query I rowsort
SELECT - 55 * - col0 + col0 + + 86 FROM tab1 AS cor0
----
254
3670
4566

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

query I rowsort
SELECT + - 38 * - col0 FROM tab1 AS cor0
----
114
2432
3040

onlyif mysql # use DIV operator for integer division
query I rowsort label-1339
SELECT col0 DIV col1 + + col0 + + col1 FROM tab1 cor0
----
29
80
99

skipif mysql # not compatible
query I rowsort label-1339
SELECT col0 / col1 + + col0 + + col1 FROM tab1 cor0
----
29
80
99

query I rowsort
SELECT DISTINCT ( col1 + col2 ) * col1 AS col2 FROM tab0
----
10234
15743
9506

query I rowsort
SELECT ALL 58 AS col2 FROM tab2, tab2 AS cor0, tab1 cor1
----
27 values hashing to 9ee363c6ac19cfdb8a50c7dfd5cc2b8a

onlyif mysql # use DIV operator for integer division
query I rowsort label-1342
SELECT - col0 DIV col2 + 11 * col1 + col1 col2 FROM tab0 AS cor0
----
1032
1091
1129

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1342
SELECT - col0 / col2 + 11 * col1 + col1 col2 FROM tab0 AS cor0
----
1032
1091
1129

query I rowsort
SELECT - col0 * + col2 + cor0.col0 + + col1 FROM tab1 AS cor0
----
-133
-3574
-7587

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1348
SELECT - cor0.col2 * col0 DIV - col0 AS col1 FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-1348
SELECT - cor0.col2 * col0 / - col0 AS col1 FROM tab1 AS cor0
----
54
57
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 27 * + 0 col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT col0 + col0 * 43 AS col1 FROM tab2 AS cor0
----
308
3432
3476

query I rowsort
SELECT ALL + ( + col2 ) * - 37 FROM tab1
----
-1998
-2109
-3552

query I rowsort
SELECT DISTINCT - col2 * 33 FROM tab1 AS cor0
----
-1782
-1881
-3168

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + - col1 * 6 col1 FROM tab0 AS cor0
----
-457
-492
-547

query I rowsort
SELECT + col0 + - col2 * 98 AS col2 FROM tab2 AS cor0
----
-2470
-2639
-3645

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

query I rowsort
SELECT - col0 + 77 AS col2 FROM tab0 AS cor0
----
-12
42
53

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

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

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

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

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

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

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

query I rowsort
SELECT ALL - col0 + - ( - col1 ) * cor0.col1 FROM tab0 AS cor0
----
7372
8192
9374

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

query I rowsort
SELECT + 87 AS col0 FROM tab0, tab1 AS cor0, tab2, tab2 AS cor1
----
81 values hashing to 969f31ae779866644763e8a07f1ec501

query I rowsort
SELECT DISTINCT col1 + - ( col0 ) + col0 * col0 AS col0 FROM tab1
----
32
4042
6333

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1366
SELECT - - col1 * - CAST( 21 * + col1 AS SIGNED ) + - col2 FROM tab0 cor0
----
-155349
-173983
-197590

skipif mysql # not compatible
query I rowsort label-1366
SELECT - - col1 * - CAST ( 21 * + col1 AS INTEGER ) + - col2 FROM tab0 cor0
----
-155349
-173983
-197590

onlyif mysql # use DIV operator for integer division
query I rowsort label-1367
SELECT + 94 DIV - col0 col0 FROM tab2
----
-1
-1
-13

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1367
SELECT + 94 / - col0 col0 FROM tab2
----
-1
-1
-13

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

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

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

query I rowsort
SELECT ALL col1 + tab2.col1 * - col2 AS col1 FROM tab2
----
-1475
-629
-806

query I rowsort
SELECT - - 39 * - col0 - ( + 72 * col1 ) FROM tab1 AS cor0
----
-1989
-3216
-4056

query I rowsort
SELECT - 69 * col0 + 47 AS col0 FROM tab1 AS cor0
----
-160
-4369
-5473

onlyif mysql # use DIV operator for integer division
query I rowsort label-1374
SELECT DISTINCT 9 * col2 DIV col2 + + col1 FROM tab0 AS cor0
----
100
106
95

skipif mysql # not compatible
query I rowsort label-1374
SELECT DISTINCT 9 * col2 / col2 + + col1 FROM tab0 AS cor0
----
100
106
95

query I rowsort
SELECT + 73 + + cor0.col0 AS col2 FROM tab1 AS cor0
----
137
153
76

query I rowsort
SELECT ALL 78 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4

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

query I rowsort
SELECT - + col2 * 2 FROM tab1 AS cor0
----
-108
-114
-192

query I rowsort
SELECT ALL - 44 + col0 AS col0 FROM tab2 AS cor0
----
-37
34
35

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

query I rowsort
SELECT DISTINCT 8 * col0 AS col0 FROM tab2 AS cor0
----
56
624
632

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

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

query I rowsort
SELECT + col0 + col1 * - 93 FROM tab1
----
-1129
-2415
-866

query I rowsort
SELECT ALL col0 * col0 + + tab0.col0 FROM tab0
----
1260
600
8010

query I rowsort
SELECT ALL + 76 + col2 AS col2 FROM tab1 AS cor0
----
130
133
172

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

query I rowsort
SELECT DISTINCT - 81 + - 52 + col1 FROM tab1 AS cor0
----
-107
-120
-123

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

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

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

query I rowsort
SELECT ( - tab1.col2 ) * 91 + + 35 AS col2 FROM tab1
----
-4879
-5152
-8701

query I rowsort
SELECT DISTINCT col1 * + col1 * - ( - col0 * col0 ) + + col1 FROM tab1
----
1081613
409610
6110

onlyif mysql # use DIV operator for integer division
query I rowsort label-1393
SELECT ALL + 88 + + col1 DIV 17 col0 FROM tab1 AS cor0
----
88
88
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1393
SELECT ALL + 88 + + col1 / 17 col0 FROM tab1 AS cor0
----
88
88
89

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

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

query I rowsort
SELECT DISTINCT tab0.col0 * cor0.col2 * + 28 FROM tab0, tab0 AS cor0
----
9 values hashing to 948c221b4567859de4563d5ca557a910

query I rowsort
SELECT 73 AS col1 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 3933a906d17a820ccf95467e2206df8f

query I rowsort
SELECT ALL - col0 * - ( - 85 ) + col2 AS col2 FROM tab1 AS cor0
----
-201
-5383
-6704

query I rowsort
SELECT ALL - col0 * 98 + col2 + - col1 AS col0 FROM tab2 cor0
----
-690
-7677
-7721

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

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

query I rowsort
SELECT DISTINCT - 99 FROM tab2, tab1, tab1 cor0, tab0
----
-99

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

skipif mysql # not compatible
query I rowsort label-1401
SELECT DISTINCT + col1 / + 74 FROM tab2
----
0

query I rowsort
SELECT ALL - - col2 + col0 * 78 AS col0 FROM tab1 AS cor0
----
288
5049
6336

query I rowsort
SELECT DISTINCT - - col1 * + 74 AS col2 FROM tab1 AS cor0
----
1924
740
962

query I rowsort
SELECT DISTINCT + col0 * 97 - col0 * cor0.col2 AS col2 FROM tab1 AS cor0
----
129
2560
80

query I rowsort
SELECT - + cor0.col2 * 17 AS col2 FROM tab0 AS cor0
----
-1394
-17
-561

onlyif mysql # use DIV operator for integer division
query I rowsort label-1406
SELECT DISTINCT col1 DIV 46 - col0 AS col0 FROM tab1 AS cor0
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-1406
SELECT DISTINCT col1 / 46 - col0 AS col0 FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT + 45 AS col1 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 14cec871edc37b5056cda01c8331fdca

query I rowsort
SELECT cor0.col0 * - 38 + cor0.col0 * - col2 FROM tab0 AS cor0
----
-10680
-1365
-1704

query I rowsort
SELECT ALL col0 * - 18 FROM tab2 cor0
----
-126
-1404
-1422

query I rowsort
SELECT col0 * - col1 + 72 + - col1 AS col0 FROM tab2 AS cor0
----
-1288
-176
-4589

query I rowsort
SELECT ALL - col0 * ( + 64 + - col0 ) AS col1 FROM tab0 AS cor0
----
-1015
-960
2225

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

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

query I rowsort
SELECT + cor0.col2 + + 50 FROM tab1, tab0 AS cor0
----
9 values hashing to b2174eaf3756478def762f6e243f6669

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1414
SELECT + - CAST( + 10 AS SIGNED ) + col1 FROM tab2 AS cor0
----
21
49
7

skipif mysql # not compatible
query I rowsort label-1414
SELECT + - CAST ( + 10 AS INTEGER ) + col1 FROM tab2 AS cor0
----
21
49
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 57 + + col1 col0 FROM tab2 AS cor0
----
-26
-40
2

query I rowsort
SELECT DISTINCT 42 + col1 FROM tab2 AS cor0
----
101
59
73

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

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

query I rowsort
SELECT 26 * - tab1.col1 FROM tab1
----
-260
-338
-676

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 - - 98 col2 FROM tab1
----
101
162
178

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

query I rowsort
SELECT ALL - 40 * col1 + + ( col0 ) FROM tab1
----
-1037
-336
-440

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

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

query I rowsort
SELECT col0 + + col1 * - 8 AS col0 FROM tab0
----
-639
-664
-741

onlyif mysql # use DIV operator for integer division
query I rowsort label-1427
SELECT ALL - tab2.col2 * - col0 + + col1 DIV tab2.col1 AS col0 FROM tab2
----
190
2029
3003

skipif mysql # not compatible
query I rowsort label-1427
SELECT ALL - tab2.col2 * - col0 + + col1 / tab2.col1 AS col0 FROM tab2
----
190
2029
3003

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1429
SELECT col2 * ( + cor0.col2 ) DIV col1 + - 19 AS col0 FROM tab1 AS cor0
----
305
689
93

skipif mysql # not compatible
query I rowsort label-1429
SELECT col2 * ( + cor0.col2 ) / col1 + - 19 AS col0 FROM tab1 AS cor0
----
305
689
93

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

query I rowsort
SELECT col1 + tab0.col1 + 14 AS col1 FROM tab0
----
186
196
208

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

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

query I rowsort
SELECT DISTINCT - col1 + col1 * - 87 AS col1 FROM tab1 AS cor0
----
-1144
-2288
-880

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + col0 * + tab2.col1 col1 FROM tab2
----
119652
51034
5859

query I rowsort
SELECT + col1 + 76 AS col2 FROM tab1 AS cor0
----
102
86
89

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - 91 col0 FROM tab1
----
4914
5187
8736

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

query I rowsort
SELECT - + 91 * - cor0.col1 + col2 FROM tab2 AS cor0
----
1585
2848
5395

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

query I rowsort
SELECT - - 73 + + cor0.col0 FROM tab0 AS cor0
----
108
162
97

query I rowsort
SELECT - col0 * 80 + - cor0.col2 AS col0 FROM tab0 AS cor0
----
-1953
-2801
-7202

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

query I rowsort
SELECT - 54 + - col2 * + col1 AS col1 FROM tab1 AS cor0
----
-1302
-1458
-624

query I rowsort
SELECT 52 - col0 FROM tab2 cor0
----
-26
-27
45

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1450
SELECT - - CAST( ( col1 ) AS SIGNED ) + 52 AS col1 FROM tab0 AS cor0
----
138
143
149

skipif mysql # not compatible
query I rowsort label-1450
SELECT - - CAST ( ( col1 ) AS INTEGER ) + 52 AS col1 FROM tab0 AS cor0
----
138
143
149

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1452
SELECT ALL col1 DIV - tab2.col1 + col2 FROM tab2
----
25
26
37

skipif mysql # not compatible
query I rowsort label-1452
SELECT ALL col1 / - tab2.col1 + col2 FROM tab2
----
25
26
37

query I rowsort
SELECT ALL - 23 * - 10 + - col2 * - col0 + + ( - col1 ) * + 5 AS col2 FROM tab0
----
-220
592
7073

query I rowsort
SELECT - ( + col2 ) * col1 + col2 + - col0 AS col2 FROM tab0
----
-131
-2829
-7469

query I rowsort
SELECT - - 80 * col0 * - col0 + + ( - cor0.col0 * - cor0.col1 ) FROM tab1 AS cor0
----
-327040
-510960
-642

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

query I rowsort
SELECT ALL + ( col1 ) * col1 + 60 FROM tab0 cor0
----
7456
8341
9469

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1460
SELECT DISTINCT + 3 + + col1 DIV - col1 FROM tab0 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-1460
SELECT DISTINCT + 3 + + col1 / - col1 FROM tab0 AS cor0
----
2

query I rowsort
SELECT + 90 * + col0 AS col2 FROM tab2 cor0
----
630
7020
7110

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

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

skipif mysql # not compatible
query I rowsort label-1463
SELECT ALL + col0 / - col0 + CAST ( NULL AS INTEGER ) / 6 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - 82 * col2 * col0 AS col0 FROM tab0 AS cor0
----
-2870
-598436
-64944

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

query I rowsort
SELECT + col2 + col2 * cor0.col1 * - col2 AS col0 FROM tab1 cor0
----
-119712
-32433
-75762

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1468
SELECT 60 * col0 + + col0 DIV + ( - col2 ) AS col2 FROM tab1
----
180
3839
4800

skipif mysql # not compatible
query I rowsort label-1468
SELECT 60 * col0 + + col0 / + ( - col2 ) AS col2 FROM tab1
----
180
3839
4800

query I rowsort
SELECT DISTINCT - col0 - + 88 * col2 AS col2 FROM tab1
----
-4755
-5080
-8528

query I rowsort
SELECT DISTINCT + col0 - 86 * col2 FROM tab1
----
-4641
-4838
-8176

query I rowsort
SELECT - 21 * + col0 AS col2 FROM tab2 AS cor0
----
-147
-1638
-1659

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

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

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

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

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

query I rowsort
SELECT ALL - cor0.col0 + ( 50 ) FROM tab1 AS cor0
----
-14
-30
47

query I rowsort
SELECT ALL + cor0.col0 + - col2 * + 18 FROM tab0 AS cor0
----
-1387
-570
17

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

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

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

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

query I rowsort
SELECT DISTINCT + col2 * 17 + cor0.col1 FROM tab2 AS cor0
----
490
501
663

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

query I rowsort
SELECT col1 * - 58 + + col0 * 26 AS col1 FROM tab1 AS cor0
----
-1430
1084
1326

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

query I rowsort
SELECT + 27 + + col1 FROM tab2 cor0
----
44
58
86

onlyif mysql # use DIV operator for integer division
query I rowsort label-1485
SELECT - col0 - - col0 DIV col0 AS col1 FROM tab2 AS cor0
----
-6
-77
-78

skipif mysql # not compatible
query I rowsort label-1485
SELECT - col0 - - col0 / col0 AS col1 FROM tab2 AS cor0
----
-6
-77
-78

query I rowsort
SELECT DISTINCT + col0 * - 86 AS col0 FROM tab2 AS cor0
----
-602
-6708
-6794

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1489
SELECT ALL - col2 + + col2 / col0 AS col2 FROM tab2 AS cor0
----
-24
-26
-38

query I rowsort
SELECT ALL - - 82 + - col2 * - col0 FROM tab0 AS cor0
----
117
7380
874

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1492
SELECT DISTINCT - col1 + - col1 DIV col1 AS col1 FROM tab1 AS cor0
----
-11
-14
-27

skipif mysql # not compatible
query I rowsort label-1492
SELECT DISTINCT - col1 + - col1 / col1 AS col1 FROM tab1 AS cor0
----
-11
-14
-27

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1496
SELECT + col0 + col0 DIV - col1 FROM tab1 cor0
----
3
58
74

skipif mysql # not compatible
query I rowsort label-1496
SELECT + col0 + col0 / - col1 FROM tab1 cor0
----
3
58
74

query I rowsort
SELECT DISTINCT + + 31 + - col2 AS col1 FROM tab2 AS cor0
----
-7
4
5

query I rowsort
SELECT ALL - ( col0 ) * + col2 + col1 * col1 AS col0 FROM tab1 AS cor0
----
-3548
-7511
514

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1501
SELECT + + 64 DIV + col2 + + col2 FROM tab1 cor0
----
55
58
96

skipif mysql # not compatible
query I rowsort label-1501
SELECT + + 64 / + col2 + + col2 FROM tab1 cor0
----
55
58
96

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

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

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

query I rowsort
SELECT 92 * - cor0.col2 + cor0.col0 AS col0 FROM tab1 AS cor0
----
-4965
-5180
-8752

query I rowsort
SELECT - + ( cor0.col0 ) * - col0 - col1 AS col1 FROM tab0 AS cor0
----
1128
490
7830

query I rowsort
SELECT DISTINCT - 39 * col0 + col2 AS col2 FROM tab2 AS cor0
----
-246
-3016
-3043

query I rowsort
SELECT ALL col2 - + 24 AS col0 FROM tab1
----
30
33
72

query I rowsort
SELECT ALL - col2 + - ( - col0 * + col2 + - col0 ) AS col0 FROM tab1 AS cor0
----
111
3655
7664

query I rowsort
SELECT + 22 + col1 * col0 AS col0 FROM tab0 AS cor0
----
2086
3417
8121

query I rowsort
SELECT DISTINCT + - col0 * 67 FROM tab1 AS cor0
----
-201
-4288
-5360

onlyif mysql # use DIV operator for integer division
query I rowsort label-1512
SELECT ALL col0 DIV cor0.col1 + col0 + col1 * - col1 FROM tab1 AS cor0
----
-30
-673
-83

skipif mysql # not compatible
query I rowsort label-1512
SELECT ALL col0 / cor0.col1 + col0 + col1 * - col1 FROM tab1 AS cor0
----
-30
-673
-83

query I rowsort
SELECT ALL - col1 - - 18 * + col0 * - col0 AS col0 FROM tab2
----
-109571
-112355
-913

query I rowsort
SELECT DISTINCT 54 + col0 AS col0 FROM tab1
----
118
134
57

query I rowsort
SELECT 64 + - 97 AS col1 FROM tab0
----
-33
-33
-33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + 14 col0 FROM tab1
----
110
68
71

onlyif mysql # use DIV operator for integer division
query I rowsort label-1517
SELECT ALL 79 DIV + col0 + - col2 FROM tab1
----
-28
-56
-96

skipif mysql # not compatible
query I rowsort label-1517
SELECT ALL 79 / + col0 + - col2 FROM tab1
----
-28
-56
-96

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

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

query I rowsort
SELECT col1 * + 28 + + col2 AS col1 FROM tab2 AS cor0
----
1678
514
895

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

skipif mysql # not compatible
query I rowsort label-1521
SELECT + CAST ( + col1 AS INTEGER ) + col2 * col1 * - col2 + - col1 * col1 FROM tab1 AS cor0
----
-119964
-32580
-76466

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 + + cor0.col1 col1 FROM tab0 AS cor0
----
53
9
96

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

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

query I rowsort
SELECT DISTINCT 31 + + 77 * col1 AS col1 FROM tab0 AS cor0
----
6653
7038
7500

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

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

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

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

query III rowsort
SELECT * FROM tab1 WHERE ( col0 ) < - col0 + + col2
----
3
26
54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - col2 + - tab0.col1 * col1 col0 FROM tab0
----
-4558
-819
-9312

query I rowsort
SELECT ALL + col0 + col0 AS col2 FROM tab0 WHERE NOT col0 NOT BETWEEN ( col1 + col2 ) AND NULL
----

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

query I rowsort
SELECT + col2 * col2 + col0 * - col1 FROM tab2 AS cor0
----
-3926
101
512

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

query I rowsort
SELECT col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL col2 * - tab2.col2 * - col0 AS col1 FROM tab2
----
114076
5103
52728

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

query I rowsort
SELECT ALL + col2 * cor0.col0 * + col1 + col2 * cor0.col0 FROM tab1 AS cor0
----
107520
40128
4374

onlyif mysql # use DIV operator for integer division
query I rowsort label-1539
SELECT - col0 DIV - col1 - cor0.col0 FROM tab2 AS cor0
----
-7
-75
-77

skipif mysql # not compatible
query I rowsort label-1539
SELECT - col0 / - col1 - cor0.col0 FROM tab2 AS cor0
----
-7
-75
-77

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

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

query I rowsort
SELECT + - col1 + col2 * col2 * + cor0.col1 FROM tab2 AS cor0
----
22568
24531
39825

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 * - col2 col0 FROM tab0 AS cor0
----
-1
-1089
-6724

onlyif mysql # use DIV operator for integer division
query I rowsort label-1543
SELECT DISTINCT col2 * - col2 + + col2 DIV + col1 col0 FROM tab1 AS cor0
----
-2914
-3244
-9209

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1543
SELECT DISTINCT col2 * - col2 + + col2 / + col1 col0 FROM tab1 AS cor0
----
-2914
-3244
-9209

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1545
SELECT DISTINCT col2 DIV cor0.col2 + - cor0.col1 * col1 DIV + cor0.col1 FROM tab1 AS cor0
----
-12
-25
-9

skipif mysql # not compatible
query I rowsort label-1545
SELECT DISTINCT col2 / cor0.col2 + - cor0.col1 * col1 / + cor0.col1 FROM tab1 AS cor0
----
-12
-25
-9

onlyif mysql # use DIV operator for integer division
query I rowsort label-1546
SELECT ALL - col1 * - col1 + cor0.col0 DIV col0 AS col0 FROM tab0 AS cor0
----
7397
8282
9410

skipif mysql # not compatible
query I rowsort label-1546
SELECT ALL - col1 * - col1 + cor0.col0 / col0 AS col0 FROM tab0 AS cor0
----
7397
8282
9410

query I rowsort
SELECT DISTINCT col2 - tab2.col0 AS col0 FROM tab2
----
-41
-52
20

query I rowsort
SELECT col2 + col2 + + col1 * col0 * + col2 FROM tab0
----
3397
664282
68178

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

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

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

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

query I rowsort
SELECT DISTINCT - col1 * col1 - col1 AS col1 FROM tab1
----
-110
-182
-702

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

query I rowsort
SELECT - + col2 * 93 - + col0 * col2 AS col2 FROM tab0 AS cor0
----
-128
-14924
-3861

query IIIIII rowsort
SELECT * FROM tab1, tab2 AS cor0 WHERE NOT NULL <= ( NULL )
----

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

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

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

query I rowsort
SELECT DISTINCT + col0 + + 36 FROM tab0 AS cor0
----
125
60
71

onlyif mysql # use DIV operator for integer division
query I rowsort label-1559
SELECT ALL + col0 + + 36 DIV + cor0.col0 FROM tab2 cor0
----
12
78
79

skipif mysql # not compatible
query I rowsort label-1559
SELECT ALL + col0 + + 36 / + cor0.col0 FROM tab2 cor0
----
12
78
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab1.col2 * + 75 col2 FROM tab1, tab1 AS cor0
----
9 values hashing to d3c37d9bea3d7cc635929b3854990329

query I rowsort
SELECT tab1.col2 * col0 * + 77 FROM tab1
----
12474
280896
591360

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1563
SELECT col2 * CAST( 16 AS SIGNED ) * - col0 AS col1 FROM tab1
----
-122880
-2592
-58368

skipif mysql # not compatible
query I rowsort label-1563
SELECT col2 * CAST ( 16 AS INTEGER ) * - col0 AS col1 FROM tab1
----
-122880
-2592
-58368

query I rowsort
SELECT ALL + col0 * col2 + 98 * + tab2.col0 AS col1 FROM tab2
----
10744
875
9672

query I rowsort
SELECT + col1 * 31 * 87 FROM tab1
----
26970
35061
70122

query I rowsort
SELECT - 93 FROM tab2, tab1 AS cor0
----
9 values hashing to 38f445d95788c7dc754ff688a62df03b

onlyif mysql # use DIV operator for integer division
query I rowsort label-1567
SELECT ALL col2 * col2 DIV - col1 FROM tab1
----
-112
-324
-708

skipif mysql # not compatible
query I rowsort label-1567
SELECT ALL col2 * col2 / - col1 FROM tab1
----
-112
-324
-708

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + 29 * + col1 col0 FROM tab1
----
280
364
728

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

query I rowsort
SELECT ALL 56 * - col2 FROM tab0
----
-1848
-4592
-56

query I rowsort
SELECT + 88 * - cor0.col2 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 94da3a66e1ae99e21bf45b5e82ec6036

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

query I rowsort
SELECT ALL + 63 * + tab1.col0 - ( + col2 ) AS col1 FROM tab1
----
135
3975
4944

query I rowsort
SELECT + col2 * + col0 * ( col0 ) - cor0.col1 FROM tab1 cor0
----
233462
460
614387

query I rowsort
SELECT + 22 - col0 AS col2 FROM tab2
----
-56
-57
15

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

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

query I rowsort
SELECT - col2 * + col2 + 59 * - col1 FROM tab0
----
-12093
-5724
-6163

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 * - col2 col0 FROM tab0 AS cor0
----
1
1089
6724

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1579
SELECT + 20 - + col2 * CAST( col0 AS SIGNED ) AS col0 FROM tab0
----
-15
-7278
-772

skipif mysql # not compatible
query I rowsort label-1579
SELECT + 20 - + col2 * CAST ( col0 AS INTEGER ) AS col0 FROM tab0
----
-15
-7278
-772

query I rowsort
SELECT + 37 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to c023509f63faa044d654943e6df55ca2

query I rowsort
SELECT DISTINCT - col0 * col1 * col1 + col0 AS col2 FROM tab1 AS cor0
----
-13440
-2025
-6336

query I rowsort
SELECT - col1 * 99 - 82 AS col1 FROM tab1 AS cor0
----
-1072
-1369
-2656

query I rowsort
SELECT ALL + col2 + + 59 + 2 AS col0 FROM tab0 AS cor0
----
143
62
94

query I rowsort
SELECT DISTINCT + col0 - + ( 17 ) AS col1 FROM tab0 AS cor0
----
18
7
72

query I rowsort
SELECT DISTINCT + col1 * ( - col1 ) + col0 FROM tab1
----
-36
-673
-89

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

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

query I rowsort
SELECT DISTINCT - col0 * ( + 97 ) + col2 + - col2 AS col1 FROM tab0 AS cor0
----
-2328
-3395
-8633

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

query I rowsort
SELECT col2 - + col0 * 71 AS col0 FROM tab0 AS cor0
----
-1671
-2484
-6237

onlyif mysql # use DIV operator for integer division
query I rowsort label-1591
SELECT DISTINCT - col2 DIV col1 + col2 FROM tab1 AS cor0
----
52
89

skipif mysql # not compatible
query I rowsort label-1591
SELECT DISTINCT - col2 / col1 + col2 FROM tab1 AS cor0
----
52
89

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

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

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

query I rowsort
SELECT ALL col1 + - 75 FROM tab0 AS cor0
----
11
16
22

onlyif mysql # use DIV operator for integer division
query I rowsort label-1595
SELECT DISTINCT - - col1 + - ( col2 ) DIV col0 + - col2 DIV cor0.col1 AS col1 FROM tab1 AS cor0
----
5
6

skipif mysql # not compatible
query I rowsort label-1595
SELECT DISTINCT - - col1 + - ( col2 ) / col0 + - col2 / cor0.col1 AS col1 FROM tab1 AS cor0
----
5
6

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1597
SELECT + cor0.col2 + - col2 / col1 col2 FROM tab0 AS cor0
----
1
33
82

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

query I rowsort
SELECT col0 * + cor0.col2 + - col0 * - 47 AS col2 FROM tab2 AS cor0
----
518
5694
6715

query I rowsort
SELECT + 8 + - col1 FROM tab1 AS cor0
----
-18
-2
-5

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1601
SELECT DISTINCT - CAST( ( - col0 ) AS SIGNED ) * + 38 + - col0 AS col2 FROM tab1
----
111
2368
2960

skipif mysql # not compatible
query I rowsort label-1601
SELECT DISTINCT - CAST ( ( - col0 ) AS INTEGER ) * + 38 + - col0 AS col2 FROM tab1
----
111
2368
2960

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

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

query I rowsort
SELECT ALL + col1 * 22 + cor0.col0 FROM tab0 AS cor0
----
1916
2091
2169

onlyif mysql # use DIV operator for integer division
query I rowsort label-1605
SELECT ALL - + 85 * col1 DIV col1 + col2 AS col0 FROM tab1 AS cor0
----
-28
-31
11

skipif mysql # not compatible
query I rowsort label-1605
SELECT ALL - + 85 * col1 / col1 + col2 AS col0 FROM tab1 AS cor0
----
-28
-31
11

query I rowsort
SELECT col0 + 73 * col0 AS col1 FROM tab2 AS cor0
----
518
5772
5846

query I rowsort
SELECT DISTINCT - ( 51 ) + cor0.col0 * - 64 AS col0 FROM tab1 AS cor0
----
-243
-4147
-5171

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

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

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

query I rowsort
SELECT + 89 + 7 FROM tab2 AS cor0
----
96
96
96

query I rowsort
SELECT + col1 + col2 * - 45 FROM tab2 cor0
----
-1111
-1184
-1693

query I rowsort
SELECT ALL col2 * 40 + col2 AS col2 FROM tab1
----
2214
2337
3936

query I rowsort
SELECT - 94 FROM tab2, tab0 AS cor0
----
9 values hashing to a95bfa539191d3f72f6548147d7efb9e

query I rowsort
SELECT + 83 * 74 + col2 FROM tab0 cor0
----
6143
6175
6224

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - cor0.col2 ) col2 FROM tab0 AS cor0
----
-1
-33
-82

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

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

query I rowsort
SELECT ALL cor0.col2 + - col0 + 57 FROM tab1 AS cor0
----
108
50
73

query I rowsort
SELECT DISTINCT + col2 + cor0.col0 + 53 AS col2 FROM tab2 cor0
----
157
170
87

query I rowsort
SELECT ALL 27 + - col1 AS col2 FROM tab0 AS cor0
----
-59
-64
-70

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

skipif mysql # not compatible
query I rowsort label-1621
SELECT - 76 * - col2 + CAST ( - col1 + + col2 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
4132
4379
7379

query I rowsort
SELECT - 15 * - col0 * col2 FROM tab1 cor0
----
115200
2430
54720

query I rowsort
SELECT + 39 * - col0 + - 44 FROM tab2 AS cor0
----
-3086
-3125
-317

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 54 + col2 col0 FROM tab1 AS cor0
----
0
3
42

query I rowsort
SELECT DISTINCT + - cor0.col1 * 33 AS col2 FROM tab1 AS cor0
----
-330
-429
-858

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

query I rowsort
SELECT DISTINCT + col1 + ( - 25 ) FROM tab2 AS cor0
----
-8
34
6

query I rowsort
SELECT + col2 * - col2 * 81 FROM tab1 AS cor0
----
-236196
-263169
-746496

query I rowsort
SELECT DISTINCT + col1 * 61 FROM tab0 AS cor0
----
5246
5551
5917

query I rowsort
SELECT ALL + + col2 + cor0.col1 * 39 FROM tab1 AS cor0
----
1068
447
603

query I rowsort
SELECT col0 + - ( + 58 ) * + cor0.col0 FROM tab0 AS cor0
----
-1368
-1995
-5073

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

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

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

query I rowsort
SELECT ALL - + col2 * 86 AS col1 FROM tab0 AS cor0
----
-2838
-7052
-86

query I rowsort
SELECT - 97 * cor0.col0 + - 57 FROM tab1, tab2 AS cor0
----
9 values hashing to 84b4f0bd32d556a125f7cea9dac3aa80

query I rowsort
SELECT ( + ( - col2 ) ) + 3 * - col0 AS col0 FROM tab0 AS cor0
----
-105
-106
-349

onlyif mysql # use DIV operator for integer division
query I rowsort label-1637
SELECT DISTINCT - - ( 90 ) + col1 DIV col2 FROM tab0 AS cor0
----
187
91
92

skipif mysql # not compatible
query I rowsort label-1637
SELECT DISTINCT - - ( 90 ) + col1 / col2 FROM tab0 AS cor0
----
187
91
92

query I rowsort
SELECT DISTINCT - + 65 + - col1 * - col0 * - col0 + + col1 AS col2 FROM tab0 AS cor0
----
-118793
-49515
-720785

query I rowsort
SELECT 19 * - col0 + col1 AS col1 FROM tab1 AS cor0
----
-1206
-1507
-31

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1640
SELECT DISTINCT + ( col2 ) * - col1 + cor0.col2 / col2 col0 FROM tab1 AS cor0
----
-1247
-1403
-569

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

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

query I rowsort
SELECT cor0.col0 * + cor1.col0 FROM tab0 AS cor0 CROSS JOIN tab1, tab0 AS cor1
----
27 values hashing to f7a7d834ef74d0b2fff83e6a8f658dd5

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1646
SELECT - 4 * col1 DIV - 62 - + col1 * cor0.col2 FROM tab2 AS cor0
----
-1531
-645
-835

skipif mysql # not compatible
query I rowsort label-1646
SELECT - 4 * col1 / - 62 - + col1 * cor0.col2 FROM tab2 AS cor0
----
-1531
-645
-835

query I rowsort
SELECT - col2 * - col2 + + col1 * - 23 FROM tab0 AS cor0
----
-2230
-889
4631

query I rowsort
SELECT ALL cor0.col2 * + tab0.col1 FROM tab0, tab0 AS cor0
----
9 values hashing to e5422173e1caaeeb02bbae09b3f4e2fd

query I rowsort
SELECT ALL - col0 * + col0 * col1 AS col0 FROM tab2
----
-106097
-1519
-358956

onlyif mysql # use DIV operator for integer division
query I rowsort label-1650
SELECT + - cor0.col2 DIV 80 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1650
SELECT + - cor0.col2 / 80 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL 26 + 24 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col2 col2 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
26
27
38

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1653
SELECT ALL - col2 * CAST( - col2 AS SIGNED ) + cor0.col0 + 70 AS col1 FROM tab2 AS cor0
----
1593
806
824

skipif mysql # not compatible
query I rowsort label-1653
SELECT ALL - col2 * CAST ( - col2 AS INTEGER ) + cor0.col0 + 70 AS col1 FROM tab2 AS cor0
----
1593
806
824

query I rowsort
SELECT + 73 * + col2 FROM tab2 AS cor0
----
1898
1971
2774

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1655
SELECT ALL + col0 + + CAST( NULL AS SIGNED ) * + cor0.col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1655
SELECT ALL + col0 + + CAST ( NULL AS INTEGER ) * + cor0.col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + + col1 * col1 + + cor0.col1 FROM tab0 AS cor0
----
7482
8372
9506

onlyif mysql # use DIV operator for integer division
query I rowsort label-1657
SELECT DISTINCT + col1 + 96 - cor0.col2 DIV col1 AS col0 FROM tab0 AS cor0
----
182
187
193

skipif mysql # not compatible
query I rowsort label-1657
SELECT DISTINCT + col1 + 96 - cor0.col2 / col1 AS col0 FROM tab0 AS cor0
----
182
187
193

query I rowsort
SELECT + col2 - - 9 * cor0.col1 * + col0 AS col0 FROM tab1 AS cor0
----
5817
756
9456

query I rowsort
SELECT cor0.col2 + 65 * col2 AS col2 FROM tab1 cor0
----
3564
3762
6336

query I rowsort
SELECT DISTINCT + - col1 * ( col1 ) + - col2 * - 4 * col1 - + col1 * + col0 AS col2 FROM tab1 AS cor0
----
1540
3783
4862

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1661
SELECT col2 * col0 + + col0 * col1 / - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1661
SELECT col2 * col0 + + col0 * col1 / - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 * - col0 - 93 FROM tab0 AS cor0
----
-1318
-669
-8014

query I rowsort
SELECT DISTINCT col2 + col0 * + col0 AS col1 FROM tab1 AS cor0
----
4153
63
6496

query I rowsort
SELECT DISTINCT + col0 - ( cor0.col2 + col0 ) * 67 AS col1 FROM tab0 AS cor0
----
-11368
-2377
-3795

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1665
SELECT + + col1 * + CAST( NULL AS SIGNED ) * + col2 + col2 * + 11 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1665
SELECT + + col1 * + CAST ( NULL AS INTEGER ) * + col2 + col2 * + 11 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + cor1.col2 AS col2 FROM tab2, tab2 AS cor0, tab0 cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - ( col2 ) col1 FROM tab1 cor0
----
54
57
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-1668
SELECT + ( 20 ) DIV - col1 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-1668
SELECT + ( 20 ) / - col1 FROM tab2 AS cor0
----
-1
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1669
SELECT DISTINCT - ( col1 + - col0 * + CAST( NULL AS DECIMAL ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-1669
SELECT DISTINCT - ( col1 + - col0 * + CAST ( NULL AS REAL ) ) FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT + ( + col2 ) * 54 + + col2 + + col2 AS col1 FROM tab0 AS cor0
----
1848
4592
56

query I rowsort
SELECT ALL + - col1 * col0 * col2 - col2 FROM tab0 AS cor0
----
-3396
-664200
-68145

onlyif mysql # use DIV operator for integer division
query I rowsort label-1672
SELECT DISTINCT + 56 DIV col2 AS col2 FROM tab1 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-1672
SELECT DISTINCT + 56 / col2 AS col2 FROM tab1 AS cor0
----
0
1

query I rowsort
SELECT ALL + + cor0.col1 * + col2 + - ( - cor0.col2 ) FROM tab1 AS cor0
----
1344
1458
627

query I rowsort
SELECT ALL - 60 - col1 FROM tab0 AS cor0
----
-146
-151
-157

query I rowsort
SELECT ALL col2 + col1 * + ( - col0 ) AS col1 FROM tab0 AS cor0
----
-2031
-3394
-8017

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 15 * col0 * col2 col1 FROM tab2
----
2835
30420
45030

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 * col2 col0 FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT DISTINCT + col2 * col0 + ( - col2 ) FROM tab2 cor0
----
162
2002
2964

query I rowsort
SELECT ALL + 24 * col1 AS col2 FROM tab2 AS cor0
----
1416
408
744

query I rowsort
SELECT DISTINCT + - 64 + col0 * cor0.col1 AS col1 FROM tab1 AS cor0
----
14
576
976

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * + col1 col2 FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT ALL tab0.col0 * col1 * + col2 FROM tab0
----
3395
664118
68112

query I rowsort
SELECT ALL 22 FROM tab2, tab1 cor0, tab0 AS cor1
----
27 values hashing to 7dda382e7c08428abac8600fd696eb3e

query I rowsort
SELECT ALL - + col2 * col2 + 60 * + col2 FROM tab2 AS cor0
----
836
884
891

onlyif mysql # use DIV operator for integer division
query I rowsort label-1685
SELECT + col1 DIV - ( - 95 ) AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1685
SELECT + col1 / - ( - 95 ) AS col1 FROM tab2
----
0
0
0

query I rowsort
SELECT col1 * - 19 FROM tab1
----
-190
-247
-494

query I rowsort
SELECT DISTINCT - tab2.col2 * + tab2.col0 - + ( - tab2.col2 ) AS col1 FROM tab2
----
-162
-2002
-2964

query I rowsort
SELECT + - 46 + + cor0.col0 FROM tab2 AS cor0
----
-39
32
33

query I rowsort
SELECT ALL + 38 * 44 + + cor0.col2 FROM tab1 AS cor0
----
1726
1729
1768

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 47 col0 FROM tab1 AS cor0
----
-47

query I rowsort
SELECT ALL + col0 * col1 * - col2 + 85 AS col1 FROM tab1 AS cor0
----
-36395
-4127
-99755

query I rowsort
SELECT ALL + cor0.col1 + + cor1.col2 * - 41 FROM tab1, tab0 AS cor0, tab0 cor1
----
27 values hashing to acb418c2f38bdcbfa42bbd948dee2a4d

query I rowsort
SELECT ALL - tab0.col2 * 20 FROM tab0, tab1 cor0
----
9 values hashing to 9820f6bb4aa10c3399f9d4e1673d08df

query I rowsort
SELECT ALL + col2 + - ( - 96 ) AS col1 FROM tab2
----
122
123
134

query I rowsort
SELECT - col0 + col0 + col0 * col0 FROM tab1
----
4096
6400
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-1696
SELECT ALL col1 * + col2 DIV - col2 + col1 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1696
SELECT ALL col1 * + col2 / - col2 + col1 AS col1 FROM tab1
----
0
0
0

query I rowsort
SELECT - + 75 + col2 * + col1 AS col1 FROM tab2 AS cor0
----
1459
571
762

query I rowsort
SELECT ALL - - col1 * cor0.col1 - - col1 AS col2 FROM tab1 AS cor0
----
110
182
702

query I rowsort
SELECT ALL col1 * - 45 AS col2 FROM tab2 cor0
----
-1395
-2655
-765

query I rowsort
SELECT DISTINCT - + col0 * + 21 FROM tab1 cor0
----
-1344
-1680
-63

query I rowsort
SELECT - col0 + - 34 FROM tab2 AS cor0
----
-112
-113
-41

query I rowsort
SELECT DISTINCT col2 * col2 * col1 + col2 FROM tab2 AS cor0
----
22626
24586
39910

onlyif mysql # use DIV operator for integer division
query I rowsort label-1703
SELECT DISTINCT - 54 DIV 49 + col1 col1 FROM tab0 AS cor0
----
85
90
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1703
SELECT DISTINCT - 54 / 49 + col1 col1 FROM tab0 AS cor0
----
85
90
96

query I rowsort
SELECT ALL + - 74 + cor0.col1 AS col2 FROM tab1 AS cor0
----
-48
-61
-64

query I rowsort
SELECT DISTINCT 91 + + cor0.col0 AS col2 FROM tab2 AS cor0
----
169
170
98

query I rowsort
SELECT DISTINCT - 25 - + col2 AS col2 FROM tab2
----
-51
-52
-63

query I rowsort
SELECT - 45 AS col2 FROM tab1, tab1 AS cor0, tab2 cor1
----
27 values hashing to 63e2b488a204f83ec8c063dafdfd4371

query I rowsort
SELECT col1 + col2 + + 54 FROM tab1
----
121
134
163

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1709
SELECT col0 + - CAST( NULL AS SIGNED ) + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1709
SELECT col0 + - CAST ( NULL AS INTEGER ) + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1710
SELECT col2 + CAST( ( col0 ) AS SIGNED ) * col0 FROM tab1 AS cor0
----
4153
63
6496

skipif mysql # not compatible
query I rowsort label-1710
SELECT col2 + CAST ( ( col0 ) AS INTEGER ) * col0 FROM tab1 AS cor0
----
4153
63
6496

query I rowsort
SELECT + col0 * cor0.col2 + + col1 * - col0 + 58 AS col1 FROM tab2 AS cor0
----
-2516
1717
30

query I rowsort
SELECT ALL 26 * + col2 * - 82 AS col0 FROM tab2
----
-55432
-57564
-81016

query I rowsort
SELECT ALL + + col2 * + cor0.col1 AS col1 FROM tab0 cor0
----
2838
7462
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab2.col0 + + col1 col2 FROM tab2
----
137
38
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-1715
SELECT ALL + tab0.col1 DIV col2 + col2 FROM tab0
----
35
83
98

skipif mysql # not compatible
query I rowsort label-1715
SELECT ALL + tab0.col1 / col2 + col2 FROM tab0
----
35
83
98

query I rowsort
SELECT ALL - 14 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to d321461994ba49c3a70fa6373032fc94

query I rowsort
SELECT DISTINCT - col1 + + col0 * col1 AS col1 FROM tab0 cor0
----
1978
3298
8008

query I rowsort
SELECT ALL col2 + + cor0.col0 * col2 + cor0.col1 AS col1 FROM tab1 AS cor0
----
242
3715
7789

onlyif mysql # use DIV operator for integer division
query I rowsort label-1719
SELECT DISTINCT + col1 DIV - col1 + - col0 * - col2 + col1 * - 32 AS col0 FROM tab0 AS cor0
----
-1961
-3070
4385

skipif mysql # not compatible
query I rowsort label-1719
SELECT DISTINCT + col1 / - col1 + - col0 * - col2 + col1 * - 32 AS col0 FROM tab0 AS cor0
----
-1961
-3070
4385

query I rowsort
SELECT col2 + - col1 * + col0 AS col2 FROM tab1 cor0
----
-24
-583
-944

query I rowsort
SELECT DISTINCT - col2 * + 58 FROM tab2 cor0
----
-1508
-1566
-2204

query I rowsort
SELECT ALL + + cor0.col2 + 20 FROM tab1 AS cor0
----
116
74
77

query I rowsort
SELECT col0 * - 69 + - col1 FROM tab0 AS cor0
----
-1742
-2512
-6232

query I rowsort
SELECT - cor0.col1 + + 12 FROM tab1, tab1 AS cor0 CROSS JOIN tab2
----
27 values hashing to 9762fc431e52b80067c12a4f55e73f35

query I rowsort
SELECT - col2 * ( col0 ) * + cor0.col2 AS col1 FROM tab2 AS cor0
----
-114076
-5103
-52728

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 78 + - 40 * col1 col1 FROM tab1 AS cor0
----
-322
-442
-962

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1727
SELECT DISTINCT - - col1 * ( col1 * + CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1727
SELECT DISTINCT - - col1 * ( col1 * + CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL + ( - 70 ) AS col0 FROM tab2 cor0
----
-70
-70
-70

query I rowsort
SELECT DISTINCT 84 * 99 AS col1 FROM tab2
----
8316

query I rowsort
SELECT ALL col1 + 78 * + cor0.col1 AS col1 FROM tab1 AS cor0
----
1027
2054
790

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 10 col1 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
10

query I rowsort
SELECT ALL - 5 + cor0.col2 AS col2 FROM tab0 AS cor0
----
-4
28
77

query I rowsort
SELECT ALL 94 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to a4d239626cf0546ac1b2f57bb8407089

query I rowsort
SELECT DISTINCT + ( + col1 ) + ( col0 ) * - col1 AS col0 FROM tab0 AS cor0
----
-1978
-3298
-8008

query I rowsort
SELECT ALL col1 * - 13 AS col1 FROM tab2
----
-221
-403
-767

query I rowsort
SELECT - 51 * col2 * + 29 FROM tab0 AS cor0
----
-121278
-1479
-48807

query I rowsort
SELECT ALL - 76 + - col1 AS col0 FROM tab2 AS cor0
----
-107
-135
-93

query I rowsort
SELECT DISTINCT + 79 * + tab1.col1 FROM tab1
----
1027
2054
790

onlyif mysql # use DIV operator for integer division
query I rowsort label-1739
SELECT - - col0 * col0 DIV - 69 AS col0 FROM tab0 AS cor0
----
-114
-17
-8

skipif mysql # not compatible
query I rowsort label-1739
SELECT - - col0 * col0 / - 69 AS col0 FROM tab0 AS cor0
----
-114
-17
-8

query I rowsort
SELECT - + 48 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 31c94943c073954e4ca20b170ab61f8c

query I rowsort
SELECT - col0 + + ( col0 * col1 ) + col0 FROM tab0 AS cor0
----
2064
3395
8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-1742
SELECT - + 98 DIV + col0 FROM tab2 AS cor0
----
-1
-1
-14

skipif mysql # not compatible
query I rowsort label-1742
SELECT - + 98 / + col0 FROM tab2 AS cor0
----
-1
-1
-14

query I rowsort
SELECT col1 * col1 + - col0 * col0 + col1 AS col1 FROM tab0 AS cor0
----
451
6906
8281

query I rowsort
SELECT col2 * col0 + - col2 AS col0 FROM tab2 AS cor0
----
162
2002
2964

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + CAST ( 18 AS REAL ) FROM tab0, tab2 AS cor0, tab1 AS cor1, tab2 AS cor2
----
18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + col2 * - cor0.col1 col0 FROM tab2 AS cor0
----
-1456
-567
-830

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 37 col1 FROM tab0
----
37

query I rowsort
SELECT DISTINCT - 71 AS col1 FROM tab0
----
-71

query I rowsort
SELECT DISTINCT + col1 * - 4 FROM tab0
----
-344
-364
-388

query I rowsort
SELECT ALL - 8 * 15 + + col2 FROM tab2 AS cor0
----
-82
-93
-94

query I rowsort
SELECT 83 + col0 FROM tab2 AS cor0
----
161
162
90

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1752
SELECT CAST( col2 AS SIGNED ) * col0 AS col0 FROM tab1
----
162
3648
7680

skipif mysql # not compatible
query I rowsort label-1752
SELECT CAST ( col2 AS INTEGER ) * col0 AS col0 FROM tab1
----
162
3648
7680

query I rowsort
SELECT - col1 * 23 * + col0 FROM tab1
----
-14720
-1794
-23920

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1754
SELECT - CAST( NULL AS SIGNED ) + + 9 FROM tab0, tab1 cor0, tab1, tab1 AS cor1
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

skipif mysql # not compatible
query I rowsort label-1754
SELECT - CAST ( NULL AS INTEGER ) + + 9 FROM tab0, tab1 cor0, tab1, tab1 AS cor1
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

query I rowsort
SELECT - col0 + - cor0.col1 * col0 AS col2 FROM tab1 AS cor0
----
-1120
-704
-81

query I rowsort
SELECT + col0 + ( + 63 ) + cor0.col2 AS col1 FROM tab0 AS cor0
----
120
234
99

query I rowsort
SELECT col2 - + col2 * col2 FROM tab2
----
-1406
-650
-702

query I rowsort
SELECT col0 * col1 + - col1 AS col0 FROM tab1
----
1027
52
630

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1759
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col2 FROM tab2, tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1759
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col2 FROM tab2, tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL + 49 FROM tab0, tab2 AS cor0
----
9 values hashing to cb40783c0fff72e8802cdf0682e7cb55

query I rowsort
SELECT col2 - col2 * col1 AS col1 FROM tab0
----
-2805
-7380
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-1762
SELECT col2 - + 28 DIV - col0 FROM tab0
----
1
34
82

skipif mysql # not compatible
query I rowsort label-1762
SELECT col2 - + 28 / - col0 FROM tab0
----
1
34
82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1763
SELECT ALL - - CAST( NULL AS SIGNED ) * 62 + col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1763
SELECT ALL - - CAST ( NULL AS INTEGER ) * 62 + col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 50 + col1 FROM tab0 AS cor0
----
136
141
147

query I rowsort
SELECT ALL + ( + 28 ) FROM tab2 AS cor0
----
28
28
28

query I rowsort
SELECT ALL ( - col1 ) + col1 FROM tab2 cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-1767
SELECT DISTINCT - - cor0.col1 DIV col1 AS col2 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-1767
SELECT DISTINCT - - cor0.col1 / col1 AS col2 FROM tab2 AS cor0
----
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1768
SELECT - col2 * cor0.col2 + CAST( NULL AS SIGNED ) * col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1768
SELECT - col2 * cor0.col2 + CAST ( NULL AS INTEGER ) * col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-1769
SELECT col0 * cor0.col1 + - col0 DIV 11 AS col2 FROM tab2 AS cor0
----
1336
217
4595

skipif mysql # not compatible
query I rowsort label-1769
SELECT col0 * cor0.col1 + - col0 / 11 AS col2 FROM tab2 AS cor0
----
1336
217
4595

query I rowsort
SELECT + col1 * col1 - col0 AS col2 FROM tab1 AS cor0
----
36
673
89

query IIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 AS cor0 WHERE NULL <> NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-1772
SELECT - col2 * col1 DIV + ( - col1 ) + col2 col1 FROM tab0 AS cor0
----
164
2
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1772
SELECT - col2 * col1 / + ( - col1 ) + col2 col1 FROM tab0 AS cor0
----
164
2
66

query I rowsort
SELECT DISTINCT col0 + col0 * + 57 FROM tab2 AS cor0
----
406
4524
4582

query I rowsort
SELECT + cor0.col1 * - 36 + col1 AS col0 FROM tab0 AS cor0
----
-3010
-3185
-3395

query I rowsort
SELECT ALL - + col1 + + col2 - + cor0.col0 FROM tab0 AS cor0
----
-131
-77
-98

query I rowsort
SELECT DISTINCT col2 * 46 FROM tab2 cor0
----
1196
1242
1748

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2 AS cor0, tab2 cor1, tab1, tab0 cor2
----
3645 values hashing to 825c5bff5308aeedb3a0a28713da0683

query I rowsort
SELECT ALL - col1 * - 34 FROM tab0 AS cor0
----
2924
3094
3298

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 * 24 + 84 col1 FROM tab2 AS cor0
----
-1788
-1812
-84

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1780
SELECT ALL - + col2 + + CAST( NULL AS DECIMAL ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1780
SELECT ALL - + col2 + + CAST ( NULL AS REAL ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-1781
SELECT + col0 DIV - CAST( 41 AS SIGNED ) + - col2 + + col0 FROM tab0 cor0
----
-9
34
5

skipif mysql # not compatible
query I rowsort label-1781
SELECT + col0 / - CAST ( 41 AS INTEGER ) + - col2 + + col0 FROM tab0 cor0
----
-9
34
5

query I rowsort
SELECT DISTINCT col2 * - col1 * - tab0.col2 FROM tab0
----
611884
93654
97

query I rowsort
SELECT - + col2 * - col0 + col1 FROM tab2 cor0
----
2087
220
3019

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1784
SELECT - col2 * - CAST( - col0 AS SIGNED ) + col1 + - cor0.col0 AS col2 FROM tab1 AS cor0
----
-139
-3702
-7747

skipif mysql # not compatible
query I rowsort label-1784
SELECT - col2 * - CAST ( - col0 AS INTEGER ) + col1 + - cor0.col0 AS col2 FROM tab1 AS cor0
----
-139
-3702
-7747

query I rowsort
SELECT DISTINCT + col1 + - 98 + + col2 * col1 AS col0 FROM tab2 AS cor0
----
1495
565
770

query I rowsort
SELECT ( 32 ) AS col2 FROM tab2, tab1 AS cor0, tab1 cor1
----
27 values hashing to cf4f01ac97eb83445b1721f3ae28961a

onlyif mysql # use DIV operator for integer division
query I rowsort label-1787
SELECT ALL col2 DIV ( col2 ) AS col0 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1787
SELECT ALL col2 / ( col2 ) AS col0 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT ALL col2 * 54 FROM tab2 AS cor0
----
1404
1458
2052

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1789
SELECT ALL + cor0.col0 * CAST( NULL AS SIGNED ) + - col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1789
SELECT ALL + cor0.col0 * CAST ( NULL AS INTEGER ) + - col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - - ( - col1 ) * - col1 FROM tab0 AS cor0
----
7396
8281
9409

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1791
SELECT DISTINCT + CAST( NULL AS SIGNED ) * 14 - - col0 * ( 62 ) AS col1 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1791
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * 14 - - col0 * ( 62 ) AS col1 FROM tab0 cor0
----
NULL

query I rowsort
SELECT ALL 23 + col0 * col0 FROM tab0 AS cor0
----
1248
599
7944

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1793
SELECT CAST( NULL AS SIGNED ) * + col0 * - col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1793
SELECT CAST ( NULL AS INTEGER ) * + col0 * - col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 + ( col2 ) FROM tab1
----
121
176
57

query I rowsort
SELECT ALL 42 + col2 * col1 * + 88 AS col2 FROM tab2 AS cor0
----
135034
56890
73698

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1796
SELECT ALL + + CAST( ( col0 ) AS SIGNED ) + + 9 FROM tab0 AS cor0
----
33
44
98

skipif mysql # not compatible
query I rowsort label-1796
SELECT ALL + + CAST ( ( col0 ) AS INTEGER ) + + 9 FROM tab0 AS cor0
----
33
44
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 25 * - col0 col2 FROM tab2 cor0
----
-175
-1950
-1975

onlyif mysql # use DIV operator for integer division
query I rowsort label-1798
SELECT DISTINCT - col1 DIV + 98 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-1798
SELECT DISTINCT - col1 / + 98 FROM tab0 cor0
----
0

query I rowsort
SELECT DISTINCT 13 - - col1 FROM tab1 AS cor0
----
23
26
39

query I rowsort
SELECT DISTINCT - cor0.col1 * ( + col0 ) FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT + - cor0.col0 * - cor0.col2 + + col1 FROM tab0 AS cor0
----
132
7389
878

query I rowsort
SELECT ALL - + cor0.col1 * - col2 + col2 FROM tab2 AS cor0
----
1560
684
864

query I rowsort
SELECT + 38 * ( col2 ) AS col2 FROM tab0 AS cor0
----
1254
3116
38

query I rowsort
SELECT ALL col2 * - 87 + - col1 + - col0 FROM tab2
----
-2387
-2399
-3402

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1805
SELECT CAST( - cor0.col2 + + cor0.col1 AS SIGNED ) * + 28 FROM tab0, tab2 AS cor0
----
9 values hashing to 94ee84d77700a45f1fbc103ef3ab39b1

skipif mysql # not compatible
query I rowsort label-1805
SELECT CAST ( - cor0.col2 + + cor0.col1 AS INTEGER ) * + 28 FROM tab0, tab2 AS cor0
----
9 values hashing to 94ee84d77700a45f1fbc103ef3ab39b1

query I rowsort
SELECT ALL col0 * 33 + - tab0.col0 AS col1 FROM tab0
----
1120
2848
768

query I rowsort
SELECT DISTINCT 85 * 22 AS col1 FROM tab0, tab1 AS cor0
----
1870

query I rowsort
SELECT ALL col0 + - 80 AS col2 FROM tab2
----
-1
-2
-73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 59 col0 FROM tab2, tab2 AS cor0
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc

onlyif mysql # use DIV operator for integer division
query I rowsort label-1810
SELECT ALL col0 + 4 + + col0 DIV + col2 AS col2 FROM tab0
----
28
74
94

skipif mysql # not compatible
query I rowsort label-1810
SELECT ALL col0 + 4 + + col0 / + col2 AS col2 FROM tab0
----
28
74
94

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1811
SELECT + 84 - + col0 * - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1811
SELECT + 84 - + col0 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * - col1 col2 FROM tab1 AS cor0
----
-1248
-1404
-570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - col1 ) + + col1 col1 FROM tab1 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - col2 col0 FROM tab1 AS cor0
----
-2916
-3249
-9216

query I rowsort
SELECT + 54 - - col0 * - col2 AS col0 FROM tab2 AS cor0
----
-135
-1974
-2948

query I rowsort
SELECT - col2 - + cor0.col2 FROM tab0 AS cor0
----
-164
-2
-66

onlyif mysql # use DIV operator for integer division
query I rowsort label-1817
SELECT ALL col0 DIV col0 col0 FROM tab2 cor0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1817
SELECT ALL col0 / col0 col0 FROM tab2 cor0
----
1
1
1

query I rowsort
SELECT DISTINCT - + 99 FROM tab2 AS cor0
----
-99

query I rowsort
SELECT - col1 * - col0 - col1 AS col2 FROM tab1 cor0
----
1027
52
630

query I rowsort
SELECT + col1 + col2 * col2 AS col1 FROM tab2 AS cor0
----
1461
735
760

query I rowsort
SELECT + col2 * cor0.col2 + col0 + - ( - col2 + col0 ) * + cor0.col0 AS col1 FROM tab2 AS cor0
----
-1716
-3302
876

query I rowsort
SELECT DISTINCT - col0 * col0 + + cor0.col1 FROM tab1 AS cor0
----
-4086
-6387
17

query I rowsort
SELECT DISTINCT - 70 + col0 AS col2 FROM tab2 cor0
----
-63
8
9

query I rowsort
SELECT ALL - ( - col1 ) + col2 AS col2 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT + col2 * + 43 + col2 * - col1 * - col0 + - tab0.col0 FROM tab0
----
3403
667555
69507

query I rowsort
SELECT + tab1.col1 * col1 + - col1 FROM tab1
----
156
650
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( col0 ) col0 FROM tab0
----
24
35
89

query I rowsort
SELECT + col0 * + cor0.col1 + col0 * cor0.col1 FROM tab1 AS cor0
----
1280
156
2080

query I rowsort
SELECT + - col1 * 66 + - col1 * - col1 * col1 FROM tab0 AS cor0
----
630380
747565
906271

onlyif mysql # use DIV operator for integer division
query I rowsort label-1830
SELECT col1 DIV - 99 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1830
SELECT col1 / - 99 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-1831
SELECT ALL col2 + - col2 * ( tab2.col0 ) DIV + tab2.col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1831
SELECT ALL col2 + - col2 * ( tab2.col0 ) / + tab2.col0 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL + col1 + + col1 * + cor0.col2 * col0 FROM tab1 AS cor0
----
36490
4238
99853

query I rowsort
SELECT DISTINCT - col1 * - col2 + + 12 AS col1 FROM tab2 AS cor0
----
1546
658
849

onlyif mysql # use DIV operator for integer division
query I rowsort label-1834
SELECT ALL - tab2.col2 DIV + col1 + tab2.col2 FROM tab2
----
26
27
36

skipif mysql # not compatible
query I rowsort label-1834
SELECT ALL - tab2.col2 / + col1 + tab2.col2 FROM tab2
----
26
27
36

query I rowsort
SELECT ALL + col0 + - col0 * - col2 FROM tab2
----
196
2106
3081

onlyif mysql # use DIV operator for integer division
query I rowsort label-1836
SELECT DISTINCT - col0 + - col2 DIV col2 FROM tab0 AS cor0
----
-25
-36
-90

skipif mysql # not compatible
query I rowsort label-1836
SELECT DISTINCT - col0 + - col2 / col2 FROM tab0 AS cor0
----
-25
-36
-90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * col0 + + col2 col2 FROM tab1 cor0
----
216
3705
7776

query I rowsort
SELECT ALL col0 + 62 FROM tab1 cor0
----
126
142
65

query I rowsort
SELECT ALL col2 + + 52 FROM tab0 AS cor0
----
134
53
85

query I rowsort
SELECT ALL + col1 * 64 FROM tab2 AS cor0
----
1088
1984
3776

query I rowsort
SELECT ALL - col2 + col1 * + col2 FROM tab2 AS cor0
----
1508
608
810

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - cor0.col1 col0 FROM tab2 AS cor0
----
-289
-3481
-961

query I rowsort
SELECT - + col2 + - cor0.col0 * col1 * + cor0.col0 AS col2 FROM tab2 AS cor0
----
-106135
-1546
-358982

query I rowsort
SELECT - col0 * + col0 + - col1 FROM tab0
----
-1322
-662
-8012

query I rowsort
SELECT - col1 - + col0 FROM tab0 cor0
----
-110
-132
-180

query I rowsort
SELECT ALL - ( + col2 ) * col1 + + col0 AS col1 FROM tab1 AS cor0
----
-1168
-1401
-506

onlyif mysql # use DIV operator for integer division
query I rowsort label-1847
SELECT + col1 - - col1 DIV cor0.col1 AS col2 FROM tab1 AS cor0
----
11
14
27

skipif mysql # not compatible
query I rowsort label-1847
SELECT + col1 - - col1 / cor0.col1 AS col2 FROM tab1 AS cor0
----
11
14
27

onlyif mysql # use DIV operator for integer division
query I rowsort label-1848
SELECT DISTINCT 26 DIV - col0 - col0 * + col0 FROM tab0 AS cor0
----
-1225
-577
-7921

skipif mysql # not compatible
query I rowsort label-1848
SELECT DISTINCT 26 / - col0 - col0 * + col0 FROM tab0 AS cor0
----
-1225
-577
-7921

onlyif mysql # use DIV operator for integer division
query I rowsort label-1849
SELECT col1 DIV + col1 + - col0 AS col1 FROM tab1 AS cor0
----
-2
-63
-79

skipif mysql # not compatible
query I rowsort label-1849
SELECT col1 / + col1 + - col0 AS col1 FROM tab1 AS cor0
----
-2
-63
-79

query I rowsort
SELECT - + col0 * + col0 + + col2 AS col1 FROM tab0 AS cor0
----
-1224
-543
-7839

query I rowsort
SELECT - col0 * col2 * + col1 + - col2 * - col2 AS col2 FROM tab1 AS cor0
----
-1296
-33231
-90624

onlyif mysql # use DIV operator for integer division
query I rowsort label-1852
SELECT 69 * tab1.col2 DIV col0 FROM tab1
----
1242
61
82

skipif mysql # not compatible
query I rowsort label-1852
SELECT 69 * tab1.col2 / col0 FROM tab1
----
1242
61
82

query I rowsort
SELECT - + cor0.col0 * cor0.col2 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT - cor0.col2 + cor0.col0 AS col0 FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT DISTINCT - 24 * cor0.col1 AS col1 FROM tab1 cor0
----
-240
-312
-624

query I rowsort
SELECT - cor0.col0 * col2 + - cor0.col1 + + col2 * + cor0.col1 FROM tab0 AS cor0
----
-35
1960
73

query I rowsort
SELECT - col2 * ( col0 ) * + col1 FROM tab2
----
-119652
-51034
-5859

query I rowsort
SELECT DISTINCT 50 * - tab2.col0 + col0 FROM tab2
----
-343
-3822
-3871

query I rowsort
SELECT DISTINCT - + 53 FROM tab2 cor0
----
-53

query I rowsort
SELECT DISTINCT - - col0 * cor0.col1 + + cor0.col2 FROM tab1 cor0
----
1136
132
697

query I rowsort
SELECT ALL ( col2 ) * + col1 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT 90 * tab0.col2 * col2 AS col0 FROM tab0
----
605160
90
98010

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 67 + - col0 * - col0 col1 FROM tab2
----
116
6151
6308

onlyif mysql # use DIV operator for integer division
query I rowsort label-1864
SELECT col2 + cor0.col1 DIV - ( - col1 ) AS col2 FROM tab0 AS cor0
----
2
34
83

skipif mysql # not compatible
query I rowsort label-1864
SELECT col2 + cor0.col1 / - ( - col1 ) AS col2 FROM tab0 AS cor0
----
2
34
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-1865
SELECT - col1 + + col1 + 50 DIV - 30 AS col0 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1865
SELECT - col1 + + col1 + 50 / - 30 AS col0 FROM tab1 AS cor0
----
-1
-1
-1

onlyif mysql # use DIV operator for integer division
query I rowsort label-1866
SELECT + col1 DIV 30 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-1866
SELECT + col1 / 30 FROM tab2
----
0
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 col1 FROM tab2 AS cor0 CROSS JOIN tab1, tab0 cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

query I rowsort
SELECT + cor1.col1 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

query I rowsort
SELECT DISTINCT 93 - - col1 FROM tab0 cor0
----
179
184
190

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + ( - col0 ) ) - + col1 * - col1 * + col0 col2 FROM tab2 AS cor0
----
22910
271596
6734

query I rowsort
SELECT cor0.col1 - - col0 * cor0.col1 * col1 AS col0 FROM tab2 AS cor0
----
22848
271577
6758

query I rowsort
SELECT + - cor0.col1 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 58ed467a9a332e4d7bfaa9abdbbd063f

query I rowsort
SELECT DISTINCT cor1.col1 FROM tab0 AS cor0 CROSS JOIN tab0, tab0 AS cor1
----
86
91
97

query I rowsort
SELECT + col1 + - col0 * - col0 + 81 AS col1 FROM tab1
----
116
4187
6494

query I rowsort
SELECT tab0.col2 * tab0.col0 + col1 * + 77 AS col0 FROM tab0
----
14305
7414
7504

query I rowsort
SELECT col0 * + tab1.col0 + col0 FROM tab1
----
12
4160
6480

onlyif mysql # use DIV operator for integer division
query I rowsort label-1877
SELECT + 22 DIV col1 + col2 * col2 + col0 AS col0 FROM tab0 cor0
----
1113
36
6813

skipif mysql # not compatible
query I rowsort label-1877
SELECT + 22 / col1 + col2 * col2 + col0 AS col0 FROM tab0 cor0
----
1113
36
6813

query I rowsort
SELECT DISTINCT - col0 + + tab1.col0 FROM tab1
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-1879
SELECT ALL tab2.col2 DIV + col1 + tab2.col1 + + 34 FROM tab2
----
53
65
93

skipif mysql # not compatible
query I rowsort label-1879
SELECT ALL tab2.col2 / + col1 + tab2.col1 + + 34 FROM tab2
----
53
65
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 col0 FROM tab2, tab2 cor0, tab2 cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1881
SELECT + CAST( NULL AS SIGNED ) * col1 - col1 * col0 * ( - col0 + col2 ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1881
SELECT + CAST ( NULL AS INTEGER ) * col1 - col1 * col0 * ( - col0 + col2 ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-1882
SELECT - - 82 * col1 + - cor0.col1 * col2 + + 23 DIV col0 AS col0 FROM tab2 AS cor0
----
1708
3304
748

skipif mysql # not compatible
query I rowsort label-1882
SELECT - - 82 * col1 + - cor0.col1 * col2 + + 23 / col0 AS col0 FROM tab2 AS cor0
----
1708
3304
748

query I rowsort
SELECT ALL 47 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

query I rowsort
SELECT DISTINCT col0 * 36 + + col0 AS col0 FROM tab2
----
259
2886
2923

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 47 + col2 col2 FROM tab1 AS cor0
----
101
104
143

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1886
SELECT DISTINCT CAST( NULL AS DECIMAL ) * col1 + col0 col2 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1886
SELECT DISTINCT CAST ( NULL AS REAL ) * col1 + col0 col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL - col2 * cor0.col2 - col0 FROM tab2 AS cor0
----
-1523
-736
-754

onlyif mysql # use DIV operator for integer division
query I rowsort label-1888
SELECT ALL col0 DIV - col1 + + col1 + 30 FROM tab1 AS cor0
----
34
37
56

skipif mysql # not compatible
query I rowsort label-1888
SELECT ALL col0 / - col1 + + col1 + 30 FROM tab1 AS cor0
----
34
37
56

query I rowsort
SELECT - ( + 48 ) * cor0.col2 FROM tab2 cor0
----
-1248
-1296
-1824

query I rowsort
SELECT DISTINCT + + ( + 12 ) AS col0 FROM tab2 AS cor0
----
12

query I rowsort
SELECT col2 * col0 - - col1 FROM tab1 AS cor0
----
188
3658
7693

query I rowsort
SELECT ALL 40 + - 37 AS col1 FROM tab2 AS cor0
----
3
3
3

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1893
SELECT DISTINCT - CAST( col0 AS SIGNED ) + - col2 FROM tab0
----
-171
-36
-57

skipif mysql # not compatible
query I rowsort label-1893
SELECT DISTINCT - CAST ( col0 AS INTEGER ) + - col2 FROM tab0
----
-171
-36
-57

query I rowsort
SELECT 98 + - 23 FROM tab1
----
75
75
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a

onlyif mysql # use DIV operator for integer division
query I rowsort label-1896
SELECT 79 * col2 + - col1 DIV + ( col1 ) FROM tab1
----
4265
4502
7583

skipif mysql # not compatible
query I rowsort label-1896
SELECT 79 * col2 + - col1 / + ( col1 ) FROM tab1
----
4265
4502
7583

query I rowsort
SELECT ALL + 93 + + col2 FROM tab2 AS cor0
----
119
120
131

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 50 + col0 + + ( cor0.col1 + col0 ) col2 FROM tab2 AS cor0
----
225
265
95

query I rowsort
SELECT ALL - 96 * - col2 FROM tab0 AS cor0
----
3168
7872
96

query I rowsort
SELECT DISTINCT + 49 + + col2 + + col0 FROM tab1 AS cor0
----
106
170
225

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 83 col2 FROM tab1
----
83
83
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-1902
SELECT ALL col1 * - col0 - + cor0.col0 DIV col1 FROM tab2 AS cor0
----
-1347
-217
-4603

skipif mysql # not compatible
query I rowsort label-1902
SELECT ALL col1 * - col0 - + cor0.col0 / col1 FROM tab2 AS cor0
----
-1347
-217
-4603

query I rowsort
SELECT DISTINCT col2 * col2 + + cor0.col0 * + 42 FROM tab1 cor0
----
12576
3042
5937

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1904
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + cor0.col1 AS col1 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-1904
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + cor0.col1 AS col1 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
NULL

query I rowsort
SELECT + col2 + + col2 * ( - col2 * col0 ) FROM tab0 AS cor0
----
-26103
-34
-598354

query I rowsort
SELECT DISTINCT cor0.col0 + col2 + col2 AS col0 FROM tab2 AS cor0
----
130
155
61

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1907
SELECT DISTINCT - CAST( NULL AS SIGNED ) / + 42 AS col0 FROM tab2, tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1907
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / + 42 AS col0 FROM tab2, tab1 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + tab0.col1 col0 FROM tab0
----
119
173
98

query I rowsort
SELECT col0 + + 97 AS col0 FROM tab1
----
100
161
177

query I rowsort
SELECT + - col2 * + 84 AS col1 FROM tab0 AS cor0
----
-2772
-6888
-84

onlyif mysql # use DIV operator for integer division
query I rowsort label-1911
SELECT - col0 DIV ( + col0 ) AS col0 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1911
SELECT - col0 / ( + col0 ) AS col0 FROM tab0 AS cor0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col1 * 99 col0 FROM tab0 AS cor0
----
8514
9009
9603

query I rowsort
SELECT ALL + - col2 * col1 + - col2 * + col2 * - col0 + - cor0.col1 FROM tab1 AS cor0
----
207356
7318
736019

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * + 62 * + col0 col0 FROM tab0 AS cor0
----
127968
210490
502138

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1915
SELECT ALL - + ( - col2 ) * + cor0.col1 + CAST( NULL AS SIGNED ) * - col2 * + col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1915
SELECT ALL - + ( - col2 ) * + cor0.col1 + CAST ( NULL AS INTEGER ) * - col2 * + col2 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL ( 13 ) * + cor0.col1 + col1 AS col2 FROM tab1 cor0
----
140
182
364

query I rowsort
SELECT DISTINCT + col0 * 79 FROM tab1 cor0
----
237
5056
6320

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1918
SELECT ALL - CAST( NULL AS DECIMAL ) * col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1918
SELECT ALL - CAST ( NULL AS REAL ) * col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + cor0.col2 * col1 + + col0 AS col0 FROM tab2 AS cor0
----
1612
725
844

query I rowsort
SELECT - 70 + col1 FROM tab2 AS cor0
----
-11
-39
-53

query I rowsort
SELECT ALL 56 + + 70 FROM tab2 cor0
----
126
126
126

query I rowsort
SELECT ALL + ( + col2 ) * col2 + + 97 FROM tab2 AS cor0
----
1541
773
826

query I rowsort
SELECT + tab1.col0 * 45 * - 3 - col1 FROM tab1
----
-10813
-431
-8650

onlyif mysql # use DIV operator for integer division
query I rowsort label-1924
SELECT DISTINCT - col1 DIV col1 - col1 col1 FROM tab0 AS cor0
----
-87
-92
-98

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1924
SELECT DISTINCT - col1 / col1 - col1 col1 FROM tab0 AS cor0
----
-87
-92
-98

query I rowsort
SELECT col2 * 3 * - col1 FROM tab0 cor0
----
-22386
-291
-8514

query I rowsort
SELECT + 29 * 98 + col0 FROM tab2 AS cor0
----
2849
2920
2921

query I rowsort
SELECT + ( 57 ) + + col0 FROM tab1 AS cor0
----
121
137
60

query I rowsort
SELECT DISTINCT col2 * + ( + col1 ) AS col0 FROM tab2
----
1534
646
837

query I rowsort
SELECT col1 + + tab0.col0 * + col2 AS col0 FROM tab0
----
132
7389
878

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1930
SELECT tab0.col0 + CAST( col2 AS SIGNED ) * tab0.col2 FROM tab0
----
1113
36
6813

skipif mysql # not compatible
query I rowsort label-1930
SELECT tab0.col0 + CAST ( col2 AS INTEGER ) * tab0.col2 FROM tab0
----
1113
36
6813

query I rowsort
SELECT - ( col0 ) - col0 AS col0 FROM tab1 AS cor0
----
-128
-160
-6

query I rowsort
SELECT - ( - col0 ) + cor0.col1 + 12 AS col1 FROM tab2 AS cor0
----
108
149
50

query I rowsort
SELECT ALL + cor0.col2 * - col0 + - ( col0 ) * col2 AS col1 FROM tab2 AS cor0
----
-378
-4056
-6004

query I rowsort
SELECT cor0.col1 + cor0.col0 * + col1 + col0 * - cor0.col0 AS col2 FROM tab0 AS cor0
----
1574
2267
269

query I rowsort
SELECT ALL - col0 * col1 + + col1 * col0 AS col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + col1 * + col0 * + col2 AS col2 FROM tab0 AS cor0
----
3395
664118
68112

query I rowsort
SELECT + 46 + cor0.col0 FROM tab2 AS cor0
----
124
125
53

query I rowsort
SELECT DISTINCT 84 AS col0 FROM tab2 cor0
----
84

query I rowsort
SELECT DISTINCT - col2 + ( col0 ) * col1 AS col2 FROM tab0
----
2031
3394
8017

query I rowsort
SELECT + - 75 + - cor0.col1 + cor0.col1 AS col0 FROM tab2 AS cor0
----
-75
-75
-75

query I rowsort
SELECT 32 * + col0 FROM tab2
----
224
2496
2528

query I rowsort
SELECT col2 - - col0 * + 33 FROM tab2
----
258
2600
2645

query I rowsort
SELECT - 88 * col0 * 2 FROM tab0
----
-15664
-4224
-6160

onlyif mysql # use DIV operator for integer division
query I rowsort label-1944
SELECT DISTINCT + 73 DIV - cor0.col0 AS col1 FROM tab2 AS cor0
----
-10
0

skipif mysql # not compatible
query I rowsort label-1944
SELECT DISTINCT + 73 / - cor0.col0 AS col1 FROM tab2 AS cor0
----
-10
0

query I rowsort
SELECT + col0 + + col1 + cor0.col2 AS col1 FROM tab1 AS cor0
----
131
189
83

query I rowsort
SELECT - + col0 * 61 * col1 AS col1 FROM tab2 AS cor0
----
-13237
-280722
-81923

query I rowsort
SELECT DISTINCT cor0.col0 - - 71 FROM tab2, tab0 AS cor0
----
106
160
95

query I rowsort
SELECT ALL cor1.col0 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

query I rowsort
SELECT ALL cor1.col1 + + cor1.col0 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0, tab2 AS cor1
----
27 values hashing to 45123676d9d30ad294b9a8d42384b2df

query I rowsort
SELECT ALL - col2 * ( ( col2 ) ) FROM tab2
----
-1444
-676
-729

query I rowsort
SELECT - 37 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to ed4644af7729c2425ea6cc3d84c6504f

query I rowsort
SELECT - col1 + - 34 * col2 AS col2 FROM tab1 AS cor0
----
-1862
-1948
-3277

query I rowsort
SELECT - - col1 + col2 * + col1 FROM tab2 AS cor0
----
1593
663
868

query I rowsort
SELECT + - cor0.col1 + - col0 + col1 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT DISTINCT + ( - col2 ) - + col1 FROM tab2 AS cor0
----
-55
-58
-85

query I rowsort
SELECT DISTINCT 79 * col1 AS col1 FROM tab0 AS cor0
----
6794
7189
7663

skipif mysql # not compatible
query I rowsort
SELECT ALL + CAST ( + col0 AS REAL ) FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT ALL - 13 + cor0.col2 FROM tab1 AS cor0
----
41
44
83

query I rowsort
SELECT DISTINCT col1 * + col0 * col1 FROM tab1 cor0
----
13520
2028
6400

query I rowsort
SELECT ALL - 59 FROM tab1, tab0 AS cor0, tab0, tab2 AS cor1
----
81 values hashing to 2d947a91062cb6f04dae4c2cd8f99509

query I rowsort
SELECT 66 FROM tab0, tab1 cor0 CROSS JOIN tab2
----
27 values hashing to 897b6122ac98340b78905f39d81897fc

query I rowsort
SELECT - 7 * col0 * + col1 AS col2 FROM tab0 AS cor0
----
-14448
-23765
-56693

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - col1 ) col0 FROM tab0
----
86
91
97

query I rowsort
SELECT - col0 * col1 * col0 AS col1 FROM tab1
----
-234
-40960
-83200

query I rowsort
SELECT + ( col2 ) + ( + 85 * - col0 ) AS col0 FROM tab2 AS cor0
----
-568
-6604
-6677

query I rowsort
SELECT - col2 - - col2 * 39 FROM tab1 AS cor0
----
2052
2166
3648

query I rowsort
SELECT + tab2.col2 + + tab2.col2 * - col1 AS col0 FROM tab2
----
-1508
-608
-810

query I rowsort
SELECT ALL col0 + col2 * col0 AS col2 FROM tab0
----
70
7387
816

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - col0 * - col1 col1 FROM tab1
----
36480
4212
99840

query I rowsort
SELECT + col0 * col1 + - col0 * - col0 FROM tab2
----
10686
266
7584

query I rowsort
SELECT ALL col0 + + col2 + - col0 * col0 FROM tab2
----
-15
-5980
-6124

query I rowsort
SELECT DISTINCT - tab1.col1 * + tab1.col2 FROM tab1
----
-1248
-1404
-570

query I rowsort
SELECT - tab2.col2 AS col0 FROM tab2 WHERE NULL NOT IN ( - col2 - col1 )
----

query I rowsort
SELECT DISTINCT col0 + col0 + - col0 * - col1 * col1 AS col2 FROM tab0
----
177552
329385
737187

query I rowsort
SELECT + tab1.col0 * tab1.col0 + col0 AS col0 FROM tab1
----
12
4160
6480

query I rowsort
SELECT - tab0.col1 FROM tab0 WHERE NOT col1 + col0 * col2 + col0 NOT BETWEEN + col0 + col0 AND NULL
----

query I rowsort
SELECT ALL + tab1.col0 * - col1 FROM tab1
----
-1040
-640
-78

onlyif mysql # use DIV operator for integer division
query I rowsort label-1978
SELECT ALL + col1 - cor0.col1 * col1 DIV col2 FROM tab1 AS cor0
----
12
14
9

skipif mysql # not compatible
query I rowsort label-1978
SELECT ALL + col1 - cor0.col1 * col1 / col2 FROM tab1 AS cor0
----
12
14
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-1979
SELECT ALL col0 * col2 DIV + col0 FROM tab2 WHERE col2 * col0 = col0 * col2
----
26
27
38

skipif mysql # not compatible
query I rowsort label-1979
SELECT ALL col0 * col2 / + col0 FROM tab2 WHERE col2 * col0 = col0 * col2
----
26
27
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-1980
SELECT ALL col1 * - col1 + col0 DIV col2 AS col0 FROM tab1
----
-169
-676
-99

skipif mysql # not compatible
query I rowsort label-1980
SELECT ALL col1 * - col1 + col0 / col2 AS col0 FROM tab1
----
-169
-676
-99

query I rowsort
SELECT - col0 + col0 + + cor0.col2 * - 22 AS col1 FROM tab0 AS cor0
----
-1804
-22
-726

query I rowsort
SELECT DISTINCT + 2 AS col2 FROM tab1 AS cor0
----
2

query I rowsort
SELECT + col0 * cor0.col1 + 13 FROM tab0 AS cor0
----
2077
3408
8112

query I rowsort
SELECT ALL + + 55 AS col0 FROM tab0 AS cor0
----
55
55
55

query I rowsort
SELECT col1 + col0 - - col0 FROM tab0
----
134
167
269

query I rowsort
SELECT + col1 AS col0 FROM tab2 WHERE NOT NULL NOT IN ( + col0 * col1 + col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * tab0.col1 col2 FROM tab0
----
-7396
-8281
-9409

query I rowsort
SELECT DISTINCT - col0 * col2 + - col1 + col2 FROM tab2
----
-193
-2061
-2981

query I rowsort
SELECT col2 + - col1 * col2 + - tab1.col2 FROM tab1
----
-1248
-1404
-570

onlyif mysql # use DIV operator for integer division
query I rowsort label-1990
SELECT + col0 * col2 + + col0 DIV - col0 FROM tab2
----
188
2027
3001

skipif mysql # not compatible
query I rowsort label-1990
SELECT + col0 * col2 + + col0 / - col0 FROM tab2
----
188
2027
3001

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col1 * col0 NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT + cor0.col1 + + col0 * col0 + + col2 * col0 AS col1 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN col2 AND NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-1993
SELECT - tab0.col1 DIV tab0.col1 FROM tab2 AS cor0 CROSS JOIN tab0
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b

skipif mysql # not compatible
query I rowsort label-1993
SELECT - tab0.col1 / tab0.col1 FROM tab2 AS cor0 CROSS JOIN tab0
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b

query I rowsort
SELECT + tab1.col1 AS col2 FROM tab1 WHERE NOT ( + col0 + col1 ) > NULL
----

query I rowsort
SELECT ALL - tab0.col0 * col2 AS col2 FROM tab0
----
-35
-7298
-792

query I rowsort
SELECT ALL col0 + col1 * tab2.col0 FROM tab2
----
1422
224
4680

onlyif mysql # use DIV operator for integer division
query I rowsort label-1997
SELECT col0 DIV - col1 + + col2 AS col1 FROM tab0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-1997
SELECT col0 / - col1 + + col2 AS col1 FROM tab0
----
1
33
82

query I rowsort
SELECT + col1 * tab2.col0 * + col2 FROM tab2
----
119652
51034
5859

query I rowsort
SELECT col2 * - tab1.col0 * col1 FROM tab1
----
-36480
-4212
-99840

query I rowsort
SELECT col2 AS col1 FROM tab1 WHERE NOT ( col2 - - col1 ) NOT BETWEEN - col2 / tab1.col2 + col2 AND NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-2001
SELECT DISTINCT col1 + col0 DIV - col1 FROM tab1
----
26
4
7

skipif mysql # not compatible
query I rowsort label-2001
SELECT DISTINCT col1 + col0 / - col1 FROM tab1
----
26
4
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab0.col1 - - tab0.col0 col1 FROM tab0
----
110
132
180

query I rowsort
SELECT ALL - col0 + col1 * - col0 AS col2 FROM tab0
----
-2088
-3430
-8188

query I rowsort
SELECT DISTINCT col0 * - 14 AS col2 FROM tab2
----
-1092
-1106
-98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 99 + col1 col2 FROM tab1 AS cor0
----
-73
-86
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 16 * + col2 col0 FROM tab1 cor0
----
1536
864
912

query I rowsort
SELECT ALL 36 AS col1 FROM tab2 AS cor0
----
36
36
36

query I rowsort
SELECT DISTINCT + ( 30 ) FROM tab2 cor0
----
30

query I rowsort
SELECT - 57 AS col0 FROM tab2, tab1 AS cor0, tab2 cor1
----
27 values hashing to 0b74bbd7631afe9b2eeb9f18b9dc6505

query I rowsort
SELECT - col1 + + 5 * 4 AS col2 FROM tab2
----
-11
-39
3

query I rowsort
SELECT + + 27 AS col2 FROM tab2, tab0, tab2 cor0
----
27 values hashing to 1a3cef5c33b8f87ffeded378fd207753

onlyif mysql # use DIV operator for integer division
query I rowsort label-2012
SELECT ALL ( col1 ) + - col0 DIV tab2.col1 + col1 * col2 * tab2.col1 FROM tab2
----
10995
25978
90564

skipif mysql # not compatible
query I rowsort label-2012
SELECT ALL ( col1 ) + - col0 / tab2.col1 + col1 * col2 * tab2.col1 FROM tab2
----
10995
25978
90564

query I rowsort
SELECT - col0 * 21 AS col1 FROM tab2
----
-147
-1638
-1659

query I rowsort
SELECT ( - col2 ) * + col1 AS col1 FROM tab0
----
-2838
-7462
-97

query I rowsort
SELECT ALL - 83 + + 11 * col2 AS col2 FROM tab1
----
511
544
973

query I rowsort
SELECT ALL - + 72 * + cor0.col0 FROM tab0 AS cor0
----
-1728
-2520
-6408

query I rowsort
SELECT ALL col0 * - col0 * cor0.col2 + col0 AS col0 FROM tab0 AS cor0
----
-1190
-18984
-649433

onlyif mysql # use DIV operator for integer division
query I rowsort label-2018
SELECT DISTINCT col0 DIV 92 + col1 * + col0 FROM tab0 AS cor0
----
2064
3395
8099

skipif mysql # not compatible
query I rowsort label-2018
SELECT DISTINCT col0 / 92 + col1 * + col0 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT + ( - col2 ) + col1 + col1 FROM tab1 cor0
----
-2
-37
-70

query I rowsort
SELECT DISTINCT + 29 * 86 AS col0 FROM tab2 cor0
----
2494

query I rowsort
SELECT DISTINCT 41 + 3 AS col2 FROM tab0 AS cor0
----
44

query I rowsort
SELECT DISTINCT - + col0 * 20 AS col0 FROM tab1 AS cor0
----
-1280
-1600
-60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + col1 ) * - col1 col0 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT + - 66 * col0 + col2 FROM tab1 AS cor0
----
-144
-4167
-5184

query I rowsort
SELECT 72 * + col2 + + 27 FROM tab0
----
2403
5931
99

query I rowsort
SELECT DISTINCT + + ( + cor0.col2 ) AS col0 FROM tab1, tab0 AS cor0
----
1
33
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-2027
SELECT DISTINCT - + col1 * col1 + col2 DIV - col1 FROM tab2 AS cor0
----
-291
-3481
-961

skipif mysql # not compatible
query I rowsort label-2027
SELECT DISTINCT - + col1 * col1 + col2 / - col1 FROM tab2 AS cor0
----
-291
-3481
-961

query I rowsort
SELECT ALL + col2 * - 68 + col2 * col0 + col0 FROM tab2 cor0
----
-1640
338
497

query I rowsort
SELECT DISTINCT + col0 * + col0 + + col1 AS col0 FROM tab2 AS cor0
----
6143
6258
80

query I rowsort
SELECT ALL - col2 * + ( + col2 ) AS col0 FROM tab0 cor0
----
-1
-1089
-6724

query I rowsort
SELECT ALL col0 + - 12 * 16 FROM tab1 AS cor0
----
-112
-128
-189

query I rowsort
SELECT - + col1 * + ( - col2 ) + + col1 AS col2 FROM tab1 AS cor0
----
1261
1430
580

query I rowsort
SELECT DISTINCT - col1 - - 10 * 57 AS col2 FROM tab2 AS cor0
----
511
539
553

query I rowsort
SELECT ALL col0 + ( 17 ) FROM tab1 AS cor0
----
20
81
97

query I rowsort
SELECT DISTINCT + col2 + + 2 * col2 - col1 AS col1 FROM tab1 cor0
----
136
161
275

query I rowsort
SELECT ALL + - col2 * cor0.col0 + col2 FROM tab1 AS cor0
----
-108
-3591
-7584

query I rowsort
SELECT cor0.col2 - tab2.col0 FROM tab2, tab1 AS cor0
----
9 values hashing to b032c2cb3f3f9c03ae8f2399010fea78

query I rowsort
SELECT + 95 + + 25 * tab2.col2 FROM tab2
----
1045
745
770

query I rowsort
SELECT - + 16 FROM tab2, tab0, tab2 cor0
----
27 values hashing to 71c8b08964ab47ce12158975c0ee1fd9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 * 81 col0 FROM tab1, tab0 AS cor0
----
9 values hashing to d978491f1f731dfbcdb7a39b597dea4a

query I rowsort
SELECT DISTINCT tab2.col1 * + col2 AS col1 FROM tab2
----
1534
646
837

onlyif mysql # use DIV operator for integer division
query I rowsort label-2042
SELECT - ( col1 ) + ( + ( + col1 ) ) DIV - 66 FROM tab1 AS cor0
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-2042
SELECT - ( col1 ) + ( + ( + col1 ) ) / - 66 FROM tab1 AS cor0
----
-10
-13
-26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - col1 * + col0 + col2 col0 FROM tab0 AS cor0
----
-2007
-3359
-7928

onlyif mysql # use DIV operator for integer division
query I rowsort label-2044
SELECT + - col0 * col1 DIV 31 + + cor0.col0 FROM tab1 AS cor0
----
1
44
47

skipif mysql # not compatible
query I rowsort label-2044
SELECT + - col0 * col1 / 31 + + cor0.col0 FROM tab1 AS cor0
----
1
44
47

query I rowsort
SELECT DISTINCT + tab0.col0 + - tab0.col2 AS col1 FROM tab0
----
-9
34
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * + 73 + - ( + col2 ) * tab1.col2 col2 FROM tab1
----
-2208
1026
912

onlyif mysql # use DIV operator for integer division
query I rowsort label-2047
SELECT + 99 DIV + 2 FROM tab1, tab1 AS cor0
----
9 values hashing to cb40783c0fff72e8802cdf0682e7cb55

skipif mysql # not compatible
query I rowsort label-2047
SELECT + 99 / + 2 FROM tab1, tab1 AS cor0
----
9 values hashing to cb40783c0fff72e8802cdf0682e7cb55

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2048
SELECT + - col2 * CAST( + 38 AS SIGNED ) + - col0 FROM tab2 AS cor0
----
-1033
-1066
-1523

skipif mysql # not compatible
query I rowsort label-2048
SELECT + - col2 * CAST ( + 38 AS INTEGER ) + - col0 FROM tab2 AS cor0
----
-1033
-1066
-1523

query I rowsort
SELECT DISTINCT cor0.col0 * - 2 FROM tab2 AS cor0
----
-14
-156
-158

query I rowsort
SELECT ALL + + col0 * col2 * + 56 FROM tab0 AS cor0
----
1960
408688
44352

query I rowsort
SELECT DISTINCT - 43 * 5 FROM tab1, tab2 AS cor0
----
-215

query I rowsort
SELECT ALL + col0 * + 62 AS col0 FROM tab1 AS cor0
----
186
3968
4960

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2053
SELECT ALL col1 * CAST( - col2 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-1534
-646
-837

skipif mysql # not compatible
query I rowsort label-2053
SELECT ALL col1 * CAST ( - col2 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT DISTINCT + cor0.col1 + - 83 AS col0 FROM tab0 cor0
----
14
3
8

query I rowsort
SELECT - - 23 - cor0.col0 * col2 FROM tab2 AS cor0
----
-166
-2005
-2979

query I rowsort
SELECT 24 * - col1 + col0 AS col0 FROM tab2 AS cor0
----
-1338
-329
-737

query I rowsort
SELECT - 57 + cor0.col2 * - col0 FROM tab2 AS cor0
----
-2085
-246
-3059

query I rowsort
SELECT DISTINCT col0 + cor0.col2 - col0 * - 59 * cor0.col1 FROM tab0 AS cor0
----
121833
200341
478012

query I rowsort
SELECT ALL + + col0 + col1 * + col2 AS col2 FROM tab2 AS cor0
----
1612
725
844

skipif mysql # not compatible
query I rowsort
SELECT CAST ( col2 AS REAL ) + col2 FROM tab2 AS cor0
----
52
54
76

query I rowsort
SELECT DISTINCT - - 76 * - col2 AS col0 FROM tab2 AS cor0
----
-1976
-2052
-2888

onlyif mysql # use DIV operator for integer division
query I rowsort label-2062
SELECT col0 + - 1 * - col0 * col2 + + col1 DIV - col1 AS col2 FROM tab0
----
69
7386
815

skipif mysql # not compatible
query I rowsort label-2062
SELECT col0 + - 1 * - col0 * col2 + + col1 / - col1 AS col2 FROM tab0
----
69
7386
815

onlyif mysql # use DIV operator for integer division
query I rowsort label-2063
SELECT col1 + col1 DIV tab1.col0 FROM tab1
----
10
13
34

skipif mysql # not compatible
query I rowsort label-2063
SELECT col1 + col1 / tab1.col0 FROM tab1
----
10
13
34

onlyif mysql # use DIV operator for integer division
query I rowsort label-2064
SELECT DISTINCT + col2 DIV + 82 + - 93 AS col0 FROM tab2
----
-93

skipif mysql # not compatible
query I rowsort label-2064
SELECT DISTINCT + col2 / + 82 + - 93 AS col0 FROM tab2
----
-93

query I rowsort
SELECT + 85 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b

query I rowsort
SELECT col0 + - 42 * + col0 AS col1 FROM tab2 AS cor0
----
-287
-3198
-3239

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2067
SELECT - CAST( col2 AS SIGNED ) + cor0.col1 AS col2 FROM tab0 AS cor0
----
53
9
96

skipif mysql # not compatible
query I rowsort label-2067
SELECT - CAST ( col2 AS INTEGER ) + cor0.col1 AS col2 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT DISTINCT tab0.col2 AS col2 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
1
33
82

query I rowsort
SELECT DISTINCT 76 - - col1 FROM tab0
----
162
167
173

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2070
SELECT DISTINCT CAST( NULL AS SIGNED ) + + col1 AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2070
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + col1 AS col2 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 * col0 * col2 col2 FROM tab2 cor0
----
-1323
-158184
-237158

query I rowsort
SELECT ALL + 50 * - col0 * + ( 62 ) + + cor0.col0 * - 37 + 28 FROM tab2 AS cor0
----
-21931
-244658
-247795

query I rowsort
SELECT + col0 * - col1 - col1 AS col1 FROM tab0 AS cor0
----
-2150
-3492
-8190

onlyif mysql # use DIV operator for integer division
query I rowsort label-2074
SELECT DISTINCT - 45 + - col2 * CAST( + col0 AS SIGNED ) DIV - col1 AS col2 FROM tab1 AS cor0
----
-39
319
545

skipif mysql # not compatible
query I rowsort label-2074
SELECT DISTINCT - 45 + - col2 * CAST ( + col0 AS INTEGER ) / - col1 AS col2 FROM tab1 AS cor0
----
-39
319
545

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - col1 + + ( col0 ) col1 FROM tab2 AS cor0
----
-210
-3403
-954

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * cor0.col0 + + 73 col1 FROM tab0 AS cor0
----
-719
-7225
38

query I rowsort
SELECT + col0 * + cor0.col0 + ( col0 ) FROM tab2 AS cor0
----
56
6162
6320

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col2 col2 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT DISTINCT + ( + col0 ) * col0 FROM tab2
----
49
6084
6241

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2080
SELECT - col1 + + CAST( NULL AS SIGNED ) * - ( + cor0.col2 * 9 ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2080
SELECT - col1 + + CAST ( NULL AS INTEGER ) * - ( + cor0.col2 * 9 ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 * ( + col1 ) * col2 AS col0 FROM tab1 AS cor0
----
36480
4212
99840

query I rowsort
SELECT ALL + 65 * + cor0.col1 FROM tab0 cor0
----
5590
5915
6305

query I rowsort
SELECT ALL + col1 * + col0 * - 60 FROM tab1
----
-38400
-4680
-62400

onlyif mysql # use DIV operator for integer division
query I rowsort label-2084
SELECT + col2 DIV - 58 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2084
SELECT + col2 / - 58 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + cor0.col2 * - cor0.col2 col1 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT - col0 + - 36 AS col2 FROM tab1 AS cor0
----
-100
-116
-39

query I rowsort
SELECT ALL - cor0.col2 * 81 FROM tab0 AS cor0
----
-2673
-6642
-81

query I rowsort
SELECT DISTINCT - cor0.col0 + - ( ( - col2 ) ) FROM tab2 AS cor0
----
-41
-52
20

skipif mysql # not compatible
query I rowsort
SELECT - col0 * CAST ( col2 AS REAL ) + col0 + + CAST ( cor0.col1 AS REAL ) / col1 AS col0 FROM tab0 AS cor0
----
-7208
-767
1

query I rowsort
SELECT col2 * - cor0.col2 - col0 FROM tab0 AS cor0
----
-1113
-36
-6813

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + cor0.col2 * + 62 * + col0 + - 68 col2 FROM tab1 AS cor0
----
10030
226165
476188

query I rowsort
SELECT DISTINCT 87 AS col2 FROM tab1, tab2 AS cor0
----
87

query I rowsort
SELECT DISTINCT - col0 + - ( + 82 * col1 ) FROM tab1
----
-1146
-2135
-884

query I rowsort
SELECT col2 * + 28 + 60 AS col0 FROM tab2
----
1124
788
816

query I rowsort
SELECT DISTINCT + - cor0.col0 * + col2 + + 49 AS col1 FROM tab0 AS cor0
----
-7249
-743
14

query I rowsort
SELECT ALL - - col2 + - ( + col0 ) * - cor0.col1 FROM tab0 cor0
----
2097
3396
8181

query I rowsort
SELECT - col2 - - col0 AS col0 FROM tab2 cor0
----
-20
41
52

query I rowsort
SELECT DISTINCT - col1 * + cor0.col1 * col2 FROM tab1 AS cor0
----
-16224
-36504
-5700

query I rowsort
SELECT + col0 * col2 - - col0 FROM tab0 AS cor0
----
70
7387
816

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - cor0.col1 * 98 + col2 col0 FROM tab0 cor0
----
8461
9000
9507

query I rowsort
SELECT DISTINCT - - cor0.col0 + 66 * 81 AS col0 FROM tab2 AS cor0
----
5353
5424
5425

query I rowsort
SELECT ALL - col2 + col2 * - 7 FROM tab1 AS cor0
----
-432
-456
-768

query I rowsort
SELECT + + col1 + + col1 * + col0 FROM tab0 AS cor0
----
2150
3492
8190

query I rowsort
SELECT DISTINCT + col0 + col1 * - 22 FROM tab1 cor0
----
-156
-206
-569

query I rowsort
SELECT - + col0 + + col1 + + col2 FROM tab0 AS cor0
----
63
84
95

query I rowsort
SELECT ALL + + col0 * 92 + col0 FROM tab0 AS cor0
----
2232
3255
8277

query I rowsort
SELECT DISTINCT col2 * - col1 * col1 AS col0 FROM tab0 AS cor0
----
-244068
-679042
-9409

query I rowsort
SELECT - col1 * col0 - col2 * col0 FROM tab2
----
-406
-4345
-6630

query I rowsort
SELECT ALL + 20 AS col1 FROM tab0, tab2 cor0
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4

query I rowsort
SELECT DISTINCT - tab0.col1 * 98 * col1 AS col1 FROM tab0
----
-724808
-811538
-922082

query I rowsort
SELECT DISTINCT + tab1.col2 * 38 AS col0 FROM tab1
----
2052
2166
3648

query I rowsort
SELECT ALL + ( - ( col1 ) ) * col1 + - col1 FROM tab2 AS cor0
----
-306
-3540
-992

onlyif mysql # use DIV operator for integer division
query I rowsort label-2113
SELECT ( 81 ) DIV - col0 + col1 col0 FROM tab2 AS cor0
----
16
20
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2113
SELECT ( 81 ) / - col0 + col1 col0 FROM tab2 AS cor0
----
16
20
58

query I rowsort
SELECT ALL - 46 * - ( + col1 ) + + col2 FROM tab0 AS cor0
----
3989
4268
4463

query I rowsort
SELECT DISTINCT - + 22 * - 34 FROM tab1 AS cor0
----
748

query I rowsort
SELECT + - col1 + col1 + col2 AS col2 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT ALL + 66 * - cor0.col0 AS col1 FROM tab2 AS cor0
----
-462
-5148
-5214

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2118
SELECT + CAST( + ( col1 ) AS SIGNED ) FROM tab1 AS cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-2118
SELECT + CAST ( + ( col1 ) AS INTEGER ) FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT ( - cor0.col0 ) + col2 FROM tab2 AS cor0
----
-41
-52
20

onlyif mysql # use DIV operator for integer division
query I rowsort label-2120
SELECT ALL 27 DIV + col2 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2120
SELECT ALL 27 / + col2 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT ALL - + 20 + - col1 * + 91 FROM tab1 AS cor0
----
-1203
-2386
-930

query I rowsort
SELECT ALL + col1 * col0 + + col0 AS col0 FROM tab2 AS cor0
----
1422
224
4680

onlyif mysql # use DIV operator for integer division
query I rowsort label-2123
SELECT ALL + 99 DIV cor0.col2 AS col0 FROM tab0 AS cor0
----
1
3
99

skipif mysql # not compatible
query I rowsort label-2123
SELECT ALL + 99 / cor0.col2 AS col0 FROM tab0 AS cor0
----
1
3
99

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2124
SELECT DISTINCT + - col1 * - col1 + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2124
SELECT DISTINCT + - col1 * - col1 + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2125
SELECT CAST( NULL AS SIGNED ) AS col0 FROM tab1, tab2 AS cor0, tab1 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-2125
SELECT CAST ( NULL AS INTEGER ) AS col0 FROM tab1, tab2 AS cor0, tab1 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT - + col1 * col1 + col1 * - cor0.col0 AS col1 FROM tab0 AS cor0
----
-12804
-16380
-9460

query I rowsort
SELECT ALL col0 * col2 + + col2 FROM tab0 AS cor0
----
36
7380
825

onlyif mysql # use DIV operator for integer division
query I rowsort label-2128
SELECT ALL - - 64 DIV col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2128
SELECT ALL - - 64 / col1 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 - col2 * 38 col0 FROM tab2 AS cor0
----
-1427
-929
-995

onlyif mysql # use DIV operator for integer division
query I rowsort label-2130
SELECT ALL + col2 + + col1 DIV col0 AS col2 FROM tab1 cor0
----
57
62
96

skipif mysql # not compatible
query I rowsort label-2130
SELECT ALL + col2 + + col1 / col0 AS col2 FROM tab1 cor0
----
57
62
96

query I rowsort
SELECT DISTINCT + 54 AS col0 FROM tab1 AS cor0
----
54

query I rowsort
SELECT + + 86 * col2 AS col2 FROM tab1 AS cor0
----
4644
4902
8256

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + col0 col2 FROM tab2
----
104
117
34

query I rowsort
SELECT - + 83 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d55748f39f403ec273099c0d87b0bfbb

query I rowsort
SELECT - ( + col0 ) * col0 + - col2 + + col0 FROM tab0 AS cor0
----
-1191
-585
-7914

query I rowsort
SELECT - col1 * + 25 - col0 AS col2 FROM tab1 AS cor0
----
-314
-405
-653

query I rowsort
SELECT ALL + 0 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT + - 27 + + col1 * cor0.col1 + - ( cor0.col2 ) AS col2 FROM tab0 AS cor0
----
7336
8172
9381

query I rowsort
SELECT ALL cor0.col1 * cor0.col0 * + col0 FROM tab2 AS cor0
----
106097
1519
358956

query I rowsort
SELECT - cor0.col1 + + 18 AS col1 FROM tab1 AS cor0
----
-8
5
8

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2141
SELECT - CAST( NULL AS DECIMAL ) / + col1 + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2141
SELECT - CAST ( NULL AS REAL ) / + col1 + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + CAST ( cor0.col1 AS REAL ) AS col0 FROM tab1 cor0
----
10
13
26

query I rowsort
SELECT 92 + - 95 FROM tab0, tab0 cor0
----
9 values hashing to 95b6b9b4aae5cc2d9545db9f8940b2dc

query I rowsort
SELECT ALL - col0 + col1 + col1 * + 71 FROM tab1
----
1869
656
856

query I rowsort
SELECT ALL - tab2.col0 + - col2 * col0 FROM tab2
----
-196
-2106
-3081

query I rowsort
SELECT ALL + col1 * - col1 * - col2 FROM tab0 cor0
----
244068
679042
9409

query I rowsort
SELECT - cor0.col2 * - cor0.col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 41d4c126bfd4bfab59ba5e83427c98e0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 84 + + col1 * col2 + 29 col1 FROM tab1 AS cor0
----
1361
1517
683

onlyif mysql # use DIV operator for integer division
query I rowsort label-2149
SELECT DISTINCT + col1 * - cor0.col2 + col0 DIV - cor0.col0 + + col2 DIV col0 FROM tab1 AS cor0
----
-1248
-1387
-571

skipif mysql # not compatible
query I rowsort label-2149
SELECT DISTINCT + col1 * - cor0.col2 + col0 / - cor0.col0 + + col2 / col0 FROM tab1 AS cor0
----
-1248
-1387
-571

query I rowsort
SELECT ALL ( - 39 ) AS col0 FROM tab1
----
-39
-39
-39

query I rowsort
SELECT + 45 FROM tab1, tab1 AS cor0
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050

query I rowsort
SELECT ALL - col0 * ( - cor0.col2 ) FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT col0 + 48 FROM tab0 AS cor0
----
137
72
83

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2154
SELECT - + cor0.col0 * CAST( NULL AS SIGNED ) + col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2154
SELECT - + cor0.col0 * CAST ( NULL AS INTEGER ) + col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort
SELECT col1 + CAST ( col2 AS REAL ) FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT DISTINCT + 57 FROM tab2, tab0 cor0, tab1 AS cor1
----
57

query I rowsort
SELECT ALL col0 * 53 FROM tab0
----
1272
1855
4717

onlyif mysql # use DIV operator for integer division
query I rowsort label-2158
SELECT ALL + + col2 DIV col2 AS col1 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2158
SELECT ALL + + col2 / col2 AS col1 FROM tab0 AS cor0
----
1
1
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2159
SELECT - + col2 + + CAST( col0 AS SIGNED ) AS col0 FROM tab2 cor0
----
-20
41
52

skipif mysql # not compatible
query I rowsort label-2159
SELECT - + col2 + + CAST ( col0 AS INTEGER ) AS col0 FROM tab2 cor0
----
-20
41
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * 85 * col1 col2 FROM tab2
----
130390
54910
71145

query I rowsort
SELECT ALL + tab0.col2 - 16 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to da2a14ae6acb0a623af93c9a1ce782ee

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * - col2 col0 FROM tab2
----
-1444
-676
-729

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2163
SELECT - ( col1 ) + + col2 / CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2163
SELECT - ( col1 ) + + col2 / CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - - ( 24 ) + + cor0.col2 * + col2 - - col1 AS col1 FROM tab0 cor0
----
1199
122
6839

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( 48 * + col1 + 79 ) col2 FROM tab2
----
1567
2911
895

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2166
SELECT ALL CAST( + col2 AS SIGNED ) FROM tab2
----
26
27
38

skipif mysql # not compatible
query I rowsort label-2166
SELECT ALL CAST ( + col2 AS INTEGER ) FROM tab2
----
26
27
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( 46 + col2 ) col2 FROM tab0
----
128
47
79

query I rowsort
SELECT ALL + 94 * + col2 FROM tab2 AS cor0
----
2444
2538
3572

query I rowsort
SELECT - ( - col0 ) * 83 FROM tab0 cor0
----
1992
2905
7387

onlyif mysql # use DIV operator for integer division
query I rowsort label-2170
SELECT ALL + 98 DIV cor0.col1 col2 FROM tab0 AS cor0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2170
SELECT ALL + 98 / cor0.col1 col2 FROM tab0 AS cor0
----
1
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-2171
SELECT ALL col1 DIV col1 + col1 FROM tab2 AS cor0
----
18
32
60

skipif mysql # not compatible
query I rowsort label-2171
SELECT ALL col1 / col1 + col1 FROM tab2 AS cor0
----
18
32
60

query I rowsort
SELECT - 65 * + col1 * col0 FROM tab0 AS cor0
----
-134160
-220675
-526435

query I rowsort
SELECT DISTINCT + 1 + col2 * + col2 FROM tab2 AS cor0
----
1445
677
730

query I rowsort
SELECT DISTINCT 44 AS col1 FROM tab1 cor0
----
44

query I rowsort
SELECT ALL + col1 + col0 * + col2 AS col1 FROM tab0 AS cor0
----
132
7389
878

query I rowsort
SELECT ALL col1 + + col0 + col0 AS col0 FROM tab2 AS cor0
----
175
215
45

query I rowsort
SELECT ALL + 14 * - col1 AS col0 FROM tab1
----
-140
-182
-364

query I rowsort
SELECT col1 + + 86 * + cor0.col1 FROM tab2 AS cor0
----
1479
2697
5133

query I rowsort
SELECT ALL cor0.col0 * + cor0.col0 + col0 AS col1 FROM tab2 AS cor0
----
56
6162
6320

query I rowsort
SELECT ALL cor0.col2 * - 47 FROM tab0 AS cor0
----
-1551
-3854
-47

query I rowsort
SELECT ALL + + col0 * + col1 + col0 AS col0 FROM tab1 cor0
----
1120
704
81

query I rowsort
SELECT ( + 34 ) + col0 * - 89 FROM tab1 AS cor0
----
-233
-5662
-7086

query I rowsort
SELECT + ( + ( - col2 ) ) * col2 FROM tab0
----
-1
-1089
-6724

query I rowsort
SELECT DISTINCT - ( + col2 ) * cor0.col0 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT - + ( - ( + col1 ) ) * col1 + + 82 * col1 AS col2 FROM tab1 AS cor0
----
1235
2808
920

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( ( + col2 ) ) + + 60 * - 84 col2 FROM tab2 AS cor0
----
-5002
-5013
-5014

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 * col2 + - col2 col1 FROM tab1 AS cor0
----
-1344
-1458
-627

query I rowsort
SELECT ALL - tab0.col1 * - col0 + - col1 * tab0.col2 AS col0 FROM tab0
----
-774
3298
637

query I rowsort
SELECT - col2 + - 92 + col1 AS col2 FROM tab2 cor0
----
-113
-59
-88

onlyif mysql # use DIV operator for integer division
query I rowsort label-2190
SELECT ALL col1 + tab1.col2 + - col1 DIV tab1.col1 FROM tab1
----
108
66
79

skipif mysql # not compatible
query I rowsort label-2190
SELECT ALL col1 + tab1.col2 + - col1 / tab1.col1 FROM tab1
----
108
66
79

query I rowsort
SELECT + cor0.col1 + + col2 AS col0 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT - + cor0.col2 * - col0 * cor0.col0 AS col1 FROM tab1 AS cor0
----
233472
486
614400

query I rowsort
SELECT + ( - col0 + - col0 * 67 ) AS col1 FROM tab1
----
-204
-4352
-5440

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 26 col1 FROM tab1 AS cor0
----
26
26
26

query I rowsort
SELECT - 88 + col0 * - col2 FROM tab0 AS cor0
----
-123
-7386
-880

query I rowsort
SELECT ALL - col1 + col0 * col2 FROM tab2 cor0
----
158
1969
2985

onlyif mysql # use DIV operator for integer division
query I rowsort label-2197
SELECT DISTINCT - col1 DIV + ( - col0 ) AS col0 FROM tab2
----
0
4

skipif mysql # not compatible
query I rowsort label-2197
SELECT DISTINCT - col1 / + ( - col0 ) AS col0 FROM tab2
----
0
4

query I rowsort
SELECT ALL - col2 + + 28 + col2 * + col1 * - col0 FROM tab0 cor0
----
-3368
-664172
-68117

query I rowsort
SELECT DISTINCT + - 78 + + ( - col2 ) * cor0.col1 FROM tab0 AS cor0
----
-175
-2916
-7540

query I rowsort
SELECT DISTINCT - - col1 * + col1 * + col2 AS col2 FROM tab0 AS cor0
----
244068
679042
9409

query I rowsort
SELECT + 75 * col2 AS col1 FROM tab1 AS cor0
----
4050
4275
7200

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2202
SELECT DISTINCT + CAST( 63 AS SIGNED ) * - col2 FROM tab0 AS cor0
----
-2079
-5166
-63

skipif mysql # not compatible
query I rowsort label-2202
SELECT DISTINCT + CAST ( 63 AS INTEGER ) * - col2 FROM tab0 AS cor0
----
-2079
-5166
-63

query I rowsort
SELECT tab2.col0 AS col0 FROM tab2, tab0 cor0, tab0 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

query I rowsort
SELECT DISTINCT col1 + tab2.col1 * + 51 * col2 FROM tab2
----
32963
42718
78293

query I rowsort
SELECT ALL col1 + ( - tab0.col0 ) + - col0 FROM tab0
----
-87
27
38

query I rowsort
SELECT DISTINCT 91 * ( + col2 ) FROM tab2
----
2366
2457
3458

query I rowsort
SELECT col0 * 46 - - tab1.col1 AS col1 FROM tab1
----
164
2954
3693

onlyif mysql # use DIV operator for integer division
query I rowsort label-2208
SELECT DISTINCT + + 73 * - col2 + + col2 + - col0 DIV + col2 AS col1 FROM tab0 cor0
----
-107
-2376
-5905

skipif mysql # not compatible
query I rowsort label-2208
SELECT DISTINCT + + 73 * - col2 + + col2 + - col0 / + col2 AS col1 FROM tab0 cor0
----
-107
-2376
-5905

onlyif mysql # use DIV operator for integer division
query I rowsort label-2209
SELECT DISTINCT + - col1 DIV 48 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-2209
SELECT DISTINCT + - col1 / 48 FROM tab1 cor0
----
0

query I rowsort
SELECT DISTINCT - 32 * - col2 AS col2 FROM tab0 AS cor0
----
1056
2624
32

query I rowsort
SELECT ALL 47 * + cor0.col1 + - col2 FROM tab0 cor0
----
4009
4195
4558

query I rowsort
SELECT DISTINCT - - ( - cor0.col1 ) FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT ALL + col1 + 91 AS col2 FROM tab0 AS cor0
----
177
182
188

onlyif mysql # use DIV operator for integer division
query I rowsort label-2214
SELECT cor0.col2 DIV col1 AS col2 FROM tab1 AS cor0
----
2
5
7

skipif mysql # not compatible
query I rowsort label-2214
SELECT cor0.col2 / col1 AS col2 FROM tab1 AS cor0
----
2
5
7

query I rowsort
SELECT ALL - 3 + + cor0.col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 9af5bf694317f77e09b629bc8e60b619

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 + cor0.col2 col1 FROM tab2 AS cor0
----
52
54
76

query I rowsort
SELECT + + 42 * col2 AS col1 FROM tab2 AS cor0
----
1092
1134
1596

query I rowsort
SELECT - + col2 * col0 + 10 AS col1 FROM tab1 AS cor0
----
-152
-3638
-7670

onlyif mysql # use DIV operator for integer division
query I rowsort label-2219
SELECT + 67 DIV + cor0.col2 AS col1 FROM tab2, tab1 AS cor0, tab0 cor1
----
27 values hashing to 3daf191600c64328f2c60722189235c6

skipif mysql # not compatible
query I rowsort label-2219
SELECT + 67 / + cor0.col2 AS col1 FROM tab2, tab1 AS cor0, tab0 cor1
----
27 values hashing to 3daf191600c64328f2c60722189235c6

onlyif mysql # use DIV operator for integer division
query I rowsort label-2220
SELECT DISTINCT - col2 DIV cor0.col0 + + col0 AS col0 FROM tab0 AS cor0
----
23
35
89

skipif mysql # not compatible
query I rowsort label-2220
SELECT DISTINCT - col2 / cor0.col0 + + col0 AS col0 FROM tab0 AS cor0
----
23
35
89

query I rowsort
SELECT DISTINCT col0 * - 51 FROM tab1 cor0
----
-153
-3264
-4080

query I rowsort
SELECT - col0 + ( - col2 ) * col0 * - ( col2 ) AS col0 FROM tab0 AS cor0
----
0
26112
598347

query I rowsort
SELECT + + col2 * col0 + - col2 * + col0 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + col1 * col0 + - 82 AS col1 FROM tab2 AS cor0
----
1261
135
4520

query I rowsort
SELECT ALL - + cor0.col0 * col0 AS col0 FROM tab0 AS cor0
----
-1225
-576
-7921

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab1.col2 + - tab1.col1 * ( - col2 + - tab1.col1 ) col0 FROM tab1
----
1321
2026
613

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col1 + ( col1 ) * 19 col0 FROM tab1
----
1170
290
416

query I rowsort
SELECT col0 * - 37 + + col1 AS col1 FROM tab2 AS cor0
----
-228
-2827
-2906

query I rowsort
SELECT ALL cor0.col2 + - cor0.col1 * col2 FROM tab1 cor0
----
-1152
-1350
-513

onlyif mysql # use DIV operator for integer division
query I rowsort label-2230
SELECT - col1 DIV + ( col0 ) + col0 FROM tab1 AS cor0
----
-5
64
80

skipif mysql # not compatible
query I rowsort label-2230
SELECT - col1 / + ( col0 ) + col0 FROM tab1 AS cor0
----
-5
64
80

query I rowsort
SELECT + - col2 * cor0.col1 + col0 AS col1 FROM tab1 AS cor0
----
-1168
-1401
-506

onlyif mysql # use DIV operator for integer division
query I rowsort label-2232
SELECT ALL + col2 * + col0 * - col0 + col1 DIV - ( 55 ) FROM tab2 AS cor0
----
-1323
-158185
-237158

skipif mysql # not compatible
query I rowsort label-2232
SELECT ALL + col2 * + col0 * - col0 + col1 / - ( 55 ) FROM tab2 AS cor0
----
-1323
-158185
-237158

query I rowsort
SELECT ALL - col0 - 45 FROM tab0 AS cor0
----
-134
-69
-80

query I rowsort
SELECT - col1 * + 8 + col2 * cor0.col2 FROM tab2 cor0
----
1308
204
481

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + - col0 col2 FROM tab1 cor0
----
-7
16
51

query I rowsort
SELECT DISTINCT + col2 - - col0 AS col0 FROM tab0 cor0
----
171
36
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * - cor0.col1 - col0 col2 FROM tab0 cor0
----
-2088
-3430
-8188

query I rowsort
SELECT ALL - - 4 + + ( col2 ) * - col1 - + col0 AS col1 FROM tab2 AS cor0
----
-1608
-721
-840

query I rowsort
SELECT DISTINCT + + cor0.col1 * - col1 + col0 FROM tab2 AS cor0
----
-210
-3403
-954

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2240
SELECT CAST( 73 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
73
73
73

skipif mysql # not compatible
query I rowsort label-2240
SELECT CAST ( 73 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
73
73
73

query I rowsort
SELECT col1 * - 93 * tab2.col2 + + col0 FROM tab2
----
-142584
-59999
-77834

query I rowsort
SELECT + 8 + col0 * 59 FROM tab1 AS cor0
----
185
3784
4728

onlyif mysql # use DIV operator for integer division
query I rowsort label-2243
SELECT 68 + cor0.col2 DIV 28 FROM tab0 cor0
----
68
69
70

skipif mysql # not compatible
query I rowsort label-2243
SELECT 68 + cor0.col2 / 28 FROM tab0 cor0
----
68
69
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - cor0.col1 + + col1 * cor0.col0 col1 FROM tab1 cor0
----
1027
52
630

query I rowsort
SELECT - col0 * col1 + - 95 AS col2 FROM tab1 AS cor0
----
-1135
-173
-735

query I rowsort
SELECT ALL + col0 * - col0 * + col2 FROM tab1 AS cor0
----
-233472
-486
-614400

query I rowsort
SELECT ALL - 48 + cor0.col1 * cor0.col2 FROM tab0 AS cor0
----
2790
49
7414

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + col0 + col1 col1 FROM tab0
----
24
35
89

query I rowsort
SELECT DISTINCT col0 * + col1 + - 4 * col2 AS col0 FROM tab0
----
1932
3391
7771

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + col0 + + col2 * - CAST ( col2 AS REAL ) FROM tab1
----
-2913
-3185
-9136

query I rowsort
SELECT + col0 + - col2 * + tab1.col2 + col2 * tab1.col2 AS col0 FROM tab1
----
3
64
80

query I rowsort
SELECT ALL col2 + col0 + - ( tab1.col1 ) * + col0 FROM tab1
----
-21
-519
-864

query I rowsort
SELECT - col1 + cor0.col0 * + cor0.col2 AS col0 FROM tab1 AS cor0
----
136
3638
7667

query I rowsort
SELECT DISTINCT + ( - col0 ) * - col0 + - 65 AS col1 FROM tab2
----
-16
6019
6176

onlyif mysql # use DIV operator for integer division
query I rowsort label-2255
SELECT ALL - col2 + + col1 DIV col0 AS col2 FROM tab0
----
-30
-81
1

skipif mysql # not compatible
query I rowsort label-2255
SELECT ALL - col2 + + col1 / col0 AS col2 FROM tab0
----
-30
-81
1

query I rowsort
SELECT DISTINCT col2 + col1 + - 11 AS col1 FROM tab2
----
44
47
74

query I rowsort
SELECT ALL ( col2 ) * col0 * col0 + + col0 FROM tab0
----
1260
19032
649611

query I rowsort
SELECT DISTINCT - 65 FROM tab0 cor0
----
-65

query I rowsort
SELECT ALL col0 + + col1 * ( 17 ) AS col1 FROM tab0 AS cor0
----
1486
1636
1684

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 * col0 col1 FROM tab2 cor0
----
189
2028
3002

query I rowsort
SELECT + - 88 * + cor0.col1 AS col2 FROM tab0 AS cor0
----
-7568
-8008
-8536

query I rowsort
SELECT - 70 AS col1 FROM tab2 AS cor0
----
-70
-70
-70

query I rowsort
SELECT col1 * + ( cor0.col2 ) FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT - col0 + ( - col2 ) AS col2 FROM tab2 AS cor0
----
-104
-117
-34

query I rowsort
SELECT - col2 * + 72 + - col0 AS col2 FROM tab0 cor0
----
-107
-2400
-5993

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 42 * col1 col2 FROM tab2 cor0
----
1302
2478
714

query I rowsort
SELECT + col2 + col1 * - col2 + - col2 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT 45 * 69 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to ea8df6b16bd5886380336ff2d0a44c64

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2269
SELECT DISTINCT - + cor0.col2 * CAST( NULL AS DECIMAL ) AS col0 FROM tab0, tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2269
SELECT DISTINCT - + cor0.col2 * CAST ( NULL AS REAL ) AS col0 FROM tab0, tab2 cor0
----
NULL

query I rowsort
SELECT DISTINCT - col2 * + 13 AS col0 FROM tab0
----
-1066
-13
-429

query I rowsort
SELECT ALL + 63 AS col1 FROM tab0
----
63
63
63

query I rowsort
SELECT + 35 * col1 * + col0 + + ( 63 ) AS col1 FROM tab1
----
22463
2793
36463

query I rowsort
SELECT DISTINCT + 7 * + 42 FROM tab1
----
294

query I rowsort
SELECT DISTINCT - ( 82 ) * col1 AS col2 FROM tab2 AS cor0
----
-1394
-2542
-4838

query I rowsort
SELECT - + ( col2 ) + col0 FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT DISTINCT 78 + - col1 FROM tab0 AS cor0
----
-13
-19
-8

query I rowsort
SELECT - ( - tab1.col0 * col0 ) FROM tab1
----
4096
6400
9

query I rowsort
SELECT DISTINCT - 75 + - cor0.col2 * col0 FROM tab0 AS cor0
----
-110
-7373
-867

onlyif mysql # use DIV operator for integer division
query I rowsort label-2279
SELECT + 35 + col1 DIV CAST( - cor0.col0 AS SIGNED ) + + col0 DIV + col0 AS col2 FROM tab2 AS cor0
----
32
36
36

skipif mysql # not compatible
query I rowsort label-2279
SELECT + 35 + col1 / CAST ( - cor0.col0 AS INTEGER ) + + col0 / + col0 AS col2 FROM tab2 AS cor0
----
32
36
36

query I rowsort
SELECT DISTINCT - 30 + col1 FROM tab1 AS cor0
----
-17
-20
-4

query I rowsort
SELECT DISTINCT + + col2 + col2 AS col2 FROM tab2 cor0
----
52
54
76

query I rowsort
SELECT ALL col2 * col2 + 91 FROM tab2 AS cor0
----
1535
767
820

query I rowsort
SELECT ALL + tab1.col0 * tab1.col1 AS col1 FROM tab1
----
1040
640
78

query I rowsort
SELECT 67 + + col2 * 75 FROM tab2
----
2017
2092
2917

onlyif mysql # use DIV operator for integer division
query I rowsort label-2285
SELECT + col0 + col1 DIV + col2 FROM tab1
----
3
64
80

skipif mysql # not compatible
query I rowsort label-2285
SELECT + col0 + col1 / + col2 FROM tab1
----
3
64
80

query I rowsort
SELECT - col2 + + col0 * - ( - cor0.col1 ) AS col1 FROM tab2 AS cor0
----
1305
190
4576

query I rowsort
SELECT - 6 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 8be8910507908e6353d02a545b748252

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 40 col0 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to e4d10f7d6c34a281f524e45e82ebd2a0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2289
SELECT col2 DIV + 69 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2289
SELECT col2 / + 69 FROM tab0
----
0
0
1

query I rowsort
SELECT - col1 + col0 + col1 AS col0 FROM tab1
----
3
64
80

query I rowsort
SELECT DISTINCT - col2 * 16 * - col0 - col0 * - col0 AS col0 FROM tab1
----
129280
2601
62464

query I rowsort
SELECT + col1 + + 90 + + col1 FROM tab1 cor0
----
110
116
142

query I rowsort
SELECT ALL - + 31 + - col2 FROM tab0 AS cor0
----
-113
-32
-64

query I rowsort
SELECT - + 95 * col2 + - col1 AS col2 FROM tab1 AS cor0
----
-5156
-5425
-9133

query I rowsort
SELECT + 0 * - ( col1 ) + col2 AS col1 FROM tab1 cor0
----
54
57
96

query I rowsort
SELECT ALL + + 27 * col0 + - col1 FROM tab1 AS cor0
----
1718
2147
55

query I rowsort
SELECT DISTINCT + - 41 * - 11 AS col0 FROM tab2 AS cor0
----
451

query I rowsort
SELECT - + col1 * col0 + - col0 * 82 FROM tab0 AS cor0
----
-15397
-4032
-6265

query I rowsort
SELECT - 43 * 67 + col0 + 34 * - cor0.col0 AS col2 FROM tab1 AS cor0
----
-2980
-4993
-5521

query I rowsort
SELECT 92 * 49 FROM tab0 AS cor0
----
4508
4508
4508

query I rowsort
SELECT col0 * + col0 + - cor0.col1 FROM tab0 AS cor0
----
1128
490
7830

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL <> NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-2303
SELECT DISTINCT - col1 + col1 + col0 * col0 DIV + cor0.col1 FROM tab0 AS cor0
----
12
6
87

skipif mysql # not compatible
query I rowsort label-2303
SELECT DISTINCT - col1 + col1 + col0 * col0 / + cor0.col1 FROM tab0 AS cor0
----
12
6
87

query I rowsort
SELECT DISTINCT col1 * - cor0.col1 + - col1 FROM tab2 AS cor0
----
-306
-3540
-992

query I rowsort
SELECT DISTINCT + col0 * col2 + + col1 FROM tab1 AS cor0 WHERE + col2 < NULL
----

query I rowsort
SELECT - col2 / col0 + tab2.col2 FROM tab2 WHERE NOT NULL > col2
----

query I rowsort
SELECT - tab1.col0 + col0 + - col2 * + col2 AS col0 FROM tab1
----
-2916
-3249
-9216

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col2 * col0 col0 FROM tab0
----
1225
19008
649522

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 IN ( + col1 )
----

query I rowsort
SELECT col2 * cor0.col1 + cor0.col1 * col0 FROM tab2 AS cor0
----
1054
1989
6136

query I rowsort
SELECT ALL + col1 * col2 - col2 FROM tab2 AS cor0
----
1508
608
810

query I rowsort
SELECT ALL col1 - col0 * + col1 FROM tab0 AS cor0
----
-1978
-3298
-8008

query I rowsort
SELECT col2 + col1 + + col0 * + col0 FROM tab1
----
4163
6509
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col0 * col2 + - col1 col2 FROM tab2
----
114059
5072
52669

onlyif mysql # use DIV operator for integer division
query I rowsort label-2315
SELECT ALL + col0 DIV + col2 + - col0 AS col0 FROM tab0
----
-24
-88
0

skipif mysql # not compatible
query I rowsort label-2315
SELECT ALL + col0 / + col2 + - col0 AS col0 FROM tab0
----
-24
-88
0

query I rowsort
SELECT DISTINCT col1 * - col0 + tab2.col2 AS col1 FROM tab2
----
-1305
-190
-4576

onlyif mysql # use DIV operator for integer division
query I rowsort label-2317
SELECT ALL + tab1.col0 DIV col0 + - col2 AS col0 FROM tab1
----
-53
-56
-95

skipif mysql # not compatible
query I rowsort label-2317
SELECT ALL + tab1.col0 / col0 + - col2 AS col0 FROM tab1
----
-53
-56
-95

query I rowsort
SELECT DISTINCT col0 * col1 * col2 + + col1 AS col0 FROM tab1 WHERE - col1 * - col2 * col0 <> col1
----
36490
4238
99853

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL NOT BETWEEN ( + col1 * col0 ) AND col0 + - col2 * tab0.col1
----

query I rowsort
SELECT DISTINCT - col0 * + col2 AS col2 FROM tab0
----
-35
-7298
-792

onlyif mysql # use DIV operator for integer division
query I rowsort label-2321
SELECT ALL + col0 DIV + col1 - col2 * col1 AS col1 FROM tab1
----
-1242
-1404
-564

skipif mysql # not compatible
query I rowsort label-2321
SELECT ALL + col0 / + col1 - col2 * col1 AS col1 FROM tab1
----
-1242
-1404
-564

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + cor0.col2 * cor0.col1 col2 FROM tab1 AS cor0
----
1328
1407
634

query I rowsort
SELECT + + col1 * + col1 - col2 AS col1 FROM tab0 AS cor0
----
7363
8199
9408

onlyif mysql # use DIV operator for integer division
query I rowsort label-2324
SELECT + col0 + col1 DIV col1 FROM tab2 cor0
----
79
8
80

skipif mysql # not compatible
query I rowsort label-2324
SELECT + col0 + col1 / col1 FROM tab2 cor0
----
79
8
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-2325
SELECT DISTINCT + - col2 DIV - col1 col0 FROM tab1 AS cor0
----
2
5
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2325
SELECT DISTINCT + - col2 / - col1 col0 FROM tab1 AS cor0
----
2
5
7

query I rowsort
SELECT col0 * - cor0.col0 + - col1 FROM tab1 AS cor0
----
-35
-4106
-6413

query I rowsort
SELECT DISTINCT col2 + col1 * col0 AS col1 FROM tab0 AS cor0
----
2097
3396
8181

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - col2 + col1 * + cor0.col2 col1 FROM tab1 AS cor0
----
-1512
-2679
-7968

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - cor0.col1 * - col2 + - col0 * + cor0.col1 col1 FROM tab2 AS cor0
----
-3068
-697
620

query I rowsort
SELECT - + cor0.col2 * - col2 + - col2 + cor0.col0 AS col1 FROM tab1 AS cor0
----
2865
3256
9200

query I rowsort
SELECT ALL col2 + + col1 - col2 * col1 AS col2 FROM tab1
----
-1139
-1324
-503

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 - - col2 col2 FROM tab2
----
104
117
34

query I rowsort
SELECT ALL col2 * - tab2.col1 + - col2 FROM tab2
----
-1560
-684
-864

query I rowsort
SELECT + col2 * + cor0.col2 - + col0 * cor0.col2 FROM tab2 AS cor0
----
-1352
-1558
540

onlyif mysql # use DIV operator for integer division
query I rowsort label-2335
SELECT + col2 DIV col1 + - col2 AS col2 FROM tab1 AS cor0
----
-52
-52
-89

skipif mysql # not compatible
query I rowsort label-2335
SELECT + col2 / col1 + - col2 AS col2 FROM tab1 AS cor0
----
-52
-52
-89

onlyif mysql # use DIV operator for integer division
query I rowsort label-2336
SELECT ALL col2 DIV col0 + + col0 AS col2 FROM tab2
----
10
78
79

skipif mysql # not compatible
query I rowsort label-2336
SELECT ALL col2 / col0 + + col0 AS col2 FROM tab2
----
10
78
79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2337
SELECT DISTINCT + 64 + tab0.col0 / CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2337
SELECT DISTINCT + 64 + tab0.col0 / CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query I rowsort
SELECT ALL col2 + col0 * ( col1 ) AS col1 FROM tab1
----
1136
132
697

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 41 * cor0.col1 col0 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 245588c0f06bec9ab1fff652cc3a8899

query I rowsort
SELECT DISTINCT + col2 * - col2 + 44 FROM tab2
----
-1400
-632
-685

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0 cor0 CROSS JOIN tab0, tab0 cor1, tab1 AS cor2
----
972 values hashing to 88213a0de4c0a44aaefe8bbffbcaf44a

query I rowsort
SELECT + cor0.col2 + col2 * 77 FROM tab1 cor0
----
4212
4446
7488

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2343
SELECT - col1 * 94 + col0 * + col2 + - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2343
SELECT - col1 * 94 + col0 * + col2 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2344
SELECT + col0 + - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2344
SELECT + col0 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 + - 95 + + col0 FROM tab1 cor0
----
-111
-146
-88

query I rowsort
SELECT + cor0.col1 * col2 - ( + col0 ) * + col1 AS col2 FROM tab1 AS cor0
----
-70
1326
208

query I rowsort
SELECT + col1 + ( + col1 ) AS col0 FROM tab1 cor0
----
20
26
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + ( col1 ) - + col2 * + 96 col0 FROM tab2 AS cor0
----
-2809
-4991
-7098

query I rowsort
SELECT ALL + col0 * col0 * + col2 FROM tab1 AS cor0
----
233472
486
614400

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL IN ( col1 * tab2.col1 * - col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - col0 + tab1.col2 col0 FROM tab1
----
-4039
-6304
45

query I rowsort
SELECT ALL col1 * + col0 * col0 AS col1 FROM tab0 WHERE NULL NOT IN ( - col0 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-2353
SELECT - col2 + - col1 DIV + col0 AS col1 FROM tab0
----
-3
-36
-83

skipif mysql # not compatible
query I rowsort label-2353
SELECT - col2 + - col1 / + col0 AS col1 FROM tab0
----
-3
-36
-83

query I rowsort
SELECT - col1 + col2 / col1 AS col0 FROM tab2 WHERE NULL NOT BETWEEN + col0 AND NULL
----

query I rowsort
SELECT ALL col2 * + col1 + col2 * - col1 FROM tab1
----
0
0
0

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + col1 ) > - col1
----

query I rowsort
SELECT - col2 - - tab2.col2 FROM tab2
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2358
SELECT DISTINCT tab0.col2 + - col0 DIV + tab0.col0 FROM tab0
----
0
32
81

skipif mysql # not compatible
query I rowsort label-2358
SELECT DISTINCT tab0.col2 + - col0 / + tab0.col0 FROM tab0
----
0
32
81

query I rowsort
SELECT + col2 + col1 * col0 AS col0 FROM tab2
----
1381
244
4628

onlyif mysql # use DIV operator for integer division
query I rowsort label-2360
SELECT - col1 + - col0 DIV + col1 FROM tab0 AS cor0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-2360
SELECT - col1 + - col0 / + col1 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT - 5 * col2 FROM tab0 AS cor0
----
-165
-410
-5

onlyif mysql # use DIV operator for integer division
query I rowsort label-2362
SELECT DISTINCT 61 * col2 DIV ( 27 * + col2 ) FROM tab1 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-2362
SELECT DISTINCT 61 * col2 / ( 27 * + col2 ) FROM tab1 AS cor0
----
2

query I rowsort
SELECT ALL - 1 * - col0 FROM tab0 AS cor0
----
24
35
89

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 NOT BETWEEN ( NULL ) AND - tab2.col1
----

query I rowsort
SELECT - col2 + col2 + + col0 FROM tab2
----
7
78
79

query I rowsort
SELECT + - col2 + - 31 * 23 FROM tab2 AS cor0
----
-739
-740
-751

query I rowsort
SELECT ALL + - col2 + cor0.col2 AS col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + + cor0.col0 * + col0 + - col2 AS col1 FROM tab2 AS cor0
----
22
6058
6203

query I rowsort
SELECT ALL cor0.col0 + - ( col0 ) FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT + ( + col1 ) * + col2 AS col0 FROM tab0 AS cor0
----
2838
7462
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2371
SELECT CAST( NULL AS SIGNED ) FROM tab0, tab0 AS cor0, tab2 cor1, tab1 AS cor2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

skipif mysql # not compatible
query I rowsort label-2371
SELECT CAST ( NULL AS INTEGER ) FROM tab0, tab0 AS cor0, tab2 cor1, tab1 AS cor2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

query I rowsort
SELECT - col0 + 84 * cor0.col2 FROM tab0 AS cor0
----
2748
49
6799

query I rowsort
SELECT DISTINCT - col1 * + col1 + - col1 * - ( col1 ) AS col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT + + 88 AS col0 FROM tab2 cor0
----
88
88
88

query I rowsort
SELECT DISTINCT - - ( - col2 ) * 23 + - col0 AS col0 FROM tab2 AS cor0
----
-628
-676
-953

query I rowsort
SELECT ALL + col1 * - col1 + 77 FROM tab0 AS cor0
----
-7319
-8204
-9332

query I rowsort
SELECT col2 - col0 * 8 FROM tab0 AS cor0
----
-159
-279
-630

query I rowsort
SELECT - 75 * col1 + - col1 * 11 FROM tab2 cor0
----
-1462
-2666
-5074

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2379
SELECT col1 / col0 + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2379
SELECT col1 / col0 + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-2380
SELECT col1 DIV - col0 + + 96 AS col0 FROM tab2 cor0
----
92
96
96

skipif mysql # not compatible
query I rowsort label-2380
SELECT col1 / - col0 + + 96 AS col0 FROM tab2 cor0
----
92
96
96

query I rowsort
SELECT + cor0.col0 + + ( + col2 ) * cor0.col2 AS col1 FROM tab0 AS cor0
----
1113
36
6813

query I rowsort
SELECT col0 * ( + 89 ) + cor0.col2 FROM tab2 AS cor0
----
650
6968
7069

query I rowsort
SELECT DISTINCT ( - tab1.col2 ) + + col1 AS col0 FROM tab1
----
-28
-47
-83

query I rowsort
SELECT + col1 * + 34 AS col2 FROM tab0 AS cor0
----
2924
3094
3298

query I rowsort
SELECT + col0 * 14 AS col0 FROM tab0 AS cor0
----
1246
336
490

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2386
SELECT + col1 * CAST( NULL AS SIGNED ) + col2 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2386
SELECT + col1 * CAST ( NULL AS INTEGER ) + col2 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 * + 79 * + col0 FROM tab0 AS cor0
----
-163056
-268205
-639821

query I rowsort
SELECT + col1 + ( + 58 ) * + col2 + col0 FROM tab1 AS cor0
----
3161
3380
5661

query I rowsort
SELECT DISTINCT - col1 * 74 AS col0 FROM tab2 AS cor0
----
-1258
-2294
-4366

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2390
SELECT - - col0 + + CAST( - col0 AS SIGNED ) * - col1 AS col2 FROM tab2 cor0
----
1422
224
4680

skipif mysql # not compatible
query I rowsort label-2390
SELECT - - col0 + + CAST ( - col0 AS INTEGER ) * - col1 AS col2 FROM tab2 cor0
----
1422
224
4680

query I rowsort
SELECT DISTINCT + tab1.col2 * tab2.col2 FROM tab2, tab0, tab1 AS cor0, tab1
----
9 values hashing to bbf44891fdcfbe372162a2e549d3eeed

query I rowsort
SELECT DISTINCT + col2 * ( col2 + - tab2.col2 ) AS col2 FROM tab2
----
0

query I rowsort
SELECT - ( cor0.col0 ) * - col0 FROM tab2 AS cor0
----
49
6084
6241

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2394
SELECT + col1 * - CAST( NULL AS SIGNED ) - col2 col2 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2394
SELECT + col1 * - CAST ( NULL AS INTEGER ) - col2 col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 * - 36 FROM tab2
----
1116
2124
612

query I rowsort
SELECT + col1 * - col0 - + col2 FROM tab1
----
-1136
-132
-697

query I rowsort
SELECT DISTINCT ( col2 * tab2.col1 ) FROM tab2
----
1534
646
837

query I rowsort
SELECT ALL 43 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 199105619049271147956de52e7f5ed4

onlyif mysql # use DIV operator for integer division
query I rowsort label-2399
SELECT + col0 * + col2 + + col2 DIV + ( col1 * col1 ) FROM tab0
----
35
7298
792

skipif mysql # not compatible
query I rowsort label-2399
SELECT + col0 * + col2 + + col2 / + ( col1 * col1 ) FROM tab0
----
35
7298
792

query I rowsort
SELECT ALL - - col2 + - col0 AS col0 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT ALL + - col1 * col2 + col0 FROM tab0 AS cor0
----
-2814
-62
-7373

query I rowsort
SELECT DISTINCT ( - col1 ) * tab2.col0 FROM tab2
----
-1343
-217
-4602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 90 col1 FROM tab2, tab2 cor0
----
9 values hashing to 96f7a90428db93f472e0d219bab64853

onlyif mysql # use DIV operator for integer division
query I rowsort label-2404
SELECT ALL + ( tab1.col2 ) DIV col1 AS col0 FROM tab1
----
2
5
7

skipif mysql # not compatible
query I rowsort label-2404
SELECT ALL + ( tab1.col2 ) / col1 AS col0 FROM tab1
----
2
5
7

query I rowsort
SELECT 82 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 99920d9f7cd9cdccef99cfa459ae6944

query I rowsort
SELECT + + ( + 17 ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 43298e43365fccb5146ea32003753c92

query I rowsort
SELECT col1 * col1 * col1 AS col1 FROM tab2
----
205379
29791
4913

query I rowsort
SELECT - + 18 AS col0 FROM tab1 cor0
----
-18
-18
-18

query I rowsort
SELECT + cor0.col0 + - col1 * - col0 * 14 AS col2 FROM tab2 AS cor0
----
18881
3045
64506

query I rowsort
SELECT - col2 + col1 * 45 AS col1 FROM tab0 AS cor0
----
3837
4013
4364

query I rowsort
SELECT - 34 * col1 - + cor0.col1 * + col0 FROM tab0 AS cor0
----
-11193
-4988
-6693

query I rowsort
SELECT DISTINCT ( tab1.col0 ) * col1 * + col2 + - tab1.col0 AS col1 FROM tab1
----
36416
4209
99760

onlyif mysql # use DIV operator for integer division
query I rowsort label-2413
SELECT + col0 + + col2 DIV + col0 + tab0.col2 FROM tab0
----
171
36
58

skipif mysql # not compatible
query I rowsort label-2413
SELECT + col0 + + col2 / + col0 + tab0.col2 FROM tab0
----
171
36
58

query I rowsort
SELECT DISTINCT 16 + col0 * col1 FROM tab1
----
1056
656
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 47 + - col2 * - col0 col0 FROM tab2
----
142
1981
2955

query I rowsort
SELECT DISTINCT cor0.col1 * - tab0.col0 FROM tab0, tab0 cor0
----
9 values hashing to 5e05f50cc51e966d7e055a113d30a5e0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2417
SELECT + col1 DIV - 95 + + col2 * col2 DIV col0 AS col0 FROM tab2
----
104
18
8

skipif mysql # not compatible
query I rowsort label-2417
SELECT + col1 / - 95 + + col2 * col2 / col0 AS col0 FROM tab2
----
104
18
8

onlyif mysql # use DIV operator for integer division
query I rowsort label-2418
SELECT DISTINCT + ( - col1 ) DIV + col2 + col1 FROM tab1 AS cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-2418
SELECT DISTINCT + ( - col1 ) / + col2 + col1 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT ALL + 76 AS col2 FROM tab2 AS cor0
----
76
76
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * - 98 * + col2 + - cor0.col2 col2 FROM tab1 AS cor0
----
122208
137538
55803

onlyif mysql # use DIV operator for integer division
query I rowsort label-2421
SELECT col2 + - col2 DIV cor0.col0 FROM tab0 AS cor0
----
1
32
82

skipif mysql # not compatible
query I rowsort label-2421
SELECT col2 + - col2 / cor0.col0 FROM tab0 AS cor0
----
1
32
82

query I rowsort
SELECT ALL - col2 * col2 + - ( + col1 ) * col2 AS col1 FROM tab2 AS cor0
----
-1566
-2090
-2210

query I rowsort
SELECT DISTINCT + 67 + - col1 + ( col0 ) AS col0 FROM tab1 AS cor0
----
121
134
44

onlyif mysql # use DIV operator for integer division
query I rowsort label-2424
SELECT + ( col2 ) + + col0 DIV cor0.col1 AS col1 FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-2424
SELECT + ( col2 ) + + col0 / cor0.col1 AS col1 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT ALL + col2 * col1 + 5 FROM tab1 AS cor0
----
1253
1409
575

query I rowsort
SELECT ALL 53 + - col1 AS col2 FROM tab0 AS cor0
----
-33
-38
-44

onlyif mysql # use DIV operator for integer division
query I rowsort label-2427
SELECT DISTINCT cor0.col2 DIV - col1 - + 81 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-2427
SELECT DISTINCT cor0.col2 / - col1 - + 81 FROM tab0 AS cor0
----
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * - cor0.col0 + col2 col2 FROM tab1 AS cor0
----
-4039
-6304
45

query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2, tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND tab0.col0
----

query I rowsort
SELECT DISTINCT + - col2 + cor0.col1 * col2 FROM tab0 cor0
----
2805
7380
96

query I rowsort
SELECT ALL - col0 * col1 - col0 * 7 AS col0 FROM tab1
----
-1088
-1600
-99

query I rowsort
SELECT col1 * + 86 AS col1 FROM tab2 AS cor0
----
1462
2666
5074

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 - + col0 col1 FROM tab2 AS cor0
----
-137
-38
-96

query I rowsort
SELECT DISTINCT - - col1 + 0 + 35 AS col2 FROM tab1 AS cor0
----
45
48
61

onlyif mysql # use DIV operator for integer division
query I rowsort label-2435
SELECT cor0.col1 DIV - col1 AS col1 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2435
SELECT cor0.col1 / - col1 AS col1 FROM tab2 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ALL - col0 * 80 AS col2 FROM tab0 AS cor0
----
-1920
-2800
-7120

query I rowsort
SELECT DISTINCT + - col1 * - 40 AS col2 FROM tab1 AS cor0
----
1040
400
520

query I rowsort
SELECT DISTINCT + 76 * - tab0.col1 FROM tab0
----
-6536
-6916
-7372

query I rowsort
SELECT ALL col2 * - 59 + col2 + col2 AS col2 FROM tab2 AS cor0
----
-1482
-1539
-2166

query I rowsort
SELECT DISTINCT + - col1 - ( ( col1 ) ) FROM tab2 AS cor0
----
-118
-34
-62

query I rowsort
SELECT ALL + col2 + col1 * + col1 AS col1 FROM tab1 AS cor0
----
157
265
730

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2442
SELECT - - col1 * - CAST( - col1 AS SIGNED ) * - col1 FROM tab0 AS cor0
----
-636056
-753571
-912673

skipif mysql # not compatible
query I rowsort label-2442
SELECT - - col1 * - CAST ( - col1 AS INTEGER ) * - col1 FROM tab0 AS cor0
----
-636056
-753571
-912673

query I rowsort
SELECT - col1 * + col2 + col0 * col2 - col0 * + col2 FROM tab1 cor0
----
-1248
-1404
-570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col0 col1 FROM tab2, tab0 AS cor0
----
24
35
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-2445
SELECT DISTINCT - 64 + 56 DIV - col2 FROM tab0 AS cor0
----
-120
-64
-65

skipif mysql # not compatible
query I rowsort label-2445
SELECT DISTINCT - 64 + 56 / - col2 FROM tab0 AS cor0
----
-120
-64
-65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + 13 col0 FROM tab2 AS cor0
----
-13
-14
-25

query I rowsort
SELECT 12 * + 38 FROM tab0, tab2 AS cor0
----
9 values hashing to cf4dccd74afeb1a295d889ddbf6f21bf

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2448
SELECT CAST( - 50 AS SIGNED ) * - col1 FROM tab2 AS cor0
----
1550
2950
850

skipif mysql # not compatible
query I rowsort label-2448
SELECT CAST ( - 50 AS INTEGER ) * - col1 FROM tab2 AS cor0
----
1550
2950
850

onlyif mysql # use DIV operator for integer division
query I rowsort label-2449
SELECT + cor0.col0 DIV + ( col0 * ( - 96 ) ) AS col1 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2449
SELECT + cor0.col0 / + ( col0 * ( - 96 ) ) AS col1 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT ( - 86 ) FROM tab1 AS cor0
----
-86

onlyif mysql # use DIV operator for integer division
query I rowsort label-2451
SELECT + 22 DIV + 4 FROM tab1 cor0
----
5
5
5

skipif mysql # not compatible
query I rowsort label-2451
SELECT + 22 / + 4 FROM tab1 cor0
----
5
5
5

query I rowsort
SELECT ALL 39 AS col1 FROM tab0, tab0 cor0
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf

onlyif mysql # use DIV operator for integer division
query I rowsort label-2453
SELECT ALL + col0 DIV + col0 + col2 * + 13 AS col1 FROM tab2
----
339
352
495

skipif mysql # not compatible
query I rowsort label-2453
SELECT ALL + col0 / + col0 + col2 * + 13 AS col1 FROM tab2
----
339
352
495

query I rowsort
SELECT ALL ( + col0 ) + + col2 * + col0 AS col0 FROM tab1
----
165
3712
7760

query I rowsort
SELECT - 30 FROM tab0, tab1 cor0
----
9 values hashing to 56fa25f9fb8040460fe3c894000ea8fb

query I rowsort
SELECT DISTINCT - col1 + + 41 FROM tab1 AS cor0
----
15
28
31

query I rowsort
SELECT ALL + + 79 * + 46 AS col2 FROM tab1 AS cor0
----
3634
3634
3634

query I rowsort
SELECT ALL cor0.col0 * - col2 * + cor0.col1 FROM tab2 AS cor0
----
-119652
-51034
-5859

query I rowsort
SELECT - 91 * - 95 FROM tab1 cor0
----
8645
8645
8645

query I rowsort
SELECT DISTINCT - - col0 + + col2 * col2 AS col2 FROM tab1 AS cor0
----
2919
3313
9296

onlyif mysql # use DIV operator for integer division
query I rowsort label-2461
SELECT ALL - col1 DIV 50 + + col1 FROM tab1
----
10
13
26

skipif mysql # not compatible
query I rowsort label-2461
SELECT ALL - col1 / 50 + + col1 FROM tab1
----
10
13
26

query I rowsort
SELECT ALL + 31 AS col2 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to c3c6f92f0ca72d71793339f88a57e336

query I rowsort
SELECT ALL + + col0 * col1 - - col2 FROM tab0 AS cor0
----
2097
3396
8181

query I rowsort
SELECT + 99 AS col2 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db

query I rowsort
SELECT ALL - col2 + + ( - col2 ) FROM tab1 AS cor0
----
-108
-114
-192

query I rowsort
SELECT DISTINCT + col0 + col0 * 94 FROM tab0 AS cor0
----
2280
3325
8455

query I rowsort
SELECT ALL + col2 * col1 + - 67 AS col2 FROM tab0 cor0
----
2771
30
7395

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + ( 43 + - cor0.col1 ) col1 FROM tab1 AS cor0
----
110
20
97

query I rowsort
SELECT - + ( cor0.col2 ) * col1 * - col2 AS col0 FROM tab0 AS cor0
----
611884
93654
97

query I rowsort
SELECT - 93 * - col0 AS col1 FROM tab2 AS cor0
----
651
7254
7347

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + col2 ) - 11 col0 FROM tab2 AS cor0
----
15
16
27

onlyif mysql # use DIV operator for integer division
query I rowsort label-2472
SELECT col0 * + col2 + col0 DIV col0 + - tab2.col0 FROM tab2
----
183
1951
2924

skipif mysql # not compatible
query I rowsort label-2472
SELECT col0 * + col2 + col0 / col0 + - tab2.col0 FROM tab2
----
183
1951
2924

onlyif mysql # use DIV operator for integer division
query I rowsort label-2473
SELECT - - cor0.col0 * col0 + 35 DIV col2 + cor0.col0 DIV + 93 AS col2 FROM tab0 AS cor0
----
1260
577
7921

skipif mysql # not compatible
query I rowsort label-2473
SELECT - - cor0.col0 * col0 + 35 / col2 + cor0.col0 / + 93 AS col2 FROM tab0 AS cor0
----
1260
577
7921

query I rowsort
SELECT + - 18 + + col1 + - cor0.col2 * + col1 AS col0 FROM tab2 AS cor0
----
-1493
-647
-824

query I rowsort
SELECT ALL 62 FROM tab1, tab0, tab2 AS cor0, tab0 AS cor1
----
81 values hashing to 0bc652564a158b9c0f7952026f90b60a

query I rowsort
SELECT 34 * col0 FROM tab2
----
238
2652
2686

query I rowsort
SELECT + ( col0 ) + cor0.col1 AS col0 FROM tab2 AS cor0
----
137
38
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2478
SELECT col0 + col1 + - CAST( 8 AS SIGNED ) FROM tab0 AS cor0
----
102
124
172

skipif mysql # not compatible
query I rowsort label-2478
SELECT col0 + col1 + - CAST ( 8 AS INTEGER ) FROM tab0 AS cor0
----
102
124
172

query I rowsort
SELECT ( 44 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 * - col0 + - cor0.col0 col1 FROM tab2 cor0
----
-1422
-224
-4680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2481
SELECT DISTINCT + - col0 + CAST( 20 AS SIGNED ) FROM tab1 AS cor0
----
-44
-60
17

skipif mysql # not compatible
query I rowsort label-2481
SELECT DISTINCT + - col0 + CAST ( 20 AS INTEGER ) FROM tab1 AS cor0
----
-44
-60
17

query I rowsort
SELECT DISTINCT 61 + tab0.col2 AS col2 FROM tab0, tab0 AS cor0
----
143
62
94

query I rowsort
SELECT + + 60 + - col1 AS col1 FROM tab1 AS cor0
----
34
47
50

query I rowsort
SELECT + col1 + 59 * col0 + col0 * col1 AS col1 FROM tab2 AS cor0
----
6021
661
9263

query I rowsort
SELECT - tab2.col1 * col2 * col1 AS col0 FROM tab2
----
-10982
-25947
-90506

query I rowsort
SELECT + 77 FROM tab0, tab1, tab1 AS cor0, tab1 AS cor1
----
81 values hashing to 38f487c2147ee2fe05527e38c5e0503b

query I rowsort
SELECT + ( - col1 ) * + col2 + cor0.col0 AS col2 FROM tab2 cor0
----
-1456
-567
-830

query I rowsort
SELECT - tab1.col1 * 97 FROM tab1
----
-1261
-2522
-970

query I rowsort
SELECT + ( + col2 ) + + col2 AS col2 FROM tab1 AS cor0
----
108
114
192

query I rowsort
SELECT - - col0 - - col0 AS col0 FROM tab0 cor0
----
178
48
70

query I rowsort
SELECT + + cor0.col0 + + col2 + col2 AS col2 FROM tab1 AS cor0
----
111
178
272

query I rowsort
SELECT ALL + - ( - 50 ) + + col2 FROM tab2 AS cor0
----
76
77
88

query I rowsort
SELECT + ( + col0 ) * + col1 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT ALL + cor0.col2 + col2 * - 92 * - col1 FROM tab1 cor0
----
114912
129222
52497

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - cor0.col1 col1 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT - col1 + col0 * 90 AS col2 FROM tab0 AS cor0
----
2074
3053
7919

query I rowsort
SELECT DISTINCT - col0 * col2 + - col1 + col2 AS col1 FROM tab2 AS cor0
----
-193
-2061
-2981

onlyif mysql # use DIV operator for integer division
query I rowsort label-2498
SELECT + tab0.col1 DIV - ( col0 + ( col1 ) ) AS col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2498
SELECT + tab0.col1 / - ( col0 + ( col1 ) ) AS col2 FROM tab0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2499
SELECT 37 DIV + 32 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2499
SELECT 37 / + 32 FROM tab1
----
1
1
1

query I rowsort
SELECT DISTINCT 91 + + col0 FROM tab2 cor0
----
169
170
98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2501
SELECT + col2 * + col0 + - CAST( col0 AS SIGNED ) + col1 col1 FROM tab1 cor0
----
185
3594
7613

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2501
SELECT + col2 * + col0 + - CAST ( col0 AS INTEGER ) + col1 col1 FROM tab1 cor0
----
185
3594
7613

query I rowsort
SELECT ALL - 56 + - cor0.col0 AS col1 FROM tab1 AS cor0
----
-120
-136
-59

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2503
SELECT - cor0.col0 * col1 + CAST( + col0 AS SIGNED ) + col1 * - cor0.col1 * col1 AS col1 FROM tab0 AS cor0
----
-638096
-761581
-916033

skipif mysql # not compatible
query I rowsort label-2503
SELECT - cor0.col0 * col1 + CAST ( + col0 AS INTEGER ) + col1 * - cor0.col1 * col1 AS col1 FROM tab0 AS cor0
----
-638096
-761581
-916033

query I rowsort
SELECT DISTINCT 37 FROM tab0, tab0 AS cor0, tab2 cor1
----
37

query I rowsort
SELECT + col2 + ( col2 ) * - col2 FROM tab2 AS cor0
----
-1406
-650
-702

onlyif mysql # use DIV operator for integer division
query I rowsort label-2506
SELECT - col2 DIV 43 AS col0 FROM tab0 cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2506
SELECT - col2 / 43 AS col0 FROM tab0 cor0
----
-1
0
0

query I rowsort
SELECT + 74 FROM tab0, tab1 AS cor0
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31

query I rowsort
SELECT ALL col1 + 90 * col0 FROM tab2 cor0
----
661
7079
7127

onlyif mysql # use DIV operator for integer division
query I rowsort label-2509
SELECT ALL cor0.col1 DIV col0 - cor0.col0 * + cor0.col0 AS col0 FROM tab1 AS cor0
----
-1
-4096
-6400

skipif mysql # not compatible
query I rowsort label-2509
SELECT ALL cor0.col1 / col0 - cor0.col0 * + cor0.col0 AS col0 FROM tab1 AS cor0
----
-1
-4096
-6400

query I rowsort
SELECT ALL + - ( + 45 ) FROM tab0 AS cor0
----
-45
-45
-45

query I rowsort
SELECT + 57 * 41 AS col2 FROM tab0 cor0
----
2337
2337
2337

query I rowsort
SELECT ALL + col0 * ( col1 ) + col1 + cor0.col0 FROM tab2 AS cor0
----
1439
255
4739

query I rowsort
SELECT DISTINCT + - 68 + col2 FROM tab1 AS cor0
----
-11
-14
28

query I rowsort
SELECT ALL ( + 86 ) + + col2 * col1 AS col1 FROM tab0 AS cor0
----
183
2924
7548

query I rowsort
SELECT DISTINCT - + col1 + 72 AS col2 FROM tab0 AS cor0
----
-14
-19
-25

query I rowsort
SELECT tab1.col1 * col0 * - col0 - col1 FROM tab1
----
-260
-40970
-83213

onlyif mysql # use DIV operator for integer division
query I rowsort label-2517
SELECT + col1 DIV col0 + + col2 AS col2 FROM tab1
----
57
62
96

skipif mysql # not compatible
query I rowsort label-2517
SELECT + col1 / col0 + + col2 AS col2 FROM tab1
----
57
62
96

query I rowsort
SELECT DISTINCT + col0 + 79 * 28 AS col2 FROM tab1 AS cor0
----
2215
2276
2292

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2519
SELECT ALL tab2.col0 * CAST( NULL AS SIGNED ) + col0 * - col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2519
SELECT ALL tab2.col0 * CAST ( NULL AS INTEGER ) + col0 * - col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL tab1.col0 + + 63 * + 35 * + col0 AS col2 FROM tab1
----
141184
176480
6618

query I rowsort
SELECT DISTINCT - - cor0.col1 AS col1 FROM tab2 cor0
----
17
31
59

query I rowsort
SELECT - col1 * + 43 - + col1 FROM tab2 AS cor0
----
-1364
-2596
-748

query I rowsort
SELECT DISTINCT + cor0.col0 FROM tab2, tab0 AS cor0, tab0 cor1
----
24
35
89

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2524
SELECT ALL CAST( col2 AS SIGNED ) col0 FROM tab1
----
54
57
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2524
SELECT ALL CAST ( col2 AS INTEGER ) col0 FROM tab1
----
54
57
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 55 col0 FROM tab1
----
55
55
55

query I rowsort
SELECT 0 + + 26 * + col1 AS col1 FROM tab2
----
1534
442
806

query I rowsort
SELECT + 66 * col1 + col1 FROM tab0 AS cor0
----
5762
6097
6499

query I rowsort
SELECT ALL + 55 + cor0.col2 AS col1 FROM tab1 cor0
----
109
112
151

query I rowsort
SELECT DISTINCT - ( col1 ) + 28 FROM tab1 cor0
----
15
18
2

query I rowsort
SELECT ALL cor0.col1 * + col0 AS col1 FROM tab1 AS cor0
----
1040
640
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + + cor0.col0 * - cor0.col2 col1 FROM tab2 AS cor0
----
-158
-1969
-2985

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * col2 * - col0 col1 FROM tab2 AS cor0
----
1323
158184
237158

query I rowsort
SELECT DISTINCT - + 2 AS col0 FROM tab1 AS cor0
----
-2

query I rowsort
SELECT ALL + - ( col2 ) + col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + + col2 + col2 + - col2 FROM tab1 cor0
----
54
57
96

query I rowsort
SELECT DISTINCT + - 19 + col1 * + col1 AS col0 FROM tab2 AS cor0
----
270
3462
942

query I rowsort
SELECT DISTINCT + - 85 + + col0 FROM tab1 AS cor0
----
-21
-5
-82

query I rowsort
SELECT col0 * + tab1.col2 - - col2 AS col2 FROM tab1
----
216
3705
7776

query I rowsort
SELECT - + ( + col1 ) AS col2 FROM tab1 cor0
----
-10
-13
-26

query I rowsort
SELECT DISTINCT - 55 * col0 FROM tab2 AS cor0
----
-385
-4290
-4345

onlyif mysql # use DIV operator for integer division
query I rowsort label-2541
SELECT + col2 + col0 DIV col0 FROM tab0 AS cor0
----
2
34
83

skipif mysql # not compatible
query I rowsort label-2541
SELECT + col2 + col0 / col0 FROM tab0 AS cor0
----
2
34
83

query I rowsort
SELECT col1 * col1 * - col2 AS col2 FROM tab1
----
-16224
-36504
-5700

query I rowsort
SELECT ALL + col1 + - col2 * ( - col2 * col0 ) + col2 * + 7 AS col2 FROM tab2 cor0
----
114359
52969
5323

query I rowsort
SELECT + 23 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to 546d49aa433406dd83ea19885588e658

query I rowsort
SELECT col2 + + cor0.col1 * - cor0.col2 * col1 AS col1 FROM tab0 cor0
----
-244035
-678960
-9408

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2546
SELECT ALL - - col2 * col0 + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2546
SELECT ALL - - col2 * col0 + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col1 + - cor0.col1 * col2 FROM tab0 AS cor0
----
-2752
-7371
0

query I rowsort
SELECT - - col1 + + 9 AS col0 FROM tab1 AS cor0
----
19
22
35

query I rowsort
SELECT - 31 + + 59 * - col0 AS col1 FROM tab1 AS cor0
----
-208
-3807
-4751

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col0 + 28 * col1 col2 FROM tab2 AS cor0
----
1730
555
875

query I rowsort
SELECT + ( 19 ) * cor0.col0 + - cor0.col1 FROM tab1 cor0
----
1206
1507
31

query I rowsort
SELECT - ( + 58 ) * col2 AS col0 FROM tab0 AS cor0
----
-1914
-4756
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( 13 ) col2 FROM tab2 cor0
----
-13

query I rowsort
SELECT - + 78 * 65 * - col2 + col0 * - 86 + col2 FROM tab0 cor0
----
165279
2061
408168

query I rowsort
SELECT DISTINCT ( + 85 ) * - col0 FROM tab2 AS cor0
----
-595
-6630
-6715

query I rowsort
SELECT col2 * + 62 AS col0 FROM tab1 AS cor0
----
3348
3534
5952

query I rowsort
SELECT ALL - - cor0.col1 * col1 AS col0 FROM tab1 AS cor0
----
100
169
676

onlyif mysql # use DIV operator for integer division
query I rowsort label-2558
SELECT DISTINCT - col0 DIV - tab1.col2 + ( - col0 ) + col0 * col2 * + col0 FROM tab1
----
233409
483
614320

skipif mysql # not compatible
query I rowsort label-2558
SELECT DISTINCT - col0 / - tab1.col2 + ( - col0 ) + col0 * col2 * + col0 FROM tab1
----
233409
483
614320

query I rowsort
SELECT DISTINCT col1 * ( col0 * col2 ) + - 31 AS col2 FROM tab0
----
3364
664087
68081

query I rowsort
SELECT + col1 - + 69 FROM tab0 cor0
----
17
22
28

onlyif mysql # use DIV operator for integer division
query I rowsort label-2561
SELECT DISTINCT - 67 DIV col0 + col0 FROM tab2
----
-2
78
79

skipif mysql # not compatible
query I rowsort label-2561
SELECT DISTINCT - 67 / col0 + col0 FROM tab2
----
-2
78
79

query IIIIIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab2 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab0 AS cor2, tab0 AS cor3
----
13122 values hashing to 4dc070caf1aa06a1f3bd0afe28eb4987

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2563
SELECT CAST( - 29 AS SIGNED ) + - col2 AS col2 FROM tab2 AS cor0
----
-55
-56
-67

skipif mysql # not compatible
query I rowsort label-2563
SELECT CAST ( - 29 AS INTEGER ) + - col2 AS col2 FROM tab2 AS cor0
----
-55
-56
-67

query I rowsort
SELECT - cor0.col1 + - tab1.col1 * + tab1.col2 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 6512c9574a0564be223fd0668611f43d

query I rowsort
SELECT + 53 * + col1 AS col2 FROM tab1
----
1378
530
689

onlyif mysql # use DIV operator for integer division
query I rowsort label-2566
SELECT + - col0 DIV 17 - - 31 FROM tab2 AS cor0
----
27
27
31

skipif mysql # not compatible
query I rowsort label-2566
SELECT + - col0 / 17 - - 31 FROM tab2 AS cor0
----
27
27
31

query I rowsort
SELECT + col1 * 73 FROM tab0 AS cor0
----
6278
6643
7081

onlyif mysql # use DIV operator for integer division
query I rowsort label-2568
SELECT - - col1 DIV + 32 + - 28 - - col0 AS col2 FROM tab0 AS cor0
----
-2
10
63

skipif mysql # not compatible
query I rowsort label-2568
SELECT - - col1 / + 32 + - 28 - - col0 AS col2 FROM tab0 AS cor0
----
-2
10
63

query I rowsort
SELECT + col1 - ( + ( col1 ) ) FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - col2 * - 67 - - col1 FROM tab2 AS cor0
----
1801
1840
2563

onlyif mysql # use DIV operator for integer division
query I rowsort label-2571
SELECT + col2 DIV - 19 - + col1 AS col2 FROM tab1 cor0
----
-13
-18
-28

skipif mysql # not compatible
query I rowsort label-2571
SELECT + col2 / - 19 - + col1 AS col2 FROM tab1 cor0
----
-13
-18
-28

query I rowsort
SELECT ALL 62 AS col2 FROM tab2, tab1 cor0
----
9 values hashing to 51dd2771d516ceb935483eded78a5fa0

query I rowsort
SELECT ( 13 ) * + cor0.col0 AS col2 FROM tab2 AS cor0
----
1014
1027
91

onlyif mysql # use DIV operator for integer division
query I rowsort label-2574
SELECT ( col0 ) * col1 + + 59 DIV - col1 AS col0 FROM tab2
----
1340
216
4601

skipif mysql # not compatible
query I rowsort label-2574
SELECT ( col0 ) * col1 + + 59 / - col1 AS col0 FROM tab2
----
1340
216
4601

query I rowsort
SELECT DISTINCT - col2 * 88 FROM tab1
----
-4752
-5016
-8448

query I rowsort
SELECT + col2 + - col2 * - col2 * col1 AS col0 FROM tab1 cor0
----
119904
32547
75870

query I rowsort
SELECT ALL - - 99 AS col2 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 05ea182fd6036c7f5e0ea08fc061cc67

query I rowsort
SELECT ALL + 30 * col0 FROM tab1
----
1920
2400
90

query I rowsort
SELECT ALL - tab1.col2 * + col0 FROM tab1
----
-162
-3648
-7680

query I rowsort
SELECT + 92 * - col1 * ( - col1 ) AS col1 FROM tab1 cor0
----
15548
62192
9200

query I rowsort
SELECT DISTINCT 95 + col2 * 29 FROM tab2 cor0
----
1197
849
878

onlyif mysql # use DIV operator for integer division
query I rowsort label-2582
SELECT ALL col1 * col1 DIV col1 AS col1 FROM tab1
----
10
13
26

skipif mysql # not compatible
query I rowsort label-2582
SELECT ALL col1 * col1 / col1 AS col1 FROM tab1
----
10
13
26

query I rowsort
SELECT - col1 * col2 + + col2 FROM tab1 cor0
----
-1152
-1350
-513

query I rowsort
SELECT col1 + + col0 * col2 AS col2 FROM tab2 AS cor0
----
2087
220
3019

onlyif mysql # use DIV operator for integer division
query I rowsort label-2585
SELECT - ( col0 ) * col2 DIV col0 + col0 FROM tab0
----
-9
34
7

skipif mysql # not compatible
query I rowsort label-2585
SELECT - ( col0 ) * col2 / col0 + col0 FROM tab0
----
-9
34
7

query I rowsort
SELECT col0 * col1 - + col1 FROM tab2
----
1326
186
4543

query I rowsort
SELECT + col1 * col2 + + col2 AS col0 FROM tab2
----
1560
684
864

query I rowsort
SELECT ALL - col0 * cor0.col1 + - col0 AS col1 FROM tab2 cor0
----
-1422
-224
-4680

query I rowsort
SELECT DISTINCT - col1 + - cor0.col0 * col1 * col0 FROM tab1 AS cor0
----
-260
-40970
-83213

onlyif mysql # use DIV operator for integer division
query I rowsort label-2590
SELECT + 52 * - col2 - - col0 DIV col2 FROM tab0
----
-17
-1716
-4263

skipif mysql # not compatible
query I rowsort label-2590
SELECT + 52 * - col2 - - col0 / col2 FROM tab0
----
-17
-1716
-4263

query I rowsort
SELECT DISTINCT 91 + + col0 AS col2 FROM tab2
----
169
170
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-2592
SELECT DISTINCT - col0 * col0 * + col1 + col0 DIV + col1 FROM tab0
----
-118825
-49536
-720811

skipif mysql # not compatible
query I rowsort label-2592
SELECT DISTINCT - col0 * col0 * + col1 + col0 / + col1 FROM tab0
----
-118825
-49536
-720811

query I rowsort
SELECT - 99 * - col0 FROM tab0
----
2376
3465
8811

query I rowsort
SELECT ( col2 * col1 ) - tab1.col1 FROM tab1
----
1235
1378
560

query I rowsort
SELECT 91 + col0 * col2 AS col2 FROM tab0 AS cor0
----
126
7389
883

onlyif mysql # use DIV operator for integer division
query I rowsort label-2596
SELECT + - ( - 84 ) + - col1 DIV - col0 FROM tab1 AS cor0
----
84
84
92

skipif mysql # not compatible
query I rowsort label-2596
SELECT + - ( - 84 ) + - col1 / - col0 FROM tab1 AS cor0
----
84
84
92

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2597
SELECT - CAST( NULL AS SIGNED ) + 18 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2597
SELECT - CAST ( NULL AS INTEGER ) + 18 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - 99 * cor0.col2 FROM tab0 AS cor0
----
-3267
-8118
-99

onlyif mysql # use DIV operator for integer division
query I rowsort label-2599
SELECT + - cor0.col2 DIV + col2 AS col2 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2599
SELECT + - cor0.col2 / + col2 AS col2 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT - 98 + + col1 AS col0 FROM tab2 AS cor0
----
-39
-67
-81

query I rowsort
SELECT - + 16 AS col0 FROM tab0 cor0
----
-16
-16
-16

query I rowsort
SELECT - 91 * - col1 AS col0 FROM tab2
----
1547
2821
5369

query I rowsort
SELECT - 50 * - col1 AS col0 FROM tab0
----
4300
4550
4850

query I rowsort
SELECT ALL - 91 * + cor0.col1 FROM tab1 cor0
----
-1183
-2366
-910

query I rowsort
SELECT DISTINCT - ( cor0.col2 ) AS col0 FROM tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT + 74 AS col0 FROM tab0 cor0
----
74
74
74

query I rowsort
SELECT - ( + col0 ) + + col1 * col2 AS col1 FROM tab0 AS cor0
----
2814
62
7373

query I rowsort
SELECT - - cor0.col2 * + 83 AS col0 FROM tab2 AS cor0
----
2158
2241
3154

query I rowsort
SELECT ALL - - 72 * - 47 * col0 AS col0 FROM tab2 AS cor0
----
-23688
-263952
-267336

onlyif mysql # use DIV operator for integer division
query I rowsort label-2610
SELECT ALL col2 * - col0 DIV - cor0.col0 AS col2 FROM tab2 AS cor0
----
26
27
38

skipif mysql # not compatible
query I rowsort label-2610
SELECT ALL col2 * - col0 / - cor0.col0 AS col2 FROM tab2 AS cor0
----
26
27
38

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab0, tab0 cor2
----
3645 values hashing to 53ea9df66efbebef5063fb0b15c25baa

onlyif mysql # use DIV operator for integer division
query I rowsort label-2612
SELECT ALL col0 + col2 DIV + col0 FROM tab0 AS cor0
----
25
35
89

skipif mysql # not compatible
query I rowsort label-2612
SELECT ALL col0 + col2 / + col0 FROM tab0 AS cor0
----
25
35
89

query I rowsort
SELECT DISTINCT - 71 AS col1 FROM tab0, tab2 AS cor0
----
-71

query I rowsort
SELECT ALL + 57 * + col2 FROM tab2
----
1482
1539
2166

query I rowsort
SELECT ALL col1 * 50 AS col2 FROM tab0
----
4300
4550
4850

query I rowsort
SELECT DISTINCT - 49 * col0 AS col0 FROM tab2
----
-343
-3822
-3871

query I rowsort
SELECT DISTINCT col0 * - 35 FROM tab2 cor0
----
-245
-2730
-2765

onlyif mysql # use DIV operator for integer division
query I rowsort label-2618
SELECT 4 + - 65 DIV - tab0.col0 FROM tab0
----
4
5
6

skipif mysql # not compatible
query I rowsort label-2618
SELECT 4 + - 65 / - tab0.col0 FROM tab0
----
4
5
6

query I rowsort
SELECT col1 * - 18 + + tab0.col0 * - 19 FROM tab0
----
-2004
-2411
-3329

query I rowsort
SELECT DISTINCT col1 * + 60 + col1 + - col1 FROM tab1 AS cor0
----
1560
600
780

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2621
SELECT ALL col1 * - CAST( - col1 AS SIGNED ) FROM tab1 AS cor0
----
100
169
676

skipif mysql # not compatible
query I rowsort label-2621
SELECT ALL col1 * - CAST ( - col1 AS INTEGER ) FROM tab1 AS cor0
----
100
169
676

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2622
SELECT - col1 * 95 * + ( col1 ) + - CAST( NULL AS SIGNED ) + - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2622
SELECT - col1 * 95 * + ( col1 ) + - CAST ( NULL AS INTEGER ) + - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - col1 + col2 * col2 AS col2 FROM tab2 AS cor0
----
1427
617
698

query I rowsort
SELECT + + col2 + - col2 * - col2 AS col2 FROM tab1 AS cor0
----
2970
3306
9312

query I rowsort
SELECT col0 + + col0 + - 78 AS col0 FROM tab2
----
-64
78
80

query I rowsort
SELECT DISTINCT col1 + - col0 + col2 * - col1 * + col2 AS col0 FROM tab2
----
-22575
-24610
-39903

query I rowsort
SELECT + 93 AS col2 FROM tab1, tab2 cor0
----
9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde

onlyif mysql # use DIV operator for integer division
query I rowsort label-2628
SELECT col0 + + col2 DIV - ( col1 ) FROM tab1
----
1
59
73

skipif mysql # not compatible
query I rowsort label-2628
SELECT col0 + + col2 / - ( col1 ) FROM tab1
----
1
59
73

query I rowsort
SELECT ALL + + col0 * - col2 * + 71 FROM tab2 cor0
----
-13419
-143988
-213142

query I rowsort
SELECT DISTINCT + col1 * + 17 FROM tab2 AS cor0
----
1003
289
527

query I rowsort
SELECT - + col0 + + 28 * - cor0.col2 + - cor0.col0 AS col0 FROM tab1 AS cor0
----
-1518
-1724
-2848

query I rowsort
SELECT ALL col1 * + col0 * + cor0.col2 AS col0 FROM tab1 AS cor0
----
36480
4212
99840

query I rowsort
SELECT + 66 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 29794915b585eea848ad670075452c88

onlyif mysql # use DIV operator for integer division
query I rowsort label-2634
SELECT DISTINCT col0 DIV 35 + col2 FROM tab0
----
2
33
84

skipif mysql # not compatible
query I rowsort label-2634
SELECT DISTINCT col0 / 35 + col2 FROM tab0
----
2
33
84

query I rowsort
SELECT ALL + col1 + 97 FROM tab1
----
107
110
123

query I rowsort
SELECT + col2 * tab1.col1 + col1 AS col2 FROM tab1
----
1261
1430
580

query I rowsort
SELECT col0 * - col2 + + cor0.col1 AS col0 FROM tab1 AS cor0
----
-136
-3638
-7667

query I rowsort
SELECT ALL - col2 + col1 AS col2 FROM tab0 cor0
----
53
9
96

query I rowsort
SELECT ALL + + col0 + 28 * - ( col0 ) FROM tab2 cor0
----
-189
-2106
-2133

onlyif mysql # use DIV operator for integer division
query I rowsort label-2640
SELECT + col2 DIV 77 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2640
SELECT + col2 / 77 FROM tab0
----
0
0
1

query I rowsort
SELECT col0 * 33 FROM tab1
----
2112
2640
99

query I rowsort
SELECT DISTINCT + + cor0.col1 + + col2 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT + - ( col0 ) * + col2 + ( + col1 + col0 ) AS col0 FROM tab1 AS cor0
----
-133
-3574
-7587

onlyif mysql # use DIV operator for integer division
query I rowsort label-2644
SELECT DISTINCT 61 DIV - 53 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2644
SELECT DISTINCT 61 / - 53 FROM tab2 AS cor0
----
-1

query I rowsort
SELECT ( - 12 ) + col1 FROM tab1 cor0
----
-2
1
14

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2646
SELECT ALL CAST( NULL AS SIGNED ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2646
SELECT ALL CAST ( NULL AS INTEGER ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 * 47 AS col0 FROM tab1 AS cor0
----
141
3008
3760

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 6 * cor0.col0 col0 FROM tab0 AS cor0
----
-144
-210
-534

query I rowsort
SELECT DISTINCT - - col1 + + 10 FROM tab2 AS cor0
----
27
41
69

query I rowsort
SELECT ALL - + col1 * - 54 AS col2 FROM tab0 AS cor0
----
4644
4914
5238

onlyif mysql # use DIV operator for integer division
query I rowsort label-2651
SELECT ALL col2 * col2 DIV + col1 FROM tab1 AS cor0
----
112
324
708

skipif mysql # not compatible
query I rowsort label-2651
SELECT ALL col2 * col2 / + col1 FROM tab1 AS cor0
----
112
324
708

query I rowsort
SELECT DISTINCT - 6 * + 48 FROM tab1 AS cor0
----
-288

query I rowsort
SELECT + 6 FROM tab1, tab1 AS cor0
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821

query I rowsort
SELECT col1 * - col0 + + col1 AS col2 FROM tab0 AS cor0
----
-1978
-3298
-8008

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 87 + + col1 col2 FROM tab1 AS cor0
----
100
113
97

query I rowsort
SELECT DISTINCT 66 * col2 * cor0.col0 AS col2 FROM tab2 AS cor0
----
12474
133848
198132

query I rowsort
SELECT DISTINCT + + 19 + + col2 * cor0.col1 AS col1 FROM tab1 AS cor0
----
1267
1423
589

query I rowsort
SELECT - ( - col2 ) + 93 AS col0 FROM tab0 AS cor0
----
126
175
94

query I rowsort
SELECT - col0 * col1 + + ( col0 ) - + col2 * col1 AS col2 FROM tab0 cor0
----
-15472
-3457
-4878

query I rowsort
SELECT DISTINCT + col0 + cor0.col2 + cor0.col0 FROM tab0 cor0
----
260
71
81

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2661
SELECT ALL col2 * + col0 + CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2661
SELECT ALL col2 * + col0 + CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - ( col1 ) + + col2 * - 34 AS col2 FROM tab0 AS cor0
----
-1208
-131
-2879

query I rowsort
SELECT ALL + col2 - col0 * + col2 FROM tab0 AS cor0
----
-34
-7216
-759

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 47 col1 FROM tab2 AS cor0
----
-47
-47
-47

query I rowsort
SELECT DISTINCT - - cor0.col2 + col1 * ( + 91 ) * col1 FROM tab2 AS cor0
----
26337
316797
87478

query I rowsort
SELECT ALL - - col2 * col2 - col2 AS col0 FROM tab0 AS cor0
----
0
1056
6642

query I rowsort
SELECT DISTINCT + col2 + - col2 * + col0 FROM tab1 AS cor0
----
-108
-3591
-7584

query I rowsort
SELECT DISTINCT cor0.col2 * - col2 + - ( col2 ) * col2 * + col1 + + col0 * col2 FROM tab2 AS cor0
----
-22990
-23139
-38532

query I rowsort
SELECT + col2 + + 26 FROM tab0 AS cor0
----
108
27
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-2670
SELECT cor0.col0 DIV 64 - col0 DIV - col1 AS col0 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2670
SELECT cor0.col0 / 64 - col0 / - col1 AS col0 FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT ALL col2 + ( - col0 ) AS col2 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT ALL + col0 + + col0 * 64 AS col0 FROM tab2 AS cor0
----
455
5070
5135

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - col2 / 98 + - col2 * col0 - + CAST ( + cor0.col1 AS REAL ) / col1 AS col2 FROM tab1 AS cor0
----
-163
-3649
-7681

query I rowsort
SELECT - col0 * + cor0.col1 + + col0 AS col1 FROM tab1 AS cor0
----
-576
-75
-960

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2675
SELECT DISTINCT + ( col2 * CAST( - 25 AS SIGNED ) ) + col2 AS col2 FROM tab1
----
-1296
-1368
-2304

skipif mysql # not compatible
query I rowsort label-2675
SELECT DISTINCT + ( col2 * CAST ( - 25 AS INTEGER ) ) + col2 AS col2 FROM tab1
----
-1296
-1368
-2304

query I rowsort
SELECT ALL col2 + col2 * - ( tab0.col2 ) FROM tab0
----
-1056
-6642
0

query I rowsort
SELECT DISTINCT 35 AS col2 FROM tab2, tab0 cor0, tab1 AS cor1
----
35

query I rowsort
SELECT - col0 * col1 + - col0 * + col2 AS col2 FROM tab1 AS cor0
----
-240
-4288
-8720

query I rowsort
SELECT + + col1 + - col2 + 96 AS col1 FROM tab2 AS cor0
----
100
129
75

query I rowsort
SELECT + col1 * - ( col2 ) FROM tab0 AS cor0
----
-2838
-7462
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 + + tab1.col0 + + cor0.col1 col0 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to c6b1439814b70218813e08f2a8d7a041

query I rowsort
SELECT DISTINCT - col1 * ( + col2 ) * col2 FROM tab1 AS cor0
----
-119808
-32490
-75816

query I rowsort
SELECT DISTINCT + - col1 + col0 * - cor0.col1 AS col2 FROM tab2 AS cor0
----
-1360
-248
-4661

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2684
SELECT + cor0.col0 * CAST( col0 * + cor0.col2 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
233472
486
614400

skipif mysql # not compatible
query I rowsort label-2684
SELECT + cor0.col0 * CAST ( col0 * + cor0.col2 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
233472
486
614400

onlyif mysql # use DIV operator for integer division
query I rowsort label-2685
SELECT + col0 DIV + ( ( col0 ) ) FROM tab2 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2685
SELECT + col0 / + ( ( col0 ) ) FROM tab2 cor0
----
1
1
1

query I rowsort
SELECT - - ( - col2 ) + - cor0.col0 * col2 FROM tab0 cor0
----
-36
-7380
-825

query I rowsort
SELECT ( + 85 ) * col1 + col2 AS col2 FROM tab1 cor0
----
1201
2264
907

query I rowsort
SELECT tab0.col0 FROM tab2, tab0 AS cor0 CROSS JOIN tab0
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT - 72 * - col0 + + col2 FROM tab0 AS cor0
----
1761
2521
6490

onlyif mysql # use DIV operator for integer division
query I rowsort label-2690
SELECT col2 DIV col1 + + col1 AS col2 FROM tab1 AS cor0
----
15
20
28

skipif mysql # not compatible
query I rowsort label-2690
SELECT col2 / col1 + + col1 AS col2 FROM tab1 AS cor0
----
15
20
28

query I rowsort
SELECT - + 52 AS col2 FROM tab1 AS cor0
----
-52
-52
-52

query I rowsort
SELECT + - 56 + col1 AS col2 FROM tab1 AS cor0
----
-30
-43
-46

query I rowsort
SELECT + + 3 + - col2 FROM tab2 AS cor0
----
-23
-24
-35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col0 col0 FROM tab2, tab1 AS cor0
----
3
64
80

query I rowsort
SELECT + 25 + col2 AS col1 FROM tab2 cor0
----
51
52
63

query I rowsort
SELECT cor0.col2 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + 65 ) * col0 col0 FROM tab0
----
1560
2275
5785

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 25 col2 FROM tab2
----
25

query I rowsort
SELECT - 71 + + col1 FROM tab2 AS cor0
----
-12
-40
-54

query I rowsort
SELECT ALL - + col0 + col0 * + ( - col2 * + cor0.col2 ) - + col2 * cor0.col0 AS col1 FROM tab1 AS cor0
----
-211648
-745040
-8913

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 + col2 col0 FROM tab0 AS cor0
----
171
36
57

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2702
SELECT DISTINCT - cor0.col1 * CAST( ( + col1 ) * + col0 AS SIGNED ) + + cor0.col2 * - col1 col0 FROM tab0 AS cor0
----
-180342
-329412
-744471

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2702
SELECT DISTINCT - cor0.col1 * CAST ( ( + col1 ) * + col0 AS INTEGER ) + + cor0.col2 * - col1 col0 FROM tab0 AS cor0
----
-180342
-329412
-744471

query I rowsort
SELECT tab2.col1 + 48 FROM tab2, tab1 AS cor0
----
9 values hashing to baa3880a16e4ff665796379a71bd1bd1

query I rowsort
SELECT ALL 77 + + col1 AS col1 FROM tab2 AS cor0
----
108
136
94

query I rowsort
SELECT ALL + 94 + + 53 AS col2 FROM tab0 cor0
----
147
147
147

onlyif mysql # use DIV operator for integer division
query I rowsort label-2706
SELECT + - 8 DIV 64 + col0 AS col1 FROM tab2 AS cor0
----
7
78
79

skipif mysql # not compatible
query I rowsort label-2706
SELECT + - 8 / 64 + col0 AS col1 FROM tab2 AS cor0
----
7
78
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-2707
SELECT DISTINCT + col1 DIV col1 - 55 FROM tab0
----
-54

skipif mysql # not compatible
query I rowsort label-2707
SELECT DISTINCT + col1 / col1 - 55 FROM tab0
----
-54

query I rowsort
SELECT + col1 * + col2 - + col2 AS col0 FROM tab2
----
1508
608
810

query I rowsort
SELECT DISTINCT col0 + - ( tab1.col0 ) * col1 + col0 * - col0 FROM tab1
----
-4672
-7360
-84

query I rowsort
SELECT + ( - col2 * col1 ) + ( col0 ) FROM tab0
----
-2814
-62
-7373

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2711
SELECT + CAST( NULL AS SIGNED ) + + col1 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2711
SELECT + CAST ( NULL AS INTEGER ) + + col1 AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-2712
SELECT DISTINCT + col1 + + col2 DIV tab1.col0 AS col2 FROM tab1
----
10
14
44

skipif mysql # not compatible
query I rowsort label-2712
SELECT DISTINCT + col1 + + col2 / tab1.col0 AS col2 FROM tab1
----
10
14
44

query I rowsort
SELECT ALL 53 * col1 + - col2 * col0 FROM tab2
----
-2101
1099
1454

query I rowsort
SELECT col1 * + 51 - + col2 FROM tab0 AS cor0
----
4353
4559
4946

onlyif mysql # use DIV operator for integer division
query I rowsort label-2715
SELECT + col0 + + col2 DIV + col0 AS col1 FROM tab0 AS cor0
----
25
35
89

skipif mysql # not compatible
query I rowsort label-2715
SELECT + col0 + + col2 / + col0 AS col1 FROM tab0 AS cor0
----
25
35
89

query I rowsort
SELECT - 92 + col0 AS col2 FROM tab2 AS cor0
----
-13
-14
-85

query I rowsort
SELECT + col2 * + ( col1 ) + 39 * 24 FROM tab0 AS cor0
----
1033
3774
8398

onlyif mysql # use DIV operator for integer division
query I rowsort label-2718
SELECT ALL - cor0.col0 DIV cor0.col2 col0 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 4d1db5f16a92c7c30b5402daeb92ffa7

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2718
SELECT ALL - cor0.col0 / cor0.col2 col0 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 4d1db5f16a92c7c30b5402daeb92ffa7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2719
SELECT DISTINCT col2 * CAST( + col0 AS SIGNED ) - col2 AS col0 FROM tab2 AS cor0
----
162
2002
2964

skipif mysql # not compatible
query I rowsort label-2719
SELECT DISTINCT col2 * CAST ( + col0 AS INTEGER ) - col2 AS col0 FROM tab2 AS cor0
----
162
2002
2964

query I rowsort
SELECT ALL + col2 * 48 AS col0 FROM tab0 AS cor0
----
1584
3936
48

query I rowsort
SELECT + col2 + - col2 * - col2 AS col2 FROM tab0 AS cor0
----
1122
2
6806

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2722
SELECT DISTINCT + + cor0.col1 + CAST( + col0 AS SIGNED ) * + cor0.col0 + col0 FROM tab2 AS cor0
----
6221
6337
87

skipif mysql # not compatible
query I rowsort label-2722
SELECT DISTINCT + + cor0.col1 + CAST ( + col0 AS INTEGER ) * + cor0.col0 + col0 FROM tab2 AS cor0
----
6221
6337
87

query I rowsort
SELECT 60 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to a97561e17ecaa618227c75a57b268f33

query I rowsort
SELECT ALL - 49 FROM tab2, tab1 AS cor0
----
9 values hashing to 01b1fa22fee872a7ba64f90d6046ffae

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2725
SELECT + + col0 + + CAST( NULL AS SIGNED ) * + ( - col2 * - col2 ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2725
SELECT + + col0 + + CAST ( NULL AS INTEGER ) * + ( - col2 * - col2 ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 + ( - 49 ) AS col1 FROM tab1 AS cor0
----
-103
-106
-145

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * 46 + - col0 col0 FROM tab2 AS cor0
----
1419
2636
703

query I rowsort
SELECT ALL + cor0.col0 + col0 + col1 FROM tab2 AS cor0
----
175
215
45

query I rowsort
SELECT DISTINCT + + col2 * col2 AS col1 FROM tab2 cor0
----
1444
676
729

onlyif mysql # use DIV operator for integer division
query I rowsort label-2730
SELECT + - col0 + col2 DIV col2 FROM tab1 AS cor0
----
-2
-63
-79

skipif mysql # not compatible
query I rowsort label-2730
SELECT + - col0 + col2 / col2 FROM tab1 AS cor0
----
-2
-63
-79

query I rowsort
SELECT DISTINCT + - cor0.col1 + - col1 + 10 FROM tab1 AS cor0
----
-10
-16
-42

onlyif mysql # use DIV operator for integer division
query I rowsort label-2732
SELECT ALL col2 DIV + col2 AS col2 FROM tab1 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2732
SELECT ALL col2 / + col2 AS col2 FROM tab1 cor0
----
1
1
1

query I rowsort
SELECT ALL + cor1.col1 AS col1 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

query I rowsort
SELECT - + 13 + cor0.col0 * - col0 AS col1 FROM tab2 cor0
----
-6097
-62
-6254

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 63 + 41 col1 FROM tab1 AS cor0
----
-22
-22
-22

query I rowsort
SELECT ALL + 82 FROM tab2, tab1 AS cor0, tab1 AS cor1, tab0 AS cor2
----
81 values hashing to 660751b3166f5cb8964b7ef659605795

query I rowsort
SELECT ALL - 72 FROM tab2, tab0 AS cor0
----
9 values hashing to ad521144c976ff25e77cdf10a84d1dc6

query I rowsort
SELECT ALL col2 * - col1 + 66 + ( cor0.col0 ) * + 17 AS col0 FROM tab1 AS cor0
----
-1287
178
584

query I rowsort
SELECT ALL - 20 + col1 * + col2 AS col1 FROM tab0 AS cor0
----
2818
7442
77

query I rowsort
SELECT ALL col1 * cor0.col2 + 51 AS col2 FROM tab1 AS cor0
----
1299
1455
621

query I rowsort
SELECT DISTINCT - 24 * col1 + col1 + - col1 FROM tab2 AS cor0
----
-1416
-408
-744

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( col1 ) + col2 * + col0 * + col1 col1 FROM tab1 AS cor0
----
36490
4238
99853

query I rowsort
SELECT DISTINCT 18 + col0 * cor0.col0 FROM tab2 cor0
----
6102
6259
67

query I rowsort
SELECT DISTINCT + + col0 - col1 * + 11 AS col1 FROM tab2 AS cor0
----
-108
-334
-571

onlyif mysql # use DIV operator for integer division
query I rowsort label-2745
SELECT + col1 DIV + col1 + - ( col0 + - cor0.col2 ) FROM tab1 AS cor0
----
-6
17
52

skipif mysql # not compatible
query I rowsort label-2745
SELECT + col1 / + col1 + - ( col0 + - cor0.col2 ) FROM tab1 AS cor0
----
-6
17
52

query I rowsort
SELECT - + col0 * + col2 - + cor0.col2 FROM tab0 cor0
----
-36
-7380
-825

query I rowsort
SELECT ALL tab1.col0 AS col2 FROM tab1, tab0 AS cor0, tab2 cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

query I rowsort
SELECT col2 + col2 * col2 + 40 AS col2 FROM tab1
----
3010
3346
9352

query I rowsort
SELECT DISTINCT - 1 + - col0 * + 8 * + 80 AS col2 FROM tab1
----
-1921
-40961
-51201

query I rowsort
SELECT DISTINCT 59 + + col0 FROM tab0
----
148
83
94

query I rowsort
SELECT - tab0.col1 * - cor0.col0 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 7bf5e0e3ec1be8bea20f7ba84b6c99c3

onlyif mysql # use DIV operator for integer division
query I rowsort label-2752
SELECT + 60 * col0 DIV col1 FROM tab1
----
369
384
6

skipif mysql # not compatible
query I rowsort label-2752
SELECT + 60 * col0 / col1 FROM tab1
----
369
384
6

query I rowsort
SELECT DISTINCT + cor1.col1 AS col1 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
10
13
26

query I rowsort
SELECT DISTINCT + tab2.col0 + + col2 AS col1 FROM tab2
----
104
117
34

query I rowsort
SELECT + cor0.col2 * col0 - col1 FROM tab0 AS cor0
----
-62
706
7207

query I rowsort
SELECT + col0 + ( col2 ) * - col2 FROM tab1 AS cor0
----
-2913
-3185
-9136

query I rowsort
SELECT + col2 - ( + 60 ) FROM tab0 AS cor0
----
-27
-59
22

query IIIIII rowsort
SELECT ALL * FROM tab0, tab2 AS cor0 WHERE NULL <= NULL
----

query I rowsort
SELECT - 63 * cor0.col0 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5fe55fbf550243cc78cad91efb6adb29

onlyif mysql # use DIV operator for integer division
query I rowsort label-2760
SELECT ALL col1 * - col2 DIV + col2 + ( tab0.col0 ) * col1 FROM tab0
----
1978
3298
8008

skipif mysql # not compatible
query I rowsort label-2760
SELECT ALL col1 * - col2 / + col2 + ( tab0.col0 ) * col1 FROM tab0
----
1978
3298
8008

query I rowsort
SELECT DISTINCT + cor0.col0 * + 50 AS col1 FROM tab1, tab1 cor0
----
150
3200
4000

query I rowsort
SELECT - col1 * - 70 FROM tab2
----
1190
2170
4130

query I rowsort
SELECT DISTINCT + cor0.col1 + cor0.col2 * cor0.col0 * - col1 FROM tab1 AS cor0
----
-36470
-4186
-99827

query I rowsort
SELECT ALL - cor0.col1 + - ( - 7 * col0 ) AS col0 FROM tab0 AS cor0
----
148
532
82

query I rowsort
SELECT - + cor0.col1 + ( - col2 ) FROM tab1 AS cor0
----
-109
-67
-80

query I rowsort
SELECT + + cor0.col0 FROM tab1, tab0, tab2 cor0
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

onlyif mysql # use DIV operator for integer division
query I rowsort label-2767
SELECT + col2 DIV + 67 AS col1 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2767
SELECT + col2 / + 67 AS col1 FROM tab0
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + col2 + - 49 col2 FROM tab0 AS cor0
----
-14
7249
743

query I rowsort
SELECT + 9 + + col2 AS col1 FROM tab1
----
105
63
66

query I rowsort
SELECT ALL - tab1.col2 * col2 AS col1 FROM tab1
----
-2916
-3249
-9216

onlyif mysql # use DIV operator for integer division
query I rowsort label-2771
SELECT col0 * tab1.col2 * - col2 + col1 DIV col2 AS col1 FROM tab1
----
-207936
-737280
-8748

skipif mysql # not compatible
query I rowsort label-2771
SELECT col0 * tab1.col2 * - col2 + col1 / col2 AS col1 FROM tab1
----
-207936
-737280
-8748

query I rowsort
SELECT DISTINCT - - cor0.col2 FROM tab1, tab1 AS cor0, tab2 cor1, tab2, tab2 AS cor2
----
54
57
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-2773
SELECT ALL col1 DIV - col1 + + col0 FROM tab1 AS cor0
----
2
63
79

skipif mysql # not compatible
query I rowsort label-2773
SELECT ALL col1 / - col1 + + col0 FROM tab1 AS cor0
----
2
63
79

query I rowsort
SELECT ALL + 4 * 32 + + col2 + col2 * + ( + col1 * 0 ) AS col0 FROM tab2 AS cor0
----
154
155
166

query I rowsort
SELECT DISTINCT - 92 * - tab0.col2 * col0 FROM tab0
----
3220
671416
72864

query I rowsort
SELECT DISTINCT + 77 * col2 FROM tab1
----
4158
4389
7392

query I rowsort
SELECT ALL - 1 AS col2 FROM tab0 cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT col0 + col2 * + 70 AS col2 FROM tab2 AS cor0
----
1897
1898
2739

query I rowsort
SELECT 5 * + col0 AS col1 FROM tab0 AS cor0
----
120
175
445

query I rowsort
SELECT ALL + ( - col2 ) * 15 AS col2 FROM tab0 cor0
----
-1230
-15
-495

query I rowsort
SELECT ALL - col0 * + col0 * col1 FROM tab0 AS cor0
----
-118825
-49536
-720811

query I rowsort
SELECT - col2 * col1 * + col0 AS col0 FROM tab0 cor0
----
-3395
-664118
-68112

query I rowsort
SELECT + + col1 * - cor0.col1 AS col1 FROM tab2 AS cor0
----
-289
-3481
-961

query I rowsort
SELECT DISTINCT + col0 + col2 * - col2 FROM tab2 AS cor0
----
-1365
-598
-722

query I rowsort
SELECT tab0.col0 - - 73 FROM tab0, tab1 AS cor0
----
9 values hashing to 0d335dceb56be9a3434bcc659b11313c

query I rowsort
SELECT + tab1.col0 - 93 * - col2 AS col0 FROM tab1
----
5025
5365
9008

query I rowsort
SELECT DISTINCT + 13 FROM tab2, tab0 AS cor0, tab0 cor1
----
13

query I rowsort
SELECT DISTINCT + tab0.col2 * - tab0.col1 FROM tab0
----
-2838
-7462
-97

query I rowsort
SELECT - 7 FROM tab0, tab1 cor0, tab2 AS cor1
----
27 values hashing to 82db7c0390abae7ccf4512b1302a6466

query I rowsort
SELECT ( - col2 ) + + col0 AS col0 FROM tab2 AS cor0
----
-20
41
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-2791
SELECT + + col1 + col0 DIV - col1 FROM tab2 AS cor0
----
13
31
58

skipif mysql # not compatible
query I rowsort label-2791
SELECT + + col1 + col0 / - col1 FROM tab2 AS cor0
----
13
31
58

query I rowsort
SELECT + ( + cor0.col2 ) FROM tab0 cor0
----
1
33
82

query I rowsort
SELECT DISTINCT + 86 * + 28 FROM tab1 AS cor0
----
2408

query I rowsort
SELECT ( - 55 ) * col2 AS col2 FROM tab2 AS cor0
----
-1430
-1485
-2090

query I rowsort
SELECT + - 14 AS col2 FROM tab2 AS cor0
----
-14
-14
-14

query I rowsort
SELECT DISTINCT + + 37 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
37

query I rowsort
SELECT - ( - col0 ) + - ( + col0 ) AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + ( - cor0.col2 ) + - col2 * cor0.col1 + + col2 * cor0.col2 FROM tab0 AS cor0
----
-1782
-820
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-2799
SELECT col2 * col2 DIV + col1 + 13 * - cor0.col1 * 16 - - col2 AS col1 FROM tab2 AS cor0
----
-12235
-3414
-6398

skipif mysql # not compatible
query I rowsort label-2799
SELECT col2 * col2 / + col1 + 13 * - cor0.col1 * 16 - - col2 AS col1 FROM tab2 AS cor0
----
-12235
-3414
-6398

query I rowsort
SELECT DISTINCT col1 * col2 + col1 * - col2 * + col1 AS col2 FROM tab1 AS cor0
----
-14976
-35100
-5130

query I rowsort
SELECT ( col1 ) - 8 FROM tab2 AS cor0
----
23
51
9

skipif mysql # not compatible
query I rowsort
SELECT - col0 + CAST ( - 87 AS REAL ) AS col1 FROM tab2 cor0
----
-165
-166
-94

query I rowsort
SELECT + cor0.col0 + - col2 + 66 FROM tab2 AS cor0
----
107
118
46

query I rowsort
SELECT - col0 * + 75 + - col1 FROM tab0 AS cor0
----
-1886
-2722
-6766

query I rowsort
SELECT + col1 - cor0.col1 AS col0 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT col1 + + ( - cor0.col2 ) * col1 FROM tab0 cor0
----
-2752
-7371
0

query I rowsort
SELECT - + col0 * cor0.col1 * 17 + - col1 * ( ( col0 ) ) AS col2 FROM tab1 AS cor0
----
-11520
-1404
-18720

query I rowsort
SELECT col2 * col1 + 7 * cor0.col2 FROM tab0 AS cor0
----
104
3069
8036

query I rowsort
SELECT DISTINCT + - col0 + col1 AS col2 FROM tab2 cor0
----
-19
-62
24

query I rowsort
SELECT DISTINCT + col0 + + col0 * 34 FROM tab1 AS cor0
----
105
2240
2800

onlyif mysql # use DIV operator for integer division
query I rowsort label-2811
SELECT + - cor0.col1 DIV - col2 + - 75 FROM tab0 cor0
----
-73
-74
22

skipif mysql # not compatible
query I rowsort label-2811
SELECT + - cor0.col1 / - col2 + - 75 FROM tab0 cor0
----
-73
-74
22

onlyif mysql # use DIV operator for integer division
query I rowsort label-2812
SELECT ALL - col0 * 16 - - 25 DIV col2 AS col1 FROM tab0 AS cor0
----
-1424
-384
-535

skipif mysql # not compatible
query I rowsort label-2812
SELECT ALL - col0 * 16 - - 25 / col2 AS col1 FROM tab0 AS cor0
----
-1424
-384
-535

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + 12 + - 83 col2 FROM tab1 AS cor0
----
-1235
-731
-767

query I rowsort
SELECT DISTINCT - col2 * col2 + - 10 FROM tab0 AS cor0
----
-1099
-11
-6734

query I rowsort
SELECT DISTINCT col1 * + 2 + col0 AS col0 FROM tab0 AS cor0
----
196
229
271

query I rowsort
SELECT DISTINCT + + col2 + ( + ( + col1 ) ) FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT ALL - + col0 + + 20 AS col1 FROM tab0 cor0
----
-15
-4
-69

query I rowsort
SELECT ALL + cor0.col1 * - ( - ( col0 ) ) * col2 AS col2 FROM tab2 AS cor0
----
119652
51034
5859

query I rowsort
SELECT col0 * col1 - col2 FROM tab0 AS cor0
----
2031
3394
8017

query I rowsort
SELECT DISTINCT - col0 - + ( + 78 ) AS col2 FROM tab1 AS cor0
----
-142
-158
-81

onlyif mysql # use DIV operator for integer division
query I rowsort label-2821
SELECT DISTINCT - + col2 + 9 DIV 46 FROM tab0 AS cor0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-2821
SELECT DISTINCT - + col2 + 9 / 46 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT ALL - cor0.col1 * 37 + + 6 * + col0 * + 35 - col2 FROM tab0 AS cor0
----
15241
1825
3760

query I rowsort
SELECT - + col2 * - col2 + cor0.col0 FROM tab2 AS cor0
----
1523
736
754

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 17 col0 FROM tab1 AS cor0
----
17
17
17

query I rowsort
SELECT DISTINCT + 62 * col1 AS col2 FROM tab1 AS cor0
----
1612
620
806

query I rowsort
SELECT ALL + col2 + + 27 FROM tab1 cor0
----
123
81
84

query I rowsort
SELECT DISTINCT - col1 - col2 * + col2 AS col1 FROM tab0 AS cor0
----
-1175
-6815
-98

query I rowsort
SELECT DISTINCT + - 21 * - col0 AS col1 FROM tab2 AS cor0
----
147
1638
1659

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * 27 + - 57 col2 FROM tab0
----
-2379
-2514
-2676

query I rowsort
SELECT + + 24 * - 4 FROM tab2 AS cor0 CROSS JOIN tab0, tab2 AS cor1
----
27 values hashing to a7b3e5dd01c8929180b7ffda67f79798

query I rowsort
SELECT + 25 * + col0 FROM tab2 cor0
----
175
1950
1975

query I rowsort
SELECT DISTINCT col0 * col2 * + cor0.col2 FROM tab0 AS cor0
----
26136
35
598436

query I rowsort
SELECT ALL col1 * col2 * col1 AS col1 FROM tab0
----
244068
679042
9409

query I rowsort
SELECT ALL col2 * - 71 FROM tab2
----
-1846
-1917
-2698

onlyif mysql # use DIV operator for integer division
query I rowsort label-2835
SELECT - col1 DIV + tab0.col0 FROM tab0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-2835
SELECT - col1 / + tab0.col0 FROM tab0
----
-1
-2
-3

query I rowsort
SELECT ALL - 83 - - tab1.col0 FROM tab1
----
-19
-3
-80

query I rowsort
SELECT DISTINCT 13 * - col0 AS col0 FROM tab2 AS cor0
----
-1014
-1027
-91

onlyif mysql # use DIV operator for integer division
query I rowsort label-2838
SELECT ALL col2 DIV - cor0.col1 FROM tab2 cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-2838
SELECT ALL col2 / - cor0.col1 FROM tab2 cor0
----
-2
0
0

query I rowsort
SELECT + - ( - col2 ) - col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - ( - col1 ) + + cor0.col0 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT DISTINCT + 56 * + col1 FROM tab1 AS cor0
----
1456
560
728

query I rowsort
SELECT + col0 + - cor0.col1 AS col2 FROM tab1 AS cor0
----
-23
54
67

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2843
SELECT ALL - CAST( + ( + col2 ) AS SIGNED ) * CAST( 86 AS SIGNED ) FROM tab1 cor0
----
-4644
-4902
-8256

skipif mysql # not compatible
query I rowsort label-2843
SELECT ALL - CAST ( + ( + col2 ) AS INTEGER ) * CAST ( 86 AS INTEGER ) FROM tab1 cor0
----
-4644
-4902
-8256

query I rowsort
SELECT + col1 * col0 + + col1 + col0 FROM tab1 AS cor0
----
107
1133
714

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col1 + - col2 + 39 col1 FROM tab2 AS cor0
----
-16
-19
-46

query I rowsort
SELECT ALL + 18 + col1 * + 72 FROM tab2 AS cor0
----
1242
2250
4266

onlyif mysql # use DIV operator for integer division
query I rowsort label-2847
SELECT cor0.col0 + col1 DIV + CAST( - 66 AS SIGNED ) col0 FROM tab0 AS cor0
----
23
34
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2847
SELECT cor0.col0 + col1 / + CAST ( - 66 AS INTEGER ) col0 FROM tab0 AS cor0
----
23
34
88

query I rowsort
SELECT - col2 * - col2 * + ( + 18 ) FROM tab2
----
12168
13122
25992

query I rowsort
SELECT DISTINCT + cor0.col2 + + cor0.col1 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT DISTINCT - 84 AS col1 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
-84

onlyif mysql # use DIV operator for integer division
query I rowsort label-2851
SELECT + 18 * + col0 + 25 DIV + 91 + col2 * - cor0.col2 AS col1 FROM tab2 cor0
----
-22
-603
728

skipif mysql # not compatible
query I rowsort label-2851
SELECT + 18 * + col0 + 25 / + 91 + col2 * - cor0.col2 AS col1 FROM tab2 cor0
----
-22
-603
728

query I rowsort
SELECT 60 FROM tab2, tab2 AS cor0, tab0, tab0 AS cor1
----
81 values hashing to 1ef27a1d2784b3ab642571630db70349

query I rowsort
SELECT DISTINCT + 56 * + col1 FROM tab2 AS cor0
----
1736
3304
952

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 9 + - col1 + col2 col1 FROM tab2 AS cor0
----
-24
30
5

query I rowsort
SELECT ALL - 61 + - col0 AS col0 FROM tab2 AS cor0
----
-139
-140
-68

onlyif mysql # use DIV operator for integer division
query I rowsort label-2856
SELECT tab2.col2 * 14 DIV - col1 + col2 DIV - col1 FROM tab2
----
-12
-33
-6

skipif mysql # not compatible
query I rowsort label-2856
SELECT tab2.col2 * 14 / - col1 + col2 / - col1 FROM tab2
----
-12
-33
-6

skipif mysql # not compatible
query I rowsort
SELECT ALL col1 - + CAST ( + col2 AS REAL ) AS col1 FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT - - col0 * + 27 FROM tab0 AS cor0
----
2403
648
945

query I rowsort
SELECT DISTINCT - col2 * - 14 FROM tab2 AS cor0
----
364
378
532

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + 3 col0 FROM tab0
----
27
38
92

query I rowsort
SELECT col1 + col2 * 28 FROM tab2
----
1081
787
787

query I rowsort
SELECT - col0 + - ( col2 ) FROM tab1 AS cor0
----
-121
-176
-57

query I rowsort
SELECT ALL - - col2 * - col0 + 46 AS col0 FROM tab1 cor0
----
-116
-3602
-7634

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2864
SELECT ALL col0 / CAST( NULL AS DECIMAL ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2864
SELECT ALL col0 / CAST ( NULL AS REAL ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-2865
SELECT DISTINCT col1 DIV + CAST( + col0 * col2 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2865
SELECT DISTINCT col1 / + CAST ( + col0 * col2 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT + col1 * - cor0.col2 + - col0 AS col2 FROM tab2 AS cor0
----
-1612
-725
-844

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2867
SELECT DISTINCT + CAST( NULL AS SIGNED ) + col0 * + cor0.col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2867
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + col0 * + cor0.col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL + 37 * col2 + + col2 * col2 FROM tab2 AS cor0
----
1638
1728
2850

query I rowsort
SELECT - ( 14 ) + + col0 * - col1 AS col2 FROM tab1 AS cor0
----
-1054
-654
-92

query I rowsort
SELECT DISTINCT - - 2 * - col2 AS col2 FROM tab2 AS cor0
----
-52
-54
-76

query I rowsort
SELECT ALL - ( col2 ) - col2 AS col0 FROM tab1 cor0
----
-108
-114
-192

query I rowsort
SELECT ALL 29 * 12 + col0 FROM tab1 AS cor0
----
351
412
428

query I rowsort
SELECT DISTINCT + + col2 * col1 + col2 FROM tab0 AS cor0
----
2871
7544
98

query I rowsort
SELECT - ( ( col2 ) ) + ( 27 ) FROM tab1 AS cor0
----
-27
-30
-69

query I rowsort
SELECT DISTINCT - col1 + + col2 * col0 AS col0 FROM tab0 AS cor0
----
-62
706
7207

query I rowsort
SELECT col0 - cor0.col1 AS col1 FROM tab2 AS cor0
----
-24
19
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-2877
SELECT ALL + col0 * - col0 DIV col0 FROM tab1 cor0
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-2877
SELECT ALL + col0 * - col0 / col0 FROM tab1 cor0
----
-3
-64
-80

query I rowsort
SELECT + - col2 * col2 + col2 AS col1 FROM tab1 AS cor0
----
-2862
-3192
-9120

query I rowsort
SELECT ALL 7 AS col0 FROM tab2 AS cor0
----
7
7
7

query I rowsort
SELECT DISTINCT + cor0.col2 * - col1 * col0 + 56 FROM tab0 AS cor0
----
-3339
-664062
-68056

query I rowsort
SELECT DISTINCT col2 + ( col2 ) FROM tab2 AS cor0
----
52
54
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 - col2 col2 FROM tab1 cor0
----
-28
-47
-83

query I rowsort
SELECT - col2 + - col1 * + 23 * + col0 AS col1 FROM tab0
----
-186359
-47505
-78086

query I rowsort
SELECT ALL 32 + + 70 FROM tab0, tab0 cor0
----
9 values hashing to 792cf560743b7eec398ed5c7e48d1343

query I rowsort
SELECT - 77 * - col1 AS col0 FROM tab0 AS cor0
----
6622
7007
7469

query I rowsort
SELECT - 12 * col2 * col1 FROM tab1 AS cor0
----
-14976
-16848
-6840

query I rowsort
SELECT + + ( + col1 ) * col2 AS col0 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT 3 FROM tab1, tab2 AS cor0, tab2 AS cor1, tab1 AS cor2
----
81 values hashing to c7bd37716aa9c76e684a54f53d1ee343

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2889
SELECT ALL + - CAST( 52 AS SIGNED ) + - col1 * + col2 + - col1 AS col0 FROM tab0 AS cor0
----
-246
-2976
-7605

skipif mysql # not compatible
query I rowsort label-2889
SELECT ALL + - CAST ( 52 AS INTEGER ) + - col1 * + col2 + - col1 AS col0 FROM tab0 AS cor0
----
-246
-2976
-7605

query I rowsort
SELECT ALL + + 21 FROM tab1 AS cor0
----
21
21
21

query I rowsort
SELECT ALL - 72 AS col2 FROM tab2 cor0 CROSS JOIN tab1, tab1 AS cor1
----
27 values hashing to b7689a8218ac9df1cca20d2ba5c53888

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2892
SELECT + CAST( NULL AS SIGNED ) + 92 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2892
SELECT + CAST ( NULL AS INTEGER ) + 92 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-2893
SELECT DISTINCT tab2.col2 + 42 DIV tab2.col0 AS col1 FROM tab2
----
26
33
38

skipif mysql # not compatible
query I rowsort label-2893
SELECT DISTINCT tab2.col2 + 42 / tab2.col0 AS col1 FROM tab2
----
26
33
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 - - col2 col0 FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT DISTINCT 70 * col1 AS col1 FROM tab2
----
1190
2170
4130

query I rowsort
SELECT DISTINCT - col1 + + col0 * col1 AS col0 FROM tab0
----
1978
3298
8008

onlyif mysql # use DIV operator for integer division
query I rowsort label-2897
SELECT - tab0.col2 DIV 79 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2897
SELECT - tab0.col2 / 79 FROM tab0
----
-1
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 49 col1 FROM tab0
----
49

query I rowsort
SELECT col0 * - col2 * - col2 AS col2 FROM tab0 AS cor0
----
26136
35
598436

query I rowsort
SELECT col2 * col2 * + col2 FROM tab0 cor0
----
1
35937
551368

onlyif mysql # use DIV operator for integer division
query I rowsort label-2901
SELECT ALL + 6 DIV + col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2901
SELECT ALL + 6 / + col1 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL + col0 + - tab2.col1 AS col0 FROM tab2
----
-24
19
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 + + 33 * + cor0.col1 col0 FROM tab1 AS cor0
----
273
333
804

query I rowsort
SELECT DISTINCT col2 * - 59 FROM tab2 AS cor0
----
-1534
-1593
-2242

query I rowsort
SELECT - - col2 * col2 + 88 FROM tab1 AS cor0
----
3004
3337
9304

query I rowsort
SELECT + - col1 + 36 * + col0 * + col1 FROM tab0 AS cor0
----
122123
291473
74218

query I rowsort
SELECT DISTINCT + ( + 70 ) AS col2 FROM tab2, tab2 AS cor0
----
70

onlyif mysql # use DIV operator for integer division
query I rowsort label-2908
SELECT ALL col1 * + CAST( col2 AS SIGNED ) - - col2 DIV ( + col2 ) FROM tab0 AS cor0
----
2839
7463
98

skipif mysql # not compatible
query I rowsort label-2908
SELECT ALL col1 * + CAST ( col2 AS INTEGER ) - - col2 / ( + col2 ) FROM tab0 AS cor0
----
2839
7463
98

query I rowsort
SELECT DISTINCT - - col1 * 92 AS col0 FROM tab0 AS cor0
----
7912
8372
8924

query I rowsort
SELECT - col2 * + col2 - col0 * - col0 * - cor0.col1 AS col0 FROM tab2 AS cor0
----
-107541
-2248
-359632

query I rowsort
SELECT DISTINCT - 48 AS col2 FROM tab0 cor0
----
-48

query I rowsort
SELECT - 10 * + col0 + col0 FROM tab1 cor0
----
-27
-576
-720

query I rowsort
SELECT ALL - cor0.col1 * ( + 43 ) FROM tab0, tab0 AS cor0
----
9 values hashing to d63b9f5efe4a56f768f4f3965e711c5f

onlyif mysql # use DIV operator for integer division
query I rowsort label-2914
SELECT - + cor0.col2 DIV col0 + - col0 FROM tab2 cor0
----
-10
-78
-79

skipif mysql # not compatible
query I rowsort label-2914
SELECT - + cor0.col2 / col0 + - col0 FROM tab2 cor0
----
-10
-78
-79

query I rowsort
SELECT DISTINCT - 77 * + col2 - - col0 FROM tab1 AS cor0
----
-4155
-4325
-7312

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2916
SELECT DISTINCT + - col2 * CAST( NULL AS SIGNED ) + + 9 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2916
SELECT DISTINCT + - col2 * CAST ( NULL AS INTEGER ) + + 9 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL - col0 * 0 + col0 AS col0 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT - cor0.col2 + - 16 FROM tab2 AS cor0
----
-42
-43
-54

query I rowsort
SELECT ALL col1 + - 35 FROM tab1 AS cor0
----
-22
-25
-9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2920
SELECT ALL col1 * col1 + CAST( NULL AS SIGNED ) * - col1 col2 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2920
SELECT ALL col1 * col1 + CAST ( NULL AS INTEGER ) * - col1 col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 0 * - col1 + - col2 FROM tab2
----
-26
-27
-38

query I rowsort
SELECT DISTINCT + 90 * col0 AS col0 FROM tab0
----
2160
3150
8010

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * col2 + col2 - col1 col1 FROM tab1
----
-1165
-1376
-523

onlyif mysql # use DIV operator for integer division
query I rowsort label-2924
SELECT col1 - + col1 DIV + tab0.col0 AS col1 FROM tab0
----
83
90
95

skipif mysql # not compatible
query I rowsort label-2924
SELECT col1 - + col1 / + tab0.col0 AS col1 FROM tab0
----
83
90
95

query I rowsort
SELECT 76 * col2 FROM tab2
----
1976
2052
2888

onlyif mysql # use DIV operator for integer division
query I rowsort label-2926
SELECT DISTINCT col1 DIV col0 + - col2 AS col1 FROM tab2
----
-23
-26
-38

skipif mysql # not compatible
query I rowsort label-2926
SELECT DISTINCT col1 / col0 + - col2 AS col1 FROM tab2
----
-23
-26
-38

onlyif mysql # use DIV operator for integer division
query I rowsort label-2927
SELECT DISTINCT + - ( col0 ) DIV - col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2927
SELECT DISTINCT + - ( col0 ) / - col1 FROM tab0 AS cor0
----
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2928
SELECT ALL + CAST( col1 AS SIGNED ) * col0 col2 FROM tab2 AS cor0
----
1343
217
4602

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2928
SELECT ALL + CAST ( col1 AS INTEGER ) * col0 col2 FROM tab2 AS cor0
----
1343
217
4602

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2929
SELECT ALL + CAST( 73 AS SIGNED ) * col0 * col0 FROM tab0 cor0
----
42048
578233
89425

skipif mysql # not compatible
query I rowsort label-2929
SELECT ALL + CAST ( 73 AS INTEGER ) * col0 * col0 FROM tab0 cor0
----
42048
578233
89425

query I rowsort
SELECT DISTINCT + col0 * + ( ( col1 ) * + 50 ) FROM tab2
----
10850
230100
67150

onlyif mysql # use DIV operator for integer division
query I rowsort label-2931
SELECT DISTINCT tab0.col0 * 29 DIV 87 FROM tab0
----
11
29
8

skipif mysql # not compatible
query I rowsort label-2931
SELECT DISTINCT tab0.col0 * 29 / 87 FROM tab0
----
11
29
8

query I rowsort
SELECT - 65 * col1 + col1 AS col0 FROM tab0 AS cor0
----
-5504
-5824
-6208

query I rowsort
SELECT DISTINCT ( + 79 ) * cor0.col2 * 88 FROM tab1 AS cor0
----
375408
396264
667392

query I rowsort
SELECT 1 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

query I rowsort
SELECT ALL + col1 * + tab2.col0 * 1 FROM tab2
----
1343
217
4602

query I rowsort
SELECT + ( tab1.col0 ) AS col2 FROM tab1
----
3
64
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 11 col2 FROM tab2, tab0 AS cor0
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00

query I rowsort
SELECT - 85 * ( - col1 ) AS col1 FROM tab1
----
1105
2210
850

query I rowsort
SELECT - 37 + 60 * + col1 * - col2 AS col0 FROM tab2 AS cor0
----
-38797
-50257
-92077

query I rowsort
SELECT + col0 - col1 * - cor0.col0 FROM tab2 AS cor0
----
1422
224
4680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 43 + col2 col1 FROM tab0
----
125
44
76

query I rowsort
SELECT ALL 83 FROM tab2, tab0 cor0
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c

query I rowsort
SELECT ( + 93 ) * + col2 + - tab0.col0 FROM tab0
----
3045
58
7537

query I rowsort
SELECT DISTINCT + ( + 86 ) FROM tab1
----
86

query I rowsort
SELECT DISTINCT - - 38 * cor0.col0 FROM tab0 cor0
----
1330
3382
912

query I rowsort
SELECT ALL - - 89 AS col0 FROM tab0 AS cor0
----
89
89
89

query I rowsort
SELECT 43 + col1 * - col0 FROM tab1 cor0
----
-35
-597
-997

query I rowsort
SELECT DISTINCT - + 48 + col1 FROM tab0 AS cor0
----
38
43
49

query I rowsort
SELECT ALL - 94 + - col2 FROM tab0 AS cor0
----
-127
-176
-95

query I rowsort
SELECT ALL - ( col0 ) * - tab0.col2 * col1 + + col1 AS col1 FROM tab0
----
3492
664209
68198

query I rowsort
SELECT DISTINCT - ( tab2.col2 ) * - col0 + + col2 * - tab2.col0 AS col0 FROM tab2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor1.col2 col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3

query I rowsort
SELECT DISTINCT col0 * + col1 * + col0 AS col1 FROM tab1 AS cor0
----
234
40960
83200

query I rowsort
SELECT + col1 * col0 - - col2 * - col1 FROM tab2 cor0
----
-620
3068
697

query I rowsort
SELECT + + 12 - + cor0.col2 FROM tab0 AS cor0
----
-21
-70
11

query I rowsort
SELECT - col1 * - cor0.col2 + - col0 * - col0 FROM tab0 AS cor0
----
1322
15383
3414

query I rowsort
SELECT + col1 + - cor0.col2 * - col1 AS col0 FROM tab0 AS cor0
----
194
2924
7553

query I rowsort
SELECT + - col2 * col0 - + col0 FROM tab0 AS cor0
----
-70
-7387
-816

query I rowsort
SELECT - + cor0.col2 * + col0 * col1 + + col0 AS col2 FROM tab0 AS cor0
----
-3360
-664029
-68088

query I rowsort
SELECT + + ( + col2 ) * - col0 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT + col2 - col0 * - col1 * - col0 AS col2 FROM tab2 AS cor0
----
-106059
-1492
-358930

query I rowsort
SELECT - 80 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 26dbcc98d4b4e864ffa31be685a5dfbd

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2963
SELECT - + col1 * - CAST( col0 AS SIGNED ) + + col1 AS col2 FROM tab1 AS cor0
----
104
1053
650

skipif mysql # not compatible
query I rowsort label-2963
SELECT - + col1 * - CAST ( col0 AS INTEGER ) + + col1 AS col2 FROM tab1 AS cor0
----
104
1053
650

query I rowsort
SELECT - tab1.col0 * col0 + col2 * - col1 AS col0 FROM tab1
----
-1413
-4666
-7648

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * 60 col1 FROM tab2 AS cor0
----
1560
1620
2280

query I rowsort
SELECT - cor0.col1 + + 52 FROM tab2 AS cor0
----
-7
21
35

query I rowsort
SELECT + + col1 + + 52 AS col2 FROM tab0 AS cor0
----
138
143
149

query I rowsort
SELECT DISTINCT - - ( + 1 ) + col1 * col0 FROM tab2 AS cor0
----
1344
218
4603

query I rowsort
SELECT ALL - 66 + - ( col1 ) * cor0.col0 FROM tab2 cor0
----
-1409
-283
-4668

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + ( - cor0.col0 ) * col0 col0 FROM tab0 cor0
----
1225
576
7921

query I rowsort
SELECT - ( col2 ) * - col0 AS col0 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT 56 + - 70 AS col1 FROM tab2 AS cor0
----
-14
-14
-14

query I rowsort
SELECT DISTINCT - 67 + + cor0.col1 AS col1 FROM tab0 cor0
----
19
24
30

query I rowsort
SELECT - + col1 * ( - ( cor0.col2 ) + col0 ) * 77 FROM tab1 AS cor0
----
-5390
102102
16016

query I rowsort
SELECT + col0 * + ( cor0.col1 ) FROM tab2 AS cor0
----
1343
217
4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-2976
SELECT ALL col0 * - 24 + 57 DIV col1 AS col0 FROM tab1 AS cor0
----
-1531
-1916
-70

skipif mysql # not compatible
query I rowsort label-2976
SELECT ALL col0 * - 24 + 57 / col1 AS col0 FROM tab1 AS cor0
----
-1531
-1916
-70

query I rowsort
SELECT DISTINCT + + col2 - cor0.col1 * col2 AS col0 FROM tab1 AS cor0
----
-1152
-1350
-513

query I rowsort
SELECT DISTINCT - col0 + ( - col1 ) - col2 FROM tab0 cor0
----
-133
-143
-262

query I rowsort
SELECT ALL + col1 + - 6 FROM tab1 AS cor0
----
20
4
7

query I rowsort
SELECT - + 41 + tab1.col2 * 65 + + 88 FROM tab1, tab2, tab2 cor0
----
27 values hashing to 6d216601c2cf6c383d7170de6dd964fb

query I rowsort
SELECT ALL col1 + 16 * + col1 AS col1 FROM tab2
----
1003
289
527

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2982
SELECT ALL - col1 + + CAST( NULL AS SIGNED ) * col0 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2982
SELECT ALL - col1 + + CAST ( NULL AS INTEGER ) * col0 AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col1 * + 67 + - 65 AS col0 FROM tab2 AS cor0
----
-1204
-2142
-4018

query I rowsort
SELECT - col0 * cor0.col0 + - col0 * + col1 AS col1 FROM tab1 AS cor0
----
-4736
-7440
-87

query I rowsort
SELECT DISTINCT - - col2 + + cor0.col2 FROM tab1 AS cor0
----
108
114
192

onlyif mysql # use DIV operator for integer division
query I rowsort label-2986
SELECT ALL + - col2 * 7 + col0 DIV col1 + - col0 FROM tab1 AS cor0
----
-381
-457
-746

skipif mysql # not compatible
query I rowsort label-2986
SELECT ALL + - col2 * 7 + col0 / col1 + - col0 FROM tab1 AS cor0
----
-381
-457
-746

query I rowsort
SELECT ALL cor0.col2 - + 17 AS col1 FROM tab0 AS cor0
----
-16
16
65

query I rowsort
SELECT ALL cor0.col2 * + 5 + col1 * + col2 FROM tab2 AS cor0
----
1664
836
972

query I rowsort
SELECT 83 * 91 FROM tab2, tab0 AS cor0
----
9 values hashing to 8d9ac05d2f24b0b6d77148f6e99586eb

query I rowsort
SELECT ALL + 28 AS col2 FROM tab2, tab0 cor0
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97

query I rowsort
SELECT DISTINCT - 13 + ( - col2 ) AS col1 FROM tab1
----
-109
-67
-70

query I rowsort
SELECT 82 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c

query I rowsort
SELECT ALL + 47 FROM tab1, tab0 AS cor0 CROSS JOIN tab2
----
27 values hashing to 3f991632e9c7c5142e1d80857cd10a2d

query I rowsort
SELECT DISTINCT + 96 * + col0 * tab2.col1 FROM tab2
----
128928
20832
441792

query I rowsort
SELECT DISTINCT ( + col2 ) * + col0 AS col2 FROM tab2 AS cor0
----
189
2028
3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - col1 col0 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * + 80 col1 FROM tab2
----
2080
2160
3040

query I rowsort
SELECT - - col1 * + col0 * + 94 AS col1 FROM tab1 AS cor0
----
60160
7332
97760

onlyif mysql # use DIV operator for integer division
query I rowsort label-2999
SELECT DISTINCT - col0 DIV col1 col1 FROM tab1 AS cor0
----
-6
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2999
SELECT DISTINCT - col0 / col1 col1 FROM tab1 AS cor0
----
-6
0

query I rowsort
SELECT col1 * - cor0.col0 * + 98 AS col1 FROM tab1 cor0
----
-101920
-62720
-7644

query I rowsort
SELECT 82 * - col0 AS col0 FROM tab0 AS cor0
----
-1968
-2870
-7298

onlyif mysql # use DIV operator for integer division
query I rowsort label-3002
SELECT - col2 + col0 DIV 48 AS col0 FROM tab2 cor0
----
-25
-27
-37

skipif mysql # not compatible
query I rowsort label-3002
SELECT - col2 + col0 / 48 AS col0 FROM tab2 cor0
----
-25
-27
-37

query I rowsort
SELECT DISTINCT + ( 57 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
57

query I rowsort
SELECT + cor0.col2 * + 15 FROM tab2 AS cor0
----
390
405
570

query I rowsort
SELECT ALL - 72 FROM tab0, tab0 AS cor0, tab2 AS cor1, tab0 cor2
----
81 values hashing to 95a1a68628dd064d94b4fe1543a3419f

query I rowsort
SELECT - col2 + 5 FROM tab2 cor0
----
-21
-22
-33

query I rowsort
SELECT DISTINCT - 34 + ( + cor0.col0 ) * + 10 FROM tab2 AS cor0
----
36
746
756

query I rowsort
SELECT + - 85 + - col1 FROM tab1 cor0
----
-111
-95
-98

query I rowsort
SELECT DISTINCT + 29 * + col1 + + col2 FROM tab2 AS cor0
----
1737
531
926

query I rowsort
SELECT ALL - 37 - 29 FROM tab0 AS cor0
----
-66
-66
-66

query I rowsort
SELECT col2 + - 45 AS col1 FROM tab1 cor0
----
12
51
9

query I rowsort
SELECT + 5 + 32 * - cor0.col1 FROM tab0 AS cor0
----
-2747
-2907
-3099

query I rowsort
SELECT cor0.col1 + + ( + col0 ) FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT cor0.col1 * col0 + - col0 * - col1 FROM tab2 AS cor0
----
2686
434
9204

query I rowsort
SELECT col2 * col1 + 12 AS col1 FROM tab1 AS cor0
----
1260
1416
582

query I rowsort
SELECT col1 * col0 * + col2 + + 11 + - 48 FROM tab2
----
119615
50997
5822

query I rowsort
SELECT + cor0.col2 + - col2 AS col2 FROM tab1 cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3018
SELECT ALL 53 * - 38 - col0 * col2 DIV + col0 FROM tab0
----
-2015
-2047
-2096

skipif mysql # not compatible
query I rowsort label-3018
SELECT ALL 53 * - 38 - col0 * col2 / + col0 FROM tab0
----
-2015
-2047
-2096

query I rowsort
SELECT + col2 + col2 + + col0 FROM tab0
----
253
37
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 26 - - col2 col0 FROM tab1
----
28
31
70

query I rowsort
SELECT ALL - col2 - - ( tab1.col1 ) * - col2 AS col2 FROM tab1
----
-1344
-1458
-627

query I rowsort
SELECT DISTINCT + 41 * tab2.col2 - + tab2.col2 AS col2 FROM tab2
----
1040
1080
1520

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3023
SELECT ALL - CAST( NULL AS SIGNED ) AS col2 FROM tab0, tab1 AS cor0, tab0 cor1, tab2 cor2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

skipif mysql # not compatible
query I rowsort label-3023
SELECT ALL - CAST ( NULL AS INTEGER ) AS col2 FROM tab0, tab1 AS cor0, tab0 cor1, tab2 cor2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

query I rowsort
SELECT ALL - col2 + + cor0.col1 + - col2 * + 58 AS col0 FROM tab1 AS cor0
----
-3160
-3353
-5651

query I rowsort
SELECT DISTINCT + - col0 + + col1 FROM tab1 cor0
----
-54
-67
23

query I rowsort
SELECT + + 2 + col2 AS col1 FROM tab0 AS cor0
----
3
35
84

onlyif mysql # use DIV operator for integer division
query I rowsort label-3027
SELECT ALL + + col0 DIV col1 + + cor0.col2 - col2 AS col2 FROM tab2 AS cor0
----
0
1
4

skipif mysql # not compatible
query I rowsort label-3027
SELECT ALL + + col0 / col1 + + cor0.col2 - col2 AS col2 FROM tab2 AS cor0
----
0
1
4

query I rowsort
SELECT ALL - 57 * col1 FROM tab2 AS cor0
----
-1767
-3363
-969

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + cor0.col1 col0 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT DISTINCT + 19 * - cor0.col2 + col2 FROM tab1 AS cor0
----
-1026
-1728
-972

query I rowsort
SELECT DISTINCT + col1 + col0 * - col0 FROM tab2 AS cor0
----
-18
-6025
-6224

query I rowsort
SELECT + 89 - + col2 AS col1 FROM tab2 AS cor0
----
51
62
63

query I rowsort
SELECT DISTINCT + col0 * col1 + ( + 50 ) FROM tab2 AS cor0
----
1393
267
4652

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 * - col0 + ( + 49 ) * - col1 col0 FROM tab2 AS cor0
----
-1302
1711
510

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3035
SELECT - col0 + - col1 * - CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3035
SELECT - col0 + - col1 * - CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( tab2.col0 ) col2 FROM tab2
----
7
78
79

query I rowsort
SELECT 29 * - col1 AS col1 FROM tab1
----
-290
-377
-754

query I rowsort
SELECT ALL - tab2.col0 * + col2 AS col2 FROM tab2
----
-189
-2028
-3002

query I rowsort
SELECT ALL - ( - tab1.col1 ) * col0 FROM tab1
----
1040
640
78

query I rowsort
SELECT ALL - tab1.col2 * tab1.col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 315ab91f9844de122b0c28cd16e982e4

query I rowsort
SELECT - col1 * + col1 AS col0 FROM tab1 cor0
----
-100
-169
-676

query I rowsort
SELECT - col1 * + ( cor0.col2 ) FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT - col2 * + ( - 2 ) AS col0 FROM tab0 AS cor0
----
164
2
66

onlyif mysql # use DIV operator for integer division
query I rowsort label-3044
SELECT + - col0 + + col0 * col2 DIV col1 FROM tab1 AS cor0
----
3
300
510

skipif mysql # not compatible
query I rowsort label-3044
SELECT + - col0 + + col0 * col2 / col1 FROM tab1 AS cor0
----
3
300
510

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * col1 + + col2 col0 FROM tab2 AS cor0
----
-251
-3455
-934

query I rowsort
SELECT col1 + 4 FROM tab1
----
14
17
30

query I rowsort
SELECT ( 96 ) FROM tab0, tab0 AS cor0
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3048
SELECT - CAST( NULL AS SIGNED ) / ( col2 ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3048
SELECT - CAST ( NULL AS INTEGER ) / ( col2 ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col1 * - col2 * + 40 AS col0 FROM tab2
----
25840
33480
61360

query I rowsort
SELECT + + 51 * col2 AS col0 FROM tab2 cor0
----
1326
1377
1938

query I rowsort
SELECT ALL - + 48 AS col1 FROM tab1 cor0
----
-48
-48
-48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 20 col1 FROM tab1 AS cor0
----
20

query I rowsort
SELECT - - 92 FROM tab0 cor0
----
92
92
92

query I rowsort
SELECT + + col1 * + col2 * + col2 FROM tab0 AS cor0
----
611884
93654
97

query I rowsort
SELECT ALL cor0.col0 * col1 AS col1 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT ALL - ( - 6 ) AS col2 FROM tab0 AS cor0
----
6
6
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + col2 * col1 col0 FROM tab1 AS cor0
----
1168
1401
506

query I rowsort
SELECT col1 * ( col1 ) AS col0 FROM tab0 AS cor0
----
7396
8281
9409

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3059
SELECT ALL - CAST( NULL AS SIGNED ) * - col2 * col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3059
SELECT ALL - CAST ( NULL AS INTEGER ) * - col2 * col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ( - 58 * tab0.col2 ) FROM tab0, tab0 AS cor0
----
9 values hashing to f9a1466854b0b966750ff846208ff7cd

query I rowsort
SELECT DISTINCT ( + 18 + col1 ) AS col0 FROM tab2
----
35
49
77

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3062
SELECT CAST( NULL AS SIGNED ) + col1 / - tab0.col1 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3062
SELECT CAST ( NULL AS INTEGER ) + col1 / - tab0.col1 AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + + 12 AS col0 FROM tab2 AS cor0
----
12
12
12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 * - 63 col1 FROM tab1 AS cor0
----
-3402
-3591
-6048

query I rowsort
SELECT ALL - + cor0.col2 + - col2 * - col0 AS col1 FROM tab2 AS cor0
----
162
2002
2964

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 88 col1 FROM tab0 AS cor0
----
88
88
88

onlyif mysql # use DIV operator for integer division
query I rowsort label-3067
SELECT DISTINCT 60 DIV 53 - col2 * ( + cor0.col2 ) AS col0 FROM tab2 AS cor0
----
-1443
-675
-728

skipif mysql # not compatible
query I rowsort label-3067
SELECT DISTINCT 60 / 53 - col2 * ( + cor0.col2 ) AS col0 FROM tab2 AS cor0
----
-1443
-675
-728

query I rowsort
SELECT DISTINCT + col2 * + col0 + - cor0.col2 * - col2 + col2 * + col1 AS col2 FROM tab1 cor0
----
18144
4482
7467

query I rowsort
SELECT ALL col0 * - col1 + ( col2 ) AS col0 FROM tab0
----
-2031
-3394
-8017

query I rowsort
SELECT ALL + + cor0.col0 * 86 FROM tab0 cor0
----
2064
3010
7654

query I rowsort
SELECT ALL col2 * - ( col1 ) FROM tab0
----
-2838
-7462
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 57 col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a

query I rowsort
SELECT + - col1 + ( + col2 * + col2 ) FROM tab0 AS cor0
----
-96
1003
6633

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - col2 * CAST ( - col0 AS REAL ) AS col1 FROM tab1 AS cor0
----
162
3648
7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-3075
SELECT DISTINCT - col0 DIV ( col0 ) AS col0 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3075
SELECT DISTINCT - col0 / ( col0 ) AS col0 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT - col2 + ( - col0 ) * col1 FROM tab2 AS cor0
----
-1381
-244
-4628

query I rowsort
SELECT DISTINCT col2 * 1 FROM tab0 AS cor0
----
1
33
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-3078
SELECT ALL - + col2 DIV + 46 + + col0 * col1 FROM tab1 AS cor0
----
1038
639
77

skipif mysql # not compatible
query I rowsort label-3078
SELECT ALL - + col2 / + 46 + + col0 * col1 FROM tab1 AS cor0
----
1038
639
77

query I rowsort
SELECT ALL + - col2 + - col2 - - col1 FROM tab1 AS cor0
----
-104
-179
-82

query I rowsort
SELECT ALL - col1 * col2 * col1 - - cor0.col2 AS col1 FROM tab2 AS cor0
----
-10944
-25920
-90480

query I rowsort
SELECT DISTINCT - + cor0.col1 * cor0.col2 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT ALL + - col2 * col0 - + cor0.col2 * - col1 FROM tab2 AS cor0
----
-2356
-494
648

query I rowsort
SELECT DISTINCT + + cor0.col1 + - col2 * col1 AS col2 FROM tab2 AS cor0
----
-1475
-629
-806

onlyif mysql # use DIV operator for integer division
query I rowsort label-3084
SELECT + col2 DIV col0 + - col1 FROM tab1
----
-10
-12
-8

skipif mysql # not compatible
query I rowsort label-3084
SELECT + col2 / col0 + - col1 FROM tab1
----
-10
-12
-8

query I rowsort
SELECT ALL tab0.col2 + - tab0.col0 AS col1 FROM tab0
----
-34
-7
9

query I rowsort
SELECT - col1 * cor0.col2 FROM tab0 AS cor0 WHERE NOT NULL <> NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL IN ( + col2 + - col1 )
----

query I rowsort
SELECT DISTINCT col0 + + col1 AS col2 FROM tab1 WHERE NOT NULL BETWEEN ( NULL ) AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL IN ( + col2 + + col1 * col0 )
----

query I rowsort
SELECT + + cor0.col0 * - col1 * + col0 FROM tab1 AS cor0
----
-234
-40960
-83200

query I rowsort
SELECT ALL - col1 * col2 + - col0 AS col2 FROM tab1 AS cor0
----
-1328
-1407
-634

query I rowsort
SELECT DISTINCT cor0.col1 * - col0 AS col1 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT ALL - col2 * - cor0.col1 + col0 FROM tab1 AS cor0
----
1328
1407
634

onlyif mysql # use DIV operator for integer division
query I rowsort label-3094
SELECT ALL col0 + - tab2.col2 DIV col1 FROM tab2
----
7
77
78

skipif mysql # not compatible
query I rowsort label-3094
SELECT ALL col0 + - tab2.col2 / col1 FROM tab2
----
7
77
78

query I rowsort
SELECT tab0.col1 * + col2 + + col0 * col0 AS col1 FROM tab0
----
1322
15383
3414

onlyif mysql # use DIV operator for integer division
query I rowsort label-3096
SELECT DISTINCT col0 DIV col2 + col1 AS col1 FROM tab0
----
132
86
92

skipif mysql # not compatible
query I rowsort label-3096
SELECT DISTINCT col0 / col2 + col1 AS col1 FROM tab0
----
132
86
92

query I rowsort
SELECT + col0 * col1 + + col2 * - col0 AS col0 FROM tab1
----
-3008
-6640
-84

query I rowsort
SELECT + col0 + col0 * col2 * col1 FROM tab1
----
36544
4215
99920

query I rowsort
SELECT DISTINCT + + col2 - col1 * - col0 AS col0 FROM tab0 AS cor0
----
2097
3396
8181

query I rowsort
SELECT ALL + + col2 * + col1 + - col0 * col0 FROM tab2 AS cor0
----
-4550
-5595
788

query I rowsort
SELECT col0 * col1 + + col1 AS col0 FROM tab0 AS cor0
----
2150
3492
8190

onlyif mysql # use DIV operator for integer division
query I rowsort label-3102
SELECT DISTINCT col0 - col0 DIV col1 FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-3102
SELECT DISTINCT col0 - col0 / col1 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT + col2 * + col2 + col1 * col2 FROM tab0 AS cor0
----
14186
3927
98

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) NOT IN ( col2 - col2 * col2 )
----

query I rowsort
SELECT DISTINCT + col2 * - col1 * col2 FROM tab0
----
-611884
-93654
-97

query I rowsort
SELECT DISTINCT - col1 + col1 * + col0 * - col0 FROM tab0
----
-118922
-49622
-720902

query I rowsort
SELECT col1 + - col0 * - col1 FROM tab1
----
104
1053
650

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) <= + col0
----

query I rowsort
SELECT + 42 * col0 AS col1 FROM tab0
----
1008
1470
3738

onlyif mysql # use DIV operator for integer division
query I rowsort label-3110
SELECT ALL 57 DIV col0 AS col1 FROM tab2
----
0
0
8

skipif mysql # not compatible
query I rowsort label-3110
SELECT ALL 57 / col0 AS col1 FROM tab2
----
0
0
8

query I rowsort
SELECT DISTINCT - tab2.col0 - + col2 AS col1 FROM tab2
----
-104
-117
-34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * col1 + col0 col1 FROM tab1
----
1120
704
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-3113
SELECT col1 DIV + col1 - col2 FROM tab2
----
-25
-26
-37

skipif mysql # not compatible
query I rowsort label-3113
SELECT col1 / + col1 - col2 FROM tab2
----
-25
-26
-37

query I rowsort
SELECT DISTINCT + col0 * - col0 * + col2 + - tab1.col2 AS col0 FROM tab1
----
-233529
-540
-614496

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL BETWEEN - col2 AND + col0 + col1 * col0
----

query I rowsort
SELECT tab2.col1 AS col1 FROM tab2 WHERE ( + col2 + + col2 ) NOT BETWEEN ( + col1 * col2 ) AND ( + tab2.col2 * col0 )
----
17
31
59

query I rowsort
SELECT col0 * + col0 * + tab2.col1 FROM tab2
----
106097
1519
358956

query I rowsort
SELECT DISTINCT cor0.col2 * + cor0.col2 AS col0 FROM tab0 AS cor0
----
1
1089
6724

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NULL > col0
----

query I rowsort
SELECT col2 - - col0 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND ( NULL )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-3121
SELECT DISTINCT + tab1.col1 DIV col0 + + col0 * col2 + col1 col2 FROM tab1
----
196
3658
7693

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3121
SELECT DISTINCT + tab1.col1 / col0 + + col0 * col2 + col1 col2 FROM tab1
----
196
3658
7693

query I rowsort
SELECT tab2.col0 * - col1 * col2 AS col0 FROM tab2
----
-119652
-51034
-5859

onlyif mysql # use DIV operator for integer division
query I rowsort label-3123
SELECT DISTINCT + tab1.col1 DIV tab1.col2 AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3123
SELECT DISTINCT + tab1.col1 / tab1.col2 AS col2 FROM tab1
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3124
SELECT DISTINCT - tab0.col2 DIV tab0.col1 AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3124
SELECT DISTINCT - tab0.col2 / tab0.col1 AS col0 FROM tab0
----
0

query I rowsort
SELECT ALL + col0 * col0 + col1 * tab1.col2 + + tab1.col2 AS col1 FROM tab1
----
1467
4723
7744

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col2 + + col0 * - col2 col2 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL col1 * - col0 + + col0 AS col1 FROM tab1
----
-576
-75
-960

query I rowsort
SELECT + col1 + col0 + col1 AS col1 FROM tab0
----
196
229
271

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col2 - col1 = ( tab1.col0 + - col1 )
----

query I rowsort
SELECT ALL col2 + col2 + + col1 * col1 AS col0 FROM tab2
----
1015
3533
365

onlyif mysql # use DIV operator for integer division
query I rowsort label-3131
SELECT - col2 DIV + col1 + + col1 AS col1 FROM tab0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-3131
SELECT - col2 / + col1 + + col1 AS col1 FROM tab0
----
86
91
97

query I rowsort
SELECT ALL + col1 * col0 * + col2 FROM tab0
----
3395
664118
68112

query I rowsort
SELECT DISTINCT col0 + col1 * col2 + + col1 AS col0 FROM tab2
----
1671
742
875

query I rowsort
SELECT col0 + tab0.col1 - - col0 FROM tab0
----
134
167
269

query I rowsort
SELECT - col1 * + col0 * col1 AS col0 FROM tab1
----
-13520
-2028
-6400

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + col0 - col0 col0 FROM tab2
----
-56
-6162
-6320

query I rowsort
SELECT ALL col0 * + col2 + col1 + + col1 FROM tab2
----
2146
251
3036

query III rowsort
SELECT * FROM tab2 WHERE col2 + + col2 IN ( - col0 )
----

query I rowsort
SELECT col0 * col2 + col1 * col2 FROM tab1
----
1566
4218
8928

onlyif mysql # use DIV operator for integer division
query I rowsort label-3140
SELECT ALL - col1 DIV tab0.col2 AS col0 FROM tab0 WHERE NOT ( - col0 + + col1 + + col0 ) NOT IN ( col2 * col1 )
----
-97

skipif mysql # not compatible
query I rowsort label-3140
SELECT ALL - col1 / tab0.col2 AS col0 FROM tab0 WHERE NOT ( - col0 + + col1 + + col0 ) NOT IN ( col2 * col1 )
----
-97

query I rowsort
SELECT DISTINCT 53 * - col1 AS col1 FROM tab1
----
-1378
-530
-689

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 8 col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 47f43f23dcd23959d97d8e3b0aab692e

query I rowsort
SELECT DISTINCT col2 * + 61 + 29 AS col2 FROM tab1 AS cor0
----
3323
3506
5885

query I rowsort
SELECT ALL - 24 AS col1 FROM tab2, tab1 AS cor0, tab0 AS cor1, tab1, tab0 AS cor2
----
243 values hashing to f54f9f80142dee595bb0207d1431a5f6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 + col0 * - 55 * col2 col2 FROM tab0 AS cor0
----
-1960
-401479
-43584

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3146
SELECT ALL col2 * CAST( col1 AS SIGNED ) FROM tab2 AS cor0
----
1534
646
837

skipif mysql # not compatible
query I rowsort label-3146
SELECT ALL col2 * CAST ( col1 AS INTEGER ) FROM tab2 AS cor0
----
1534
646
837

skipif mysql # not compatible
query I rowsort
SELECT col0 * CAST ( - col2 AS REAL ) FROM tab1 cor0
----
-162
-3648
-7680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3148
SELECT + col2 * CAST( 9 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
297
738
9

skipif mysql # not compatible
query I rowsort label-3148
SELECT + col2 * CAST ( 9 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
297
738
9

query I rowsort
SELECT DISTINCT + - col1 * + 21 FROM tab1 AS cor0
----
-210
-273
-546

query I rowsort
SELECT DISTINCT - ( tab2.col0 ) * - col2 * col2 + - col2 * - col2 AS col2 FROM tab2
----
115520
53404
5832

query I rowsort
SELECT DISTINCT col2 + - ( col2 * + col2 + + col2 ) FROM tab1
----
-2916
-3249
-9216

query I rowsort
SELECT 90 * - col0 + + col0 * - col1 FROM tab1 AS cor0
----
-348
-6400
-8240

query I rowsort
SELECT DISTINCT 35 FROM tab1, tab2 cor0
----
35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + 81 ) * col1 col1 FROM tab0
----
6966
7371
7857

query I rowsort
SELECT DISTINCT - ( + col2 ) * - 94 FROM tab2 cor0
----
2444
2538
3572

onlyif mysql # use DIV operator for integer division
query I rowsort label-3156
SELECT ALL - col0 * - col0 + + 61 DIV + col1 FROM tab0 AS cor0
----
1225
576
7921

skipif mysql # not compatible
query I rowsort label-3156
SELECT ALL - col0 * - col0 + + 61 / + col1 FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT - + 94 * + col2 FROM tab2 AS cor0
----
-2444
-2538
-3572

query I rowsort
SELECT DISTINCT + + col0 * col1 + + 47 * col0 FROM tab1 AS cor0
----
219
3648
4800

onlyif mysql # use DIV operator for integer division
query I rowsort label-3159
SELECT DISTINCT - cor0.col1 DIV col1 + - 35 * + col0 FROM tab0 AS cor0
----
-1226
-3116
-841

skipif mysql # not compatible
query I rowsort label-3159
SELECT DISTINCT - cor0.col1 / col1 + - 35 * + col0 FROM tab0 AS cor0
----
-1226
-3116
-841

query I rowsort
SELECT DISTINCT + col0 * + cor0.col2 - ( - 17 ) * + col0 FROM tab2 AS cor0
----
308
3354
4345

onlyif mysql # use DIV operator for integer division
query I rowsort label-3161
SELECT DISTINCT + - col2 + - col0 DIV col1 col0 FROM tab0 AS cor0
----
-1
-33
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3161
SELECT DISTINCT + - col2 + - col0 / col1 col0 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT + cor0.col2 * - col0 + - col2 AS col0 FROM tab2 AS cor0
----
-2054
-216
-3040

query I rowsort
SELECT 34 + col1 AS col1 FROM tab0 cor0
----
120
125
131

query I rowsort
SELECT ALL - - 61 AS col0 FROM tab2 AS cor0
----
61
61
61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + cor0.col0 col2 FROM tab0 cor0
----
-9
34
7

query I rowsort
SELECT ALL col0 * cor0.col2 - + 68 FROM tab1 AS cor0
----
3580
7612
94

query I rowsort
SELECT ALL - col2 + - col2 * 38 FROM tab0 AS cor0
----
-1287
-3198
-39

query I rowsort
SELECT ALL col1 * col0 - + 61 FROM tab2 AS cor0
----
1282
156
4541

query I rowsort
SELECT col2 * ( 45 ) AS col1 FROM tab0 AS cor0
----
1485
3690
45

query I rowsort
SELECT ALL + col2 * col0 + + col2 * - col1 + - col2 * col1 AS col1 FROM tab2 AS cor0
----
-1040
-1485
1710

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + 94 * col2 col1 FROM tab0 AS cor0
----
3135
7790
95

query I rowsort
SELECT ALL cor0.col1 * col0 + col0 AS col2 FROM tab2 AS cor0
----
1422
224
4680

query I rowsort
SELECT ALL tab2.col0 * + col0 AS col1 FROM tab2
----
49
6084
6241

query I rowsort
SELECT DISTINCT - col0 * - col1 * col1 - 33 AS col0 FROM tab2 AS cor0
----
22798
271485
6694

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - col2 col0 FROM tab1 AS cor0
----
-2916
-3249
-9216

onlyif mysql # use DIV operator for integer division
query I rowsort label-3176
SELECT - cor0.col1 DIV col0 - col2 FROM tab2 AS cor0
----
-26
-31
-38

skipif mysql # not compatible
query I rowsort label-3176
SELECT - cor0.col1 / col0 - col2 FROM tab2 AS cor0
----
-26
-31
-38

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3177
SELECT DISTINCT + + CAST( col0 AS SIGNED ) * - col0 FROM tab2 AS cor0
----
-49
-6084
-6241

skipif mysql # not compatible
query I rowsort label-3177
SELECT DISTINCT + + CAST ( col0 AS INTEGER ) * - col0 FROM tab2 AS cor0
----
-49
-6084
-6241

query I rowsort
SELECT + 54 * col0 + col1 AS col0 FROM tab2 AS cor0
----
409
4271
4283

onlyif mysql # use DIV operator for integer division
query I rowsort label-3179
SELECT ALL - - col1 DIV 53 FROM tab2 cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3179
SELECT ALL - - col1 / 53 FROM tab2 cor0
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - col0 ) * col2 + col2 col0 FROM tab1 AS cor0
----
-108
-3591
-7584

query I rowsort
SELECT DISTINCT - 84 * + 84 FROM tab2 AS cor0
----
-7056

query I rowsort
SELECT - + 33 * cor0.col0 FROM tab1 AS cor0
----
-2112
-2640
-99

query I rowsort
SELECT ALL col1 - + 26 AS col2 FROM tab2 AS cor0
----
-9
33
5

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3184
SELECT ALL - - CAST( NULL AS SIGNED ) + - col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3184
SELECT ALL - - CAST ( NULL AS INTEGER ) + - col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3185
SELECT DISTINCT - col0 + 34 DIV - col2 FROM tab1 AS cor0
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-3185
SELECT DISTINCT - col0 + 34 / - col2 FROM tab1 AS cor0
----
-3
-64
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col0 ) * col1 col1 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT ALL col2 - + tab1.col0 AS col0 FROM tab1
----
-7
16
51

query I rowsort
SELECT DISTINCT 14 + + tab0.col1 AS col1 FROM tab0
----
100
105
111

query I rowsort
SELECT DISTINCT - ( - ( tab2.col0 ) ) * + 26 AS col0 FROM tab1, tab2 AS cor0 CROSS JOIN tab2
----
182
2028
2054

query I rowsort
SELECT ALL - 86 * col2 * - col1 + + col0 * + tab0.col1 FROM tab0
----
11737
246132
649831

query I rowsort
SELECT - 34 * 4 + col1 FROM tab0
----
-39
-45
-50

query I rowsort
SELECT + 75 + - cor0.col1 AS col2 FROM tab2 AS cor0
----
16
44
58

query I rowsort
SELECT - + ( col1 ) + cor0.col2 FROM tab1 cor0
----
28
47
83

query I rowsort
SELECT DISTINCT - col2 * ( col0 ) * col1 + ( col2 ) AS col2 FROM tab0 AS cor0
----
-3394
-664036
-68079

query I rowsort
SELECT ALL - ( ( col2 ) ) * + col2 - col2 AS col2 FROM tab1 AS cor0
----
-2970
-3306
-9312

query I rowsort
SELECT col1 * col2 + + col1 FROM tab2 cor0
----
1593
663
868

query I rowsort
SELECT DISTINCT tab1.col2 AS col2 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
54
57
96

query I rowsort
SELECT + col1 + - 51 FROM tab1
----
-25
-38
-41

onlyif mysql # use DIV operator for integer division
query I rowsort label-3199
SELECT - tab1.col2 DIV + 90 + - tab1.col2 * col1 FROM tab1
----
-1249
-1404
-570

skipif mysql # not compatible
query I rowsort label-3199
SELECT - tab1.col2 / + 90 + - tab1.col2 * col1 FROM tab1
----
-1249
-1404
-570

query I rowsort
SELECT - ( 0 ) AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

onlyif mysql # use DIV operator for integer division
query I rowsort label-3201
SELECT + + col2 DIV col1 + col1 FROM tab2 AS cor0
----
19
31
59

skipif mysql # not compatible
query I rowsort label-3201
SELECT + + col2 / col1 + col1 FROM tab2 AS cor0
----
19
31
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 32 * - col2 col0 FROM tab1 AS cor0
----
-1728
-1824
-3072

query I rowsort
SELECT ALL col0 * col0 * - col1 FROM tab0 AS cor0
----
-118825
-49536
-720811

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - col1 ) * cor0.col0 col2 FROM tab1 AS cor0
----
1040
640
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-3205
SELECT col0 DIV + col2 AS col1 FROM tab0 AS cor0
----
0
1
35

skipif mysql # not compatible
query I rowsort label-3205
SELECT col0 / + col2 AS col1 FROM tab0 AS cor0
----
0
1
35

query I rowsort
SELECT DISTINCT col0 * 43 AS col2 FROM tab2 AS cor0
----
301
3354
3397

query I rowsort
SELECT ALL + col0 * - col0 + - col1 FROM tab1 AS cor0
----
-35
-4106
-6413

query I rowsort
SELECT + - ( 96 ) AS col0 FROM tab1 AS cor0
----
-96
-96
-96

query I rowsort
SELECT - + cor0.col2 * 53 AS col0 FROM tab2 AS cor0
----
-1378
-1431
-2014

query I rowsort
SELECT + - 72 FROM tab2 AS cor0
----
-72
-72
-72

query I rowsort
SELECT DISTINCT col0 + 95 * - 27 AS col1 FROM tab2
----
-2486
-2487
-2558

query I rowsort
SELECT + - ( + col0 ) * - col2 AS col0 FROM tab1 AS cor0
----
162
3648
7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-3213
SELECT + col0 + ( col1 ) DIV col1 AS col1 FROM tab0 AS cor0
----
25
36
90

skipif mysql # not compatible
query I rowsort label-3213
SELECT + col0 + ( col1 ) / col1 AS col1 FROM tab0 AS cor0
----
25
36
90

onlyif mysql # use DIV operator for integer division
query I rowsort label-3214
SELECT col2 + 87 DIV col2 + + col2 FROM tab1 AS cor0
----
109
115
192

skipif mysql # not compatible
query I rowsort label-3214
SELECT col2 + 87 / col2 + + col2 FROM tab1 AS cor0
----
109
115
192

query I rowsort
SELECT ALL - col2 + - col1 * - col1 * 86 FROM tab1 AS cor0
----
14438
58082
8543

query I rowsort
SELECT + - col0 * col1 + 96 AS col0 FROM tab0 cor0
----
-1968
-3299
-8003

query I rowsort
SELECT + cor0.col1 + + col0 * + ( 32 ) AS col1 FROM tab1 AS cor0
----
122
2058
2573

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3218
SELECT ALL + col2 * col1 + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3218
SELECT ALL + col2 * col1 + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + + col0 * + col1 + 38 + - 58 * + cor0.col1 AS col2 FROM tab2 AS cor0
----
-1543
1218
395

query I rowsort
SELECT + 61 - - cor0.col0 AS col1 FROM tab2 AS cor0
----
139
140
68

query I rowsort
SELECT - 1 * - cor0.col2 AS col1 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT DISTINCT + 31 - + col0 FROM tab0 AS cor0
----
-4
-58
7

query I rowsort
SELECT DISTINCT + - 47 FROM tab2 cor0
----
-47

query I rowsort
SELECT 22 - cor0.col1 FROM tab0 AS cor0
----
-64
-69
-75

query I rowsort
SELECT DISTINCT 32 + cor0.col0 * - 86 FROM tab1 AS cor0
----
-226
-5472
-6848

query I rowsort
SELECT + col1 * col1 + col0 * + col2 + 59 * col0 AS col2 FROM tab2 AS cor0
----
10111
1563
7952

query I rowsort
SELECT + col0 * - 85 + + 70 * col1 + + col2 AS col1 FROM tab0 AS cor0
----
-1113
3816
4013

query I rowsort
SELECT + cor0.col0 + - 52 + cor0.col2 FROM tab2 cor0
----
-18
52
65

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3229
SELECT + col1 / - CAST( NULL AS DECIMAL ) + + 49 * col1 + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3229
SELECT + col1 / - CAST ( NULL AS REAL ) + + 49 * col1 + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col0 * col1 + + col2 FROM tab0
----
-2031
-3394
-8017

onlyif mysql # use DIV operator for integer division
query I rowsort label-3231
SELECT + col0 + col0 DIV 54 AS col1 FROM tab0 AS cor0
----
24
35
90

skipif mysql # not compatible
query I rowsort label-3231
SELECT + col0 + col0 / 54 AS col1 FROM tab0 AS cor0
----
24
35
90

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3232
SELECT + col1 - + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3232
SELECT + col1 - + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 90 + - col1 * - 85 AS col0 FROM tab1
----
1195
2300
940

onlyif mysql # use DIV operator for integer division
query I rowsort label-3234
SELECT DISTINCT 70 DIV - col2 + col2 * col0 DIV - tab0.col1 FROM tab0
----
-11
-70
-80

skipif mysql # not compatible
query I rowsort label-3234
SELECT DISTINCT 70 / - col2 + col2 * col0 / - tab0.col1 FROM tab0
----
-11
-70
-80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3235
SELECT - col1 + CAST( - 14 AS SIGNED ) AS col1 FROM tab0 cor0
----
-100
-105
-111

skipif mysql # not compatible
query I rowsort label-3235
SELECT - col1 + CAST ( - 14 AS INTEGER ) AS col1 FROM tab0 cor0
----
-100
-105
-111

query I rowsort
SELECT - cor0.col2 + 71 * col1 AS col0 FROM tab0 AS cor0
----
6073
6379
6886

onlyif mysql # use DIV operator for integer division
query I rowsort label-3237
SELECT DISTINCT + 14 DIV - 6 AS col0 FROM tab1 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-3237
SELECT DISTINCT + 14 / - 6 AS col0 FROM tab1 AS cor0
----
-2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + ( - tab2.col0 * - col0 + 79 ) col1 FROM tab2
----
160238
240160
3456

query I rowsort
SELECT + - 60 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 067a4b5daf8747042e3b07ca8459859f

query I rowsort
SELECT 82 AS col0 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 99920d9f7cd9cdccef99cfa459ae6944

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + col0 ) col1 FROM tab2
----
-7
-78
-79

query I rowsort
SELECT + 94 FROM tab2, tab1 AS cor0 CROSS JOIN tab1
----
27 values hashing to a4d239626cf0546ac1b2f57bb8407089

query I rowsort
SELECT ( + col2 + 72 ) FROM tab2
----
110
98
99

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3244
SELECT ALL CAST( col0 AS SIGNED ) * col2 * + CAST( cor0.col0 * col2 AS SIGNED ) FROM tab2 AS cor0
----
35721
4112784
9012004

skipif mysql # not compatible
query I rowsort label-3244
SELECT ALL CAST ( col0 AS INTEGER ) * col2 * + CAST ( cor0.col0 * col2 AS INTEGER ) FROM tab2 AS cor0
----
35721
4112784
9012004

query I rowsort
SELECT + - cor0.col2 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75

query I rowsort
SELECT ( + col2 + tab2.col2 ) FROM tab2
----
52
54
76

query I rowsort
SELECT ( + 18 ) FROM tab2
----
18
18
18

query I rowsort
SELECT ALL + col1 * 36 AS col0 FROM tab2
----
1116
2124
612

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3249
SELECT - CAST( 94 AS SIGNED ) FROM tab0 AS cor0
----
-94
-94
-94

skipif mysql # not compatible
query I rowsort label-3249
SELECT - CAST ( 94 AS INTEGER ) FROM tab0 AS cor0
----
-94
-94
-94

query I rowsort
SELECT + 93 + - ( - cor0.col1 ) FROM tab1 AS cor0
----
103
106
119

query I rowsort
SELECT - 36 * - col1 AS col0 FROM tab0
----
3096
3276
3492

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 + col0 * - 28 + cor0.col1 col0 FROM tab2 AS cor0
----
-172
-2203
-2274

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + 71 col2 FROM tab1 cor0
----
213
4544
5680

query I rowsort
SELECT - + col1 + + cor0.col0 * + col1 AS col1 FROM tab1 cor0
----
1027
52
630

query I rowsort
SELECT DISTINCT + - col0 * - 49 + - 21 AS col0 FROM tab0 AS cor0
----
1155
1694
4340

query I rowsort
SELECT col2 + - ( - 12 ) * col2 AS col0 FROM tab1 AS cor0
----
1248
702
741

query I rowsort
SELECT - - cor0.col2 - - col2 FROM tab0 AS cor0
----
164
2
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 + col2 * 18 * + col1 col2 FROM tab1 AS cor0
----
10324
22544
25275

query I rowsort
SELECT + cor0.col2 + ( col2 ) FROM tab1 AS cor0
----
108
114
192

query I rowsort
SELECT - col0 * + col2 + 30 + col0 AS col2 FROM tab1
----
-129
-3554
-7570

query I rowsort
SELECT DISTINCT tab1.col2 + - 73 AS col0 FROM tab1
----
-16
-19
23

query I rowsort
SELECT + col2 + tab1.col0 + col2 FROM tab1
----
111
178
272

query I rowsort
SELECT ( 91 ) AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277

query I rowsort
SELECT DISTINCT col1 + ( 44 ) + tab0.col2 AS col0 FROM tab0
----
142
163
217

query I rowsort
SELECT DISTINCT col1 + + col2 * + col0 FROM tab1
----
188
3658
7693

query I rowsort
SELECT col0 + - 91 FROM tab2
----
-12
-13
-84

query I rowsort
SELECT - col0 + + 54 FROM tab0
----
-35
19
30

query I rowsort
SELECT col1 + ( 43 ) + + col1 FROM tab2
----
105
161
77

query I rowsort
SELECT ALL - col0 * - 64 FROM tab2 AS cor0
----
448
4992
5056

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + col1 * + 43 + col1 col0 FROM tab2 AS cor0
----
-27761
-35960
-65903

query I rowsort
SELECT ALL + col2 + + ( + col0 * + col0 ) AS col0 FROM tab2 AS cor0
----
6110
6279
76

query I rowsort
SELECT col1 * - col2 + 51 + col2 AS col2 FROM tab0 AS cor0
----
-2754
-45
-7329

query I rowsort
SELECT ALL - col0 + + ( + col1 ) * col0 AS col2 FROM tab0 AS cor0
----
2040
3360
8010

query I rowsort
SELECT DISTINCT + ( + col2 ) + col1 * ( + col2 ) AS col0 FROM tab2 AS cor0
----
1560
684
864

onlyif mysql # use DIV operator for integer division
query I rowsort label-3275
SELECT ( + col0 ) DIV cor0.col2 + col2 AS col0 FROM tab1 AS cor0
----
54
58
96

skipif mysql # not compatible
query I rowsort label-3275
SELECT ( + col0 ) / cor0.col2 + col2 AS col0 FROM tab1 AS cor0
----
54
58
96

query I rowsort
SELECT - ( col0 ) + - cor0.col1 FROM tab0 cor0
----
-110
-132
-180

query I rowsort
SELECT DISTINCT - 66 * ( col0 ) AS col1 FROM tab1 AS cor0
----
-198
-4224
-5280

query I rowsort
SELECT + col2 + col2 * col1 FROM tab1 cor0
----
1344
1458
627

query I rowsort
SELECT ALL + + ( - col0 ) * col2 AS col0 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT ALL - ( - 28 ) AS col1 FROM tab1 AS cor0
----
28
28
28

query I rowsort
SELECT + col2 + cor0.col0 + + col1 FROM tab1 cor0
----
131
189
83

query I rowsort
SELECT DISTINCT + cor0.col1 + col2 * + col0 + col2 AS col0 FROM tab0 AS cor0
----
133
7471
911

query I rowsort
SELECT - - col1 + + 15 AS col0 FROM tab2 cor0
----
32
46
74

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3284
SELECT DISTINCT col1 + + CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3284
SELECT DISTINCT col1 + + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query I rowsort
SELECT + col2 + + 4 FROM tab2
----
30
31
42

query I rowsort
SELECT DISTINCT - 70 + cor0.col2 FROM tab0 AS cor0
----
-37
-69
12

query I rowsort
SELECT DISTINCT + + col0 * + col1 + + col2 FROM tab0 cor0
----
2097
3396
8181

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3288
SELECT ALL - - CAST( NULL AS SIGNED ) + - 57 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3288
SELECT ALL - - CAST ( NULL AS INTEGER ) + - 57 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - - 6 * + col2 + - col0 + col2 FROM tab2 AS cor0
----
104
182
187

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3290
SELECT ALL col2 * col1 * + CAST( col2 AS SIGNED ) - col2 FROM tab2 AS cor0
----
22572
24510
39858

skipif mysql # not compatible
query I rowsort label-3290
SELECT ALL col2 * col1 * + CAST ( col2 AS INTEGER ) - col2 FROM tab2 AS cor0
----
22572
24510
39858

query I rowsort
SELECT DISTINCT - ( col0 + - tab1.col2 ) FROM tab1
----
-7
16
51

query I rowsort
SELECT DISTINCT - 26 * - col2 AS col2 FROM tab2 AS cor0
----
676
702
988

onlyif mysql # use DIV operator for integer division
query I rowsort label-3293
SELECT ALL - col2 * + col2 DIV col2 AS col1 FROM tab0 AS cor0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-3293
SELECT ALL - col2 * + col2 / col2 AS col1 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT DISTINCT + cor0.col2 + - col0 * 45 AS col2 FROM tab1 AS cor0
----
-2823
-3504
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 - + tab1.col2 col2 FROM tab1
----
-109
-67
-80

query I rowsort
SELECT + col1 - - 96 AS col0 FROM tab2 AS cor0
----
113
127
155

query I rowsort
SELECT DISTINCT + - col0 * - col1 + col1 AS col2 FROM tab2 AS cor0
----
1360
248
4661

query I rowsort
SELECT + col2 * ( - col2 ) * col2 + ( + 94 ) FROM tab0 AS cor0
----
-35843
-551274
93

query I rowsort
SELECT ALL + + 57 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a

query I rowsort
SELECT ALL + 90 * - col1 * - col2 + ( 57 ) * - col0 FROM tab2
----
133614
53637
74931

query I rowsort
SELECT col0 + col1 + - col0 AS col1 FROM tab1
----
10
13
26

query I rowsort
SELECT DISTINCT + ( col0 ) + tab2.col1 * + col1 + 49 AS col1 FROM tab2
----
1017
3608
417

query I rowsort
SELECT DISTINCT + col2 + 9 * col1 FROM tab2
----
191
306
557

query I rowsort
SELECT col2 + + col0 * col2 FROM tab0
----
36
7380
825

query I rowsort
SELECT ALL col0 * 93 + + tab0.col1 AS col0 FROM tab0
----
2318
3352
8368

query I rowsort
SELECT DISTINCT + col0 + ( col2 ) AS col0 FROM tab2
----
104
117
34

query I rowsort
SELECT + 13 * - col2 AS col1 FROM tab1
----
-1248
-702
-741

query I rowsort
SELECT DISTINCT col1 + tab2.col1 * + col1 + - col1 FROM tab2
----
289
3481
961

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3309
SELECT DISTINCT - ( + ( col2 ) ) + CAST( NULL AS DECIMAL ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3309
SELECT DISTINCT - ( + ( col2 ) ) + CAST ( NULL AS REAL ) AS col2 FROM tab2
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3310
SELECT ALL CAST( NULL AS SIGNED ) FROM tab0, tab1, tab0 cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-3310
SELECT ALL CAST ( NULL AS INTEGER ) FROM tab0, tab1, tab0 cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT ALL - 9 * col2 + + col0 FROM tab1 AS cor0
----
-449
-483
-784

query I rowsort
SELECT col1 * - cor0.col1 - - col1 FROM tab0 AS cor0
----
-7310
-8190
-9312

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3313
SELECT - col1 + + col2 * CAST( NULL AS SIGNED ) * cor0.col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3313
SELECT - col1 + + col2 * CAST ( NULL AS INTEGER ) * cor0.col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 * + col0 - + cor0.col2 AS col1 FROM tab1 AS cor0
----
24
583
944

query I rowsort
SELECT ALL col1 + col0 + 53 FROM tab0 AS cor0
----
163
185
233

query I rowsort
SELECT + ( + col0 ) * 56 FROM tab1 AS cor0
----
168
3584
4480

query I rowsort
SELECT ALL 51 FROM tab0, tab0 AS cor0
----
9 values hashing to d8bf0a05c9c4d2a93812d106baae4752

onlyif mysql # use DIV operator for integer division
query I rowsort label-3318
SELECT DISTINCT tab2.col1 DIV 71 AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3318
SELECT DISTINCT tab2.col1 / 71 AS col1 FROM tab2
----
0

query I rowsort
SELECT DISTINCT ( - 85 ) AS col1 FROM tab0, tab0 AS cor0
----
-85

onlyif mysql # use DIV operator for integer division
query I rowsort label-3320
SELECT col1 * ( + col0 ) DIV col1 + col0 col1 FROM tab0
----
178
48
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3320
SELECT col1 * ( + col0 ) / col1 + col0 col1 FROM tab0
----
178
48
70

query I rowsort
SELECT DISTINCT + - col0 + cor0.col0 * col2 FROM tab0 cor0
----
0
7209
768

query I rowsort
SELECT - + cor0.col1 * + 91 AS col1 FROM tab0 AS cor0
----
-7826
-8281
-8827

query I rowsort
SELECT col2 * + col2 AS col1 FROM tab1 cor0
----
2916
3249
9216

query I rowsort
SELECT DISTINCT + + col1 + 43 FROM tab0 AS cor0
----
129
134
140

onlyif mysql # use DIV operator for integer division
query I rowsort label-3325
SELECT ALL + - col0 DIV + col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3325
SELECT ALL + - col0 / + col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3326
SELECT - cor0.col2 * col1 * - col0 + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3326
SELECT - cor0.col2 * col1 * - col0 + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col1 * 50 FROM tab0 AS cor0
----
-4300
-4550
-4850

query I rowsort
SELECT - cor0.col2 + 18 AS col2 FROM tab2, tab0 AS cor0, tab2 cor1
----
27 values hashing to 4aeacdeb01551577e26c6af293dc3e9f

query I rowsort
SELECT + - col2 * - col2 + + col0 AS col2 FROM tab2 AS cor0
----
1523
736
754

query I rowsort
SELECT DISTINCT col2 * - ( col2 + col2 ) AS col0 FROM tab0
----
-13448
-2
-2178

query I rowsort
SELECT DISTINCT - 70 + col0 * col1 FROM tab2 AS cor0
----
1273
147
4532

query I rowsort
SELECT DISTINCT - tab2.col2 * tab2.col2 FROM tab2, tab0 AS cor0
----
-1444
-676
-729

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 69 col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 3bd7460efa48c66c072ad5f3c2def7e9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3334
SELECT - + CAST( + 61 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-61
-61
-61

skipif mysql # not compatible
query I rowsort label-3334
SELECT - + CAST ( + 61 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-61
-61
-61

onlyif mysql # use DIV operator for integer division
query I rowsort label-3335
SELECT - 86 DIV 41 FROM tab2 cor0
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-3335
SELECT - 86 / 41 FROM tab2 cor0
----
-2
-2
-2

query I rowsort
SELECT cor0.col1 * col2 + - 21 * - col1 AS col0 FROM tab0 AS cor0
----
2134
4644
9373

query I rowsort
SELECT + + 89 + col1 * col2 FROM tab0 AS cor0
----
186
2927
7551

query I rowsort
SELECT col2 * + col2 + col1 + col2 FROM tab2 AS cor0
----
1499
761
787

query I rowsort
SELECT 43 + + tab1.col0 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to e040dd19ef805c1a6d94fad959b43bc3

query I rowsort
SELECT ALL 37 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to a10b03e72860b949bdff53827700a9a8

query I rowsort
SELECT col0 * - 50 + col0 FROM tab2 AS cor0
----
-343
-3822
-3871

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3342
SELECT col2 + - CAST( col2 * col1 AS SIGNED ) AS col1 FROM tab2
----
-1508
-608
-810

skipif mysql # not compatible
query I rowsort label-3342
SELECT col2 + - CAST ( col2 * col1 AS INTEGER ) AS col1 FROM tab2
----
-1508
-608
-810

query I rowsort
SELECT ALL 63 + + tab0.col2 * + tab0.col0 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to b8da84902d4b585a8a6deaa0b1212f6a

query I rowsort
SELECT DISTINCT + cor0.col0 AS col1 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
7
78
79

query I rowsort
SELECT DISTINCT cor0.col0 - col0 * + col2 * col1 AS col0 FROM tab2 AS cor0
----
-119574
-50955
-5852

query I rowsort
SELECT col0 * + 82 * col0 FROM tab0
----
100450
47232
649522

query I rowsort
SELECT DISTINCT + col1 * + ( + col0 ) AS col0 FROM tab0
----
2064
3395
8099

query I rowsort
SELECT - + col2 + + col0 FROM tab0 cor0
----
-9
34
7

query I rowsort
SELECT - col2 * + ( col0 ) + - col0 AS col2 FROM tab0 AS cor0
----
-70
-7387
-816

query I rowsort
SELECT cor0.col1 + - col2 * + col1 AS col1 FROM tab1 AS cor0
----
-1235
-1378
-560

onlyif mysql # use DIV operator for integer division
query I rowsort label-3351
SELECT - col0 + + 15 DIV - 47 AS col1 FROM tab0 AS cor0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-3351
SELECT - col0 + + 15 / - 47 AS col1 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT DISTINCT - 32 FROM tab2 cor0 CROSS JOIN tab2 cor1
----
-32

query IIIIIIIIIIIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab1, tab1 AS cor2, tab1 AS cor3
----
13122 values hashing to cf87b6baf14afdbc5402c0f315a4be41

onlyif mysql # use DIV operator for integer division
query I rowsort label-3354
SELECT DISTINCT + + col0 DIV - col2 AS col0 FROM tab1 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-3354
SELECT DISTINCT + + col0 / - col2 AS col0 FROM tab1 AS cor0
----
-1
0

query I rowsort
SELECT ALL - + col0 + - 77 FROM tab1 AS cor0
----
-141
-157
-80

query I rowsort
SELECT - + col2 * + ( - col0 ) + - col2 * col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT col0 + 66 AS col2 FROM tab0 AS cor0
----
101
155
90

query I rowsort
SELECT ALL - col0 + col0 + + cor0.col1 AS col0 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT - + col2 * col2 + cor0.col2 * col1 AS col0 FROM tab0 AS cor0
----
1749
738
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3360
SELECT DISTINCT + - col1 + + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3360
SELECT DISTINCT + - col1 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - col1 + - 97 FROM tab1 AS cor0
----
-107
-110
-123

onlyif mysql # use DIV operator for integer division
query I rowsort label-3362
SELECT ALL + + col0 DIV - ( col0 ) AS col0 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3362
SELECT ALL + + col0 / - ( col0 ) AS col0 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ALL col0 * + col1 + 43 AS col1 FROM tab1 AS cor0
----
1083
121
683

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 - col1 col0 FROM tab2 cor0
----
-118
-34
-62

query I rowsort
SELECT ALL col1 + + col1 * + ( col2 + - col2 ) FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT DISTINCT - col1 - ( col0 * col1 + ( col2 ) ) AS col1 FROM tab0 AS cor0
----
-2183
-3493
-8272

query I rowsort
SELECT + 15 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( ( + cor0.col2 ) ) * - 4 + + cor0.col2 * - cor0.col0 col0 FROM tab1 AS cor0
----
-3420
-7296
54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 87 - 0 col2 FROM tab0, tab2 AS cor0, tab0 AS cor1, tab0 AS cor2
----
81 values hashing to edb5a8bbcb3204ac8254e54507073328

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 + - col0 * col2 col1 FROM tab0 AS cor0
----
-70
-7387
-816

query I rowsort
SELECT DISTINCT + 33 * + col1 + 89 AS col2 FROM tab0 AS cor0
----
2927
3092
3290

query I rowsort
SELECT DISTINCT + 55 + col0 + 76 FROM tab2 AS cor0
----
138
209
210

query I rowsort
SELECT DISTINCT + + cor0.col0 * - col0 + + 96 * + cor0.col1 AS col2 FROM tab0 AS cor0
----
7680
8087
815

query I rowsort
SELECT + col2 + - col0 * + col0 FROM tab0 AS cor0
----
-1224
-543
-7839

query I rowsort
SELECT DISTINCT - tab2.col0 + - tab2.col1 AS col1 FROM tab2
----
-137
-38
-96

query I rowsort
SELECT col2 FROM tab1 WHERE + col0 >= NULL
----

query I rowsort
SELECT - + col0 * - cor0.col2 AS col1 FROM tab0 AS cor0
----
35
7298
792

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3378
SELECT ALL + 81 * col1 - + CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3378
SELECT ALL + 81 * col1 - + CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 39 * + tab0.col1 - - col2 FROM tab0
----
-3321
-3467
-3782

query I rowsort
SELECT DISTINCT + ( + 89 ) AS col2 FROM tab2, tab2 AS cor0
----
89

query I rowsort
SELECT + - col1 * + col1 + ( - cor0.col2 ) FROM tab2 cor0
----
-327
-3507
-988

onlyif mysql # use DIV operator for integer division
query I rowsort label-3382
SELECT ALL col0 DIV 97 + 1 AS col1 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3382
SELECT ALL col0 / 97 + 1 AS col1 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT ALL col0 * - cor0.col0 + col0 AS col1 FROM tab1 AS cor0
----
-4032
-6
-6320

query I rowsort
SELECT col2 + 32 * + col0 FROM tab2
----
251
2522
2566

query I rowsort
SELECT col0 * - 42 AS col1 FROM tab1
----
-126
-2688
-3360

query I rowsort
SELECT - col2 * col0 * tab0.col2 + col1 AS col0 FROM tab0
----
-26050
-598345
62

query I rowsort
SELECT + col0 + - col2 * tab2.col1 AS col0 FROM tab2
----
-1456
-567
-830

query I rowsort
SELECT DISTINCT col2 * + col0 + 22 FROM tab0
----
57
7320
814

query I rowsort
SELECT ALL - ( - 74 ) FROM tab0, tab0 AS cor0
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31

onlyif mysql # use DIV operator for integer division
query I rowsort label-3390
SELECT - + col2 * - 43 + - col0 DIV col0 AS col2 FROM tab0 AS cor0
----
1418
3525
42

skipif mysql # not compatible
query I rowsort label-3390
SELECT - + col2 * - 43 + - col0 / col0 AS col2 FROM tab0 AS cor0
----
1418
3525
42

query I rowsort
SELECT DISTINCT col0 * + col0 + - cor0.col2 AS col0 FROM tab2 AS cor0
----
22
6058
6203

query I rowsort
SELECT col0 * + 59 + col1 AS col2 FROM tab0 AS cor0
----
1502
2162
5342

query I rowsort
SELECT DISTINCT - col2 * - 46 FROM tab0 AS cor0
----
1518
3772
46

query I rowsort
SELECT cor0.col1 + - col0 * col1 AS col1 FROM tab2 AS cor0
----
-1326
-186
-4543

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + cor0.col2 col2 FROM tab2 AS cor0
----
-33
-4
21

query I rowsort
SELECT DISTINCT + ( - col0 ) * col1 AS col2 FROM tab0
----
-2064
-3395
-8099

query I rowsort
SELECT col0 + 43 AS col1 FROM tab1
----
107
123
46

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3398
SELECT + CAST( NULL AS DECIMAL ) + ( col0 ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3398
SELECT + CAST ( NULL AS REAL ) + ( col0 ) FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + cor0.col1 ) + + col0 * 90 col0 FROM tab1 AS cor0
----
296
5770
7213

query I rowsort
SELECT + 45 * cor0.col0 AS col0 FROM tab0 AS cor0
----
1080
1575
4005

query I rowsort
SELECT ALL - - 35 * col2 FROM tab1 AS cor0
----
1890
1995
3360

query I rowsort
SELECT DISTINCT 20 * + col1 AS col0 FROM tab1 AS cor0
----
200
260
520

query I rowsort
SELECT DISTINCT + 69 AS col0 FROM tab2 AS cor0
----
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 10 col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to a47194429f3e0358a3aebffd5f050113

query I rowsort
SELECT - 2 * + col0 AS col2 FROM tab2 AS cor0
----
-14
-156
-158

query I rowsort
SELECT - col1 * + col2 + col0 * col1 AS col1 FROM tab0 AS cor0
----
-774
3298
637

query I rowsort
SELECT DISTINCT - 20 * cor0.col1 FROM tab1 AS cor0
----
-200
-260
-520

query I rowsort
SELECT - 62 * - col1 FROM tab0 AS cor0
----
5332
5642
6014

query I rowsort
SELECT + ( 73 ) - col1 FROM tab1
----
47
60
63

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3410
SELECT ALL - ( col2 ) * + CAST( + col2 AS SIGNED ) FROM tab2 AS cor0
----
-1444
-676
-729

skipif mysql # not compatible
query I rowsort label-3410
SELECT ALL - ( col2 ) * + CAST ( + col2 AS INTEGER ) FROM tab2 AS cor0
----
-1444
-676
-729

query I rowsort
SELECT + ( + col0 ) * 52 AS col0 FROM tab2 AS cor0
----
364
4056
4108

query I rowsort
SELECT ALL - cor0.col0 + cor0.col2 FROM tab1 cor0
----
-7
16
51

query I rowsort
SELECT DISTINCT - 67 + cor0.col2 AS col1 FROM tab1 AS cor0
----
-10
-13
29

query I rowsort
SELECT DISTINCT - col1 * + col1 * cor0.col0 AS col1 FROM tab0 AS cor0
----
-177504
-329315
-737009

query I rowsort
SELECT ALL - - col0 * - col1 AS col0 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT + col1 * col2 * - col0 + - tab1.col0 AS col2 FROM tab1
----
-36544
-4215
-99920

query I rowsort
SELECT col2 * tab1.col2 + + col0 + + col1 FROM tab1
----
2945
3323
9309

query I rowsort
SELECT col2 * - col0 * col1 FROM tab0
----
-3395
-664118
-68112

query I rowsort
SELECT ALL col0 * col2 + - tab2.col2 FROM tab2
----
162
2002
2964

query I rowsort
SELECT DISTINCT col1 + + col0 * - col2 AS col2 FROM tab0
----
-706
-7207
62

query I rowsort
SELECT + col0 * + col0 - cor0.col2 FROM tab0 AS cor0
----
1224
543
7839

query I rowsort
SELECT - + col2 * col1 + - col1 + - col2 FROM tab2 AS cor0
----
-1619
-701
-895

query I rowsort
SELECT col2 + col1 + + col2 FROM tab1 AS cor0
----
124
134
205

query I rowsort
SELECT tab0.col0 * col0 * col2 AS col2 FROM tab0
----
1225
19008
649522

query I rowsort
SELECT DISTINCT - col2 * col2 + col0 AS col0 FROM tab1
----
-2913
-3185
-9136

query I rowsort
SELECT + 7 + - col0 FROM tab0 AS cor0
----
-17
-28
-82

query I rowsort
SELECT + ( - col0 ) * - tab0.col1 AS col1 FROM tab0
----
2064
3395
8099

query I rowsort
SELECT tab1.col0 + 53 * + col0 AS col0 FROM tab1
----
162
3456
4320

query I rowsort
SELECT ALL + col2 * - col1 * col0 FROM tab2
----
-119652
-51034
-5859

query I rowsort
SELECT DISTINCT tab2.col1 * + 28 AS col2 FROM tab2
----
1652
476
868

query I rowsort
SELECT col2 * - 89 FROM tab0
----
-2937
-7298
-89

onlyif mysql # use DIV operator for integer division
query I rowsort label-3432
SELECT ALL 63 + + col1 DIV cor0.col1 col1 FROM tab0 AS cor0
----
64
64
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3432
SELECT ALL 63 + + col1 / cor0.col1 col1 FROM tab0 AS cor0
----
64
64
64

query I rowsort
SELECT DISTINCT col2 + col2 + - col1 AS col1 FROM tab0 AS cor0
----
-20
-95
73

query I rowsort
SELECT ALL + 55 + - col0 AS col2 FROM tab2 cor0
----
-23
-24
48

query I rowsort
SELECT DISTINCT + + cor0.col2 * - col2 - cor0.col2 AS col1 FROM tab2 AS cor0
----
-1482
-702
-756

query I rowsort
SELECT - - 5 + + col0 AS col2 FROM tab0 AS cor0
----
29
40
94

query III rowsort
SELECT ALL * FROM tab0 WHERE col1 NOT BETWEEN col1 + col1 AND ( NULL )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

query I rowsort
SELECT col1 * col2 + + col2 AS col2 FROM tab1
----
1344
1458
627

query I rowsort
SELECT - col2 FROM tab0 WHERE ( col2 * - col1 ) IN ( - tab0.col2 * - col1 / col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + + col2 col0 FROM tab2
----
55
58
85

query I rowsort
SELECT - col1 + - col2 * tab2.col1 * - col1 FROM tab2
----
10965
25916
90447

onlyif mysql # use DIV operator for integer division
query I rowsort label-3442
SELECT DISTINCT - col0 DIV + col0 + col0 * - tab1.col0 AS col1 FROM tab1
----
-10
-4097
-6401

skipif mysql # not compatible
query I rowsort label-3442
SELECT DISTINCT - col0 / + col0 + col0 * - tab1.col0 AS col1 FROM tab1
----
-10
-4097
-6401

query III rowsort
SELECT * FROM tab0 WHERE col0 * tab0.col0 >= + col0 + - col1 / col1
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - col0 * col2 col2 FROM tab0
----
-3395
-664118
-68112

query I rowsort
SELECT ALL tab1.col0 + - tab1.col1 FROM tab1
----
-23
54
67

query I rowsort
SELECT + col1 + - col0 + - col2 FROM tab2
----
-100
-3
-45

query I rowsort
SELECT DISTINCT - col0 + col1 * - col0 FROM tab2
----
-1422
-224
-4680

query I rowsort
SELECT tab0.col1 * - tab0.col2 - col2 AS col1 FROM tab0
----
-2871
-7544
-98

query I rowsort
SELECT + col2 + + col2 * tab1.col2 FROM tab1
----
2970
3306
9312

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( + col2 ) BETWEEN NULL AND - col0 * col0 * col0
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

query I rowsort
SELECT col2 + col0 * tab1.col2 + col1 FROM tab1
----
242
3715
7789

query I rowsort
SELECT DISTINCT tab0.col0 + - col2 * tab0.col2 FROM tab0
----
-1065
-6635
34

query III rowsort
SELECT * FROM tab1 WHERE col2 <= ( NULL )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-3454
SELECT ALL - col2 DIV col0 + col2 DIV col1 AS col1 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3454
SELECT ALL - col2 / col0 + col2 / col1 AS col1 FROM tab0
----
-1
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3455
SELECT ALL + col2 DIV col1 + + col0 AS col2 FROM tab1
----
5
69
87

skipif mysql # not compatible
query I rowsort label-3455
SELECT ALL + col2 / col1 + + col0 AS col2 FROM tab1
----
5
69
87

query I rowsort
SELECT DISTINCT + col0 + col1 * col0 FROM tab0
----
2088
3430
8188

query I rowsort
SELECT + col2 AS col0 FROM tab0 WHERE NOT NULL < col1 * col0
----

query I rowsort
SELECT DISTINCT - col2 + + col2 * col0 AS col2 FROM tab2
----
162
2002
2964

query I rowsort
SELECT col0 * - tab1.col2 * col1 FROM tab1
----
-36480
-4212
-99840

onlyif mysql # use DIV operator for integer division
query I rowsort label-3460
SELECT - col0 DIV col1 - col0 FROM tab1 AS cor0
----
-3
-70
-86

skipif mysql # not compatible
query I rowsort label-3460
SELECT - col0 / col1 - col0 FROM tab1 AS cor0
----
-3
-70
-86

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( col0 ) IN ( col0 * col2 * + col2 + col0 + + col0 * - col0 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

query I rowsort
SELECT col2 * + col0 * col1 + - cor0.col1 FROM tab2 AS cor0
----
119593
51017
5828

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - col1 + col0 col1 FROM tab1 AS cor0
----
111
163
31

query I rowsort
SELECT col1 + + col2 * - col1 FROM tab1 cor0
----
-1235
-1378
-560

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 WHERE NULL = NULL
----

query I rowsort
SELECT + col0 FROM tab1 WHERE NOT - col2 NOT BETWEEN - col1 + col2 + col1 AND ( col1 * col2 )
----

query I rowsort
SELECT DISTINCT col0 * col0 FROM tab0 AS cor0 WHERE + cor0.col0 NOT IN ( + col2 + col1 )
----
1225
576
7921

query I rowsort
SELECT col2 + col1 + col2 * - col2 FROM tab2 cor0
----
-1389
-591
-671

query I rowsort
SELECT cor0.col0 + col2 + - col2 * col2 AS col0 FROM tab1 AS cor0
----
-2859
-3128
-9040

query I rowsort
SELECT - 9 FROM tab2, tab0 AS cor0, tab1, tab2 AS cor1
----
81 values hashing to ea2ee48b6db0ed0e9f87711d3eeef049

query I rowsort
SELECT DISTINCT col0 * col1 - col0 * col0 FROM tab0
----
1488
178
2170

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 50 * col1 * col0 col0 FROM tab1 AS cor0
----
-32000
-3900
-52000

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + 79 * + col1 col2 FROM tab2 AS cor0
----
1360
2480
4720

query I rowsort
SELECT cor0.col1 * + 21 FROM tab0 AS cor0
----
1806
1911
2037

query I rowsort
SELECT - col1 * - 43 + - col0 AS col0 FROM tab1 AS cor0
----
1115
366
479

query I rowsort
SELECT DISTINCT 13 * col2 + + ( - 19 * col1 ) AS col2 FROM tab0 AS cor0
----
-1205
-1830
-663

onlyif mysql # use DIV operator for integer division
query I rowsort label-3477
SELECT 57 + + col1 DIV + 21 AS col2 FROM tab1 cor0
----
57
57
58

skipif mysql # not compatible
query I rowsort label-3477
SELECT 57 + + col1 / + 21 AS col2 FROM tab1 cor0
----
57
57
58

onlyif mysql # use DIV operator for integer division
query I rowsort label-3478
SELECT + CAST( + 32 AS SIGNED ) DIV tab1.col1 FROM tab1
----
1
2
3

skipif mysql # not compatible
query I rowsort label-3478
SELECT + CAST ( + 32 AS INTEGER ) / tab1.col1 FROM tab1
----
1
2
3

onlyif mysql # use DIV operator for integer division
query I rowsort label-3479
SELECT + 11 DIV col1 AS col2 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3479
SELECT + 11 / col1 AS col2 FROM tab1
----
0
0
1

query I rowsort
SELECT DISTINCT - - cor0.col0 + col2 * + cor0.col1 FROM tab1 cor0
----
1328
1407
634

query I rowsort
SELECT DISTINCT col2 + col2 * - 19 * + col2 FROM tab0 AS cor0
----
-127674
-18
-20658

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 * - cor0.col0 + 65 col1 FROM tab1 AS cor0
----
-13
-575
-975

query I rowsort
SELECT DISTINCT 70 * cor1.col1 AS col1 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
1190
2170
4130

query I rowsort
SELECT ALL + - ( - cor0.col0 ) * - col0 + + 97 AS col1 FROM tab1 AS cor0
----
-3999
-6303
88

query I rowsort
SELECT DISTINCT - - 87 + - col1 + - col0 FROM tab1 cor0
----
-6
13
58

query I rowsort
SELECT ALL + col0 + - col1 * - cor0.col2 FROM tab0 AS cor0
----
132
2862
7551

query I rowsort
SELECT ALL - cor0.col2 * col0 + col1 AS col1 FROM tab1 AS cor0
----
-136
-3638
-7667

query I rowsort
SELECT ALL + col0 * + col0 + cor0.col0 FROM tab1 AS cor0
----
12
4160
6480

query I rowsort
SELECT + ( + 75 ) FROM tab1 AS cor0
----
75
75
75

query I rowsort
SELECT ALL - col0 + - col2 * col2 AS col2 FROM tab0 cor0
----
-1113
-36
-6813

query I rowsort
SELECT DISTINCT 36 * cor0.col0 AS col1 FROM tab0 AS cor0
----
1260
3204
864

onlyif mysql # use DIV operator for integer division
query I rowsort label-3492
SELECT ALL - tab2.col0 * col0 DIV col0 AS col1 FROM tab2
----
-7
-78
-79

skipif mysql # not compatible
query I rowsort label-3492
SELECT ALL - tab2.col0 * col0 / col0 AS col1 FROM tab2
----
-7
-78
-79

query I rowsort
SELECT tab0.col0 - - col2 FROM tab0
----
171
36
57

query I rowsort
SELECT col0 + + 44 AS col0 FROM tab0
----
133
68
79

query I rowsort
SELECT + 92 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to c64cb7a81da51f4be0b6906a223e8817

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3496
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + 73 FROM tab1, tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3496
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + 73 FROM tab1, tab2 AS cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3497
SELECT DISTINCT - - CAST( 70 AS SIGNED ) + col2 AS col0 FROM tab2 AS cor0
----
108
96
97

skipif mysql # not compatible
query I rowsort label-3497
SELECT DISTINCT - - CAST ( 70 AS INTEGER ) + col2 AS col0 FROM tab2 AS cor0
----
108
96
97

query I rowsort
SELECT DISTINCT + cor0.col1 * col0 AS col2 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT ( col0 ) * + cor0.col0 AS col0 FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT DISTINCT - + ( + col1 ) * + col1 - + 0 FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT + ( - 51 ) AS col0 FROM tab0 AS cor0
----
-51
-51
-51

onlyif mysql # use DIV operator for integer division
query I rowsort label-3502
SELECT ALL - 87 DIV col1 AS col2 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3502
SELECT ALL - 87 / col1 AS col2 FROM tab0 AS cor0
----
-1
0
0

query I rowsort
SELECT ALL + 29 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2

query I rowsort
SELECT + - col2 + - col0 * col1 AS col0 FROM tab2 AS cor0
----
-1381
-244
-4628

query I rowsort
SELECT ALL + col1 * col2 + col1 * col1 AS col1 FROM tab0
----
10234
15743
9506

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3506
SELECT DISTINCT + col0 + ( ( col0 ) ) - - CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3506
SELECT DISTINCT + col0 + ( ( col0 ) ) - - CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL

query I rowsort
SELECT ALL col1 * - ( + col2 ) AS col2 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT + - cor0.col0 + - 81 + col1 AS col2 FROM tab2 AS cor0
----
-100
-143
-57

onlyif mysql # use DIV operator for integer division
query I rowsort label-3509
SELECT - col2 DIV col2 + + col1 FROM tab0 cor0
----
85
90
96

skipif mysql # not compatible
query I rowsort label-3509
SELECT - col2 / col2 + + col1 FROM tab0 cor0
----
85
90
96

query I rowsort
SELECT DISTINCT 97 AS col0 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
97

query I rowsort
SELECT col2 + - ( col2 ) FROM tab2
----
0
0
0

query I rowsort
SELECT col0 * - 31 + + col1 * col0 + col2 * - 39 FROM tab2 AS cor0
----
-1053
-2588
1170

query IIIIIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab2 cor2
----
972 values hashing to bcf430f79386b43bc4077271fcd15cf0

query I rowsort
SELECT - col2 * - 4 + - col2 FROM tab1
----
162
171
288

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3515
SELECT - tab1.col0 * CAST( 23 AS SIGNED ) * - col2 + + col1 FROM tab1
----
176653
3752
83914

skipif mysql # not compatible
query I rowsort label-3515
SELECT - tab1.col0 * CAST ( 23 AS INTEGER ) * - col2 + + col1 FROM tab1
----
176653
3752
83914

query I rowsort
SELECT DISTINCT + col0 + 94 AS col0 FROM tab2 AS cor0
----
101
172
173

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3517
SELECT col2 * + CAST( ( col1 ) AS SIGNED ) + - col2 AS col0 FROM tab0 AS cor0
----
2805
7380
96

skipif mysql # not compatible
query I rowsort label-3517
SELECT col2 * + CAST ( ( col1 ) AS INTEGER ) + - col2 AS col0 FROM tab0 AS cor0
----
2805
7380
96

query I rowsort
SELECT ALL col0 * - col2 * - col1 + col2 FROM tab2 AS cor0
----
119678
51072
5886

query I rowsort
SELECT DISTINCT cor0.col0 + ( + col2 ) FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT ALL + col0 * 45 + 60 AS col1 FROM tab0 AS cor0
----
1140
1635
4065

query I rowsort
SELECT ALL col0 + + 97 FROM tab2 AS cor0
----
104
175
176

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3522
SELECT - col2 / + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3522
SELECT - col2 / + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 * 69 + + col0 + col1 * - col0 FROM tab2 AS cor0
----
-2730
1358
1653

query I rowsort
SELECT col2 * + col0 * 28 FROM tab0 AS cor0
----
204344
22176
980

query I rowsort
SELECT ALL + + col2 * + 30 FROM tab2 cor0
----
1140
780
810

query I rowsort
SELECT + col2 + + col2 + col0 AS col2 FROM tab1 AS cor0
----
111
178
272

query I rowsort
SELECT DISTINCT + - col2 + col1 + + ( + cor0.col2 ) AS col0 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT ALL 87 * col0 FROM tab1 cor0
----
261
5568
6960

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3529
SELECT DISTINCT - 91 * tab1.col1 * CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3529
SELECT DISTINCT - 91 * tab1.col1 * CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3530
SELECT + CAST( NULL AS SIGNED ) * cor1.col2 FROM tab2, tab2 cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-3530
SELECT + CAST ( NULL AS INTEGER ) * cor1.col2 FROM tab2, tab2 cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

onlyif mysql # use DIV operator for integer division
query I rowsort label-3531
SELECT - col1 DIV 90 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3531
SELECT - col1 / 90 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + col1 + + col1 * - 37 AS col0 FROM tab1 AS cor0
----
-360
-468
-936

onlyif mysql # use DIV operator for integer division
query I rowsort label-3533
SELECT + col0 DIV + cor0.col1 AS col2 FROM tab1 AS cor0
----
0
6
6

skipif mysql # not compatible
query I rowsort label-3533
SELECT + col0 / + cor0.col1 AS col2 FROM tab1 AS cor0
----
0
6
6

query I rowsort
SELECT - col1 + 35 * col1 AS col2 FROM tab0 AS cor0
----
2924
3094
3298

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3535
SELECT DISTINCT CAST( NULL AS SIGNED ) * - col0 - col0 AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3535
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - col0 - col0 AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - col1 + + col0 * cor0.col2 FROM tab2 AS cor0
----
158
1969
2985

query I rowsort
SELECT DISTINCT - col1 * + 20 + - col0 AS col1 FROM tab2 cor0
----
-1258
-419
-627

query I rowsort
SELECT - + ( col0 ) * - col1 + 52 * 81 FROM tab1 AS cor0
----
4290
4852
5252

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3539
SELECT ALL + + CAST( NULL AS SIGNED ) + 76 * - col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3539
SELECT ALL + + CAST ( NULL AS INTEGER ) + 76 * - col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 91 + 94 AS col0 FROM tab1 AS cor0
----
185
185
185

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3541
SELECT - CAST( NULL AS SIGNED ) * - 73 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3541
SELECT - CAST ( NULL AS INTEGER ) * - 73 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col0 + col2 * col1 AS col1 FROM tab1
----
1168
1401
506

query I rowsort
SELECT col1 + col2 * - 87 AS col0 FROM tab2
----
-2203
-2318
-3289

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 * 18 + - col1 col0 FROM tab2 AS cor0
----
409
455
667

query I rowsort
SELECT col1 + cor0.col1 * + col0 AS col2 FROM tab0 AS cor0
----
2150
3492
8190

query I rowsort
SELECT + + 58 + - col1 AS col0 FROM tab2 AS cor0
----
-1
27
41

query I rowsort
SELECT DISTINCT 93 AS col0 FROM tab1, tab2 AS cor0
----
93

query I rowsort
SELECT tab2.col1 * 59 FROM tab2
----
1003
1829
3481

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + cor0.col1 ) + col2 col2 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT - col1 * - 93 + col0 FROM tab2 AS cor0
----
1660
2890
5565

query I rowsort
SELECT DISTINCT col1 * + cor0.col1 * + col1 AS col0 FROM tab0 AS cor0
----
636056
753571
912673

query I rowsort
SELECT DISTINCT + cor0.col2 * cor0.col2 FROM tab2 cor0
----
1444
676
729

query I rowsort
SELECT + col0 + - col1 * - col2 FROM tab1 AS cor0
----
1328
1407
634

query I rowsort
SELECT ALL - col2 + + col2 * + col2 FROM tab2 AS cor0
----
1406
650
702

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + cor0.col0 * + col2 + col0 col2 FROM tab0 cor0
----
-7209
-768
0

query I rowsort
SELECT - col0 + - cor0.col1 * col2 FROM tab2 AS cor0
----
-1612
-725
-844

query I rowsort
SELECT ALL + 12 AS col2 FROM tab0
----
12
12
12

query I rowsort
SELECT ALL - 89 AS col1 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 924a74d31360fa4301c953b423a4710e

query I rowsort
SELECT - + col0 + col2 * + cor0.col0 FROM tab2 AS cor0
----
182
1950
2923

query I rowsort
SELECT + 5 + - col0 FROM tab2 AS cor0
----
-2
-73
-74

query I rowsort
SELECT + col2 * - col2 + cor0.col1 + col1 AS col0 FROM tab2 AS cor0
----
-1410
-558
-667

query I rowsort
SELECT DISTINCT 48 * cor0.col1 FROM tab1, tab2 AS cor0
----
1488
2832
816

onlyif mysql # use DIV operator for integer division
query I rowsort label-3563
SELECT ALL col1 + + col0 DIV col1 AS col0 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-3563
SELECT ALL col1 + + col0 / col1 AS col0 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT ALL + - col0 + - col1 * 30 AS col0 FROM tab2 AS cor0
----
-1848
-589
-937

query I rowsort
SELECT + 27 * - 55 AS col1 FROM tab1
----
-1485
-1485
-1485

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab1.col2 * + col0 col1 FROM tab1
----
162
3648
7680

query I rowsort
SELECT DISTINCT - col1 * col0 * - col2 - + col0 FROM tab2
----
119574
50955
5852

query I rowsort
SELECT + - 56 * - col1 - col1 * 71 FROM tab2 AS cor0
----
-255
-465
-885

query I rowsort
SELECT + cor0.col0 + col0 * - col2 FROM tab0 AS cor0
----
-7209
-768
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3570
SELECT + col0 * - 0 - col0 DIV + col2 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3570
SELECT + col0 * - 0 - col0 / + col2 FROM tab1 AS cor0
----
-1
0
0

query I rowsort
SELECT + + 26 + - col1 FROM tab2 AS cor0
----
-33
-5
9

query I rowsort
SELECT ALL + cor0.col1 * cor0.col2 - 64 FROM tab0, tab0 AS cor0
----
9 values hashing to 73b5ec93e84970482cb06b9f4c24a382

query I rowsort
SELECT + - 50 * 71 + col0 FROM tab1 AS cor0
----
-3470
-3486
-3547

query I rowsort
SELECT ALL - + col1 + + 37 FROM tab2 cor0
----
-22
20
6

query I rowsort
SELECT DISTINCT - col1 + + cor0.col1 * col1 FROM tab2 AS cor0
----
272
3422
930

query I rowsort
SELECT DISTINCT - - col0 - ( + ( col2 ) ) AS col1 FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT + col0 * - col2 * col0 FROM tab0 AS cor0
----
-1225
-19008
-649522

query I rowsort
SELECT ALL col1 * cor0.col0 * col0 FROM tab2 cor0
----
106097
1519
358956

query I rowsort
SELECT ALL - col2 * ( - col0 ) AS col0 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT ALL cor0.col0 * col0 + col0 * + col0 AS col0 FROM tab0 AS cor0
----
1152
15842
2450

query I rowsort
SELECT 23 AS col0 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 546d49aa433406dd83ea19885588e658

query I rowsort
SELECT col2 * - col0 + - 80 AS col0 FROM tab0
----
-115
-7378
-872

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3583
SELECT - tab0.col0 + CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3583
SELECT - tab0.col0 + CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 + + ( - col1 ) col1 FROM tab0 AS cor0
----
-172
-182
-194

query I rowsort
SELECT DISTINCT col0 + + 16 * + 80 FROM tab1 AS cor0
----
1283
1344
1360

query I rowsort
SELECT DISTINCT col0 * - col1 - 57 AS col0 FROM tab1 cor0
----
-1097
-135
-697

query I rowsort
SELECT ALL cor0.col1 * 3 + col2 FROM tab1 AS cor0
----
132
135
87

query I rowsort
SELECT DISTINCT - 60 + 65 AS col0 FROM tab1
----
5

query I rowsort
SELECT - 23 + - cor0.col0 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 194f51725d4f889b8ca8d0ed6ee43504

query I rowsort
SELECT + ( - col1 ) * cor0.col0 + 27 FROM tab0 AS cor0
----
-2037
-3368
-8072

query I rowsort
SELECT - 13 + + 77 + + col0 AS col0 FROM tab0 AS cor0
----
153
88
99

query I rowsort
SELECT col2 + + col0 + col0 FROM tab0 AS cor0
----
260
71
81

query I rowsort
SELECT + + col0 * col0 + - col1 + col0 * - col0 FROM tab1 AS cor0
----
-10
-13
-26

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3594
SELECT 97 * - col0 * - CAST( + ( + col0 ) AS SIGNED ) AS col1 FROM tab1 AS cor0
----
397312
620800
873

skipif mysql # not compatible
query I rowsort label-3594
SELECT 97 * - col0 * - CAST ( + ( + col0 ) AS INTEGER ) AS col1 FROM tab1 AS cor0
----
397312
620800
873

query I rowsort
SELECT DISTINCT - + 49 * + col1 FROM tab0 AS cor0
----
-4214
-4459
-4753

query I rowsort
SELECT ALL 62 * - col1 FROM tab2 AS cor0
----
-1054
-1922
-3658

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 20 * col2 col1 FROM tab2
----
520
540
760

query I rowsort
SELECT 97 * - col0 AS col1 FROM tab0
----
-2328
-3395
-8633

query I rowsort
SELECT DISTINCT col1 * - col0 + - col0 FROM tab1 AS cor0
----
-1120
-704
-81

onlyif mysql # use DIV operator for integer division
query I rowsort label-3600
SELECT - 35 * cor0.col1 + + ( + col2 ) DIV cor0.col0 AS col1 FROM tab1 AS cor0
----
-350
-454
-892

skipif mysql # not compatible
query I rowsort label-3600
SELECT - 35 * cor0.col1 + + ( + col2 ) / cor0.col0 AS col1 FROM tab1 AS cor0
----
-350
-454
-892

query I rowsort
SELECT ALL 59 + - col0 FROM tab2 AS cor0
----
-19
-20
52

query I rowsort
SELECT DISTINCT - 38 AS col0 FROM tab2 AS cor0
----
-38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 44 * + col0 col2 FROM tab2 AS cor0
----
308
3432
3476

query I rowsort
SELECT DISTINCT - col1 + - col0 * - col2 FROM tab2 AS cor0
----
158
1969
2985

query I rowsort
SELECT DISTINCT + col2 * + cor0.col1 + + col1 FROM tab1 AS cor0
----
1261
1430
580

query I rowsort
SELECT ALL col1 * col1 + cor0.col0 FROM tab2 AS cor0
----
3559
368
968

query I rowsort
SELECT col1 + ( 88 ) * - col1 AS col1 FROM tab2 AS cor0
----
-1479
-2697
-5133

query I rowsort
SELECT DISTINCT - - 59 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
59

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3609
SELECT DISTINCT + CAST( - col2 AS SIGNED ) * + col2 AS col0 FROM tab2 AS cor0
----
-1444
-676
-729

skipif mysql # not compatible
query I rowsort label-3609
SELECT DISTINCT + CAST ( - col2 AS INTEGER ) * + col2 AS col0 FROM tab2 AS cor0
----
-1444
-676
-729

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 70 col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 9758da65ae4711e3e8c8def2fe026911

onlyif mysql # use DIV operator for integer division
query I rowsort label-3611
SELECT + col2 + - 8 DIV col1 FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-3611
SELECT + col2 + - 8 / col1 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT DISTINCT + 35 AS col2 FROM tab2, tab1 AS cor0
----
35

query I rowsort
SELECT ALL - ( col0 ) * col1 + - col0 FROM tab0 AS cor0
----
-2088
-3430
-8188

query I rowsort
SELECT ALL + + 62 * + 56 FROM tab2 AS cor0
----
3472
3472
3472

query I rowsort
SELECT DISTINCT - col2 * + cor0.col0 * - col1 + - cor0.col2 * 43 * - col0 FROM tab1 cor0
----
11178
193344
430080

query I rowsort
SELECT - 10 + 13 FROM tab0 cor0
----
3
3
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 14 * - col0 - col0 col0 FROM tab1 AS cor0
----
-1200
-45
-960

query I rowsort
SELECT col1 + + col2 + col0 AS col2 FROM tab1
----
131
189
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-3619
SELECT - 61 * ( col0 ) + col0 DIV 92 FROM tab0 AS cor0
----
-1464
-2135
-5429

skipif mysql # not compatible
query I rowsort label-3619
SELECT - 61 * ( col0 ) + col0 / 92 FROM tab0 AS cor0
----
-1464
-2135
-5429

query I rowsort
SELECT DISTINCT + 91 + col0 * col1 * - cor0.col1 FROM tab1 cor0
----
-13429
-1937
-6309

query I rowsort
SELECT ALL + col0 * - 67 + + cor0.col0 FROM tab1 AS cor0
----
-198
-4224
-5280

query I rowsort
SELECT ALL - 20 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to eb3a66728062963cccbd15bd2f5c9eee

query I rowsort
SELECT 99 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 05ea182fd6036c7f5e0ea08fc061cc67

query I rowsort
SELECT ( tab1.col1 * col2 ) + col1 FROM tab1
----
1261
1430
580

query I rowsort
SELECT + col0 + + col1 + col1 AS col0 FROM tab1
----
106
55
84

query I rowsort
SELECT DISTINCT + col0 * - col0 + - col2 * ( + col0 ) AS col0 FROM tab0
----
-1260
-1368
-15219

onlyif mysql # use DIV operator for integer division
query I rowsort label-3627
SELECT - ( cor0.col2 ) * col0 + - 71 DIV col1 + + col1 FROM tab0 AS cor0
----
-706
-7207
62

skipif mysql # not compatible
query I rowsort label-3627
SELECT - ( cor0.col2 ) * col0 + - 71 / col1 + + col1 FROM tab0 AS cor0
----
-706
-7207
62

query I rowsort
SELECT - col0 * + col2 + + col0 + + col2 AS col2 FROM tab2 cor0
----
-155
-1924
-2885

query I rowsort
SELECT 87 * 80 FROM tab2
----
6960
6960
6960

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + 96 ) * col2 col0 FROM tab1
----
-5184
-5472
-9216

query I rowsort
SELECT DISTINCT - col2 + tab2.col2 * col2 * + ( 73 ) AS col0 FROM tab2
----
105374
49322
53190

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + + 95 * col0 col1 FROM tab2
----
692
7436
7543

query I rowsort
SELECT DISTINCT ( + tab0.col0 ) FROM tab0, tab1, tab0 AS cor0
----
24
35
89

query I rowsort
SELECT DISTINCT + 90 + - tab2.col0 AS col0 FROM tab2
----
11
12
83

query I rowsort
SELECT ALL - 81 FROM tab0, tab2 AS cor0
----
9 values hashing to 205b3ff2d7b1817c98d7980b8c17e6c1

query I rowsort
SELECT ALL col1 * 12 * + col1 FROM tab2
----
11532
3468
41772

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3637
SELECT DISTINCT - CAST( 4 AS SIGNED ) FROM tab2
----
-4

skipif mysql # not compatible
query I rowsort label-3637
SELECT DISTINCT - CAST ( 4 AS INTEGER ) FROM tab2
----
-4

query I rowsort
SELECT ( + col1 ) * col0 * col0 AS col0 FROM tab0
----
118825
49536
720811

query I rowsort
SELECT - + 86 FROM tab0 AS cor0
----
-86
-86
-86

query I rowsort
SELECT - - col2 + 19 + - col1 * - col1 AS col2 FROM tab0 AS cor0
----
7448
8382
9429

query I rowsort
SELECT + col0 + - 33 FROM tab1 AS cor0
----
-30
31
47

query I rowsort
SELECT - + 17 + col0 * col2 FROM tab0 AS cor0
----
18
7281
775

query I rowsort
SELECT DISTINCT col0 * + col1 + + 19 FROM tab2
----
1362
236
4621

onlyif mysql # use DIV operator for integer division
query I rowsort label-3644
SELECT + 77 + col1 DIV col1 + col0 FROM tab0
----
102
113
167

skipif mysql # not compatible
query I rowsort label-3644
SELECT + 77 + col1 / col1 + col0 FROM tab0
----
102
113
167

query I rowsort
SELECT ALL 52 * 91 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 80144708b855b6048e624c01ee165967

query I rowsort
SELECT - - 53 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 866ae1b4ab9e5b4043ac1bcfd413aaa6

query I rowsort
SELECT - + cor0.col1 * col1 + - col0 AS col1 FROM tab2 AS cor0
----
-3559
-368
-968

onlyif mysql # use DIV operator for integer division
query I rowsort label-3648
SELECT - - cor0.col2 * + 99 + col0 DIV col1 FROM tab0 AS cor0
----
3267
8118
99

skipif mysql # not compatible
query I rowsort label-3648
SELECT - - cor0.col2 * + 99 + col0 / col1 FROM tab0 AS cor0
----
3267
8118
99

query I rowsort
SELECT DISTINCT - col0 * + col1 - + 10 FROM tab1 AS cor0
----
-1050
-650
-88

query I rowsort
SELECT - col2 * + 57 + - col0 AS col0 FROM tab0 cor0
----
-1905
-4763
-92

query I rowsort
SELECT ALL - + cor0.col2 - - col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - 37 * col2 + + ( + ( - col2 ) ) AS col1 FROM tab1
----
-2052
-2166
-3648

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3653
SELECT - col2 * - col2 * + CAST( NULL AS SIGNED ) + + col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3653
SELECT - col2 * - col2 * + CAST ( NULL AS INTEGER ) + + col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - cor0.col1 * cor0.col2 * + col1 AS col0 FROM tab0 AS cor0
----
-244068
-679042
-9409

query I rowsort
SELECT + - cor0.col0 + 78 * col0 AS col2 FROM tab2 cor0
----
539
6006
6083

query I rowsort
SELECT - cor0.col2 + 85 FROM tab1 AS cor0
----
-11
28
31

onlyif mysql # use DIV operator for integer division
query I rowsort label-3657
SELECT - col0 + - 41 DIV 24 + + col1 * ( 25 ) AS col2 FROM tab2 AS cor0
----
1396
345
767

skipif mysql # not compatible
query I rowsort label-3657
SELECT - col0 + - 41 / 24 + + col1 * ( 25 ) AS col2 FROM tab2 AS cor0
----
1396
345
767

query I rowsort
SELECT - - col0 * + 89 FROM tab2 cor0
----
623
6942
7031

query I rowsort
SELECT tab2.col0 * - col1 + 3 FROM tab2
----
-1340
-214
-4599

query I rowsort
SELECT DISTINCT - col0 * - col2 + col1 AS col2 FROM tab0 cor0
----
132
7389
878

query I rowsort
SELECT - - cor0.col1 - - 95 AS col2 FROM tab1 AS cor0
----
105
108
121

query I rowsort
SELECT DISTINCT + - cor0.col0 + - 44 + col1 AS col1 FROM tab1 AS cor0
----
-111
-21
-98

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT + col2 * - CAST ( col2 AS REAL ) col2 FROM tab2 cor0
----
-1444
-676
-729

query I rowsort
SELECT + col0 + + 76 FROM tab2 cor0
----
154
155
83

query I rowsort
SELECT ALL 29 * col2 FROM tab2 AS cor0
----
1102
754
783

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3666
SELECT + - CAST( ( col1 ) AS SIGNED ) * 97 AS col0 FROM tab1 AS cor0
----
-1261
-2522
-970

skipif mysql # not compatible
query I rowsort label-3666
SELECT + - CAST ( ( col1 ) AS INTEGER ) * 97 AS col0 FROM tab1 AS cor0
----
-1261
-2522
-970

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3667
SELECT CAST( + col1 AS SIGNED ) * col1 AS col0 FROM tab2 cor0
----
289
3481
961

skipif mysql # not compatible
query I rowsort label-3667
SELECT CAST ( + col1 AS INTEGER ) * col1 AS col0 FROM tab2 cor0
----
289
3481
961

query I rowsort
SELECT ALL + - cor0.col2 + cor0.col0 AS col1 FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT - + col2 * + cor0.col2 + col2 * + col2 + + 31 AS col2 FROM tab0 AS cor0
----
31
31
31

query I rowsort
SELECT + 53 + col0 * cor0.col0 FROM tab2 AS cor0
----
102
6137
6294

query I rowsort
SELECT + col2 * 73 * + tab2.col1 AS col0 FROM tab2
----
111982
47158
61101

query I rowsort
SELECT + - ( - cor0.col1 ) FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT ALL + 41 FROM tab2, tab0 AS cor0
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + ( + col1 ) + ( cor0.col2 ) col0 FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT DISTINCT - cor0.col0 * 91 * col2 + + col2 AS col2 FROM tab1 AS cor0
----
-14688
-331911
-698784

query I rowsort
SELECT 8 + col0 * col0 FROM tab0 AS cor0
----
1233
584
7929

query I rowsort
SELECT ALL + col1 * - col0 + col0 FROM tab0 AS cor0
----
-2040
-3360
-8010

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 - - col0 * cor0.col1 col0 FROM tab1 cor0
----
576
75
960

query I rowsort
SELECT DISTINCT - ( col1 ) * + col0 AS col2 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT - col2 * + col2 + cor0.col0 AS col1 FROM tab0 AS cor0
----
-1065
-6635
34

query I rowsort
SELECT ALL cor0.col1 + col0 AS col1 FROM tab2 cor0
----
137
38
96

query I rowsort
SELECT DISTINCT + + col0 * 37 + + col0 FROM tab0 AS cor0
----
1330
3382
912

query I rowsort
SELECT DISTINCT + - 95 AS col1 FROM tab0 AS cor0
----
-95

query I rowsort
SELECT DISTINCT - cor0.col1 * 63 AS col2 FROM tab0 AS cor0
----
-5418
-5733
-6111

query I rowsort
SELECT ALL + col2 + + cor0.col2 * + cor0.col0 FROM tab2 cor0
----
2054
216
3040

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3686
SELECT ALL + CAST( col0 AS SIGNED ) + col2 FROM tab1 cor0
----
121
176
57

skipif mysql # not compatible
query I rowsort label-3686
SELECT ALL + CAST ( col0 AS INTEGER ) + col2 FROM tab1 cor0
----
121
176
57

query I rowsort
SELECT DISTINCT col0 + ( - col2 ) FROM tab2
----
-20
41
52

query I rowsort
SELECT ALL - col0 + + col0 AS col0 FROM tab0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 40 + + ( - col0 ) col1 FROM tab0 AS cor0
----
-49
16
5

query I rowsort
SELECT ALL col2 * col2 + + col0 * col0 FROM tab2 cor0
----
6760
7685
778

query I rowsort
SELECT DISTINCT + col2 + - 38 + - col2 AS col2 FROM tab1 AS cor0
----
-38

query I rowsort
SELECT + - col2 * - cor0.col0 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT ALL + 94 * 94 AS col2 FROM tab0 AS cor0
----
8836
8836
8836

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + + 75 col0 FROM tab0 cor0
----
-7
42
74

onlyif mysql # use DIV operator for integer division
query I rowsort label-3695
SELECT CAST( 18 AS SIGNED ) DIV + col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3695
SELECT CAST ( 18 AS INTEGER ) / + col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - 80 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 4dde3bd5652d30396b9cadd0e2cfb680

query I rowsort
SELECT ALL col0 * col2 - - col1 * col1 * 45 AS col1 FROM tab0 AS cor0
----
333612
379943
423440

query I rowsort
SELECT DISTINCT 12 FROM tab2, tab2 AS cor0
----
12

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3699
SELECT ALL + col2 - CAST( col1 AS SIGNED ) * + cor0.col1 AS col2 FROM tab2 AS cor0
----
-251
-3455
-934

skipif mysql # not compatible
query I rowsort label-3699
SELECT ALL + col2 - CAST ( col1 AS INTEGER ) * + cor0.col1 AS col2 FROM tab2 AS cor0
----
-251
-3455
-934

query I rowsort
SELECT DISTINCT 9 - + col2 AS col2 FROM tab1
----
-45
-48
-87

query I rowsort
SELECT DISTINCT - tab2.col1 AS col1 FROM tab2, tab2 cor0
----
-17
-31
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * col1 + - 77 col0 FROM tab2
----
1457
569
760

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab0.col1 * col0 + col0 col0 FROM tab0
----
2088
3430
8188

query I rowsort
SELECT col0 * col2 * col2 + tab1.col2 AS col2 FROM tab1
----
207993
737376
8802

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3705
SELECT col0 * ( + ( - col2 ) ) + + CAST( NULL AS DECIMAL ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3705
SELECT col0 * ( + ( - col2 ) ) + + CAST ( NULL AS REAL ) AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col1 + col0 * - 27 AS col1 FROM tab2
----
-158
-2047
-2116

query I rowsort
SELECT col0 * + 59 - - col0 AS col2 FROM tab0
----
1440
2100
5340

query I rowsort
SELECT DISTINCT + col2 + ( + col2 ) * col0 AS col1 FROM tab1
----
216
3705
7776

query I rowsort
SELECT DISTINCT col2 * + col2 + col0 AS col1 FROM tab0
----
1113
36
6813

query I rowsort
SELECT + col0 * 62 - + col2 AS col1 FROM tab1
----
132
3911
4864

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 - + col2 col0 FROM tab0
----
53
9
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - tab2.col2 + + col2 col2 FROM tab2
----
-1508
-608
-810

query I rowsort
SELECT col2 * - 66 + col0 * - cor0.col0 * + 55 + - cor0.col0 * col2 FROM tab1 AS cor0
----
-232690
-366016
-4221

query I rowsort
SELECT + cor0.col1 + 33 AS col0 FROM tab2 AS cor0
----
50
64
92

query I rowsort
SELECT ALL - + cor0.col2 * + col2 AS col0 FROM tab1 AS cor0
----
-2916
-3249
-9216

query I rowsort
SELECT DISTINCT col0 * col0 + cor0.col0 * - col1 * - col0 AS col1 FROM tab2 cor0
----
112338
1568
365040

query I rowsort
SELECT - col2 + + 82 FROM tab2 AS cor0
----
44
55
56

query I rowsort
SELECT - - col2 + - 3 AS col2 FROM tab0 AS cor0
----
-2
30
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-3719
SELECT ALL col2 DIV - col0 + - col1 * - col0 * + col2 AS col2 FROM tab2 AS cor0
----
119652
51034
5856

skipif mysql # not compatible
query I rowsort label-3719
SELECT ALL col2 / - col0 + - col1 * - col0 * + col2 AS col2 FROM tab2 AS cor0
----
119652
51034
5856

query I rowsort
SELECT ALL col2 * - cor0.col2 * 22 FROM tab0 AS cor0
----
-147928
-22
-23958

query I rowsort
SELECT DISTINCT - - col1 * + col1 AS col2 FROM tab0 cor0
----
7396
8281
9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-3722
SELECT - col2 DIV col1 - col1 AS col1 FROM tab1 cor0
----
-15
-20
-28

skipif mysql # not compatible
query I rowsort label-3722
SELECT - col2 / col1 - col1 AS col1 FROM tab1 cor0
----
-15
-20
-28

query I rowsort
SELECT DISTINCT + col0 + + col0 * - 25 AS col2 FROM tab1 AS cor0
----
-1536
-1920
-72

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3724
SELECT ALL col0 + - CAST( NULL AS SIGNED ) * col2 * - col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3724
SELECT ALL col0 + - CAST ( NULL AS INTEGER ) * col2 * - col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + + 71 AS col0 FROM tab2 cor0
----
71
71
71

query I rowsort
SELECT DISTINCT - - col0 * col0 + cor0.col1 * + col1 * col0 FROM tab0 AS cor0
----
178080
330540
744930

query I rowsort
SELECT + + 54 AS col2 FROM tab0 cor0
----
54
54
54

query I rowsort
SELECT - ( col2 ) * col2 + cor0.col2 + col1 * cor0.col1 AS col0 FROM tab2 AS cor0
----
-1117
259
2831

query I rowsort
SELECT - col0 + - 3 AS col0 FROM tab2 AS cor0
----
-10
-81
-82

query I rowsort
SELECT - col0 + 13 AS col2 FROM tab0 AS cor0
----
-11
-22
-76

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3731
SELECT DISTINCT CAST( - col1 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-17
-31
-59

skipif mysql # not compatible
query I rowsort label-3731
SELECT DISTINCT CAST ( - col1 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT col2 * - col0 + + ( - col2 ) AS col0 FROM tab0
----
-36
-7380
-825

query I rowsort
SELECT DISTINCT - 12 + + col1 * + col0 AS col0 FROM tab2 AS cor0
----
1331
205
4590

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 32 col1 FROM tab1 AS cor0
----
32
32
32

onlyif mysql # use DIV operator for integer division
query I rowsort label-3735
SELECT DISTINCT 47 DIV col1 FROM tab1 cor0
----
1
3
4

skipif mysql # not compatible
query I rowsort label-3735
SELECT DISTINCT 47 / col1 FROM tab1 cor0
----
1
3
4

onlyif mysql # use DIV operator for integer division
query I rowsort label-3736
SELECT DISTINCT + col2 * col2 DIV + 5 AS col1 FROM tab2
----
135
145
288

skipif mysql # not compatible
query I rowsort label-3736
SELECT DISTINCT + col2 * col2 / + 5 AS col1 FROM tab2
----
135
145
288

query I rowsort
SELECT col1 + - col1 * + col1 FROM tab0
----
-7310
-8190
-9312

query I rowsort
SELECT ALL col1 * col2 + 2 * col2 AS col0 FROM tab1 AS cor0
----
1440
1512
684

query I rowsort
SELECT ALL - col2 + + cor0.col1 AS col1 FROM tab0 AS cor0
----
53
9
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3740
SELECT CAST( NULL AS SIGNED ) col2 FROM tab0, tab1 cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3740
SELECT CAST ( NULL AS INTEGER ) col2 FROM tab0, tab1 cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT ALL + col0 + + 6 * 13 AS col2 FROM tab2 AS cor0
----
156
157
85

query I rowsort
SELECT - + col1 * - ( + col1 ) * cor0.col0 - col1 FROM tab1 AS cor0
----
13507
2002
6390

query I rowsort
SELECT + col1 * + ( - col2 * col1 ) AS col1 FROM tab1 AS cor0
----
-16224
-36504
-5700

query I rowsort
SELECT ALL - - col2 + ( - ( - col1 ) ) FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT - col2 + + 61 + - col2 FROM tab1 AS cor0
----
-131
-47
-53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 * + 27 - - col0 * col1 col0 FROM tab1 cor0
----
1536
2179
3632

query I rowsort
SELECT ALL col1 + ( + col1 ) AS col0 FROM tab1 AS cor0
----
20
26
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-3748
SELECT - cor0.col2 DIV col1 + col2 * + cor0.col1 FROM tab2 AS cor0
----
1534
644
837

skipif mysql # not compatible
query I rowsort label-3748
SELECT - cor0.col2 / col1 + col2 * + cor0.col1 FROM tab2 AS cor0
----
1534
644
837

onlyif mysql # use DIV operator for integer division
query I rowsort label-3749
SELECT DISTINCT + col1 * + col1 DIV col1 AS col2 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-3749
SELECT DISTINCT + col1 * + col1 / col1 AS col2 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT DISTINCT col1 * ( col0 ) AS col2 FROM tab2 cor0
----
1343
217
4602

query I rowsort
SELECT ALL col2 + col0 * col2 * col1 FROM tab2 AS cor0
----
119678
51072
5886

query I rowsort
SELECT ALL col0 * - tab1.col0 - col0 FROM tab1
----
-12
-4160
-6480

query I rowsort
SELECT col0 * col2 + + col2 * - col0 * + cor0.col1 AS col2 FROM tab0 AS cor0
----
-3360
-656820
-67320

query I rowsort
SELECT - col0 * - cor0.col2 * + col0 - col1 AS col2 FROM tab0 AS cor0
----
1128
18922
649431

query I rowsort
SELECT - col0 * - col2 - + 14 * + ( - col2 * + col0 + - col0 ) AS col2 FROM tab2 AS cor0
----
2933
31512
46136

onlyif mysql # use DIV operator for integer division
query I rowsort label-3756
SELECT ALL col0 - + col2 DIV + 94 AS col0 FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-3756
SELECT ALL col0 - + col2 / + 94 AS col0 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT ALL col1 * col0 + col2 AS col2 FROM tab2 AS cor0
----
1381
244
4628

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 82 * 80 col2 FROM tab0 AS cor0
----
6560
6560
6560

query I rowsort
SELECT 13 - 74 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 51f53697966a79d306a4570537cd91a1

onlyif mysql # use DIV operator for integer division
query I rowsort label-3760
SELECT DISTINCT - col0 DIV + 5 AS col2 FROM tab0
----
-17
-4
-7

skipif mysql # not compatible
query I rowsort label-3760
SELECT DISTINCT - col0 / + 5 AS col2 FROM tab0
----
-17
-4
-7

query I rowsort
SELECT DISTINCT - + col1 + 93 * cor0.col0 - col0 AS col2 FROM tab0 AS cor0
----
2122
3123
8097

query I rowsort
SELECT ( col1 ) * - cor0.col2 AS col0 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT DISTINCT + 57 + - col2 AS col2 FROM tab0 AS cor0
----
-25
24
56

query I rowsort
SELECT DISTINCT - 61 * - 34 FROM tab2 AS cor0
----
2074

query I rowsort
SELECT ALL ( + 64 ) + + col2 FROM tab0 AS cor0
----
146
65
97

query I rowsort
SELECT DISTINCT + - ( 33 ) * - col1 AS col2 FROM tab0 cor0
----
2838
3003
3201

query I rowsort
SELECT ALL - ( + col1 ) * - col1 * ( - 93 * - col2 ) FROM tab0 AS cor0
----
22698324
63150906
875037

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3768
SELECT ALL - CAST( + ( col2 ) AS SIGNED ) * - col0 AS col2 FROM tab1
----
162
3648
7680

skipif mysql # not compatible
query I rowsort label-3768
SELECT ALL - CAST ( + ( col2 ) AS INTEGER ) * - col0 AS col2 FROM tab1
----
162
3648
7680

query I rowsort
SELECT DISTINCT 56 AS col1 FROM tab0, tab2 AS cor0
----
56

query I rowsort
SELECT DISTINCT + ( - 47 ) AS col2 FROM tab0, tab2, tab2 AS cor0
----
-47

query I rowsort
SELECT DISTINCT ( + col1 ) * - col1 * - col0 AS col0 FROM tab0
----
177504
329315
737009

query I rowsort
SELECT + 29 FROM tab2, tab0 AS cor0
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2

query I rowsort
SELECT + - col1 * col0 - col1 AS col1 FROM tab0 AS cor0
----
-2150
-3492
-8190

query I rowsort
SELECT - 23 * + col0 + col1 FROM tab1 cor0
----
-1462
-1827
-43

query I rowsort
SELECT - + cor0.col2 + + cor0.col2 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + - 98 + + cor0.col2 * col0 AS col0 FROM tab2 AS cor0
----
1930
2904
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 27 col0 FROM tab1
----
27
27
27

query I rowsort
SELECT 97 * - col1 * + 65 AS col0 FROM tab2 AS cor0
----
-107185
-195455
-371995

query I rowsort
SELECT DISTINCT + 60 AS col0 FROM tab1 cor0
----
60

onlyif mysql # use DIV operator for integer division
query I rowsort label-3780
SELECT ALL - + col1 DIV - col0 AS col0 FROM tab0 AS cor0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-3780
SELECT ALL - + col1 / - col0 AS col0 FROM tab0 AS cor0
----
1
2
3

query I rowsort
SELECT col0 * - col1 + 54 FROM tab1 AS cor0
----
-24
-586
-986

query I rowsort
SELECT col1 + + ( 67 ) AS col0 FROM tab0 AS cor0
----
153
158
164

query I rowsort
SELECT - col2 + 73 * + col1 FROM tab0 AS cor0
----
6245
6561
7080

query I rowsort
SELECT - col1 * 50 + - col1 AS col1 FROM tab1 AS cor0
----
-1326
-510
-663

onlyif mysql # use DIV operator for integer division
query I rowsort label-3785
SELECT + col2 DIV - 4 FROM tab1 AS cor0
----
-13
-14
-24

skipif mysql # not compatible
query I rowsort label-3785
SELECT + col2 / - 4 FROM tab1 AS cor0
----
-13
-14
-24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 19 * + col1 col2 FROM tab2 AS cor0
----
1121
323
589

onlyif mysql # use DIV operator for integer division
query I rowsort label-3787
SELECT + ( - col0 ) + + col2 DIV - col0 FROM tab1 AS cor0
----
-21
-64
-81

skipif mysql # not compatible
query I rowsort label-3787
SELECT + ( - col0 ) + + col2 / - col0 FROM tab1 AS cor0
----
-21
-64
-81

query I rowsort
SELECT ALL 28 + col2 FROM tab0 AS cor0
----
110
29
61

query I rowsort
SELECT ALL - + col2 * ( col2 + 93 ) FROM tab1 AS cor0
----
-18144
-7938
-8550

query I rowsort
SELECT DISTINCT + 72 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
72

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3791
SELECT ALL - col2 * CAST( col2 AS SIGNED ) AS col2 FROM tab1
----
-2916
-3249
-9216

skipif mysql # not compatible
query I rowsort label-3791
SELECT ALL - col2 * CAST ( col2 AS INTEGER ) AS col2 FROM tab1
----
-2916
-3249
-9216

query I rowsort
SELECT + - 95 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 1c7934db0632c123332c43f17b661d6c

query I rowsort
SELECT DISTINCT - col0 + ( ( - col2 ) ) AS col0 FROM tab1
----
-121
-176
-57

query I rowsort
SELECT ALL col1 * 57 + + col2 AS col0 FROM tab0
----
4935
5269
5530

query I rowsort
SELECT col1 * + col0 * 10 AS col0 FROM tab0
----
20640
33950
80990

query I rowsort
SELECT col0 + + 81 * 89 FROM tab2
----
7216
7287
7288

query I rowsort
SELECT - col2 + + col2 + 6 * tab0.col2 AS col0 FROM tab0
----
198
492
6

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3798
SELECT - + col2 * 66 + - col0 * + col1 + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3798
SELECT - + col2 * 66 + - col0 * + col1 + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - cor0.col0 + 49 * cor0.col0 FROM tab0 AS cor0
----
1152
1680
4272

onlyif mysql # use DIV operator for integer division
query I rowsort label-3800
SELECT DISTINCT col0 DIV 3 AS col1 FROM tab0 AS cor0
----
11
29
8

skipif mysql # not compatible
query I rowsort label-3800
SELECT DISTINCT col0 / 3 AS col1 FROM tab0 AS cor0
----
11
29
8

query I rowsort
SELECT ALL + col1 * + 40 AS col1 FROM tab0 cor0
----
3440
3640
3880

query I rowsort
SELECT + - col0 + 61 * - col2 * - col0 + - col0 * + col1 * - col0 FROM tab2 AS cor0
----
13041
289140
482586

query I rowsort
SELECT col2 * - col2 + + cor0.col1 AS col1 FROM tab0 AS cor0
----
-1003
-6633
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-3804
SELECT ALL + col1 + col2 DIV + cor0.col2 FROM tab0 cor0
----
87
92
98

skipif mysql # not compatible
query I rowsort label-3804
SELECT ALL + col1 + col2 / + cor0.col2 FROM tab0 cor0
----
87
92
98

query I rowsort
SELECT DISTINCT + ( ( + col1 ) ) AS col2 FROM tab0 cor0
----
86
91
97

query I rowsort
SELECT + + 4 * ( - col2 ) + - cor0.col0 FROM tab1 AS cor0
----
-219
-292
-464

query I rowsort
SELECT ALL + - cor0.col1 + cor0.col2 FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT DISTINCT + 7 - col2 * col1 FROM tab0 AS cor0
----
-2831
-7455
-90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - 32 * col0 + col2 * col0 - cor0.col0 col1 FROM tab2 AS cor0
----
-145314
-40053
-6762

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3810
SELECT CAST( + col1 AS SIGNED ) + col1 * - 78 * - col2 FROM tab0 AS cor0
----
221450
582127
7663

skipif mysql # not compatible
query I rowsort label-3810
SELECT CAST ( + col1 AS INTEGER ) + col1 * - 78 * - col2 FROM tab0 AS cor0
----
221450
582127
7663

query I rowsort
SELECT DISTINCT - col0 + 7 FROM tab1 AS cor0
----
-57
-73
4

query I rowsort
SELECT - ( cor0.col0 ) * col2 + 80 FROM tab1 AS cor0
----
-3568
-7600
-82

query I rowsort
SELECT + col0 + - 63 * - col1 FROM tab2
----
1150
1960
3795

query I rowsort
SELECT ALL col1 * 84 + col1 AS col2 FROM tab0
----
7310
7735
8245

query I rowsort
SELECT - col1 + + 46 - col1 AS col1 FROM tab2
----
-16
-72
12

query I rowsort
SELECT col0 + - col2 + - col0 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT ALL + + ( + col0 ) AS col0 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT DISTINCT + ( 72 ) * - col1 FROM tab0 cor0
----
-6192
-6552
-6984

query I rowsort
SELECT ( + col2 ) + - col1 + + col0 FROM tab0 AS cor0
----
-29
-61
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-3820
SELECT - 42 DIV col0 AS col1 FROM tab2 AS cor0
----
-6
0
0

skipif mysql # not compatible
query I rowsort label-3820
SELECT - 42 / col0 AS col1 FROM tab2 AS cor0
----
-6
0
0

query I rowsort
SELECT DISTINCT 74 * - col2 * col2 FROM tab1 cor0
----
-215784
-240426
-681984

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3822
SELECT DISTINCT - 28 + cor0.col1 * CAST( - col0 AS SIGNED ) FROM tab0 AS cor0
----
-2092
-3423
-8127

skipif mysql # not compatible
query I rowsort label-3822
SELECT DISTINCT - 28 + cor0.col1 * CAST ( - col0 AS INTEGER ) FROM tab0 AS cor0
----
-2092
-3423
-8127

onlyif mysql # use DIV operator for integer division
query I rowsort label-3823
SELECT ( col0 ) DIV + 56 AS col1 FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-3823
SELECT ( col0 ) / + 56 AS col1 FROM tab1 AS cor0
----
0
1
1

query I rowsort
SELECT ALL + 89 * col2 AS col1 FROM tab2 cor0
----
2314
2403
3382

query I rowsort
SELECT 60 * col0 AS col1 FROM tab0 AS cor0
----
1440
2100
5340

query I rowsort
SELECT DISTINCT - 99 * col1 + - col1 AS col1 FROM tab2 AS cor0
----
-1700
-3100
-5900

query I rowsort
SELECT DISTINCT - 85 + col2 FROM tab1 AS cor0
----
-28
-31
11

query I rowsort
SELECT - 5 AS col1 FROM tab2 cor0
----
-5
-5
-5

onlyif mysql # use DIV operator for integer division
query I rowsort label-3829
SELECT DISTINCT 49 DIV - col1 + - 33 AS col1 FROM tab2 AS cor0
----
-33
-34
-35

skipif mysql # not compatible
query I rowsort label-3829
SELECT DISTINCT 49 / - col1 + - 33 AS col1 FROM tab2 AS cor0
----
-33
-34
-35

query I rowsort
SELECT col2 * ( col0 ) + + col0 AS col2 FROM tab1 AS cor0
----
165
3712
7760

query I rowsort
SELECT ALL - - col2 + 9 AS col1 FROM tab2 AS cor0
----
35
36
47

onlyif mysql # use DIV operator for integer division
query I rowsort label-3832
SELECT col2 + - col1 DIV - ( col0 * col1 ) FROM tab1
----
54
57
96

skipif mysql # not compatible
query I rowsort label-3832
SELECT col2 + - col1 / - ( col0 * col1 ) FROM tab1
----
54
57
96

query I rowsort
SELECT ALL + + 73 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496

query I rowsort
SELECT - 44 - col1 AS col2 FROM tab2
----
-103
-61
-75

query I rowsort
SELECT - - cor0.col1 - col1 * + col1 FROM tab1 AS cor0
----
-156
-650
-90

query I rowsort
SELECT ALL col0 * - ( col0 ) AS col2 FROM tab0 AS cor0
----
-1225
-576
-7921

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3837
SELECT DISTINCT + + col1 + - CAST( + col0 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-54
-67
23

skipif mysql # not compatible
query I rowsort label-3837
SELECT DISTINCT + + col1 + - CAST ( + col0 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT DISTINCT + col1 + ( col0 ) FROM tab1 cor0
----
29
74
93

query I rowsort
SELECT + - col0 + ( - 32 ) - col1 FROM tab2 AS cor0
----
-128
-169
-70

query I rowsort
SELECT DISTINCT + + col1 * col2 + 96 FROM tab2 AS cor0
----
1630
742
933

query I rowsort
SELECT ALL - 77 * tab0.col0 FROM tab0
----
-1848
-2695
-6853

query I rowsort
SELECT + col1 + ( - 97 ) AS col2 FROM tab1 AS cor0
----
-71
-84
-87

query I rowsort
SELECT + + 51 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to d8bf0a05c9c4d2a93812d106baae4752

query I rowsort
SELECT - cor0.col0 * + col1 - + 73 AS col2 FROM tab0 AS cor0
----
-2137
-3468
-8172

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col1 - col0 col0 FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT ALL - - cor0.col1 * 72 FROM tab0 cor0
----
6192
6552
6984

query I rowsort
SELECT DISTINCT + col1 * col0 + - col0 + + col1 FROM tab2 cor0
----
1281
241
4583

query I rowsort
SELECT DISTINCT + col1 * + 87 + 69 AS col0 FROM tab1 AS cor0
----
1200
2331
939

query I rowsort
SELECT ALL - 93 * col1 AS col2 FROM tab1
----
-1209
-2418
-930

query I rowsort
SELECT 52 * cor0.col2 AS col0 FROM tab1 AS cor0
----
2808
2964
4992

query I rowsort
SELECT + ( tab0.col1 * col2 ) + - tab0.col0 * - col0 FROM tab0
----
1322
15383
3414

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3852
SELECT DISTINCT + + ( 99 ) * - cor0.col0 * CAST( NULL AS SIGNED ) col1 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3852
SELECT DISTINCT + + ( 99 ) * - cor0.col0 * CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL + col1 * col1 - + col0 * col1 FROM tab1 AS cor0
----
-540
-871
598

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 26 - cor0.col1 col2 FROM tab2 AS cor0
----
-43
-57
-85

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3855
SELECT DISTINCT - 24 * - cor0.col1 * - CAST( - col1 AS SIGNED ) FROM tab0 cor0
----
177504
198744
225816

skipif mysql # not compatible
query I rowsort label-3855
SELECT DISTINCT - 24 * - cor0.col1 * - CAST ( - col1 AS INTEGER ) FROM tab0 cor0
----
177504
198744
225816

query I rowsort
SELECT ALL - 35 + col2 * - cor0.col1 * 84 AS col0 FROM tab1 AS cor0
----
-104867
-117971
-47915

onlyif mysql # use DIV operator for integer division
query I rowsort label-3857
SELECT ALL col0 DIV + col2 AS col1 FROM tab0 AS cor0
----
0
1
35

skipif mysql # not compatible
query I rowsort label-3857
SELECT ALL col0 / + col2 AS col1 FROM tab0 AS cor0
----
0
1
35

query I rowsort
SELECT DISTINCT - - cor0.col1 + col0 * - ( col1 ) FROM tab0 cor0
----
-1978
-3298
-8008

query I rowsort
SELECT ALL - cor1.col0 * 68 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 55d8d4ead1372530cbe552dd38eee75d

query I rowsort
SELECT + + col2 * - 27 FROM tab0 AS cor0
----
-2214
-27
-891

query I rowsort
SELECT + 74 * col2 AS col0 FROM tab2 cor0
----
1924
1998
2812

query I rowsort
SELECT 90 AS col1 FROM tab1, tab1 cor0
----
9 values hashing to 96f7a90428db93f472e0d219bab64853

query I rowsort
SELECT - + 62 FROM tab1 cor0
----
-62
-62
-62

query I rowsort
SELECT 82 * - 84 FROM tab0 AS cor0
----
-6888
-6888
-6888

query I rowsort
SELECT + - 42 * + col2 - + 14 AS col0 FROM tab0 AS cor0
----
-1400
-3458
-56

onlyif mysql # use DIV operator for integer division
query I rowsort label-3866
SELECT - cor0.col0 * - col1 + - col1 DIV col1 AS col2 FROM tab0 AS cor0
----
2063
3394
8098

skipif mysql # not compatible
query I rowsort label-3866
SELECT - cor0.col0 * - col1 + - col1 / col1 AS col2 FROM tab0 AS cor0
----
2063
3394
8098

query I rowsort
SELECT + - ( col0 ) + + col1 FROM tab0 AS cor0
----
2
62
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-3868
SELECT ALL ( col0 * - col2 ) + col1 DIV + col0 + + col1 AS col0 FROM tab0
----
-703
-7206
64

skipif mysql # not compatible
query I rowsort label-3868
SELECT ALL ( col0 * - col2 ) + col1 / + col0 + + col1 AS col0 FROM tab0
----
-703
-7206
64

query I rowsort
SELECT col0 * 42 AS col1 FROM tab2 AS cor0
----
294
3276
3318

query I rowsort
SELECT - + col0 * ( - ( - col0 ) ) FROM tab1 AS cor0
----
-4096
-6400
-9

onlyif mysql # use DIV operator for integer division
query I rowsort label-3871
SELECT ALL - col2 DIV - 23 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3871
SELECT ALL - col2 / - 23 FROM tab2
----
1
1
1

query I rowsort
SELECT - ( 6 ) FROM tab1, tab2 AS cor0
----
9 values hashing to e92b2679faac7be63701967e3f0c0934

query I rowsort
SELECT ALL col0 * + col2 * 83 FROM tab0
----
2905
605734
65736

query I rowsort
SELECT DISTINCT + col1 - + col0 AS col0 FROM tab0 AS cor0
----
2
62

query I rowsort
SELECT + 37 AS col0 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to c023509f63faa044d654943e6df55ca2

query I rowsort
SELECT ( + 97 ) FROM tab1 AS cor0
----
97
97
97

query I rowsort
SELECT ALL - 58 * + col2 + col1 FROM tab0 AS cor0
----
-1828
-4665
39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + - col1 * - col1 col1 FROM tab1 AS cor0
----
36
673
89

query I rowsort
SELECT DISTINCT - ( col2 ) * + col2 AS col2 FROM tab0 AS cor0
----
-1
-1089
-6724

query I rowsort
SELECT ALL + col2 + + ( - col0 ) * - 20 AS col0 FROM tab1 cor0
----
114
1337
1696

query I rowsort
SELECT DISTINCT 34 + col2 AS col1 FROM tab1 AS cor0
----
130
88
91

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab1, tab0 cor1, tab2, tab2 AS cor2
----
3645 values hashing to 17ceecc141378b185d60a17e53464c26

query I rowsort
SELECT ALL ( ( col0 ) * col1 ) FROM tab2
----
1343
217
4602

query I rowsort
SELECT - ( tab2.col0 + + col1 ) AS col2 FROM tab2
----
-137
-38
-96

query I rowsort
SELECT ( + col2 * col2 ) AS col1 FROM tab1
----
2916
3249
9216

query I rowsort
SELECT cor1.col0 - 79 AS col0 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to fc015fafce79b42c4e2667bbc7c6f6f1

query I rowsort
SELECT ALL col1 * col1 - - 44 AS col0 FROM tab0
----
7440
8325
9453

onlyif mysql # use DIV operator for integer division
query I rowsort label-3888
SELECT - col0 DIV - col2 + col0 AS col2 FROM tab1 AS cor0
----
3
65
80

skipif mysql # not compatible
query I rowsort label-3888
SELECT - col0 / - col2 + col0 AS col2 FROM tab1 AS cor0
----
3
65
80

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab0, tab2 cor1, tab0 AS cor2, tab1 AS cor3
----
3645 values hashing to def82b52aa9c83b91991d7d043276abe

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3890
SELECT + + col0 * - CAST( ( + col1 ) AS SIGNED ) + col0 AS col2 FROM tab0 AS cor0
----
-2040
-3360
-8010

skipif mysql # not compatible
query I rowsort label-3890
SELECT + + col0 * - CAST ( ( + col1 ) AS INTEGER ) + col0 AS col2 FROM tab0 AS cor0
----
-2040
-3360
-8010

query I rowsort
SELECT - col0 + - ( 76 ) + - cor0.col0 FROM tab1 AS cor0
----
-204
-236
-82

query I rowsort
SELECT cor0.col0 * - 76 FROM tab0 AS cor0
----
-1824
-2660
-6764

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3893
SELECT - + col0 * - CAST( col2 AS SIGNED ) * col0 AS col2 FROM tab1 AS cor0
----
233472
486
614400

skipif mysql # not compatible
query I rowsort label-3893
SELECT - + col0 * - CAST ( col2 AS INTEGER ) * col0 AS col2 FROM tab1 AS cor0
----
233472
486
614400

query I rowsort
SELECT DISTINCT - - col0 * + ( 35 ) AS col0 FROM tab0 AS cor0
----
1225
3115
840

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3895
SELECT - cor0.col1 + + CAST( col1 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3895
SELECT - cor0.col1 + + CAST ( col1 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3896
SELECT + col0 + - col1 DIV col1 + col1 FROM tab1 AS cor0
----
28
73
92

skipif mysql # not compatible
query I rowsort label-3896
SELECT + col0 + - col1 / col1 + col1 FROM tab1 AS cor0
----
28
73
92

query I rowsort
SELECT - + col1 * - col0 + - ( - cor0.col2 ) AS col2 FROM tab0 AS cor0
----
2097
3396
8181

query I rowsort
SELECT col0 * col0 * - 25 AS col2 FROM tab0 AS cor0
----
-14400
-198025
-30625

query I rowsort
SELECT ALL - ( + 46 ) + + col1 - col0 * 86 AS col2 FROM tab0
----
-2024
-2959
-7609

query I rowsort
SELECT DISTINCT 49 AS col1 FROM tab1, tab2, tab2 AS cor0, tab0
----
49

query I rowsort
SELECT ALL col2 + col1 * ( + col0 ) - - cor0.col1 FROM tab1 cor0
----
1149
158
707

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3902
SELECT CAST( - col0 AS SIGNED ) + col1 + tab0.col2 AS col1 FROM tab0
----
63
84
95

skipif mysql # not compatible
query I rowsort label-3902
SELECT CAST ( - col0 AS INTEGER ) + col1 + tab0.col2 AS col1 FROM tab0
----
63
84
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 col0 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6

query I rowsort
SELECT - col1 * - 22 + col0 FROM tab2
----
1376
453
689

query I rowsort
SELECT + - ( - 79 ) * col1 AS col0 FROM tab0 AS cor0
----
6794
7189
7663

query I rowsort
SELECT DISTINCT + + cor0.col0 + - 9 FROM tab0, tab2, tab0 AS cor0
----
15
26
80

query I rowsort
SELECT + 7 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76

query I rowsort
SELECT ALL + col1 * 29 * col0 FROM tab1
----
18560
2262
30160

query I rowsort
SELECT 90 * col1 FROM tab0
----
7740
8190
8730

query I rowsort
SELECT DISTINCT col2 - - col1 * - 10 AS col1 FROM tab0 AS cor0
----
-827
-828
-969

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3911
SELECT DISTINCT 28 * + col2 / CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3911
SELECT DISTINCT 28 * + col2 / CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - - col2 * cor0.col1 * - col2 - 63 FROM tab0 AS cor0
----
-160
-611947
-93717

query I rowsort
SELECT ALL + + cor0.col2 + + col1 AS col2 FROM tab1 cor0
----
109
67
80

query I rowsort
SELECT + col1 * + col2 - col1 FROM tab1 AS cor0
----
1235
1378
560

query I rowsort
SELECT + 59 * col0 AS col2 FROM tab0 AS cor0
----
1416
2065
5251

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col2 + + col0 * + col2 col1 FROM tab2 AS cor0
----
162
2002
2964

query I rowsort
SELECT ALL 40 * col0 * col0 FROM tab0 AS cor0
----
23040
316840
49000

query I rowsort
SELECT ALL + 68 + cor0.col2 * col2 AS col1 FROM tab0 AS cor0
----
1157
6792
69

query I rowsort
SELECT + + 0 + - cor0.col1 AS col0 FROM tab2 cor0
----
-17
-31
-59

query I rowsort
SELECT DISTINCT + 52 * col1 AS col0 FROM tab2 AS cor0
----
1612
3068
884

query I rowsort
SELECT ALL - 55 + - col2 AS col2 FROM tab0 AS cor0
----
-137
-56
-88

query I rowsort
SELECT DISTINCT - 58 * col0 AS col1 FROM tab1 AS cor0
----
-174
-3712
-4640

query I rowsort
SELECT - - col0 * - ( - 20 ) AS col2 FROM tab0 AS cor0
----
1780
480
700

query I rowsort
SELECT ALL cor0.col1 * col2 + + col1 * + col1 FROM tab2 AS cor0
----
1798
5015
935

query I rowsort
SELECT DISTINCT col2 * col2 + + col1 * + col1 AS col0 FROM tab1 AS cor0
----
3349
3592
9385

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * + col0 col0 FROM tab1 AS cor0
----
1040
640
78

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3927
SELECT ALL - col1 / - CAST( NULL AS SIGNED ) + 9 + + col0 * + 44 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3927
SELECT ALL - col1 / - CAST ( NULL AS INTEGER ) + 9 + + col0 * + 44 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT col2 * CAST ( - col0 AS REAL ) * col2 FROM tab1 cor0
----
-207936
-737280
-8748

onlyif mysql # use DIV operator for integer division
query I rowsort label-3929
SELECT + col2 DIV 5 AS col0 FROM tab2 AS cor0
----
5
5
7

skipif mysql # not compatible
query I rowsort label-3929
SELECT + col2 / 5 AS col0 FROM tab2 AS cor0
----
5
5
7

query I rowsort
SELECT ALL + col1 + - 16 * col0 FROM tab0 AS cor0
----
-1333
-298
-463

query I rowsort
SELECT - - cor0.col1 * col0 + 22 * - col1 FROM tab2 AS cor0
----
-465
3304
969

query I rowsort
SELECT DISTINCT - - col2 * + col0 + + col0 AS col0 FROM tab1 AS cor0
----
165
3712
7760

query I rowsort
SELECT DISTINCT 12 + 55 * cor0.col1 * - col0 FROM tab2 AS cor0
----
-11923
-253098
-73853

query I rowsort
SELECT DISTINCT 69 AS col1 FROM tab0, tab2 AS cor0, tab0 AS cor1, tab1 AS cor2
----
69

query I rowsort
SELECT ALL col2 + 47 * + col2 * 70 AS col2 FROM tab0 AS cor0
----
108603
269862
3291

query I rowsort
SELECT ALL + col2 * col1 * 86 FROM tab2
----
131924
55556
71982

query I rowsort
SELECT cor0.col0 FROM tab1 AS cor0 CROSS JOIN tab2, tab0 cor1, tab2 cor2
----
81 values hashing to e28bf7f922650ca423ade3642ce0285b

query I rowsort
SELECT DISTINCT - 59 + + 50 FROM tab0, tab0 cor0
----
-9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3939
SELECT DISTINCT + CAST( 46 AS SIGNED ) * col0 FROM tab2 AS cor0
----
322
3588
3634

skipif mysql # not compatible
query I rowsort label-3939
SELECT DISTINCT + CAST ( 46 AS INTEGER ) * col0 FROM tab2 AS cor0
----
322
3588
3634

query I rowsort
SELECT ALL + col1 * - ( col0 * 32 ) FROM tab2 AS cor0
----
-147264
-42976
-6944

query I rowsort
SELECT ALL 7 + + ( col2 ) FROM tab1 AS cor0
----
103
61
64

query I rowsort
SELECT DISTINCT - + 5 + + col1 + - col2 AS col0 FROM tab0 AS cor0
----
4
48
91

query I rowsort
SELECT + col2 * - ( col1 ) * + col0 + - col2 AS col1 FROM tab0
----
-3396
-664200
-68145

onlyif mysql # use DIV operator for integer division
query I rowsort label-3944
SELECT DISTINCT + col0 * col0 DIV col1 FROM tab0
----
12
6
87

skipif mysql # not compatible
query I rowsort label-3944
SELECT DISTINCT + col0 * col0 / col1 FROM tab0
----
12
6
87

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3945
SELECT DISTINCT - CAST( col2 AS SIGNED ) + - cor0.col0 + - col0 * 5 * col0 AS col1 FROM tab1 AS cor0
----
-102
-20601
-32176

skipif mysql # not compatible
query I rowsort label-3945
SELECT DISTINCT - CAST ( col2 AS INTEGER ) + - cor0.col0 + - col0 * 5 * col0 AS col1 FROM tab1 AS cor0
----
-102
-20601
-32176

query I rowsort
SELECT DISTINCT - + col1 + cor0.col2 * cor0.col2 + - col1 * + col0 FROM tab0 AS cor0
----
-1061
-1466
-3491

query I rowsort
SELECT ALL - + ( - col1 ) + col0 * 30 AS col2 FROM tab2 AS cor0
----
2387
2399
241

query I rowsort
SELECT + 85 AS col0 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to e4cf94cf0cc632acff30ad1dac617cb7

onlyif mysql # use DIV operator for integer division
query I rowsort label-3949
SELECT DISTINCT - col2 DIV 53 AS col0 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-3949
SELECT DISTINCT - col2 / 53 AS col0 FROM tab1
----
-1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3950
SELECT ALL cor0.col1 * CAST( col0 * + col2 AS SIGNED ) + - 72 * - 6 FROM tab0 AS cor0
----
3827
664550
68544

skipif mysql # not compatible
query I rowsort label-3950
SELECT ALL cor0.col1 * CAST ( col0 * + col2 AS INTEGER ) + - 72 * - 6 FROM tab0 AS cor0
----
3827
664550
68544

query I rowsort
SELECT - 9 FROM tab0, tab1 AS cor0, tab0 cor1
----
27 values hashing to 3dfe689e16ce3a87877d40f349e6c7b5

query I rowsort
SELECT col2 + - ( 17 * - tab2.col1 ) FROM tab2
----
1029
327
554

onlyif mysql # use DIV operator for integer division
query I rowsort label-3953
SELECT - col1 + ( - tab1.col1 ) DIV + col1 FROM tab1
----
-11
-14
-27

skipif mysql # not compatible
query I rowsort label-3953
SELECT - col1 + ( - tab1.col1 ) / + col1 FROM tab1
----
-11
-14
-27

query I rowsort
SELECT + - col0 * 46 FROM tab0 AS cor0
----
-1104
-1610
-4094

query I rowsort
SELECT ALL + + col1 - 32 AS col1 FROM tab1 AS cor0
----
-19
-22
-6

query I rowsort
SELECT ALL cor0.col2 + - cor2.col0 FROM tab2, tab1 AS cor0, tab0 AS cor1, tab1, tab2 cor2
----
243 values hashing to 3731d473e07d2233aa7013e38a810c4b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - ( 3 * - col1 + + tab1.col0 ) col2 FROM tab1
----
-1950
340
533

query I rowsort
SELECT + 63 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c3eea92c46f2c49716f386a58b575025

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 * 67 * + col0 col2 FROM tab2 AS cor0
----
3283
407628
418147

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( 1 ) * col0 * cor0.col2 + 90 col2 FROM tab1 AS cor0
----
-3558
-72
-7590

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3961
SELECT CAST( ( - cor1.col2 ) AS SIGNED ) FROM tab0, tab0 AS cor0, tab2 AS cor1, tab1 cor2
----
81 values hashing to c569638e8a09ff819458d62ddbde994c

skipif mysql # not compatible
query I rowsort label-3961
SELECT CAST ( ( - cor1.col2 ) AS INTEGER ) FROM tab0, tab0 AS cor0, tab2 AS cor1, tab1 cor2
----
81 values hashing to c569638e8a09ff819458d62ddbde994c

query I rowsort
SELECT + 27 + col2 + + col2 * col2 AS col2 FROM tab2 AS cor0
----
1509
729
783

query I rowsort
SELECT DISTINCT + - 41 * + col1 FROM tab2 AS cor0
----
-1271
-2419
-697

query I rowsort
SELECT + col0 + + col1 * - cor0.col2 AS col2 FROM tab1 AS cor0
----
-1168
-1401
-506

query I rowsort
SELECT ALL ( - col2 ) * col2 * 61 FROM tab1
----
-177876
-198189
-562176

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 85 col2 FROM tab2 AS cor0
----
-85

query I rowsort
SELECT - + 53 + + 46 AS col2 FROM tab0 AS cor0
----
-7
-7
-7

query I rowsort
SELECT 89 + + col1 * - col0 AS col0 FROM tab0 AS cor0
----
-1975
-3306
-8010

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col0 ) * col0 + col2 col2 FROM tab2 AS cor0
----
6110
6279
76

query I rowsort
SELECT - + 50 + - col0 FROM tab0 AS cor0
----
-139
-74
-85

query I rowsort
SELECT - 74 + - cor0.col1 * - col0 FROM tab2 AS cor0
----
1269
143
4528

query I rowsort
SELECT + - col1 * col2 + col2 AS col0 FROM tab2 cor0
----
-1508
-608
-810

query I rowsort
SELECT + - 46 * - col2 AS col2 FROM tab2 AS cor0
----
1196
1242
1748

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3974
SELECT ALL tab0.col0 + + CAST( NULL AS DECIMAL ) / cor0.col1 AS col2 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-3974
SELECT ALL tab0.col0 + + CAST ( NULL AS REAL ) / cor0.col1 AS col2 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT ALL ( + col2 ) * - col1 AS col2 FROM tab2
----
-1534
-646
-837

query I rowsort
SELECT + 41 + - col0 FROM tab2 AS cor0
----
-37
-38
34

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3977
SELECT DISTINCT CAST( - 30 AS SIGNED ) AS col0 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
-30

skipif mysql # not compatible
query I rowsort label-3977
SELECT DISTINCT CAST ( - 30 AS INTEGER ) AS col0 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
-30

query I rowsort
SELECT col0 * col2 + cor0.col1 * col1 FROM tab1 AS cor0
----
3748
7849
838

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 + - col0 + col2 * col2 col1 FROM tab2 cor0
----
1348
539
691

query I rowsort
SELECT ALL - + ( col1 ) * + col1 * - col2 + col2 * - col1 * cor0.col1 AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT 85 * col0 + - 93 AS col1 FROM tab1 AS cor0
----
162
5347
6707

query I rowsort
SELECT 97 AS col0 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to c73fa6978df8525c99d6bc792bb27123

query I rowsort
SELECT DISTINCT col0 * col1 - - 2 AS col0 FROM tab2 AS cor0
----
1345
219
4604

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3984
SELECT col0 * - CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3984
SELECT col0 * - CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 * + 76 AS col0 FROM tab0 AS cor0
----
2508
6232
76

onlyif mysql # use DIV operator for integer division
query I rowsort label-3986
SELECT DISTINCT cor0.col1 DIV - col1 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3986
SELECT DISTINCT cor0.col1 / - col1 FROM tab2 AS cor0
----
-1

query I rowsort
SELECT DISTINCT - - cor0.col2 + - ( - cor0.col0 ) AS col0 FROM tab1 cor0
----
121
176
57

query I rowsort
SELECT - col1 * - col1 * col0 + col2 AS col2 FROM tab2 cor0
----
22869
271544
6754

query I rowsort
SELECT - tab2.col1 + + ( - 12 ) AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 8eb58004bb3bc4f7d513676961800750

query I rowsort
SELECT DISTINCT 9 FROM tab1, tab0, tab2 AS cor0
----
9

query I rowsort
SELECT - col0 * col1 + + ( - col1 ) AS col2 FROM tab1 AS cor0
----
-104
-1053
-650

query I rowsort
SELECT ALL - 39 * + col0 + col0 * - 3 * col2 AS col0 FROM tab2
----
-12087
-840
-9126

query I rowsort
SELECT DISTINCT + col2 + + col1 - col1 FROM tab0 AS cor0
----
1
33
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 37 * col1 col2 FROM tab2 AS cor0
----
1147
2183
629

query I rowsort
SELECT + - 90 + + 63 FROM tab0 AS cor0
----
-27
-27
-27

query I rowsort
SELECT DISTINCT - - cor0.col0 * - 68 AS col2 FROM tab1, tab0, tab2 AS cor0
----
-476
-5304
-5372

query I rowsort
SELECT DISTINCT + col0 * - 17 AS col0 FROM tab0
----
-1513
-408
-595

query I rowsort
SELECT - col1 + + col0 * col1 FROM tab1
----
1027
52
630

query I rowsort
SELECT - 58 * col0 * cor0.col2 - 57 * col0 AS col1 FROM tab0 AS cor0
----
-4025
-428357
-47304

query I rowsort
SELECT col2 + - col2 * col2 * - ( + cor0.col1 ) - - col1 FROM tab1 AS cor0
----
119917
32557
75896

query I rowsort
SELECT + 19 * cor0.col1 + col0 FROM tab0 AS cor0
----
1658
1818
1878

query I rowsort
SELECT + + 21 + col0 FROM tab1 AS cor0
----
101
24
85

query I rowsort
SELECT ALL - - cor0.col1 * cor0.col2 FROM tab2 cor0
----
1534
646
837

query I rowsort
SELECT DISTINCT - + col2 * - 98 AS col2 FROM tab1 cor0
----
5292
5586
9408

onlyif mysql # use DIV operator for integer division
query I rowsort label-4005
SELECT - col2 DIV 42 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4005
SELECT - col2 / 42 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - cor0.col2 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-54
-57
-96

query I rowsort
SELECT - ( 50 ) FROM tab0 cor0
----
-50
-50
-50

query I rowsort
SELECT col2 + - ( col2 ) * - col1 FROM tab0
----
2871
7544
98

query I rowsort
SELECT ALL - col1 * - ( col2 ) * + col0 FROM tab2 cor0
----
119652
51034
5859

query I rowsort
SELECT ALL - 57 * + col1 + - col0 AS col1 FROM tab2
----
-1048
-1774
-3441

query I rowsort
SELECT ALL tab2.col1 + - 59 FROM tab2
----
-28
-42
0

query I rowsort
SELECT DISTINCT col1 + - col1 * col1 AS col1 FROM tab1 AS cor0
----
-156
-650
-90

query I rowsort
SELECT ALL + col2 + col0 * col1 * col0 AS col1 FROM tab0 AS cor0
----
118826
49569
720893

query I rowsort
SELECT - col0 * + col1 + col2 * col2 FROM tab0 AS cor0
----
-1375
-3394
-975

query I rowsort
SELECT 19 + col0 * tab2.col2 FROM tab2
----
2047
208
3021

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4016
SELECT DISTINCT CAST( NULL AS SIGNED ) * col2 + + tab1.col1 * 77 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4016
SELECT DISTINCT CAST ( NULL AS INTEGER ) * col2 + + tab1.col1 * 77 FROM tab1
----
NULL

query I rowsort
SELECT 64 * col2 AS col2 FROM tab1
----
3456
3648
6144

query I rowsort
SELECT ALL + col2 * - 50 + col0 AS col0 FROM tab1
----
-2697
-2786
-4720

query I rowsort
SELECT - 14 * + col1 AS col1 FROM tab1
----
-140
-182
-364

query I rowsort
SELECT DISTINCT + 60 + 65 * - col1 FROM tab2
----
-1045
-1955
-3775

query I rowsort
SELECT DISTINCT 63 + ( - col0 + 85 ) AS col1 FROM tab0
----
113
124
59

query I rowsort
SELECT DISTINCT - - cor0.col1 * - col2 AS col0 FROM tab2 cor0
----
-1534
-646
-837

query I rowsort
SELECT + - cor0.col0 + - col2 FROM tab1 AS cor0
----
-121
-176
-57

query I rowsort
SELECT + 27 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8

query I rowsort
SELECT ALL - col0 * + col2 - cor0.col1 AS col0 FROM tab2 AS cor0
----
-2087
-220
-3019

query I rowsort
SELECT ALL - + col2 * cor0.col1 + ( + col2 ) AS col1 FROM tab0 AS cor0
----
-2805
-7380
-96

query I rowsort
SELECT ALL ( + col1 ) + 41 AS col2 FROM tab1 AS cor0
----
51
54
67

query I rowsort
SELECT ALL + + 3 * cor0.col2 AS col2 FROM tab0 AS cor0
----
246
3
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col0 + - cor0.col2 * col2 col0 FROM tab2 AS cor0
----
-1365
-598
-722

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 42 + - col1 * col2 col0 FROM tab1 AS cor0
----
-1290
-1446
-612

query I rowsort
SELECT DISTINCT 74 * col0 - col2 AS col1 FROM tab0 AS cor0
----
1743
2589
6504

query I rowsort
SELECT cor0.col0 * col2 + + col1 * col2 * cor0.col2 FROM tab1 cor0
----
127488
36138
75978

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4033
SELECT DISTINCT col1 * + col0 * - CAST( NULL AS SIGNED ) + + col0 * + col1 AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4033
SELECT DISTINCT col1 * + col0 * - CAST ( NULL AS INTEGER ) + + col0 * + col1 AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - col0 + col1 - col0 FROM tab0 AS cor0
----
-87
27
38

query I rowsort
SELECT DISTINCT - - 66 + - col0 AS col1 FROM tab1 AS cor0
----
-14
2
63

query I rowsort
SELECT DISTINCT tab0.col1 * + tab0.col0 * col0 AS col2 FROM tab0
----
118825
49536
720811

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 56 col1 FROM tab1, tab2, tab2 cor0
----
56

query I rowsort
SELECT ALL + 28 * cor0.col2 AS col0 FROM tab1 cor0
----
1512
1596
2688

query I rowsort
SELECT DISTINCT ( + col1 + + col0 ) AS col0 FROM tab1
----
29
74
93

onlyif mysql # use DIV operator for integer division
query I rowsort label-4040
SELECT ALL - + cor0.col1 DIV - 19 AS col0 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4040
SELECT ALL - + cor0.col1 / - 19 AS col0 FROM tab1 AS cor0
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 + 39 - - col0 col1 FROM tab1 AS cor0
----
113
132
68

query I rowsort
SELECT ALL + + col1 * - cor0.col2 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT + col0 + ( col1 ) * + col1 AS col1 FROM tab2 AS cor0
----
3559
368
968

query I rowsort
SELECT col2 + cor0.col0 * col2 FROM tab1 cor0
----
216
3705
7776

query I rowsort
SELECT + + col2 * - ( - col1 ) + col1 * cor0.col1 FROM tab2 AS cor0
----
1798
5015
935

query I rowsort
SELECT DISTINCT - - col0 + cor0.col2 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT DISTINCT 49 * - 69 AS col1 FROM tab2 AS cor0
----
-3381

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 - col2 * col0 col2 FROM tab2 AS cor0
----
-158
-1969
-2985

query I rowsort
SELECT DISTINCT - col1 * col2 + col0 * tab2.col0 AS col1 FROM tab2
----
-788
4550
5595

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4050
SELECT CAST( NULL AS SIGNED ) + col0 col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4050
SELECT CAST ( NULL AS INTEGER ) + col0 col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ( - col1 ) AS col1 FROM tab0 cor0
----
-86
-91
-97

query I rowsort
SELECT + col2 - 1 FROM tab1 AS cor0
----
53
56
95

query I rowsort
SELECT DISTINCT - + 81 * - cor0.col0 AS col1 FROM tab0 AS cor0
----
1944
2835
7209

query I rowsort
SELECT - col1 + + col2 * col2 + col0 AS col0 FROM tab0 cor0
----
-61
1027
6722

query I rowsort
SELECT - + 17 AS col0 FROM tab1 cor0
----
-17
-17
-17

query I rowsort
SELECT + + 29 * + 64 FROM tab0, tab0 cor0
----
9 values hashing to a4e8fdd07a03a44b604f7a98eff251bc

query I rowsort
SELECT - col2 + + col2 * col0 AS col2 FROM tab1 AS cor0
----
108
3591
7584

query I rowsort
SELECT DISTINCT - cor0.col2 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
-54
-57
-96

query I rowsort
SELECT ALL + 22 + + col2 FROM tab0
----
104
23
55

query I rowsort
SELECT DISTINCT 12 + + col1 * col1 * + col2 AS col1 FROM tab1 AS cor0
----
16236
36516
5712

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4061
SELECT CAST( NULL AS DECIMAL ) + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4061
SELECT CAST ( NULL AS REAL ) + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4062
SELECT ALL col0 DIV - ( - col2 * ( + cor0.col1 ) + col0 ) AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4062
SELECT ALL col0 / - ( - col2 * ( + cor0.col1 ) + col0 ) AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT 97 * col1 + - col1 FROM tab0 AS cor0
----
8256
8736
9312

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 + + 15 * - col2 col2 FROM tab2 AS cor0
----
-412
-468
-649

query I rowsort
SELECT - col0 * + col0 + - col1 * cor0.col1 * col2 FROM tab1 cor0
----
-22624
-36513
-9796

query I rowsort
SELECT - 54 * - 88 + + cor0.col0 FROM tab1 AS cor0
----
4755
4816
4832

query I rowsort
SELECT + - col2 * cor0.col1 + cor0.col1 * - col2 FROM tab2 AS cor0
----
-1292
-1674
-3068

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab0.col2 * ( + col2 ) col1 FROM tab0
----
-1
-1089
-6724

query I rowsort
SELECT - + col2 + + cor0.col0 * col2 AS col1 FROM tab0 cor0
----
34
7216
759

query I rowsort
SELECT + col2 * 60 FROM tab1
----
3240
3420
5760

query I rowsort
SELECT + col2 + - col1 * + 71 FROM tab0 cor0
----
-6073
-6379
-6886

query I rowsort
SELECT ALL - ( + col2 ) * ( col1 ) FROM tab0 AS cor0
----
-2838
-7462
-97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4073
SELECT CAST( NULL AS SIGNED ) * - 9 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-4073
SELECT CAST ( NULL AS INTEGER ) * - 9 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT + - col2 * col1 + - col2 FROM tab1 AS cor0
----
-1344
-1458
-627

query I rowsort
SELECT - + col1 * col1 + + cor0.col1 * col2 FROM tab2 AS cor0
----
-124
-1947
357

query I rowsort
SELECT - 67 + 58 FROM tab1, tab2 AS cor0
----
9 values hashing to caf28657beb43049740febe1fa9ded5a

query I rowsort
SELECT + col2 + + cor0.col2 * + cor0.col1 AS col0 FROM tab2 AS cor0
----
1560
684
864

onlyif mysql # use DIV operator for integer division
query I rowsort label-4078
SELECT col2 + + 69 DIV - col0 FROM tab1
----
31
56
96

skipif mysql # not compatible
query I rowsort label-4078
SELECT col2 + + 69 / - col0 FROM tab1
----
31
56
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-4079
SELECT col0 DIV 80 - 47 DIV - col0 AS col2 FROM tab2
----
0
0
6

skipif mysql # not compatible
query I rowsort label-4079
SELECT col0 / 80 - 47 / - col0 AS col2 FROM tab2
----
0
0
6

query I rowsort
SELECT ALL col1 * 53 AS col0 FROM tab0 AS cor0
----
4558
4823
5141

query I rowsort
SELECT + col2 * + col2 - cor0.col1 AS col0 FROM tab0 AS cor0
----
-96
1003
6633

query I rowsort
SELECT col1 * 6 * col1 + + col1 * - col1 FROM tab1 AS cor0
----
3380
500
845

query I rowsort
SELECT + cor0.col0 * col0 + - col0 * + col2 * ( + 51 ) FROM tab0 AS cor0
----
-364277
-39816
-560

query I rowsort
SELECT ALL ( col1 ) * - cor0.col0 * ( + 10 * + col2 ) + col0 * + col0 * cor0.col1 AS col2 FROM tab1 AS cor0
----
-323840
-41886
-915200

query I rowsort
SELECT - + col1 * ( + col1 ) + + col0 AS col2 FROM tab2 AS cor0
----
-210
-3403
-954

query I rowsort
SELECT DISTINCT + ( col1 ) - - col2 FROM tab1 AS cor0
----
109
67
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4087
SELECT + CAST( - 57 AS SIGNED ) * col2 + - col2 FROM tab1 AS cor0
----
-3132
-3306
-5568

skipif mysql # not compatible
query I rowsort label-4087
SELECT + CAST ( - 57 AS INTEGER ) * col2 + - col2 FROM tab1 AS cor0
----
-3132
-3306
-5568

onlyif mysql # use DIV operator for integer division
query I rowsort label-4088
SELECT + 72 DIV col1 - col1 FROM tab1 AS cor0
----
-24
-3
-8

skipif mysql # not compatible
query I rowsort label-4088
SELECT + 72 / col1 - col1 FROM tab1 AS cor0
----
-24
-3
-8

query I rowsort
SELECT DISTINCT - 12 - cor0.col0 FROM tab2 AS cor0
----
-19
-90
-91

query I rowsort
SELECT ALL - col2 + 12 * - col1 FROM tab1 AS cor0
----
-177
-252
-366

query I rowsort
SELECT col1 + - 1 * + col0 FROM tab2 AS cor0
----
-19
-62
24

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4092
SELECT - - col2 * + col0 + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4092
SELECT - - col2 * + col0 + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + + 10 AS col1 FROM tab1 cor0
----
10

query I rowsort
SELECT ALL + 95 FROM tab1, tab2 AS cor0
----
9 values hashing to e57d8ed879dfd04d04aae87725c970d3

query I rowsort
SELECT - 94 * col1 AS col0 FROM tab2 AS cor0
----
-1598
-2914
-5546

query I rowsort
SELECT DISTINCT + 75 * col2 AS col0 FROM tab2 AS cor0
----
1950
2025
2850

query I rowsort
SELECT - ( - col0 + col0 ) AS col2 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT - col2 + + cor0.col0 + - col1 * + col0 FROM tab2 AS cor0
----
-1302
-237
-4550

query I rowsort
SELECT ALL - + cor0.col1 * - col0 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT DISTINCT - col2 * + col0 + + col0 AS col1 FROM tab2 AS cor0
----
-182
-1950
-2923

query I rowsort
SELECT DISTINCT + + col2 * col1 + col1 * + ( col1 ) FROM tab1 AS cor0
----
1417
2080
670

query I rowsort
SELECT ALL - 19 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 0fbbff28a7b63c37b01cf369f9325662

query I rowsort
SELECT DISTINCT - + 31 * - col0 + - ( + col0 ) * col0 AS col2 FROM tab2 AS cor0
----
-3666
-3792
168

query I rowsort
SELECT + 49 FROM tab0, tab0 AS cor0, tab2 AS cor1, tab2 AS cor2
----
81 values hashing to e587c122dea39a2488ff88b884cea462

query I rowsort
SELECT ALL col1 * col2 * cor0.col2 FROM tab2 cor0
----
22599
24548
39884

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab0.col2 + - col1 - + col2 col2 FROM tab0
----
-86
-91
-97

query I rowsort
SELECT DISTINCT + col1 * col2 * ( col0 + col1 ) AS col0 FROM tab0 AS cor0
----
12804
1343160
312180

query I rowsort
SELECT DISTINCT 37 + + col2 * - 66 AS col1 FROM tab2 AS cor0
----
-1679
-1745
-2471

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col0 + ( + ( + col2 ) ) * - tab0.col2 col1 FROM tab0
----
-513
1197
1224

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4110
SELECT ALL + cor0.col2 * + CAST( NULL AS DECIMAL ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4110
SELECT ALL + cor0.col2 * + CAST ( NULL AS REAL ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col2 + - col2 * - 18 FROM tab0 AS cor0
----
1394
17
561

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 30 + - col0 col2 FROM tab2
----
-108
-109
-37

query I rowsort
SELECT ( 91 ) FROM tab0, tab0 cor0, tab1 cor1
----
27 values hashing to deebbcfb9c7803a34dca6bd860849afe

onlyif mysql # use DIV operator for integer division
query I rowsort label-4114
SELECT DISTINCT 63 DIV - col2 AS col1 FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-4114
SELECT DISTINCT 63 / - col2 AS col1 FROM tab1
----
-1
0

query I rowsort
SELECT ALL col1 * col1 + + col2 FROM tab1
----
157
265
730

query I rowsort
SELECT col0 * col2 + col2 * + col0 FROM tab2
----
378
4056
6004

onlyif mysql # use DIV operator for integer division
query I rowsort label-4117
SELECT col2 DIV col1 + - col1 * + col0 + col1 col0 FROM tab2
----
-1324
-186
-4543

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4117
SELECT col2 / col1 + - col1 * + col0 + col1 col0 FROM tab2
----
-1324
-186
-4543

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + col0 * + col2 col1 FROM tab0
----
3395
664118
68112

query I rowsort
SELECT col2 + - col0 + - col2 AS col1 FROM tab1
----
-3
-64
-80

query I rowsort
SELECT ALL col2 + + tab0.col1 + - col1 FROM tab0
----
1
33
82

query I rowsort
SELECT DISTINCT - col2 + + col1 + col1 AS col2 FROM tab2
----
-4
35
92

query I rowsort
SELECT col0 + tab2.col1 + col2 * col1 FROM tab2
----
1671
742
875

query I rowsort
SELECT col1 * + tab0.col1 * + col0 + col0 FROM tab0
----
177528
329350
737098

query I rowsort
SELECT DISTINCT + tab2.col1 * col1 AS col1 FROM tab2
----
289
3481
961

query I rowsort
SELECT ALL col1 + tab1.col2 AS col2 FROM tab1
----
109
67
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + col0 * col0 col1 FROM tab0
----
13824
42875
704969

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col2 + - col1 / + col0 <> - col0 * col2
----

query I rowsort
SELECT tab0.col0 * + col1 + + col2 * + tab0.col1 FROM tab0
----
15561
3492
4902

onlyif mysql # use DIV operator for integer division
query I rowsort label-4129
SELECT - tab1.col1 * tab1.col1 DIV - col0 - col2 FROM tab1
----
-56
-94
171

skipif mysql # not compatible
query I rowsort label-4129
SELECT - tab1.col1 * tab1.col1 / - col0 - col2 FROM tab1
----
-56
-94
171

query I rowsort
SELECT - col1 AS col1 FROM tab0 WHERE NULL NOT IN ( col1 * - col0 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-4131
SELECT ALL col2 + col2 DIV tab1.col0 AS col2 FROM tab1
----
57
72
97

skipif mysql # not compatible
query I rowsort label-4131
SELECT ALL col2 + col2 / tab1.col0 AS col2 FROM tab1
----
57
72
97

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL BETWEEN ( + col1 ) AND col1
----

query I rowsort
SELECT + col2 * col2 * + col0 FROM tab2
----
114076
5103
52728

query I rowsort
SELECT ALL + col1 + col1 * col0 AS col1 FROM tab0
----
2150
3492
8190

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - col1 col1 FROM tab2
----
-1343
-217
-4602

query I rowsort
SELECT col2 * + col0 * col1 AS col2 FROM tab1
----
36480
4212
99840

query I rowsort
SELECT - 21 + 11 FROM tab1
----
-10
-10
-10

query I rowsort
SELECT DISTINCT + ( + col2 ) * - tab2.col2 + 12 FROM tab2
----
-1432
-664
-717

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 69 * col2 col1 FROM tab1
----
3726
3933
6624

query I rowsort
SELECT + col0 - col1 * + col0 FROM tab1 AS cor0
----
-576
-75
-960

query I rowsort
SELECT + + cor0.col0 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

onlyif mysql # use DIV operator for integer division
query I rowsort label-4142
SELECT - col1 DIV ( col0 ) FROM tab2
----
-4
0
0

skipif mysql # not compatible
query I rowsort label-4142
SELECT - col1 / ( col0 ) FROM tab2
----
-4
0
0

query I rowsort
SELECT - 62 * 88 FROM tab0
----
-5456
-5456
-5456

query I rowsort
SELECT + 13 + col1 FROM tab1
----
23
26
39

query I rowsort
SELECT DISTINCT + + cor0.col0 + col1 AS col2 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT DISTINCT + 2 AS col0 FROM tab0
----
2

query I rowsort
SELECT + 0 + col0 AS col0 FROM tab2 AS cor0
----
7
78
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-4148
SELECT DISTINCT + + col1 DIV col1 + - 70 FROM tab1 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-4148
SELECT DISTINCT + + col1 / col1 + - 70 FROM tab1 AS cor0
----
-69

query I rowsort
SELECT + - col2 * + col1 + ( col1 ) FROM tab1 AS cor0
----
-1235
-1378
-560

query I rowsort
SELECT DISTINCT + col2 * cor0.col2 + - col2 AS col2 FROM tab1 AS cor0
----
2862
3192
9120

query I rowsort
SELECT ALL - 58 - + col2 AS col2 FROM tab0 cor0
----
-140
-59
-91

query I rowsort
SELECT DISTINCT - 24 * + col0 * + col2 + - 92 * + col2 FROM tab2 AS cor0
----
-51064
-7020
-75544

query I rowsort
SELECT DISTINCT + - 50 * + col2 FROM tab1 AS cor0
----
-2700
-2850
-4800

onlyif mysql # use DIV operator for integer division
query I rowsort label-4154
SELECT ALL - - col2 + - cor0.col1 DIV - col1 FROM tab1 AS cor0
----
55
58
97

skipif mysql # not compatible
query I rowsort label-4154
SELECT ALL - - col2 + - cor0.col1 / - col1 FROM tab1 AS cor0
----
55
58
97

query IIIIIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab2, tab2 cor1, tab1, tab2 AS cor2, tab0
----
13122 values hashing to 9c0d5525d7cccb973c10f21459c27f74

onlyif mysql # use DIV operator for integer division
query I rowsort label-4156
SELECT ALL + col2 + - 53 * col1 DIV + col0 FROM tab0 AS cor0
----
-145
-156
28

skipif mysql # not compatible
query I rowsort label-4156
SELECT ALL + col2 + - 53 * col1 / + col0 FROM tab0 AS cor0
----
-145
-156
28

query I rowsort
SELECT DISTINCT col2 * - ( col0 ) + - col2 FROM tab0 AS cor0
----
-36
-7380
-825

query I rowsort
SELECT DISTINCT + col0 + col0 * 31 AS col2 FROM tab2 cor0
----
224
2496
2528

onlyif mysql # use DIV operator for integer division
query I rowsort label-4159
SELECT - cor0.col2 DIV - ( 49 * + cor0.col0 ) FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4159
SELECT - cor0.col2 / - ( 49 * + cor0.col0 ) FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT + col1 * + ( col2 ) + - col1 AS col1 FROM tab0 AS cor0
----
0
2752
7371

onlyif mysql # use DIV operator for integer division
query I rowsort label-4161
SELECT DISTINCT + - col2 * col0 DIV - col2 FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-4161
SELECT DISTINCT + - col2 * col0 / - col2 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT + - col0 + 63 FROM tab1 cor0
----
-1
-17
60

query I rowsort
SELECT ALL ( - 29 ) FROM tab1 AS cor0
----
-29
-29
-29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * + col1 + col2 col1 FROM tab0 AS cor0
----
7429
8363
9410

query I rowsort
SELECT ALL 12 + 33 AS col1 FROM tab0 AS cor0
----
45
45
45

query I rowsort
SELECT ALL 52 + - col0 FROM tab2 AS cor0
----
-26
-27
45

query I rowsort
SELECT - ( + 96 ) * col0 - - 31 * - 75 AS col1 FROM tab0 AS cor0
----
-10869
-4629
-5685

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 75 col1 FROM tab0 AS cor0
----
-75
-75
-75

query I rowsort
SELECT + col0 * + col1 + - col1 + col0 FROM tab0 AS cor0
----
2002
3333
8097

query I rowsort
SELECT + - col0 + col2 + + col0 AS col0 FROM tab2 AS cor0
----
26
27
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 40 col0 FROM tab0 AS cor0
----
40
40
40

query I rowsort
SELECT - col0 - + col2 AS col2 FROM tab0 AS cor0
----
-171
-36
-57

query I rowsort
SELECT - 27 * col2 + cor0.col1 + - col1 AS col2 FROM tab0 AS cor0
----
-2214
-27
-891

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + col1 * col1 * - col2 col2 FROM tab2 AS cor0
----
-10903
-25940
-90428

query I rowsort
SELECT ALL col1 * col1 * col1 + col2 AS col0 FROM tab0
----
636089
753653
912674

query I rowsort
SELECT DISTINCT 62 + 79 FROM tab0
----
141

query I rowsort
SELECT DISTINCT - ( 6 ) * tab1.col0 + col2 FROM tab1
----
-327
-384
36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - col2 ) + col0 col2 FROM tab0
----
-9
34
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 - col1 * - col0 col0 FROM tab1 cor0
----
576
75
960

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 * + col1 - col2 * cor0.col1 col1 FROM tab1 cor0
----
-1079
-470
-728

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 42 col2 FROM tab0
----
42
42
42

query IIIIII rowsort
SELECT * FROM tab1, tab0 AS cor0 WHERE NULL > ( NULL )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-4183
SELECT DISTINCT - cor0.col1 DIV + cor0.col2 FROM tab1, tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4183
SELECT DISTINCT - cor0.col1 / + cor0.col2 FROM tab1, tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT - 31 AS col2 FROM tab0
----
-31

query I rowsort
SELECT col0 * - col2 - col2 AS col0 FROM tab1
----
-216
-3705
-7776

query I rowsort
SELECT + ( - col1 ) * - col2 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT + 53 * 89 AS col1 FROM tab2 AS cor0
----
4717
4717
4717

query I rowsort
SELECT ALL col1 * - col0 * 88 FROM tab1
----
-56320
-6864
-91520

query I rowsort
SELECT DISTINCT + tab0.col0 * - tab0.col2 FROM tab0, tab1, tab0 AS cor0
----
-35
-7298
-792

onlyif mysql # use DIV operator for integer division
query I rowsort label-4190
SELECT + ( - 85 ) DIV col0 FROM tab2
----
-1
-1
-12

skipif mysql # not compatible
query I rowsort label-4190
SELECT + ( - 85 ) / col0 FROM tab2
----
-1
-1
-12

query I rowsort
SELECT - 66 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to a408108d423d7784b7d610cb779e515a

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4192
SELECT - CAST( 51 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-51
-51
-51

skipif mysql # not compatible
query I rowsort label-4192
SELECT - CAST ( 51 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-51
-51
-51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 - - col1 * col1 col1 FROM tab1
----
36
673
89

query I rowsort
SELECT cor0.col0 * col2 + col1 FROM tab0 AS cor0
----
132
7389
878

query I rowsort
SELECT ALL col0 + + col1 * + col2 + - tab0.col0 AS col2 FROM tab0
----
2838
7462
97

query I rowsort
SELECT ALL + col2 * col0 + col2 + col1 FROM tab1
----
242
3715
7789

onlyif mysql # use DIV operator for integer division
query I rowsort label-4197
SELECT ALL - tab0.col1 DIV - tab0.col2 FROM tab0
----
1
2
97

skipif mysql # not compatible
query I rowsort label-4197
SELECT ALL - tab0.col1 / - tab0.col2 FROM tab0
----
1
2
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-4198
SELECT DISTINCT + col2 DIV - tab1.col1 AS col0 FROM tab1
----
-2
-5
-7

skipif mysql # not compatible
query I rowsort label-4198
SELECT DISTINCT + col2 / - tab1.col1 AS col0 FROM tab1
----
-2
-5
-7

query I rowsort
SELECT col2 * + col0 * col2 AS col0 FROM tab2 AS cor0
----
114076
5103
52728

query I rowsort
SELECT - col2 * - col1 * col1 FROM tab1 cor0
----
16224
36504
5700

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL NOT IN ( col0 / - col0 + - col0 )
----

query I rowsort
SELECT - col1 * col0 - col1 AS col2 FROM tab1
----
-104
-1053
-650

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab2.col0 + - col2 col2 FROM tab2
----
-104
-117
-34

onlyif mysql # use DIV operator for integer division
query I rowsort label-4204
SELECT DISTINCT - col1 + col2 DIV + col0 + - col0 col1 FROM tab2
----
-137
-35
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4204
SELECT DISTINCT - col1 + col2 / + col0 + - col0 col1 FROM tab2
----
-137
-35
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab1.col1 * + tab1.col1 col1 FROM tab1
----
100
169
676

query I rowsort
SELECT col2 + col2 + + col0 * col1 FROM tab0 AS cor0
----
2130
3397
8263

query I rowsort
SELECT + + col1 * col0 + cor0.col0 + col0 AS col1 FROM tab2 AS cor0
----
1501
231
4758

onlyif mysql # use DIV operator for integer division
query I rowsort label-4208
SELECT DISTINCT - + col2 DIV - col0 FROM tab0 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-4208
SELECT DISTINCT - + col2 / - col0 FROM tab0 AS cor0
----
0
1

query I rowsort
SELECT col1 * + col2 + + 43 * col0 FROM tab2
----
1138
4043
4888

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4210
SELECT - CAST( NULL AS SIGNED ) FROM tab2, tab0 AS cor0, tab0, tab0 AS cor1
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

skipif mysql # not compatible
query I rowsort label-4210
SELECT - CAST ( NULL AS INTEGER ) FROM tab2, tab0 AS cor0, tab0, tab0 AS cor1
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

onlyif mysql # use DIV operator for integer division
query I rowsort label-4211
SELECT + cor0.col0 DIV col1 - col0 * - col1 AS col1 FROM tab2 AS cor0
----
1347
217
4603

skipif mysql # not compatible
query I rowsort label-4211
SELECT + cor0.col0 / col1 - col0 * - col1 AS col1 FROM tab2 AS cor0
----
1347
217
4603

query I rowsort
SELECT 66 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 29794915b585eea848ad670075452c88

query I rowsort
SELECT ALL - col1 + - col2 + col0 FROM tab0 AS cor0
----
-63
-84
-95

query I rowsort
SELECT DISTINCT + + col2 + col2 AS col0 FROM tab2 AS cor0
----
52
54
76

query I rowsort
SELECT ALL + cor0.col1 * col0 + col2 AS col0 FROM tab0 AS cor0
----
2097
3396
8181

query I rowsort
SELECT DISTINCT + col2 * 43 - - col0 AS col0 FROM tab1 AS cor0
----
2325
2515
4208

query I rowsort
SELECT ALL 15 * + col2 FROM tab2
----
390
405
570

query I rowsort
SELECT + 78 * - col2 * - col2 AS col0 FROM tab2 AS cor0
----
112632
52728
56862

query I rowsort
SELECT 6 + 12 FROM tab2 AS cor0
----
18
18
18

onlyif mysql # use DIV operator for integer division
query I rowsort label-4220
SELECT DISTINCT col2 DIV 53 - col2 * col1 FROM tab1 AS cor0
----
-1247
-1403
-569

skipif mysql # not compatible
query I rowsort label-4220
SELECT DISTINCT col2 / 53 - col2 * col1 FROM tab1 AS cor0
----
-1247
-1403
-569

skipif mysql # not compatible
query I rowsort
SELECT ALL + + CAST ( + col0 AS REAL ) FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT cor0.col2 + cor0.col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 993162448d72b066e1ac9ba4caa8d8d7

onlyif mysql # use DIV operator for integer division
query I rowsort label-4223
SELECT ALL col0 * tab2.col1 DIV + CAST( 92 * col0 AS SIGNED ) FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4223
SELECT ALL col0 * tab2.col1 / + CAST ( 92 * col0 AS INTEGER ) FROM tab2
----
0
0
0

query I rowsort
SELECT ALL + ( + col2 ) * col1 * - ( col0 ) FROM tab1
----
-36480
-4212
-99840

query I rowsort
SELECT + 92 AS col1 FROM tab1 AS cor0
----
92
92
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 * - col2 col0 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT + 57 AS col2 FROM tab0 cor0
----
57
57
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 73 col2 FROM tab2 AS cor0
----
73

query I rowsort
SELECT ALL + col1 * + col2 + - 1 AS col1 FROM tab2 AS cor0
----
1533
645
836

query I rowsort
SELECT DISTINCT - cor0.col1 * + col2 FROM tab2 cor0
----
-1534
-646
-837

query I rowsort
SELECT DISTINCT cor0.col0 * col0 - col0 AS col2 FROM tab1 AS cor0
----
4032
6
6320

query I rowsort
SELECT DISTINCT cor0.col0 * ( - ( col2 ) * - col1 ) AS col2 FROM tab1 AS cor0
----
36480
4212
99840

query I rowsort
SELECT ALL - col2 * 65 + col1 FROM tab1 AS cor0
----
-3484
-3695
-6227

onlyif mysql # use DIV operator for integer division
query I rowsort label-4234
SELECT - col0 * col1 - + 58 * - col2 DIV col2 AS col2 FROM tab1 cor0
----
-20
-582
-982

skipif mysql # not compatible
query I rowsort label-4234
SELECT - col0 * col1 - + 58 * - col2 / col2 AS col2 FROM tab1 cor0
----
-20
-582
-982

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4235
SELECT ALL - + col0 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4235
SELECT ALL - + col0 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4236
SELECT - + col2 DIV - 34 + + col2 AS col1 FROM tab1 AS cor0
----
55
58
98

skipif mysql # not compatible
query I rowsort label-4236
SELECT - + col2 / - 34 + + col2 AS col1 FROM tab1 AS cor0
----
55
58
98

query I rowsort
SELECT ALL col0 * col1 * 59 FROM tab2 AS cor0
----
12803
271518
79237

query I rowsort
SELECT + - col0 * + 47 - - ( - col2 ) * + col1 FROM tab1 AS cor0
----
-1545
-3578
-5008

query I rowsort
SELECT ALL - 22 * - col2 + col1 - 73 * + col2 AS col2 FROM tab1
----
-2728
-2897
-4883

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4240
SELECT ALL - col2 * + col0 * - CAST( + 77 AS SIGNED ) AS col0 FROM tab2
----
14553
156156
231154

skipif mysql # not compatible
query I rowsort label-4240
SELECT ALL - col2 * + col0 * - CAST ( + 77 AS INTEGER ) AS col0 FROM tab2
----
14553
156156
231154

query I rowsort
SELECT - col1 + ( cor0.col0 ) FROM tab0 cor0
----
-2
-62
-62

query I rowsort
SELECT ALL - 90 - col0 * - ( + col2 + tab1.col0 ) AS col2 FROM tab1
----
13990
7654
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 * + 87 col1 FROM tab2 AS cor0
----
-609
-6786
-6873

query I rowsort
SELECT ALL - col0 * + col0 + + 75 * col0 FROM tab1 AS cor0
----
-400
216
704

query I rowsort
SELECT - col0 * + ( 41 ) FROM tab0 cor0
----
-1435
-3649
-984

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4246
SELECT + col1 * CAST( NULL AS SIGNED ) col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4246
SELECT + col1 * CAST ( NULL AS INTEGER ) col0 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 + 33 * + col2 FROM tab1
----
1808
1891
3181

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4248
SELECT DISTINCT col1 + CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4248
SELECT DISTINCT col1 + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 89 * - col0 col2 FROM tab1 AS cor0
----
-267
-5696
-7120

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - ( col1 * - col1 ) col2 FROM tab1 cor0
----
110
182
702

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab2.col2 * cor0.col2 col1 FROM tab2, tab2 cor0
----
9 values hashing to b336c500cf10b0a0ff50fcdda3308e9b

query I rowsort
SELECT - col0 + col2 * ( - col0 * cor0.col2 ) FROM tab2 AS cor0
----
-114155
-5110
-52806

query I rowsort
SELECT - 91 * + col2 AS col0 FROM tab2 AS cor0
----
-2366
-2457
-3458

query I rowsort
SELECT - 54 - - 21 AS col1 FROM tab2
----
-33
-33
-33

query I rowsort
SELECT col0 + - col2 * col0 AS col1 FROM tab0
----
-7209
-768
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4256
SELECT + CAST( + col0 AS SIGNED ) * + col0 FROM tab0
----
1225
576
7921

skipif mysql # not compatible
query I rowsort label-4256
SELECT + CAST ( + col0 AS INTEGER ) * + col0 FROM tab0
----
1225
576
7921

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( col0 ) col2 FROM tab2
----
-7
-78
-79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4258
SELECT - CAST( col1 * - col2 AS SIGNED ) + + ( col2 ) FROM tab1
----
1344
1458
627

skipif mysql # not compatible
query I rowsort label-4258
SELECT - CAST ( col1 * - col2 AS INTEGER ) + + ( col2 ) FROM tab1
----
1344
1458
627

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * tab0.col2 + - ( + col1 ) col1 FROM tab0
----
-96
1003
6633

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - cor0.col0 + - col1 col0 FROM tab0 AS cor0
----
-2150
-3492
-8190

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4261
SELECT ALL - + col2 + col0 + + CAST( - col2 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-105
-112
-50

skipif mysql # not compatible
query I rowsort label-4261
SELECT ALL - + col2 + col0 + + CAST ( - col2 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-105
-112
-50

query I rowsort
SELECT DISTINCT + + 99 AS col1 FROM tab2 AS cor0
----
99

query I rowsort
SELECT - cor0.col0 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 3000337dd3f11e9cfd5a312b01ef3f8b

onlyif mysql # use DIV operator for integer division
query I rowsort label-4264
SELECT DISTINCT + col2 DIV col0 + col0 + - cor0.col2 * + cor0.col0 AS col2 FROM tab0 AS cor0
----
-7209
-767
0

skipif mysql # not compatible
query I rowsort label-4264
SELECT DISTINCT + col2 / col0 + col0 + - cor0.col2 * + cor0.col0 AS col2 FROM tab0 AS cor0
----
-7209
-767
0

query I rowsort
SELECT 92 * cor0.col0 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 9596028634f7ef5bc08792444e59b3e7

query I rowsort
SELECT + col2 + 25 AS col1 FROM tab2 AS cor0
----
51
52
63

query I rowsort
SELECT col1 * tab1.col0 - + col2 AS col0 FROM tab1
----
24
583
944

query I rowsort
SELECT + 36 AS col2 FROM tab1, tab2 AS cor0, tab1 AS cor1, tab1 AS cor2
----
81 values hashing to e09b197365a04fabbaaf0718d2ae88c5

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4269
SELECT - 54 * + col2 - ( - col0 + col0 ) / CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4269
SELECT - 54 * + col2 - ( - col0 + col0 ) / CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col2 * col1 + 0 FROM tab2 AS cor0
----
1534
646
837

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * cor0.col0 - + col0 * 78 col2 FROM tab2 AS cor0
----
-497
0
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 69 * - col2 * 24 + + 29 col0 FROM tab0 cor0
----
-135763
-1627
-54619

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 82 * + col2 + + col2 col2 FROM tab2 AS cor0
----
-2106
-2187
-3078

query I rowsort
SELECT - 73 - + col2 * col0 FROM tab2 cor0
----
-2101
-262
-3075

query I rowsort
SELECT DISTINCT + 12 * + col1 FROM tab2 cor0
----
204
372
708

query I rowsort
SELECT ALL col2 + - col1 - - 86 * 51 AS col0 FROM tab0 AS cor0
----
4290
4333
4377

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 * col0 + + 52 col1 FROM tab2 AS cor0
----
2080
241
3054

query I rowsort
SELECT + ( col2 ) + + cor0.col0 AS col1 FROM tab2 AS cor0
----
104
117
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 * + 37 + col2 * - cor0.col2 col0 FROM tab2 AS cor0
----
-815
1507
418

query I rowsort
SELECT + - col0 * 27 AS col2 FROM tab0 cor0
----
-2403
-648
-945

query I rowsort
SELECT ALL - col2 * - 41 FROM tab2
----
1066
1107
1558

query I rowsort
SELECT ( - 22 ) + tab0.col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 48ccd6fe70833b7bd1e7ef517dea3d7c

query I rowsort
SELECT + col0 + 69 AS col2 FROM tab0 AS cor0
----
104
158
93

query I rowsort
SELECT - - col1 + ( - col0 ) + col1 FROM tab2 AS cor0
----
-45
40
55

onlyif mysql # use DIV operator for integer division
query I rowsort label-4285
SELECT - + col1 + - cor0.col1 DIV + 85 FROM tab1 AS cor0
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-4285
SELECT - + col1 + - cor0.col1 / + 85 FROM tab1 AS cor0
----
-10
-13
-26

onlyif mysql # use DIV operator for integer division
query I rowsort label-4286
SELECT - col2 DIV - cor0.col1 FROM tab1 AS cor0
----
2
5
7

skipif mysql # not compatible
query I rowsort label-4286
SELECT - col2 / - cor0.col1 FROM tab1 AS cor0
----
2
5
7

query I rowsort
SELECT DISTINCT - col1 + 81 FROM tab1 AS cor0
----
55
68
71

onlyif mysql # use DIV operator for integer division
query I rowsort label-4288
SELECT ALL - col1 DIV - 64 AS col1 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4288
SELECT ALL - col1 / - 64 AS col1 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT col0 + + ( ( - col2 ) ) AS col2 FROM tab2 AS cor0
----
-20
41
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-4290
SELECT col0 DIV ( - col2 ) col0 FROM tab1 AS cor0
----
-1
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4290
SELECT col0 / ( - col2 ) col0 FROM tab1 AS cor0
----
-1
0
0

query I rowsort
SELECT - - col1 * - 37 AS col1 FROM tab0 AS cor0
----
-3182
-3367
-3589

query I rowsort
SELECT - col0 + - 55 FROM tab0 cor0
----
-144
-79
-90

onlyif mysql # use DIV operator for integer division
query I rowsort label-4293
SELECT - col2 + col0 DIV col1 FROM tab1 AS cor0
----
-51
-54
-90

skipif mysql # not compatible
query I rowsort label-4293
SELECT - col2 + col0 / col1 FROM tab1 AS cor0
----
-51
-54
-90

query I rowsort
SELECT DISTINCT + + col2 * col2 + cor0.col0 FROM tab1 AS cor0
----
2919
3313
9296

query I rowsort
SELECT - + 17 * col1 FROM tab0 AS cor0
----
-1462
-1547
-1649

query I rowsort
SELECT ALL + + ( - col1 ) FROM tab1 cor0
----
-10
-13
-26

query I rowsort
SELECT DISTINCT - 13 * 10 AS col2 FROM tab1 AS cor0
----
-130

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4298
SELECT - CAST( NULL AS SIGNED ) * 41 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4298
SELECT - CAST ( NULL AS INTEGER ) * 41 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col2 * - 39 AS col1 FROM tab1
----
-2106
-2223
-3744

query I rowsort
SELECT + tab0.col1 FROM tab0, tab0 AS cor0, tab1, tab0 cor1
----
81 values hashing to 8c9db501a604ea66e3b5e5598f3f2a91

query I rowsort
SELECT col2 * - 18 * col1 FROM tab1 cor0
----
-10260
-22464
-25272

query I rowsort
SELECT + - 85 * col0 AS col1 FROM tab0 AS cor0
----
-2040
-2975
-7565

query I rowsort
SELECT DISTINCT + - col0 * - col2 + + cor0.col0 AS col2 FROM tab1 AS cor0
----
165
3712
7760

onlyif mysql # use DIV operator for integer division
query I rowsort label-4304
SELECT 29 DIV col0 col2 FROM tab0 AS cor0
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4304
SELECT 29 / col0 col2 FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT ALL + + col0 * - col0 AS col0 FROM tab2 cor0
----
-49
-6084
-6241

query I rowsort
SELECT DISTINCT - cor0.col1 + - col0 * col0 AS col0 FROM tab1 AS cor0
----
-35
-4106
-6413

query I rowsort
SELECT - - 27 + col0 * col1 * + ( col1 ) FROM tab1 AS cor0
----
13547
2055
6427

query I rowsort
SELECT ALL + col2 * + col0 + - col0 + col1 * col2 AS col2 FROM tab0 AS cor0
----
14671
3606
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4309
SELECT DISTINCT CAST( + col0 AS SIGNED ) * col2 + 97 AS col0 FROM tab0 AS cor0
----
132
7395
889

skipif mysql # not compatible
query I rowsort label-4309
SELECT DISTINCT CAST ( + col0 AS INTEGER ) * col2 + 97 AS col0 FROM tab0 AS cor0
----
132
7395
889

query I rowsort
SELECT ALL col2 * - col1 * col1 FROM tab1 cor0
----
-16224
-36504
-5700

query I rowsort
SELECT DISTINCT - 81 + col1 * + col1 FROM tab1 AS cor0
----
19
595
88

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4312
SELECT DISTINCT + - CAST( + 7 AS SIGNED ) + - col1 AS col1 FROM tab0 AS cor0
----
-104
-93
-98

skipif mysql # not compatible
query I rowsort label-4312
SELECT DISTINCT + - CAST ( + 7 AS INTEGER ) + - col1 AS col1 FROM tab0 AS cor0
----
-104
-93
-98

query I rowsort
SELECT DISTINCT + col0 + col2 * + cor0.col1 AS col1 FROM tab1 AS cor0
----
1328
1407
634

query I rowsort
SELECT + col2 * - 15 FROM tab2
----
-390
-405
-570

query I rowsort
SELECT ALL + col2 * - col2 + - col2 * tab0.col0 FROM tab0
----
-14022
-1881
-36

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4316
SELECT DISTINCT - CAST( NULL AS SIGNED ) / cor0.col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4316
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / cor0.col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL + col0 * 82 FROM tab2 AS cor0
----
574
6396
6478

query I rowsort
SELECT ALL cor0.col1 * - col1 + col2 * ( - col0 * col1 ) AS col1 FROM tab1 cor0
----
-100009
-36580
-4888

onlyif mysql # use DIV operator for integer division
query I rowsort label-4319
SELECT - + col0 + + ( col1 ) DIV col0 FROM tab0 AS cor0
----
-21
-33
-88

skipif mysql # not compatible
query I rowsort label-4319
SELECT - + col0 + + ( col1 ) / col0 FROM tab0 AS cor0
----
-21
-33
-88

query I rowsort
SELECT DISTINCT - ( - col2 ) * - cor0.col2 AS col0 FROM tab0 AS cor0
----
-1
-1089
-6724

query I rowsort
SELECT ALL + 50 + col1 AS col0 FROM tab0 AS cor0
----
136
141
147

query I rowsort
SELECT DISTINCT + 86 * + 5 * + col0 AS col2 FROM tab2
----
3010
33540
33970

query I rowsort
SELECT DISTINCT + col0 * + col1 * cor0.col2 + col1 AS col1 FROM tab1 cor0
----
36490
4238
99853

query I rowsort
SELECT - col0 + col0 * + cor0.col2 FROM tab2 cor0
----
182
1950
2923

query I rowsort
SELECT - - 86 * + cor1.col2 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 7a29fa5ba23748f6b5a9eb3a86ec1bc9

query I rowsort
SELECT col1 * + col2 + 96 AS col0 FROM tab1 AS cor0
----
1344
1500
666

query I rowsort
SELECT ALL - col0 - col1 * - ( col1 ) * - col2 FROM tab0 cor0
----
-244092
-679131
-9444

query I rowsort
SELECT DISTINCT - tab2.col1 - - tab2.col1 * - col1 FROM tab2
----
-306
-3540
-992

query I rowsort
SELECT DISTINCT + col0 - - col2 AS col1 FROM tab0
----
171
36
57

query I rowsort
SELECT ALL + 4 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 730dff78e83112374961ea711f98ebaa

query I rowsort
SELECT DISTINCT + - col1 - + col2 * col2 AS col1 FROM tab0 AS cor0
----
-1175
-6815
-98

query I rowsort
SELECT col0 * + ( cor0.col2 ) + + col0 AS col0 FROM tab2 AS cor0
----
196
2106
3081

query I rowsort
SELECT ALL col1 + 48 FROM tab1 AS cor0
----
58
61
74

query I rowsort
SELECT DISTINCT + col2 * + ( - 27 ) FROM tab2 AS cor0
----
-1026
-702
-729

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4335
SELECT DISTINCT - col0 * + CAST( - 89 AS SIGNED ) + col0 col1 FROM tab0 AS cor0
----
2160
3150
8010

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4335
SELECT DISTINCT - col0 * + CAST ( - 89 AS INTEGER ) + col0 col1 FROM tab0 AS cor0
----
2160
3150
8010

query I rowsort
SELECT - - 70 + col2 AS col0 FROM tab2 AS cor0
----
108
96
97

query I rowsort
SELECT ALL col0 - - 77 FROM tab0
----
101
112
166

query I rowsort
SELECT - col1 * col1 - 18 AS col2 FROM tab1 cor0
----
-118
-187
-694

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4339
SELECT DISTINCT CAST( - 87 AS SIGNED ) AS col1 FROM tab1
----
-87

skipif mysql # not compatible
query I rowsort label-4339
SELECT DISTINCT CAST ( - 87 AS INTEGER ) AS col1 FROM tab1
----
-87

query I rowsort
SELECT - ( col0 * col2 + tab2.col2 ) AS col1 FROM tab2
----
-2054
-216
-3040

query I rowsort
SELECT - col0 * col2 + - col2 AS col0 FROM tab0
----
-36
-7380
-825

query I rowsort
SELECT DISTINCT 68 + tab0.col2 + 24 AS col2 FROM tab0
----
125
174
93

query I rowsort
SELECT DISTINCT - col1 * + col2 + + col1 * - col1 * col2 FROM tab1 AS cor0
----
-17472
-37908
-6270

query I rowsort
SELECT DISTINCT - - 30 + col0 AS col1 FROM tab2 AS cor0
----
108
109
37

onlyif mysql # use DIV operator for integer division
query I rowsort label-4345
SELECT + ( + col1 ) DIV ( - cor0.col1 * col2 ) + ( - 43 ) col0 FROM tab1 AS cor0
----
-43
-43
-43

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4345
SELECT + ( + col1 ) / ( - cor0.col1 * col2 ) + ( - 43 ) col0 FROM tab1 AS cor0
----
-43
-43
-43

query I rowsort
SELECT ALL + - 11 * cor0.col1 + cor0.col2 FROM tab0 AS cor0
----
-1066
-913
-919

query I rowsort
SELECT col2 + 79 * 35 AS col2 FROM tab1
----
2819
2822
2861

query I rowsort
SELECT - col0 * tab1.col2 * col2 FROM tab1
----
-207936
-737280
-8748

query I rowsort
SELECT DISTINCT cor1.col1 FROM tab2, tab2 cor0, tab1 AS cor1
----
10
13
26

query I rowsort
SELECT DISTINCT col2 * + ( col2 ) FROM tab0
----
1
1089
6724

query I rowsort
SELECT DISTINCT col0 * - col2 * col0 AS col2 FROM tab1 AS cor0
----
-233472
-486
-614400

query I rowsort
SELECT + col0 * 41 + col2 FROM tab1 AS cor0
----
177
2681
3376

query I rowsort
SELECT + ( ( + tab1.col2 ) ) FROM tab1, tab2 cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17

query I rowsort
SELECT ALL + col2 * + ( + col2 ) FROM tab1
----
2916
3249
9216

query I rowsort
SELECT - col0 * + col2 + + ( cor0.col1 ) AS col0 FROM tab1 AS cor0
----
-136
-3638
-7667

query I rowsort
SELECT ALL - - col1 + 46 * col2 FROM tab2 AS cor0
----
1255
1273
1765

query I rowsort
SELECT DISTINCT + col1 * col2 + - col2 * col1 * col0 AS col0 FROM tab0 cor0
----
-3298
-65274
-656656

query I rowsort
SELECT DISTINCT 94 + - cor0.col2 FROM tab0 AS cor0
----
12
61
93

query I rowsort
SELECT ALL col1 * + 94 - + col1 FROM tab1 AS cor0
----
1209
2418
930

query I rowsort
SELECT DISTINCT 48 * + col0 AS col1 FROM tab0 AS cor0
----
1152
1680
4272

query I rowsort
SELECT DISTINCT - - col1 + + 10 AS col1 FROM tab0 AS cor0
----
101
107
96

query I rowsort
SELECT ALL col2 * col0 * - col1 + - col1 AS col2 FROM tab2 AS cor0
----
-119711
-51051
-5890

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - ( + col1 ) + col1 * cor0.col2 col2 FROM tab1 AS cor0
----
1235
1378
560

onlyif mysql # use DIV operator for integer division
query I rowsort label-4364
SELECT ALL col0 * - col1 DIV + cor0.col1 + + col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4364
SELECT ALL col0 * - col1 / + cor0.col1 + + col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - col1 * col0 - + col2 FROM tab2 AS cor0
----
-1381
-244
-4628

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 30 col0 FROM tab0
----
-30
-30
-30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 83 + - col0 * + col2 col2 FROM tab0 AS cor0
----
-709
-7215
48

query I rowsort
SELECT ALL col1 * - 91 * - tab1.col1 AS col0 FROM tab1
----
15379
61516
9100

query I rowsort
SELECT ALL - ( + cor1.col1 ) FROM tab0, tab0 AS cor0, tab1 AS cor1, tab2 AS cor2
----
81 values hashing to 96e9ef2950805bca93a295eeea43ef5b

query I rowsort
SELECT - 46 * ( cor0.col1 ) AS col1 FROM tab0 AS cor0
----
-3956
-4186
-4462

query I rowsort
SELECT - 49 + col2 * + col2 * - 15 AS col2 FROM tab0 cor0
----
-100909
-16384
-64

query I rowsort
SELECT + col2 * + cor0.col1 * col0 AS col0 FROM tab1 cor0
----
36480
4212
99840

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + col2 * 44 col1 FROM tab2 AS cor0
----
1118
1161
1634

query I rowsort
SELECT col1 * + col0 * cor0.col0 AS col2 FROM tab1 cor0
----
234
40960
83200

onlyif mysql # use DIV operator for integer division
query I rowsort label-4375
SELECT - 91 DIV - col1 FROM tab1 AS cor0
----
3
7
9

skipif mysql # not compatible
query I rowsort label-4375
SELECT - 91 / - col1 FROM tab1 AS cor0
----
3
7
9

query I rowsort
SELECT 86 * col1 * - 50 FROM tab0 AS cor0
----
-369800
-391300
-417100

query I rowsort
SELECT - - col1 + - cor0.col0 * - col2 AS col1 FROM tab2 AS cor0
----
2087
220
3019

query I rowsort
SELECT ALL ( + 96 ) * tab1.col2 * - 92 AS col1 FROM tab1
----
-476928
-503424
-847872

query I rowsort
SELECT - + 50 * col0 AS col1 FROM tab2 AS cor0
----
-350
-3900
-3950

query I rowsort
SELECT + col0 + + 10 AS col1 FROM tab0 AS cor0
----
34
45
99

query I rowsort
SELECT - - col1 * col1 + + cor0.col2 + + col1 FROM tab0 AS cor0
----
7515
8454
9507

query I rowsort
SELECT DISTINCT - cor0.col0 * - 92 + + col2 FROM tab2 cor0
----
671
7202
7306

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4383
SELECT ALL - col0 * CAST( - 13 AS SIGNED ) + + col1 * - 11 AS col0 FROM tab1 AS cor0
----
-247
722
897

skipif mysql # not compatible
query I rowsort label-4383
SELECT ALL - col0 * CAST ( - 13 AS INTEGER ) + + col1 * - 11 AS col0 FROM tab1 AS cor0
----
-247
722
897

query I rowsort
SELECT col1 + + ( col2 * col0 ) FROM tab0 cor0
----
132
7389
878

query I rowsort
SELECT ALL - + col0 * col2 * + 45 AS col2 FROM tab2 AS cor0
----
-135090
-8505
-91260

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 * + col1 + 5 col0 FROM tab2 AS cor0
----
-284
-3476
-956

skipif mysql # not compatible
query I rowsort
SELECT + + col0 * + CAST ( col1 AS REAL ) + col0 / col0 AS col1 FROM tab1 AS cor0
----
1041
641
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-4388
SELECT ALL - col0 DIV + CAST( + ( col1 ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4388
SELECT ALL - col0 / + CAST ( + ( col1 ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col0 * 0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL + col1 + + col1 * + 9 * 23 AS col0 FROM tab0
----
17888
18928
20176

query I rowsort
SELECT - 84 - - col1 FROM tab0
----
13
2
7

query I rowsort
SELECT + col1 + + col0 + col0 AS col2 FROM tab2
----
175
215
45

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4393
SELECT + col0 * ( + 46 * - col2 + CAST( - col2 AS SIGNED ) * + col0 ) FROM tab0
----
-2835
-55440
-985230

skipif mysql # not compatible
query I rowsort label-4393
SELECT + col0 * ( + 46 * - col2 + CAST ( - col2 AS INTEGER ) * + col0 ) FROM tab0
----
-2835
-55440
-985230

query I rowsort
SELECT 76 + 44 FROM tab0, tab0 AS cor0
----
9 values hashing to 9a76417a0e660b9e47db42d33f8268c3

skipif mysql # not compatible
query I rowsort
SELECT + col0 * - CAST ( col1 * col0 AS REAL ) AS col1 FROM tab2
----
-106097
-1519
-358956

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab0 AS cor2, tab1 AS cor3
----
3645 values hashing to ea1a922b7fccb9d184b31eb4689e063b

query I rowsort
SELECT + ( - 21 ) FROM tab2, tab0 AS cor0
----
9 values hashing to 631fbd1fd929405aba54a22c2a06c757

query I rowsort
SELECT ALL + col2 - + ( + col0 ) * - cor0.col2 AS col0 FROM tab1 AS cor0
----
216
3705
7776

query I rowsort
SELECT DISTINCT - col1 + - col1 AS col0 FROM tab1
----
-20
-26
-52

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4400
SELECT DISTINCT 82 + col0 / + CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4400
SELECT DISTINCT 82 + col0 / + CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL

query I rowsort
SELECT - col2 + + 10 AS col2 FROM tab1 AS cor0
----
-44
-47
-86

query I rowsort
SELECT DISTINCT + - col1 * - cor0.col1 + cor0.col2 FROM tab2 AS cor0
----
327
3507
988

query I rowsort
SELECT ALL col1 * 36 * cor0.col0 FROM tab0 AS cor0
----
122220
291564
74304

query I rowsort
SELECT ALL 58 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to ef6e63aeed2581a168f07646d258f666

query I rowsort
SELECT - col1 * - 6 * col0 FROM tab0
----
12384
20370
48594

query I rowsort
SELECT DISTINCT + 55 * 26 FROM tab0
----
1430

query I rowsort
SELECT col1 + col1 * cor0.col0 + + col2 AS col1 FROM tab1 AS cor0
----
1149
158
707

query I rowsort
SELECT ( col0 ) * - col0 AS col2 FROM tab0 AS cor0
----
-1225
-576
-7921

query I rowsort
SELECT 40 * 52 + col0 AS col1 FROM tab1 AS cor0
----
2083
2144
2160

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4410
SELECT + col1 * + 13 + + col2 + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4410
SELECT + col1 * + 13 + + col2 + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 88 + col0 AS col0 FROM tab2 AS cor0
----
-10
-81
-9

query I rowsort
SELECT + + 55 + - col2 * cor0.col2 * col0 FROM tab1 AS cor0
----
-207881
-737225
-8693

query I rowsort
SELECT + 95 + + cor0.col0 FROM tab2 AS cor0
----
102
173
174

query I rowsort
SELECT DISTINCT + 80 + + cor0.col1 FROM tab0 AS cor0
----
166
171
177

query I rowsort
SELECT col1 * + cor0.col0 + ( col0 ) + - col2 AS col1 FROM tab1 AS cor0
----
1024
27
647

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + col0 + col2 col2 FROM tab0 AS cor0
----
24
35
89

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4417
SELECT DISTINCT + + cor0.col0 * col2 + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4417
SELECT DISTINCT + + cor0.col0 * col2 + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT cor0.col0 * + col1 + + ( 90 ) * - col2 * - col2 FROM tab1 AS cor0
----
262518
293050
830480

query I rowsort
SELECT ALL ( col0 ) + col2 + 16 FROM tab0 AS cor0
----
187
52
73

query I rowsort
SELECT - - col2 + col0 * col2 AS col2 FROM tab1 AS cor0
----
216
3705
7776

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 62 col0 FROM tab1 AS cor0
----
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 88 col2 FROM tab0 AS cor0
----
-88
-88
-88

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4423
SELECT DISTINCT + col0 + col1 + + CAST( + col1 + cor0.col0 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
148
186
58

skipif mysql # not compatible
query I rowsort label-4423
SELECT DISTINCT + col0 + col1 + + CAST ( + col1 + cor0.col0 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
148
186
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + col2 - - col0 col0 FROM tab0 AS cor0
----
253
37
90

query I rowsort
SELECT ALL - col1 + - col0 * - col1 FROM tab2 cor0
----
1326
186
4543

query I rowsort
SELECT ALL col0 * - col2 - + ( col2 ) FROM tab2 AS cor0
----
-2054
-216
-3040

query I rowsort
SELECT ALL - + col0 * + ( + col2 ) AS col1 FROM tab0 AS cor0
----
-35
-7298
-792

onlyif mysql # use DIV operator for integer division
query I rowsort label-4428
SELECT DISTINCT col0 * col0 DIV + col0 col0 FROM tab0 AS cor0
----
24
35
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4428
SELECT DISTINCT col0 * col0 / + col0 col0 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT ALL - col1 * + ( + cor0.col1 ) * - col2 FROM tab0 AS cor0
----
244068
679042
9409

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4430
SELECT ALL - 8 * col1 * - tab0.col1 + 6 * col2 + + CAST( col0 AS SIGNED ) FROM tab0
----
59390
66829
75313

skipif mysql # not compatible
query I rowsort label-4430
SELECT ALL - 8 * col1 * - tab0.col1 + 6 * col2 + + CAST ( col0 AS INTEGER ) FROM tab0
----
59390
66829
75313

query I rowsort
SELECT 43 + col0 * 39 * col0 FROM tab0
----
22507
308962
47818

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4432
SELECT - CAST( NULL AS DECIMAL ) / col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4432
SELECT - CAST ( NULL AS REAL ) / col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 27 + col0 AS col2 FROM tab0 AS cor0
----
116
51
62

query I rowsort
SELECT DISTINCT - + 46 * col0 AS col1 FROM tab0 AS cor0
----
-1104
-1610
-4094

query I rowsort
SELECT ( - 79 ) + + col0 FROM tab1 AS cor0
----
-15
-76
1

query I rowsort
SELECT DISTINCT 31 * - col0 AS col0 FROM tab2 AS cor0
----
-217
-2418
-2449

onlyif mysql # use DIV operator for integer division
query I rowsort label-4437
SELECT - col1 - col1 DIV - col0 col0 FROM tab0 AS cor0
----
-83
-90
-95

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4437
SELECT - col1 - col1 / - col0 col0 FROM tab0 AS cor0
----
-83
-90
-95

query I rowsort
SELECT DISTINCT + 58 * - col1 * + cor0.col0 AS col1 FROM tab1 AS cor0
----
-37120
-4524
-60320

query I rowsort
SELECT ALL - + col0 * + ( - col0 ) * - col2 + ( col0 + + 93 ) FROM tab0 AS cor0
----
-1097
-18891
-649340

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4440
SELECT CAST( col1 AS SIGNED ) + - col2 * col2 AS col0 FROM tab0 AS cor0
----
-1003
-6633
96

skipif mysql # not compatible
query I rowsort label-4440
SELECT CAST ( col1 AS INTEGER ) + - col2 * col2 AS col0 FROM tab0 AS cor0
----
-1003
-6633
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-4441
SELECT ALL col0 DIV col2 col2 FROM tab0
----
0
1
35

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4441
SELECT ALL col0 / col2 col2 FROM tab0
----
0
1
35

query I rowsort
SELECT + 29 * 74 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 4739a739df32b7c22892df2a075095e8

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4443
SELECT DISTINCT + - col0 * col0 * CAST( NULL AS SIGNED ) + - col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4443
SELECT DISTINCT + - col0 * col0 * CAST ( NULL AS INTEGER ) + - col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL - + col2 * - col0 + col1 AS col2 FROM tab1 cor0
----
188
3658
7693

query I rowsort
SELECT ALL + col1 + col2 - + col0 FROM tab1
----
29
3
77

query I rowsort
SELECT - col2 + + tab0.col1 AS col0 FROM tab0
----
53
9
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-4447
SELECT ALL - col0 + col1 DIV + col2 AS col2 FROM tab1
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-4447
SELECT ALL - col0 + col1 / + col2 AS col2 FROM tab1
----
-3
-64
-80

query I rowsort
SELECT DISTINCT col1 + col1 * tab0.col2 FROM tab0
----
194
2924
7553

query I rowsort
SELECT + col1 + + col2 + tab0.col2 AS col2 FROM tab0
----
152
255
99

query I rowsort
SELECT DISTINCT - col2 AS col2 FROM tab2 WHERE col1 * - col0 < col0 * col1
----
-26
-27
-38

onlyif mysql # use DIV operator for integer division
query I rowsort label-4451
SELECT ALL - col2 DIV + col0 + col2 AS col1 FROM tab0
----
1
32
82

skipif mysql # not compatible
query I rowsort label-4451
SELECT ALL - col2 / + col0 + col2 AS col1 FROM tab0
----
1
32
82

query I rowsort
SELECT ALL - + 86 * - cor0.col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 4a425fd1fe865edf3d551d399e553ffe

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - col1 col0 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT - cor0.col0 * - col0 * col2 FROM tab0 AS cor0
----
1225
19008
649522

query I rowsort
SELECT ALL col0 AS col1 FROM tab2 WHERE ( col0 * + col1 * + col1 ) BETWEEN NULL AND ( NULL )
----

query III rowsort
SELECT * FROM tab0 WHERE ( col2 * - col2 ) NOT IN ( + col0 * + tab0.col2 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

query I rowsort
SELECT DISTINCT + tab2.col0 + - tab2.col0 FROM tab2
----
0

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NULL ) <= NULL
----

query I rowsort
SELECT DISTINCT + col0 + + col1 * col0 AS col1 FROM tab1 AS cor0
----
1120
704
81

query I rowsort
SELECT ALL cor0.col2 * - col2 + + col1 AS col0 FROM tab1 AS cor0
----
-2890
-3239
-9203

onlyif mysql # use DIV operator for integer division
query I rowsort label-4461
SELECT col0 DIV col0 + - col2 AS col0 FROM tab0
----
-32
-81
0

skipif mysql # not compatible
query I rowsort label-4461
SELECT col0 / col0 + - col2 AS col0 FROM tab0
----
-32
-81
0

query I rowsort
SELECT col0 * col2 - col2 * - col2 FROM tab0
----
14022
1881
36

query I rowsort
SELECT ALL + col0 * tab1.col0 + - col1 AS col2 FROM tab1
----
-17
4086
6387

query I rowsort
SELECT col2 / col2 + col0 FROM tab0 WHERE NULL <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 col1 FROM tab1 WHERE NULL NOT IN ( col2 )
----

query I rowsort
SELECT tab2.col2 + + col2 * col2 FROM tab2
----
1482
702
756

query I rowsort
SELECT - cor0.col1 * col0 AS col2 FROM tab2 AS cor0 WHERE NULL BETWEEN col1 AND NULL
----

query I rowsort
SELECT col0 + + col0 * tab1.col1 AS col0 FROM tab1
----
1120
704
81

query I rowsort
SELECT + ( - 66 ) AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to a408108d423d7784b7d610cb779e515a

query I rowsort
SELECT ALL + 43 - cor1.col0 AS col1 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to fcf3aa95e561045eb3bf9af4bb681a71

query I rowsort
SELECT ALL + 34 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 1146d159f0b9b4378a8b738b963f7039

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4472
SELECT CAST( - col2 AS SIGNED ) * - col1 AS col1 FROM tab2
----
1534
646
837

skipif mysql # not compatible
query I rowsort label-4472
SELECT CAST ( - col2 AS INTEGER ) * - col1 AS col1 FROM tab2
----
1534
646
837

onlyif mysql # use DIV operator for integer division
query I rowsort label-4473
SELECT + 72 DIV + 92 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4473
SELECT + 72 / + 92 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT ALL ( + cor0.col2 ) FROM tab0, tab2 AS cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3

query I rowsort
SELECT 83 * + col2 + - col2 FROM tab1 AS cor0
----
4428
4674
7872

query I rowsort
SELECT DISTINCT 30 AS col1 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
30

query I rowsort
SELECT + ( cor0.col0 ) AS col0 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

query I rowsort
SELECT 91 * tab1.col1 AS col0 FROM tab1
----
1183
2366
910

onlyif mysql # use DIV operator for integer division
query I rowsort label-4479
SELECT 52 DIV col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4479
SELECT 52 / col2 FROM tab1
----
0
0
0

query I rowsort
SELECT ( + col2 ) * - 40 FROM tab0
----
-1320
-3280
-40

query I rowsort
SELECT ALL + 86 * + col0 FROM tab0 cor0
----
2064
3010
7654

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 89 col0 FROM tab2 AS cor0
----
89

query I rowsort
SELECT 33 * col2 + + 80 FROM tab1 AS cor0
----
1862
1961
3248

query I rowsort
SELECT + col2 * + col1 * col1 - - cor0.col0 FROM tab0 AS cor0
----
244092
679131
9444

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * 83 + col1 col1 FROM tab0 AS cor0
----
7224
7644
8148

query I rowsort
SELECT - cor0.col0 + 16 FROM tab2 cor0
----
-62
-63
9

query I rowsort
SELECT + col2 + ( ( col0 ) ) AS col2 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT col2 + - col1 * + col2 FROM tab2 cor0
----
-1508
-608
-810

query I rowsort
SELECT DISTINCT - 80 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
-80

query I rowsort
SELECT DISTINCT - 22 + col1 FROM tab1
----
-12
-9
4

query I rowsort
SELECT + col2 + + col0 * + 3 + - col1 FROM tab2
----
17
201
258

query I rowsort
SELECT - col1 + - ( - col2 ) AS col1 FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT col1 * - 1 AS col1 FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT + col1 * 23 + - 67 * col1 FROM tab2 AS cor0
----
-1364
-2596
-748

query I rowsort
SELECT ALL + cor0.col2 * cor0.col1 FROM tab1, tab2 AS cor0
----
9 values hashing to f5605ce6cbd6ecc79a4a887488bb6947

query I rowsort
SELECT ALL - ( 36 ) * + col2 AS col0 FROM tab2 AS cor0
----
-1368
-936
-972

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 67 * cor1.col1 col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 93deaa122e114ffa8d6beb273abef2f9

query I rowsort
SELECT - 55 + + col1 * - col2 FROM tab1 AS cor0
----
-1303
-1459
-625

query I rowsort
SELECT + col2 * + col1 + col2 + - cor0.col0 FROM tab0 AS cor0
----
2847
63
7455

query I rowsort
SELECT DISTINCT 57 * col2 + + col2 + col1 FROM tab1 AS cor0
----
3158
3316
5581

query I rowsort
SELECT ALL + + col1 * - col2 * - col0 AS col0 FROM tab2 AS cor0
----
119652
51034
5859

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4502
SELECT DISTINCT CAST( + col1 AS SIGNED ) + + col0 FROM tab0
----
110
132
180

skipif mysql # not compatible
query I rowsort label-4502
SELECT DISTINCT CAST ( + col1 AS INTEGER ) + + col0 FROM tab0
----
110
132
180

query I rowsort
SELECT DISTINCT 78 + + col1 FROM tab2
----
109
137
95

query I rowsort
SELECT 87 + - col0 AS col2 FROM tab0 AS cor0
----
-2
52
63

query I rowsort
SELECT DISTINCT col0 + - 10 FROM tab2
----
-3
68
69

onlyif mysql # use DIV operator for integer division
query I rowsort label-4506
SELECT ALL + 48 DIV + ( + col0 ) + col2 + - col0 FROM tab2
----
-41
-52
26

skipif mysql # not compatible
query I rowsort label-4506
SELECT ALL + 48 / + ( + col0 ) + col2 + - col0 FROM tab2
----
-41
-52
26

query I rowsort
SELECT DISTINCT col0 + col0 + - tab2.col1 * - col0 FROM tab2
----
1501
231
4758

query I rowsort
SELECT DISTINCT + col1 * 89 AS col2 FROM tab0 AS cor0
----
7654
8099
8633

onlyif mysql # use DIV operator for integer division
query I rowsort label-4509
SELECT ALL - col1 + + ( + col2 ) DIV col0 FROM tab0 cor0
----
-85
-91
-97

skipif mysql # not compatible
query I rowsort label-4509
SELECT ALL - col1 + + ( + col2 ) / col0 FROM tab0 cor0
----
-85
-91
-97

query I rowsort
SELECT col2 + + 97 FROM tab0 AS cor0
----
130
179
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-4511
SELECT ALL - col2 + + col0 DIV 12 FROM tab0 cor0
----
-31
-75
1

skipif mysql # not compatible
query I rowsort label-4511
SELECT ALL - col2 + + col0 / 12 FROM tab0 cor0
----
-31
-75
1

query I rowsort
SELECT DISTINCT col0 * + col1 * 73 FROM tab2 AS cor0
----
15841
335946
98039

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 42 col1 FROM tab0, tab1, tab0 AS cor0
----
-42

query I rowsort
SELECT ALL 77 AS col0 FROM tab0
----
77
77
77

query I rowsort
SELECT - col2 + 61 FROM tab2
----
23
34
35

query I rowsort
SELECT DISTINCT + col1 - - 84 FROM tab2
----
101
115
143

query I rowsort
SELECT - cor0.col1 + + 76 FROM tab1 AS cor0
----
50
63
66

query I rowsort
SELECT - col1 * 58 + + col0 FROM tab1 AS cor0
----
-1505
-516
-674

query I rowsort
SELECT ALL - col2 - col0 * - tab0.col1 FROM tab0
----
2031
3394
8017

query I rowsort
SELECT ALL col1 * - col1 - + col1 * + col1 * tab2.col1 AS col0 FROM tab2
----
-208860
-30752
-5202

query I rowsort
SELECT ALL col1 * + col0 * - col1 - - col2 FROM tab0
----
-177471
-329314
-736927

onlyif mysql # use DIV operator for integer division
query I rowsort label-4522
SELECT - col1 + col2 + + col2 DIV + col1 AS col2 FROM tab0
----
-53
-9
-96

skipif mysql # not compatible
query I rowsort label-4522
SELECT - col1 + col2 + + col2 / + col1 AS col2 FROM tab0
----
-53
-9
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-4523
SELECT + col0 + col0 DIV col2 AS col0 FROM tab0
----
24
70
90

skipif mysql # not compatible
query I rowsort label-4523
SELECT + col0 + col0 / col2 AS col0 FROM tab0
----
24
70
90

onlyif mysql # use DIV operator for integer division
query I rowsort label-4524
SELECT ALL col2 + - col0 DIV tab0.col0 AS col0 FROM tab0
----
0
32
81

skipif mysql # not compatible
query I rowsort label-4524
SELECT ALL col2 + - col0 / tab0.col0 AS col0 FROM tab0
----
0
32
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-4525
SELECT col1 * col0 DIV col1 FROM tab2
----
7
78
79

skipif mysql # not compatible
query I rowsort label-4525
SELECT col1 * col0 / col1 FROM tab2
----
7
78
79

query I rowsort
SELECT ALL - col1 + tab2.col0 AS col2 FROM tab2
----
-24
19
62

query I rowsort
SELECT DISTINCT cor0.col2 * col0 + col0 FROM tab0 AS cor0
----
70
7387
816

query I rowsort
SELECT col0 FROM tab0 WHERE ( NULL ) NOT IN ( - col0 )
----

query I rowsort
SELECT + col2 * + col1 + - col0 * col1 + + col1 FROM tab1 AS cor0
----
-60
1352
221

query I rowsort
SELECT ALL col0 + cor0.col1 + - col0 FROM tab2 cor0
----
17
31
59

query I rowsort
SELECT ALL col1 + col1 * col0 AS col1 FROM tab1 AS cor0
----
104
1053
650

query I rowsort
SELECT DISTINCT + col1 + - col1 - - col1 * + col0 AS col2 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT cor0.col0 * - col2 - col0 FROM tab0 AS cor0
----
-70
-7387
-816

query I rowsort
SELECT ALL - col2 + col0 AS col0 FROM tab0 cor0
----
-9
34
7

query I rowsort
SELECT ALL col0 * col0 * + col2 + + col1 FROM tab2 AS cor0
----
1354
158243
237175

query I rowsort
SELECT DISTINCT - - cor0.col2 - + col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT + + 9 * col0 AS col1 FROM tab2 AS cor0
----
63
702
711

query I rowsort
SELECT ( - col2 ) + - col0 AS col1 FROM tab2
----
-104
-117
-34

query I rowsort
SELECT ALL + + col0 + col2 * + col0 AS col2 FROM tab0 AS cor0
----
70
7387
816

query I rowsort
SELECT ( + col0 ) * - col0 + col0 FROM tab2 AS cor0
----
-42
-6006
-6162

query I rowsort
SELECT 12 + col0 * cor0.col1 AS col1 FROM tab1 AS cor0
----
1052
652
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 * + col2 col1 FROM tab2 cor0
----
-189
-2028
-3002

query I rowsort
SELECT - col0 * - col2 * - cor0.col2 FROM tab1 AS cor0
----
-207936
-737280
-8748

query I rowsort
SELECT + col1 + + col2 * - col0 AS col0 FROM tab0 AS cor0
----
-706
-7207
62

query I rowsort
SELECT DISTINCT - col2 + col1 * - col2 + - col1 FROM tab2 AS cor0
----
-1619
-701
-895

query I rowsort
SELECT + col1 * - cor0.col0 * - col2 FROM tab0 AS cor0
----
3395
664118
68112

query I rowsort
SELECT DISTINCT + - cor0.col1 * + cor0.col2 AS col0 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT ALL + + col0 * col0 + - cor0.col1 * + col1 * - col2 FROM tab2 AS cor0
----
17223
25996
96590

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col1 * + col2 col0 FROM tab2
----
10982
25947
90506

query I rowsort
SELECT DISTINCT cor0.col1 * cor0.col0 AS col0 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT DISTINCT - + 27 * + col1 FROM tab0 cor0
----
-2322
-2457
-2619

query I rowsort
SELECT + - cor0.col1 + col2 + col2 FROM tab2 cor0
----
-7
23
59

query I rowsort
SELECT ALL - + 54 * + col0 AS col0 FROM tab2 AS cor0
----
-378
-4212
-4266

query I rowsort
SELECT DISTINCT cor0.col1 + col1 * col0 AS col0 FROM tab0 cor0
----
2150
3492
8190

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4555
SELECT ALL col2 + + col1 * - CAST( col0 AS SIGNED ) col0 FROM tab1 AS cor0
----
-24
-583
-944

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4555
SELECT ALL col2 + + col1 * - CAST ( col0 AS INTEGER ) col0 FROM tab1 AS cor0
----
-24
-583
-944

query I rowsort
SELECT ALL + ( + col0 ) * 91 AS col0 FROM tab2 AS cor0
----
637
7098
7189

query I rowsort
SELECT ALL - - 17 * + col1 AS col2 FROM tab1 cor0
----
170
221
442

onlyif mysql # use DIV operator for integer division
query I rowsort label-4558
SELECT + col2 DIV + col1 + + col0 DIV - col1 AS col1 FROM tab1 AS cor0
----
-1
1
2

skipif mysql # not compatible
query I rowsort label-4558
SELECT + col2 / + col1 + + col0 / - col1 AS col1 FROM tab1 AS cor0
----
-1
1
2

query I rowsort
SELECT col0 * ( 56 ) * - col0 FROM tab2 cor0
----
-2744
-340704
-349496

query I rowsort
SELECT + col2 * - ( - cor0.col0 ) FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT ALL + - col0 + ( 11 ) * - col1 FROM tab2 AS cor0
----
-266
-348
-727

query I rowsort
SELECT - - cor0.col0 * ( col2 ) FROM tab2 cor0
----
189
2028
3002

query I rowsort
SELECT ALL - 90 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f6f26b9a04da14807208b93d507095c5

query I rowsort
SELECT + 6 + + tab1.col0 * + col1 AS col1 FROM tab1
----
1046
646
84

query I rowsort
SELECT - col2 * ( + 25 ) FROM tab1 AS cor0
----
-1350
-1425
-2400

query I rowsort
SELECT + 74 + - 70 + col2 AS col1 FROM tab1 AS cor0
----
100
58
61

query I rowsort
SELECT ALL + 88 + 33 * - col0 FROM tab1 AS cor0
----
-11
-2024
-2552

query I rowsort
SELECT DISTINCT + ( - cor0.col0 ) * + col0 FROM tab0 AS cor0
----
-1225
-576
-7921

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( - col2 ) + + col2 col2 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT ALL + 86 * col0 FROM tab0 AS cor0
----
2064
3010
7654

query I rowsort
SELECT ALL - 85 + - 30 FROM tab2 AS cor0
----
-115
-115
-115

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4572
SELECT CAST( - col0 AS SIGNED ) - col0 col2 FROM tab2 cor0
----
-14
-156
-158

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4572
SELECT CAST ( - col0 AS INTEGER ) - col0 col2 FROM tab2 cor0
----
-14
-156
-158

query I rowsort
SELECT + 55 - col2 FROM tab1 AS cor0
----
-2
-41
1

query I rowsort
SELECT - col0 * col1 - col1 AS col1 FROM tab2 cor0
----
-1360
-248
-4661

query I rowsort
SELECT + col0 + + col2 + ( - cor0.col0 ) AS col2 FROM tab0 AS cor0
----
1
33
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-4576
SELECT + 79 DIV - 46 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4576
SELECT + 79 / - 46 FROM tab1
----
-1
-1
-1

query I rowsort
SELECT DISTINCT - ( + col1 ) * col0 * 95 + - col0 * + col1 + ( + ( col0 ) ) * + col0 AS col0 FROM tab0
----
-197568
-324695
-769583

query I rowsort
SELECT 25 + + col0 * tab0.col1 FROM tab0
----
2089
3420
8124

query I rowsort
SELECT + 9 + + col0 + + col0 FROM tab0
----
187
57
79

query I rowsort
SELECT + col0 * col2 * - col0 AS col0 FROM tab1
----
-233472
-486
-614400

query I rowsort
SELECT - col1 * - 22 AS col0 FROM tab0
----
1892
2002
2134

query I rowsort
SELECT - ( - col2 ) + col2 * + col0 * + cor0.col1 + col0 * col0 FROM tab2 AS cor0
----
125762
57313
5935

query I rowsort
SELECT + col0 * col2 + - 17 + 32 FROM tab0 AS cor0
----
50
7313
807

query I rowsort
SELECT ALL col2 + 91 AS col2 FROM tab1
----
145
148
187

query I rowsort
SELECT - cor0.col0 * - 98 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 753de708ba8e1269d416f3cc04b85e0c

query I rowsort
SELECT - cor1.col2 AS col0 FROM tab2, tab2 cor0, tab2 AS cor1
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6

query I rowsort
SELECT ALL + 47 * col2 + - col1 FROM tab1 AS cor0
----
2512
2669
4499

query I rowsort
SELECT + + col0 * col2 + col1 AS col1 FROM tab1 AS cor0
----
188
3658
7693

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 96 + col2 col0 FROM tab0 AS cor0
----
129
178
97

query I rowsort
SELECT ( - cor0.col1 ) * col2 AS col0 FROM tab0 AS cor0
----
-2838
-7462
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab1.col2 col2 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT ALL col2 * 8 + - col2 FROM tab0 AS cor0
----
231
574
7

query I rowsort
SELECT DISTINCT + col2 * - col0 + - col2 FROM tab0 AS cor0
----
-36
-7380
-825

query I rowsort
SELECT ( + 51 ) * cor0.col0 FROM tab2 AS cor0
----
357
3978
4029

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4595
SELECT CAST( 72 AS SIGNED ) FROM tab1 AS cor0
----
72
72
72

skipif mysql # not compatible
query I rowsort label-4595
SELECT CAST ( 72 AS INTEGER ) FROM tab1 AS cor0
----
72
72
72

query I rowsort
SELECT - col1 * ( col0 ) AS col0 FROM tab2 cor0
----
-1343
-217
-4602

query I rowsort
SELECT DISTINCT col0 + 46 * - col0 FROM tab2 cor0
----
-315
-3510
-3555

query I rowsort
SELECT DISTINCT + col0 * 59 * + col2 FROM tab2 AS cor0
----
11151
119652
177118

onlyif mysql # use DIV operator for integer division
query I rowsort label-4599
SELECT ALL + col2 DIV 50 - - col1 * + col2 DIV + ( - col2 ) AS col2 FROM tab1
----
-12
-25
-9

skipif mysql # not compatible
query I rowsort label-4599
SELECT ALL + col2 / 50 - - col1 * + col2 / + ( - col2 ) AS col2 FROM tab1
----
-12
-25
-9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4600
SELECT ALL col2 + - CAST( + col2 AS SIGNED ) - + col0 AS col2 FROM tab2
----
-7
-78
-79

skipif mysql # not compatible
query I rowsort label-4600
SELECT ALL col2 + - CAST ( + col2 AS INTEGER ) - + col0 AS col2 FROM tab2
----
-7
-78
-79

onlyif mysql # use DIV operator for integer division
query I rowsort label-4601
SELECT - col0 DIV 89 + + col2 AS col2 FROM tab2 AS cor0
----
26
27
38

skipif mysql # not compatible
query I rowsort label-4601
SELECT - col0 / 89 + + col2 AS col2 FROM tab2 AS cor0
----
26
27
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-4602
SELECT ALL + col0 + col1 DIV - col0 AS col2 FROM tab1 cor0
----
-5
64
80

skipif mysql # not compatible
query I rowsort label-4602
SELECT ALL + col0 + col1 / - col0 AS col2 FROM tab1 cor0
----
-5
64
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4603
SELECT + + col2 + CAST( NULL AS SIGNED ) * + col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4603
SELECT + + col2 + CAST ( NULL AS INTEGER ) * + col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - ( - col0 ) * col0 col1 FROM tab2 AS cor0
----
56
6162
6320

query I rowsort
SELECT DISTINCT - ( + 8 ) AS col0 FROM tab1 AS cor0
----
-8

query I rowsort
SELECT ALL col2 * col0 + + col2 FROM tab1 AS cor0
----
216
3705
7776

query I rowsort
SELECT ( cor0.col2 ) + + cor0.col2 AS col0 FROM tab0 AS cor0
----
164
2
66

query I rowsort
SELECT ALL - 57 * - col2 + col1 * + col2 + + ( col2 + - 99 ) FROM tab2 AS cor0
----
2304
2751
2943

query I rowsort
SELECT - col2 + - 6 AS col1 FROM tab2 AS cor0
----
-32
-33
-44

query I rowsort
SELECT DISTINCT + cor0.col1 - col0 AS col0 FROM tab0 AS cor0
----
2
62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4611
SELECT - CAST( 37 AS SIGNED ) * + col2 FROM tab2 cor0
----
-1406
-962
-999

skipif mysql # not compatible
query I rowsort label-4611
SELECT - CAST ( 37 AS INTEGER ) * + col2 FROM tab2 cor0
----
-1406
-962
-999

query I rowsort
SELECT ALL + ( + 64 ) AS col0 FROM tab2 AS cor0
----
64
64
64

query I rowsort
SELECT DISTINCT col0 + 82 * col1 AS col0 FROM tab2 AS cor0
----
1473
2549
4916

onlyif mysql # use DIV operator for integer division
query I rowsort label-4614
SELECT + cor0.col1 + ( col1 ) DIV 31 FROM tab1 AS cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-4614
SELECT + cor0.col1 + ( col1 ) / 31 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT ALL + ( - 21 ) FROM tab1 AS cor0
----
-21
-21
-21

query I rowsort
SELECT ALL - col1 + col2 * cor0.col0 AS col0 FROM tab0 AS cor0
----
-62
706
7207

query I rowsort
SELECT + col1 * 51 FROM tab0
----
4386
4641
4947

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 7 col0 FROM tab0 AS cor0
----
7
7
7

query I rowsort
SELECT - - ( - col2 ) * + 74 AS col2 FROM tab1 AS cor0
----
-3996
-4218
-7104

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4620
SELECT DISTINCT CAST( + ( col2 ) * col1 AS SIGNED ) FROM tab1
----
1248
1404
570

skipif mysql # not compatible
query I rowsort label-4620
SELECT DISTINCT CAST ( + ( col2 ) * col1 AS INTEGER ) FROM tab1
----
1248
1404
570

query I rowsort
SELECT ALL + col0 + + cor0.col2 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT DISTINCT cor0.col2 + ( col1 ) FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT + + col1 * ( + col1 ) FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT DISTINCT col2 - ( col0 * - cor0.col0 + col2 ) FROM tab2 AS cor0
----
49
6084
6241

onlyif mysql # use DIV operator for integer division
query I rowsort label-4625
SELECT + + col0 DIV - 39 FROM tab0 AS cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-4625
SELECT + + col0 / - 39 FROM tab0 AS cor0
----
-2
0
0

query I rowsort
SELECT - - col1 * 68 + + col2 AS col1 FROM tab0 AS cor0
----
5881
6270
6597

query I rowsort
SELECT ALL col0 - col2 * - col0 FROM tab2 AS cor0
----
196
2106
3081

query I rowsort
SELECT ALL - + col2 + 14 * - col0 FROM tab0 cor0
----
-1328
-369
-491

query I rowsort
SELECT DISTINCT col1 + - 73 * - col2 FROM tab0 AS cor0
----
170
2495
6077

onlyif mysql # use DIV operator for integer division
query I rowsort label-4630
SELECT ALL - col0 + + 54 DIV 28 AS col0 FROM tab1 AS cor0
----
-2
-63
-79

skipif mysql # not compatible
query I rowsort label-4630
SELECT ALL - col0 + + 54 / 28 AS col0 FROM tab1 AS cor0
----
-2
-63
-79

query I rowsort
SELECT + 4 - - col2 * - ( 74 ) AS col0 FROM tab1
----
-3992
-4214
-7100

onlyif mysql # use DIV operator for integer division
query I rowsort label-4632
SELECT col1 * col2 - 74 DIV 93 col0 FROM tab2
----
1534
646
837

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4632
SELECT col1 * col2 - 74 / 93 col0 FROM tab2
----
1534
646
837

query I rowsort
SELECT ( - tab1.col1 ) + + col2 AS col1 FROM tab1
----
28
47
83

query I rowsort
SELECT + - cor1.col0 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0

query I rowsort
SELECT ALL col1 + - 18 AS col1 FROM tab0 AS cor0
----
68
73
79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4636
SELECT DISTINCT col1 * - CAST( NULL AS SIGNED ) + - 13 * col0 col1 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4636
SELECT DISTINCT col1 * - CAST ( NULL AS INTEGER ) + - 13 * col0 col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - cor0.col0 * - col2 AS col2 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT DISTINCT cor0.col1 * col0 + + cor0.col2 AS col1 FROM tab2 AS cor0
----
1381
244
4628

query I rowsort
SELECT DISTINCT col2 + col2 * + col2 FROM tab0 AS cor0
----
1122
2
6806

query I rowsort
SELECT ALL - col0 + ( - cor0.col0 ) AS col0 FROM tab0 AS cor0
----
-178
-48
-70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * + 86 col2 FROM tab0 AS cor0
----
-2838
-7052
-86

query I rowsort
SELECT ALL col2 * - tab2.col2 + - col0 FROM tab2
----
-1523
-736
-754

query I rowsort
SELECT - cor0.col0 AS col2 FROM tab1, tab1 AS cor0 CROSS JOIN tab0
----
27 values hashing to 729c1edda9332398299f39cd174ed840

query I rowsort
SELECT ALL col0 * 39 + col0 AS col2 FROM tab2
----
280
3120
3160

onlyif mysql # use DIV operator for integer division
query I rowsort label-4645
SELECT + tab0.col2 * col1 DIV + col1 + - col1 FROM tab0
----
-53
-9
-96

skipif mysql # not compatible
query I rowsort label-4645
SELECT + tab0.col2 * col1 / + col1 + - col1 FROM tab0
----
-53
-9
-96

query I rowsort
SELECT col0 + col2 * + col1 AS col1 FROM tab1
----
1328
1407
634

query I rowsort
SELECT DISTINCT - 14 * col0 FROM tab2 AS cor0
----
-1092
-1106
-98

query I rowsort
SELECT DISTINCT - col1 + col1 * 78 - - col2 FROM tab0 AS cor0
----
6655
7089
7470

query I rowsort
SELECT ALL col0 * col1 + col2 AS col1 FROM tab2
----
1381
244
4628

query I rowsort
SELECT + col0 + + 21 FROM tab1 AS cor0
----
101
24
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 64 col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 60ab040e931c5c85db7ba19364eacc8e

onlyif mysql # use DIV operator for integer division
query I rowsort label-4652
SELECT col0 DIV - 91 col0 FROM tab0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4652
SELECT col0 / - 91 col0 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL 94 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col2 * 92 col1 FROM tab1
----
4968
5244
8832

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( ( - col2 ) ) col2 FROM tab1
----
-54
-57
-96

query I rowsort
SELECT - 75 + - col0 AS col2 FROM tab1 AS cor0
----
-139
-155
-78

query I rowsort
SELECT + + ( + col2 ) + + col1 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT + 98 * + col0 * - col1 + - ( - col2 ) AS col2 FROM tab1 AS cor0
----
-101824
-62663
-7590

query I rowsort
SELECT DISTINCT - 7 + col2 FROM tab2 AS cor0
----
19
20
31

onlyif mysql # use DIV operator for integer division
query I rowsort label-4660
SELECT - cor0.col1 DIV ( - cor0.col1 ) AS col0 FROM tab2 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4660
SELECT - cor0.col1 / ( - cor0.col1 ) AS col0 FROM tab2 cor0
----
1
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-4661
SELECT - - col0 DIV 83 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4661
SELECT - - col0 / 83 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT ALL + col1 + - 61 AS col2 FROM tab2 AS cor0
----
-2
-30
-44

query I rowsort
SELECT DISTINCT ( + cor1.col2 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
1
33
82

query I rowsort
SELECT DISTINCT + col1 + col2 * - col0 * col0 AS col1 FROM tab0 AS cor0
----
-1128
-18922
-649431

onlyif mysql # use DIV operator for integer division
query I rowsort label-4665
SELECT ALL - 45 + col0 DIV 91 + col1 FROM tab0 cor0
----
41
46
52

skipif mysql # not compatible
query I rowsort label-4665
SELECT ALL - 45 + col0 / 91 + col1 FROM tab0 cor0
----
41
46
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-4666
SELECT DISTINCT - cor0.col0 - + col0 DIV - 60 FROM tab2 AS cor0
----
-7
-77
-78

skipif mysql # not compatible
query I rowsort label-4666
SELECT DISTINCT - cor0.col0 - + col0 / - 60 FROM tab2 AS cor0
----
-7
-77
-78

query I rowsort
SELECT ALL + col1 * + col1 + col1 + col2 * - col0 FROM tab1 AS cor0
----
-3538
-7498
540

onlyif mysql # use DIV operator for integer division
query I rowsort label-4668
SELECT DISTINCT + col1 DIV + 22 + 64 AS col1 FROM tab1 AS cor0
----
64
65

skipif mysql # not compatible
query I rowsort label-4668
SELECT DISTINCT + col1 / + 22 + 64 AS col1 FROM tab1 AS cor0
----
64
65

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4669
SELECT - cor0.col1 + - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4669
SELECT - cor0.col1 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - col0 / - CAST ( - col0 AS REAL ) + cor0.col1 FROM tab0 AS cor0
----
85
90
96

query I rowsort
SELECT DISTINCT + + col1 * + col0 * - col0 + - col1 FROM tab1 AS cor0
----
-260
-40970
-83213

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4672
SELECT + col1 + CAST( col0 AS SIGNED ) * - cor0.col0 AS col0 FROM tab2 AS cor0
----
-18
-6025
-6224

skipif mysql # not compatible
query I rowsort label-4672
SELECT + col1 + CAST ( col0 AS INTEGER ) * - cor0.col0 AS col0 FROM tab2 AS cor0
----
-18
-6025
-6224

query I rowsort
SELECT DISTINCT - col0 * + 81 FROM tab0 cor0
----
-1944
-2835
-7209

query I rowsort
SELECT - + cor0.col0 * - cor0.col0 + cor0.col2 FROM tab1 cor0
----
4153
63
6496

query I rowsort
SELECT + col1 + 35 * + col1 AS col0 FROM tab0 AS cor0
----
3096
3276
3492

onlyif mysql # use DIV operator for integer division
query I rowsort label-4676
SELECT + col1 DIV col1 - col1 FROM tab0 AS cor0
----
-85
-90
-96

skipif mysql # not compatible
query I rowsort label-4676
SELECT + col1 / col1 - col1 FROM tab0 AS cor0
----
-85
-90
-96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4677
SELECT - - col0 * CAST( NULL AS SIGNED ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4677
SELECT - - col0 * CAST ( NULL AS INTEGER ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 32 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
32

query I rowsort
SELECT + col0 + 87 FROM tab1 cor0
----
151
167
90

query I rowsort
SELECT - 13 * - col2 + col0 * - col1 AS col2 FROM tab0 AS cor0
----
-1635
-3382
-7033

query I rowsort
SELECT + - ( + 8 ) * col2 + col2 AS col1 FROM tab2 AS cor0
----
-182
-189
-266

query I rowsort
SELECT DISTINCT - ( - col1 ) + + col1 AS col1 FROM tab1 AS cor0
----
20
26
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 - - 15 col2 FROM tab0 AS cor0
----
16
48
97

query I rowsort
SELECT - + col1 * 66 - - col1 * 85 FROM tab0 AS cor0
----
1634
1729
1843

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col1 col1 FROM tab0, tab1 AS cor0
----
-10
-13
-26

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4686
SELECT - CAST( 93 AS SIGNED ) FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to ea79c61f7a02d25805171f5e85229fba

skipif mysql # not compatible
query I rowsort label-4686
SELECT - CAST ( 93 AS INTEGER ) FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to ea79c61f7a02d25805171f5e85229fba

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 8 + - col0 col0 FROM tab1 AS cor0
----
-11
-72
-88

query I rowsort
SELECT + - cor0.col2 * col2 + 64 * col0 AS col1 FROM tab1 AS cor0
----
-2724
-4096
847

query I rowsort
SELECT + 4 FROM tab0, tab2 AS cor0
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b

query I rowsort
SELECT - ( 3 ) AS col0 FROM tab1
----
-3
-3
-3

query I rowsort
SELECT DISTINCT + col0 + cor0.col0 + col1 AS col2 FROM tab0 AS cor0
----
134
167
269

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4692
SELECT ALL col0 * col2 * CAST( NULL AS SIGNED ) - cor0.col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4692
SELECT ALL col0 * col2 * CAST ( NULL AS INTEGER ) - cor0.col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + ( col1 ) - col2 AS col1 FROM tab0
----
53
9
96

query I rowsort
SELECT col0 * + col2 + + col1 FROM tab1
----
188
3658
7693

query I rowsort
SELECT - col2 * - col1 + 23 * + col0 AS col0 FROM tab1
----
1473
2042
3088

query I rowsort
SELECT + 55 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 832128adb1ddc65c3105e29cc2c8b3a3

query I rowsort
SELECT 6 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to f1e8f0199f3714ee8fcc24ce0cc3ea04

query I rowsort
SELECT ALL + tab1.col2 * + col2 * 21 + + col2 * tab1.col1 AS col1 FROM tab1
----
194784
62640
68799

onlyif mysql # use DIV operator for integer division
query I rowsort label-4699
SELECT ALL + - col1 + cor0.col0 DIV cor0.col0 FROM tab1 AS cor0
----
-12
-25
-9

skipif mysql # not compatible
query I rowsort label-4699
SELECT ALL + - col1 + cor0.col0 / cor0.col0 FROM tab1 AS cor0
----
-12
-25
-9

query I rowsort
SELECT DISTINCT - 6 + + cor0.col0 * - col2 AS col0 FROM tab0 AS cor0
----
-41
-7304
-798

query I rowsort
SELECT DISTINCT - + cor0.col1 * + cor0.col2 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT DISTINCT - cor0.col2 * col0 * col2 + + 94 FROM tab1 AS cor0
----
-207842
-737186
-8654

query I rowsort
SELECT + col2 + col1 * col2 + 34 * - col0 FROM tab0 AS cor0
----
-1092
2055
4518

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col1 * - col2 col1 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT col2 * ( + col2 ) * + tab1.col2 + + 22 * col1 AS col1 FROM tab1
----
158036
185413
885022

query I rowsort
SELECT col2 + 43 FROM tab0
----
125
44
76

query I rowsort
SELECT DISTINCT - col2 + 37 * col1 + col0 AS col0 FROM tab1
----
377
465
911

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4708
SELECT DISTINCT + col2 * 91 * ( - col0 ) + - CAST( - 86 AS SIGNED ) * col0 + - col1 * - col2 AS col1 FROM tab2
----
-15760
-176306
-265742

skipif mysql # not compatible
query I rowsort label-4708
SELECT DISTINCT + col2 * 91 * ( - col0 ) + - CAST ( - 86 AS INTEGER ) * col0 + - col1 * - col2 AS col1 FROM tab2
----
-15760
-176306
-265742

query I rowsort
SELECT ALL - 8 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 47f43f23dcd23959d97d8e3b0aab692e

query I rowsort
SELECT - col0 * col0 + + col2 * col2 FROM tab1 AS cor0
----
-847
2816
2907

query I rowsort
SELECT + col0 * + col2 * - cor0.col0 + - col1 AS col0 FROM tab0 AS cor0
----
-1322
-19094
-649613

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col2 + ( - col1 ) * col2 col1 FROM tab1 cor0
----
-1242
3078
6432

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + col2 ) col2 FROM tab0 AS cor0
----
-1
-33
-82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4714
SELECT + - CAST( NULL AS SIGNED ) + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4714
SELECT + - CAST ( NULL AS INTEGER ) + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - - ( - ( - col1 ) ) FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT DISTINCT 10 * + col2 + + col2 * - 55 AS col1 FROM tab2 AS cor0
----
-1170
-1215
-1710

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * + cor0.col1 col0 FROM tab2 AS cor0
----
-1343
-217
-4602

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4718
SELECT ALL + - CAST( NULL AS SIGNED ) * col2 - col0 * + cor0.col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4718
SELECT ALL + - CAST ( NULL AS INTEGER ) * col2 - col0 * + cor0.col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4719
SELECT DISTINCT - 40 DIV 43 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4719
SELECT DISTINCT - 40 / 43 FROM tab2 AS cor0
----
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4720
SELECT + ( - cor0.col0 ) * col2 + CAST( - col2 + col2 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-162
-3648
-7680

skipif mysql # not compatible
query I rowsort label-4720
SELECT + ( - cor0.col0 ) * col2 + CAST ( - col2 + col2 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-162
-3648
-7680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4721
SELECT DISTINCT - - CAST( NULL AS SIGNED ) col0 FROM tab0 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4721
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) col0 FROM tab0 cor0
----
NULL

query I rowsort
SELECT ALL 63 * ( col2 ) FROM tab1 AS cor0
----
3402
3591
6048

query I rowsort
SELECT + - 93 * 81 AS col0 FROM tab2 cor0
----
-7533
-7533
-7533

query I rowsort
SELECT + 63 + col1 * - col0 FROM tab2 AS cor0
----
-1280
-154
-4539

query I rowsort
SELECT + 29 * - cor0.col0 * + col2 FROM tab0 AS cor0
----
-1015
-211642
-22968

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 + - col1 * cor0.col2 col1 FROM tab2 AS cor0
----
-1456
-567
-830

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 63 col0 FROM tab0 AS cor0
----
-63

query I rowsort
SELECT + + col1 * + col0 * + col1 AS col1 FROM tab2 AS cor0
----
22831
271518
6727

query I rowsort
SELECT - ( col0 ) + + tab1.col1 FROM tab1
----
-54
-67
23

query I rowsort
SELECT col2 * - ( + col1 ) + col1 FROM tab2
----
-1475
-629
-806

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + + col0 col2 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT DISTINCT + col0 + ( col2 ) + col2 AS col0 FROM tab1 AS cor0
----
111
178
272

query I rowsort
SELECT ALL - - col0 * + ( cor0.col2 ) AS col1 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT DISTINCT col0 * - col2 + col1 FROM tab2 AS cor0
----
-158
-1969
-2985

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + cor0.col2 * col2 col0 FROM tab1 AS cor0
----
2919
3313
9296

query I rowsort
SELECT - + col2 * 18 FROM tab0 AS cor0
----
-1476
-18
-594

query I rowsort
SELECT ALL - - col0 * + col1 + 25 + + cor0.col0 AS col1 FROM tab2 AS cor0
----
1447
249
4705

query I rowsort
SELECT col0 * tab2.col2 + + 32 FROM tab2
----
2060
221
3034

query I rowsort
SELECT DISTINCT col1 + - cor0.col0 * + col0 * + col0 AS col1 FROM tab2 AS cor0
----
-312
-474493
-493022

query I rowsort
SELECT + col0 + - cor0.col2 * 13 FROM tab0 AS cor0
----
-405
-977
22

onlyif mysql # use DIV operator for integer division
query I rowsort label-4741
SELECT col0 + col0 DIV + ( col0 ) - - col0 * + col1 FROM tab2
----
1423
225
4681

skipif mysql # not compatible
query I rowsort label-4741
SELECT col0 + col0 / + ( col0 ) - - col0 * + col1 FROM tab2
----
1423
225
4681

query I rowsort
SELECT 75 - 63 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to d4f5a8e032294c3b9342821617800972

onlyif mysql # use DIV operator for integer division
query I rowsort label-4743
SELECT + col0 + col2 DIV col0 AS col1 FROM tab2 AS cor0
----
10
78
79

skipif mysql # not compatible
query I rowsort label-4743
SELECT + col0 + col2 / col0 AS col1 FROM tab2 AS cor0
----
10
78
79

query I rowsort
SELECT ALL + col0 + - 79 AS col0 FROM tab1 AS cor0
----
-15
-76
1

query I rowsort
SELECT - - col0 * + 15 + + cor0.col2 + + cor0.col2 FROM tab1 cor0
----
1074
1392
153

query I rowsort
SELECT ALL - col1 + - col1 * 17 AS col1 FROM tab0 AS cor0
----
-1548
-1638
-1746

query I rowsort
SELECT ALL - col0 + + col0 * tab2.col1 + col1 AS col0 FROM tab2
----
1281
241
4583

query I rowsort
SELECT ALL col2 * col0 + tab0.col2 AS col1 FROM tab0
----
36
7380
825

query I rowsort
SELECT + - col0 - col0 * - col1 FROM tab1 AS cor0
----
576
75
960

query I rowsort
SELECT - 4 * - col1 FROM tab2 cor0
----
124
236
68

query I rowsort
SELECT DISTINCT - + 20 * + col0 AS col1 FROM tab1 AS cor0
----
-1280
-1600
-60

query I rowsort
SELECT ALL + 53 + - cor0.col0 * - col1 FROM tab1 AS cor0
----
1093
131
693

query I rowsort
SELECT - - 4 + + cor0.col1 FROM tab0 AS cor0
----
101
90
95

onlyif mysql # use DIV operator for integer division
query I rowsort label-4754
SELECT ALL + 56 DIV + cor0.col1 AS col2 FROM tab2 AS cor0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-4754
SELECT ALL + 56 / + cor0.col1 AS col2 FROM tab2 AS cor0
----
0
1
3

query I rowsort
SELECT - col0 - + cor0.col0 * col0 FROM tab2 AS cor0
----
-56
-6162
-6320

onlyif mysql # use DIV operator for integer division
query I rowsort label-4756
SELECT ALL - ( + col2 ) DIV + col0 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4756
SELECT ALL - ( + col2 ) / + col0 FROM tab0
----
-1
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4757
SELECT ALL + - col0 * - cor0.col0 + 99 DIV col1 AS col1 FROM tab1 AS cor0
----
12
4105
6407

skipif mysql # not compatible
query I rowsort label-4757
SELECT ALL + - col0 * - cor0.col0 + 99 / col1 AS col1 FROM tab1 AS cor0
----
12
4105
6407

query I rowsort
SELECT col2 + + col0 * col1 + - col2 AS col0 FROM tab0 AS cor0
----
2064
3395
8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-4759
SELECT + col2 DIV + col0 + col0 * + col1 * + col2 FROM tab1 cor0
----
36480
4230
99841

skipif mysql # not compatible
query I rowsort label-4759
SELECT + col2 / + col0 + col0 * + col1 * + col2 FROM tab1 cor0
----
36480
4230
99841

onlyif mysql # use DIV operator for integer division
query I rowsort label-4760
SELECT DISTINCT + - cor1.col0 DIV 25 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
-2
-3
0

skipif mysql # not compatible
query I rowsort label-4760
SELECT DISTINCT + - cor1.col0 / 25 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
-2
-3
0

query I rowsort
SELECT DISTINCT - col1 * 95 * ( + cor0.col0 ) FROM tab2 AS cor0
----
-127585
-20615
-437190

query I rowsort
SELECT - 63 * - col0 FROM tab0 AS cor0
----
1512
2205
5607

query I rowsort
SELECT DISTINCT + - col0 + col2 * + col0 + - col2 * col1 AS col0 FROM tab1 cor0
----
-1245
3014
6352

query I rowsort
SELECT ALL - cor1.col0 + + 50 * - 6 FROM tab0, tab0 cor0, tab2 AS cor1
----
27 values hashing to a3ae1547f581a546af656cae560da456

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4765
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + 43 * + col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4765
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + 43 * + col0 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 51 col1 FROM tab1 cor0
----
-51
-51
-51

query I rowsort
SELECT DISTINCT + 7 + col0 * - col1 FROM tab0 AS cor0
----
-2057
-3388
-8092

query I rowsort
SELECT 25 + col2 * tab2.col2 AS col0 FROM tab2
----
1469
701
754

query I rowsort
SELECT ALL tab2.col2 * + 66 FROM tab2
----
1716
1782
2508

query I rowsort
SELECT + - 10 FROM tab2 cor0
----
-10
-10
-10

query I rowsort
SELECT + ( col2 ) * - col2 AS col2 FROM tab0 AS cor0
----
-1
-1089
-6724

query I rowsort
SELECT + 30 + col1 * - col1 FROM tab0 AS cor0
----
-7366
-8251
-9379

query I rowsort
SELECT - 5 * - cor0.col2 AS col1 FROM tab1 AS cor0
----
270
285
480

query I rowsort
SELECT DISTINCT - col1 * - col0 + col1 AS col1 FROM tab0 cor0
----
2150
3492
8190

query I rowsort
SELECT - - 44 * col1 FROM tab0 AS cor0
----
3784
4004
4268

query I rowsort
SELECT ALL + - cor0.col1 * - col2 + col0 - - col2 * - col0 AS col0 FROM tab1 cor0
----
-3014
-6352
1245

query I rowsort
SELECT ALL col2 * - col0 * + col2 AS col1 FROM tab2
----
-114076
-5103
-52728

onlyif mysql # use DIV operator for integer division
query I rowsort label-4778
SELECT - col0 DIV 47 + ( col1 ) * + col1 + - col1 FROM tab0 AS cor0
----
7310
8189
9312

skipif mysql # not compatible
query I rowsort label-4778
SELECT - col0 / 47 + ( col1 ) * + col1 + - col1 FROM tab0 AS cor0
----
7310
8189
9312

query I rowsort
SELECT col0 + col2 + 36 AS col1 FROM tab2 AS cor0
----
140
153
70

query I rowsort
SELECT - col0 + - 34 AS col2 FROM tab1 AS cor0
----
-114
-37
-98

query I rowsort
SELECT + col1 * - col2 + col0 + col2 AS col1 FROM tab2 AS cor0
----
-1430
-529
-803

query I rowsort
SELECT - 59 * - col2 * - col0 FROM tab2 AS cor0
----
-11151
-119652
-177118

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col0 * tab2.col1 col2 FROM tab2
----
106097
1519
358956

query I rowsort
SELECT DISTINCT + col2 * + col0 + + col2 AS col1 FROM tab2 cor0
----
2054
216
3040

query I rowsort
SELECT - + cor0.col0 * + ( + col1 ) FROM tab2 AS cor0
----
-1343
-217
-4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-4786
SELECT 93 DIV + 63 FROM tab1, tab0 AS cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

skipif mysql # not compatible
query I rowsort label-4786
SELECT 93 / + 63 FROM tab1, tab0 AS cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

query I rowsort
SELECT + col0 + ( - 48 + + col2 ) AS col1 FROM tab2
----
-14
56
69

query I rowsort
SELECT - col1 - 61 FROM tab1
----
-71
-74
-87

query I rowsort
SELECT DISTINCT - - cor0.col2 + + cor0.col0 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT - 3 * - col1 + 32 * col2 * col0 FROM tab1 AS cor0
----
116766
245799
5262

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4791
SELECT ALL - col0 + - col1 + CAST( NULL AS DECIMAL ) * - col1 * col1 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4791
SELECT ALL - col0 + - col1 + CAST ( NULL AS REAL ) * - col1 * col1 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT tab1.col0 * + 19 FROM tab1
----
1216
1520
57

query I rowsort
SELECT ( tab0.col1 + - col2 ) AS col2 FROM tab0
----
53
9
96

query I rowsort
SELECT DISTINCT - ( col0 + - col0 ) AS col2 FROM tab2
----
0

query I rowsort
SELECT ( - 17 ) * - col1 FROM tab0
----
1462
1547
1649

query I rowsort
SELECT 60 FROM tab0, tab0 AS cor0, tab1 AS cor1, tab2 AS cor2
----
81 values hashing to 1ef27a1d2784b3ab642571630db70349

query I rowsort
SELECT ALL 49 - col0 AS col2 FROM tab1
----
-15
-31
46

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4798
SELECT ALL + CAST( NULL AS SIGNED ) - col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4798
SELECT ALL + CAST ( NULL AS INTEGER ) - col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 - - col0 * - col0 * col2 FROM tab0
----
-1224
-18975
-649440

query I rowsort
SELECT col1 * + col0 + 48 FROM tab0 AS cor0
----
2112
3443
8147

onlyif mysql # use DIV operator for integer division
query I rowsort label-4801
SELECT + col0 DIV + col0 + col1 FROM tab1 AS cor0
----
11
14
27

skipif mysql # not compatible
query I rowsort label-4801
SELECT + col0 / + col0 + col1 FROM tab1 AS cor0
----
11
14
27

query I rowsort
SELECT ALL - 1 + col2 AS col0 FROM tab1 AS cor0
----
53
56
95

query I rowsort
SELECT ALL 38 - + col0 AS col1 FROM tab0 AS cor0
----
-51
14
3

onlyif mysql # use DIV operator for integer division
query I rowsort label-4804
SELECT ALL - - col1 + + col1 * cor0.col0 DIV - cor0.col0 AS col2 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4804
SELECT ALL - - col1 + + col1 * cor0.col0 / - cor0.col0 AS col2 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT ALL - cor0.col0 * - col1 * - col1 + ( col0 ) AS col0 FROM tab1 AS cor0
----
-13440
-2025
-6336

query I rowsort
SELECT col0 * - col2 + - cor0.col2 FROM tab2 AS cor0
----
-2054
-216
-3040

query I rowsort
SELECT - 92 + col2 AS col1 FROM tab0 cor0
----
-10
-59
-91

query I rowsort
SELECT DISTINCT + ( - cor0.col2 ) * col2 + + col0 * col0 FROM tab0 AS cor0
----
-513
1197
1224

onlyif mysql # use DIV operator for integer division
query I rowsort label-4809
SELECT DISTINCT - col0 + col1 DIV col1 FROM tab1 cor0
----
-2
-63
-79

skipif mysql # not compatible
query I rowsort label-4809
SELECT DISTINCT - col0 + col1 / col1 FROM tab1 cor0
----
-2
-63
-79

query I rowsort
SELECT col2 * - col2 + - col2 * - 57 * - col0 FROM tab0
----
-1996
-422710
-46233

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - col2 + col1 col2 FROM tab2
----
-1427
-617
-698

query I rowsort
SELECT DISTINCT - 63 + col1 AS col1 FROM tab2
----
-32
-4
-46

query I rowsort
SELECT ALL tab2.col0 + col0 AS col0 FROM tab2
----
14
156
158

query I rowsort
SELECT DISTINCT - col1 + tab0.col0 + - 78 FROM tab0
----
-140
-80

onlyif mysql # use DIV operator for integer division
query I rowsort label-4815
SELECT - 25 DIV 10 AS col1 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 20c9213316527d507e26425041e08387

skipif mysql # not compatible
query I rowsort label-4815
SELECT - 25 / 10 AS col1 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 20c9213316527d507e26425041e08387

query I rowsort
SELECT ALL + 69 + + tab0.col1 * + col1 AS col2 FROM tab0
----
7465
8350
9478

query I rowsort
SELECT - + 52 * - tab0.col1 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to b5fe9389dfaa2a94e671cb4bd04dd8f0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 66 col2 FROM tab0, tab2 cor0, tab1 AS cor1
----
27 values hashing to cd4a3594ee8b45223ebf9f25840cd112

query I rowsort
SELECT + ( tab0.col2 ) + col0 * + col2 FROM tab0
----
36
7380
825

query I rowsort
SELECT DISTINCT cor0.col0 * - 72 AS col1 FROM tab0, tab1 AS cor0
----
-216
-4608
-5760

query I rowsort
SELECT ALL + + 55 AS col2 FROM tab1 AS cor0
----
55
55
55

query I rowsort
SELECT col2 + col0 * col1 + col0 AS col1 FROM tab0 AS cor0
----
2121
3431
8270

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 DISTINCT col1 - - cor0.col0 AS col0 FROM tab2 AS cor0
----
137
38
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-4825
SELECT + col2 DIV col0 + col1 FROM tab2 AS cor0
----
17
34
59

skipif mysql # not compatible
query I rowsort label-4825
SELECT + col2 / col0 + col1 FROM tab2 AS cor0
----
17
34
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-4826
SELECT ALL cor0.col0 + col1 * col0 DIV cor0.col0 AS col0 FROM tab0 AS cor0
----
110
132
180

skipif mysql # not compatible
query I rowsort label-4826
SELECT ALL cor0.col0 + col1 * col0 / cor0.col0 AS col0 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT - - col2 * cor0.col1 AS col0 FROM tab1 cor0
----
1248
1404
570

query I rowsort
SELECT ALL + col1 - ( + col2 ) * col0 FROM tab0 cor0
----
-706
-7207
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * - col2 * 4 + col1 col2 FROM tab1 AS cor0
----
-2270
-4979
-5590

onlyif mysql # use DIV operator for integer division
query I rowsort label-4830
SELECT - col2 + col0 DIV + cor0.col1 AS col0 FROM tab0 AS cor0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-4830
SELECT - col2 + col0 / + cor0.col1 AS col0 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT ALL col2 * + col0 * + col0 FROM tab0 AS cor0
----
1225
19008
649522

query I rowsort
SELECT ALL 32 + col2 * - col2 AS col1 FROM tab1
----
-2884
-3217
-9184

query I rowsort
SELECT + col1 * - col2 + + col1 * + 57 FROM tab2
----
1829
323
930

query I rowsort
SELECT 8 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 33069adc3c1142d31511ec88fcfa40af

query I rowsort
SELECT DISTINCT cor0.col0 + cor0.col1 AS col0 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT col0 + + ( col1 + col1 * col0 ) FROM tab0 AS cor0
----
2174
3527
8279

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4837
SELECT ALL - col1 * - CAST( col0 + col1 * - col0 AS SIGNED ) col0 FROM tab2 AS cor0
----
-21488
-266916
-6510

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4837
SELECT ALL - col1 * - CAST ( col0 + col1 * - col0 AS INTEGER ) col0 FROM tab2 AS cor0
----
-21488
-266916
-6510

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4838
SELECT ALL + CAST( + 79 AS SIGNED ) * col0 * - 36 col0 FROM tab0 AS cor0
----
-253116
-68256
-99540

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4838
SELECT ALL + CAST ( + 79 AS INTEGER ) * col0 * - 36 col0 FROM tab0 AS cor0
----
-253116
-68256
-99540

query I rowsort
SELECT + col0 + + ( col2 ) FROM tab0 AS cor0
----
171
36
57

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4840
SELECT ALL + CAST( col1 AS SIGNED ) + col0 FROM tab2 cor0
----
137
38
96

skipif mysql # not compatible
query I rowsort label-4840
SELECT ALL + CAST ( col1 AS INTEGER ) + col0 FROM tab2 cor0
----
137
38
96

query I rowsort
SELECT + 56 * + col1 AS col1 FROM tab0 AS cor0
----
4816
5096
5432

onlyif mysql # use DIV operator for integer division
query I rowsort label-4842
SELECT DISTINCT - + col2 DIV + 85 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4842
SELECT DISTINCT - + col2 / + 85 FROM tab2 AS cor0
----
0

query I rowsort
SELECT 20 + col0 * col0 * - ( col2 ) - col1 AS col0 FROM tab2 cor0
----
-1334
-158223
-237155

query I rowsort
SELECT + - col1 * 30 * cor0.col0 FROM tab1 AS cor0
----
-19200
-2340
-31200

query I rowsort
SELECT DISTINCT ( cor0.col1 ) + + col0 FROM tab0 cor0
----
110
132
180

query I rowsort
SELECT DISTINCT - ( + 9 ) FROM tab2 AS cor0
----
-9

query I rowsort
SELECT DISTINCT 51 + + 60 * - col0 * - col0 FROM tab0 cor0
----
34611
475311
73551

onlyif mysql # use DIV operator for integer division
query I rowsort label-4848
SELECT DISTINCT + col2 DIV - CAST( 71 * - col0 AS SIGNED ) AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4848
SELECT DISTINCT + col2 / - CAST ( 71 * - col0 AS INTEGER ) AS col2 FROM tab0
----
0

query I rowsort
SELECT ALL - + 71 FROM tab0 cor0
----
-71
-71
-71

query I rowsort
SELECT ALL - col0 + col1 * + col0 FROM tab2 AS cor0
----
1264
210
4524

query I rowsort
SELECT - cor0.col0 * ( col0 ) FROM tab0 AS cor0
----
-1225
-576
-7921

query I rowsort
SELECT DISTINCT + + 68 + - col0 FROM tab2 AS cor0
----
-10
-11
61

query I rowsort
SELECT DISTINCT + 39 * ( - col1 ) FROM tab2 AS cor0
----
-1209
-2301
-663

onlyif mysql # use DIV operator for integer division
query I rowsort label-4854
SELECT ALL + - 95 DIV 16 AS col1 FROM tab1 AS cor0
----
-5
-5
-5

skipif mysql # not compatible
query I rowsort label-4854
SELECT ALL + - 95 / 16 AS col1 FROM tab1 AS cor0
----
-5
-5
-5

query I rowsort
SELECT DISTINCT - 42 * col0 AS col0 FROM tab1 AS cor0
----
-126
-2688
-3360

query I rowsort
SELECT + 75 * - col2 + - 62 FROM tab2 AS cor0
----
-2012
-2087
-2912

query I rowsort
SELECT + col1 * - ( - col1 * + col1 ) - + col2 AS col0 FROM tab1
----
17522
2101
943

query I rowsort
SELECT DISTINCT 8 - col2 AS col2 FROM tab0
----
-25
-74
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-4859
SELECT + - col1 DIV + col1 - col1 * 25 FROM tab1 AS cor0
----
-251
-326
-651

skipif mysql # not compatible
query I rowsort label-4859
SELECT + - col1 / + col1 - col1 * 25 FROM tab1 AS cor0
----
-251
-326
-651

query I rowsort
SELECT ALL - ( + 62 ) AS col0 FROM tab1, tab2 cor0, tab1 cor1
----
27 values hashing to d2579f9395350eda865ff3a2d38a74f6

onlyif mysql # use DIV operator for integer division
query I rowsort label-4861
SELECT + 51 * + cor0.col0 + - cor0.col1 DIV 31 FROM tab1, tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
27 values hashing to 658367bd29f67b2fd3e3b321cdbaac22

skipif mysql # not compatible
query I rowsort label-4861
SELECT + 51 * + cor0.col0 + - cor0.col1 / 31 FROM tab1, tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
27 values hashing to 658367bd29f67b2fd3e3b321cdbaac22

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4862
SELECT DISTINCT - CAST( NULL AS SIGNED ) + col2 * + col1 * 18 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4862
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + col2 * + col1 * 18 FROM tab0 AS cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4863
SELECT DISTINCT + CAST( col0 AS SIGNED ) * tab2.col2 AS col2 FROM tab2
----
189
2028
3002

skipif mysql # not compatible
query I rowsort label-4863
SELECT DISTINCT + CAST ( col0 AS INTEGER ) * tab2.col2 AS col2 FROM tab2
----
189
2028
3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 19 col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11

query I rowsort
SELECT + col2 * + col1 + + col0 FROM tab2 AS cor0
----
1612
725
844

query I rowsort
SELECT DISTINCT - - ( - ( - col2 ) ) FROM tab1 cor0
----
54
57
96

query I rowsort
SELECT DISTINCT ( - cor0.col2 ) * col0 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT + - ( + col1 ) * col1 FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT + 21 + - cor0.col2 FROM tab2 AS cor0
----
-17
-5
-6

query I rowsort
SELECT + col1 + + col1 + col1 AS col2 FROM tab0 cor0
----
258
273
291

query I rowsort
SELECT ALL + col1 * - ( + 88 ) * - col2 FROM tab0 AS cor0
----
249744
656656
8536

query I rowsort
SELECT DISTINCT col2 * 87 AS col0 FROM tab0 AS cor0
----
2871
7134
87

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 DISTINCT - col2 * 38 AS col2 FROM tab0 AS cor0
----
-1254
-3116
-38

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4875
SELECT col2 / - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4875
SELECT col2 / - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col2 * - ( col2 ) AS col1 FROM tab0 cor0
----
-1
-1089
-6724

query I rowsort
SELECT ALL + 59 + + tab1.col0 AS col2 FROM tab1
----
123
139
62

query I rowsort
SELECT col0 * 27 + 95 FROM tab2 AS cor0
----
2201
2228
284

query I rowsort
SELECT cor0.col0 + col0 + - 74 * col1 FROM tab2 AS cor0
----
-1100
-2280
-4210

query I rowsort
SELECT 24 * col2 AS col0 FROM tab0 AS cor0
----
1968
24
792

query I rowsort
SELECT DISTINCT - 38 * - col2 FROM tab0 AS cor0
----
1254
3116
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-4882
SELECT DISTINCT 16 + 30 DIV + col0 AS col0 FROM tab2 AS cor0
----
16
20

skipif mysql # not compatible
query I rowsort label-4882
SELECT DISTINCT 16 + 30 / + col0 AS col0 FROM tab2 AS cor0
----
16
20

query I rowsort
SELECT ALL 77 * + 14 + + col2 AS col2 FROM tab2 AS cor0
----
1104
1105
1116

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 82 * cor0.col0 col1 FROM tab0 AS cor0
----
1968
2870
7298

query I rowsort
SELECT ALL + - 43 + 88 FROM tab1 AS cor0
----
45
45
45

query I rowsort
SELECT col1 * col1 + + col1 AS col1 FROM tab0 AS cor0
----
7482
8372
9506

query I rowsort
SELECT + cor0.col0 + + 41 FROM tab0 AS cor0
----
130
65
76

query I rowsort
SELECT DISTINCT cor0.col2 + - 46 AS col0 FROM tab2, tab0, tab1 AS cor0
----
11
50
8

query I rowsort
SELECT ALL 10 + + tab1.col2 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to f61e00821209332259822747e9f86b3b

query I rowsort
SELECT - 66 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to a408108d423d7784b7d610cb779e515a

query I rowsort
SELECT DISTINCT 81 FROM tab0, tab2 AS cor0
----
81

query I rowsort
SELECT DISTINCT col0 * ( 12 ) AS col1 FROM tab0
----
1068
288
420

query I rowsort
SELECT tab2.col2 * col2 * col2 AS col0 FROM tab2
----
17576
19683
54872

query I rowsort
SELECT + col1 * ( + 67 * - col0 ) FROM tab0
----
-138288
-227465
-542633

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4895
SELECT + CAST( NULL AS SIGNED ) * - col2 * cor0.col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4895
SELECT + CAST ( NULL AS INTEGER ) * - col2 * cor0.col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + col0 + col2 col1 FROM tab1
----
131
189
83

query I rowsort
SELECT cor0.col1 + 91 FROM tab0, tab0 AS cor0
----
9 values hashing to eb9deaabaf40ef0d84f95958c4266091

onlyif mysql # use DIV operator for integer division
query I rowsort label-4898
SELECT DISTINCT - col1 * 28 DIV - 5 + cor0.col2 FROM tab1 AS cor0
----
113
168
199

skipif mysql # not compatible
query I rowsort label-4898
SELECT DISTINCT - col1 * 28 / - 5 + cor0.col2 FROM tab1 AS cor0
----
113
168
199

query I rowsort
SELECT ALL 83 * - col2 + col1 AS col2 FROM tab1 AS cor0
----
-4456
-4721
-7955

query I rowsort
SELECT DISTINCT - col2 - + col2 * - 27 FROM tab2
----
676
702
988

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4901
SELECT - col0 * + CAST( - col2 AS SIGNED ) * + col2 - ( col0 ) * cor0.col2 col2 FROM tab2 AS cor0
----
111074
4914
50700

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4901
SELECT - col0 * + CAST ( - col2 AS INTEGER ) * + col2 - ( col0 ) * cor0.col2 col2 FROM tab2 AS cor0
----
111074
4914
50700

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + col1 col0 FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT - col1 - col2 * - cor0.col1 AS col0 FROM tab1 cor0
----
1235
1378
560

query I rowsort
SELECT + col2 + 84 AS col1 FROM tab2 cor0
----
110
111
122

query I rowsort
SELECT + + cor0.col1 + col1 + - col0 FROM tab2 AS cor0
----
-45
40
55

query I rowsort
SELECT + col2 * cor0.col2 + 51 AS col1 FROM tab1 AS cor0
----
2967
3300
9267

onlyif mysql # use DIV operator for integer division
query I rowsort label-4907
SELECT col2 DIV col1 + col1 * - 5 + col0 DIV + col1 FROM tab2 AS cor0
----
-155
-294
-79

skipif mysql # not compatible
query I rowsort label-4907
SELECT col2 / col1 + col1 * - 5 + col0 / + col1 FROM tab2 AS cor0
----
-155
-294
-79

query I rowsort
SELECT 49 * - col1 AS col2 FROM tab0 AS cor0
----
-4214
-4459
-4753

query I rowsort
SELECT DISTINCT + + 75 * col0 FROM tab0 cor0
----
1800
2625
6675

query I rowsort
SELECT + 90 + col2 * - ( col0 * + col0 ) FROM tab2 AS cor0
----
-1233
-158094
-237068

onlyif mysql # use DIV operator for integer division
query I rowsort label-4911
SELECT DISTINCT col2 + - col1 DIV + col1 FROM tab1 AS cor0
----
53
56
95

skipif mysql # not compatible
query I rowsort label-4911
SELECT DISTINCT col2 + - col1 / + col1 FROM tab1 AS cor0
----
53
56
95

query I rowsort
SELECT + 71 * cor0.col2 + - col1 AS col1 FROM tab0 AS cor0
----
-26
2257
5731

query I rowsort
SELECT DISTINCT 49 * + col2 FROM tab0 AS cor0
----
1617
4018
49

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4914
SELECT ALL + col2 + + col1 + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4914
SELECT ALL + col2 + + col1 + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT cor0.col0 * col1 + - col1 FROM tab2 cor0
----
1326
186
4543

onlyif mysql # use DIV operator for integer division
query I rowsort label-4916
SELECT + col0 DIV col2 + - col2 * + col0 FROM tab0 AS cor0
----
-7297
-792
0

skipif mysql # not compatible
query I rowsort label-4916
SELECT + col0 / col2 + - col2 * + col0 FROM tab0 AS cor0
----
-7297
-792
0

query I rowsort
SELECT ALL + col0 * - col2 + 57 FROM tab2 AS cor0
----
-132
-1971
-2945

query I rowsort
SELECT ALL + col1 + - ( col2 ) AS col2 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT + col1 * 42 * col1 FROM tab1 AS cor0
----
28392
4200
7098

query I rowsort
SELECT DISTINCT - col2 + 4 FROM tab1 AS cor0
----
-50
-53
-92

onlyif mysql # use DIV operator for integer division
query I rowsort label-4921
SELECT DISTINCT + 96 + col0 DIV + col2 AS col2 FROM tab0
----
131
96
97

skipif mysql # not compatible
query I rowsort label-4921
SELECT DISTINCT + 96 + col0 / + col2 AS col2 FROM tab0
----
131
96
97

query I rowsort
SELECT col2 * - col0 - + col0 AS col1 FROM tab1
----
-165
-3712
-7760

query I rowsort
SELECT DISTINCT col2 + - 11 * + col0 FROM tab0 AS cor0
----
-231
-384
-897

query I rowsort
SELECT ALL + 39 * col0 FROM tab0 AS cor0
----
1365
3471
936

query I rowsort
SELECT + col2 - col0 * col2 AS col2 FROM tab2 AS cor0
----
-162
-2002
-2964

onlyif mysql # use DIV operator for integer division
query I rowsort label-4926
SELECT - 60 + - 15 DIV col2 FROM tab0 AS cor0
----
-60
-60
-75

skipif mysql # not compatible
query I rowsort label-4926
SELECT - 60 + - 15 / col2 FROM tab0 AS cor0
----
-60
-60
-75

query I rowsort
SELECT DISTINCT - 60 * 93 + - col0 AS col2 FROM tab0 AS cor0
----
-5604
-5615
-5669

query I rowsort
SELECT 9 - col1 AS col1 FROM tab0 AS cor0
----
-77
-82
-88

query I rowsort
SELECT ALL - ( col2 ) * - col1 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT DISTINCT + ( - cor0.col0 ) FROM tab0, tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT + - ( + cor0.col1 ) * + cor0.col1 * + col2 AS col2 FROM tab0 AS cor0
----
-244068
-679042
-9409

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4932
SELECT ALL + CAST( NULL AS SIGNED ) * col0 - col2 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4932
SELECT ALL + CAST ( NULL AS INTEGER ) * col0 - col2 AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + + 15 AS col1 FROM tab1, tab1 cor0, tab0, tab1 AS cor1
----
81 values hashing to 97c4e033347d2076218e240ed49af0a7

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab2 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab1 AS cor2
----
3645 values hashing to a87c024a0045fd44371c9b28640799d7

query I rowsort
SELECT + 96 * col1 AS col2 FROM tab2
----
1632
2976
5664

onlyif mysql # use DIV operator for integer division
query I rowsort label-4936
SELECT + col2 * col0 + + col1 * + tab0.col0 + col1 DIV + ( + col0 ) AS col1 FROM tab0
----
15398
2859
3432

skipif mysql # not compatible
query I rowsort label-4936
SELECT + col2 * col0 + + col1 * + tab0.col0 + col1 / + ( + col0 ) AS col1 FROM tab0
----
15398
2859
3432

query I rowsort
SELECT - 63 + col2 * 77 AS col1 FROM tab2
----
1939
2016
2863

query I rowsort
SELECT + col1 + + cor0.col0 + col1 * col1 FROM tab0 AS cor0
----
7506
8461
9541

query I rowsort
SELECT - 84 * + col2 - 89 AS col0 FROM tab2 AS cor0
----
-2273
-2357
-3281

query I rowsort
SELECT DISTINCT + col0 * - col1 * + col2 AS col1 FROM tab0 AS cor0
----
-3395
-664118
-68112

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + col2 col1 FROM tab2 cor0
----
55
58
85

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4942
SELECT cor0.col1 + col1 * CAST( 92 * col2 AS SIGNED ) + + 41 AS col0 FROM tab0 cor0
----
261223
686636
9062

skipif mysql # not compatible
query I rowsort label-4942
SELECT cor0.col1 + col1 * CAST ( 92 * col2 AS INTEGER ) + + 41 AS col0 FROM tab0 cor0
----
261223
686636
9062

query I rowsort
SELECT ALL - col0 * col0 * - ( col1 ) FROM tab2 AS cor0
----
106097
1519
358956

query I rowsort
SELECT DISTINCT col1 * - 16 FROM tab2
----
-272
-496
-944

query I rowsort
SELECT tab2.col2 - - col1 * - ( col1 ) * col1 AS col2 FROM tab2
----
-205353
-29764
-4875

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 38 col1 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to e8c064543bf0f2e57329db1bb0a411e3

query I rowsort
SELECT DISTINCT - col2 + ( cor0.col2 ) FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL col1 * + col1 - cor0.col1 * + col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4949
SELECT ALL - cor0.col1 DIV + 77 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4949
SELECT ALL - cor0.col1 / + 77 AS col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4950
SELECT DISTINCT + + col1 DIV - col0 AS col2 FROM tab0 AS cor0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-4950
SELECT DISTINCT + + col1 / - col0 AS col2 FROM tab0 AS cor0
----
-1
-2
-3

query I rowsort
SELECT DISTINCT - - col2 * col1 FROM tab2 cor0
----
1534
646
837

query I rowsort
SELECT + 27 * - col2 FROM tab1 AS cor0
----
-1458
-1539
-2592

query I rowsort
SELECT DISTINCT 24 * + col2 * + col2 + - col1 AS col1 FROM tab2 AS cor0
----
16165
17465
34639

query I rowsort
SELECT DISTINCT col0 * 81 * - col2 - + 28 AS col1 FROM tab2 AS cor0
----
-15337
-164296
-243190

query I rowsort
SELECT ALL - - col0 + + cor0.col2 AS col0 FROM tab2 AS cor0
----
104
117
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * ( col2 ) col2 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT ALL - 8 + col2 AS col0 FROM tab1 AS cor0
----
46
49
88

query I rowsort
SELECT DISTINCT - - ( + col2 ) * - cor0.col0 - col0 * - col2 AS col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT - ( - col1 ) + + col0 AS col0 FROM tab1 cor0
----
29
74
93

query I rowsort
SELECT ALL 7 * - 58 * col2 AS col0 FROM tab1 AS cor0
----
-21924
-23142
-38976

query I rowsort
SELECT DISTINCT + ( 20 ) + col0 FROM tab2 cor0
----
27
98
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - col2 ) * - 82 - 57 col1 FROM tab1 AS cor0
----
4371
4617
7815

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * - col1 - col2 col0 FROM tab0 AS cor0
----
-7429
-8363
-9410

query I rowsort
SELECT DISTINCT + - 73 AS col1 FROM tab2, tab0, tab0 AS cor0
----
-73

query I rowsort
SELECT DISTINCT + - col2 * + 92 - + 80 AS col1 FROM tab1 AS cor0
----
-5048
-5324
-8912

query I rowsort
SELECT + col2 + - col2 * col0 FROM tab1 cor0
----
-108
-3591
-7584

query I rowsort
SELECT col1 + + ( col0 ) AS col1 FROM tab1 cor0
----
29
74
93

query I rowsort
SELECT DISTINCT ( 14 ) AS col2 FROM tab0 AS cor0
----
14

onlyif mysql # use DIV operator for integer division
query I rowsort label-4969
SELECT col2 DIV 90 - col0 FROM tab1 AS cor0
----
-3
-64
-79

skipif mysql # not compatible
query I rowsort label-4969
SELECT col2 / 90 - col0 FROM tab1 AS cor0
----
-3
-64
-79

query I rowsort
SELECT 47 AS col0 FROM tab0, tab1 cor0 CROSS JOIN tab2, tab1 AS cor1
----
81 values hashing to 5c7a6f591fb2a38893dafe56c4b9b97f

query I rowsort
SELECT cor0.col2 * 86 + col1 AS col2 FROM tab0 AS cor0
----
183
2924
7143

query I rowsort
SELECT ALL 84 * col1 AS col1 FROM tab1 AS cor0
----
1092
2184
840

query I rowsort
SELECT + + 0 * + 95 AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + col1 + + 49 AS col0 FROM tab0 AS cor0
----
135
140
146

query I rowsort
SELECT DISTINCT + col2 - + 41 * col0 AS col2 FROM tab0 AS cor0
----
-1434
-3567
-951

query I rowsort
SELECT DISTINCT ( col0 ) + cor0.col1 * 72 * col0 AS col2 FROM tab2 AS cor0
----
15631
331422
96775

query I rowsort
SELECT ALL - 32 + + col0 - col1 * - ( col0 * - col1 ) FROM tab2 AS cor0
----
-22784
-271472
-6752

onlyif mysql # use DIV operator for integer division
query I rowsort label-4978
SELECT ALL + col2 * col2 DIV - col1 AS col2 FROM tab1 AS cor0
----
-112
-324
-708

skipif mysql # not compatible
query I rowsort label-4978
SELECT ALL + col2 * col2 / - col1 AS col2 FROM tab1 AS cor0
----
-112
-324
-708

query I rowsort
SELECT - col1 * col0 - + col1 AS col2 FROM tab0 AS cor0
----
-2150
-3492
-8190

query I rowsort
SELECT DISTINCT + col1 * ( + col1 ) + ( 20 ) * - col1 AS col1 FROM tab0 AS cor0
----
5676
6461
7469

query I rowsort
SELECT DISTINCT + - 72 * - 78 - col2 AS col1 FROM tab0 AS cor0
----
5534
5583
5615

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4982
SELECT CAST( col0 AS SIGNED ) + + col2 FROM tab2 AS cor0
----
104
117
34

skipif mysql # not compatible
query I rowsort label-4982
SELECT CAST ( col0 AS INTEGER ) + + col2 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT - col1 * col2 + - 81 AS col0 FROM tab1 AS cor0
----
-1329
-1485
-651

query I rowsort
SELECT ALL + cor0.col2 - + col2 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 * + col1 + cor0.col1 * + 48 col2 FROM tab1 AS cor0
----
-160
-416
1170

query I rowsort
SELECT col1 + + col2 * - col2 AS col0 FROM tab0 AS cor0
----
-1003
-6633
96

query I rowsort
SELECT DISTINCT - 55 + col1 * - col2 * col0 FROM tab2
----
-119707
-51089
-5914

query I rowsort
SELECT + ( + cor0.col2 ) + 12 FROM tab0 AS cor0
----
13
45
94

query I rowsort
SELECT + + 15 * col1 FROM tab0 cor0
----
1290
1365
1455

query I rowsort
SELECT + - cor0.col1 * col1 - - 39 * col0 FROM tab2 AS cor0
----
-439
-688
2792

query I rowsort
SELECT - + ( col2 ) - 33 * + col2 AS col0 FROM tab2 AS cor0
----
-1292
-884
-918

query I rowsort
SELECT 26 + col0 FROM tab0 cor0
----
115
50
61

query I rowsort
SELECT - + cor0.col2 + + col2 * - 50 + - col0 AS col2 FROM tab2 AS cor0
----
-1384
-1404
-2017

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4994
SELECT + cor0.col2 * col0 * CAST( col1 AS SIGNED ) FROM tab0 cor0
----
3395
664118
68112

skipif mysql # not compatible
query I rowsort label-4994
SELECT + cor0.col2 * col0 * CAST ( col1 AS INTEGER ) FROM tab0 cor0
----
3395
664118
68112

query I rowsort
SELECT + col2 + col1 * ( - col1 * cor0.col1 ) FROM tab2 AS cor0
----
-205353
-29764
-4875

query I rowsort
SELECT - ( + 29 ) * - col0 FROM tab2
----
203
2262
2291

query I rowsort
SELECT DISTINCT 77 + 86 + + tab0.col1 AS col0 FROM tab0
----
249
254
260

query I rowsort
SELECT DISTINCT ( - ( col0 ) ) * col0 FROM tab1
----
-4096
-6400
-9

query I rowsort
SELECT + 92 * col0 + - col1 * + 56 FROM tab1 AS cor0
----
-1180
5328
6632

query I rowsort
SELECT + col1 - cor0.col2 AS col1 FROM tab2 AS cor0
----
-21
33
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab0.col2 col1 FROM tab0, tab2 AS cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col1 - - col0 * - col0 col1 FROM tab0
----
-1128
-490
-7830

query I rowsort
SELECT ALL cor1.col0 AS col1 FROM tab0, tab0 cor0, tab1 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

query I rowsort
SELECT DISTINCT + 60 * - 59 FROM tab2, tab1, tab2 AS cor0
----
-3540

query I rowsort
SELECT col0 * + 26 AS col2 FROM tab2
----
182
2028
2054

onlyif mysql # use DIV operator for integer division
query I rowsort label-5006
SELECT cor0.col0 + + cor0.col2 DIV - col0 FROM tab2 AS cor0
----
4
78
79

skipif mysql # not compatible
query I rowsort label-5006
SELECT cor0.col0 + + cor0.col2 / - col0 FROM tab2 AS cor0
----
4
78
79

query I rowsort
SELECT ALL - cor0.col2 * 42 AS col0 FROM tab2 cor0 CROSS JOIN tab1, tab1 cor1
----
27 values hashing to 95c17677382ac468647b0ea91234eb16

query I rowsort
SELECT 50 * 59 AS col2 FROM tab0, tab1 cor0
----
9 values hashing to 7c1e79aeeb4406ab6adc0fc492b42e66

onlyif mysql # use DIV operator for integer division
query I rowsort label-5009
SELECT - col0 * - 21 + + cor0.col1 DIV + cor0.col0 col2 FROM tab2 AS cor0
----
151
1638
1659

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5009
SELECT - col0 * - 21 + + cor0.col1 / + cor0.col0 col2 FROM tab2 AS cor0
----
151
1638
1659

query I rowsort
SELECT ALL col1 * col2 + - col0 AS col0 FROM tab0 AS cor0
----
2814
62
7373

query I rowsort
SELECT DISTINCT + col0 - - 68 FROM tab2 AS cor0
----
146
147
75

query I rowsort
SELECT DISTINCT - cor0.col1 * + 68 AS col0 FROM tab0 cor0
----
-5848
-6188
-6596

onlyif mysql # use DIV operator for integer division
query I rowsort label-5013
SELECT - + col1 DIV ( 78 ) - col1 * ( - ( + col0 ) ) DIV - 73 FROM tab1 AS cor0
----
-1
-14
-8

skipif mysql # not compatible
query I rowsort label-5013
SELECT - + col1 / ( 78 ) - col1 * ( - ( + col0 ) ) / - 73 FROM tab1 AS cor0
----
-1
-14
-8

query I rowsort
SELECT DISTINCT - col1 + ( col1 ) * col2 - + ( - col0 ) FROM tab1 AS cor0
----
1315
1381
624

query I rowsort
SELECT col1 + ( - col2 ) FROM tab0
----
53
9
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5016
SELECT DISTINCT col0 + - CAST( NULL AS SIGNED ) * + col1 / - col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5016
SELECT DISTINCT col0 + - CAST ( NULL AS INTEGER ) * + col1 / - col0 FROM tab2
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5017
SELECT DISTINCT col1 + CAST( 46 AS SIGNED ) * + tab2.col1 DIV - tab2.col1 FROM tab2
----
-15
-29
13

skipif mysql # not compatible
query I rowsort label-5017
SELECT DISTINCT col1 + CAST ( 46 AS INTEGER ) * + tab2.col1 / - tab2.col1 FROM tab2
----
-15
-29
13

query I rowsort
SELECT DISTINCT 94 * + col2 * col2 + + col0 AS col2 FROM tab2 AS cor0
----
135815
63622
68533

query I rowsort
SELECT ALL + col0 - + cor0.col1 FROM tab1 AS cor0
----
-23
54
67

onlyif mysql # use DIV operator for integer division
query I rowsort label-5020
SELECT DISTINCT - col0 * col0 DIV - tab2.col1 + ( + 31 ) * + col2 * 76 AS col1 FROM tab2
----
61359
63613
89895

skipif mysql # not compatible
query I rowsort label-5020
SELECT DISTINCT - col0 * col0 / - tab2.col1 + ( + 31 ) * + col2 * 76 AS col1 FROM tab2
----
61359
63613
89895

onlyif mysql # use DIV operator for integer division
query I rowsort label-5021
SELECT ALL col2 + cor0.col2 DIV col0 AS col0 FROM tab2 cor0
----
26
30
38

skipif mysql # not compatible
query I rowsort label-5021
SELECT ALL col2 + cor0.col2 / col0 AS col0 FROM tab2 cor0
----
26
30
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 3 - - 24 col0 FROM tab2 AS cor0
----
21

query I rowsort
SELECT + + 54 + + 82 * col1 AS col2 FROM tab1 cor0
----
1120
2186
874

onlyif mysql # use DIV operator for integer division
query I rowsort label-5024
SELECT DISTINCT col2 DIV + 33 + + col1 * 87 AS col2 FROM tab1 AS cor0
----
1133
2263
871

skipif mysql # not compatible
query I rowsort label-5024
SELECT DISTINCT col2 / + 33 + + col1 * 87 AS col2 FROM tab1 AS cor0
----
1133
2263
871

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5025
SELECT ALL CAST( NULL AS SIGNED ) - col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5025
SELECT ALL CAST ( NULL AS INTEGER ) - col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 84 * col1 + col2 FROM tab0 AS cor0
----
7257
7726
8149

query I rowsort
SELECT ALL + + col2 * + col2 AS col2 FROM tab2 cor0
----
1444
676
729

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5028
SELECT + - CAST( NULL AS DECIMAL ) + 47 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5028
SELECT + - CAST ( NULL AS REAL ) + 47 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5029
SELECT ALL + + 88 DIV col2 + col2 AS col1 FROM tab1 cor0
----
55
58
96

skipif mysql # not compatible
query I rowsort label-5029
SELECT ALL + + 88 / col2 + col2 AS col1 FROM tab1 cor0
----
55
58
96

query I rowsort
SELECT + col2 * 81 AS col1 FROM tab1 AS cor0
----
4374
4617
7776

query I rowsort
SELECT ALL - col0 * col2 + + col0 * col2 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT - col1 + cor0.col1 * 96 * - col2 AS col2 FROM tab1 AS cor0
----
-119821
-134810
-54730

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * tab0.col0 col2 FROM tab0
----
2064
3395
8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-5034
SELECT ALL - 38 DIV + col0 FROM tab2 AS cor0
----
-5
0
0

skipif mysql # not compatible
query I rowsort label-5034
SELECT ALL - 38 / + col0 FROM tab2 AS cor0
----
-5
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5035
SELECT DISTINCT + - col2 + + cor0.col2 DIV col0 AS col0 FROM tab0 AS cor0
----
-1
-32
-82

skipif mysql # not compatible
query I rowsort label-5035
SELECT DISTINCT + - col2 + + cor0.col2 / col0 AS col0 FROM tab0 AS cor0
----
-1
-32
-82

query I rowsort
SELECT + col0 * - col0 * - 94 FROM tab0 AS cor0
----
115150
54144
744574

query I rowsort
SELECT DISTINCT - - col1 * - 83 AS col2 FROM tab0 AS cor0
----
-7138
-7553
-8051

query I rowsort
SELECT DISTINCT col0 * - col0 * tab2.col2 AS col0 FROM tab2
----
-1323
-158184
-237158

onlyif mysql # use DIV operator for integer division
query I rowsort label-5039
SELECT DISTINCT - col0 + col2 DIV 72 FROM tab2 AS cor0
----
-7
-78
-79

skipif mysql # not compatible
query I rowsort label-5039
SELECT DISTINCT - col0 + col2 / 72 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT col0 * + ( col2 * - col2 + + 2 ) FROM tab1 AS cor0
----
-207808
-737120
-8742

query I rowsort
SELECT - col1 * + col2 * 36 AS col0 FROM tab0 AS cor0
----
-102168
-268632
-3492

query I rowsort
SELECT DISTINCT + 4 * + col2 AS col0 FROM tab1
----
216
228
384

query I rowsort
SELECT - 60 AS col2 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to 1a0b29f8e6f82c54623a665ba4af8fd1

query I rowsort
SELECT DISTINCT + 74 FROM tab2
----
74

query I rowsort
SELECT DISTINCT - - cor0.col0 * col0 + - col1 * + col0 + ( - cor0.col0 ) * cor0.col1 FROM tab0 AS cor0
----
-3552
-5565
-8277

query I rowsort
SELECT DISTINCT cor1.col1 AS col2 FROM tab2, tab0 AS cor0, tab0 AS cor1, tab2 AS cor2
----
86
91
97

query I rowsort
SELECT ALL col1 + ( 23 ) FROM tab2 cor0
----
40
54
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-5048
SELECT - col1 DIV - col1 + - col1 * tab2.col1 AS col0 FROM tab2
----
-288
-3480
-960

skipif mysql # not compatible
query I rowsort label-5048
SELECT - col1 / - col1 + - col1 * tab2.col1 AS col0 FROM tab2
----
-288
-3480
-960

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 0 col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT - 90 * cor0.col2 FROM tab2 AS cor0
----
-2340
-2430
-3420

query I rowsort
SELECT + col2 + + ( + col2 ) * col0 + + col0 FROM tab0
----
71
7469
849

query I rowsort
SELECT ALL tab2.col2 + 38 FROM tab2
----
64
65
76

onlyif mysql # use DIV operator for integer division
query I rowsort label-5053
SELECT ALL - col2 * col2 + - col2 DIV - CAST( col0 * + col2 AS SIGNED ) AS col2 FROM tab1
----
-2916
-3249
-9216

skipif mysql # not compatible
query I rowsort label-5053
SELECT ALL - col2 * col2 + - col2 / - CAST ( col0 * + col2 AS INTEGER ) AS col2 FROM tab1
----
-2916
-3249
-9216

query I rowsort
SELECT DISTINCT + col2 + + col2 * + col2 AS col0 FROM tab2 cor0
----
1482
702
756

query I rowsort
SELECT DISTINCT - - 75 * + col0 + + col1 * + 51 AS col2 FROM tab1 AS cor0
----
1551
5310
6663

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 6 * - col0 + ( - 4 ) col0 FROM tab2 AS cor0
----
-46
-472
-478

query I rowsort
SELECT ALL - + col1 * - cor0.col2 AS col1 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT - 30 * - tab2.col2 + - col2 FROM tab2
----
1102
754
783

query I rowsort
SELECT - col2 * + ( + col2 ) + tab0.col2 FROM tab0
----
-1056
-6642
0

query I rowsort
SELECT ( + ( col0 ) ) + - col2 AS col1 FROM tab2
----
-20
41
52

query I rowsort
SELECT DISTINCT col1 * + 74 + col1 AS col1 FROM tab1
----
1950
750
975

query I rowsort
SELECT + ( tab0.col0 ) + ( - col1 + - tab0.col1 ) FROM tab0
----
-148
-159
-93

onlyif mysql # use DIV operator for integer division
query I rowsort label-5063
SELECT ALL - - 37 DIV + col2 + - ( col1 ) * col1 + 50 DIV col1 FROM tab1 AS cor0
----
-166
-675
-95

skipif mysql # not compatible
query I rowsort label-5063
SELECT ALL - - 37 / + col2 + - ( col1 ) * col1 + 50 / col1 FROM tab1 AS cor0
----
-166
-675
-95

query I rowsort
SELECT - - col1 * - col0 AS col1 FROM tab1 cor0
----
-1040
-640
-78

query I rowsort
SELECT DISTINCT 94 AS col1 FROM tab2 cor0
----
94

query I rowsort
SELECT + 56 * - col2 AS col2 FROM tab2 AS cor0
----
-1456
-1512
-2128

query I rowsort
SELECT 0 + col2 FROM tab0 cor0
----
1
33
82

query I rowsort
SELECT - 49 * + col0 + - col2 FROM tab1 AS cor0
----
-201
-3193
-4016

onlyif mysql # use DIV operator for integer division
query I rowsort label-5069
SELECT - col1 * col0 DIV col1 FROM tab2 AS cor0
----
-7
-78
-79

skipif mysql # not compatible
query I rowsort label-5069
SELECT - col1 * col0 / col1 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT DISTINCT - - 89 AS col2 FROM tab1 AS cor0
----
89

query I rowsort
SELECT + 59 + + col1 * + 36 FROM tab1 AS cor0
----
419
527
995

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * col2 + + 77 col2 FROM tab2 AS cor0
----
1611
723
914

query I rowsort
SELECT DISTINCT + 86 AS col1 FROM tab0 AS cor0
----
86

query I rowsort
SELECT ALL + + cor0.col0 + col2 AS col0 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT col2 - + 40 FROM tab1 AS cor0
----
14
17
56

query I rowsort
SELECT ( - 69 ) FROM tab0 AS cor0
----
-69
-69
-69

query I rowsort
SELECT - ( + 93 ) + col1 * col2 * ( col2 ) + col2 FROM tab0 cor0
----
5
611873
93594

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5078
SELECT CAST( NULL AS DECIMAL ) * - col1 + col0 * + 5 + + 76 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5078
SELECT CAST ( NULL AS REAL ) * - col1 + col0 * + 5 + + 76 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5079
SELECT ALL + tab1.col0 * ( - col0 ) DIV col0 AS col1 FROM tab1
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-5079
SELECT ALL + tab1.col0 * ( - col0 ) / col0 AS col1 FROM tab1
----
-3
-64
-80

query I rowsort
SELECT + col0 * 33 AS col2 FROM tab1
----
2112
2640
99

query I rowsort
SELECT 30 * col1 * - col1 + + ( - 20 ) FROM tab0
----
-221900
-248450
-282290

query I rowsort
SELECT - 59 * col2 AS col1 FROM tab2
----
-1534
-1593
-2242

query I rowsort
SELECT 57 * tab2.col2 FROM tab2, tab2 cor0
----
9 values hashing to 4c6548c0f5af5408e3f2bca06071606c

query I rowsort
SELECT - 55 * + col1 + col0 FROM tab0 AS cor0
----
-4706
-4916
-5300

query I rowsort
SELECT + - ( + col2 ) + - col0 FROM tab0 cor0
----
-171
-36
-57

query I rowsort
SELECT + ( cor0.col2 ) * cor0.col2 + + 93 AS col1 FROM tab1 AS cor0
----
3009
3342
9309

onlyif mysql # use DIV operator for integer division
query I rowsort label-5087
SELECT ALL + col2 * - col0 DIV - col0 FROM tab0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-5087
SELECT ALL + col2 * - col0 / - col0 FROM tab0
----
1
33
82

query I rowsort
SELECT + 84 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to cadd876c26338fc58b9297e74fc324d8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col2 col0 FROM tab0, tab1, tab0 AS cor0
----
-1
-33
-82

onlyif mysql # use DIV operator for integer division
query I rowsort label-5090
SELECT - col1 DIV cor0.col0 AS col1 FROM tab2 AS cor0
----
-4
0
0

skipif mysql # not compatible
query I rowsort label-5090
SELECT - col1 / cor0.col0 AS col1 FROM tab2 AS cor0
----
-4
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 + - col1 col1 FROM tab0 AS cor0
----
-172
-182
-194

query I rowsort
SELECT - tab0.col1 * - col1 + tab0.col0 * col2 FROM tab0
----
15579
8188
9444

onlyif mysql # use DIV operator for integer division
query I rowsort label-5093
SELECT DISTINCT 68 DIV - col0 FROM tab0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-5093
SELECT DISTINCT 68 / - col0 FROM tab0
----
-1
-2
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5094
SELECT + - col0 * CAST( NULL AS SIGNED ) - - col2 * - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5094
SELECT + - col0 * CAST ( NULL AS INTEGER ) - - col2 * - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 + + 86 * - col0 * col2 AS col0 FROM tab2 cor0
----
-16227
-174382
-258134

query I rowsort
SELECT - col2 * 22 AS col2 FROM tab0 AS cor0
----
-1804
-22
-726

onlyif mysql # use DIV operator for integer division
query I rowsort label-5097
SELECT + col2 DIV 47 col1 FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5097
SELECT + col2 / 47 col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + - col0 * - cor0.col2 * + col2 - + cor0.col1 AS col1 FROM tab2 AS cor0
----
114059
5072
52669

query I rowsort
SELECT + col1 - - 69 * + 54 AS col0 FROM tab2
----
3743
3757
3785

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col0 ) - cor0.col1 col1 FROM tab0 cor0
----
-2
-62
-62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5101
SELECT DISTINCT CAST( - col1 AS SIGNED ) + col2 FROM tab2 AS cor0
----
-33
-4
21

skipif mysql # not compatible
query I rowsort label-5101
SELECT DISTINCT CAST ( - col1 AS INTEGER ) + col2 FROM tab2 AS cor0
----
-33
-4
21

query I rowsort
SELECT + 56 + - cor0.col1 AS col1 FROM tab1 AS cor0
----
30
43
46

query I rowsort
SELECT + col0 * cor0.col2 + - col0 AS col1 FROM tab0 AS cor0
----
0
7209
768

query I rowsort
SELECT - col0 + - cor0.col1 * col0 FROM tab2 AS cor0
----
-1422
-224
-4680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 - col0 col1 FROM tab2 AS cor0
----
-19
-62
24

onlyif mysql # use DIV operator for integer division
query I rowsort label-5106
SELECT ALL - + col2 DIV + col0 AS col1 FROM tab1 AS cor0
----
-1
-18
0

skipif mysql # not compatible
query I rowsort label-5106
SELECT ALL - + col2 / + col0 AS col1 FROM tab1 AS cor0
----
-1
-18
0

query I rowsort
SELECT DISTINCT - 65 + col0 AS col0 FROM tab0 AS cor0
----
-30
-41
24

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - CAST ( 55 AS REAL ) + + col2 FROM tab2 cor0
----
-17
-28
-29

query I rowsort
SELECT + 13 * col2 - - col1 * - 86 FROM tab2 cor0
----
-2315
-4736
-968

query I rowsort
SELECT + col2 * 91 FROM tab2 AS cor0
----
2366
2457
3458

query I rowsort
SELECT ALL - 63 * cor0.col0 AS col0 FROM tab2 cor0
----
-441
-4914
-4977

query I rowsort
SELECT ALL + 94 * col2 + col0 AS col0 FROM tab0
----
129
3126
7797

onlyif mysql # use DIV operator for integer division
query I rowsort label-5113
SELECT + + col0 * col0 DIV + col0 + cor0.col1 FROM tab1 AS cor0
----
29
74
93

skipif mysql # not compatible
query I rowsort label-5113
SELECT + + col0 * col0 / + col0 + cor0.col1 FROM tab1 AS cor0
----
29
74
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + col0 + - 49 col0 FROM tab2 AS cor0
----
0
6035
6192

query I rowsort
SELECT - cor0.col0 + + col1 AS col2 FROM tab1 cor0
----
-54
-67
23

query I rowsort
SELECT - - 51 * col2 + - col1 AS col2 FROM tab1 AS cor0
----
2728
2897
4883

query I rowsort
SELECT 14 + - col2 + + cor0.col0 FROM tab1 AS cor0
----
-2
-37
21

query I rowsort
SELECT - 41 * - col0 * - col1 + 86 FROM tab0 AS cor0
----
-139109
-331973
-84538

query I rowsort
SELECT DISTINCT + col2 * 92 + col0 * col0 + col0 FROM tab0 AS cor0
----
1352
15554
3636

onlyif mysql # use DIV operator for integer division
query I rowsort label-5120
SELECT DISTINCT - - col0 * col2 + col1 DIV col0 FROM tab1 AS cor0
----
170
3648
7680

skipif mysql # not compatible
query I rowsort label-5120
SELECT DISTINCT - - col0 * col2 + col1 / col0 FROM tab1 AS cor0
----
170
3648
7680

query I rowsort
SELECT ALL ( + col2 ) * cor0.col2 * - cor0.col2 + col1 * col0 + + col2 * col1 FROM tab0 AS cor0
----
-31035
-535807
3491

query I rowsort
SELECT DISTINCT col0 * + col0 * + 39 + cor0.col0 * col2 AS col0 FROM tab0 AS cor0
----
23256
316217
47810

query I rowsort
SELECT col2 - col0 * - col1 AS col2 FROM tab2
----
1381
244
4628

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 14 * col1 col0 FROM tab0 AS cor0
----
1204
1274
1358

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col2 + cor0.col2 + - col1 col2 FROM tab1 AS cor0
----
104
179
82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5126
SELECT - 68 + + ( col1 ) / - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5126
SELECT - 68 + + ( col1 ) / - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5127
SELECT DISTINCT + CAST( NULL AS SIGNED ) * col2 / + col1 AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5127
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * col2 / + col1 AS col2 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT 62 * col2 - col2 FROM tab1
----
3294
3477
5856

onlyif mysql # use DIV operator for integer division
query I rowsort label-5129
SELECT 23 + + col0 DIV - col1 AS col2 FROM tab0
----
23
23
23

skipif mysql # not compatible
query I rowsort label-5129
SELECT 23 + + col0 / - col1 AS col2 FROM tab0
----
23
23
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 18 col2 FROM tab0 AS cor0
----
-18

onlyif mysql # use DIV operator for integer division
query I rowsort label-5131
SELECT DISTINCT col2 DIV - 30 + - ( - col1 ) AS col2 FROM tab1
----
10
25
9

skipif mysql # not compatible
query I rowsort label-5131
SELECT DISTINCT col2 / - 30 + - ( - col1 ) AS col2 FROM tab1
----
10
25
9

query I rowsort
SELECT ALL - cor0.col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ccaa5dd3388d9ee0fea676fa35299fe5

onlyif mysql # use DIV operator for integer division
query I rowsort label-5133
SELECT DISTINCT - cor0.col2 DIV - tab1.col2 + - cor0.col0 FROM tab1, tab1 AS cor0
----
-2
-3
-63
-64
-79

skipif mysql # not compatible
query I rowsort label-5133
SELECT DISTINCT - cor0.col2 / - tab1.col2 + - cor0.col0 FROM tab1, tab1 AS cor0
----
-2
-3
-63
-64
-79

query I rowsort
SELECT ALL - 78 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b6e4cc21599216686f0cf45b85668b2c

onlyif mysql # use DIV operator for integer division
query I rowsort label-5135
SELECT + col0 DIV 15 + cor0.col2 FROM tab2 AS cor0
----
27
31
43

skipif mysql # not compatible
query I rowsort label-5135
SELECT + col0 / 15 + cor0.col2 FROM tab2 AS cor0
----
27
31
43

query I rowsort
SELECT DISTINCT - cor1.col0 FROM tab1, tab0 cor0, tab2 cor1, tab0, tab0 AS cor2
----
-7
-78
-79

query I rowsort
SELECT - col0 + - 59 FROM tab1
----
-123
-139
-62

query I rowsort
SELECT - - col0 * - 1 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT DISTINCT - ( + 87 ) * + col2 * col0 AS col1 FROM tab0 AS cor0
----
-3045
-634926
-68904

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5140
SELECT 49 * cor0.col1 + CAST( NULL AS SIGNED ) AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-5140
SELECT 49 * cor0.col1 + CAST ( NULL AS INTEGER ) AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ALL + cor1.col0 FROM tab1, tab1 AS cor0, tab2 AS cor1, tab0, tab0 AS cor2
----
243 values hashing to 455e4df3bf7b0fa681c56e89df1a761f

query I rowsort
SELECT cor0.col1 + 77 AS col1 FROM tab1 AS cor0
----
103
87
90

query I rowsort
SELECT DISTINCT 77 + + col0 AS col1 FROM tab0 AS cor0
----
101
112
166

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5144
SELECT ALL + + col2 * col2 / - col2 - CAST( NULL AS SIGNED ) * col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5144
SELECT ALL + + col2 * col2 / - col2 - CAST ( NULL AS INTEGER ) * col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + col0 * - col0 + col0 FROM tab2 AS cor0
----
-42
-6006
-6162

query I rowsort
SELECT ALL - - cor0.col1 * 10 + col2 * ( - 32 ) FROM tab2 AS cor0
----
-1046
-242
-554

query I rowsort
SELECT ALL - cor0.col0 * - 87 FROM tab2 AS cor0
----
609
6786
6873

query I rowsort
SELECT 42 * - ( cor0.col0 * - 40 ) AS col2 FROM tab1 AS cor0
----
107520
134400
5040

query I rowsort
SELECT ALL - 82 * - col2 FROM tab1 cor0
----
4428
4674
7872

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5150
SELECT + CAST( NULL AS SIGNED ) + + col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5150
SELECT + CAST ( NULL AS INTEGER ) + + col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 35 + - col1 AS col1 FROM tab0 AS cor0
----
-121
-126
-132

query I rowsort
SELECT + 37 * - col2 + col2 AS col2 FROM tab2 AS cor0
----
-1368
-936
-972

query I rowsort
SELECT DISTINCT cor0.col2 * + 85 FROM tab2, tab1 AS cor0
----
4590
4845
8160

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + col1 col2 FROM tab1 cor0
----
109
67
80

query I rowsort
SELECT - cor0.col2 + - cor0.col2 AS col1 FROM tab0 cor0
----
-164
-2
-66

query I rowsort
SELECT ALL col2 + - col0 * + col1 AS col0 FROM tab1 cor0
----
-24
-583
-944

query I rowsort
SELECT tab1.col1 * 8 * + col1 AS col1 FROM tab1
----
1352
5408
800

query I rowsort
SELECT ALL col0 + col1 * + 97 AS col2 FROM tab1
----
1034
1341
2525

query I rowsort
SELECT cor0.col0 + col0 * - col2 AS col2 FROM tab2 AS cor0
----
-182
-1950
-2923

onlyif mysql # use DIV operator for integer division
query I rowsort label-5160
SELECT col1 * 64 DIV col2 + col0 AS col2 FROM tab1 AS cor0
----
33
75
88

skipif mysql # not compatible
query I rowsort label-5160
SELECT col1 * 64 / col2 + col0 AS col2 FROM tab1 AS cor0
----
33
75
88

onlyif mysql # use DIV operator for integer division
query I rowsort label-5161
SELECT DISTINCT col0 * - CAST( - col2 AS SIGNED ) + - col0 DIV tab2.col0 col2 FROM tab2
----
188
2027
3001

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5161
SELECT DISTINCT col0 * - CAST ( - col2 AS INTEGER ) + - col0 / tab2.col0 col2 FROM tab2
----
188
2027
3001

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5162
SELECT col1 * CAST( - col1 AS SIGNED ) FROM tab1
----
-100
-169
-676

skipif mysql # not compatible
query I rowsort label-5162
SELECT col1 * CAST ( - col1 AS INTEGER ) FROM tab1
----
-100
-169
-676

query I rowsort
SELECT - col0 * col0 * + tab0.col0 FROM tab0
----
-13824
-42875
-704969

query I rowsort
SELECT - col2 * col0 + 93 * - col0 AS col2 FROM tab1
----
-15120
-441
-9600

onlyif mysql # use DIV operator for integer division
query I rowsort label-5165
SELECT col1 DIV + col1 + - col1 * col1 * + col2 FROM tab0
----
-244067
-679041
-9408

skipif mysql # not compatible
query I rowsort label-5165
SELECT col1 / + col1 + - col1 * col1 * + col2 FROM tab0
----
-244067
-679041
-9408

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * col1 + - tab0.col1 col0 FROM tab0
----
1978
3298
8008

query I rowsort
SELECT DISTINCT + tab0.col2 * col0 + - col2 AS col0 FROM tab0
----
34
7216
759

onlyif mysql # use DIV operator for integer division
query I rowsort label-5168
SELECT ALL col2 DIV col2 + col1 + + col0 FROM tab0
----
111
133
181

skipif mysql # not compatible
query I rowsort label-5168
SELECT ALL col2 / col2 + col1 + + col0 FROM tab0
----
111
133
181

query I rowsort
SELECT DISTINCT col1 + - col1 + - col1 AS col0 FROM tab1
----
-10
-13
-26

onlyif mysql # use DIV operator for integer division
query I rowsort label-5170
SELECT DISTINCT - col2 * col2 + col0 DIV tab2.col0 AS col1 FROM tab2
----
-1443
-675
-728

skipif mysql # not compatible
query I rowsort label-5170
SELECT DISTINCT - col2 * col2 + col0 / tab2.col0 AS col1 FROM tab2
----
-1443
-675
-728

onlyif mysql # use DIV operator for integer division
query I rowsort label-5171
SELECT col1 DIV + col1 + + col1 FROM tab2
----
18
32
60

skipif mysql # not compatible
query I rowsort label-5171
SELECT col1 / + col1 + + col1 FROM tab2
----
18
32
60

query III rowsort
SELECT ALL * FROM tab1 WHERE ( col0 ) >= NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-5173
SELECT - col2 * - col1 DIV - col1 + col1 FROM tab1
----
-28
-47
-83

skipif mysql # not compatible
query I rowsort label-5173
SELECT - col2 * - col1 / - col1 + col1 FROM tab1
----
-28
-47
-83

query I rowsort
SELECT tab0.col2 FROM tab0 WHERE - col1 <= ( col0 + col1 * - col1 + col2 )
----

query I rowsort
SELECT tab1.col2 FROM tab1 WHERE NOT ( NULL ) BETWEEN ( - col1 ) AND + col1
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-5176
SELECT col2 DIV tab2.col0 + + col1 * col2 AS col1 FROM tab2
----
1534
646
840

skipif mysql # not compatible
query I rowsort label-5176
SELECT col2 / tab2.col0 + + col1 * col2 AS col1 FROM tab2
----
1534
646
840

query I rowsort
SELECT - - col2 + - cor0.col2 AS col1 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN - col0 AND NULL OR ( + col0 ) BETWEEN NULL AND col0 * col1
----

query I rowsort
SELECT + cor0.col2 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN ( col2 ) AND NULL OR NOT ( col0 ) BETWEEN ( - col0 * col1 - - col0 / col2 ) AND ( NULL )
----

query I rowsort
SELECT ALL - col2 * col0 * tab0.col0 AS col1 FROM tab0
----
-1225
-19008
-649522

query I rowsort
SELECT col2 + col0 / + tab1.col1 AS col0 FROM tab1 WHERE NOT NULL IN ( col0 )
----

query I rowsort
SELECT ALL + - col1 * col1 AS col1 FROM tab0 cor0
----
-7396
-8281
-9409

query I rowsort
SELECT DISTINCT + col1 + - col2 * cor0.col2 AS col1 FROM tab0 AS cor0
----
-1003
-6633
96

query I rowsort
SELECT DISTINCT - col0 + + 94 * col2 FROM tab0 AS cor0
----
3078
59
7619

query I rowsort
SELECT ALL - - col2 * + 80 + 46 * + col0 FROM tab0 AS cor0
----
10654
1690
3744

query I rowsort
SELECT DISTINCT + - col2 + col1 AS col0 FROM tab2 cor0
----
-21
33
4

query I rowsort
SELECT - tab1.col2 + - col2 * col1 * col1 FROM tab1
----
-16320
-36558
-5757

query I rowsort
SELECT 67 * - col2 + 32 FROM tab1
----
-3586
-3787
-6400

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 - - col0 col2 FROM tab2
----
14
156
158

query I rowsort
SELECT DISTINCT - 90 * - col2 + - ( + col2 ) AS col1 FROM tab1
----
4806
5073
8544

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * + col1 col0 FROM tab2
----
1534
646
837

query I rowsort
SELECT + col0 + + ( col1 ) * col1 FROM tab2 AS cor0
----
3559
368
968

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab0, tab0 AS cor2
----
3645 values hashing to 181d902c42955a43a374f13a73d8b0a1

query I rowsort
SELECT DISTINCT - - col2 + 20 FROM tab0 AS cor0
----
102
21
53

query I rowsort
SELECT ALL col1 * 7 + 62 + col2 FROM tab2 cor0
----
219
306
501

onlyif mysql # use DIV operator for integer division
query I rowsort label-5196
SELECT DISTINCT - cor0.col1 + ( + col1 ) DIV - col0 AS col1 FROM tab2 cor0
----
-17
-35
-59

skipif mysql # not compatible
query I rowsort label-5196
SELECT DISTINCT - cor0.col1 + ( + col1 ) / - col0 AS col1 FROM tab2 cor0
----
-17
-35
-59

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5197
SELECT col2 + + CAST( NULL AS DECIMAL ) * + 76 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5197
SELECT col2 + + CAST ( NULL AS REAL ) * + 76 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort
SELECT col1 * - CAST ( + col2 * col1 AS REAL ) FROM tab2 AS cor0
----
-10982
-25947
-90506

query I rowsort
SELECT ALL + tab0.col0 + col1 AS col0 FROM tab0 WHERE NULL <= col0
----

query I rowsort
SELECT ALL + col2 * col2 + col0 * + col0 AS col1 FROM tab1
----
15616
2925
7345

query I rowsort
SELECT col2 + + tab0.col0 + col1 * col1 AS col2 FROM tab0
----
7453
8452
9445

query I rowsort
SELECT - col2 FROM tab0 WHERE col2 <> ( col1 )
----
-1
-33
-82

onlyif mysql # use DIV operator for integer division
query I rowsort label-5203
SELECT - col1 * col2 * col1 + col1 DIV + col0 FROM tab2
----
-10982
-25943
-90506

skipif mysql # not compatible
query I rowsort label-5203
SELECT - col1 * col2 * col1 + col1 / + col0 FROM tab2
----
-10982
-25943
-90506

query I rowsort
SELECT col1 * col2 * col1 AS col1 FROM tab0
----
244068
679042
9409

query I rowsort
SELECT DISTINCT + tab1.col1 + col2 + col2 AS col0 FROM tab1
----
124
134
205

query I rowsort
SELECT - col2 * + col2 * col1 AS col1 FROM tab1
----
-119808
-32490
-75816

query III rowsort
SELECT ALL * FROM tab0 WHERE + col0 + - col1 > NULL
----

query I rowsort
SELECT + col2 * - tab2.col2 + col0 AS col1 FROM tab2
----
-1365
-598
-722

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN ( col0 ) AND NULL
----

query I rowsort
SELECT DISTINCT - col2 + col2 + col0 * - tab1.col0 AS col2 FROM tab1
----
-4096
-6400
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col1 * col2 col0 FROM tab0
----
2838
7462
97

query I rowsort
SELECT ALL + col0 * col0 * + tab0.col2 FROM tab0
----
1225
19008
649522

query I rowsort
SELECT DISTINCT - cor0.col1 + + 69 AS col1 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
43
56
59

query I rowsort
SELECT + - col2 * col1 + col0 AS col0 FROM tab2 AS cor0
----
-1456
-567
-830

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * col2 + col2 col0 FROM tab2 AS cor0
----
-162
-2002
-2964

query I rowsort
SELECT DISTINCT + cor0.col0 + col0 * ( - cor0.col1 ) FROM tab2 AS cor0
----
-1264
-210
-4524

query I rowsort
SELECT DISTINCT col0 * 96 * 78 AS col1 FROM tab0 AS cor0
----
179712
262080
666432

query I rowsort
SELECT cor0.col1 * cor0.col2 + 20 AS col1 FROM tab0 AS cor0
----
117
2858
7482

onlyif mysql # use DIV operator for integer division
query I rowsort label-5219
SELECT + col2 * + cor0.col2 DIV - ( + col2 ) FROM tab0 AS cor0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-5219
SELECT + col2 * + cor0.col2 / - ( + col2 ) FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT col0 + col2 * cor0.col2 AS col2 FROM tab1 AS cor0
----
2919
3313
9296

query I rowsort
SELECT ALL - col1 * + 94 FROM tab0 AS cor0
----
-8084
-8554
-9118

query I rowsort
SELECT ALL + col0 * ( - col2 ) * col1 FROM tab1 AS cor0
----
-36480
-4212
-99840

onlyif mysql # use DIV operator for integer division
query I rowsort label-5223
SELECT DISTINCT + col1 DIV ( 51 ) AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5223
SELECT DISTINCT + col1 / ( 51 ) AS col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT - cor0.col1 * + 68 FROM tab2 AS cor0
----
-1156
-2108
-4012

onlyif mysql # use DIV operator for integer division
query I rowsort label-5225
SELECT cor0.col2 DIV 55 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5225
SELECT cor0.col2 / 55 FROM tab0 AS cor0
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 + - col2 * - 95 col0 FROM tab1 AS cor0
----
5127
5351
9040

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col1 col0 FROM tab2 cor0
----
17
31
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + col2 * col0 ) col2 FROM tab0
----
35
7298
792

query I rowsort
SELECT + 81 AS col2 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 0a85639e0dddbffdab2cb16b027cb360

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab0.col1 + - col1 * col0 + + 51 col0 FROM tab0
----
-2099
-3441
-8139

query I rowsort
SELECT DISTINCT - col2 + - col2 AS col2 FROM tab0
----
-164
-2
-66

query I rowsort
SELECT DISTINCT - + col2 * ( - col1 ) + cor0.col0 FROM tab2 AS cor0
----
1612
725
844

query I rowsort
SELECT DISTINCT col2 * + 7 FROM tab2 cor0
----
182
189
266

query I rowsort
SELECT - col2 * ( 87 + - col0 * + col2 ) FROM tab0 AS cor0
----
-52
23265
591302

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5235
SELECT + CAST( NULL AS SIGNED ) + 3 * col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5235
SELECT + CAST ( NULL AS INTEGER ) + 3 * col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 5 * col1 * cor0.col2 FROM tab1 cor0
----
-2850
-6240
-7020

query I rowsort
SELECT - 22 * - 91 FROM tab1 AS cor0
----
2002
2002
2002

query I rowsort
SELECT ALL + col0 * - ( + col2 ) AS col0 FROM tab2
----
-189
-2028
-3002

query I rowsort
SELECT DISTINCT - 17 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-17

skipif mysql # not compatible
query I rowsort
SELECT 21 * + col2 + CAST ( col0 AS REAL ) * col2 + col2 * col0 FROM tab1 AS cor0
----
1458
17376
8493

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * cor0.col0 + col2 + + col0 col1 FROM tab2 AS cor0
----
2132
223
3119

query I rowsort
SELECT - col1 + - 95 AS col0 FROM tab0
----
-181
-186
-192

query I rowsort
SELECT DISTINCT - 33 + - col1 FROM tab2
----
-50
-64
-92

query I rowsort
SELECT + ( col1 ) * col0 + col0 AS col1 FROM tab0
----
2088
3430
8188

query I rowsort
SELECT + 41 * col0 AS col0 FROM tab2
----
287
3198
3239

query I rowsort
SELECT ALL - col0 + - col1 + ( + 72 ) * - col0 AS col0 FROM tab0
----
-1838
-2652
-6588

onlyif mysql # use DIV operator for integer division
query I rowsort label-5247
SELECT + cor0.col1 DIV - cor0.col2 + col2 + - col1 col0 FROM tab1 AS cor0
----
28
47
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5247
SELECT + cor0.col1 / - cor0.col2 + col2 + - col1 col0 FROM tab1 AS cor0
----
28
47
83

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5248
SELECT ALL + + col1 * col0 + CAST( + col0 AS SIGNED ) FROM tab0 AS cor0
----
2088
3430
8188

skipif mysql # not compatible
query I rowsort label-5248
SELECT ALL + + col1 * col0 + CAST ( + col0 AS INTEGER ) FROM tab0 AS cor0
----
2088
3430
8188

query I rowsort
SELECT DISTINCT ( - col2 ) + + ( + col0 ) + + col2 AS col1 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT DISTINCT - - col2 * cor0.col2 AS col1 FROM tab2 cor0
----
1444
676
729

query I rowsort
SELECT - - col1 + + cor0.col1 AS col0 FROM tab2 AS cor0
----
118
34
62

query I rowsort
SELECT + cor0.col1 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to c61d27a0022e6d022371dc58819ab272

query I rowsort
SELECT DISTINCT + ( + col2 ) + col2 AS col1 FROM tab2 cor0
----
52
54
76

query I rowsort
SELECT - + ( cor0.col0 ) - - col2 FROM tab1 cor0
----
-7
16
51

query I rowsort
SELECT ALL - cor0.col2 + - col2 * col0 * + col0 FROM tab2 AS cor0
----
-1350
-158210
-237196

query I rowsort
SELECT - col0 + col2 * cor0.col2 FROM tab2 AS cor0
----
1365
598
722

query IIIIII rowsort
SELECT * FROM tab2, tab2 AS cor0 WHERE NOT NULL > ( NULL )
----

query I rowsort
SELECT ALL + + col0 + cor0.col1 FROM tab0 cor0
----
110
132
180

query I rowsort
SELECT DISTINCT - col1 + + col2 * cor0.col2 FROM tab1 AS cor0
----
2890
3239
9203

query I rowsort
SELECT + tab0.col1 * tab0.col1 * + col0 + col0 AS col0 FROM tab0
----
177528
329350
737098

query I rowsort
SELECT DISTINCT cor0.col2 * - col0 AS col2 FROM tab1 cor0
----
-162
-3648
-7680

query I rowsort
SELECT ALL + 36 + col1 AS col1 FROM tab1
----
46
49
62

query I rowsort
SELECT DISTINCT + 23 FROM tab1, tab2 AS cor0
----
23

query I rowsort
SELECT ALL col2 + - ( - tab2.col0 ) * col0 FROM tab2
----
6110
6279
76

query I rowsort
SELECT ALL - col0 * cor0.col1 + col2 AS col0 FROM tab2 cor0
----
-1305
-190
-4576

query I rowsort
SELECT ALL - 37 * col1 + col1 * col0 AS col0 FROM tab1 AS cor0
----
-884
270
559

query I rowsort
SELECT ALL + ( - col2 ) * + cor0.col2 + + cor0.col1 FROM tab2 AS cor0
----
-1427
-617
-698

query I rowsort
SELECT DISTINCT ( - col1 ) * - cor0.col2 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT - - ( col0 ) * col1 AS col2 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT ALL - cor0.col0 * ( col2 ) AS col1 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT + + 81 + cor0.col1 * - col2 FROM tab1 AS cor0
----
-1167
-1323
-489

query I rowsort
SELECT ALL + 46 * col2 - col2 * + col2 FROM tab0 AS cor0
----
-2952
429
45

query I rowsort
SELECT col0 * + col2 + + col0 * col0 FROM tab2 AS cor0
----
238
8112
9243

query I rowsort
SELECT DISTINCT - cor0.col2 + + col2 FROM tab1 cor0
----
0

query I rowsort
SELECT - col2 * + col1 * cor0.col0 FROM tab0 AS cor0
----
-3395
-664118
-68112

query I rowsort
SELECT - col1 * col2 - col1 AS col0 FROM tab1 AS cor0
----
-1261
-1430
-580

query I rowsort
SELECT ALL + 75 + + col0 * + col0 * - col1 AS col2 FROM tab2 AS cor0
----
-106022
-1444
-358881

query I rowsort
SELECT DISTINCT cor0.col0 + col2 * + col0 AS col0 FROM tab1 cor0
----
165
3712
7760

query I rowsort
SELECT DISTINCT + - cor0.col0 - + col2 AS col1 FROM tab0 AS cor0
----
-171
-36
-57

query I rowsort
SELECT ALL + 78 * - col2 AS col2 FROM tab1 AS cor0
----
-4212
-4446
-7488

query I rowsort
SELECT + 55 + + col0 FROM tab1 AS cor0
----
119
135
58

query I rowsort
SELECT DISTINCT + ( + col0 ) - col2 AS col0 FROM tab0
----
-9
34
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-5283
SELECT ALL col2 - - col0 DIV + col2 AS col0 FROM tab1
----
54
58
96

skipif mysql # not compatible
query I rowsort label-5283
SELECT ALL col2 - - col0 / + col2 AS col0 FROM tab1
----
54
58
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-5284
SELECT ( 12 ) DIV col0 + tab2.col2 AS col0 FROM tab2
----
26
28
38

skipif mysql # not compatible
query I rowsort label-5284
SELECT ( 12 ) / col0 + tab2.col2 AS col0 FROM tab2
----
26
28
38

query I rowsort
SELECT 54 + + col0 FROM tab2
----
132
133
61

query I rowsort
SELECT ( - col0 ) * + col2 * - col0 AS col2 FROM tab0 AS cor0
----
1225
19008
649522

query I rowsort
SELECT + + ( col2 ) * col2 AS col1 FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT DISTINCT ( 81 ) * col1 - + col0 AS col1 FROM tab2
----
1298
2504
4701

query I rowsort
SELECT ( + 40 ) AS col1 FROM tab2
----
40
40
40

query I rowsort
SELECT 41 AS col0 FROM tab2, tab2 AS cor0, tab2 cor1, tab1 AS cor2
----
81 values hashing to 0733f496a5445ffeac9d19797afe4831

query I rowsort
SELECT DISTINCT - 6 * - cor1.col1 FROM tab1, tab1 AS cor0, tab1 cor1
----
156
60
78

query I rowsort
SELECT + col2 + + 65 * col1 * col0 AS col2 FROM tab2 AS cor0
----
14132
299156
87333

query I rowsort
SELECT - - cor0.col2 * - 40 AS col1 FROM tab2 AS cor0
----
-1040
-1080
-1520

query I rowsort
SELECT + col2 + ( - col0 * col1 ) + col2 AS col1 FROM tab2 AS cor0
----
-1267
-163
-4550

query I rowsort
SELECT col0 + - ( col1 ) FROM tab2 AS cor0
----
-24
19
62

query I rowsort
SELECT + col1 * cor0.col0 + - col1 AS col1 FROM tab1 AS cor0
----
1027
52
630

query I rowsort
SELECT - ( - col0 ) + - col0 AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - - 7 + col1 AS col2 FROM tab2 AS cor0
----
24
38
66

skipif mysql # not compatible
query I rowsort
SELECT - CAST ( + col0 AS REAL ) + cor0.col2 + col1 FROM tab2 AS cor0
----
-24
51
7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5300
SELECT + - CAST( NULL AS DECIMAL ) * 49 + + col1 + col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5300
SELECT + - CAST ( NULL AS REAL ) * 49 + + col1 + col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5301
SELECT ALL - col0 DIV - 32 FROM tab1 AS cor0
----
0
2
2

skipif mysql # not compatible
query I rowsort label-5301
SELECT ALL - col0 / - 32 FROM tab1 AS cor0
----
0
2
2

query I rowsort
SELECT DISTINCT - 39 AS col2 FROM tab0, tab0 AS cor0
----
-39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 97 col1 FROM tab1 cor0
----
97

query I rowsort
SELECT ALL - - cor0.col2 * - 29 FROM tab2 AS cor0
----
-1102
-754
-783

query I rowsort
SELECT ALL - ( - col1 ) + col0 AS col1 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT ALL + ( col1 ) * col2 * + col1 FROM tab1
----
16224
36504
5700

onlyif mysql # use DIV operator for integer division
query I rowsort label-5307
SELECT DISTINCT + - col0 + + col2 DIV ( 76 ) AS col0 FROM tab0 cor0
----
-24
-35
-88

skipif mysql # not compatible
query I rowsort label-5307
SELECT DISTINCT + - col0 + + col2 / ( 76 ) AS col0 FROM tab0 cor0
----
-24
-35
-88

query I rowsort
SELECT DISTINCT - col2 + col2 * col0 FROM tab1 AS cor0
----
108
3591
7584

query I rowsort
SELECT + + col1 * - col1 * ( - col1 ) FROM tab2 AS cor0
----
205379
29791
4913

onlyif mysql # use DIV operator for integer division
query I rowsort label-5310
SELECT ALL + - col1 DIV - col0 - 45 AS col0 FROM tab1 cor0
----
-37
-45
-45

skipif mysql # not compatible
query I rowsort label-5310
SELECT ALL + - col1 / - col0 - 45 AS col0 FROM tab1 cor0
----
-37
-45
-45

query I rowsort
SELECT 5 * col1 - + col1 FROM tab1
----
104
40
52

query I rowsort
SELECT DISTINCT 70 + - col0 * tab1.col1 FROM tab1
----
-570
-8
-970

query I rowsort
SELECT - 29 + 18 * - tab1.col2 FROM tab1
----
-1001
-1055
-1757

query I rowsort
SELECT ALL - 30 AS col0 FROM tab0, tab1 cor0
----
9 values hashing to 56fa25f9fb8040460fe3c894000ea8fb

query I rowsort
SELECT ( col2 ) * - col0 * - col1 - + col0 FROM tab2
----
119574
50955
5852

query I rowsort
SELECT + - col1 - - 28 FROM tab1 AS cor0
----
15
18
2

query I rowsort
SELECT DISTINCT - col2 * + col1 + - col0 * + col1 AS col2 FROM tab0 AS cor0
----
-15561
-3492
-4902

query I rowsort
SELECT DISTINCT + - cor0.col1 * - ( col0 ) FROM tab1 cor0
----
1040
640
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-5319
SELECT + col2 DIV - 84 + col0 DIV cor0.col1 + col1 AS col0 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-5319
SELECT + col2 / - 84 + col0 / cor0.col1 + col1 AS col0 FROM tab0 AS cor0
----
86
91
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-5320
SELECT ALL cor0.col1 DIV col1 AS col0 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5320
SELECT ALL cor0.col1 / col1 AS col0 FROM tab0 AS cor0
----
1
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-5321
SELECT - col0 DIV + col0 + col1 + + col2 FROM tab1 AS cor0
----
108
66
79

skipif mysql # not compatible
query I rowsort label-5321
SELECT - col0 / + col0 + col1 + + col2 FROM tab1 AS cor0
----
108
66
79

query I rowsort
SELECT col1 + - cor0.col1 + col2 AS col1 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT - col2 * - col0 + col0 * col1 AS col1 FROM tab0
----
15397
2856
3430

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * 74 * + 60 col2 FROM tab1
----
13320
284160
355200

query I rowsort
SELECT - col0 * 31 + col2 AS col0 FROM tab2 AS cor0
----
-190
-2392
-2411

query I rowsort
SELECT DISTINCT - 86 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
-86

onlyif mysql # use DIV operator for integer division
query I rowsort label-5327
SELECT col1 DIV col1 + + 12 AS col1 FROM tab0 cor0
----
13
13
13

skipif mysql # not compatible
query I rowsort label-5327
SELECT col1 / col1 + + 12 AS col1 FROM tab0 cor0
----
13
13
13

query I rowsort
SELECT + ( col2 ) + 92 FROM tab1
----
146
149
188

query I rowsort
SELECT - ( col0 ) * 8 AS col1 FROM tab2
----
-56
-624
-632

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col2 - - 28 col2 FROM tab0, tab2 AS cor0
----
54
55
66

query I rowsort
SELECT + 54 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 81150d59d6c3fc48b4ef5a4a5495bc7a

query I rowsort
SELECT DISTINCT col1 * col1 + - 28 * 19 FROM tab2 cor0
----
-243
2949
429

query I rowsort
SELECT ALL cor0.col0 * col2 + col2 * + col2 AS col0 FROM tab1 AS cor0
----
16896
3078
6897

query I rowsort
SELECT ALL col1 * - col2 + + 7 FROM tab0 AS cor0
----
-2831
-7455
-90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col2 col2 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT ALL + 7 * col1 + col0 * col2 AS col0 FROM tab0 cor0
----
1394
714
7935

query I rowsort
SELECT ALL - col0 - + col1 * col1 * + col0 FROM tab0 AS cor0
----
-177528
-329350
-737098

query I rowsort
SELECT - col2 * - col2 * - col0 + - col2 * col1 FROM tab1 AS cor0
----
-10152
-208506
-738528

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col1 * - col2 col2 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT ALL - col1 * ( col1 ) + - col2 FROM tab2 AS cor0
----
-327
-3507
-988

query I rowsort
SELECT + col1 + 62 * - col2 AS col1 FROM tab0 AS cor0
----
-1960
-4993
35

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5342
SELECT DISTINCT - + col0 * + CAST( NULL AS SIGNED ) * col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5342
SELECT DISTINCT - + col0 * + CAST ( NULL AS INTEGER ) * col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - - col2 * - 49 FROM tab0 AS cor0
----
-1617
-4018
-49

query I rowsort
SELECT ALL + + col0 * - col2 - 69 * col0 FROM tab0 cor0
----
-13439
-2448
-2450

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - ( + cor0.col0 ) col1 FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT - cor0.col1 + - 54 + ( + col2 ) AS col2 FROM tab1 AS cor0
----
-26
-7
29

query I rowsort
SELECT ALL - col0 * - 48 FROM tab0 AS cor0
----
1152
1680
4272

query I rowsort
SELECT DISTINCT col2 * + ( cor0.col1 ) + col1 FROM tab0 AS cor0
----
194
2924
7553

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5349
SELECT DISTINCT - - cor0.col2 * + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5349
SELECT DISTINCT - - cor0.col2 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + - cor0.col0 + 83 AS col0 FROM tab2 AS cor0
----
4
5
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 + col0 col1 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT + - col0 + ( + cor0.col0 ) AS col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + cor0.col2 AS col1 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 7786718bd8042022537378d40ec87475

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5354
SELECT ALL col2 + - CAST( + col1 AS SIGNED ) FROM tab2 AS cor0
----
-33
-4
21

skipif mysql # not compatible
query I rowsort label-5354
SELECT ALL col2 + - CAST ( + col1 AS INTEGER ) FROM tab2 AS cor0
----
-33
-4
21

onlyif mysql # use DIV operator for integer division
query I rowsort label-5355
SELECT - col0 * col1 + + col1 DIV - col0 AS col0 FROM tab0 AS cor0
----
-2067
-3397
-8100

skipif mysql # not compatible
query I rowsort label-5355
SELECT - col0 * col1 + + col1 / - col0 AS col0 FROM tab0 AS cor0
----
-2067
-3397
-8100

query I rowsort
SELECT DISTINCT 29 * col0 FROM tab0 cor0
----
1015
2581
696

query I rowsort
SELECT + 15 * 55 + + col0 * + ( 17 * - col0 ) FROM tab2 AS cor0
----
-102603
-105272
-8

query I rowsort
SELECT DISTINCT + + cor0.col1 * 9 FROM tab2 AS cor0
----
153
279
531

query I rowsort
SELECT 79 * 84 + col2 AS col1 FROM tab0 AS cor0
----
6637
6669
6718

onlyif mysql # use DIV operator for integer division
query I rowsort label-5360
SELECT ALL - - col2 DIV cor0.col0 FROM tab2 AS cor0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-5360
SELECT ALL - - col2 / cor0.col0 FROM tab2 AS cor0
----
0
0
3

query I rowsort
SELECT DISTINCT col0 * + ( col0 ) + - ( col2 ) - col1 AS col1 FROM tab2 AS cor0
----
-9
5999
6186

query I rowsort
SELECT DISTINCT + col0 * - 28 AS col0 FROM tab2 AS cor0
----
-196
-2184
-2212

query I rowsort
SELECT DISTINCT col2 * + 7 * + col0 AS col1 FROM tab0
----
245
51086
5544

query I rowsort
SELECT ALL + 29 * 68 + - col2 FROM tab1 AS cor0
----
1876
1915
1918

query I rowsort
SELECT ALL + cor0.col2 * + cor0.col1 + + col2 FROM tab0 AS cor0
----
2871
7544
98

query I rowsort
SELECT ALL col2 * 97 - tab2.col2 FROM tab2
----
2496
2592
3648

query I rowsort
SELECT DISTINCT - - 91 * + cor0.col0 AS col2 FROM tab0 cor0
----
2184
3185
8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 17 col0 FROM tab0 AS cor0
----
17
17
17

query I rowsort
SELECT - 25 - col2 * + cor0.col1 FROM tab2 AS cor0
----
-1559
-671
-862

query I rowsort
SELECT - 67 AS col2 FROM tab2
----
-67
-67
-67

onlyif mysql # use DIV operator for integer division
query I rowsort label-5371
SELECT DISTINCT - col2 DIV col0 - col2 col1 FROM tab1
----
-57
-72
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5371
SELECT DISTINCT - col2 / col0 - col2 col1 FROM tab1
----
-57
-72
-97

query I rowsort
SELECT + 92 + - col2 FROM tab2 cor0
----
54
65
66

query I rowsort
SELECT - + col2 * col0 * - 62 - col2 AS col1 FROM tab1 AS cor0
----
226119
476064
9990

query I rowsort
SELECT - + cor0.col0 + - cor0.col0 * - cor0.col1 AS col1 FROM tab2 cor0
----
1264
210
4524

query I rowsort
SELECT + col0 * + col0 - col1 FROM tab1 AS cor0
----
-17
4086
6387

query I rowsort
SELECT + 1 * cor0.col1 * - 75 AS col0 FROM tab2 AS cor0
----
-1275
-2325
-4425

onlyif mysql # use DIV operator for integer division
query I rowsort label-5377
SELECT col0 DIV col0 - col1 AS col2 FROM tab1 AS cor0
----
-12
-25
-9

skipif mysql # not compatible
query I rowsort label-5377
SELECT col0 / col0 - col1 AS col2 FROM tab1 AS cor0
----
-12
-25
-9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5378
SELECT DISTINCT CAST( NULL AS SIGNED ) * + 89 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5378
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + 89 FROM tab0
----
NULL

query I rowsort
SELECT ALL - tab1.col1 FROM tab1, tab2, tab0 AS cor0, tab0
----
81 values hashing to 96e9ef2950805bca93a295eeea43ef5b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 53 * - col2 + 90 * col1 col1 FROM tab2 AS cor0
----
3544
4221
6688

query I rowsort
SELECT ALL - col0 + + tab0.col1 * + col1 AS col2 FROM tab0
----
7372
8192
9374

query I rowsort
SELECT DISTINCT - 53 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
-53

query I rowsort
SELECT + col2 + 91 FROM tab1 AS cor0
----
145
148
187

query I rowsort
SELECT - col0 * col0 * 19 + + col0 FROM tab0
----
-10920
-150410
-23240

query I rowsort
SELECT ALL + col0 * + col0 - col1 FROM tab2 AS cor0
----
18
6025
6224

query I rowsort
SELECT - col0 * - cor0.col1 + - 14 AS col0 FROM tab1 AS cor0
----
1026
626
64

query I rowsort
SELECT DISTINCT - - col2 * col0 AS col1 FROM tab1 cor0
----
162
3648
7680

query I rowsort
SELECT - ( 6 ) * - col1 AS col0 FROM tab0 AS cor0
----
516
546
582

query I rowsort
SELECT ALL col2 * - cor0.col0 * - col2 FROM tab1 AS cor0
----
207936
737280
8748

query I rowsort
SELECT ALL - ( - 28 ) * tab1.col1 FROM tab1
----
280
364
728

onlyif mysql # use DIV operator for integer division
query I rowsort label-5391
SELECT ALL col0 * + col1 DIV col1 FROM tab2 AS cor0
----
7
78
79

skipif mysql # not compatible
query I rowsort label-5391
SELECT ALL col0 * + col1 / col1 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT - 70 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 35707a5d99c98b2657c084a50ff1b073

query I rowsort
SELECT - 3 * + col2 FROM tab2
----
-114
-78
-81

query I rowsort
SELECT - 2 * - tab2.col0 AS col0 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 7ce85f3c0cc2feeac41619efbad0a8a1

onlyif mysql # use DIV operator for integer division
query I rowsort label-5395
SELECT col2 DIV + 68 - col1 * col2 AS col1 FROM tab1
----
-1247
-1404
-570

skipif mysql # not compatible
query I rowsort label-5395
SELECT col2 / + 68 - col1 * col2 AS col1 FROM tab1
----
-1247
-1404
-570

query I rowsort
SELECT 15 AS col1 FROM tab0, tab0 cor0, tab2 AS cor1
----
27 values hashing to 71dda9a71fc978ea7b0ac5d8cd2ef1f0

query I rowsort
SELECT - col1 + ( - col2 ) FROM tab0 AS cor0
----
-119
-173
-98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5398
SELECT - col0 + CAST( col2 AS SIGNED ) FROM tab0 cor0
----
-34
-7
9

skipif mysql # not compatible
query I rowsort label-5398
SELECT - col0 + CAST ( col2 AS INTEGER ) FROM tab0 cor0
----
-34
-7
9

query I rowsort
SELECT - col2 * 39 FROM tab1
----
-2106
-2223
-3744

query I rowsort
SELECT DISTINCT + ( col1 + col2 ) AS col2 FROM tab1
----
109
67
80

query I rowsort
SELECT DISTINCT + ( - ( col0 ) ) FROM tab0
----
-24
-35
-89

query I rowsort
SELECT ALL 61 * col2 + col1 FROM tab2 AS cor0
----
1645
1678
2335

query I rowsort
SELECT - 24 - col0 FROM tab0 AS cor0
----
-113
-48
-59

query I rowsort
SELECT ALL + 42 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 64c29db9f1cd7ed4ddeb1735e3e0d442

query I rowsort
SELECT + - 87 + 55 * col2 AS col1 FROM tab2 AS cor0
----
1343
1398
2003

query I rowsort
SELECT ALL + + ( + col1 ) * + col0 AS col1 FROM tab2 cor0
----
1343
217
4602

query I rowsort
SELECT + 74 * cor0.col0 FROM tab2 AS cor0
----
518
5772
5846

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 62 col2 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to d2579f9395350eda865ff3a2d38a74f6

query I rowsort
SELECT 61 + cor0.col1 FROM tab0 AS cor0
----
147
152
158

query I rowsort
SELECT ALL 7 - - col2 FROM tab0
----
40
8
89

query I rowsort
SELECT ALL + col1 - col1 * + 22 FROM tab1
----
-210
-273
-546

query I rowsort
SELECT ALL cor0.col1 AS col2 FROM tab1, tab1 AS cor0, tab0 AS cor1, tab0 AS cor2
----
81 values hashing to d7d3fabcafbed14f0d6ffd37195c971c

query I rowsort
SELECT ALL col0 * cor0.col2 + 64 FROM tab1 AS cor0
----
226
3712
7744

query I rowsort
SELECT - 80 * + col1 - + 83 FROM tab1 AS cor0
----
-1123
-2163
-883

query I rowsort
SELECT ALL col2 - 40 AS col2 FROM tab1 AS cor0
----
14
17
56

query I rowsort
SELECT DISTINCT + col2 + 7 FROM tab1 cor0
----
103
61
64

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5417
SELECT DISTINCT - col0 + + CAST( col2 AS SIGNED ) * cor0.col2 FROM tab2 AS cor0
----
1365
598
722

skipif mysql # not compatible
query I rowsort label-5417
SELECT DISTINCT - col0 + + CAST ( col2 AS INTEGER ) * cor0.col2 FROM tab2 AS cor0
----
1365
598
722

query I rowsort
SELECT DISTINCT + cor0.col0 - ( col1 * col1 ) FROM tab2 AS cor0
----
-210
-3403
-954

query I rowsort
SELECT - col0 * + 54 * cor0.col2 AS col1 FROM tab1 AS cor0
----
-196992
-414720
-8748

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5420
SELECT - cor0.col2 * CAST( NULL AS DECIMAL ) * col0 + + cor0.col0 * col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5420
SELECT - cor0.col2 * CAST ( NULL AS REAL ) * col0 + + cor0.col0 * col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - - col2 * + 62 * - col2 + + col0 + col1 FROM tab1 AS cor0
----
-180763
-201364
-571299

query I rowsort
SELECT ALL + + col0 * - col2 - col2 * + col2 * col2 AS col0 FROM tab1 AS cor0
----
-157626
-188841
-892416

onlyif mysql # use DIV operator for integer division
query I rowsort label-5423
SELECT DISTINCT - col1 DIV col0 - 51 FROM tab2 AS cor0
----
-51
-55

skipif mysql # not compatible
query I rowsort label-5423
SELECT DISTINCT - col1 / col0 - 51 FROM tab2 AS cor0
----
-51
-55

query I rowsort
SELECT DISTINCT col1 + 42 AS col1 FROM tab1 cor0
----
52
55
68

query I rowsort
SELECT ALL - cor0.col2 + 13 * + col0 FROM tab0 AS cor0
----
1075
279
454

query I rowsort
SELECT DISTINCT + + col2 * + 28 - cor0.col0 AS col1 FROM tab2 AS cor0
----
650
749
985

query I rowsort
SELECT DISTINCT + 17 * 87 FROM tab0, tab2 cor0, tab2 AS cor1
----
1479

query I rowsort
SELECT + + 77 * - 45 FROM tab1 AS cor0
----
-3465
-3465
-3465

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + cor0.col2 + ( + col2 ) col1 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5430
SELECT - CAST( NULL AS SIGNED ) * + ( col0 ) * 22 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5430
SELECT - CAST ( NULL AS INTEGER ) * + ( col0 ) * 22 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 * + 82 AS col2 FROM tab1 AS cor0
----
246
5248
6560

query I rowsort
SELECT - + cor0.col1 * cor0.col0 * - col0 AS col0 FROM tab0 AS cor0
----
118825
49536
720811

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5433
SELECT ALL tab0.col0 * CAST( col1 * col2 AS SIGNED ) AS col2 FROM tab0
----
3395
664118
68112

skipif mysql # not compatible
query I rowsort label-5433
SELECT ALL tab0.col0 * CAST ( col1 * col2 AS INTEGER ) AS col2 FROM tab0
----
3395
664118
68112

query I rowsort
SELECT ALL + col2 * - 20 AS col1 FROM tab2 AS cor0
----
-520
-540
-760

query I rowsort
SELECT ALL col2 + col2 + + col0 FROM tab0 AS cor0
----
253
37
90

query I rowsort
SELECT DISTINCT + ( + ( + col1 ) ) * col1 FROM tab1
----
100
169
676

query I rowsort
SELECT ALL - col1 * col0 + + col0 FROM tab1 AS cor0
----
-576
-75
-960

query I rowsort
SELECT DISTINCT + - col1 * col1 * ( col1 ) - col0 * col2 FROM tab1 AS cor0
----
-17738
-4648
-9877

query I rowsort
SELECT + + 8 * - ( col2 ) * col1 AS col0 FROM tab1 AS cor0
----
-11232
-4560
-9984

query I rowsort
SELECT ALL + col1 - 90 * tab2.col2 AS col0 FROM tab2
----
-2281
-2399
-3403

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * cor0.col1 + cor0.col0 * col0 + + col0 * - col1 col1 FROM tab0 AS cor0
----
-2267
-4326
-7640

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col0 + tab2.col2 - + 81 * col1 col1 FROM tab2
----
-1260
-2477
-4675

query I rowsort
SELECT - col2 * + col0 + col0 AS col2 FROM tab0
----
-7209
-768
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5444
SELECT DISTINCT + col2 * col0 DIV + 85 AS col1 FROM tab0 AS cor0
----
0
85
9

skipif mysql # not compatible
query I rowsort label-5444
SELECT DISTINCT + col2 * col0 / + 85 AS col1 FROM tab0 AS cor0
----
0
85
9

query I rowsort
SELECT ALL ( cor0.col2 ) AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + - ( tab0.col0 ) col1 FROM tab0
----
-178
-48
-70

query I rowsort
SELECT ALL - tab2.col0 + + ( - 60 ) + col2 AS col2 FROM tab2
----
-101
-112
-40

query I rowsort
SELECT DISTINCT - col1 + 77 AS col0 FROM tab0
----
-14
-20
-9

onlyif mysql # use DIV operator for integer division
query I rowsort label-5449
SELECT DISTINCT + col2 * + col2 + - col2 DIV - ( - cor0.col0 ) FROM tab1 AS cor0
----
2898
3249
9215

skipif mysql # not compatible
query I rowsort label-5449
SELECT DISTINCT + col2 * + col2 + - col2 / - ( - cor0.col0 ) FROM tab1 AS cor0
----
2898
3249
9215

query I rowsort
SELECT + - ( col2 ) - + col0 FROM tab1 AS cor0
----
-121
-176
-57

skipif mysql # not compatible
query I rowsort
SELECT ALL + CAST ( - col1 AS REAL ) + col1 AS col0 FROM tab0
----
0
0
0

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab2 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab2 AS cor2
----
3645 values hashing to 944e54872ec2718f5c1c2710e1806e36

query I rowsort
SELECT - 67 * - col0 + - col1 - - 75 * - col0 AS col1 FROM tab2 AS cor0
----
-649
-683
-87

query I rowsort
SELECT DISTINCT + + 61 AS col1 FROM tab1 cor0
----
61

query I rowsort
SELECT col1 + 92 + - cor0.col1 FROM tab0 AS cor0
----
92
92
92

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5456
SELECT col0 + col2 * col1 - + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5456
SELECT col0 + col2 * col1 - + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5457
SELECT DISTINCT + col1 / + col1 + - col2 * CAST( NULL AS SIGNED ) + - col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5457
SELECT DISTINCT + col1 / + col1 + - col2 * CAST ( NULL AS INTEGER ) + - col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5458
SELECT CAST( NULL AS SIGNED ) + cor0.col2 * + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5458
SELECT CAST ( NULL AS INTEGER ) + cor0.col2 * + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 1 + col0 AS col0 FROM tab1 AS cor0
----
4
65
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-5460
SELECT DISTINCT + col1 DIV cor0.col1 + + col2 AS col2 FROM tab0 AS cor0
----
2
34
83

skipif mysql # not compatible
query I rowsort label-5460
SELECT DISTINCT + col1 / cor0.col1 + + col2 AS col2 FROM tab0 AS cor0
----
2
34
83

query I rowsort
SELECT ALL col1 * - 81 + - cor0.col0 FROM tab0 AS cor0
----
-6990
-7460
-7892

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 65 + - col0 col2 FROM tab2 AS cor0
----
-143
-144
-72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 * col1 col2 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT DISTINCT 87 + - col2 AS col0 FROM tab2 AS cor0
----
49
60
61

query I rowsort
SELECT DISTINCT + col0 * + cor0.col2 AS col1 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT DISTINCT + 28 + - col1 AS col2 FROM tab1 AS cor0
----
15
18
2

query I rowsort
SELECT + ( col1 ) + + col0 AS col0 FROM tab2 cor0
----
137
38
96

query I rowsort
SELECT ALL - 27 + col1 FROM tab0 AS cor0
----
59
64
70

query I rowsort
SELECT DISTINCT - col2 * col0 + + cor0.col2 FROM tab2 AS cor0
----
-162
-2002
-2964

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab2 AS cor0, tab0 AS cor1, tab2, tab0 cor2
----
3645 values hashing to 58b53d9f2c5d79e6fe94b4a97272440e

query I rowsort
SELECT ALL col1 + - 16 AS col0 FROM tab2 AS cor0
----
1
15
43

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5472
SELECT DISTINCT + col0 * CAST( + 23 AS SIGNED ) - + col2 FROM tab0 AS cor0
----
1965
519
804

skipif mysql # not compatible
query I rowsort label-5472
SELECT DISTINCT + col0 * CAST ( + 23 AS INTEGER ) - + col2 FROM tab0 AS cor0
----
1965
519
804

query I rowsort
SELECT ALL - col0 * + col0 + cor0.col2 + cor0.col1 * col1 FROM tab1 AS cor0
----
-3939
-6135
721

query I rowsort
SELECT DISTINCT - col1 * - 54 FROM tab2 AS cor0
----
1674
3186
918

query I rowsort
SELECT DISTINCT col0 + - 46 * + 93 FROM tab0 cor0
----
-4189
-4243
-4254

query I rowsort
SELECT ALL 71 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0

query I rowsort
SELECT ALL - - col1 * col0 + - 23 + col1 AS col0 FROM tab2 AS cor0
----
1337
225
4638

skipif mysql # not compatible
query I rowsort
SELECT + cor0.col0 * + CAST ( cor0.col0 AS REAL ) FROM tab0, tab1 AS cor0
----
9 values hashing to 4829ede06f586935ff95a5b0dfdb9199

query I rowsort
SELECT DISTINCT + cor0.col2 + - 17 FROM tab1 AS cor0
----
37
40
79

query I rowsort
SELECT col0 * 8 * - 51 FROM tab0 AS cor0
----
-14280
-36312
-9792

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5481
SELECT DISTINCT + col2 - - CAST( NULL AS SIGNED ) col2 FROM tab0 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5481
SELECT DISTINCT + col2 - - CAST ( NULL AS INTEGER ) col2 FROM tab0 cor0
----
NULL

query I rowsort
SELECT col1 + col2 AS col1 FROM tab2 cor0
----
55
58
85

query I rowsort
SELECT + - col2 + - 73 FROM tab1 AS cor0
----
-127
-130
-169

query I rowsort
SELECT ALL - + col1 + - 85 AS col0 FROM tab2 AS cor0
----
-102
-116
-144

query I rowsort
SELECT + cor0.col2 * - 14 FROM tab2 AS cor0
----
-364
-378
-532

query I rowsort
SELECT + cor0.col1 * - 31 AS col1 FROM tab0 cor0
----
-2666
-2821
-3007

query I rowsort
SELECT - + col2 * 38 FROM tab1 AS cor0
----
-2052
-2166
-3648

query I rowsort
SELECT col2 - 85 * + col1 AS col0 FROM tab2 AS cor0
----
-1407
-2608
-4989

query I rowsort
SELECT - + col1 * col0 + + col0 FROM tab0 AS cor0
----
-2040
-3360
-8010

query I rowsort
SELECT col2 + - ( 14 ) AS col2 FROM tab2
----
12
13
24

query I rowsort
SELECT + 78 + - 59 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11

query I rowsort
SELECT DISTINCT col2 * col2 * + 73 AS col2 FROM tab0
----
490852
73
79497

onlyif mysql # use DIV operator for integer division
query I rowsort label-5493
SELECT - - 65 DIV col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5493
SELECT - - 65 / col1 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 0 col0 FROM tab0, tab0 cor0, tab2 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

query I rowsort
SELECT + 41 * - col0 AS col1 FROM tab1 AS cor0
----
-123
-2624
-3280

onlyif mysql # use DIV operator for integer division
query I rowsort label-5496
SELECT 94 DIV col2 AS col0 FROM tab0 AS cor0
----
1
2
94

skipif mysql # not compatible
query I rowsort label-5496
SELECT 94 / col2 AS col0 FROM tab0 AS cor0
----
1
2
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 col0 FROM tab0, tab1, tab1 cor0
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

onlyif mysql # use DIV operator for integer division
query I rowsort label-5498
SELECT DISTINCT + col1 DIV - tab2.col0 AS col1 FROM tab2
----
-4
0

skipif mysql # not compatible
query I rowsort label-5498
SELECT DISTINCT + col1 / - tab2.col0 AS col1 FROM tab2
----
-4
0

query I rowsort
SELECT col1 * tab1.col0 + - tab1.col1 AS col1 FROM tab1
----
1027
52
630

query I rowsort
SELECT DISTINCT ( col1 + - ( + ( col1 ) ) ) * - col0 FROM tab2
----
0

query I rowsort
SELECT - cor0.col0 FROM tab2, tab1, tab1 AS cor0, tab0
----
81 values hashing to 08e380e50b0cb64601bc84e5254deef4

onlyif mysql # use DIV operator for integer division
query I rowsort label-5502
SELECT col2 DIV col2 + - col0 AS col0 FROM tab0 AS cor0
----
-23
-34
-88

skipif mysql # not compatible
query I rowsort label-5502
SELECT col2 / col2 + - col0 AS col0 FROM tab0 AS cor0
----
-23
-34
-88

query I rowsort
SELECT - + ( - cor0.col2 ) AS col0 FROM tab0, tab1, tab0 cor0
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT DISTINCT - 65 * + tab0.col1 AS col0 FROM tab0
----
-5590
-5915
-6305

query I rowsort
SELECT - ( - tab1.col1 ) AS col2 FROM tab1
----
10
13
26

query I rowsort
SELECT tab2.col2 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT col2 * cor0.col2 + + cor0.col1 AS col1 FROM tab2 AS cor0
----
1461
735
760

onlyif mysql # use DIV operator for integer division
query I rowsort label-5508
SELECT - - col1 * col0 + col0 DIV + col0 FROM tab0 AS cor0
----
2065
3396
8100

skipif mysql # not compatible
query I rowsort label-5508
SELECT - - col1 * col0 + col0 / + col0 FROM tab0 AS cor0
----
2065
3396
8100

onlyif mysql # use DIV operator for integer division
query I rowsort label-5509
SELECT + col2 DIV col1 + col1 AS col0 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-5509
SELECT + col2 / col1 + col1 AS col0 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT col0 * col2 + col0 * - col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT cor0.col1 * col0 - + col1 AS col1 FROM tab2 AS cor0
----
1326
186
4543

query I rowsort
SELECT - col0 + col1 + + col1 * cor0.col0 FROM tab2 AS cor0
----
1281
241
4583

query I rowsort
SELECT col2 + - cor0.col1 * - col0 * col0 AS col1 FROM tab2 AS cor0
----
106135
1546
358982

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + + col0 * col1 col1 FROM tab2 AS cor0
----
1326
186
4543

query I rowsort
SELECT + col0 * col2 + col2 AS col2 FROM tab0 AS cor0
----
36
7380
825

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab2 AS cor0 WHERE NULL NOT IN ( - col2 )
----

query I rowsort
SELECT col2 * + col2 + + col1 FROM tab2
----
1461
735
760

query I rowsort
SELECT ALL tab1.col2 + - col1 * tab1.col2 FROM tab1
----
-1152
-1350
-513

onlyif mysql # use DIV operator for integer division
query I rowsort label-5519
SELECT - col0 * col1 DIV + col1 FROM tab1
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-5519
SELECT - col0 * col1 / + col1 FROM tab1
----
-3
-64
-80

onlyif mysql # use DIV operator for integer division
query I rowsort label-5520
SELECT DISTINCT col0 DIV - col0 - col0 FROM tab1
----
-4
-65
-81

skipif mysql # not compatible
query I rowsort label-5520
SELECT DISTINCT col0 / - col0 - col0 FROM tab1
----
-4
-65
-81

query I rowsort
SELECT + tab1.col0 * + col0 * col1 + col1 + col2 FROM tab1
----
314
41027
83309

query I rowsort
SELECT col0 + + col1 + col1 FROM tab2 WHERE NOT + col0 / col0 = ( - col2 )
----
113
196
69

query I rowsort
SELECT + col1 + + tab2.col0 + col2 FROM tab2
----
134
163
65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * tab1.col1 col0 FROM tab1
----
-1248
-1404
-570

query I rowsort
SELECT 94 AS col2 FROM tab2, tab0 AS cor0, tab0 cor1
----
27 values hashing to a4d239626cf0546ac1b2f57bb8407089

query I rowsort
SELECT ALL col2 AS col1 FROM tab0 WHERE NOT - col0 <= NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE col1 * col0 <= col0 * col0
----
64
10
57
80
13
96

query I rowsort
SELECT col1 + - col2 * col0 + - col0 * - col1 * col2 FROM tab1 WHERE ( NULL ) NOT IN ( tab1.col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * col1 + col0 col1 FROM tab2
----
-1264
-210
-4524

query I rowsort
SELECT tab2.col2 + tab2.col2 + col1 AS col1 FROM tab2
----
111
85
93

query I rowsort
SELECT ALL col2 + - col2 + + 61 AS col0 FROM tab0
----
61
61
61

query I rowsort
SELECT ALL + col0 * - col2 + - col2 * - col1 FROM tab1
----
-3078
-6432
1242

query I rowsort
SELECT DISTINCT - col0 * col2 + col1 + - col1 * col1 * + col0 AS col0 FROM tab2
----
-25816
-273487
-6885

query I rowsort
SELECT - col2 * - col2 + col1 + col1 FROM tab1 AS cor0
----
2968
3269
9242

onlyif mysql # use DIV operator for integer division
query I rowsort label-5535
SELECT 16 DIV - col2 AS col1 FROM tab0
----
-16
0
0

skipif mysql # not compatible
query I rowsort label-5535
SELECT 16 / - col2 AS col1 FROM tab0
----
-16
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5536
SELECT - 88 DIV col1 AS col1 FROM tab2 cor0
----
-1
-2
-5

skipif mysql # not compatible
query I rowsort label-5536
SELECT - 88 / col1 AS col1 FROM tab2 cor0
----
-1
-2
-5

query I rowsort
SELECT DISTINCT + 65 + col2 AS col1 FROM tab1 AS cor0
----
119
122
161

onlyif mysql # use DIV operator for integer division
query I rowsort label-5538
SELECT + 12 DIV cor0.col1 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5538
SELECT + 12 / cor0.col1 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + - col0 * - col0 + col2 AS col2 FROM tab0 AS cor0
----
1226
609
8003

query I rowsort
SELECT ALL col2 + cor0.col1 * + col1 FROM tab2 AS cor0
----
327
3507
988

query I rowsort
SELECT ALL col1 * col1 * + col2 + - col0 * col2 * + col2 AS col1 FROM tab2
----
-103094
20844
37778

onlyif mysql # use DIV operator for integer division
query I rowsort label-5542
SELECT DISTINCT tab0.col1 DIV col2 + + col0 DIV - col2 AS col1 FROM tab0
----
0
2
62

skipif mysql # not compatible
query I rowsort label-5542
SELECT DISTINCT tab0.col1 / col2 + + col0 / - col2 AS col1 FROM tab0
----
0
2
62

query I rowsort
SELECT col1 + col1 FROM tab1 WHERE ( col2 * col0 + col2 ) IN ( col2 + + col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col0 - col1 * col1 col0 FROM tab2
----
-912
2603
5952

query I rowsort
SELECT DISTINCT + col2 * + col2 + col2 * + col2 FROM tab2
----
1352
1458
2888

query I rowsort
SELECT ALL + col2 FROM tab2 WHERE NOT NULL IN ( - col1 * col2 )
----

query III rowsort
SELECT * FROM tab1 WHERE col1 * + col0 + col0 <= NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-5548
SELECT tab2.col1 DIV + col1 col2 FROM tab2
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5548
SELECT tab2.col1 / + col1 col2 FROM tab2
----
1
1
1

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( col0 ) < NULL
----

query I rowsort
SELECT ALL - col0 FROM tab0 cor0 WHERE NOT + col1 IN ( - col0 )
----
-24
-35
-89

query I rowsort
SELECT + col2 * cor0.col0 + - col1 FROM tab2 AS cor0
----
158
1969
2985

query I rowsort
SELECT - col1 FROM tab0 WHERE ( - col0 * - col2 ) <= ( col1 )
----
-97

query I rowsort
SELECT DISTINCT col0 * - col1 - col0 FROM tab2 WHERE NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT + 81 * col1 + + 13 AS col0 FROM tab1 cor0
----
1066
2119
823

query I rowsort
SELECT ALL + 97 + col1 FROM tab0 AS cor0
----
183
188
194

query I rowsort
SELECT ALL col1 * - col1 + col1 AS col0 FROM tab2 AS cor0
----
-272
-3422
-930

query I rowsort
SELECT 6 + - col2 AS col1 FROM tab2 cor0
----
-20
-21
-32

query I rowsort
SELECT ALL - 3 * col1 FROM tab0 AS cor0
----
-258
-273
-291

onlyif mysql # use DIV operator for integer division
query I rowsort label-5559
SELECT ALL + ( + col0 + - col0 ) DIV - col2 col0 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5559
SELECT ALL + ( + col0 + - col0 ) / - col2 col0 FROM tab1
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5560
SELECT - 95 DIV + cor0.col0 FROM tab0 AS cor0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-5560
SELECT - 95 / + cor0.col0 FROM tab0 AS cor0
----
-1
-2
-3

query I rowsort
SELECT col0 * col1 - cor0.col2 FROM tab2 cor0
----
1305
190
4576

query I rowsort
SELECT - + 26 * - col1 FROM tab1 AS cor0
----
260
338
676

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + col0 + col2 col0 FROM tab0
----
133
143
262

onlyif mysql # use DIV operator for integer division
query I rowsort label-5564
SELECT - CAST( col1 AS SIGNED ) + - col0 DIV ( ( col1 ) * - col1 ) FROM tab1 AS cor0
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-5564
SELECT - CAST ( col1 AS INTEGER ) + - col0 / ( ( col1 ) * - col1 ) FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT - col0 * - 98 FROM tab2 AS cor0
----
686
7644
7742

onlyif mysql # use DIV operator for integer division
query I rowsort label-5566
SELECT DISTINCT - + 92 + - col0 DIV - col1 FROM tab0 AS cor0
----
-92

skipif mysql # not compatible
query I rowsort label-5566
SELECT DISTINCT - + 92 + - col0 / - col1 FROM tab0 AS cor0
----
-92

query I rowsort
SELECT DISTINCT + - col0 + 30 FROM tab1 AS cor0
----
-34
-50
27

query I rowsort
SELECT ALL + col2 + + 33 FROM tab1
----
129
87
90

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5569
SELECT + CAST( NULL AS SIGNED ) + - col2 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5569
SELECT + CAST ( NULL AS INTEGER ) + - col2 AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 * - col1 + cor0.col2 * - cor0.col1 FROM tab2 AS cor0
----
-1292
-1674
-3068

onlyif mysql # use DIV operator for integer division
query I rowsort label-5571
SELECT ALL + + CAST( col2 AS SIGNED ) + + col1 DIV col0 FROM tab2 AS cor0
----
26
31
38

skipif mysql # not compatible
query I rowsort label-5571
SELECT ALL + + CAST ( col2 AS INTEGER ) + + col1 / col0 FROM tab2 AS cor0
----
26
31
38

query I rowsort
SELECT DISTINCT + col1 * - col0 + + col1 * - col0 FROM tab2 AS cor0
----
-2686
-434
-9204

query I rowsort
SELECT ALL + + 4 AS col2 FROM tab2 AS cor0
----
4
4
4

query I rowsort
SELECT + + ( 76 ) + + col1 * + cor0.col0 * + col2 AS col2 FROM tab2 AS cor0
----
119728
51110
5935

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5575
SELECT + CAST( NULL AS SIGNED ) + - 49 * col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5575
SELECT + CAST ( NULL AS INTEGER ) + - 49 * col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 3 * 91 AS col1 FROM tab2 AS cor0
----
273
273
273

query I rowsort
SELECT - - col0 * 40 AS col1 FROM tab1 AS cor0
----
120
2560
3200

query I rowsort
SELECT DISTINCT col0 + col0 AS col0 FROM tab2 cor0
----
14
156
158

query I rowsort
SELECT ALL - cor0.col2 * col0 * + col2 AS col2 FROM tab1 AS cor0
----
-207936
-737280
-8748

query I rowsort
SELECT col2 * + col2 + col0 AS col2 FROM tab1
----
2919
3313
9296

query I rowsort
SELECT DISTINCT 35 * + col1 FROM tab2
----
1085
2065
595

query I rowsort
SELECT - ( - col1 ) * col1 + col2 * col2 AS col0 FROM tab1
----
3349
3592
9385

query I rowsort
SELECT ( tab0.col0 * + col1 ) AS col2 FROM tab0
----
2064
3395
8099

query I rowsort
SELECT + ( 83 ) + col0 AS col1 FROM tab2 AS cor0
----
161
162
90

query I rowsort
SELECT DISTINCT + - 27 + - col1 AS col0 FROM tab1 AS cor0
----
-37
-40
-53

query I rowsort
SELECT ALL - ( col0 ) AS col2 FROM tab1 cor0
----
-3
-64
-80

query I rowsort
SELECT ALL + col1 + 54 AS col0 FROM tab2 AS cor0
----
113
71
85

query I rowsort
SELECT + 24 + + col1 * + cor0.col1 * col0 FROM tab0 AS cor0
----
177528
329339
737033

query I rowsort
SELECT - cor0.col0 + col0 * col2 AS col0 FROM tab1 cor0
----
159
3584
7600

query I rowsort
SELECT DISTINCT - + 5 + + col2 * - col2 AS col0 FROM tab2 cor0
----
-1449
-681
-734

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 * col1 col0 FROM tab1 AS cor0
----
1040
640
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + + col2 * + col0 * + col1 col0 FROM tab0 AS cor0
----
3430
664207
68136

query I rowsort
SELECT ALL - col2 * col2 + - col1 AS col1 FROM tab1 AS cor0
----
-2942
-3259
-9229

onlyif mysql # use DIV operator for integer division
query I rowsort label-5594
SELECT DISTINCT col0 DIV + 15 + col2 FROM tab2 AS cor0
----
27
31
43

skipif mysql # not compatible
query I rowsort label-5594
SELECT DISTINCT col0 / + 15 + col2 FROM tab2 AS cor0
----
27
31
43

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5595
SELECT ALL col0 * - CAST( col0 AS SIGNED ) * + cor0.col2 + + cor0.col2 * col2 FROM tab0 cor0
----
-1224
-17919
-642798

skipif mysql # not compatible
query I rowsort label-5595
SELECT ALL col0 * - CAST ( col0 AS INTEGER ) * + cor0.col2 + + cor0.col2 * col2 FROM tab0 cor0
----
-1224
-17919
-642798

query I rowsort
SELECT - col0 * - col1 - + col2 * col0 AS col0 FROM tab0 AS cor0
----
1272
3360
801

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 + 92 col1 FROM tab2 AS cor0
----
118
119
130

query I rowsort
SELECT ALL cor0.col0 * + 31 + col1 FROM tab1 AS cor0
----
119
1994
2493

query I rowsort
SELECT DISTINCT + col2 - - ( 66 ) * col1 FROM tab1 AS cor0
----
1770
717
954

query I rowsort
SELECT - cor0.col2 - + col1 AS col2 FROM tab0 AS cor0
----
-119
-173
-98

query I rowsort
SELECT + col0 * + 81 + + 63 FROM tab2 AS cor0
----
630
6381
6462

query I rowsort
SELECT + col2 + ( col1 ) * + col1 FROM tab1 AS cor0
----
157
265
730

query I rowsort
SELECT - + cor0.col2 + + cor0.col1 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT - 77 + + cor0.col1 AS col2 FROM tab0 AS cor0
----
14
20
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-5605
SELECT + col0 * col2 + col0 * - tab0.col0 DIV + col0 AS col0 FROM tab0
----
0
7209
768

skipif mysql # not compatible
query I rowsort label-5605
SELECT + col0 * col2 + col0 * - tab0.col0 / + col0 AS col0 FROM tab0
----
0
7209
768

query I rowsort
SELECT DISTINCT + + 45 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
45

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab1, tab1 AS cor2
----
3645 values hashing to d95cefa45985203e212af5af5dd9be5b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + 14 col0 FROM tab0 AS cor0
----
-1246
-336
-490

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col1 * - 62 col1 FROM tab0 AS cor0
----
-458552
-513422
-583358

query I rowsort
SELECT - col0 * + ( + col0 ) FROM tab2 AS cor0
----
-49
-6084
-6241

query I rowsort
SELECT ALL - ( cor2.col1 ) FROM tab2, tab1 AS cor0, tab1 cor1, tab1 AS cor2
----
81 values hashing to 96e9ef2950805bca93a295eeea43ef5b

query I rowsort
SELECT - 95 AS col0 FROM tab2 cor0
----
-95
-95
-95

query I rowsort
SELECT ALL ( - col0 ) * col0 + col1 * cor0.col0 AS col2 FROM tab0 AS cor0
----
1488
178
2170

query I rowsort
SELECT DISTINCT col0 - 18 * cor0.col1 AS col0 FROM tab2 AS cor0
----
-227
-551
-984

query I rowsort
SELECT - + col0 * - col1 + cor0.col1 FROM tab2 cor0
----
1360
248
4661

query I rowsort
SELECT col1 * - 91 + cor0.col0 AS col2 FROM tab2 AS cor0
----
-1468
-2814
-5291

query I rowsort
SELECT + 36 * 63 * cor0.col1 - + 68 FROM tab1 cor0
----
22612
29416
58900

query I rowsort
SELECT + 65 * - cor0.col0 * - col2 FROM tab0 AS cor0
----
2275
474370
51480

query I rowsort
SELECT ALL - 29 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 56a8aa9e4c5d3c934d1853afeb22653e

query I rowsort
SELECT - col1 + 79 * - ( + col2 ) FROM tab1 AS cor0
----
-4292
-4513
-7597

query I rowsort
SELECT DISTINCT col2 * col1 + 30 * col2 AS col2 FROM tab0 AS cor0
----
127
3828
9922

query I rowsort
SELECT DISTINCT - ( + col2 + col0 ) * tab1.col2 FROM tab1
----
-16896
-3078
-6897

query I rowsort
SELECT ALL ( + col0 * col0 ) AS col1 FROM tab0
----
1225
576
7921

query I rowsort
SELECT DISTINCT - col1 * + cor0.col2 * 81 AS col1 FROM tab2 AS cor0
----
-124254
-52326
-67797

onlyif mysql # use DIV operator for integer division
query I rowsort label-5625
SELECT DISTINCT - col0 DIV + cor0.col2 FROM tab0 AS cor0
----
-1
-35
0

skipif mysql # not compatible
query I rowsort label-5625
SELECT DISTINCT - col0 / + cor0.col2 FROM tab0 AS cor0
----
-1
-35
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 * 31 col1 FROM tab2 AS cor0
----
-1178
-806
-837

query I rowsort
SELECT DISTINCT + col2 * + 21 FROM tab1 AS cor0
----
1134
1197
2016

query I rowsort
SELECT 3 * - col2 FROM tab1
----
-162
-171
-288

query I rowsort
SELECT ALL - + cor1.col1 AS col1 FROM tab0, tab2 AS cor0, tab2, tab0 AS cor1
----
81 values hashing to 786a240f80bef6f9c6a190e92cd4f9e8

query I rowsort
SELECT DISTINCT 79 + col1 * col0 * tab2.col2 + col0 AS col1 FROM tab2
----
119809
51192
5945

query I rowsort
SELECT + 1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * + 32 col1 FROM tab1
----
1728
1824
3072

query I rowsort
SELECT ALL col2 + - 98 AS col2 FROM tab1
----
-2
-41
-44

query I rowsort
SELECT col2 + + col1 + + col0 * ( - 69 ) AS col1 FROM tab0 AS cor0
----
-1537
-2317
-5968

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col0 + ( 13 ) col1 FROM tab2, tab2 AS cor0
----
-65
-66
6

query I rowsort
SELECT ALL 90 - + col2 * col0 FROM tab0
----
-702
-7208
55

onlyif mysql # use DIV operator for integer division
query I rowsort label-5637
SELECT + - col0 DIV + cor0.col1 FROM tab1 AS cor0
----
-6
-6
0

skipif mysql # not compatible
query I rowsort label-5637
SELECT + - col0 / + cor0.col1 FROM tab1 AS cor0
----
-6
-6
0

query I rowsort
SELECT DISTINCT cor0.col2 * + col0 * col2 AS col0 FROM tab0 AS cor0
----
26136
35
598436

query I rowsort
SELECT ALL - col1 + + cor0.col2 * + ( + col2 * - col2 ) AS col2 FROM tab2 AS cor0
----
-17635
-19714
-54889

query I rowsort
SELECT ALL - 60 + + cor0.col0 AS col2 FROM tab0 AS cor0
----
-25
-36
29

query I rowsort
SELECT + 11 + col2 * + col2 FROM tab0 AS cor0
----
1100
12
6735

query I rowsort
SELECT col1 + - col2 * ( - col0 ) * col0 AS col1 FROM tab1 AS cor0
----
233482
512
614413

query I rowsort
SELECT ALL - ( - col2 ) * cor0.col0 FROM tab1 AS cor0
----
162
3648
7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-5644
SELECT - col1 + - col1 DIV + col1 AS col2 FROM tab0 AS cor0
----
-87
-92
-98

skipif mysql # not compatible
query I rowsort label-5644
SELECT - col1 + - col1 / + col1 AS col2 FROM tab0 AS cor0
----
-87
-92
-98

query I rowsort
SELECT DISTINCT + col1 * cor0.col1 + ( col0 ) * + col0 FROM tab1 AS cor0
----
4196
6569
685

query I rowsort
SELECT 83 * 21 + - col2 * col2 FROM tab2 AS cor0
----
1014
1067
299

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 48 * col2 - col0 col1 FROM tab1 cor0
----
-2595
-2800
-4688

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5648
SELECT + CAST( NULL AS DECIMAL ) * ( col2 ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5648
SELECT + CAST ( NULL AS REAL ) * ( col2 ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 11 AS col2 FROM tab2, tab0 AS cor0
----
11

onlyif mysql # use DIV operator for integer division
query I rowsort label-5650
SELECT col1 DIV col1 + col0 * - 82 FROM tab1
----
-245
-5247
-6559

skipif mysql # not compatible
query I rowsort label-5650
SELECT col1 / col1 + col0 * - 82 FROM tab1
----
-245
-5247
-6559

query I rowsort
SELECT ALL + 30 - col1 FROM tab2 AS cor0
----
-1
-29
13

query I rowsort
SELECT DISTINCT 53 AS col0 FROM tab1, tab0 AS cor0
----
53

query I rowsort
SELECT ALL + col0 * + 96 AS col1 FROM tab2 AS cor0
----
672
7488
7584

query I rowsort
SELECT ALL col0 * col0 * col0 FROM tab2 cor0
----
343
474552
493039

query I rowsort
SELECT ALL + + ( + ( - col1 ) ) FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT ALL + cor0.col0 * + col2 + ( 45 ) FROM tab2 AS cor0
----
2073
234
3047

query I rowsort
SELECT + - cor0.col1 + col0 AS col0 FROM tab0 AS cor0
----
-2
-62
-62

query I rowsort
SELECT 96 * col2 + col0 AS col2 FROM tab0
----
131
3192
7961

onlyif mysql # use DIV operator for integer division
query I rowsort label-5659
SELECT + col1 * col0 + + col1 DIV 77 AS col1 FROM tab2
----
1343
217
4602

skipif mysql # not compatible
query I rowsort label-5659
SELECT + col1 * col0 + + col1 / 77 AS col1 FROM tab2
----
1343
217
4602

query I rowsort
SELECT DISTINCT col2 * + ( tab0.col1 ) FROM tab0
----
2838
7462
97

query I rowsort
SELECT 2 + col1 * + col0 FROM tab2
----
1345
219
4604

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 + ( - 39 * - col1 ) col2 FROM tab0 AS cor0
----
3387
3631
3784

onlyif mysql # use DIV operator for integer division
query I rowsort label-5663
SELECT ALL + col2 + col0 DIV + col1 FROM tab2 AS cor0
----
27
27
42

skipif mysql # not compatible
query I rowsort label-5663
SELECT ALL + col2 + col0 / + col1 FROM tab2 AS cor0
----
27
27
42

query I rowsort
SELECT - + col0 * cor0.col1 + col0 + + col0 AS col1 FROM tab2 AS cor0
----
-1185
-203
-4446

query I rowsort
SELECT + col1 * col2 - col1 * col0 FROM tab2 AS cor0
----
-3068
-697
620

onlyif mysql # use DIV operator for integer division
query I rowsort label-5666
SELECT - - col1 + col1 DIV col0 + + cor0.col2 FROM tab0 AS cor0
----
100
122
174

skipif mysql # not compatible
query I rowsort label-5666
SELECT - - col1 + col1 / col0 + + cor0.col2 FROM tab0 AS cor0
----
100
122
174

query I rowsort
SELECT DISTINCT col1 * col1 * + col0 AS col1 FROM tab2 AS cor0
----
22831
271518
6727

query I rowsort
SELECT DISTINCT - col0 + - col2 * ( + col2 ) FROM tab0 AS cor0
----
-1113
-36
-6813

query I rowsort
SELECT col1 + ( 52 ) AS col1 FROM tab2 AS cor0
----
111
69
83

query I rowsort
SELECT ALL - + col0 * col1 + cor0.col2 AS col1 FROM tab1 cor0
----
-24
-583
-944

query I rowsort
SELECT ALL col1 * + ( col0 ) * - col0 FROM tab1 AS cor0
----
-234
-40960
-83200

query I rowsort
SELECT DISTINCT + col0 * col1 * - ( - tab0.col2 ) - col0 * - col0 AS col2 FROM tab0
----
4620
672039
68688

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + ( col2 ) + col1 col1 FROM tab1 cor0
----
106
122
77

onlyif mysql # use DIV operator for integer division
query I rowsort label-5674
SELECT DISTINCT - 38 DIV col2 AS col2 FROM tab0
----
-1
-38
0

skipif mysql # not compatible
query I rowsort label-5674
SELECT DISTINCT - 38 / col2 AS col2 FROM tab0
----
-1
-38
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5675
SELECT DISTINCT - col2 + - col2 DIV col1 AS col2 FROM tab1 AS cor0
----
-103
-56
-62

skipif mysql # not compatible
query I rowsort label-5675
SELECT DISTINCT - col2 + - col2 / col1 AS col2 FROM tab1 AS cor0
----
-103
-56
-62

query I rowsort
SELECT + ( - col1 * 58 ) + - col0 * col2 FROM tab1
----
-1670
-4228
-8434

query I rowsort
SELECT DISTINCT ( tab1.col1 ) + + 89 * - col2 - col0 AS col1 FROM tab1
----
-4783
-5127
-8611

query I rowsort
SELECT ALL - col0 + 81 AS col2 FROM tab1
----
1
17
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - cor0.col0 + + ( 65 ) col2 FROM tab1 cor0
----
129
145
68

onlyif mysql # use DIV operator for integer division
query I rowsort label-5680
SELECT - + col2 * ( col0 ) + cor0.col1 DIV + cor0.col1 AS col0 FROM tab2 AS cor0
----
-188
-2027
-3001

skipif mysql # not compatible
query I rowsort label-5680
SELECT - + col2 * ( col0 ) + cor0.col1 / + cor0.col1 AS col0 FROM tab2 AS cor0
----
-188
-2027
-3001

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5681
SELECT DISTINCT - - col1 + - CAST( - 24 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
34
37
50

skipif mysql # not compatible
query I rowsort label-5681
SELECT DISTINCT - - col1 + - CAST ( - 24 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
34
37
50

query I rowsort
SELECT + col0 + 89 FROM tab1 AS cor0
----
153
169
92

onlyif mysql # use DIV operator for integer division
query I rowsort label-5683
SELECT ALL + col1 + cor0.col2 - + col0 DIV - col1 AS col1 FROM tab2 AS cor0
----
58
59
86

skipif mysql # not compatible
query I rowsort label-5683
SELECT ALL + col1 + cor0.col2 - + col0 / - col1 AS col1 FROM tab2 AS cor0
----
58
59
86

query I rowsort
SELECT DISTINCT - cor0.col0 FROM tab2 AS cor0 CROSS JOIN tab0, tab1 AS cor1
----
-7
-78
-79

onlyif mysql # use DIV operator for integer division
query I rowsort label-5685
SELECT + col2 + + col0 DIV cor0.col1 - + col2 AS col0 FROM tab1 cor0
----
0
6
6

skipif mysql # not compatible
query I rowsort label-5685
SELECT + col2 + + col0 / cor0.col1 - + col2 AS col0 FROM tab1 cor0
----
0
6
6

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5686
SELECT DISTINCT tab2.col1 + CAST( NULL AS SIGNED ) * - col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5686
SELECT DISTINCT tab2.col1 + CAST ( NULL AS INTEGER ) * - col2 FROM tab2
----
NULL

query I rowsort
SELECT ALL col0 + col0 * col1 * col0 FROM tab2
----
106176
1526
359034

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5688
SELECT - CAST( - 0 AS SIGNED ) FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5688
SELECT - CAST ( - 0 AS INTEGER ) FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT col1 + + ( col2 ) AS col2 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT 80 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - ( - 50 ) col2 FROM tab0
----
4300
4550
4850

query I rowsort
SELECT ALL + col0 + 70 FROM tab1
----
134
150
73

query I rowsort
SELECT ALL ( 45 ) * col0 FROM tab2
----
315
3510
3555

query I rowsort
SELECT ALL cor1.col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775

query I rowsort
SELECT 57 + col1 AS col0 FROM tab2 AS cor0
----
116
74
88

query I rowsort
SELECT ALL + - cor0.col0 + 36 * + col2 AS col1 FROM tab1 AS cor0
----
1941
1988
3376

query I rowsort
SELECT + 75 + 24 * col2 + + col2 * - ( col2 + - col2 * col1 ) AS col2 FROM tab0 AS cor0
----
195
607203
93432

query I rowsort
SELECT - + col1 + 47 FROM tab2 AS cor0
----
-12
16
30

query I rowsort
SELECT ALL col1 + cor0.col0 + - col0 FROM tab2 cor0
----
17
31
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-5700
SELECT - cor0.col2 + ( + col2 ) DIV cor0.col1 AS col0 FROM tab1 cor0
----
-52
-52
-89

skipif mysql # not compatible
query I rowsort label-5700
SELECT - cor0.col2 + ( + col2 ) / cor0.col1 AS col0 FROM tab1 cor0
----
-52
-52
-89

query I rowsort
SELECT DISTINCT - - col1 + - col1 * + cor0.col1 AS col1 FROM tab0 cor0
----
-7310
-8190
-9312

query I rowsort
SELECT + - 81 + + cor0.col2 AS col0 FROM tab2 AS cor0
----
-43
-54
-55

onlyif mysql # use DIV operator for integer division
query I rowsort label-5703
SELECT DISTINCT + col1 DIV - cor0.col0 + + ( 43 ) DIV + col1 FROM tab2 cor0
----
-3
0
2

skipif mysql # not compatible
query I rowsort label-5703
SELECT DISTINCT + col1 / - cor0.col0 + + ( 43 ) / + col1 FROM tab2 cor0
----
-3
0
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + cor0.col1 * + ( col2 ) col0 FROM tab1 AS cor0
----
1261
1430
580

query I rowsort
SELECT ALL - col0 * col0 - ( - col2 ) AS col1 FROM tab0 AS cor0
----
-1224
-543
-7839

onlyif mysql # use DIV operator for integer division
query I rowsort label-5706
SELECT ALL + col2 DIV ( - 35 ) + + col1 + - col1 col2 FROM tab1 AS cor0
----
-1
-1
-2

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5706
SELECT ALL + col2 / ( - 35 ) + + col1 + - col1 col2 FROM tab1 AS cor0
----
-1
-1
-2

onlyif mysql # use DIV operator for integer division
query I rowsort label-5707
SELECT - col1 * 17 DIV tab1.col1 AS col0 FROM tab1
----
-17
-17
-17

skipif mysql # not compatible
query I rowsort label-5707
SELECT - col1 * 17 / tab1.col1 AS col0 FROM tab1
----
-17
-17
-17

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5708
SELECT - col2 * + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5708
SELECT - col2 * + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - cor0.col0 * 94 + 84 + col1 AS col2 FROM tab1 AS cor0
----
-172
-5922
-7423

query I rowsort
SELECT + - col2 * col2 - cor0.col1 AS col2 FROM tab1 AS cor0
----
-2942
-3259
-9229

query I rowsort
SELECT cor0.col0 * - cor0.col1 FROM tab2, tab1 cor0
----
9 values hashing to 0cea1be551fb4bd88f4da0b7d676ee2f

query I rowsort
SELECT - - 4 * cor0.col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 77a519d1c86a1c92d33bb9ce10f5a092

query I rowsort
SELECT ALL col1 * col1 * + col0 AS col2 FROM tab2
----
22831
271518
6727

query I rowsort
SELECT ALL 64 * - col2 FROM tab1
----
-3456
-3648
-6144

query I rowsort
SELECT ALL cor0.col0 * - col2 FROM tab2 cor0
----
-189
-2028
-3002

query I rowsort
SELECT + 10 * col0 AS col1 FROM tab2 AS cor0
----
70
780
790

query I rowsort
SELECT DISTINCT + col1 * - col1 * 55 AS col2 FROM tab0 AS cor0
----
-406780
-455455
-517495

query I rowsort
SELECT DISTINCT - + 96 AS col1 FROM tab2 cor0
----
-96

query I rowsort
SELECT - col1 + col1 * - 63 AS col1 FROM tab1 AS cor0
----
-1664
-640
-832

query I rowsort
SELECT DISTINCT + col2 * col2 * tab2.col0 + + col2 AS col1 FROM tab2
----
114114
5130
52754

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5721
SELECT DISTINCT CAST( - 89 AS SIGNED ) FROM tab0
----
-89

skipif mysql # not compatible
query I rowsort label-5721
SELECT DISTINCT CAST ( - 89 AS INTEGER ) FROM tab0
----
-89

query I rowsort
SELECT - ( + col1 ) * col0 + col2 AS col2 FROM tab0
----
-2031
-3394
-8017

query I rowsort
SELECT ALL 5 * - ( + col1 ) AS col0 FROM tab2
----
-155
-295
-85

query I rowsort
SELECT DISTINCT + 11 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
11

query I rowsort
SELECT DISTINCT ( - col2 ) * 91 + 72 AS col2 FROM tab1 AS cor0
----
-4842
-5115
-8664

onlyif mysql # use DIV operator for integer division
query I rowsort label-5726
SELECT - cor0.col1 * col0 DIV + 34 AS col2 FROM tab2 AS cor0
----
-135
-39
-6

skipif mysql # not compatible
query I rowsort label-5726
SELECT - cor0.col1 * col0 / + 34 AS col2 FROM tab2 AS cor0
----
-135
-39
-6

query I rowsort
SELECT ALL + + 35 AS col0 FROM tab2 AS cor0
----
35
35
35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - - tab1.col0 col2 FROM tab1
----
128
160
6

query I rowsort
SELECT + col0 * - 92 + 23 + - col1 AS col2 FROM tab2 AS cor0
----
-652
-7212
-7262

query I rowsort
SELECT - cor0.col1 + + cor0.col0 FROM tab1 AS cor0
----
-23
54
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + 24 col0 FROM tab0 cor0
----
110
115
121

query I rowsort
SELECT - 90 + + col0 AS col0 FROM tab0 AS cor0
----
-1
-55
-66

query I rowsort
SELECT - - 99 + + col2 FROM tab2 AS cor0
----
125
126
137

query I rowsort
SELECT DISTINCT - + cor0.col1 + - col2 * col2 FROM tab1 AS cor0
----
-2942
-3259
-9229

query I rowsort
SELECT ALL + ( 6 ) AS col0 FROM tab0 AS cor0
----
6
6
6

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5736
SELECT + CAST( NULL AS DECIMAL ) * - 6 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5736
SELECT + CAST ( NULL AS REAL ) * - 6 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 37 + col0 * - col2 AS col0 FROM tab0 AS cor0
----
-72
-7335
-829

query I rowsort
SELECT + cor0.col2 + - cor0.col1 FROM tab1 cor0
----
28
47
83

query I rowsort
SELECT ALL 94 * col2 * - col1 FROM tab1 cor0
----
-117312
-131976
-53580

query I rowsort
SELECT + - 92 + col2 AS col1 FROM tab0 AS cor0
----
-10
-59
-91

query I rowsort
SELECT ALL + + col1 * + ( + col2 ) AS col1 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT ALL + col0 + 54 FROM tab1 AS cor0
----
118
134
57

query I rowsort
SELECT - col1 + 30 AS col1 FROM tab0 AS cor0
----
-56
-61
-67

query I rowsort
SELECT ALL col2 + - 46 FROM tab1 AS cor0
----
11
50
8

skipif mysql # not compatible
query I rowsort
SELECT ALL CAST ( - col2 AS REAL ) - col0 * col1 AS col1 FROM tab1 cor0
----
-1136
-132
-697

query I rowsort
SELECT ALL col1 + col0 + col2 FROM tab0 AS cor0
----
133
143
262

query I rowsort
SELECT ALL - 77 * - col1 - + col1 FROM tab0 AS cor0
----
6536
6916
7372

query I rowsort
SELECT DISTINCT + ( col1 ) * col1 AS col1 FROM tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT 86 * - 87 + - col2 FROM tab0 AS cor0
----
-7483
-7515
-7564

query I rowsort
SELECT ALL + - 84 + + col2 * col1 FROM tab1 AS cor0
----
1164
1320
486

query I rowsort
SELECT - cor0.col1 * - col0 AS col1 FROM tab0 cor0
----
2064
3395
8099

query I rowsort
SELECT DISTINCT - - col1 + col1 + 99 AS col1 FROM tab0 AS cor0
----
271
281
293

query I rowsort
SELECT + - col2 * - col0 + + ( col2 ) FROM tab1 AS cor0
----
216
3705
7776

query I rowsort
SELECT ALL 53 * cor0.col2 AS col2 FROM tab2 AS cor0
----
1378
1431
2014

onlyif mysql # use DIV operator for integer division
query I rowsort label-5755
SELECT DISTINCT - 82 DIV 70 + + col0 FROM tab2
----
6
77
78

skipif mysql # not compatible
query I rowsort label-5755
SELECT DISTINCT - 82 / 70 + + col0 FROM tab2
----
6
77
78

query I rowsort
SELECT ALL 8 + - cor0.col1 * ( + 5 ) FROM tab0, tab1 AS cor0
----
9 values hashing to e1be01c71fa02612e80d258ac771adda

query I rowsort
SELECT col2 * - col1 - - col1 FROM tab1
----
-1235
-1378
-560

query I rowsort
SELECT DISTINCT + + col0 * cor0.col2 - 45 AS col2 FROM tab2 AS cor0
----
144
1983
2957

query I rowsort
SELECT + col0 + 74 AS col0 FROM tab0 cor0
----
109
163
98

query I rowsort
SELECT ALL + col2 * - col0 * cor0.col2 FROM tab2 AS cor0
----
-114076
-5103
-52728

onlyif mysql # use DIV operator for integer division
query I rowsort label-5761
SELECT DISTINCT col0 + col0 DIV col2 FROM tab0 AS cor0
----
24
70
90

skipif mysql # not compatible
query I rowsort label-5761
SELECT DISTINCT col0 + col0 / col2 FROM tab0 AS cor0
----
24
70
90

query I rowsort
SELECT DISTINCT - col1 - + 81 * 8 FROM tab2
----
-665
-679
-707

query I rowsort
SELECT DISTINCT + cor0.col1 * 34 AS col0 FROM tab0 AS cor0
----
2924
3094
3298

query I rowsort
SELECT DISTINCT - + col2 + cor0.col1 * col0 FROM tab0 AS cor0
----
2031
3394
8017

query I rowsort
SELECT col1 * - col2 * 12 AS col1 FROM tab1
----
-14976
-16848
-6840

query I rowsort
SELECT ALL + col1 + - col2 * - tab0.col1 AS col1 FROM tab0
----
194
2924
7553

query I rowsort
SELECT ALL - col2 + 90 * - col2 * tab0.col0 + col1 AS col2 FROM tab0
----
-3054
-656811
-71227

query I rowsort
SELECT + cor0.col2 * - col1 + - cor0.col1 FROM tab1 AS cor0
----
-1261
-1430
-580

query I rowsort
SELECT ALL + tab1.col1 + 42 + - col1 FROM tab1
----
42
42
42

query I rowsort
SELECT col2 - col1 * ( + tab1.col0 + + col0 ) AS col0 FROM tab1
----
-102
-1223
-1984

onlyif mysql # use DIV operator for integer division
query I rowsort label-5771
SELECT ALL tab2.col1 DIV - ( col1 ) + col2 AS col0 FROM tab2
----
25
26
37

skipif mysql # not compatible
query I rowsort label-5771
SELECT ALL tab2.col1 / - ( col1 ) + col2 AS col0 FROM tab2
----
25
26
37

onlyif mysql # use DIV operator for integer division
query I rowsort label-5772
SELECT + - col2 DIV cor0.col1 + + 16 FROM tab1 AS cor0
----
11
14
9

skipif mysql # not compatible
query I rowsort label-5772
SELECT + - col2 / cor0.col1 + + 16 FROM tab1 AS cor0
----
11
14
9

query I rowsort
SELECT DISTINCT - 71 + + col0 * col2 * + col0 AS col1 FROM tab2 AS cor0
----
1252
158113
237087

query I rowsort
SELECT + 2 AS col1 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 535345c50a19fdab97ce05d1837b1f09

query I rowsort
SELECT ALL - col0 + + cor0.col1 * - col1 FROM tab2 AS cor0
----
-3559
-368
-968

query I rowsort
SELECT - col2 + - ( - 72 ) FROM tab2 AS cor0
----
34
45
46

query I rowsort
SELECT DISTINCT col1 * + col0 * cor0.col1 AS col0 FROM tab1 AS cor0
----
13520
2028
6400

query I rowsort
SELECT - tab2.col2 * + 56 FROM tab2
----
-1456
-1512
-2128

query I rowsort
SELECT ALL - col0 * 61 FROM tab1
----
-183
-3904
-4880

query I rowsort
SELECT DISTINCT + 69 FROM tab1, tab0, tab1 AS cor0, tab2
----
69

query I rowsort
SELECT col0 * - 54 FROM tab0 cor0
----
-1296
-1890
-4806

query I rowsort
SELECT + col1 * + col0 + 10 FROM tab2 AS cor0
----
1353
227
4612

query I rowsort
SELECT - ( col2 ) * - col0 FROM tab0
----
35
7298
792

query I rowsort
SELECT DISTINCT - 9 FROM tab0, tab1 AS cor0, tab0 AS cor1, tab1 AS cor2
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + 7 col2 FROM tab0 AS cor0
----
231
574
7

query I rowsort
SELECT ALL + + 62 + 70 FROM tab1 cor0
----
132
132
132

query I rowsort
SELECT ALL col2 * 4 AS col2 FROM tab0 AS cor0
----
132
328
4

query I rowsort
SELECT DISTINCT + - col1 * - cor0.col0 + cor0.col2 FROM tab1 AS cor0
----
1136
132
697

query I rowsort
SELECT DISTINCT col0 + 85 FROM tab2 AS cor0
----
163
164
92

query I rowsort
SELECT + - 87 + col0 * - 44 * ( - col2 * - col2 ) FROM tab1 AS cor0
----
-32440407
-384999
-9149271

onlyif mysql # use DIV operator for integer division
query I rowsort label-5791
SELECT - - col0 DIV - col1 + - ( + col2 ) * - col1 + - 2 FROM tab2 AS cor0
----
1531
640
835

skipif mysql # not compatible
query I rowsort label-5791
SELECT - - col0 / - col1 + - ( + col2 ) * - col1 + - 2 FROM tab2 AS cor0
----
1531
640
835

query I rowsort
SELECT ALL + ( - cor0.col2 ) * 65 FROM tab2 AS cor0
----
-1690
-1755
-2470

query I rowsort
SELECT - 12 * + col1 + - 72 FROM tab1 AS cor0
----
-192
-228
-384

query I rowsort
SELECT ALL 23 * col2 AS col2 FROM tab2 cor0
----
598
621
874

query I rowsort
SELECT ALL + ( col2 ) + + col2 AS col2 FROM tab1 AS cor0
----
108
114
192

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 * - col2 + + col0 + - 19 col1 FROM tab2 AS cor0
----
-1475
-586
-849

onlyif mysql # use DIV operator for integer division
query I rowsort label-5797
SELECT ALL col2 DIV col0 + - col2 FROM tab1
----
-36
-57
-95

skipif mysql # not compatible
query I rowsort label-5797
SELECT ALL col2 / col0 + - col2 FROM tab1
----
-36
-57
-95

onlyif mysql # use DIV operator for integer division
query I rowsort label-5798
SELECT + - ( - col2 ) DIV - col0 + col1 * col2 AS col0 FROM tab0 cor0
----
2837
7462
97

skipif mysql # not compatible
query I rowsort label-5798
SELECT + - ( - col2 ) / - col0 + col1 * col2 AS col0 FROM tab0 cor0
----
2837
7462
97

query I rowsort
SELECT + 36 + - col1 * - col2 AS col2 FROM tab0 AS cor0
----
133
2874
7498

query I rowsort
SELECT - + 35 * + col1 * col2 AS col2 FROM tab0 AS cor0
----
-261170
-3395
-99330

onlyif mysql # use DIV operator for integer division
query I rowsort label-5801
SELECT ALL col0 DIV - col2 + + 65 FROM tab1 AS cor0
----
64
65
65

skipif mysql # not compatible
query I rowsort label-5801
SELECT ALL col0 / - col2 + + 65 FROM tab1 AS cor0
----
64
65
65

query I rowsort
SELECT col1 * - ( ( col1 ) ) * + col0 + + ( - col2 ) FROM tab2 AS cor0
----
-22869
-271544
-6754

query I rowsort
SELECT col1 * col2 + + ( col2 ) FROM tab1 cor0
----
1344
1458
627

query I rowsort
SELECT - col2 + + 1 AS col2 FROM tab1 cor0
----
-53
-56
-95

query I rowsort
SELECT - - 31 * col2 FROM tab2 AS cor0
----
1178
806
837

query I rowsort
SELECT - + col0 * ( cor0.col0 ) AS col0 FROM tab0 AS cor0
----
-1225
-576
-7921

query I rowsort
SELECT + col1 + - 33 FROM tab0 cor0
----
53
58
64

query I rowsort
SELECT + 93 * col1 AS col2 FROM tab0 cor0
----
7998
8463
9021

query I rowsort
SELECT ALL - col2 * - 56 * - col1 AS col0 FROM tab1
----
-31920
-69888
-78624

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor1.col2 col2 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT DISTINCT - 20 AS col0 FROM tab2, tab0 AS cor0
----
-20

query I rowsort
SELECT + cor0.col1 + - cor0.col0 FROM tab1, tab0 AS cor0
----
9 values hashing to c99cbeca6e6fdb3507b2e08470c1cda6

query I rowsort
SELECT DISTINCT + 73 * + col1 AS col2 FROM tab2
----
1241
2263
4307

query I rowsort
SELECT DISTINCT + cor0.col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
3
64
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-5815
SELECT - 21 * + col2 DIV col2 FROM tab0 AS cor0
----
-21
-21
-21

skipif mysql # not compatible
query I rowsort label-5815
SELECT - 21 * + col2 / col2 FROM tab0 AS cor0
----
-21
-21
-21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * - col2 col2 FROM tab0 AS cor0
----
1
1089
6724

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 * col0 col2 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT 54 AS col1 FROM tab0, tab1 cor0 CROSS JOIN tab1 AS cor1
----
27 values hashing to 81150d59d6c3fc48b4ef5a4a5495bc7a

query I rowsort
SELECT col1 * ( + ( + col1 ) ) FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT DISTINCT - col1 * + ( 90 ) FROM tab2 AS cor0
----
-1530
-2790
-5310

query I rowsort
SELECT DISTINCT + col0 * - 8 AS col0 FROM tab0 AS cor0
----
-192
-280
-712

query I rowsort
SELECT - col0 + - 69 * col2 * - col0 FROM tab2 AS cor0
----
13034
139854
207059

query I rowsort
SELECT DISTINCT + col0 + col0 * ( + cor0.col1 ) AS col0 FROM tab2 AS cor0
----
1422
224
4680

query I rowsort
SELECT - col0 + - col0 + cor0.col1 AS col2 FROM tab1 AS cor0
----
-118
-147
20

query I rowsort
SELECT + - col0 * col2 + + 4 FROM tab2 AS cor0
----
-185
-2024
-2998

query I rowsort
SELECT DISTINCT - 55 FROM tab1, tab2, tab0 AS cor0
----
-55

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5827
SELECT DISTINCT - col2 * - CAST( - col2 AS SIGNED ) FROM tab0 AS cor0
----
-1
-1089
-6724

skipif mysql # not compatible
query I rowsort label-5827
SELECT DISTINCT - col2 * - CAST ( - col2 AS INTEGER ) FROM tab0 AS cor0
----
-1
-1089
-6724

query I rowsort
SELECT DISTINCT 45 * col2 FROM tab0
----
1485
3690
45

query I rowsort
SELECT + 94 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to a4d239626cf0546ac1b2f57bb8407089

query I rowsort
SELECT DISTINCT + tab0.col1 * 56 AS col0 FROM tab0
----
4816
5096
5432

query I rowsort
SELECT ALL col1 + - col0 * + tab0.col1 * + col0 + - tab0.col2 FROM tab0
----
-118729
-49483
-720802

query I rowsort
SELECT tab0.col1 AS col2 FROM tab0, tab0 AS cor0, tab2, tab0 AS cor1
----
81 values hashing to 8c9db501a604ea66e3b5e5598f3f2a91

onlyif mysql # use DIV operator for integer division
query I rowsort label-5833
SELECT col2 DIV ( - 14 ) col2 FROM tab0 cor0
----
-2
-5
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5833
SELECT col2 / ( - 14 ) col2 FROM tab0 cor0
----
-2
-5
0

query I rowsort
SELECT + col2 * + ( - col2 ) FROM tab1 AS cor0
----
-2916
-3249
-9216

query I rowsort
SELECT tab2.col0 * ( + col1 ) * col1 + + 87 AS col2 FROM tab2
----
22918
271605
6814

query I rowsort
SELECT ALL ( - col1 * + col2 ) AS col1 FROM tab2
----
-1534
-646
-837

query I rowsort
SELECT - col0 + col2 + + 74 AS col0 FROM tab0 AS cor0
----
40
67
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-5838
SELECT ALL 8 * - col1 DIV + col1 - ( col1 ) FROM tab1
----
-18
-21
-34

skipif mysql # not compatible
query I rowsort label-5838
SELECT ALL 8 * - col1 / + col1 - ( col1 ) FROM tab1
----
-18
-21
-34

query I rowsort
SELECT - - ( + col2 ) * - col1 + - col2 * 38 + cor0.col1 AS col1 FROM tab0 AS cor0
----
-10487
-38
-4006

query I rowsort
SELECT DISTINCT 22 + tab0.col1 FROM tab0, tab1 AS cor0
----
108
113
119

query I rowsort
SELECT - col0 + - col1 + - 82 AS col0 FROM tab2 AS cor0
----
-120
-178
-219

query I rowsort
SELECT ALL - ( col0 ) + col1 + + col0 * col2 FROM tab1
----
185
3594
7613

onlyif mysql # use DIV operator for integer division
query I rowsort label-5843
SELECT - + col2 + + col2 DIV + 48 + + 29 AS col0 FROM tab1 AS cor0
----
-24
-27
-65

skipif mysql # not compatible
query I rowsort label-5843
SELECT - + col2 + + col2 / + 48 + + 29 AS col0 FROM tab1 AS cor0
----
-24
-27
-65

query I rowsort
SELECT col0 * - col0 + + ( + col2 ) * - cor0.col1 - - cor0.col0 AS col0 FROM tab1 cor0
----
-1410
-4602
-7568

query I rowsort
SELECT + 34 - tab1.col1 AS col1 FROM tab1
----
21
24
8

query I rowsort
SELECT - 98 * + col0 AS col1 FROM tab2
----
-686
-7644
-7742

skipif mysql # not compatible
query I rowsort
SELECT - CAST ( 80 AS REAL ) FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 26dbcc98d4b4e864ffa31be685a5dfbd

query I rowsort
SELECT ALL cor0.col1 + - col1 AS col2 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT ALL - cor0.col2 + col1 * + ( 96 ) FROM tab2 AS cor0
----
1594
2949
5638

onlyif mysql # use DIV operator for integer division
query I rowsort label-5850
SELECT DISTINCT col2 DIV col0 + ( + col2 * col0 ) + col2 AS col0 FROM tab0 cor0
----
36
7380
826

skipif mysql # not compatible
query I rowsort label-5850
SELECT DISTINCT col2 / col0 + ( + col2 * col0 ) + col2 AS col0 FROM tab0 cor0
----
36
7380
826

onlyif mysql # use DIV operator for integer division
query I rowsort label-5851
SELECT + col2 DIV col1 - 5 * col2 FROM tab1 cor0
----
-268
-280
-473

skipif mysql # not compatible
query I rowsort label-5851
SELECT + col2 / col1 - 5 * col2 FROM tab1 cor0
----
-268
-280
-473

query I rowsort
SELECT ALL col0 * 65 FROM tab1 AS cor0
----
195
4160
5200

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + ( - 82 ) col2 FROM tab1 AS cor0
----
-4428
-4674
-7872

query I rowsort
SELECT - col0 * 28 + col1 FROM tab2 AS cor0
----
-165
-2125
-2195

query I rowsort
SELECT - - col2 * col1 + - cor0.col1 FROM tab1 AS cor0
----
1235
1378
560

query I rowsort
SELECT DISTINCT col1 + 2 AS col1 FROM tab1 AS cor0
----
12
15
28

query I rowsort
SELECT - - col1 * cor0.col0 + - 19 * col2 AS col0 FROM tab2 AS cor0
----
-296
4108
621

query I rowsort
SELECT ALL + + col1 + col0 AS col2 FROM tab0 cor0
----
110
132
180

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5859
SELECT col2 / + CAST( NULL AS SIGNED ) + cor0.col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5859
SELECT col2 / + CAST ( NULL AS INTEGER ) + cor0.col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 - - col1 * + 70 * + col2 AS col2 FROM tab1 AS cor0
----
39964
87440
98283

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5861
SELECT DISTINCT col0 * + CAST( NULL AS SIGNED ) / col0 AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5861
SELECT DISTINCT col0 * + CAST ( NULL AS INTEGER ) / col0 AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - col2 * + 40 FROM tab0 AS cor0
----
-1320
-3280
-40

query I rowsort
SELECT ALL + col2 * 39 FROM tab2 cor0
----
1014
1053
1482

query I rowsort
SELECT col0 + cor0.col0 * - ( + col2 ) FROM tab1 AS cor0
----
-159
-3584
-7600

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5865
SELECT + - CAST( col0 AS SIGNED ) AS col1 FROM tab1 cor0
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-5865
SELECT + - CAST ( col0 AS INTEGER ) AS col1 FROM tab1 cor0
----
-3
-64
-80

onlyif mysql # use DIV operator for integer division
query I rowsort label-5866
SELECT + cor0.col1 DIV - col0 AS col0 FROM tab0 cor0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-5866
SELECT + cor0.col1 / - col0 AS col0 FROM tab0 cor0
----
-1
-2
-3

query I rowsort
SELECT 77 AS col2 FROM tab0 cor0
----
77
77
77

onlyif mysql # use DIV operator for integer division
query I rowsort label-5868
SELECT ALL + - ( ( - cor0.col1 ) ) + + col0 DIV 42 AS col1 FROM tab2 AS cor0
----
18
31
60

skipif mysql # not compatible
query I rowsort label-5868
SELECT ALL + - ( ( - cor0.col1 ) ) + + col0 / 42 AS col1 FROM tab2 AS cor0
----
18
31
60

query I rowsort
SELECT ALL - 34 + + col1 FROM tab0 AS cor0
----
52
57
63

query I rowsort
SELECT ALL 72 + col2 FROM tab1 AS cor0
----
126
129
168

query I rowsort
SELECT DISTINCT - ( col0 ) + - 59 * + 2 FROM tab1 AS cor0
----
-121
-182
-198

onlyif mysql # use DIV operator for integer division
query I rowsort label-5872
SELECT DISTINCT col2 * cor0.col1 * + col2 + col1 * + col0 DIV col0 + 63 FROM tab1 AS cor0
----
119884
32563
75905

skipif mysql # not compatible
query I rowsort label-5872
SELECT DISTINCT col2 * cor0.col1 * + col2 + col1 * + col0 / col0 + 63 FROM tab1 AS cor0
----
119884
32563
75905

query I rowsort
SELECT ALL + col1 * cor0.col2 + + col2 FROM tab1 AS cor0
----
1344
1458
627

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 39 + cor0.col1 col0 FROM tab0 AS cor0
----
125
130
136

query I rowsort
SELECT - 11 + col1 AS col2 FROM tab0
----
75
80
86

query I rowsort
SELECT DISTINCT - 66 + tab1.col1 FROM tab1, tab1 AS cor0
----
-40
-53
-56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col2 * col2 ) - + col1 col0 FROM tab1
----
2890
3239
9203

query I rowsort
SELECT 63 - cor0.col1 FROM tab2 AS cor0
----
32
4
46

query I rowsort
SELECT ALL col1 * + col2 - - col1 FROM tab2
----
1593
663
868

query I rowsort
SELECT ALL cor0.col2 * - 78 FROM tab0, tab1 cor0
----
9 values hashing to 417989dda1c8e28639bb31d9f39cc256

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * 48 col0 FROM tab2
----
-1488
-2832
-816

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( tab0.col0 ) col2 FROM tab0
----
24
35
89

query I rowsort
SELECT DISTINCT 81 * 52 * + col0 AS col1 FROM tab1
----
12636
269568
336960

query I rowsort
SELECT - col0 * 48 * + col1 AS col0 FROM tab0
----
-162960
-388752
-99072

onlyif mysql # use DIV operator for integer division
query I rowsort label-5885
SELECT col1 DIV - col1 + - col1 * col0 + 8 FROM tab0
----
-2057
-3388
-8092

skipif mysql # not compatible
query I rowsort label-5885
SELECT col1 / - col1 + - col1 * col0 + 8 FROM tab0
----
-2057
-3388
-8092

query I rowsort
SELECT DISTINCT - 56 * col1 * - col0 FROM tab0
----
115584
190120
453544

query I rowsort
SELECT ALL - cor0.col0 * - col0 * col1 AS col2 FROM tab0 AS cor0
----
118825
49536
720811

query I rowsort
SELECT DISTINCT col0 * col1 + col2 * col2 AS col0 FROM tab0 AS cor0
----
14823
3153
3396

onlyif mysql # use DIV operator for integer division
query I rowsort label-5889
SELECT ALL - + 83 DIV col0 - cor0.col0 AS col1 FROM tab0 AS cor0
----
-27
-37
-89

skipif mysql # not compatible
query I rowsort label-5889
SELECT ALL - + 83 / col0 - cor0.col0 AS col1 FROM tab0 AS cor0
----
-27
-37
-89

onlyif mysql # use DIV operator for integer division
query I rowsort label-5890
SELECT col1 DIV + col0 + col1 AS col0 FROM tab2 AS cor0
----
17
35
59

skipif mysql # not compatible
query I rowsort label-5890
SELECT col1 / + col0 + col1 AS col0 FROM tab2 AS cor0
----
17
35
59

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5891
SELECT DISTINCT CAST( NULL AS SIGNED ) * + cor0.col0 col2 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5891
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + cor0.col0 col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT 55 + - col0 * + cor0.col2 + col1 FROM tab0 cor0
----
-651
-7152
117

query I rowsort
SELECT DISTINCT + ( + 31 ) * col1 * col1 FROM tab0
----
229276
256711
291679

query I rowsort
SELECT col0 - - col1 * ( 94 ) AS col0 FROM tab0
----
8108
8643
9153

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab2.col2 col1 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT col2 * - col1 * - col2 + + ( - col0 ) AS col0 FROM tab1
----
119728
32426
75813

query I rowsort
SELECT DISTINCT - 67 + - cor0.col2 FROM tab1 AS cor0
----
-121
-124
-163

onlyif mysql # use DIV operator for integer division
query I rowsort label-5898
SELECT DISTINCT - cor0.col0 DIV - cor0.col1 - col0 FROM tab2 AS cor0
----
-7
-75
-77

skipif mysql # not compatible
query I rowsort label-5898
SELECT DISTINCT - cor0.col0 / - cor0.col1 - col0 FROM tab2 AS cor0
----
-7
-75
-77

query I rowsort
SELECT ALL - - 4 FROM tab1, tab0, tab0 cor0
----
27 values hashing to 730dff78e83112374961ea711f98ebaa

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5900
SELECT DISTINCT cor0.col0 * CAST( - 88 AS SIGNED ) col1 FROM tab2 cor0
----
-616
-6864
-6952

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5900
SELECT DISTINCT cor0.col0 * CAST ( - 88 AS INTEGER ) col1 FROM tab2 cor0
----
-616
-6864
-6952

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5901
SELECT ALL col0 * + CAST( ( - col0 ) AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-4096
-6400
-9

skipif mysql # not compatible
query I rowsort label-5901
SELECT ALL col0 * + CAST ( ( - col0 ) AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-4096
-6400
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * 83 col0 FROM tab1 AS cor0
----
249
5312
6640

query I rowsort
SELECT col1 * tab1.col2 + + col0 AS col1 FROM tab1
----
1328
1407
634

query I rowsort
SELECT + col0 + + col2 * - 81 * col2 AS col1 FROM tab2
----
-116885
-54678
-59042

query I rowsort
SELECT ALL - + col1 + 45 FROM tab0 AS cor0
----
-41
-46
-52

query I rowsort
SELECT DISTINCT + cor0.col1 * - ( cor0.col2 * + col1 ) FROM tab2 AS cor0
----
-10982
-25947
-90506

query I rowsort
SELECT ALL col2 + 61 FROM tab2 AS cor0
----
87
88
99

query I rowsort
SELECT - col0 * cor0.col2 * + col1 AS col0 FROM tab0 cor0
----
-3395
-664118
-68112

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5909
SELECT - + CAST( - 41 AS SIGNED ) FROM tab1 cor0
----
41
41
41

skipif mysql # not compatible
query I rowsort label-5909
SELECT - + CAST ( - 41 AS INTEGER ) FROM tab1 cor0
----
41
41
41

query I rowsort
SELECT + 78 * - 77 AS col1 FROM tab0 AS cor0
----
-6006
-6006
-6006

onlyif mysql # use DIV operator for integer division
query I rowsort label-5911
SELECT - cor0.col0 DIV + 87 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5911
SELECT - cor0.col0 / + 87 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - - 95 * 22 AS col0 FROM tab1 cor0
----
2090
2090
2090

query I rowsort
SELECT ALL - 50 FROM tab1, tab1 AS cor0
----
9 values hashing to c7432a968c8352c12996dfa54dd4b9e8

query I rowsort
SELECT col0 + - 1 FROM tab2 AS cor0
----
6
77
78

query I rowsort
SELECT ( + 19 ) AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11

onlyif mysql # use DIV operator for integer division
query I rowsort label-5916
SELECT ALL - 7 + + cor0.col2 DIV ( - col0 ) FROM tab1 AS cor0
----
-25
-7
-8

skipif mysql # not compatible
query I rowsort label-5916
SELECT ALL - 7 + + cor0.col2 / ( - col0 ) FROM tab1 AS cor0
----
-25
-7
-8

onlyif mysql # use DIV operator for integer division
query I rowsort label-5917
SELECT + 69 DIV + col2 + + col2 AS col2 FROM tab0 AS cor0
----
35
70
82

skipif mysql # not compatible
query I rowsort label-5917
SELECT + 69 / + col2 + + col2 AS col2 FROM tab0 AS cor0
----
35
70
82

query I rowsort
SELECT 99 + + cor0.col0 * + 29 AS col2 FROM tab0 AS cor0
----
1114
2680
795

query I rowsort
SELECT + col1 * col0 + + 33 FROM tab0 AS cor0
----
2097
3428
8132

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5920
SELECT ALL + col2 * - col2 + CAST( NULL AS DECIMAL ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5920
SELECT ALL + col2 * - col2 + CAST ( NULL AS REAL ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col1 + col0 - ( - col2 + col1 ) FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT + col2 * + ( + col1 ) + - ( tab0.col0 ) FROM tab0
----
2814
62
7373

query I rowsort
SELECT + 6 * + col1 + + col0 FROM tab2 AS cor0
----
181
193
432

query I rowsort
SELECT - col0 * + col1 * 49 AS col0 FROM tab1
----
-31360
-3822
-50960

query I rowsort
SELECT DISTINCT 25 + col0 * col1 + + 81 FROM tab1
----
1146
184
746

query I rowsort
SELECT ALL tab1.col0 * col1 + col1 * - col1 AS col0 FROM tab1
----
-598
540
871

query I rowsort
SELECT 43 * tab2.col1 + tab2.col0 + + 41 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 356487f6c56744cff466a6adf184e587

query I rowsort
SELECT ALL - 98 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 9b0655947ad21e0b95a137a474fa6a1f

onlyif mysql # use DIV operator for integer division
query I rowsort label-5929
SELECT DISTINCT 99 * cor0.col2 DIV 71 - - col2 col0 FROM tab1 AS cor0
----
129
136
229

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5929
SELECT DISTINCT 99 * cor0.col2 / 71 - - col2 col0 FROM tab1 AS cor0
----
129
136
229

query I rowsort
SELECT ALL + cor0.col2 * + col1 - - col0 FROM tab1 cor0
----
1328
1407
634

query I rowsort
SELECT - col2 * + col1 - + 26 FROM tab1 AS cor0
----
-1274
-1430
-596

onlyif mysql # use DIV operator for integer division
query I rowsort label-5932
SELECT - col0 DIV 37 AS col1 FROM tab2 AS cor0
----
-2
-2
0

skipif mysql # not compatible
query I rowsort label-5932
SELECT - col0 / 37 AS col1 FROM tab2 AS cor0
----
-2
-2
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + cor0.col1 + 27 col0 FROM tab2 AS cor0
----
44
58
86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + - 48 col2 FROM tab0 AS cor0
----
-130
-49
-81

query I rowsort
SELECT DISTINCT col2 * 45 AS col1 FROM tab0 AS cor0
----
1485
3690
45

query I rowsort
SELECT col0 * 29 + + col1 FROM tab2 AS cor0
----
2308
2321
234

query I rowsort
SELECT - col0 * col1 + + col0 FROM tab0 AS cor0
----
-2040
-3360
-8010

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 45 col2 FROM tab1
----
45
45
45

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5939
SELECT - cor0.col0 * + CAST( NULL AS DECIMAL ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5939
SELECT - cor0.col0 * + CAST ( NULL AS REAL ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * tab2.col0 col1 FROM tab2
----
-189
-2028
-3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 68 * col1 col2 FROM tab2
----
1156
2108
4012

query I rowsort
SELECT DISTINCT + col0 * - cor0.col0 * + col1 - 8 FROM tab0 AS cor0
----
-118833
-49544
-720819

query I rowsort
SELECT ALL - col1 * - col0 + col0 + 37 * col2 AS col0 FROM tab0 AS cor0
----
11222
3309
3467

query I rowsort
SELECT 56 * - ( - col0 ) AS col0 FROM tab0 cor0
----
1344
1960
4984

query I rowsort
SELECT ALL tab0.col1 * - ( + col2 ) AS col1 FROM tab0
----
-2838
-7462
-97

query I rowsort
SELECT DISTINCT + cor0.col0 * col0 AS col2 FROM tab1 cor0
----
4096
6400
9

query I rowsort
SELECT - 6 + col2 AS col1 FROM tab1 AS cor0
----
48
51
90

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5948
SELECT ALL - - CAST( 70 AS SIGNED ) * + col0 AS col2 FROM tab0 AS cor0
----
1680
2450
6230

skipif mysql # not compatible
query I rowsort label-5948
SELECT ALL - - CAST ( 70 AS INTEGER ) * + col0 AS col2 FROM tab0 AS cor0
----
1680
2450
6230

query I rowsort
SELECT - col1 * - col2 * - col1 + col2 FROM tab0 cor0
----
-244035
-678960
-9408

query I rowsort
SELECT DISTINCT - ( + col0 ) * + cor0.col0 FROM tab2 AS cor0
----
-49
-6084
-6241

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + col2 * - 49 col0 FROM tab1 cor0
----
-2672
-2803
-4717

onlyif mysql # use DIV operator for integer division
query I rowsort label-5952
SELECT ALL + - 93 DIV - col0 FROM tab1 AS cor0
----
1
1
31

skipif mysql # not compatible
query I rowsort label-5952
SELECT ALL + - 93 / - col0 FROM tab1 AS cor0
----
1
1
31

query I rowsort
SELECT ALL + 60 AS col2 FROM tab0 cor0
----
60
60
60

query I rowsort
SELECT + col1 * - cor0.col0 * + 27 FROM tab2 AS cor0
----
-124254
-36261
-5859

query I rowsort
SELECT DISTINCT - - 61 - col2 FROM tab1 AS cor0
----
-35
4
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * 65 + + col2 col0 FROM tab2
----
482
5096
5173

query I rowsort
SELECT + col0 + 59 * - tab0.col1 FROM tab0
----
-5050
-5280
-5688

query I rowsort
SELECT - col0 - - 6 AS col0 FROM tab1
----
-58
-74
3

query I rowsort
SELECT 5 * col2 + col0 FROM tab0
----
189
40
499

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5960
SELECT ( - tab0.col1 ) + - ( col1 + - col0 ) * CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5960
SELECT ( - tab0.col1 ) + - ( col1 + - col0 ) * CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 33 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8035c665a75d22be5922be1a4e574e03

query I rowsort
SELECT - - col0 * cor0.col0 AS col1 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT DISTINCT col1 + col2 * 47 AS col0 FROM tab0 AS cor0
----
144
1637
3945

query I rowsort
SELECT DISTINCT - 4 * col0 AS col0 FROM tab1 AS cor0
----
-12
-256
-320

query I rowsort
SELECT DISTINCT - 38 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
-38

query I rowsort
SELECT - col1 * col2 - - 55 FROM tab2 AS cor0
----
-1479
-591
-782

query I rowsort
SELECT - col0 * col0 - - ( col1 + - col1 ) * + col1 FROM tab2 AS cor0
----
-49
-6084
-6241

query I rowsort
SELECT DISTINCT col2 + 34 * - col1 + - col2 * + col0 AS col1 FROM tab2
----
-1216
-3542
-4008

query I rowsort
SELECT ALL - col2 + + col2 + + col0 AS col0 FROM tab2
----
7
78
79

query I rowsort
SELECT 46 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 31818c9d4d325eb248735c97cb1dce39

query I rowsort
SELECT ALL - 54 + - 91 FROM tab1 AS cor0
----
-145
-145
-145

query I rowsort
SELECT DISTINCT - 30 AS col0 FROM tab2 cor0
----
-30

query I rowsort
SELECT DISTINCT + - ( + cor0.col2 ) AS col1 FROM tab0 AS cor0
----
-1
-33
-82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5974
SELECT CAST( - col0 AS SIGNED ) * col2 AS col2 FROM tab0 cor0
----
-35
-7298
-792

skipif mysql # not compatible
query I rowsort label-5974
SELECT CAST ( - col0 AS INTEGER ) * col2 AS col2 FROM tab0 cor0
----
-35
-7298
-792

query I rowsort
SELECT DISTINCT - ( + col0 * tab1.col2 ) AS col1 FROM tab1
----
-162
-3648
-7680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 26 col2 FROM tab0, tab1 AS cor0
----
26

query I rowsort
SELECT ALL + cor0.col0 * - 9 AS col2 FROM tab0, tab2 AS cor0, tab1 AS cor1, tab2, tab1 AS cor2
----
243 values hashing to ca4bb5151ab78e2b59de075e1a8e7f8b

query I rowsort
SELECT DISTINCT + + col1 * - col1 + - 7 FROM tab2 AS cor0
----
-296
-3488
-968

query I rowsort
SELECT ALL - col2 * ( ( + col1 ) ) + 96 * + cor0.col1 AS col1 FROM tab2 AS cor0
----
2139
4130
986

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * + cor0.col2 col2 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT - 85 - cor0.col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 0507e5f24a6157e1123ddc68a9854c7a

query I rowsort
SELECT + col2 + 30 AS col1 FROM tab0 cor0
----
112
31
63

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5983
SELECT + + 46 * col2 + cor0.col0 + + CAST( col2 AS SIGNED ) * - col2 FROM tab2 AS cor0
----
383
520
598

skipif mysql # not compatible
query I rowsort label-5983
SELECT + + 46 * col2 + cor0.col0 + + CAST ( col2 AS INTEGER ) * - col2 FROM tab2 AS cor0
----
383
520
598

query I rowsort
SELECT - col0 + + 86 AS col1 FROM tab1
----
22
6
83

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5985
SELECT - CAST( NULL AS DECIMAL ) AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-5985
SELECT - CAST ( NULL AS REAL ) AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT - - col2 * - col2 * 18 FROM tab1 AS cor0
----
-165888
-52488
-58482

query I rowsort
SELECT + 43 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to ee5108f6248be48c54e069545f81c5d9

query I rowsort
SELECT + col2 + + col1 * - col1 - + tab0.col1 AS col1 FROM tab0
----
-7449
-8290
-9505

query I rowsort
SELECT ALL - col2 * col2 * + col2 AS col1 FROM tab0
----
-1
-35937
-551368

query I rowsort
SELECT ALL - col1 * + col2 * - col2 FROM tab1
----
119808
32490
75816

onlyif mysql # use DIV operator for integer division
query I rowsort label-5991
SELECT + col0 DIV - tab1.col2 + 0 AS col0 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-5991
SELECT + col0 / - tab1.col2 + 0 AS col0 FROM tab1
----
-1
0
0

query I rowsort
SELECT + 98 * - col0 FROM tab1 AS cor0
----
-294
-6272
-7840

query I rowsort
SELECT ALL - 3 * + col2 FROM tab0 AS cor0
----
-246
-3
-99

query I rowsort
SELECT DISTINCT - 65 AS col2 FROM tab1 AS cor0
----
-65

query I rowsort
SELECT - col1 * + 20 AS col2 FROM tab0 AS cor0
----
-1720
-1820
-1940

query I rowsort
SELECT DISTINCT - cor0.col1 * 68 * - col2 FROM tab0 AS cor0
----
192984
507416
6596

query I rowsort
SELECT + 16 * + col2 AS col2 FROM tab1
----
1536
864
912

query I rowsort
SELECT ALL + ( 11 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00

query I rowsort
SELECT cor0.col2 * 15 AS col0 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 655f1e904862adb63a36ade99f031c39

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6000
SELECT ALL + col2 * + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6000
SELECT ALL + col2 * + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 * col1 - - col2 * tab1.col0 FROM tab1
----
3748
7849
838

query I rowsort
SELECT + col2 * ( + col1 + + col1 ) AS col2 FROM tab0 AS cor0
----
14924
194
5676

onlyif mysql # use DIV operator for integer division
query I rowsort label-6003
SELECT - col1 DIV + col1 AS col0 FROM tab2 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6003
SELECT - col1 / + col1 AS col0 FROM tab2 cor0
----
-1
-1
-1

onlyif mysql # use DIV operator for integer division
query I rowsort label-6004
SELECT col1 * col0 DIV - tab1.col2 FROM tab1
----
-1
-10
-11

skipif mysql # not compatible
query I rowsort label-6004
SELECT col1 * col0 / - tab1.col2 FROM tab1
----
-1
-10
-11

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6005
SELECT - - ( - ( - col2 ) ) * - CAST( NULL AS SIGNED ) + - col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6005
SELECT - - ( - ( - col2 ) ) * - CAST ( NULL AS INTEGER ) + - col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + cor0.col1 + - col1 * cor0.col2 FROM tab0 AS cor0
----
-2752
-7371
0

query I rowsort
SELECT - tab0.col2 * + tab0.col1 AS col2 FROM tab0
----
-2838
-7462
-97

query I rowsort
SELECT + - ( - col1 ) + + col0 AS col2 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT - ( col1 ) * + ( col1 ) + cor0.col0 AS col0 FROM tab0 cor0
----
-7372
-8192
-9374

query I rowsort
SELECT DISTINCT - 13 FROM tab0, tab1 AS cor0
----
-13

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6011
SELECT - CAST( NULL AS SIGNED ) + + col1 col0 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6011
SELECT - CAST ( NULL AS INTEGER ) + + col1 col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + 18 + + col0 + col0 * - col0 AS col1 FROM tab2 AS cor0
----
-24
-5988
-6144

onlyif mysql # use DIV operator for integer division
query I rowsort label-6013
SELECT 32 DIV cor0.col0 AS col2 FROM tab1 AS cor0
----
0
0
10

skipif mysql # not compatible
query I rowsort label-6013
SELECT 32 / cor0.col0 AS col2 FROM tab1 AS cor0
----
0
0
10

query I rowsort
SELECT + col0 * - col0 + col1 * - col0 FROM tab2 AS cor0
----
-10686
-266
-7584

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col1 * + col2 * + col2 col0 FROM tab2
----
22599
24548
39884

onlyif mysql # use DIV operator for integer division
query I rowsort label-6016
SELECT col2 - col0 DIV col1 FROM tab2
----
25
27
34

skipif mysql # not compatible
query I rowsort label-6016
SELECT col2 - col0 / col1 FROM tab2
----
25
27
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 - + ( col2 ) * - col0 * col0 col2 FROM tab0 AS cor0
----
1190
18984
649433

query I rowsort
SELECT DISTINCT - 57 * ( col2 ) FROM tab1 AS cor0
----
-3078
-3249
-5472

query I rowsort
SELECT + col1 + - col1 + - col1 AS col1 FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT ALL + col2 + + cor0.col2 AS col1 FROM tab2 cor0
----
52
54
76

query I rowsort
SELECT + col2 - 5 * + col2 FROM tab0 AS cor0
----
-132
-328
-4

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6022
SELECT DISTINCT + - CAST( - col2 AS SIGNED ) * col0 FROM tab0 AS cor0
----
35
7298
792

skipif mysql # not compatible
query I rowsort label-6022
SELECT DISTINCT + - CAST ( - col2 AS INTEGER ) * col0 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT col0 * + 64 AS col0 FROM tab2 cor0
----
448
4992
5056

query I rowsort
SELECT ALL - col0 * col1 + + col0 FROM tab1 cor0
----
-576
-75
-960

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6025
SELECT DISTINCT - ( ( cor0.col1 ) ) * - CAST( + col2 + col1 AS SIGNED ) * + col1 FROM tab2 AS cor0
----
15895
295885
55738

skipif mysql # not compatible
query I rowsort label-6025
SELECT DISTINCT - ( ( cor0.col1 ) ) * - CAST ( + col2 + col1 AS INTEGER ) * + col1 FROM tab2 AS cor0
----
15895
295885
55738

query I rowsort
SELECT - + col1 + col2 + + cor0.col2 FROM tab2 AS cor0
----
-7
23
59

query I rowsort
SELECT DISTINCT 17 + 36 * - col0 FROM tab2 AS cor0
----
-235
-2791
-2827

query I rowsort
SELECT - col0 * + col0 + col0 + ( + cor0.col1 ) * - col2 FROM tab1 AS cor0
----
-1410
-4602
-7568

query I rowsort
SELECT ALL + - 32 * col2 FROM tab0 AS cor0
----
-1056
-2624
-32

onlyif mysql # use DIV operator for integer division
query I rowsort label-6030
SELECT DISTINCT ( + col1 ) * col1 DIV cor0.col2 FROM tab1 AS cor0
----
1
12

skipif mysql # not compatible
query I rowsort label-6030
SELECT DISTINCT ( + col1 ) * col1 / cor0.col2 FROM tab1 AS cor0
----
1
12

query I rowsort
SELECT - 12 + - 79 AS col2 FROM tab1 AS cor0
----
-91
-91
-91

query I rowsort
SELECT - col2 * 64 + col2 FROM tab0 AS cor0
----
-2079
-5166
-63

query I rowsort
SELECT - 22 * col0 - - 13 FROM tab2
----
-141
-1703
-1725

query I rowsort
SELECT DISTINCT - 0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6035
SELECT ALL col1 + - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6035
SELECT ALL col1 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 63 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c3eea92c46f2c49716f386a58b575025

onlyif mysql # use DIV operator for integer division
query I rowsort label-6037
SELECT ALL - col1 DIV col2 + 49 FROM tab1 cor0
----
49
49
49

skipif mysql # not compatible
query I rowsort label-6037
SELECT ALL - col1 / col2 + 49 FROM tab1 cor0
----
49
49
49

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6038
SELECT + - col0 + + CAST( + col2 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-7
16
51

skipif mysql # not compatible
query I rowsort label-6038
SELECT + - col0 + + CAST ( + col2 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-7
16
51

query I rowsort
SELECT ALL - col0 * cor0.col0 + col1 * col0 FROM tab0 AS cor0
----
1488
178
2170

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 - + cor0.col1 col2 FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT DISTINCT - col1 * - ( + ( + col0 ) ) AS col1 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT ALL + - cor0.col0 + - 46 + + col1 AS col1 FROM tab1 AS cor0
----
-100
-113
-23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - cor0.col1 + 71 * col0 col2 FROM tab2 AS cor0
----
466
5479
5592

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6044
SELECT DISTINCT - col0 - CAST( NULL AS DECIMAL ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6044
SELECT DISTINCT - col0 - CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL - col2 * + 20 + col2 * col2 * + col0 FROM tab0 AS cor0
----
15
25476
596796

query I rowsort
SELECT + col2 + - 13 AS col1 FROM tab0 AS cor0
----
-12
20
69

query I rowsort
SELECT DISTINCT - + col2 * + col1 + - col0 FROM tab1 AS cor0
----
-1328
-1407
-634

onlyif mysql # use DIV operator for integer division
query I rowsort label-6048
SELECT DISTINCT col2 DIV + col2 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-6048
SELECT DISTINCT col2 / + col2 FROM tab0 AS cor0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col0 + - 58 col0 FROM tab0 AS cor0
----
-23
-34
31

query I rowsort
SELECT + col1 * 90 AS col0 FROM tab0 AS cor0
----
7740
8190
8730

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + 8 * col2 col2 FROM tab1 AS cor0
----
486
513
864

query I rowsort
SELECT ALL 88 + - col0 + col1 FROM tab2
----
112
26
69

query I rowsort
SELECT ALL col2 * col0 + cor0.col0 AS col0 FROM tab0 AS cor0
----
70
7387
816

query I rowsort
SELECT + - col2 * + cor0.col2 AS col2 FROM tab1 AS cor0
----
-2916
-3249
-9216

query I rowsort
SELECT col0 * col1 + + ( - cor0.col2 ) AS col2 FROM tab0 cor0
----
2031
3394
8017

query I rowsort
SELECT ALL + + cor0.col0 * col1 AS col1 FROM tab0 AS cor0
----
2064
3395
8099

query IIIIIIIIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab1, tab2 cor1, tab1 AS cor2
----
972 values hashing to 4634d10e8b6b37510bb99745aade36ab

onlyif mysql # use DIV operator for integer division
query I rowsort label-6058
SELECT DISTINCT - col1 DIV - 87 AS col1 FROM tab0 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-6058
SELECT DISTINCT - col1 / - 87 AS col1 FROM tab0 AS cor0
----
0
1

query I rowsort
SELECT DISTINCT col0 + 48 * cor0.col1 AS col2 FROM tab0 AS cor0
----
4152
4457
4691

query I rowsort
SELECT col2 * col2 + cor0.col0 AS col0 FROM tab1 AS cor0
----
2919
3313
9296

query I rowsort
SELECT DISTINCT col2 + 42 AS col1 FROM tab0 cor0
----
124
43
75

query I rowsort
SELECT + tab1.col2 - - 47 AS col2 FROM tab1
----
101
104
143

query I rowsort
SELECT cor0.col2 + tab1.col2 * 51 * tab1.col0 FROM tab1, tab1 cor0
----
9 values hashing to 8a39f75f0d4db9690c95deee90d2c4e1

query I rowsort
SELECT ALL - col1 - col0 * cor0.col0 FROM tab2 AS cor0
----
-6143
-6258
-80

query I rowsort
SELECT DISTINCT - - 95 * + col0 AS col2 FROM tab2 cor0
----
665
7410
7505

query I rowsort
SELECT DISTINCT 40 + tab1.col2 FROM tab1
----
136
94
97

query I rowsort
SELECT 35 * + 9 AS col2 FROM tab1
----
315
315
315

query I rowsort
SELECT col2 - 19 AS col1 FROM tab2
----
19
7
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - tab1.col1 ) * col2 + + 79 * col2 col1 FROM tab1
----
2862
3933
6336

onlyif mysql # use DIV operator for integer division
query I rowsort label-6070
SELECT ALL tab0.col0 * - col1 + col0 DIV 21 AS col2 FROM tab0
----
-2063
-3394
-8095

skipif mysql # not compatible
query I rowsort label-6070
SELECT ALL tab0.col0 * - col1 + col0 / 21 AS col2 FROM tab0
----
-2063
-3394
-8095

query I rowsort
SELECT ALL + tab0.col2 * - col0 + - col2 * col0 FROM tab0
----
-14596
-1584
-70

query I rowsort
SELECT ALL + - col2 * col0 + col2 AS col1 FROM tab0 AS cor0
----
-34
-7216
-759

query I rowsort
SELECT col1 * col1 + - 64 AS col2 FROM tab0 cor0
----
7332
8217
9345

onlyif mysql # use DIV operator for integer division
query I rowsort label-6074
SELECT ALL + tab0.col1 DIV - 22 AS col0 FROM tab0
----
-3
-4
-4

skipif mysql # not compatible
query I rowsort label-6074
SELECT ALL + tab0.col1 / - 22 AS col0 FROM tab0
----
-3
-4
-4

query I rowsort
SELECT - cor0.col2 * - col2 + + col1 * - 39 FROM tab1 AS cor0
----
1902
2859
8709

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 75 + - col1 col0 FROM tab2 AS cor0
----
16
44
58

query I rowsort
SELECT DISTINCT cor0.col2 * col2 - col1 FROM tab0 AS cor0
----
-96
1003
6633

query I rowsort
SELECT ALL - + 92 + col1 AS col0 FROM tab1 AS cor0
----
-66
-79
-82

query I rowsort
SELECT ALL + + col1 * + 21 FROM tab1 AS cor0
----
210
273
546

query I rowsort
SELECT DISTINCT + 47 * col1 FROM tab2 AS cor0
----
1457
2773
799

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6081
SELECT - - CAST( + 0 AS SIGNED ) * col1 + + ( col0 ) * - col0 AS col0 FROM tab1 AS cor0
----
-4096
-6400
-9

skipif mysql # not compatible
query I rowsort label-6081
SELECT - - CAST ( + 0 AS INTEGER ) * col1 + + ( col0 ) * - col0 AS col0 FROM tab1 AS cor0
----
-4096
-6400
-9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6082
SELECT ALL + CAST( NULL AS SIGNED ) + + col0 * col0 * cor0.col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6082
SELECT ALL + CAST ( NULL AS INTEGER ) + + col0 * col0 * cor0.col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6083
SELECT ALL + CAST( NULL AS SIGNED ) - - col0 * col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6083
SELECT ALL + CAST ( NULL AS INTEGER ) - - col0 * col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT cor0.col2 * 58 * col0 FROM tab2 AS cor0
----
10962
117624
174116

query I rowsort
SELECT ALL col1 + + cor0.col0 * col0 FROM tab2 AS cor0
----
6143
6258
80

query I rowsort
SELECT - + ( - col1 ) * col2 AS col1 FROM tab2 cor0
----
1534
646
837

query I rowsort
SELECT DISTINCT + ( ( - col2 ) ) * ( + 87 ) AS col1 FROM tab0 AS cor0
----
-2871
-7134
-87

query I rowsort
SELECT ALL 9 * + col0 FROM tab2 AS cor0
----
63
702
711

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col2 * - 85 col0 FROM tab1, tab2 cor0, tab2 cor1
----
-2210
-2295
-3230

query I rowsort
SELECT + cor0.col2 * + ( - col2 ) * - col0 + 66 FROM tab0 AS cor0
----
101
26202
598502

query I rowsort
SELECT DISTINCT col2 * 76 + col0 FROM tab2 AS cor0
----
2054
2059
2967

query I rowsort
SELECT ALL + cor0.col2 - 26 FROM tab0 AS cor0
----
-25
56
7

query I rowsort
SELECT ALL + - col1 * col1 + - col0 FROM tab1 cor0
----
-164
-249
-679

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col2 * 57 col2 FROM tab1
----
3078
3249
5472

query I rowsort
SELECT col0 * col0 + + col1 * col1 AS col0 FROM tab1 AS cor0
----
4196
6569
685

query I rowsort
SELECT DISTINCT - col2 + 94 AS col1 FROM tab1 AS cor0
----
-2
37
40

onlyif mysql # use DIV operator for integer division
query I rowsort label-6097
SELECT + - col0 + - 7 * cor0.col1 DIV col0 FROM tab2 AS cor0
----
-38
-80
-83

skipif mysql # not compatible
query I rowsort label-6097
SELECT + - col0 + - 7 * cor0.col1 / col0 FROM tab2 AS cor0
----
-38
-80
-83

onlyif mysql # use DIV operator for integer division
query I rowsort label-6098
SELECT col2 DIV + 1 - col1 col0 FROM tab1 AS cor0
----
28
47
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6098
SELECT col2 / + 1 - col1 col0 FROM tab1 AS cor0
----
28
47
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-6099
SELECT ALL + col2 - + 25 DIV + col1 FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-6099
SELECT ALL + col2 - + 25 / + col1 FROM tab0 AS cor0
----
1
33
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-6100
SELECT ALL - col0 DIV + ( - col1 ) + - col0 DIV - col0 AS col2 FROM tab1
----
1
7
7

skipif mysql # not compatible
query I rowsort label-6100
SELECT ALL - col0 / + ( - col1 ) + - col0 / - col0 AS col2 FROM tab1
----
1
7
7

query I rowsort
SELECT ALL - col1 + - ( col0 ) FROM tab2
----
-137
-38
-96

query I rowsort
SELECT 0 + + col0 FROM tab2 cor0
----
7
78
79

query I rowsort
SELECT - - col1 * col1 + col1 * col0 AS col0 FROM tab2 AS cor0
----
1178
1632
8083

query I rowsort
SELECT - + ( - 49 ) * col0 + + col0 FROM tab1 AS cor0
----
150
3200
4000

query I rowsort
SELECT cor0.col2 * - col0 + col0 FROM tab1 AS cor0
----
-159
-3584
-7600

query I rowsort
SELECT DISTINCT tab2.col0 FROM tab2, tab1 cor0, tab2 AS cor1
----
7
78
79

query I rowsort
SELECT col2 * + ( - col2 ) FROM tab0
----
-1
-1089
-6724

query I rowsort
SELECT + col1 * 53 AS col0 FROM tab1
----
1378
530
689

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6109
SELECT col0 * - col0 + col0 * col0 + + CAST( col2 AS SIGNED ) FROM tab0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-6109
SELECT col0 * - col0 + col0 * col0 + + CAST ( col2 AS INTEGER ) FROM tab0
----
1
33
82

query I rowsort
SELECT 32 * col1 + col1 * + col0 AS col0 FROM tab1 AS cor0
----
1456
910
960

onlyif mysql # use DIV operator for integer division
query I rowsort label-6111
SELECT 35 DIV + col0 + + col2 AS col2 FROM tab0 AS cor0
----
2
34
82

skipif mysql # not compatible
query I rowsort label-6111
SELECT 35 / + col0 + + col2 AS col2 FROM tab0 AS cor0
----
2
34
82

query I rowsort
SELECT + + ( col1 ) - col2 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT ALL + col2 * tab0.col1 * + 66 FROM tab0
----
187308
492492
6402

query I rowsort
SELECT - col2 * 20 FROM tab0
----
-1640
-20
-660

query I rowsort
SELECT - tab0.col0 + + 35 FROM tab0, tab1 AS cor0
----
9 values hashing to 15d23219791fd95a9b93d8d911c07406

query I rowsort
SELECT - col1 * + 65 FROM tab0
----
-5590
-5915
-6305

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6117
SELECT + - col2 * col0 + col2 + - CAST( col1 + + col0 AS SIGNED ) FROM tab0 cor0
----
-166
-7396
-869

skipif mysql # not compatible
query I rowsort label-6117
SELECT + - col2 * col0 + col2 + - CAST ( col1 + + col0 AS INTEGER ) FROM tab0 cor0
----
-166
-7396
-869

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6118
SELECT ALL + CAST( NULL AS SIGNED ) * + tab1.col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6118
SELECT ALL + CAST ( NULL AS INTEGER ) * + tab1.col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT cor1.col0 FROM tab2, tab2 AS cor0, tab1 cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

query I rowsort
SELECT ALL 83 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 002a717a3d902d97220759065fb107c3

query I rowsort
SELECT - col2 + ( col0 ) * cor0.col1 FROM tab2 AS cor0
----
1305
190
4576

query I rowsort
SELECT + tab1.col1 + col1 AS col1 FROM tab1
----
20
26
52

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6123
SELECT ALL CAST( - 45 AS SIGNED ) * + cor1.col0 + ( tab1.col2 ) FROM tab1, tab1 cor0, tab0 AS cor1
----
27 values hashing to 63bee849da55393c92c06cc8c65b337c

skipif mysql # not compatible
query I rowsort label-6123
SELECT ALL CAST ( - 45 AS INTEGER ) * + cor1.col0 + ( tab1.col2 ) FROM tab1, tab1 cor0, tab0 AS cor1
----
27 values hashing to 63bee849da55393c92c06cc8c65b337c

query I rowsort
SELECT + col0 - - 31 * + col1 FROM tab0 AS cor0
----
2690
2910
3042

query I rowsort
SELECT cor0.col0 + + col1 * - col0 FROM tab2 cor0
----
-1264
-210
-4524

query I rowsort
SELECT col2 + - col2 + col2 AS col0 FROM tab0 AS cor0
----
1
33
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-6127
SELECT - + col1 DIV 58 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6127
SELECT - + col1 / 58 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT + col0 * + ( col0 ) AS col0 FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT DISTINCT + 67 * col0 + 19 FROM tab1 AS cor0
----
220
4307
5379

query I rowsort
SELECT DISTINCT cor0.col2 - 70 FROM tab0, tab0 AS cor0
----
-37
-69
12

query I rowsort
SELECT ALL - + col2 + col2 + ( col1 ) FROM tab1 AS cor0
----
10
13
26

onlyif mysql # use DIV operator for integer division
query I rowsort label-6132
SELECT ALL - cor0.col0 DIV col2 + + cor0.col1 * cor0.col2 AS col1 FROM tab1 AS cor0
----
1248
1404
569

skipif mysql # not compatible
query I rowsort label-6132
SELECT ALL - cor0.col0 / col2 + + cor0.col1 * cor0.col2 AS col1 FROM tab1 AS cor0
----
1248
1404
569

query I rowsort
SELECT ALL 69 * + col1 * + col1 AS col1 FROM tab1 cor0
----
11661
46644
6900

query I rowsort
SELECT DISTINCT - ( + col1 ) * col2 FROM tab2 AS cor0
----
-1534
-646
-837

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 89 * + col0 col1 FROM tab1 AS cor0
----
267
5696
7120

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6136
SELECT DISTINCT ( - col1 ) * - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6136
SELECT DISTINCT ( - col1 ) * - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL + 41 + - col2 + col2 * ( col1 + + col1 ) FROM tab0
----
14883
234
5684

query I rowsort
SELECT DISTINCT ( col1 ) * - col2 AS col2 FROM tab0
----
-2838
-7462
-97

query I rowsort
SELECT tab1.col1 + + col2 * col0 * col1 FROM tab1
----
36490
4238
99853

query I rowsort
SELECT DISTINCT + ( - col0 + + col0 ) AS col2 FROM tab0
----
0

query I rowsort
SELECT + + col0 * + cor0.col0 AS col1 FROM tab1 AS cor0
----
4096
6400
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * - col2 col1 FROM tab0
----
-35
-7298
-792

query I rowsort
SELECT + col1 * + ( + col0 ) * col2 + + col1 AS col0 FROM tab1
----
36490
4238
99853

query I rowsort
SELECT + 11 AS col1 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 69116737f3f57e2e3273f6dbb04d036c

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + col0 + - cor0.col1 * - 21 col1 FROM tab0 AS cor0
----
1854
2089
2107

query I rowsort
SELECT DISTINCT - - 98 + - col1 FROM tab0 cor0
----
1
12
7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6147
SELECT + CAST( + col0 AS SIGNED ) * - cor0.col2 * col0 AS col2 FROM tab1 AS cor0
----
-233472
-486
-614400

skipif mysql # not compatible
query I rowsort label-6147
SELECT + CAST ( + col0 AS INTEGER ) * - cor0.col2 * col0 AS col2 FROM tab1 AS cor0
----
-233472
-486
-614400

query I rowsort
SELECT - - cor0.col2 * + ( col2 ) FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT ALL + 35 * + col1 AS col2 FROM tab1
----
350
455
910

query I rowsort
SELECT - - 10 * col1 FROM tab0 AS cor0
----
860
910
970

query I rowsort
SELECT ALL ( col0 ) * - col1 + + 49 FROM tab0 AS cor0
----
-2015
-3346
-8050

query I rowsort
SELECT ALL 41 * + col2 AS col2 FROM tab1 AS cor0
----
2214
2337
3936

query I rowsort
SELECT ALL + 57 * + cor0.col2 FROM tab0 AS cor0
----
1881
4674
57

query I rowsort
SELECT - + 8 + cor0.col0 AS col2 FROM tab1 cor0
----
-5
56
72

query I rowsort
SELECT ( col1 ) * + col2 AS col1 FROM tab0
----
2838
7462
97

query I rowsort
SELECT + ( + col2 ) + - col0 + - 41 AS col0 FROM tab0
----
-32
-48
-75

query I rowsort
SELECT ALL + 15 FROM tab1, tab2 AS cor0
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd

onlyif mysql # use DIV operator for integer division
query I rowsort label-6158
SELECT DISTINCT ( - col0 ) DIV + col1 AS col1 FROM tab2
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-6158
SELECT DISTINCT ( - col0 ) / + col1 AS col1 FROM tab2
----
-1
-4
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6159
SELECT DISTINCT - CAST( + 28 + col2 AS SIGNED ) AS col0 FROM tab2
----
-54
-55
-66

skipif mysql # not compatible
query I rowsort label-6159
SELECT DISTINCT - CAST ( + 28 + col2 AS INTEGER ) AS col0 FROM tab2
----
-54
-55
-66

query I rowsort
SELECT ALL - ( 42 * col0 ) + col1 FROM tab0
----
-1373
-3647
-922

query I rowsort
SELECT col2 + + ( col2 ) FROM tab2 cor0
----
52
54
76

query I rowsort
SELECT DISTINCT - col2 * col1 + + cor0.col1 AS col1 FROM tab1 AS cor0
----
-1235
-1378
-560

onlyif mysql # use DIV operator for integer division
query I rowsort label-6163
SELECT ALL - cor1.col1 DIV + 90 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to d1b3390bf3c224e527bf68f43fea665f

skipif mysql # not compatible
query I rowsort label-6163
SELECT ALL - cor1.col1 / + 90 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to d1b3390bf3c224e527bf68f43fea665f

query I rowsort
SELECT ALL + 16 * - col0 - col0 FROM tab0 AS cor0
----
-1513
-408
-595

query I rowsort
SELECT - col1 + tab2.col1 + col1 * - col2 AS col0 FROM tab2
----
-1534
-646
-837

query I rowsort
SELECT + cor0.col1 + - 22 * col0 AS col2 FROM tab2 cor0
----
-123
-1657
-1721

query I rowsort
SELECT DISTINCT - - 64 + col2 FROM tab1 cor0
----
118
121
160

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor1.col0 col0 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
3
64
80

query I rowsort
SELECT DISTINCT - 50 * + ( - col1 ) + col0 FROM tab2 AS cor0
----
1557
3028
929

query I rowsort
SELECT ALL ( - col2 ) * 92 FROM tab0 AS cor0
----
-3036
-7544
-92

onlyif mysql # use DIV operator for integer division
query I rowsort label-6171
SELECT DISTINCT + col0 + + col1 DIV + 56 FROM tab0 AS cor0
----
25
36
90

skipif mysql # not compatible
query I rowsort label-6171
SELECT DISTINCT + col0 + + col1 / + 56 FROM tab0 AS cor0
----
25
36
90

onlyif mysql # use DIV operator for integer division
query I rowsort label-6172
SELECT + 24 * - col1 DIV + col1 AS col0 FROM tab0 AS cor0
----
-24
-24
-24

skipif mysql # not compatible
query I rowsort label-6172
SELECT + 24 * - col1 / + col1 AS col0 FROM tab0 AS cor0
----
-24
-24
-24

query I rowsort
SELECT - 12 * - col0 AS col0 FROM tab0 cor0
----
1068
288
420

query I rowsort
SELECT - 51 * cor0.col0 + - col2 FROM tab1 AS cor0
----
-207
-3321
-4176

query I rowsort
SELECT ( - col1 ) * col2 FROM tab2 cor0
----
-1534
-646
-837

query I rowsort
SELECT DISTINCT + - 20 AS col1 FROM tab0 AS cor0
----
-20

query I rowsort
SELECT DISTINCT - - 4 * + col0 FROM tab0 AS cor0
----
140
356
96

query I rowsort
SELECT ALL + + col0 * col2 + - col1 AS col2 FROM tab0 cor0
----
-62
706
7207

query I rowsort
SELECT 47 + cor0.col2 AS col1 FROM tab0 AS cor0
----
129
48
80

query I rowsort
SELECT ALL - 72 + col2 AS col2 FROM tab1 AS cor0
----
-15
-18
24

query I rowsort
SELECT + 81 * + col2 AS col0 FROM tab0 AS cor0
----
2673
6642
81

query I rowsort
SELECT ALL - 26 + - col1 FROM tab2 AS cor0
----
-43
-57
-85

query I rowsort
SELECT ALL + 25 * - col0 FROM tab1 AS cor0
----
-1600
-2000
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + 98 col2 FROM tab2
----
124
125
136

query I rowsort
SELECT + 93 + - col0 AS col1 FROM tab1 AS cor0
----
13
29
90

query I rowsort
SELECT cor0.col2 + - col1 AS col1 FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT - cor0.col1 * 49 + 35 AS col2 FROM tab1 AS cor0
----
-1239
-455
-602

query I rowsort
SELECT ALL + col2 + cor0.col2 + + 75 AS col2 FROM tab1 AS cor0
----
183
189
267

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * + col1 * 46 + - col0 * col0 col0 FROM tab2 AS cor0
----
205608
55537
9933

query I rowsort
SELECT - col1 * col2 * col1 AS col0 FROM tab1
----
-16224
-36504
-5700

query I rowsort
SELECT DISTINCT col0 * 31 + - col2 AS col2 FROM tab0 AS cor0
----
1084
2677
711

query I rowsort
SELECT - col0 * - col0 + col2 FROM tab2 AS cor0
----
6110
6279
76

query I rowsort
SELECT DISTINCT + col0 - + col0 * + col2 FROM tab2 AS cor0
----
-182
-1950
-2923

query I rowsort
SELECT DISTINCT + col0 + 45 + + 44 * - col1 FROM tab1 AS cor0
----
-1096
-331
-447

query I rowsort
SELECT + col2 * ( - ( + col0 ) ) FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT ALL col1 * + col0 - - col1 FROM tab1 cor0
----
104
1053
650

onlyif mysql # use DIV operator for integer division
query I rowsort label-6197
SELECT col0 DIV col0 - 6 * - col0 AS col1 FROM tab2 cor0
----
43
469
475

skipif mysql # not compatible
query I rowsort label-6197
SELECT col0 / col0 - 6 * - col0 AS col1 FROM tab2 cor0
----
43
469
475

query I rowsort
SELECT ALL - col1 * + col1 + col1 FROM tab0 cor0
----
-7310
-8190
-9312

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 - - col2 col0 FROM tab0 AS cor0
----
164
2
66

query I rowsort
SELECT ALL col0 * 61 + 72 * col0 FROM tab2 AS cor0
----
10374
10507
931

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6201
SELECT DISTINCT - col1 * CAST( + col1 AS SIGNED ) - - col2 * - cor0.col0 FROM tab2 AS cor0
----
-1150
-3291
-5509

skipif mysql # not compatible
query I rowsort label-6201
SELECT DISTINCT - col1 * CAST ( + col1 AS INTEGER ) - - col2 * - cor0.col0 FROM tab2 AS cor0
----
-1150
-3291
-5509

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6202
SELECT col1 + - CAST( NULL AS DECIMAL ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6202
SELECT col1 + - CAST ( NULL AS REAL ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + - col0 + cor0.col2 * + col0 AS col1 FROM tab0 cor0
----
0
7209
768

query I rowsort
SELECT ( cor1.col2 ) FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

onlyif mysql # use DIV operator for integer division
query I rowsort label-6205
SELECT DISTINCT + ( + cor0.col1 ) DIV - col1 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-6205
SELECT DISTINCT + ( + cor0.col1 ) / - col1 FROM tab2 AS cor0
----
-1

query I rowsort
SELECT ALL col1 - + col0 * - col0 FROM tab0 AS cor0
----
1322
662
8012

query I rowsort
SELECT + 63 * - col0 AS col0 FROM tab0 AS cor0
----
-1512
-2205
-5607

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - col1 + + col0 + - col2 col2 FROM tab2 AS cor0
----
-248
-3429
-981

query I rowsort
SELECT col2 + - 19 FROM tab2
----
19
7
8

query I rowsort
SELECT DISTINCT col0 + + col0 * 33 AS col2 FROM tab1
----
102
2176
2720

query I rowsort
SELECT + + cor0.col0 + - ( - col2 ) + cor0.col1 FROM tab1 cor0
----
131
189
83

query I rowsort
SELECT ALL + col2 * col0 * 30 FROM tab2
----
5670
60840
90060

query I rowsort
SELECT 48 * col2 * col1 FROM tab0
----
136224
358176
4656

query I rowsort
SELECT DISTINCT - col2 * + tab1.col2 * + tab1.col1 AS col0 FROM tab1
----
-119808
-32490
-75816

query I rowsort
SELECT + col1 * - tab2.col1 * col0 AS col2 FROM tab2
----
-22831
-271518
-6727

onlyif mysql # use DIV operator for integer division
query I rowsort label-6216
SELECT + col2 DIV + 44 + + col1 + + col0 * col1 FROM tab2 AS cor0
----
1360
248
4661

skipif mysql # not compatible
query I rowsort label-6216
SELECT + col2 / + 44 + + col1 + + col0 * col1 FROM tab2 AS cor0
----
1360
248
4661

query I rowsort
SELECT DISTINCT - col1 - col0 * - col1 AS col1 FROM tab2 AS cor0
----
1326
186
4543

query I rowsort
SELECT ALL - col1 * 7 FROM tab0 AS cor0
----
-602
-637
-679

query I rowsort
SELECT DISTINCT cor0.col1 * - 48 FROM tab1 AS cor0
----
-1248
-480
-624

query I rowsort
SELECT - col0 + 99 AS col1 FROM tab1 AS cor0
----
19
35
96

query I rowsort
SELECT ALL + - 62 + col0 AS col1 FROM tab0 AS cor0
----
-27
-38
27

query I rowsort
SELECT ALL + + col2 + + 8 AS col2 FROM tab1 AS cor0
----
104
62
65

onlyif mysql # use DIV operator for integer division
query I rowsort label-6223
SELECT DISTINCT 28 DIV + col1 + cor0.col1 DIV cor0.col2 AS col0 FROM tab1 AS cor0
----
1
2

skipif mysql # not compatible
query I rowsort label-6223
SELECT DISTINCT 28 / + col1 + cor0.col1 / cor0.col2 AS col0 FROM tab1 AS cor0
----
1
2

query I rowsort
SELECT DISTINCT - cor0.col1 * - 9 + - cor0.col0 * + col1 * + cor0.col0 AS col0 FROM tab0 AS cor0
----
-117952
-48762
-719992

onlyif mysql # use DIV operator for integer division
query I rowsort label-6225
SELECT - 73 DIV - 92 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6225
SELECT - 73 / - 92 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col1 * 90 AS col1 FROM tab1 AS cor0
----
1170
2340
900

query I rowsort
SELECT - 63 - col2 FROM tab1 AS cor0
----
-117
-120
-159

query I rowsort
SELECT DISTINCT 48 + - col0 AS col1 FROM tab1 AS cor0
----
-16
-32
45

query I rowsort
SELECT col1 + col1 + 58 * + col1 FROM tab0 AS cor0
----
5160
5460
5820

query I rowsort
SELECT + cor0.col0 + + col2 * - ( 19 ) FROM tab1 AS cor0
----
-1019
-1023
-1744

onlyif mysql # use DIV operator for integer division
query I rowsort label-6231
SELECT DISTINCT - 69 DIV - col0 AS col2 FROM tab2
----
0
9

skipif mysql # not compatible
query I rowsort label-6231
SELECT DISTINCT - 69 / - col0 AS col2 FROM tab2
----
0
9

query I rowsort
SELECT ALL + + col1 * + cor0.col2 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT ALL - 26 * - col2 FROM tab1 AS cor0
----
1404
1482
2496

query I rowsort
SELECT ALL 57 + - 44 * col2 * 7 AS col0 FROM tab1
----
-16575
-17499
-29511

query I rowsort
SELECT - ( cor0.col1 ) + cor0.col2 FROM tab2, tab1 AS cor0
----
9 values hashing to ae0eeb942db3f01544a81804e95e971a

query I rowsort
SELECT 70 * - col0 + col1 * + 20 + cor0.col0 FROM tab1 AS cor0
----
-4216
-5260
313

query I rowsort
SELECT + 71 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0

query I rowsort
SELECT - 8 * cor0.col2 * ( col1 ) AS col2 FROM tab2 cor0
----
-12272
-5168
-6696

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 47 col1 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 6942a0d9558277afd0d00408d65cf5aa

query I rowsort
SELECT - 40 * - cor0.col2 FROM tab0 AS cor0
----
1320
3280
40

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6241
SELECT DISTINCT - + col1 * CAST( - col0 AS SIGNED ) FROM tab1 AS cor0
----
1040
640
78

skipif mysql # not compatible
query I rowsort label-6241
SELECT DISTINCT - + col1 * CAST ( - col0 AS INTEGER ) FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT + + col2 + 89 * + col2 * col0 + + cor0.col2 AS col0 FROM tab1 AS cor0
----
14526
324786
683712

onlyif mysql # use DIV operator for integer division
query I rowsort label-6243
SELECT - col2 * 24 - cor0.col1 DIV + col1 FROM tab2 cor0
----
-625
-649
-913

skipif mysql # not compatible
query I rowsort label-6243
SELECT - col2 * 24 - cor0.col1 / + col1 FROM tab2 cor0
----
-625
-649
-913

query I rowsort
SELECT DISTINCT + - 85 FROM tab1, tab1 AS cor0, tab1 AS cor1, tab0, tab1 cor2
----
-85

query I rowsort
SELECT 80 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94

query I rowsort
SELECT tab1.col2 + 43 FROM tab1, tab2 AS cor0
----
9 values hashing to 9a431bbf3f7f7e55f66d0f165543700f

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6247
SELECT DISTINCT - col1 / CAST( NULL AS SIGNED ) + 40 AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6247
SELECT DISTINCT - col1 / CAST ( NULL AS INTEGER ) + 40 AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + + col0 * col0 + cor0.col0 - - col2 * + 98 AS col0 FROM tab0 AS cor0
----
1358
16046
3834

query I rowsort
SELECT DISTINCT + col0 * col0 + + ( + col1 ) AS col2 FROM tab0 AS cor0
----
1322
662
8012

query I rowsort
SELECT - - ( col1 ) * cor0.col2 AS col2 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT ALL - 98 AS col0 FROM tab1
----
-98
-98
-98

query I rowsort
SELECT col2 + - col1 * - col0 AS col0 FROM tab0 AS cor0
----
2097
3396
8181

onlyif mysql # use DIV operator for integer division
query I rowsort label-6253
SELECT ALL col0 DIV - cor0.col2 AS col2 FROM tab0 AS cor0
----
-1
-35
0

skipif mysql # not compatible
query I rowsort label-6253
SELECT ALL col0 / - cor0.col2 AS col2 FROM tab0 AS cor0
----
-1
-35
0

query I rowsort
SELECT DISTINCT - - 97 * col1 AS col1 FROM tab0 AS cor0
----
8342
8827
9409

query I rowsort
SELECT DISTINCT 68 FROM tab0, tab1, tab0 cor0
----
68

query I rowsort
SELECT ALL + ( col1 ) + 48 * - col1 AS col0 FROM tab0 AS cor0
----
-4042
-4277
-4559

query I rowsort
SELECT cor0.col1 * 12 AS col2 FROM tab1 AS cor0
----
120
156
312

query I rowsort
SELECT DISTINCT - + col0 + - col2 - col0 * col1 AS col0 FROM tab0 cor0
----
-2121
-3431
-8270

query I rowsort
SELECT + col0 * col0 + col2 AS col2 FROM tab2 cor0
----
6110
6279
76

query I rowsort
SELECT ALL - + cor0.col0 - cor0.col2 FROM tab2 AS cor0
----
-104
-117
-34

query I rowsort
SELECT col1 + - col0 * + col2 FROM tab1
----
-136
-3638
-7667

query I rowsort
SELECT - col0 * cor0.col2 + col0 * + col0 * + col1 FROM tab1 AS cor0
----
37312
72
75520

query I rowsort
SELECT cor0.col2 + + cor0.col2 * col1 + - col2 AS col2 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT DISTINCT cor0.col1 * cor0.col2 * + cor0.col2 FROM tab0, tab0 AS cor0
----
611884
93654
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 - col1 col1 FROM tab1 AS cor0
----
-29
-74
-93

query I rowsort
SELECT ALL + col1 + - tab1.col1 AS col0 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT + col0 - + col0 * col0 * col0 AS col0 FROM tab2 AS cor0
----
-336
-474474
-492960

query I rowsort
SELECT DISTINCT + cor0.col0 * col2 + col1 + - col0 FROM tab0 AS cor0
----
7300
854
97

query I rowsort
SELECT + tab1.col2 + col1 * col1 AS col2 FROM tab1
----
157
265
730

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col0 + - col1 col2 FROM tab2
----
158
1969
2985

query I rowsort
SELECT DISTINCT col0 * col0 + - col2 * + col1 FROM tab0
----
-2262
1128
459

query I rowsort
SELECT ALL - col2 + - col1 * - tab1.col2 AS col0 FROM tab1
----
1152
1350
513

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * col0 + - col0 * - col2 col0 FROM tab1
----
-448
1280
153

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + - col2 col1 FROM tab2
----
0
0
0

query I rowsort
SELECT - col1 * col1 + tab2.col0 AS col2 FROM tab2
----
-210
-3403
-954

onlyif mysql # use DIV operator for integer division
query I rowsort label-6276
SELECT ALL + + 76 DIV + col1 + col2 + + col1 AS col1 FROM tab1 cor0
----
114
74
82

skipif mysql # not compatible
query I rowsort label-6276
SELECT ALL + + 76 / + col1 + col2 + + col1 AS col1 FROM tab1 cor0
----
114
74
82

query I rowsort
SELECT DISTINCT - - col2 - col2 * cor0.col1 AS col2 FROM tab1 AS cor0
----
-1152
-1350
-513

query I rowsort
SELECT ALL - + col1 * col1 AS col2 FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT - - cor0.col0 * - col2 - col0 * col1 AS col1 FROM tab0 AS cor0
----
-15397
-2856
-3430

query I rowsort
SELECT ALL - + col1 * + col1 + col1 AS col2 FROM tab1 AS cor0
----
-156
-650
-90

onlyif mysql # use DIV operator for integer division
query I rowsort label-6281
SELECT ( col2 + col2 ) DIV - col0 FROM tab0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-6281
SELECT ( col2 + col2 ) / - col0 FROM tab0
----
-1
-2
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6282
SELECT - 10 DIV - 4 FROM tab2
----
2
2
2

skipif mysql # not compatible
query I rowsort label-6282
SELECT - 10 / - 4 FROM tab2
----
2
2
2

query I rowsort
SELECT + col2 + 27 FROM tab1
----
123
81
84

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6284
SELECT CAST( NULL AS SIGNED ) + 61 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6284
SELECT CAST ( NULL AS INTEGER ) + 61 AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 10 - col1 * - col0 FROM tab2
----
1353
227
4612

query I rowsort
SELECT DISTINCT + col2 * col2 * col1 + + col2 - - col2 FROM tab2
----
22653
24624
39936

onlyif mysql # use DIV operator for integer division
query I rowsort label-6287
SELECT - 69 DIV - tab0.col1 AS col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6287
SELECT - 69 / - tab0.col1 AS col2 FROM tab0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6288
SELECT + col2 DIV col0 col1 FROM tab0
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6288
SELECT + col2 / col0 col1 FROM tab0
----
0
0
1

query I rowsort
SELECT 12 * col2 FROM tab0
----
12
396
984

query I rowsort
SELECT col2 * col0 * + col2 FROM tab0
----
26136
35
598436

query I rowsort
SELECT ALL col2 * - col0 * col2 + col0 FROM tab1
----
-207872
-737200
-8745

query I rowsort
SELECT + - cor0.col1 * - col2 * col2 AS col0 FROM tab1 cor0
----
119808
32490
75816

onlyif mysql # use DIV operator for integer division
query I rowsort label-6293
SELECT col1 DIV + col1 - cor0.col2 * + col0 FROM tab1 AS cor0
----
-161
-3647
-7679

skipif mysql # not compatible
query I rowsort label-6293
SELECT col1 / + col1 - cor0.col2 * + col0 FROM tab1 AS cor0
----
-161
-3647
-7679

query I rowsort
SELECT + col2 * + col2 - col2 AS col0 FROM tab0 AS cor0
----
0
1056
6642

onlyif mysql # use DIV operator for integer division
query I rowsort label-6295
SELECT col0 DIV col2 + + col0 AS col2 FROM tab1
----
3
65
80

skipif mysql # not compatible
query I rowsort label-6295
SELECT col0 / col2 + + col0 AS col2 FROM tab1
----
3
65
80

query I rowsort
SELECT col1 * cor0.col1 AS col1 FROM tab2 cor0
----
289
3481
961

onlyif mysql # use DIV operator for integer division
query I rowsort label-6297
SELECT DISTINCT col2 * tab1.col0 DIV + tab1.col2 AS col0 FROM tab1
----
3
64
80

skipif mysql # not compatible
query I rowsort label-6297
SELECT DISTINCT col2 * tab1.col0 / + tab1.col2 AS col0 FROM tab1
----
3
64
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab2.col2 + tab2.col1 + + col0 * + col2 col1 FROM tab2
----
2113
247
3057

onlyif mysql # use DIV operator for integer division
query I rowsort label-6299
SELECT - col1 DIV col0 + + col2 DIV tab1.col1 AS col0 FROM tab1
----
-6
5
7

skipif mysql # not compatible
query I rowsort label-6299
SELECT - col1 / col0 + + col2 / tab1.col1 AS col0 FROM tab1
----
-6
5
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-6300
SELECT DISTINCT + col0 + col0 + - col0 * col1 DIV + col2 AS col2 FROM tab0
----
-14
-3325
80

skipif mysql # not compatible
query I rowsort label-6300
SELECT DISTINCT + col0 + col0 + - col0 * col1 / + col2 AS col2 FROM tab0
----
-14
-3325
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-6301
SELECT col2 * - col2 DIV tab0.col2 AS col2 FROM tab0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-6301
SELECT col2 * - col2 / tab0.col2 AS col2 FROM tab0
----
-1
-33
-82

query I rowsort
SELECT ALL - tab0.col0 + col0 + - col1 FROM tab0
----
-86
-91
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-6303
SELECT DISTINCT + tab0.col0 DIV - col0 AS col1 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-6303
SELECT DISTINCT + tab0.col0 / - col0 AS col1 FROM tab0
----
-1

query I rowsort
SELECT + tab0.col1 * - col1 * col2 AS col0 FROM tab0 WHERE - col1 + col1 / + col2 - - col2 BETWEEN col0 AND - col0 + - col1 * col0 + col1
----

query I rowsort
SELECT + col1 * - col2 * - col0 AS col1 FROM tab2
----
119652
51034
5859

query I rowsort
SELECT DISTINCT - tab2.col2 - col2 FROM tab2
----
-52
-54
-76

onlyif mysql # use DIV operator for integer division
query I rowsort label-6307
SELECT tab0.col1 DIV - tab0.col1 + tab0.col0 FROM tab0
----
23
34
88

skipif mysql # not compatible
query I rowsort label-6307
SELECT tab0.col1 / - tab0.col1 + tab0.col0 FROM tab0
----
23
34
88

query I rowsort
SELECT ALL + col1 FROM tab2 WHERE NULL = ( col0 )
----

query I rowsort
SELECT ALL - col1 * + col1 + + col2 AS col1 FROM tab2 AS cor0
----
-251
-3455
-934

query I rowsort
SELECT ALL col2 + col0 - col1 FROM tab0
----
-29
-61
80

query I rowsort
SELECT - col1 + col1 * + col1 - col1 AS col1 FROM tab2
----
255
3363
899

query I rowsort
SELECT tab1.col1 AS col2 FROM tab1 WHERE NOT col2 + - col1 + - col1 IN ( col1 )
----
10
13
26

query I rowsort
SELECT col0 FROM tab2 WHERE NOT NULL BETWEEN ( - col0 ) AND NULL
----

query I rowsort
SELECT ALL + tab1.col0 - + tab1.col0 AS col0 FROM tab1
----
0
0
0

query I rowsort
SELECT - tab1.col1 / - col0 FROM tab1 WHERE NOT NULL IN ( col0 - col1 * col0 )
----

query I rowsort
SELECT ALL col0 + + col1 * col1 AS col2 FROM tab2
----
3559
368
968

onlyif mysql # use DIV operator for integer division
query I rowsort label-6317
SELECT ALL + col1 * + col2 DIV - col2 FROM tab0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-6317
SELECT ALL + col1 * + col2 / - col2 FROM tab0
----
-86
-91
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-6318
SELECT ALL col0 + tab1.col2 DIV col2 + col0 FROM tab1
----
129
161
7

skipif mysql # not compatible
query I rowsort label-6318
SELECT ALL col0 + tab1.col2 / col2 + col0 FROM tab1
----
129
161
7

query I rowsort
SELECT col0 + col0 * - col1 * - col2 FROM tab0
----
3430
664207
68136

query I rowsort
SELECT cor0.col0 * cor0.col2 FROM tab0 cor0 CROSS JOIN tab2
----
9 values hashing to e1120e7b687b32270ef70393236e7341

query I rowsort
SELECT ALL - col2 + col0 * col1 FROM tab0 cor0
----
2031
3394
8017

onlyif mysql # use DIV operator for integer division
query I rowsort label-6322
SELECT DISTINCT + - cor0.col2 + - col0 DIV col0 AS col0 FROM tab1 AS cor0
----
-55
-58
-97

skipif mysql # not compatible
query I rowsort label-6322
SELECT DISTINCT + - cor0.col2 + - col0 / col0 AS col0 FROM tab1 AS cor0
----
-55
-58
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-6323
SELECT ALL - col2 * - col1 + col0 DIV - col1 AS col1 FROM tab2 AS cor0
----
1533
642
837

skipif mysql # not compatible
query I rowsort label-6323
SELECT ALL - col2 * - col1 + col0 / - col1 AS col1 FROM tab2 AS cor0
----
1533
642
837

query I rowsort
SELECT DISTINCT + - col2 - + col1 AS col2 FROM tab2 AS cor0
----
-55
-58
-85

query I rowsort
SELECT DISTINCT col2 * + col1 - - cor0.col1 AS col1 FROM tab1 AS cor0
----
1261
1430
580

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col1 * col1 * - col0 + col1 * + col0 col0 FROM tab0 AS cor0
----
-175440
-325920
-728910

query I rowsort
SELECT DISTINCT + col1 + - col1 * col1 AS col1 FROM tab1 AS cor0
----
-156
-650
-90

onlyif mysql # use DIV operator for integer division
query I rowsort label-6328
SELECT ALL - col1 DIV col0 AS col1 FROM tab1 cor0
----
-8
0
0

skipif mysql # not compatible
query I rowsort label-6328
SELECT ALL - col1 / col0 AS col1 FROM tab1 cor0
----
-8
0
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL IN ( + col2 / col0 )
----

query I rowsort
SELECT cor0.col1 * + cor0.col2 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT col0 * col0 + + col0 * + cor0.col2 FROM tab2 AS cor0
----
238
8112
9243

query I rowsort
SELECT ALL - col0 * col1 + + col1 * + col0 AS col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + - col2 * + 98 + - col0 FROM tab2 cor0
----
-2626
-2653
-3803

query I rowsort
SELECT 70 + + col1 AS col0 FROM tab1 AS cor0
----
80
83
96

query I rowsort
SELECT col0 + - 36 * - col2 AS col1 FROM tab2 AS cor0
----
1014
1447
979

query I rowsort
SELECT - ( - col2 ) - - col1 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT col0 + - 37 FROM tab1
----
-34
27
43

query I rowsort
SELECT col2 * - 71 + + col0 + col2 * - 92 FROM tab2
----
-4160
-4394
-6115

query I rowsort
SELECT col1 + 69 + col1 AS col2 FROM tab1
----
121
89
95

query I rowsort
SELECT DISTINCT - col1 * - ( - col1 ) * - col2 FROM tab0
----
244068
679042
9409

query I rowsort
SELECT ALL col1 * - 58 FROM tab1
----
-1508
-580
-754

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( + 36 ) * col2 col1 FROM tab1 AS cor0
----
1944
2052
3456

query I rowsort
SELECT DISTINCT 52 AS col1 FROM tab1, tab1 AS cor0
----
52

query I rowsort
SELECT ALL + 96 FROM tab2, tab0 AS cor0
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303

onlyif mysql # use DIV operator for integer division
query I rowsort label-6345
SELECT DISTINCT + col0 DIV - col1 + col0 FROM tab1
----
3
58
74

skipif mysql # not compatible
query I rowsort label-6345
SELECT DISTINCT + col0 / - col1 + col0 FROM tab1
----
3
58
74

query I rowsort
SELECT + + col1 * 19 * - col1 + - col0 * col0 AS col0 FROM tab2 cor0
----
-11732
-18308
-72223

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6347
SELECT DISTINCT + - CAST( - col0 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
7
78
79

skipif mysql # not compatible
query I rowsort label-6347
SELECT DISTINCT + - CAST ( - col0 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT ALL col2 + col1 * - col0 * col2 AS col2 FROM tab2 AS cor0
----
-119626
-50996
-5832

query I rowsort
SELECT col1 + 2 * col1 AS col0 FROM tab1 cor0
----
30
39
78

query I rowsort
SELECT ALL - cor1.col1 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 58ed467a9a332e4d7bfaa9abdbbd063f

query I rowsort
SELECT ALL - 2 * - tab1.col0 AS col1 FROM tab1
----
128
160
6

query I rowsort
SELECT ALL - col0 * + col1 * - col2 FROM tab0
----
3395
664118
68112

onlyif mysql # use DIV operator for integer division
query I rowsort label-6353
SELECT + - tab1.col2 DIV + ( 39 ) + + cor0.col1 * - tab1.col2 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 007a90e479f120cd5ed88386122624ab

skipif mysql # not compatible
query I rowsort label-6353
SELECT + - tab1.col2 / + ( 39 ) + + cor0.col1 * - tab1.col2 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 007a90e479f120cd5ed88386122624ab

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 43 col2 FROM tab1, tab1 AS cor0
----
-43

query I rowsort
SELECT col0 + + 47 * cor0.col0 AS col1 FROM tab0 AS cor0
----
1152
1680
4272

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6356
SELECT DISTINCT + col1 * + CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6356
SELECT DISTINCT + col1 * + CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL + col2 + 13 * col2 AS col1 FROM tab1 AS cor0
----
1344
756
798

query I rowsort
SELECT - + col1 + col0 AS col0 FROM tab1 cor0
----
-23
54
67

query I rowsort
SELECT - - cor0.col2 AS col0 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17

query I rowsort
SELECT - col0 - + 36 FROM tab0
----
-125
-60
-71

query I rowsort
SELECT 4 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 7 - tab0.col0 * col0 col0 FROM tab0
----
-1232
-583
-7928

query I rowsort
SELECT ALL 89 * + col0 AS col0 FROM tab0 cor0
----
2136
3115
7921

query I rowsort
SELECT ( - col2 ) * + col0 + col1 FROM tab2 AS cor0
----
-158
-1969
-2985

query I rowsort
SELECT 36 * col0 FROM tab2
----
252
2808
2844

query I rowsort
SELECT ALL ( col1 ) * ( col0 ) * col0 FROM tab0
----
118825
49536
720811

query I rowsort
SELECT - tab0.col2 * - 16 FROM tab0, tab1 AS cor0
----
9 values hashing to 468b7772a1c0d35637601bbc1e1d0ba6

query I rowsort
SELECT ALL - 18 AS col0 FROM tab0, tab1 cor0, tab0 AS cor1
----
27 values hashing to 2dbe09d9295cfd52d854fefabf2cec4e

query I rowsort
SELECT - + 11 FROM tab0 AS cor0
----
-11
-11
-11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col0 * col2 + col2 col2 FROM tab2 AS cor0
----
114114
5130
52754

query I rowsort
SELECT col0 * + col1 * - col2 FROM tab2 AS cor0
----
-119652
-51034
-5859

onlyif mysql # use DIV operator for integer division
query I rowsort label-6372
SELECT - col2 + - ( + col0 ) DIV col2 col1 FROM tab1 AS cor0
----
-54
-58
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6372
SELECT - col2 + - ( + col0 ) / col2 col1 FROM tab1 AS cor0
----
-54
-58
-96

query I rowsort
SELECT + ( + col2 * - ( + 34 ) ) AS col0 FROM tab0
----
-1122
-2788
-34

query I rowsort
SELECT + 80 AS col1 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 6dd5038be71dffa82f5ceba787caab91

query I rowsort
SELECT DISTINCT + col1 * + tab2.col2 + + ( col2 ) AS col2 FROM tab2
----
1560
684
864

query I rowsort
SELECT + 51 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d8bf0a05c9c4d2a93812d106baae4752

query I rowsort
SELECT DISTINCT 9 - col2 AS col0 FROM tab2
----
-17
-18
-29

query I rowsort
SELECT ALL col1 * col0 + ( + 76 ) * tab2.col2 * + col0 FROM tab2
----
14581
158730
229495

query I rowsort
SELECT - - cor0.col1 + - col1 + + col2 * + col2 FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT DISTINCT + + col0 * - col0 FROM tab0 cor0
----
-1225
-576
-7921

query I rowsort
SELECT DISTINCT - - col1 * col2 + - 24 * - col2 FROM tab1 AS cor0
----
1938
2700
3552

query I rowsort
SELECT ALL + col1 + col1 * - 48 FROM tab1 AS cor0
----
-1222
-470
-611

onlyif mysql # use DIV operator for integer division
query I rowsort label-6383
SELECT + col1 DIV col0 + col1 + - 4 FROM tab1 cor0
----
30
6
9

skipif mysql # not compatible
query I rowsort label-6383
SELECT + col1 / col0 + col1 + - 4 FROM tab1 cor0
----
30
6
9

query I rowsort
SELECT ALL + col2 + + cor0.col0 * + col1 FROM tab2 AS cor0
----
1381
244
4628

query I rowsort
SELECT col1 * + col1 * - ( col0 + col2 * - col0 ) FROM tab2 cor0
----
174902
6787950
844747

query I rowsort
SELECT - col0 * + 3 + - cor0.col2 * col1 + col1 * col1 AS col0 FROM tab0 AS cor0
----
4486
552
9207

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - col0 + - col1 * + col0 * col1 + col0 col1 FROM tab1 AS cor0
----
-2016
-2240
-7040

query I rowsort
SELECT DISTINCT - + col2 + - col2 * - col1 + + col2 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT + cor0.col2 * + col0 + col0 + + col2 * - 61 AS col0 FROM tab2 AS cor0
----
-1451
520
763

query I rowsort
SELECT col0 * - 11 + 6 + cor0.col1 * 54 * + 26 FROM tab2 AS cor0
----
23005
43453
81984

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + 33 ) + + col2 col2 FROM tab0 AS cor0
----
115
34
66

query I rowsort
SELECT - cor0.col0 * - 39 AS col0 FROM tab2, tab2 AS cor0, tab1 cor1
----
27 values hashing to b3060af4699495e7f7c2e98edbb11201

query I rowsort
SELECT - 10 * col2 AS col0 FROM tab2 AS cor0
----
-260
-270
-380

onlyif mysql # use DIV operator for integer division
query I rowsort label-6394
SELECT ALL - + col1 + col0 DIV + col2 AS col1 FROM tab0 cor0
----
-62
-86
-90

skipif mysql # not compatible
query I rowsort label-6394
SELECT ALL - + col1 + col0 / + col2 AS col1 FROM tab0 cor0
----
-62
-86
-90

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + CAST ( + cor0.col1 AS REAL ) AS col1 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT ALL ( 56 ) + col0 * + 2 AS col0 FROM tab2 AS cor0
----
212
214
70

query I rowsort
SELECT + col1 + + col2 * + col2 AS col0 FROM tab0 AS cor0
----
1175
6815
98

query I rowsort
SELECT - - col1 * + col1 - - ( cor0.col2 + cor0.col2 ) FROM tab1 AS cor0
----
214
361
784

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6399
SELECT col2 - col2 / CAST( NULL AS SIGNED ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6399
SELECT col2 - col2 / CAST ( NULL AS INTEGER ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col1 * col0 + + col2 AS col0 FROM tab1 AS cor0
----
1136
132
697

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 34 col2 FROM tab2
----
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 34 + col0 * - col2 * + 32 col1 FROM tab0
----
-1154
-233570
-25378

query I rowsort
SELECT DISTINCT - - cor0.col0 AS col2 FROM tab1, tab2, tab0 AS cor0, tab0
----
24
35
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-6404
SELECT ALL 93 DIV + col0 FROM tab1
----
1
1
31

skipif mysql # not compatible
query I rowsort label-6404
SELECT ALL 93 / + col0 FROM tab1
----
1
1
31

query I rowsort
SELECT ALL 99 - + tab1.col2 FROM tab1, tab1 AS cor0
----
9 values hashing to bd5a7e3b74ef1aace70deee7ed1aa4fa

onlyif mysql # use DIV operator for integer division
query I rowsort label-6406
SELECT ALL + col0 DIV col2 + cor0.col0 * cor0.col0 AS col1 FROM tab1 AS cor0
----
4097
6400
9

skipif mysql # not compatible
query I rowsort label-6406
SELECT ALL + col0 / col2 + cor0.col0 * cor0.col0 AS col1 FROM tab1 AS cor0
----
4097
6400
9

query I rowsort
SELECT DISTINCT + col1 * - col0 * col0 AS col1 FROM tab2 AS cor0
----
-106097
-1519
-358956

query I rowsort
SELECT DISTINCT cor0.col2 + 33 + - 30 AS col2 FROM tab2, tab0 AS cor0
----
36
4
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col0 * col1 * cor0.col2 + col0 col1 FROM tab1 cor0
----
36544
4215
99920

query I rowsort
SELECT ALL + ( 24 + + col2 ) * 11 AS col2 FROM tab2
----
550
561
682

query I rowsort
SELECT - cor0.col0 FROM tab1, tab1 AS cor0 CROSS JOIN tab0
----
27 values hashing to 729c1edda9332398299f39cd174ed840

query I rowsort
SELECT 98 + ( + col2 ) FROM tab2
----
124
125
136

onlyif mysql # use DIV operator for integer division
query I rowsort label-6413
SELECT 13 DIV col0 AS col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6413
SELECT 13 / col0 AS col1 FROM tab0
----
0
0
0

query I rowsort
SELECT cor0.col1 * ( col1 ) - col0 FROM tab0 AS cor0
----
7372
8192
9374

query I rowsort
SELECT DISTINCT 12 * - 41 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
-492

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 60 col0 FROM tab2 cor0
----
60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 20 + col2 col2 FROM tab2
----
46
47
58

query I rowsort
SELECT ALL tab0.col1 * + tab0.col0 + - col1 FROM tab0
----
1978
3298
8008

query I rowsort
SELECT ALL - tab1.col0 * + 47 + + col2 AS col2 FROM tab1
----
-2951
-3664
-87

query I rowsort
SELECT - col0 * col2 * + cor0.col2 AS col0 FROM tab0 AS cor0
----
-26136
-35
-598436

query I rowsort
SELECT ALL + + ( 62 ) AS col0 FROM tab0 AS cor0
----
62
62
62

query I rowsort
SELECT DISTINCT 34 * - 49 FROM tab1 AS cor0
----
-1666

onlyif mysql # use DIV operator for integer division
query I rowsort label-6423
SELECT ALL - col0 DIV + cor0.col0 AS col1 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6423
SELECT ALL - col0 / + cor0.col0 AS col1 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT - 31 FROM tab1, tab1 cor0
----
-31

query I rowsort
SELECT ALL + 59 + 27 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19

query I rowsort
SELECT ALL col2 + + col0 + 93 FROM tab1
----
150
214
269

query I rowsort
SELECT ALL - col1 * + col2 * col2 FROM tab2 cor0
----
-22599
-24548
-39884

onlyif mysql # use DIV operator for integer division
query I rowsort label-6428
SELECT DISTINCT - 66 DIV - 77 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6428
SELECT DISTINCT - 66 / - 77 FROM tab2 AS cor0
----
0

query I rowsort
SELECT + ( + 24 ) * col1 AS col1 FROM tab0 AS cor0
----
2064
2184
2328

query I rowsort
SELECT + 8 * 15 FROM tab2 AS cor0
----
120
120
120

query I rowsort
SELECT ALL - + col0 + + col0 * - col0 FROM tab0 AS cor0
----
-1260
-600
-8010

query I rowsort
SELECT ALL - - 61 + col1 AS col2 FROM tab2 AS cor0
----
120
78
92

query I rowsort
SELECT - col1 * + cor0.col2 + + col0 AS col2 FROM tab1 AS cor0
----
-1168
-1401
-506

query I rowsort
SELECT DISTINCT ( cor0.col1 ) + - cor0.col0 * 16 AS col0 FROM tab2 cor0
----
-1189
-1247
-81

query I rowsort
SELECT ALL 27 + 36 * - col0 + - col2 FROM tab1 AS cor0
----
-135
-2334
-2949

query I rowsort
SELECT ALL - + col2 + + 43 * - cor0.col2 * cor0.col2 AS col1 FROM tab0 AS cor0
----
-289214
-44
-46860

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + col0 ) - + col2 col1 FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT - col0 + - 13 AS col2 FROM tab0 AS cor0
----
-102
-37
-48

onlyif mysql # use DIV operator for integer division
query I rowsort label-6439
SELECT ALL 92 DIV - col0 FROM tab2 cor0
----
-1
-1
-13

skipif mysql # not compatible
query I rowsort label-6439
SELECT ALL 92 / - col0 FROM tab2 cor0
----
-1
-1
-13

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6440
SELECT ALL - col1 / + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6440
SELECT ALL - col1 / + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + + cor0.col2 * 11 AS col2 FROM tab2 cor0
----
286
297
418

query I rowsort
SELECT ALL tab0.col1 * - tab0.col1 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 9be0dab92dd50faf37ee99ac8db7c57d

query I rowsort
SELECT + - ( - col1 ) - - cor0.col1 AS col2 FROM tab2 AS cor0
----
118
34
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * cor0.col2 * col0 col2 FROM tab1 AS cor0
----
233472
486
614400

onlyif mysql # use DIV operator for integer division
query I rowsort label-6445
SELECT + - 67 DIV col1 - col2 FROM tab0 AS cor0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-6445
SELECT + - 67 / col1 - col2 FROM tab0 AS cor0
----
-1
-33
-82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6446
SELECT + CAST( - col2 AS SIGNED ) - + col1 AS col2 FROM tab1 AS cor0
----
-109
-67
-80

skipif mysql # not compatible
query I rowsort label-6446
SELECT + CAST ( - col2 AS INTEGER ) - + col1 AS col2 FROM tab1 AS cor0
----
-109
-67
-80

query I rowsort
SELECT - ( + cor0.col2 ) * col0 FROM tab2 AS cor0
----
-189
-2028
-3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-6448
SELECT - col0 * cor0.col2 DIV 66 FROM tab2 cor0
----
-2
-30
-45

skipif mysql # not compatible
query I rowsort label-6448
SELECT - col0 * cor0.col2 / 66 FROM tab2 cor0
----
-2
-30
-45

query I rowsort
SELECT ALL col0 - + col2 * + cor0.col1 AS col0 FROM tab1 cor0
----
-1168
-1401
-506

query I rowsort
SELECT DISTINCT - cor0.col2 * + cor0.col1 * - cor0.col0 FROM tab2 AS cor0
----
119652
51034
5859

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + col1 * + col2 col0 FROM tab1 AS cor0
----
1328
1407
634

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 17 * col1 col2 FROM tab2 cor0
----
1003
289
527

onlyif mysql # use DIV operator for integer division
query I rowsort label-6453
SELECT DISTINCT - col0 * cor0.col0 - + col1 DIV - col0 FROM tab2 AS cor0
----
-45
-6084
-6241

skipif mysql # not compatible
query I rowsort label-6453
SELECT DISTINCT - col0 * cor0.col0 - + col1 / - col0 FROM tab2 AS cor0
----
-45
-6084
-6241

query I rowsort
SELECT + + col2 + cor0.col1 AS col0 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT ALL + 45 + 90 FROM tab0
----
135
135
135

onlyif mysql # use DIV operator for integer division
query I rowsort label-6456
SELECT ALL ( + col0 ) + - col2 DIV + col1 FROM tab0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-6456
SELECT ALL ( + col0 ) + - col2 / + col1 FROM tab0
----
24
35
89

query I rowsort
SELECT ALL - tab2.col2 + - 19 FROM tab2
----
-45
-46
-57

query I rowsort
SELECT col0 * + col1 * 14 FROM tab0
----
113386
28896
47530

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 35 ) col0 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29

query I rowsort
SELECT DISTINCT col1 * + col0 * - col2 + - col0 FROM tab2 AS cor0
----
-119730
-51113
-5866

query I rowsort
SELECT ALL - col0 + - cor0.col2 * col2 * col2 AS col1 FROM tab2 cor0
----
-17654
-19690
-54951

query I rowsort
SELECT DISTINCT + col1 + 69 FROM tab2 AS cor0
----
100
128
86

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6463
SELECT col0 / CAST( NULL AS SIGNED ) + + 35 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6463
SELECT col0 / CAST ( NULL AS INTEGER ) + + 35 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + - col1 + + 2 AS col1 FROM tab2 AS cor0
----
-15
-29
-57

query I rowsort
SELECT ALL col2 * 19 + + 52 FROM tab0 AS cor0
----
1610
679
71

onlyif mysql # use DIV operator for integer division
query I rowsort label-6466
SELECT ALL - - col0 DIV 76 AS col1 FROM tab2 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-6466
SELECT ALL - - col0 / 76 AS col1 FROM tab2 AS cor0
----
0
1
1

query I rowsort
SELECT + + col0 * 15 + 78 AS col2 FROM tab0 AS cor0
----
1413
438
603

query I rowsort
SELECT col1 + 66 * - col2 FROM tab2 AS cor0
----
-1657
-1751
-2491

query I rowsort
SELECT DISTINCT - - cor0.col0 FROM tab1, tab0, tab0 AS cor0
----
24
35
89

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6470
SELECT CAST( 27 AS SIGNED ) FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 1a3cef5c33b8f87ffeded378fd207753

skipif mysql # not compatible
query I rowsort label-6470
SELECT CAST ( 27 AS INTEGER ) FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 1a3cef5c33b8f87ffeded378fd207753

query I rowsort
SELECT + col0 * 81 * + col2 + - cor0.col1 AS col0 FROM tab1 AS cor0
----
13096
295478
622067

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab1 AS cor2, tab2 AS cor3
----
3645 values hashing to 4406ccc71f02ae9c1e947ffcd89b0db7

query I rowsort
SELECT DISTINCT + tab1.col2 * - ( col0 ) AS col2 FROM tab1
----
-162
-3648
-7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-6474
SELECT + col2 * + 4 + col1 DIV - cor0.col2 AS col2 FROM tab0 AS cor0
----
-93
130
327

skipif mysql # not compatible
query I rowsort label-6474
SELECT + col2 * + 4 + col1 / - cor0.col2 AS col2 FROM tab0 AS cor0
----
-93
130
327

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab0, tab2 AS cor1, tab2, tab0 AS cor2
----
3645 values hashing to 35998cdc87c8b13ea047f14c9f5dc8d6

query I rowsort
SELECT ALL - 61 * col2 AS col0 FROM tab1 AS cor0
----
-3294
-3477
-5856

query I rowsort
SELECT ALL ( + col2 ) - + col0 * + tab2.col1 AS col1 FROM tab2
----
-1305
-190
-4576

query I rowsort
SELECT + cor0.col2 * - 4 FROM tab1 AS cor0
----
-216
-228
-384

query I rowsort
SELECT - ( - cor0.col0 ) * - cor0.col1 - + 73 AS col0 FROM tab1 cor0
----
-1113
-151
-713

query I rowsort
SELECT DISTINCT cor0.col1 FROM tab0, tab1 AS cor0 CROSS JOIN tab2
----
10
13
26

query I rowsort
SELECT col2 + col0 * 62 AS col0 FROM tab2 cor0
----
461
4862
4936

query I rowsort
SELECT ALL - 87 * + col0 AS col0 FROM tab1
----
-261
-5568
-6960

query I rowsort
SELECT + - 17 AS col1 FROM tab0 cor0
----
-17
-17
-17

query I rowsort
SELECT ALL 57 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 220a93709e207779b34ef74b544764a5

query I rowsort
SELECT ALL - 3 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 95b6b9b4aae5cc2d9545db9f8940b2dc

query I rowsort
SELECT ALL 82 + col2 AS col2 FROM tab0 cor0
----
115
164
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col1 - - col1 col2 FROM tab1 cor0
----
104
1053
650

query I rowsort
SELECT ALL + 94 * col1 + - col1 FROM tab1 AS cor0
----
1209
2418
930

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 1 col1 FROM tab2, tab0 AS cor0
----
1

query I rowsort
SELECT + col1 * - cor0.col1 * col2 AS col0 FROM tab1 AS cor0
----
-16224
-36504
-5700

query I rowsort
SELECT 19 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11

onlyif mysql # use DIV operator for integer division
query I rowsort label-6492
SELECT DISTINCT - col1 + + col2 DIV col1 AS col1 FROM tab0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-6492
SELECT DISTINCT - col1 + + col2 / col1 AS col1 FROM tab0
----
-86
-91
-97

query I rowsort
SELECT ALL - col2 + - 37 FROM tab0
----
-119
-38
-70

onlyif mysql # use DIV operator for integer division
query I rowsort label-6494
SELECT ALL 62 + + 11 DIV col1 FROM tab1
----
62
62
63

skipif mysql # not compatible
query I rowsort label-6494
SELECT ALL 62 + + 11 / col1 FROM tab1
----
62
62
63

query I rowsort
SELECT + 0 AS col0 FROM tab0, tab2, tab1 cor0
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

query I rowsort
SELECT ALL + col0 + - col2 * - col2 + - ( col1 ) * col2 FROM tab1
----
1515
2743
8048

query I rowsort
SELECT + 76 - col2 FROM tab2 AS cor0
----
38
49
50

query I rowsort
SELECT ALL + 62 * col0 FROM tab1 AS cor0
----
186
3968
4960

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( ( - col0 ) ) col1 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT + cor0.col2 * + col2 - + col1 * col2 FROM tab2 AS cor0
----
-108
-858
798

query I rowsort
SELECT DISTINCT - ( col1 ) + + col0 * + ( cor0.col2 ) FROM tab1 AS cor0
----
136
3638
7667

query I rowsort
SELECT - col2 * + ( col1 * col1 ) + col1 * + col0 + - 54 * - col0 FROM tab0 cor0
----
-240708
-4124
-666137

query I rowsort
SELECT ALL ( 68 ) * - col2 * + ( 43 ) FROM tab0 AS cor0
----
-239768
-2924
-96492

query I rowsort
SELECT ALL 15 * col0 FROM tab0
----
1335
360
525

query I rowsort
SELECT ALL + 71 * 69 FROM tab1, tab1 AS cor0, tab0 cor1
----
27 values hashing to 46d5f19905be6dc69772aac0268ea6d0

query I rowsort
SELECT ALL - 97 + - col1 * - col2 * col1 AS col2 FROM tab0
----
243971
678945
9312

query I rowsort
SELECT DISTINCT cor0.col0 + + 94 * - 34 FROM tab2, tab2 AS cor0
----
-3117
-3118
-3189

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * col1 + col1 col1 FROM tab0 AS cor0
----
-7310
-8190
-9312

onlyif mysql # use DIV operator for integer division
query I rowsort label-6509
SELECT - col2 + + col0 DIV - col1 FROM tab1 AS cor0
----
-102
-54
-63

skipif mysql # not compatible
query I rowsort label-6509
SELECT - col2 + + col0 / - col1 FROM tab1 AS cor0
----
-102
-54
-63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + col0 * - col1 col1 FROM tab0 AS cor0
----
-2031
-3394
-8017

query I rowsort
SELECT ALL - col1 * + ( - col1 ) AS col0 FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT - col2 * col0 * col1 AS col2 FROM tab0 AS cor0
----
-3395
-664118
-68112

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 * ( + 89 ) col0 FROM tab1 cor0
----
1157
2314
890

query I rowsort
SELECT - - col0 * col0 * col2 AS col2 FROM tab2 AS cor0
----
1323
158184
237158

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6515
SELECT col0 * CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6515
SELECT col0 * CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + cor0.col0 * + cor0.col1 + + col1 + col1 AS col2 FROM tab0 AS cor0
----
2236
3589
8281

query I rowsort
SELECT DISTINCT + cor0.col0 + col2 * - col2 AS col0 FROM tab1 AS cor0
----
-2913
-3185
-9136

query I rowsort
SELECT ALL col2 * ( col1 ) AS col2 FROM tab1 AS cor0
----
1248
1404
570

onlyif mysql # use DIV operator for integer division
query I rowsort label-6519
SELECT ALL + + col2 DIV 89 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6519
SELECT ALL + + col2 / 89 AS col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT - - col0 + cor0.col1 * col1 AS col0 FROM tab1 cor0
----
164
249
679

query I rowsort
SELECT DISTINCT - - col0 * ( + cor0.col2 ) + col1 AS col1 FROM tab0 cor0
----
132
7389
878

query I rowsort
SELECT DISTINCT + 53 AS col2 FROM tab1, tab0 AS cor0
----
53

query I rowsort
SELECT 93 - cor1.col1 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 5980d81f73449d924ca5746be2a27e38

query I rowsort
SELECT - cor0.col2 * tab2.col1 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 3f5ea019223361c8c7a5502ecc1aeefb

query I rowsort
SELECT ALL - col0 + - ( ( col1 ) + cor0.col2 ) * - 28 * col1 FROM tab2 AS cor0
----
140342
26101
50337

query I rowsort
SELECT ALL + col2 + 61 + + col1 AS col0 FROM tab2 AS cor0
----
116
119
146

query I rowsort
SELECT DISTINCT - + ( 36 ) + col1 AS col0 FROM tab1 AS cor0
----
-10
-23
-26

query I rowsort
SELECT - + ( col2 ) * + col2 FROM tab1 cor0
----
-2916
-3249
-9216

query I rowsort
SELECT - + ( ( - col0 ) ) FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT + 72 - - 28 FROM tab1, tab2 AS cor0
----
9 values hashing to fdbc64d082fd12518b9c868f375d2675

query I rowsort
SELECT + col2 + 76 FROM tab0
----
109
158
77

query I rowsort
SELECT - col2 * - col0 + col1 AS col1 FROM tab2
----
2087
220
3019

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 93 col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 38f445d95788c7dc754ff688a62df03b

query I rowsort
SELECT DISTINCT col2 * col1 + ( - col0 ) * col0 AS col0 FROM tab1 AS cor0
----
-3526
-5152
1395

onlyif mysql # use DIV operator for integer division
query I rowsort label-6535
SELECT - col0 DIV + col0 + ( - 31 * col1 ) AS col2 FROM tab2 AS cor0
----
-1830
-528
-962

skipif mysql # not compatible
query I rowsort label-6535
SELECT - col0 / + col0 + ( - 31 * col1 ) AS col2 FROM tab2 AS cor0
----
-1830
-528
-962

query I rowsort
SELECT ALL - 58 + + cor0.col0 AS col0 FROM tab0 cor0
----
-23
-34
31

query I rowsort
SELECT - 72 * col0 * - col2 + 72 AS col1 FROM tab2 AS cor0
----
13680
146088
216216

onlyif mysql # use DIV operator for integer division
query I rowsort label-6538
SELECT ALL col0 + - col0 * col2 DIV col2 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6538
SELECT ALL col0 + - col0 * col2 / col2 AS col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6539
SELECT - cor0.col2 DIV col2 + + col1 FROM tab0 AS cor0
----
85
90
96

skipif mysql # not compatible
query I rowsort label-6539
SELECT - cor0.col2 / col2 + + col1 FROM tab0 AS cor0
----
85
90
96

query I rowsort
SELECT DISTINCT - - col2 + col2 * 48 AS col2 FROM tab2 AS cor0
----
1274
1323
1862

query I rowsort
SELECT DISTINCT ( cor0.col0 ) * 50 FROM tab0 AS cor0
----
1200
1750
4450

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 65 + - cor0.col2 * + col2 col1 FROM tab1 AS cor0
----
-2851
-3184
-9151

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col0 + - cor0.col0 * col2 col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT ( - col2 ) + 30 * + cor0.col0 FROM tab2 AS cor0
----
183
2314
2332

query I rowsort
SELECT DISTINCT - 1 * col0 * + col1 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT ALL tab2.col1 * - cor0.col1 AS col0 FROM tab2, tab0 cor0
----
9 values hashing to 3a68b2420e96feae5e3ca1f4dd4282df

onlyif mysql # use DIV operator for integer division
query I rowsort label-6547
SELECT DISTINCT + col0 + col1 DIV 13 FROM tab2 AS cor0
----
80
82
9

skipif mysql # not compatible
query I rowsort label-6547
SELECT DISTINCT + col0 + col1 / 13 FROM tab2 AS cor0
----
80
82
9

query I rowsort
SELECT - + col2 + + col0 AS col1 FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT ALL + + col2 * - col0 - + 78 FROM tab2 AS cor0
----
-2106
-267
-3080

query I rowsort
SELECT ALL - 61 - col0 AS col2 FROM tab1
----
-125
-141
-64

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6551
SELECT DISTINCT - - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-6551
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6552
SELECT DISTINCT + col0 DIV + tab1.col2 + ( 91 ) AS col0 FROM tab1
----
91
92

skipif mysql # not compatible
query I rowsort label-6552
SELECT DISTINCT + col0 / + tab1.col2 + ( 91 ) AS col0 FROM tab1
----
91
92

query I rowsort
SELECT + cor0.col1 * + col0 + col1 FROM tab1 cor0
----
104
1053
650

query I rowsort
SELECT ALL ( col1 ) + 23 AS col2 FROM tab2 cor0
----
40
54
82

query I rowsort
SELECT + ( col1 * + col1 ) FROM tab1
----
100
169
676

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6556
SELECT DISTINCT + CAST( + 14 AS SIGNED ) * + col0 FROM tab2
----
1092
1106
98

skipif mysql # not compatible
query I rowsort label-6556
SELECT DISTINCT + CAST ( + 14 AS INTEGER ) * + col0 FROM tab2
----
1092
1106
98

query I rowsort
SELECT + 96 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6558
SELECT + - CAST( col2 AS SIGNED ) * col0 + + col0 FROM tab2 AS cor0
----
-182
-1950
-2923

skipif mysql # not compatible
query I rowsort label-6558
SELECT + - CAST ( col2 AS INTEGER ) * col0 + + col0 FROM tab2 AS cor0
----
-182
-1950
-2923

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + 87 col1 FROM tab2 cor0
----
609
6786
6873

query I rowsort
SELECT ALL cor0.col1 + ( - 74 ) FROM tab0, tab2 cor0, tab1 AS cor1
----
27 values hashing to 96808a6831faa202b9c2ddc35a41c6df

query I rowsort
SELECT + ( col1 ) + - ( + 41 ) * + cor0.col2 AS col2 FROM tab2 AS cor0
----
-1007
-1076
-1541

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 * + col0 col1 FROM tab1 AS cor0
----
-162
-3648
-7680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6563
SELECT ALL cor0.col2 + CAST( col1 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
109
67
80

skipif mysql # not compatible
query I rowsort label-6563
SELECT ALL cor0.col2 + CAST ( col1 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT + + col0 + cor0.col0 AS col2 FROM tab0 AS cor0
----
178
48
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - col0 * - cor0.col1 * - col2 col1 FROM tab2 AS cor0
----
-119593
-51017
-5828

query I rowsort
SELECT + col1 * - col2 * col2 + - col1 * + 23 AS col0 FROM tab0 AS cor0
----
-2328
-613977
-95632

query I rowsort
SELECT ALL + col2 + 30 AS col2 FROM tab0 AS cor0
----
112
31
63

query I rowsort
SELECT DISTINCT + col1 + 62 + col1 AS col1 FROM tab0 AS cor0
----
234
244
256

query I rowsort
SELECT + col1 * + col0 + cor0.col2 AS col2 FROM tab0 AS cor0
----
2097
3396
8181

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * 7 col2 FROM tab0 AS cor0
----
168
245
623

onlyif mysql # use DIV operator for integer division
query I rowsort label-6571
SELECT - + 56 DIV + col1 FROM tab1 AS cor0
----
-2
-4
-5

skipif mysql # not compatible
query I rowsort label-6571
SELECT - + 56 / + col1 FROM tab1 AS cor0
----
-2
-4
-5

onlyif mysql # use DIV operator for integer division
query I rowsort label-6572
SELECT + ( 25 ) DIV col1 FROM tab1 cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-6572
SELECT + ( 25 ) / col1 FROM tab1 cor0
----
0
1
2

query I rowsort
SELECT DISTINCT col2 + 3 * - col0 FROM tab2
----
-199
-208
6

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6574
SELECT - CAST( NULL AS SIGNED ) + + 42 FROM tab0 AS cor0 CROSS JOIN tab1, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-6574
SELECT - CAST ( NULL AS INTEGER ) + + 42 FROM tab0 AS cor0 CROSS JOIN tab1, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT 27 * col2 + col2 FROM tab0 AS cor0
----
2296
28
924

query I rowsort
SELECT col2 * + 59 + tab2.col1 * - tab2.col1 - - 39 * + col0 FROM tab2
----
1095
5034
905

query I rowsort
SELECT + cor0.col1 * 95 AS col0 FROM tab0 AS cor0
----
8170
8645
9215

query I rowsort
SELECT - col0 + - 99 FROM tab0 AS cor0
----
-123
-134
-188

onlyif mysql # use DIV operator for integer division
query I rowsort label-6579
SELECT + col2 DIV - 25 + col0 FROM tab0 AS cor0
----
23
35
86

skipif mysql # not compatible
query I rowsort label-6579
SELECT + col2 / - 25 + col0 FROM tab0 AS cor0
----
23
35
86

onlyif mysql # use DIV operator for integer division
query I rowsort label-6580
SELECT ( - cor0.col0 ) + col2 * col0 DIV - cor0.col1 AS col1 FROM tab2 AS cor0
----
-112
-13
-255

skipif mysql # not compatible
query I rowsort label-6580
SELECT ( - cor0.col0 ) + col2 * col0 / - cor0.col1 AS col1 FROM tab2 AS cor0
----
-112
-13
-255

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6581
SELECT ALL CAST( NULL AS DECIMAL ) * col0 + col2 * + 18 col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6581
SELECT ALL CAST ( NULL AS REAL ) * col0 + col2 * + 18 col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6582
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - cor0.col0 + + col0 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6582
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - cor0.col0 + + col0 AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + ( ( - col1 ) ) AS col0 FROM tab1 AS cor0
----
-10
-13
-26

onlyif mysql # use DIV operator for integer division
query I rowsort label-6584
SELECT DISTINCT + - cor0.col1 DIV col1 FROM tab0 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-6584
SELECT DISTINCT + - cor0.col1 / col1 FROM tab0 cor0
----
-1

onlyif mysql # use DIV operator for integer division
query I rowsort label-6585
SELECT - col2 * cor0.col2 * col1 - col0 DIV col0 FROM tab2 AS cor0
----
-22600
-24549
-39885

skipif mysql # not compatible
query I rowsort label-6585
SELECT - col2 * cor0.col2 * col1 - col0 / col0 FROM tab2 AS cor0
----
-22600
-24549
-39885

query I rowsort
SELECT DISTINCT + col1 * + 52 + col2 AS col0 FROM tab0 AS cor0
----
4505
4814
5045

query I rowsort
SELECT DISTINCT - ( - col2 ) - + col1 AS col2 FROM tab2 AS cor0
----
-33
-4
21

query I rowsort
SELECT + - 93 AS col0 FROM tab0 AS cor0
----
-93
-93
-93

query I rowsort
SELECT + ( ( + col2 ) ) + col0 * col0 AS col0 FROM tab2
----
6110
6279
76

query I rowsort
SELECT DISTINCT + col0 + - ( + col2 ) AS col1 FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT ALL - col1 - ( ( col1 ) + + col0 ) FROM tab1 AS cor0
----
-106
-55
-84

query I rowsort
SELECT DISTINCT + 84 * col0 * 9 FROM tab0
----
18144
26460
67284

query I rowsort
SELECT ALL tab2.col1 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

query I rowsort
SELECT col1 * + ( + ( col1 ) ) FROM tab2
----
289
3481
961

query I rowsort
SELECT - - col2 + + 43 AS col1 FROM tab1 AS cor0
----
100
139
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6596
SELECT + col0 * CAST( - col1 AS SIGNED ) FROM tab2 AS cor0
----
-1343
-217
-4602

skipif mysql # not compatible
query I rowsort label-6596
SELECT + col0 * CAST ( - col1 AS INTEGER ) FROM tab2 AS cor0
----
-1343
-217
-4602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col0 + + col2 col0 FROM tab1
----
121
176
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-6598
SELECT - col2 DIV - 78 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6598
SELECT - col2 / - 78 FROM tab2
----
0
0
0

query I rowsort
SELECT 50 + col2 * col1 FROM tab1 AS cor0
----
1298
1454
620

query I rowsort
SELECT DISTINCT col1 * - col1 AS col2 FROM tab2 cor0
----
-289
-3481
-961

query I rowsort
SELECT ALL + col1 * - col0 - - col2 AS col1 FROM tab0 AS cor0
----
-2031
-3394
-8017

query I rowsort
SELECT DISTINCT + col1 * col0 + col0 * + col1 + - col2 AS col2 FROM tab0 AS cor0
----
16116
4095
6789

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 31 + + col0 col2 FROM tab1 AS cor0
----
111
34
95

query I rowsort
SELECT DISTINCT + col1 * col2 - - col0 FROM tab1 cor0
----
1328
1407
634

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 + - cor0.col1 col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - + 20 + col1 FROM tab0 AS cor0
----
66
71
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + ( cor0.col2 ) * + col0 col1 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT DISTINCT - ( col1 ) * col1 - + cor0.col0 AS col2 FROM tab1 cor0
----
-164
-249
-679

onlyif mysql # use DIV operator for integer division
query I rowsort label-6609
SELECT ALL cor0.col1 DIV col0 col2 FROM tab2 AS cor0
----
0
0
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6609
SELECT ALL cor0.col1 / col0 col2 FROM tab2 AS cor0
----
0
0
4

query I rowsort
SELECT ALL + cor0.col0 + - col2 * cor0.col0 FROM tab0 AS cor0
----
-7209
-768
0

query I rowsort
SELECT ALL + col0 * - col2 + col1 + col2 FROM tab1 AS cor0
----
-3581
-7571
-82

query I rowsort
SELECT ALL + col0 * col1 * - col2 + + col1 AS col0 FROM tab0 AS cor0
----
-3298
-664027
-68026

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 8 col0 FROM tab1, tab1 AS cor0
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57

query I rowsort
SELECT DISTINCT 65 * - 69 FROM tab0 AS cor0
----
-4485

query I rowsort
SELECT ALL ( + col2 ) * col2 AS col1 FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT + col1 + ( - tab2.col2 ) FROM tab2
----
-21
33
4

query I rowsort
SELECT ALL - col2 * ( - col0 ) + + col0 * - col1 AS col0 FROM tab0
----
-1272
-3360
-801

query I rowsort
SELECT + 59 + - 7 AS col2 FROM tab2
----
52
52
52

query I rowsort
SELECT DISTINCT col1 * ( + col1 ) * + col1 AS col1 FROM tab0
----
636056
753571
912673

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab0.col0 * - 91 col0 FROM tab0
----
2184
3185
8099

query I rowsort
SELECT - tab2.col1 * col2 + - col0 * col2 AS col1 FROM tab2
----
-1026
-3562
-3648

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6622
SELECT ALL - CAST( - col1 AS SIGNED ) + col1 AS col0 FROM tab0
----
172
182
194

skipif mysql # not compatible
query I rowsort label-6622
SELECT ALL - CAST ( - col1 AS INTEGER ) + col1 AS col0 FROM tab0
----
172
182
194

query I rowsort
SELECT ALL - + ( 48 ) + col0 - - col1 AS col2 FROM tab1 cor0
----
-19
26
45

query I rowsort
SELECT - col2 * + 16 + - col2 AS col0 FROM tab0 cor0
----
-1394
-17
-561

query I rowsort
SELECT DISTINCT + cor0.col1 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
86
91
97

query I rowsort
SELECT + + col2 * 27 + - col1 FROM tab0 AS cor0
----
-70
2123
805

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6627
SELECT DISTINCT - CAST( col1 AS SIGNED ) - + col2 FROM tab1 cor0
----
-109
-67
-80

skipif mysql # not compatible
query I rowsort label-6627
SELECT DISTINCT - CAST ( col1 AS INTEGER ) - + col2 FROM tab1 cor0
----
-109
-67
-80

query IIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1 AS cor0 WHERE NULL = NULL
----

query I rowsort
SELECT ALL - - 19 - cor0.col1 AS col2 FROM tab0 cor0
----
-67
-72
-78

query I rowsort
SELECT tab1.col1 + - col2 * tab1.col1 * + col1 AS col1 FROM tab1
----
-16211
-36478
-5690

query I rowsort
SELECT ALL - col2 + + col2 * + col2 FROM tab0
----
0
1056
6642

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN NULL AND col0
----

query I rowsort
SELECT - col2 + + col0 + col1 * - col2 FROM tab0
----
-2847
-63
-7455

query I rowsort
SELECT - col2 + - col1 AS col0 FROM tab2
----
-55
-58
-85

query I rowsort
SELECT ALL - col2 + + tab0.col1 * col0 FROM tab0
----
2031
3394
8017

query I rowsort
SELECT col2 FROM tab2 AS cor0 WHERE ( col0 * col1 ) = - col1 / col0
----

query I rowsort
SELECT ALL + col0 * col2 + - col1 FROM tab2
----
158
1969
2985

onlyif mysql # use DIV operator for integer division
query I rowsort label-6638
SELECT ALL col2 + + col1 DIV + col2 + col1 * col1 FROM tab0
----
7431
8364
9507

skipif mysql # not compatible
query I rowsort label-6638
SELECT ALL col2 + + col1 / + col2 + col1 * col1 FROM tab0
----
7431
8364
9507

query I rowsort
SELECT DISTINCT - col1 + - col1 * col0 FROM tab1
----
-104
-1053
-650

query I rowsort
SELECT - col1 + col0 + + col1 FROM tab1
----
3
64
80

query I rowsort
SELECT ALL - tab1.col1 + + col2 * - col2 AS col0 FROM tab1
----
-2942
-3259
-9229

onlyif mysql # use DIV operator for integer division
query I rowsort label-6642
SELECT DISTINCT cor0.col1 DIV - col0 AS col2 FROM tab2 cor0
----
-4
0

skipif mysql # not compatible
query I rowsort label-6642
SELECT DISTINCT cor0.col1 / - col0 AS col2 FROM tab2 cor0
----
-4
0

query I rowsort
SELECT ALL + - cor0.col1 * - cor0.col1 + + col1 FROM tab1 AS cor0
----
110
182
702

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + - col0 * cor0.col0 col0 FROM tab0 AS cor0
----
-1224
-543
-7839

query I rowsort
SELECT - col2 + - cor0.col2 + col0 AS col2 FROM tab0 AS cor0
----
-42
-75
33

query I rowsort
SELECT DISTINCT - cor0.col1 * cor0.col0 FROM tab2, tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT - - col1 - cor0.col0 AS col2 FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT DISTINCT + - col0 + - col1 + cor0.col2 AS col0 FROM tab0 AS cor0
----
-131
-77
-98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col0 - col2 * cor0.col2 col0 FROM tab2 AS cor0
----
-680
4797
5408

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - col0 col2 FROM tab1 cor0
----
-1040
-640
-78

query I rowsort
SELECT col1 * col1 + + cor0.col1 * - col0 + col1 AS col0 FROM tab2 AS cor0
----
-1037
-1062
775

query I rowsort
SELECT DISTINCT col0 * + col1 + col2 * - col0 + col1 FROM tab0
----
1358
3457
892

onlyif mysql # use DIV operator for integer division
query I rowsort label-6653
SELECT col0 DIV - col0 + col0 + col1 FROM tab1 AS cor0
----
28
73
92

skipif mysql # not compatible
query I rowsort label-6653
SELECT col0 / - col0 + col0 + col1 FROM tab1 AS cor0
----
28
73
92

query I rowsort
SELECT - + col1 * col0 + + col0 AS col2 FROM tab2 AS cor0
----
-1264
-210
-4524

query I rowsort
SELECT - col0 + + col0 + col0 * - cor0.col0 FROM tab2 AS cor0
----
-49
-6084
-6241

query I rowsort
SELECT DISTINCT col2 * col1 + + col2 AS col2 FROM tab2
----
1560
684
864

query I rowsort
SELECT + - cor0.col2 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba

query I rowsort
SELECT + 0 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT DISTINCT tab2.col0 * + 5 FROM tab2
----
35
390
395

query I rowsort
SELECT - 7 AS col1 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 82db7c0390abae7ccf4512b1302a6466

onlyif mysql # use DIV operator for integer division
query I rowsort label-6661
SELECT DISTINCT - cor0.col1 DIV col0 + col1 * ( col1 ) + col2 col2 FROM tab1 cor0
----
157
265
722

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6661
SELECT DISTINCT - cor0.col1 / col0 + col1 * ( col1 ) + col2 col2 FROM tab1 cor0
----
157
265
722

query I rowsort
SELECT col0 + - cor0.col2 * col0 AS col2 FROM tab2 AS cor0
----
-182
-1950
-2923

query I rowsort
SELECT col2 * 25 * + col2 FROM tab1
----
230400
72900
81225

skipif mysql # not compatible
query I rowsort
SELECT + col1 * CAST ( + 90 * col0 AS REAL ) + ( col1 ) AS col2 FROM tab2
----
120887
19561
414239

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 44 col0 FROM tab0
----
44
44
44

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 * col0 + + ( - col2 ) * + col2 col2 FROM tab2 AS cor0
----
-540
1352
1558

query I rowsort
SELECT cor0.col0 * col0 - col2 AS col2 FROM tab2 AS cor0
----
22
6058
6203

query I rowsort
SELECT + col0 * - col0 + 10 AS col0 FROM tab0 AS cor0
----
-1215
-566
-7911

query I rowsort
SELECT ALL + ( + col1 ) + col0 FROM tab2
----
137
38
96

query I rowsort
SELECT DISTINCT 86 AS col0 FROM tab1, tab0 cor0
----
86

query I rowsort
SELECT ALL + 9 * tab0.col2 FROM tab0
----
297
738
9

query I rowsort
SELECT ALL - + 79 * - ( + col2 ) FROM tab0 AS cor0
----
2607
6478
79

skipif mysql # not compatible
query I rowsort
SELECT + + col0 + + col1 * - CAST ( + col2 AS REAL ) FROM tab0 cor0
----
-2814
-62
-7373

query I rowsort
SELECT - - col0 * col2 + col2 FROM tab1 AS cor0
----
216
3705
7776

onlyif mysql # use DIV operator for integer division
query I rowsort label-6675
SELECT + - col1 DIV - col0 - col0 * + col0 AS col2 FROM tab0 AS cor0
----
-1223
-573
-7920

skipif mysql # not compatible
query I rowsort label-6675
SELECT + - col1 / - col0 - col0 * + col0 AS col2 FROM tab0 AS cor0
----
-1223
-573
-7920

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 1 - - cor0.col1 col0 FROM tab2 AS cor0
----
18
32
60

skipif mysql # not compatible
query I rowsort
SELECT + 12 * - col0 * CAST ( - ( col2 ) AS REAL ) + + ( col1 ) FROM tab0 AS cor0
----
517
87667
9590

query I rowsort
SELECT + col1 * - cor0.col2 * 52 - - col1 FROM tab2 AS cor0
----
-33575
-43493
-79709

query I rowsort
SELECT - col2 * - col1 + + 0 AS col2 FROM tab1
----
1248
1404
570

query I rowsort
SELECT + col1 * - col1 - + col1 FROM tab1
----
-110
-182
-702

query I rowsort
SELECT ( - col2 ) + + col0 - col2 * col0 FROM tab1
----
-213
-3641
-7696

query I rowsort
SELECT 84 + col1 FROM tab2
----
101
115
143

query I rowsort
SELECT - col1 - - col1 AS col2 FROM tab2
----
0
0
0

query I rowsort
SELECT - col0 + - col0 * + 54 AS col1 FROM tab1
----
-165
-3520
-4400

query I rowsort
SELECT tab0.col1 - + col0 * - col2 AS col1 FROM tab0
----
132
7389
878

query I rowsort
SELECT col0 + col2 * col1 AS col1 FROM tab0 AS cor0
----
132
2862
7551

onlyif mysql # use DIV operator for integer division
query I rowsort label-6687
SELECT + col0 + - cor0.col2 DIV ( col0 * + col0 + col0 * col0 ) FROM tab2 AS cor0
----
7
78
79

skipif mysql # not compatible
query I rowsort label-6687
SELECT + col0 + - cor0.col2 / ( col0 * + col0 + col0 * col0 ) FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT ALL col2 - - 83 * - 42 AS col0 FROM tab1 AS cor0
----
-3390
-3429
-3432

query I rowsort
SELECT ALL - col1 + + col2 * - col0 AS col2 FROM tab0 AS cor0
----
-132
-7389
-878

query I rowsort
SELECT DISTINCT + col2 + col1 * col2 + col1 FROM tab0 AS cor0
----
195
2957
7635

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + 97 * tab2.col2 col1 FROM tab2
----
148798
62662
81189

query I rowsort
SELECT + col0 + col1 + cor0.col0 AS col1 FROM tab2 AS cor0
----
175
215
45

query I rowsort
SELECT + + col2 * - 20 - - col2 * col0 * col1 FROM tab2 AS cor0
----
119132
50274
5319

query I rowsort
SELECT col0 + 62 * - 68 * - col1 FROM tab2 AS cor0
----
130703
248822
71751

query I rowsort
SELECT - - col0 + col0 * - 65 AS col1 FROM tab1 AS cor0
----
-192
-4096
-5120

onlyif mysql # use DIV operator for integer division
query I rowsort label-6696
SELECT ALL - col1 - 34 DIV + 99 AS col2 FROM tab2 cor0
----
-17
-31
-59

skipif mysql # not compatible
query I rowsort label-6696
SELECT ALL - col1 - 34 / + 99 AS col2 FROM tab2 cor0
----
-17
-31
-59

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6697
SELECT - + col0 * - CAST( ( - col1 ) AS SIGNED ) * - col2 + cor0.col0 * col1 FROM tab0 AS cor0
----
672217
6790
70176

skipif mysql # not compatible
query I rowsort label-6697
SELECT - + col0 * - CAST ( ( - col1 ) AS INTEGER ) * - col2 + cor0.col0 * col1 FROM tab0 AS cor0
----
672217
6790
70176

onlyif mysql # use DIV operator for integer division
query I rowsort label-6698
SELECT ALL + col2 DIV col0 AS col2 FROM tab2 cor0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-6698
SELECT ALL + col2 / col0 AS col2 FROM tab2 cor0
----
0
0
3

query I rowsort
SELECT - cor0.col2 + - 72 + - col2 AS col0 FROM tab0 cor0
----
-138
-236
-74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + col0 * + col2 col2 FROM tab2 AS cor0
----
2087
220
3019

query I rowsort
SELECT DISTINCT - col1 + 97 AS col2 FROM tab1 cor0
----
71
84
87

query I rowsort
SELECT col0 * col1 + - col2 AS col1 FROM tab1 AS cor0
----
24
583
944

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6703
SELECT ALL 43 * - cor0.col1 + + col1 * CAST( col2 AS SIGNED ) FROM tab0 AS cor0
----
-4074
-860
3549

skipif mysql # not compatible
query I rowsort label-6703
SELECT ALL 43 * - cor0.col1 + + col1 * CAST ( col2 AS INTEGER ) FROM tab0 AS cor0
----
-4074
-860
3549

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6704
SELECT DISTINCT CAST( NULL AS SIGNED ) * col1 + col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6704
SELECT DISTINCT CAST ( NULL AS INTEGER ) * col1 + col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6705
SELECT + CAST( NULL AS SIGNED ) * - col0 col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6705
SELECT + CAST ( NULL AS INTEGER ) * - col0 col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col2 * col2 + + col2 * col1 FROM tab1 cor0
----
10464
3819
4320

query I rowsort
SELECT ( 0 ) AS col1 FROM tab1
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6708
SELECT ALL + 22 DIV 95 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6708
SELECT ALL + 22 / 95 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL ( - ( col2 ) ) FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT 29 * col0 + cor0.col0 FROM tab0 AS cor0
----
1050
2670
720

query I rowsort
SELECT DISTINCT - + 70 + col0 AS col1 FROM tab1 AS cor0
----
-6
-67
10

query I rowsort
SELECT + col2 * 31 FROM tab1 cor0
----
1674
1767
2976

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6713
SELECT - CAST( NULL AS SIGNED ) / - col2 AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6713
SELECT - CAST ( NULL AS INTEGER ) / - col2 AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6714
SELECT CAST( NULL AS SIGNED ) * 80 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6714
SELECT CAST ( NULL AS INTEGER ) * 80 AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL ( col2 ) * col1 AS col2 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT - col0 + - ( - col0 ) * + 48 FROM tab1 AS cor0
----
141
3008
3760

query I rowsort
SELECT - col0 * + cor0.col2 * + cor0.col0 + col1 FROM tab0 AS cor0
----
-1128
-18922
-649431

query I rowsort
SELECT DISTINCT - 99 + col1 AS col0 FROM tab2 cor0
----
-40
-68
-82

onlyif mysql # use DIV operator for integer division
query I rowsort label-6719
SELECT ALL - cor0.col2 + - col1 DIV + cor0.col0 AS col2 FROM tab1 AS cor0
----
-57
-62
-96

skipif mysql # not compatible
query I rowsort label-6719
SELECT ALL - cor0.col2 + - col1 / + cor0.col0 AS col2 FROM tab1 AS cor0
----
-57
-62
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-6720
SELECT ALL ( + col2 ) DIV + col0 AS col0 FROM tab1 AS cor0
----
0
1
18

skipif mysql # not compatible
query I rowsort label-6720
SELECT ALL ( + col2 ) / + col0 AS col0 FROM tab1 AS cor0
----
0
1
18

query I rowsort
SELECT + - cor0.col2 * - 45 + - col0 FROM tab1 AS cor0
----
2427
2501
4240

skipif mysql # not compatible
query I rowsort
SELECT ALL + + CAST ( + 31 AS REAL ) + - col2 * col2 FROM tab0 AS cor0
----
-1058
-6693
30

query I rowsort
SELECT DISTINCT + col2 + - cor0.col2 * cor0.col0 AS col2 FROM tab0 cor0
----
-34
-7216
-759

query I rowsort
SELECT DISTINCT + ( cor0.col2 ) * col2 AS col0 FROM tab0 cor0
----
1
1089
6724

query I rowsort
SELECT - - ( - col0 ) * - ( col0 ) FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT DISTINCT - col2 * + col1 * 32 FROM tab2 AS cor0
----
-20672
-26784
-49088

query I rowsort
SELECT DISTINCT - ( - col1 ) + + col0 FROM tab2
----
137
38
96

query I rowsort
SELECT ALL + col2 + - 42 * + col2 FROM tab0
----
-1353
-3362
-41

query I rowsort
SELECT DISTINCT tab0.col1 + 43 FROM tab0
----
129
134
140

onlyif mysql # use DIV operator for integer division
query I rowsort label-6730
SELECT DISTINCT + col2 DIV - ( + col0 * 5 ) + - col2 * - col0 + col1 * col2 * - col1 AS col0 FROM tab2
----
-25758
-7980
-88478

skipif mysql # not compatible
query I rowsort label-6730
SELECT DISTINCT + col2 / - ( + col0 * 5 ) + - col2 * - col0 + col1 * col2 * - col1 AS col0 FROM tab2
----
-25758
-7980
-88478

query I rowsort
SELECT ALL col0 * - 38 * - cor0.col2 + - col0 FROM tab2 AS cor0
----
113997
7175
76986

query I rowsort
SELECT + - col2 * + cor0.col1 + - col0 FROM tab0 AS cor0
----
-132
-2862
-7551

query I rowsort
SELECT ALL - col2 + + 61 + + 93 FROM tab0 AS cor0
----
121
153
72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - ( 64 ) col2 FROM tab0 cor0
----
22
27
33

onlyif mysql # use DIV operator for integer division
query I rowsort label-6735
SELECT ALL + col1 DIV - col0 + col0 * col0 * col1 FROM tab2 AS cor0
----
106097
1515
358956

skipif mysql # not compatible
query I rowsort label-6735
SELECT ALL + col1 / - col0 + col0 * col0 * col1 FROM tab2 AS cor0
----
106097
1515
358956

query I rowsort
SELECT DISTINCT - - col1 + + ( - col2 ) AS col1 FROM tab2 AS cor0
----
-21
33
4

query I rowsort
SELECT - col0 * + 53 - - col2 AS col1 FROM tab0 AS cor0
----
-1239
-1854
-4635

query I rowsort
SELECT - col1 * ( tab0.col2 ) - + tab0.col2 FROM tab0
----
-2871
-7544
-98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 80 * col0 + - col1 col1 FROM tab1 AS cor0
----
-266
-5130
-6413

query I rowsort
SELECT DISTINCT ( + 5 ) * col1 AS col1 FROM tab0 AS cor0
----
430
455
485

query I rowsort
SELECT ALL + - ( + 28 ) * col1 + - col0 AS col0 FROM tab1 AS cor0
----
-344
-444
-731

query I rowsort
SELECT col1 * - 62 AS col2 FROM tab0 cor0
----
-5332
-5642
-6014

query I rowsort
SELECT DISTINCT - - col2 * cor0.col1 AS col2 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT ALL tab2.col0 * - tab2.col2 FROM tab2, tab1, tab1 AS cor0, tab1 cor1
----
81 values hashing to f3d13ee223d49784ddc477e9dce2d812

query I rowsort
SELECT ALL col0 * - 21 + - ( + col2 + col2 ) FROM tab2
----
-1690
-1735
-201

query I rowsort
SELECT ALL + col2 + 4 FROM tab0
----
37
5
86

query I rowsort
SELECT ALL col2 * + col0 + 96 * + col1 FROM tab0
----
16034
9048
9347

query I rowsort
SELECT ALL 7 FROM tab0, tab1 AS cor0
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76

query I rowsort
SELECT col2 + col1 * col1 * - tab0.col2 FROM tab0
----
-244035
-678960
-9408

query I rowsort
SELECT ALL 28 + - 43 FROM tab1, tab0 AS cor0
----
9 values hashing to 1172c9a62bdad7db0def9205c06ee1f2

query I rowsort
SELECT - col2 + 69 AS col1 FROM tab2 AS cor0
----
31
42
43

query I rowsort
SELECT DISTINCT + col2 * + col0 + 70 AS col0 FROM tab1
----
232
3718
7750

query I rowsort
SELECT ALL + cor0.col2 * + 6 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0, tab2 cor1
----
27 values hashing to f293fb31cc171abeef4b8f6e790a6ab0

query I rowsort
SELECT ALL - 70 * 91 + + col2 FROM tab0
----
-6288
-6337
-6369

query I rowsort
SELECT ALL - 78 * 28 AS col0 FROM tab0
----
-2184
-2184
-2184

query I rowsort
SELECT DISTINCT + 67 - - ( col2 ) * - ( + col1 ) FROM tab2 cor0
----
-1467
-579
-770

query I rowsort
SELECT - ( + cor0.col2 ) + cor0.col0 AS col0 FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT + col0 * col1 - col1 FROM tab2 AS cor0
----
1326
186
4543

onlyif mysql # use DIV operator for integer division
query I rowsort label-6759
SELECT col1 DIV 98 + - cor0.col0 FROM tab0 cor0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-6759
SELECT col1 / 98 + - cor0.col0 FROM tab0 cor0
----
-24
-35
-89

query I rowsort
SELECT - 49 * + col0 + + col2 * col1 * col1 FROM tab2 AS cor0
----
25604
7111
86684

query I rowsort
SELECT ALL + col0 * - ( - col0 ) + - 31 AS col0 FROM tab2 AS cor0
----
18
6053
6210

query I rowsort
SELECT DISTINCT - 67 AS col2 FROM tab2, tab1, tab0 AS cor0
----
-67

query I rowsort
SELECT ALL col1 * col2 + + 66 FROM tab1 AS cor0
----
1314
1470
636

query I rowsort
SELECT DISTINCT + + col0 * col0 AS col2 FROM tab1 cor0
----
4096
6400
9

query I rowsort
SELECT DISTINCT + - cor0.col2 - + 60 * col2 AS col2 FROM tab0 AS cor0
----
-2013
-5002
-61

onlyif mysql # use DIV operator for integer division
query I rowsort label-6766
SELECT ALL col2 DIV col1 - col0 FROM tab2 AS cor0
----
-7
-77
-78

skipif mysql # not compatible
query I rowsort label-6766
SELECT ALL col2 / col1 - col0 FROM tab2 AS cor0
----
-7
-77
-78

query I rowsort
SELECT DISTINCT - - cor0.col1 * 60 + col1 FROM tab2 AS cor0
----
1037
1891
3599

query I rowsort
SELECT cor1.col0 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1, tab1 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

query I rowsort
SELECT col2 + - col0 * ( + col2 ) AS col2 FROM tab0 AS cor0
----
-34
-7216
-759

onlyif mysql # use DIV operator for integer division
query I rowsort label-6770
SELECT - - col2 * col2 DIV - ( col0 + + col2 ) AS col0 FROM tab2 AS cor0
----
-12
-21
-6

skipif mysql # not compatible
query I rowsort label-6770
SELECT - - col2 * col2 / - ( col0 + + col2 ) AS col0 FROM tab2 AS cor0
----
-12
-21
-6

onlyif mysql # use DIV operator for integer division
query I rowsort label-6771
SELECT ALL col0 DIV + 47 AS col2 FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-6771
SELECT ALL col0 / + 47 AS col2 FROM tab1 AS cor0
----
0
1
1

query I rowsort
SELECT ALL - + col2 * - cor0.col0 FROM tab2 cor0
----
189
2028
3002

query I rowsort
SELECT col0 * col2 - col1 AS col0 FROM tab1 AS cor0
----
136
3638
7667

query I rowsort
SELECT ALL col0 + ( 77 * + col1 ) AS col2 FROM tab1 AS cor0
----
1081
2005
834

query I rowsort
SELECT ALL + - col1 * ( cor0.col1 ) AS col2 FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT + + col0 * ( - 30 ) + col1 AS col0 FROM tab1 cor0
----
-1910
-2387
-64

onlyif mysql # use DIV operator for integer division
query I rowsort label-6777
SELECT DISTINCT - col0 * col1 DIV - ( + 2 ) FROM tab2
----
108
2301
671

skipif mysql # not compatible
query I rowsort label-6777
SELECT DISTINCT - col0 * col1 / - ( + 2 ) FROM tab2
----
108
2301
671

onlyif mysql # use DIV operator for integer division
query I rowsort label-6778
SELECT ( tab1.col1 ) * 62 DIV + 7 AS col1 FROM tab1
----
115
230
88

skipif mysql # not compatible
query I rowsort label-6778
SELECT ( tab1.col1 ) * 62 / + 7 AS col1 FROM tab1
----
115
230
88

query I rowsort
SELECT ALL + col1 FROM tab2 WHERE NULL NOT IN ( - col2 + + col0 / - col0 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-6780
SELECT - col1 DIV + col2 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6780
SELECT - col1 / + col2 AS col1 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT col0 * col2 * col0 + col0 AS col0 FROM tab0
----
1260
19032
649611

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL <> col1
----

query I rowsort
SELECT ALL - tab1.col2 FROM tab1 WHERE NOT NULL IN ( col0 * - col1 + col2 )
----

query I rowsort
SELECT col0 - + col2 * col2 AS col1 FROM tab1
----
-2913
-3185
-9136

query I rowsort
SELECT DISTINCT col1 + col1 * + col0 AS col1 FROM tab2
----
1360
248
4661

query I rowsort
SELECT ALL - tab0.col1 * col2 + + col2 * col0 AS col1 FROM tab0
----
-164
-2046
-62

onlyif mysql # use DIV operator for integer division
query I rowsort label-6787
SELECT DISTINCT col1 DIV col1 + - tab1.col1 FROM tab1
----
-12
-25
-9

skipif mysql # not compatible
query I rowsort label-6787
SELECT DISTINCT col1 / col1 + - tab1.col1 FROM tab1
----
-12
-25
-9

query I rowsort
SELECT ALL + tab0.col2 AS col2 FROM tab0 WHERE NOT NULL <> col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + - tab0.col2 + tab0.col2 col1 FROM tab0 WHERE col1 IN ( - col1 * col2 * col0 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-6790
SELECT DISTINCT - tab0.col0 * col1 + col1 * col2 DIV col2 FROM tab0
----
-1978
-3298
-8008

skipif mysql # not compatible
query I rowsort label-6790
SELECT DISTINCT - tab0.col0 * col1 + col1 * col2 / col2 FROM tab0
----
-1978
-3298
-8008

query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) <= col0 * + col2
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col1 <> col2 + col2
----

query I rowsort
SELECT ALL - col0 * - tab0.col0 + tab0.col0 AS col2 FROM tab0
----
1260
600
8010

query I rowsort
SELECT DISTINCT - col1 + + tab1.col0 AS col0 FROM tab1
----
-23
54
67

query I rowsort
SELECT col1 FROM tab2 WHERE col0 IN ( + col2 * col2 )
----

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6796
SELECT ALL + CAST( col2 AS SIGNED ) AS col1 FROM tab1
----
54
57
96

skipif mysql # not compatible
query I rowsort label-6796
SELECT ALL + CAST ( col2 AS INTEGER ) AS col1 FROM tab1
----
54
57
96

query I rowsort
SELECT - + col0 * - col2 * + col2 AS col2 FROM tab2 AS cor0
----
114076
5103
52728

query I rowsort
SELECT ALL - - 95 * col0 FROM tab1 AS cor0
----
285
6080
7600

onlyif mysql # use DIV operator for integer division
query I rowsort label-6799
SELECT ALL + 65 DIV col0 AS col1 FROM tab2 AS cor0
----
0
0
9

skipif mysql # not compatible
query I rowsort label-6799
SELECT ALL + 65 / col0 AS col1 FROM tab2 AS cor0
----
0
0
9

query I rowsort
SELECT 14 * col1 AS col2 FROM tab1 AS cor0
----
140
182
364

query I rowsort
SELECT DISTINCT - 64 + - col0 AS col1 FROM tab2 AS cor0
----
-142
-143
-71

query I rowsort
SELECT DISTINCT - - 64 AS col1 FROM tab0 AS cor0
----
64

query I rowsort
SELECT ALL 95 * ( - tab0.col1 + - tab0.col0 ) AS col2 FROM tab0
----
-10450
-12540
-17100

query I rowsort
SELECT tab1.col1 * 77 * tab1.col2 + + 9 AS col2 FROM tab1
----
108117
43899
96105

query I rowsort
SELECT ALL 54 * + col0 AS col2 FROM tab2
----
378
4212
4266

query I rowsort
SELECT DISTINCT col1 * 86 * + col2 AS col0 FROM tab0
----
244068
641732
8342

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 28 col2 FROM tab2 AS cor0
----
28

query I rowsort
SELECT - + cor0.col1 * + cor0.col2 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT + cor0.col1 + + ( cor0.col2 ) * col0 * 15 FROM tab0 AS cor0
----
109561
11966
622

query I rowsort
SELECT - - col2 * + cor0.col2 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT col2 * - ( - col0 ) + + col0 AS col0 FROM tab0 AS cor0
----
70
7387
816

query I rowsort
SELECT DISTINCT col1 + + col0 + tab2.col2 FROM tab2
----
134
163
65

skipif mysql # not compatible
query I rowsort
SELECT col1 * CAST ( col1 AS REAL ) * - col2 AS col0 FROM tab2 AS cor0
----
-10982
-25947
-90506

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6814
SELECT - - col0 + + CAST( NULL AS SIGNED ) * col0 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6814
SELECT - - col0 + + CAST ( NULL AS INTEGER ) * col0 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - col0 + ( + col1 ) + col2 FROM tab1 AS cor0
----
29
3
77

onlyif mysql # use DIV operator for integer division
query I rowsort label-6816
SELECT + col1 * 57 DIV + col2 + + col2 * col0 FROM tab1 AS cor0
----
189
3658
7687

skipif mysql # not compatible
query I rowsort label-6816
SELECT + col1 * 57 / + col2 + + col2 * col0 FROM tab1 AS cor0
----
189
3658
7687

query I rowsort
SELECT - - col2 + col2 * + col1 * 66 AS col2 FROM tab1 cor0
----
37677
82464
92718

query I rowsort
SELECT + 74 * - col2 AS col1 FROM tab2 AS cor0
----
-1924
-1998
-2812

query I rowsort
SELECT + ( - 84 ) * col2 AS col0 FROM tab1 AS cor0
----
-4536
-4788
-8064

query I rowsort
SELECT 81 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267

query I rowsort
SELECT ALL col2 * + 75 AS col1 FROM tab1
----
4050
4275
7200

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 98 + - col1 * + col2 col1 FROM tab1 AS cor0
----
-1150
-1306
-472

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6823
SELECT ALL - CAST( NULL AS SIGNED ) * cor0.col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6823
SELECT ALL - CAST ( NULL AS INTEGER ) * cor0.col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - col1 * - col1 + - CAST ( + 68 AS REAL ) + + col2 FROM tab1
----
197
662
89

query I rowsort
SELECT DISTINCT + ( - tab2.col0 ) + col0 FROM tab2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab0.col2 + - tab0.col1 col2 FROM tab0
----
-53
-9
-96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6827
SELECT DISTINCT col2 + - col1 * CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6827
SELECT DISTINCT col2 + - col1 * CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6828
SELECT - tab0.col2 + + col2 + col0 * col2 DIV + col1 FROM tab0
----
0
80
9

skipif mysql # not compatible
query I rowsort label-6828
SELECT - tab0.col2 + + col2 + col0 * col2 / + col1 FROM tab0
----
0
80
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-6829
SELECT + col2 DIV col2 + + col1 AS col2 FROM tab1
----
11
14
27

skipif mysql # not compatible
query I rowsort label-6829
SELECT + col2 / col2 + + col1 AS col2 FROM tab1
----
11
14
27

query I rowsort
SELECT ALL - col2 * - col2 + - 66 FROM tab0
----
-65
1023
6658

skipif mysql # not compatible
query I rowsort
SELECT col0 * CAST ( col0 AS REAL ) + col2 + col0 FROM tab0 cor0
----
1261
633
8092

query I rowsort
SELECT + col1 - - col2 * col1 FROM tab0
----
194
2924
7553

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab2, tab1 AS cor0, tab1 cor1
----
972 values hashing to cee640567b2a4ba7d97109d5025bf4d9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * col1 + ( 15 + tab2.col2 ) * col2 col1 FROM tab2
----
-468
1368
297

query I rowsort
SELECT - 74 + + 73 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 84da757b1b7b0069ce25607f39bc08d9

query I rowsort
SELECT DISTINCT col1 + tab1.col1 * 14 FROM tab1
----
150
195
390

query I rowsort
SELECT 52 * - ( cor0.col1 ) + 6 FROM tab0, tab1 AS cor0
----
9 values hashing to 5fbba081629c8cc301fc16aa01bc263b

query I rowsort
SELECT ALL + col0 * - cor0.col0 AS col0 FROM tab1 AS cor0
----
-4096
-6400
-9

onlyif mysql # use DIV operator for integer division
query I rowsort label-6839
SELECT ALL col1 DIV - col1 - col0 AS col1 FROM tab0 AS cor0
----
-25
-36
-90

skipif mysql # not compatible
query I rowsort label-6839
SELECT ALL col1 / - col1 - col0 AS col1 FROM tab0 AS cor0
----
-25
-36
-90

onlyif mysql # use DIV operator for integer division
query I rowsort label-6840
SELECT col0 DIV 77 - - col1 AS col1 FROM tab1 AS cor0
----
10
14
26

skipif mysql # not compatible
query I rowsort label-6840
SELECT col0 / 77 - - col1 AS col1 FROM tab1 AS cor0
----
10
14
26

query I rowsort
SELECT DISTINCT - + col0 - col2 AS col0 FROM tab0 AS cor0
----
-171
-36
-57

skipif mysql # not compatible
query I rowsort
SELECT + col0 * + CAST ( col0 AS REAL ) + cor0.col0 FROM tab0 cor0
----
1260
600
8010

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + + ( - col2 ) + col0 col0 FROM tab1 AS cor0
----
-29
-3
-77

query I rowsort
SELECT DISTINCT - - col0 * + 76 - + col1 FROM tab2 cor0
----
501
5869
5987

query I rowsort
SELECT + cor0.col1 * - col0 + + col0 * + col2 AS col1 FROM tab1 AS cor0
----
3008
6640
84

query I rowsort
SELECT + col0 * - 30 * ( col2 ) + col1 AS col0 FROM tab0 AS cor0
----
-218849
-23674
-953

query I rowsort
SELECT - cor0.col0 + 92 AS col1 FROM tab1 AS cor0
----
12
28
89

query I rowsort
SELECT ALL - + cor0.col2 + ( - 30 * - col1 ) AS col2 FROM tab0 AS cor0
----
2547
2648
2909

query I rowsort
SELECT ALL - col1 * + 36 - col1 * col2 AS col0 FROM tab2 cor0
----
-1258
-1953
-3658

onlyif mysql # use DIV operator for integer division
query I rowsort label-6850
SELECT ALL - col0 DIV - 23 + col1 * + col1 col1 FROM tab1 AS cor0
----
102
172
676

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6850
SELECT ALL - col0 / - 23 + col1 * + col1 col1 FROM tab1 AS cor0
----
102
172
676

query I rowsort
SELECT 32 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to d30a2acbf33c88274474306936d3227b

onlyif mysql # use DIV operator for integer division
query I rowsort label-6852
SELECT - 39 DIV tab0.col2 col1 FROM tab0, tab2 AS cor0, tab1, tab1 AS cor1
----
81 values hashing to 3345cc647185cb1cf39691b4bd92c2e4

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6852
SELECT - 39 / tab0.col2 col1 FROM tab0, tab2 AS cor0, tab1, tab1 AS cor1
----
81 values hashing to 3345cc647185cb1cf39691b4bd92c2e4

onlyif mysql # use DIV operator for integer division
query I rowsort label-6853
SELECT - ( + cor0.col0 ) DIV col2 FROM tab0 AS cor0
----
-1
-35
0

skipif mysql # not compatible
query I rowsort label-6853
SELECT - ( + cor0.col0 ) / col2 FROM tab0 AS cor0
----
-1
-35
0

query I rowsort
SELECT ALL - col1 * cor0.col0 * col1 AS col0 FROM tab2 AS cor0
----
-22831
-271518
-6727

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 59 col1 FROM tab2 AS cor0
----
59

query I rowsort
SELECT + - 37 + 66 FROM tab2 AS cor0
----
29
29
29

query I rowsort
SELECT ALL ( - col2 ) + col2 AS col1 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT + 24 * col2 FROM tab2 AS cor0
----
624
648
912

query I rowsort
SELECT DISTINCT - 34 + col2 * + col1 + 70 FROM tab2 AS cor0
----
1570
682
873

query I rowsort
SELECT + + 41 * + col2 AS col2 FROM tab1 AS cor0
----
2214
2337
3936

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6861
SELECT + - CAST( NULL AS SIGNED ) + 52 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6861
SELECT + - CAST ( NULL AS INTEGER ) + 52 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + + col2 + cor0.col0 * col1 AS col0 FROM tab1 AS cor0
----
1136
132
697

query I rowsort
SELECT 73 FROM tab1, tab2 AS cor0, tab1 cor1, tab1 AS cor2
----
81 values hashing to 9f0f371d979e70a792c8597c6559f0e2

query I rowsort
SELECT 83 + col1 * col0 * col0 AS col2 FROM tab0 AS cor0
----
118908
49619
720894

onlyif mysql # use DIV operator for integer division
query I rowsort label-6865
SELECT DISTINCT + + col1 + - col1 DIV 12 FROM tab0 cor0
----
79
84
89

skipif mysql # not compatible
query I rowsort label-6865
SELECT DISTINCT + + col1 + - col1 / 12 FROM tab0 cor0
----
79
84
89

query I rowsort
SELECT ALL - + ( + col1 ) - + 94 * - 15 AS col2 FROM tab2 cor0
----
1351
1379
1393

query I rowsort
SELECT 89 * col1 AS col1 FROM tab0 AS cor0
----
7654
8099
8633

onlyif mysql # use DIV operator for integer division
query I rowsort label-6868
SELECT col1 DIV - col1 + col0 AS col1 FROM tab0 AS cor0
----
23
34
88

skipif mysql # not compatible
query I rowsort label-6868
SELECT col1 / - col1 + col0 AS col1 FROM tab0 AS cor0
----
23
34
88

query I rowsort
SELECT ALL - - col1 * + cor0.col0 AS col0 FROM tab2 cor0
----
1343
217
4602

query I rowsort
SELECT ALL ( - col1 ) * col2 FROM tab2 cor0
----
-1534
-646
-837

query I rowsort
SELECT DISTINCT + - col0 + col1 * + col1 FROM tab2 AS cor0
----
210
3403
954

query I rowsort
SELECT ALL - + cor0.col0 - + col0 * + cor0.col1 FROM tab2 AS cor0
----
-1422
-224
-4680

query I rowsort
SELECT DISTINCT + 6 * - col0 AS col1 FROM tab1 cor0
----
-18
-384
-480

query I rowsort
SELECT col1 * col1 + col1 * col2 + - col0 FROM tab2 AS cor0
----
1791
4937
856

query I rowsort
SELECT + cor0.col0 - + col1 AS col0 FROM tab2 cor0
----
-24
19
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 67 col1 FROM tab1
----
67

query I rowsort
SELECT + + 27 + - col1 FROM tab1 AS cor0
----
1
14
17

query I rowsort
SELECT DISTINCT + - col2 * cor0.col1 + - col2 - - col2 FROM tab2 AS cor0
----
-1534
-646
-837

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2 cor0 CROSS JOIN tab2, tab1 AS cor1, tab2 AS cor2
----
972 values hashing to caf6adb9936510208f5945a7e5c76f14

query I rowsort
SELECT DISTINCT col1 * ( - col1 ) + tab2.col2 FROM tab2
----
-251
-3455
-934

query I rowsort
SELECT ALL - 54 FROM tab1, tab1 AS cor0
----
9 values hashing to 4ecdb0f1b85f0d4fdc3a826efd9f2342

query I rowsort
SELECT 15 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 71dda9a71fc978ea7b0ac5d8cd2ef1f0

query I rowsort
SELECT DISTINCT ( col1 + + col0 ) FROM tab0
----
110
132
180

query I rowsort
SELECT DISTINCT - - 66 AS col2 FROM tab2 AS cor0
----
66

onlyif mysql # use DIV operator for integer division
query I rowsort label-6885
SELECT DISTINCT - ( col1 ) DIV col0 + cor0.col2 AS col0 FROM tab1 AS cor0
----
46
57
96

skipif mysql # not compatible
query I rowsort label-6885
SELECT DISTINCT - ( col1 ) / col0 + cor0.col2 AS col0 FROM tab1 AS cor0
----
46
57
96

query I rowsort
SELECT ALL - ( - cor0.col0 ) AS col0 FROM tab1, tab1 cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870

query I rowsort
SELECT + cor0.col0 + cor0.col0 * + cor0.col0 * col2 FROM tab0 AS cor0
----
1260
19032
649611

query I rowsort
SELECT + + col0 * - ( 41 ) AS col1 FROM tab0 AS cor0
----
-1435
-3649
-984

query I rowsort
SELECT - col2 * + ( + col1 * col2 ) FROM tab2 AS cor0
----
-22599
-24548
-39884

query I rowsort
SELECT + cor0.col0 * col0 * col0 AS col0 FROM tab0 AS cor0
----
13824
42875
704969

onlyif mysql # use DIV operator for integer division
query I rowsort label-6891
SELECT 51 + + cor0.col1 DIV tab1.col1 AS col1 FROM tab1, tab2 cor0
----
9 values hashing to e3e33c09b8854aa9efc413cfadf15e0b

skipif mysql # not compatible
query I rowsort label-6891
SELECT 51 + + cor0.col1 / tab1.col1 AS col1 FROM tab1, tab2 cor0
----
9 values hashing to e3e33c09b8854aa9efc413cfadf15e0b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col2 col2 FROM tab2, tab1 AS cor0
----
-54
-57
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab2.col2 * + cor0.col0 col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 7522b05e664ac1561bef84e44b3f2d33

query I rowsort
SELECT DISTINCT + col1 - + 19 * col2 AS col2 FROM tab0
----
-1467
-541
78

query I rowsort
SELECT col1 - ( - col2 ) AS col1 FROM tab0
----
119
173
98

query I rowsort
SELECT 80 + - col1 - - col2 AS col1 FROM tab1
----
108
127
163

query I rowsort
SELECT + - ( - col2 ) + - col2 * col2 * + col1 FROM tab0 AS cor0
----
-611802
-93621
-96

query I rowsort
SELECT - + 69 * 21 AS col0 FROM tab1 AS cor0
----
-1449
-1449
-1449

query I rowsort
SELECT DISTINCT + 43 FROM tab1, tab2 AS cor0
----
43

query I rowsort
SELECT DISTINCT ( 90 ) * - cor0.col0 AS col1 FROM tab0 AS cor0
----
-2160
-3150
-8010

query I rowsort
SELECT + col1 + - ( - col2 ) * col0 AS col0 FROM tab1 AS cor0
----
188
3658
7693

query I rowsort
SELECT + + 80 * cor0.col1 + + ( col1 ) AS col0 FROM tab1 AS cor0
----
1053
2106
810

onlyif mysql # use DIV operator for integer division
query I rowsort label-6903
SELECT DISTINCT 50 DIV + col2 FROM tab0
----
0
1
50

skipif mysql # not compatible
query I rowsort label-6903
SELECT DISTINCT 50 / + col2 FROM tab0
----
0
1
50

query I rowsort
SELECT DISTINCT + 23 * + col1 AS col1 FROM tab1
----
230
299
598

onlyif mysql # use DIV operator for integer division
query I rowsort label-6905
SELECT DISTINCT 34 + - 71 + cor0.col0 DIV cor0.col0 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
-36

skipif mysql # not compatible
query I rowsort label-6905
SELECT DISTINCT 34 + - 71 + cor0.col0 / cor0.col0 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
-36

query I rowsort
SELECT - cor0.col1 * 27 AS col2 FROM tab2 AS cor0
----
-1593
-459
-837

query I rowsort
SELECT DISTINCT + col1 + - ( + col0 ) AS col1 FROM tab2 AS cor0
----
-19
-62
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - cor0.col1 * + cor0.col1 col1 FROM tab0 AS cor0
----
-177504
-329315
-737009

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6909
SELECT + + col2 * CAST( NULL AS SIGNED ) * - col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6909
SELECT + + col2 * CAST ( NULL AS INTEGER ) * - col1 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + ( col2 ) * ( 93 ) FROM tab1
----
5022
5301
8928

query I rowsort
SELECT cor0.col1 FROM tab2, tab0, tab1 cor0, tab1
----
81 values hashing to d7d3fabcafbed14f0d6ffd37195c971c

onlyif mysql # use DIV operator for integer division
query I rowsort label-6912
SELECT ALL cor0.col0 DIV + 61 FROM tab2, tab0 AS cor0
----
9 values hashing to 14fcfa6c11198893073049d94262832c

skipif mysql # not compatible
query I rowsort label-6912
SELECT ALL cor0.col0 / + 61 FROM tab2, tab0 AS cor0
----
9 values hashing to 14fcfa6c11198893073049d94262832c

query I rowsort
SELECT ALL cor0.col1 - - 92 AS col1 FROM tab1, tab2 cor0, tab1 AS cor1
----
27 values hashing to dbb3da51562ad3cbad3d2d9deac416df

query I rowsort
SELECT DISTINCT - ( - tab0.col2 * + col0 ) FROM tab0
----
35
7298
792

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6915
SELECT DISTINCT - cor0.col2 + + CAST( 62 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-20
29
61

skipif mysql # not compatible
query I rowsort label-6915
SELECT DISTINCT - cor0.col2 + + CAST ( 62 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-20
29
61

query I rowsort
SELECT - - col0 * + ( col2 ) FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT ALL - col0 * - col1 * + 66 FROM tab1 AS cor0
----
42240
5148
68640

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6918
SELECT DISTINCT - col2 + - CAST( NULL AS SIGNED ) * + ( + cor0.col0 ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6918
SELECT DISTINCT - col2 + - CAST ( NULL AS INTEGER ) * + ( + cor0.col0 ) FROM tab1 cor0
----
NULL

query I rowsort
SELECT ALL col1 + - ( 70 ) * col1 FROM tab2 cor0
----
-1173
-2139
-4071

query I rowsort
SELECT ALL 18 AS col2 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 903ac227935c1532300db45a8537c595

onlyif mysql # use DIV operator for integer division
query I rowsort label-6921
SELECT ALL col0 * 10 DIV 82 FROM tab2
----
0
9
9

skipif mysql # not compatible
query I rowsort label-6921
SELECT ALL col0 * 10 / 82 FROM tab2
----
0
9
9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6922
SELECT ALL - CAST( NULL AS SIGNED ) * - col2 + - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6922
SELECT ALL - CAST ( NULL AS INTEGER ) * - col2 + - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6923
SELECT DISTINCT - col2 + - col1 * - 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-6923
SELECT DISTINCT - col2 + - col1 * - col1 * CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL - col0 * 19 * - col0 + - ( col1 ) AS col1 FROM tab2 AS cor0
----
115537
118562
900

query I rowsort
SELECT DISTINCT 81 * col2 AS col0 FROM tab1 AS cor0
----
4374
4617
7776

query I rowsort
SELECT ALL - col2 + col0 * + cor0.col2 + - col0 AS col2 FROM tab1 AS cor0
----
105
3527
7504

onlyif mysql # use DIV operator for integer division
query I rowsort label-6927
SELECT col0 * 49 + + col1 DIV col1 AS col0 FROM tab1
----
148
3137
3921

skipif mysql # not compatible
query I rowsort label-6927
SELECT col0 * 49 + + col1 / col1 AS col0 FROM tab1
----
148
3137
3921

query I rowsort
SELECT ALL - - 7 AS col0 FROM tab1 AS cor0
----
7
7
7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6929
SELECT DISTINCT + col1 * col1 * CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6929
SELECT DISTINCT + col1 * col1 * CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6930
SELECT DISTINCT + + col1 DIV - col1 AS col1 FROM tab0 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-6930
SELECT DISTINCT + + col1 / - col1 AS col1 FROM tab0 cor0
----
-1

query I rowsort
SELECT col1 + + col0 * + ( col1 ) AS col2 FROM tab1 AS cor0
----
104
1053
650

onlyif mysql # use DIV operator for integer division
query I rowsort label-6932
SELECT DISTINCT + cor0.col2 * col1 + + col0 DIV + ( col1 ) FROM tab1 AS cor0
----
1254
1404
576

skipif mysql # not compatible
query I rowsort label-6932
SELECT DISTINCT + cor0.col2 * col1 + + col0 / + ( col1 ) FROM tab1 AS cor0
----
1254
1404
576

query I rowsort
SELECT ALL 70 * - col1 - - ( - 77 ) FROM tab1 AS cor0
----
-1897
-777
-987

query I rowsort
SELECT col1 * col1 + + 45 * col2 * - col1 FROM tab0 AS cor0
----
-120314
-327509
5044

query I rowsort
SELECT ALL - 2 * col0 + col0 AS col2 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT ALL + col0 - - col1 AS col1 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT col2 * col1 * - col1 FROM tab2 cor0
----
-10982
-25947
-90506

query I rowsort
SELECT DISTINCT - 76 * cor0.col2 FROM tab2, tab0 AS cor0
----
-2508
-6232
-76

onlyif mysql # use DIV operator for integer division
query I rowsort label-6939
SELECT + 16 DIV col0 + tab1.col2 AS col0 FROM tab1
----
57
59
96

skipif mysql # not compatible
query I rowsort label-6939
SELECT + 16 / col0 + tab1.col2 AS col0 FROM tab1
----
57
59
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 - - tab2.col0 col2 FROM tab2
----
14
156
158

onlyif mysql # use DIV operator for integer division
query I rowsort label-6941
SELECT ALL + col0 - - col2 DIV - col2 AS col0 FROM tab1
----
2
63
79

skipif mysql # not compatible
query I rowsort label-6941
SELECT ALL + col0 - - col2 / - col2 AS col0 FROM tab1
----
2
63
79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6942
SELECT - CAST( NULL AS SIGNED ) * - 26 + - col0 + + col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6942
SELECT - CAST ( NULL AS INTEGER ) * - 26 + - col0 + + col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 + - col2 * col2 FROM tab1
----
-2862
-3192
-9120

query I rowsort
SELECT + 25 * - col2 - ( - col2 ) AS col0 FROM tab1 AS cor0
----
-1296
-1368
-2304

query I rowsort
SELECT - - col0 * - cor0.col2 * - 48 + 8 AS col0 FROM tab0 AS cor0
----
1688
350312
38024

onlyif mysql # use DIV operator for integer division
query I rowsort label-6946
SELECT DISTINCT - col1 + + col0 DIV - col1 AS col1 FROM tab2 AS cor0
----
-21
-31
-60

skipif mysql # not compatible
query I rowsort label-6946
SELECT DISTINCT - col1 + + col0 / - col1 AS col1 FROM tab2 AS cor0
----
-21
-31
-60

query I rowsort
SELECT - 61 + - col2 AS col1 FROM tab1 AS cor0
----
-115
-118
-157

query I rowsort
SELECT DISTINCT + 99 + - col1 * - 84 AS col1 FROM tab2
----
1527
2703
5055

query I rowsort
SELECT + 80 + + col1 * + ( - col2 ) FROM tab0 cor0
----
-17
-2758
-7382

query I rowsort
SELECT - + 23 * - ( - cor0.col0 ) FROM tab0 cor0
----
-2047
-552
-805

query I rowsort
SELECT 15 * - col0 AS col0 FROM tab1 AS cor0
----
-1200
-45
-960

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6952
SELECT ALL - CAST( col1 AS SIGNED ) + col2 * cor0.col1 FROM tab0 AS cor0
----
0
2752
7371

skipif mysql # not compatible
query I rowsort label-6952
SELECT ALL - CAST ( col1 AS INTEGER ) + col2 * cor0.col1 FROM tab0 AS cor0
----
0
2752
7371

query I rowsort
SELECT ALL - cor0.col1 * 92 + + col0 - col0 AS col2 FROM tab0 AS cor0
----
-7912
-8372
-8924

query I rowsort
SELECT DISTINCT + + ( col0 ) * col0 FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT DISTINCT + 69 * + 39 AS col2 FROM tab0 AS cor0
----
2691

query I rowsort
SELECT - + col0 * + 83 * + col0 FROM tab1 AS cor0
----
-339968
-531200
-747

query I rowsort
SELECT col1 - col2 * - 77 AS col0 FROM tab1
----
4184
4399
7405

query I rowsort
SELECT DISTINCT + 60 + - col0 FROM tab2
----
-18
-19
53

onlyif mysql # use DIV operator for integer division
query I rowsort label-6959
SELECT DISTINCT ( + cor0.col2 ) DIV col0 + col2 DIV + col2 FROM tab1 cor0
----
1
19
2

skipif mysql # not compatible
query I rowsort label-6959
SELECT DISTINCT ( + cor0.col2 ) / col0 + col2 / + col2 FROM tab1 cor0
----
1
19
2

query I rowsort
SELECT ALL + ( + col2 ) * col0 + - col2 - ( col1 ) * col1 AS col1 FROM tab2 AS cor0
----
-1479
-799
2675

query I rowsort
SELECT 20 - 48 FROM tab1 AS cor0
----
-28
-28
-28

query I rowsort
SELECT DISTINCT 0 * + col1 + + cor0.col2 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT + col2 * ( + col0 ) + + cor0.col0 FROM tab2 AS cor0
----
196
2106
3081

query I rowsort
SELECT col2 * col2 + cor0.col0 FROM tab0 AS cor0
----
1113
36
6813

query I rowsort
SELECT DISTINCT - cor0.col2 * + col1 * + col1 + + col1 AS col1 FROM tab1 cor0
----
-16211
-36478
-5690

query I rowsort
SELECT + - 1 - - col1 FROM tab1 AS cor0
----
12
25
9

query I rowsort
SELECT ALL + 85 * + col1 + - cor0.col0 AS col2 FROM tab0 AS cor0
----
7286
7646
8210

query I rowsort
SELECT DISTINCT + 51 + - col2 AS col0 FROM tab0 AS cor0
----
-31
18
50

query I rowsort
SELECT - ( col0 ) * col1 * col0 + col2 * + col1 AS col2 FROM tab2 AS cor0
----
-105451
-357422
-682

query I rowsort
SELECT DISTINCT 86 + col1 + col0 FROM tab1
----
115
160
179

query I rowsort
SELECT cor0.col1 + col0 * + ( col1 ) AS col0 FROM tab2 AS cor0
----
1360
248
4661

query I rowsort
SELECT ALL - 58 * col2 AS col2 FROM tab2
----
-1508
-1566
-2204

query I rowsort
SELECT - + 71 * cor0.col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8481a69322061474e76e074548572675

query I rowsort
SELECT ALL - + col1 + + 39 FROM tab1 AS cor0
----
13
26
29

onlyif mysql # use DIV operator for integer division
query I rowsort label-6975
SELECT DISTINCT + + col0 DIV + 61 col2 FROM tab0 AS cor0
----
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6975
SELECT DISTINCT + + col0 / + 61 col2 FROM tab0 AS cor0
----
0
1

query I rowsort
SELECT ALL - - col1 * ( col1 ) AS col1 FROM tab2 cor0
----
289
3481
961

query I rowsort
SELECT DISTINCT 43 AS col1 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
43

query I rowsort
SELECT ALL + col0 + + ( + cor0.col2 ) + + col1 * + 95 * col2 FROM tab1 cor0
----
118736
133437
54271

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab1, tab0 cor2
----
3645 values hashing to 1260d4dbe7a8d809e8010586a3c398c5

onlyif mysql # use DIV operator for integer division
query I rowsort label-6980
SELECT col1 DIV + 2 AS col1 FROM tab1 AS cor0
----
13
5
6

skipif mysql # not compatible
query I rowsort label-6980
SELECT col1 / + 2 AS col1 FROM tab1 AS cor0
----
13
5
6

query I rowsort
SELECT + col2 * + col0 + + col0 * col2 AS col1 FROM tab1 AS cor0
----
15360
324
7296

onlyif mysql # use DIV operator for integer division
query I rowsort label-6982
SELECT - + col1 + 53 DIV - col1 AS col1 FROM tab1 AS cor0
----
-15
-17
-28

skipif mysql # not compatible
query I rowsort label-6982
SELECT - + col1 + 53 / - col1 AS col1 FROM tab1 AS cor0
----
-15
-17
-28

query I rowsort
SELECT col1 + + 88 AS col0 FROM tab2 AS cor0
----
105
119
147

query I rowsort
SELECT col0 * + col1 * - col2 AS col0 FROM tab2 AS cor0
----
-119652
-51034
-5859

query I rowsort
SELECT ALL + + cor0.col0 + 18 * col1 FROM tab2 cor0
----
1140
385
565

onlyif mysql # use DIV operator for integer division
query I rowsort label-6986
SELECT + - col1 + - col1 * col1 DIV + col0 AS col0 FROM tab2 AS cor0
----
-103
-168
-20

skipif mysql # not compatible
query I rowsort label-6986
SELECT + - col1 + - col1 * col1 / + col0 AS col0 FROM tab2 AS cor0
----
-103
-168
-20

onlyif mysql # use DIV operator for integer division
query I rowsort label-6987
SELECT ALL - - col2 DIV col2 AS col2 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6987
SELECT ALL - - col2 / col2 AS col2 FROM tab1 AS cor0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 + - 11 col2 FROM tab2 AS cor0
----
-37
-38
-49

query I rowsort
SELECT + 86 * col2 * col2 FROM tab0 AS cor0
----
578264
86
93654

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6990
SELECT + cor1.col0 / CAST( NULL AS SIGNED ) FROM tab2, tab2 AS cor0, tab2 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-6990
SELECT + cor1.col0 / CAST ( NULL AS INTEGER ) FROM tab2, tab2 AS cor0, tab2 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT 62 + 99 AS col1 FROM tab0, tab2 AS cor0, tab1 AS cor1, tab0 AS cor2
----
81 values hashing to 028b12d69b976fd021e5ba2fec749092

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6992
SELECT DISTINCT - 1 - + col0 / CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6992
SELECT DISTINCT - 1 - + col0 / CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + + 51 - col2 * col1 AS col2 FROM tab1 AS cor0
----
-1197
-1353
-519

query I rowsort
SELECT ALL - 2 + - col1 FROM tab0 AS cor0
----
-88
-93
-99

query I rowsort
SELECT DISTINCT col0 * + col2 * + col0 FROM tab1 AS cor0
----
233472
486
614400

onlyif mysql # use DIV operator for integer division
query I rowsort label-6996
SELECT col1 + col0 DIV + 58 FROM tab0 AS cor0
----
86
92
97

skipif mysql # not compatible
query I rowsort label-6996
SELECT col1 + col0 / + 58 FROM tab0 AS cor0
----
86
92
97

query I rowsort
SELECT ALL - col1 + + col0 * + ( col1 ) FROM tab1 AS cor0
----
1027
52
630

query I rowsort
SELECT + 61 * + col1 FROM tab2
----
1037
1891
3599

query I rowsort
SELECT ALL + 98 + col2 AS col0 FROM tab1 cor0
----
152
155
194

query I rowsort
SELECT - col1 * + cor0.col1 - + col1 AS col2 FROM tab2 cor0
----
-306
-3540
-992

query I rowsort
SELECT - - col2 + cor0.col2 - 8 AS col2 FROM tab1 AS cor0
----
100
106
184

query I rowsort
SELECT DISTINCT + + col1 + col2 * + col2 AS col1 FROM tab0 AS cor0
----
1175
6815
98

query I rowsort
SELECT + cor0.col2 * + col2 + + 72 FROM tab1 AS cor0
----
2988
3321
9288

onlyif mysql # use DIV operator for integer division
query I rowsort label-7004
SELECT ALL + 27 * col1 + ( + col0 ) DIV + col0 FROM tab1
----
271
352
703

skipif mysql # not compatible
query I rowsort label-7004
SELECT ALL + 27 * col1 + ( + col0 ) / + col0 FROM tab1
----
271
352
703

query I rowsort
SELECT ALL 20 * + col1 FROM tab1
----
200
260
520

skipif mysql # not compatible
query I rowsort
SELECT ALL + CAST ( + 22 AS REAL ) AS col1 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 7dda382e7c08428abac8600fd696eb3e

query I rowsort
SELECT ALL tab2.col0 * + col2 + col0 FROM tab2
----
196
2106
3081

onlyif mysql # use DIV operator for integer division
query I rowsort label-7008
SELECT ALL col1 DIV col1 + + 24 FROM tab0
----
25
25
25

skipif mysql # not compatible
query I rowsort label-7008
SELECT ALL col1 / col1 + + 24 FROM tab0
----
25
25
25

query I rowsort
SELECT DISTINCT 97 + tab0.col0 FROM tab0
----
121
132
186

onlyif mysql # use DIV operator for integer division
query I rowsort label-7010
SELECT ALL col0 DIV tab1.col2 + + tab1.col0 DIV col2 + tab1.col1 AS col1 FROM tab1
----
12
13
26

skipif mysql # not compatible
query I rowsort label-7010
SELECT ALL col0 / tab1.col2 + + tab1.col0 / col2 + tab1.col1 AS col1 FROM tab1
----
12
13
26

query I rowsort
SELECT 51 * 15 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 67b0809fb57313fa52a40af70aedd072

query I rowsort
SELECT DISTINCT + col0 * + col1 * + ( col2 ) FROM tab1
----
36480
4212
99840

query I rowsort
SELECT 55 - + col0 FROM tab0
----
-34
20
31

query I rowsort
SELECT + 73 + col2 FROM tab2
----
100
111
99

query I rowsort
SELECT ALL col2 * - ( + col1 ) * + col0 FROM tab2
----
-119652
-51034
-5859

query I rowsort
SELECT - col1 * 40 * + 27 FROM tab2
----
-18360
-33480
-63720

query I rowsort
SELECT col2 * - 59 FROM tab0
----
-1947
-4838
-59

query I rowsort
SELECT col0 + ( - col1 ) + col2 FROM tab1 AS cor0
----
111
163
31

query I rowsort
SELECT + col2 + col1 * col1 + col1 FROM tab2 AS cor0
----
1019
344
3566

query I rowsort
SELECT + 36 * 41 + cor0.col1 + ( col1 + col0 ) FROM tab0 AS cor0
----
1672
1705
1747

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7021
SELECT + + col0 * - col0 + - col1 * CAST( col0 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-4736
-7440
-87

skipif mysql # not compatible
query I rowsort label-7021
SELECT + + col0 * - col0 + - col1 * CAST ( col0 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-4736
-7440
-87

onlyif mysql # use DIV operator for integer division
query I rowsort label-7022
SELECT - + ( + col0 ) DIV col1 AS col1 FROM tab2 AS cor0
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-7022
SELECT - + ( + col0 ) / col1 AS col1 FROM tab2 AS cor0
----
-1
-4
0

query I rowsort
SELECT 92 + 2 * col0 + col2 AS col2 FROM tab0 AS cor0
----
163
173
352

query I rowsort
SELECT ALL + 37 FROM tab1, tab0 cor0, tab1 AS cor1
----
27 values hashing to c023509f63faa044d654943e6df55ca2

query I rowsort
SELECT col1 * col0 + + col0 AS col0 FROM tab1 AS cor0
----
1120
704
81

query I rowsort
SELECT + 2 * + 72 + col1 FROM tab1 cor0
----
154
157
170

onlyif mysql # use DIV operator for integer division
query I rowsort label-7027
SELECT ALL 39 DIV col0 + - tab2.col2 + + 41 DIV tab2.col0 FROM tab2
----
-17
-26
-38

skipif mysql # not compatible
query I rowsort label-7027
SELECT ALL 39 / col0 + - tab2.col2 + + 41 / tab2.col0 FROM tab2
----
-17
-26
-38

query I rowsort
SELECT ALL 90 + 49 AS col0 FROM tab1
----
139
139
139

query I rowsort
SELECT 33 + col0 + cor0.col1 AS col0 FROM tab1 AS cor0
----
107
126
62

query I rowsort
SELECT ALL + 89 + 78 FROM tab2 AS cor0
----
167
167
167

query I rowsort
SELECT + col0 + + col1 + + col2 AS col1 FROM tab2 AS cor0
----
134
163
65

query I rowsort
SELECT - 25 * - cor0.col1 + - col1 FROM tab2 AS cor0
----
1416
408
744

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7033
SELECT DISTINCT CAST( NULL AS SIGNED ) * col2 * col0 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7033
SELECT DISTINCT CAST ( NULL AS INTEGER ) * col2 * col0 FROM tab1 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 30 + - cor0.col0 col0 FROM tab1 AS cor0
----
-110
-33
-94

query I rowsort
SELECT col0 * + col1 + - col1 * + 73 AS col0 FROM tab2 AS cor0
----
-2046
102
295

query I rowsort
SELECT + ( - col0 ) + + col0 + col2 AS col1 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT DISTINCT - col2 + col1 * 60 AS col0 FROM tab2 AS cor0
----
1833
3514
982

query I rowsort
SELECT DISTINCT + 86 * + col0 AS col1 FROM tab2 cor0
----
602
6708
6794

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col2 * - col2 + - ( col2 + 24 ) col2 FROM tab1 AS cor0
----
-157542
-185274
-884856

query I rowsort
SELECT DISTINCT cor0.col0 + + col0 * + col0 FROM tab1 AS cor0
----
12
4160
6480

onlyif mysql # use DIV operator for integer division
query I rowsort label-7041
SELECT DISTINCT col0 DIV - col1 + - 49 DIV - 94 + - col0 AS col2 FROM tab2 AS cor0
----
-7
-79
-83

skipif mysql # not compatible
query I rowsort label-7041
SELECT DISTINCT col0 / - col1 + - 49 / - 94 + - col0 AS col2 FROM tab2 AS cor0
----
-7
-79
-83

onlyif mysql # use DIV operator for integer division
query I rowsort label-7042
SELECT DISTINCT col1 DIV 62 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-7042
SELECT DISTINCT col1 / 62 FROM tab0
----
1

query I rowsort
SELECT ALL col0 + col0 + + col2 FROM tab1
----
185
256
60

query I rowsort
SELECT DISTINCT cor1.col2 AS col2 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
1
33
82

query I rowsort
SELECT - 19 AS col0 FROM tab2
----
-19
-19
-19

query I rowsort
SELECT DISTINCT ( col2 ) * cor0.col1 * col0 FROM tab0 AS cor0
----
3395
664118
68112

query I rowsort
SELECT - col0 * 54 FROM tab1
----
-162
-3456
-4320

query I rowsort
SELECT 51 * - tab0.col0 AS col2 FROM tab0
----
-1224
-1785
-4539

query I rowsort
SELECT - cor0.col0 + - ( col0 ) * col1 FROM tab2 AS cor0
----
-1422
-224
-4680

onlyif mysql # use DIV operator for integer division
query I rowsort label-7050
SELECT DISTINCT col1 + cor0.col0 DIV col0 FROM tab1 AS cor0
----
11
14
27

skipif mysql # not compatible
query I rowsort label-7050
SELECT DISTINCT col1 + cor0.col0 / col0 FROM tab1 AS cor0
----
11
14
27

query I rowsort
SELECT DISTINCT + - col2 + + ( col2 ) FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL col1 * ( 84 ) FROM tab1 cor0
----
1092
2184
840

query I rowsort
SELECT ALL - col1 * - ( col1 ) AS col2 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT DISTINCT + cor0.col2 * col1 + col0 FROM tab0 AS cor0
----
132
2862
7551

onlyif mysql # use DIV operator for integer division
query I rowsort label-7055
SELECT ALL + col2 DIV + col2 + cor0.col1 FROM tab0 AS cor0
----
87
92
98

skipif mysql # not compatible
query I rowsort label-7055
SELECT ALL + col2 / + col2 + cor0.col1 FROM tab0 AS cor0
----
87
92
98

query I rowsort
SELECT 28 AS col2 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97

query I rowsort
SELECT col1 * 55 + - col0 FROM tab0 AS cor0
----
4706
4916
5300

query I rowsort
SELECT DISTINCT + + cor0.col1 + + 66 FROM tab1 AS cor0
----
76
79
92

query I rowsort
SELECT - 94 * - col0 - col0 FROM tab1 AS cor0
----
279
5952
7440

query I rowsort
SELECT - col0 + ( + 47 ) AS col2 FROM tab2 AS cor0
----
-31
-32
40

onlyif mysql # use DIV operator for integer division
query I rowsort label-7061
SELECT col1 DIV + ( + tab0.col2 ) + + col0 * col0 FROM tab0
----
1322
578
7922

skipif mysql # not compatible
query I rowsort label-7061
SELECT col1 / + ( + tab0.col2 ) + + col0 * col0 FROM tab0
----
1322
578
7922

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7062
SELECT ALL CAST( - 26 AS SIGNED ) FROM tab1, tab1 AS cor0
----
9 values hashing to 47d0574274146de273829785364ada39

skipif mysql # not compatible
query I rowsort label-7062
SELECT ALL CAST ( - 26 AS INTEGER ) FROM tab1, tab1 AS cor0
----
9 values hashing to 47d0574274146de273829785364ada39

query I rowsort
SELECT - - cor0.col0 * 29 AS col0 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 5d0c77188add4ee71955628c5f27de84

query I rowsort
SELECT DISTINCT - + col2 + + 25 AS col1 FROM tab0 AS cor0
----
-57
-8
24

query I rowsort
SELECT ALL - + col1 + col0 * + cor0.col1 FROM tab1 cor0
----
1027
52
630

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor1.col0 col0 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
-24
-35
-89

onlyif mysql # use DIV operator for integer division
query I rowsort label-7067
SELECT - 59 DIV + col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7067
SELECT - 59 / + col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT - 29 AS col0 FROM tab2 cor0
----
-29
-29
-29

query I rowsort
SELECT ( - 19 ) FROM tab2 cor0
----
-19
-19
-19

query I rowsort
SELECT - col1 + col1 * ( + col1 ) FROM tab2
----
272
3422
930

query I rowsort
SELECT DISTINCT 39 + + col0 * + col2 FROM tab1 AS cor0
----
201
3687
7719

query I rowsort
SELECT ALL - - col1 * col0 * col1 + - col1 FROM tab2 AS cor0
----
22814
271459
6696

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7073
SELECT col1 * cor0.col0 + CAST( 3 AS SIGNED ) * col2 AS col2 FROM tab2 AS cor0
----
1457
298
4680

skipif mysql # not compatible
query I rowsort label-7073
SELECT col1 * cor0.col0 + CAST ( 3 AS INTEGER ) * col2 AS col2 FROM tab2 AS cor0
----
1457
298
4680

query I rowsort
SELECT ALL col1 * col0 + ( + ( col1 ) ) AS col1 FROM tab1 AS cor0
----
104
1053
650

query I rowsort
SELECT DISTINCT + + 96 * + col0 + col1 * col0 FROM tab0 AS cor0
----
16643
4368
6755

query I rowsort
SELECT + + 5 * + col2 AS col0 FROM tab2 AS cor0
----
130
135
190

query I rowsort
SELECT DISTINCT - - col2 * col0 + + 36 * cor0.col1 + + col1 FROM tab2 AS cor0
----
1336
3631
4211

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * - col0 * col2 col0 FROM tab2 AS cor0
----
1323
158184
237158

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 12 + + col0 col2 FROM tab2 AS cor0
----
19
90
91

query I rowsort
SELECT ALL - 1 + + tab1.col1 AS col2 FROM tab1
----
12
25
9

query I rowsort
SELECT ALL + 71 * - col1 FROM tab2 AS cor0
----
-1207
-2201
-4189

skipif mysql # not compatible
query I rowsort
SELECT cor0.col1 * col1 + - CAST ( + 37 AS REAL ) FROM tab1 AS cor0
----
132
63
639

onlyif mysql # use DIV operator for integer division
query I rowsort label-7083
SELECT 75 + - col1 DIV col2 AS col2 FROM tab1 AS cor0
----
75
75
75

skipif mysql # not compatible
query I rowsort label-7083
SELECT 75 + - col1 / col2 AS col2 FROM tab1 AS cor0
----
75
75
75

query I rowsort
SELECT DISTINCT col2 - 75 FROM tab1
----
-18
-21
21

query I rowsort
SELECT DISTINCT tab0.col2 + + 43 AS col2 FROM tab0
----
125
44
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - col1 * - ( + 82 + - col0 ) col1 FROM tab0
----
-52234
164604
4559

query I rowsort
SELECT + col0 * + ( - col2 ) AS col2 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT DISTINCT + ( col1 ) + - col2 FROM tab1
----
-28
-47
-83

query I rowsort
SELECT DISTINCT - col0 + cor0.col1 * col1 FROM tab0 AS cor0
----
7372
8192
9374

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * col1 col0 FROM tab0 cor0
----
7396
8281
9409

query I rowsort
SELECT ALL 58 * - col0 AS col2 FROM tab2 AS cor0
----
-406
-4524
-4582

query I rowsort
SELECT - col0 + + col1 * col1 AS col2 FROM tab1 AS cor0
----
36
673
89

query I rowsort
SELECT + + col2 * ( col1 ) + + col1 AS col1 FROM tab2 AS cor0
----
1593
663
868

onlyif mysql # use DIV operator for integer di