sqllogictest
Artifact Content
Not logged in

Artifact e85cae76404a21c013be4c6f5e77555afc784ace:


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)

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 + cor0.col0 col0 FROM tab2 AS cor0
----
137
38
96

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

query I rowsort
SELECT DISTINCT - col0 AS col2 FROM tab0 AS cor0 WHERE - col1 * + col1 NOT IN ( col0 - - col0 * col0 ) AND NULL = NULL OR NULL NOT IN ( col1 )
----

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

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

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

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

query I rowsort
SELECT DISTINCT + col1 * - col0 + + col1 + + col1 * + col1 FROM tab2
----
-1037
-1062
775

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

query I rowsort
SELECT col0 * + col1 * col1 + tab0.col0 * - col1 FROM tab0
----
175440
325920
728910

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

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

skipif mysql # not compatible
query I rowsort label-13
SELECT - col0 / col2 AS col0 FROM tab1
----
-1
0
0

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

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

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

query I rowsort
SELECT ALL col0 * tab1.col2 * col2 + - col0 + - col1 AS col2 FROM tab1
----
207862
737187
8719

onlyif mysql # use DIV operator for integer division
query I rowsort label-18
SELECT ALL tab0.col2 * col2 + col2 DIV col2 + + col1 DIV - col2 col2 FROM tab0
----
-95
1088
6724

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-18
SELECT ALL tab0.col2 * col2 + col2 / col2 + + col1 / - col2 col2 FROM tab0
----
-95
1088
6724

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col1 col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 58ed467a9a332e4d7bfaa9abdbbd063f

query I rowsort
SELECT col2 * + col2 - - cor0.col2 AS col1 FROM tab1 AS cor0
----
2970
3306
9312

onlyif mysql # use DIV operator for integer division
query I rowsort label-22
SELECT + col0 DIV col0 + - col1 * + col1 AS col2 FROM tab0 cor0
----
-7395
-8280
-9408

skipif mysql # not compatible
query I rowsort label-22
SELECT + col0 / col0 + - col1 * + col1 AS col2 FROM tab0 cor0
----
-7395
-8280
-9408

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

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

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

query I rowsort
SELECT + col2 + - col0 * col1 - - col0 AS col0 FROM tab1
----
-21
-519
-864

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-27
SELECT - col1 * + col1 * + tab0.col1 + col0 DIV col0 col1 FROM tab0
----
-636055
-753570
-912672

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-27
SELECT - col1 * + col1 * + tab0.col1 + col0 / col0 col1 FROM tab0
----
-636055
-753570
-912672

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

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

query I rowsort
SELECT DISTINCT - col1 * col2 + - col0 + col1 AS col1 FROM tab0
----
-2776
-35
-7460

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + col0 col2 FROM tab2
----
104
117
34

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL <> col1
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-36
SELECT DISTINCT + col1 + col1 DIV + col0 col0 FROM tab1
----
10
13
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-36
SELECT DISTINCT + col1 + col1 / + col0 col0 FROM tab1
----
10
13
34

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

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

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

query I rowsort
SELECT - - 53 * + col1 * + 3 FROM tab1 AS cor0
----
1590
2067
4134

query I rowsort
SELECT col0 * col0 * 18 FROM tab0 AS cor0
----
10368
142578
22050

query I rowsort
SELECT DISTINCT + - 7 + + col2 FROM tab2 AS cor0
----
19
20
31

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

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

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

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

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

query I rowsort
SELECT - + col0 * 47 - - col0 AS col2 FROM tab1 AS cor0
----
-138
-2944
-3680

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

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

query I rowsort
SELECT + cor0.col2 * ( cor0.col1 * - col2 ) + + 4 AS col1 FROM tab2 AS cor0
----
-22595
-24544
-39880

query I rowsort
SELECT DISTINCT - col2 * ( 19 ) + col0 AS col0 FROM tab2 AS cor0
----
-416
-506
-643

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

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

query I rowsort
SELECT + + col0 * - 63 - ( + col1 ) FROM tab1 AS cor0
----
-215
-4042
-5053

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

query I rowsort
SELECT - 96 + col1 * col2 AS col0 FROM tab2 AS cor0
----
1438
550
741

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

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

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

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

query I rowsort
SELECT + ( col2 + + col0 ) FROM tab1
----
121
176
57

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

query I rowsort
SELECT ALL - - 34 * col0 FROM tab0 AS cor0
----
1190
3026
816

query I rowsort
SELECT ALL 0 * + col2 * + ( 55 ) FROM tab2 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-65
SELECT DISTINCT - + col2 + - col1 + col0 DIV 11 AS col2 FROM tab2 AS cor0
----
-48
-58
-78

skipif mysql # not compatible
query I rowsort label-65
SELECT DISTINCT - + col2 + - col1 + col0 / 11 AS col2 FROM tab2 AS cor0
----
-48
-58
-78

query I rowsort
SELECT DISTINCT - + ( - col2 ) + - 60 * + 70 FROM tab0 AS cor0
----
-4118
-4167
-4199

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

query I rowsort
SELECT - cor0.col0 + cor0.col1 * - 83 * 34 AS col2 FROM tab2 AS cor0
----
-166576
-48053
-87489

query I rowsort
SELECT - col1 * 80 * + col0 - + 44 AS col1 FROM tab0
----
-165164
-271644
-647964

query I rowsort
SELECT DISTINCT - col2 + - col0 * + col0 + + col2 AS col2 FROM tab1
----
-4096
-6400
-9

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

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

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

query I rowsort
SELECT + col0 + col0 * - ( col2 ) AS col1 FROM tab2 AS cor0
----
-182
-1950
-2923

query I rowsort
SELECT + 79 + col0 FROM tab1 AS cor0
----
143
159
82

query I rowsort
SELECT ALL + 76 AS col2 FROM tab1 AS cor0
----
76
76
76

query IIIIIIIII rowsort
SELECT * FROM tab0, tab2, tab1 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col1 ) - col1 col2 FROM tab0
----
-172
-182
-194

query I rowsort
SELECT - col1 * col1 + - 13 AS col1 FROM tab1 AS cor0
----
-113
-182
-689

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT - ( col2 ) * - col2 FROM tab1 AS cor0
----
2916
3249
9216

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-86
SELECT ALL + 43 DIV col1 + col2 FROM tab2 AS cor0
----
26
28
40

skipif mysql # not compatible
query I rowsort label-86
SELECT ALL + 43 / col1 + col2 FROM tab2 AS cor0
----
26
28
40

query I rowsort
SELECT ALL - tab2.col1 * + 11 FROM tab2
----
-187
-341
-649

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

query I rowsort
SELECT col1 * - col0 * - col0 + col1 FROM tab0
----
118922
49622
720902

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-91
SELECT - cor0.col0 * 79 DIV 41 + col2 * col2 * cor0.col1 + col1 * - cor0.col1 * + col2 AS col1 FROM tab2 AS cor0
----
-3361
-50772
13414

skipif mysql # not compatible
query I rowsort label-91
SELECT - cor0.col0 * 79 / 41 + col2 * col2 * cor0.col1 + col1 * - cor0.col1 * + col2 AS col1 FROM tab2 AS cor0
----
-3361
-50772
13414

query I rowsort
SELECT + col2 + ( 86 ) * + col0 * 17 + + ( - col2 ) AS col0 FROM tab0
----
130118
35088
51170

onlyif mysql # use DIV operator for integer division
query I rowsort label-93
SELECT + col2 + cor0.col0 DIV col2 AS col2 FROM tab1 AS cor0
----
54
58
96

skipif mysql # not compatible
query I rowsort label-93
SELECT + col2 + cor0.col0 / col2 AS col2 FROM tab1 AS cor0
----
54
58
96

query I rowsort
SELECT DISTINCT ( + 35 ) * col1 AS col0 FROM tab0 AS cor0
----
3010
3185
3395

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

query I rowsort
SELECT ALL - col2 + col2 + - col1 FROM tab0
----
-86
-91
-97

query I rowsort
SELECT + + 4 * - col2 + col1 AS col0 FROM tab0 AS cor0
----
-237
-46
93

query I rowsort
SELECT ALL 15 - + col0 * + cor0.col0 FROM tab1 AS cor0
----
-4081
-6385
6

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

skipif mysql # not compatible
query I rowsort label-99
SELECT - + CAST ( 64 AS INTEGER ) * col2 FROM tab0 cor0
----
-2112
-5248
-64

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

query I rowsort
SELECT ALL + 48 * - col0 * + col2 AS col0 FROM tab2 AS cor0
----
-144096
-9072
-97344

query I rowsort
SELECT ALL 11 * 86 FROM tab0 AS cor0
----
946
946
946

query I rowsort
SELECT ALL - 68 * + ( - cor0.col1 ) AS col0 FROM tab0 AS cor0
----
5848
6188
6596

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

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

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

query I rowsort
SELECT ( + ( - col1 ) ) + + 79 FROM tab1 AS cor0
----
53
66
69

query I rowsort
SELECT + cor0.col2 * + col2 + - col2 AS col1 FROM tab1 AS cor0
----
2862
3192
9120

query I rowsort
SELECT DISTINCT + col1 * col2 + cor0.col1 * - 84 FROM tab0 AS cor0
----
-182
-4386
-8051

query I rowsort
SELECT DISTINCT - col1 - + col1 AS col0 FROM tab1 AS cor0
----
-20
-26
-52

query I rowsort
SELECT col1 + + 30 AS col2 FROM tab0 AS cor0
----
116
121
127

query I rowsort
SELECT + col0 + 24 * - col0 + col0 AS col1 FROM tab0 AS cor0
----
-1958
-528
-770

query I rowsort
SELECT + + cor0.col1 + + 88 AS col1 FROM tab0 AS cor0
----
174
179
185

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

skipif mysql # not compatible
query I rowsort label-113
SELECT CAST ( col0 AS INTEGER ) * - col2 + + ( - 80 + col2 ) FROM tab2 AS cor0
----
-2082
-242
-3044

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

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

query I rowsort
SELECT + - 59 + + col1 AS col2 FROM tab2 AS cor0
----
-28
-42
0

query I rowsort
SELECT + + 62 * col2 AS col2 FROM tab0 AS cor0
----
2046
5084
62

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

query I rowsort
SELECT + - col0 + col1 + - 66 AS col2 FROM tab2 cor0
----
-128
-42
-85

query I rowsort
SELECT + + 24 - col1 FROM tab2 cor0
----
-35
-7
7

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

query I rowsort
SELECT col2 + + cor0.col2 + - col2 * - col0 AS col1 FROM tab2 cor0
----
2080
243
3078

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

query I rowsort
SELECT ALL - col1 + col0 * col0 + col0 FROM tab2 AS cor0
----
25
6103
6303

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

query I rowsort
SELECT - 56 AS col0 FROM tab0, tab0 cor0
----
9 values hashing to 3d3dab400eef93c098acbbba3fc9bdc6

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

query I rowsort
SELECT + 2 * cor0.col2 FROM tab1 AS cor0
----
108
114
192

onlyif mysql # use DIV operator for integer division
query I rowsort label-129
SELECT DISTINCT + 83 DIV - tab0.col0 + + col1 * - col2 - - 98 FROM tab0
----
-1
-2743
-7364

skipif mysql # not compatible
query I rowsort label-129
SELECT DISTINCT + 83 / - tab0.col0 + + col1 * - col2 - - 98 FROM tab0
----
-1
-2743
-7364

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-130
SELECT - col0 * col0 + CAST( - 43 AS SIGNED ) + col2 * 28 FROM tab2 AS cor0
----
-5220
-5399
664

skipif mysql # not compatible
query I rowsort label-130
SELECT - col0 * col0 + CAST ( - 43 AS INTEGER ) + col2 * 28 FROM tab2 AS cor0
----
-5220
-5399
664

query I rowsort
SELECT ALL + 41 + col0 AS col1 FROM tab1
----
105
121
44

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-132
SELECT ALL + tab0.col0 * CAST ( NULL AS INTEGER ) col1 FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ALL col1 * - col0 * 66 FROM tab0
----
-136224
-224070
-534534

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

query I rowsort
SELECT ALL 30 * col1 - 49 FROM tab1 AS cor0
----
251
341
731

query I rowsort
SELECT + col1 * + col1 + ( - ( col2 ) ) * col1 FROM tab2 AS cor0
----
-357
124
1947

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

query I rowsort
SELECT - cor0.col1 * - ( - 4 ) + col1 - - col0 * cor0.col2 FROM tab1 AS cor0
----
3618
7641
84

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

query I rowsort
SELECT + col1 * - col1 + 47 * col1 FROM tab2 cor0
----
-708
496
510

query I rowsort
SELECT DISTINCT - col0 * - 26 AS col1 FROM tab0
----
2314
624
910

query I rowsort
SELECT col1 * ( col1 ) * + col2 + col2 AS col0 FROM tab0 AS cor0
----
244101
679124
9410

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 17 * cor0.col1 + - col2 * col1 col1 FROM tab0 AS cor0
----
-1376
-5915
1552

query I rowsort
SELECT + + cor0.col0 * - 52 FROM tab1 cor0
----
-156
-3328
-4160

query I rowsort
SELECT + - 26 * + col0 * col2 AS col0 FROM tab1 AS cor0
----
-199680
-4212
-94848

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

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

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

skipif mysql # not compatible
query I rowsort
SELECT CAST ( - cor1.col0 AS REAL ) FROM tab2, tab2 AS cor0, tab1 cor1
----
27 values hashing to 729c1edda9332398299f39cd174ed840

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

query I rowsort
SELECT ALL ( 66 ) + + col2 FROM tab2 AS cor0
----
104
92
93

query I rowsort
SELECT - 79 * 92 AS col0 FROM tab0 AS cor0
----
-7268
-7268
-7268

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

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

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

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

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

query I rowsort
SELECT ALL 48 * col1 * + 97 + col0 AS col0 FROM tab0
----
400440
423785
451667

query I rowsort
SELECT - 64 + + col2 AS col0 FROM tab2 AS cor0
----
-26
-37
-38

query I rowsort
SELECT ALL col0 + + col0 AS col2 FROM tab0
----
178
48
70

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

query I rowsort
SELECT ALL - 69 * col0 - 38 * + 49 * + col2 AS col0 FROM tab2 AS cor0
----
-50757
-53794
-76207

query I rowsort
SELECT - + 93 * + col2 + 30 + - 83 AS col1 FROM tab2 AS cor0
----
-2471
-2564
-3587

query I rowsort
SELECT DISTINCT - - col1 * - 6 - - col0 * col2 FROM tab0 AS cor0
----
-547
276
6752

query I rowsort
SELECT DISTINCT + col0 * + 14 + - 85 FROM tab2 AS cor0
----
1007
1021
13

query I rowsort
SELECT ALL - + col0 + 26 FROM tab2 AS cor0
----
-52
-53
19

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

query I rowsort
SELECT col2 * + col0 * - col0 + col0 AS col1 FROM tab1 AS cor0
----
-233408
-483
-614320

query I rowsort
SELECT ALL col0 + + col0 * - col2 - - col0 AS col2 FROM tab0 AS cor0
----
-7120
-744
35

query I rowsort
SELECT cor0.col2 + + ( + 51 ) AS col1 FROM tab1 AS cor0
----
105
108
147

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

query I rowsort
SELECT ALL - - col2 * col1 * ( - col1 ) - ( cor0.col0 ) AS col0 FROM tab2 AS cor0
----
-11061
-25954
-90584

query I rowsort
SELECT col2 * col1 + + col1 * - col0 FROM tab1 AS cor0
----
-70
1326
208

onlyif mysql # use DIV operator for integer division
query I rowsort label-174
SELECT DISTINCT - - col2 + CAST( col0 AS SIGNED ) DIV col1 + 72 FROM tab2 AS cor0
----
114
99

skipif mysql # not compatible
query I rowsort label-174
SELECT DISTINCT - - col2 + CAST ( col0 AS INTEGER ) / col1 + 72 FROM tab2 AS cor0
----
114
99

query I rowsort
SELECT + 82 AS col1 FROM tab2
----
82
82
82

query I rowsort
SELECT + + col0 * 69 + + col0 + + col2 AS col1 FROM tab1 AS cor0
----
264
4537
5696

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

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

query I rowsort
SELECT + - col1 + ( + col0 ) * + col1 + - ( - 17 ) AS col0 FROM tab2 cor0
----
1343
203
4560

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

query I rowsort
SELECT cor0.col1 * cor0.col0 + col2 + + col1 FROM tab1 AS cor0
----
1149
158
707

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * - 39 col2 FROM tab1 cor0
----
-1014
-390
-507

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

query I rowsort
SELECT - - col0 * 55 AS col2 FROM tab0 AS cor0
----
1320
1925
4895

query I rowsort
SELECT col0 - col2 * tab1.col2 AS col0 FROM tab1
----
-2913
-3185
-9136

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

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

query I rowsort
SELECT DISTINCT - col1 + 67 AS col1 FROM tab2
----
36
50
8

onlyif mysql # use DIV operator for integer division
query I rowsort label-187
SELECT col0 * - col0 + - 90 DIV + tab2.col0 AS col0 FROM tab2
----
-6085
-61
-6242

skipif mysql # not compatible
query I rowsort label-187
SELECT col0 * - col0 + - 90 / + tab2.col0 AS col0 FROM tab2
----
-6085
-61
-6242

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-188
SELECT - col0 * + CAST( - 18 AS SIGNED ) * - col0 FROM tab0
----
-10368
-142578
-22050

skipif mysql # not compatible
query I rowsort label-188
SELECT - col0 * + CAST ( - 18 AS INTEGER ) * - col0 FROM tab0
----
-10368
-142578
-22050

onlyif mysql # use DIV operator for integer division
query I rowsort label-189
SELECT DISTINCT - tab2.col0 + - col2 DIV 19 col1 FROM tab2
----
-79
-8
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-189
SELECT DISTINCT - tab2.col0 + - col2 / 19 col1 FROM tab2
----
-79
-8
-81

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

query I rowsort
SELECT - 10 AS col1 FROM tab1, tab1 cor0, tab0 AS cor1
----
27 values hashing to bb7f754a7a056e665155ed52a63f5bc0

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

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

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

query I rowsort
SELECT DISTINCT - + 37 + - col2 FROM tab2 AS cor0
----
-63
-64
-75

query I rowsort
SELECT DISTINCT ( col0 ) * + 36 FROM tab1 AS cor0
----
108
2304
2880

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

query I rowsort
SELECT - 50 - - col0 * - col0 FROM tab2
----
-6134
-6291
-99

query I rowsort
SELECT 27 * 35 * - col2 + - ( + col1 ) * - col1 AS col1 FROM tab0
----
-23789
-69209
8464

query I rowsort
SELECT 98 + col2 * col0 AS col0 FROM tab1
----
260
3746
7778

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

query I rowsort
SELECT DISTINCT col0 * - col1 - col0 AS col0 FROM tab2
----
-1422
-224
-4680

query I rowsort
SELECT col1 - cor0.col1 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-204
SELECT ALL col1 DIV + col2 + - 20 FROM tab0 AS cor0
----
-18
-19
77

skipif mysql # not compatible
query I rowsort label-204
SELECT ALL col1 / + col2 + - 20 FROM tab0 AS cor0
----
-18
-19
77

query I rowsort
SELECT DISTINCT - 95 + - cor0.col0 * + 23 AS col0 FROM tab2 AS cor0
----
-1889
-1912
-256

onlyif mysql # use DIV operator for integer division
query I rowsort label-206
SELECT DISTINCT - col0 + cor0.col0 DIV - col2 AS col2 FROM tab1 AS cor0
----
-3
-65
-80

skipif mysql # not compatible
query I rowsort label-206
SELECT DISTINCT - col0 + cor0.col0 / - col2 AS col2 FROM tab1 AS cor0
----
-3
-65
-80

query I rowsort
SELECT + + col0 + col0 + col2 AS col1 FROM tab0 cor0
----
260
71
81

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

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

query I rowsort
SELECT + 52 + - col0 AS col0 FROM tab0 AS cor0
----
-37
17
28

query I rowsort
SELECT col2 * col0 + col0 + - ( + 99 ) FROM tab1
----
3613
66
7661

query I rowsort
SELECT 9 * - col2 AS col2 FROM tab0
----
-297
-738
-9

query I rowsort
SELECT DISTINCT 20 AS col0 FROM tab1
----
20

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

query I rowsort
SELECT - 92 + + col2 AS col0 FROM tab2
----
-54
-65
-66

query I rowsort
SELECT - ( 77 ) * - col2 AS col0 FROM tab0
----
2541
6314
77

onlyif mysql # use DIV operator for integer division
query I rowsort label-216
SELECT - + 27 * 27 + cor0.col0 * 61 DIV col2 AS col0 FROM tab1 cor0
----
-661
-679
-726

skipif mysql # not compatible
query I rowsort label-216
SELECT - + 27 * 27 + cor0.col0 * 61 / col2 AS col0 FROM tab1 cor0
----
-661
-679
-726

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

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

query I rowsort
SELECT - 53 - col1 AS col0 FROM tab1 AS cor0
----
-63
-66
-79

query I rowsort
SELECT ALL + - 50 - - col2 AS col2 FROM tab0 cor0
----
-17
-49
32

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

query I rowsort
SELECT + cor0.col0 + + col1 * - col0 * col0 FROM tab1 AS cor0
----
-231
-40896
-83120

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

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

query I rowsort
SELECT DISTINCT - 9 * cor0.col0 + - 50 AS col2 FROM tab2 AS cor0
----
-113
-752
-761

query I rowsort
SELECT - 26 + col0 FROM tab0 AS cor0
----
-2
63
9

query I rowsort
SELECT ALL + col2 + - col0 * 75 FROM tab1 AS cor0
----
-171
-4743
-5904

query I rowsort
SELECT DISTINCT - - 61 FROM tab0, tab1, tab1 cor0
----
61

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

query I rowsort
SELECT ( - col2 ) * col0 + col2 * col2 FROM tab0
----
-34
-574
297

query I rowsort
SELECT 10 * + cor0.col0 + + ( 88 ) FROM tab0 AS cor0
----
328
438
978

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

query I rowsort
SELECT ALL - - col2 * + ( + 51 ) FROM tab0 AS cor0
----
1683
4182
51

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

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 col0 * ( - col2 ) AS col0 FROM tab0 AS cor0
----
-35
-7298
-792

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

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

query I rowsort
SELECT - col1 * + 9 FROM tab2 AS cor0
----
-153
-279
-531

query I rowsort
SELECT ALL - col1 * - 5 FROM tab2 AS cor0
----
155
295
85

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

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

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

query I rowsort
SELECT - - 60 - 59 FROM tab0 cor0
----
1
1
1

query I rowsort
SELECT + - 94 * + cor0.col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c4ec5f984b43d492930de349b59edd55

query I rowsort
SELECT DISTINCT col2 + ( col0 ) + + col2 FROM tab1
----
111
178
272

query I rowsort
SELECT ( 13 ) FROM tab2 AS cor0
----
13
13
13

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

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

query I rowsort
SELECT - + col0 * 34 FROM tab1 AS cor0
----
-102
-2176
-2720

query I rowsort
SELECT - - col0 * - 72 * - col1 FROM tab2 cor0
----
15624
331344
96696

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

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

query I rowsort
SELECT 76 + + col2 AS col1 FROM tab1 AS cor0
----
130
133
172

onlyif mysql # use DIV operator for integer division
query I rowsort label-251
SELECT - ( col2 ) + + col2 DIV - ( + col1 ) col1 FROM tab2 cor0
----
-26
-27
-40

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-251
SELECT - ( col2 ) + + col2 / - ( + col1 ) col1 FROM tab2 cor0
----
-26
-27
-40

query I rowsort
SELECT DISTINCT - 1 + col0 AS col2 FROM tab1 AS cor0
----
2
63
79

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

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

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

query I rowsort
SELECT ALL + 57 AS col0 FROM tab1, tab0 cor0
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a

query I rowsort
SELECT - col1 * + tab2.col2 + + col0 * col2 * col2 FROM tab2
----
113430
4266
51194

query I rowsort
SELECT - col1 * + col2 * 10 FROM tab2
----
-15340
-6460
-8370

query I rowsort
SELECT ALL + col0 * - 23 AS col1 FROM tab2
----
-161
-1794
-1817

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

query I rowsort
SELECT ALL - col1 * 60 FROM tab2
----
-1020
-1860
-3540

query I rowsort
SELECT - col0 + ( + 71 ) FROM tab1 cor0
----
-9
68
7

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

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

query I rowsort
SELECT ALL + - col0 * + 24 AS col2 FROM tab2 AS cor0
----
-168
-1872
-1896

query I rowsort
SELECT cor0.col1 * + col1 + 9 * - col2 + ( - col1 ) * col0 FROM tab1 AS cor0
----
-1053
-1735
112

query I rowsort
SELECT - cor0.col2 * + 6 + 30 FROM tab2 AS cor0
----
-126
-132
-198

onlyif mysql # use DIV operator for integer division
query I rowsort label-266
SELECT - col1 + - col2 * ( col0 ) DIV col1 FROM tab2 AS cor0
----
-193
-37
-93

skipif mysql # not compatible
query I rowsort label-266
SELECT - col1 + - col2 * ( col0 ) / col1 FROM tab2 AS cor0
----
-193
-37
-93

query I rowsort
SELECT ALL col1 + + cor0.col2 - - col0 * + col2 FROM tab0 AS cor0
----
133
7471
911

query I rowsort
SELECT + - col0 + 73 FROM tab2 AS cor0
----
-5
-6
66

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

query I rowsort
SELECT DISTINCT 16 - - col2 AS col2 FROM tab0
----
17
49
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-271
SELECT ALL col0 * - col1 * col0 + + 11 * col2 DIV col0 AS col2 FROM tab2
----
-106092
-1477
-358953

skipif mysql # not compatible
query I rowsort label-271
SELECT ALL col0 * - col1 * col0 + + 11 * col2 / col0 AS col2 FROM tab2
----
-106092
-1477
-358953

query I rowsort
SELECT 45 AS col1 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 14cec871edc37b5056cda01c8331fdca

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + 21 * - 62 + - col0 col1 FROM tab1 AS cor0
----
-1251
-1286
-1309

query I rowsort
SELECT ALL + col2 + 35 AS col2 FROM tab2 AS cor0
----
61
62
73

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

query I rowsort
SELECT ALL 19 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 86c53e8567a17c8d91fc5aff119e0498

query I rowsort
SELECT - col1 + 44 * + col1 FROM tab2 AS cor0
----
1333
2537
731

query I rowsort
SELECT - 1 AS col2 FROM tab2
----
-1
-1
-1

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-279
SELECT DISTINCT - CAST ( col1 AS INTEGER ) * - col0 col1 FROM tab2 AS cor0
----
1343
217
4602

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

query I rowsort
SELECT DISTINCT + col0 * 9 + - col0 AS col1 FROM tab2 AS cor0
----
56
624
632

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + ( tab2.col2 + + col0 ) col2 FROM tab2
----
130
155
61

query I rowsort
SELECT ALL col2 FROM tab2 WHERE col0 >= - col2 * + col0 + + col0
----
26
27
38

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

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

query I rowsort
SELECT ALL - ( col2 ) AS col0 FROM tab1 AS cor0
----
-54
-57
-96

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

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

query I rowsort
SELECT DISTINCT col2 * col1 + - col2 * tab1.col0 * - col2 AS col0 FROM tab1
----
10152
208506
738528

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * col1 col2 FROM tab0 WHERE NOT ( - col2 / - col1 ) NOT IN ( - col2 * col0 )
----

query III rowsort
SELECT * FROM tab0 WHERE + col2 < NULL
----

query I rowsort
SELECT DISTINCT tab0.col2 + - tab0.col1 * tab0.col2 FROM tab0
----
-2805
-7380
-96

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

query I rowsort
SELECT + - 97 AS col0 FROM tab0, tab1, tab0 cor0
----
27 values hashing to 12bd12d33f03250bee508c5641e140d5

query I rowsort
SELECT ALL + col0 + - tab0.col0 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL + 35 + col0 + - 6 * ( + col2 * + col2 + - col0 ) FROM tab2
----
-3475
-4290
-8076

query I rowsort
SELECT ALL 34 + col0 * - cor0.col2 FROM tab2 AS cor0
----
-155
-1994
-2968

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 70 + col0 col0 FROM tab0 AS cor0
----
-35
-46
19

query I rowsort
SELECT col0 + col2 + col1 AS col0 FROM tab2 AS cor0
----
134
163
65

query I rowsort
SELECT - col1 * cor0.col1 + 83 * col2 + - col0 * - 62 FROM tab1 AS cor0
----
12759
3992
8599

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

query I rowsort
SELECT ALL col0 + - col2 AS col1 FROM tab0 cor0
----
-9
34
7

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

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

query I rowsort
SELECT ALL - + col2 - col0 * - ( col0 ) AS col1 FROM tab2 AS cor0
----
22
6058
6203

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-305
SELECT DISTINCT - - 55 * + col2 + + CAST( 24 AS SIGNED ) + col2 AS col1 FROM tab1 AS cor0
----
3048
3216
5400

skipif mysql # not compatible
query I rowsort label-305
SELECT DISTINCT - - 55 * + col2 + + CAST ( 24 AS INTEGER ) + col2 AS col1 FROM tab1 AS cor0
----
3048
3216
5400

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

query I rowsort
SELECT ALL + col0 - - col1 * - 1 * + 26 AS col0 FROM tab2 cor0
----
-1456
-363
-799

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

query I rowsort
SELECT DISTINCT - col2 + + tab1.col2 * 94 FROM tab1
----
5022
5301
8928

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

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

query I rowsort
SELECT ALL + col2 + - 98 + - col2 FROM tab1 AS cor0
----
-98
-98
-98

query I rowsort
SELECT ALL col1 + 63 FROM tab1 AS cor0
----
73
76
89

query I rowsort
SELECT ALL + col0 + col1 + + ( col2 ) FROM tab0 AS cor0
----
133
143
262

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

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

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

query I rowsort
SELECT DISTINCT col2 + + 17 AS col2 FROM tab1 AS cor0
----
113
71
74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + 81 * col2 col1 FROM tab1 AS cor0
----
4428
4674
7872

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

query I rowsort
SELECT DISTINCT + - 30 + - col0 AS col2 FROM tab2 AS cor0
----
-108
-109
-37

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

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

query I rowsort
SELECT + - 61 * - 66 AS col1 FROM tab2 AS cor0
----
4026
4026
4026

query I rowsort
SELECT ALL - ( + 7 ) * col0 FROM tab0 AS cor0
----
-168
-245
-623

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

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

query I rowsort
SELECT ALL + 5 * cor0.col1 + 20 FROM tab2 AS cor0
----
105
175
315

query I rowsort
SELECT ALL 76 * + col0 + ( cor0.col0 * col0 ) FROM tab1 AS cor0
----
12480
237
8960

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

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

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

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

query I rowsort
SELECT DISTINCT 15 AS col1 FROM tab2
----
15

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

query I rowsort
SELECT - 15 + tab1.col2 AS col0 FROM tab1
----
39
42
81

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

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

query I rowsort
SELECT - + col2 * + col0 - + col1 * col1 FROM tab1 AS cor0
----
-3748
-7849
-838

onlyif mysql # use DIV operator for integer division
query I rowsort label-336
SELECT ALL - col2 DIV - col1 AS col1 FROM tab2
----
0
0
2

skipif mysql # not compatible
query I rowsort label-336
SELECT ALL - col2 / - col1 AS col1 FROM tab2
----
0
0
2

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

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

query I rowsort
SELECT DISTINCT col2 * col2 * col2 FROM tab1
----
157464
185193
884736

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-341
SELECT col1 / + col2 col2 FROM tab0
----
1
2
97

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

query I rowsort
SELECT DISTINCT col2 * col1 - + col0 AS col0 FROM tab1 AS cor0
----
1168
1401
506

query I rowsort
SELECT DISTINCT + - col2 * 19 + + col0 AS col2 FROM tab2 cor0
----
-416
-506
-643

query I rowsort
SELECT DISTINCT + 46 - - 41 FROM tab1 AS cor0
----
87

query I rowsort
SELECT + 73 * tab2.col0 * + col1 FROM tab2
----
15841
335946
98039

query I rowsort
SELECT DISTINCT ( - tab1.col1 + - col2 ) FROM tab1
----
-109
-67
-80

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

query I rowsort
SELECT ALL - + col1 + cor0.col1 * col2 * col2 AS col2 FROM tab2 AS cor0
----
22568
24531
39825

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

query I rowsort
SELECT cor1.col0 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63

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

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

query I rowsort
SELECT ALL + col2 * col0 + - col0 * col0 AS col2 FROM tab1
----
-448
1280
153

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

query I rowsort
SELECT DISTINCT + tab2.col1 + col2 * - tab2.col1 AS col2 FROM tab2
----
-1475
-629
-806

query III rowsort
SELECT * FROM tab1 WHERE NULL >= col2 + + col1 + + col2
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col2 = ( + col2 * + col2 + col1 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

query III rowsort
SELECT * FROM tab2 WHERE + col2 NOT BETWEEN ( col0 ) AND NULL
----
78
59
26
79
17
38

query I rowsort
SELECT col0 * col0 * + col0 AS col0 FROM tab0 AS cor0
----
13824
42875
704969

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

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

query I rowsort
SELECT DISTINCT - col1 FROM tab1 WHERE + col2 > NULL
----

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

query I rowsort
SELECT ALL + col2 * col2 + - col0 * col1 FROM tab1
----
2609
2838
8176

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

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

query I rowsort
SELECT col1 * col0 + cor0.col1 * - col2 AS col0 FROM tab0 AS cor0
----
-774
3298
637

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

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

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

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

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

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

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

query I rowsort
SELECT ALL col2 + - col2 AS col0 FROM tab1 AS cor0 WHERE NOT NULL <> NULL
----

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-379
SELECT - 84 * ( col0 ) + col0 DIV col1 AS col2 FROM tab2 cor0
----
-588
-6551
-6632

skipif mysql # not compatible
query I rowsort label-379
SELECT - 84 * ( col0 ) + col0 / col1 AS col2 FROM tab2 cor0
----
-588
-6551
-6632

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-381
SELECT ALL - CAST ( + col0 AS INTEGER ) + col1 col1 FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT + + 73 + 32 + col0 AS col2 FROM tab2 cor0
----
112
183
184

query I rowsort
SELECT ALL + col1 + col0 * col0 * + col0 AS col0 FROM tab0 cor0
----
13910
42972
705060

query I rowsort
SELECT - + 35 + 65 AS col0 FROM tab2 AS cor0
----
30
30
30

query I rowsort
SELECT + col2 + 22 AS col2 FROM tab0 AS cor0
----
104
23
55

query I rowsort
SELECT - - 57 * col1 FROM tab1 AS cor0
----
1482
570
741

query I rowsort
SELECT ALL - 10 + 42 * col2 AS col0 FROM tab0 AS cor0
----
1376
32
3434

query I rowsort
SELECT + col1 * + col2 - col1 AS col0 FROM tab2 AS cor0
----
1475
629
806

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( 16 ) * col1 col0 FROM tab2 cor0
----
272
496
944

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

query I rowsort
SELECT DISTINCT - + 89 FROM tab0 cor0
----
-89

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

query I rowsort
SELECT ALL + ( + col0 ) * 61 + + col2 FROM tab0 AS cor0
----
1497
2136
5511

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

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

query I rowsort
SELECT DISTINCT - col0 + col0 * + 21 FROM tab1 AS cor0
----
1280
1600
60

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

query I rowsort
SELECT ALL + 0 + + col2 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT ALL 62 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 51dd2771d516ceb935483eded78a5fa0

query I rowsort
SELECT DISTINCT col0 * - 53 - col1 AS col2 FROM tab1
----
-185
-3402
-4253

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

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

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

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

query I rowsort
SELECT - col2 - - ( + col1 ) FROM tab0
----
53
9
96

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

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

query I rowsort
SELECT - col0 * - 38 + + col0 FROM tab2
----
273
3042
3081

query I rowsort
SELECT col2 + 3 FROM tab0
----
36
4
85

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

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

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + CAST ( col1 AS REAL ) + - cor0.col2 * col2 FROM tab2 AS cor0
----
-1427
-617
-698

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

query I rowsort
SELECT DISTINCT - tab0.col1 AS col2 FROM tab0, tab1, tab1 AS cor0
----
-86
-91
-97

query I rowsort
SELECT ALL + 78 + + cor0.col0 FROM tab1 AS cor0
----
142
158
81

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

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-418
SELECT ALL + cor1.col2 + CAST( NULL AS SIGNED ) AS col1 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-418
SELECT ALL + cor1.col2 + CAST ( NULL AS INTEGER ) AS col1 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

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

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

query I rowsort
SELECT + + 34 AS col0 FROM tab0 AS cor0
----
34
34
34

query I rowsort
SELECT - - 25 + - 85 FROM tab1 AS cor0
----
-60
-60
-60

query I rowsort
SELECT + col0 + + col1 * col2 FROM tab0
----
132
2862
7551

query I rowsort
SELECT DISTINCT + tab1.col1 * + col1 + - col1 * + col2 FROM tab1
----
-1079
-470
-728

query I rowsort
SELECT + 95 * col0 + col0 FROM tab1 AS cor0
----
288
6144
7680

query I rowsort
SELECT DISTINCT + 31 - col1 * - col1 FROM tab1 AS cor0
----
131
200
707

query I rowsort
SELECT ALL col1 + col1 + col0 AS col0 FROM tab1 AS cor0
----
106
55
84

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

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

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

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

query I rowsort
SELECT - cor0.col2 * + 8 AS col1 FROM tab1 AS cor0
----
-432
-456
-768

query I rowsort
SELECT ALL + col1 + 95 AS col0 FROM tab2 AS cor0
----
112
126
154

query I rowsort
SELECT DISTINCT - col1 + 60 + col2 FROM tab1 AS cor0
----
107
143
88

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-435
SELECT - cor0.col0 * - 31 + col0 DIV - cor0.col1 FROM tab1 AS cor0
----
1978
2474
93

skipif mysql # not compatible
query I rowsort label-435
SELECT - cor0.col0 * - 31 + col0 / - cor0.col1 FROM tab1 AS cor0
----
1978
2474
93

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

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

query I rowsort
SELECT + - cor0.col0 * col0 FROM tab0 AS cor0
----
-1225
-576
-7921

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 + + 93 col1 FROM tab1 AS cor0
----
157
173
96

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

query I rowsort
SELECT - col1 + 96 FROM tab1 AS cor0
----
70
83
86

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 78 * col0 col1 FROM tab0 AS cor0
----
1872
2730
6942

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

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

query I rowsort
SELECT + col2 * col0 + 91 * + 5 FROM tab1 AS cor0
----
4103
617
8135

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

query I rowsort
SELECT 80 + + tab0.col0 FROM tab0, tab2 AS cor0
----
9 values hashing to bf198ea70fbe4b6320632d7ed69c7027

query I rowsort
SELECT ALL col0 * col0 * ( - col1 + col0 ) FROM tab2
----
-1176
115596
386942

query I rowsort
SELECT ALL 22 AS col0 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 7dda382e7c08428abac8600fd696eb3e

query I rowsort
SELECT DISTINCT 4 * col0 FROM tab1
----
12
256
320

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

skipif mysql # not compatible
query I rowsort label-451
SELECT col2 + - col1 * + col1 * - CAST ( + col0 * col2 AS INTEGER ) AS col2 FROM tab2 cor0
----
181656
7059494
867616

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

query I rowsort
SELECT 89 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-455
SELECT DISTINCT + 78 DIV tab1.col0 AS col1 FROM tab1
----
0
1
26

skipif mysql # not compatible
query I rowsort label-455
SELECT DISTINCT + 78 / tab1.col0 AS col1 FROM tab1
----
0
1
26

query I rowsort
SELECT ALL + + 84 * + col0 AS col1 FROM tab1 AS cor0
----
252
5376
6720

query I rowsort
SELECT + 12 + ( - col0 + col1 ) FROM tab2 AS cor0
----
-50
-7
36

onlyif mysql # use DIV operator for integer division
query I rowsort label-458
SELECT ALL 98 + + ( + col1 ) DIV 76 AS col0 FROM tab2 AS cor0
----
98
98
98

skipif mysql # not compatible
query I rowsort label-458
SELECT ALL 98 + + ( + col1 ) / 76 AS col0 FROM tab2 AS cor0
----
98
98
98

query I rowsort
SELECT + col2 * + 16 + + col2 AS col0 FROM tab2 cor0
----
442
459
646

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

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

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

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-463
SELECT ALL CAST( + 8 AS SIGNED ) * col1 * - ( - col0 ) FROM tab2 AS cor0
----
10744
1736
36816

skipif mysql # not compatible
query I rowsort label-463
SELECT ALL CAST ( + 8 AS INTEGER ) * col1 * - ( - col0 ) FROM tab2 AS cor0
----
10744
1736
36816

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

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

query I rowsort
SELECT - ( 47 ) + - cor0.col1 FROM tab1 cor0
----
-57
-60
-73

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

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

query I rowsort
SELECT ALL ( 4 ) FROM tab1
----
4
4
4

query I rowsort
SELECT DISTINCT - col2 * col2 * ( + col1 * + col1 ) FROM tab1 AS cor0
----
-1557504
-1971216
-324900

query I rowsort
SELECT 14 + col0 * 77 AS col2 FROM tab0 cor0
----
1862
2709
6867

query I rowsort
SELECT DISTINCT + ( tab2.col1 ) AS col0 FROM tab2, tab0 AS cor0
----
17
31
59

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-474
SELECT + + col0 / + col0 AS col2 FROM tab2 cor0
----
1
1
1

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

skipif mysql # not compatible
query I rowsort label-475
SELECT - cor0.col1 / cor0.col2 FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( col1 ) * + 55 col1 FROM tab1 AS cor0
----
-1430
-550
-715

query I rowsort
SELECT + 29 + col2 AS col0 FROM tab1 cor0
----
125
83
86

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

query I rowsort
SELECT DISTINCT col0 + col1 * + ( - col0 ) + col2 * col2 AS col2 FROM tab0 AS cor0
----
-1286
-3359
-951

query I rowsort
SELECT DISTINCT - 67 + col2 FROM tab0 cor0
----
-34
-66
15

query I rowsort
SELECT DISTINCT + - col1 * + col2 + - 57 + + 10 AS col0 FROM tab1 AS cor0
----
-1295
-1451
-617

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

query I rowsort
SELECT ALL - - 12 * col1 AS col2 FROM tab1 AS cor0
----
120
156
312

query I rowsort
SELECT 48 AS col0 FROM tab1 AS cor0
----
48
48
48

query I rowsort
SELECT col1 * 37 + - ( cor0.col2 ) * col2 * col2 AS col0 FROM tab0 AS cor0
----
-32755
-548001
3588

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-487
SELECT + cor0.col2 * + col1 - 30 DIV cor0.col1 AS col2 FROM tab1 cor0
----
1246
1403
567

skipif mysql # not compatible
query I rowsort label-487
SELECT + cor0.col2 * + col1 - 30 / cor0.col1 AS col2 FROM tab1 cor0
----
1246
1403
567

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-489
SELECT + 95 * + col2 + + col1 DIV - cor0.col2 FROM tab1 AS cor0
----
5130
5415
9120

skipif mysql # not compatible
query I rowsort label-489
SELECT + 95 * + col2 + + col1 / - cor0.col2 FROM tab1 AS cor0
----
5130
5415
9120

query I rowsort
SELECT ( + 15 ) - - col2 * + cor0.col2 FROM tab2 AS cor0
----
1459
691
744

query I rowsort
SELECT ALL 62 AS col2 FROM tab2, tab2 cor0, tab2 AS cor1
----
27 values hashing to 4911b1417a3797d23dd8f38b6ed05c1b

query I rowsort
SELECT DISTINCT + 45 * + 26 FROM tab0, tab1 AS cor0
----
1170

query I rowsort
SELECT - + 48 * col0 - + cor0.col0 * col1 FROM tab1 AS cor0
----
-222
-3712
-4880

query I rowsort
SELECT DISTINCT col1 * cor0.col2 * - col1 - col2 AS col2 FROM tab0 cor0
----
-244101
-679124
-9410

onlyif mysql # use DIV operator for integer division
query I rowsort label-495
SELECT DISTINCT - 52 DIV col0 AS col1 FROM tab1
----
-17
0

skipif mysql # not compatible
query I rowsort label-495
SELECT DISTINCT - 52 / col0 AS col1 FROM tab1
----
-17
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-496
SELECT - 97 DIV col1 - col1 FROM tab1
----
-19
-20
-29

skipif mysql # not compatible
query I rowsort label-496
SELECT - 97 / col1 - col1 FROM tab1
----
-19
-20
-29

onlyif mysql # use DIV operator for integer division
query I rowsort label-497
SELECT DISTINCT 85 DIV col1 AS col1 FROM tab2 AS cor0
----
1
2
5

skipif mysql # not compatible
query I rowsort label-497
SELECT DISTINCT 85 / col1 AS col1 FROM tab2 AS cor0
----
1
2
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 - + cor0.col2 * 37 * col2 col2 FROM tab0 AS cor0
----
-248870
-38
-40326

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 74 + + col0 col2 FROM tab2
----
152
153
81

query I rowsort
SELECT 7 * - 53 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 36e5bce15f0d5098575122d3c9d3ef50

query I rowsort
SELECT col2 * + 42 AS col2 FROM tab2 AS cor0
----
1092
1134
1596

query I rowsort
SELECT + col1 - + col1 * 40 * - col2 AS col2 FROM tab0 AS cor0
----
113606
298571
3977

query I rowsort
SELECT ALL - col0 + - 14 * - col0 FROM tab1 AS cor0
----
1040
39
832

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-505
SELECT ALL - col1 * + 31 + ( col2 ) * CAST( + col1 AS SIGNED ) FROM tab2
----
-124
-295
119

skipif mysql # not compatible
query I rowsort label-505
SELECT ALL - col1 * + 31 + ( col2 ) * CAST ( + col1 AS INTEGER ) FROM tab2
----
-124
-295
119

query I rowsort
SELECT - col1 * - 67 - - col0 FROM tab0 AS cor0
----
5786
6186
6534

query I rowsort
SELECT + + col0 + 91 * - col0 * + col2 FROM tab1 AS cor0
----
-14739
-331904
-698800

query I rowsort
SELECT DISTINCT - col0 + 55 FROM tab0 AS cor0
----
-34
20
31

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-510
SELECT ALL - col2 + col2 DIV - col0 FROM tab1 AS cor0
----
-57
-72
-97

skipif mysql # not compatible
query I rowsort label-510
SELECT ALL - col2 + col2 / - col0 FROM tab1 AS cor0
----
-57
-72
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 49 col0 FROM tab2
----
49
49
49

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - col1 * CAST ( col2 AS REAL ) * col1 FROM tab2 cor0
----
-10982
-25947
-90506

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

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

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

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

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

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

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-521
SELECT - - ( + col0 ) + + col2 DIV col1 FROM tab1 AS cor0
----
5
69
87

skipif mysql # not compatible
query I rowsort label-521
SELECT - - ( + col0 ) + + col2 / col1 FROM tab1 AS cor0
----
5
69
87

query I rowsort
SELECT DISTINCT + + ( col2 ) * col2 + + 92 AS col1 FROM tab2 cor0
----
1536
768
821

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

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

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

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

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

query I rowsort
SELECT DISTINCT - col2 + col1 - - ( + col0 ) * - col2 * cor0.col1 FROM tab1 AS cor0
----
-36527
-4240
-99923

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

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

query I rowsort
SELECT ALL 35 * + col0 + 18 FROM tab0 AS cor0
----
1243
3133
858

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-533
SELECT + + col0 DIV - cor0.col0 + ( - col1 ) FROM tab1 AS cor0
----
-11
-14
-27

skipif mysql # not compatible
query I rowsort label-533
SELECT + + col0 / - cor0.col0 + ( - col1 ) FROM tab1 AS cor0
----
-11
-14
-27

query I rowsort
SELECT DISTINCT - + 79 - col1 * 1 FROM tab1 AS cor0
----
-105
-89
-92

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

query I rowsort
SELECT ALL + - 93 + col0 * col2 FROM tab0 cor0
----
-58
699
7205

onlyif mysql # use DIV operator for integer division
query I rowsort label-537
SELECT DISTINCT - 66 DIV - col2 + + col1 AS col2 FROM tab1 AS cor0
----
11
13
27

skipif mysql # not compatible
query I rowsort label-537
SELECT DISTINCT - 66 / - col2 + + col1 AS col2 FROM tab1 AS cor0
----
11
13
27

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 13 * + col1 + ( + col2 ) col2 FROM tab0 AS cor0
----
-1085
-1101
-1260

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-544
SELECT ALL 40 / - cor0.col0 col1 FROM tab0 AS cor0
----
-1
-1
0

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

query I rowsort
SELECT - cor0.col1 * cor1.col2 AS col1 FROM tab0, tab2 AS cor0, tab0 cor1
----
27 values hashing to 1569ce86989370cabb132935ec617c18

onlyif mysql # use DIV operator for integer division
query I rowsort label-547
SELECT ALL - 17 + col2 DIV - col0 FROM tab0 AS cor0
----
-17
-17
-18

skipif mysql # not compatible
query I rowsort label-547
SELECT ALL - 17 + col2 / - col0 FROM tab0 AS cor0
----
-17
-17
-18

query I rowsort
SELECT col1 + + 54 AS col1 FROM tab2
----
113
71
85

query I rowsort
SELECT DISTINCT + tab1.col0 * - col0 * - col2 + + col1 AS col2 FROM tab1
----
233482
512
614413

query I rowsort
SELECT ALL 97 AS col1 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to c73fa6978df8525c99d6bc792bb27123

query I rowsort
SELECT DISTINCT + col0 * - col2 * + col0 + - col1 AS col0 FROM tab0
----
-1322
-19094
-649613

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-555
SELECT CAST ( + 88 AS INTEGER ) * tab2.col1 col0 FROM tab2, tab1, tab2 cor0
----
27 values hashing to d49f2ec4cff37f52a8fd0c3ee9c42d05

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

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

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

query I rowsort
SELECT - ( + cor0.col1 ) * - col0 + + col2 * - col0 + col1 AS col2 FROM tab0 AS cor0
----
1358
3457
892

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

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

query I rowsort
SELECT DISTINCT - col0 * - col2 * + col0 AS col1 FROM tab2
----
1323
158184
237158

query I rowsort
SELECT DISTINCT + - 88 * - ( + col1 ) AS col0 FROM tab0 AS cor0
----
7568
8008
8536

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

skipif mysql # not compatible
query I rowsort label-562
SELECT ALL + ( col2 ) * - col2 * CAST ( col1 AS INTEGER ) FROM tab0 AS cor0
----
-611884
-93654
-97

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

query I rowsort
SELECT - - cor0.col1 + + 3 * - 8 FROM tab1 AS cor0
----
-11
-14
2

query I rowsort
SELECT 6 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821

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

query I rowsort
SELECT - col2 * + 99 FROM tab0 AS cor0
----
-3267
-8118
-99

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

query IIIIII rowsort
SELECT ALL * FROM tab1, tab0 AS cor0 WHERE NOT NULL <= NULL
----

query I rowsort
SELECT + 57 * + cor0.col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 01570dd51dae9e8c5c1ab056a62f9bd0

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

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

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

query I rowsort
SELECT col1 * - col1 - - ( col1 * col0 ) AS col2 FROM tab0 AS cor0
----
-182
-5332
-6014

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

query I rowsort
SELECT ALL col1 * - col0 * + col2 + + col1 + + col2 AS col2 FROM tab0
----
-3297
-663945
-67993

query I rowsort
SELECT + - col0 * cor0.col1 - 40 AS col0 FROM tab1 AS cor0
----
-1080
-118
-680

query I rowsort
SELECT - + col1 * - col2 + - 52 FROM tab0 AS cor0
----
2786
45
7410

query I rowsort
SELECT ALL col0 * + col1 + - 91 FROM tab1
----
-13
549
949

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

query I rowsort
SELECT ( + col1 + + 31 * + col2 ) FROM tab1
----
1700
1777
2989

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

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

query I rowsort
SELECT + 63 + tab0.col2 * + col2 * col2 + col2 * - 5 AS col0 FROM tab0
----
35835
551021
59

query I rowsort
SELECT - 34 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 5b88331e40da4796cc4826c442aa45f7

query I rowsort
SELECT 41 * - col1 AS col0 FROM tab1
----
-1066
-410
-533

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - col2 - - CAST ( 43 AS REAL ) AS col2 FROM tab0 AS cor0
----
-39
10
42

query I rowsort
SELECT col2 * col2 - 13 * col0 AS col0 FROM tab2 AS cor0
----
-338
417
638

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-588
SELECT - col0 * - CAST( 7 AS SIGNED ) + col0 + - 71 AS col1 FROM tab0 AS cor0
----
121
209
641

skipif mysql # not compatible
query I rowsort label-588
SELECT - col0 * - CAST ( 7 AS INTEGER ) + col0 + - 71 AS col1 FROM tab0 AS cor0
----
121
209
641

query I rowsort
SELECT - - col0 * - 64 - col0 * - col0 AS col1 FROM tab0 AS cor0
----
-1015
-960
2225

query I rowsort
SELECT ALL col0 * - 2 * cor0.col1 FROM tab0 cor0
----
-16198
-4128
-6790

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

query I rowsort
SELECT + + ( + 56 ) * - col1 + + col0 + col0 * - col2 AS col0 FROM tab2 AS cor0
----
-1918
-3875
-5254

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

query I rowsort
SELECT ALL - col0 * + col0 + + col0 * col2 AS col1 FROM tab1
----
-448
1280
153

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-597
SELECT + col1 DIV col0 + - col0 FROM tab0
----
-21
-33
-88

skipif mysql # not compatible
query I rowsort label-597
SELECT + col1 / col0 + - col0 FROM tab0
----
-21
-33
-88

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-599
SELECT ALL + col0 + + col1 * + col2 DIV + col2 AS col1 FROM tab0
----
110
132
180

skipif mysql # not compatible
query I rowsort label-599
SELECT ALL + col0 + + col1 * + col2 / + col2 AS col1 FROM tab0
----
110
132
180

query I rowsort
SELECT DISTINCT + col1 + col2 * - ( col0 + + col2 ) AS col2 FROM tab0 AS cor0
----
-13931
-1795
61

query I rowsort
SELECT ALL 99 * + col0 FROM tab0 AS cor0
----
2376
3465
8811

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

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

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

query I rowsort
SELECT DISTINCT cor0.col2 + - col0 * 43 AS col2 FROM tab2 AS cor0
----
-274
-3328
-3359

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-606
SELECT CAST( + col2 AS SIGNED ) AS col0 FROM tab2
----
26
27
38

skipif mysql # not compatible
query I rowsort label-606
SELECT CAST ( + col2 AS INTEGER ) AS col0 FROM tab2
----
26
27
38

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

query I rowsort
SELECT + col2 * - col1 - + 96 FROM tab0
----
-193
-2934
-7558

query I rowsort
SELECT DISTINCT col2 - + col2 * - 45 AS col0 FROM tab0
----
1518
3772
46

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

query I rowsort
SELECT ALL + - ( 15 ) * col1 + 37 FROM tab2 AS cor0
----
-218
-428
-848

query I rowsort
SELECT 39 * + 36 FROM tab1 AS cor0
----
1404
1404
1404

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col0 ) + col2 * col2 col2 FROM tab2 AS cor0
----
1523
736
754

query I rowsort
SELECT DISTINCT - - col0 * 53 AS col2 FROM tab0 AS cor0
----
1272
1855
4717

query I rowsort
SELECT DISTINCT - 33 * 60 * - col1 FROM tab2 AS cor0
----
116820
33660
61380

query I rowsort
SELECT col2 - + ( - col1 ) FROM tab1
----
109
67
80

query I rowsort
SELECT ALL + col0 + + 43 * - 55 AS col0 FROM tab2
----
-2286
-2287
-2358

query I rowsort
SELECT DISTINCT col0 + + 14 + + 96 AS col1 FROM tab2
----
117
188
189

query I rowsort
SELECT 56 + cor0.col2 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to fc5e386c6d3c66d084ac3062ae23a3d9

query I rowsort
SELECT ALL ( 96 ) * + col1 AS col1 FROM tab1
----
1248
2496
960

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

skipif mysql # not compatible
query I rowsort label-622
SELECT cor0.col1 / + 65 AS col1 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT ALL + col1 + - cor0.col1 * + cor0.col0 * + col1 FROM tab2 AS cor0
----
-22814
-271459
-6696

query I rowsort
SELECT - 99 AS col0 FROM tab0 cor0
----
-99
-99
-99

query I rowsort
SELECT ALL - ( col2 ) + + cor0.col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - + 30 FROM tab2 AS cor0
----
-30
-30
-30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 + + col2 col0 FROM tab0 AS cor0
----
-34
-7
9

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

query I rowsort
SELECT DISTINCT - 75 * col0 FROM tab2 cor0
----
-525
-5850
-5925

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

query I rowsort
SELECT ALL - - 58 AS col0 FROM tab2 AS cor0
----
58
58
58

onlyif mysql # use DIV operator for integer division
query I rowsort label-632
SELECT ALL 7 * col2 DIV + col0 FROM tab0 AS cor0
----
0
6
9

skipif mysql # not compatible
query I rowsort label-632
SELECT ALL 7 * col2 / + col0 FROM tab0 AS cor0
----
0
6
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col1 ) * col1 col2 FROM tab2 AS cor0
----
-289
-3481
-961

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

skipif mysql # not compatible
query I rowsort label-634
SELECT ALL + - CAST ( col2 AS INTEGER ) FROM tab2 AS cor0
----
-26
-27
-38

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

query I rowsort
SELECT DISTINCT ( - 30 ) FROM tab2 AS cor0
----
-30

query I rowsort
SELECT DISTINCT - 14 + - 2 + col2 AS col2 FROM tab1 AS cor0
----
38
41
80

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

skipif mysql # not compatible
query I rowsort label-638
SELECT ALL + CAST ( + ( + cor0.col2 ) AS INTEGER ) * + col2 FROM tab0 AS cor0
----
1
1089
6724

onlyif mysql # use DIV operator for integer division
query I rowsort label-639
SELECT ALL 42 * col1 - - col0 * - tab1.col0 DIV - col0 AS col2 FROM tab1
----
1095
484
626

skipif mysql # not compatible
query I rowsort label-639
SELECT ALL 42 * col1 - - col0 * - tab1.col0 / - col0 AS col2 FROM tab1
----
1095
484
626

query I rowsort
SELECT DISTINCT col2 + - ( 78 ) AS col2 FROM tab0 AS cor0
----
-45
-77
4

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

query I rowsort
SELECT DISTINCT col2 * - 8 * col0 AS col1 FROM tab2 AS cor0
----
-1512
-16224
-24016

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

query I rowsort
SELECT col1 + ( - 85 ) * + col2 FROM tab2 AS cor0
----
-2151
-2264
-3213

onlyif mysql # use DIV operator for integer division
query I rowsort label-645
SELECT ALL + col2 - + ( cor0.col2 ) DIV - col1 FROM tab1 AS cor0
----
103
56
62

skipif mysql # not compatible
query I rowsort label-645
SELECT ALL + col2 - + ( cor0.col2 ) / - col1 FROM tab1 AS cor0
----
103
56
62

query I rowsort
SELECT ALL - - 28 + - 2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584

query I rowsort
SELECT + cor0.col0 * 32 + + col2 FROM tab0 AS cor0
----
1121
2930
801

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

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

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

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

query I rowsort
SELECT ALL - col0 * 11 AS col1 FROM tab1 AS cor0
----
-33
-704
-880

query I rowsort
SELECT - + col2 * + 24 FROM tab0 AS cor0
----
-1968
-24
-792

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

query I rowsort
SELECT col1 + 80 + + 61 AS col1 FROM tab1 AS cor0
----
151
154
167

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * + col1 - col1 col1 FROM tab1 AS cor0
----
-110
-182
-702

query I rowsort
SELECT ALL + - col1 * col2 - 40 FROM tab0 AS cor0
----
-137
-2878
-7502

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

skipif mysql # not compatible
query I rowsort label-657
SELECT ALL - col0 * + CAST ( - col1 AS INTEGER ) + col1 FROM tab1 AS cor0
----
104
1053
650

onlyif mysql # use DIV operator for integer division
query I rowsort label-658
SELECT ALL - + cor0.col1 * 92 + - 76 + + col1 DIV col0 FROM tab0 cor0
----
-7985
-8447
-8998

skipif mysql # not compatible
query I rowsort label-658
SELECT ALL - + cor0.col1 * 92 + - 76 + + col1 / col0 FROM tab0 cor0
----
-7985
-8447
-8998

query I rowsort
SELECT ALL + + col1 - 79 * 73 FROM tab0 AS cor0
----
-5670
-5676
-5681

query I rowsort
SELECT + col1 * - 34 AS col1 FROM tab1 AS cor0
----
-340
-442
-884

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

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

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

query I rowsort
SELECT col2 + 78 * + 22 AS col0 FROM tab2
----
1742
1743
1754

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

query I rowsort
SELECT ALL tab0.col0 * ( ( tab0.col0 ) ) + + col2 FROM tab0
----
1226
609
8003

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

query I rowsort
SELECT DISTINCT 88 * - col2 FROM tab0 cor0
----
-2904
-7216
-88

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

query I rowsort
SELECT ALL + + 46 FROM tab0, tab2 cor0
----
9 values hashing to 31818c9d4d325eb248735c97cb1dce39

query I rowsort
SELECT ALL col2 + - col1 * col2 * col1 FROM tab1 AS cor0
----
-16128
-36450
-5643

query I rowsort
SELECT DISTINCT + - 91 * - col0 * + col1 + 96 AS col0 FROM tab0 cor0
----
187920
309041
737105

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

query I rowsort
SELECT + 63 + col1 AS col1 FROM tab0 AS cor0
----
149
154
160

query I rowsort
SELECT ALL - 75 * + col0 AS col2 FROM tab0 AS cor0
----
-1800
-2625
-6675

query I rowsort
SELECT + col0 + col2 * 38 FROM tab1
----
2055
2230
3728

query I rowsort
SELECT ALL col2 * col0 + 41 AS col0 FROM tab2
----
2069
230
3043

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

query I rowsort
SELECT DISTINCT 49 - col0 * + ( - col2 + col0 * - tab0.col2 ) FROM tab0
----
1309
19849
656869

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

query I rowsort
SELECT ALL 20 * col1 + + 81 FROM tab0
----
1801
1901
2021

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

query I rowsort
SELECT DISTINCT + 3 + - col2 FROM tab0
----
-30
-79
2

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

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

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

query I rowsort
SELECT ALL - 10 + + col0 * 11 + col2 AS col0 FROM tab2
----
874
897
94

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

query I rowsort
SELECT DISTINCT 55 * col0 AS col0 FROM tab2
----
385
4290
4345

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

skipif mysql # not compatible
query I rowsort label-689
SELECT ALL - ( - col2 * - CAST ( NULL AS REAL ) ) AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 * col2 + ( 88 * col1 ) + cor0.col0 FROM tab0 cor0
----
4754
635
8474

query I rowsort
SELECT - col1 * col1 * + 30 + + cor0.col0 * cor0.col1 + - col2 FROM tab0 AS cor0
----
-219849
-240413
-278876

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

query I rowsort
SELECT ALL - col1 * + 38 AS col2 FROM tab1
----
-380
-494
-988

query I rowsort
SELECT + cor1.col0 AS col0 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

query I rowsort
SELECT + - col2 * ( - col2 + - col1 ) FROM tab0 AS cor0
----
14186
3927
98

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

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

skipif mysql # not compatible
query I rowsort label-697
SELECT ALL + - col2 + CAST ( ( col2 ) AS INTEGER ) * col1 FROM tab0 AS cor0
----
2805
7380
96

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

query I rowsort
SELECT DISTINCT + col1 * col0 + 1 FROM tab1 AS cor0
----
1041
641
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-700
SELECT + - ( + ( cor0.col0 ) ) DIV cor0.col1 + 3 + col1 AS col0 FROM tab2 AS cor0
----
16
34
61

skipif mysql # not compatible
query I rowsort label-700
SELECT + - ( + ( cor0.col0 ) ) / cor0.col1 + 3 + col1 AS col0 FROM tab2 AS cor0
----
16
34
61

query I rowsort
SELECT - 28 * - 78 FROM tab1 AS cor0
----
2184
2184
2184

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

skipif mysql # not compatible
query I rowsort label-702
SELECT - col0 - - 0 / + col1 AS col1 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT ALL ( - 29 ) + col2 - + col1 FROM tab1 AS cor0
----
-1
18
54

query I rowsort
SELECT 89 + + cor0.col1 * col0 FROM tab1 AS cor0
----
1129
167
729

query I rowsort
SELECT - 53 * col1 + - col2 AS col0 FROM tab2 AS cor0
----
-1670
-3153
-939

query I rowsort
SELECT ALL 96 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303

query I rowsort
SELECT col2 * col2 - col0 * + col1 * + col2 AS col0 FROM tab1 cor0
----
-1296
-33231
-90624

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-709
SELECT - ( col0 ) DIV - col2 + + 28 DIV 3 FROM tab0 AS cor0
----
10
44
9

skipif mysql # not compatible
query I rowsort label-709
SELECT - ( col0 ) / - col2 + + 28 / 3 FROM tab0 AS cor0
----
10
44
9

query I rowsort
SELECT + cor0.col1 * col0 - cor0.col0 * - 93 AS col0 FROM tab2 AS cor0
----
11856
868
8690

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

query I rowsort
SELECT - 87 - ( + tab1.col1 ) * + tab1.col0 * ( + tab1.col2 ) AS col2 FROM tab1
----
-36567
-4299
-99927

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 DISTINCT + ( + 49 ) * + col1 FROM tab2 cor0
----
1519
2891
833

query I rowsort
SELECT 66 * + ( - col2 ) FROM tab1 AS cor0
----
-3564
-3762
-6336

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

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

query I rowsort
SELECT ALL 46 + col1 + + col0 AS col1 FROM tab2 AS cor0
----
142
183
84

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-722
SELECT DISTINCT + cor0.col1 * col1 DIV 64 AS col1 FROM tab1 AS cor0
----
1
10
2

skipif mysql # not compatible
query I rowsort label-722
SELECT DISTINCT + cor0.col1 * col1 / 64 AS col1 FROM tab1 AS cor0
----
1
10
2

query I rowsort
SELECT - 5 * - col0 - col2 FROM tab1 cor0
----
-39
263
304

onlyif mysql # use DIV operator for integer division
query I rowsort label-724
SELECT ALL - - ( - col1 ) + ( col0 ) DIV - col0 AS col0 FROM tab1 AS cor0
----
-11
-14
-27

skipif mysql # not compatible
query I rowsort label-724
SELECT ALL - - ( - col1 ) + ( col0 ) / - col0 AS col0 FROM tab1 AS cor0
----
-11
-14
-27

query I rowsort
SELECT DISTINCT - 98 * 16 FROM tab1
----
-1568

onlyif mysql # use DIV operator for integer division
query I rowsort label-726
SELECT DISTINCT 15 - - col2 DIV col0 AS col2 FROM tab2
----
15
18

skipif mysql # not compatible
query I rowsort label-726
SELECT DISTINCT 15 - - col2 / col0 AS col2 FROM tab2
----
15
18

query I rowsort
SELECT + col2 * col1 * tab0.col1 - + ( 39 + col0 ) AS col2 FROM tab0
----
244005
678914
9335

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

skipif mysql # not compatible
query I rowsort label-728
SELECT CAST ( NULL AS INTEGER ) / - 92 AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-729
SELECT - 49 DIV + 14 FROM tab1
----
-3
-3
-3

skipif mysql # not compatible
query I rowsort label-729
SELECT - 49 / + 14 FROM tab1
----
-3
-3
-3

query I rowsort
SELECT 36 * - tab0.col2 AS col0 FROM tab0
----
-1188
-2952
-36

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

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

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

skipif mysql # not compatible
query I rowsort label-733
SELECT ALL cor0.col1 * CAST ( col2 AS INTEGER ) + col0 AS col0 FROM tab2 AS cor0
----
1612
725
844

query I rowsort
SELECT col1 * col2 * 65 FROM tab0 AS cor0
----
184470
485030
6305

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-736
SELECT DISTINCT col1 / - col1 col2 FROM tab0
----
-1

query I rowsort
SELECT ALL col0 + - 35 * col1 AS col0 FROM tab0 cor0
----
-2986
-3096
-3360

query I rowsort
SELECT - + col1 * 57 AS col2 FROM tab2 AS cor0
----
-1767
-3363
-969

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

query I rowsort
SELECT DISTINCT ( + cor0.col1 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
10
13
26

onlyif mysql # use DIV operator for integer division
query I rowsort label-741
SELECT - cor0.col0 + ( col0 ) * cor0.col0 DIV + col2 AS col2 FROM tab0 AS cor0
----
-7
1190
7

skipif mysql # not compatible
query I rowsort label-741
SELECT - cor0.col0 + ( col0 ) * cor0.col0 / + col2 AS col2 FROM tab0 AS cor0
----
-7
1190
7

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

query I rowsort
SELECT - 28 FROM tab2, tab2 AS cor0
----
9 values hashing to c3e7fa3d059fc708f03c60e9cef0c115

query I rowsort
SELECT ALL 97 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c

query I rowsort
SELECT ALL + - col0 + + ( 3 ) FROM tab1 AS cor0
----
-61
-77
0

query I rowsort
SELECT DISTINCT - + col2 * + col2 - col2 AS col1 FROM tab2 cor0
----
-1482
-702
-756

query I rowsort
SELECT - cor0.col1 * 17 + - 31 AS col0 FROM tab1 AS cor0
----
-201
-252
-473

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

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

query I rowsort
SELECT col0 * 64 AS col2 FROM tab2
----
448
4992
5056

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

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

query I rowsort
SELECT DISTINCT + col2 + + 56 FROM tab1 AS cor0
----
110
113
152

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-754
SELECT - col1 DIV + 34 - + 34 * - col1 col2 FROM tab1 AS cor0
----
340
442
884

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-754
SELECT - col1 / + 34 - + 34 * - col1 col2 FROM tab1 AS cor0
----
340
442
884

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

query I rowsort
SELECT + + col2 * - col0 + col1 * 74 * col2 FROM tab2 AS cor0
----
111488
44802
61749

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - 87 * col1 col1 FROM tab0
----
-643452
-720447
-818583

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-762
SELECT DISTINCT col2 - col2 DIV - 57 FROM tab0 AS cor0
----
1
33
83

skipif mysql # not compatible
query I rowsort label-762
SELECT DISTINCT col2 - col2 / - 57 FROM tab0 AS cor0
----
1
33
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-763
SELECT + cor0.col0 DIV + col0 - + 14 FROM tab1 AS cor0
----
-13
-13
-13

skipif mysql # not compatible
query I rowsort label-763
SELECT + cor0.col0 / + col0 - + 14 FROM tab1 AS cor0
----
-13
-13
-13

onlyif mysql # use DIV operator for integer division
query I rowsort label-764
SELECT ALL + col2 DIV col1 + 81 FROM tab0 cor0
----
81
81
81

skipif mysql # not compatible
query I rowsort label-764
SELECT ALL + col2 / col1 + 81 FROM tab0 cor0
----
81
81
81

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

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

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

query I rowsort
SELECT - col1 * + col1 + ( + 80 ) * col0 FROM tab1 AS cor0
----
-436
5020
6231

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

query I rowsort
SELECT ALL - + 82 AS col2 FROM tab1 AS cor0
----
-82
-82
-82

query I rowsort
SELECT tab0.col1 + - col0 * col1 FROM tab0
----
-1978
-3298
-8008

query I rowsort
SELECT - col1 * 21 * - col0 + - col2 * col0 FROM tab1
----
14160
1476
9792

onlyif mysql # use DIV operator for integer division
query I rowsort label-772
SELECT DISTINCT CAST( col1 AS SIGNED ) DIV col0 AS col2 FROM tab1
----
0
8

skipif mysql # not compatible
query I rowsort label-772
SELECT DISTINCT CAST ( col1 AS INTEGER ) / col0 AS col2 FROM tab1
----
0
8

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-773
SELECT - CAST( + col0 AS SIGNED ) FROM tab0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-773
SELECT - CAST ( + col0 AS INTEGER ) FROM tab0
----
-24
-35
-89

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

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

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

query I rowsort
SELECT ALL col2 * - col0 + ( + 24 ) * col2 * col0 FROM tab1
----
176640
3726
83904

query I rowsort
SELECT 7 * col2 - - col1 AS col1 FROM tab0 AS cor0
----
104
317
665

query I rowsort
SELECT - + cor0.col0 * col2 * 57 FROM tab1 AS cor0
----
-207936
-437760
-9234

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

query I rowsort
SELECT ALL - 78 + - col1 * 25 * - ( col2 ) AS col0 FROM tab1 cor0
----
14172
31122
35022

query I rowsort
SELECT + 23 AS col2 FROM tab2
----
23
23
23

query I rowsort
SELECT DISTINCT + 20 * - col1 * + tab1.col0 + - col2 * col0 FROM tab1
----
-16448
-1722
-28480

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

query I rowsort
SELECT DISTINCT - col1 * col1 + 38 AS col1 FROM tab1
----
-131
-62
-638

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + col2 col1 FROM tab0
----
-1
-1089
-6724

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

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

query I rowsort
SELECT col2 * - 88 - col0 * - col0 FROM tab1 AS cor0
----
-2048
-4743
-920

query I rowsort
SELECT - 91 * col1 FROM tab0
----
-7826
-8281
-8827

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-789
SELECT ALL + 25 * col1 + - CAST( + col2 AS SIGNED ) AS col1 FROM tab2
----
1449
387
748

skipif mysql # not compatible
query I rowsort label-789
SELECT ALL + 25 * col1 + - CAST ( + col2 AS INTEGER ) AS col1 FROM tab2
----
1449
387
748

query I rowsort
SELECT DISTINCT col2 + 10 * col0 FROM tab0 AS cor0
----
273
351
972

query I rowsort
SELECT + cor0.col1 - 25 AS col2 FROM tab0 AS cor0
----
61
66
72

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-793
SELECT + col0 * 76 + col1 DIV col0 FROM tab0 AS cor0
----
1827
2662
6765

skipif mysql # not compatible
query I rowsort label-793
SELECT + col0 * 76 + col1 / col0 FROM tab0 AS cor0
----
1827
2662
6765

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

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

query I rowsort
SELECT - cor0.col0 * 84 AS col2 FROM tab0 AS cor0
----
-2016
-2940
-7476

query I rowsort
SELECT ALL ( 52 ) * col1 * col0 + cor0.col0 AS col2 FROM tab2 AS cor0
----
11291
239382
69915

query I rowsort
SELECT ALL - 0 + - 80 * + col0 * 45 FROM tab2 cor0
----
-25200
-280800
-284400

query I rowsort
SELECT ALL - + col1 + - 74 FROM tab0 AS cor0
----
-160
-165
-171

query I rowsort
SELECT DISTINCT + 57 * - col1 + col0 - + ( - col1 ) AS col0 FROM tab1 cor0
----
-1453
-496
-648

query I rowsort
SELECT 59 + col0 AS col0 FROM tab2 AS cor0
----
137
138
66

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

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

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

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

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

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

query I rowsort
SELECT + col0 + 17 FROM tab1 AS cor0
----
20
81
97

query I rowsort
SELECT - 86 * + col0 + - cor0.col0 FROM tab1 AS cor0
----
-261
-5568
-6960

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

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

query I rowsort
SELECT ALL + col0 * - col0 * - 38 AS col2 FROM tab0
----
21888
300998
46550

query I rowsort
SELECT ( 84 ) * + col0 FROM tab2 AS cor0
----
588
6552
6636

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

query I rowsort
SELECT ALL - 87 * col1 * cor0.col0 + ( + 6 ) AS col1 FROM tab2 AS cor0
----
-116835
-18873
-400368

query I rowsort
SELECT + 8 AS col2 FROM tab1 AS cor0
----
8
8
8

query I rowsort
SELECT DISTINCT 3 * col1 - cor0.col2 FROM tab2 AS cor0
----
13
151
66

query I rowsort
SELECT ALL - + ( - cor0.col2 ) AS col2 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT ALL + cor0.col2 * + col1 * col2 - + cor0.col1 AS col0 FROM tab1 cor0
----
119795
32480
75790

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

query I rowsort
SELECT + + cor1.col2 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 - - 40 * col0 col1 FROM tab0 cor0
----
1399
3478
927

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * 82 col0 FROM tab2 AS cor0
----
1394
2542
4838

query I rowsort
SELECT - col2 * 64 FROM tab0 AS cor0
----
-2112
-5248
-64

query I rowsort
SELECT + - col0 * + ( 89 ) FROM tab1 AS cor0
----
-267
-5696
-7120

query I rowsort
SELECT cor0.col0 * + 90 AS col1 FROM tab1 AS cor0
----
270
5760
7200

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-828
SELECT DISTINCT + tab1.col2 * - CAST( 18 AS SIGNED ) * col0 AS col0 FROM tab1
----
-138240
-2916
-65664

skipif mysql # not compatible
query I rowsort label-828
SELECT DISTINCT + tab1.col2 * - CAST ( 18 AS INTEGER ) * col0 AS col0 FROM tab1
----
-138240
-2916
-65664

query I rowsort
SELECT DISTINCT tab1.col0 * 80 AS col2 FROM tab1
----
240
5120
6400

query I rowsort
SELECT ALL + 6 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab2 AS cor2, tab2 AS cor3
----
243 values hashing to b406364371011938300d901d81088d18

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

skipif mysql # not compatible
query I rowsort label-831
SELECT col2 / ( 43 ) + + col1 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT + 31 FROM tab0, tab1 AS cor0
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540

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

query I rowsort
SELECT DISTINCT - - col2 + ( col0 ) FROM tab1 cor0
----
121
176
57

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-835
SELECT - CAST( col2 * - col2 AS SIGNED ) AS col1 FROM tab0
----
1
1089
6724

skipif mysql # not compatible
query I rowsort label-835
SELECT - CAST ( col2 * - col2 AS INTEGER ) AS col1 FROM tab0
----
1
1089
6724

onlyif mysql # use DIV operator for integer division
query I rowsort label-836
SELECT col0 DIV col1 + col2 FROM tab1
----
102
54
63

skipif mysql # not compatible
query I rowsort label-836
SELECT col0 / col1 + col2 FROM tab1
----
102
54
63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - 90 col1 FROM tab2 cor0
----
-630
-7020
-7110

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 47 + col0 col0 FROM tab1 cor0
----
111
127
50

query I rowsort
SELECT - cor0.col0 * col1 + + 11 FROM tab2 AS cor0
----
-1332
-206
-4591

onlyif mysql # use DIV operator for integer division
query I rowsort label-841
SELECT DISTINCT col0 DIV + col1 - - col2 * col1 FROM tab2 AS cor0
----
1535
650
837

skipif mysql # not compatible
query I rowsort label-841
SELECT DISTINCT col0 / + col1 - - col2 * col1 FROM tab2 AS cor0
----
1535
650
837

query I rowsort
SELECT + cor0.col1 * - cor0.col0 + - 72 * + col1 FROM tab1 AS cor0
----
-1360
-1950
-1976

query I rowsort
SELECT + - 35 - - col2 * ( - cor0.col2 ) * cor0.col2 FROM tab0 AS cor0
----
-35972
-36
-551403

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

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

query I rowsort
SELECT DISTINCT - col0 * 39 * col1 AS col2 FROM tab0 AS cor0
----
-132405
-315861
-80496

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

query I rowsort
SELECT ALL - col2 * cor0.col0 * + ( - col2 ) + col2 * cor0.col0 * col0 AS col2 FROM tab2 cor0
----
210912
351234
6426

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

skipif mysql # not compatible
query I rowsort label-848
SELECT col1 / CAST ( NULL AS REAL ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT DISTINCT - + col2 + - col1 * - 9 FROM tab2 AS cor0
----
115
252
505

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

query I rowsort
SELECT ALL + 45 AS col1 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 14cec871edc37b5056cda01c8331fdca

query I rowsort
SELECT ALL + cor0.col2 + 90 AS col2 FROM tab0 AS cor0
----
123
172
91

onlyif mysql # use DIV operator for integer division
query I rowsort label-854
SELECT + - col0 DIV col1 + - ( col1 * col1 ) AS col1 FROM tab0 AS cor0
----
-7396
-8281
-9409

skipif mysql # not compatible
query I rowsort label-854
SELECT + - col0 / col1 + - ( col1 * col1 ) AS col1 FROM tab0 AS cor0
----
-7396
-8281
-9409

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

query I rowsort
SELECT ALL - 37 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to 395d44ccbce08828bc493e93ec3d9207

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

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

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

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

query I rowsort
SELECT 39 * - col0 * - col1 + - col0 FROM tab1 AS cor0
----
24896
3039
40480

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-862
SELECT DISTINCT - + col2 + col2 DIV col0 FROM tab1 AS cor0
----
-36
-57
-95

skipif mysql # not compatible
query I rowsort label-862
SELECT DISTINCT - + col2 + col2 / col0 FROM tab1 AS cor0
----
-36
-57
-95

query I rowsort
SELECT ALL - 90 + - col1 FROM tab1 AS cor0
----
-100
-103
-116

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

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

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

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

skipif mysql # not compatible
query I rowsort label-866
SELECT DISTINCT - + cor0.col0 / - col0 + - col1 FROM tab1 AS cor0
----
-12
-25
-9

query I rowsort
SELECT ALL + + 88 + col2 AS col1 FROM tab0 AS cor0
----
121
170
89

query I rowsort
SELECT 3 + col0 AS col0 FROM tab2 AS cor0
----
10
81
82

query I rowsort
SELECT + 19 - - col1 AS col1 FROM tab1 AS cor0
----
29
32
45

query I rowsort
SELECT DISTINCT - col2 + + cor0.col1 + + 5 * col0 FROM tab2 cor0
----
374
39
423

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

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

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

query I rowsort
SELECT ALL + col2 * - col1 + 88 AS col2 FROM tab0 AS cor0
----
-2750
-7374
-9

onlyif mysql # use DIV operator for integer division
query I rowsort label-874
SELECT ALL col0 * col0 - 3 DIV - col2 AS col2 FROM tab0 AS cor0
----
1228
576
7921

skipif mysql # not compatible
query I rowsort label-874
SELECT ALL col0 * col0 - 3 / - col2 AS col2 FROM tab0 AS cor0
----
1228
576
7921

query I rowsort
SELECT ALL + cor0.col0 * + col2 + - 46 * col0 + + cor0.col2 AS col2 FROM tab0 cor0
----
-1574
-279
3286

onlyif mysql # use DIV operator for integer division
query I rowsort label-876
SELECT 95 DIV col0 AS col2 FROM tab2 AS cor0
----
1
1
13

skipif mysql # not compatible
query I rowsort label-876
SELECT 95 / col0 AS col2 FROM tab2 AS cor0
----
1
1
13

query I rowsort
SELECT + 77 + col2 AS col0 FROM tab2 AS cor0
----
103
104
115

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

skipif mysql # not compatible
query I rowsort label-878
SELECT DISTINCT - ( col2 ) + + 1 / - 16 AS col0 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT DISTINCT - ( - 34 * col2 ) - - col0 * - col0 AS col0 FROM tab0
----
-1191
-5133
546

query I rowsort
SELECT ALL col1 * + col0 * - col1 + ( + ( - col2 ) ) FROM tab1
----
-13616
-2082
-6457

query I rowsort
SELECT 72 * col2 AS col2 FROM tab2
----
1872
1944
2736

query I rowsort
SELECT col1 * col1 + 40 FROM tab1 AS cor0
----
140
209
716

query I rowsort
SELECT 38 - + tab2.col1 FROM tab2
----
-21
21
7

query I rowsort
SELECT DISTINCT col2 * cor0.col0 * - cor0.col0 + - col1 + 70 AS col2 FROM tab1 AS cor0
----
-233412
-442
-614343

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + + 1 col2 FROM tab0 AS cor0
----
2
34
83

query I rowsort
SELECT ALL col0 - + 48 FROM tab0 AS cor0
----
-13
-24
41

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

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

query I rowsort
SELECT ALL col0 * + 8 + - col0 * col2 FROM tab1 AS cor0
----
-138
-3136
-7040

query I rowsort
SELECT DISTINCT col1 * - 53 + - col1 * col2 + col0 * - 95 AS col1 FROM tab0 AS cor0
----
-20740
-8563
-9676

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

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

skipif mysql # not compatible
query I rowsort label-891
SELECT ALL + + col0 + - CAST ( col2 AS INTEGER ) + col0 AS col1 FROM tab0 AS cor0
----
15
69
96

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

query I rowsort
SELECT + 7 FROM tab2, tab2 AS cor0
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76

query I rowsort
SELECT ALL - - ( - col2 ) AS col1 FROM tab1 AS cor0
----
-54
-57
-96

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

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

query I rowsort
SELECT ALL - + ( 29 ) + col2 FROM tab1 AS cor0
----
25
28
67

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

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

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

skipif mysql # not compatible
query I rowsort
SELECT - CAST ( col0 AS REAL ) FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT - col2 + 58 FROM tab0
----
-24
25
57

query I rowsort
SELECT + col2 * col0 + 6 AS col1 FROM tab2
----
195
2034
3008

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

skipif mysql # not compatible
query I rowsort label-904
SELECT + col2 * + CAST ( col0 AS INTEGER ) + + col1 AS col0 FROM tab2
----
2087
220
3019

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * tab0.col2 * col2 + + 87 * col1 * col1 col0 FROM tab0
----
1332331
737106
818680

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

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

query I rowsort
SELECT ALL - 47 FROM tab2 cor0
----
-47
-47
-47

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

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

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

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

skipif mysql # not compatible
query I rowsort label-911
SELECT ALL + col1 * col1 / - col1 AS col0 FROM tab2 cor0
----
-17
-31
-59

query I rowsort
SELECT DISTINCT - - col1 * col1 + - cor0.col0 AS col2 FROM tab0 AS cor0
----
7372
8192
9374

query I rowsort
SELECT - 32 * - col2 AS col0 FROM tab2 AS cor0
----
1216
832
864

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

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

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

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

query I rowsort
SELECT - 23 AS col0 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 9bd721f99d79dce21b1de2860fd51ed5

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

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

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

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

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

query I rowsort
SELECT - 43 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ab0c314d2b589ccedb9a875beeb1f86a

query I rowsort
SELECT - col2 * - 90 AS col0 FROM tab2 AS cor0
----
2340
2430
3420

query I rowsort
SELECT - 96 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c89b545346f99713888a7934e4caa539

query I rowsort
SELECT ( 78 ) + - col0 AS col0 FROM tab1 AS cor0
----
-2
14
75

query I rowsort
SELECT + - col2 + 34 * col1 AS col0 FROM tab0 AS cor0
----
2891
3012
3297

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-928
SELECT + ( col0 ) / + col0 + cor0.col2 col0 FROM tab1 AS cor0
----
55
58
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-929
SELECT ( + 87 ) DIV cor0.col0 + ( + cor0.col2 ) AS col1 FROM tab1 AS cor0
----
58
83
97

skipif mysql # not compatible
query I rowsort label-929
SELECT ( + 87 ) / cor0.col0 + ( + cor0.col2 ) AS col1 FROM tab1 AS cor0
----
58
83
97

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

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

query I rowsort
SELECT DISTINCT + 21 FROM tab0
----
21

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

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

query I rowsort
SELECT 42 * col2 AS col1 FROM tab2
----
1092
1134
1596

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

query I rowsort
SELECT ALL - - 74 * - col2 FROM tab2 cor0
----
-1924
-1998
-2812

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

query I rowsort
SELECT col0 * 30 * - col1 AS col2 FROM tab1
----
-19200
-2340
-31200

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

query I rowsort
SELECT - 91 AS col2 FROM tab1, tab1 cor0, tab1 cor1, tab0 AS cor2
----
81 values hashing to ef93c6bfa06f5a2259971541054317e0

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-942
SELECT col2 DIV col0 + CAST( 15 AS SIGNED ) * + col0 + cor0.col0 DIV 80 FROM tab0 cor0
----
1336
361
525

skipif mysql # not compatible
query I rowsort label-942
SELECT col2 / col0 + CAST ( 15 AS INTEGER ) * + col0 + cor0.col0 / 80 FROM tab0 cor0
----
1336
361
525

query I rowsort
SELECT col1 * + col1 - + 17 AS col0 FROM tab1
----
152
659
83

query I rowsort
SELECT ALL 69 + tab1.col1 * col1 FROM tab1
----
169
238
745

query I rowsort
SELECT DISTINCT 2 + col0 * - ( col0 + - col0 * cor0.col2 ) FROM tab0 AS cor0
----
18434
2
641603

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

skipif mysql # not compatible
query I rowsort label-946
SELECT + col0 * cor0.col2 * + CAST ( col1 * - cor0.col0 AS INTEGER ) + col0 AS col1 FROM tab0 AS cor0
----
-118790
-1634664
-59106413

onlyif mysql # use DIV operator for integer division
query I rowsort label-947
SELECT + - col0 DIV col0 + - ( + col1 ) * + col1 * col2 FROM tab1 AS cor0
----
-16225
-36505
-5701

skipif mysql # not compatible
query I rowsort label-947
SELECT + - col0 / col0 + - ( + col1 ) * + col1 * col2 FROM tab1 AS cor0
----
-16225
-36505
-5701

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

skipif mysql # not compatible
query I rowsort label-948
SELECT - tab0.col2 * ( col0 ) / - col1 FROM tab0
----
0
80
9

query I rowsort
SELECT col0 + - 53 + + col0 FROM tab0
----
-5
125
17

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-951
SELECT ALL ( cor1.col2 ) * CAST( NULL AS SIGNED ) col1 FROM tab2, tab0 AS 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-951
SELECT ALL ( cor1.col2 ) * CAST ( NULL AS INTEGER ) col1 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

onlyif mysql # use DIV operator for integer division
query I rowsort label-952
SELECT DISTINCT col1 - tab1.col2 DIV col2 FROM tab1
----
12
25
9

skipif mysql # not compatible
query I rowsort label-952
SELECT DISTINCT col1 - tab1.col2 / col2 FROM tab1
----
12
25
9

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * 42 col0 FROM tab2 AS cor0
----
-294
-3276
-3318

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-955
SELECT CAST( 73 AS SIGNED ) + col2 * - col2 + + 56 FROM tab2 AS cor0
----
-1315
-547
-600

skipif mysql # not compatible
query I rowsort label-955
SELECT CAST ( 73 AS INTEGER ) + col2 * - col2 + + 56 FROM tab2 AS cor0
----
-1315
-547
-600

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

query I rowsort
SELECT ALL cor0.col0 * + ( col0 ) + col2 FROM tab0 AS cor0
----
1226
609
8003

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 81 col0 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 0a85639e0dddbffdab2cb16b027cb360

query I rowsort
SELECT + + 25 + col0 - - col1 FROM tab1 AS cor0
----
118
54
99

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

query I rowsort
SELECT DISTINCT 6 * 95 AS col2 FROM tab0 AS cor0
----
570

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

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

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

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

query I rowsort
SELECT cor0.col0 * 85 * - 52 AS col0 FROM tab1 AS cor0
----
-13260
-282880
-353600

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

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

query I rowsort
SELECT - tab1.col1 * + 32 FROM tab1, tab0 cor0
----
9 values hashing to 27a0d0744d68a649545fd2bc6573a151

query I rowsort
SELECT DISTINCT - - col1 + col0 AS col2 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT col2 * 45 AS col0 FROM tab0 AS cor0
----
1485
3690
45

query I rowsort
SELECT ( col0 ) + + col0 FROM tab2
----
14
156
158

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + CAST ( + col1 AS REAL ) col2 FROM tab1
----
10
13
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - col1 ) * - tab2.col1 col2 FROM tab2
----
-289
-3481
-961

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

query I rowsort
SELECT - col2 * - col2 + - col0 * + col2 * - col1 FROM tab0 AS cor0
----
3396
670842
69201

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

query I rowsort
SELECT + 26 * 60 FROM tab2, tab0 AS cor0, tab1 AS cor1, tab0 AS cor2
----
81 values hashing to b6b729c04cf0cb472ee6eb82e15568e3

query I rowsort
SELECT + 57 * - ( - col2 * - 37 ) AS col1 FROM tab1
----
-113886
-120213
-202464

onlyif mysql # use DIV operator for integer division
query I rowsort label-980
SELECT + col0 DIV + col0 + - col0 AS col2 FROM tab0
----
-23
-34
-88

skipif mysql # not compatible
query I rowsort label-980
SELECT + col0 / + col0 + - col0 AS col2 FROM tab0
----
-23
-34
-88

query I rowsort
SELECT + 30 + 86 FROM tab1 AS cor0
----
116
116
116

onlyif mysql # use DIV operator for integer division
query I rowsort label-982
SELECT DISTINCT - 28 DIV col2 + + col1 DIV + 60 AS col1 FROM tab0 AS cor0
----
-27
1

skipif mysql # not compatible
query I rowsort label-982
SELECT DISTINCT - 28 / col2 + + col1 / + 60 AS col1 FROM tab0 AS cor0
----
-27
1

query I rowsort
SELECT col1 + 77 FROM tab0 AS cor0
----
163
168
174

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

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

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

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

query I rowsort
SELECT ALL - + 60 FROM tab2 AS cor0
----
-60
-60
-60

query I rowsort
SELECT + 75 * - col0 AS col1 FROM tab2 AS cor0
----
-525
-5850
-5925

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

query I rowsort
SELECT DISTINCT + 31 * col1 FROM tab1 AS cor0
----
310
403
806

query I rowsort
SELECT DISTINCT 20 * col1 FROM tab0 AS cor0
----
1720
1820
1940

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

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

query I rowsort
SELECT ALL - - col2 * + cor0.col0 + 27 AS col2 FROM tab2 AS cor0
----
2055
216
3029

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

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

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

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

query I rowsort
SELECT DISTINCT cor0.col0 * - col0 + 40 FROM tab0 AS cor0
----
-1185
-536
-7881

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

query I rowsort
SELECT DISTINCT - col1 * col2 + ( + 6 ) + cor0.col1 AS col2 FROM tab2 AS cor0
----
-1469
-623
-800

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

query I rowsort
SELECT DISTINCT cor0.col2 + cor0.col2 + 20 AS col2 FROM tab0 AS cor0
----
184
22
86

query I rowsort
SELECT + 55 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 832128adb1ddc65c3105e29cc2c8b3a3

query I rowsort
SELECT 72 * col0 AS col0 FROM tab0
----
1728
2520
6408

query I rowsort
SELECT - 74 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 5a477330c946251f814fbbfd08e77c28

query I rowsort
SELECT col1 * + col1 * - ( - 66 ) + + col0 FROM tab2 AS cor0
----
19153
229824
63433

query I rowsort
SELECT + 65 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 1c9d0bf96cd3361942fadad668138b9c

query I rowsort
SELECT DISTINCT - 68 - cor1.col2 FROM tab0, tab2 cor0, tab2 AS cor1
----
-106
-94
-95

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

skipif mysql # not compatible
query I rowsort label-1009
SELECT col0 * + CAST ( col2 AS INTEGER ) FROM tab0 AS cor0
----
35
7298
792

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

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

query I rowsort
SELECT ALL - 48 AS col0 FROM tab0
----
-48
-48
-48

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

query I rowsort
SELECT col0 * 87 FROM tab0 cor0
----
2088
3045
7743

query I rowsort
SELECT - 65 + col2 FROM tab0
----
-32
-64
17

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

query I rowsort
SELECT - + ( 23 ) FROM tab2 cor0
----
-23
-23
-23

query I rowsort
SELECT - + 50 * - col0 + - col2 FROM tab2 AS cor0
----
323
3874
3912

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

query I rowsort
SELECT DISTINCT ( - 26 ) * col1 AS col1 FROM tab1 cor0
----
-260
-338
-676

query I rowsort
SELECT DISTINCT - cor0.col2 * - 78 FROM tab2 cor0
----
2028
2106
2964

query I rowsort
SELECT - + 65 * - col1 * col1 AS col0 FROM tab2 cor0
----
18785
226265
62465

query I rowsort
SELECT ALL + - 25 * 64 FROM tab1 AS cor0
----
-1600
-1600
-1600

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

skipif mysql # not compatible
query I rowsort label-1024
SELECT - tab2.col2 + CAST ( + col2 AS INTEGER ) * tab2.col0 FROM tab2
----
162
2002
2964

query I rowsort
SELECT DISTINCT - col0 * + col1 + col1 AS col0 FROM tab0
----
-1978
-3298
-8008

query I rowsort
SELECT ALL col0 * - col0 + 30 FROM tab1
----
-4066
-6370
21

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

skipif mysql # not compatible
query I rowsort label-1027
SELECT - CAST ( + 52 AS INTEGER ) * + col0 * + col1 FROM tab1 AS cor0
----
-33280
-4056
-54080

query I rowsort
SELECT - col1 * 44 * + 87 AS col0 FROM tab1
----
-38280
-49764
-99528

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

query I rowsort
SELECT - - cor1.col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8

onlyif mysql # use DIV operator for integer division
query I rowsort label-1031
SELECT - ( - col2 ) + col0 DIV col0 AS col2 FROM tab2 AS cor0
----
27
28
39

skipif mysql # not compatible
query I rowsort label-1031
SELECT - ( - col2 ) + col0 / col0 AS col2 FROM tab2 AS cor0
----
27
28
39

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

query I rowsort
SELECT ALL - + 88 * 18 AS col1 FROM tab2 AS cor0
----
-1584
-1584
-1584

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + ( + col2 ) col1 FROM tab1
----
162
3648
7680

query I rowsort
SELECT - tab2.col0 * - cor0.col0 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to b430aacab80c9bce1e28006eb9a0312c

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

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

query I rowsort
SELECT DISTINCT - - 76 + - col2 * col2 * - col0 AS col2 FROM tab2 AS cor0
----
114152
5179
52804

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

query I rowsort
SELECT 15 FROM tab1, tab2 cor0
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd

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

query I rowsort
SELECT - col1 * + 35 AS col2 FROM tab0
----
-3010
-3185
-3395

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

query I rowsort
SELECT DISTINCT - col1 + + 9 FROM tab2
----
-22
-50
-8

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

query I rowsort
SELECT ALL col0 + ( - col0 ) FROM tab1
----
0
0
0

query I rowsort
SELECT + tab0.col2 AS col0 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 7786718bd8042022537378d40ec87475

onlyif mysql # use DIV operator for integer division
query I rowsort label-1049
SELECT DISTINCT 9 DIV 64 AS col2 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-1049
SELECT DISTINCT 9 / 64 AS col2 FROM tab1 cor0
----
0

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

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

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

query I rowsort
SELECT ALL col0 * 36 FROM tab1 AS cor0
----
108
2304
2880

query I rowsort
SELECT DISTINCT + col0 * - 80 FROM tab1 AS cor0
----
-240
-5120
-6400

query I rowsort
SELECT + + 60 + cor0.col2 FROM tab1 AS cor0
----
114
117
156

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

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

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

query I rowsort
SELECT cor0.col2 + + 38 FROM tab0 AS cor0
----
120
39
71

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1062
SELECT - col0 DIV - col0 + - col2 + col1 FROM tab0 AS cor0
----
10
54
97

skipif mysql # not compatible
query I rowsort label-1062
SELECT - col0 / - col0 + - col2 + col1 FROM tab0 AS cor0
----
10
54
97

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

skipif mysql # not compatible
query I rowsort label-1063
SELECT - col0 * CAST ( col1 AS INTEGER ) + - col1 - ( + cor0.col0 ) FROM tab1 AS cor0
----
-107
-1133
-714

query I rowsort
SELECT DISTINCT + + col1 + 81 * col2 + + col1 AS col1 FROM tab0 AS cor0
----
275
2845
6824

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - ( - 59 * col0 + 73 ) col2 FROM tab2 AS cor0
----
367
4555
4626

query I rowsort
SELECT ALL - cor0.col0 * + ( + col0 ) + - cor0.col2 * - 18 FROM tab1 cor0
----
-3070
-4672
963

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1069
SELECT DISTINCT - col2 / + col1 col1 FROM tab2 AS cor0
----
-2
0

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

query I rowsort
SELECT + col2 * + col0 - 76 * - col1 FROM tab1 AS cor0
----
2138
4408
8668

query I rowsort
SELECT DISTINCT - col2 + - 62 * col0 FROM tab2 AS cor0
----
-461
-4862
-4936

query I rowsort
SELECT DISTINCT - col1 * col2 * 54 + col0 AS col0 FROM tab0 AS cor0
----
-153228
-402859
-5203

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

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

query I rowsort
SELECT ALL - col0 + col1 * 82 FROM tab0 AS cor0
----
7028
7373
7919

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col2 + 28 col0 FROM tab1 cor0
----
-26
-29
-68

query I rowsort
SELECT - - col1 - 11 * 52 FROM tab1 AS cor0
----
-546
-559
-562

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * col1 - col1 col0 FROM tab2 AS cor0
----
-1360
-248
-4661

query I rowsort
SELECT ALL - 65 FROM tab2 cor0
----
-65
-65
-65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 * + col2 + - col2 col1 FROM tab2 AS cor0
----
1406
650
702

query I rowsort
SELECT DISTINCT col2 * ( + col0 + - col2 ) AS col0 FROM tab0 cor0
----
-297
34
574

query I rowsort
SELECT + - ( 15 ) FROM tab2 cor0
----
-15
-15
-15

query I rowsort
SELECT 56 * - col2 + + col2 * col1 FROM tab0 AS cor0
----
2870
41
990

query I rowsort
SELECT DISTINCT + col1 * 8 + col0 * + col1 AS col0 FROM tab2
----
1479
465
5074

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

query I rowsort
SELECT - 24 * 88 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to fb639b56187ee796c9be7612834c4b7a

query I rowsort
SELECT ALL + - 75 * + col2 FROM tab2 AS cor0
----
-1950
-2025
-2850

query I rowsort
SELECT DISTINCT 1 AS col1 FROM tab1 cor0
----
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-1090
SELECT ALL cor0.col0 DIV cor0.col0 + - col0 FROM tab1 AS cor0
----
-2
-63
-79

skipif mysql # not compatible
query I rowsort label-1090
SELECT ALL cor0.col0 / cor0.col0 + - col0 FROM tab1 AS cor0
----
-2
-63
-79

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

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

query I rowsort
SELECT ALL - 35 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to c12e8bdd687c9040a5600dab3b6adf5b

query I rowsort
SELECT ALL cor0.col1 AS col1 FROM tab2, tab0 cor0 CROSS JOIN tab1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + col1 col1 FROM tab2
----
289
3481
961

query I rowsort
SELECT DISTINCT tab1.col2 AS col1 FROM tab2, tab0 AS cor0 CROSS JOIN tab1
----
54
57
96

query I rowsort
SELECT + 18 AS col0 FROM tab1
----
18
18
18

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

query I rowsort
SELECT - col2 * cor0.col2 * 93 AS col2 FROM tab2 AS cor0
----
-134292
-62868
-67797

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

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

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

query I rowsort
SELECT DISTINCT 33 * - col0 AS col1 FROM tab2 AS cor0
----
-231
-2574
-2607

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

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

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

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

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

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

query I rowsort
SELECT + col0 * + col1 * col2 FROM tab1 WHERE NOT col0 + + col0 NOT BETWEEN + col1 AND - col1 * col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col1 + 69 col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 35cd26f33597c096312fa50511b41cbe

query I rowsort
SELECT ALL - col0 * col0 * + tab2.col0 AS col0 FROM tab2
----
-343
-474552
-493039

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

query I rowsort
SELECT 77 + col0 * + col2 FROM tab1
----
239
3725
7757

query I rowsort
SELECT DISTINCT col1 * col2 + col2 + col2 FROM tab0
----
2904
7626
99

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1115
SELECT ALL + col2 + col0 * tab1.col1 + + col0 DIV + col0 AS col0 FROM tab1
----
1137
133
698

skipif mysql # not compatible
query I rowsort label-1115
SELECT ALL + col2 + col0 * tab1.col1 + + col0 / + col0 AS col0 FROM tab1
----
1137
133
698

query I rowsort
SELECT + col2 * col1 + col1 * - col1 AS col0 FROM tab2
----
-124
-1947
357

onlyif mysql # use DIV operator for integer division
query I rowsort label-1117
SELECT DISTINCT col2 + col0 DIV col1 AS col1 FROM tab2
----
27
42

skipif mysql # not compatible
query I rowsort label-1117
SELECT DISTINCT col2 + col0 / col1 AS col1 FROM tab2
----
27
42

query I rowsort
SELECT ALL col0 + col0 + + col2 FROM tab0
----
260
71
81

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

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

query I rowsort
SELECT - col1 * tab0.col2 - col1 * - tab0.col0 * col1 FROM tab0
----
174666
329218
729547

query I rowsort
SELECT + col0 AS col0 FROM tab2 WHERE NOT NULL = ( NULL )
----

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

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

query I rowsort
SELECT DISTINCT - col0 * col0 * col2 FROM tab1
----
-233472
-486
-614400

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

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

query I rowsort
SELECT col2 + - col0 AS col0 FROM tab1 WHERE NULL < NULL
----

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

query I rowsort
SELECT - col2 + - col0 / tab1.col0 FROM tab1 WHERE NOT col1 > ( - col2 * + col1 )
----

query I rowsort
SELECT DISTINCT col1 / + col0 FROM tab2 WHERE col1 IN ( + col2 )
----

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - col0 + col0 * - col0 col1 FROM tab1
----
-14080
-171
-7744

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

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

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

query I rowsort
SELECT + 7 * ( - col0 * 0 ) AS col0 FROM tab2
----
0
0
0

query I rowsort
SELECT col2 * + 43 FROM tab0
----
1419
3526
43

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

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

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

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

query I rowsort
SELECT DISTINCT - 5 + - 79 FROM tab0 cor0
----
-84

query I rowsort
SELECT + + 54 + + col2 AS col0 FROM tab2 AS cor0
----
80
81
92

query I rowsort
SELECT + cor1.col2 AS col0 FROM tab0, tab2 cor0, tab0 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT + col0 * - 65 AS col2 FROM tab0
----
-1560
-2275
-5785

query I rowsort
SELECT + col0 + ( col0 ) * col0 AS col2 FROM tab0 AS cor0
----
1260
600
8010

query I rowsort
SELECT 47 * + col1 * - col1 FROM tab0 AS cor0
----
-347612
-389207
-442223

query I rowsort
SELECT + col1 + - col0 * - ( 58 ) AS col2 FROM tab0 AS cor0
----
1478
2127
5253

query I rowsort
SELECT - cor0.col1 + + cor0.col0 * - 4 * col2 FROM tab2 cor0
----
-12025
-787
-8171

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

skipif mysql # not compatible
query I rowsort label-1153
SELECT ALL cor0.col0 / - col2 + ( 19 ) FROM tab1 AS cor0
----
18
19
19

query I rowsort
SELECT DISTINCT - col1 + col2 * 60 AS col0 FROM tab1 AS cor0
----
3214
3410
5747

query I rowsort
SELECT + 70 * col1 FROM tab2 AS cor0
----
1190
2170
4130

query I rowsort
SELECT + - 81 AS col0 FROM tab0 AS cor0
----
-81
-81
-81

query I rowsort
SELECT - - cor0.col1 + col0 * 18 FROM tab1 AS cor0
----
1162
1453
80

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

query I rowsort
SELECT ALL + col1 + 93 * - ( cor0.col2 * 42 ) + + col2 FROM tab1 AS cor0
----
-210844
-222575
-374867

query I rowsort
SELECT - col2 + + ( - cor0.col2 ) FROM tab2 AS cor0
----
-52
-54
-76

onlyif mysql # use DIV operator for integer division
query I rowsort label-1161
SELECT ALL + - cor0.col2 + col1 DIV + 24 FROM tab2 cor0
----
-24
-26
-38

skipif mysql # not compatible
query I rowsort label-1161
SELECT ALL + - cor0.col2 + col1 / + 24 FROM tab2 cor0
----
-24
-26
-38

query I rowsort
SELECT DISTINCT - + col1 + ( - 85 ) FROM tab2 AS cor0
----
-102
-116
-144

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

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

query I rowsort
SELECT cor0.col1 + - 7 * + cor0.col2 * - col2 FROM tab2 cor0
----
10125
4791
5134

query I rowsort
SELECT + ( + 5 ) - + col2 AS col1 FROM tab0 AS cor0
----
-28
-77
4

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

skipif mysql # not compatible
query I rowsort label-1167
SELECT DISTINCT - - col0 + cor0.col2 / + col1 - col0 FROM tab1 cor0
----
2
5
7

query I rowsort
SELECT - col2 + - col0 * col1 * col2 AS col1 FROM tab1 AS cor0
----
-36537
-4266
-99936

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

query I rowsort
SELECT - 9 * - col0 + + col1 FROM tab0 cor0
----
302
412
892

query I rowsort
SELECT ALL - col0 + col2 + + col2 * col2 AS col2 FROM tab2 AS cor0
----
1403
624
749

query I rowsort
SELECT DISTINCT 38 - col1 AS col0 FROM tab0 AS cor0
----
-48
-53
-59

query I rowsort
SELECT - col2 * + 80 * col1 FROM tab0
----
-227040
-596960
-7760

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1176
SELECT col1 + col0 + col1 DIV - col1 FROM tab2 cor0
----
136
37
95

skipif mysql # not compatible
query I rowsort label-1176
SELECT col1 + col0 + col1 / - col1 FROM tab2 cor0
----
136
37
95

query I rowsort
SELECT + col0 * - ( col2 ) * col2 AS col1 FROM tab1
----
-207936
-737280
-8748

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

skipif mysql # not compatible
query I rowsort label-1178
SELECT DISTINCT + col1 / + tab2.col1 FROM tab2
----
1

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

query I rowsort
SELECT DISTINCT + ( + col0 ) * col0 * + col0 AS col2 FROM tab2
----
343
474552
493039

query I rowsort
SELECT ALL + col0 * + 77 FROM tab2
----
539
6006
6083

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1183
SELECT - - col2 DIV col1 + col2 * col1 FROM tab2 AS cor0
----
1534
648
837

skipif mysql # not compatible
query I rowsort label-1183
SELECT - - col2 / col1 + col2 * col1 FROM tab2 AS cor0
----
1534
648
837

query I rowsort
SELECT DISTINCT - col1 * col1 + - col0 * - col1 FROM tab0
----
-182
-5332
-6014

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

query I rowsort
SELECT DISTINCT + 2 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
2

query I rowsort
SELECT ( 59 ) AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc

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

query I rowsort
SELECT col1 * 69 + col1 * col0 AS col1 FROM tab1 AS cor0
----
1330
1872
1937

query I rowsort
SELECT DISTINCT + 15 * col1 * + col1 AS col2 FROM tab0
----
110940
124215
141135

query I rowsort
SELECT - col1 + - col1 - col1 FROM tab0
----
-258
-273
-291

query I rowsort
SELECT ALL 4 - + tab1.col2 FROM tab1
----
-50
-53
-92

query I rowsort
SELECT + 37 * + col1 - col2 AS col0 FROM tab1
----
313
385
908

query I rowsort
SELECT + 8 * cor0.col0 + col2 FROM tab1 AS cor0
----
569
736
78

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

query I rowsort
SELECT + - 15 + 98 * + col2 + col2 * col1 AS col1 FROM tab1 AS cor0
----
10641
6141
6681

query I rowsort
SELECT - ( cor0.col2 ) AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75

query I rowsort
SELECT col1 * - col1 + + col2 AS col1 FROM tab0 AS cor0
----
-7363
-8199
-9408

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

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

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

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

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

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

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

query I rowsort
SELECT + col1 + col1 + col0 FROM tab1 AS cor0
----
106
55
84

query I rowsort
SELECT + cor0.col0 + + cor0.col2 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 8733ba2dd568938e338b27ad757d3e3b

query I rowsort
SELECT DISTINCT col2 + col2 AS col2 FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( - col0 )
----

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

query I rowsort
SELECT DISTINCT col0 + - cor0.col1 + - col0 FROM tab0 AS cor0
----
-86
-91
-97

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

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

query I rowsort
SELECT - + col0 * cor0.col0 * - col0 + col1 FROM tab2 AS cor0
----
374
474611
493056

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1215
SELECT col0 DIV col1 + col1 col1 FROM tab2
----
21
31
60

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1215
SELECT col0 / col1 + col1 col1 FROM tab2
----
21
31
60

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * col2 + + cor0.col0 col2 FROM tab2 AS cor0
----
1523
736
754

query I rowsort
SELECT DISTINCT + col0 + - col0 * + col0 * + col1 FROM tab2 AS cor0
----
-106018
-1512
-358878

query I rowsort
SELECT ALL + + col2 + + col1 + + col0 AS col1 FROM tab2 AS cor0
----
134
163
65

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

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

query I rowsort
SELECT col2 * col1 + + tab2.col1 * col1 AS col0 FROM tab2
----
1798
5015
935

query I rowsort
SELECT DISTINCT col2 * col0 + 69 FROM tab1 AS cor0
----
231
3717
7749

query I rowsort
SELECT - col2 + 31 * 86 FROM tab0 AS cor0
----
2584
2633
2665

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

skipif mysql # not compatible
query I rowsort label-1227
SELECT + CAST ( cor0.col2 AS INTEGER ) FROM tab1, tab0 AS cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8

query I rowsort
SELECT DISTINCT + col1 * cor0.col1 + ( cor0.col1 ) * 62 AS col2 FROM tab1 AS cor0
----
2288
720
975

query I rowsort
SELECT col0 + - 43 AS col0 FROM tab0 AS cor0
----
-19
-8
46

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

query I rowsort
SELECT DISTINCT + col0 + - ( - col1 * col0 ) FROM tab2 AS cor0
----
1422
224
4680

query I rowsort
SELECT + + cor0.col2 * 70 + col1 AS col0 FROM tab1 cor0
----
3806
4000
6733

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

query I rowsort
SELECT DISTINCT + col2 * + col2 FROM tab0 cor0
----
1
1089
6724

query I rowsort
SELECT DISTINCT - + cor0.col1 * - 38 + + cor0.col0 * col0 + 38 FROM tab1 AS cor0
----
1035
4514
6932

onlyif mysql # use DIV operator for integer division
query I rowsort label-1236
SELECT ALL - col1 + + col0 DIV + 64 AS col2 FROM tab1 AS cor0
----
-12
-26
-9

skipif mysql # not compatible
query I rowsort label-1236
SELECT ALL - col1 + + col0 / + 64 AS col2 FROM tab1 AS cor0
----
-12
-26
-9

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1238
SELECT DISTINCT + + col0 DIV - cor0.col0 + - 93 FROM tab2 AS cor0
----
-94

skipif mysql # not compatible
query I rowsort label-1238
SELECT DISTINCT + + col0 / - cor0.col0 + - 93 FROM tab2 AS cor0
----
-94

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

skipif mysql # not compatible
query I rowsort label-1239
SELECT + col2 + col1 / cor0.col0 AS col1 FROM tab1 cor0
----
57
62
96

query I rowsort
SELECT - ( 41 ) * col1 FROM tab1 AS cor0
----
-1066
-410
-533

query I rowsort
SELECT ALL + ( + 96 ) + + cor0.col2 * + col2 FROM tab1 AS cor0
----
3012
3345
9312

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

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

query I rowsort
SELECT ALL 93 AS col2 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 85ef191bf1b307f300b3fd49992fcae7

query I rowsort
SELECT 17 * col0 AS col1 FROM tab2 AS cor0
----
119
1326
1343

query I rowsort
SELECT ALL col1 + + cor0.col1 + col0 FROM tab0 cor0
----
196
229
271

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

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

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

query I rowsort
SELECT DISTINCT 63 * - col2 + ( - col0 ) * col0 AS col1 FROM tab2 AS cor0
----
-1750
-7722
-8635

query I rowsort
SELECT ALL + + col0 + cor0.col1 + - col1 * col1 AS col2 FROM tab1 AS cor0
----
-26
-647
-76

query I rowsort
SELECT DISTINCT - ( + 98 + + col2 ) FROM tab1
----
-152
-155
-194

query I rowsort
SELECT DISTINCT + 57 + tab2.col0 AS col1 FROM tab2, tab2 cor0, tab1, tab0 AS cor1
----
135
136
64

query I rowsort
SELECT ALL - col0 * col2 + col0 AS col1 FROM tab2 AS cor0
----
-182
-1950
-2923

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

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

query I rowsort
SELECT - tab0.col1 + tab0.col1 * 40 FROM tab0
----
3354
3549
3783

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + col2 * 8 col1 FROM tab1
----
406
446
755

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + - col1 col1 FROM tab1
----
28
47
83

skipif mysql # not compatible
query I rowsort
SELECT - col0 * + col0 + + CAST ( col2 AS REAL ) * col1 * - col1 + + col2 * col0 FROM tab2
----
-14221
-25807
-94562

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

query I rowsort
SELECT DISTINCT - 57 * - cor0.col0 FROM tab2, tab1 AS cor0
----
171
3648
4560

query I rowsort
SELECT tab1.col2 * - 66 AS col1 FROM tab1
----
-3564
-3762
-6336

query I rowsort
SELECT col1 * - 98 AS col0 FROM tab2
----
-1666
-3038
-5782

onlyif mysql # use DIV operator for integer division
query I rowsort label-1265
SELECT col2 + col1 DIV + 25 AS col1 FROM tab0 AS cor0
----
36
4
85

skipif mysql # not compatible
query I rowsort label-1265
SELECT col2 + col1 / + 25 AS col1 FROM tab0 AS cor0
----
36
4
85

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

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

query I rowsort
SELECT tab1.col0 * + 96 AS col1 FROM tab1
----
288
6144
7680

query I rowsort
SELECT - 93 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 38f445d95788c7dc754ff688a62df03b

query I rowsort
SELECT - 96 + + col0 AS col1 FROM tab2
----
-17
-18
-89

query I rowsort
SELECT ALL col1 * 41 AS col1 FROM tab1
----
1066
410
533

query I rowsort
SELECT DISTINCT ( - 75 ) * + col2 AS col0 FROM tab2
----
-1950
-2025
-2850

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

query I rowsort
SELECT ALL + 56 * tab2.col2 FROM tab2
----
1456
1512
2128

query I rowsort
SELECT + tab1.col2 * 24 + col0 AS col0 FROM tab1
----
1299
1432
2384

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1276
SELECT CAST( - 80 * col0 AS SIGNED ) AS col1 FROM tab2
----
-560
-6240
-6320

skipif mysql # not compatible
query I rowsort label-1276
SELECT CAST ( - 80 * col0 AS INTEGER ) AS col1 FROM tab2
----
-560
-6240
-6320

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1277
SELECT DISTINCT CAST ( + col0 + col2 AS INTEGER ) col1 FROM tab1
----
121
176
57

query I rowsort
SELECT DISTINCT col2 * col1 + - col0 + 76 * col0 FROM tab2 cor0
----
1362
6571
7384

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

query I rowsort
SELECT col0 + + tab1.col2 + col1 * + col2 FROM tab1
----
1424
1461
691

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1282
SELECT ALL - ( col1 ) DIV col1 - + col2 DIV 56 FROM tab0
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-1282
SELECT ALL - ( col1 ) / col1 - + col2 / 56 FROM tab0
----
-1
-1
-2

query I rowsort
SELECT DISTINCT + - ( - ( col2 ) ) * 75 AS col0 FROM tab0 AS cor0
----
2475
6150
75

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

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

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

skipif mysql # not compatible
query I rowsort label-1285
SELECT DISTINCT 64 + + cor0.col1 * - col2 + - CAST ( col2 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-1280
-1394
-563

onlyif mysql # use DIV operator for integer division
query I rowsort label-1286
SELECT DISTINCT - ( + 87 ) DIV col1 + col2 FROM tab1 AS cor0
----
49
51
90

skipif mysql # not compatible
query I rowsort label-1286
SELECT DISTINCT - ( + 87 ) / col1 + col2 FROM tab1 AS cor0
----
49
51
90

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

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

query I rowsort
SELECT 47 + cor0.col1 * + ( - col1 ) AS col1 FROM tab2 AS cor0
----
-242
-3434
-914

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

query I rowsort
SELECT ALL + + ( + cor0.col2 ) + - 53 * + col0 * - col0 FROM tab1 AS cor0
----
217145
339296
531

query I rowsort
SELECT ALL 28 + col1 * col2 AS col2 FROM tab2 AS cor0
----
1562
674
865

query I rowsort
SELECT + 58 AS col1 FROM tab1 cor0
----
58
58
58

query I rowsort
SELECT DISTINCT - + 99 AS col1 FROM tab1 AS cor0
----
-99

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 55 * + col1 + col2 col2 FROM tab1 AS cor0
----
1484
607
811

query I rowsort
SELECT ALL - 25 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 40ac8fd000b2e49317aed2411077839e

query I rowsort
SELECT DISTINCT + ( 28 ) * - col2 * 88 AS col0 FROM tab2
----
-64064
-66528
-93632

query I rowsort
SELECT col1 * col1 * + tab0.col2 FROM tab0
----
244068
679042
9409

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + 59 col2 FROM tab0 AS cor0
----
148
83
94

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

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

skipif mysql # not compatible
query I rowsort label-1304
SELECT ALL col2 + CAST ( + col2 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
164
2
66

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

query I rowsort
SELECT 64 * - tab2.col0 AS col2 FROM tab2
----
-448
-4992
-5056

query I rowsort
SELECT DISTINCT - 98 AS col2 FROM tab0
----
-98

query I rowsort
SELECT DISTINCT + - col2 * ( 51 ) + - col2 FROM tab2 AS cor0
----
-1352
-1404
-1976

onlyif mysql # use DIV operator for integer division
query I rowsort label-1309
SELECT ALL - col2 * cor0.col0 DIV - cor0.col1 + - col2 FROM tab0 cor0
----
-1
-2
-24

skipif mysql # not compatible
query I rowsort label-1309
SELECT ALL - col2 * cor0.col0 / - cor0.col1 + - col2 FROM tab0 cor0
----
-1
-2
-24

query I rowsort
SELECT - + 84 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 975e2ef2a3bf1ee2622362f4e435752f

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1311
SELECT + cor0.col1 * CAST( + 70 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
1190
2170
4130

skipif mysql # not compatible
query I rowsort label-1311
SELECT + cor0.col1 * CAST ( + 70 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
1190
2170
4130

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

query I rowsort
SELECT ALL - + 2 * col2 AS col1 FROM tab1 AS cor0
----
-108
-114
-192

query I rowsort
SELECT ALL + col2 + + ( + 18 ) + tab0.col1 AS col0 FROM tab0
----
116
137
191

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

query I rowsort
SELECT cor0.col2 * cor0.col0 * col0 FROM tab1 AS cor0
----
233472
486
614400

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

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

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

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

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

query I rowsort
SELECT ALL + - 36 * + 79 FROM tab2 AS cor0
----
-2844
-2844
-2844

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

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

query I rowsort
SELECT col2 * 55 AS col1 FROM tab2 AS cor0
----
1430
1485
2090

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

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

query I rowsort
SELECT - - 29 + + col2 * + col1 * 23 AS col1 FROM tab0 AS cor0
----
171655
2260
65303

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

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

query I rowsort
SELECT DISTINCT - - ( col1 ) + col1 * - 89 AS col0 FROM tab1 AS cor0
----
-1144
-2288
-880

query I rowsort
SELECT - + 81 FROM tab2 AS cor0
----
-81
-81
-81

query I rowsort
SELECT DISTINCT col1 - 13 FROM tab1 AS cor0
----
-3
0
13

onlyif mysql # use DIV operator for integer division
query I rowsort label-1331
SELECT ALL + 15 + + col2 DIV + col1 AS col2 FROM tab0 cor0
----
15
15
15

skipif mysql # not compatible
query I rowsort label-1331
SELECT ALL + 15 + + col2 / + col1 AS col2 FROM tab0 cor0
----
15
15
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 58 * + col1 + - col2 * 47 + - col0 * cor0.col2 col1 FROM tab2 AS cor0
----
-3802
172
340

onlyif mysql # use DIV operator for integer division
query I rowsort label-1333
SELECT DISTINCT col2 * ( col1 ) - + col2 DIV + 69 FROM tab2 AS cor0
----
1534
646
837

skipif mysql # not compatible
query I rowsort label-1333
SELECT DISTINCT col2 * ( col1 ) - + col2 / + 69 FROM tab2 AS cor0
----
1534
646
837

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

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

query I rowsort
SELECT ALL col0 + col1 * ( col1 + col0 ) AS col0 FROM tab0 AS cor0
----
12839
16469
9484

query I rowsort
SELECT col1 - col1 AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - + ( cor1.col0 ) + cor0.col2 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
-40
-41
-51
-52
-53
19
20
31

onlyif mysql # use DIV operator for integer division
query I rowsort label-1339
SELECT - + col0 + + col1 * + col1 DIV col1 + + 52 * col2 FROM tab2 AS cor0
----
1333
1428
1914

skipif mysql # not compatible
query I rowsort label-1339
SELECT - + col0 + + col1 * + col1 / col1 + + 52 * col2 FROM tab2 AS cor0
----
1333
1428
1914

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT 89 * col0 + - col1 AS col2 FROM tab1
----
241
5686
7107

query I rowsort
SELECT DISTINCT ( + col1 ) * - col1 * + col2 AS col0 FROM tab0 AS cor0
----
-244068
-679042
-9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-1351
SELECT + 62 + - col0 DIV + col1 + col2 FROM tab1 AS cor0
----
113
116
152

skipif mysql # not compatible
query I rowsort label-1351
SELECT + 62 + - col0 / + col1 + col2 FROM tab1 AS cor0
----
113
116
152

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * 61 col1 FROM tab0 cor0
----
5246
5551
5917

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1354
SELECT ALL CAST( col2 AS SIGNED ) FROM tab2 AS cor0
----
26
27
38

skipif mysql # not compatible
query I rowsort label-1354
SELECT ALL CAST ( col2 AS INTEGER ) FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT DISTINCT cor1.col2 + - 56 * + cor0.col0 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to ecd87de30f7350456fbf1ee40af61fa1

query I rowsort
SELECT - tab1.col0 * 7 AS col0 FROM tab1
----
-21
-448
-560

query I rowsort
SELECT DISTINCT + col0 + - col1 * + 25 AS col0 FROM tab1 AS cor0
----
-186
-245
-647

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1358
SELECT col2 / - col1 + col1 col1 FROM tab2 AS cor0
----
15
31
59

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

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

query I rowsort
SELECT - 75 * + col0 + cor0.col1 - - cor0.col1 * + col2 FROM tab2 AS cor0
----
-4257
-5262
343

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

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

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1364
SELECT ALL CAST( + col2 AS SIGNED ) * col0 + - 41 AS col0 FROM tab1
----
121
3607
7639

skipif mysql # not compatible
query I rowsort label-1364
SELECT ALL CAST ( + col2 AS INTEGER ) * col0 + - 41 AS col0 FROM tab1
----
121
3607
7639

query I rowsort
SELECT ALL 28 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 8a39580587f2831072e93c319ff94bbf

query I rowsort
SELECT ALL + col2 * 75 AS col0 FROM tab0 AS cor0
----
2475
6150
75

query I rowsort
SELECT ALL - col2 * + col2 * - 76 + cor0.col2 FROM tab0 AS cor0
----
511106
77
82797

query I rowsort
SELECT DISTINCT - + col2 + col2 * - col2 FROM tab1 AS cor0
----
-2970
-3306
-9312

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

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

query I rowsort
SELECT col1 + - 5 * col1 AS col1 FROM tab0 AS cor0
----
-344
-364
-388

onlyif mysql # use DIV operator for integer division
query I rowsort label-1372
SELECT DISTINCT - col0 DIV ( + col1 ) + 64 AS col1 FROM tab1 AS cor0
----
58
64

skipif mysql # not compatible
query I rowsort label-1372
SELECT DISTINCT - col0 / ( + col1 ) + 64 AS col1 FROM tab1 AS cor0
----
58
64

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1374
SELECT DISTINCT col1 DIV 65 + - 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-1374
SELECT DISTINCT col1 / 65 + - col1 col1 FROM tab0 AS cor0
----
-85
-90
-96

query I rowsort
SELECT - col0 * - 67 FROM tab1 cor0
----
201
4288
5360

query I rowsort
SELECT + 64 * - col1 AS col0 FROM tab0 AS cor0
----
-5504
-5824
-6208

query I rowsort
SELECT DISTINCT col1 * - col0 * - 58 AS col1 FROM tab1
----
37120
4524
60320

query I rowsort
SELECT - 26 + 72 * + col2 AS col1 FROM tab2 AS cor0
----
1846
1918
2710

onlyif mysql # use DIV operator for integer division
query I rowsort label-1379
SELECT ALL - col2 DIV 92 + + col0 DIV 39 + + col1 FROM tab0 cor0
----
86
93
97

skipif mysql # not compatible
query I rowsort label-1379
SELECT ALL - col2 / 92 + + col0 / 39 + + col1 FROM tab0 cor0
----
86
93
97

query I rowsort
SELECT DISTINCT - + ( + cor0.col0 ) * col1 * 88 AS col0 FROM tab1 cor0
----
-56320
-6864
-91520

query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1, tab1 AS cor1 WHERE NULL NOT BETWEEN NULL AND ( NULL )
----

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

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

query I rowsort
SELECT + 35 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29

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

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

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

query I rowsort
SELECT + cor0.col1 + ( col1 + col1 ) FROM tab1 cor0
----
30
39
78

query I rowsort
SELECT cor0.col0 * + 61 * - 46 FROM tab0 AS cor0
----
-249734
-67344
-98210

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

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1392
SELECT 49 * + col2 * CAST( col2 AS SIGNED ) col2 FROM tab0
----
329476
49
53361

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1392
SELECT 49 * + col2 * CAST ( col2 AS INTEGER ) col2 FROM tab0
----
329476
49
53361

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

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

query I rowsort
SELECT ALL - 52 AS col2 FROM tab2
----
-52
-52
-52

onlyif mysql # use DIV operator for integer division
query I rowsort label-1396
SELECT ALL + 16 DIV - col2 + tab1.col1 * + col2 * col1 AS col0 FROM tab1
----
16224
36504
5700

skipif mysql # not compatible
query I rowsort label-1396
SELECT ALL + 16 / - col2 + tab1.col1 * + col2 * col1 AS col0 FROM tab1
----
16224
36504
5700

query I rowsort
SELECT col2 * col1 + + 74 FROM tab0
----
171
2912
7536

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

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

query I rowsort
SELECT 21 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7

query I rowsort
SELECT DISTINCT col0 * cor0.col0 - + col1 AS col2 FROM tab0 AS cor0
----
1128
490
7830

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

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

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

query I rowsort
SELECT - + col2 * + 93 + col2 * col0 AS col0 FROM tab1 AS cor0
----
-1248
-1653
-4860

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

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

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

query I rowsort
SELECT DISTINCT + col0 * - 29 * col2 AS col2 FROM tab1 AS cor0
----
-105792
-222720
-4698

query I rowsort
SELECT ALL + col2 * - 13 FROM tab2 AS cor0
----
-338
-351
-494

query I rowsort
SELECT - col2 + 48 * col0 * col0 AS col1 FROM tab1 AS cor0
----
196551
307104
378

query I rowsort
SELECT - cor0.col0 * 84 * col0 FROM tab0 AS cor0
----
-102900
-48384
-665364

query I rowsort
SELECT - col0 + 3 * col0 AS col2 FROM tab2 AS cor0
----
14
156
158

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

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

query I rowsort
SELECT ALL + col1 * 98 FROM tab2 AS cor0
----
1666
3038
5782

query I rowsort
SELECT - 57 + - col1 * - col2 FROM tab1 AS cor0
----
1191
1347
513

query I rowsort
SELECT + 31 * 58 AS col2 FROM tab0 AS cor0
----
1798
1798
1798

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

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

query I rowsort
SELECT DISTINCT - 53 + 28 AS col0 FROM tab0 AS cor0
----
-25

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

query I rowsort
SELECT DISTINCT 48 + - col0 * - col1 FROM tab2 AS cor0
----
1391
265
4650

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

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

query I rowsort
SELECT - - 42 * - col1 FROM tab0 AS cor0
----
-3612
-3822
-4074

query I rowsort
SELECT ALL - 10 FROM tab2, tab1 AS cor0
----
9 values hashing to f68f33032846e21ee6b2c668fc10355e

query I rowsort
SELECT + col0 * + col1 + 36 AS col1 FROM tab1 cor0
----
1076
114
676

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

query I rowsort
SELECT - ( - col1 ) + - col0 * col0 * col1 AS col2 FROM tab0 AS cor0
----
-118728
-49450
-720720

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + - cor0.col0 * col1 col0 FROM tab2 AS cor0
----
-1360
-248
-4661

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1433
SELECT + col0 DIV - col2 + + 76 * + col1 FROM tab1 AS cor0
----
1976
759
988

skipif mysql # not compatible
query I rowsort label-1433
SELECT + col0 / - col2 + + 76 * + col1 FROM tab1 AS cor0
----
1976
759
988

query I rowsort
SELECT DISTINCT 20 + - cor0.col2 AS col2 FROM tab0 AS cor0
----
-13
-62
19

query I rowsort
SELECT DISTINCT - 58 * col0 FROM tab1 AS cor0
----
-174
-3712
-4640

query I rowsort
SELECT - col1 * + col1 * col2 + - col2 AS col1 FROM tab2 AS cor0
----
-11020
-25974
-90532

query I rowsort
SELECT ALL - 62 * - col2 FROM tab2 AS cor0
----
1612
1674
2356

query I rowsort
SELECT + - 15 * col0 AS col0 FROM tab2 AS cor0
----
-105
-1170
-1185

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

query I rowsort
SELECT ALL - col0 + cor0.col1 - - ( + col2 ) FROM tab2 AS cor0
----
-24
51
7

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

query I rowsort
SELECT ALL 35 - 69 AS col2 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 5b88331e40da4796cc4826c442aa45f7

query I rowsort
SELECT - ( 91 ) AS col0 FROM tab2
----
-91
-91
-91

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1444
SELECT 73 * col2 + CAST( - col2 AS SIGNED ) FROM tab2
----
1872
1944
2736

skipif mysql # not compatible
query I rowsort label-1444
SELECT 73 * col2 + CAST ( - col2 AS INTEGER ) FROM tab2
----
1872
1944
2736

query I rowsort
SELECT - + cor0.col1 * col1 + + col2 FROM tab0 AS cor0
----
-7363
-8199
-9408

query I rowsort
SELECT DISTINCT 94 - col2 FROM tab2 AS cor0
----
56
67
68

onlyif mysql # use DIV operator for integer division
query I rowsort label-1447
SELECT + col1 DIV + 17 AS col1 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-1447
SELECT + col1 / + 17 AS col1 FROM tab1
----
0
0
1

query I rowsort
SELECT ALL - col2 * 99 * - col2 - tab1.col2 * + col0 AS col2 FROM tab1
----
288522
318003
904704

query I rowsort
SELECT DISTINCT ( 62 ) FROM tab2 AS cor0
----
62

query I rowsort
SELECT ALL col2 + col0 * col0 FROM tab1 AS cor0
----
4153
63
6496

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

skipif mysql # not compatible
query I rowsort label-1451
SELECT - CAST ( col2 AS INTEGER ) + - cor0.col1 FROM tab0 AS cor0
----
-119
-173
-98

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

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

query I rowsort
SELECT ALL + 88 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37

query I rowsort
SELECT ALL - 94 + col2 AS col0 FROM tab1
----
-37
-40
2

query I rowsort
SELECT ( + 9 ) AS col1 FROM tab2
----
9
9
9

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

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

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

query I rowsort
SELECT + 64 + col1 * - col1 AS col0 FROM tab1 AS cor0
----
-105
-36
-612

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 * - col1 col2 FROM tab2 AS cor0
----
1343
217
4602

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

query I rowsort
SELECT DISTINCT col0 + col0 * - col1 * col1 AS col2 FROM tab0
----
-177480
-329280
-736920

query I rowsort
SELECT - col2 + - col1 * col0 + col2 FROM tab1
----
-1040
-640
-78

query I rowsort
SELECT ALL col0 * col2 AS col1 FROM tab2 WHERE NULL > - col1
----

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

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

query I rowsort
SELECT - col1 + - col2 * tab1.col0 + - tab1.col1 AS col2 FROM tab1
----
-214
-3668
-7706

query I rowsort
SELECT col2 * col1 + col1 + - col2 * - col1 AS col1 FROM tab0
----
15015
291
5762

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

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1474
SELECT DISTINCT col2 DIV tab0.col0 + + col2 DIV col2 FROM tab0
----
1
2

skipif mysql # not compatible
query I rowsort label-1474
SELECT DISTINCT col2 / tab0.col0 + + col2 / col2 FROM tab0
----
1
2

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

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

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

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

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

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

query I rowsort
SELECT + tab2.col2 * col2 * - col2 AS col2 FROM tab2
----
-17576
-19683
-54872

query I rowsort
SELECT DISTINCT col2 * - col0 * - col1 + col1 * col2 FROM tab1
----
101088
37050
5616

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

query I rowsort
SELECT ALL - col2 * col0 * - col1 + + col2 FROM tab1
----
36537
4266
99936

query I rowsort
SELECT DISTINCT + col1 * + col0 * col0 + tab1.col1 * + col1 + + col0 * col2 AS col1 FROM tab1
----
1072
44708
91049

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - col2 * - col1 col1 FROM tab0
----
132
2862
7551

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + tab1.col2 + - col1 * col1 col2 FROM tab1
----
-43
-622
-73

query I rowsort
SELECT DISTINCT + col1 * col2 * col1 AS col1 FROM tab2
----
10982
25947
90506

query I rowsort
SELECT DISTINCT col2 - col2 FROM tab2 WHERE NULL > ( NULL )
----

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col2 = ( NULL )
----

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( - col2 )
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1 AS cor0 WHERE NULL = ( NULL )
----

query I rowsort
SELECT col1 * 8 AS col0 FROM tab2
----
136
248
472

query I rowsort
SELECT ALL 65 AS col2 FROM tab0, tab1 AS cor0, tab1, tab0 AS cor1
----
81 values hashing to 1654646feeae82f39d2f564fe4ea26c2

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1499
SELECT - col2 + ( ( + col2 ) * CAST( + 68 AS SIGNED ) ) FROM tab1 AS cor0
----
3618
3819
6432

skipif mysql # not compatible
query I rowsort label-1499
SELECT - col2 + ( ( + col2 ) * CAST ( + 68 AS INTEGER ) ) FROM tab1 AS cor0
----
3618
3819
6432

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

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

query I rowsort
SELECT + col2 * + ( - 98 ) * - col2 FROM tab2 AS cor0
----
141512
66248
71442

query I rowsort
SELECT - 10 FROM tab0, tab2 AS cor0
----
9 values hashing to f68f33032846e21ee6b2c668fc10355e

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

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

query I rowsort
SELECT cor0.col0 + cor0.col2 FROM tab0, tab2 AS cor0, tab2 AS cor1, tab0 AS cor2
----
81 values hashing to 1848c3b5824f2eb1da42eb7284f27dd9

query I rowsort
SELECT ALL + 70 + + col1 FROM tab1 AS cor0
----
80
83
96

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1508
SELECT + ( col0 ) * col2 + - col2 DIV col0 AS col1 FROM tab1 AS cor0
----
144
3648
7679

skipif mysql # not compatible
query I rowsort label-1508
SELECT + ( col0 ) * col2 + - col2 / col0 AS col1 FROM tab1 AS cor0
----
144
3648
7679

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

query I rowsort
SELECT tab2.col0 AS col1 FROM tab2, tab0, tab1 AS cor0, tab1 AS cor1
----
81 values hashing to 05835f29dd9cd4fa16889de54dec3cb6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + col1 * - 7 col0 FROM tab2 AS cor0
----
-136
-248
-472

query I rowsort
SELECT + col2 + cor0.col2 FROM tab1 cor0
----
108
114
192

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

query I rowsort
SELECT - cor0.col1 + 25 FROM tab0 AS cor0
----
-61
-66
-72

query I rowsort
SELECT DISTINCT - - 57 * 62 AS col2 FROM tab1 AS cor0
----
3534

query I rowsort
SELECT ALL - tab0.col1 * - 5 + col1 * col2 AS col0 FROM tab0
----
3268
582
7917

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

query I rowsort
SELECT ALL - 75 * - tab0.col2 FROM tab0
----
2475
6150
75

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

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

query I rowsort
SELECT + 75 * col0 AS col1 FROM tab2
----
525
5850
5925

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 96 * col0 + + 71 col2 FROM tab0
----
2375
3431
8615

query I rowsort
SELECT + 16 * col1 AS col1 FROM tab1
----
160
208
416

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

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

query I rowsort
SELECT + col2 * col2 + - col2 * - col2 * - cor0.col1 + - col1 FROM tab0 AS cor0
----
-193
-605251
-92651

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

skipif mysql # not compatible
query I rowsort
SELECT - col0 * + CAST ( 72 AS REAL ) + col0 AS col1 FROM tab1 AS cor0
----
-213
-4544
-5680

query I rowsort
SELECT col2 + 68 + ( + col2 * + col0 ) AS col0 FROM tab2 AS cor0
----
2122
284
3108

query I rowsort
SELECT - col1 * - 9 - - col0 FROM tab0 AS cor0
----
798
908
908

query I rowsort
SELECT DISTINCT + col2 * + cor0.col0 + col0 + + cor0.col2 FROM tab2 AS cor0
----
2132
223
3119

query I rowsort
SELECT ALL - + col1 - + 61 AS col0 FROM tab2 AS cor0
----
-120
-78
-92

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1533
SELECT + col1 * col0 * + 17 + cor0.col1 DIV + col0 FROM tab0 AS cor0
----
137684
35091
57717

skipif mysql # not compatible
query I rowsort label-1533
SELECT + col1 * col0 * + 17 + cor0.col1 / + col0 FROM tab0 AS cor0
----
137684
35091
57717

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1534
SELECT ALL col1 + + CAST( 20 AS SIGNED ) * + col1 FROM tab2 cor0
----
1239
357
651

skipif mysql # not compatible
query I rowsort label-1534
SELECT ALL col1 + + CAST ( 20 AS INTEGER ) * + col1 FROM tab2 cor0
----
1239
357
651

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

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

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

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

query I rowsort
SELECT DISTINCT col1 * col1 + col2 + col2 * - col2 * tab1.col2 AS col2 FROM tab1
----
-156734
-185036
-884471

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

query I rowsort
SELECT DISTINCT - col2 * - col1 * col1 FROM tab0 cor0
----
244068
679042
9409

query I rowsort
SELECT ALL - cor0.col2 + col0 + col2 * + col1 AS col0 FROM tab2 AS cor0
----
1586
687
817

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1544
SELECT + + col1 * - col1 + col1 DIV + col2 + - cor0.col0 * col0 AS col1 FROM tab1 cor0
----
-4196
-6569
-685

skipif mysql # not compatible
query I rowsort label-1544
SELECT + + col1 * - col1 + col1 / + col2 + - cor0.col0 * col0 AS col1 FROM tab1 cor0
----
-4196
-6569
-685

query I rowsort
SELECT DISTINCT - cor0.col2 + col2 * - col0 * col2 AS col2 FROM tab0 AS cor0
----
-26169
-36
-598518

query I rowsort
SELECT - + col1 + col2 - col0 FROM tab2 AS cor0
----
-11
-111
-58

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

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL = col2 * - col0 OR NULL <= + cor0.col1
----

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

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1555
SELECT + col1 DIV - col1 + - cor0.col1 + col2 AS col0 FROM tab2 AS cor0
----
-34
-5
20

skipif mysql # not compatible
query I rowsort label-1555
SELECT + col1 / - col1 + - cor0.col1 + col2 AS col0 FROM tab2 AS cor0
----
-34
-5
20

query I rowsort
SELECT + col0 + - col0 * - col0 * col1 FROM tab0
----
118860
49560
720900

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1558
SELECT col1 * - col2 + - col1 DIV col0 FROM tab1 AS cor0
----
-1248
-1412
-570

skipif mysql # not compatible
query I rowsort label-1558
SELECT col1 * - col2 + - col1 / col0 FROM tab1 AS cor0
----
-1248
-1412
-570

query I rowsort
SELECT + col2 * cor0.col2 + - col2 * + col1 * col1 AS col2 FROM tab2 AS cor0
----
-25218
-89830
-9538

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

query I rowsort
SELECT DISTINCT - 31 + col0 + col1 AS col1 FROM tab2 AS cor0
----
106
65
7

query I rowsort
SELECT ALL + + 66 + + col1 * col1 FROM tab0 AS cor0
----
7462
8347
9475

query I rowsort
SELECT DISTINCT + col0 * col0 + col1 AS col2 FROM tab1 cor0
----
35
4106
6413

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

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

query I rowsort
SELECT ALL - + col1 * col2 - col0 * col0 FROM tab2 AS cor0
----
-6887
-7618
-886

query I rowsort
SELECT 3 * - col2 FROM tab1 AS cor0
----
-162
-171
-288

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

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

query I rowsort
SELECT DISTINCT - 58 + + col2 + col0 FROM tab1 AS cor0
----
-1
118
63

onlyif mysql # use DIV operator for integer division
query I rowsort label-1571
SELECT DISTINCT - - col1 + col2 DIV - col2 FROM tab0 AS cor0
----
85
90
96

skipif mysql # not compatible
query I rowsort label-1571
SELECT DISTINCT - - col1 + col2 / - col2 FROM tab0 AS cor0
----
85
90
96

query I rowsort
SELECT ALL + ( - 10 * + col1 ) FROM tab0
----
-860
-910
-970

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

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

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

query I rowsort
SELECT DISTINCT col1 + - col2 * col1 FROM tab1 AS cor0
----
-1235
-1378
-560

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

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

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

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

query I rowsort
SELECT DISTINCT - col0 * col1 + col0 * - col0 AS col0 FROM tab2 AS cor0
----
-10686
-266
-7584

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( ( col0 + + col1 ) <= col0 ) AND - col1 > - col2 * col0
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

query I rowsort
SELECT ALL col1 + col2 - col0 AS col1 FROM tab2 cor0
----
-24
51
7

query I rowsort
SELECT DISTINCT - col1 * + cor0.col0 * 50 + col2 FROM tab1 AS cor0
----
-31943
-3846
-51904

query I rowsort
SELECT DISTINCT - 72 + col0 AS col2 FROM tab0 AS cor0
----
-37
-48
17

query I rowsort
SELECT ALL + 73 - col1 * col0 FROM tab0 AS cor0
----
-1991
-3322
-8026

query I rowsort
SELECT - 32 + cor0.col0 FROM tab2 AS cor0
----
-25
46
47

query I rowsort
SELECT DISTINCT - - col0 + + col2 + 28 FROM tab0 cor0
----
199
64
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 18 + + col2 * - col0 col2 FROM tab1 cor0
----
-180
-3666
-7698

query I rowsort
SELECT - - 15 * col1 + 71 * col0 FROM tab2 AS cor0
----
5864
6423
962

query I rowsort
SELECT DISTINCT - - 51 + col2 FROM tab1 AS cor0
----
105
108
147

query I rowsort
SELECT ALL 26 + col2 * - cor0.col1 FROM tab1 AS cor0
----
-1222
-1378
-544

query I rowsort
SELECT ALL 77 * + col1 FROM tab2 AS cor0
----
1309
2387
4543

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1594
SELECT DISTINCT - 76 * col0 + CAST ( - col2 AS INTEGER ) col2 FROM tab0 AS cor0
----
-1857
-2661
-6846

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

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

query I rowsort
SELECT 78 + col1 * - 27 AS col1 FROM tab0 AS cor0
----
-2244
-2379
-2541

query I rowsort
SELECT DISTINCT + 6 AS col1 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
6

query I rowsort
SELECT 66 * + cor0.col0 FROM tab0 AS cor0
----
1584
2310
5874

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1602
SELECT DISTINCT col0 * + CAST ( NULL AS REAL ) * + 48 + tab2.col0 FROM tab2
----
NULL

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

query I rowsort
SELECT ALL tab2.col2 * + 32 + - ( + col0 + 17 ) * - tab2.col2 AS col2 FROM tab2
----
1512
3302
4864

query I rowsort
SELECT 57 AS col1 FROM tab0
----
57
57
57

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

query I rowsort
SELECT col1 * ( col1 ) FROM tab2
----
289
3481
961

query I rowsort
SELECT DISTINCT - 23 - - cor0.col2 FROM tab0 cor0
----
-22
10
59

query I rowsort
SELECT - - col1 + col2 * col0 * col0 AS col1 FROM tab0 AS cor0
----
1322
19094
649613

query I rowsort
SELECT ALL 21 + + 3 * - col1 - col1 FROM tab1 AS cor0
----
-19
-31
-83

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

query I rowsort
SELECT - ( + 10 ) * + tab0.col0 FROM tab0
----
-240
-350
-890

query I rowsort
SELECT ALL + + col1 - 59 * col2 FROM tab1 AS cor0
----
-3160
-3353
-5651

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

query I rowsort
SELECT DISTINCT - 45 FROM tab2 cor0
----
-45

query I rowsort
SELECT ( 44 ) * col2 FROM tab2
----
1144
1188
1672

query I rowsort
SELECT ALL col0 + tab2.col2 + 84 AS col0 FROM tab2
----
118
188
201

query I rowsort
SELECT - 99 * - col2 FROM tab0
----
3267
8118
99

onlyif mysql # use DIV operator for integer division
query I rowsort label-1619
SELECT 67 DIV cor2.col2 AS col1 FROM tab0, tab2 AS cor0, tab1 cor1, tab1 AS cor2
----
81 values hashing to 7e163dee6790fbe5456b394cd2ca048d

skipif mysql # not compatible
query I rowsort label-1619
SELECT 67 / cor2.col2 AS col1 FROM tab0, tab2 AS cor0, tab1 cor1, tab1 AS cor2
----
81 values hashing to 7e163dee6790fbe5456b394cd2ca048d

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

skipif mysql # not compatible
query I rowsort label-1620
SELECT + - 47 + + col1 + col1 / 49 AS col0 FROM tab2 AS cor0
----
-16
-30
13

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

query I rowsort
SELECT ALL - col2 * 9 * col1 FROM tab0
----
-25542
-67158
-873

query I rowsort
SELECT - 89 + + 93 FROM tab1, tab2 cor0
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b

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

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

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

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

query I rowsort
SELECT DISTINCT - col2 * + 93 AS col1 FROM tab2 AS cor0
----
-2418
-2511
-3534

query I rowsort
SELECT + - 63 + + col1 * - col0 AS col1 FROM tab1 cor0
----
-1103
-141
-703

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

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

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

query I rowsort
SELECT + + 50 * 35 * col0 - ( + 21 ) FROM tab2 AS cor0
----
12229
136479
138229

query I rowsort
SELECT + - col1 * ( cor0.col0 ) + ( col1 ) + col1 * col2 AS col1 FROM tab1 cor0
----
-60
1352
221

onlyif mysql # use DIV operator for integer division
query I rowsort label-1632
SELECT + col2 DIV col1 + cor0.col1 + + col0 AS col0 FROM tab2 AS cor0
----
137
38
98

skipif mysql # not compatible
query I rowsort label-1632
SELECT + col2 / col1 + cor0.col1 + + col0 AS col0 FROM tab2 AS cor0
----
137
38
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 97 ) - + col0 col2 FROM tab2 AS cor0
----
18
19
90

query I rowsort
SELECT ALL col1 + 32 FROM tab0
----
118
123
129

query I rowsort
SELECT + col0 + col0 * + col1 + + col1 AS col2 FROM tab1
----
107
1133
714

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - 48 + + col1 * + col1 col2 FROM tab1 AS cor0
----
108
42
602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 * + col0 - + cor0.col2 col2 FROM tab0 cor0
----
1224
543
7839

query I rowsort
SELECT ALL - col1 * 14 + + cor0.col2 AS col1 FROM tab1 AS cor0
----
-310
-83
-86

query I rowsort
SELECT - col2 + + 0 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT ALL - col2 - - 28 FROM tab2 AS cor0
----
-10
1
2

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

query I rowsort
SELECT ALL col1 * cor0.col1 + - col2 FROM tab0 AS cor0
----
7363
8199
9408

query I rowsort
SELECT DISTINCT col2 * - col1 - 94 AS col1 FROM tab2 AS cor0
----
-1628
-740
-931

query I rowsort
SELECT + cor0.col0 - - 54 FROM tab0 AS cor0
----
143
78
89

query I rowsort
SELECT DISTINCT 7 + col2 AS col0 FROM tab0 AS cor0
----
40
8
89

query I rowsort
SELECT + + 14 AS col2 FROM tab1 cor0
----
14
14
14

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

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

query I rowsort
SELECT ALL col0 + ( tab0.col0 + col2 ) AS col1 FROM tab0
----
260
71
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 * - ( + col1 * col1 ) + col2 col1 FROM tab2 AS cor0
----
22869
271544
6754

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 46 col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 31818c9d4d325eb248735c97cb1dce39

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

skipif mysql # not compatible
query I rowsort label-1653
SELECT ALL col1 + - CAST ( col2 AS INTEGER ) FROM tab0
----
53
9
96

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 59 * + 38 col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 80f979e982e8be28752e40d3e99b5e2f

query I rowsort
SELECT ALL - 67 * col0 AS col0 FROM tab1
----
-201
-4288
-5360

onlyif mysql # use DIV operator for integer division
query I rowsort label-1657
SELECT - ( - col2 ) DIV - 86 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1657
SELECT - ( - col2 ) / - 86 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( - 84 AS REAL ) * - col2 FROM tab0
----
2772
6888
84

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

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

query I rowsort
SELECT - + 61 * + col1 FROM tab0 AS cor0
----
-5246
-5551
-5917

query I rowsort
SELECT + 76 * - col0 AS col1 FROM tab1 cor0
----
-228
-4864
-6080

query I rowsort
SELECT tab1.col2 - + col0 * - ( - 98 + col0 ) FROM tab1
----
-1344
-2119
-231

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

query I rowsort
SELECT - 49 + - col2 FROM tab1
----
-103
-106
-145

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1668
SELECT ALL - cor0.col1 DIV 45 + cor0.col1 AS col2 FROM tab0, tab1 cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775

skipif mysql # not compatible
query I rowsort label-1668
SELECT ALL - cor0.col1 / 45 + cor0.col1 AS col2 FROM tab0, tab1 cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775

query I rowsort
SELECT col0 * + col2 * - 35 + col0 FROM tab1
----
-127616
-268720
-5667

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

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

query I rowsort
SELECT + col1 * + col1 + - 33 FROM tab1
----
136
643
67

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

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

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

skipif mysql # not compatible
query I rowsort label-1674
SELECT ALL - + col0 + - CAST ( col2 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-104
-117
-34

onlyif mysql # use DIV operator for integer division
query I rowsort label-1675
SELECT - + col0 DIV + col2 + + col1 + col0 * col2 FROM tab0 AS cor0
----
7388
878
97

skipif mysql # not compatible
query I rowsort label-1675
SELECT - + col0 / + col2 + + col1 + col0 * col2 FROM tab0 AS cor0
----
7388
878
97

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

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

query I rowsort
SELECT 17 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to e0dd9155e4d67132637a04c18ef46b2a

query I rowsort
SELECT + + col0 * + ( - 63 ) FROM tab0 AS cor0
----
-1512
-2205
-5607

query I rowsort
SELECT DISTINCT - col2 * 71 FROM tab2 AS cor0
----
-1846
-1917
-2698

onlyif mysql # use DIV operator for integer division
query I rowsort label-1680
SELECT DISTINCT col2 DIV - 28 FROM tab2 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-1680
SELECT DISTINCT col2 / - 28 FROM tab2 AS cor0
----
-1
0

query I rowsort
SELECT - - col2 * + 20 + cor0.col1 * + col1 FROM tab2 AS cor0
----
1049
1501
4001

query I rowsort
SELECT DISTINCT col0 - - col0 AS col2 FROM tab1 cor0
----
128
160
6

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

query I rowsort
SELECT - col0 * 88 FROM tab2 AS cor0
----
-616
-6864
-6952

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

query I rowsort
SELECT 20 * + 11 FROM tab1 cor0
----
220
220
220

query I rowsort
SELECT ALL - 51 + col0 FROM tab1 AS cor0
----
-48
13
29

query I rowsort
SELECT DISTINCT + 55 + cor0.col0 AS col1 FROM tab0 AS cor0
----
144
79
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 4 + - col2 * - col1 col2 FROM tab1 cor0
----
1244
1400
566

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

query I rowsort
SELECT col0 + 80 AS col1 FROM tab0 AS cor0
----
104
115
169

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

query I rowsort
SELECT DISTINCT - - 35 + + col2 AS col2 FROM tab1 AS cor0
----
131
89
92

query I rowsort
SELECT ALL 65 + col1 FROM tab1 AS cor0
----
75
78
91

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

query I rowsort
SELECT DISTINCT + - col2 * 42 * + col0 FROM tab2 cor0
----
-126084
-7938
-85176

query I rowsort
SELECT - 50 + + col1 FROM tab1 cor0
----
-24
-37
-40

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1699
SELECT + 29 DIV tab1.col0 + - col0 col1 FROM tab1
----
-64
-80
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1699
SELECT + 29 / tab1.col0 + - col0 col1 FROM tab1
----
-64
-80
6

query I rowsort
SELECT + 51 + + cor0.col1 AS col1 FROM tab1 cor0
----
61
64
77

query I rowsort
SELECT DISTINCT + col1 * 62 FROM tab0
----
5332
5642
6014

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

query I rowsort
SELECT DISTINCT + col1 * - 44 AS col2 FROM tab1
----
-1144
-440
-572

query I rowsort
SELECT - ( + 98 ) FROM tab0, tab2 cor0
----
9 values hashing to f17b7008a7deae1eb5a2e707ec237638

query I rowsort
SELECT 86 + cor0.col0 - + 42 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 1cf73cb6d66e7a22d0f97e411ec8dff7

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

query I rowsort
SELECT + col0 * - 54 + - col2 FROM tab0 AS cor0
----
-1329
-1891
-4888

query I rowsort
SELECT ALL - col1 * 71 AS col1 FROM tab2 AS cor0
----
-1207
-2201
-4189

onlyif mysql # use DIV operator for integer division
query I rowsort label-1709
SELECT + col0 DIV 23 col2 FROM tab2
----
0
3
3

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col0 * - col1 col1 FROM tab0 AS cor0
----
2064
3395
8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col1 * - col0 col2 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT - + col0 + ( + 87 ) FROM tab2 AS cor0
----
8
80
9

query I rowsort
SELECT col1 + + 6 FROM tab1 AS cor0
----
16
19
32

query I rowsort
SELECT + ( 97 ) * - col1 + + col1 * 24 * - cor0.col1 AS col1 FROM tab0 AS cor0
----
-185846
-207571
-235225

query I rowsort
SELECT - col2 * - 43 AS col2 FROM tab1
----
2322
2451
4128

query I rowsort
SELECT DISTINCT + col1 * - 78 FROM tab0 AS cor0
----
-6708
-7098
-7566

query I rowsort
SELECT + ( - col1 ) * + col1 + - 22 AS col2 FROM tab2 AS cor0
----
-311
-3503
-983

onlyif mysql # use DIV operator for integer division
query I rowsort label-1718
SELECT ALL cor0.col2 DIV ( - col0 ) AS col2 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-1718
SELECT ALL cor0.col2 / ( - col0 ) AS col2 FROM tab0 AS cor0
----
-1
0
0

query I rowsort
SELECT 80 * col1 FROM tab1 AS cor0
----
1040
2080
800

onlyif mysql # use DIV operator for integer division
query I rowsort label-1720
SELECT + + col2 + + col0 * - col1 DIV col1 AS col1 FROM tab2 AS cor0
----
-41
-52
20

skipif mysql # not compatible
query I rowsort label-1720
SELECT + + col2 + + col0 * - col1 / col1 AS col1 FROM tab2 AS cor0
----
-41
-52
20

query I rowsort
SELECT - ( cor0.col1 ) FROM tab0 cor0
----
-86
-91
-97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1722
SELECT CAST( NULL AS SIGNED ) col2 FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1722
SELECT CAST ( NULL AS INTEGER ) col2 FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ALL - col1 * col0 * ( col0 ) FROM tab2
----
-106097
-1519
-358956

query I rowsort
SELECT + col2 * col2 + col1 AS col2 FROM tab0 cor0
----
1175
6815
98

query I rowsort
SELECT DISTINCT + - 97 + - cor0.col0 FROM tab2 AS cor0
----
-104
-175
-176

query I rowsort
SELECT DISTINCT + 15 * col1 + 19 * - col1 FROM tab0 AS cor0
----
-344
-364
-388

query I rowsort
SELECT - 15 * col2 FROM tab2 cor0
----
-390
-405
-570

query I rowsort
SELECT + ( + col0 ) * + col0 AS col2 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT DISTINCT 90 * + col2 * 23 FROM tab2 AS cor0
----
53820
55890
78660

query I rowsort
SELECT + ( + col1 ) AS col1 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT ALL + ( + cor0.col1 ) + col0 * - col2 AS col0 FROM tab0 AS cor0
----
-706
-7207
62

query I rowsort
SELECT - - 29 FROM tab2 cor0
----
29
29
29

query I rowsort
SELECT DISTINCT + - col2 + - col1 AS col0 FROM tab1 AS cor0
----
-109
-67
-80

query I rowsort
SELECT + - col2 * + col0 AS col2 FROM tab2 cor0
----
-189
-2028
-3002

query I rowsort
SELECT ALL 96 * col0 FROM tab0 AS cor0
----
2304
3360
8544

onlyif mysql # use DIV operator for integer division
query I rowsort label-1736
SELECT + col1 + + col1 DIV col2 FROM tab0 AS cor0
----
194
88
92

skipif mysql # not compatible
query I rowsort label-1736
SELECT + col1 + + col1 / col2 FROM tab0 AS cor0
----
194
88
92

onlyif mysql # use DIV operator for integer division
query I rowsort label-1737
SELECT + col1 + 89 DIV col0 + + col2 col2 FROM tab2 cor0
----
56
70
86

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1737
SELECT + col1 + 89 / col0 + + col2 col2 FROM tab2 cor0
----
56
70
86

query I rowsort
SELECT - col1 + col1 * - 95 - col2 AS col2 FROM tab2 AS cor0
----
-1670
-3003
-5690

query I rowsort
SELECT + col2 * ( - col1 ) + col2 * ( - cor0.col1 ) + col1 AS col2 FROM tab0 AS cor0
----
-14833
-5590
-97

query I rowsort
SELECT - 86 + + col1 FROM tab0
----
0
11
5

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1741
SELECT CAST( NULL AS DECIMAL ) AS col0 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-1741
SELECT CAST ( NULL AS REAL ) AS col0 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT - col2 * 50 - - cor0.col1 AS col1 FROM tab1 AS cor0
----
-2674
-2840
-4787

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - - cor0.col2 col2 FROM tab2 cor0
----
52
54
76

query I rowsort
SELECT - cor0.col0 * col2 * - col0 + col2 * col2 FROM tab1 AS cor0
----
236721
3402
623616

query I rowsort
SELECT + col0 * - ( + 28 ) * - cor0.col1 - + col1 AS col2 FROM tab2 cor0
----
128797
37587
6045

query I rowsort
SELECT DISTINCT + + cor0.col1 FROM tab2, tab1, tab0 AS cor0
----
86
91
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 * - 90 col0 FROM tab2 AS cor0
----
-630
-7020
-7110

query I rowsort
SELECT ALL - - col2 + col1 AS col2 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT DISTINCT col2 + - cor0.col0 * - col2 AS col2 FROM tab1 AS cor0
----
216
3705
7776

query I rowsort
SELECT DISTINCT + col0 + 76 FROM tab0 AS cor0
----
100
111
165

query I rowsort
SELECT ALL + + 66 + - col2 FROM tab0 AS cor0
----
-16
33
65

onlyif mysql # use DIV operator for integer division
query I rowsort label-1752
SELECT DISTINCT col0 DIV col1 FROM tab2 cor0
----
0
1
4

skipif mysql # not compatible
query I rowsort label-1752
SELECT DISTINCT col0 / col1 FROM tab2 cor0
----
0
1
4

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab2, tab0 cor1, tab1, tab0 AS cor2
----
3645 values hashing to a3c09af95301183ccb084eb1936b14e3

query I rowsort
SELECT ALL col2 * tab2.col2 AS col0 FROM tab2
----
1444
676
729

query I rowsort
SELECT 68 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 599bee15ac4cc39b859854e07dfe7990

query I rowsort
SELECT 61 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 07149905a72bd87553381f34d19ed290

query I rowsort
SELECT DISTINCT - cor1.col1 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-86
-91
-97

query I rowsort
SELECT - cor0.col2 * cor1.col2 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b7b7b59ffe8969a28b6ae005f7e79060

query I rowsort
SELECT - 50 AS col2 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to faf91d5263c18db4877a3c30c47e2487

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1760
SELECT ALL CAST( + col2 AS SIGNED ) - - col0 * 54 FROM tab2
----
405
4238
4304

skipif mysql # not compatible
query I rowsort label-1760
SELECT ALL CAST ( + col2 AS INTEGER ) - - col0 * 54 FROM tab2
----
405
4238
4304

query I rowsort
SELECT ALL - + cor1.col1 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ccaa5dd3388d9ee0fea676fa35299fe5

query I rowsort
SELECT - ( col2 ) + + col2 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - col2 + 59 * col0 AS col1 FROM tab2 AS cor0
----
386
4576
4623

query I rowsort
SELECT + 54 * - 24 AS col2 FROM tab2 AS cor0
----
-1296
-1296
-1296

query I rowsort
SELECT - + col1 + - col1 + + col0 AS col2 FROM tab1 AS cor0
----
-49
44
54

query I rowsort
SELECT ALL - ( col0 ) * + col1 + + col0 FROM tab0 cor0
----
-2040
-3360
-8010

query I rowsort
SELECT ALL 92 * - col0 AS col0 FROM tab0 AS cor0
----
-2208
-3220
-8188

query I rowsort
SELECT - + col2 + + cor0.col0 * ( col1 ) + + col0 FROM tab2 AS cor0
----
1384
197
4654

onlyif mysql # use DIV operator for integer division
query I rowsort label-1769
SELECT + col2 - col0 DIV - ( - ( col1 ) ) col0 FROM tab1 AS cor0
----
51
54
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1769
SELECT + col2 - col0 / - ( - ( col1 ) ) col0 FROM tab1 AS cor0
----
51
54
90

onlyif mysql # use DIV operator for integer division
query I rowsort label-1770
SELECT DISTINCT - 86 DIV + col0 AS col2 FROM tab1 AS cor0
----
-1
-28

skipif mysql # not compatible
query I rowsort label-1770
SELECT DISTINCT - 86 / + col0 AS col2 FROM tab1 AS cor0
----
-1
-28

query I rowsort
SELECT + 22 * col1 + ( + col1 ) + + col1 * + 35 FROM tab0 AS cor0
----
4988
5278
5626

query I rowsort
SELECT cor0.col1 - + col0 FROM tab0 AS cor0
----
2
62
62

query I rowsort
SELECT ALL 79 + col2 FROM tab2 AS cor0
----
105
106
117

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1774
SELECT DISTINCT - + col2 * ( - col1 ) - col1 * CAST( - ( col1 ) AS SIGNED ) * - col0 AS col2 FROM tab2 AS cor0
----
-22185
-269984
-5890

skipif mysql # not compatible
query I rowsort label-1774
SELECT DISTINCT - + col2 * ( - col1 ) - col1 * CAST ( - ( col1 ) AS INTEGER ) * - col0 AS col2 FROM tab2 AS cor0
----
-22185
-269984
-5890

query I rowsort
SELECT ALL - + col2 + 56 AS col2 FROM tab2 AS cor0
----
18
29
30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col0 * col1 + + col2 col0 FROM tab2 AS cor0
----
-1305
-190
-4576

query I rowsort
SELECT ALL + 71 * col2 + col1 AS col1 FROM tab2 AS cor0
----
1905
1948
2715

query I rowsort
SELECT ALL + col2 * + ( col1 * ( col2 ) ) AS col1 FROM tab0 AS cor0
----
611884
93654
97

query I rowsort
SELECT ( - col0 ) * cor0.col1 AS col1 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT ALL - col0 + - ( col1 ) AS col0 FROM tab1 AS cor0
----
-29
-74
-93

query I rowsort
SELECT + + col2 * 48 FROM tab1 AS cor0
----
2592
2736
4608

query I rowsort
SELECT DISTINCT + ( col2 ) + - col0 FROM tab2 AS cor0
----
-41
-52
20

query I rowsort
SELECT DISTINCT + cor0.col0 + 28 * - col0 AS col0 FROM tab1 AS cor0
----
-1728
-2160
-81

query I rowsort
SELECT ALL + 49 * + col1 + col2 FROM tab0 cor0
----
4247
4541
4754

query I rowsort
SELECT DISTINCT 89 FROM tab0, tab1 cor0
----
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-1786
SELECT DISTINCT col1 DIV + 93 AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-1786
SELECT DISTINCT col1 / + 93 AS col1 FROM tab1
----
0

query I rowsort
SELECT - cor0.col0 AS col2 FROM tab1, tab0 AS cor0, tab2 AS cor1, tab2 AS cor2
----
81 values hashing to 26e45cd9fe71a2b90a8bdef20c88e70d

query I rowsort
SELECT ALL + 28 + cor0.col1 * col2 FROM tab2 AS cor0
----
1562
674
865

query I rowsort
SELECT DISTINCT col2 * cor0.col0 - + col0 FROM tab2 AS cor0
----
182
1950
2923

query I rowsort
SELECT ALL - col1 * col0 + - col1 FROM tab1 AS cor0
----
-104
-1053
-650

query I rowsort
SELECT 81 FROM tab0 cor0 CROSS JOIN tab1, tab1 AS cor1
----
27 values hashing to 0a85639e0dddbffdab2cb16b027cb360

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0 cor0 CROSS JOIN tab0, tab0 AS cor1, tab2 AS cor2
----
972 values hashing to 6dfb18fb846f922ba9ea60ce42b86fb0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1793
SELECT + - CAST( col2 AS SIGNED ) * - col0 AS col1 FROM tab1 AS cor0
----
162
3648
7680

skipif mysql # not compatible
query I rowsort label-1793
SELECT + - CAST ( col2 AS INTEGER ) * - col0 AS col1 FROM tab1 AS cor0
----
162
3648
7680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 * 42 * + col1 col1 FROM tab0 AS cor0
----
310632
347802
395178

query I rowsort
SELECT + ( + 75 * + col1 ) FROM tab1
----
1950
750
975

onlyif mysql # use DIV operator for integer division
query I rowsort label-1796
SELECT ( - col1 ) + col0 DIV 5 FROM tab2
----
-2
-30
-44

skipif mysql # not compatible
query I rowsort label-1796
SELECT ( - col1 ) + col0 / 5 FROM tab2
----
-2
-30
-44

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1797
SELECT - CAST( NULL AS SIGNED ) AS col2 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-1797
SELECT - CAST ( NULL AS INTEGER ) AS col2 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT + + cor0.col2 + + col2 FROM tab2 AS cor0
----
52
54
76

query I rowsort
SELECT ALL col2 * - ( col1 ) AS col0 FROM tab0
----
-2838
-7462
-97

query I rowsort
SELECT col2 - col1 * + col0 * + col0 FROM tab0
----
-118824
-49503
-720729

query I rowsort
SELECT DISTINCT + tab2.col0 * col2 + + tab2.col2 * + 91 * col0 AS col1 FROM tab2
----
17388
186576
276184

onlyif mysql # use DIV operator for integer division
query I rowsort label-1802
SELECT DISTINCT - col2 + col1 DIV + col1 + - 99 AS col1 FROM tab2
----
-124
-125
-136

skipif mysql # not compatible
query I rowsort label-1802
SELECT DISTINCT - col2 + col1 / + col1 + - 99 AS col1 FROM tab2
----
-124
-125
-136

query I rowsort
SELECT + col0 + + col0 * ( - col0 + col0 ) FROM tab0
----
24
35
89

query I rowsort
SELECT col0 * - col0 + 37 FROM tab0 cor0
----
-1188
-539
-7884

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1805
SELECT DISTINCT - + col1 * CAST( col2 AS SIGNED ) FROM tab1 cor0
----
-1248
-1404
-570

skipif mysql # not compatible
query I rowsort label-1805
SELECT DISTINCT - + col1 * CAST ( col2 AS INTEGER ) FROM tab1 cor0
----
-1248
-1404
-570

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1806
SELECT col1 + CAST( - col1 AS SIGNED ) FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1806
SELECT col1 + CAST ( - col1 AS INTEGER ) FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT col1 * col2 * + ( - col0 ) AS col1 FROM tab0
----
-3395
-664118
-68112

query I rowsort
SELECT ALL + col1 * col2 + col0 FROM tab1
----
1328
1407
634

query I rowsort
SELECT DISTINCT + 32 * - 93 AS col1 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
-2976

query I rowsort
SELECT col2 * - col2 + - ( 26 ) AS col0 FROM tab0
----
-1115
-27
-6750

query I rowsort
SELECT + + col0 + + ( col1 ) AS col1 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT ALL col1 * + 27 - + col1 * col2 FROM tab1 AS cor0
----
-300
-702
-897

query I rowsort
SELECT DISTINCT col2 + + col0 * + 48 - col2 FROM tab0 AS cor0
----
1152
1680
4272

query I rowsort
SELECT + col1 + - 91 FROM tab1 AS cor0
----
-65
-78
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 * col0 + col0 col0 FROM tab0 AS cor0
----
-7209
-768
0

query I rowsort
SELECT DISTINCT col1 + 66 FROM tab1 AS cor0
----
76
79
92

query I rowsort
SELECT col1 + - col1 * col1 AS col2 FROM tab0 cor0
----
-7310
-8190
-9312

query I rowsort
SELECT ALL - col0 * - col1 + + col2 - col0 AS col1 FROM tab1 AS cor0
----
1056
129
633

onlyif mysql # use DIV operator for integer division
query I rowsort label-1819
SELECT DISTINCT tab1.col0 * + 47 + + tab1.col0 DIV 5 AS col0 FROM tab1
----
141
3020
3776

skipif mysql # not compatible
query I rowsort label-1819
SELECT DISTINCT tab1.col0 * + 47 + + tab1.col0 / 5 AS col0 FROM tab1
----
141
3020
3776

query I rowsort
SELECT DISTINCT - ( + 32 ) * col2 + - col1 AS col1 FROM tab2
----
-1233
-891
-895

onlyif mysql # use DIV operator for integer division
query I rowsort label-1821
SELECT + - cor0.col1 * col1 + - ( + 10 ) * col2 + 1 DIV col2 FROM tab0 AS cor0
----
-7726
-9101
-9418

skipif mysql # not compatible
query I rowsort label-1821
SELECT + - cor0.col1 * col1 + - ( + 10 ) * col2 + 1 / col2 FROM tab0 AS cor0
----
-7726
-9101
-9418

query I rowsort
SELECT col1 + + col1 * 68 FROM tab1 AS cor0
----
1794
690
897

query I rowsort
SELECT ALL - 28 AS col0 FROM tab0
----
-28
-28
-28

query I rowsort
SELECT ALL ( 40 + col1 ) AS col1 FROM tab1
----
50
53
66

query I rowsort
SELECT - 52 * + col0 FROM tab0
----
-1248
-1820
-4628

query I rowsort
SELECT ALL + 24 * - tab1.col2 AS col2 FROM tab1
----
-1296
-1368
-2304

query I rowsort
SELECT ALL - col2 * col0 * - col1 AS col0 FROM tab0
----
3395
664118
68112

onlyif mysql # use DIV operator for integer division
query I rowsort label-1828
SELECT - + col1 * col0 DIV col0 - + col2 FROM tab1 AS cor0
----
-109
-67
-80

skipif mysql # not compatible
query I rowsort label-1828
SELECT - + col1 * col0 / col0 - + col2 FROM tab1 AS cor0
----
-109
-67
-80

query I rowsort
SELECT + 48 - - cor0.col1 AS col0 FROM tab0 cor0
----
134
139
145

query I rowsort
SELECT + - 41 + col1 AS col1 FROM tab0 AS cor0
----
45
50
56

query I rowsort
SELECT col2 * col2 + cor0.col2 * col1 AS col0 FROM tab0 AS cor0
----
14186
3927
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-1832
SELECT + - col2 DIV 84 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1832
SELECT + - col2 / 84 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + + col0 * ( + col1 * - col0 + 79 * col1 ) AS col0 FROM tab2 AS cor0
----
0
15624
4602

query I rowsort
SELECT ALL - col0 * 61 FROM tab1 AS cor0
----
-183
-3904
-4880

onlyif mysql # use DIV operator for integer division
query I rowsort label-1835
SELECT + col0 DIV col1 + - col0 FROM tab2 AS cor0
----
-7
-75
-77

skipif mysql # not compatible
query I rowsort label-1835
SELECT + col0 / col1 + - col0 FROM tab2 AS cor0
----
-7
-75
-77

query I rowsort
SELECT DISTINCT - + col0 * 5 AS col2 FROM tab2 AS cor0
----
-35
-390
-395

query I rowsort
SELECT DISTINCT col0 * + 33 * col1 AS col1 FROM tab1 AS cor0
----
21120
2574
34320

query I rowsort
SELECT DISTINCT col2 * 66 + + col2 AS col0 FROM tab2 AS cor0
----
1742
1809
2546

query I rowsort
SELECT + col0 * + 56 AS col2 FROM tab0 AS cor0
----
1344
1960
4984

query I rowsort
SELECT + - 65 FROM tab0 cor0
----
-65
-65
-65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor1.col2 col0 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
-54
-57
-96

query I rowsort
SELECT col1 + + 17 * - col1 AS col1 FROM tab2 AS cor0
----
-272
-496
-944

query I rowsort
SELECT - col2 + 86 FROM tab1 AS cor0
----
-10
29
32

query I rowsort
SELECT - 21 * + col2 FROM tab0 AS cor0
----
-1722
-21
-693

onlyif mysql # use DIV operator for integer division
query I rowsort label-1845
SELECT - - 87 DIV col1 FROM tab2 AS cor0
----
1
2
5

skipif mysql # not compatible
query I rowsort label-1845
SELECT - - 87 / col1 FROM tab2 AS cor0
----
1
2
5

onlyif mysql # use DIV operator for integer division
query I rowsort label-1846
SELECT DISTINCT - col0 + col2 DIV 49 AS col0 FROM tab1 AS cor0
----
-2
-63
-79

skipif mysql # not compatible
query I rowsort label-1846
SELECT DISTINCT - col0 + col2 / 49 AS col0 FROM tab1 AS cor0
----
-2
-63
-79

query I rowsort
SELECT ALL - + col0 * cor0.col1 + col1 * + cor0.col1 FROM tab1 AS cor0
----
-540
-871
598

query I rowsort
SELECT ALL - 35 FROM tab1, tab1 AS cor0
----
9 values hashing to c12e8bdd687c9040a5600dab3b6adf5b

query I rowsort
SELECT DISTINCT - ( 53 ) FROM tab0
----
-53

onlyif mysql # use DIV operator for integer division
query I rowsort label-1850
SELECT ALL col1 DIV + tab0.col0 col1 FROM tab0
----
1
2
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1850
SELECT ALL col1 / + tab0.col0 col1 FROM tab0
----
1
2
3

onlyif mysql # use DIV operator for integer division
query I rowsort label-1851
SELECT - + cor0.col2 + col2 DIV col1 FROM tab1 AS cor0
----
-52
-52
-89

skipif mysql # not compatible
query I rowsort label-1851
SELECT - + cor0.col2 + col2 / col1 FROM tab1 AS cor0
----
-52
-52
-89

query I rowsort
SELECT - 25 + col0 * + col1 AS col0 FROM tab0
----
2039
3370
8074

query I rowsort
SELECT + col0 * col1 * - col1 FROM tab0
----
-177504
-329315
-737009

query I rowsort
SELECT DISTINCT + + col0 * 35 + - col0 FROM tab1 AS cor0
----
102
2176
2720

query I rowsort
SELECT + + col2 * col1 + cor0.col0 FROM tab0 cor0
----
132
2862
7551

query I rowsort
SELECT DISTINCT col2 * + ( + col0 ) AS col0 FROM tab0
----
35
7298
792

query I rowsort
SELECT DISTINCT - - 42 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab2.col1 col1 FROM tab2, tab0 cor0
----
9 values hashing to ccaa5dd3388d9ee0fea676fa35299fe5

query I rowsort
SELECT col0 * + col0 * col1 AS col0 FROM tab0 AS cor0
----
118825
49536
720811

query I rowsort
SELECT + ( col2 ) * ( col0 ) FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT - ( col2 ) + + col0 * col1 * + col0 AS col0 FROM tab1
----
180
40903
83104

query I rowsort
SELECT col1 - tab1.col2 * + col2 FROM tab1
----
-2890
-3239
-9203

query I rowsort
SELECT DISTINCT + col2 * ( + col1 ) + - col0 * - ( ( + col2 ) + + ( 31 ) ) FROM tab0 AS cor0
----
1217
17519
4374

query I rowsort
SELECT - - cor0.col0 * + 76 * col2 AS col0 FROM tab0 AS cor0
----
2660
554648
60192

query I rowsort
SELECT DISTINCT cor0.col2 + - col2 * col1 AS col1 FROM tab0 AS cor0
----
-2805
-7380
-96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1866
SELECT ALL + col1 + CAST( 33 + - col0 AS SIGNED ) FROM tab0 AS cor0
----
35
95
95

skipif mysql # not compatible
query I rowsort label-1866
SELECT ALL + col1 + CAST ( 33 + - col0 AS INTEGER ) FROM tab0 AS cor0
----
35
95
95

query I rowsort
SELECT - 16 + col2 AS col1 FROM tab2 AS cor0
----
10
11
22

query I rowsort
SELECT ALL - col2 + 37 + + col1 AS col2 FROM tab1
----
-10
-46
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col1 * col0 + col1 * 67 + + col1 col2 FROM tab1 AS cor0
----
1320
1846
1924

query I rowsort
SELECT - ( cor0.col0 ) * col1 + - cor0.col1 FROM tab2 AS cor0
----
-1360
-248
-4661

query I rowsort
SELECT ALL 52 * + col0 AS col2 FROM tab0 AS cor0
----
1248
1820
4628

query I rowsort
SELECT ALL + + 92 AS col2 FROM tab0 AS cor0
----
92
92
92

query I rowsort
SELECT ALL + - ( col1 ) * - col1 FROM tab0 cor0
----
7396
8281
9409

query I rowsort
SELECT DISTINCT 67 * col2 + cor0.col1 * col2 FROM tab0 AS cor0
----
12956
164
5049

query I rowsort
SELECT col2 * + cor0.col1 * 33 FROM tab0 AS cor0
----
246246
3201
93654

query I rowsort
SELECT + + col2 + + col0 * + 62 FROM tab0 AS cor0
----
1521
2171
5600

query I rowsort
SELECT 61 * - col2 AS col1 FROM tab2 AS cor0
----
-1586
-1647
-2318

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 85 * - col1 col2 FROM tab2 AS cor0
----
1445
2635
5015

query I rowsort
SELECT + ( + col0 ) + - ( 68 ) * - col1 FROM tab0 AS cor0
----
5872
6277
6631

onlyif mysql # use DIV operator for integer division
query I rowsort label-1880
SELECT DISTINCT - ( col2 ) DIV + ( - col0 ) + col2 FROM tab1 AS cor0
----
57
72
97

skipif mysql # not compatible
query I rowsort label-1880
SELECT DISTINCT - ( col2 ) / + ( - col0 ) + col2 FROM tab1 AS cor0
----
57
72
97

query I rowsort
SELECT + ( col1 + col0 ) AS col0 FROM tab1
----
29
74
93

query I rowsort
SELECT + col1 * + col2 + + col0 AS col2 FROM tab1 AS cor0
----
1328
1407
634

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1883
SELECT DISTINCT - col2 / - cor0.col0 - - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1883
SELECT DISTINCT - col2 / - cor0.col0 - - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - + cor0.col1 * col0 - + col0 AS col0 FROM tab0 AS cor0
----
-2088
-3430
-8188

onlyif mysql # use DIV operator for integer division
query I rowsort label-1885
SELECT 13 + col1 DIV - col1 + - col0 AS col0 FROM tab2
----
-66
-67
5

skipif mysql # not compatible
query I rowsort label-1885
SELECT 13 + col1 / - col1 + - col0 AS col0 FROM tab2
----
-66
-67
5

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1886
SELECT + col1 * + col1 * + CAST( - col0 AS SIGNED ) col1 FROM tab1
----
-13520
-2028
-6400

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1886
SELECT + col1 * + col1 * + CAST ( - col0 AS INTEGER ) col1 FROM tab1
----
-13520
-2028
-6400

onlyif mysql # use DIV operator for integer division
query I rowsort label-1887
SELECT ALL - 54 + - col0 DIV ( - col1 ) AS col0 FROM tab2 AS cor0
----
-50
-53
-54

skipif mysql # not compatible
query I rowsort label-1887
SELECT ALL - 54 + - col0 / ( - col1 ) AS col0 FROM tab2 AS cor0
----
-50
-53
-54

query I rowsort
SELECT ALL 48 + cor0.col2 * + col2 AS col1 FROM tab1 cor0
----
2964
3297
9264

query I rowsort
SELECT - cor0.col0 * - col1 FROM tab1 cor0
----
1040
640
78

query I rowsort
SELECT ALL + col2 + cor0.col0 * col0 FROM tab2 AS cor0
----
6110
6279
76

query I rowsort
SELECT 22 + - col2 AS col0 FROM tab2 AS cor0
----
-16
-4
-5

query I rowsort
SELECT DISTINCT + cor0.col2 * - 50 + - 32 + col0 FROM tab2 AS cor0
----
-1254
-1375
-1853

query I rowsort
SELECT tab2.col0 + col2 * + ( 35 + - tab2.col1 ) AS col2 FROM tab2
----
-546
115
763

onlyif mysql # use DIV operator for integer division
query I rowsort label-1894
SELECT ALL + 28 DIV - col2 AS col2 FROM tab0
----
-28
0
0

skipif mysql # not compatible
query I rowsort label-1894
SELECT ALL + 28 / - col2 AS col2 FROM tab0
----
-28
0
0

query I rowsort
SELECT 68 AS col2 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 10aa25f1c6b97582c34521ac6452e0b4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 32 + 47 col0 FROM tab1 AS cor0
----
79
79
79

query I rowsort
SELECT + + 78 FROM tab0 cor0
----
78
78
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * 4 col2 FROM tab1 cor0
----
216
228
384

onlyif mysql # use DIV operator for integer division
query I rowsort label-1899
SELECT DISTINCT + col0 DIV 45 FROM tab0 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-1899
SELECT DISTINCT + col0 / 45 FROM tab0 AS cor0
----
0
1

query I rowsort
SELECT + + col1 - - col1 FROM tab1 AS cor0
----
20
26
52

query I rowsort
SELECT DISTINCT - col0 * 88 FROM tab0 AS cor0
----
-2112
-3080
-7832

query I rowsort
SELECT + - cor0.col2 * - cor0.col2 - + cor0.col2 FROM tab2 cor0
----
1406
650
702

query I rowsort
SELECT ALL + col2 * col1 - col2 FROM tab0 AS cor0
----
2805
7380
96

query I rowsort
SELECT 98 + col0 AS col0 FROM tab1 AS cor0
----
101
162
178

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + col2 col0 FROM tab1 AS cor0
----
108
114
192

query I rowsort
SELECT + + 76 + col2 FROM tab0 cor0
----
109
158
77

onlyif mysql # use DIV operator for integer division
query I rowsort label-1907
SELECT DISTINCT - 26 DIV - col2 AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1907
SELECT DISTINCT - 26 / - col2 AS col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT + - 78 * cor0.col0 * cor0.col1 AS col2 FROM tab1 AS cor0
----
-49920
-6084
-81120

query I rowsort
SELECT col0 + - 51 AS col1 FROM tab1
----
-48
13
29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - ( - 97 + + tab2.col2 ) * - 99 col2 FROM tab2
----
-182754
-187110
-221958

query I rowsort
SELECT ALL - tab2.col1 * + 32 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to cdcb3e6d751eca888cf36305a541a0b0

query I rowsort
SELECT - tab1.col0 + - col2 * - 86 AS col0 FROM tab1
----
4641
4838
8176

query I rowsort
SELECT ALL - col1 - col1 * col0 FROM tab1
----
-104
-1053
-650

query I rowsort
SELECT tab1.col0 * 95 - - col1 AS col2 FROM tab1
----
311
6090
7613

query I rowsort
SELECT DISTINCT 94 + col2 * - col1 FROM tab1
----
-1154
-1310
-476

query I rowsort
SELECT 29 AS col1 FROM tab2, tab2 cor0 CROSS JOIN tab0
----
27 values hashing to 4c56285992bcb76e1aac22e6d23d1318

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1917
SELECT ALL + CAST( NULL AS SIGNED ) * 15 + - col2 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1917
SELECT ALL + CAST ( NULL AS INTEGER ) * 15 + - col2 AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - - 99 * 3 - col1 AS col0 FROM tab1 AS cor0
----
271
284
287

query I rowsort
SELECT cor0.col0 * - col2 + col2 FROM tab0 AS cor0
----
-34
-7216
-759

query I rowsort
SELECT DISTINCT + col0 + + col0 * col0 AS col0 FROM tab1 AS cor0
----
12
4160
6480

query I rowsort
SELECT DISTINCT + col2 + col1 * + col0 AS col2 FROM tab2 AS cor0
----
1381
244
4628

onlyif mysql # use DIV operator for integer division
query I rowsort label-1922
SELECT ALL - col2 + - col2 DIV + col1 FROM tab0 AS cor0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-1922
SELECT ALL - col2 + - col2 / + col1 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT + 99 + col1 * + col1 FROM tab1 AS cor0
----
199
268
775

query I rowsort
SELECT DISTINCT + ( cor0.col1 ) + - col2 FROM tab1 AS cor0
----
-28
-47
-83

onlyif mysql # use DIV operator for integer division
query I rowsort label-1925
SELECT ALL + col0 DIV ( + col2 * col2 ) - 67 AS col0 FROM tab1 AS cor0
----
-67
-67
-67

skipif mysql # not compatible
query I rowsort label-1925
SELECT ALL + col0 / ( + col2 * col2 ) - 67 AS col0 FROM tab1 AS cor0
----
-67
-67
-67

query I rowsort
SELECT + ( - ( - col0 ) ) * - 92 - col0 FROM tab1 AS cor0
----
-279
-5952
-7440

query I rowsort
SELECT DISTINCT 15 AS col2 FROM tab0, tab2 AS cor0
----
15

query I rowsort
SELECT + + 89 + 13 * - col1 AS col2 FROM tab1 AS cor0
----
-249
-41
-80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1929
SELECT - - CAST( + ( col2 ) AS SIGNED ) * - CAST( col1 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-2838
-7462
-97

skipif mysql # not compatible
query I rowsort label-1929
SELECT - - CAST ( + ( col2 ) AS INTEGER ) * - CAST ( col1 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-2838
-7462
-97

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab1 AS cor0, tab2 cor1, tab0, tab1 AS cor2
----
3645 values hashing to 8bda8b9cf32f196464e0ee0b41a5162d

query I rowsort
SELECT + 32 FROM tab1, tab1 AS cor0
----
9 values hashing to d30a2acbf33c88274474306936d3227b

query I rowsort
SELECT + col1 + - col0 + col2 AS col2 FROM tab2
----
-24
51
7

query I rowsort
SELECT DISTINCT - ( 99 ) + col2 FROM tab1
----
-3
-42
-45

query I rowsort
SELECT ALL 28 + + 76 FROM tab2
----
104
104
104

query I rowsort
SELECT DISTINCT + ( + 5 ) AS col1 FROM tab1
----
5

query I rowsort
SELECT - cor0.col2 - col1 * 75 AS col2 FROM tab0 AS cor0
----
-6483
-6907
-7276

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - col2 - col1 col1 FROM tab1 AS cor0
----
-2942
-3259
-9229

query I rowsort
SELECT - - col2 * - col2 + col0 + col2 FROM tab0 AS cor0
----
-1032
-6553
35

query I rowsort
SELECT ( - col0 ) * + col1 - + 88 AS col1 FROM tab0 AS cor0
----
-2152
-3483
-8187

onlyif mysql # use DIV operator for integer division
query I rowsort label-1940
SELECT ALL tab0.col1 DIV + col1 AS col2 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1940
SELECT ALL tab0.col1 / + col1 AS col2 FROM tab0
----
1
1
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1941
SELECT cor1.col0 * CAST( NULL AS SIGNED ) FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-1941
SELECT cor1.col0 * CAST ( NULL AS INTEGER ) FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT ALL 73 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496

query I rowsort
SELECT - col1 * - cor0.col0 + + col1 * + cor0.col0 FROM tab2 AS cor0
----
2686
434
9204

query I rowsort
SELECT col1 + - col1 * + col0 FROM tab0 AS cor0
----
-1978
-3298
-8008

query I rowsort
SELECT 40 * - col0 FROM tab2
----
-280
-3120
-3160

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1946
SELECT ALL - - col1 + - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1946
SELECT ALL - - col1 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 * - col0 + - col2 * col0 FROM tab0 AS cor0
----
-1260
-1368
-15219

onlyif mysql # use DIV operator for integer division
query I rowsort label-1948
SELECT + + col0 * 88 * col2 + cor0.col0 DIV - col0 AS col2 FROM tab2 AS cor0
----
16631
178463
264175

skipif mysql # not compatible
query I rowsort label-1948
SELECT + + col0 * 88 * col2 + cor0.col0 / - col0 AS col2 FROM tab2 AS cor0
----
16631
178463
264175

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1949
SELECT - cor0.col1 * + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1949
SELECT - cor0.col1 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 + + ( cor0.col2 ) * col0 * - col2 FROM tab2 AS cor0
----
-114038
-5076
-52702

query I rowsort
SELECT ALL col1 + + col0 * + col2 AS col1 FROM tab1 cor0
----
188
3658
7693

onlyif mysql # use DIV operator for integer division
query I rowsort label-1952
SELECT DISTINCT - - CAST( + 36 AS SIGNED ) DIV col1 AS col0 FROM tab1 AS cor0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-1952
SELECT DISTINCT - - CAST ( + 36 AS INTEGER ) / col1 AS col0 FROM tab1 AS cor0
----
1
2
3

query I rowsort
SELECT ALL + col2 * col2 + col2 AS col2 FROM tab1 AS cor0
----
2970
3306
9312

query I rowsort
SELECT - cor0.col2 AS col1 FROM tab0, tab1 cor0
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba

query I rowsort
SELECT + 26 * 39 * col1 AS col0 FROM tab1 AS cor0
----
10140
13182
26364

query I rowsort
SELECT DISTINCT - ( col0 ) * cor0.col1 - ( - col1 ) FROM tab2 AS cor0
----
-1326
-186
-4543

query I rowsort
SELECT + tab1.col2 * - 0 AS col0 FROM tab1
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1958
SELECT DISTINCT - + CAST( NULL AS DECIMAL ) * col2 + - col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1958
SELECT DISTINCT - + CAST ( NULL AS REAL ) * col2 + - col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL 73 + col0 AS col1 FROM tab1 AS cor0
----
137
153
76

onlyif mysql # use DIV operator for integer division
query I rowsort label-1960
SELECT ALL col2 DIV col2 - + col1 FROM tab1 cor0
----
-12
-25
-9

skipif mysql # not compatible
query I rowsort label-1960
SELECT ALL col2 / col2 - + col1 FROM tab1 cor0
----
-12
-25
-9

onlyif mysql # use DIV operator for integer division
query I rowsort label-1961
SELECT DISTINCT - 67 + col2 + col2 DIV ( ( col1 ) ) AS col1 FROM tab0 AS cor0
----
-34
-66
15

skipif mysql # not compatible
query I rowsort label-1961
SELECT DISTINCT - 67 + col2 + col2 / ( ( col1 ) ) AS col1 FROM tab0 AS cor0
----
-34
-66
15

query I rowsort
SELECT ALL ( 90 ) - col0 FROM tab1 cor0
----
10
26
87

query I rowsort
SELECT - col2 + 5 FROM tab1 AS cor0
----
-49
-52
-91

onlyif mysql # use DIV operator for integer division
query I rowsort label-1964
SELECT ALL - + ( + col0 ) DIV cor0.col1 AS col1 FROM tab2 AS cor0
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-1964
SELECT ALL - + ( + col0 ) / cor0.col1 AS col1 FROM tab2 AS cor0
----
-1
-4
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1965
SELECT ALL CAST( 26 AS SIGNED ) FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to ede8226bb7e602e221f9d98345b4da37

skipif mysql # not compatible
query I rowsort label-1965
SELECT ALL CAST ( 26 AS INTEGER ) FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to ede8226bb7e602e221f9d98345b4da37

query I rowsort
SELECT + - 83 * cor0.col2 FROM tab2 AS cor0
----
-2158
-2241
-3154

query I rowsort
SELECT + cor0.col0 - - col2 * - col0 FROM tab2 AS cor0
----
-182
-1950
-2923

query I rowsort
SELECT col1 + - col2 * + 95 AS col2 FROM tab2 cor0
----
-2411
-2534
-3593

query I rowsort
SELECT + col1 * + cor0.col1 + ( ( col2 ) ) AS col0 FROM tab1 AS cor0
----
157
265
730

query I rowsort
SELECT + col1 + col1 * col0 AS col1 FROM tab0 cor0
----
2150
3492
8190

onlyif mysql # use DIV operator for integer division
query I rowsort label-1971
SELECT ALL - col1 DIV ( + col2 ) AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1971
SELECT ALL - col1 / ( + col2 ) AS col1 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-1972
SELECT + col1 + 44 * col0 + + cor0.col0 * cor0.col0 DIV col0 FROM tab1 AS cor0
----
161
2890
3613

skipif mysql # not compatible
query I rowsort label-1972
SELECT + col1 + 44 * col0 + + cor0.col0 * cor0.col0 / col0 FROM tab1 AS cor0
----
161
2890
3613

query I rowsort
SELECT + cor0.col0 + col2 - - 83 AS col2 FROM tab2 AS cor0
----
117
187
200

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 * - 89 * col0 + col1 col1 FROM tab0 cor0
----
-3018
-649431
-70402

query I rowsort
SELECT col0 * - col1 + - col1 AS col0 FROM tab0 AS cor0
----
-2150
-3492
-8190

query I rowsort
SELECT ALL + 76 * cor0.col0 + + col1 + col1 FROM tab2 AS cor0
----
594
6038
6046

query I rowsort
SELECT ALL + - col1 * col1 - - 4 FROM tab2 AS cor0
----
-285
-3477
-957

query I rowsort
SELECT DISTINCT 52 + + cor0.col1 * + col2 * - col2 FROM tab2 AS cor0
----
-22547
-24496
-39832

query I rowsort
SELECT ALL - 27 + + col1 AS col2 FROM tab1 AS cor0
----
-1
-14
-17

query I rowsort
SELECT ALL - + col0 + - cor0.col0 FROM tab0 cor0
----
-178
-48
-70

query I rowsort
SELECT ALL + - col2 + col0 * col1 FROM tab0 AS cor0
----
2031
3394
8017

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1982
SELECT ALL + ( - col0 ) + - CAST( NULL AS SIGNED ) * col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1982
SELECT ALL + ( - col0 ) + - CAST ( NULL AS INTEGER ) * col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-1983
SELECT ( + col0 * + col2 ) - - 10 DIV + col0 AS col2 FROM tab2
----
190
2028
3002

skipif mysql # not compatible
query I rowsort label-1983
SELECT ( + col0 * + col2 ) - - 10 / + col0 AS col2 FROM tab2
----
190
2028
3002

query I rowsort
SELECT col0 + 15 AS col1 FROM tab0
----
104
39
50

query I rowsort
SELECT + 70 * col2 AS col1 FROM tab2
----
1820
1890
2660

query I rowsort
SELECT 47 * 37 AS col1 FROM tab0
----
1739
1739
1739

query I rowsort
SELECT DISTINCT 18 + 39 FROM tab1
----
57

query I rowsort
SELECT ALL 49 + + cor0.col2 AS col2 FROM tab2 AS cor0
----
75
76
87

query I rowsort
SELECT - 35 * + col2 AS col1 FROM tab2 AS cor0
----
-1330
-910
-945

query I rowsort
SELECT ALL col1 * col1 * + 34 AS col1 FROM tab0 AS cor0
----
251464
281554
319906

onlyif mysql # use DIV operator for integer division
query I rowsort label-1991
SELECT DISTINCT - cor0.col2 + + col1 + - col1 DIV + 13 AS col2 FROM tab1 AS cor0
----
-30
-47
-84

skipif mysql # not compatible
query I rowsort label-1991
SELECT DISTINCT - cor0.col2 + + col1 + - col1 / + 13 AS col2 FROM tab1 AS cor0
----
-30
-47
-84

query I rowsort
SELECT DISTINCT - 32 - col2 FROM tab0 AS cor0
----
-114
-33
-65

query I rowsort
SELECT - 84 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 02f1688b8610806ca28739b1735f6ae4

query I rowsort
SELECT 67 * col2 + - col2 FROM tab2
----
1716
1782
2508

query I rowsort
SELECT - 36 + - col2 + ( - 31 ) * col1 FROM tab2 AS cor0
----
-1024
-1891
-601

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 52 + col2 * + ( + 49 ) col2 FROM tab0 AS cor0
----
101
1669
4070

query I rowsort
SELECT DISTINCT - col0 * - col2 * col1 FROM tab2 AS cor0
----
119652
51034
5859

query I rowsort
SELECT DISTINCT + col2 - 38 AS col0 FROM tab1 AS cor0
----
16
19
58

query I rowsort
SELECT ALL + ( 14 ) * cor0.col2 - col1 FROM tab2 AS cor0
----
305
347
515

query I rowsort
SELECT ALL - col1 - ( tab2.col0 ) * col1 FROM tab2
----
-1360
-248
-4661

query I rowsort
SELECT ALL - 57 FROM tab1, tab2 cor0
----
9 values hashing to 520dc393896969e02a72ab6c5d92126b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 50 col1 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52

query I rowsort
SELECT ALL - ( - 46 ) + col2 AS col2 FROM tab0
----
128
47
79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2004
SELECT ALL - CAST( col1 AS SIGNED ) + col0 FROM tab2
----
-24
19
62

skipif mysql # not compatible
query I rowsort label-2004
SELECT ALL - CAST ( col1 AS INTEGER ) + col0 FROM tab2
----
-24
19
62

query I rowsort
SELECT ALL col2 + col0 * - col2 AS col1 FROM tab2
----
-162
-2002
-2964

query I rowsort
SELECT DISTINCT + tab0.col0 + col2 * - col1 AS col1 FROM tab0
----
-2814
-62
-7373

query I rowsort
SELECT col0 + col1 * - col2 FROM tab0 cor0
----
-2814
-62
-7373

query I rowsort
SELECT 26 * col0 - col1 FROM tab2 cor0
----
151
1969
2037

query I rowsort
SELECT ALL + 77 + col0 * cor0.col2 AS col2 FROM tab1 cor0
----
239
3725
7757

query I rowsort
SELECT DISTINCT 74 - col2 FROM tab1 AS cor0
----
-22
17
20

query I rowsort
SELECT DISTINCT - 80 + col2 FROM tab2 AS cor0
----
-42
-53
-54

query I rowsort
SELECT ALL + 80 * - col0 AS col1 FROM tab2 AS cor0
----
-560
-6240
-6320

query I rowsort
SELECT + - col2 * cor0.col2 + - col2 FROM tab0 AS cor0
----
-1122
-2
-6806

query I rowsort
SELECT 36 + 9 AS col2 FROM tab2 AS cor0
----
45
45
45

query I rowsort
SELECT DISTINCT + ( - cor0.col2 ) + col1 * + col1 FROM tab2 AS cor0
----
251
3455
934

query I rowsort
SELECT + col1 * + col1 * col2 AS col0 FROM tab1
----
16224
36504
5700

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 cor0 CROSS JOIN tab0, tab2, tab0 AS cor1
----
3645 values hashing to 93ed44f621cc970f32b0cc9543b45262

query I rowsort
SELECT ALL 38 * 15 + + col1 FROM tab1 AS cor0
----
580
583
596

onlyif mysql # use DIV operator for integer division
query I rowsort label-2019
SELECT + cor0.col2 * col1 DIV - col2 - col2 AS col0 FROM tab1 AS cor0
----
-109
-67
-80

skipif mysql # not compatible
query I rowsort label-2019
SELECT + cor0.col2 * col1 / - col2 - col2 AS col0 FROM tab1 AS cor0
----
-109
-67
-80

query I rowsort
SELECT ALL - + 4 + - cor0.col1 * - col1 FROM tab0 AS cor0
----
7392
8277
9405

query I rowsort
SELECT 97 * + col0 * col2 FROM tab1 AS cor0
----
15714
353856
744960

query I rowsort
SELECT ALL + - 41 AS col0 FROM tab1 cor0
----
-41
-41
-41

query I rowsort
SELECT DISTINCT - col2 * + 36 AS col2 FROM tab1 AS cor0
----
-1944
-2052
-3456

query I rowsort
SELECT + col1 * cor0.col2 - cor0.col2 FROM tab0 cor0
----
2805
7380
96

query I rowsort
SELECT ALL col0 * + 44 FROM tab1 AS cor0
----
132
2816
3520

query I rowsort
SELECT + 20 FROM tab2, tab2 AS cor0, tab1, tab1 AS cor1
----
81 values hashing to 8550664862df5be7a3d3f6037537d2d8

query I rowsort
SELECT DISTINCT cor1.col1 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
17
31
59

query I rowsort
SELECT ALL + ( - col2 ) * col1 * col0 FROM tab2 AS cor0
----
-119652
-51034
-5859

query I rowsort
SELECT DISTINCT 87 + col1 * + col1 FROM tab1 AS cor0
----
187
256
763

query I rowsort
SELECT ALL - 95 * col2 FROM tab1 AS cor0
----
-5130
-5415
-9120

onlyif mysql # use DIV operator for integer division
query I rowsort label-2031
SELECT col1 + col0 DIV - col2 FROM tab0 AS cor0
----
62
86
90

skipif mysql # not compatible
query I rowsort label-2031
SELECT col1 + col0 / - col2 FROM tab0 AS cor0
----
62
86
90

query I rowsort
SELECT 30 * tab1.col1 FROM tab1
----
300
390
780

onlyif mysql # use DIV operator for integer division
query I rowsort label-2033
SELECT DISTINCT + 9 * cor0.col1 DIV col1 - + cor0.col1 FROM tab1 AS cor0
----
-1
-17
-4

skipif mysql # not compatible
query I rowsort label-2033
SELECT DISTINCT + 9 * cor0.col1 / col1 - + cor0.col1 FROM tab1 AS cor0
----
-1
-17
-4

query I rowsort
SELECT - col2 * col2 * - 31 + + col1 AS col2 FROM tab0 AS cor0
----
128
208535
33845

query I rowsort
SELECT + - 14 + col0 AS col1 FROM tab1 AS cor0
----
-11
50
66

query I rowsort
SELECT + 94 * - col1 + + col1 * + cor0.col0 FROM tab1 AS cor0
----
-182
-2366
-300

query I rowsort
SELECT - 88 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 467301f887614eb7beda22c561b0fad2

query I rowsort
SELECT ALL + col0 * - col2 + col1 FROM tab0 cor0
----
-706
-7207
62

query I rowsort
SELECT DISTINCT - col0 * ( 58 + + col1 ) FROM tab1
----
-252
-4352
-5680

query I rowsort
SELECT DISTINCT - - col0 * 46 AS col0 FROM tab1 AS cor0
----
138
2944
3680

query I rowsort
SELECT ALL 89 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743

onlyif mysql # use DIV operator for integer division
query I rowsort label-2042
SELECT ( - 86 ) + col0 DIV + ( + 54 ) FROM tab0 AS cor0
----
-85
-86
-86

skipif mysql # not compatible
query I rowsort label-2042
SELECT ( - 86 ) + col0 / + ( + 54 ) FROM tab0 AS cor0
----
-85
-86
-86

query I rowsort
SELECT - + 16 * 6 FROM tab1 AS cor0
----
-96
-96
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-2044
SELECT - col2 DIV 13 FROM tab0 AS cor0
----
-2
-6
0

skipif mysql # not compatible
query I rowsort label-2044
SELECT - col2 / 13 FROM tab0 AS cor0
----
-2
-6
0

query I rowsort
SELECT + - cor0.col0 * cor0.col1 - col1 FROM tab1 AS cor0
----
-104
-1053
-650

query I rowsort
SELECT DISTINCT - 3 AS col1 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT + 17 * col2 AS col0 FROM tab1 AS cor0
----
1632
918
969

query I rowsort
SELECT ALL 82 * + 52 FROM tab0 AS cor0
----
4264
4264
4264

query I rowsort
SELECT 4 + 16 AS col0 FROM tab1 cor0
----
20
20
20

query I rowsort
SELECT DISTINCT col1 * 95 FROM tab0 cor0
----
8170
8645
9215

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT col2 * CAST ( + col1 AS REAL ) * col2 FROM tab1
----
119808
32490
75816

query I rowsort
SELECT + col1 * ( + 6 ) * + col2 + + 56 AS col0 FROM tab0
----
17084
44828
638

query I rowsort
SELECT DISTINCT - 20 * + cor0.col2 + - 49 AS col1 FROM tab0 AS cor0
----
-1689
-69
-709

query I rowsort
SELECT + col1 * + col1 + - col1 AS col1 FROM tab0 AS cor0
----
7310
8190
9312

query I rowsort
SELECT ALL 79 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 4857f2e1b1dbd184de4827f145dd02a1

query I rowsort
SELECT - - cor0.col2 + + cor0.col2 FROM tab1 AS cor0
----
108
114
192

query I rowsort
SELECT 15 * col2 AS col0 FROM tab0 AS cor0
----
1230
15
495

query I rowsort
SELECT - col2 * - 24 FROM tab0 AS cor0
----
1968
24
792

query I rowsort
SELECT DISTINCT - ( - cor0.col1 ) AS col1 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
86
91
97

query I rowsort
SELECT + 39 + + col0 AS col1 FROM tab2
----
117
118
46

query I rowsort
SELECT col2 - + col1 FROM tab2 cor0
----
-33
-4
21

query I rowsort
SELECT 88 * - 6 + cor0.col0 FROM tab1 AS cor0
----
-448
-464
-525

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2063
SELECT DISTINCT + - CAST( col2 AS SIGNED ) * col0 + ( + col1 ) AS col0 FROM tab2 AS cor0
----
-158
-1969
-2985

skipif mysql # not compatible
query I rowsort label-2063
SELECT DISTINCT + - CAST ( col2 AS INTEGER ) * col0 + ( + col1 ) AS col0 FROM tab2 AS cor0
----
-158
-1969
-2985

query I rowsort
SELECT DISTINCT - ( col0 ) + col2 AS col2 FROM tab1 AS cor0
----
-7
16
51

query I rowsort
SELECT DISTINCT col0 * 54 + + col0 FROM tab1
----
165
3520
4400

query I rowsort
SELECT ( 33 ) * + cor0.col1 FROM tab0, tab2 AS cor0
----
9 values hashing to ca1c3aac59acee4d5db2847dddc1b912

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2067
SELECT - CAST( ( + col2 ) AS SIGNED ) + + col0 FROM tab1 AS cor0
----
-16
-51
7

skipif mysql # not compatible
query I rowsort label-2067
SELECT - CAST ( ( + col2 ) AS INTEGER ) + + col0 FROM tab1 AS cor0
----
-16
-51
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col1 ) + col1 col2 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT - ( + ( col0 ) ) + col1 FROM tab1
----
-54
-67
23

onlyif mysql # use DIV operator for integer division
query I rowsort label-2070
SELECT ALL tab2.col2 DIV col0 AS col0 FROM tab2
----
0
0
3

skipif mysql # not compatible
query I rowsort label-2070
SELECT ALL tab2.col2 / col0 AS col0 FROM tab2
----
0
0
3

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab0 AS cor0 CROSS JOIN tab0, tab1 cor1
----
972 values hashing to 9af67d6f98010464af5d560bf949d487

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2072
SELECT DISTINCT + - CAST( ( + col0 ) AS SIGNED ) FROM tab0 AS cor0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-2072
SELECT DISTINCT + - CAST ( ( + col0 ) AS INTEGER ) FROM tab0 AS cor0
----
-24
-35
-89

onlyif mysql # use DIV operator for integer division
query I rowsort label-2073
SELECT ALL + - col0 + + cor0.col1 DIV + col1 AS col1 FROM tab0 AS cor0
----
-23
-34
-88

skipif mysql # not compatible
query I rowsort label-2073
SELECT ALL + - col0 + + cor0.col1 / + col1 AS col1 FROM tab0 AS cor0
----
-23
-34
-88

query I rowsort
SELECT + cor0.col0 + cor0.col1 AS col1 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT ALL - col0 + 1 * - col1 AS col2 FROM tab1 cor0
----
-29
-74
-93

query I rowsort
SELECT ALL ( col0 ) * col0 AS col1 FROM tab0
----
1225
576
7921

query I rowsort
SELECT - col0 * - col2 * + col0 AS col2 FROM tab2 AS cor0
----
1323
158184
237158

query I rowsort
SELECT DISTINCT col1 * col0 + - ( - col2 ) AS col2 FROM tab1 AS cor0
----
1136
132
697

query I rowsort
SELECT DISTINCT + + col1 * + cor0.col0 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT ALL - + col1 * cor0.col0 AS col2 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT - 42 * - col1 AS col2 FROM tab2 AS cor0
----
1302
2478
714

query I rowsort
SELECT 82 FROM tab2, tab0 cor0
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c

query I rowsort
SELECT + col1 * - cor0.col0 + - ( - 34 ) FROM tab1 AS cor0
----
-1006
-44
-606

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 + + col1 col1 FROM tab2 cor0
----
118
34
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 - cor0.col0 col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - 36 * - col2 + col2 AS col0 FROM tab1 AS cor0
----
1998
2109
3552

query I rowsort
SELECT DISTINCT col1 + col0 * 63 FROM tab2 AS cor0
----
472
4973
4994

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2088
SELECT DISTINCT - CAST( - col0 AS SIGNED ) FROM tab0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-2088
SELECT DISTINCT - CAST ( - col0 AS INTEGER ) FROM tab0
----
24
35
89

query I rowsort
SELECT ALL ( 48 ) AS col1 FROM tab1
----
48
48
48

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2090
SELECT - CAST( + col2 AS SIGNED ) FROM tab1
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-2090
SELECT - CAST ( + col2 AS INTEGER ) FROM tab1
----
-54
-57
-96

query I rowsort
SELECT - tab0.col2 + + tab0.col0 + tab0.col2 FROM tab0
----
24
35
89

query I rowsort
SELECT + 94 * - col1 + + col0 AS col1 FROM tab1 AS cor0
----
-1142
-2441
-876

query I rowsort
SELECT + + 73 * cor0.col0 + - cor0.col1 FROM tab2 cor0
----
480
5635
5750

query I rowsort
SELECT DISTINCT cor0.col2 * tab0.col0 FROM tab0, tab2 AS cor0
----
9 values hashing to bf0d47ae26a3f9220ea7f127466fd7da

query I rowsort
SELECT - col0 * col0 * + col0 FROM tab0 cor0
----
-13824
-42875
-704969

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2096
SELECT + + col1 + + CAST( NULL AS SIGNED ) * cor0.col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2096
SELECT + + col1 + + CAST ( NULL AS INTEGER ) * cor0.col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-2097
SELECT - 90 DIV col1 - - col1 DIV col2 col1 FROM tab1 AS cor0
----
-3
-6
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2097
SELECT - 90 / col1 - - col1 / col2 col1 FROM tab1 AS cor0
----
-3
-6
-9

onlyif mysql # use DIV operator for integer division
query I rowsort label-2098
SELECT col0 * + tab1.col0 + tab1.col0 DIV col2 + col2 FROM tab1
----
4154
63
6496

skipif mysql # not compatible
query I rowsort label-2098
SELECT col0 * + tab1.col0 + tab1.col0 / col2 + col2 FROM tab1
----
4154
63
6496

query I rowsort
SELECT - 81 + 49 - col2 * ( col1 ) AS col2 FROM tab1
----
-1280
-1436
-602

query I rowsort
SELECT col2 - 24 AS col2 FROM tab0
----
-23
58
9

query I rowsort
SELECT - 97 * col0 AS col0 FROM tab1 AS cor0
----
-291
-6208
-7760

query I rowsort
SELECT col0 * + col1 * cor0.col2 FROM tab1 AS cor0
----
36480
4212
99840

query I rowsort
SELECT ALL 12 * - 39 AS col0 FROM tab1 cor0
----
-468
-468
-468

query I rowsort
SELECT ALL ( - col1 ) * + col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2105
SELECT DISTINCT col2 + + CAST( cor0.col1 + col1 AS SIGNED ) FROM tab1 AS cor0
----
106
122
77

skipif mysql # not compatible
query I rowsort label-2105
SELECT DISTINCT col2 + + CAST ( cor0.col1 + col1 AS INTEGER ) FROM tab1 AS cor0
----
106
122
77

query I rowsort
SELECT + col2 * col2 + col0 AS col2 FROM tab1 cor0
----
2919
3313
9296

query I rowsort
SELECT - cor0.col2 * cor0.col1 - + 56 FROM tab2 AS cor0
----
-1590
-702
-893

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2108
SELECT DISTINCT - col1 + + CAST( - cor0.col2 AS SIGNED ) * + col2 FROM tab0 AS cor0
----
-1175
-6815
-98

skipif mysql # not compatible
query I rowsort label-2108
SELECT DISTINCT - col1 + + CAST ( - cor0.col2 AS INTEGER ) * + col2 FROM tab0 AS cor0
----
-1175
-6815
-98

query I rowsort
SELECT cor0.col2 + 55 FROM tab0 AS cor0
----
137
56
88

query I rowsort
SELECT ALL col0 + cor0.col2 * + col1 FROM tab2 AS cor0
----
1612
725
844

query I rowsort
SELECT DISTINCT - + cor0.col0 * + cor0.col2 * - 34 + - col2 FROM tab2 AS cor0
----
102030
6399
68926

onlyif mysql # use DIV operator for integer division
query I rowsort label-2112
SELECT ALL col0 DIV + col0 FROM tab0 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2112
SELECT ALL col0 / + col0 FROM tab0 cor0
----
1
1
1

query I rowsort
SELECT 49 FROM tab1, tab1 cor0
----
9 values hashing to cb40783c0fff72e8802cdf0682e7cb55

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab0, tab2 cor2
----
3645 values hashing to ee83821bd928a072bc435d7135362ca1

query I rowsort
SELECT DISTINCT - col2 + 18 FROM tab2 cor0
----
-20
-8
-9

onlyif mysql # use DIV operator for integer division
query I rowsort label-2116
SELECT col2 + + col0 DIV - col0 col2 FROM tab1 AS cor0
----
53
56
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2116
SELECT col2 + + col0 / - col0 col2 FROM tab1 AS cor0
----
53
56
95

query I rowsort
SELECT ALL - + col0 * ( col0 ) AS col1 FROM tab0 AS cor0
----
-1225
-576
-7921

query I rowsort
SELECT + - cor0.col0 + + col2 * ( - col0 ) FROM tab2 AS cor0
----
-196
-2106
-3081

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 + 93 col0 FROM tab1 AS cor0
----
13
29
90

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2120
SELECT col2 * - CAST( NULL AS DECIMAL ) + - 10 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2120
SELECT col2 * - CAST ( NULL AS REAL ) + - 10 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT cor0.col1 * col1 + col0 - - col1 FROM tab0 cor0
----
7506
8461
9541

onlyif mysql # use DIV operator for integer division
query I rowsort label-2122
SELECT col0 DIV 94 + col2 DIV - col1 + ( - ( cor0.col1 ) ) AS col0 FROM tab1 cor0
----
-15
-20
-28

skipif mysql # not compatible
query I rowsort label-2122
SELECT col0 / 94 + col2 / - col1 + ( - ( cor0.col1 ) ) AS col0 FROM tab1 cor0
----
-15
-20
-28

query I rowsort
SELECT ALL + - 82 AS col1 FROM tab0 AS cor0
----
-82
-82
-82

query I rowsort
SELECT ALL + col0 * col0 * + col1 FROM tab0 AS cor0
----
118825
49536
720811

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2125
SELECT + - CAST( NULL AS DECIMAL ) * - col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2125
SELECT + - CAST ( NULL AS REAL ) * - col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 69 AS col1 FROM tab1, tab2 AS cor0, tab1 AS cor1, tab1 AS cor2
----
81 values hashing to b367033d2867a8ca951e3972e9b13154

onlyif mysql # use DIV operator for integer division
query I rowsort label-2127
SELECT + CAST( col1 AS SIGNED ) DIV col2 AS col1 FROM tab0 AS cor0
----
1
2
97

skipif mysql # not compatible
query I rowsort label-2127
SELECT + CAST ( col1 AS INTEGER ) / col2 AS col1 FROM tab0 AS cor0
----
1
2
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2128
SELECT DISTINCT CAST( cor0.col1 AS SIGNED ) * - col0 AS col1 FROM tab0 AS cor0
----
-2064
-3395
-8099

skipif mysql # not compatible
query I rowsort label-2128
SELECT DISTINCT CAST ( cor0.col1 AS INTEGER ) * - col0 AS col1 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT col2 + + 81 + + cor0.col1 AS col1 FROM tab2 AS cor0
----
136
139
166

query I rowsort
SELECT DISTINCT - cor1.col1 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
-17
-31
-59

query I rowsort
SELECT DISTINCT + col2 + 24 FROM tab1
----
120
78
81

query I rowsort
SELECT DISTINCT - col0 * col1 + + col1 AS col2 FROM tab1 cor0
----
-1027
-52
-630

query I rowsort
SELECT + ( col0 ) * + 31 FROM tab1 AS cor0
----
1984
2480
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( cor0.col1 ) + col2 col1 FROM tab1 cor0
----
109
67
80

query I rowsort
SELECT ALL 63 AS col0 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 38764a6e696d1a6b5095e29ef84959c0

query I rowsort
SELECT ALL cor0.col1 + + col1 + + cor0.col1 FROM tab0 AS cor0
----
258
273
291

query I rowsort
SELECT ALL + + cor0.col0 * col1 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT ALL - ( col1 ) + ( + col0 ) AS col2 FROM tab0 AS cor0
----
-2
-62
-62

query I rowsort
SELECT + 88 * col2 * col0 AS col1 FROM tab1 AS cor0
----
14256
321024
675840

query I rowsort
SELECT cor1.col0 FROM tab1, tab0 AS cor0, tab0 cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - - col2 * + col1 col1 FROM tab0
----
2871
7544
98

query I rowsort
SELECT + col2 + - col0 + col2 FROM tab2
----
-26
-3
47

query I rowsort
SELECT - tab0.col2 + col1 + - 98 AS col1 FROM tab0
----
-2
-45
-89

query I rowsort
SELECT DISTINCT + 13 AS col1 FROM tab2, tab1, tab2 AS cor0
----
13

query I rowsort
SELECT ALL + - 46 + tab2.col2 - cor0.col0 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to d147b5985cf69cbe43d3d7ee4f87439b

query I rowsort
SELECT DISTINCT 15 - - tab0.col0 AS col2 FROM tab0
----
104
39
50

query I rowsort
SELECT DISTINCT 46 AS col0 FROM tab2, tab1, tab0 cor0
----
46

query I rowsort
SELECT 48 + + col0 AS col1 FROM tab2
----
126
127
55

query I rowsort
SELECT + - col2 * + 61 FROM tab0 AS cor0
----
-2013
-5002
-61

query I rowsort
SELECT ALL + 97 * col2 AS col0 FROM tab1
----
5238
5529
9312

query I rowsort
SELECT DISTINCT + + col2 + 58 AS col2 FROM tab0 AS cor0
----
140
59
91

query I rowsort
SELECT - col1 + - ( - 40 ) FROM tab2 AS cor0
----
-19
23
9

query I rowsort
SELECT DISTINCT 14 AS col1 FROM tab1, tab0 AS cor0
----
14

query I rowsort
SELECT + col0 + 72 AS col2 FROM tab2 cor0
----
150
151
79

query I rowsort
SELECT DISTINCT - col2 + col0 * + ( col1 ) AS col2 FROM tab1 AS cor0
----
24
583
944

query I rowsort
SELECT cor0.col1 * + 22 + col2 AS col1 FROM tab2 AS cor0
----
1324
412
709

query I rowsort
SELECT ALL - col1 * 73 + - 65 * col2 * 92 AS col2 FROM tab1 AS cor0
----
-324818
-341590
-575029

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 95 * - 89 col0 FROM tab0
----
-8455
-8455
-8455

query I rowsort
SELECT ALL - 97 * - col0 AS col0 FROM tab1
----
291
6208
7760

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col2 col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 44 * - 29 col1 FROM tab2 AS cor0
----
-1276

query I rowsort
SELECT ALL col1 + col0 * + col2 AS col2 FROM tab0 AS cor0
----
132
7389
878

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2163
SELECT - CAST( NULL AS SIGNED ) AS col0 FROM tab2, tab2 AS cor0, tab1 AS cor1, tab0 AS cor2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

skipif mysql # not compatible
query I rowsort label-2163
SELECT - CAST ( NULL AS INTEGER ) AS col0 FROM tab2, tab2 AS cor0, tab1 AS cor1, tab0 AS cor2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

query I rowsort
SELECT DISTINCT - 41 * 3 FROM tab0 AS cor0
----
-123

query I rowsort
SELECT 93 * + col0 + - col2 AS col2 FROM tab0 AS cor0
----
2199
3254
8195

query I rowsort
SELECT DISTINCT + 41 * - col1 FROM tab0 AS cor0
----
-3526
-3731
-3977

query I rowsort
SELECT DISTINCT + col0 + + cor0.col1 AS col2 FROM tab1 cor0
----
29
74
93

query I rowsort
SELECT ALL - + 25 * + col1 * + ( + ( col0 ) ) FROM tab1 AS cor0
----
-16000
-1950
-26000

query I rowsort
SELECT DISTINCT cor0.col2 * - cor0.col2 AS col2 FROM tab0 AS cor0
----
-1
-1089
-6724

query I rowsort
SELECT ALL 23 * - col1 * 26 AS col1 FROM tab0 AS cor0
----
-51428
-54418
-58006

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 18 * col1 col0 FROM tab0 cor0
----
1548
1638
1746

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2172
SELECT ALL CAST( col0 AS SIGNED ) * col2 FROM tab1
----
162
3648
7680

skipif mysql # not compatible
query I rowsort label-2172
SELECT ALL CAST ( col0 AS INTEGER ) * col2 FROM tab1
----
162
3648
7680

query I rowsort
SELECT - 27 FROM tab1, tab1 AS cor0
----
9 values hashing to 90b76caf54a4e48ee4a9784f52997a6a

onlyif mysql # use DIV operator for integer division
query I rowsort label-2174
SELECT + col0 * + col0 DIV - col0 FROM tab0 AS cor0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-2174
SELECT + col0 * + col0 / - col0 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT ALL 15 + col2 AS col2 FROM tab0 cor0
----
16
48
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-2176
SELECT - col0 DIV col1 AS col0 FROM tab1 cor0
----
-6
-6
0

skipif mysql # not compatible
query I rowsort label-2176
SELECT - col0 / col1 AS col0 FROM tab1 cor0
----
-6
-6
0

query I rowsort
SELECT + 81 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267

query I rowsort
SELECT ALL + cor1.col0 * 56 + - 55 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 112548443586a4561810537a90e3a323

query I rowsort
SELECT ALL - ( 92 ) * + col2 FROM tab1 cor0
----
-4968
-5244
-8832

query I rowsort
SELECT 33 FROM tab1, tab0 AS cor0
----
9 values hashing to 620d384286e82d1c6c8b1b2b109a7da5

query I rowsort
SELECT ALL - 27 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 90b76caf54a4e48ee4a9784f52997a6a

query I rowsort
SELECT DISTINCT - 99 * - col0 + - col0 FROM tab1
----
294
6272
7840

query I rowsort
SELECT - ( - col2 ) + col0 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT - + cor0.col0 + col2 * - col0 FROM tab2 AS cor0
----
-196
-2106
-3081

query I rowsort
SELECT 30 AS col2 FROM tab0, tab0 AS cor0, tab0 cor1
----
27 values hashing to 6c98840ed134c765d56389f4150075f0

query I rowsort
SELECT DISTINCT - ( + col2 ) + + col2 FROM tab0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2187
SELECT ALL - cor0.col1 DIV 57 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-2187
SELECT ALL - cor0.col1 / 57 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT ALL 77 * - col0 FROM tab2
----
-539
-6006
-6083

query I rowsort
SELECT + col2 + - 98 FROM tab2 AS cor0
----
-60
-71
-72

query I rowsort
SELECT - cor0.col1 + ( col1 ) * cor0.col2 AS col2 FROM tab1 AS cor0
----
1235
1378
560

query I rowsort
SELECT - col1 + - ( col2 ) * col2 AS col0 FROM tab1 AS cor0
----
-2942
-3259
-9229

query I rowsort
SELECT - tab0.col1 AS col1 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84

query I rowsort
SELECT + 36 * + col0 AS col2 FROM tab1
----
108
2304
2880

query I rowsort
SELECT col2 * - col0 * - col2 - + col0 FROM tab0 AS cor0
----
0
26112
598347

query I rowsort
SELECT DISTINCT 23 * - col1 + 40 AS col0 FROM tab2
----
-1317
-351
-673

query I rowsort
SELECT - - col0 + cor0.col0 * col0 FROM tab1 AS cor0
----
12
4160
6480

query I rowsort
SELECT + - col1 + ( col0 ) + col2 FROM tab2 AS cor0
----
100
3
45

onlyif mysql # use DIV operator for integer division
query I rowsort label-2198
SELECT - - col1 * col0 * - 63 + - cor0.col1 DIV 91 + + col0 FROM tab2 AS cor0
----
-13664
-289848
-84530

skipif mysql # not compatible
query I rowsort label-2198
SELECT - - col1 * col0 * - 63 + - cor0.col1 / 91 + + col0 FROM tab2 AS cor0
----
-13664
-289848
-84530

query I rowsort
SELECT + col2 + - col2 - 2 FROM tab1
----
-2
-2
-2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab1.col2 * - col0 * - col0 + + col2 * 35 + - tab1.col2 * col1 col2 FROM tab1
----
-232047
-612288
0

query I rowsort
SELECT - col2 * 31 FROM tab0 AS cor0
----
-1023
-2542
-31

onlyif mysql # use DIV operator for integer division
query I rowsort label-2202
SELECT ALL - col0 * col1 DIV 29 FROM tab0 AS cor0
----
-117
-279
-71

skipif mysql # not compatible
query I rowsort label-2202
SELECT ALL - col0 * col1 / 29 FROM tab0 AS cor0
----
-117
-279
-71

query I rowsort
SELECT DISTINCT - col0 + col1 AS col1 FROM tab2 cor0
----
-19
-62
24

onlyif mysql # use DIV operator for integer division
query I rowsort label-2204
SELECT - cor0.col1 * + 16 + col2 + - col0 * col2 DIV + col1 FROM tab1 AS cor0
----
-368
-467
-702

skipif mysql # not compatible
query I rowsort label-2204
SELECT - cor0.col1 * + 16 + col2 + - col0 * col2 / + col1 FROM tab1 AS cor0
----
-368
-467
-702

query I rowsort
SELECT DISTINCT - - 43 AS col2 FROM tab0 cor0
----
43

query I rowsort
SELECT + col2 * 41 + cor0.col2 * 75 * col1 + - col0 FROM tab2 AS cor0
----
116038
49929
63875

query I rowsort
SELECT ALL 32 * col1 AS col2 FROM tab1 AS cor0
----
320
416
832

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 97 + ( cor0.col1 ) col2 FROM tab0 AS cor0
----
183
188
194

query I rowsort
SELECT DISTINCT - col1 + 58 * + col0 AS col2 FROM tab0 AS cor0
----
1306
1933
5071

query I rowsort
SELECT + - ( + col1 ) + cor0.col2 + + cor0.col1 AS col0 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT ALL - 50 + + col0 AS col0 FROM tab1 cor0
----
-47
14
30

query I rowsort
SELECT DISTINCT ( + cor0.col0 ) * - cor0.col0 * + 59 AS col2 FROM tab1 AS cor0
----
-241664
-377600
-531

query I rowsort
SELECT 88 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37

query I rowsort
SELECT DISTINCT col1 - 74 FROM tab1
----
-48
-61
-64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * ( col2 ) * - col1 col0 FROM tab2
----
-10982
-25947
-90506

query I rowsort
SELECT DISTINCT + col2 + - col2 * - cor0.col0 AS col0 FROM tab0 cor0
----
36
7380
825

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 - col0 col0 FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT - - 53 * col2 AS col1 FROM tab0 AS cor0
----
1749
4346
53

query I rowsort
SELECT ALL + + 0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - cor0.col1 * col0 + 24 FROM tab0 AS cor0
----
-2040
-3371
-8075

query I rowsort
SELECT 62 * + tab1.col1 * - tab1.col1 FROM tab1
----
-10478
-41912
-6200

query I rowsort
SELECT DISTINCT + 68 * + col1 AS col2 FROM tab1
----
1768
680
884

onlyif mysql # use DIV operator for integer division
query I rowsort label-2223
SELECT + + col0 DIV - col0 FROM tab1 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2223
SELECT + + col0 / - col0 FROM tab1 cor0
----
-1
-1
-1

query I rowsort
SELECT ( col0 * 57 ) AS col1 FROM tab0
----
1368
1995
5073

query I rowsort
SELECT col0 * - col0 + - col2 * - tab1.col1 * + col2 AS col1 FROM tab1
----
113408
28394
75807

query I rowsort
SELECT + col0 + tab1.col1 * tab1.col1 AS col0 FROM tab1
----
164
249
679

query I rowsort
SELECT - - cor0.col1 * cor0.col2 + + ( - 7 ) AS col1 FROM tab1 AS cor0
----
1241
1397
563

query I rowsort
SELECT - col1 + - col1 - + col1 * + col1 AS col0 FROM tab1
----
-120
-195
-728

onlyif mysql # use DIV operator for integer division
query I rowsort label-2229
SELECT col2 + - tab1.col2 DIV + col1 FROM tab1
----
52
52
89

skipif mysql # not compatible
query I rowsort label-2229
SELECT col2 + - tab1.col2 / + col1 FROM tab1
----
52
52
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + - col2 col0 FROM tab2 AS cor0
----
-21
33
4

query I rowsort
SELECT + 13 + - col0 AS col0 FROM tab2
----
-65
-66
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 71 * col2 + cor0.col2 * col2 col1 FROM tab0 cor0
----
12546
3432
72

query I rowsort
SELECT ALL ( col1 ) * - 59 - col2 * col1 * col1 FROM tab0 AS cor0
----
-15132
-249142
-684411

query I rowsort
SELECT - col0 * - col0 - col1 * - cor0.col0 FROM tab0 AS cor0
----
16020
2640
4620

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2235
SELECT DISTINCT - ( col1 ) + - CAST( NULL AS SIGNED ) / - col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2235
SELECT DISTINCT - ( col1 ) + - CAST ( NULL AS INTEGER ) / - col2 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * - col0 + ( - col1 ) * col2 col2 FROM tab2 cor0
----
-6887
-7618
-886

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col1 - + col0 col0 FROM tab2 AS cor0
----
-137
-38
-96

query I rowsort
SELECT DISTINCT 27 + - col2 FROM tab0 AS cor0
----
-55
-6
26

query I rowsort
SELECT ALL - ( - col1 ) * ( - col1 * col1 ) FROM tab0 cor0
----
-636056
-753571
-912673

query I rowsort
SELECT col0 * col0 - + 45 AS col2 FROM tab2 AS cor0
----
4
6039
6196

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2241
SELECT ALL + ( col2 ) * + CAST( NULL AS SIGNED ) * col0 col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2241
SELECT ALL + ( col2 ) * + CAST ( NULL AS INTEGER ) * col0 col0 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( + col1 ) + 4 FROM tab2 AS cor0
----
21
35
63

query I rowsort
SELECT + col0 * - col1 + 61 * + 14 AS col1 FROM tab0 AS cor0
----
-1210
-2541
-7245

query I rowsort
SELECT DISTINCT - 11 + - col1 * col0 FROM tab2 AS cor0
----
-1354
-228
-4613

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 * - col2 col1 FROM tab0 AS cor0
----
35
7298
792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 - + col1 col2 FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + col1 + - 24 col2 FROM tab0 AS cor0
----
-2088
-3419
-8123

query I rowsort
SELECT - col1 + + cor0.col2 AS col2 FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT + + col0 * 6 FROM tab1 AS cor0
----
18
384
480

query I rowsort
SELECT - col1 * - 30 + - 88 AS col0 FROM tab1 AS cor0
----
212
302
692

query I rowsort
SELECT DISTINCT + col2 + ( - col2 ) * - col0 AS col0 FROM tab1 AS cor0
----
216
3705
7776

onlyif mysql # use DIV operator for integer division
query I rowsort label-2252
SELECT col2 DIV - col0 + + 61 AS col2 FROM tab0 AS cor0
----
60
61
61

skipif mysql # not compatible
query I rowsort label-2252
SELECT col2 / - col0 + + 61 AS col2 FROM tab0 AS cor0
----
60
61
61

query I rowsort
SELECT DISTINCT - + col0 * - 76 AS col1 FROM tab2 cor0
----
532
5928
6004

onlyif mysql # use DIV operator for integer division
query I rowsort label-2254
SELECT ALL + + col1 + + col0 DIV - col1 AS col1 FROM tab2 AS cor0
----
13
31
58

skipif mysql # not compatible
query I rowsort label-2254
SELECT ALL + + col1 + + col0 / - col1 AS col1 FROM tab2 AS cor0
----
13
31
58

query I rowsort
SELECT ALL col1 + - ( + col2 ) * col2 AS col2 FROM tab0 AS cor0
----
-1003
-6633
96

query I rowsort
SELECT DISTINCT + col1 * 27 + col2 AS col0 FROM tab1 AS cor0
----
327
447
756

query I rowsort
SELECT 1 * - col2 AS col2 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT DISTINCT 93 * col1 AS col0 FROM tab1 AS cor0
----
1209
2418
930

query I rowsort
SELECT ALL + + 71 * + col2 FROM tab0 AS cor0
----
2343
5822
71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 29 + ( + col1 ) col2 FROM tab2 AS cor0
----
-12
2
30

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab2, tab0 AS cor2
----
3645 values hashing to 283f1c907a0999dbd972d3bd45746c06

query I rowsort
SELECT col0 + + 25 AS col1 FROM tab2
----
103
104
32

query I rowsort
SELECT DISTINCT - 4 AS col1 FROM tab1 AS cor0
----
-4

onlyif mysql # use DIV operator for integer division
query I rowsort label-2264
SELECT DISTINCT col1 DIV + col1 col1 FROM tab0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2264
SELECT DISTINCT col1 / + col1 col1 FROM tab0
----
1

query I rowsort
SELECT - - 93 AS col1 FROM tab0 AS cor0
----
93
93
93

query I rowsort
SELECT ALL - - col0 * - col1 + + col2 * - col2 FROM tab2 AS cor0
----
-2787
-5278
-946

query I rowsort
SELECT DISTINCT - + 16 * col1 AS col2 FROM tab0 cor0
----
-1376
-1456
-1552

query I rowsort
SELECT DISTINCT - - col1 * + col0 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT ALL col1 + 55 * cor0.col0 AS col2 FROM tab0 AS cor0
----
1406
2022
4986

query I rowsort
SELECT col1 * 16 FROM tab2 cor0
----
272
496
944

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2271
SELECT + CAST( NULL AS SIGNED ) + - col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2271
SELECT + CAST ( NULL AS INTEGER ) + - col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 * - ( col1 * col1 ) AS col1 FROM tab0
----
-244068
-679042
-9409

query I rowsort
SELECT - 16 + 7 FROM tab0 AS cor0
----
-9
-9
-9

query I rowsort
SELECT - - ( + cor0.col2 ) FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT + cor0.col1 * - cor0.col0 FROM tab1 AS cor0
----
-1040
-640
-78

onlyif mysql # use DIV operator for integer division
query I rowsort label-2276
SELECT ALL 50 * col2 DIV - col2 FROM tab0
----
-50
-50
-50

skipif mysql # not compatible
query I rowsort label-2276
SELECT ALL 50 * col2 / - col2 FROM tab0
----
-50
-50
-50

query I rowsort
SELECT - cor0.col2 * col0 AS col0 FROM tab2 AS cor0
----
-189
-2028
-3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-2278
SELECT ALL - 68 DIV - col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2278
SELECT ALL - 68 / - col1 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL 94 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab0 AS cor0, tab2 cor1, tab2, tab1 AS cor2
----
3645 values hashing to a8d2ba8b8eb568b0a9a1771ccb0a8f23

query I rowsort
SELECT DISTINCT 62 + + col2 FROM tab0
----
144
63
95

onlyif mysql # use DIV operator for integer division
query I rowsort label-2282
SELECT ALL + col1 * tab2.col0 + + 58 DIV - col0 FROM tab2
----
1343
209
4602

skipif mysql # not compatible
query I rowsort label-2282
SELECT ALL + col1 * tab2.col0 + + 58 / - col0 FROM tab2
----
1343
209
4602

query I rowsort
SELECT col1 * + col1 * 70 FROM tab2
----
20230
243670
67270

query I rowsort
SELECT col0 * 38 AS col1 FROM tab0
----
1330
3382
912

query I rowsort
SELECT ALL - ( 36 ) FROM tab1, tab0 AS cor0
----
9 values hashing to afecaf209e79e23b6674a73fffa3e837

query I rowsort
SELECT cor0.col2 + - 45 FROM tab2 AS cor0
----
-18
-19
-7

query I rowsort
SELECT col0 * - col1 + - col0 * col2 FROM tab1 AS cor0
----
-240
-4288
-8720

query I rowsort
SELECT ALL + + col0 + ( cor0.col0 ) AS col1 FROM tab0 AS cor0
----
178
48
70

onlyif mysql # use DIV operator for integer division
query I rowsort label-2289
SELECT DISTINCT + col1 DIV + ( + col1 ) + - col1 + cor0.col0 AS col1 FROM tab0 AS cor0
----
-1
-61

skipif mysql # not compatible
query I rowsort label-2289
SELECT DISTINCT + col1 / + ( + col1 ) + - col1 + cor0.col0 AS col1 FROM tab0 AS cor0
----
-1
-61

query I rowsort
SELECT ALL + col0 - - col0 AS col0 FROM tab0 AS cor0
----
178
48
70

onlyif mysql # use DIV operator for integer division
query I rowsort label-2291
SELECT + cor0.col2 + col0 DIV col0 AS col0 FROM tab1 AS cor0
----
55
58
97

skipif mysql # not compatible
query I rowsort label-2291
SELECT + cor0.col2 + col0 / col0 AS col0 FROM tab1 AS cor0
----
55
58
97

query I rowsort
SELECT + col1 - + cor0.col2 FROM tab0 AS cor0
----
53
9
96

query IIIIII rowsort
SELECT ALL * FROM tab1, tab2 AS cor0 WHERE NOT NULL = NULL
----

query I rowsort
SELECT col1 * - cor0.col2 - col0 AS col1 FROM tab2 AS cor0
----
-1612
-725
-844

query I rowsort
SELECT ALL - col0 / col1 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND + col0
----

query I rowsort
SELECT - col0 * col0 - - col0 * + col1 AS col0 FROM tab2 AS cor0
----
-1482
-4898
168

query I rowsort
SELECT ALL col1 AS col0 FROM tab2 WHERE NOT col2 * - col2 NOT BETWEEN NULL AND col2 + col0
----

query I rowsort
SELECT DISTINCT - col1 AS col2 FROM tab2 WHERE col0 IN ( col2 * + col0 * + tab2.col2 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-2299
SELECT DISTINCT col2 DIV col0 + col2 FROM tab2
----
26
30
38

skipif mysql # not compatible
query I rowsort label-2299
SELECT DISTINCT col2 / col0 + col2 FROM tab2
----
26
30
38

query I rowsort
SELECT ALL col2 + tab2.col2 AS col1 FROM tab2
----
52
54
76

query I rowsort
SELECT DISTINCT - col1 FROM tab1 WHERE - col0 = + col1 * + tab1.col0 + + col1
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-2302
SELECT + col1 * + col2 - col1 DIV + tab2.col0 AS col2 FROM tab2
----
1534
646
833

skipif mysql # not compatible
query I rowsort label-2302
SELECT + col1 * + col2 - col1 / + tab2.col0 AS col2 FROM tab2
----
1534
646
833

query I rowsort
SELECT DISTINCT - col1 + + tab2.col0 * col0 AS col1 FROM tab2
----
18
6025
6224

query I rowsort
SELECT DISTINCT + col0 * col1 + col1 FROM tab1
----
104
1053
650

query I rowsort
SELECT + col1 * col0 - col2 * + col0 AS col2 FROM tab1
----
-3008
-6640
-84

query I rowsort
SELECT + col1 AS col0 FROM tab0 WHERE NOT col2 NOT BETWEEN NULL AND ( col2 )
----

query I rowsort
SELECT DISTINCT + col0 + + col0 * + tab1.col1 FROM tab1
----
1120
704
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col0 * col0 + col1 col2 FROM tab0
----
1322
662
8012

query I rowsort
SELECT col2 + cor0.col0 + col0 AS col0 FROM tab0 AS cor0
----
260
71
81

query I rowsort
SELECT ALL tab2.col2 * + col0 + + col0 * - col2 FROM tab2
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2311
SELECT DISTINCT col2 DIV col1 + + col2 AS col2 FROM tab0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-2311
SELECT DISTINCT col2 / col1 + + col2 AS col2 FROM tab0
----
1
33
82

query I rowsort
SELECT ALL + col2 * - tab2.col2 + col2 * col2 FROM tab2
----
0
0
0

query I rowsort
SELECT col0 + tab2.col1 * - col1 FROM tab2
----
-210
-3403
-954

query I rowsort
SELECT DISTINCT tab2.col0 * col0 AS col0 FROM tab2
----
49
6084
6241

query I rowsort
SELECT DISTINCT tab2.col1 * cor0.col1 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 73681df8216070e2d6c1ade2e7109825

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * col1 col2 FROM tab2
----
1343
217
4602

query I rowsort
SELECT DISTINCT col2 * + col2 AS col2 FROM tab0
----
1
1089
6724

query I rowsort
SELECT DISTINCT + cor0.col1 * + col1 + + col1 - col2 * + col2 * cor0.col1 AS col2 FROM tab0 AS cor0
----
-603512
-86172
9409

query I rowsort
SELECT + cor0.col0 + + col2 * col2 AS col1 FROM tab1 AS cor0
----
2919
3313
9296

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 NOT IN ( col0 )
----

query I rowsort
SELECT + - col1 + - cor0.col1 * + cor0.col1 AS col0 FROM tab1 AS cor0
----
-110
-182
-702

query I rowsort
SELECT - col2 - + tab1.col0 * + col1 FROM tab1
----
-1136
-132
-697

query I rowsort
SELECT DISTINCT + ( col1 ) * + 89 FROM tab2
----
1513
2759
5251

query I rowsort
SELECT + col2 * col2 + + col0 AS col1 FROM tab1
----
2919
3313
9296

query I rowsort
SELECT col2 * ( + col0 ) * col2 AS col0 FROM tab2 AS cor0
----
114076
5103
52728

query I rowsort
SELECT DISTINCT cor0.col2 * + col1 AS col1 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT DISTINCT - cor0.col1 * + col2 AS col2 FROM tab0 cor0
----
-2838
-7462
-97

query I rowsort
SELECT + col1 + + col1 * + ( - col2 ) * col0 FROM tab2 AS cor0
----
-119593
-51017
-5828

query I rowsort
SELECT - col1 * - 43 AS col0 FROM tab0 AS cor0
----
3698
3913
4171

query I rowsort
SELECT ALL cor0.col1 + col0 * - col2 FROM tab0 AS cor0
----
-706
-7207
62

query I rowsort
SELECT ALL + col2 * col0 + - col1 AS col2 FROM tab2 AS cor0
----
158
1969
2985

onlyif mysql # use DIV operator for integer division
query I rowsort label-2332
SELECT ALL cor0.col0 + + 98 DIV + cor0.col1 col1 FROM tab1 AS cor0
----
6
73
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2332
SELECT ALL cor0.col0 + + 98 / + cor0.col1 col1 FROM tab1 AS cor0
----
6
73
87

query I rowsort
SELECT - col0 * 69 AS col0 FROM tab2 AS cor0
----
-483
-5382
-5451

query I rowsort
SELECT ALL + col1 + + 68 AS col1 FROM tab1 cor0
----
78
81
94

query I rowsort
SELECT DISTINCT - col2 * - 81 - ( + col1 ) * col0 FROM tab1 AS cor0
----
3977
4296
6736

query I rowsort
SELECT ALL - tab2.col1 + + col1 AS col1 FROM tab2
----
0
0
0

query I rowsort
SELECT + tab0.col0 + col2 * + col1 + col0 * - col1 AS col1 FROM tab0
----
-3263
-548
798

query I rowsort
SELECT DISTINCT + col2 * tab0.col0 * col1 FROM tab0
----
3395
664118
68112

onlyif mysql # use DIV operator for integer division
query I rowsort label-2339
SELECT col0 DIV - tab0.col0 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2339
SELECT col0 / - tab0.col0 FROM tab0
----
-1
-1
-1

query I rowsort
SELECT col0 + col1 + - col0 FROM tab2
----
17
31
59

query I rowsort
SELECT ALL tab2.col0 AS col2 FROM tab2 WHERE NOT ( col2 + col2 ) NOT IN ( col2 )
----

query I rowsort
SELECT + col0 + + col2 + col1 FROM tab2
----
134
163
65

query III rowsort
SELECT * FROM tab0 WHERE col0 * col2 + col0 + + col2 NOT IN ( - tab0.col2 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + col0 col1 FROM tab1
----
121
176
57

query I rowsort
SELECT - tab2.col2 FROM tab2 WHERE col2 / - col2 = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col0 + col1 - col0 * - col0 col2 FROM tab2
----
12227
12499
129

query I rowsort
SELECT DISTINCT - col2 * col1 * + col0 FROM tab1
----
-36480
-4212
-99840

query I rowsort
SELECT + col1 * - col1 + - col1 AS col1 FROM tab1
----
-110
-182
-702

onlyif mysql # use DIV operator for integer division
query I rowsort label-2349
SELECT ALL + col2 DIV - col1 col0 FROM tab0 cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2349
SELECT ALL + col2 / - col1 col0 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT - tab0.col2 + tab0.col1 FROM tab0 WHERE NOT NULL = + col2
----

query I rowsort
SELECT ALL - + col2 * - cor0.col0 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT + ( col2 ) * 51 FROM tab0 AS cor0
----
1683
4182
51

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL <> col2 * - col1
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col1 NOT IN ( tab0.col1 * col0 + + tab0.col1 - - col0 )
----

query I rowsort
SELECT col1 * col2 - - col1 * tab1.col2 FROM tab1
----
1140
2496
2808

query I rowsort
SELECT - 79 + + col1 AS col1 FROM tab2
----
-20
-48
-62

query I rowsort
SELECT ALL - col1 * col0 + - col0 FROM tab1 AS cor0
----
-1120
-704
-81

query I rowsort
SELECT DISTINCT col2 - + ( col1 ) * + col0 AS col2 FROM tab2 AS cor0
----
-1305
-190
-4576

query I rowsort
SELECT ALL col0 + 93 * + col0 FROM tab2 AS cor0
----
658
7332
7426

query I rowsort
SELECT DISTINCT + - cor0.col0 * - col2 FROM tab0 cor0
----
35
7298
792

query I rowsort
SELECT ALL + + col1 + 26 + - 77 AS col1 FROM tab1 AS cor0
----
-25
-38
-41

query I rowsort
SELECT DISTINCT - + cor0.col0 + ( + cor0.col2 ) * + cor0.col0 FROM tab0 AS cor0
----
0
7209
768

query I rowsort
SELECT ALL 53 FROM tab2, tab2 AS cor0, tab0 cor1
----
27 values hashing to 866ae1b4ab9e5b4043ac1bcfd413aaa6

query I rowsort
SELECT ALL + - col0 + col1 * col0 AS col0 FROM tab1 AS cor0
----
576
75
960

query I rowsort
SELECT ALL + cor0.col0 + 92 FROM tab1 AS cor0
----
156
172
95

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2366
SELECT DISTINCT + col2 * CAST( NULL AS SIGNED ) / + col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2366
SELECT DISTINCT + col2 * CAST ( NULL AS INTEGER ) / + col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2367
SELECT + col2 * CAST( ( - col1 ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-2838
-7462
-97

skipif mysql # not compatible
query I rowsort label-2367
SELECT + col2 * CAST ( ( - col1 ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-2838
-7462
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-2368
SELECT ALL + col0 + col2 DIV - ( col2 ) FROM tab0 AS cor0
----
23
34
88

skipif mysql # not compatible
query I rowsort label-2368
SELECT ALL + col0 + col2 / - ( col2 ) FROM tab0 AS cor0
----
23
34
88

query I rowsort
SELECT - col2 * + ( 55 ) AS col2 FROM tab0 AS cor0
----
-1815
-4510
-55

query I rowsort
SELECT ALL - col0 - 85 FROM tab2 cor0
----
-163
-164
-92

query I rowsort
SELECT DISTINCT col2 + - 36 FROM tab0 AS cor0
----
-3
-35
46

query I rowsort
SELECT col1 * 60 - + col1 AS col1 FROM tab2
----
1003
1829
3481

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2373
SELECT + - ( - 22 ) * col0 + - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2373
SELECT + - ( - 22 ) * col0 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 97 col2 FROM tab0 AS cor0
----
-97
-97
-97

query I rowsort
SELECT DISTINCT + 29 FROM tab0 cor0
----
29

query I rowsort
SELECT 28 - + col2 AS col0 FROM tab1 AS cor0
----
-26
-29
-68

query I rowsort
SELECT DISTINCT + 19 + col0 + tab0.col0 FROM tab0
----
197
67
89

query I rowsort
SELECT ALL 81 + - col0 * cor0.col0 FROM tab1 AS cor0
----
-4015
-6319
72

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2379
SELECT ALL - ( + col0 ) * + CAST( NULL AS SIGNED ) * + col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2379
SELECT ALL - ( + col0 ) * + CAST ( NULL AS INTEGER ) * + col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 * col2 * - col2 FROM tab2 AS cor0
----
114076
5103
52728

query I rowsort
SELECT DISTINCT 85 * - cor0.col2 AS col2 FROM tab2, tab1, tab1 AS cor0
----
-4590
-4845
-8160

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2382
SELECT + col1 * col1 + + CAST( ( - col1 ) AS SIGNED ) AS col0 FROM tab2 cor0
----
272
3422
930

skipif mysql # not compatible
query I rowsort label-2382
SELECT + col1 * col1 + + CAST ( ( - col1 ) AS INTEGER ) AS col0 FROM tab2 cor0
----
272
3422
930

query I rowsort
SELECT col1 * - col0 + cor0.col1 * col0 * + cor0.col2 AS col0 FROM tab1 cor0
----
35840
4134
98800

onlyif mysql # use DIV operator for integer division
query I rowsort label-2384
SELECT DISTINCT + + col0 * col1 - col0 DIV + 83 FROM tab2 AS cor0
----
1343
217
4602

skipif mysql # not compatible
query I rowsort label-2384
SELECT DISTINCT + + col0 * col1 - col0 / + 83 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT - col0 + - col1 * + 46 FROM tab1 AS cor0
----
-1199
-524
-678

query I rowsort
SELECT DISTINCT - + ( + col2 ) * - cor0.col0 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT ( + col2 ) * - 74 FROM tab1 AS cor0
----
-3996
-4218
-7104

onlyif mysql # use DIV operator for integer division
query I rowsort label-2388
SELECT DISTINCT + 94 DIV + cor0.col1 AS col2 FROM tab1 AS cor0
----
3
7
9

skipif mysql # not compatible
query I rowsort label-2388
SELECT DISTINCT + 94 / + cor0.col1 AS col2 FROM tab1 AS cor0
----
3
7
9

query I rowsort
SELECT - + 90 + + col0 * 1 FROM tab2 AS cor0
----
-11
-12
-83

query I rowsort
SELECT ALL - 31 * + col2 + col1 FROM tab2 AS cor0
----
-1161
-747
-806

query I rowsort
SELECT DISTINCT + 27 * + col2 AS col2 FROM tab2
----
1026
702
729

onlyif mysql # use DIV operator for integer division
query I rowsort label-2392
SELECT ALL + col1 DIV col2 FROM tab0 AS cor0
----
1
2
97

skipif mysql # not compatible
query I rowsort label-2392
SELECT ALL + col1 / col2 FROM tab0 AS cor0
----
1
2
97

query I rowsort
SELECT - 64 + col1 FROM tab0 AS cor0
----
22
27
33

query I rowsort
SELECT ALL + cor0.col0 + cor0.col0 * - cor0.col2 * col0 FROM tab0 AS cor0
----
-1190
-18984
-649433

query I rowsort
SELECT ALL + 27 * col1 + col1 AS col1 FROM tab2 AS cor0
----
1652
476
868

query I rowsort
SELECT ALL + 62 + col1 AS col0 FROM tab1 AS cor0
----
72
75
88

query I rowsort
SELECT DISTINCT - col2 + col0 * + col0 * col1 AS col2 FROM tab2 AS cor0
----
106059
1492
358930

query I rowsort
SELECT 28 + - col0 FROM tab2 AS cor0
----
-50
-51
21

query I rowsort
SELECT - col2 * + col0 * + col2 AS col0 FROM tab0 AS cor0
----
-26136
-35
-598436

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 col0 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63

query I rowsort
SELECT + cor0.col0 + - 94 FROM tab0 AS cor0
----
-5
-59
-70

query I rowsort
SELECT DISTINCT + col2 * - col2 + - cor0.col1 * + col1 AS col1 FROM tab0 AS cor0
----
-15005
-8485
-9410

query I rowsort
SELECT ALL + 30 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89

query I rowsort
SELECT DISTINCT + col0 * - col0 + cor0.col2 FROM tab1 AS cor0
----
-4039
-6304
45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( + col0 ) - col0 col0 FROM tab2 AS cor0
----
-14
-156
-158

query I rowsort
SELECT + + 81 + col0 * + col2 * col2 AS col0 FROM tab1 AS cor0
----
208017
737361
8829

query I rowsort
SELECT ALL 39 * cor0.col0 FROM tab0 AS cor0
----
1365
3471
936

query I rowsort
SELECT - 83 * 36 - col1 AS col0 FROM tab0 AS cor0
----
-3074
-3079
-3085

onlyif mysql # use DIV operator for integer division
query I rowsort label-2409
SELECT DISTINCT col1 DIV - col2 + - col2 FROM tab1 AS cor0
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-2409
SELECT DISTINCT col1 / - col2 + - col2 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT ALL - 66 + 17 * col1 AS col0 FROM tab0 cor0
----
1396
1481
1583

query I rowsort
SELECT + 93 + - 59 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 1146d159f0b9b4378a8b738b963f7039

query I rowsort
SELECT ALL + 6 + col2 * col2 + col1 * - col2 AS col1 FROM tab2 AS cor0
----
-102
-852
804

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2413
SELECT CAST( NULL AS SIGNED ) + - cor0.col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2413
SELECT CAST ( NULL AS INTEGER ) + - cor0.col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 2 + + cor0.col1 FROM tab2, tab1 AS cor0
----
12
15
28

query I rowsort
SELECT - col0 * - col1 + col1 AS col1 FROM tab2
----
1360
248
4661

onlyif mysql # use DIV operator for integer division
query I rowsort label-2416
SELECT DISTINCT col2 + - col0 DIV + col1 + tab2.col1 * - col1 FROM tab2
----
-255
-3456
-934

skipif mysql # not compatible
query I rowsort label-2416
SELECT DISTINCT col2 + - col0 / + col1 + tab2.col1 * - col1 FROM tab2
----
-255
-3456
-934

query I rowsort
SELECT DISTINCT 4 AS col0 FROM tab2, tab2 AS cor0
----
4

query I rowsort
SELECT - col2 + + col2 + - col1 AS col0 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT - + col2 + col0 - col2 FROM tab0 AS cor0
----
-42
-75
33

query I rowsort
SELECT ALL col2 * + 50 + - col1 + - tab0.col1 FROM tab0
----
-144
1478
3918

query I rowsort
SELECT ALL col1 + 58 FROM tab1
----
68
71
84

query I rowsort
SELECT ALL 91 FROM tab0, tab1 AS cor0
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277

query I rowsort
SELECT ALL + ( + 62 ) * col0 + col0 AS col1 FROM tab1
----
189
4032
5040

onlyif mysql # use DIV operator for integer division
query I rowsort label-2424
SELECT DISTINCT col0 DIV 95 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2424
SELECT DISTINCT col0 / 95 FROM tab0
----
0

query I rowsort
SELECT ALL - col2 + - ( - col1 * + col2 ) FROM tab0
----
2805
7380
96

query I rowsort
SELECT + ( col0 ) + - col0 + tab1.col1 AS col0 FROM tab1
----
10
13
26

onlyif mysql # use DIV operator for integer division
query I rowsort label-2427
SELECT DISTINCT col0 + 41 DIV - col2 FROM tab0
----
-6
23
89

skipif mysql # not compatible
query I rowsort label-2427
SELECT DISTINCT col0 + 41 / - col2 FROM tab0
----
-6
23
89

query I rowsort
SELECT DISTINCT - tab0.col2 * - col2 + - tab0.col2 FROM tab0
----
0
1056
6642

onlyif mysql # use DIV operator for integer division
query I rowsort label-2429
SELECT - col2 DIV + col1 AS col0 FROM tab2 AS cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-2429
SELECT - col2 / + col1 AS col0 FROM tab2 AS cor0
----
-2
0
0

query I rowsort
SELECT 86 * + cor0.col2 FROM tab1 AS cor0
----
4644
4902
8256

query I rowsort
SELECT col2 * - 82 FROM tab1 AS cor0
----
-4428
-4674
-7872

onlyif mysql # use DIV operator for integer division
query I rowsort label-2432
SELECT - ( + col0 ) * col0 DIV 77 FROM tab2 AS cor0
----
-79
-81
0

skipif mysql # not compatible
query I rowsort label-2432
SELECT - ( + col0 ) * col0 / 77 FROM tab2 AS cor0
----
-79
-81
0

query I rowsort
SELECT - + 94 * col0 FROM tab1 AS cor0
----
-282
-6016
-7520

query I rowsort
SELECT - ( + 62 ) + - col0 * 68 AS col2 FROM tab1 cor0
----
-266
-4414
-5502

onlyif mysql # use DIV operator for integer division
query I rowsort label-2435
SELECT + ( - col2 ) DIV cor0.col1 AS col0 FROM tab2 AS cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-2435
SELECT + ( - col2 ) / cor0.col1 AS col0 FROM tab2 AS cor0
----
-2
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - col1 col2 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT DISTINCT + col0 * - col2 * + 9 AS col2 FROM tab2 cor0
----
-1701
-18252
-27018

query I rowsort
SELECT + 39 + cor0.col1 * 15 AS col0 FROM tab1 cor0
----
189
234
429

onlyif mysql # use DIV operator for integer division
query I rowsort label-2439
SELECT col0 DIV col2 - col0 DIV col0 FROM tab0 AS cor0
----
-1
0
34

skipif mysql # not compatible
query I rowsort label-2439
SELECT col0 / col2 - col0 / col0 FROM tab0 AS cor0
----
-1
0
34

query I rowsort
SELECT + 29 + col0 FROM tab2 AS cor0
----
107
108
36

query I rowsort
SELECT + - col2 * col0 + col1 AS col0 FROM tab0 AS cor0
----
-706
-7207
62

query I rowsort
SELECT col2 * + 69 AS col2 FROM tab1
----
3726
3933
6624

query I rowsort
SELECT ALL col2 + cor0.col2 * + col0 AS col0 FROM tab0 cor0
----
36
7380
825

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * tab2.col0 col0 FROM tab2
----
49
6084
6241

query I rowsort
SELECT DISTINCT 58 + + col0 AS col2 FROM tab0 AS cor0
----
147
82
93

query I rowsort
SELECT ALL - col0 * col1 + - col2 FROM tab1 AS cor0
----
-1136
-132
-697

query I rowsort
SELECT + col1 + - 89 FROM tab0 AS cor0
----
-3
2
8

query I rowsort
SELECT ALL - ( + 90 ) + - col0 FROM tab1 AS cor0
----
-154
-170
-93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 5 col1 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 6035628694bdea36f584f3649088551d

query I rowsort
SELECT DISTINCT - 35 AS col2 FROM tab0, tab0 AS cor0
----
-35

query I rowsort
SELECT DISTINCT 48 FROM tab1, tab1 AS cor0
----
48

onlyif mysql # use DIV operator for integer division
query I rowsort label-2452
SELECT - 99 DIV col1 - + col1 FROM tab2
----
-22
-34
-60

skipif mysql # not compatible
query I rowsort label-2452
SELECT - 99 / col1 - + col1 FROM tab2
----
-22
-34
-60

query I rowsort
SELECT ALL cor0.col2 * - cor0.col2 + cor0.col1 FROM tab0 AS cor0
----
-1003
-6633
96

query I rowsort
SELECT - - col2 + 99 AS col1 FROM tab2 cor0
----
125
126
137

query I rowsort
SELECT + 50 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 314aace40e704c20a6be06204a329f80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2456
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col2 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-2456
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col2 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
NULL

query I rowsort
SELECT DISTINCT - col2 - col1 FROM tab0
----
-119
-173
-98

query I rowsort
SELECT DISTINCT + 82 + - col1 - - tab0.col0 AS col1 FROM tab0
----
20
80

query I rowsort
SELECT ALL - cor0.col2 - 73 FROM tab1, tab2 AS cor0
----
9 values hashing to d3d313bd1fd3fc5d0527eef0deecf0db

onlyif mysql # use DIV operator for integer division
query I rowsort label-2460
SELECT - col0 + col0 * + col1 * 11 + cor0.col2 DIV - col0 AS col1 FROM tab0 AS cor0
----
22679
37310
89000

skipif mysql # not compatible
query I rowsort label-2460
SELECT - col0 + col0 * + col1 * 11 + cor0.col2 / - col0 AS col1 FROM tab0 AS cor0
----
22679
37310
89000

query I rowsort
SELECT - ( col0 ) * - cor0.col2 + + 45 FROM tab2 AS cor0
----
2073
234
3047

query I rowsort
SELECT + col0 + - col1 + + 49 * col0 FROM tab2
----
319
3841
3933

query I rowsort
SELECT DISTINCT + 12 - - col1 AS col0 FROM tab1
----
22
25
38

query I rowsort
SELECT + col1 * 64 AS col0 FROM tab1 AS cor0
----
1664
640
832

query I rowsort
SELECT - cor0.col1 * + 69 + col0 + - cor0.col2 AS col0 FROM tab2 AS cor0
----
-1132
-2159
-4019

onlyif mysql # use DIV operator for integer division
query I rowsort label-2466
SELECT DISTINCT cor0.col1 DIV - col0 FROM tab1 AS cor0
----
-8
0

skipif mysql # not compatible
query I rowsort label-2466
SELECT DISTINCT cor0.col1 / - col0 FROM tab1 AS cor0
----
-8
0

query I rowsort
SELECT - col0 + - col2 + col1 * col2 * col2 AS col0 FROM tab0 AS cor0
----
61
611713
93597

query I rowsort
SELECT DISTINCT - col0 + - ( + col2 ) FROM tab1 AS cor0
----
-121
-176
-57

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2469
SELECT - col0 + - CAST( NULL AS SIGNED ) / - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2469
SELECT - col0 + - CAST ( NULL AS INTEGER ) / - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - + col2 * 93 AS col0 FROM tab2 cor0
----
-2418
-2511
-3534

query I rowsort
SELECT - + col2 + - ( + col0 ) FROM tab0 AS cor0
----
-171
-36
-57

query I rowsort
SELECT - col0 * ( + col2 ) + col0 * + col2 + + col2 AS col2 FROM tab2 AS cor0
----
26
27
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-2473
SELECT ALL + col1 + col1 DIV - col2 FROM tab0 AS cor0
----
0
84
90

skipif mysql # not compatible
query I rowsort label-2473
SELECT ALL + col1 + col1 / - col2 FROM tab0 AS cor0
----
0
84
90

query I rowsort
SELECT + - 66 * + col2 AS col0 FROM tab1 AS cor0
----
-3564
-3762
-6336

query I rowsort
SELECT - - 34 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 1146d159f0b9b4378a8b738b963f7039

query I rowsort
SELECT DISTINCT cor0.col1 * col0 + + col1 * col0 AS col1 FROM tab2 cor0
----
2686
434
9204

query I rowsort
SELECT ALL - 19 * - col2 FROM tab1 AS cor0
----
1026
1083
1824

query I rowsort
SELECT 79 + + col1 * + ( + 86 ) * - col0 AS col0 FROM tab2 AS cor0
----
-115419
-18583
-395693

query I rowsort
SELECT DISTINCT + col2 * col2 + col1 * - cor0.col1 FROM tab1 cor0
----
2240
3149
9047

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 85 col2 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to e4cf94cf0cc632acff30ad1dac617cb7

query I rowsort
SELECT DISTINCT - + col2 + col1 * 44 FROM tab2 AS cor0
----
1337
2570
710

query I rowsort
SELECT ALL ( + col0 ) + 89 FROM tab1 AS cor0
----
153
169
92

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2483
SELECT ALL + ( + col0 ) * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2483
SELECT ALL + ( + col0 ) * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 19 AS col2 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
-19

query I rowsort
SELECT 54 + - col0 FROM tab2
----
-24
-25
47

query I rowsort
SELECT + + col0 * + 85 * - col0 FROM tab0 AS cor0
----
-104125
-48960
-673285

query I rowsort
SELECT ALL ( col2 ) * - 30 AS col2 FROM tab1
----
-1620
-1710
-2880

query I rowsort
SELECT DISTINCT - 91 * 82 + + col1 + col0 FROM tab0 AS cor0
----
-7282
-7330
-7352

query I rowsort
SELECT DISTINCT - 43 AS col2 FROM tab2 AS cor0
----
-43

query I rowsort
SELECT - + ( 94 ) - cor0.col2 FROM tab1 AS cor0
----
-148
-151
-190

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2491
SELECT ALL - - CAST( + 68 AS SIGNED ) + - col2 AS col2 FROM tab1 AS cor0
----
-28
11
14

skipif mysql # not compatible
query I rowsort label-2491
SELECT ALL - - CAST ( + 68 AS INTEGER ) + - col2 AS col2 FROM tab1 AS cor0
----
-28
11
14

query I rowsort
SELECT + col2 - - col1 * col0 FROM tab0 AS cor0
----
2097
3396
8181

query I rowsort
SELECT DISTINCT - - col1 + - cor0.col1 FROM tab1 cor0
----
0

query I rowsort
SELECT ALL + 90 * + col1 FROM tab2 AS cor0
----
1530
2790
5310

query I rowsort
SELECT - 2 * col2 - col2 FROM tab1 AS cor0
----
-162
-171
-288

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2496
SELECT ALL - CAST( NULL AS DECIMAL ) + col1 + - col2 col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2496
SELECT ALL - CAST ( NULL AS REAL ) + col1 + - col2 col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 35 FROM tab0 AS cor0
----
35

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 - - col0 * 66 AS col0 FROM tab0 AS cor0
----
1584
2310
5874

skipif mysql # not compatible
query I rowsort
SELECT ALL - + CAST ( col1 AS REAL ) + - cor0.col1 AS col2 FROM tab1 AS cor0
----
-20
-26
-52

query I rowsort
SELECT - col0 + col2 * + 84 FROM tab1
----
4533
4724
7984

query I rowsort
SELECT ALL + col2 - - 86 FROM tab1
----
140
143
182

query I rowsort
SELECT ALL + col0 * 34 - + 8 AS col2 FROM tab1
----
2168
2712
94

query I rowsort
SELECT DISTINCT - col0 - 16 * - tab2.col1 * tab2.col2 FROM tab2
----
10257
13385
24466

query I rowsort
SELECT col2 + 26 AS col1 FROM tab1
----
122
80
83

query I rowsort
SELECT ALL 68 + + col2 FROM tab2
----
106
94
95

query I rowsort
SELECT DISTINCT ( + col2 ) + col2 * - ( col0 + - col2 ) * 51 FROM tab2
----
-68926
-79420
27567

query I rowsort
SELECT DISTINCT + 49 AS col1 FROM tab1 cor0
----
49

query I rowsort
SELECT ALL + col2 + 49 * col1 FROM tab1 AS cor0
----
1328
547
733

query I rowsort
SELECT ALL + col0 + 4 AS col2 FROM tab0 AS cor0
----
28
39
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 53 col0 FROM tab1 AS cor0
----
-53
-53
-53

query I rowsort
SELECT DISTINCT - col2 + - col0 * + col1 FROM tab2 AS cor0
----
-1381
-244
-4628

query I rowsort
SELECT DISTINCT 17 * col0 + col1 + col2 FROM tab1 AS cor0
----
1155
131
1469

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - ( - col1 ) col0 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT ALL + col2 + + 19 FROM tab0 AS cor0
----
101
20
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 23 * - 35 + - col2 col1 FROM tab1 AS cor0
----
-859
-862
-901

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 3 * - 58 + + col2 col0 FROM tab2
----
-136
-147
-148

query I rowsort
SELECT ( - 60 ) * col1 AS col0 FROM tab2
----
-1020
-1860
-3540

query I rowsort
SELECT ALL + col0 * col2 - cor0.col0 AS col1 FROM tab1 AS cor0
----
159
3584
7600

query I rowsort
SELECT + col2 * + col2 + - col0 FROM tab1 AS cor0
----
2913
3185
9136

onlyif mysql # use DIV operator for integer division
query I rowsort label-2521
SELECT + CAST( + col1 AS SIGNED ) DIV - col1 AS col2 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2521
SELECT + CAST ( + col1 AS INTEGER ) / - col1 AS col2 FROM tab1
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( col1 ) col2 FROM tab2
----
17
31
59

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2523
SELECT CAST( 39 AS SIGNED ) * col1 * col2 + 22 col0 FROM tab1
----
22252
48694
54778

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2523
SELECT CAST ( 39 AS INTEGER ) * col1 * col2 + 22 col0 FROM tab1
----
22252
48694
54778

query I rowsort
SELECT DISTINCT - 37 * col1 FROM tab0
----
-3182
-3367
-3589

query I rowsort
SELECT col0 * tab0.col0 * col0 AS col0 FROM tab0
----
13824
42875
704969

onlyif mysql # use DIV operator for integer division
query I rowsort label-2526
SELECT DISTINCT + + col1 * col0 + - col1 DIV + cor0.col2 col1 FROM tab0 AS cor0
----
2062
3298
8098

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2526
SELECT DISTINCT + + col1 * col0 + - col1 / + cor0.col2 col1 FROM tab0 AS cor0
----
2062
3298
8098

query I rowsort
SELECT + col0 - - cor0.col1 AS col2 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT - col2 * col1 + 47 * - col0 FROM tab0 AS cor0
----
-11645
-1742
-3966

query I rowsort
SELECT ALL 10 + + cor0.col2 * + col2 FROM tab1 AS cor0
----
2926
3259
9226

query I rowsort
SELECT - cor0.col2 * - cor0.col2 * - ( + 76 ) + col1 FROM tab2 AS cor0
----
-109727
-51317
-55373

query I rowsort
SELECT 29 * cor0.col1 AS col1 FROM tab0 AS cor0
----
2494
2639
2813

query I rowsort
SELECT ALL + col1 * + 82 AS col2 FROM tab2
----
1394
2542
4838

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2533
SELECT + + col0 * CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2533
SELECT + + col0 * CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + + cor0.col1 + + 35 FROM tab1 cor0
----
45
48
61

query I rowsort
SELECT DISTINCT col0 * ( 72 ) AS col2 FROM tab1 AS cor0
----
216
4608
5760

query I rowsort
SELECT ALL cor0.col0 * - col1 + col0 * + col0 - col0 AS col2 FROM tab1 AS cor0
----
-72
3392
5280

query I rowsort
SELECT - - col0 * ( + 68 ) FROM tab2 AS cor0
----
476
5304
5372

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * - col1 + col2 * + col2 + + 51 col0 FROM tab0 AS cor0
----
14237
149
3978

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * 39 col1 FROM tab0 AS cor0
----
1287
3198
39

query I rowsort
SELECT - col1 * - col2 * cor0.col1 AS col1 FROM tab2 AS cor0
----
10982
25947
90506

query I rowsort
SELECT DISTINCT col1 + 78 FROM tab1 AS cor0
----
104
88
91

query I rowsort
SELECT cor1.col2 FROM tab2, tab2 AS cor0, tab1 cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT + + col0 * 38 FROM tab0 AS cor0
----
1330
3382
912

query I rowsort
SELECT DISTINCT + col0 * - col2 + + col2 AS col2 FROM tab0 AS cor0
----
-34
-7216
-759

query I rowsort
SELECT cor0.col0 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT - col0 * - ( - col2 ) FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT + ( - col0 ) * + col2 FROM tab2
----
-189
-2028
-3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-2548
SELECT col0 DIV col0 col1 FROM tab2 AS cor0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2548
SELECT col0 / col0 col1 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT - ( + col1 ) * ( - ( col1 ) ) + 32 FROM tab2 cor0
----
321
3513
993

query I rowsort
SELECT - col1 * - tab2.col2 + + 39 AS col1 FROM tab2
----
1573
685
876

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2551
SELECT - col0 * + col1 * CAST( col1 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-13520
-2028
-6400

skipif mysql # not compatible
query I rowsort label-2551
SELECT - col0 * + col1 * CAST ( col1 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-13520
-2028
-6400

query I rowsort
SELECT 20 * - col2 + - 85 AS col2 FROM tab2 AS cor0
----
-605
-625
-845

query I rowsort
SELECT - col2 * + col2 * col2 AS col2 FROM tab2 AS cor0
----
-17576
-19683
-54872

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2554
SELECT ALL - col1 * - CAST( + col0 AS SIGNED ) FROM tab1 AS cor0
----
1040
640
78

skipif mysql # not compatible
query I rowsort label-2554
SELECT ALL - col1 * - CAST ( + col0 AS INTEGER ) FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT - 12 AS col0 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 3983bffe2adf88cb2efc3be93ee620c0

query I rowsort
SELECT - - col1 * ( - col0 ) * + col1 AS col2 FROM tab1 AS cor0
----
-13520
-2028
-6400

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2557
SELECT CAST( NULL AS SIGNED ) * + cor0.col2 + col1 + 27 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2557
SELECT CAST ( NULL AS INTEGER ) * + cor0.col2 + col1 + 27 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 23 * col2 AS col2 FROM tab2 AS cor0
----
598
621
874

query I rowsort
SELECT + + 95 - + ( col2 * + 25 ) FROM tab2 AS cor0
----
-555
-580
-855

query I rowsort
SELECT + + ( cor0.col1 ) AS col0 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT + ( - col0 ) + col2 * col2 + + ( - col0 ) * 43 AS col0 FROM tab0 AS cor0
----
-1539
2808
33

query I rowsort
SELECT col2 - - cor0.col0 * col1 AS col1 FROM tab1 AS cor0
----
1136
132
697

query I rowsort
SELECT + cor0.col2 * + col0 * + 14 + + col0 + col1 FROM tab2 AS cor0
----
2684
28529
42124

query I rowsort
SELECT ( cor0.col1 ) + 32 AS col0 FROM tab0 AS cor0
----
118
123
129

query I rowsort
SELECT 70 AS col0 FROM tab0, tab1, tab0 cor0
----
27 values hashing to c76157a7a7ec18de56823b2058b49f32

query I rowsort
SELECT 54 - - col2 * - col1 AS col1 FROM tab1 AS cor0
----
-1194
-1350
-516

onlyif mysql # use DIV operator for integer division
query I rowsort label-2567
SELECT DISTINCT - col1 DIV col0 + col1 FROM tab2 AS cor0
----
17
27
59

skipif mysql # not compatible
query I rowsort label-2567
SELECT DISTINCT - col1 / col0 + col1 FROM tab2 AS cor0
----
17
27
59

query I rowsort
SELECT ALL + + col2 * - col1 AS col0 FROM tab1 AS cor0
----
-1248
-1404
-570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 + col2 col2 FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT + + ( + col1 ) + - col2 FROM tab1 AS cor0
----
-28
-47
-83

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2571
SELECT ALL cor0.col0 * + cor0.col1 + CAST( NULL AS SIGNED ) * + 11 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2571
SELECT ALL cor0.col0 * + cor0.col1 + CAST ( NULL AS INTEGER ) * + 11 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 49 col1 FROM tab1 AS cor0
----
49
49
49

query I rowsort
SELECT ALL cor0.col0 * col2 * + col2 - col0 * - cor0.col1 FROM tab0 AS cor0
----
28200
3430
606535

query I rowsort
SELECT 91 * tab0.col2 AS col1 FROM tab0
----
3003
7462
91

query I rowsort
SELECT ( col2 * + 37 ) FROM tab1
----
1998
2109
3552

query I rowsort
SELECT ALL tab2.col0 + + col1 AS col2 FROM tab2
----
137
38
96

query I rowsort
SELECT DISTINCT cor0.col1 * + 97 FROM tab1, tab1 AS cor0
----
1261
2522
970

query I rowsort
SELECT + 13 AS col0 FROM tab0
----
13
13
13

query I rowsort
SELECT col2 + - col0 * - 71 AS col2 FROM tab2
----
524
5564
5647

query I rowsort
SELECT ALL 16 + col0 * - col1 FROM tab2 AS cor0
----
-1327
-201
-4586

query I rowsort
SELECT DISTINCT - ( 58 ) AS col0 FROM tab1 AS cor0
----
-58

onlyif mysql # use DIV operator for integer division
query I rowsort label-2582
SELECT ALL + ( 90 ) DIV - col2 + col0 col1 FROM tab0 AS cor0
----
-55
22
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2582
SELECT ALL + ( 90 ) / - col2 + col0 col1 FROM tab0 AS cor0
----
-55
22
88

query I rowsort
SELECT ( + col2 ) * col0 AS col0 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT DISTINCT - ( col2 ) - + cor0.col2 FROM tab0 AS cor0
----
-164
-2
-66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * + cor0.col2 + + col0 * + col2 col1 FROM tab2 AS cor0
----
-648
2356
494

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 5 col1 FROM tab2, tab0 cor0
----
9 values hashing to 74665fbb47d5b17da011bca567195b21

query I rowsort
SELECT ALL - col2 * 74 FROM tab0
----
-2442
-6068
-74

query I rowsort
SELECT DISTINCT + 8 - - ( + tab2.col1 ) FROM tab2
----
25
39
67

query I rowsort
SELECT 15 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd

query I rowsort
SELECT DISTINCT 6 * - col2 FROM tab0 cor0
----
-198
-492
-6

query I rowsort
SELECT ALL - ( - 58 ) * cor0.col0 + col2 AS col0 FROM tab0 AS cor0
----
1425
2031
5244

query I rowsort
SELECT ALL col1 + + 38 AS col2 FROM tab0 AS cor0
----
124
129
135

query I rowsort
SELECT + + col1 * 63 AS col2 FROM tab0 AS cor0
----
5418
5733
6111

onlyif mysql # use DIV operator for integer division
query I rowsort label-2594
SELECT col1 + - col1 DIV col1 col1 FROM tab1 AS cor0
----
12
25
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2594
SELECT col1 + - col1 / col1 col1 FROM tab1 AS cor0
----
12
25
9

query I rowsort
SELECT col2 + - col1 + 76 * tab0.col2 FROM tab0
----
-20
2455
6223

query I rowsort
SELECT ALL - tab2.col0 + 63 FROM tab2
----
-15
-16
56

query I rowsort
SELECT ALL - tab0.col2 + col0 * + ( + tab0.col1 ) + - col2 FROM tab0
----
1998
3393
7935

query I rowsort
SELECT DISTINCT tab1.col0 * 58 + 9 * - col0 FROM tab1
----
147
3136
3920

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2599
SELECT col0 * CAST( NULL AS DECIMAL ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2599
SELECT col0 * CAST ( NULL AS REAL ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 + + col0 * 21 AS col1 FROM tab1
----
117
1401
1776

query I rowsort
SELECT ALL + col0 * ( col2 ) * col0 AS col1 FROM tab2 AS cor0
----
1323
158184
237158

query I rowsort
SELECT DISTINCT - + col1 + ( col0 ) FROM tab2 cor0
----
-24
19
62

query I rowsort
SELECT ALL + col1 * 51 * + col0 FROM tab1 AS cor0
----
32640
3978
53040

query I rowsort
SELECT ALL col2 + - col0 * col0 * + col2 FROM tab1 AS cor0
----
-233415
-432
-614304

onlyif mysql # use DIV operator for integer division
query I rowsort label-2605
SELECT ALL col1 DIV ( 94 ) FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2605
SELECT ALL col1 / ( 94 ) FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - + 25 * + col0 FROM tab2 cor0
----
-175
-1950
-1975

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + col2 col0 FROM tab1 AS cor0
----
162
3648
7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-2608
SELECT ALL cor0.col2 DIV ( - col1 ) AS col0 FROM tab1 AS cor0
----
-2
-5
-7

skipif mysql # not compatible
query I rowsort label-2608
SELECT ALL cor0.col2 / ( - col1 ) AS col0 FROM tab1 AS cor0
----
-2
-5
-7

query I rowsort
SELECT DISTINCT - 59 * - col2 AS col1 FROM tab1 AS cor0
----
3186
3363
5664

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2610
SELECT + CAST( NULL AS SIGNED ) + + 7 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2610
SELECT + CAST ( NULL AS INTEGER ) + + 7 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-2611
SELECT ALL - + 49 + 43 DIV col2 AS col0 FROM tab0 AS cor0
----
-48
-49
-6

skipif mysql # not compatible
query I rowsort label-2611
SELECT ALL - + 49 + 43 / col2 AS col0 FROM tab0 AS cor0
----
-48
-49
-6

onlyif mysql # use DIV operator for integer division
query I rowsort label-2612
SELECT - 79 + + cor0.col2 * col0 DIV + ( - 82 ) FROM tab0 AS cor0
----
-168
-79
-88

skipif mysql # not compatible
query I rowsort label-2612
SELECT - 79 + + cor0.col2 * col0 / + ( - 82 ) FROM tab0 AS cor0
----
-168
-79
-88

query I rowsort
SELECT DISTINCT - + col1 * - col1 + col2 - - col2 FROM tab2 cor0
----
1015
3533
365

query I rowsort
SELECT 2 * + 43 + + col0 AS col2 FROM tab2 AS cor0
----
164
165
93

query I rowsort
SELECT DISTINCT col1 + col0 * tab0.col1 * col2 FROM tab0
----
3492
664209
68198

query I rowsort
SELECT DISTINCT col2 + + ( tab0.col0 + + col1 ) AS col0 FROM tab0
----
133
143
262

query I rowsort
SELECT ALL col1 * + 34 * 52 + tab1.col2 * tab1.col2 AS col0 FROM tab1
----
20929
32200
48884

query I rowsort
SELECT + col1 * 27 * col0 AS col1 FROM tab2
----
124254
36261
5859

query I rowsort
SELECT + tab0.col1 * col0 * 39 FROM tab0
----
132405
315861
80496

query I rowsort
SELECT - - col2 * 28 FROM tab2 AS cor0
----
1064
728
756

query I rowsort
SELECT + col0 + col0 + col0 FROM tab1 AS cor0
----
192
240
9

query I rowsort
SELECT - - col2 * cor0.col1 AS col1 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT ALL + 12 + col1 AS col2 FROM tab1 AS cor0
----
22
25
38

query I rowsort
SELECT ALL - + col2 + - col2 * col0 AS col0 FROM tab1 AS cor0
----
-216
-3705
-7776

query I rowsort
SELECT DISTINCT 78 AS col1 FROM tab1 AS cor0
----
78

query I rowsort
SELECT ALL cor0.col2 * col0 * col1 FROM tab1 AS cor0
----
36480
4212
99840

query I rowsort
SELECT col1 + + col0 * + 70 * - col1 FROM tab2 AS cor0
----
-15159
-322081
-93993

query I rowsort
SELECT 89 + col2 AS col2 FROM tab1 AS cor0
----
143
146
185

query I rowsort
SELECT DISTINCT + col0 * col0 + + col0 FROM tab1 cor0
----
12
4160
6480

query I rowsort
SELECT DISTINCT - + col0 + + cor0.col2 * 21 AS col1 FROM tab1 cor0
----
1131
1133
1936

query I rowsort
SELECT ALL + - col0 + + cor0.col2 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT DISTINCT col0 * col1 + + col1 * + 70 AS col0 FROM tab1 cor0
----
1340
1898
1950

query I rowsort
SELECT DISTINCT - + col0 + + col1 * - col0 * 57 AS col1 FROM tab0 AS cor0
----
-117672
-193550
-461732

query I rowsort
SELECT + - col0 * 66 - col0 AS col2 FROM tab2 AS cor0
----
-469
-5226
-5293

query I rowsort
SELECT - cor0.col2 + - col2 * + col1 AS col0 FROM tab1 AS cor0
----
-1344
-1458
-627

query I rowsort
SELECT + 46 + - col0 AS col2 FROM tab0
----
-43
11
22

query I rowsort
SELECT ALL col0 + + col2 * 28 * col0 FROM tab1
----
102208
215120
4539

query I rowsort
SELECT DISTINCT - col1 + + 93 AS col1 FROM tab1
----
67
80
83

query I rowsort
SELECT ALL - col0 + - 97 * col2 FROM tab1 cor0
----
-5241
-5593
-9392

query I rowsort
SELECT - - cor0.col2 AS col0 FROM tab0 cor0
----
1
33
82

query I rowsort
SELECT DISTINCT col2 * + col1 + - col0 FROM tab1 AS cor0
----
1168
1401
506

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2642
SELECT DISTINCT + col0 * CAST( NULL AS SIGNED ) + - col0 AS col0 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2642
SELECT DISTINCT + col0 * CAST ( NULL AS INTEGER ) + - col0 AS col0 FROM tab1 cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-2643
SELECT col0 DIV ( 49 ) FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2643
SELECT col0 / ( 49 ) FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT DISTINCT - - col2 + - 20 FROM tab0 cor0
----
-19
13
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-2645
SELECT + 53 * - 7 + + tab2.col0 * ( tab2.col2 ) DIV col1 col1 FROM tab2
----
-195
-337
-365

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2645
SELECT + 53 * - 7 + + tab2.col0 * ( tab2.col2 ) / col1 col1 FROM tab2
----
-195
-337
-365

query I rowsort
SELECT ( + col1 * col2 ) + col0 FROM tab2
----
1612
725
844

query I rowsort
SELECT - 40 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to f02f17e9bc17e514af018c6f245ed7a9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2648
SELECT ALL + CAST( NULL AS SIGNED ) + cor0.col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2648
SELECT ALL + CAST ( NULL AS INTEGER ) + cor0.col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - cor0.col0 * 80 + col0 FROM tab2 AS cor0
----
-553
-6162
-6241

query I rowsort
SELECT ALL + col2 - - col0 AS col2 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT ALL + cor0.col1 * + col2 AS col2 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT + ( cor0.col2 ) * + ( col2 * col0 + 56 ) AS col1 FROM tab1 AS cor0
----
11772
211128
742656

query I rowsort
SELECT + 30 AS col1 FROM tab0 cor0
----
30
30
30

query I rowsort
SELECT ALL - + col2 + + col0 * - col0 FROM tab1 AS cor0
----
-4153
-63
-6496

query I rowsort
SELECT DISTINCT - - col2 * - cor0.col1 AS col2 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT + - col1 * - col2 + - col2 FROM tab0 AS cor0
----
2805
7380
96

query I rowsort
SELECT ALL - cor0.col1 * col2 + - col2 * - col2 FROM tab2 AS cor0
----
-108
-858
798

query I rowsort
SELECT col2 + - col2 AS col1 FROM tab1 WHERE col0 BETWEEN NULL AND col2 AND NOT NULL < + col0 * + col0 - col2
----

query III rowsort
SELECT ALL * FROM tab2 WHERE - col0 NOT IN ( col1 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

query I rowsort
SELECT DISTINCT tab0.col0 + - col1 * - col2 + - col2 FROM tab0
----
131
2829
7469

onlyif mysql # use DIV operator for integer division
query I rowsort label-2661
SELECT col1 DIV - col2 + + col1 col0 FROM tab1 AS cor0
----
10
13
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2661
SELECT col1 / - col2 + + col1 col0 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT ALL - cor1.col0 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 09d8a912de1b8ab762e5ffbe028ce99e

query I rowsort
SELECT - 44 + - col2 FROM tab1 AS cor0
----
-101
-140
-98

query I rowsort
SELECT col0 - col2 * cor0.col0 AS col1 FROM tab0 AS cor0
----
-7209
-768
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2665
SELECT - col2 + - col2 DIV col2 AS col1 FROM tab0
----
-2
-34
-83

skipif mysql # not compatible
query I rowsort label-2665
SELECT - col2 + - col2 / col2 AS col1 FROM tab0
----
-2
-34
-83

query I rowsort
SELECT - tab0.col1 * + col1 - - col1 AS col0 FROM tab0
----
-7310
-8190
-9312

query I rowsort
SELECT col1 + col0 + col0 AS col1 FROM tab1
----
138
173
32

query I rowsort
SELECT ALL + + cor0.col0 + - col2 FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT col1 * col1 * col2 AS col1 FROM tab2 AS cor0
----
10982
25947
90506

query I rowsort
SELECT - col0 * col1 + cor0.col2 AS col0 FROM tab0 AS cor0
----
-2031
-3394
-8017

query I rowsort
SELECT DISTINCT tab0.col1 AS col1 FROM tab0 WHERE NOT NULL IN ( col0 * - col2 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-2672
SELECT DISTINCT col2 DIV col1 col2 FROM tab1
----
2
5
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2672
SELECT DISTINCT col2 / col1 col2 FROM tab1
----
2
5
7

query I rowsort
SELECT col2 + col0 + col0 AS col0 FROM tab1
----
185
256
60

query III rowsort
SELECT * FROM tab2 WHERE NULL IN ( col2 - col0 * + col0 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-2675
SELECT + col1 * tab1.col1 DIV + col0 FROM tab1
----
1
2
225

skipif mysql # not compatible
query I rowsort label-2675
SELECT + col1 * tab1.col1 / + col0 FROM tab1
----
1
2
225

onlyif mysql # use DIV operator for integer division
query I rowsort label-2676
SELECT ALL tab1.col1 DIV - tab1.col0 FROM tab1
----
-8
0
0

skipif mysql # not compatible
query I rowsort label-2676
SELECT ALL tab1.col1 / - tab1.col0 FROM tab1
----
-8
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2677
SELECT ALL col1 * - col2 DIV - col2 col1 FROM tab0
----
86
91
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2677
SELECT ALL col1 * - col2 / - col2 col1 FROM tab0
----
86
91
97

query I rowsort
SELECT col2 + + col1 + col2 FROM tab1
----
124
134
205

query I rowsort
SELECT ALL + col2 + col0 + - tab2.col1 AS col0 FROM tab2
----
100
3
45

query I rowsort
SELECT DISTINCT col1 + - col2 * - col2 AS col0 FROM tab2
----
1461
735
760

query I rowsort
SELECT DISTINCT + col1 * col0 AS col2 FROM tab1 WHERE ( + col1 ) = col1 + col0
----

query I rowsort
SELECT col2 - col0 * - col2 AS col1 FROM tab1
----
216
3705
7776

query I rowsort
SELECT ALL + - col1 + - cor0.col2 AS col0 FROM tab2 cor0
----
-55
-58
-85

onlyif mysql # use DIV operator for integer division
query I rowsort label-2684
SELECT ALL + 41 DIV - col0 - cor0.col1 * + col2 AS col1 FROM tab0 AS cor0
----
-2839
-7462
-98

skipif mysql # not compatible
query I rowsort label-2684
SELECT ALL + 41 / - col0 - cor0.col1 * + col2 AS col1 FROM tab0 AS cor0
----
-2839
-7462
-98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - col0 col2 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT DISTINCT + cor0.col2 * - col1 - + cor0.col0 AS col2 FROM tab2 AS cor0
----
-1612
-725
-844

query I rowsort
SELECT 3 + - col2 FROM tab0 AS cor0
----
-30
-79
2

query I rowsort
SELECT DISTINCT 76 * col0 FROM tab1 AS cor0
----
228
4864
6080

query I rowsort
SELECT ALL 24 * + col1 - ( + col2 ) * + col2 FROM tab0 AS cor0
----
-4540
2327
975

onlyif mysql # use DIV operator for integer division
query I rowsort label-2690
SELECT tab1.col0 * col0 DIV + col2 AS col2 FROM tab1
----
0
66
71

skipif mysql # not compatible
query I rowsort label-2690
SELECT tab1.col0 * col0 / + col2 AS col2 FROM tab1
----
0
66
71

onlyif mysql # use DIV operator for integer division
query I rowsort label-2691
SELECT - col2 + - tab0.col0 + + col1 DIV + col1 FROM tab0
----
-170
-35
-56

skipif mysql # not compatible
query I rowsort label-2691
SELECT - col2 + - tab0.col0 + + col1 / + col1 FROM tab0
----
-170
-35
-56

query I rowsort
SELECT + col1 + tab1.col0 + + tab1.col1 FROM tab1
----
106
55
84

query I rowsort
SELECT + col2 + col2 + col2 AS col0 FROM tab1
----
162
171
288

query I rowsort
SELECT DISTINCT + col0 + col1 - + col0 AS col0 FROM tab1
----
10
13
26

query I rowsort
SELECT DISTINCT - tab0.col0 + col2 + col1 FROM tab0
----
63
84
95

query I rowsort
SELECT ALL - + col1 + + col0 AS col1 FROM tab0 AS cor0
----
-2
-62
-62

query I rowsort
SELECT 98 + col1 AS col2 FROM tab0 AS cor0
----
184
189
195

query I rowsort
SELECT ALL 72 AS col2 FROM tab0 AS cor0
----
72
72
72

query I rowsort
SELECT col0 * + col2 - 70 * col1 FROM tab2 AS cor0
----
-1981
-2102
1812

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col2 = NULL
----

query I rowsort
SELECT + col2 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( + col0 * - col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * col2 * col1 col2 FROM tab2 AS cor0
----
119652
51034
5859

query I rowsort
SELECT DISTINCT - col2 * + col1 AS col0 FROM tab0 cor0
----
-2838
-7462
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-2704
SELECT ALL + col0 * - col0 + + col2 DIV - col0 FROM tab0
----
-1225
-577
-7921

skipif mysql # not compatible
query I rowsort label-2704
SELECT ALL + col0 * - col0 + + col2 / - col0 FROM tab0
----
-1225
-577
-7921

query I rowsort
SELECT col0 + + col0 * col1 FROM tab1
----
1120
704
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + col0 col0 FROM tab0
----
171
36
57

query I rowsort
SELECT - tab2.col0 * col2 AS col0 FROM tab2
----
-189
-2028
-3002

query I rowsort
SELECT DISTINCT + col2 * col2 AS col2 FROM tab2 WHERE NULL IN ( - col1 + - col1 )
----

query I rowsort
SELECT tab1.col1 * + col0 AS col2 FROM tab1
----
1040
640
78

query III rowsort
SELECT * FROM tab2 WHERE NULL IN ( + tab2.col0 * col1 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 NOT BETWEEN + col1 * + col2 + col0 * col1 / col1 AND ( + col0 )
----

query I rowsort
SELECT col1 + + col2 + + col0 AS col0 FROM tab0
----
133
143
262

onlyif mysql # use DIV operator for integer division
query I rowsort label-2713
SELECT - tab0.col0 DIV col1 AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2713
SELECT - tab0.col0 / col1 AS col0 FROM tab0
----
0
0
0

query I rowsort
SELECT 31 - col1 * + col1 FROM tab1
----
-138
-645
-69

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2715
SELECT CAST( NULL AS SIGNED ) AS col0 FROM tab2, tab1 AS cor0 CROSS JOIN tab0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-2715
SELECT CAST ( NULL AS INTEGER ) AS col0 FROM tab2, tab1 AS cor0 CROSS JOIN tab0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT ALL ( col0 ) * + col0 AS col1 FROM tab2
----
49
6084
6241

query I rowsort
SELECT DISTINCT cor0.col0 AS col1 FROM tab0, tab1, tab1 AS cor0
----
3
64
80

query I rowsort
SELECT DISTINCT + 4 + - col1 FROM tab0
----
-82
-87
-93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 79 * col1 col1 FROM tab1
----
1027
2054
790

onlyif mysql # use DIV operator for integer division
query I rowsort label-2720
SELECT ALL col2 + col1 * - ( + col2 ) + - col2 DIV col1 FROM tab1
----
-1159
-1352
-518

skipif mysql # not compatible
query I rowsort label-2720
SELECT ALL col2 + col1 * - ( + col2 ) + - col2 / col1 FROM tab1
----
-1159
-1352
-518

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2721
SELECT ALL ( - col2 ) * CAST( NULL AS SIGNED ) + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2721
SELECT ALL ( - col2 ) * CAST ( NULL AS INTEGER ) + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 + col1 * + col2 AS col0 FROM tab1 AS cor0
----
1261
1430
580

query I rowsort
SELECT - ( + 68 ) FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 6fbba7db5bccb533a35aa5125a231f88

query I rowsort
SELECT DISTINCT - ( col0 ) * - col1 + col0 AS col0 FROM tab2 AS cor0
----
1422
224
4680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2725
SELECT col0 * col0 + + CAST( cor0.col1 AS SIGNED ) FROM tab1 AS cor0
----
35
4106
6413

skipif mysql # not compatible
query I rowsort label-2725
SELECT col0 * col0 + + CAST ( cor0.col1 AS INTEGER ) FROM tab1 AS cor0
----
35
4106
6413

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2726
SELECT ALL col1 + cor0.col1 / + CAST( NULL AS SIGNED ) AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2726
SELECT ALL col1 + cor0.col1 / + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 * ( col1 * col0 + tab2.col2 ) FROM tab2
----
120328
52478
6588

query I rowsort
SELECT + tab0.col2 + + 58 AS col2 FROM tab0
----
140
59
91

query I rowsort
SELECT DISTINCT + - col2 * + 60 FROM tab0 cor0
----
-1980
-4920
-60

query I rowsort
SELECT col1 * col1 + - col2 FROM tab2 AS cor0
----
251
3455
934

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + col0 * - col0 col2 FROM tab2
----
-6143
-6258
-80

query I rowsort
SELECT DISTINCT col2 + - col1 * + col1 FROM tab2 AS cor0
----
-251
-3455
-934

query I rowsort
SELECT DISTINCT 44 + - col0 + col1 AS col0 FROM tab0 AS cor0
----
106
46

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2734
SELECT ALL - CAST( 96 AS SIGNED ) - col1 AS col1 FROM tab1 AS cor0
----
-106
-109
-122

skipif mysql # not compatible
query I rowsort label-2734
SELECT ALL - CAST ( 96 AS INTEGER ) - col1 AS col1 FROM tab1 AS cor0
----
-106
-109
-122

query I rowsort
SELECT + 33 + + col2 FROM tab0 AS cor0
----
115
34
66

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2736
SELECT ALL - CAST( + col1 AS SIGNED ) * col1 AS col2 FROM tab1 cor0
----
-100
-169
-676

skipif mysql # not compatible
query I rowsort label-2736
SELECT ALL - CAST ( + col1 AS INTEGER ) * col1 AS col2 FROM tab1 cor0
----
-100
-169
-676

query I rowsort
SELECT DISTINCT + col2 + - 83 AS col2 FROM tab1 cor0
----
-26
-29
13

query I rowsort
SELECT DISTINCT 18 + - col1 * + cor0.col1 FROM tab2 AS cor0
----
-271
-3463
-943

query I rowsort
SELECT DISTINCT cor0.col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
86
91
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-2740
SELECT ALL - 38 DIV col0 AS col2 FROM tab1 AS cor0
----
-12
0
0

skipif mysql # not compatible
query I rowsort label-2740
SELECT ALL - 38 / col0 AS col2 FROM tab1 AS cor0
----
-12
0
0

query I rowsort
SELECT ALL - - 12 * col1 FROM tab0 AS cor0
----
1032
1092
1164

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2742
SELECT - CAST( 59 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-59
-59
-59

skipif mysql # not compatible
query I rowsort label-2742
SELECT - CAST ( 59 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-59
-59
-59

query I rowsort
SELECT DISTINCT - 40 + col0 AS col2 FROM tab0 AS cor0
----
-16
-5
49

query I rowsort
SELECT DISTINCT - col0 + - 45 FROM tab1 cor0
----
-109
-125
-48

query I rowsort
SELECT DISTINCT + - 37 FROM tab1 AS cor0
----
-37

query I rowsort
SELECT - 81 AS col1 FROM tab0 cor0
----
-81
-81
-81

query I rowsort
SELECT ALL col2 * 90 FROM tab2
----
2340
2430
3420

query I rowsort
SELECT DISTINCT - ( - col0 ) * + col1 AS col0 FROM tab0 AS cor0
----
2064
3395
8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * 2 col1 FROM tab1 AS cor0
----
128
160
6

query I rowsort
SELECT ALL - + ( - col2 ) * col0 - ( cor0.col2 * - col1 ) AS col2 FROM tab1 AS cor0
----
1566
4218
8928

query I rowsort
SELECT - 64 * 53 AS col0 FROM tab0 AS cor0
----
-3392
-3392
-3392

query I rowsort
SELECT - 33 AS col0 FROM tab2 cor0
----
-33
-33
-33

query I rowsort
SELECT - 67 * - col2 * col2 FROM tab2 AS cor0
----
45292
48843
96748

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2754
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-2754
SELECT - CAST ( NULL AS INTEGER ) * - ( col0 ) col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 31 * + col2 AS col1 FROM tab0 AS cor0
----
-1023
-2542
-31

query I rowsort
SELECT + col1 * - 23 + + tab1.col2 AS col0 FROM tab1
----
-173
-203
-544

query I rowsort
SELECT DISTINCT 2 * col0 * col0 FROM tab2
----
12168
12482
98

query I rowsort
SELECT ( col0 ) + + col0 * - col1 FROM tab2
----
-1264
-210
-4524

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col2 + - col2 col0 FROM tab1 AS cor0
----
-2970
-3306
-9312

query I rowsort
SELECT + + col0 + + 9 * + 21 AS col0 FROM tab2 AS cor0
----
196
267
268

query I rowsort
SELECT - - col0 * 70 FROM tab0 AS cor0
----
1680
2450
6230

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2762
SELECT col1 + CAST( 89 + col0 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
127
185
226

skipif mysql # not compatible
query I rowsort label-2762
SELECT col1 + CAST ( 89 + col0 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
127
185
226

query I rowsort
SELECT ALL + col1 * cor0.col0 + + col0 FROM tab0 AS cor0
----
2088
3430
8188

onlyif mysql # use DIV operator for integer division
query I rowsort label-2764
SELECT DISTINCT 94 + col1 * col1 DIV tab2.col1 AS col0 FROM tab2
----
111
125
153

skipif mysql # not compatible
query I rowsort label-2764
SELECT DISTINCT 94 + col1 * col1 / tab2.col1 AS col0 FROM tab2
----
111
125
153

onlyif mysql # use DIV operator for integer division
query I rowsort label-2765
SELECT + tab2.col2 + col0 DIV col0 + 35 AS col0 FROM tab2
----
62
63
74

skipif mysql # not compatible
query I rowsort label-2765
SELECT + tab2.col2 + col0 / col0 + 35 AS col0 FROM tab2
----
62
63
74

query I rowsort
SELECT DISTINCT tab1.col1 * 78 AS col2 FROM tab1, tab2 cor0, tab0 AS cor1
----
1014
2028
780

query I rowsort
SELECT DISTINCT + col1 * - 52 AS col2 FROM tab0
----
-4472
-4732
-5044

query I rowsort
SELECT + col2 * 51 FROM tab2
----
1326
1377
1938

query I rowsort
SELECT DISTINCT + col2 * - 57 FROM tab2
----
-1482
-1539
-2166

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor1.col2 col2 FROM tab0, tab2 AS cor0, tab2 cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT DISTINCT + 66 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
66

query I rowsort
SELECT DISTINCT col0 + + 54 FROM tab2 AS cor0
----
132
133
61

query I rowsort
SELECT ALL - cor0.col1 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 58ed467a9a332e4d7bfaa9abdbbd063f

query I rowsort
SELECT - 32 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 7106326ae056e78044adc0aef747ef08

query I rowsort
SELECT - cor0.col2 + + col0 + - cor0.col1 * + col1 FROM tab1 AS cor0
----
-185
-727
-93

query I rowsort
SELECT + col0 + ( - ( col1 ) ) - col1 * col0 FROM tab1 AS cor0
----
-101
-586
-973

query I rowsort
SELECT - col2 * col1 + + 51 - col0 AS col0 FROM tab2 AS cor0
----
-1561
-674
-793

query I rowsort
SELECT + - col1 + col2 + - col0 AS col1 FROM tab2 AS cor0
----
-11
-111
-58

query I rowsort
SELECT - cor0.col1 - + cor0.col0 * col2 AS col0 FROM tab1 AS cor0
----
-188
-3658
-7693

query I rowsort
SELECT - - col0 + ( col1 ) FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT ALL - - col1 * - col0 + col2 AS col0 FROM tab2 AS cor0
----
-1305
-190
-4576

query I rowsort
SELECT DISTINCT + col0 + - 90 FROM tab1 AS cor0
----
-10
-26
-87

query I rowsort
SELECT DISTINCT + + 9 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9

query I rowsort
SELECT DISTINCT cor0.col2 * 61 * 53 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
106689
265106
3233

query I rowsort
SELECT + - 11 + 64 * - col2 - - col0 AS col1 FROM tab1 AS cor0
----
-3464
-3595
-6075

query I rowsort
SELECT - ( cor0.col1 ) + cor0.col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + col1 * 36 FROM tab0
----
3096
3276
3492

query I rowsort
SELECT ALL - 75 * 33 FROM tab0, tab0 AS cor0
----
9 values hashing to 5242fd494b48edcbd8b02514cc575d85

query I rowsort
SELECT DISTINCT - col0 * col1 + - col1 AS col1 FROM tab1 cor0
----
-104
-1053
-650

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2790
SELECT DISTINCT - CAST( NULL AS SIGNED ) FROM tab0, tab0 AS cor0, tab2 cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-2790
SELECT DISTINCT - CAST ( NULL AS INTEGER ) FROM tab0, tab0 AS cor0, tab2 cor1
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2791
SELECT ALL ( col2 ) * - col0 * - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2791
SELECT ALL ( col2 ) * - col0 * - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + col0 * - 67 col1 FROM tab1
----
-198
-4224
-5280

query I rowsort
SELECT DISTINCT 4 * col2 AS col1 FROM tab0
----
132
328
4

query I rowsort
SELECT - - col1 + cor0.col1 AS col2 FROM tab1 AS cor0
----
20
26
52

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2795
SELECT CAST( NULL AS DECIMAL ) FROM tab1, tab2 AS cor0, tab0 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-2795
SELECT CAST ( NULL AS REAL ) FROM tab1, tab2 AS cor0, tab0 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

onlyif mysql # use DIV operator for integer division
query I rowsort label-2796
SELECT tab0.col0 - - col0 DIV 46 FROM tab0
----
24
35
90

skipif mysql # not compatible
query I rowsort label-2796
SELECT tab0.col0 - - col0 / 46 FROM tab0
----
24
35
90

onlyif mysql # use DIV operator for integer division
query I rowsort label-2797
SELECT ALL + col0 + + 30 DIV cor0.col2 FROM tab0 AS cor0
----
24
65
89

skipif mysql # not compatible
query I rowsort label-2797
SELECT ALL + col0 + + 30 / cor0.col2 FROM tab0 AS cor0
----
24
65
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 9 col0 FROM tab2
----
-9

query I rowsort
SELECT + 29 + cor0.col2 AS col1 FROM tab1 AS cor0
----
125
83
86

query I rowsort
SELECT ALL col2 + + 64 AS col0 FROM tab1 cor0
----
118
121
160

query I rowsort
SELECT + tab1.col1 * ( + col1 ) + col1 * col0 FROM tab1
----
1209
740
754

query I rowsort
SELECT ALL - col1 * + col2 + - col0 AS col2 FROM tab1 AS cor0
----
-1328
-1407
-634

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + + col0 * + col0 + + col1 col1 FROM tab1 AS cor0
----
4163
6509
89

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2804
SELECT + col0 * CAST( col2 AS SIGNED ) + col1 FROM tab2 AS cor0
----
2087
220
3019

skipif mysql # not compatible
query I rowsort label-2804
SELECT + col0 * CAST ( col2 AS INTEGER ) + col1 FROM tab2 AS cor0
----
2087
220
3019

query I rowsort
SELECT DISTINCT cor0.col1 + + 18 FROM tab1 AS cor0
----
28
31
44

query I rowsort
SELECT - ( col2 ) + col0 FROM tab0
----
-9
34
7

query I rowsort
SELECT ALL - col0 + + col1 + col0 * + ( + 57 ) AS col1 FROM tab1
----
194
3594
4493

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2808
SELECT ALL + CAST( NULL AS SIGNED ) + + tab1.col2 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2808
SELECT ALL + CAST ( NULL AS INTEGER ) + + tab1.col2 AS col0 FROM tab1
----
NULL
NULL
NULL

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab1 cor0, tab0 AS cor1, tab1, tab1 AS cor2
----
3645 values hashing to 028fd38910121a0fa7c5b9a24c207cf0

query I rowsort
SELECT DISTINCT col0 + col1 * col0 * col0 AS col0 FROM tab2
----
106176
1526
359034

query I rowsort
SELECT + + col2 + col1 + - col0 * + 67 FROM tab2 AS cor0
----
-411
-5141
-5238

query I rowsort
SELECT DISTINCT + - col2 * 51 FROM tab1 cor0
----
-2754
-2907
-4896

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + cor0.col1 * ( col0 ) * + col2 + - col2 * - col2 + col2 * + col0 * + col0 col1 FROM tab2 AS cor0
----
278512
289636
7911

query I rowsort
SELECT DISTINCT - + col2 * + 53 AS col1 FROM tab2 cor0
----
-1378
-1431
-2014

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 cor0, tab2 AS cor1, tab2, tab0 AS cor2
----
3645 values hashing to 76de18c5bf2cf2620e1f411d7bde86e7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 36 col2 FROM tab0, tab1 AS cor0, tab1 AS cor1, tab0 cor2
----
81 values hashing to e09b197365a04fabbaaf0718d2ae88c5

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2817
SELECT col1 * + 65 + col1 + CAST( NULL AS DECIMAL ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2817
SELECT col1 * + 65 + col1 + CAST ( NULL AS REAL ) FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col0 - - cor0.col0 FROM tab2 cor0
----
0

query I rowsort
SELECT ALL + - 35 FROM tab2 AS cor0
----
-35
-35
-35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + - cor0.col1 col0 FROM tab2 AS cor0
----
-55
-58
-85

query I rowsort
SELECT DISTINCT + - col1 * + col2 AS col1 FROM tab2 cor0
----
-1534
-646
-837

onlyif mysql # use DIV operator for integer division
query I rowsort label-2822
SELECT ALL - - col2 + - col1 DIV col1 col0 FROM tab2 AS cor0
----
25
26
37

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2822
SELECT ALL - - col2 + - col1 / col1 col0 FROM tab2 AS cor0
----
25
26
37

query I rowsort
SELECT ALL + col1 + - cor0.col1 + cor0.col2 AS col0 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT DISTINCT - col1 * + col2 - cor0.col0 * + col2 * col2 AS col0 FROM tab0 AS cor0
----
-132
-28974
-605898

onlyif mysql # use DIV operator for integer division
query I rowsort label-2825
SELECT DISTINCT + - cor0.col2 DIV col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2825
SELECT DISTINCT + - cor0.col2 / col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT - - col1 * - col0 + col1 FROM tab2 AS cor0
----
-1326
-186
-4543

query I rowsort
SELECT ALL + - col1 * cor0.col1 + col1 * - col1 AS col2 FROM tab0 AS cor0
----
-14792
-16562
-18818

query I rowsort
SELECT + tab2.col2 - 25 FROM tab2
----
1
13
2

query I rowsort
SELECT DISTINCT + 52 + + col0 AS col0 FROM tab1 AS cor0
----
116
132
55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col2 * - col2 col2 FROM tab2 AS cor0
----
-1444
-676
-729

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 3 col1 FROM tab1 AS cor0
----
3
3
3

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2832
SELECT ALL - + CAST( NULL AS SIGNED ) * - cor0.col0 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-2832
SELECT ALL - + CAST ( NULL AS INTEGER ) * - cor0.col0 col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col2 + ( + col1 ) FROM tab1 cor0
----
-28
-47
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor1.col1 - cor0.col2 col0 FROM tab1 AS cor0 CROSS JOIN tab0, tab0 cor1
----
27 values hashing to 83bd211700f107771ee1ca0241ce360f

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2835
SELECT - CAST( NULL AS DECIMAL ) + - col0 * + col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2835
SELECT - CAST ( NULL AS REAL ) + - col0 * + col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 * col2 + col1 * col2 AS col2 FROM tab1
----
-1512
-2679
-7968

query I rowsort
SELECT 96 FROM tab2, tab0 AS cor0
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303

query I rowsort
SELECT 88 * - 28 + col0 * ( 84 ) AS col1 FROM tab1
----
-2212
2912
4256

query I rowsort
SELECT ALL - 21 * 6 FROM tab2 AS cor0
----
-126
-126
-126

query I rowsort
SELECT DISTINCT - cor0.col1 + - 71 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
-81
-84
-97

query I rowsort
SELECT ALL cor1.col0 AS col0 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

query I rowsort
SELECT + col0 + 64 AS col2 FROM tab1
----
128
144
67

query IIIIIIIII rowsort
SELECT * FROM tab2, tab1, tab1 AS cor0 WHERE NULL <> NULL
----

query I rowsort
SELECT DISTINCT - col0 + col2 * + 97 AS col0 FROM tab2
----
2444
2612
3607

query I rowsort
SELECT ALL tab0.col2 + - col2 AS col0 FROM tab0
----
0
0
0

query I rowsort
SELECT + tab0.col0 + col0 + 68 AS col2 FROM tab0
----
116
138
246

onlyif mysql # use DIV operator for integer division
query I rowsort label-2847
SELECT - col2 DIV col0 + + col1 FROM tab1 AS cor0
----
10
12
8

skipif mysql # not compatible
query I rowsort label-2847
SELECT - col2 / col0 + + col1 FROM tab1 AS cor0
----
10
12
8

onlyif mysql # use DIV operator for integer division
query I rowsort label-2848
SELECT col1 * cor0.col1 + 21 DIV - col2 FROM tab1 AS cor0
----
100
169
676

skipif mysql # not compatible
query I rowsort label-2848
SELECT col1 * cor0.col1 + 21 / - col2 FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT DISTINCT + col1 * col2 * + 78 + cor0.col1 FROM tab0 AS cor0
----
221450
582127
7663

query I rowsort
SELECT col2 + + col1 + - col2 * tab0.col2 AS col1 FROM tab0
----
-6551
-970
97

query I rowsort
SELECT col0 * - col1 + - tab0.col2 FROM tab0
----
-2097
-3396
-8181

onlyif mysql # use DIV operator for integer division
query I rowsort label-2852
SELECT - col0 + + col2 + 10 DIV + col1 FROM tab2
----
-41
-52
20

skipif mysql # not compatible
query I rowsort label-2852
SELECT - col0 + + col2 + 10 / + col1 FROM tab2
----
-41
-52
20

query I rowsort
SELECT ALL - tab2.col0 + col2 FROM tab2
----
-41
-52
20

query I rowsort
SELECT ALL + cor0.col0 + + col0 * 49 AS col1 FROM tab0 AS cor0
----
1200
1750
4450

query I rowsort
SELECT DISTINCT + col1 - col2 * col1 FROM tab1 cor0
----
-1235
-1378
-560

query I rowsort
SELECT ALL + cor0.col2 - - col2 * 9 FROM tab0 AS cor0
----
10
330
820

query I rowsort
SELECT - col0 + 93 AS col0 FROM tab1 AS cor0
----
13
29
90

query I rowsort
SELECT ALL + col2 * ( col1 ) AS col1 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT DISTINCT + col0 + - 11 AS col0 FROM tab1 AS cor0
----
-8
53
69

onlyif mysql # use DIV operator for integer division
query I rowsort label-2860
SELECT DISTINCT cor0.col2 DIV col2 + col2 * col2 AS col0 FROM tab1 AS cor0
----
2917
3250
9217

skipif mysql # not compatible
query I rowsort label-2860
SELECT DISTINCT cor0.col2 / col2 + col2 * col2 AS col0 FROM tab1 AS cor0
----
2917
3250
9217

query I rowsort
SELECT ALL + cor0.col0 + col1 * col1 AS col0 FROM tab1 AS cor0
----
164
249
679

query I rowsort
SELECT DISTINCT - + cor0.col0 * ( 75 ) + + col0 FROM tab2 AS cor0
----
-518
-5772
-5846

query I rowsort
SELECT DISTINCT + col2 + ( col2 ) FROM tab0 AS cor0
----
164
2
66

query I rowsort
SELECT col2 * col0 + - col1 * col2 AS col2 FROM tab0 AS cor0
----
-164
-2046
-62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2865
SELECT DISTINCT - col0 + CAST( NULL AS SIGNED ) * 6 + + col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2865
SELECT DISTINCT - col0 + CAST ( NULL AS INTEGER ) * 6 + + col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + + col0 + - col2 AS col1 FROM tab1 cor0
----
-16
-51
7

query I rowsort
SELECT - + col1 + col0 * - col0 AS col2 FROM tab0 AS cor0
----
-1322
-662
-8012

query I rowsort
SELECT - - col1 + - ( col1 ) + col2 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT ALL 66 + + 52 FROM tab0, tab2 AS cor0
----
9 values hashing to 6b4d3df0dcb1d629d28745add31be2b9

query I rowsort
SELECT - col2 * - ( col2 ) + + col1 + col1 FROM tab0 AS cor0
----
1261
195
6906

query I rowsort
SELECT + + cor0.col2 + ( col1 ) AS col1 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT DISTINCT + col1 * - 3 AS col2 FROM tab2
----
-177
-51
-93

query I rowsort
SELECT DISTINCT - - col1 * 32 AS col2 FROM tab0 cor0
----
2752
2912
3104

query I rowsort
SELECT + + 11 * col1 FROM tab2 AS cor0
----
187
341
649

query I rowsort
SELECT - col1 + 61 * col2 * 96 AS col1 FROM tab0 AS cor0
----
193162
480101
5759

query I rowsort
SELECT DISTINCT + 12 FROM tab0, tab2 AS cor0
----
12

query I rowsort
SELECT - 62 * cor0.col0 FROM tab1 AS cor0
----
-186
-3968
-4960

query I rowsort
SELECT 84 + - col1 AS col2 FROM tab0 cor0
----
-13
-2
-7

query I rowsort
SELECT - col0 * 73 + + col0 FROM tab0 cor0
----
-1728
-2520
-6408

query I rowsort
SELECT - cor0.col0 * col2 * col2 FROM tab2 AS cor0
----
-114076
-5103
-52728

query I rowsort
SELECT + + col2 * col2 + col1 FROM tab1 AS cor0
----
2942
3259
9229

query I rowsort
SELECT + col0 * - col1 + - col1 AS col2 FROM tab2 AS cor0
----
-1360
-248
-4661

query I rowsort
SELECT DISTINCT - - col0 * cor0.col2 AS col2 FROM tab1 AS cor0
----
162
3648
7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-2884
SELECT - + col2 * col2 + col1 + 12 DIV - col1 FROM tab0 AS cor0
----
-1003
-6633
96

skipif mysql # not compatible
query I rowsort label-2884
SELECT - + col2 * col2 + col1 + 12 / - col1 FROM tab0 AS cor0
----
-1003
-6633
96

query I rowsort
SELECT ALL - 17 * cor0.col0 FROM tab2 AS cor0
----
-119
-1326
-1343

onlyif mysql # use DIV operator for integer division
query I rowsort label-2886
SELECT DISTINCT + 20 DIV + col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2886
SELECT DISTINCT + 20 / + col1 FROM tab0 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 70 * - cor0.col0 col2 FROM tab2 AS cor0
----
-490
-5460
-5530

query I rowsort
SELECT DISTINCT - + 44 FROM tab1 AS cor0
----
-44

query I rowsort
SELECT DISTINCT - col1 * col1 * + 10 AS col1 FROM tab1
----
-1000
-1690
-6760

query I rowsort
SELECT - 10 * - col0 AS col0 FROM tab2 AS cor0
----
70
780
790

query I rowsort
SELECT - ( - col1 ) * col0 - col1 FROM tab0 AS cor0
----
1978
3298
8008

query I rowsort
SELECT + - 95 * - col0 * - col1 AS col2 FROM tab0 AS cor0
----
-196080
-322525
-769405

query I rowsort
SELECT ALL - col0 + col1 * - cor0.col0 FROM tab0 AS cor0
----
-2088
-3430
-8188

query I rowsort
SELECT ALL 94 + - cor0.col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 492a3c5a2cba78f53e014d4d55a36c92

onlyif mysql # use DIV operator for integer division
query I rowsort label-2895
SELECT col1 DIV + col1 - col0 FROM tab1 AS cor0
----
-2
-63
-79

skipif mysql # not compatible
query I rowsort label-2895
SELECT col1 / + col1 - col0 FROM tab1 AS cor0
----
-2
-63
-79

query I rowsort
SELECT + + col1 - - ( col0 ) AS col0 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT + col2 * col0 + col1 * col2 AS col2 FROM tab2 AS cor0
----
1026
3562
3648

query I rowsort
SELECT - + cor1.col1 + 56 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 7520bc572be8e6cd2da8d11bf81bc68a

query I rowsort
SELECT ALL tab2.col0 + tab2.col2 AS col0 FROM tab2
----
104
117
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + col1 col0 FROM tab1
----
29
74
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 87 * col1 col1 FROM tab2 AS cor0
----
-1479
-2697
-5133

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - cor0.col2 col2 FROM tab1 AS cor0
----
-2916
-3249
-9216

query I rowsort
SELECT ALL + 33 + - col1 FROM tab0 AS cor0
----
-53
-58
-64

query I rowsort
SELECT ALL - col0 + cor0.col2 * col2 FROM tab1 cor0
----
2913
3185
9136

query I rowsort
SELECT - + 86 + - col0 FROM tab0 AS cor0
----
-110
-121
-175

query I rowsort
SELECT DISTINCT col1 + col0 * + ( col0 * - col0 ) AS col1 FROM tab1 AS cor0
----
-1
-262134
-511987

query I rowsort
SELECT DISTINCT + - col0 - + col0 FROM tab0 AS cor0
----
-178
-48
-70

query I rowsort
SELECT DISTINCT col2 * cor0.col2 + ( - col2 * col1 ) FROM tab0 AS cor0
----
-1749
-738
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 19 col2 FROM tab1 AS cor0
----
-19
-19
-19

query I rowsort
SELECT - 82 + col1 AS col1 FROM tab1 AS cor0
----
-56
-69
-72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 52 * col0 + 76 - + col1 col0 FROM tab2 AS cor0
----
-319
-4039
-4049

query I rowsort
SELECT + ( - col2 * col0 ) AS col2 FROM tab1
----
-162
-3648
-7680

skipif mysql # not compatible
query I rowsort
SELECT ALL + - ( col0 ) + CAST ( 72 AS REAL ) * cor0.col1 * - col2 - col0 AS col0 FROM tab1 AS cor0
----
-101094
-41168
-90016

query I rowsort
SELECT ALL - - 58 + col0 FROM tab2 AS cor0
----
136
137
65

query I rowsort
SELECT DISTINCT - + col2 + - cor0.col0 * ( col1 ) AS col1 FROM tab0 AS cor0
----
-2097
-3396
-8181

query I rowsort
SELECT DISTINCT + ( col2 ) + - cor0.col1 FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT + + ( - cor0.col0 ) * + ( - 38 ) FROM tab2 AS cor0
----
266
2964
3002

query I rowsort
SELECT cor0.col0 + - cor0.col1 * + col1 AS col0 FROM tab0 AS cor0
----
-7372
-8192
-9374

query I rowsort
SELECT col2 * col1 + + col1 * - col0 FROM tab0 AS cor0
----
-3298
-637
774

query I rowsort
SELECT + col2 + cor0.col2 * 81 * + col2 AS col2 FROM tab0 AS cor0
----
544726
82
88242

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab2 AS cor2, tab2 cor3
----
3645 values hashing to 9d97dc3cb0a2d1eacd2afa977bf02f33

query I rowsort
SELECT - - col0 * - col0 * - col1 AS col1 FROM tab0 AS cor0
----
118825
49536
720811

query I rowsort
SELECT + + cor0.col0 * + ( - 26 ) + - col0 + 77 AS col1 FROM tab0 AS cor0
----
-2326
-571
-868

onlyif mysql # use DIV operator for integer division
query I rowsort label-2924
SELECT + col1 DIV ( - col1 ) AS col1 FROM tab2 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2924
SELECT + col1 / ( - col1 ) AS col1 FROM tab2 cor0
----
-1
-1
-1

onlyif mysql # use DIV operator for integer division
query I rowsort label-2925
SELECT ALL col0 DIV + 28 FROM tab1 AS cor0
----
0
2
2

skipif mysql # not compatible
query I rowsort label-2925
SELECT ALL col0 / + 28 FROM tab1 AS cor0
----
0
2
2

query I rowsort
SELECT ALL 67 AS col1 FROM tab2, tab1, tab1 cor0
----
27 values hashing to eea8a0738728ea55e4e7ba1506c9905a

onlyif mysql # use DIV operator for integer division
query I rowsort label-2927
SELECT - col0 DIV + cor0.col1 FROM tab2 cor0
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-2927
SELECT - col0 / + cor0.col1 FROM tab2 cor0
----
-1
-4
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2928
SELECT + - col0 DIV - ( + col0 ) AS col1 FROM tab2 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2928
SELECT + - col0 / - ( + col0 ) AS col1 FROM tab2 cor0
----
1
1
1

query I rowsort
SELECT ALL + - 30 * col2 + + col2 AS col1 FROM tab1 AS cor0
----
-1566
-1653
-2784

query I rowsort
SELECT ALL - ( col1 ) * - cor0.col2 AS col0 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT ALL 45 + - col2 FROM tab0 AS cor0
----
-37
12
44

query I rowsort
SELECT ALL 78 * - col1 * + col2 FROM tab1 AS cor0
----
-109512
-44460
-97344

query I rowsort
SELECT DISTINCT + col0 + + col2 * cor0.col1 FROM tab0 cor0
----
132
2862
7551

onlyif mysql # use DIV operator for integer division
query I rowsort label-2934
SELECT ALL + cor0.col2 DIV + cor0.col2 + + col1 + + 31 AS col1 FROM tab0 AS cor0
----
118
123
129

skipif mysql # not compatible
query I rowsort label-2934
SELECT ALL + cor0.col2 / + cor0.col2 + + col1 + + 31 AS col1 FROM tab0 AS cor0
----
118
123
129

query I rowsort
SELECT ALL + col2 * + 78 + 50 * col1 + + col1 FROM tab0
----
11037
5025
6960

query I rowsort
SELECT cor1.col0 FROM tab0 AS cor0 CROSS JOIN tab0, tab1 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

query I rowsort
SELECT DISTINCT - 76 + col1 * + cor0.col0 AS col1 FROM tab0 AS cor0
----
1988
3319
8023

query I rowsort
SELECT DISTINCT - 77 * - 23 AS col2 FROM tab0 cor0
----
1771

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2939
SELECT ALL + - CAST( NULL AS SIGNED ) * + ( cor0.col1 ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2939
SELECT ALL + - CAST ( NULL AS INTEGER ) * + ( cor0.col1 ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - ( col2 ) + + col2 AS col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2941
SELECT DISTINCT - ( col0 ) DIV col1 + + 87 FROM tab2 AS cor0
----
83
86
87

skipif mysql # not compatible
query I rowsort label-2941
SELECT DISTINCT - ( col0 ) / col1 + + 87 FROM tab2 AS cor0
----
83
86
87

query I rowsort
SELECT ALL + - ( col2 ) * - col1 AS col0 FROM tab2 AS cor0
----
1534
646
837

onlyif mysql # use DIV operator for integer division
query I rowsort label-2943
SELECT ALL ( - col1 ) DIV - col0 AS col1 FROM tab1 AS cor0
----
0
0
8

skipif mysql # not compatible
query I rowsort label-2943
SELECT ALL ( - col1 ) / - col0 AS col1 FROM tab1 AS cor0
----
0
0
8

query I rowsort
SELECT - ( - 30 ) * - col1 AS col1 FROM tab1 cor0
----
-300
-390
-780

query I rowsort
SELECT ALL - - 75 + col0 + col1 * - col0 FROM tab0 AS cor0
----
-1965
-3285
-7935

query I rowsort
SELECT DISTINCT col2 * col1 + col2 * col0 FROM tab0 AS cor0
----
132
14760
3630

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2947
SELECT DISTINCT CAST( + col0 AS SIGNED ) + + col0 AS col2 FROM tab0 AS cor0
----
178
48
70

skipif mysql # not compatible
query I rowsort label-2947
SELECT DISTINCT CAST ( + col0 AS INTEGER ) + + col0 AS col2 FROM tab0 AS cor0
----
178
48
70

query I rowsort
SELECT - col1 + col0 * + col2 AS col2 FROM tab2 AS cor0
----
158
1969
2985

query I rowsort
SELECT - col1 * ( - ( col2 ) ) - + col2 AS col2 FROM tab2
----
1508
608
810

query I rowsort
SELECT + col1 + 45 FROM tab2
----
104
62
76

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2951
SELECT DISTINCT + tab1.col2 + + CAST( - col1 AS SIGNED ) AS col2 FROM tab1
----
28
47
83

skipif mysql # not compatible
query I rowsort label-2951
SELECT DISTINCT + tab1.col2 + + CAST ( - col1 AS INTEGER ) AS col2 FROM tab1
----
28
47
83

query I rowsort
SELECT DISTINCT - col2 + + ( + cor0.col1 * 71 + + col2 ) AS col0 FROM tab2 AS cor0
----
1207
2201
4189

onlyif mysql # use DIV operator for integer division
query I rowsort label-2953
SELECT + ( - cor0.col2 ) DIV + col0 AS col1 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2953
SELECT + ( - cor0.col2 ) / + col0 AS col1 FROM tab0 AS cor0
----
-1
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2954
SELECT ( col0 ) * col2 + - CAST( col0 + - cor0.col1 AS SIGNED ) AS col0 FROM tab2 cor0
----
2009
213
2940

skipif mysql # not compatible
query I rowsort label-2954
SELECT ( col0 ) * col2 + - CAST ( col0 + - cor0.col1 AS INTEGER ) AS col0 FROM tab2 cor0
----
2009
213
2940

query I rowsort
SELECT DISTINCT - + ( - col0 ) * - cor0.col2 AS col1 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT DISTINCT + + ( - col2 ) FROM tab0 cor0
----
-1
-33
-82

query I rowsort
SELECT ALL + - 0 + 33 * + col2 * - col0 FROM tab0 AS cor0
----
-1155
-240834
-26136

query I rowsort
SELECT DISTINCT + tab0.col1 + - 45 FROM tab0
----
41
46
52

query I rowsort
SELECT + 55 + col2 AS col0 FROM tab0
----
137
56
88

query I rowsort
SELECT DISTINCT - ( + 58 ) * tab0.col2 FROM tab0
----
-1914
-4756
-58

onlyif mysql # use DIV operator for integer division
query I rowsort label-2961
SELECT DISTINCT ( col2 ) DIV col0 AS col1 FROM tab2
----
0
3

skipif mysql # not compatible
query I rowsort label-2961
SELECT DISTINCT ( col2 ) / col0 AS col1 FROM tab2
----
0
3

onlyif mysql # use DIV operator for integer division
query I rowsort label-2962
SELECT + tab0.col1 DIV cor1.col0 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 67eb71a038d7d3ee31795813c19233dd

skipif mysql # not compatible
query I rowsort label-2962
SELECT + tab0.col1 / cor1.col0 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 67eb71a038d7d3ee31795813c19233dd

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2963
SELECT - CAST( NULL AS DECIMAL ) AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2963
SELECT - CAST ( NULL AS REAL ) AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT - + col1 - - col2 FROM tab2 cor0
----
-33
-4
21

query I rowsort
SELECT ALL - - col2 + - col0 + + 1 * + col2 FROM tab2 AS cor0
----
-26
-3
47

query I rowsort
SELECT + col1 * cor0.col2 - col0 * col0 AS col0 FROM tab1 cor0
----
-3526
-5152
1395

query I rowsort
SELECT ALL cor0.col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870

query I rowsort
SELECT tab0.col0 + col1 * col0 AS col2 FROM tab0
----
2088
3430
8188

query I rowsort
SELECT ALL - col1 * col0 + col1 * tab2.col2 AS col1 FROM tab2
----
-3068
-697
620

query I rowsort
SELECT - 8 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 47f43f23dcd23959d97d8e3b0aab692e

query I rowsort
SELECT - tab1.col2 + 39 AS col0 FROM tab1
----
-15
-18
-57

query I rowsort
SELECT + col0 * 16 AS col2 FROM tab2
----
112
1248
1264

query I rowsort
SELECT ALL - - col0 + 45 FROM tab0 AS cor0
----
134
69
80

query I rowsort
SELECT DISTINCT + cor0.col1 * 34 AS col0 FROM tab2 AS cor0
----
1054
2006
578

query I rowsort
SELECT - + col0 + 42 FROM tab2 AS cor0
----
-36
-37
35

query I rowsort
SELECT + col1 * - ( - col0 ) FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT ALL col0 * - 91 + - cor0.col0 AS col2 FROM tab2 AS cor0
----
-644
-7176
-7268

query I rowsort
SELECT ALL + 83 FROM tab1 cor0
----
83
83
83

query I rowsort
SELECT - 93 * col1 FROM tab0
----
-7998
-8463
-9021

query I rowsort
SELECT cor0.col1 * - cor0.col0 + - ( 88 ) AS col2 FROM tab1 cor0
----
-1128
-166
-728

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 44 col1 FROM tab0 AS cor0
----
44
44
44

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2982
SELECT - + 38 / col0 + cor0.col1 * + col1 + col0 * - CAST( NULL AS SIGNED ) * 82 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2982
SELECT - + 38 / col0 + cor0.col1 * + col1 + col0 * - CAST ( NULL AS INTEGER ) * 82 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + + 86 + - col1 * 40 * + 57 AS col1 FROM tab0 AS cor0
----
-195994
-207394
-221074

query I rowsort
SELECT ALL col0 + col2 * cor0.col1 AS col0 FROM tab2 AS cor0
----
1612
725
844

query I rowsort
SELECT + - col0 + + col0 * - cor0.col1 * col1 FROM tab0 AS cor0
----
-177528
-329350
-737098

query I rowsort
SELECT + - cor0.col2 + col1 AS col0 FROM tab2 AS cor0
----
-21
33
4

query I rowsort
SELECT col2 * + cor0.col1 FROM tab1 cor0
----
1248
1404
570

query I rowsort
SELECT 28 + col1 + - col1 FROM tab2 AS cor0
----
28
28
28

query I rowsort
SELECT ALL + 81 * col0 AS col2 FROM tab2 AS cor0
----
567
6318
6399

query I rowsort
SELECT - col2 * 58 + + col1 + + ( + col2 + cor0.col2 ) AS col1 FROM tab2 AS cor0
----
-1397
-1481
-2111

query I rowsort
SELECT DISTINCT + - col0 + - ( + col0 ) + + col0 * + col2 FROM tab0 AS cor0
----
-35
7120
744

query I rowsort
SELECT - - 17 * + cor0.col0 + + col1 + + col0 FROM tab1 AS cor0
----
1162
1453
80

query I rowsort
SELECT + col2 * + col1 - + col1 AS col2 FROM tab0 AS cor0
----
0
2752
7371

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - col0 * 86 col1 FROM tab0
----
-2031
-3009
-7572

query I rowsort
SELECT - - col2 - cor0.col0 * - cor0.col0 * cor0.col0 FROM tab0 AS cor0
----
13857
42876
705051

query I rowsort
SELECT ALL ( - ( - col0 ) ) * - ( col1 ) + col1 AS col1 FROM tab2
----
-1326
-186
-4543

query I rowsort
SELECT + 44 + tab1.col2 * - col1 AS col2 FROM tab1
----
-1204
-1360
-526

query I rowsort
SELECT - + col2 + col1 * col2 AS col1 FROM tab1 AS cor0
----
1152
1350
513

query I rowsort
SELECT + + col2 - cor0.col0 * - col1 AS col2 FROM tab1 AS cor0
----
1136
132
697

query I rowsort
SELECT ALL ( tab0.col0 ) + col1 AS col0 FROM tab0
----
110
132
180

query I rowsort
SELECT DISTINCT col2 * - 24 + + col2 FROM tab0
----
-1886
-23
-759

onlyif mysql # use DIV operator for integer division
query I rowsort label-3002
SELECT ALL ( - 8 ) DIV col1 + + col2 + - tab1.col2 * - tab1.col2 FROM tab1
----
2970
3306
9312

skipif mysql # not compatible
query I rowsort label-3002
SELECT ALL ( - 8 ) / col1 + + col2 + - tab1.col2 * - tab1.col2 FROM tab1
----
2970
3306
9312

onlyif mysql # use DIV operator for integer division
query I rowsort label-3003
SELECT + col0 + + col2 * 12 + col0 DIV cor0.col1 FROM tab2 AS cor0
----
331
391
539

skipif mysql # not compatible
query I rowsort label-3003
SELECT + col0 + + col2 * 12 + col0 / cor0.col1 FROM tab2 AS cor0
----
331
391
539

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3004
SELECT + CAST( 8 AS SIGNED ) - cor0.col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 55d5095749018f0d23567c1211b97c22

skipif mysql # not compatible
query I rowsort label-3004
SELECT + CAST ( 8 AS INTEGER ) - cor0.col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 55d5095749018f0d23567c1211b97c22

query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab1 cor0, tab1 AS cor1, tab0 cor2
----
972 values hashing to 43f0c51511c8642d19190fd4dfcf905a

query I rowsort
SELECT + col2 - - col2 * - 62 * + cor0.col2 FROM tab0 AS cor0
----
-416806
-61
-67485

onlyif mysql # use DIV operator for integer division
query I rowsort label-3007
SELECT - col0 * + col1 + cor0.col0 - 22 DIV + col2 FROM tab1 AS cor0
----
-576
-75
-960

skipif mysql # not compatible
query I rowsort label-3007
SELECT - col0 * + col1 + cor0.col0 - 22 / + col2 FROM tab1 AS cor0
----
-576
-75
-960

query I rowsort
SELECT ALL 35 AS col2 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 0d13dfd4c4a9d51ace3582c31cadcdbc

query I rowsort
SELECT ALL + 22 * + col0 FROM tab2
----
154
1716
1738

query I rowsort
SELECT col1 - + col2 FROM tab2 cor0
----
-21
33
4

query I rowsort
SELECT col0 * cor0.col2 + - 2 * col2 AS col1 FROM tab1 cor0
----
3534
54
7488

query I rowsort
SELECT + col2 * + col1 + + ( col1 ) AS col2 FROM tab1 cor0
----
1261
1430
580

query I rowsort
SELECT col2 + + ( + col2 ) AS col2 FROM tab0
----
164
2
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 74 col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31

query I rowsort
SELECT col0 + cor0.col0 * col1 AS col1 FROM tab1 AS cor0
----
1120
704
81

query I rowsort
SELECT + col1 + + ( - col0 * - col2 ) FROM tab0
----
132
7389
878

query I rowsort
SELECT - - ( + 99 ) FROM tab1 AS cor0
----
99
99
99

query I rowsort
SELECT col0 * - 35 FROM tab1 AS cor0
----
-105
-2240
-2800

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3019
SELECT + CAST( col0 + col2 AS SIGNED ) FROM tab0
----
171
36
57

skipif mysql # not compatible
query I rowsort label-3019
SELECT + CAST ( col0 + col2 AS INTEGER ) FROM tab0
----
171
36
57

query I rowsort
SELECT + - 20 + col1 AS col2 FROM tab2 AS cor0
----
-3
11
39

query I rowsort
SELECT - - col0 + - 75 AS col1 FROM tab0 AS cor0
----
-40
-51
14

query I rowsort
SELECT DISTINCT col1 * col1 + - col0 AS col2 FROM tab1 AS cor0
----
36
673
89

query I rowsort
SELECT col2 + + 80 FROM tab0 AS cor0
----
113
162
81

query I rowsort
SELECT + cor0.col0 + col1 FROM tab1 cor0
----
29
74
93

query I rowsort
SELECT ALL + 20 + tab0.col1 * tab0.col0 * tab0.col0 AS col1 FROM tab0
----
118845
49556
720831

query I rowsort
SELECT + tab2.col2 + - col0 AS col1 FROM tab2
----
-41
-52
20

query I rowsort
SELECT ALL - 71 + + col2 AS col1 FROM tab1
----
-14
-17
25

query I rowsort
SELECT DISTINCT + - col1 + - ( - 35 ) * cor0.col1 FROM tab1 AS cor0
----
340
442
884

query I rowsort
SELECT DISTINCT - + col1 - - 80 AS col0 FROM tab1 AS cor0
----
54
67
70

query I rowsort
SELECT DISTINCT - + col2 * 65 + + col1 AS col0 FROM tab1 AS cor0
----
-3484
-3695
-6227

query I rowsort
SELECT - col0 * - 20 FROM tab1 AS cor0
----
1280
1600
60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + cor0.col2 * 79 col2 FROM tab0 AS cor0
----
114
2631
6567

query I rowsort
SELECT + col2 * 91 FROM tab1 AS cor0
----
4914
5187
8736

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab2 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab0 AS cor2
----
3645 values hashing to 1751d8ec783486b9121baa2709745253

query I rowsort
SELECT 21 + - col0 AS col1 FROM tab0
----
-14
-3
-68

query I rowsort
SELECT + - col0 - ( - col1 ) * + ( cor0.col2 ) FROM tab0 AS cor0
----
2814
62
7373

query I rowsort
SELECT tab1.col1 * - ( + col0 ) AS col2 FROM tab1
----
-1040
-640
-78

query I rowsort
SELECT cor0.col0 + - ( col2 ) + col2 FROM tab0 AS cor0
----
24
35
89

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3039
SELECT - CAST( + 51 AS SIGNED ) * + cor0.col2 - + col0 AS col0 FROM tab0 AS cor0
----
-1707
-4271
-86

skipif mysql # not compatible
query I rowsort label-3039
SELECT - CAST ( + 51 AS INTEGER ) * + cor0.col2 - + col0 AS col0 FROM tab0 AS cor0
----
-1707
-4271
-86

onlyif mysql # use DIV operator for integer division
query I rowsort label-3040
SELECT + + col0 * - 91 + col0 DIV 5 + ( + cor0.col1 * 47 ) FROM tab2 cor0
----
-4310
-6375
821

skipif mysql # not compatible
query I rowsort label-3040
SELECT + + col0 * - 91 + col0 / 5 + ( + cor0.col1 * 47 ) FROM tab2 cor0
----
-4310
-6375
821

query I rowsort
SELECT ( + col2 ) * - col0 + + 52 * + col1 FROM tab2 AS cor0
----
-2118
1040
1423

query I rowsort
SELECT ( + 93 ) AS col1 FROM tab1 AS cor0
----
93
93
93

query I rowsort
SELECT - 1 + - col0 * cor0.col2 * 63 AS col0 FROM tab0 cor0
----
-2206
-459775
-49897

query I rowsort
SELECT cor1.col2 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT + + 51 * - col2 * 46 + 55 AS col1 FROM tab0 AS cor0
----
-192317
-2291
-77363

query I rowsort
SELECT DISTINCT 28 - cor0.col2 FROM tab1 AS cor0
----
-26
-29
-68

query I rowsort
SELECT - 13 + col2 * col1 FROM tab1 AS cor0
----
1235
1391
557

query I rowsort
SELECT DISTINCT - cor0.col2 * col1 + + col0 FROM tab0 AS cor0
----
-2814
-62
-7373

query I rowsort
SELECT col1 + col2 + + ( cor0.col0 * col2 ) FROM tab0 AS cor0
----
133
7471
911

onlyif mysql # use DIV operator for integer division
query I rowsort label-3050
SELECT ALL col1 DIV - col1 AS col1 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3050
SELECT ALL col1 / - col1 AS col1 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ALL + 95 AS col1 FROM tab2 AS cor0
----
95
95
95

onlyif mysql # use DIV operator for integer division
query I rowsort label-3052
SELECT DISTINCT - - 26 * + col0 + col0 DIV - col0 FROM tab2 AS cor0
----
181
2027
2053

skipif mysql # not compatible
query I rowsort label-3052
SELECT DISTINCT - - 26 * + col0 + col0 / - col0 FROM tab2 AS cor0
----
181
2027
2053

query I rowsort
SELECT col2 + col1 * + ( col1 ) FROM tab2 AS cor0
----
327
3507
988

query I rowsort
SELECT DISTINCT col2 + col0 + col2 AS col0 FROM tab1 AS cor0
----
111
178
272

query I rowsort
SELECT ALL + col1 * cor0.col0 AS col2 FROM tab0 AS cor0
----
2064
3395
8099

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3056
SELECT col0 / col1 + CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3056
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 - col2 - + col2 * col1 col0 FROM tab0 AS cor0
----
-2871
-7544
-98

onlyif mysql # use DIV operator for integer division
query I rowsort label-3058
SELECT ALL - col1 DIV col2 + - cor0.col1 FROM tab0 AS cor0
----
-194
-88
-92

skipif mysql # not compatible
query I rowsort label-3058
SELECT ALL - col1 / col2 + - cor0.col1 FROM tab0 AS cor0
----
-194
-88
-92

query I rowsort
SELECT - - col1 + - 33 AS col2 FROM tab0 AS cor0
----
53
58
64

query I rowsort
SELECT + - col2 * col0 * col1 AS col1 FROM tab2 AS cor0
----
-119652
-51034
-5859

query I rowsort
SELECT - cor0.col0 + 74 FROM tab0 AS cor0
----
-15
39
50

query I rowsort
SELECT DISTINCT - col0 * 86 - col0 AS col1 FROM tab1 AS cor0
----
-261
-5568
-6960

query I rowsort
SELECT DISTINCT col0 + - 13 * + col2 AS col2 FROM tab0 AS cor0
----
-405
-977
22

query I rowsort
SELECT DISTINCT col2 + + col2 * - col1 * col1 + + col0 AS col2 FROM tab2
----
-10865
-25913
-90402

query I rowsort
SELECT - 1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b

onlyif mysql # use DIV operator for integer division
query I rowsort label-3066
SELECT DISTINCT - col1 * col0 DIV + col2 AS col2 FROM tab1 cor0
----
-1
-10
-11

skipif mysql # not compatible
query I rowsort label-3066
SELECT DISTINCT - col1 * col0 / + col2 AS col2 FROM tab1 cor0
----
-1
-10
-11

query I rowsort
SELECT ALL 2 + cor0.col0 * col0 AS col0 FROM tab1 AS cor0
----
11
4098
6402

onlyif mysql # use DIV operator for integer division
query I rowsort label-3068
SELECT ALL col2 DIV 93 col0 FROM tab2 cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3068
SELECT ALL col2 / 93 col0 FROM tab2 cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3069
SELECT - 56 DIV col1 FROM tab1 AS cor0
----
-2
-4
-5

skipif mysql # not compatible
query I rowsort label-3069
SELECT - 56 / col1 FROM tab1 AS cor0
----
-2
-4
-5

query I rowsort
SELECT ALL - 72 * 82 FROM tab2 AS cor0
----
-5904
-5904
-5904

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3071
SELECT ALL 84 + tab0.col1 * col0 - CAST( + col1 AS SIGNED ) * - col2 AS col2 FROM tab0
----
15645
3576
4986

skipif mysql # not compatible
query I rowsort label-3071
SELECT ALL 84 + tab0.col1 * col0 - CAST ( + col1 AS INTEGER ) * - col2 AS col2 FROM tab0
----
15645
3576
4986

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3072
SELECT - CAST( NULL AS SIGNED ) - col2 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3072
SELECT - CAST ( NULL AS INTEGER ) - col2 AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3073
SELECT ALL tab0.col2 DIV + col2 - col1 FROM tab0
----
-85
-90
-96

skipif mysql # not compatible
query I rowsort label-3073
SELECT ALL tab0.col2 / + col2 - col1 FROM tab0
----
-85
-90
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - col0 + col2 col0 FROM tab2
----
-11
-111
-58

query I rowsort
SELECT - tab0.col0 + - tab0.col1 AS col0 FROM tab0
----
-110
-132
-180

query I rowsort
SELECT DISTINCT ( + col0 ) - tab0.col2 * 50 FROM tab0
----
-15
-1626
-4011

query I rowsort
SELECT DISTINCT col1 + + 15 - col0 AS col0 FROM tab1
----
-39
-52
38

query I rowsort
SELECT col2 + 4 FROM tab0
----
37
5
86

onlyif mysql # use DIV operator for integer division
query I rowsort label-3079
SELECT - ( - 31 ) DIV + tab2.col1 AS col2 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-3079
SELECT - ( - 31 ) / + tab2.col1 AS col2 FROM tab2
----
0
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 77 col2 FROM tab2
----
77
77
77

onlyif mysql # use DIV operator for integer division
query I rowsort label-3081
SELECT DISTINCT + col1 DIV + 41 + - tab2.col0 AS col1 FROM tab2
----
-7
-77
-79

skipif mysql # not compatible
query I rowsort label-3081
SELECT DISTINCT + col1 / + 41 + - tab2.col0 AS col1 FROM tab2
----
-7
-77
-79

query I rowsort
SELECT ALL col2 + tab0.col2 AS col1 FROM tab0
----
164
2
66

query I rowsort
SELECT - tab1.col2 * col1 * tab1.col0 + + tab1.col0 * + col2 FROM tab1
----
-32832
-4050
-92160

query I rowsort
SELECT + col1 * - ( col0 ) + - col1 AS col2 FROM tab1 AS cor0
----
-104
-1053
-650

query I rowsort
SELECT - col0 * - cor0.col2 AS col2 FROM tab1 cor0
----
162
3648
7680

query I rowsort
SELECT - + col2 * col2 * 54 AS col1 FROM tab0 AS cor0
----
-363096
-54
-58806

query I rowsort
SELECT ALL - - cor0.col0 * - ( col2 ) AS col2 FROM tab1 AS cor0
----
-162
-3648
-7680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3088
SELECT DISTINCT - cor0.col0 + CAST( NULL AS SIGNED ) * col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3088
SELECT DISTINCT - cor0.col0 + CAST ( NULL AS INTEGER ) * col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL - - cor0.col2 * - cor0.col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 760e91273f37834612f88abef6e165f8

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3090
SELECT DISTINCT + col0 + - CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3090
SELECT DISTINCT + col0 + - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query I rowsort
SELECT 76 AS col0 FROM tab2, tab2 cor0, tab1, tab1 cor1
----
81 values hashing to a8a6c4c5005303c62d4e50b6c96b584f

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab0 cor2, tab0 AS cor3
----
3645 values hashing to 862fba9ac85fdf2cec88a0bec0808b7e

query I rowsort
SELECT ALL - col2 + + 16 * col2 AS col1 FROM tab0 AS cor0
----
1230
15
495

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3094
SELECT ALL + CAST( - col2 AS SIGNED ) + + cor0.col2 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3094
SELECT ALL + CAST ( - col2 AS INTEGER ) + + cor0.col2 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT 29 - col1 * col2 FROM tab1 cor0
----
-1219
-1375
-541

query I rowsort
SELECT col1 * cor0.col0 + col0 FROM tab2 AS cor0
----
1422
224
4680

query I rowsort
SELECT DISTINCT + tab0.col0 * 37 FROM tab0
----
1295
3293
888

query I rowsort
SELECT ALL - - 66 + - col1 FROM tab1 AS cor0
----
40
53
56

query I rowsort
SELECT - col2 * - 62 * - cor0.col2 FROM tab0 AS cor0
----
-416888
-62
-67518

query I rowsort
SELECT - col2 + + col1 FROM tab2 cor0
----
-21
33
4

query I rowsort
SELECT + - col0 * - col0 + col2 * - col1 AS col2 FROM tab1 AS cor0
----
-1395
3526
5152

query I rowsort
SELECT col2 * col0 + + 50 AS col1 FROM tab0
----
7348
842
85

query I rowsort
SELECT ALL + - col0 + col2 AS col1 FROM tab1 AS cor0
----
-7
16
51

query I rowsort
SELECT + col1 + + col0 * - 66 AS col1 FROM tab2 AS cor0
----
-431
-5089
-5197

query I rowsort
SELECT + col2 + + 92 * - col1 AS col1 FROM tab0 AS cor0
----
-7879
-8290
-8923

query I rowsort
SELECT - + col0 * col0 * - cor0.col0 AS col2 FROM tab0 AS cor0
----
13824
42875
704969

query I rowsort
SELECT - cor0.col2 * ( - 66 ) * + col1 - - ( col2 * - cor0.col1 + + ( - 58 ) ) AS col0 FROM tab0 AS cor0
----
184412
484972
6247

query I rowsort
SELECT cor0.col0 * col1 + + 3 FROM tab0 AS cor0
----
2067
3398
8102

onlyif mysql # use DIV operator for integer division
query I rowsort label-3109
SELECT DISTINCT - col1 DIV CAST( col1 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3109
SELECT DISTINCT - col1 / CAST ( col1 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-1

query I rowsort
SELECT - col0 * + col2 + + 82 AS col0 FROM tab1 AS cor0
----
-3566
-7598
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * col1 * ( - 52 + col0 ) col0 FROM tab0
----
-57715
-57792
299663

query I rowsort
SELECT + 42 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 325aada2239b6fe1fe2d843515ae8c5e

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab1.col2 * tab1.col0 col1 FROM tab1, tab0 AS cor0
----
9 values hashing to cf1383d310e5e3e19470e0b8dc064d0c

query I rowsort
SELECT col1 * 11 FROM tab0 AS cor0
----
1001
1067
946

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3115
SELECT + - CAST( col0 AS SIGNED ) * + cor0.col1 FROM tab0 AS cor0
----
-2064
-3395
-8099

skipif mysql # not compatible
query I rowsort label-3115
SELECT + - CAST ( col0 AS INTEGER ) * + cor0.col1 FROM tab0 AS cor0
----
-2064
-3395
-8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-3116
SELECT DISTINCT + 1 DIV + cor0.col0 col0 FROM tab0 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3116
SELECT DISTINCT + 1 / + cor0.col0 col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT + ( col1 ) + col2 AS col2 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT DISTINCT col2 * 36 AS col1 FROM tab1
----
1944
2052
3456

query I rowsort
SELECT DISTINCT + 20 FROM tab1, tab2 cor0, tab0 AS cor1
----
20

query I rowsort
SELECT + cor0.col2 + - col2 * + col2 FROM tab2 AS cor0
----
-1406
-650
-702

query I rowsort
SELECT - 95 * cor0.col2 AS col2 FROM tab0 cor0
----
-3135
-7790
-95

query I rowsort
SELECT - 12 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to e698dd57d3aac30af14ce35da434bb45

query I rowsort
SELECT ALL cor0.col2 * 14 FROM tab0, tab2 AS cor0
----
9 values hashing to fddda4b4f98b244da05f6b415e6ae11b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 53 col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to fee5c00ad71c23e23683a32c71fe6e7d

query I rowsort
SELECT + + col0 * + col1 + 43 FROM tab2 AS cor0
----
1386
260
4645

query I rowsort
SELECT DISTINCT + col1 * col1 * cor0.col2 + + col0 + + col0 * ( + cor0.col1 ) FROM tab1 AS cor0
----
17344
36585
6404

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 41 + - col2 + - ( + col0 ) col1 FROM tab0 AS cor0
----
-130
-16
5

onlyif mysql # use DIV operator for integer division
query I rowsort label-3128
SELECT + col1 DIV col0 + col0 * col0 AS col2 FROM tab0 AS cor0
----
1227
579
7922

skipif mysql # not compatible
query I rowsort label-3128
SELECT + col1 / col0 + col0 * col0 AS col2 FROM tab0 AS cor0
----
1227
579
7922

query I rowsort
SELECT DISTINCT - 46 AS col1 FROM tab0, tab1 AS cor0
----
-46

onlyif mysql # use DIV operator for integer division
query I rowsort label-3130
SELECT col2 + - cor0.col0 + + ( + 0 ) * col1 DIV + 73 FROM tab0 AS cor0
----
-34
-7
9

skipif mysql # not compatible
query I rowsort label-3130
SELECT col2 + - cor0.col0 + + ( + 0 ) * col1 / + 73 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT - - col1 * + col2 * col0 + col1 AS col1 FROM tab0 AS cor0
----
3492
664209
68198

query I rowsort
SELECT DISTINCT 81 AS col0 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
81

query I rowsort
SELECT ALL - cor0.col1 + + col0 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT - 8 FROM tab0, tab0 AS cor0
----
9 values hashing to 47f43f23dcd23959d97d8e3b0aab692e

query I rowsort
SELECT ALL - 57 + - col2 + col0 AS col0 FROM tab1 AS cor0
----
-108
-50
-73

query I rowsort
SELECT DISTINCT + 82 + col0 FROM tab2
----
160
161
89

query I rowsort
SELECT ALL + col1 + 69 * col1 FROM tab0 AS cor0
----
6020
6370
6790

query I rowsort
SELECT ALL + col1 * + col1 FROM tab2 cor0
----
289
3481
961

query I rowsort
SELECT DISTINCT - col0 * ( + col0 + col0 ) FROM tab1 AS cor0
----
-12800
-18
-8192

query I rowsort
SELECT - + col1 * + col2 + + 81 AS col1 FROM tab1 AS cor0
----
-1167
-1323
-489

onlyif mysql # use DIV operator for integer division
query I rowsort label-3141
SELECT + 16 DIV + 44 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3141
SELECT + 16 / + 44 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3142
SELECT ALL - CAST( NULL AS SIGNED ) * - 15 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3142
SELECT ALL - CAST ( NULL AS INTEGER ) * - 15 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 * 83 - col0 AS col0 FROM tab0 cor0
----
2715
48
6717

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3144
SELECT ALL CAST( NULL AS DECIMAL ) * 64 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3144
SELECT ALL CAST ( NULL AS REAL ) * 64 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 79 + + col2 FROM tab0 AS cor0
----
-46
-78
3

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3146
SELECT ALL CAST( NULL AS DECIMAL ) * 70 + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3146
SELECT ALL CAST ( NULL AS REAL ) * 70 + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col2 + col0 + col1 FROM tab1 cor0
----
131
189
83

query I rowsort
SELECT ALL + 99 * - col1 * + cor0.col0 - ( col0 * - col2 ) AS col2 FROM tab2 AS cor0
----
-129955
-21294
-453570

query I rowsort
SELECT DISTINCT - col0 - col1 * - col1 * col0 FROM tab1
----
13440
2025
6336

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 - ( - col2 ) * col2 col2 FROM tab0 cor0
----
-96
1003
6633

query I rowsort
SELECT 4 - + 86 FROM tab2 AS cor0
----
-82
-82
-82

query I rowsort
SELECT ALL + 74 * - col2 FROM tab0 AS cor0
----
-2442
-6068
-74

query I rowsort
SELECT DISTINCT + - col1 + col1 * - cor0.col1 AS col2 FROM tab2 cor0
----
-306
-3540
-992

query I rowsort
SELECT 26 * - col2 + - col0 FROM tab0 AS cor0
----
-2221
-61
-882

query I rowsort
SELECT + + ( + col2 ) - - col1 AS col2 FROM tab2 AS cor0
----
55
58
85

onlyif mysql # use DIV operator for integer division
query I rowsort label-3156
SELECT + col1 + + col0 DIV tab2.col0 AS col2 FROM tab2
----
18
32
60

skipif mysql # not compatible
query I rowsort label-3156
SELECT + col1 + + col0 / tab2.col0 AS col2 FROM tab2
----
18
32
60

query I rowsort
SELECT ALL 76 FROM tab0, tab2 AS cor0
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 2 col2 FROM tab1
----
2

query I rowsort
SELECT ALL ( + col2 ) - + col0 AS col1 FROM tab0
----
-34
-7
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + col0 ) col1 FROM tab1
----
3
64
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 63 col2 FROM tab1, tab1 AS cor0
----
63

query I rowsort
SELECT ALL + col1 * + 95 + - col0 FROM tab1 AS cor0
----
1155
2467
886

query I rowsort
SELECT ALL - col2 * ( col0 ) AS col2 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT + tab2.col2 * col0 + tab2.col0 FROM tab2
----
196
2106
3081

onlyif mysql # use DIV operator for integer division
query I rowsort label-3165
SELECT - 15 DIV + col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3165
SELECT - 15 / + col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + - ( col0 ) * ( + cor0.col2 ) + col1 FROM tab1 cor0
----
-136
-3638
-7667

query I rowsort
SELECT DISTINCT - + col1 + col0 FROM tab0 cor0
----
-2
-62

query I rowsort
SELECT ALL - 41 + + col1 FROM tab2 AS cor0
----
-10
-24
18

query I rowsort
SELECT + 55 * + col0 - - col2 * col2 FROM tab0 AS cor0
----
11619
1926
2409

query I rowsort
SELECT DISTINCT - col0 + - col2 * + ( col2 ) AS col1 FROM tab2 AS cor0
----
-1523
-736
-754

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * + col2 + col1 * + col2 + col0 col2 FROM tab2 AS cor0
----
-2277
-416
655

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3172
SELECT ALL - 76 * col0 + CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3172
SELECT ALL - 76 * col0 + CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3173
SELECT ALL - 27 + col2 - - cor0.col1 DIV 31 FROM tab2 AS cor0
----
0
1
11

skipif mysql # not compatible
query I rowsort label-3173
SELECT ALL - 27 + col2 - - cor0.col1 / 31 FROM tab2 AS cor0
----
0
1
11

query I rowsort
SELECT DISTINCT 51 * - col1 + + 90 AS col0 FROM tab1 AS cor0
----
-1236
-420
-573

query I rowsort
SELECT + 82 * cor0.col1 + col1 * + col2 * col2 AS col1 FROM tab2 AS cor0
----
25141
25942
44722

onlyif mysql # use DIV operator for integer division
query I rowsort label-3176
SELECT ALL - col0 + col1 DIV + 56 FROM tab0 AS cor0
----
-23
-34
-88

skipif mysql # not compatible
query I rowsort label-3176
SELECT ALL - col0 + col1 / + 56 FROM tab0 AS cor0
----
-23
-34
-88

query I rowsort
SELECT + cor0.col2 + + col1 * ( - 4 + col0 ) FROM tab2 cor0
----
120
1313
4392

query I rowsort
SELECT + 27 + col1 AS col1 FROM tab2 cor0
----
44
58
86

query I rowsort
SELECT ALL 17 * col2 + 20 AS col2 FROM tab2 cor0
----
462
479
666

query I rowsort
SELECT DISTINCT col1 + + 28 FROM tab2 AS cor0
----
45
59
87

onlyif mysql # use DIV operator for integer division
query I rowsort label-3181
SELECT DISTINCT col2 DIV 35 - cor0.col2 AS col1 FROM tab2 AS cor0
----
-26
-27
-37

skipif mysql # not compatible
query I rowsort label-3181
SELECT DISTINCT col2 / 35 - cor0.col2 AS col1 FROM tab2 AS cor0
----
-26
-27
-37

query I rowsort
SELECT col2 + 76 AS col2 FROM tab2
----
102
103
114

query I rowsort
SELECT DISTINCT + 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-3184
SELECT + col2 + - CAST( NULL AS SIGNED ) * - ( - col0 ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3184
SELECT + col2 + - CAST ( NULL AS INTEGER ) * - ( - col0 ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col0 + 93 AS col1 FROM tab1 AS cor0
----
13
29
90

query I rowsort
SELECT ALL - col0 * - col1 AS col1 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT + col2 * col2 * col2 AS col0 FROM tab1 AS cor0
----
157464
185193
884736

query I rowsort
SELECT ALL - - cor0.col0 * col1 + col1 AS col2 FROM tab0 cor0
----
2150
3492
8190

query I rowsort
SELECT ALL + + 97 FROM tab0 AS cor0
----
97
97
97

query I rowsort
SELECT DISTINCT + 57 AS col0 FROM tab2, tab1 AS cor0
----
57

query I rowsort
SELECT ALL + col1 + - col1 + + col2 * 72 AS col2 FROM tab2 AS cor0
----
1872
1944
2736

query I rowsort
SELECT DISTINCT 38 FROM tab1, tab0 AS cor0
----
38

query I rowsort
SELECT DISTINCT + - col0 * + col2 * + cor0.col2 + - col2 AS col1 FROM tab1 AS cor0
----
-207993
-737376
-8802

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 67 col0 FROM tab0 AS cor0
----
-67
-67
-67

query I rowsort
SELECT + + col1 * ( - col0 ) AS col2 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT cor0.col1 + 4 FROM tab2 AS cor0
----
21
35
63

query I rowsort
SELECT ( col1 ) + - ( col1 ) FROM tab2
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3198
SELECT DISTINCT col1 * ( + col1 ) DIV col2 FROM tab1 AS cor0
----
1
12

skipif mysql # not compatible
query I rowsort label-3198
SELECT DISTINCT col1 * ( + col1 ) / col2 FROM tab1 AS cor0
----
1
12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * ( - ( col1 ) ) + + cor0.col2 + col1 * + col0 * cor0.col0 col2 FROM tab0 cor0
----
118923
52407
728355

query I rowsort
SELECT DISTINCT + + 97 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0, tab0 AS cor1
----
97

query I rowsort
SELECT + col1 * ( col0 + col0 ) AS col2 FROM tab0
----
16198
4128
6790

query I rowsort
SELECT tab0.col1 + col0 + col2 * + col1 FROM tab0
----
229
2948
7642

query I rowsort
SELECT + tab1.col0 * + col2 + - col0 FROM tab1 WHERE NOT ( NULL ) IN ( col0 * + col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT IN ( tab0.col1 )
----

query I rowsort
SELECT DISTINCT col2 + - col0 * col1 AS col2 FROM tab2
----
-1305
-190
-4576

onlyif mysql # use DIV operator for integer division
query I rowsort label-3206
SELECT DISTINCT tab0.col1 DIV + col0 + + col0 AS col0 FROM tab0
----
27
37
90

skipif mysql # not compatible
query I rowsort label-3206
SELECT DISTINCT tab0.col1 / + col0 + + col0 AS col0 FROM tab0
----
27
37
90

query III rowsort
SELECT ALL * FROM tab2 WHERE ( + col1 ) <> col2 * + col1 * - col1
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

query I rowsort
SELECT DISTINCT ( col0 ) * col1 AS col2 FROM tab1
----
1040
640
78

query I rowsort
SELECT DISTINCT + 63 FROM tab0
----
63

query I rowsort
SELECT ALL - cor0.col1 + - col1 + col1 FROM tab2 AS cor0
----
-17
-31
-59

onlyif mysql # use DIV operator for integer division
query I rowsort label-3211
SELECT - cor0.col0 DIV - col1 FROM tab1 AS cor0
----
0
6
6

skipif mysql # not compatible
query I rowsort label-3211
SELECT - cor0.col0 / - col1 FROM tab1 AS cor0
----
0
6
6

onlyif mysql # use DIV operator for integer division
query I rowsort label-3212
SELECT col2 DIV + cor0.col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3212
SELECT col2 / + cor0.col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT - 44 AS col0 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 38f05fdaaf15e64b62f27cd96f73fb79

query I rowsort
SELECT ALL + cor0.col2 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3

query I rowsort
SELECT DISTINCT - 46 * col2 AS col1 FROM tab0 AS cor0
----
-1518
-3772
-46

query I rowsort
SELECT ALL + 18 * - col2 FROM tab2
----
-468
-486
-684

query I rowsort
SELECT + - 67 + 73 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821

query I rowsort
SELECT cor0.col0 * - 56 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 28ad5b4c56d6883d0bc629268dd1fdd9

query I rowsort
SELECT + 15 * - cor0.col0 AS col1 FROM tab2 AS cor0
----
-105
-1170
-1185

query I rowsort
SELECT 80 * col1 + + col0 FROM tab1 AS cor0
----
1120
2083
864

query I rowsort
SELECT ALL + col2 * col1 + ( 36 ) AS col0 FROM tab1
----
1284
1440
606

query I rowsort
SELECT + - 95 * + col0 + 96 AS col0 FROM tab1 AS cor0
----
-189
-5984
-7504

query I rowsort
SELECT ALL - - cor0.col0 + + col1 AS col2 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT ALL + col2 * + col1 + 10 FROM tab1 AS cor0
----
1258
1414
580

query I rowsort
SELECT - + col2 + 82 AS col0 FROM tab1 cor0
----
-14
25
28

query I rowsort
SELECT DISTINCT 26 * + tab2.col1 AS col2 FROM tab2, tab2 AS cor0
----
1534
442
806

onlyif mysql # use DIV operator for integer division
query I rowsort label-3227
SELECT DISTINCT 22 DIV - col1 AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3227
SELECT DISTINCT 22 / - col1 AS col1 FROM tab0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3228
SELECT - col1 * + col2 DIV col2 - col2 AS col1 FROM tab1 cor0
----
-109
-67
-80

skipif mysql # not compatible
query I rowsort label-3228
SELECT - col1 * + col2 / col2 - col2 AS col1 FROM tab1 cor0
----
-109
-67
-80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3229
SELECT - + 39 - 9 * col2 * - CAST( + col1 + col1 AS SIGNED ) col1 FROM tab2 AS cor0
----
11589
15027
27573

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3229
SELECT - + 39 - 9 * col2 * - CAST ( + col1 + col1 AS INTEGER ) col1 FROM tab2 AS cor0
----
11589
15027
27573

query I rowsort
SELECT + 26 AS col1 FROM tab1 cor0
----
26
26
26

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3231
SELECT - + CAST( NULL AS SIGNED ) - col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3231
SELECT - + CAST ( NULL AS INTEGER ) - col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 2 + col1 AS col0 FROM tab1 cor0
----
11
24
8

query I rowsort
SELECT ALL - + ( - col2 ) + - col2 * - col1 FROM tab1 AS cor0
----
1344
1458
627

query I rowsort
SELECT + + col0 * + col2 + - ( cor0.col2 ) * col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - - 37 + - col0 FROM tab1 AS cor0
----
-27
-43
34

query I rowsort
SELECT ALL 47 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 3f991632e9c7c5142e1d80857cd10a2d

query I rowsort
SELECT ALL col2 * 55 * col1 AS col2 FROM tab2
----
35530
46035
84370

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3238
SELECT ALL - CAST( - col1 AS SIGNED ) FROM tab1
----
10
13
26

skipif mysql # not compatible
query I rowsort label-3238
SELECT ALL - CAST ( - col1 AS INTEGER ) FROM tab1
----
10
13
26

query I rowsort
SELECT - col2 + + 15 FROM tab0
----
-18
-67
14

query I rowsort
SELECT + col1 * col1 + 6 AS col2 FROM tab1 AS cor0
----
106
175
682

query I rowsort
SELECT - col1 + + col2 - - 47 AS col2 FROM tab1
----
130
75
94

query I rowsort
SELECT + col0 + 38 FROM tab2
----
116
117
45

onlyif mysql # use DIV operator for integer division
query I rowsort label-3243
SELECT col2 DIV 25 + - tab1.col2 DIV - col0 AS col1 FROM tab1
----
2
20
4

skipif mysql # not compatible
query I rowsort label-3243
SELECT col2 / 25 + - tab1.col2 / - col0 AS col1 FROM tab1
----
2
20
4

query I rowsort
SELECT - + col1 - - ( ( col2 ) + 98 ) * + cor0.col0 FROM tab0 AS cor0
----
15929
3058
3368

query I rowsort
SELECT DISTINCT + col2 + - ( col0 ) AS col1 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT DISTINCT - - col1 + ( + col2 ) FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT ALL - + col1 + col2 * col0 * 85 AS col2 FROM tab1 AS cor0
----
13744
310070
652787

onlyif mysql # use DIV operator for integer division
query I rowsort label-3248
SELECT ALL cor0.col2 DIV 97 - cor0.col2 DIV 29 AS col1 FROM tab1 AS cor0
----
-1
-1
-3

skipif mysql # not compatible
query I rowsort label-3248
SELECT ALL cor0.col2 / 97 - cor0.col2 / 29 AS col1 FROM tab1 AS cor0
----
-1
-1
-3

query I rowsort
SELECT ( col0 ) * col0 + + cor0.col2 FROM tab2 cor0
----
6110
6279
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 9 + col1 col2 FROM tab2 AS cor0
----
22
50
8

query I rowsort
SELECT 85 AS col1 FROM tab1 AS cor0
----
85
85
85

query I rowsort
SELECT ALL col1 + - cor0.col2 FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT ALL - + col0 - + col0 AS col2 FROM tab1 AS cor0
----
-128
-160
-6

onlyif mysql # use DIV operator for integer division
query I rowsort label-3254
SELECT ALL + - 20 + + cor0.col0 DIV col2 col0 FROM tab1 AS cor0
----
-19
-20
-20

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3254
SELECT ALL + - 20 + + cor0.col0 / col2 col0 FROM tab1 AS cor0
----
-19
-20
-20

query I rowsort
SELECT + 15 * + col1 FROM tab2 AS cor0
----
255
465
885

query I rowsort
SELECT - + col2 * ( + col2 ) + - cor0.col1 AS col0 FROM tab1 AS cor0
----
-2942
-3259
-9229

query I rowsort
SELECT ALL - col2 * 76 FROM tab2 AS cor0
----
-1976
-2052
-2888

query I rowsort
SELECT DISTINCT + col2 * - col0 + - col2 * - 54 AS col2 FROM tab0 AS cor0
----
-2870
19
990

onlyif mysql # use DIV operator for integer division
query I rowsort label-3259
SELECT ALL + col1 DIV + ( tab0.col1 ) - + col2 FROM tab0
----
-32
-81
0

skipif mysql # not compatible
query I rowsort label-3259
SELECT ALL + col1 / + ( tab0.col1 ) - + col2 FROM tab0
----
-32
-81
0

query I rowsort
SELECT DISTINCT - col2 - col0 AS col1 FROM tab1
----
-121
-176
-57

onlyif mysql # use DIV operator for integer division
query I rowsort label-3261
SELECT - tab1.col1 DIV col2 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3261
SELECT - tab1.col1 / col2 AS col0 FROM tab1
----
0
0
0

query I rowsort
SELECT 70 AS col0 FROM tab2 AS cor0
----
70
70
70

onlyif mysql # use DIV operator for integer division
query I rowsort label-3263
SELECT DISTINCT + + 67 DIV - col0 AS col2 FROM tab1 AS cor0
----
-1
-22
0

skipif mysql # not compatible
query I rowsort label-3263
SELECT DISTINCT + + 67 / - col0 AS col2 FROM tab1 AS cor0
----
-1
-22
0

query I rowsort
SELECT DISTINCT + 10 * + col1 * - 78 AS col0 FROM tab0 cor0
----
-67080
-70980
-75660

query I rowsort
SELECT ( - ( col1 ) ) AS col2 FROM tab0
----
-86
-91
-97

query I rowsort
SELECT ( col0 * col0 ) AS col0 FROM tab2
----
49
6084
6241

query I rowsort
SELECT DISTINCT - - ( cor0.col0 ) + + ( col2 * cor0.col0 ) AS col0 FROM tab0 AS cor0
----
70
7387
816

query I rowsort
SELECT ALL - col2 + - ( cor0.col1 + col0 ) FROM tab0 AS cor0
----
-133
-143
-262

query I rowsort
SELECT + 42 AS col1 FROM tab1 cor0
----
42
42
42

query I rowsort
SELECT col0 - col0 * col1 AS col2 FROM tab0
----
-2040
-3360
-8010

query I rowsort
SELECT DISTINCT + col1 + - ( cor0.col2 + cor0.col0 ) AS col1 FROM tab2 cor0
----
-100
-3
-45

query I rowsort
SELECT + + col0 + col2 * - col2 AS col1 FROM tab1 AS cor0
----
-2913
-3185
-9136

query I rowsort
SELECT ALL col1 * - col0 AS col2 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT ALL - cor0.col2 - - col2 * col0 * col0 FROM tab2 AS cor0
----
1296
158158
237120

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * - ( - col2 ) col0 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT ALL - col2 * - 31 AS col2 FROM tab1 AS cor0
----
1674
1767
2976

query I rowsort
SELECT DISTINCT - + col1 + - 38 * col0 AS col0 FROM tab0 cor0
----
-1427
-3473
-998

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( col2 * tab2.col2 ) col2 FROM tab2
----
-1444
-676
-729

query I rowsort
SELECT ALL + 55 AS col0 FROM tab2
----
55
55
55

query I rowsort
SELECT DISTINCT - cor0.col1 + - col0 AS col0 FROM tab0 AS cor0
----
-110
-132
-180

query I rowsort
SELECT DISTINCT - + col1 + ( 64 ) AS col1 FROM tab1 AS cor0
----
38
51
54

query I rowsort
SELECT ALL col2 * - ( col2 + - col0 * 13 ) AS col0 FROM tab2 AS cor0
----
1728
25688
37582

query I rowsort
SELECT ALL col1 * + col1 + - col0 AS col1 FROM tab1 AS cor0
----
36
673
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-3284
SELECT ALL + + cor0.col0 DIV - col2 AS col0 FROM tab0 AS cor0
----
-1
-35
0

skipif mysql # not compatible
query I rowsort label-3284
SELECT ALL + + cor0.col0 / - col2 AS col0 FROM tab0 AS cor0
----
-1
-35
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3285
SELECT ALL + col0 DIV cor0.col2 + - ( cor0.col0 + 95 ) FROM tab0 AS cor0
----
-119
-183
-95

skipif mysql # not compatible
query I rowsort label-3285
SELECT ALL + col0 / cor0.col2 + - ( cor0.col0 + 95 ) FROM tab0 AS cor0
----
-119
-183
-95

query I rowsort
SELECT 85 + cor0.col0 AS col1 FROM tab1 AS cor0
----
149
165
88

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3287
SELECT - CAST( NULL AS SIGNED ) * col1 + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3287
SELECT - CAST ( NULL AS INTEGER ) * col1 + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3288
SELECT col2 + col0 DIV col2 AS col1 FROM tab1 AS cor0
----
54
58
96

skipif mysql # not compatible
query I rowsort label-3288
SELECT col2 + col0 / col2 AS col1 FROM tab1 AS cor0
----
54
58
96

query I rowsort
SELECT DISTINCT ( col1 ) AS col1 FROM tab0 cor0
----
86
91
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3290
SELECT CAST( NULL AS SIGNED ) + - tab0.col0 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3290
SELECT CAST ( NULL AS INTEGER ) + - tab0.col0 AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - - col2 + - col1 FROM tab2 AS cor0
----
-33
-4
21

query I rowsort
SELECT DISTINCT - + ( col2 ) * col1 + 39 AS col0 FROM tab0 AS cor0
----
-2799
-58
-7423

query I rowsort
SELECT ALL + col2 + + col1 * - 3 AS col0 FROM tab2 AS cor0
----
-13
-151
-66

query I rowsort
SELECT DISTINCT - col0 + col0 * + ( - col1 ) FROM tab2 AS cor0
----
-1422
-224
-4680

query I rowsort
SELECT ALL + - 21 AS col0 FROM tab1 AS cor0
----
-21
-21
-21

query I rowsort
SELECT ALL 34 * + col2 AS col2 FROM tab0 cor0
----
1122
2788
34

query I rowsort
SELECT DISTINCT - - 74 AS col2 FROM tab0 AS cor0
----
74

query I rowsort
SELECT ALL - 41 * - col2 * col1 FROM tab1 AS cor0
----
23370
51168
57564

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 20 * col2 col0 FROM tab0 AS cor0
----
1640
20
660

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + cor0.col1 col0 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT + - ( ( + col1 ) ) AS col2 FROM tab1 AS cor0
----
-10
-13
-26

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3302
SELECT ALL + CAST( NULL AS SIGNED ) / - cor0.col1 + + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3302
SELECT ALL + CAST ( NULL AS INTEGER ) / - cor0.col1 + + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - col2 * + cor0.col0 AS col2 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT + + col0 * + 0 AS col2 FROM tab1 cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3305
SELECT + 31 DIV col0 FROM tab1 AS cor0
----
0
0
10

skipif mysql # not compatible
query I rowsort label-3305
SELECT + 31 / col0 FROM tab1 AS cor0
----
0
0
10

query I rowsort
SELECT 35 + col1 FROM tab2 AS cor0
----
52
66
94

query I rowsort
SELECT + - col0 + + col1 * ( cor0.col0 ) AS col2 FROM tab0 AS cor0
----
2040
3360
8010

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * - col2 + + cor0.col0 col1 FROM tab2 AS cor0
----
1523
736
754

query I rowsort
SELECT col1 * - ( col0 ) FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT + col1 + col0 * ( col1 ) AS col2 FROM tab2 cor0
----
1360
248
4661

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3311
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + cor0.col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-3311
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + cor0.col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

query I rowsort
SELECT + col0 * - 98 FROM tab2
----
-686
-7644
-7742

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 32 col1 FROM tab1, tab0 AS cor0
----
-32

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3314
SELECT + col1 * + CAST( col1 AS SIGNED ) FROM tab2 AS cor0
----
289
3481
961

skipif mysql # not compatible
query I rowsort label-3314
SELECT + col1 * + CAST ( col1 AS INTEGER ) FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT DISTINCT col1 + - cor0.col2 * 79 FROM tab2 AS cor0
----
-1995
-2102
-2985

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab2 cor0, tab2 AS cor1, tab2, tab0 cor2
----
3645 values hashing to 40e4acd618698dd2305f1f7b8b547f7a

query I rowsort
SELECT ALL + cor1.col0 * + cor1.col1 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 6387e809cb1e467e8e7184dc79f3a43b

query I rowsort
SELECT DISTINCT - - col0 + + ( - cor0.col1 ) FROM tab0 AS cor0
----
-2
-62

query I rowsort
SELECT - 29 FROM tab1 cor0
----
-29
-29
-29

query I rowsort
SELECT - 49 * 92 FROM tab2 AS cor0
----
-4508
-4508
-4508

query I rowsort
SELECT - 24 * + col1 * col2 AS col2 FROM tab2 AS cor0
----
-15504
-20088
-36816

query I rowsort
SELECT ALL - col0 - tab0.col1 AS col1 FROM tab0
----
-110
-132
-180

query I rowsort
SELECT - 0 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT ALL col1 * tab1.col2 + col1 * - col2 + col0 FROM tab1
----
3
64
80

query I rowsort
SELECT col1 * col2 + + col2 + - col1 * - col2 AS col0 FROM tab0 AS cor0
----
15006
195
5709

query I rowsort
SELECT DISTINCT 27 AS col2 FROM tab1
----
27

query I rowsort
SELECT DISTINCT ( + 84 ) + col1 + ( tab2.col1 * col1 ) AS col0 FROM tab2
----
1076
3624
390

query I rowsort
SELECT + + 88 FROM tab1 cor0
----
88
88
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab1.col0 * - col1 col0 FROM tab1
----
1040
640
78

query I rowsort
SELECT ALL tab0.col1 FROM tab0, tab2 AS cor0, tab2 cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - col2 + 85 * + col1 col2 FROM tab1 AS cor0
----
-2798
-6575
2048

query I rowsort
SELECT - 93 FROM tab1 cor0
----
-93
-93
-93

query I rowsort
SELECT - col0 * - 0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3334
SELECT col2 DIV col1 + cor0.col2 FROM tab1 AS cor0
----
103
56
62

skipif mysql # not compatible
query I rowsort label-3334
SELECT col2 / col1 + cor0.col2 FROM tab1 AS cor0
----
103
56
62

query I rowsort
SELECT ALL - 93 + - col2 * 90 AS col0 FROM tab0
----
-183
-3063
-7473

query I rowsort
SELECT - col1 * ( col1 ) - + col2 FROM tab0 AS cor0
----
-7429
-8363
-9410

query I rowsort
SELECT - - cor0.col1 * 38 * + 92 + col0 AS col0 FROM tab1 AS cor0
----
35024
45528
90899

query I rowsort
SELECT - + col1 * col1 + col0 FROM tab0 AS cor0
----
-7372
-8192
-9374

query I rowsort
SELECT - ( + col1 ) + col0 AS col2 FROM tab2
----
-24
19
62

query I rowsort
SELECT - tab1.col2 * + 17 + col2 AS col2 FROM tab1
----
-1536
-864
-912

query I rowsort
SELECT ALL + col1 - col1 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT + col2 - - col2 AS col2 FROM tab0
----
164
2
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 40 col0 FROM tab0, tab0 AS cor0
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3

query I rowsort
SELECT DISTINCT - 79 AS col2 FROM tab2
----
-79

onlyif mysql # use DIV operator for integer division
query I rowsort label-3345
SELECT - - 41 + - col0 DIV col1 AS col2 FROM tab1 cor0
----
35
35
41

skipif mysql # not compatible
query I rowsort label-3345
SELECT - - 41 + - col0 / col1 AS col2 FROM tab1 cor0
----
35
35
41

query I rowsort
SELECT DISTINCT tab1.col0 + - tab1.col2 FROM tab1
----
-16
-51
7

query I rowsort
SELECT DISTINCT - - col1 + + col1 * ( col0 * + col0 ) AS col2 FROM tab0 AS cor0
----
118922
49622
720902

query I rowsort
SELECT DISTINCT + col1 + + col1 AS col1 FROM tab2 AS cor0
----
118
34
62

query I rowsort
SELECT DISTINCT + - 85 + col0 AS col1 FROM tab0 AS cor0
----
-50
-61
4

onlyif mysql # use DIV operator for integer division
query I rowsort label-3350
SELECT - cor0.col1 DIV col0 AS col1 FROM tab0 cor0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-3350
SELECT - cor0.col1 / col0 AS col1 FROM tab0 cor0
----
-1
-2
-3

query I rowsort
SELECT - col0 - - tab2.col2 AS col2 FROM tab2
----
-41
-52
20

query I rowsort
SELECT + ( tab0.col2 ) FROM tab0, tab1 AS cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8

query I rowsort
SELECT DISTINCT col2 + - 28 FROM tab1
----
26
29
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - + col2 col1 FROM tab2
----
-21
33
4

query I rowsort
SELECT DISTINCT + col0 + + col1 * + col1 AS col0 FROM tab2
----
3559
368
968

query I rowsort
SELECT + col0 * + col0 + col1 FROM tab2 AS cor0
----
6143
6258
80

query I rowsort
SELECT 94 * 27 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to f7f655b22b847117457036d1167e6b77

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3358
SELECT DISTINCT - CAST( 23 AS SIGNED ) * - col0 + CAST( + col1 AS SIGNED ) FROM tab2 AS cor0
----
1834
1853
192

skipif mysql # not compatible
query I rowsort label-3358
SELECT DISTINCT - CAST ( 23 AS INTEGER ) * - col0 + CAST ( + col1 AS INTEGER ) FROM tab2 AS cor0
----
1834
1853
192

query I rowsort
SELECT + ( - col0 ) + + col0 AS col2 FROM tab0 cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 1 col1 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT ( ( + col2 ) ) * ( col1 ) AS col2 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT DISTINCT - ( + 42 ) + + col2 FROM tab0 AS cor0
----
-41
-9
40

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3363
SELECT - CAST( NULL AS DECIMAL ) * ( col0 ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3363
SELECT - CAST ( NULL AS REAL ) * ( col0 ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + ( + cor0.col0 ) * col1 + col0 AS col1 FROM tab2 AS cor0
----
1422
224
4680

query I rowsort
SELECT ALL - - cor0.col0 * 98 * - col0 + + col0 - - col2 * + cor0.col0 FROM tab1 AS cor0
----
-397696
-619440
-717

query I rowsort
SELECT + col2 * - col0 * col1 AS col2 FROM tab1
----
-36480
-4212
-99840

query I rowsort
SELECT + col2 - 73 AS col0 FROM tab0
----
-40
-72
9

query I rowsort
SELECT cor0.col2 + 71 AS col2 FROM tab2 AS cor0
----
109
97
98

query I rowsort
SELECT ( 42 ) AS col2 FROM tab2 AS cor0
----
42
42
42

query I rowsort
SELECT DISTINCT + col0 + col0 * col0 FROM tab1 AS cor0
----
12
4160
6480

query I rowsort
SELECT ALL col2 * - col2 + + col0 * col0 FROM tab2 cor0
----
-680
4797
5408

query I rowsort
SELECT DISTINCT - - ( col2 ) - + col1 FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT - col2 + - 84 AS col0 FROM tab2 AS cor0
----
-110
-111
-122

query I rowsort
SELECT ALL - col2 * cor0.col1 AS col0 FROM tab2 AS cor0
----
-1534
-646
-837

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 - - col0 col2 FROM tab1 AS cor0
----
128
160
6

query I rowsort
SELECT + ( + col0 ) * tab2.col2 FROM tab2
----
189
2028
3002

query I rowsort
SELECT - cor0.col2 + + 54 * cor0.col0 FROM tab1 cor0
----
108
3399
4224

query I rowsort
SELECT ALL + col1 * col2 * + col2 AS col1 FROM tab2 AS cor0
----
22599
24548
39884

onlyif mysql # use DIV operator for integer division
query I rowsort label-3379
SELECT DISTINCT - - 80 DIV - col1 col0 FROM tab2 AS cor0
----
-1
-2
-4

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3379
SELECT DISTINCT - - 80 / - col1 col0 FROM tab2 AS cor0
----
-1
-2
-4

query I rowsort
SELECT - 12 + col1 FROM tab2 AS cor0
----
19
47
5

onlyif mysql # use DIV operator for integer division
query I rowsort label-3381
SELECT DISTINCT 77 DIV + 33 AS col0 FROM tab1 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-3381
SELECT DISTINCT 77 / + 33 AS col0 FROM tab1 AS cor0
----
2

query I rowsort
SELECT + + 54 + 74 * col2 AS col1 FROM tab1 AS cor0
----
4050
4272
7158

query I rowsort
SELECT + col1 + + 36 FROM tab2
----
53
67
95

query I rowsort
SELECT - col0 * + col2 * - col1 AS col1 FROM tab2 AS cor0
----
119652
51034
5859

query I rowsort
SELECT DISTINCT - 41 * + col1 FROM tab2
----
-1271
-2419
-697

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3386
SELECT ALL CAST( - col1 AS SIGNED ) FROM tab2
----
-17
-31
-59

skipif mysql # not compatible
query I rowsort label-3386
SELECT ALL CAST ( - col1 AS INTEGER ) FROM tab2
----
-17
-31
-59

query I rowsort
SELECT + cor0.col0 + col0 AS col0 FROM tab1 AS cor0
----
128
160
6

onlyif mysql # use DIV operator for integer division
query I rowsort label-3388
SELECT + col1 DIV + col1 + col1 + col0 * 11 * - cor0.col0 AS col1 FROM tab0 AS cor0
----
-13377
-6249
-87039

skipif mysql # not compatible
query I rowsort label-3388
SELECT + col1 / + col1 + col1 + col0 * 11 * - cor0.col0 AS col1 FROM tab0 AS cor0
----
-13377
-6249
-87039

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3389
SELECT ALL - col0 * + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3389
SELECT ALL - col0 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT cor0.col0 * + ( + col0 + col1 * - col2 ) AS col1 FROM tab2 AS cor0
----
-113568
-44793
-5810

query I rowsort
SELECT ALL col2 + + 24 * + cor0.col2 + - col0 AS col1 FROM tab0 AS cor0
----
-10
1961
801

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3392
SELECT - col0 * - CAST( NULL AS SIGNED ) + col0 + col2 * + col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3392
SELECT - col0 * - CAST ( NULL AS INTEGER ) + col0 + col2 * + col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 * + col2 + col0 FROM tab1 cor0
----
2919
3313
9296

onlyif mysql # use DIV operator for integer division
query I rowsort label-3394
SELECT ALL + col2 DIV cor0.col1 + - col1 DIV - col2 + cor0.col2 AS col0 FROM tab1 AS cor0
----
103
56
62

skipif mysql # not compatible
query I rowsort label-3394
SELECT ALL + col2 / cor0.col1 + - col1 / - col2 + cor0.col2 AS col0 FROM tab1 AS cor0
----
103
56
62

query I rowsort
SELECT col1 + + 80 FROM tab0 cor0
----
166
171
177

onlyif mysql # use DIV operator for integer division
query I rowsort label-3396
SELECT ALL + col2 + + col0 DIV col0 FROM tab0 AS cor0
----
2
34
83

skipif mysql # not compatible
query I rowsort label-3396
SELECT ALL + col2 + + col0 / col0 FROM tab0 AS cor0
----
2
34
83

query I rowsort
SELECT + col1 + 21 * 5 AS col2 FROM tab1 AS cor0
----
115
118
131

query I rowsort
SELECT ALL tab2.col1 - - col1 FROM tab2
----
118
34
62

query I rowsort
SELECT DISTINCT + col2 + col1 - - col0 * - col0 * - col2 AS col0 FROM tab1
----
233539
566
614509

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 11 - col1 col2 FROM tab1
----
-21
-24
-37

query I rowsort
SELECT 96 FROM tab0, tab2, tab1 cor0
----
27 values hashing to f1d978c2d5bfc6f26e0907ac777be83e

query I rowsort
SELECT DISTINCT - tab2.col0 - tab2.col0 AS col0 FROM tab2
----
-14
-156
-158

query I rowsort
SELECT 85 * - cor0.col1 FROM tab0, tab1 AS cor0
----
9 values hashing to b16e9457aef5b95bde054b096035f5db

query I rowsort
SELECT DISTINCT + + cor1.col0 * cor1.col0 FROM tab1 cor0 CROSS JOIN tab1, tab0 cor1
----
1225
576
7921

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3405
SELECT DISTINCT col0 / CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3405
SELECT DISTINCT col0 / CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT col0 + + 8 FROM tab0 AS cor0
----
32
43
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3407
SELECT DISTINCT + + col1 + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3407
SELECT DISTINCT + + col1 + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3408
SELECT + + col0 + 45 * cor0.col1 + cor0.col2 * CAST( + col0 AS SIGNED ) FROM tab1 AS cor0
----
1335
4162
8345

skipif mysql # not compatible
query I rowsort label-3408
SELECT + + col0 + 45 * cor0.col1 + cor0.col2 * CAST ( + col0 AS INTEGER ) FROM tab1 AS cor0
----
1335
4162
8345

query I rowsort
SELECT DISTINCT - + cor0.col0 + ( col2 + + cor0.col1 ) * + col1 FROM tab1 AS cor0
----
1337
2077
606

query I rowsort
SELECT col2 * - 8 + cor0.col0 + col0 AS col2 FROM tab0 cor0
----
-216
-478
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-3411
SELECT col2 + - col2 DIV col1 - col0 FROM tab0 AS cor0
----
-34
-7
9

skipif mysql # not compatible
query I rowsort label-3411
SELECT col2 + - col2 / col1 - col0 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT + tab0.col1 * + col1 AS col1 FROM tab0
----
7396
8281
9409

query I rowsort
SELECT - 22 * 40 FROM tab1, tab1 AS cor0
----
9 values hashing to c4a55b1d64db1c6559c5d353b3ba2051

query I rowsort
SELECT DISTINCT - col2 + + col0 * cor0.col1 AS col1 FROM tab0 AS cor0
----
2031
3394
8017

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3415
SELECT cor0.col1 + - CAST( NULL AS SIGNED ) FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-3415
SELECT cor0.col1 + - CAST ( NULL AS INTEGER ) FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT - - col0 + col2 * - col1 AS col2 FROM tab0 cor0
----
-2814
-62
-7373

query I rowsort
SELECT - col0 + col1 * + col0 AS col0 FROM tab0 AS cor0
----
2040
3360
8010

query I rowsort
SELECT ALL - 93 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 38f445d95788c7dc754ff688a62df03b

query I rowsort
SELECT + col1 + - ( - 39 ) * col1 AS col1 FROM tab1 AS cor0
----
1040
400
520

query I rowsort
SELECT + ( + tab0.col0 ) * col1 FROM tab0
----
2064
3395
8099

query I rowsort
SELECT ALL + 19 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 86c53e8567a17c8d91fc5aff119e0498

query I rowsort
SELECT cor0.col1 * 51 + cor0.col2 AS col2 FROM tab2 AS cor0
----
1608
3035
905

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 13 * 99 + col0 * + 70 col0 FROM tab0 AS cor0
----
1163
393
4943

query I rowsort
SELECT DISTINCT ( + cor0.col0 ) * + col2 AS col0 FROM tab2 cor0
----
189
2028
3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-3425
SELECT ALL ( - col2 ) DIV + col0 + col2 AS col2 FROM tab2 cor0
----
24
26
38

skipif mysql # not compatible
query I rowsort label-3425
SELECT ALL ( - col2 ) / + col0 + col2 AS col2 FROM tab2 cor0
----
24
26
38

query I rowsort
SELECT + - 56 FROM tab0 cor0
----
-56
-56
-56

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3427
SELECT ALL + CAST( ( + col2 ) AS SIGNED ) * - 42 + col0 FROM tab2 AS cor0
----
-1014
-1127
-1517

skipif mysql # not compatible
query I rowsort label-3427
SELECT ALL + CAST ( ( + col2 ) AS INTEGER ) * - 42 + col0 FROM tab2 AS cor0
----
-1014
-1127
-1517

onlyif mysql # use DIV operator for integer division
query I rowsort label-3428
SELECT - + col0 DIV - col0 - col0 AS col0 FROM tab2 AS cor0
----
-6
-77
-78

skipif mysql # not compatible
query I rowsort label-3428
SELECT - + col0 / - col0 - col0 AS col0 FROM tab2 AS cor0
----
-6
-77
-78

query I rowsort
SELECT ALL - col2 * col0 + col0 * + ( col0 ) AS col2 FROM tab0 AS cor0
----
-216
1190
623

query I rowsort
SELECT DISTINCT 78 - col1 * + col0 AS col2 FROM tab1 AS cor0
----
-562
-962
0

query I rowsort
SELECT ( - col2 ) * col0 FROM tab2
----
-189
-2028
-3002

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3432
SELECT ALL + + CAST( NULL AS SIGNED ) / col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3432
SELECT ALL + + CAST ( NULL AS INTEGER ) / col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 63 - - ( - col2 ) AS col1 FROM tab0 cor0
----
-19
30
62

query I rowsort
SELECT + col0 * cor0.col2 - + col0 FROM tab2 AS cor0
----
182
1950
2923

query I rowsort
SELECT 36 * col0 - + cor0.col0 AS col1 FROM tab0 cor0
----
1225
3115
840

query I rowsort
SELECT ALL + 95 FROM tab2, tab0 AS cor0
----
9 values hashing to e57d8ed879dfd04d04aae87725c970d3

query I rowsort
SELECT + 18 + col0 * col2 AS col1 FROM tab1 AS cor0
----
180
3666
7698

query I rowsort
SELECT + 25 * + col1 FROM tab0
----
2150
2275
2425

query I rowsort
SELECT col0 * col2 + tab0.col2 AS col0 FROM tab0
----
36
7380
825

query I rowsort
SELECT DISTINCT 20 AS col2 FROM tab2, tab0 AS cor0
----
20

query I rowsort
SELECT - 41 - col1 AS col2 FROM tab0 AS cor0
----
-127
-132
-138

query I rowsort
SELECT + - cor0.col0 + col0 * + col2 + 54 FROM tab2 AS cor0
----
2004
236
2977

query I rowsort
SELECT - + col1 * col1 * col1 FROM tab1 AS cor0
----
-1000
-17576
-2197

query I rowsort
SELECT DISTINCT - - 7 AS col1 FROM tab1 AS cor0
----
7

query I rowsort
SELECT DISTINCT 75 * cor0.col0 AS col0 FROM tab2, tab0 AS cor0
----
1800
2625
6675

query I rowsort
SELECT ALL 83 * + col0 FROM tab0
----
1992
2905
7387

query I rowsort
SELECT DISTINCT ( 28 ) * + tab2.col0 AS col2 FROM tab2
----
196
2184
2212

query I rowsort
SELECT DISTINCT - + col2 + - col1 AS col2 FROM tab2 AS cor0
----
-55
-58
-85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 45 col0 FROM tab0 AS cor0
----
-45
-45
-45

query I rowsort
SELECT DISTINCT - 49 + col2 * + col1 FROM tab1 AS cor0
----
1199
1355
521

query I rowsort
SELECT - col0 - + cor0.col0 FROM tab0 AS cor0
----
-178
-48
-70

query I rowsort
SELECT ALL cor0.col2 + col2 AS col1 FROM tab0 AS cor0
----
164
2
66

onlyif mysql # use DIV operator for integer division
query I rowsort label-3453
SELECT ALL - + col1 DIV col0 FROM tab2 AS cor0
----
-4
0
0

skipif mysql # not compatible
query I rowsort label-3453
SELECT ALL - + col1 / col0 FROM tab2 AS cor0
----
-4
0
0

query I rowsort
SELECT ALL - tab1.col2 - col0 AS col1 FROM tab1
----
-121
-176
-57

query I rowsort
SELECT DISTINCT - col2 + + cor0.col0 FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT + + 5 FROM tab0 AS cor0
----
5
5
5

query I rowsort
SELECT ALL + 76 + - col1 FROM tab1 cor0
----
50
63
66

query I rowsort
SELECT + 28 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97

query I rowsort
SELECT DISTINCT 69 AS col0 FROM tab2, tab1 AS cor0
----
69

query I rowsort
SELECT ALL 14 * col0 AS col1 FROM tab1
----
1120
42
896

query I rowsort
SELECT ( - col2 ) + col1 * - col0 AS col2 FROM tab1
----
-1136
-132
-697

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab0.col1 col2 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

query I rowsort
SELECT + ( + col2 ) * col0 AS col0 FROM tab0 cor0
----
35
7298
792

query I rowsort
SELECT ALL ( + ( col1 ) ) * + tab1.col1 FROM tab1
----
100
169
676

query I rowsort
SELECT ALL - 99 AS col1 FROM tab2
----
-99
-99
-99

onlyif mysql # use DIV operator for integer division
query I rowsort label-3466
SELECT ALL col0 DIV col0 AS col1 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3466
SELECT ALL col0 / col0 AS col1 FROM tab0 AS cor0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + cor0.col0 col0 FROM tab1 cor0
----
-3
-64
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - cor0.col1 * + col1 col1 FROM tab1 cor0
----
-100
-169
-676

query I rowsort
SELECT ALL 4 + - col0 * col2 * col2 AS col1 FROM tab1
----
-207932
-737276
-8744

query I rowsort
SELECT ALL tab2.col2 * - tab2.col0 FROM tab2
----
-189
-2028
-3002

query I rowsort
SELECT - col1 * col1 - col2 AS col2 FROM tab1
----
-157
-265
-730

query I rowsort
SELECT col2 + - col0 * - tab0.col0 * + col2 FROM tab0
----
1226
19041
649604

onlyif mysql # use DIV operator for integer division
query I rowsort label-3473
SELECT ALL + col1 DIV + col2 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3473
SELECT ALL + col1 / + col2 AS col2 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL - tab2.col2 * col0 FROM tab2
----
-189
-2028
-3002

query I rowsort
SELECT col0 * 72 AS col0 FROM tab1
----
216
4608
5760

onlyif mysql # use DIV operator for integer division
query I rowsort label-3476
SELECT ALL + ( + col0 ) - - col0 DIV col1 FROM tab0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-3476
SELECT ALL + ( + col0 ) - - col0 / col1 FROM tab0
----
24
35
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 79 * col1 + + col1 col0 FROM tab2
----
1360
2480
4720

query I rowsort
SELECT + col0 + 39 + - col0 AS col0 FROM tab1
----
39
39
39

query I rowsort
SELECT DISTINCT col1 - 64 FROM tab1
----
-38
-51
-54

query I rowsort
SELECT - cor0.col1 + - cor0.col2 AS col2 FROM tab0 AS cor0
----
-119
-173
-98

query I rowsort
SELECT ALL cor0.col0 + + cor0.col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 00ff93cbcc751be1393f9e1fd72170f8

query I rowsort
SELECT - col2 * + 35 AS col1 FROM tab1
----
-1890
-1995
-3360

onlyif mysql # use DIV operator for integer division
query I rowsort label-3483
SELECT ALL + 0 * + 5 DIV col0 - - col0 * col0 FROM tab2
----
49
6084
6241

skipif mysql # not compatible
query I rowsort label-3483
SELECT ALL + 0 * + 5 / col0 - - col0 * col0 FROM tab2
----
49
6084
6241

query I rowsort
SELECT DISTINCT - col0 - - 27 FROM tab0
----
-62
-8
3

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3485
SELECT DISTINCT CAST( NULL AS SIGNED ) * col0 + col0 AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3485
SELECT DISTINCT CAST ( NULL AS INTEGER ) * col0 + col0 AS col1 FROM tab1
----
NULL

query I rowsort
SELECT 96 + col1 * - col2 FROM tab0
----
-1
-2742
-7366

onlyif mysql # use DIV operator for integer division
query I rowsort label-3487
SELECT DISTINCT + col2 DIV col1 + col0 FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-3487
SELECT DISTINCT + col2 / col1 + col0 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT ALL 21 * col0 FROM tab0 AS cor0
----
1869
504
735

query I rowsort
SELECT - cor0.col1 + col2 * col1 FROM tab2 AS cor0
----
1475
629
806

query I rowsort
SELECT ALL 45 + col2 * - tab0.col1 AS col0 FROM tab0
----
-2793
-52
-7417

query I rowsort
SELECT - 80 + col0 FROM tab1 AS cor0
----
-16
-77
0

query I rowsort
SELECT DISTINCT + - col0 * col0 + + col1 AS col0 FROM tab0 AS cor0
----
-1128
-490
-7830

query I rowsort
SELECT ALL + 9 * col0 - col2 * col0 FROM tab0 AS cor0
----
-576
-6497
280

query I rowsort
SELECT + 59 * col1 + col1 FROM tab0 AS cor0
----
5160
5460
5820

query I rowsort
SELECT DISTINCT - - 27 * - col1 + - col1 * col1 FROM tab2 AS cor0
----
-1798
-5074
-748

query I rowsort
SELECT + col1 * col1 + - col2 FROM tab0 cor0
----
7363
8199
9408

query I rowsort
SELECT + 17 + col0 * cor0.col0 FROM tab2 AS cor0
----
6101
6258
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - col0 ) col2 FROM tab0 AS cor0
----
-24
-35
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 40 * - cor0.col2 col2 FROM tab1 AS cor0
----
2160
2280
3840

query I rowsort
SELECT ALL col0 * + cor0.col2 + col0 AS col2 FROM tab2 AS cor0
----
196
2106
3081

query I rowsort
SELECT - col2 * col1 * - col2 AS col1 FROM tab1
----
119808
32490
75816

query I rowsort
SELECT ALL - col0 + tab0.col2 FROM tab0
----
-34
-7
9

query I rowsort
SELECT DISTINCT + col0 * + tab2.col0 AS col0 FROM tab2
----
49
6084
6241

query I rowsort
SELECT DISTINCT tab0.col1 + tab0.col1 AS col2 FROM tab0
----
172
182
194

query I rowsort
SELECT ALL tab0.col1 * + col1 - - col2 FROM tab0 WHERE NULL IN ( col1 )
----

query I rowsort
SELECT DISTINCT - col0 * col1 + + col0 FROM tab1
----
-576
-75
-960

query I rowsort
SELECT - col1 * tab0.col0 * - col0 AS col0 FROM tab0
----
118825
49536
720811

onlyif mysql # use DIV operator for integer division
query I rowsort label-3508
SELECT - col0 + tab0.col2 DIV col0 FROM tab0
----
-23
-35
-89

skipif mysql # not compatible
query I rowsort label-3508
SELECT - col0 + tab0.col2 / col0 FROM tab0
----
-23
-35
-89

query I rowsort
SELECT col1 + cor0.col0 / - col1 + cor0.col1 AS col0 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( - col2 * col2 )
----

query I rowsort
SELECT col0 + + cor0.col0 + - col2 FROM tab1 cor0
----
-48
64
71

query I rowsort
SELECT DISTINCT + col1 AS col0 FROM tab1 AS cor0 WHERE col0 <= - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 - col2 col0 FROM tab0 cor0
----
-119
-173
-98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col2 + col1 col0 FROM tab2
----
1461
735
760

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col0 + + col1 NOT IN ( + col1 )
----

query I rowsort
SELECT - col0 + + col2 * col0 AS col0 FROM tab1
----
159
3584
7600

query I rowsort
SELECT DISTINCT - tab1.col0 + + col2 AS col1 FROM tab1
----
-7
16
51

query I rowsort
SELECT + tab2.col2 * col0 * - col2 + + col1 * col2 + + col2 FROM tab2
----
-113392
-4239
-51168

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL < ( + col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * + col2 col0 FROM tab2
----
1444
676
729

query I rowsort
SELECT col1 * col2 * col0 + + col0 * + col1 AS col1 FROM tab2
----
124254
52377
6076

query I rowsort
SELECT DISTINCT col1 + + col1 + col0 AS col1 FROM tab0
----
196
229
271

query I rowsort
SELECT + col0 + + col0 * + col2 AS col0 FROM tab0
----
70
7387
816

onlyif mysql # use DIV operator for integer division
query I rowsort label-3523
SELECT ALL col0 + - tab1.col0 DIV - tab1.col0 + - col1 AS col0 FROM tab1
----
-22
55
68

skipif mysql # not compatible
query I rowsort label-3523
SELECT ALL col0 + - tab1.col0 / - tab1.col0 + - col1 AS col0 FROM tab1
----
-22
55
68

query I rowsort
SELECT ALL col1 * - col1 * col0 AS col0 FROM tab0 cor0
----
-177504
-329315
-737009

query I rowsort
SELECT ALL + - col2 * col1 + - col2 FROM tab1 AS cor0
----
-1344
-1458
-627

onlyif mysql # use DIV operator for integer division
query I rowsort label-3526
SELECT - + col2 + col0 * + col0 DIV + col0 FROM tab1 AS cor0
----
-16
-51
7

skipif mysql # not compatible
query I rowsort label-3526
SELECT - + col2 + col0 * + col0 / + col0 FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT ALL + col1 * + col1 - - col1 * col1 AS col1 FROM tab0 cor0
----
14792
16562
18818

query I rowsort
SELECT + cor0.col1 + col0 * col0 FROM tab1 AS cor0
----
35
4106
6413

query I rowsort
SELECT DISTINCT + cor0.col1 + cor0.col0 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT - + col2 * + cor0.col1 * col1 FROM tab0 AS cor0
----
-244068
-679042
-9409

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col0 NOT BETWEEN ( NULL ) AND NULL OR NOT ( + col2 / - col2 + col2 ) >= NULL
----

query I rowsort
SELECT DISTINCT col1 * + col1 * col2 FROM tab1 AS cor0
----
16224
36504
5700

query I rowsort
SELECT ALL - col1 * cor0.col2 AS col0 FROM tab2 cor0
----
-1534
-646
-837

query I rowsort
SELECT + col1 * + col2 - col2 * + tab1.col2 FROM tab1
----
-1512
-2679
-7968

query I rowsort
SELECT DISTINCT - col0 * + col1 - tab2.col2 FROM tab2
----
-1381
-244
-4628

query I rowsort
SELECT ALL col1 - col0 * col1 FROM tab1
----
-1027
-52
-630

query IIIIII rowsort
SELECT * FROM tab0, tab0 AS cor0 WHERE NOT NULL = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 - col0 * col1 * - col1 col0 FROM tab1 AS cor0
----
13616
2082
6457

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab0 WHERE NULL NOT IN ( cor0.col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL IN ( tab1.col2 )
----

query I rowsort
SELECT col2 * tab1.col2 + - col0 * tab1.col0 AS col2 FROM tab1
----
-847
2816
2907

query I rowsort
SELECT DISTINCT + ( tab0.col0 ) FROM tab0, tab0 AS cor0
----
24
35
89

query I rowsort
SELECT DISTINCT col1 + + col2 AS col2 FROM tab2
----
55
58
85

query I rowsort
SELECT DISTINCT + col1 + + ( tab0.col1 ) + - col0 * ( + 58 ) AS col1 FROM tab0
----
-1220
-1836
-4980

query I rowsort
SELECT DISTINCT col0 + 80 FROM tab1
----
144
160
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + col0 + + 70 * col1 * tab2.col2 + - col1 col2 FROM tab2
----
113405
51444
58608

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3547
SELECT - CAST( 93 AS SIGNED ) FROM tab2 AS cor0
----
-93
-93
-93

skipif mysql # not compatible
query I rowsort label-3547
SELECT - CAST ( 93 AS INTEGER ) FROM tab2 AS cor0
----
-93
-93
-93

query I rowsort
SELECT + col0 * col0 + col0 FROM tab1 AS cor0
----
12
4160
6480

query I rowsort
SELECT col2 * col1 + col2 FROM tab0 AS cor0
----
2871
7544
98

query I rowsort
SELECT - 81 + col1 FROM tab1 AS cor0
----
-55
-68
-71

query I rowsort
SELECT tab1.col2 * ( col0 + - col0 ) FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT 64 FROM tab1, tab1 AS cor0
----
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 76 col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5

onlyif mysql # use DIV operator for integer division
query I rowsort label-3554
SELECT - 97 DIV col2 + + col1 FROM tab1 AS cor0
----
12
25
9

skipif mysql # not compatible
query I rowsort label-3554
SELECT - 97 / col2 + + col1 FROM tab1 AS cor0
----
12
25
9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3555
SELECT DISTINCT CAST( - col2 + col0 AS SIGNED ) col0 FROM tab2
----
-20
41
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3555
SELECT DISTINCT CAST ( - col2 + col0 AS INTEGER ) col0 FROM tab2
----
-20
41
52

query I rowsort
SELECT cor1.col1 + cor1.col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e205c60b0806256e15ecb6a115a429b3

query I rowsort
SELECT - - 0 AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT - - 32 AS col1 FROM tab0 cor0
----
32
32
32

query I rowsort
SELECT + 0 - col0 AS col2 FROM tab0 cor0
----
-24
-35
-89

query I rowsort
SELECT + + cor0.col1 * ( + col2 ) + - 86 FROM tab1 AS cor0
----
1162
1318
484

query I rowsort
SELECT 53 + - col2 FROM tab0
----
-29
20
52

query I rowsort
SELECT + + 61 AS col1 FROM tab0 AS cor0
----
61
61
61

query I rowsort
SELECT ALL - col0 * col1 + - col0 * col0 FROM tab2 AS cor0
----
-10686
-266
-7584

query I rowsort
SELECT DISTINCT col1 - - col1 * 4 FROM tab2 AS cor0
----
155
295
85

query I rowsort
SELECT + col0 + - cor0.col2 * 40 FROM tab2 AS cor0
----
-1073
-1441
-962

query I rowsort
SELECT DISTINCT - + col2 - + col0 AS col2 FROM tab0 AS cor0
----
-171
-36
-57

query I rowsort
SELECT ALL - - col2 + col2 AS col2 FROM tab0 AS cor0
----
164
2
66

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3568
SELECT ALL - col1 + col2 / + CAST( NULL AS SIGNED ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3568
SELECT ALL - col1 + col2 / + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + + cor0.col1 - col0 * - col2 AS col0 FROM tab0 AS cor0
----
132
7389
878

query I rowsort
SELECT + - col0 * + 58 FROM tab0 AS cor0
----
-1392
-2030
-5162

query I rowsort
SELECT + col0 + + ( 79 * col1 ) FROM tab0 cor0
----
6818
7278
7698

query I rowsort
SELECT ALL - col2 + + cor0.col0 AS col0 FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT col0 + - col1 * col1 AS col2 FROM tab1 AS cor0
----
-36
-673
-89

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT col1 * + 13 + ( + col0 ) * CAST ( - col2 AS REAL ) AS col1 FROM tab0 AS cor0
----
-6115
1226
326

query I rowsort
SELECT + - col1 * + col1 * col1 FROM tab1 cor0
----
-1000
-17576
-2197

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3576
SELECT + cor0.col2 * CAST( col0 AS SIGNED ) FROM tab1 AS cor0
----
162
3648
7680

skipif mysql # not compatible
query I rowsort label-3576
SELECT + cor0.col2 * CAST ( col0 AS INTEGER ) FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT + - col0 * ( + 78 ) * - col1 FROM tab2 AS cor0
----
104754
16926
358956

query I rowsort
SELECT DISTINCT - col0 + col1 * + col0 AS col0 FROM tab2 AS cor0
----
1264
210
4524

query I rowsort
SELECT - ( - ( cor0.col1 ) ) - - col2 * + col2 AS col0 FROM tab1 AS cor0
----
2942
3259
9229

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3580
SELECT ALL CAST( NULL AS DECIMAL ) * + col2 + col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3580
SELECT ALL CAST ( NULL AS REAL ) * + col2 + col1 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col1 * - 21 * col0 + - cor0.col0 * + col0 * col2 AS col2 FROM tab0 AS cor0
----
-479443
24336
70070

query I rowsort
SELECT - + col0 - col2 AS col1 FROM tab2 AS cor0
----
-104
-117
-34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - cor0.col0 + 50 col0 FROM tab2 AS cor0
----
128
129
57

query I rowsort
SELECT DISTINCT - 44 * 12 AS col2 FROM tab2 AS cor0
----
-528

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3585
SELECT + CAST( NULL AS DECIMAL ) - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3585
SELECT + CAST ( NULL AS REAL ) - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + col2 * cor0.col0 + ( + 98 ) FROM tab1 AS cor0
----
260
3746
7778

query I rowsort
SELECT col0 * - col1 AS col0 FROM tab1 cor0
----
-1040
-640
-78

query I rowsort
SELECT ALL 48 * - col1 FROM tab1
----
-1248
-480
-624

query I rowsort
SELECT ALL + col2 * + ( + col1 ) * col2 FROM tab1 AS cor0
----
119808
32490
75816

query I rowsort
SELECT DISTINCT ( - col0 ) + col0 * 76 + col1 FROM tab2
----
556
5909
5942

query I rowsort
SELECT 25 AS col2 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 2c77240b60ac01c717a5ed5d0165f450

query I rowsort
SELECT DISTINCT - col1 * - tab0.col1 + col0 AS col1 FROM tab0
----
7420
8370
9444

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * tab2.col1 * ( - col1 ) col1 FROM tab2
----
-205379
-29791
-4913

query I rowsort
SELECT DISTINCT 60 AS col0 FROM tab0 AS cor0
----
60

query I rowsort
SELECT 60 + col2 * + ( col2 ) + - col2 AS col1 FROM tab2 AS cor0
----
1466
710
762

query I rowsort
SELECT 59 * col1 - - 60 AS col1 FROM tab2 AS cor0
----
1063
1889
3541

query I rowsort
SELECT ALL + col0 * col1 + - 36 * - cor0.col0 AS col1 FROM tab0 AS cor0
----
11303
2928
4655

query I rowsort
SELECT - - 0 + col1 * + 39 * - col2 + - col0 AS col0 FROM tab0 AS cor0
----
-110706
-291107
-3818

query I rowsort
SELECT - col2 * + col2 + col2 AS col1 FROM tab2 cor0
----
-1406
-650
-702

query I rowsort
SELECT DISTINCT - col0 - - col0 * - ( col1 ) FROM tab0 AS cor0
----
-2088
-3430
-8188

onlyif mysql # use DIV operator for integer division
query I rowsort label-3601
SELECT DISTINCT 89 DIV - col0 FROM tab1 cor0
----
-1
-29

skipif mysql # not compatible
query I rowsort label-3601
SELECT DISTINCT 89 / - col0 FROM tab1 cor0
----
-1
-29

onlyif mysql # use DIV operator for integer division
query I rowsort label-3602
SELECT - cor0.col2 * col0 + - col0 + col2 DIV cor0.col1 col0 FROM tab2 cor0
----
-196
-2106
-3079

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3602
SELECT - cor0.col2 * col0 + - col0 + col2 / cor0.col1 col0 FROM tab2 cor0
----
-196
-2106
-3079

query I rowsort
SELECT DISTINCT - - col0 * col0 AS col1 FROM tab1 cor0
----
4096
6400
9

query I rowsort
SELECT DISTINCT - 81 + + col2 AS col1 FROM tab0 AS cor0
----
-48
-80
1

query I rowsort
SELECT col1 + col0 * 55 AS col0 FROM tab2 AS cor0
----
416
4349
4362

query I rowsort
SELECT ALL 0 + col0 * + ( + col0 ) AS col1 FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT ALL - 37 * + col0 * + col2 + - col1 * col2 AS col1 FROM tab2 AS cor0
----
-111720
-76570
-7830

query I rowsort
SELECT ALL - col2 + col2 - col0 AS col0 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT DISTINCT col2 - col0 * 25 FROM tab0 AS cor0
----
-2143
-567
-874

query I rowsort
SELECT DISTINCT - + 45 * - col2 * col0 + - cor0.col2 AS col0 FROM tab1 cor0
----
164103
345504
7236

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col0 - ( cor0.col2 ) * col2 * col2 col0 FROM tab2 AS cor0
----
-19604
-19872
-57874

query I rowsort
SELECT + col1 + + col0 * col1 * - col1 FROM tab0 cor0
----
-177418
-329218
-736918

query I rowsort
SELECT ALL - 90 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to c0d96679aba507520916e8654e5a6618

query I rowsort
SELECT + - col0 + + ( - col2 ) FROM tab0 AS cor0
----
-171
-36
-57

query I rowsort
SELECT DISTINCT - 43 AS col0 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
-43

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3616
SELECT - CAST( 45 AS SIGNED ) * cor0.col1 AS col2 FROM tab2 AS cor0
----
-1395
-2655
-765

skipif mysql # not compatible
query I rowsort label-3616
SELECT - CAST ( 45 AS INTEGER ) * cor0.col1 AS col2 FROM tab2 AS cor0
----
-1395
-2655
-765

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( col2 ) * col1 + - col0 * 76 col0 FROM tab1 cor0
----
-4294
-4832
1176

query I rowsort
SELECT DISTINCT - + 29 + + 9 FROM tab2 AS cor0
----
-20

query I rowsort
SELECT + - ( - col0 ) * col2 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT + col0 * + col1 + col1 AS col1 FROM tab1 AS cor0
----
104
1053
650

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 64 col0 FROM tab0 AS cor0
----
64
64
64

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3622
SELECT ALL - + CAST( - col1 AS SIGNED ) + col0 col1 FROM tab2 AS cor0
----
137
38
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3622
SELECT ALL - + CAST ( - col1 AS INTEGER ) + col0 col1 FROM tab2 AS cor0
----
137
38
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 19 * 35 col2 FROM tab2 AS cor0
----
-665
-665
-665

query I rowsort
SELECT - col1 * - col1 + col2 * + ( - col0 ) + col2 FROM tab1
----
-3491
-7415
568

onlyif mysql # use DIV operator for integer division
query I rowsort label-3625
SELECT tab2.col2 DIV + 33 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3625
SELECT tab2.col2 / + 33 FROM tab2
----
0
0
1

query I rowsort
SELECT - cor0.col1 * col1 + + col1 AS col1 FROM tab1 AS cor0
----
-156
-650
-90

query I rowsort
SELECT col2 * + 67 + col1 * - col1 + col2 * + col2 FROM tab2 cor0
----
-1063
1577
3701

query I rowsort
SELECT DISTINCT - ( col0 ) + cor0.col0 * 88 FROM tab1 AS cor0
----
261
5568
6960

query I rowsort
SELECT DISTINCT + tab1.col2 - col0 * - col2 FROM tab1
----
216
3705
7776

query I rowsort
SELECT ALL tab2.col2 * col2 + + col2 AS col1 FROM tab2
----
1482
702
756

query I rowsort
SELECT - col2 * + col0 + + col1 * 89 AS col1 FROM tab1
----
-2758
-6523
2152

query I rowsort
SELECT - ( 82 ) + + col1 + 57 FROM tab0
----
61
66
72

query I rowsort
SELECT + 79 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f

query I rowsort
SELECT + - 6 - col2 AS col2 FROM tab2 AS cor0
----
-32
-33
-44

query I rowsort
SELECT ALL - 54 AS col1 FROM tab0
----
-54
-54
-54

query I rowsort
SELECT ALL - 77 + + col0 FROM tab1
----
-13
-74
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + col0 * + ( - col2 ) col2 FROM tab2
----
-158
-1969
-2985

onlyif mysql # use DIV operator for integer division
query I rowsort label-3638
SELECT tab0.col1 DIV - tab0.col1 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3638
SELECT tab0.col1 / - tab0.col1 FROM tab0
----
-1
-1
-1

query I rowsort
SELECT col0 - col0 * + col2 FROM tab2 cor0
----
-182
-1950
-2923

query I rowsort
SELECT + col0 + + col1 + 53 FROM tab1 AS cor0
----
127
146
82

query I rowsort
SELECT - + cor0.col1 + col0 * cor0.col0 AS col0 FROM tab0 AS cor0
----
1128
490
7830

query I rowsort
SELECT ALL - - 41 * col0 AS col0 FROM tab2 AS cor0
----
287
3198
3239

query I rowsort
SELECT DISTINCT - - col2 * 45 + col1 * + col1 FROM tab1 AS cor0
----
2665
3106
4489

query I rowsort
SELECT DISTINCT - col1 - + col0 AS col0 FROM tab0 AS cor0
----
-110
-132
-180

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3645
SELECT ALL col2 + + CAST( NULL AS SIGNED ) * cor0.col2 / - col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3645
SELECT ALL col2 + + CAST ( NULL AS INTEGER ) * cor0.col2 / - col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 * 61 + col0 * - col2 AS col1 FROM tab1
----
-171
-1824
3132

onlyif mysql # use DIV operator for integer division
query I rowsort label-3647
SELECT DISTINCT - col0 * ( 48 + cor0.col1 ) DIV + col1 AS col2 FROM tab0 AS cor0
----
-135
-37
-52

skipif mysql # not compatible
query I rowsort label-3647
SELECT DISTINCT - col0 * ( 48 + cor0.col1 ) / + col1 AS col2 FROM tab0 AS cor0
----
-135
-37
-52

query I rowsort
SELECT ALL - cor0.col2 + col1 + col2 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT ( + col1 ) * - col1 AS col2 FROM tab1 cor0
----
-100
-169
-676

query I rowsort
SELECT ALL + + col2 * + col2 + cor0.col0 AS col0 FROM tab0 cor0
----
1113
36
6813

query I rowsort
SELECT DISTINCT + 53 * col0 AS col1 FROM tab1 AS cor0
----
159
3392
4240

onlyif mysql # use DIV operator for integer division
query I rowsort label-3652
SELECT ALL + col0 + col1 DIV col0 AS col1 FROM tab1 AS cor0
----
11
64
80

skipif mysql # not compatible
query I rowsort label-3652
SELECT ALL + col0 + col1 / col0 AS col1 FROM tab1 AS cor0
----
11
64
80

query I rowsort
SELECT DISTINCT col0 + 34 * + col0 AS col0 FROM tab0 AS cor0
----
1225
3115
840

query I rowsort
SELECT ALL + + col2 + col2 * col1 FROM tab1 cor0
----
1344
1458
627

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3655
SELECT ALL - 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-3655
SELECT ALL - CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3656
SELECT + col0 DIV + col1 col1 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3656
SELECT + col0 / + col1 col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3657
SELECT DISTINCT CAST( - col1 AS SIGNED ) * + col2 AS col2 FROM tab2 AS cor0
----
-1534
-646
-837

skipif mysql # not compatible
query I rowsort label-3657
SELECT DISTINCT CAST ( - col1 AS INTEGER ) * + col2 AS col2 FROM tab2 AS cor0
----
-1534
-646
-837

onlyif mysql # use DIV operator for integer division
query I rowsort label-3658
SELECT DISTINCT + col0 + col2 * col0 DIV - 8 AS col2 FROM tab0 AS cor0
----
-75
-823
31

skipif mysql # not compatible
query I rowsort label-3658
SELECT DISTINCT + col0 + col2 * col0 / - 8 AS col2 FROM tab0 AS cor0
----
-75
-823
31

onlyif mysql # use DIV operator for integer division
query I rowsort label-3659
SELECT ALL - col0 DIV - ( + col1 ) - - col2 FROM tab1 cor0
----
102
54
63

skipif mysql # not compatible
query I rowsort label-3659
SELECT ALL - col0 / - ( + col1 ) - - col2 FROM tab1 cor0
----
102
54
63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 45 col1 FROM tab0 AS cor0
----
-45
-45
-45

query I rowsort
SELECT ALL col0 + col1 * + col2 AS col1 FROM tab1 AS cor0
----
1328
1407
634

skipif mysql # not compatible
query I rowsort
SELECT + CAST ( 19 AS REAL ) * - col0 + 57 FROM tab2 AS cor0
----
-1425
-1444
-76

query I rowsort
SELECT - ( + col2 ) * col0 AS col2 FROM tab1 AS cor0
----
-162
-3648
-7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-3664
SELECT + + col0 DIV + 94 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3664
SELECT + + col0 / + 94 AS col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3665
SELECT - - CAST( - col1 AS SIGNED ) * col0 AS col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

skipif mysql # not compatible
query I rowsort label-3665
SELECT - - CAST ( - col1 AS INTEGER ) * col0 AS col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT ( + 76 ) + col0 AS col1 FROM tab1 AS cor0
----
140
156
79

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab2 AS cor0, tab1 cor1, tab0, tab1 AS cor2
----
3645 values hashing to 73edaf471aef3f42e9a0b0be98b79374

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 * col2 col0 FROM tab0 AS cor0
----
35
7298
792

onlyif mysql # use DIV operator for integer division
query I rowsort label-3669
SELECT DISTINCT + col1 DIV - col2 + - col0 * - tab1.col1 + 86 FROM tab1
----
1126
164
726

skipif mysql # not compatible
query I rowsort label-3669
SELECT DISTINCT + col1 / - col2 + - col0 * - tab1.col1 + 86 FROM tab1
----
1126
164
726

query I rowsort
SELECT + col0 - ( - col1 ) AS col1 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT DISTINCT col2 + col1 * col0 FROM tab2 AS cor0
----
1381
244
4628

onlyif mysql # use DIV operator for integer division
query I rowsort label-3672
SELECT col0 * col2 + col2 + col2 DIV - col1 AS col0 FROM tab2
----
2054
216
3038

skipif mysql # not compatible
query I rowsort label-3672
SELECT col0 * col2 + col2 + col2 / - col1 AS col0 FROM tab2
----
2054
216
3038

query I rowsort
SELECT 93 + ( cor0.col1 ) FROM tab0, tab1 AS cor0
----
9 values hashing to a04dfb9916b69804308331431938a592

onlyif mysql # use DIV operator for integer division
query I rowsort label-3674
SELECT + col1 DIV tab0.col2 AS col1 FROM tab0
----
1
2
97

skipif mysql # not compatible
query I rowsort label-3674
SELECT + col1 / tab0.col2 AS col1 FROM tab0
----
1
2
97

query I rowsort
SELECT col1 * - 0 FROM tab2
----
0
0
0

query I rowsort
SELECT - col1 * 39 AS col1 FROM tab2 cor0
----
-1209
-2301
-663

query I rowsort
SELECT + + col1 * - 51 AS col0 FROM tab0 AS cor0
----
-4386
-4641
-4947

query I rowsort
SELECT - - col1 - + col1 * + col0 * 78 AS col1 FROM tab1 cor0
----
-49910
-6058
-81107

query I rowsort
SELECT 87 * col2 FROM tab1 AS cor0
----
4698
4959
8352

onlyif mysql # use DIV operator for integer division
query I rowsort label-3680
SELECT - + col1 DIV - col0 AS col0 FROM tab2 AS cor0
----
0
0
4

skipif mysql # not compatible
query I rowsort label-3680
SELECT - + col1 / - col0 AS col0 FROM tab2 AS cor0
----
0
0
4

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab1, tab1 AS cor0, tab2 cor1
----
972 values hashing to 0fcd8d0934383dd58863be894b07a6ed

onlyif mysql # use DIV operator for integer division
query I rowsort label-3682
SELECT ALL 47 DIV col1 FROM tab1
----
1
3
4

skipif mysql # not compatible
query I rowsort label-3682
SELECT ALL 47 / col1 FROM tab1
----
1
3
4

query I rowsort
SELECT DISTINCT 55 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
55

onlyif mysql # use DIV operator for integer division
query I rowsort label-3684
SELECT DISTINCT - col0 * tab1.col1 DIV + ( - tab1.col0 ) AS col2 FROM tab1
----
10
13
26

skipif mysql # not compatible
query I rowsort label-3684
SELECT DISTINCT - col0 * tab1.col1 / + ( - tab1.col0 ) AS col2 FROM tab1
----
10
13
26

query I rowsort
SELECT + col1 + - col1 * - col0 * - col2 AS col0 FROM tab0 AS cor0
----
-3298
-664027
-68026

query I rowsort
SELECT 87 * cor1.col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8ca7861657245b119c7ce2b8cb1688b3

query I rowsort
SELECT - - col1 * - col0 * col2 FROM tab2 cor0
----
-119652
-51034
-5859

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col1 * + ( 85 ) col0 FROM tab1
----
14365
57460
8500

query I rowsort
SELECT ALL + col2 + 79 * - cor0.col1 AS col2 FROM tab1 cor0
----
-2000
-733
-931

query I rowsort
SELECT DISTINCT - col1 + - 54 AS col2 FROM tab1 AS cor0
----
-64
-67
-80

query I rowsort
SELECT DISTINCT + col2 + - col1 * col1 AS col2 FROM tab2 AS cor0
----
-251
-3455
-934

query I rowsort
SELECT + cor0.col2 * - ( + col1 ) + col0 FROM tab1 AS cor0
----
-1168
-1401
-506

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * cor0.col2 + col2 col0 FROM tab0 AS cor0
----
1122
2
6806

query I rowsort
SELECT tab0.col0 * 23 FROM tab0, tab1 AS cor0
----
9 values hashing to efabe74ef6857bfccea3ece03e08ac25

query I rowsort
SELECT 79 * col2 - tab1.col2 AS col2 FROM tab1
----
4212
4446
7488

query I rowsort
SELECT - cor0.col2 * - 16 FROM tab2 AS cor0
----
416
432
608

query I rowsort
SELECT ( tab2.col1 ) FROM tab2, tab0 AS cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272

query I rowsort
SELECT cor0.col2 + ( col1 ) * col2 FROM tab1 AS cor0
----
1344
1458
627

query I rowsort
SELECT ALL - col1 + cor0.col0 * - col2 AS col1 FROM tab1 cor0
----
-188
-3658
-7693

onlyif mysql # use DIV operator for integer division
query I rowsort label-3700
SELECT ALL col0 DIV ( - 45 * - cor0.col1 + - col0 ) AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3700
SELECT ALL col0 / ( - 45 * - cor0.col1 + - col0 ) AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + col0 + col2 * - 86 + + col1 AS col2 FROM tab0 AS cor0
----
-2728
-6872
46

query I rowsort
SELECT + - col0 * - col1 AS col0 FROM tab0 cor0
----
2064
3395
8099

query I rowsort
SELECT + + col0 * + ( - col2 * col0 ) FROM tab1 AS cor0
----
-233472
-486
-614400

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3704
SELECT - cor0.col1 * - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3704
SELECT - cor0.col1 * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 * 83 FROM tab1 AS cor0
----
4482
4731
7968

query I rowsort
SELECT DISTINCT + col1 - + ( col1 ) * - col0 AS col2 FROM tab0
----
2150
3492
8190

query I rowsort
SELECT - 57 - + tab0.col1 FROM tab1, tab2 cor0 CROSS JOIN tab0
----
27 values hashing to f5666c0bd8b0f6e3261dbef821192169

query I rowsort
SELECT ( - 66 ) * col1 AS col1 FROM tab0
----
-5676
-6006
-6402

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab1.col1 * + col1 * + col2 col0 FROM tab1
----
16224
36504
5700

query I rowsort
SELECT + + ( col1 ) + col1 * + cor0.col2 FROM tab1 AS cor0
----
1261
1430
580

onlyif mysql # use DIV operator for integer division
query I rowsort label-3711
SELECT - - ( + col0 ) + + col1 * col1 DIV col2 AS col1 FROM tab0 AS cor0
----
189
248
9444

skipif mysql # not compatible
query I rowsort label-3711
SELECT - - ( + col0 ) + + col1 * col1 / col2 AS col1 FROM tab0 AS cor0
----
189
248
9444

query I rowsort
SELECT col0 * ( + col1 ) + 85 FROM tab1 AS cor0
----
1125
163
725

query I rowsort
SELECT + ( - col2 ) * col0 FROM tab0 cor0
----
-35
-7298
-792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 27 col1 FROM tab2 AS cor0
----
27

query I rowsort
SELECT 40 * col0 FROM tab0
----
1400
3560
960

query I rowsort
SELECT DISTINCT ( col2 ) * + ( + col2 ) + + cor0.col0 AS col1 FROM tab2 AS cor0
----
1523
736
754

query I rowsort
SELECT + + 47 + col1 FROM tab0 cor0
----
133
138
144

query I rowsort
SELECT DISTINCT + col2 + 32 AS col1 FROM tab1
----
128
86
89

query I rowsort
SELECT col0 - 8 AS col2 FROM tab1
----
-5
56
72

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3720
SELECT ALL + cor0.col0 + CAST( - col0 AS SIGNED ) + + col2 AS col0 FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-3720
SELECT ALL + cor0.col0 + CAST ( - col0 AS INTEGER ) + + col2 AS col0 FROM tab1 AS cor0
----
54
57
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col0 - - ( - col1 ) col1 FROM tab0 AS cor0
----
-110
-132
-180

query I rowsort
SELECT ALL col1 * + 50 + + ( - col0 ) * col1 FROM tab0 AS cor0
----
-3549
1455
2236

query I rowsort
SELECT + + col2 * 49 FROM tab0 AS cor0
----
1617
4018
49

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3724
SELECT CAST( - 80 AS SIGNED ) AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 4dde3bd5652d30396b9cadd0e2cfb680

skipif mysql # not compatible
query I rowsort label-3724
SELECT CAST ( - 80 AS INTEGER ) AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 4dde3bd5652d30396b9cadd0e2cfb680

query I rowsort
SELECT + - col2 + 0 AS col2 FROM tab0 cor0
----
-1
-33
-82

onlyif mysql # use DIV operator for integer division
query I rowsort label-3726
SELECT ALL col0 + - 72 DIV col0 - + col2 FROM tab0 AS cor0
----
-12
32
7

skipif mysql # not compatible
query I rowsort label-3726
SELECT ALL col0 + - 72 / col0 - + col2 FROM tab0 AS cor0
----
-12
32
7

query I rowsort
SELECT ALL - + col1 + - 27 AS col0 FROM tab1 AS cor0
----
-37
-40
-53

query I rowsort
SELECT - 41 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 4ba0c102091f9cbc9fe9439b04584e70

onlyif mysql # use DIV operator for integer division
query I rowsort label-3729
SELECT DISTINCT col2 DIV cor0.col0 + - col0 * 5 AS col1 FROM tab0 AS cor0
----
-119
-175
-445

skipif mysql # not compatible
query I rowsort label-3729
SELECT DISTINCT col2 / cor0.col0 + - col0 * 5 AS col1 FROM tab0 AS cor0
----
-119
-175
-445

query I rowsort
SELECT DISTINCT + col1 + - cor0.col2 * - col1 * col1 AS col1 FROM tab0 AS cor0
----
244154
679133
9506

onlyif mysql # use DIV operator for integer division
query I rowsort label-3731
SELECT + col0 - + 30 DIV - cor0.col2 AS col1 FROM tab0 cor0
----
24
65
89

skipif mysql # not compatible
query I rowsort label-3731
SELECT + col0 - + 30 / - cor0.col2 AS col1 FROM tab0 cor0
----
24
65
89

query I rowsort
SELECT ALL - + 51 + col2 * col0 FROM tab1 AS cor0
----
111
3597
7629

query I rowsort
SELECT ALL - col0 + - col1 * col0 * - col2 FROM tab0 AS cor0
----
3360
664029
68088

query I rowsort
SELECT DISTINCT + - cor0.col1 * 9 - col0 FROM tab0 AS cor0
----
-798
-908

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 + col0 * - col2 col0 FROM tab1 AS cor0
----
-136
-3638
-7667

query I rowsort
SELECT DISTINCT + col2 + col1 * - col0 AS col0 FROM tab1 cor0
----
-24
-583
-944

query I rowsort
SELECT - + ( + 93 ) * cor0.col0 - ( col2 + - col1 ) AS col1 FROM tab0 cor0
----
-2179
-3159
-8268

onlyif mysql # use DIV operator for integer division
query I rowsort label-3738
SELECT ALL + col1 DIV 53 + cor0.col1 AS col2 FROM tab0 AS cor0
----
87
92
98

skipif mysql # not compatible
query I rowsort label-3738
SELECT ALL + col1 / 53 + cor0.col1 AS col2 FROM tab0 AS cor0
----
87
92
98

query I rowsort
SELECT tab2.col1 + + tab2.col2 AS col0 FROM tab2
----
55
58
85

query I rowsort
SELECT ALL + col1 * + col0 * ( - col1 ) AS col0 FROM tab0
----
-177504
-329315
-737009

query I rowsort
SELECT ALL + cor1.col0 AS col1 FROM tab2, tab2 AS cor0, tab1 cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

query I rowsort
SELECT - 22 * col1 FROM tab1 AS cor0
----
-220
-286
-572

query I rowsort
SELECT DISTINCT - 16 * col0 * 12 + col1 * - cor0.col1 FROM tab2 AS cor0
----
-15457
-18457
-2305

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 * - col1 col2 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT + + ( col2 ) * ( + col1 + - col2 * ( 62 ) ) AS col0 FROM tab0 AS cor0
----
-409426
-64680
35

query I rowsort
SELECT DISTINCT - cor0.col2 + + col2 AS col0 FROM tab2 AS cor0
----
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3747
SELECT DISTINCT + + col0 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3747
SELECT DISTINCT + + col0 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT col0 * + ( - col0 ) FROM tab2 AS cor0
----
-49
-6084
-6241

query I rowsort
SELECT + col1 * + col0 * + 4 AS col1 FROM tab0 AS cor0
----
13580
32396
8256

query I rowsort
SELECT ALL col2 * 67 AS col1 FROM tab0 cor0
----
2211
5494
67

query I rowsort
SELECT ALL - 74 * col0 FROM tab2
----
-518
-5772
-5846

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * + col0 col1 FROM tab0
----
2064
3395
8099

query I rowsort
SELECT ALL 30 AS col2 FROM tab1
----
30
30
30

onlyif mysql # use DIV operator for integer division
query I rowsort label-3754
SELECT ALL ( col0 ) DIV + col1 AS col2 FROM tab1
----
0
6
6

skipif mysql # not compatible
query I rowsort label-3754
SELECT ALL ( col0 ) / + col1 AS col2 FROM tab1
----
0
6
6

query I rowsort
SELECT - - col1 * 96 FROM tab0 cor0
----
8256
8736
9312

query I rowsort
SELECT ALL - col2 * 85 AS col1 FROM tab0
----
-2805
-6970
-85

onlyif mysql # use DIV operator for integer division
query I rowsort label-3757
SELECT - col2 DIV 61 + - col0 FROM tab1
----
-3
-64
-81

skipif mysql # not compatible
query I rowsort label-3757
SELECT - col2 / 61 + - col0 FROM tab1
----
-3
-64
-81

query I rowsort
SELECT DISTINCT col2 + + ( + col0 ) FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT ( + 20 ) FROM tab1, tab1 AS cor0
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4

query I rowsort
SELECT DISTINCT - col2 + col1 * + tab1.col0 FROM tab1
----
24
583
944

query I rowsort
SELECT ( col1 ) + col0 - 31 * - 28 AS col0 FROM tab1
----
897
942
961

query I rowsort
SELECT DISTINCT + 99 + col1 * col2 * + col2 + + col1 FROM tab0
----
293
612074
93839

query I rowsort
SELECT col2 * col0 + col1 AS col0 FROM tab2 AS cor0
----
2087
220
3019

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3764
SELECT ALL ( cor0.col1 ) * - CAST( NULL AS SIGNED ) AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-3764
SELECT ALL ( cor0.col1 ) * - CAST ( NULL AS INTEGER ) AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # use DIV operator for integer division
query I rowsort label-3765
SELECT 98 DIV col1 + col0 AS col1 FROM tab0
----
25
36
90

skipif mysql # not compatible
query I rowsort label-3765
SELECT 98 / col1 + col0 AS col1 FROM tab0
----
25
36
90

onlyif mysql # use DIV operator for integer division
query I rowsort label-3766
SELECT DISTINCT 54 DIV col2 + col2 * 47 col0 FROM tab0
----
101
1552
3854

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3766
SELECT DISTINCT 54 / col2 + col2 * 47 col0 FROM tab0
----
101
1552
3854

query I rowsort
SELECT col2 * col0 + ( + col2 ) AS col0 FROM tab1 AS cor0
----
216
3705
7776

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3768
SELECT col1 / col1 + - ( col0 + + col1 ) / CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3768
SELECT col1 / col1 + - ( col0 + + col1 ) / CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + - col2 + col1 * ( col2 ) AS col2 FROM tab2 AS cor0
----
1508
608
810

query I rowsort
SELECT DISTINCT 45 + col1 * - cor0.col2 AS col2 FROM tab0 AS cor0
----
-2793
-52
-7417

query I rowsort
SELECT DISTINCT - - col1 + + col2 * col2 FROM tab1 AS cor0
----
2942
3259
9229

query I rowsort
SELECT - 18 + - col1 * - col0 * col2 + col1 * + col2 AS col1 FROM tab0 AS cor0
----
3474
671562
70932

onlyif mysql # use DIV operator for integer division
query I rowsort label-3773
SELECT - + ( col2 ) DIV + CAST( col1 + + col0 AS SIGNED ) FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3773
SELECT - + ( col2 ) / + CAST ( col1 + + col0 AS INTEGER ) FROM tab0 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3774
SELECT DISTINCT - 75 * col2 DIV cor0.col1 FROM tab1 AS cor0
----
-155
-427
-553

skipif mysql # not compatible
query I rowsort label-3774
SELECT DISTINCT - 75 * col2 / cor0.col1 FROM tab1 AS cor0
----
-155
-427
-553

query I rowsort
SELECT DISTINCT - ( - 67 ) FROM tab1
----
67

query I rowsort
SELECT ALL 39 FROM tab1, tab0 AS cor0
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf

query I rowsort
SELECT + - 40 + col1 FROM tab0 AS cor0
----
46
51
57

query I rowsort
SELECT ALL - ( 26 ) AS col0 FROM tab0
----
-26
-26
-26

query I rowsort
SELECT + tab1.col0 AS col2 FROM tab1, tab1 cor0, tab2 cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

query I rowsort
SELECT ALL - col0 * col1 * - col1 + 29 FROM tab1 cor0
----
13549
2057
6429

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + 76 col0 FROM tab2 AS cor0
----
102
103
114

query I rowsort
SELECT - cor0.col0 + 91 AS col2 FROM tab0 cor0
----
2
56
67

query I rowsort
SELECT - col2 * + col1 + - ( col1 ) AS col1 FROM tab1 AS cor0
----
-1261
-1430
-580

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - cor0.col2 + col2 col1 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + 64 * - col0 + - col1 * tab0.col2 FROM tab0
----
-13158
-2337
-4374

query I rowsort
SELECT DISTINCT col2 + col1 + - ( col2 + col1 ) AS col2 FROM tab0
----
0

query I rowsort
SELECT DISTINCT - 29 + col0 AS col2 FROM tab0
----
-5
6
60

query I rowsort
SELECT col0 * + 82 FROM tab0 AS cor0
----
1968
2870
7298

query I rowsort
SELECT 24 FROM tab0 AS cor0 CROSS JOIN tab1, tab2 AS cor1
----
27 values hashing to aeeac431d22528188e8a5a2a60d2d080

query I rowsort
SELECT + 20 + 50 FROM tab0, tab2 AS cor0
----
9 values hashing to 9758da65ae4711e3e8c8def2fe026911

query I rowsort
SELECT DISTINCT - + ( 19 ) * col0 FROM tab1 AS cor0
----
-1216
-1520
-57

query I rowsort
SELECT - - 80 AS col2 FROM tab2 AS cor0
----
80
80
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-3793
SELECT ALL - ( col1 ) + - col1 DIV - ( col1 ) FROM tab2 AS cor0
----
-16
-30
-58

skipif mysql # not compatible
query I rowsort label-3793
SELECT ALL - ( col1 ) + - col1 / - ( col1 ) FROM tab2 AS cor0
----
-16
-30
-58

query I rowsort
SELECT + ( col2 ) + cor0.col2 FROM tab1 AS cor0
----
108
114
192

query I rowsort
SELECT DISTINCT - ( cor0.col2 ) AS col1 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT + 41 * cor0.col1 + col2 FROM tab0 AS cor0
----
3559
3813
3978

query I rowsort
SELECT + - col1 + + col0 * - col2 AS col0 FROM tab1 cor0
----
-188
-3658
-7693

query I rowsort
SELECT ALL + 34 * + col0 AS col0 FROM tab0 AS cor0
----
1190
3026
816

query I rowsort
SELECT - col0 + + 34 FROM tab1 AS cor0
----
-30
-46
31

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3800
SELECT ALL - + CAST( NULL AS SIGNED ) / + cor0.col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3800
SELECT ALL - + CAST ( NULL AS INTEGER ) / + cor0.col1 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 * col1 + + col0 + col1 AS col1 FROM tab2 AS cor0
----
-1397
-550
-799

query I rowsort
SELECT DISTINCT + - 4 + cor0.col2 AS col0 FROM tab1 AS cor0
----
50
53
92

query I rowsort
SELECT DISTINCT + - 78 AS col0 FROM tab2 AS cor0
----
-78

query I rowsort
SELECT DISTINCT col1 * + col2 + cor0.col0 * 32 FROM tab0 AS cor0
----
10310
1217
3606

query I rowsort
SELECT - - ( 22 ) AS col0 FROM tab1 AS cor0
----
22
22
22

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3806
SELECT CAST( NULL AS DECIMAL ) FROM tab0, tab0 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-3806
SELECT CAST ( NULL AS REAL ) FROM tab0, tab0 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT - tab0.col0 * - ( + tab0.col2 * + tab0.col0 ) AS col1 FROM tab0
----
1225
19008
649522

onlyif mysql # use DIV operator for integer division
query I rowsort label-3808
SELECT DISTINCT col1 - - col0 * 81 DIV col2 FROM tab1
----
100
30
80

skipif mysql # not compatible
query I rowsort label-3808
SELECT DISTINCT col1 - - col0 * 81 / col2 FROM tab1
----
100
30
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-3809
SELECT ALL tab2.col1 DIV col0 AS col2 FROM tab2
----
0
0
4

skipif mysql # not compatible
query I rowsort label-3809
SELECT ALL tab2.col1 / col0 AS col2 FROM tab2
----
0
0
4

query I rowsort
SELECT 12 * col1 + - col2 AS col1 FROM tab1 AS cor0
----
258
60
63

query I rowsort
SELECT + col0 * 33 * - col0 AS col2 FROM tab2 AS cor0
----
-1617
-200772
-205953

query I rowsort
SELECT + 59 * col0 + col0 FROM tab1
----
180
3840
4800

query I rowsort
SELECT DISTINCT - col2 + + col2 * col1 AS col1 FROM tab1 cor0
----
1152
1350
513

query I rowsort
SELECT + - col0 - 60 * 15 * col1 AS col0 FROM tab2 cor0
----
-15379
-27907
-53178

query I rowsort
SELECT DISTINCT 49 * 95 FROM tab1, tab0 AS cor0
----
4655

query I rowsort
SELECT col0 * col1 + - cor0.col2 + cor0.col0 AS col0 FROM tab1 AS cor0
----
1024
27
647

query I rowsort
SELECT col1 * + 56 + + col1 FROM tab1
----
1482
570
741

query I rowsort
SELECT - col2 + - ( + col1 ) - col2 * tab2.col2 AS col2 FROM tab2
----
-1499
-761
-787

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3819
SELECT - tab1.col2 + - col2 * ( - col0 * - CAST( col2 AS SIGNED ) + - tab1.col0 ) AS col0 FROM tab1
----
-204345
-729696
-8640

skipif mysql # not compatible
query I rowsort label-3819
SELECT - tab1.col2 + - col2 * ( - col0 * - CAST ( col2 AS INTEGER ) + - tab1.col0 ) AS col0 FROM tab1
----
-204345
-729696
-8640

query I rowsort
SELECT col1 * 48 - - col2 AS col0 FROM tab2 AS cor0
----
1515
2858
854

query I rowsort
SELECT + col1 + + 58 FROM tab0 cor0
----
144
149
155

query I rowsort
SELECT 79 AS col2 FROM tab0, tab2 AS cor0, tab1 cor1
----
27 values hashing to 4857f2e1b1dbd184de4827f145dd02a1

query I rowsort
SELECT DISTINCT col2 * + col1 * - col1 FROM tab0 cor0
----
-244068
-679042
-9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-3824
SELECT - + col0 + col0 DIV col0 FROM tab2 AS cor0
----
-6
-77
-78

skipif mysql # not compatible
query I rowsort label-3824
SELECT - + col0 + col0 / col0 FROM tab2 AS cor0
----
-6
-77
-78

query I rowsort
SELECT ALL - 11 * - col2 AS col1 FROM tab2
----
286
297
418

query I rowsort
SELECT DISTINCT + 84 * col2 AS col0 FROM tab2
----
2184
2268
3192

onlyif mysql # use DIV operator for integer division
query I rowsort label-3827
SELECT - 51 DIV + col0 + col2 AS col1 FROM tab1
----
37
57
96

skipif mysql # not compatible
query I rowsort label-3827
SELECT - 51 / + col0 + col2 AS col1 FROM tab1
----
37
57
96

query I rowsort
SELECT ALL + - 99 * + col2 AS col2 FROM tab0 AS cor0
----
-3267
-8118
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - col2 col1 FROM tab2 cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3830
SELECT - - cor0.col2 DIV col2 AS col0 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3830
SELECT - - cor0.col2 / col2 AS col0 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT ALL - + col2 * - col0 AS col1 FROM tab0 AS cor0
----
35
7298
792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * + col1 col0 FROM tab1 cor0
----
1248
1404
570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * col0 * col2 col0 FROM tab2 AS cor0
----
-1323
-158184
-237158

query I rowsort
SELECT - cor1.col2 FROM tab1 AS cor0 CROSS JOIN tab0, tab0 AS cor1
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc

query I rowsort
SELECT col1 + + ( col0 * col2 ) AS col1 FROM tab0 cor0
----
132
7389
878

query I rowsort
SELECT DISTINCT + - col0 * - cor0.col1 + cor0.col2 + col1 FROM tab1 AS cor0
----
1149
158
707

query I rowsort
SELECT ALL - + col1 * - ( + cor0.col0 ) + col0 * + cor0.col2 FROM tab1 AS cor0
----
240
4288
8720

query I rowsort
SELECT ALL col1 + col1 * - col1 * col2 AS col0 FROM tab2 AS cor0
----
-10965
-25916
-90447

query I rowsort
SELECT ALL + col0 + col2 + col1 AS col1 FROM tab1
----
131
189
83

query I rowsort
SELECT - col0 + ( + 28 ) * col2 FROM tab0 AS cor0
----
-7
2207
900

query I rowsort
SELECT ALL + col1 - ( col1 ) AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - 85 AS col2 FROM tab1 AS cor0
----
-85

query I rowsort
SELECT DISTINCT ( + col0 * - col1 + + col2 ) FROM tab2
----
-1305
-190
-4576

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3844
SELECT + CAST( NULL AS SIGNED ) + - col1 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3844
SELECT + CAST ( NULL AS INTEGER ) + - col1 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 + cor0.col1 * + col1 * + col2 FROM tab1 AS cor0
----
16237
36530
5710

query I rowsort
SELECT DISTINCT + 9 * - col0 FROM tab2 AS cor0
----
-63
-702
-711

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 28 + + 21 * col0 col0 FROM tab1 AS cor0
----
1316
1652
35

query I rowsort
SELECT ALL ( + 66 ) * - col1 AS col2 FROM tab0 cor0
----
-5676
-6006
-6402

query I rowsort
SELECT ALL - + cor0.col2 * + col1 AS col1 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT + - 53 * + col2 FROM tab1 AS cor0
----
-2862
-3021
-5088

query I rowsort
SELECT ALL - col0 * + col1 + col2 + - col0 FROM tab1 AS cor0
----
-1024
-27
-647

query I rowsort
SELECT col2 * + col0 + col2 * - col2 AS col2 FROM tab0 AS cor0
----
-297
34
574

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + cor0.col2 col1 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT DISTINCT - col0 + - col2 * cor0.col1 AS col2 FROM tab1 AS cor0
----
-1328
-1407
-634

query I rowsort
SELECT DISTINCT cor0.col1 AS col0 FROM tab2 AS cor0 WHERE NOT NULL >= NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL <> col2
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NULL ) IN ( tab2.col0 * col1 + + col1 )
----

query I rowsort
SELECT tab1.col2 * tab1.col0 FROM tab1
----
162
3648
7680

query I rowsort
SELECT ALL + col2 * + col2 FROM tab1 WHERE NOT NULL < NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL > NULL
----

query I rowsort
SELECT col1 AS col0 FROM tab0 WHERE NOT NULL < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * cor0.col0 - col1 * col2 * - col1 col2 FROM tab2 AS cor0
----
12325
26164
95108

query I rowsort
SELECT + + col0 - cor0.col2 AS col1 FROM tab2 AS cor0
----
-20
41
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-3864
SELECT ALL + + col2 * col0 DIV col1 FROM tab0 cor0
----
0
80
9

skipif mysql # not compatible
query I rowsort label-3864
SELECT ALL + + col2 * col0 / col1 FROM tab0 cor0
----
0
80
9

query I rowsort
SELECT + cor0.col0 * - col2 - + col0 * - col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + col2 + - col1 + - col2 AS col0 FROM tab2
----
-17
-31
-59

query I rowsort
SELECT + cor0.col0 - col0 AS col0 FROM tab0 AS cor0
----
0
0
0

query IIIIIIIII rowsort
SELECT ALL * FROM tab2, tab1, tab0 AS cor0 WHERE NOT ( NULL ) < NULL
----

query I rowsort
SELECT + col2 + tab0.col2 * + col2 AS col0 FROM tab0
----
1122
2
6806

onlyif mysql # use DIV operator for integer division
query I rowsort label-3870
SELECT + col1 DIV + tab1.col1 + - col1 + + col0 AS col2 FROM tab1
----
-22
55
68

skipif mysql # not compatible
query I rowsort label-3870
SELECT + col1 / + tab1.col1 + - col1 + + col0 AS col2 FROM tab1
----
-22
55
68

query I rowsort
SELECT DISTINCT col0 * col1 + col0 FROM tab1
----
1120
704
81

query I rowsort
SELECT ALL + 5 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 6035628694bdea36f584f3649088551d

query I rowsort
SELECT ALL + col1 + - cor0.col1 * ( col0 ) AS col1 FROM tab2 AS cor0
----
-1326
-186
-4543

query I rowsort
SELECT DISTINCT col2 + + col0 * + ( - col0 ) - col2 AS col0 FROM tab1
----
-4096
-6400
-9

onlyif mysql # use DIV operator for integer division
query I rowsort label-3875
SELECT col2 + col0 * - col1 - col1 DIV col1 AS col0 FROM tab2
----
-1306
-191
-4577

skipif mysql # not compatible
query I rowsort label-3875
SELECT col2 + col0 * - col1 - col1 / col1 AS col0 FROM tab2
----
-1306
-191
-4577

query I rowsort
SELECT DISTINCT - 22 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
-22

query I rowsort
SELECT ALL - tab1.col0 * + col2 + - col2 + col2 FROM tab1
----
-162
-3648
-7680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab1.col2 * + col1 + tab1.col1 * - tab1.col1 * - ( 63 ) col0 FROM tab1
----
11895
43992
6870

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3879
SELECT CAST( + cor0.col0 AS SIGNED ) FROM tab0, tab1 AS cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870

skipif mysql # not compatible
query I rowsort label-3879
SELECT CAST ( + cor0.col0 AS INTEGER ) FROM tab0, tab1 AS cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870

query I rowsort
SELECT ALL col0 * col1 + col2 + + col1 FROM tab2
----
1398
275
4687

onlyif mysql # use DIV operator for integer division
query I rowsort label-3881
SELECT tab0.col1 + tab0.col2 DIV col1 FROM tab0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-3881
SELECT tab0.col1 + tab0.col2 / col1 FROM tab0
----
86
91
97

query I rowsort
SELECT DISTINCT col2 + ( col1 ) AS col2 FROM tab2
----
55
58
85

query I rowsort
SELECT + cor0.col1 + - ( col2 + - col1 ) FROM tab1 AS cor0
----
-2
-37
-70

query I rowsort
SELECT + + col1 + col1 * col0 FROM tab2 AS cor0
----
1360
248
4661

onlyif mysql # use DIV operator for integer division
query I rowsort label-3885
SELECT - cor0.col0 DIV 82 + + 25 * cor0.col0 AS col1 FROM tab0 AS cor0
----
2224
600
875

skipif mysql # not compatible
query I rowsort label-3885
SELECT - cor0.col0 / 82 + + 25 * cor0.col0 AS col1 FROM tab0 AS cor0
----
2224
600
875

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3886
SELECT ALL CAST( NULL AS SIGNED ) * - col2 * + tab2.col0 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3886
SELECT ALL CAST ( NULL AS INTEGER ) * - col2 * + tab2.col0 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 51 - tab2.col0 col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 9bda91cb943614b98294f75b936f8e61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + col2 ) col2 FROM tab1
----
-54
-57
-96

query I rowsort
SELECT 75 * col1 + + col1 FROM tab2 AS cor0
----
1292
2356
4484

query I rowsort
SELECT - cor0.col0 + + col2 AS col2 FROM tab2 AS cor0
----
-41
-52
20

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + col0 * 69 col2 FROM tab1 AS cor0
----
261
4473
5616

query I rowsort
SELECT DISTINCT + col1 + + 32 FROM tab2
----
49
63
91

query I rowsort
SELECT + col2 + tab1.col2 + + col1 * - col0 AS col0 FROM tab1
----
-526
-848
30

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3894
SELECT CAST( + ( col2 ) AS SIGNED ) * col0 col0 FROM tab1
----
162
3648
7680

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3894
SELECT CAST ( + ( col2 ) AS INTEGER ) * col0 col0 FROM tab1
----
162
3648
7680

query I rowsort
SELECT col1 * 67 AS col0 FROM tab1
----
1742
670
871

query I rowsort
SELECT - col2 * + col0 + col0 FROM tab0 cor0
----
-7209
-768
0

query I rowsort
SELECT - 35 * - cor0.col2 + + col0 * - col0 FROM tab1 AS cor0
----
-2101
-3040
1881

query I rowsort
SELECT + col0 * - col2 + - 97 AS col1 FROM tab1 AS cor0
----
-259
-3745
-7777

skipif mysql # not compatible
query I rowsort
SELECT + col2 + + col0 * CAST ( col2 AS REAL ) / - col2 FROM tab1 cor0
----
-7
16
51

query I rowsort
SELECT 72 + - tab0.col2 FROM tab0
----
-10
39
71

onlyif mysql # use DIV operator for integer division
query I rowsort label-3901
SELECT ALL + col2 DIV col2 - - ( col2 ) FROM tab0
----
2
34
83

skipif mysql # not compatible
query I rowsort label-3901
SELECT ALL + col2 / col2 - - ( col2 ) FROM tab0
----
2
34
83

query I rowsort
SELECT tab1.col0 * col2 - - 33 AS col2 FROM tab1
----
195
3681
7713

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3903
SELECT - col0 / tab1.col0 + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3903
SELECT - col0 / tab1.col0 + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 50 + - cor0.col2 * - ( col1 ) col1 FROM tab1 AS cor0
----
1298
1454
620

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 91 * cor0.col1 - col0 col2 FROM tab0 AS cor0
----
7802
8192
8792

query I rowsort
SELECT 49 - col2 AS col1 FROM tab1 AS cor0
----
-47
-5
-8

query I rowsort
SELECT ALL + + col0 * col0 * col0 + + cor0.col0 FROM tab0 AS cor0
----
13848
42910
705058

query I rowsort
SELECT DISTINCT + + col0 + - col1 * - col0 FROM tab1 AS cor0
----
1120
704
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-3909
SELECT ( col1 ) * + col0 + + col2 DIV col0 AS col1 FROM tab0 AS cor0
----
2065
3395
8099

skipif mysql # not compatible
query I rowsort label-3909
SELECT ( col1 ) * + col0 + + col2 / col0 AS col1 FROM tab0 AS cor0
----
2065
3395
8099

query I rowsort
SELECT DISTINCT + + cor0.col2 * - col2 + cor0.col1 * - col0 FROM tab2 AS cor0
----
-2787
-5278
-946

query I rowsort
SELECT DISTINCT + - cor0.col2 * 60 - 24 FROM tab1 AS cor0
----
-3264
-3444
-5784

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - cor0.col1 + col1 col1 FROM tab1 AS cor0
----
-156
-650
-90

query I rowsort
SELECT ALL + col0 * - 93 + col2 AS col0 FROM tab2 cor0
----
-624
-7228
-7309

query I rowsort
SELECT DISTINCT + + col2 - + col2 FROM tab0 AS cor0
----
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3915
SELECT DISTINCT - - cor0.col1 + + CAST( + 88 AS SIGNED ) + - col1 * - col2 FROM tab1 AS cor0
----
1349
1518
668

skipif mysql # not compatible
query I rowsort label-3915
SELECT DISTINCT - - cor0.col1 + + CAST ( + 88 AS INTEGER ) + - col1 * - col2 FROM tab1 AS cor0
----
1349
1518
668

skipif mysql # not compatible
query I rowsort
SELECT ALL - col1 * + CAST ( 7 AS REAL ) AS col0 FROM tab1 AS cor0
----
-182
-70
-91

query I rowsort
SELECT + - col0 + + col2 * + col0 FROM tab1 AS cor0
----
159
3584
7600

onlyif mysql # use DIV operator for integer division
query I rowsort label-3918
SELECT DISTINCT + - cor0.col0 DIV - 31 FROM tab2 AS cor0
----
0
2

skipif mysql # not compatible
query I rowsort label-3918
SELECT DISTINCT + - cor0.col0 / - 31 FROM tab2 AS cor0
----
0
2

query I rowsort
SELECT ALL - - col2 + + ( 8 ) * cor0.col0 AS col1 FROM tab1 AS cor0
----
569
736
78

query I rowsort
SELECT DISTINCT + + col2 + - ( - col2 ) * - col1 FROM tab1 AS cor0
----
-1152
-1350
-513

onlyif mysql # use DIV operator for integer division
query I rowsort label-3921
SELECT DISTINCT col2 - 67 DIV - ( + col2 + cor0.col0 * - cor0.col1 ) AS col0 FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-3921
SELECT DISTINCT col2 - 67 / - ( + col2 + cor0.col0 * - cor0.col1 ) AS col0 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT DISTINCT - col1 + + 82 * + col1 AS col2 FROM tab2 AS cor0
----
1377
2511
4779

query I rowsort
SELECT - + cor0.col1 + col2 FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT ALL - - cor0.col2 + + col1 + + 18 FROM tab2 cor0
----
103
73
76

onlyif mysql # use DIV operator for integer division
query I rowsort label-3925
SELECT ALL - + col1 DIV 2 FROM tab1 AS cor0
----
-13
-5
-6

skipif mysql # not compatible
query I rowsort label-3925
SELECT ALL - + col1 / 2 FROM tab1 AS cor0
----
-13
-5
-6

query I rowsort
SELECT + col1 - 56 FROM tab2 AS cor0
----
-25
-39
3

query I rowsort
SELECT DISTINCT col2 * - col2 + - col2 * cor0.col1 AS col1 FROM tab1 AS cor0
----
-10464
-3819
-4320

onlyif mysql # use DIV operator for integer division
query I rowsort label-3928
SELECT 89 * col0 - 44 DIV 42 AS col0 FROM tab0
----
2135
3114
7920

skipif mysql # not compatible
query I rowsort label-3928
SELECT 89 * col0 - 44 / 42 AS col0 FROM tab0
----
2135
3114
7920

query I rowsort
SELECT 99 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 05ea182fd6036c7f5e0ea08fc061cc67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col2 + - tab1.col0 + tab1.col0 col0 FROM tab1
----
1248
1404
570

query I rowsort
SELECT DISTINCT + col1 + - col1 * col1 * 65 FROM tab1 AS cor0
----
-10972
-43914
-6490

query I rowsort
SELECT + col1 * + 90 FROM tab0 AS cor0
----
7740
8190
8730

onlyif mysql # use DIV operator for integer division
query I rowsort label-3933
SELECT - - 20 DIV cor0.col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3933
SELECT - - 20 / cor0.col0 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3934
SELECT + col0 + + col0 * + col2 * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3934
SELECT + col0 + + col0 * + col2 * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - cor0.col1 * 57 FROM tab1 AS cor0
----
-1482
-570
-741

query I rowsort
SELECT + cor0.col2 * ( col2 ) * col0 AS col1 FROM tab2 cor0
----
114076
5103
52728

query I rowsort
SELECT - col0 + ( + col0 ) AS col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3938
SELECT DISTINCT col0 * col2 * ( col1 * CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3938
SELECT DISTINCT col0 * col2 * ( col1 * CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3939
SELECT ALL + - 39 * + col0 DIV + col0 + + 16 AS col0 FROM tab2 AS cor0
----
-23
-23
-23

skipif mysql # not compatible
query I rowsort label-3939
SELECT ALL + - 39 * + col0 / + col0 + + 16 AS col0 FROM tab2 AS cor0
----
-23
-23
-23

query I rowsort
SELECT ALL + col2 * - ( col0 ) AS col1 FROM tab2
----
-189
-2028
-3002

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3941
SELECT DISTINCT CAST( + 53 AS SIGNED ) * col2 AS col2 FROM tab0 AS cor0
----
1749
4346
53

skipif mysql # not compatible
query I rowsort label-3941
SELECT DISTINCT CAST ( + 53 AS INTEGER ) * col2 AS col2 FROM tab0 AS cor0
----
1749
4346
53

query I rowsort
SELECT ALL 23 * - cor0.col2 * col2 FROM tab0 AS cor0
----
-154652
-23
-25047

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3943
SELECT CAST( + col1 AS SIGNED ) + col2 AS col2 FROM tab0 AS cor0
----
119
173
98

skipif mysql # not compatible
query I rowsort label-3943
SELECT CAST ( + col1 AS INTEGER ) + col2 AS col2 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT ALL ( cor0.col2 ) + - col0 * col0 AS col0 FROM tab0 AS cor0
----
-1224
-543
-7839

query I rowsort
SELECT ALL - ( - col0 ) * + col2 AS col1 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT DISTINCT + + 91 AS col0 FROM tab0 AS cor0
----
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( + col2 ) + - col2 col1 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3948
SELECT ALL ( col1 ) + + col0 DIV + col1 FROM tab2 AS cor0
----
21
31
60

skipif mysql # not compatible
query I rowsort label-3948
SELECT ALL ( col1 ) + + col0 / + col1 FROM tab2 AS cor0
----
21
31
60

query I rowsort
SELECT ALL cor0.col1 * col2 AS col2 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT ALL + cor0.col0 + + cor0.col1 AS col1 FROM tab0 AS cor0
----
110
132
180

onlyif mysql # use DIV operator for integer division
query I rowsort label-3951
SELECT - + col2 + col2 DIV col0 FROM tab1 cor0
----
-36
-57
-95

skipif mysql # not compatible
query I rowsort label-3951
SELECT - + col2 + col2 / col0 FROM tab1 cor0
----
-36
-57
-95

query I rowsort
SELECT col2 * - ( col1 ) FROM tab2
----
-1534
-646
-837

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3953
SELECT col2 + CAST( + col2 AS SIGNED ) FROM tab2
----
52
54
76

skipif mysql # not compatible
query I rowsort label-3953
SELECT col2 + CAST ( + col2 AS INTEGER ) FROM tab2
----
52
54
76

query I rowsort
SELECT tab2.col2 AS col2 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT + col0 + col2 - + 38 FROM tab1
----
138
19
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + cor0.col2 + col1 col1 FROM tab0 AS cor0
----
132
7389
878

query I rowsort
SELECT + ( cor0.col1 ) + col1 * ( cor0.col0 ) FROM tab0 AS cor0
----
2150
3492
8190

query I rowsort
SELECT DISTINCT - col0 * + col2 * col0 AS col0 FROM tab2 AS cor0
----
-1323
-158184
-237158

query I rowsort
SELECT + tab0.col2 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8

query I rowsort
SELECT + ( col1 ) * + ( cor0.col1 + col0 ) AS col2 FROM tab1 AS cor0
----
1209
740
754

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3961
SELECT 89 + ( col1 * CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3961
SELECT 89 + ( col1 * CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3962
SELECT CAST( - col2 AS SIGNED ) * col2 AS col1 FROM tab2 cor0
----
-1444
-676
-729

skipif mysql # not compatible
query I rowsort label-3962
SELECT CAST ( - col2 AS INTEGER ) * col2 AS col1 FROM tab2 cor0
----
-1444
-676
-729

query I rowsort
SELECT DISTINCT - 67 + 21 FROM tab0 AS cor0
----
-46

query I rowsort
SELECT ALL + 70 * col1 FROM tab1 AS cor0
----
1820
700
910

query I rowsort
SELECT - - col0 + - 72 FROM tab0 AS cor0
----
-37
-48
17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab2.col0 + col1 * - col1 * 3 col2 FROM tab2
----
-10365
-2876
-788

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3967
SELECT - CAST( col2 AS SIGNED ) + col0 AS col1 FROM tab0
----
-9
34
7

skipif mysql # not compatible
query I rowsort label-3967
SELECT - CAST ( col2 AS INTEGER ) + col0 AS col1 FROM tab0
----
-9
34
7

query I rowsort
SELECT - 37 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to ed4644af7729c2425ea6cc3d84c6504f

query I rowsort
SELECT ALL + cor0.col2 + col0 * col0 + col0 * - 51 FROM tab2 AS cor0
----
-281
2132
2250

query I rowsort
SELECT DISTINCT 15 - col1 AS col1 FROM tab1
----
-11
2
5

query I rowsort
SELECT DISTINCT col1 + - col0 + col2 FROM tab2
----
-24
51
7

query I rowsort
SELECT DISTINCT col2 * + col0 + col0 AS col0 FROM tab0
----
70
7387
816

query I rowsort
SELECT ALL + col1 + + tab2.col2 FROM tab2
----
55
58
85

query I rowsort
SELECT col2 + col1 + - col1 * col1 * col2 FROM tab2
----
-10927
-25889
-90421

onlyif mysql # use DIV operator for integer division
query I rowsort label-3975
SELECT DISTINCT - col2 + 10 DIV - col2 col2 FROM tab1
----
-54
-57
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3975
SELECT DISTINCT - col2 + 10 / - col2 col2 FROM tab1
----
-54
-57
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * ( - col0 ) + + col1 col2 FROM tab0
----
-1128
-490
-7830

query I rowsort
SELECT - 17 FROM tab2, tab0 AS cor0, tab2 cor1
----
27 values hashing to 28cd5b4c959cb41fbc56389ab43d167e

query I rowsort
SELECT - + col0 * col1 + + col2 + col2 FROM tab2 AS cor0
----
-1267
-163
-4550

query I rowsort
SELECT - col2 + col1 + col0 * col0 AS col2 FROM tab1 AS cor0
----
-19
4049
6317

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + col1 * col1 col0 FROM tab0 cor0
----
7482
8372
9506

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1 cor0, tab1, tab2 AS cor1
----
972 values hashing to 01a5931cccc3dad8792a1bc6df09c614

query I rowsort
SELECT ALL col2 * + 75 + - col0 * + col1 AS col2 FROM tab1
----
3635
3972
6160

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3983
SELECT col2 * CAST( + tab1.col0 * col2 AS SIGNED ) AS col2 FROM tab1
----
207936
737280
8748

skipif mysql # not compatible
query I rowsort label-3983
SELECT col2 * CAST ( + tab1.col0 * col2 AS INTEGER ) AS col2 FROM tab1
----
207936
737280
8748

query I rowsort
SELECT - col0 - - ( col1 ) AS col0 FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT ALL col1 + 45 AS col1 FROM tab0 AS cor0
----
131
136
142

query I rowsort
SELECT ALL + col2 + - 37 FROM tab2 AS cor0
----
-10
-11
1

query I rowsort
SELECT ALL - - col1 + col2 * + col1 FROM tab1 AS cor0
----
1261
1430
580

query I rowsort
SELECT ALL + col2 + cor0.col2 * col1 + + col1 FROM tab2 AS cor0
----
1619
701
895

query I rowsort
SELECT ALL col0 * 40 AS col0 FROM tab2
----
280
3120
3160

query I rowsort
SELECT - cor1.col1 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2, tab1 AS cor1
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6

query I rowsort
SELECT + col0 + - 85 FROM tab1 cor0
----
-21
-5
-82

query I rowsort
SELECT DISTINCT - col1 * - cor0.col1 + col0 FROM tab2 AS cor0
----
3559
368
968

onlyif mysql # use DIV operator for integer division
query I rowsort label-3993
SELECT ALL col2 + + cor0.col2 DIV col2 AS col2 FROM tab1 AS cor0
----
55
58
97

skipif mysql # not compatible
query I rowsort label-3993
SELECT ALL col2 + + cor0.col2 / col2 AS col2 FROM tab1 AS cor0
----
55
58
97

query I rowsort
SELECT DISTINCT col2 * 44 * col1 FROM tab1 AS cor0
----
25080
54912
61776

query I rowsort
SELECT - 96 * ( col1 ) + + col0 AS col2 FROM tab2 cor0
----
-1553
-2969
-5586

query I rowsort
SELECT - tab0.col2 * - tab0.col2 AS col0 FROM tab0
----
1
1089
6724

query IIIIII rowsort
SELECT * FROM tab0, tab2 AS cor0 WHERE NOT ( NULL ) >= ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - 2 * + col0 col2 FROM tab1 AS cor0
----
-118
-147
20

query I rowsort
SELECT + tab0.col1 * + col0 + + 43 AS col1 FROM tab0
----
2107
3438
8142

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - cor0.col1 * col2 col0 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT DISTINCT + col2 * col2 * - ( col2 + cor0.col2 ) FROM tab2 AS cor0
----
-109744
-35152
-39366

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 87 + - cor0.col1 col2 FROM tab0 AS cor0
----
-173
-178
-184

onlyif mysql # use DIV operator for integer division
query I rowsort label-4003
SELECT DISTINCT + + 50 + col2 * 83 DIV 44 FROM tab1 AS cor0
----
151
157
231

skipif mysql # not compatible
query I rowsort label-4003
SELECT DISTINCT + + 50 + col2 * 83 / 44 FROM tab1 AS cor0
----
151
157
231

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4004
SELECT DISTINCT - col1 + + col1 * CAST( col2 AS SIGNED ) col2 FROM tab0 AS cor0
----
0
2752
7371

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4004
SELECT DISTINCT - col1 + + col1 * CAST ( col2 AS INTEGER ) col2 FROM tab0 AS cor0
----
0
2752
7371

query I rowsort
SELECT + - 20 AS col1 FROM tab0 cor0
----
-20
-20
-20

query I rowsort
SELECT + + col2 * ( + col1 ) * col1 + + cor0.col2 FROM tab0 AS cor0
----
244101
679124
9410

onlyif mysql # use DIV operator for integer division
query I rowsort label-4007
SELECT + - col2 DIV 74 + - cor0.col0 FROM tab1 AS cor0
----
-3
-64
-81

skipif mysql # not compatible
query I rowsort label-4007
SELECT + - col2 / 74 + - cor0.col0 FROM tab1 AS cor0
----
-3
-64
-81

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4008
SELECT - + col2 * + CAST( + col0 AS SIGNED ) - + col1 AS col2 FROM tab1 AS cor0
----
-188
-3658
-7693

skipif mysql # not compatible
query I rowsort label-4008
SELECT - + col2 * + CAST ( + col0 AS INTEGER ) - + col1 AS col2 FROM tab1 AS cor0
----
-188
-3658
-7693

onlyif mysql # use DIV operator for integer division
query I rowsort label-4009
SELECT DISTINCT + - col1 * + 53 - + col2 DIV cor0.col2 AS col0 FROM tab1 AS cor0
----
-1379
-531
-690

skipif mysql # not compatible
query I rowsort label-4009
SELECT DISTINCT + - col1 * + 53 - + col2 / cor0.col2 AS col0 FROM tab1 AS cor0
----
-1379
-531
-690

query I rowsort
SELECT + col2 + ( + col1 * - col1 ) AS col2 FROM tab0 AS cor0
----
-7363
-8199
-9408

query I rowsort
SELECT ALL + col0 + 43 AS col1 FROM tab1 AS cor0
----
107
123
46

query I rowsort
SELECT - col1 - cor0.col2 * 12 FROM tab0 AS cor0
----
-1075
-109
-482

onlyif mysql # use DIV operator for integer division
query I rowsort label-4013
SELECT DISTINCT + col1 - col1 DIV - ( - col1 ) AS col2 FROM tab1
----
12
25
9

skipif mysql # not compatible
query I rowsort label-4013
SELECT DISTINCT + col1 - col1 / - ( - col1 ) AS col2 FROM tab1
----
12
25
9

query I rowsort
SELECT - col1 - - col0 * - col2 AS col2 FROM tab2 AS cor0
----
-2087
-220
-3019

query I rowsort
SELECT DISTINCT - col2 * + col1 * - col0 + + cor0.col1 * + col1 FROM tab2 AS cor0
----
123133
51323
6820

query III rowsort
SELECT ALL * FROM tab1 WHERE ( col2 ) NOT IN ( col2 / - col2 + col0 * + col2 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

query I rowsort
SELECT - col0 * + col1 + + col0 AS col1 FROM tab0
----
-2040
-3360
-8010

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4018
SELECT CAST( NULL AS DECIMAL ) AS col1 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-4018
SELECT CAST ( NULL AS REAL ) AS col1 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT - cor0.col2 + col2 AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT - col0 * col2 + - col0 AS col0 FROM tab1 cor0
----
-165
-3712
-7760

query I rowsort
SELECT + col0 * cor0.col1 + - col0 - - ( + col0 + - 41 ) * + 55 * col2 AS col1 FROM tab2 AS cor0
----
-50280
57434
80684

query I rowsort
SELECT - col0 + col0 * 53 + + col1 FROM tab0 AS cor0
----
1334
1917
4719

query I rowsort
SELECT col2 * col2 * 99 AS col0 FROM tab0
----
107811
665676
99

query I rowsort
SELECT DISTINCT + col1 * - col0 - - ( - col2 ) FROM tab0
----
-2097
-3396
-8181

query I rowsort
SELECT DISTINCT tab1.col2 - col0 AS col0 FROM tab1
----
-7
16
51

query I rowsort
SELECT col1 - tab2.col2 AS col2 FROM tab2
----
-21
33
4

query I rowsort
SELECT DISTINCT - col0 + col1 * - col0 AS col2 FROM tab1
----
-1120
-704
-81

query I rowsort
SELECT ALL + col2 + col0 AS col1 FROM tab0
----
171
36
57

query I rowsort
SELECT - tab0.col0 + - col1 + + col2 FROM tab0 WHERE ( NULL ) <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * - col0 + tab1.col1 * col1 col0 FROM tab1
----
1209
740
754

query I rowsort
SELECT col2 * + tab2.col0 AS col2 FROM tab2
----
189
2028
3002

query I rowsort
SELECT ALL + col2 * col1 + tab1.col2 AS col1 FROM tab1
----
1344
1458
627

query I rowsort
SELECT ALL - col2 * col2 + + col1 FROM tab2
----
-1427
-617
-698

onlyif mysql # use DIV operator for integer division
query I rowsort label-4034
SELECT - col2 DIV col1 + tab1.col2 * - col2 * - col1 AS col1 FROM tab1 WHERE ( - col1 ) NOT IN ( - col2 )
----
119801
32485
75814

skipif mysql # not compatible
query I rowsort label-4034
SELECT - col2 / col1 + tab1.col2 * - col2 * - col1 AS col1 FROM tab1 WHERE ( - col1 ) NOT IN ( - col2 )
----
119801
32485
75814

query I rowsort
SELECT tab0.col2 + tab0.col1 AS col2 FROM tab0
----
119
173
98

query I rowsort
SELECT ALL tab2.col1 + col0 AS col1 FROM tab2
----
137
38
96

query I rowsort
SELECT col2 + - col1 FROM tab1 WHERE NOT ( + col0 ) < ( - col0 * - col2 + col0 )
----

query I rowsort
SELECT col0 + + col2 * col1 + - tab0.col2 AS col1 FROM tab0
----
131
2829
7469

onlyif mysql # use DIV operator for integer division
query I rowsort label-4039
SELECT ALL + col2 + col1 DIV + col2 FROM tab0
----
35
83
98

skipif mysql # not compatible
query I rowsort label-4039
SELECT ALL + col2 + col1 / + col2 FROM tab0
----
35
83
98

query I rowsort
SELECT ALL + col1 AS col1 FROM tab1 WHERE ( NULL ) > NULL
----

query I rowsort
SELECT DISTINCT - col2 + col2 * col2 AS col1 FROM tab2
----
1406
650
702

query I rowsort
SELECT tab0.col2 + - col1 AS col2 FROM tab0
----
-53
-9
-96

query I rowsort
SELECT col1 + col1 + + col1 AS col2 FROM tab0
----
258
273
291

query I rowsort
SELECT DISTINCT + col1 * - col1 + col0 * + col1 FROM tab1
----
-598
540
871

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col1 NOT IN ( + tab1.col1 )
----

query I rowsort
SELECT col1 AS col0 FROM tab0 WHERE NOT + col2 * col1 NOT IN ( - col1 * col0 + col1 / col0 )
----

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4047
SELECT CAST( NULL AS SIGNED ) * - 23 + tab1.col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4047
SELECT CAST ( NULL AS INTEGER ) * - 23 + tab1.col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4048
SELECT ALL + 99 DIV - col0 AS col2 FROM tab0 AS cor0
----
-1
-2
-4

skipif mysql # not compatible
query I rowsort label-4048
SELECT ALL + 99 / - col0 AS col2 FROM tab0 AS cor0
----
-1
-2
-4

query I rowsort
SELECT ALL - + 2 - + col2 AS col1 FROM tab2 cor0
----
-28
-29
-40

onlyif mysql # use DIV operator for integer division
query I rowsort label-4050
SELECT ALL col0 DIV col1 + + 60 * - col0 DIV cor0.col0 + - 56 * + col2 FROM tab2 AS cor0
----
-1515
-1572
-2184

skipif mysql # not compatible
query I rowsort label-4050
SELECT ALL col0 / col1 + + 60 * - col0 / cor0.col0 + - 56 * + col2 FROM tab2 AS cor0
----
-1515
-1572
-2184

query I rowsort
SELECT ALL - + 82 AS col0 FROM tab2 AS cor0
----
-82
-82
-82

query I rowsort
SELECT 56 + col0 * col1 AS col0 FROM tab2 AS cor0
----
1399
273
4658

query I rowsort
SELECT DISTINCT - col2 + cor0.col1 * - col0 FROM tab1 cor0
----
-1136
-132
-697

query I rowsort
SELECT ALL + col2 * col0 + col0 AS col1 FROM tab2 AS cor0
----
196
2106
3081

onlyif mysql # use DIV operator for integer division
query I rowsort label-4055
SELECT DISTINCT + cor0.col1 DIV col0 FROM tab0 AS cor0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-4055
SELECT DISTINCT + cor0.col1 / col0 FROM tab0 AS cor0
----
1
2
3

query I rowsort
SELECT DISTINCT 78 FROM tab1 AS cor0
----
78

query I rowsort
SELECT 50 * + col1 FROM tab1 AS cor0
----
1300
500
650

query I rowsort
SELECT DISTINCT 24 AS col0 FROM tab2 AS cor0
----
24

query I rowsort
SELECT - col1 + 57 FROM tab0 AS cor0
----
-29
-34
-40

query I rowsort
SELECT DISTINCT + col1 * + 71 FROM tab1 AS cor0
----
1846
710
923

query I rowsort
SELECT ALL + cor0.col0 + cor0.col1 AS col1 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT - col0 * - ( + col0 ) AS col1 FROM tab0 AS cor0
----
1225
576
7921

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4063
SELECT DISTINCT cor0.col0 - CAST( NULL AS DECIMAL ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4063
SELECT DISTINCT cor0.col0 - CAST ( NULL AS REAL ) AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT col0 + ( col1 + col0 * 66 ) FROM tab2 AS cor0
----
500
5285
5310

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4065
SELECT ALL cor0.col1 * cor0.col0 + - ( col1 + + CAST( NULL AS SIGNED ) ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4065
SELECT ALL cor0.col1 * cor0.col0 + - ( col1 + + CAST ( NULL AS INTEGER ) ) FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4066
SELECT DISTINCT 44 DIV 82 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4066
SELECT DISTINCT 44 / 82 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL - 5 AS col1 FROM tab0 cor0
----
-5
-5
-5

query I rowsort
SELECT + 29 * + col1 FROM tab1 cor0
----
290
377
754

onlyif mysql # use DIV operator for integer division
query I rowsort label-4069
SELECT DISTINCT - + col2 + col1 DIV col2 FROM tab1 AS cor0
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-4069
SELECT DISTINCT - + col2 + col1 / col2 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT DISTINCT 93 + 2 FROM tab0 cor0
----
95

query I rowsort
SELECT DISTINCT + - cor0.col1 + 74 FROM tab1 AS cor0
----
48
61
64

query I rowsort
SELECT col1 + ( - cor0.col2 ) * - 34 FROM tab0 AS cor0
----
1208
131
2879

query I rowsort
SELECT - col1 - col2 * 99 * col2 FROM tab2
----
-142973
-66983
-72202

query I rowsort
SELECT - 15 + + tab1.col1 + - ( + col1 ) AS col1 FROM tab1
----
-15
-15
-15

query I rowsort
SELECT DISTINCT tab2.col2 + + col1 AS col0 FROM tab2
----
55
58
85

query I rowsort
SELECT ALL + col0 * col2 + + col0 AS col2 FROM tab1 cor0
----
165
3712
7760

query I rowsort
SELECT ALL - col1 * col0 + - 83 FROM tab2 AS cor0
----
-1426
-300
-4685

onlyif mysql # use DIV operator for integer division
query I rowsort label-4078
SELECT DISTINCT + - col1 + cor0.col1 * col0 DIV col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4078
SELECT DISTINCT + - col1 + cor0.col1 * col0 / col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT - 74 + col2 * - col2 AS col0 FROM tab1 AS cor0
----
-2990
-3323
-9290

query I rowsort
SELECT DISTINCT - col2 * col0 + + col0 FROM tab1 AS cor0
----
-159
-3584
-7600

query I rowsort
SELECT ALL + col1 - - cor0.col2 AS col0 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT + ( col0 ) + col2 AS col1 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT DISTINCT - + col0 + cor0.col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT - col2 + 78 FROM tab2 AS cor0
----
40
51
52

query I rowsort
SELECT + + col2 + cor0.col1 AS col1 FROM tab0 cor0
----
119
173
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + ( col1 ) * cor0.col1 col0 FROM tab2 AS cor0
----
3559
368
968

onlyif mysql # use DIV operator for integer division
query I rowsort label-4087
SELECT DISTINCT + + col2 + col1 DIV 41 FROM tab0 AS cor0
----
3
35
84

skipif mysql # not compatible
query I rowsort label-4087
SELECT DISTINCT + + col2 + col1 / 41 FROM tab0 AS cor0
----
3
35
84

query I rowsort
SELECT col1 + + 22 AS col1 FROM tab0 AS cor0
----
108
113
119

onlyif mysql # use DIV operator for integer division
query I rowsort label-4089
SELECT ALL - col2 DIV - cor0.col0 AS col0 FROM tab2 AS cor0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-4089
SELECT ALL - col2 / - cor0.col0 AS col0 FROM tab2 AS cor0
----
0
0
3

query I rowsort
SELECT DISTINCT - col2 * + ( col0 ) + + col1 * cor0.col1 AS col0 FROM tab2 cor0
----
-2713
1453
772

query I rowsort
SELECT DISTINCT - - col0 * - col1 + col2 * - col2 FROM tab0 AS cor0
----
-14823
-3153
-3396

query I rowsort
SELECT DISTINCT - col0 * col0 + ( - col2 ) AS col2 FROM tab0
----
-1226
-609
-8003

query I rowsort
SELECT col1 + - tab2.col0 AS col1 FROM tab2
----
-19
-62
24

query I rowsort
SELECT col0 + col0 * - 73 + - tab1.col2 AS col0 FROM tab1
----
-270
-4665
-5856

query I rowsort
SELECT + - cor0.col0 * - col2 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT - col2 + + ( - col0 ) + col1 AS col1 FROM tab2 AS cor0
----
-100
-3
-45

query I rowsort
SELECT DISTINCT - - col1 * col1 AS col2 FROM tab1 AS cor0
----
100
169
676

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 25 * 78 col2 FROM tab1 AS cor0
----
1950
1950
1950

query I rowsort
SELECT DISTINCT ( 31 ) AS col1 FROM tab0 AS cor0
----
31

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4100
SELECT ALL + CAST( NULL AS DECIMAL ) AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4100
SELECT ALL + CAST ( NULL AS REAL ) AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col2 + - col1 * col2 FROM tab1 AS cor0
----
-1152
-1350
-513

query I rowsort
SELECT DISTINCT + ( - col1 ) * col0 * + 26 FROM tab1 AS cor0
----
-16640
-2028
-27040

query I rowsort
SELECT + + ( 16 ) * col2 AS col2 FROM tab0 AS cor0
----
1312
16
528

query I rowsort
SELECT ALL - ( - 5 ) + - col1 FROM tab0 AS cor0
----
-81
-86
-92

query I rowsort
SELECT ALL + - col1 - + 70 FROM tab2 cor0
----
-101
-129
-87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + 38 ) col0 FROM tab1 cor0
----
38
38
38

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4107
SELECT DISTINCT + - CAST( - col0 AS SIGNED ) FROM tab2 AS cor0
----
7
78
79

skipif mysql # not compatible
query I rowsort label-4107
SELECT DISTINCT + - CAST ( - col0 AS INTEGER ) FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT DISTINCT + - 93 * + cor0.col1 + cor0.col2 FROM tab0 cor0
----
-7965
-8381
-9020

query I rowsort
SELECT + + 30 + + col1 FROM tab1 AS cor0
----
40
43
56

query I rowsort
SELECT ALL - cor0.col2 + cor0.col1 FROM tab0 AS cor0
----
53
9
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-4111
SELECT ALL - - 55 + col2 - + col1 DIV + 9 AS col2 FROM tab2 AS cor0
----
75
79
92

skipif mysql # not compatible
query I rowsort label-4111
SELECT ALL - - 55 + col2 - + col1 / + 9 AS col2 FROM tab2 AS cor0
----
75
79
92

skipif mysql # not compatible
query I rowsort
SELECT + CAST ( + col0 AS REAL ) AS col2 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT ALL col1 + 74 FROM tab1 AS cor0
----
100
84
87

query I rowsort
SELECT ALL - 85 AS col2 FROM tab1 AS cor0
----
-85
-85
-85

onlyif mysql # use DIV operator for integer division
query I rowsort label-4115
SELECT DISTINCT 2 DIV col1 - - col0 FROM tab0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-4115
SELECT DISTINCT 2 / col1 - - col0 FROM tab0
----
24
35
89

query I rowsort
SELECT - col0 * - col0 - tab2.col2 FROM tab2
----
22
6058
6203

query I rowsort
SELECT + 29 * col0 AS col1 FROM tab0 AS cor0
----
1015
2581
696

query I rowsort
SELECT DISTINCT ( col0 ) * + 98 + + col1 * cor0.col2 AS col0 FROM tab2 cor0
----
1523
8388
9178

query I rowsort
SELECT 11 * col2 * + ( col2 + col2 ) AS col0 FROM tab0 AS cor0
----
147928
22
23958

query I rowsort
SELECT + - 31 * + col2 * col1 FROM tab0 AS cor0
----
-231322
-3007
-87978

skipif mysql # not compatible
query I rowsort
SELECT col1 + col2 * + CAST ( col0 AS REAL ) * col0 FROM tab2 AS cor0
----
1354
158243
237175

query I rowsort
SELECT ( 3 ) FROM tab2
----
3
3
3

query I rowsort
SELECT ALL ( tab1.col2 ) * col1 AS col0 FROM tab1
----
1248
1404
570

query I rowsort
SELECT DISTINCT - 3 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
-3

query I rowsort
SELECT ALL col0 + - col2 * + 94 AS col0 FROM tab1
----
-5073
-5294
-8944

query I rowsort
SELECT DISTINCT + 98 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
98

query I rowsort
SELECT DISTINCT - 20 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-20

query I rowsort
SELECT DISTINCT + + cor0.col0 + + col2 AS col2 FROM tab0 AS cor0
----
171
36
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-4129
SELECT ALL + cor0.col0 DIV cor0.col1 - + col2 * col1 FROM tab0 AS cor0
----
-2838
-7462
-97

skipif mysql # not compatible
query I rowsort label-4129
SELECT ALL + cor0.col0 / cor0.col1 - + col2 * col1 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT + + ( col2 ) * - col1 + - 36 FROM tab2 AS cor0
----
-1570
-682
-873

query I rowsort
SELECT - cor0.col2 * + col0 * + col1 FROM tab0 AS cor0
----
-3395
-664118
-68112

query I rowsort
SELECT + 72 * col2 + + 35 FROM tab2 AS cor0
----
1907
1979
2771

query I rowsort
SELECT - col2 * - 53 * + col1 AS col0 FROM tab0 cor0
----
150414
395486
5141

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 36 col1 FROM tab2, tab2 AS cor0
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752

onlyif mysql # use DIV operator for integer division
query I rowsort label-4135
SELECT DISTINCT - col0 * col2 DIV + tab2.col1 FROM tab2
----
-176
-34
-6

skipif mysql # not compatible
query I rowsort label-4135
SELECT DISTINCT - col0 * col2 / + tab2.col1 FROM tab2
----
-176
-34
-6

query I rowsort
SELECT ALL + + 30 FROM tab1 cor0
----
30
30
30

onlyif mysql # use DIV operator for integer division
query I rowsort label-4137
SELECT ALL - col2 DIV col0 col0 FROM tab0 AS cor0
----
-1
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4137
SELECT ALL - col2 / col0 col0 FROM tab0 AS cor0
----
-1
0
0

query I rowsort
SELECT + 74 AS col2 FROM tab0
----
74
74
74

query I rowsort
SELECT col1 * 82 AS col2 FROM tab2 AS cor0
----
1394
2542
4838

query I rowsort
SELECT DISTINCT - 52 FROM tab2, tab1 AS cor0, tab1 cor1, tab2 cor2
----
-52

query I rowsort
SELECT - cor0.col2 * ( col0 ) + + col1 FROM tab1 AS cor0
----
-136
-3638
-7667

query I rowsort
SELECT ALL + col0 * col0 + col2 FROM tab0 AS cor0
----
1226
609
8003

query I rowsort
SELECT DISTINCT - col0 + cor0.col2 AS col0 FROM tab1 AS cor0
----
-7
16
51

query I rowsort
SELECT + - ( + 45 ) + col2 FROM tab0 AS cor0
----
-12
-44
37

query I rowsort
SELECT DISTINCT col0 * col0 * col1 + + col1 AS col0 FROM tab2 AS cor0
----
106114
1550
359015

onlyif mysql # use DIV operator for integer division
query I rowsort label-4146
SELECT + col2 * col0 + + col2 DIV col2 FROM tab0 AS cor0
----
36
7299
793

skipif mysql # not compatible
query I rowsort label-4146
SELECT + col2 * col0 + + col2 / col2 FROM tab0 AS cor0
----
36
7299
793

query I rowsort
SELECT ALL - 94 * col2 + - col1 AS col1 FROM tab1 AS cor0
----
-5102
-5368
-9037

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4148
SELECT + CAST( col1 AS SIGNED ) + col0 FROM tab2 AS cor0
----
137
38
96

skipif mysql # not compatible
query I rowsort label-4148
SELECT + CAST ( col1 AS INTEGER ) + col0 FROM tab2 AS cor0
----
137
38
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-4149
SELECT - col0 DIV - col0 - + col0 FROM tab2 AS cor0
----
-6
-77
-78

skipif mysql # not compatible
query I rowsort label-4149
SELECT - col0 / - col0 - + col0 FROM tab2 AS cor0
----
-6
-77
-78

query I rowsort
SELECT DISTINCT + - col1 - col0 FROM tab1 cor0
----
-29
-74
-93

query I rowsort
SELECT + 13 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb

query I rowsort
SELECT ALL + + ( cor0.col0 ) FROM tab1, tab2 cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 74 col1 FROM tab1, tab2 AS cor0, tab2 AS cor1, tab0, tab1 AS cor2
----
243 values hashing to aae90a3693940d37cdb51d5e4f1c7ac8

query I rowsort
SELECT col1 + - col1 * - cor0.col0 AS col1 FROM tab2 AS cor0
----
1360
248
4661

query I rowsort
SELECT ALL ( col0 ) + + col0 FROM tab1 AS cor0
----
128
160
6

query I rowsort
SELECT DISTINCT + tab0.col1 * - col1 AS col2 FROM tab0
----
-7396
-8281
-9409

query I rowsort
SELECT DISTINCT + col1 * + col0 + col0 * + col1 + + col0 FROM tab2 AS cor0
----
2765
441
9282

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4158
SELECT + col1 + CAST( col1 AS SIGNED ) * col1 FROM tab0 AS cor0
----
7482
8372
9506

skipif mysql # not compatible
query I rowsort label-4158
SELECT + col1 + CAST ( col1 AS INTEGER ) * col1 FROM tab0 AS cor0
----
7482
8372
9506

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4159
SELECT DISTINCT tab1.col1 * CAST( 55 + + cor0.col0 AS SIGNED ) AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 3a0cd7a8177ef20deca758e65bec0751

skipif mysql # not compatible
query I rowsort label-4159
SELECT DISTINCT tab1.col1 * CAST ( 55 + + cor0.col0 AS INTEGER ) AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 3a0cd7a8177ef20deca758e65bec0751

query I rowsort
SELECT ALL + 30 + - col1 FROM tab0
----
-56
-61
-67

query I rowsort
SELECT ( - col1 * 84 + - col0 ) FROM tab2
----
-1507
-2611
-5034

query I rowsort
SELECT DISTINCT - ( - col2 + + col1 ) FROM tab0
----
-53
-9
-96

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab1, tab2 AS cor0, tab0 cor1
----
972 values hashing to 9a5ab925af18e11f7748f3b2e722ff3d

onlyif mysql # use DIV operator for integer division
query I rowsort label-4164
SELECT - + cor0.col0 DIV col2 col1 FROM tab1 AS cor0
----
-1
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4164
SELECT - + cor0.col0 / col2 col1 FROM tab1 AS cor0
----
-1
0
0

query I rowsort
SELECT - cor0.col1 + col2 * 4 FROM tab0 AS cor0
----
-93
237
46

onlyif mysql # use DIV operator for integer division
query I rowsort label-4166
SELECT DISTINCT + - col1 DIV ( - col1 + - col0 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4166
SELECT DISTINCT + - col1 / ( - col1 + - col0 ) FROM tab0 AS cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4167
SELECT col2 DIV + 73 AS col1 FROM tab0 cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4167
SELECT col2 / + 73 AS col1 FROM tab0 cor0
----
0
0
1

query I rowsort
SELECT ALL - - col1 + col0 * 73 AS col2 FROM tab1 AS cor0
----
245
4682
5853

query I rowsort
SELECT ALL - 19 + + col0 * + ( col1 ) + col2 FROM tab1
----
1117
113
678

query I rowsort
SELECT + col1 - 49 AS col0 FROM tab1
----
-23
-36
-39

query I rowsort
SELECT tab2.col0 + - tab2.col2 AS col1 FROM tab2
----
-20
41
52

query I rowsort
SELECT + col1 + - 28 FROM tab1
----
-15
-18
-2

query I rowsort
SELECT ALL col2 * + 36 FROM tab0
----
1188
2952
36

query I rowsort
SELECT - col1 + - col0 AS col0 FROM tab2 cor0
----
-137
-38
-96

query I rowsort
SELECT - col1 * - 91 AS col0 FROM tab0 AS cor0
----
7826
8281
8827

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + 74 col0 FROM tab0 AS cor0
----
-8
41
73

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4177
SELECT ALL col0 * CAST( + col2 AS SIGNED ) AS col1 FROM tab0
----
35
7298
792

skipif mysql # not compatible
query I rowsort label-4177
SELECT ALL col0 * CAST ( + col2 AS INTEGER ) AS col1 FROM tab0
----
35
7298
792

query I rowsort
SELECT ALL - 38 FROM tab1, tab2 AS cor0
----
9 values hashing to e571541ae40cb0ddaca16e11f4359507

query I rowsort
SELECT ALL 53 - - 20 * col2 FROM tab2
----
573
593
813

onlyif mysql # use DIV operator for integer division
query I rowsort label-4180
SELECT ALL 12 DIV + col1 AS col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4180
SELECT ALL 12 / + col1 AS col2 FROM tab0
----
0
0
0

query I rowsort
SELECT 13 FROM tab2, tab1 AS cor0
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb

onlyif mysql # use DIV operator for integer division
query I rowsort label-4182
SELECT DISTINCT ( - col0 ) DIV - col2 + col2 FROM tab1
----
54
58
96

skipif mysql # not compatible
query I rowsort label-4182
SELECT DISTINCT ( - col0 ) / - col2 + col2 FROM tab1
----
54
58
96

query I rowsort
SELECT - col2 + cor0.col0 - col2 * col2 AS col0 FROM tab0 AS cor0
----
-1098
-6717
33

query I rowsort
SELECT col1 * - tab0.col0 AS col0 FROM tab0
----
-2064
-3395
-8099

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4185
SELECT CAST( 41 * col0 + + tab2.col1 AS SIGNED ) AS col2 FROM tab2
----
318
3256
3257

skipif mysql # not compatible
query I rowsort label-4185
SELECT CAST ( 41 * col0 + + tab2.col1 AS INTEGER ) AS col2 FROM tab2
----
318
3256
3257

query I rowsort
SELECT ALL 29 * + tab2.col1 + + tab2.col2 + - col1 FROM tab2
----
1678
514
895

onlyif mysql # use DIV operator for integer division
query I rowsort label-4187
SELECT cor0.col1 DIV + cor0.col1 col0 FROM tab2 AS cor0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4187
SELECT cor0.col1 / + cor0.col1 col0 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT + - 83 * col0 FROM tab1 AS cor0
----
-249
-5312
-6640

query I rowsort
SELECT DISTINCT - 34 + - cor0.col2 * + 83 AS col0 FROM tab0 AS cor0
----
-117
-2773
-6840

query I rowsort
SELECT DISTINCT - + col0 * col2 * cor0.col2 FROM tab0 AS cor0
----
-26136
-35
-598436

query I rowsort
SELECT ALL 16 + + col2 FROM tab0 cor0
----
17
49
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-4192
SELECT cor0.col0 DIV col0 AS col1 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4192
SELECT cor0.col0 / col0 AS col1 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT + - col2 * cor0.col1 AS col0 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT DISTINCT - 3 * col0 FROM tab2 cor0
----
-21
-234
-237

query I rowsort
SELECT ALL + 3 * - col0 FROM tab2 AS cor0
----
-21
-234
-237

query I rowsort
SELECT 24 * col0 AS col1 FROM tab0 AS cor0
----
2136
576
840

query I rowsort
SELECT ALL + - col2 * - col2 + col1 * ( col0 ) AS col2 FROM tab1 AS cor0
----
10256
2994
3889

onlyif mysql # use DIV operator for integer division
query I rowsort label-4198
SELECT DISTINCT + col2 DIV - col1 AS col1 FROM tab2 cor0
----
-2
0

skipif mysql # not compatible
query I rowsort label-4198
SELECT DISTINCT + col2 / - col1 AS col1 FROM tab2 cor0
----
-2
0

query I rowsort
SELECT col0 + + col1 * - 81 FROM tab0 AS cor0
----
-6942
-7282
-7822

query I rowsort
SELECT DISTINCT - col2 * + cor0.col1 AS col2 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT ALL - col0 * + cor0.col1 FROM tab0 cor0
----
-2064
-3395
-8099

query I rowsort
SELECT ALL + col0 * + ( col2 ) + col0 AS col1 FROM tab0
----
70
7387
816

query I rowsort
SELECT DISTINCT + tab1.col0 AS col2 FROM tab1, tab0 AS cor0
----
3
64
80

query I rowsort
SELECT ALL 45 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050

query I rowsort
SELECT col0 * ( + col2 * - col0 ) + col2 * - col2 FROM tab2
----
-158860
-2052
-238602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + col1 * col2 col2 FROM tab0
----
132
2862
7551

query I rowsort
SELECT ALL - col1 * - 9 * 52 - + col1 AS col0 FROM tab2
----
14477
27553
7939

query I rowsort
SELECT ALL - + col1 * + ( + col1 + + cor0.col0 ) FROM tab1 AS cor0
----
-1209
-740
-754

onlyif mysql # use DIV operator for integer division
query I rowsort label-4209
SELECT DISTINCT + cor0.col2 DIV col2 AS col0 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4209
SELECT DISTINCT + cor0.col2 / col2 AS col0 FROM tab1 AS cor0
----
1

query I rowsort
SELECT - tab1.col1 + + ( col0 ) * + col2 AS col1 FROM tab1
----
136
3638
7667

query I rowsort
SELECT DISTINCT tab2.col1 + - 56 FROM tab2, tab0 AS cor0
----
-25
-39
3

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4212
SELECT CAST( cor0.col2 AS SIGNED ) AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8

skipif mysql # not compatible
query I rowsort label-4212
SELECT CAST ( cor0.col2 AS INTEGER ) AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 55 + - col1 + - col2 * col1 col1 FROM tab0 AS cor0
----
-249
-2979
-7608

query I rowsort
SELECT + col0 * col0 + + col0 * + 74 AS col2 FROM tab2 AS cor0
----
11856
12087
567

query I rowsort
SELECT + cor0.col1 + 12 AS col0 FROM tab0 AS cor0
----
103
109
98

query I rowsort
SELECT - ( 89 ) - + col1 * + col0 FROM tab2 AS cor0
----
-1432
-306
-4691

onlyif mysql # use DIV operator for integer division
query I rowsort label-4217
SELECT ALL + 23 DIV col2 + + cor0.col0 * - cor0.col0 AS col2 FROM tab0 AS cor0
----
-1202
-576
-7921

skipif mysql # not compatible
query I rowsort label-4217
SELECT ALL + 23 / col2 + + cor0.col0 * - cor0.col0 AS col2 FROM tab0 AS cor0
----
-1202
-576
-7921

onlyif mysql # use DIV operator for integer division
query I rowsort label-4218
SELECT DISTINCT - col0 * + col2 DIV + col2 FROM tab0 AS cor0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-4218
SELECT DISTINCT - col0 * + col2 / + col2 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT ALL + 24 * - 39 FROM tab0
----
-936
-936
-936

query I rowsort
SELECT ALL - cor0.col2 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba

query I rowsort
SELECT col1 * cor0.col2 - - col2 * - col1 * col2 FROM tab2 AS cor0
----
-21762
-23902
-38350

query I rowsort
SELECT - ( col0 ) + - col2 * 95 + - col1 FROM tab0 AS cor0
----
-227
-3245
-7970

query I rowsort
SELECT + + col0 + 3 * col2 - - 88 FROM tab2 AS cor0
----
176
244
281

query I rowsort
SELECT + 30 + col2 FROM tab2 cor0
----
56
57
68

query I rowsort
SELECT DISTINCT + + col0 + + col1 * cor0.col1 AS col0 FROM tab2 AS cor0
----
3559
368
968

query I rowsort
SELECT ALL - col2 * 98 AS col0 FROM tab2 AS cor0
----
-2548
-2646
-3724

query I rowsort
SELECT ALL - - col0 * ( + cor0.col0 + 61 ) AS col2 FROM tab2 AS cor0
----
10842
11060
476

query I rowsort
SELECT - + 76 AS col0 FROM tab2 AS cor0
----
-76
-76
-76

query I rowsort
SELECT ALL + 21 AS col1 FROM tab0 AS cor0
----
21
21
21

query I rowsort
SELECT ALL - col0 * col2 - ( col1 ) FROM tab2 cor0
----
-2087
-220
-3019

query I rowsort
SELECT + 20 + col1 * 22 FROM tab1 AS cor0
----
240
306
592

query I rowsort
SELECT DISTINCT - 71 - col0 * 13 FROM tab0 cor0
----
-1228
-383
-526

query I rowsort
SELECT DISTINCT + 70 + col2 FROM tab0 AS cor0
----
103
152
71

query I rowsort
SELECT ALL cor0.col2 - - col2 AS col0 FROM tab1 AS cor0
----
108
114
192

query I rowsort
SELECT DISTINCT + col0 + + col2 AS col2 FROM tab1 cor0
----
121
176
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + col1 col2 FROM tab1 cor0
----
-28
-47
-83

query I rowsort
SELECT ALL col0 * col2 + 6 AS col0 FROM tab1 AS cor0
----
168
3654
7686

query I rowsort
SELECT DISTINCT cor0.col2 + - col1 AS col0 FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT ALL + col0 * + col2 + - 76 FROM tab0 AS cor0
----
-41
716
7222

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + cor0.col2 + col1 col0 FROM tab2 AS cor0
----
-21
33
4

onlyif mysql # use DIV operator for integer division
query I rowsort label-4241
SELECT ALL col2 * col1 + + col0 * cor0.col1 DIV ( + cor0.col0 ) FROM tab2 AS cor0
----
1593
663
868

skipif mysql # not compatible
query I rowsort label-4241
SELECT ALL col2 * col1 + + col0 * cor0.col1 / ( + cor0.col0 ) FROM tab2 AS cor0
----
1593
663
868

query I rowsort
SELECT ALL - - col2 * 38 * - cor0.col2 + col1 AS col1 FROM tab2 AS cor0
----
-25629
-27671
-54855

query I rowsort
SELECT DISTINCT + col0 * - 81 FROM tab1 AS cor0
----
-243
-5184
-6480

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4244
SELECT DISTINCT + cor0.col2 + - CAST( - col2 AS SIGNED ) + - cor0.col0 FROM tab2 AS cor0
----
-26
-3
47

skipif mysql # not compatible
query I rowsort label-4244
SELECT DISTINCT + cor0.col2 + - CAST ( - col2 AS INTEGER ) + - cor0.col0 FROM tab2 AS cor0
----
-26
-3
47

query I rowsort
SELECT DISTINCT col2 + cor0.col0 * col2 FROM tab2 cor0
----
2054
216
3040

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4246
SELECT ALL col1 * + 29 * - cor0.col0 + - col0 * - CAST( col2 AS SIGNED ) col0 FROM tab0 AS cor0
----
-227573
-59064
-98420

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4246
SELECT ALL col1 * + 29 * - cor0.col0 + - col0 * - CAST ( col2 AS INTEGER ) col0 FROM tab0 AS cor0
----
-227573
-59064
-98420

query I rowsort
SELECT - col2 + ( + col0 ) * - col2 * 42 AS col2 FROM tab1 AS cor0
----
-153273
-322656
-6858

query I rowsort
SELECT - + col2 * - col2 * - col0 FROM tab0 AS cor0
----
-26136
-35
-598436

query I rowsort
SELECT + col2 * + 13 FROM tab0 AS cor0
----
1066
13
429

query I rowsort
SELECT DISTINCT + 69 FROM tab0
----
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col2 col2 FROM tab0 AS cor0
----
2838
7462
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-4252
SELECT + 66 DIV col0 FROM tab0 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-4252
SELECT + 66 / col0 FROM tab0 AS cor0
----
0
1
2

query I rowsort
SELECT DISTINCT - col1 * + col2 AS col2 FROM tab0 cor0
----
-2838
-7462
-97

query I rowsort
SELECT 71 * 90 FROM tab1
----
6390
6390
6390

query I rowsort
SELECT - cor1.col0 AS col0 FROM tab0 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4256
SELECT ALL ( + col0 ) * + col2 + col0 DIV 69 AS col1 FROM tab0
----
35
7299
792

skipif mysql # not compatible
query I rowsort label-4256
SELECT ALL ( + col0 ) * + col2 + col0 / 69 AS col1 FROM tab0
----
35
7299
792

query I rowsort
SELECT ALL - 93 AS col1 FROM tab0
----
-93
-93
-93

onlyif mysql # use DIV operator for integer division
query I rowsort label-4258
SELECT ALL + col0 DIV - col2 AS col0 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4258
SELECT ALL + col0 / - col2 AS col0 FROM tab1
----
-1
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4259
SELECT - tab1.col2 * tab1.col2 + + CAST( + col0 AS SIGNED ) DIV - col0 FROM tab1
----
-2917
-3250
-9217

skipif mysql # not compatible
query I rowsort label-4259
SELECT - tab1.col2 * tab1.col2 + + CAST ( + col0 AS INTEGER ) / - col0 FROM tab1
----
-2917
-3250
-9217

query I rowsort
SELECT + 66 AS col1 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 897b6122ac98340b78905f39d81897fc

query I rowsort
SELECT ( + col0 ) * col1 FROM tab1 AS cor0
----
1040
640
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-4262
SELECT DISTINCT + - cor0.col2 + col2 DIV - col2 col1 FROM tab0 AS cor0
----
-2
-34
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4262
SELECT DISTINCT + - cor0.col2 + col2 / - col2 col1 FROM tab0 AS cor0
----
-2
-34
-83

onlyif mysql # use DIV operator for integer division
query I rowsort label-4263
SELECT col0 DIV col2 + + ( cor0.col1 ) AS col0 FROM tab0 AS cor0
----
132
86
92

skipif mysql # not compatible
query I rowsort label-4263
SELECT col0 / col2 + + ( cor0.col1 ) AS col0 FROM tab0 AS cor0
----
132
86
92

query I rowsort
SELECT DISTINCT + 35 * col0 AS col1 FROM tab2 AS cor0
----
245
2730
2765

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4265
SELECT - CAST( cor1.col1 AS SIGNED ) AS col0 FROM tab1, tab1 cor0, tab0 AS cor1
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84

skipif mysql # not compatible
query I rowsort label-4265
SELECT - CAST ( cor1.col1 AS INTEGER ) AS col0 FROM tab1, tab1 cor0, tab0 AS cor1
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84

query I rowsort
SELECT DISTINCT - 22 AS col0 FROM tab1, tab2 AS cor0
----
-22

query I rowsort
SELECT col0 + 58 AS col0 FROM tab1 cor0
----
122
138
61

query I rowsort
SELECT DISTINCT - col2 + + tab2.col2 FROM tab2
----
0

query I rowsort
SELECT + 69 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 2810c3097fe4771e273cfff903357b40

query I rowsort
SELECT - col2 * + col2 * - ( + col0 ) AS col2 FROM tab2 AS cor0
----
114076
5103
52728

query I rowsort
SELECT DISTINCT 67 AS col2 FROM tab0 AS cor0
----
67

query I rowsort
SELECT col1 + 35 AS col2 FROM tab0 AS cor0
----
121
126
132

query I rowsort
SELECT col1 * - col1 + 96 * - cor0.col2 AS col0 FROM tab1 AS cor0
----
-5572
-5860
-9385

query I rowsort
SELECT col2 * ( - col2 ) AS col1 FROM tab1
----
-2916
-3249
-9216

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + col0 * ( col0 ) col1 FROM tab0
----
1226
609
8003

query I rowsort
SELECT - col1 + - col0 + 86 FROM tab0 AS cor0
----
-24
-46
-94

onlyif mysql # use DIV operator for integer division
query I rowsort label-4277
SELECT + + col0 DIV col2 + 66 DIV col1 FROM tab1 AS cor0
----
2
5
7

skipif mysql # not compatible
query I rowsort label-4277
SELECT + + col0 / col2 + 66 / col1 FROM tab1 AS cor0
----
2
5
7

query I rowsort
SELECT - col0 * - 87 + col2 AS col1 FROM tab1 AS cor0
----
315
5625
7056

query I rowsort
SELECT - + ( + col2 ) * col0 FROM tab1 cor0
----
-162
-3648
-7680

query I rowsort
SELECT DISTINCT 76 + + col1 AS col0 FROM tab1 AS cor0
----
102
86
89

query I rowsort
SELECT + ( 98 ) + + col1 FROM tab2 AS cor0
----
115
129
157

query I rowsort
SELECT DISTINCT - - col2 * cor0.col0 + + col2 - cor0.col0 * col1 * + cor0.col1 AS col2 FROM tab2 AS cor0
----
-19791
-269464
-6511

query I rowsort
SELECT + + 35 FROM tab2 AS cor0
----
35
35
35

query I rowsort
SELECT + 35 AS col2 FROM tab2 AS cor0
----
35
35
35

query I rowsort
SELECT + 26 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to ede8226bb7e602e221f9d98345b4da37

query I rowsort
SELECT - 29 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 56a8aa9e4c5d3c934d1853afeb22653e

query I rowsort
SELECT - col1 * - 21 AS col2 FROM tab0
----
1806
1911
2037

query I rowsort
SELECT + ( - 81 ) + - cor0.col0 * + cor0.col2 FROM tab0 cor0
----
-116
-7379
-873

query I rowsort
SELECT ( - 69 ) * - cor0.col0 + ( + col2 * col2 ) AS col1 FROM tab2 AS cor0
----
1212
6058
6895

query I rowsort
SELECT ALL + 85 + ( - cor0.col1 ) * - col2 AS col1 FROM tab0 AS cor0
----
182
2923
7547

query I rowsort
SELECT DISTINCT col2 + col1 * - col0 * ( - col1 ) - col2 * 88 FROM tab0 cor0
----
174633
329228
729875

query I rowsort
SELECT + col1 + col1 * + col1 AS col1 FROM tab1
----
110
182
702

query I rowsort
SELECT ALL col1 - - col1 FROM tab0 cor0
----
172
182
194

query I rowsort
SELECT DISTINCT - - 38 + + col0 * + 13 AS col2 FROM tab1 AS cor0
----
1078
77
870

query I rowsort
SELECT - col1 * 90 FROM tab2
----
-1530
-2790
-5310

query I rowsort
SELECT ALL + ( ( + tab1.col0 ) * + col0 ) + tab1.col2 AS col2 FROM tab1
----
4153
63
6496

query I rowsort
SELECT ALL 81 + col0 * + tab0.col1 AS col1 FROM tab0
----
2145
3476
8180

query I rowsort
SELECT + col2 * - 35 FROM tab2 AS cor0
----
-1330
-910
-945

query I rowsort
SELECT ALL + ( col1 * col2 ) AS col0 FROM tab2
----
1534
646
837

query I rowsort
SELECT + col0 + col0 + + col2 FROM tab0 AS cor0
----
260
71
81

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + - col2 * CAST ( cor0.col2 AS REAL ) FROM tab0 AS cor0
----
-1
-1089
-6724

query I rowsort
SELECT DISTINCT col1 + - 28 * - col0 * col0 FROM tab2 cor0
----
1403
170411
174765

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4303
SELECT ALL + col1 / CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4303
SELECT ALL + col1 / CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + col1 * + 34 + col0 + col2 FROM tab0 AS cor0
----
-2867
-2923
-3262

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + col0 - 45 col0 FROM tab0
----
2019
3350
8054

query I rowsort
SELECT col2 * tab2.col0 - col1 FROM tab2
----
158
1969
2985

query I rowsort
SELECT DISTINCT + cor0.col0 AS col2 FROM tab0 cor0 CROSS JOIN tab2, tab0 AS cor1
----
24
35
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-4308
SELECT - col0 - + ( - col1 + col0 ) DIV - col1 col0 FROM tab0 AS cor0
----
-24
-35
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4308
SELECT - col0 - + ( - col1 + col0 ) / - col1 col0 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT - - col2 + + col1 * - col2 + + col0 FROM tab0 AS cor0
----
-2781
-61
-7291

onlyif mysql # use DIV operator for integer division
query I rowsort label-4310
SELECT col2 DIV 38 - + cor0.col1 FROM tab2 AS cor0
----
-16
-31
-59

skipif mysql # not compatible
query I rowsort label-4310
SELECT col2 / 38 - + cor0.col1 FROM tab2 AS cor0
----
-16
-31
-59

query I rowsort
SELECT + + col2 * - col2 + - col2 + col1 AS col2 FROM tab2 AS cor0
----
-1465
-643
-725

query I rowsort
SELECT col1 * + col2 * - 61 AS col1 FROM tab1
----
-34770
-76128
-85644

query I rowsort
SELECT - cor0.col1 * col2 - - col0 FROM tab0 AS cor0
----
-2814
-62
-7373

query I rowsort
SELECT - + col2 * 75 FROM tab1 AS cor0
----
-4050
-4275
-7200

query I rowsort
SELECT ( 78 ) * cor0.col1 + + ( - 92 + + cor0.col0 ) FROM tab2, tab1 cor0
----
9 values hashing to cc6237a0df1ce3c7e5ea331fcf87400e

query I rowsort
SELECT - cor0.col1 * 33 AS col1 FROM tab2 AS cor0
----
-1023
-1947
-561

query I rowsort
SELECT - 13 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e95f5f4bd0f480397cced5f5e8a23792

query I rowsort
SELECT col0 + + ( + col1 ) * - col0 FROM tab1
----
-576
-75
-960

query I rowsort
SELECT ALL + 25 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 525a55d5ed224a62da65df36731881a7

query I rowsort
SELECT 59 + - ( + col2 ) AS col1 FROM tab2 AS cor0
----
21
32
33

query I rowsort
SELECT DISTINCT col1 + - 4 AS col0 FROM tab2 AS cor0
----
13
27
55

query I rowsort
SELECT tab1.col1 * - col0 + col0 * col1 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 50 * + 62 - + tab1.col0 col1 FROM tab1, tab1 cor0
----
9 values hashing to 9eb820495199309c677e23ebe1d8fc51

query I rowsort
SELECT DISTINCT - col2 * + col1 * col1 FROM tab0
----
-244068
-679042
-9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-4325
SELECT + ( col0 ) + col0 DIV col1 FROM tab1
----
3
70
86

skipif mysql # not compatible
query I rowsort label-4325
SELECT + ( col0 ) + col0 / col1 FROM tab1
----
3
70
86

onlyif mysql # use DIV operator for integer division
query I rowsort label-4326
SELECT col1 DIV 55 + tab0.col2 * - col0 AS col2 FROM tab0
----
-34
-7297
-791

skipif mysql # not compatible
query I rowsort label-4326
SELECT col1 / 55 + tab0.col2 * - col0 AS col2 FROM tab0
----
-34
-7297
-791

query I rowsort
SELECT ALL ( + 73 ) + col2 + - ( + 86 * + col1 ) FROM tab1
----
-2109
-730
-949

query I rowsort
SELECT DISTINCT - 35 + + 74 AS col1 FROM tab2, tab1, tab2 AS cor0
----
39

query I rowsort
SELECT 20 + tab2.col1 AS col0 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 88bffc7890eab78915939fda9a832d89

query I rowsort
SELECT + tab0.col1 * tab0.col1 + col2 FROM tab0
----
7429
8363
9410

query I rowsort
SELECT + ( col0 ) * col1 AS col1 FROM tab0
----
2064
3395
8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 12 col2 FROM tab1, tab1 AS cor0
----
9 values hashing to d4f5a8e032294c3b9342821617800972

query I rowsort
SELECT ALL + 36 AS col2 FROM tab1 AS cor0
----
36
36
36

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4334
SELECT col1 + - cor0.col0 / CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4334
SELECT col1 + - cor0.col0 / CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + ( - cor0.col2 ) * + col0 * 35 FROM tab0 AS cor0
----
-1225
-255430
-27720

query I rowsort
SELECT DISTINCT + 42 * col1 AS col1 FROM tab2 AS cor0
----
1302
2478
714

query I rowsort
SELECT ALL - - 73 + col2 FROM tab1 AS cor0
----
127
130
169

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4338
SELECT CAST( 44 AS SIGNED ) FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 0cc3e52e781e46962291c3060c6ae73b

skipif mysql # not compatible
query I rowsort label-4338
SELECT CAST ( 44 AS INTEGER ) FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 0cc3e52e781e46962291c3060c6ae73b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 90 * col1 col0 FROM tab0 AS cor0
----
7740
8190
8730

query I rowsort
SELECT + ( col1 ) * col2 AS col2 FROM tab0
----
2838
7462
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-4341
SELECT col0 * ( col0 ) DIV col0 AS col1 FROM tab2 AS cor0
----
7
78
79

skipif mysql # not compatible
query I rowsort label-4341
SELECT col0 * ( col0 ) / col0 AS col1 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT + col1 * ( col1 ) FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT + + cor0.col1 * col1 + + 40 FROM tab0 cor0
----
7436
8321
9449

onlyif mysql # use DIV operator for integer division
query I rowsort label-4344
SELECT DISTINCT + col2 * col2 DIV col0 + - col2 AS col2 FROM tab2 cor0
----
-18
-20
77

skipif mysql # not compatible
query I rowsort label-4344
SELECT DISTINCT + col2 * col2 / col0 + - col2 AS col2 FROM tab2 cor0
----
-18
-20
77

query I rowsort
SELECT + - ( + cor0.col2 ) + col1 AS col0 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT ALL + ( + cor0.col2 ) * col1 - ( 69 ) AS col0 FROM tab0 AS cor0
----
2769
28
7393

query I rowsort
SELECT + col2 * - col2 + - col1 AS col2 FROM tab2 AS cor0
----
-1461
-735
-760

onlyif mysql # use DIV operator for integer division
query I rowsort label-4348
SELECT + 27 + - 95 DIV col1 AS col0 FROM tab0 AS cor0
----
26
26
27

skipif mysql # not compatible
query I rowsort label-4348
SELECT + 27 + - 95 / col1 AS col0 FROM tab0 AS cor0
----
26
26
27

query I rowsort
SELECT ALL + + cor0.col1 + col2 AS col1 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT + + 32 + - col1 AS col1 FROM tab0 AS cor0
----
-54
-59
-65

query I rowsort
SELECT + - 76 + + col1 * - col0 FROM tab2 AS cor0
----
-1419
-293
-4678

query I rowsort
SELECT - ( col2 ) * cor0.col0 AS col2 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT + + col0 + + col0 * + 97 AS col0 FROM tab0 AS cor0
----
2352
3430
8722

query I rowsort
SELECT col2 * + cor0.col0 + - col1 AS col2 FROM tab0 AS cor0
----
-62
706
7207

query I rowsort
SELECT + col0 * + col2 + - col0 FROM tab1
----
159
3584
7600

query I rowsort
SELECT - col0 * col0 AS col0 FROM tab0 WHERE ( + col2 * col2 ) = + col0 * col0
----

query I rowsort
SELECT DISTINCT col0 + - col1 FROM tab1 WHERE NOT + col2 >= ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL BETWEEN tab0.col0 * tab0.col2 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab0.col0 * + col2 + - col2 col0 FROM tab0
----
-36
-7380
-825

onlyif mysql # use DIV operator for integer division
query I rowsort label-4360
SELECT DISTINCT tab0.col0 * col0 DIV - col0 FROM tab0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-4360
SELECT DISTINCT tab0.col0 * col0 / - col0 FROM tab0
----
-24
-35
-89

query I rowsort
SELECT ALL + col0 + col0 * + col1 FROM tab2
----
1422
224
4680

onlyif mysql # use DIV operator for integer division
query I rowsort label-4362
SELECT ALL - tab1.col0 + col2 DIV - col2 FROM tab1
----
-4
-65
-81

skipif mysql # not compatible
query I rowsort label-4362
SELECT ALL - tab1.col0 + col2 / - col2 FROM tab1
----
-4
-65
-81

query I rowsort
SELECT col2 * - col1 - col0 FROM tab0
----
-132
-2862
-7551

query I rowsort
SELECT + col2 * + col1 + - tab2.col2 FROM tab2
----
1508
608
810

query I rowsort
SELECT DISTINCT + col1 * col2 + col0 AS col1 FROM tab2
----
1612
725
844

onlyif mysql # use DIV operator for integer division
query I rowsort label-4366
SELECT ALL col1 DIV col2 + col1 FROM tab1
----
10
13
26

skipif mysql # not compatible
query I rowsort label-4366
SELECT ALL col1 / col2 + col1 FROM tab1
----
10
13
26

query I rowsort
SELECT - tab0.col0 AS col1 FROM tab0 WHERE NOT col0 + + col0 IN ( col2 )
----
-24
-35
-89

query I rowsort
SELECT ALL + col0 AS col1 FROM tab2 WHERE + col2 + + col0 >= NULL
----

query III rowsort
SELECT * FROM tab2 WHERE - col0 IN ( + col2 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 > ( + col2 + col2 * col2 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

query I rowsort
SELECT DISTINCT + col2 + + col0 * col2 FROM tab0
----
36
7380
825

onlyif mysql # use DIV operator for integer division
query I rowsort label-4372
SELECT ALL col0 DIV col0 + - col0 FROM tab1
----
-2
-63
-79

skipif mysql # not compatible
query I rowsort label-4372
SELECT ALL col0 / col0 + - col0 FROM tab1
----
-2
-63
-79

onlyif mysql # use DIV operator for integer division
query I rowsort label-4373
SELECT tab1.col2 DIV col1 FROM tab1 WHERE NOT ( col1 ) IN ( col0 * + col2 )
----
2
5
7

skipif mysql # not compatible
query I rowsort label-4373
SELECT tab1.col2 / col1 FROM tab1 WHERE NOT ( col1 ) IN ( col0 * + col2 )
----
2
5
7

query I rowsort
SELECT col0 AS col1 FROM tab1 WHERE NULL BETWEEN - col1 * col0 + col0 + col2 AND + col1 * col1
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( col2 ) = col0 + + col0
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

query I rowsort
SELECT tab1.col2 * + col2 + tab1.col0 + col0 * col2 FROM tab1
----
16976
3081
6961

query I rowsort
SELECT tab1.col1 * col1 - tab1.col1 FROM tab1
----
156
650
90

onlyif mysql # use DIV operator for integer division
query I rowsort label-4378
SELECT + + col1 DIV + cor0.col0 AS col2 FROM tab2 AS cor0
----
0
0
4

skipif mysql # not compatible
query I rowsort label-4378
SELECT + + col1 / + cor0.col0 AS col2 FROM tab2 AS cor0
----
0
0
4

onlyif mysql # use DIV operator for integer division
query I rowsort label-4379
SELECT col2 DIV - col0 + + col2 FROM tab1
----
36
57
95

skipif mysql # not compatible
query I rowsort label-4379
SELECT col2 / - col0 + + col2 FROM tab1
----
36
57
95

query I rowsort
SELECT col1 + - cor0.col2 + + col2 AS col0 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT DISTINCT col1 + tab0.col1 * tab0.col2 + - col2 FROM tab0
----
193
2891
7471

query I rowsort
SELECT tab2.col1 * + col0 * col2 FROM tab2
----
119652
51034
5859

query I rowsort
SELECT ALL col1 + + col0 + - col2 FROM tab0
----
131
77
98

query I rowsort
SELECT + col0 * - col0 * col1 FROM tab1
----
-234
-40960
-83200

query I rowsort
SELECT ALL col1 * + col2 + - tab0.col2 * col1 + col1 FROM tab0
----
86
91
97

query I rowsort
SELECT - col1 - - col1 * col1 AS col0 FROM tab0 AS cor0
----
7310
8190
9312

query I rowsort
SELECT - col0 + + col0 + + col1 AS col2 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT col2 * + cor0.col1 + + col1 - + col2 FROM tab1 AS cor0
----
1165
1376
523

query I rowsort
SELECT cor0.col0 * cor0.col2 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to cf1383d310e5e3e19470e0b8dc064d0c

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( + col1 ) BETWEEN NULL AND ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + col2 + - col0 * + col1 col0 FROM tab0 cor0
----
-2007
-3359
-7928

query I rowsort
SELECT ALL + col0 + 25 FROM tab0
----
114
49
60

query I rowsort
SELECT DISTINCT col2 + + 71 AS col0 FROM tab2
----
109
97
98

query I rowsort
SELECT - col2 + + 88 FROM tab2
----
50
61
62

query I rowsort
SELECT - 37 * + cor0.col2 FROM tab0, tab1 AS cor0
----
9 values hashing to cdb0f9d0ea5da1d07affc20c839dce2a

onlyif mysql # use DIV operator for integer division
query I rowsort label-4396
SELECT - + col2 DIV - col0 AS col0 FROM tab0 cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4396
SELECT - + col2 / - col0 AS col0 FROM tab0 cor0
----
0
0
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4397
SELECT ALL col2 * CAST( col1 AS SIGNED ) AS col2 FROM tab2 cor0
----
1534
646
837

skipif mysql # not compatible
query I rowsort label-4397
SELECT ALL col2 * CAST ( col1 AS INTEGER ) AS col2 FROM tab2 cor0
----
1534
646
837

onlyif mysql # use DIV operator for integer division
query I rowsort label-4398
SELECT DISTINCT col1 DIV - ( - 26 ) + + cor0.col0 AS col1 FROM tab0 AS cor0
----
27
38
92

skipif mysql # not compatible
query I rowsort label-4398
SELECT DISTINCT col1 / - ( - 26 ) + + cor0.col0 AS col1 FROM tab0 AS cor0
----
27
38
92

query I rowsort
SELECT - 53 + cor1.col0 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 2ee0c03a3e0a9ed501275ab335050651

query I rowsort
SELECT DISTINCT - - col1 + + ( 10 ) * + col1 AS col0 FROM tab0 AS cor0
----
1001
1067
946

query I rowsort
SELECT + - col0 - 22 * + 68 AS col1 FROM tab2 AS cor0
----
-1503
-1574
-1575

query I rowsort
SELECT ALL + + col1 * cor0.col2 FROM tab2 AS cor0
----
1534
646
837

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4403
SELECT ALL + - col2 + col2 + + col2 / CAST( NULL AS SIGNED ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4403
SELECT ALL + - col2 + col2 + + col2 / CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab2 cor0, tab0 cor1, tab2, tab2 AS cor2
----
3645 values hashing to 42d854e4c33cb5afd5528228bff9250d

query I rowsort
SELECT - 0 + 54 FROM tab1, tab0 AS cor0, tab0 AS cor1, tab0 AS cor2
----
81 values hashing to c12c2f39593b3ce157086f29d8391c32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( cor0.col0 ) + col1 col1 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT - 63 + + col2 AS col0 FROM tab0 AS cor0
----
-30
-62
19

query I rowsort
SELECT + cor1.col2 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 96 * cor0.col2 col2 FROM tab1 cor0
----
5184
5472
9216

query I rowsort
SELECT + + ( col0 ) * cor0.col0 + ( col2 * - col1 ) AS col0 FROM tab0 cor0
----
-2262
1128
459

query I rowsort
SELECT DISTINCT + col1 * col2 * + col0 FROM tab0 AS cor0
----
3395
664118
68112

query I rowsort
SELECT - - 64 + col0 FROM tab0 AS cor0
----
153
88
99

query I rowsort
SELECT DISTINCT col1 + - cor0.col0 * col2 + - 64 FROM tab2 AS cor0
----
-2033
-222
-3049

onlyif mysql # use DIV operator for integer division
query I rowsort label-4414
SELECT + - col2 * 87 * col2 - col0 DIV cor0.col2 FROM tab1 AS cor0
----
-253692
-282664
-801792

skipif mysql # not compatible
query I rowsort label-4414
SELECT + - col2 * 87 * col2 - col0 / cor0.col2 FROM tab1 AS cor0
----
-253692
-282664
-801792

query I rowsort
SELECT DISTINCT + 18 + col1 FROM tab0 AS cor0
----
104
109
115

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 38 col2 FROM tab0
----
-38
-38
-38

query I rowsort
SELECT ALL - - col0 * col1 AS col2 FROM tab2 cor0
----
1343
217
4602

query I rowsort
SELECT ALL + ( + col1 ) * col1 * col1 AS col1 FROM tab1 AS cor0
----
1000
17576
2197

query I rowsort
SELECT DISTINCT + 74 * cor0.col0 FROM tab2 AS cor0
----
518
5772
5846

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - col0 col2 FROM tab0 cor0
----
-34
-7
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-4421
SELECT ALL ( col2 ) DIV col1 AS col2 FROM tab2 AS cor0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-4421
SELECT ALL ( col2 ) / col1 AS col2 FROM tab2 AS cor0
----
0
0
2

query I rowsort
SELECT DISTINCT + col0 * + col1 + col1 FROM tab0 AS cor0
----
2150
3492
8190

query I rowsort
SELECT + - col1 + col1 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT + col2 + - 22 * col0 FROM tab0 AS cor0
----
-1876
-495
-769

query I rowsort
SELECT + + col2 + - 11 FROM tab2 AS cor0
----
15
16
27

query I rowsort
SELECT DISTINCT - col0 * + ( + cor0.col2 ) + col0 + col2 FROM tab1 AS cor0
----
-105
-3527
-7504

onlyif mysql # use DIV operator for integer division
query I rowsort label-4427
SELECT ALL + col2 DIV ( + col1 ) + - col0 FROM tab2 AS cor0
----
-7
-77
-78

skipif mysql # not compatible
query I rowsort label-4427
SELECT ALL + col2 / ( + col1 ) + - col0 FROM tab2 AS cor0
----
-7
-77
-78

query I rowsort
SELECT - col0 * 89 FROM tab0 AS cor0
----
-2136
-3115
-7921

query I rowsort
SELECT ALL + + col2 * cor0.col1 FROM tab2 cor0
----
1534
646
837

query I rowsort
SELECT DISTINCT - ( 88 ) - - col1 AS col1 FROM tab1 AS cor0
----
-62
-75
-78

query I rowsort
SELECT 78 * - col2 AS col2 FROM tab1 AS cor0
----
-4212
-4446
-7488

onlyif mysql # use DIV operator for integer division
query I rowsort label-4432
SELECT DISTINCT - 78 DIV 21 AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4432
SELECT DISTINCT - 78 / 21 AS col0 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT ALL + ( + 19 ) FROM tab0
----
19
19
19

query I rowsort
SELECT - 19 * 72 FROM tab1 AS cor0
----
-1368
-1368
-1368

query I rowsort
SELECT ALL + ( - col2 ) - col1 AS col2 FROM tab2 AS cor0
----
-55
-58
-85

query I rowsort
SELECT DISTINCT + - cor0.col2 FROM tab2, tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT + cor0.col1 + + cor0.col1 FROM tab2, tab2 AS cor0
----
9 values hashing to bd4e64b4654b9e3f8122f4e1bada2bd0

query I rowsort
SELECT ALL + + col1 + + cor0.col0 * col1 FROM tab2 AS cor0
----
1360
248
4661

query I rowsort
SELECT col2 * + col0 + - col0 * col1 * + col0 AS col0 FROM tab1 AS cor0
----
-37312
-72
-75520

query I rowsort
SELECT + 45 AS col2 FROM tab2, tab0 cor0
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col0 ) + col0 * + cor0.col0 col2 FROM tab0 AS cor0
----
1260
600
8010

query I rowsort
SELECT + ( - cor0.col2 ) FROM tab0 cor0
----
-1
-33
-82

query I rowsort
SELECT col1 + - cor0.col2 * 76 FROM tab1 cor0
----
-4078
-4322
-7283

query I rowsort
SELECT col2 - ( col0 ) FROM tab1 AS cor0
----
-7
16
51

query I rowsort
SELECT ALL col0 * - 87 FROM tab1 AS cor0
----
-261
-5568
-6960

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * col0 col1 FROM tab1 cor0
----
4096
6400
9

query I rowsort
SELECT cor0.col1 + - col1 + col2 * col0 AS col0 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT + - col2 + + 35 FROM tab1 AS cor0
----
-19
-22
-61

query I rowsort
SELECT DISTINCT - + col0 * + cor0.col1 AS col0 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT ALL + col0 * col1 AS col0 FROM tab2 cor0
----
1343
217
4602

query I rowsort
SELECT DISTINCT + + 48 AS col2 FROM tab1, tab2, tab0 AS cor0
----
48

query I rowsort
SELECT col0 * cor0.col0 - col2 FROM tab2 AS cor0
----
22
6058
6203

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( 98 ) * + tab2.col0 col0 FROM tab2, tab2 cor0, tab1 AS cor1
----
27 values hashing to 0066e29d3aa77db7b13590867f4e6e00

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 - - col0 * col2 * - col0 col0 FROM tab1
----
-233415
-432
-614304

query I rowsort
SELECT ALL tab0.col0 + col0 FROM tab0
----
178
48
70

query I rowsort
SELECT ALL - col0 * + col0 * + col1 FROM tab0 AS cor0
----
-118825
-49536
-720811

query I rowsort
SELECT DISTINCT col2 - cor0.col0 FROM tab1 AS cor0
----
-7
16
51

query I rowsort
SELECT cor0.col0 * 26 + - col0 * col2 FROM tab0 AS cor0
----
-168
-4984
875

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * + col2 + col0 col0 FROM tab2 AS cor0
----
1523
736
754

onlyif mysql # use DIV operator for integer division
query I rowsort label-4460
SELECT DISTINCT + - col0 DIV col0 + - col0 - - col2 FROM tab2 cor0
----
-42
-53
19

skipif mysql # not compatible
query I rowsort label-4460
SELECT DISTINCT + - col0 / col0 + - col0 - - col2 FROM tab2 cor0
----
-42
-53
19

query I rowsort
SELECT - cor0.col2 + - 34 AS col0 FROM tab1 AS cor0
----
-130
-88
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - cor1.col1 col0 FROM tab0, tab1 AS cor0, tab1, tab1 AS cor1
----
81 values hashing to d7d3fabcafbed14f0d6ffd37195c971c

query I rowsort
SELECT - 52 * + cor0.col0 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 60346347074ba1da9159ea5d643a1512

query I rowsort
SELECT DISTINCT + tab0.col2 + col1 * col1 * col1 FROM tab0
----
636089
753653
912674

query I rowsort
SELECT DISTINCT tab2.col0 + + 89 * col1 FROM tab2
----
1592
2766
5329

query I rowsort
SELECT col1 + col0 * col2 * 67 + col0 FROM tab1 AS cor0
----
10883
244490
514653

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 + col2 col0 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT + col2 * col2 * + col1 AS col2 FROM tab1
----
119808
32490
75816

query I rowsort
SELECT ALL 44 AS col1 FROM tab0, tab2 cor0
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d

query I rowsort
SELECT + cor0.col1 AS col1 FROM tab2, tab2 AS cor0, tab1, tab0 cor1
----
81 values hashing to a5b6acb471910ea4ad7f31cae3b818f7

query I rowsort
SELECT ALL ( - ( col2 ) ) * col2 AS col1 FROM tab0
----
-1
-1089
-6724

query I rowsort
SELECT - col2 + - 4 FROM tab0 AS cor0
----
-37
-5
-86

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4473
SELECT + CAST( NULL AS SIGNED ) + col1 * + cor0.col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4473
SELECT + CAST ( NULL AS INTEGER ) + col1 * + cor0.col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4474
SELECT - col2 * cor0.col1 + col2 * CAST( NULL AS SIGNED ) * col2 + + 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-4474
SELECT - col2 * cor0.col1 + col2 * CAST ( NULL AS INTEGER ) * col2 + + col0 col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4475
SELECT DISTINCT col1 * col0 + - ( + col1 ) DIV - col2 col2 FROM tab1 AS cor0
----
1040
640
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4475
SELECT DISTINCT col1 * col0 + - ( + col1 ) / - col2 col2 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT ALL + 72 * + col1 FROM tab2 AS cor0
----
1224
2232
4248

query I rowsort
SELECT + cor0.col1 * col0 - + col0 FROM tab0 AS cor0
----
2040
3360
8010

query I rowsort
SELECT 49 FROM tab0, tab2 AS cor0, tab2 cor1
----
27 values hashing to a40d8754a5be3ce2309c61bfd3e00197

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - col0 col1 FROM tab1
----
-162
-3648
-7680

query I rowsort
SELECT - + col2 * - 75 FROM tab0 AS cor0
----
2475
6150
75

onlyif mysql # use DIV operator for integer division
query I rowsort label-4481
SELECT - + col2 * - col2 + col1 DIV - col2 + col0 DIV cor0.col2 FROM tab0 AS cor0
----
-61
1087
6724

skipif mysql # not compatible
query I rowsort label-4481
SELECT - + col2 * - col2 + col1 / - col2 + col0 / cor0.col2 FROM tab0 AS cor0
----
-61
1087
6724

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4482
SELECT DISTINCT - - col2 * CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4482
SELECT DISTINCT - - col2 * CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + col1 + - 25 + + 88 FROM tab1 AS cor0
----
73
76
89

query I rowsort
SELECT col1 * - col1 - col0 AS col1 FROM tab1 AS cor0
----
-164
-249
-679

query I rowsort
SELECT 71 + + cor0.col2 FROM tab2 AS cor0
----
109
97
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-4486
SELECT - col0 - col0 DIV col1 AS col1 FROM tab1 AS cor0
----
-3
-70
-86

skipif mysql # not compatible
query I rowsort label-4486
SELECT - col0 - col0 / col1 AS col1 FROM tab1 AS cor0
----
-3
-70
-86

query I rowsort
SELECT + - 96 AS col1 FROM tab2 AS cor0
----
-96
-96
-96

query I rowsort
SELECT DISTINCT col0 * col0 + - col2 FROM tab2 cor0
----
22
6058
6203

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col1 col1 FROM tab2, tab2 AS cor0
----
17
31
59

query I rowsort
SELECT col1 + - col2 * - 33 + - 78 FROM tab2 AS cor0
----
1193
839
844

query I rowsort
SELECT ALL - + 95 AS col2 FROM tab1 AS cor0
----
-95
-95
-95

query I rowsort
SELECT ALL + 72 * - col1 AS col0 FROM tab2 AS cor0
----
-1224
-2232
-4248

query I rowsort
SELECT DISTINCT + 23 - col1 FROM tab1 AS cor0
----
-3
10
13

query I rowsort
SELECT - col0 * col0 * - 68 AS col2 FROM tab1
----
278528
435200
612

query I rowsort
SELECT DISTINCT - col0 * + 29 FROM tab2 AS cor0
----
-203
-2262
-2291

onlyif mysql # use DIV operator for integer division
query I rowsort label-4496
SELECT + col1 * col2 - - tab2.col2 DIV 43 FROM tab2
----
1534
646
837

skipif mysql # not compatible
query I rowsort label-4496
SELECT + col1 * col2 - - tab2.col2 / 43 FROM tab2
----
1534
646
837

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + tab0.col0 col2 FROM tab0, tab0 AS cor0
----
24
35
89

query I rowsort
SELECT tab2.col1 * + cor0.col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 4079a7bf86eef7fda5333d4a7bc8c08e

query I rowsort
SELECT - col0 * + tab2.col1 AS col2 FROM tab2
----
-1343
-217
-4602

query I rowsort
SELECT DISTINCT 95 FROM tab0, tab2 cor0, tab1 AS cor1
----
95

query I rowsort
SELECT DISTINCT - col0 * - col0 - col2 AS col2 FROM tab0
----
1224
543
7839

query I rowsort
SELECT ALL col1 * tab2.col0 - tab2.col1 FROM tab2
----
1326
186
4543

query I rowsort
SELECT DISTINCT ( col2 ) * - col1 FROM tab1 cor0
----
-1248
-1404
-570

query I rowsort
SELECT cor0.col2 * - col0 AS col2 FROM tab2 cor0
----
-189
-2028
-3002

query I rowsort
SELECT ALL 15 * 95 + + col0 AS col0 FROM tab1 cor0
----
1428
1489
1505

onlyif mysql # use DIV operator for integer division
query I rowsort label-4506
SELECT col2 DIV ( + col0 ) + + col0 FROM tab1
----
21
64
81

skipif mysql # not compatible
query I rowsort label-4506
SELECT col2 / ( + col0 ) + + col0 FROM tab1
----
21
64
81

query I rowsort
SELECT ALL + 42 - + 42 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query IIIIII rowsort
SELECT DISTINCT * FROM tab0, tab0 AS cor0 WHERE NULL >= NULL
----

query I rowsort
SELECT - + col1 * col1 AS col1 FROM tab1 cor0
----
-100
-169
-676

query I rowsort
SELECT DISTINCT + ( col1 ) * + col1 AS col2 FROM tab1
----
100
169
676

query I rowsort
SELECT DISTINCT + tab2.col1 FROM tab2, tab0, tab2 AS cor0, tab1
----
17
31
59

query I rowsort
SELECT DISTINCT - 61 * - 62 FROM tab1
----
3782

query I rowsort
SELECT ALL + 11 AS col1 FROM tab1, tab0 cor0
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4514
SELECT - CAST( + col1 AS SIGNED ) FROM tab0 AS cor0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-4514
SELECT - CAST ( + col1 AS INTEGER ) FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT + 65 + + cor0.col2 AS col0 FROM tab0 AS cor0
----
147
66
98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4516
SELECT ALL + CAST( NULL AS SIGNED ) col0 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4516
SELECT ALL + CAST ( NULL AS INTEGER ) col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 0 AS col1 FROM tab0
----
0
0
0

query I rowsort
SELECT col0 * col2 + + col1 AS col1 FROM tab0
----
132
7389
878

query I rowsort
SELECT col1 * - col0 + tab0.col0 FROM tab0
----
-2040
-3360
-8010

query I rowsort
SELECT - 81 * 85 AS col0 FROM tab1 AS cor0
----
-6885
-6885
-6885

query I rowsort
SELECT 41 * cor0.col2 FROM tab1 AS cor0
----
2214
2337
3936

query I rowsort
SELECT ALL col1 + - col2 * col0 * - cor0.col0 FROM tab0 AS cor0
----
1322
19094
649613

query I rowsort
SELECT + col1 + + col0 * col0 * - col0 + + col2 * col2 FROM tab0
----
-12649
-42777
-698154

query I rowsort
SELECT - 4 + col0 FROM tab2
----
3
74
75

query I rowsort
SELECT ALL + col0 * - col2 + tab1.col2 * col2 + - col2 * col1 * col0 FROM tab1
----
-1458
-36879
-98304

query I rowsort
SELECT DISTINCT - - 28 FROM tab2 cor0
----
28

query I rowsort
SELECT DISTINCT + + col1 + + cor0.col0 * + col0 AS col1 FROM tab0 AS cor0
----
1322
662
8012

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4528
SELECT col2 * - CAST( NULL AS SIGNED ) * - col2 + col0 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4528
SELECT col2 * - CAST ( NULL AS INTEGER ) * - col2 + col0 AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 93 * + cor0.col2 FROM tab0, tab2 AS cor0
----
-2418
-2511
-3534

query I rowsort
SELECT DISTINCT + 54 + - 48 AS col1 FROM tab0, tab0 AS cor0
----
6

query I rowsort
SELECT ALL + col2 + col1 * - col0 FROM tab1
----
-24
-583
-944

query I rowsort
SELECT ALL - + col0 * col1 + col0 AS col2 FROM tab2 cor0
----
-1264
-210
-4524

query I rowsort
SELECT ALL - + col2 + + col0 * col2 * - col2 FROM tab1 AS cor0
----
-207993
-737376
-8802

onlyif mysql # use DIV operator for integer division
query I rowsort label-4534
SELECT DISTINCT col0 + + col2 * col0 DIV - col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4534
SELECT DISTINCT col0 + + col2 * col0 / - col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT + col2 + + 79 * col1 FROM tab0 AS cor0
----
6827
7271
7664

query I rowsort
SELECT - 83 * + col2 AS col0 FROM tab0 AS cor0
----
-2739
-6806
-83

onlyif mysql # use DIV operator for integer division
query I rowsort label-4537
SELECT DISTINCT - ( col0 ) * col0 DIV cor0.col1 FROM tab2 cor0
----
-1
-103
-367

skipif mysql # not compatible
query I rowsort label-4537
SELECT DISTINCT - ( col0 ) * col0 / cor0.col1 FROM tab2 cor0
----
-1
-103
-367

query I rowsort
SELECT - ( + col0 ) + - col0 AS col1 FROM tab1 AS cor0
----
-128
-160
-6

query I rowsort
SELECT ALL cor0.col0 + 98 * + col0 * ( col1 ) AS col0 FROM tab0 AS cor0
----
202296
332745
793791

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4540
SELECT col1 * CAST( - 20 AS SIGNED ) * col2 FROM tab2
----
-12920
-16740
-30680

skipif mysql # not compatible
query I rowsort label-4540
SELECT col1 * CAST ( - 20 AS INTEGER ) * col2 FROM tab2
----
-12920
-16740
-30680

query I rowsort
SELECT DISTINCT 98 AS col0 FROM tab0, tab2 AS cor0
----
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-4542
SELECT DISTINCT - col1 * tab0.col2 DIV col1 AS col2 FROM tab0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-4542
SELECT DISTINCT - col1 * tab0.col2 / col1 AS col2 FROM tab0
----
-1
-33
-82

query I rowsort
SELECT - 6 AS col1 FROM tab2, tab1 cor0
----
9 values hashing to e92b2679faac7be63701967e3f0c0934

query I rowsort
SELECT DISTINCT col2 + + 74 * + col1 + col1 FROM tab1
----
1071
2004
807

query I rowsort
SELECT + col0 * + 5 AS col1 FROM tab1
----
15
320
400

query I rowsort
SELECT col1 - col0 * col1 FROM tab2
----
-1326
-186
-4543

query I rowsort
SELECT DISTINCT + 10 + ( col2 ) * cor0.col0 * + col2 FROM tab0 AS cor0
----
26146
45
598446

query I rowsort
SELECT ALL - + cor0.col0 - col0 * - col1 FROM tab0 AS cor0
----
2040
3360
8010

onlyif mysql # use DIV operator for integer division
query I rowsort label-4549
SELECT DISTINCT - col1 DIV + 70 + col0 AS col2 FROM tab2 AS cor0
----
7
78
79

skipif mysql # not compatible
query I rowsort label-4549
SELECT DISTINCT - col1 / + 70 + col0 AS col2 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT DISTINCT 79 + - col0 AS col1 FROM tab2 AS cor0
----
0
1
72

query I rowsort
SELECT - ( cor0.col1 ) * - 56 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 4605e0b0ad61be5dff86d0f76ba2717d

query I rowsort
SELECT - 51 * col0 AS col0 FROM tab1
----
-153
-3264
-4080

query I rowsort
SELECT - col2 * - 95 AS col1 FROM tab2 AS cor0
----
2470
2565
3610

query I rowsort
SELECT ALL + col1 + col1 * col2 AS col1 FROM tab0
----
194
2924
7553

query I rowsort
SELECT - col0 * col2 + + cor0.col2 - cor0.col2 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT ALL - 61 * col0 FROM tab1 AS cor0
----
-183
-3904
-4880

query I rowsort
SELECT ALL ( + col2 ) * col2 FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT ALL + + 13 + col0 FROM tab2 AS cor0
----
20
91
92

query I rowsort
SELECT + + 29 AS col1 FROM tab2 cor0
----
29
29
29

query I rowsort
SELECT ALL + 88 * + 88 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to d51a353d8920ad09f8ec6408cc7ee8ba

query I rowsort
SELECT DISTINCT - 72 FROM tab1, tab0 cor0
----
-72

query I rowsort
SELECT DISTINCT + - tab2.col1 FROM tab1, tab0, tab1 AS cor0, tab2
----
-17
-31
-59

query I rowsort
SELECT ALL - col2 * ( 73 ) AS col1 FROM tab1 AS cor0
----
-3942
-4161
-7008

query I rowsort
SELECT col1 + + ( + col1 ) * - col0 FROM tab1 AS cor0
----
-1027
-52
-630

query I rowsort
SELECT - + col0 * + 4 + 93 + col1 * col1 AS col2 FROM tab1 AS cor0
----
-58
-63
757

query I rowsort
SELECT + ( - tab2.col1 ) FROM tab2
----
-17
-31
-59

query I rowsort
SELECT DISTINCT - - 8 AS col0 FROM tab2 AS cor0
----
8

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4568
SELECT - CAST( NULL AS SIGNED ) * 90 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4568
SELECT - CAST ( NULL AS INTEGER ) * 90 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 90 AS col2 FROM tab0, tab2 AS cor0
----
90

query I rowsort
SELECT + 62 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 51dd2771d516ceb935483eded78a5fa0

query I rowsort
SELECT ALL + col0 * + col2 + col2 + + ( - col0 ) * - col2 AS col1 FROM tab0 AS cor0
----
14678
1617
71

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4572
SELECT ALL + + CAST( NULL AS SIGNED ) * cor0.col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4572
SELECT ALL + + CAST ( NULL AS INTEGER ) * cor0.col2 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + + ( col1 ) + + col0 AS col0 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT + col2 * cor0.col2 + + col2 FROM tab1 AS cor0
----
2970
3306
9312

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + col2 col2 FROM tab0 cor0
----
171
36
57

query I rowsort
SELECT + + cor0.col1 + col2 * col2 - + 52 FROM tab0 AS cor0
----
1123
46
6763

query I rowsort
SELECT + col2 + col1 - col2 AS col2 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT DISTINCT 37 * - col2 FROM tab0 AS cor0
----
-1221
-3034
-37

query I rowsort
SELECT + cor0.col2 * - cor0.col1 + 59 + + col2 * - col2 FROM tab0 AS cor0
----
-14127
-3868
-39

query I rowsort
SELECT ALL 76 * + col0 + tab1.col0 AS col2 FROM tab1
----
231
4928
6160

query I rowsort
SELECT ALL - 66 + ( + col0 ) + - tab1.col2 * + col1 FROM tab1
----
-1234
-1467
-572

query I rowsort
SELECT DISTINCT - 96 + col1 FROM tab1
----
-70
-83
-86

onlyif mysql # use DIV operator for integer division
query I rowsort label-4583
SELECT + tab2.col1 + + col2 DIV + col1 FROM tab2
----
19
31
59

skipif mysql # not compatible
query I rowsort label-4583
SELECT + tab2.col1 + + col2 / + col1 FROM tab2
----
19
31
59

query I rowsort
SELECT ALL col1 - - tab1.col0 * + col2 FROM tab1
----
188
3658
7693

query I rowsort
SELECT ALL 14 * 47 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 302bd757200c9b135f5011c1e3ac698f

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 62 col0 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 4911b1417a3797d23dd8f38b6ed05c1b

onlyif mysql # use DIV operator for integer division
query I rowsort label-4587
SELECT + 21 DIV - col1 + - tab1.col2 col0 FROM tab1
----
-54
-59
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4587
SELECT + 21 / - col1 + - tab1.col2 col0 FROM tab1
----
-54
-59
-97

query I rowsort
SELECT - cor0.col2 * - 79 * - ( col2 ) + + col2 * - col0 AS col1 FROM tab0 AS cor0
----
-114
-538494
-86823

query I rowsort
SELECT 39 * tab2.col0 AS col0 FROM tab2
----
273
3042
3081

query I rowsort
SELECT - tab0.col0 * - col2 FROM tab0
----
35
7298
792

query I rowsort
SELECT + col1 * - 25 * col1 - - col2 AS col0 FROM tab2 AS cor0
----
-23998
-7187
-86999

query I rowsort
SELECT col0 + + 70 FROM tab0 AS cor0
----
105
159
94

query I rowsort
SELECT DISTINCT + + col0 + col2 * - 99 AS col1 FROM tab2 AS cor0
----
-2496
-2666
-3683

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4594
SELECT + col0 * CAST( NULL AS DECIMAL ) - + 95 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4594
SELECT + col0 * CAST ( NULL AS REAL ) - + 95 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col0 + ( col0 + col0 ) col2 FROM tab0 AS cor0
----
105
267
72

query I rowsort
SELECT - col2 * 11 + col2 * + col2 FROM tab1 AS cor0
----
2322
2622
8160

onlyif mysql # use DIV operator for integer division
query I rowsort label-4597
SELECT ALL - col2 DIV + cor0.col0 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4597
SELECT ALL - col2 / + cor0.col0 FROM tab0 AS cor0
----
-1
0
0

query I rowsort
SELECT DISTINCT - 80 AS col2 FROM tab2
----
-80

query I rowsort
SELECT 3 * tab0.col1 - tab0.col0 * - col0 FROM tab0
----
1516
8194
834

query I rowsort
SELECT ALL tab1.col2 AS col2 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT - ( + col1 ) * col0 FROM tab2 cor0
----
-1343
-217
-4602

query I rowsort
SELECT - col2 + col0 AS col2 FROM tab2 cor0
----
-20
41
52

query I rowsort
SELECT - ( col0 ) + - col2 AS col1 FROM tab1 AS cor0
----
-121
-176
-57

query I rowsort
SELECT + - 74 * - cor0.col1 FROM tab1 AS cor0
----
1924
740
962

query I rowsort
SELECT 38 + + 57 FROM tab0 AS cor0
----
95
95
95

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4606
SELECT + - CAST( + ( - col1 ) AS SIGNED ) * + col1 FROM tab2 AS cor0
----
289
3481
961

skipif mysql # not compatible
query I rowsort label-4606
SELECT + - CAST ( + ( - col1 ) AS INTEGER ) * + col1 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT + + cor0.col0 * + col1 AS col1 FROM tab1 AS cor0
----
1040
640
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - 33 col2 FROM tab1
----
-1782
-1881
-3168

query I rowsort
SELECT DISTINCT tab0.col2 * 9 AS col1 FROM tab0
----
297
738
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-4610
SELECT ALL col0 DIV + tab1.col1 col1 FROM tab1
----
0
6
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4610
SELECT ALL col0 / + tab1.col1 col1 FROM tab1
----
0
6
6

query I rowsort
SELECT ALL ( 39 ) FROM tab0
----
39
39
39

query I rowsort
SELECT ALL 84 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to cadd876c26338fc58b9297e74fc324d8

query I rowsort
SELECT ALL - ( - col0 ) * cor0.col1 AS col1 FROM tab0 cor0
----
2064
3395
8099

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4614
SELECT + CAST( col1 AS SIGNED ) + - col2 FROM tab2 AS cor0
----
-21
33
4

skipif mysql # not compatible
query I rowsort label-4614
SELECT + CAST ( col1 AS INTEGER ) + - col2 FROM tab2 AS cor0
----
-21
33
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * - col2 * col1 col1 FROM tab0
----
3395
664118
68112

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4616
SELECT DISTINCT col2 / CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4616
SELECT DISTINCT col2 / CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL

query I rowsort
SELECT + cor0.col2 * cor0.col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 16ae0e1090cb09b93854a4788f17716b

query I rowsort
SELECT DISTINCT - 93 + col1 * - col2 FROM tab0 AS cor0
----
-190
-2931
-7555

query I rowsort
SELECT DISTINCT 70 * + cor0.col0 FROM tab2 AS cor0
----
490
5460
5530

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 36 col0 FROM tab1 AS cor0
----
36

query I rowsort
SELECT DISTINCT + + 75 * + col1 + - col2 FROM tab0 AS cor0
----
6417
6743
7274

query I rowsort
SELECT + 66 - - 94 AS col0 FROM tab1 AS cor0
----
160
160
160

query I rowsort
SELECT ALL - 99 * - cor0.col1 FROM tab2 AS cor0
----
1683
3069
5841

query I rowsort
SELECT DISTINCT + 68 + - cor1.col2 AS col1 FROM tab0, tab1 AS cor0 CROSS JOIN tab2, tab2 AS cor1
----
30
41
42

query I rowsort
SELECT col1 * + ( + col0 ) + + col0 * + col1 AS col2 FROM tab1 AS cor0
----
1280
156
2080

query I rowsort
SELECT + 85 * ( + col1 + - 44 ) FROM tab2 AS cor0
----
-1105
-2295
1275

query I rowsort
SELECT ALL - ( + cor0.col0 ) AS col2 FROM tab1 AS cor0
----
-3
-64
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - 84 ) * col1 col2 FROM tab2 AS cor0
----
-1428
-2604
-4956

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4629
SELECT ALL + cor0.col1 + col2 * + cor0.col2 / CAST( NULL AS SIGNED ) + 70 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4629
SELECT ALL + cor0.col1 + col2 * + cor0.col2 / CAST ( NULL AS INTEGER ) + 70 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - 95 + + col1 + - cor0.col0 FROM tab2 AS cor0
----
-114
-157
-71

onlyif mysql # use DIV operator for integer division
query I rowsort label-4631
SELECT DISTINCT - cor0.col0 + 4 DIV + col1 AS col1 FROM tab1 AS cor0
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-4631
SELECT DISTINCT - cor0.col0 + 4 / + col1 AS col1 FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT col2 * - col1 + col2 FROM tab1 AS cor0
----
-1152
-1350
-513

query I rowsort
SELECT DISTINCT col1 * cor0.col2 + cor0.col2 FROM tab2 AS cor0
----
1560
684
864

query I rowsort
SELECT DISTINCT + col2 * col2 + col1 AS col2 FROM tab0 AS cor0
----
1175
6815
98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4635
SELECT ALL - CAST( NULL AS DECIMAL ) + - col2 * + cor0.col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4635
SELECT ALL - CAST ( NULL AS REAL ) + - col2 * + cor0.col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 + - col0 * 48 FROM tab2 AS cor0
----
-305
-3685
-3775

skipif mysql # not compatible
query I rowsort
SELECT + col0 * col2 + - CAST ( - col0 AS REAL ) AS col2 FROM tab0 AS cor0
----
70
7387
816

query I rowsort
SELECT DISTINCT + - 90 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-90

query I rowsort
SELECT DISTINCT tab2.col1 * 44 FROM tab2, tab0 AS cor0
----
1364
2596
748

query I rowsort
SELECT DISTINCT + cor0.col0 + + col0 FROM tab1 AS cor0
----
128
160
6

query I rowsort
SELECT ALL - + 83 FROM tab1 AS cor0
----
-83
-83
-83

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4642
SELECT - 18 * cor0.col2 + CAST( NULL AS SIGNED ) col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4642
SELECT - 18 * cor0.col2 + CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - - col0 * + col1 + col0 * - col2 AS col2 FROM tab0 AS cor0
----
1272
3360
801

query I rowsort
SELECT ALL + - cor0.col2 + col2 * ( 50 ) AS col0 FROM tab0 AS cor0
----
1617
4018
49

query I rowsort
SELECT ALL - + col1 + col2 AS col1 FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT + + 9 + - col2 FROM tab2 AS cor0
----
-17
-18
-29

query I rowsort
SELECT DISTINCT + + col1 * + col0 + col2 FROM tab0 AS cor0
----
2097
3396
8181

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * col2 - 81 col1 FROM tab0 AS cor0
----
-1170
-6805
-82

query I rowsort
SELECT ALL - cor0.col1 * col0 + cor0.col1 FROM tab1 AS cor0
----
-1027
-52
-630

onlyif mysql # use DIV operator for integer division
query I rowsort label-4650
SELECT + col2 + 69 DIV - ( col1 * col0 ) FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-4650
SELECT + col2 + 69 / - ( col1 * col0 ) FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT DISTINCT + col2 + 86 * + 51 AS col0 FROM tab0 AS cor0
----
4387
4419
4468

query I rowsort
SELECT DISTINCT + cor0.col2 + - 19 FROM tab2 AS cor0
----
19
7
8

query I rowsort
SELECT ALL + - col2 * + ( - cor0.col0 ) - col1 AS col2 FROM tab0 AS cor0
----
-62
706
7207

onlyif mysql # use DIV operator for integer division
query I rowsort label-4654
SELECT ALL cor0.col1 DIV + col1 + col2 FROM tab1 AS cor0
----
55
58
97

skipif mysql # not compatible
query I rowsort label-4654
SELECT ALL cor0.col1 / + col1 + col2 FROM tab1 AS cor0
----
55
58
97

query I rowsort
SELECT ALL + + col2 + + col2 AS col1 FROM tab2 AS cor0
----
52
54
76

query I rowsort
SELECT DISTINCT - col2 * + 42 FROM tab2 AS cor0
----
-1092
-1134
-1596

query I rowsort
SELECT DISTINCT col1 * cor0.col2 * - cor0.col1 AS col1 FROM tab0 cor0
----
-244068
-679042
-9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-4658
SELECT DISTINCT - col1 DIV - cor0.col1 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4658
SELECT DISTINCT - col1 / - cor0.col1 FROM tab0 AS cor0
----
1

query I rowsort
SELECT ALL + - col1 * col0 - 52 * col0 AS col2 FROM tab1 AS cor0
----
-234
-3968
-5200

query I rowsort
SELECT + cor0.col0 + 79 FROM tab1 AS cor0
----
143
159
82

query I rowsort
SELECT DISTINCT col0 + col1 * + col1 AS col1 FROM tab2 AS cor0
----
3559
368
968

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * col0 + + col2 col0 FROM tab1 AS cor0
----
-24
-583
-944

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + cor0.col2 * col1 col2 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT ( + col2 ) - + col1 FROM tab0
----
-53
-9
-96

query I rowsort
SELECT - col0 * tab2.col2 * - col1 + - col2 FROM tab2
----
119626
50996
5832

query I rowsort
SELECT col2 - col0 AS col0 FROM tab0
----
-34
-7
9

query I rowsort
SELECT DISTINCT + col2 * + col1 * col1 + - col0 * + col1 AS col2 FROM tab0
----
242004
6014
670943

query I rowsort
SELECT + + cor0.col2 * col1 AS col1 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT DISTINCT + + col2 * + 32 FROM tab2 AS cor0
----
1216
832
864

query I rowsort
SELECT ALL + cor1.col1 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775

query I rowsort
SELECT DISTINCT - - cor0.col2 * col1 + - cor0.col0 FROM tab0 AS cor0
----
2814
62
7373

query I rowsort
SELECT ALL + + 71 * + col2 AS col2 FROM tab0 AS cor0
----
2343
5822
71

onlyif mysql # use DIV operator for integer division
query I rowsort label-4673
SELECT ALL - cor0.col1 DIV col2 AS col1 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4673
SELECT ALL - cor0.col1 / col2 AS col1 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT 84 FROM tab1, tab0, tab1 AS cor0
----
84

query I rowsort
SELECT + col0 * col2 * 26 AS col1 FROM tab1
----
199680
4212
94848

query I rowsort
SELECT DISTINCT + col0 * + col1 + - col0 FROM tab1
----
576
75
960

query I rowsort
SELECT - - 42 + + cor0.col1 AS col2 FROM tab2 AS cor0
----
101
59
73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 50 col0 FROM tab1 cor0
----
50
50
50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 60 - + col2 * col2 col0 FROM tab1 AS cor0
----
-2856
-3189
-9156

onlyif mysql # use DIV operator for integer division
query I rowsort label-4680
SELECT + col2 DIV col0 + + col1 AS col2 FROM tab0 AS cor0
----
87
91
97

skipif mysql # not compatible
query I rowsort label-4680
SELECT + col2 / col0 + + col1 AS col2 FROM tab0 AS cor0
----
87
91
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-4681
SELECT col2 DIV + col1 + + col0 * - col2 AS col0 FROM tab0 AS cor0
----
-35
-7298
-792

skipif mysql # not compatible
query I rowsort label-4681
SELECT col2 / + col1 + + col0 * - col2 AS col0 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT + 25 + - col1 + 55 * col1 * col2 AS col0 FROM tab2 AS cor0
----
35538
46029
84336

onlyif mysql # use DIV operator for integer division
query I rowsort label-4683
SELECT DISTINCT col2 DIV + col1 AS col0 FROM tab2 AS cor0
----
0
2

skipif mysql # not compatible
query I rowsort label-4683
SELECT DISTINCT col2 / + col1 AS col0 FROM tab2 AS cor0
----
0
2

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4684
SELECT - CAST( NULL AS SIGNED ) * col0 - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4684
SELECT - CAST ( NULL AS INTEGER ) * col0 - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4685
SELECT tab2.col1 * + 76 * + col2 + - col2 DIV tab2.col0 AS col1 FROM tab2
----
116584
49096
63609

skipif mysql # not compatible
query I rowsort label-4685
SELECT tab2.col1 * + 76 * + col2 + - col2 / tab2.col0 AS col1 FROM tab2
----
116584
49096
63609

onlyif mysql # use DIV operator for integer division
query I rowsort label-4686
SELECT - col0 * + ( cor0.col2 ) - col2 DIV col2 FROM tab1 AS cor0
----
-163
-3649
-7681

skipif mysql # not compatible
query I rowsort label-4686
SELECT - col0 * + ( cor0.col2 ) - col2 / col2 FROM tab1 AS cor0
----
-163
-3649
-7681

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 13 col0 FROM tab2
----
-13
-13
-13

query I rowsort
SELECT - 15 * - col1 FROM tab2
----
255
465
885

query I rowsort
SELECT DISTINCT + ( col2 ) + col0 * col2 AS col1 FROM tab0
----
36
7380
825

onlyif mysql # use DIV operator for integer division
query I rowsort label-4690
SELECT 35 DIV + 31 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4690
SELECT 35 / + 31 FROM tab1
----
1
1
1

query I rowsort
SELECT tab2.col1 * 81 FROM tab2
----
1377
2511
4779

query I rowsort
SELECT ( - col1 ) * col1 * col0 FROM tab0
----
-177504
-329315
-737009

query I rowsort
SELECT 29 AS col0 FROM tab2
----
29
29
29

query I rowsort
SELECT - ( col1 ) + col0 * - col1 FROM tab1
----
-104
-1053
-650

query I rowsort
SELECT DISTINCT - 1 + col0 * + col0 AS col0 FROM tab1 AS cor0
----
4095
6399
8

query I rowsort
SELECT - - col2 * ( col1 ) - col2 * col1 * - col1 AS col2 FROM tab1 AS cor0
----
17472
37908
6270

query I rowsort
SELECT DISTINCT + col2 * - col1 - cor0.col2 AS col2 FROM tab2 AS cor0
----
-1560
-684
-864

onlyif mysql # use DIV operator for integer division
query I rowsort label-4698
SELECT - 37 DIV + col0 + col0 FROM tab2 AS cor0
----
2
78
79

skipif mysql # not compatible
query I rowsort label-4698
SELECT - 37 / + col0 + col0 FROM tab2 AS cor0
----
2
78
79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4699
SELECT + CAST( NULL AS DECIMAL ) + - 17 + col1 * cor0.col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4699
SELECT + CAST ( NULL AS REAL ) + - 17 + col1 * cor0.col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + ( + col0 ) * cor0.col0 FROM tab2 AS cor0
----
49
6084
6241

onlyif mysql # use DIV operator for integer division
query I rowsort label-4701
SELECT DISTINCT + + 0 DIV col2 col2 FROM tab1 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4701
SELECT DISTINCT + + 0 / col2 col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT - col0 * col2 + col2 AS col1 FROM tab0
----
-34
-7216
-759

query I rowsort
SELECT tab0.col0 * col0 - col0 AS col1 FROM tab0
----
1190
552
7832

query IIIIIIIII rowsort
SELECT * FROM tab2, tab0, tab1 AS cor0 WHERE NOT NULL > NULL
----

query I rowsort
SELECT ALL + - 83 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 77a48ad722db122f51d5ef36604ad843

query I rowsort
SELECT ALL 95 + - col1 FROM tab1 AS cor0
----
69
82
85

query I rowsort
SELECT 48 * - col0 FROM tab2 AS cor0
----
-336
-3744
-3792

query I rowsort
SELECT ALL - col1 + - col0 AS col1 FROM tab0 AS cor0
----
-110
-132
-180

query I rowsort
SELECT - col0 + - ( col1 ) * col0 AS col2 FROM tab1 AS cor0
----
-1120
-704
-81

query I rowsort
SELECT + col1 * + col2 * col1 FROM tab0 AS cor0
----
244068
679042
9409

query I rowsort
SELECT col1 * + 6 FROM tab1 AS cor0
----
156
60
78

query I rowsort
SELECT ALL + col2 + - 69 * col0 AS col1 FROM tab0 AS cor0
----
-1623
-2414
-6059

query I rowsort
SELECT + col0 * - 99 FROM tab1 AS cor0
----
-297
-6336
-7920

query IIIIII rowsort
SELECT ALL * FROM tab1, tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT ALL col0 AS col1 FROM tab1 AS cor0 WHERE NOT col1 > NULL OR NULL <> col0 / col0
----

query I rowsort
SELECT ALL tab0.col0 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT ALL + col0 + - col0 * col2 * - col0 FROM tab1 AS cor0
----
233536
489
614480

query I rowsort
SELECT DISTINCT + col1 * col0 + col2 AS col0 FROM tab2 AS cor0
----
1381
244
4628

query I rowsort
SELECT DISTINCT - col2 - + col0 * + cor0.col1 AS col2 FROM tab2 AS cor0
----
-1381
-244
-4628

query I rowsort
SELECT ALL - - col1 * + col0 - col1 FROM tab0 AS cor0
----
1978
3298
8008

query IIIIIIIII rowsort
SELECT * FROM tab1, tab0, tab0 AS cor0 WHERE NOT NULL > NULL
----

query I rowsort
SELECT - 11 * col1 + + col1 * col2 AS col2 FROM tab0 cor0
----
-970
1892
6461

query I rowsort
SELECT + - 5 FROM tab2 cor0
----
-5
-5
-5

query I rowsort
SELECT + - 2 + col2 FROM tab0 cor0
----
-1
31
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-4725
SELECT DISTINCT - col0 * col2 + - col0 DIV col2 AS col2 FROM tab0 AS cor0
----
-70
-7299
-792

skipif mysql # not compatible
query I rowsort label-4725
SELECT DISTINCT - col0 * col2 + - col0 / col2 AS col2 FROM tab0 AS cor0
----
-70
-7299
-792

query I rowsort
SELECT + + ( col1 ) * col0 + col2 * - col1 FROM tab2 AS cor0
----
-620
3068
697

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 * col1 + cor0.col1 col2 FROM tab2 AS cor0
----
306
3540
992

query I rowsort
SELECT col1 * col2 * - col2 + - col1 * + col1 FROM tab1
----
-119977
-32590
-76492

query I rowsort
SELECT ALL + 86 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 36 col2 FROM tab2
----
-36
-36
-36

query I rowsort
SELECT - - col2 * + col2 + + col0 FROM tab2 cor0
----
1523
736
754

query I rowsort
SELECT 97 * - tab1.col2 * - col1 FROM tab1
----
121056
136188
55290

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL NOT IN ( + col1 ) ) AND NULL < col1
----

query I rowsort
SELECT - 10 FROM tab2, tab1 cor0
----
9 values hashing to f68f33032846e21ee6b2c668fc10355e

query I rowsort
SELECT DISTINCT - + 83 * col1 FROM tab1 AS cor0
----
-1079
-2158
-830

query I rowsort
SELECT DISTINCT - - ( col0 ) + + 92 AS col2 FROM tab1 cor0
----
156
172
95

query I rowsort
SELECT 13 FROM tab0 cor0
----
13
13
13

onlyif mysql # use DIV operator for integer division
query I rowsort label-4738
SELECT ALL - col1 DIV - col0 AS col1 FROM tab2 AS cor0
----
0
0
4

skipif mysql # not compatible
query I rowsort label-4738
SELECT ALL - col1 / - col0 AS col1 FROM tab2 AS cor0
----
0
0
4

query I rowsort
SELECT DISTINCT + col0 * + 1 * - col1 AS col0 FROM tab2
----
-1343
-217
-4602

query I rowsort
SELECT col0 + - col0 * col0 AS col1 FROM tab1
----
-4032
-6
-6320

query I rowsort
SELECT - tab0.col0 - + col0 * - col1 AS col0 FROM tab0
----
2040
3360
8010

onlyif mysql # use DIV operator for integer division
query I rowsort label-4742
SELECT ( - 2 * col0 ) - tab1.col1 DIV tab1.col2 FROM tab1
----
-128
-160
-6

skipif mysql # not compatible
query I rowsort label-4742
SELECT ( - 2 * col0 ) - tab1.col1 / tab1.col2 FROM tab1
----
-128
-160
-6

query I rowsort
SELECT - col0 + ( - col0 + col0 ) AS col2 FROM tab0
----
-24
-35
-89

query I rowsort
SELECT DISTINCT + col2 + tab0.col1 + col1 AS col1 FROM tab0
----
195
205
264

query I rowsort
SELECT 90 + - 69 * col0 FROM tab1
----
-117
-4326
-5430

query I rowsort
SELECT DISTINCT col1 + 85 * - col0 FROM tab0
----
-1954
-2878
-7474

query I rowsort
SELECT - ( + col0 ) * ( + col2 ) AS col2 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT + 21 AS col0 FROM tab1 AS cor0
----
21
21
21

query I rowsort
SELECT ALL - cor0.col0 * - col0 + 52 - col0 FROM tab2 AS cor0
----
6058
6214
94

query I rowsort
SELECT DISTINCT - + 79 AS col0 FROM tab2 cor0
----
-79

onlyif mysql # use DIV operator for integer division
query I rowsort label-4751
SELECT ALL cor0.col0 DIV - col2 col1 FROM tab1 AS cor0
----
-1
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4751
SELECT ALL cor0.col0 / - col2 col1 FROM tab1 AS cor0
----
-1
0
0

query I rowsort
SELECT ALL - 94 * col0 FROM tab2 AS cor0
----
-658
-7332
-7426

query I rowsort
SELECT - col2 * col1 + - col0 FROM tab1 cor0
----
-1328
-1407
-634

query I rowsort
SELECT ALL + ( + cor0.col1 ) * 60 FROM tab1 AS cor0
----
1560
600
780

onlyif mysql # use DIV operator for integer division
query I rowsort label-4755
SELECT cor0.col0 + 1 DIV cor0.col0 col0 FROM tab2 AS cor0
----
7
78
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4755
SELECT cor0.col0 + 1 / cor0.col0 col0 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT - col2 + col1 - col1 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT - col2 * + ( + col1 ) FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT cor0.col2 FROM tab0, tab1 AS cor0, tab0 cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT ALL cor0.col0 AS col2 FROM tab0, tab1 cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870

query I rowsort
SELECT ALL - 0 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT ALL + 29 FROM tab2, tab1 AS cor0, tab1 AS cor1, tab2 AS cor2
----
81 values hashing to 40739d223aa019bd2dfe2db99d596302

query I rowsort
SELECT - 72 + cor0.col2 FROM tab0, tab2 AS cor0
----
9 values hashing to d17141049b1d1a84e3f4a4fac74220f0

query I rowsort
SELECT DISTINCT - col1 * col1 * + col2 FROM tab1 AS cor0
----
-16224
-36504
-5700

query I rowsort
SELECT 5 * + 37 AS col2 FROM tab1 AS cor0
----
185
185
185

query I rowsort
SELECT DISTINCT + 6 AS col1 FROM tab0 AS cor0
----
6

query I rowsort
SELECT ALL + ( ( cor0.col0 ) ) FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT ALL 1 AS col2 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT + col2 * + col2 + col0 + 46 AS col0 FROM tab2 cor0
----
1569
782
800

onlyif mysql # use DIV operator for integer division
query I rowsort label-4769
SELECT DISTINCT - col2 DIV col1 + col1 * - 14 col2 FROM tab0 cor0
----
-1204
-1274
-1358

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4769
SELECT DISTINCT - col2 / col1 + col1 * - 14 col2 FROM tab0 cor0
----
-1204
-1274
-1358

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4770
SELECT DISTINCT CAST( col1 AS SIGNED ) + col0 FROM tab2 AS cor0
----
137
38
96

skipif mysql # not compatible
query I rowsort label-4770
SELECT DISTINCT CAST ( col1 AS INTEGER ) + col0 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT DISTINCT - col2 + col0 * + tab1.col2 AS col1 FROM tab1
----
108
3591
7584

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4772
SELECT - col0 * + col2 + + col1 + CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4772
SELECT - col0 * + col2 + + col1 + CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + - ( 25 ) * - col2 AS col2 FROM tab2 cor0
----
650
675
950

query I rowsort
SELECT + + col0 * - 58 + col2 FROM tab2 AS cor0
----
-379
-4498
-4544

onlyif mysql # use DIV operator for integer division
query I rowsort label-4775
SELECT ALL col0 DIV col1 + - col1 AS col0 FROM tab0 AS cor0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-4775
SELECT ALL col0 / col1 + - col1 AS col0 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT DISTINCT + 48 * 41 + cor0.col1 FROM tab2 AS cor0
----
1985
1999
2027

query I rowsort
SELECT ALL 54 * - cor0.col0 + col0 AS col2 FROM tab2 cor0
----
-371
-4134
-4187

query I rowsort
SELECT DISTINCT - + cor0.col1 * - cor0.col0 AS col0 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT + cor0.col0 * col0 + cor0.col1 AS col0 FROM tab1 cor0
----
35
4106
6413

query I rowsort
SELECT ALL - ( + col0 ) * col2 - 61 AS col1 FROM tab2 AS cor0
----
-2089
-250
-3063

query I rowsort
SELECT DISTINCT + col1 * 9 FROM tab0 AS cor0
----
774
819
873

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4782
SELECT DISTINCT - + CAST( NULL AS SIGNED ) + col0 + cor0.col1 AS col1 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4782
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) + col0 + cor0.col1 AS col1 FROM tab0 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + 14 col2 FROM tab2 cor0
----
-64
-65
7

query I rowsort
SELECT DISTINCT 7 * + col1 AS col2 FROM tab2 AS cor0
----
119
217
413

query I rowsort
SELECT ALL - col0 + - 20 AS col2 FROM tab2 AS cor0
----
-27
-98
-99

query I rowsort
SELECT - + col2 * 87 FROM tab1 AS cor0
----
-4698
-4959
-8352

query I rowsort
SELECT ALL - + col2 * + ( col0 ) - - col1 * ( + col2 ) FROM tab1 AS cor0
----
-3078
-6432
1242

query I rowsort
SELECT + 92 * 95 FROM tab1 cor0
----
8740
8740
8740

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 78 col0 FROM tab0 cor0
----
-78

query I rowsort
SELECT DISTINCT + 67 * + cor0.col2 + + 32 FROM tab0 AS cor0
----
2243
5526
99

query I rowsort
SELECT DISTINCT - ( col2 ) * ( + col0 ) FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT DISTINCT tab1.col2 AS col2 FROM tab0, tab1 AS cor0 CROSS JOIN tab1
----
54
57
96

query I rowsort
SELECT + col0 * 38 FROM tab2 AS cor0
----
266
2964
3002

query I rowsort
SELECT DISTINCT + col0 * + 48 FROM tab1 AS cor0
----
144
3072
3840

query I rowsort
SELECT DISTINCT col0 + 89 AS col0 FROM tab2 AS cor0
----
167
168
96

query I rowsort
SELECT DISTINCT 24 FROM tab2, tab1 cor0
----
24

onlyif mysql # use DIV operator for integer division
query I rowsort label-4797
SELECT ALL col1 DIV col0 + col1 FROM tab2 cor0
----
17
35
59

skipif mysql # not compatible
query I rowsort label-4797
SELECT ALL col1 / col0 + col1 FROM tab2 cor0
----
17
35
59

query I rowsort
SELECT ALL + - col1 * col2 * - col2 + col0 FROM tab0 AS cor0
----
132
611973
93678

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4799
SELECT ALL + col1 + - CAST( col0 + col1 AS SIGNED ) FROM tab2 AS cor0
----
-7
-78
-79

skipif mysql # not compatible
query I rowsort label-4799
SELECT ALL + col1 + - CAST ( col0 + col1 AS INTEGER ) FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT DISTINCT - + col1 - + col2 * + col0 FROM tab2 AS cor0
----
-2087
-220
-3019

query I rowsort
SELECT ALL col1 - - tab2.col1 FROM tab2
----
118
34
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-4802
SELECT ALL + + cor0.col1 + + cor0.col2 DIV + col2 FROM tab0 AS cor0
----
87
92
98

skipif mysql # not compatible
query I rowsort label-4802
SELECT ALL + + cor0.col1 + + cor0.col2 / + col2 FROM tab0 AS cor0
----
87
92
98

query I rowsort
SELECT - cor0.col1 + 92 AS col0 FROM tab2 AS cor0
----
33
61
75

query I rowsort
SELECT DISTINCT - col0 * 40 FROM tab1 AS cor0
----
-120
-2560
-3200

query I rowsort
SELECT + col2 + - ( col1 * - col2 ) AS col2 FROM tab0 AS cor0
----
2871
7544
98

query I rowsort
SELECT DISTINCT - col2 * ( - col1 ) + - cor0.col0 AS col1 FROM tab0 AS cor0
----
2814
62
7373

query I rowsort
SELECT ALL col0 * - col0 + col2 + col1 FROM tab2
----
-5999
-6186
9

query I rowsort
SELECT DISTINCT - tab0.col2 * col0 + + 87 * col1 * + 83 AS col0 FROM tab0
----
620214
649813
700402

onlyif mysql # use DIV operator for integer division
query I rowsort label-4809
SELECT tab1.col2 DIV - 16 AS col2 FROM tab1
----
-3
-3
-6

skipif mysql # not compatible
query I rowsort label-4809
SELECT tab1.col2 / - 16 AS col2 FROM tab1
----
-3
-3
-6

query I rowsort
SELECT DISTINCT + col2 * + cor0.col0 * col2 AS col2 FROM tab0 AS cor0
----
26136
35
598436

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col0 * 90 + + cor0.col0 col1 FROM tab1 AS cor0
----
-267
-5696
-7120

query I rowsort
SELECT - cor0.col2 + - cor0.col1 * - col1 * col1 FROM tab1 AS cor0
----
17522
2101
943

query I rowsort
SELECT col2 + 89 * col2 FROM tab0 AS cor0
----
2970
7380
90

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4814
SELECT cor0.col0 * CAST( + col1 AS SIGNED ) FROM tab1 AS cor0
----
1040
640
78

skipif mysql # not compatible
query I rowsort label-4814
SELECT cor0.col0 * CAST ( + col1 AS INTEGER ) FROM tab1 AS cor0
----
1040
640
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-4815
SELECT - + 97 DIV - col0 AS col0 FROM tab1 AS cor0
----
1
1
32

skipif mysql # not compatible
query I rowsort label-4815
SELECT - + 97 / - col0 AS col0 FROM tab1 AS cor0
----
1
1
32

query I rowsort
SELECT - cor0.col2 * - cor0.col1 FROM tab2, tab0 AS cor0
----
9 values hashing to b2e5b025b1c725661248b0f29aaef908

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab1, tab0 AS cor1, tab1 AS cor2, tab1 AS cor3
----
3645 values hashing to 90e25bbdedfdeba1119139dab203aeea

query I rowsort
SELECT + cor0.col0 * - cor1.col1 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ec78515ecc610830fe02f4a5c8d4e4d5

query I rowsort
SELECT 2 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4820
SELECT 34 + + col1 * CAST( NULL AS SIGNED ) * + col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4820
SELECT 34 + + col1 * CAST ( NULL AS INTEGER ) * + col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 57 AS col1 FROM tab1, tab2 AS cor0, tab2 cor1
----
57

query I rowsort
SELECT + col1 * col1 * col1 AS col0 FROM tab2 cor0
----
205379
29791
4913

query I rowsort
SELECT + ( col0 ) + col1 AS col0 FROM tab2 cor0
----
137
38
96

query I rowsort
SELECT col0 + col2 * + 67 AS col2 FROM tab0
----
102
2235
5583

query I rowsort
SELECT col2 * + col2 * - col1 AS col2 FROM tab0
----
-611884
-93654
-97

query I rowsort
SELECT col1 + - col2 * + 17 AS col0 FROM tab0
----
-1303
-475
80

query I rowsort
SELECT ALL ( col1 ) * + 81 FROM tab0 AS cor0
----
6966
7371
7857

query I rowsort
SELECT ALL - - col0 * col1 * 77 FROM tab1 AS cor0
----
49280
6006
80080

onlyif mysql # use DIV operator for integer division
query I rowsort label-4829
SELECT DISTINCT + col0 DIV cor0.col0 AS col0 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4829
SELECT DISTINCT + col0 / cor0.col0 AS col0 FROM tab1 AS cor0
----
1

query I rowsort
SELECT - ( - col0 ) + cor0.col2 AS col0 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT 31 * - 24 AS col2 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to e2993161ff834984eefc1ffa482dd153

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col1 ) * - 49 col2 FROM tab1
----
-1274
-490
-637

onlyif mysql # use DIV operator for integer division
query I rowsort label-4833
SELECT ALL col2 DIV - 7 + col0 FROM tab1 AS cor0
----
-4
56
67

skipif mysql # not compatible
query I rowsort label-4833
SELECT ALL col2 / - 7 + col0 FROM tab1 AS cor0
----
-4
56
67

query I rowsort
SELECT ALL - + col1 * ( col1 ) FROM tab0 cor0
----
-7396
-8281
-9409

query I rowsort
SELECT DISTINCT + 36 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
36

query I rowsort
SELECT DISTINCT tab2.col0 AS col2 FROM tab2, tab0 AS cor0
----
7
78
79

query I rowsort
SELECT ALL tab2.col1 * tab2.col2 AS col0 FROM tab2
----
1534
646
837

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 * - 39 col2 FROM tab0 AS cor0
----
-3354
-3549
-3783

query I rowsort
SELECT + col2 + 3 AS col1 FROM tab2
----
29
30
41

query I rowsort
SELECT DISTINCT - 45 AS col1 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
-45

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4841
SELECT - - col1 * CAST( col2 * - col0 AS SIGNED ) FROM tab0 AS cor0
----
-3395
-664118
-68112

skipif mysql # not compatible
query I rowsort label-4841
SELECT - - col1 * CAST ( col2 * - col0 AS INTEGER ) FROM tab0 AS cor0
----
-3395
-664118
-68112

query I rowsort
SELECT + 67 FROM tab2, tab1 AS cor0
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c

query I rowsort
SELECT - - 91 * col0 FROM tab1 AS cor0
----
273
5824
7280

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4844
SELECT CAST( col1 AS SIGNED ) * col1 FROM tab2
----
289
3481
961

skipif mysql # not compatible
query I rowsort label-4844
SELECT CAST ( col1 AS INTEGER ) * col1 FROM tab2
----
289
3481
961

query I rowsort
SELECT ALL 35 AS col2 FROM tab1
----
35
35
35

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4846
SELECT - - CAST( NULL AS SIGNED ) + col0 AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4846
SELECT - - CAST ( NULL AS INTEGER ) + col0 AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 * + col1 + col1 AS col0 FROM tab1 AS cor0
----
110
182
702

onlyif mysql # use DIV operator for integer division
query I rowsort label-4848
SELECT cor0.col1 * col1 DIV + 2 + 91 FROM tab2 AS cor0
----
1831
235
571

skipif mysql # not compatible
query I rowsort label-4848
SELECT cor0.col1 * col1 / + 2 + 91 FROM tab2 AS cor0
----
1831
235
571

query I rowsort
SELECT col0 * + col2 + cor0.col0 AS col2 FROM tab1 AS cor0
----
165
3712
7760

query I rowsort
SELECT - - col0 * - col1 + - col1 FROM tab1 cor0
----
-104
-1053
-650

query I rowsort
SELECT DISTINCT 99 AS col0 FROM tab0, tab1 AS cor0
----
99

query I rowsort
SELECT col1 + col1 + col2 FROM tab2 AS cor0
----
144
72
89

query I rowsort
SELECT + - col1 + + col1 * - col2 + col0 AS col2 FROM tab2 AS cor0
----
-1515
-584
-861

query I rowsort
SELECT col2 * col2 + col2 FROM tab1 cor0
----
2970
3306
9312

onlyif mysql # use DIV operator for integer division
query I rowsort label-4855
SELECT DISTINCT + col1 - col1 DIV col1 AS col2 FROM tab1 AS cor0
----
12
25
9

skipif mysql # not compatible
query I rowsort label-4855
SELECT DISTINCT + col1 - col1 / col1 AS col2 FROM tab1 AS cor0
----
12
25
9

query I rowsort
SELECT ALL + cor0.col0 * 87 FROM tab2, tab1 cor0
----
9 values hashing to 4d0b0ec86108721922dc078e68ec75d9

query I rowsort
SELECT + cor0.col2 * 83 FROM tab0 AS cor0
----
2739
6806
83

query I rowsort
SELECT DISTINCT 27 * col2 FROM tab1 AS cor0
----
1458
1539
2592

query I rowsort
SELECT DISTINCT col2 * 88 + + col0 * col1 FROM tab1
----
4830
5656
9488

query I rowsort
SELECT DISTINCT - col2 * col0 + - col0 * col1 FROM tab2
----
-406
-4345
-6630

query I rowsort
SELECT - ( - col2 * col1 ) FROM tab1
----
1248
1404
570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + tab1.col0 col1 FROM tab1
----
128
160
6

query I rowsort
SELECT ALL - 67 * + col0 * col1 + - 88 * col1 FROM tab2 AS cor0
----
-17267
-313526
-91477

query I rowsort
SELECT ( + col0 ) AS col0 FROM tab1 cor0
----
3
64
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col2 * 62 col0 FROM tab0
----
2046
5084
62

query I rowsort
SELECT DISTINCT col2 * + cor0.col0 + 92 + + cor0.col1 FROM tab1 AS cor0
----
280
3750
7785

query I rowsort
SELECT DISTINCT + 1 + ( + col2 ) FROM tab1
----
55
58
97

query I rowsort
SELECT DISTINCT col1 + 8 AS col2 FROM tab2
----
25
39
67

query I rowsort
SELECT ALL + 28 * 84 FROM tab0
----
2352
2352
2352

query I rowsort
SELECT tab2.col1 + + cor0.col2 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 67b38587143f8e9874842c3dae179081

query I rowsort
SELECT DISTINCT 60 * - tab2.col0 + col1 FROM tab2
----
-389
-4621
-4723

query I rowsort
SELECT col1 * - ( tab0.col1 ) + tab0.col0 FROM tab0
----
-7372
-8192
-9374

query I rowsort
SELECT DISTINCT + col0 * + 70 - col1 AS col1 FROM tab2 AS cor0
----
459
5401
5513

query I rowsort
SELECT + - col0 - + col2 AS col1 FROM tab0 AS cor0
----
-171
-36
-57

query I rowsort
SELECT ALL - + col1 * + col1 * col2 + + col2 + col2 AS col1 FROM tab2 AS cor0
----
-10906
-25893
-90454

query I rowsort
SELECT DISTINCT 85 * + col1 AS col0 FROM tab2
----
1445
2635
5015

query I rowsort
SELECT DISTINCT + col2 + col2 * 38 + - col2 FROM tab0 AS cor0
----
1254
3116
38

query I rowsort
SELECT ALL + cor0.col1 - col1 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT + col0 + + ( col1 ) * + col2 * + 96 AS col2 FROM tab2 AS cor0
----
147342
62095
80359

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + + col1 col0 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT DISTINCT + col1 - ( - 79 ) AS col2 FROM tab2 AS cor0
----
110
138
96

query I rowsort
SELECT - + col2 * + 62 AS col1 FROM tab2 AS cor0
----
-1612
-1674
-2356

query I rowsort
SELECT ALL + col1 * + cor0.col0 + + 17 AS col0 FROM tab0 AS cor0
----
2081
3412
8116

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - col2 col1 FROM tab0
----
-35
-7298
-792

query I rowsort
SELECT ( cor0.col0 ) * tab0.col2 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to caa3e6469432624a16bd3084f5c6de58

onlyif mysql # use DIV operator for integer division
query I rowsort label-4886
SELECT + col1 + + ( ( tab0.col0 ) ) + + ( col2 ) DIV col0 FROM tab0
----
111
132
180

skipif mysql # not compatible
query I rowsort label-4886
SELECT + col1 + + ( ( tab0.col0 ) ) + + ( col2 ) / col0 FROM tab0
----
111
132
180

onlyif mysql # use DIV operator for integer division
query I rowsort label-4887
SELECT DISTINCT - col0 + + 79 DIV + col1 FROM tab1
----
-57
-74
0

skipif mysql # not compatible
query I rowsort label-4887
SELECT DISTINCT - col0 + + 79 / + col1 FROM tab1
----
-57
-74
0

query I rowsort
SELECT DISTINCT - tab2.col2 * 64 + tab2.col2 FROM tab2
----
-1638
-1701
-2394

query I rowsort
SELECT - + cor0.col0 * + cor0.col0 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0, tab0 AS cor1
----
27 values hashing to 164bdd441d6fbe34592d7280cc7d0af5

query I rowsort
SELECT ALL - 18 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 09afafec657a5e9f082beb6a16ec85de

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * ( + col2 ) - col2 col2 FROM tab0
----
34
7216
759

query I rowsort
SELECT - + cor0.col0 * - cor0.col2 AS col0 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT DISTINCT - - col1 + - col0 * 58 FROM tab2 AS cor0
----
-375
-4465
-4565

query I rowsort
SELECT ALL - col0 * - ( - col2 ) FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT ALL + - col0 + - 10 FROM tab0 cor0
----
-34
-45
-99

query I rowsort
SELECT ALL tab1.col2 + tab1.col1 * 0 FROM tab1
----
54
57
96

query I rowsort
SELECT ( + cor0.col1 ) + - col0 + + col1 * col0 FROM tab1 AS cor0
----
101
586
973

query I rowsort
SELECT ALL + col1 - 12 FROM tab2
----
19
47
5

query I rowsort
SELECT ALL col0 - + tab2.col2 FROM tab2
----
-20
41
52

query I rowsort
SELECT ALL + col0 * 88 FROM tab1 AS cor0
----
264
5632
7040

query I rowsort
SELECT - col2 * ( - col1 ) * col1 FROM tab1
----
16224
36504
5700

onlyif mysql # use DIV operator for integer division
query I rowsort label-4902
SELECT - col2 DIV 60 AS col1 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4902
SELECT - col2 / 60 AS col1 FROM tab1
----
-1
0
0

query I rowsort
SELECT ALL - + col1 * - cor0.col1 AS col2 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT + - 51 - - cor0.col2 AS col2 FROM tab0 AS cor0
----
-18
-50
31

query I rowsort
SELECT ALL + 1 * 79 AS col2 FROM tab2 AS cor0
----
79
79
79

query I rowsort
SELECT DISTINCT - 1 + + col0 * - col0 FROM tab2 AS cor0
----
-50
-6085
-6242

query I rowsort
SELECT - 19 * + ( col1 * col2 ) AS col1 FROM tab1 cor0
----
-10830
-23712
-26676

query I rowsort
SELECT + + ( + col1 ) + col0 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT DISTINCT ( 95 ) AS col1 FROM tab0 AS cor0
----
95

query I rowsort
SELECT + 3 + + col2 + + col2 FROM tab2 cor0
----
55
57
79

query I rowsort
SELECT ALL + 6 * col2 FROM tab2 AS cor0
----
156
162
228

query I rowsort
SELECT + + ( col0 ) * cor0.col2 + col2 * 62 * col0 + + col1 FROM tab0 AS cor0
----
2302
459865
49982

query I rowsort
SELECT - ( + col0 ) + col2 + + col1 AS col2 FROM tab1 cor0
----
29
3
77

query I rowsort
SELECT + col0 * + 17 + col2 + 14 * 23 FROM tab1 AS cor0
----
1467
1778
427

query I rowsort
SELECT DISTINCT - - cor0.col2 * 34 AS col2 FROM tab0 AS cor0
----
1122
2788
34

query I rowsort
SELECT - - ( - col2 ) AS col1 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT + col1 * col0 + col1 * + col0 FROM tab0
----
16198
4128
6790

query I rowsort
SELECT 71 + + col1 AS col0 FROM tab2 AS cor0
----
102
130
88

query I rowsort
SELECT ALL - - col1 + - col2 * col0 AS col0 FROM tab1 AS cor0
----
-136
-3638
-7667

query I rowsort
SELECT ALL col2 + col0 AS col0 FROM tab2 cor0
----
104
117
34

query I rowsort
SELECT DISTINCT + + 52 + col1 * col0 FROM tab2 AS cor0
----
1395
269
4654

onlyif mysql # use DIV operator for integer division
query I rowsort label-4922
SELECT ALL - - col1 DIV cor0.col0 AS col1 FROM tab0 cor0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-4922
SELECT ALL - - col1 / cor0.col0 AS col1 FROM tab0 cor0
----
1
2
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + col2 col2 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT ALL + col2 * col1 + col0 FROM tab1 AS cor0
----
1328
1407
634

onlyif mysql # use DIV operator for integer division
query I rowsort label-4925
SELECT DISTINCT - 19 DIV col1 + col1 * + col0 * col1 FROM tab1 AS cor0
----
13519
2028
6399

skipif mysql # not compatible
query I rowsort label-4925
SELECT DISTINCT - 19 / col1 + col1 * + col0 * col1 FROM tab1 AS cor0
----
13519
2028
6399

query I rowsort
SELECT DISTINCT + col0 * col2 + + col2 AS col0 FROM tab2 cor0
----
2054
216
3040

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + cor0.col2 col2 FROM tab0 AS cor0
----
1
1089
6724

onlyif mysql # use DIV operator for integer division
query I rowsort label-4928
SELECT ALL col2 DIV - cor0.col2 AS col0 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4928
SELECT ALL col2 / - cor0.col2 AS col0 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT - 81 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
-81

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4930
SELECT col1 + + CAST( NULL AS SIGNED ) * + 38 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4930
SELECT col1 + + CAST ( NULL AS INTEGER ) * + 38 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4931
SELECT DISTINCT col1 * - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4931
SELECT DISTINCT col1 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - col0 * ( col0 * col2 ) FROM tab2 AS cor0
----
-1323
-158184
-237158

query I rowsort
SELECT ALL - 32 AS col1 FROM tab1
----
-32
-32
-32

query I rowsort
SELECT DISTINCT ( col0 * - col1 ) AS col0 FROM tab0
----
-2064
-3395
-8099

query I rowsort
SELECT ALL - col0 * col2 + col2 * col0 AS col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4936
SELECT - CAST( + col0 AS SIGNED ) * cor0.col1 FROM tab0 AS cor0
----
-2064
-3395
-8099

skipif mysql # not compatible
query I rowsort label-4936
SELECT - CAST ( + col0 AS INTEGER ) * cor0.col1 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT DISTINCT - + ( cor0.col0 ) + col0 * col0 AS col0 FROM tab2 AS cor0
----
42
6006
6162

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4938
SELECT ALL CAST( 92 AS SIGNED ) + - col0 * - cor0.col2 FROM tab1 AS cor0
----
254
3740
7772

skipif mysql # not compatible
query I rowsort label-4938
SELECT ALL CAST ( 92 AS INTEGER ) + - col0 * - cor0.col2 FROM tab1 AS cor0
----
254
3740
7772

query I rowsort
SELECT - ( - cor1.col2 * - cor1.col0 ) AS col0 FROM tab0, tab2 cor0, tab2 AS cor1
----
27 values hashing to b0121644d0817627bc8036c50f8e780d

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + cor0.col0 * + ( + 21 ) col1 FROM tab1 AS cor0
----
117
1401
1776

query I rowsort
SELECT - 65 * col1 AS col2 FROM tab1 AS cor0
----
-1690
-650
-845

query I rowsort
SELECT - 34 + + cor0.col0 AS col0 FROM tab1 AS cor0
----
-31
30
46

query I rowsort
SELECT DISTINCT + 56 FROM tab1, tab2 AS cor0
----
56

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4944
SELECT CAST( col0 AS SIGNED ) * col1 AS col2 FROM tab0
----
2064
3395
8099

skipif mysql # not compatible
query I rowsort label-4944
SELECT CAST ( col0 AS INTEGER ) * col1 AS col2 FROM tab0
----
2064
3395
8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 40 * + 51 col0 FROM tab1, tab2 AS cor0
----
9 values hashing to bf6b2ff4aa30f503cdef7b05bbc28447

query I rowsort
SELECT DISTINCT col2 + + 43 FROM tab0 AS cor0
----
125
44
76

query I rowsort
SELECT - + col1 + + col1 * + 14 FROM tab0 AS cor0
----
1118
1183
1261

onlyif mysql # use DIV operator for integer division
query I rowsort label-4948
SELECT ALL + + col1 DIV 56 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4948
SELECT ALL + + col1 / 56 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT - + col0 * - ( col1 ) * col2 + + col2 AS col2 FROM tab1 AS cor0
----
36537
4266
99936

query I rowsort
SELECT ALL - col0 * + col1 + - col2 FROM tab1 AS cor0
----
-1136
-132
-697

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4951
SELECT + - col2 - CAST( + cor0.col1 AS SIGNED ) col2 FROM tab1 AS cor0
----
-109
-67
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4951
SELECT + - col2 - CAST ( + cor0.col1 AS INTEGER ) col2 FROM tab1 AS cor0
----
-109
-67
-80

query I rowsort
SELECT DISTINCT 14 FROM tab2, tab2 cor0, tab1 AS cor1
----
14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * ( + col2 ) col2 FROM tab0 AS cor0
----
35
7298
792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 58 col1 FROM tab2, tab0, tab2 AS cor0, tab1
----
81 values hashing to 897f42d096eff3935f4f50603850c23b

query I rowsort
SELECT tab0.col1 + col2 + + col1 FROM tab0
----
195
205
264

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4956
SELECT DISTINCT col0 * - CAST( col1 + - col1 AS SIGNED ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4956
SELECT DISTINCT col0 * - CAST ( col1 + - col1 AS INTEGER ) FROM tab0
----
0

query I rowsort
SELECT DISTINCT - 24 FROM tab1, tab2 AS cor0
----
-24

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4958
SELECT ALL + col1 + CAST( NULL AS SIGNED ) * col2 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4958
SELECT ALL + col1 + CAST ( NULL AS INTEGER ) * col2 AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 * + col2 * 76 + - tab0.col2 FROM tab0
----
510942
75
82731

query I rowsort
SELECT DISTINCT + col1 * col2 + + col2 FROM tab2
----
1560
684
864

onlyif mysql # use DIV operator for integer division
query I rowsort label-4961
SELECT DISTINCT col1 * 11 + - col1 DIV col0 FROM tab2
----
187
337
649

skipif mysql # not compatible
query I rowsort label-4961
SELECT DISTINCT col1 * 11 + - col1 / col0 FROM tab2
----
187
337
649

onlyif mysql # use DIV operator for integer division
query I rowsort label-4962
SELECT col2 DIV + 51 AS col2 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4962
SELECT col2 / + 51 AS col2 FROM tab1
----
1
1
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4963
SELECT + CAST( 79 AS SIGNED ) col2 FROM tab2 cor0
----
79
79
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4963
SELECT + CAST ( 79 AS INTEGER ) col2 FROM tab2 cor0
----
79
79
79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4964
SELECT ( + col0 ) * + col0 - + CAST( - 79 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
1304
655
8000

skipif mysql # not compatible
query I rowsort label-4964
SELECT ( + col0 ) * + col0 - + CAST ( - 79 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
1304
655
8000

query I rowsort
SELECT - + cor0.col0 * cor0.col2 * + 8 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 5d805ca2f1e735b51b8f059026f99690

query I rowsort
SELECT - ( + cor0.col2 * - 46 + 48 ) FROM tab2, tab1 AS cor0
----
9 values hashing to 2f8ba3cb9ee409afd9bca399ce8c3de2

query I rowsort
SELECT ALL - 10 + - cor0.col1 * col2 AS col0 FROM tab2 AS cor0
----
-1544
-656
-847

query I rowsort
SELECT - col0 * - 34 * col0 AS col2 FROM tab0
----
19584
269314
41650

query I rowsort
SELECT ALL + ( tab2.col0 ) AS col2 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

query I rowsort
SELECT 83 * tab0.col0 * + col0 AS col2 FROM tab0
----
101675
47808
657443

query I rowsort
SELECT ALL 74 FROM tab0, tab2 AS cor0
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31

query I rowsort
SELECT ALL + col0 + + tab0.col0 AS col0 FROM tab0
----
178
48
70

query I rowsort
SELECT + col2 * 96 AS col2 FROM tab2 AS cor0
----
2496
2592
3648

query I rowsort
SELECT ALL + 39 * + tab2.col0 FROM tab2
----
273
3042
3081

query I rowsort
SELECT + + 6 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to f1e8f0199f3714ee8fcc24ce0cc3ea04

query I rowsort
SELECT ALL - 1 FROM tab0, tab2 AS cor0, tab2 AS cor1, tab1 AS cor2
----
81 values hashing to f3aaea07874d9328a91c424c0907a688

query I rowsort
SELECT DISTINCT + ( + cor2.col1 ) AS col1 FROM tab0, tab1 AS cor0, tab2 cor1, tab2 AS cor2
----
17
31
59

query I rowsort
SELECT DISTINCT - 67 * + col1 AS col1 FROM tab0 cor0
----
-5762
-6097
-6499

query I rowsort
SELECT cor0.col0 * cor0.col1 - + cor0.col0 AS col1 FROM tab2 cor0
----
1264
210
4524

onlyif mysql # use DIV operator for integer division
query I rowsort label-4980
SELECT + col2 DIV - col2 + cor0.col2 + col1 AS col2 FROM tab0 AS cor0
----
118
172
97

skipif mysql # not compatible
query I rowsort label-4980
SELECT + col2 / - col2 + cor0.col2 + col1 AS col2 FROM tab0 AS cor0
----
118
172
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 + 95 col0 FROM tab2 AS cor0
----
102
173
174

onlyif mysql # use DIV operator for integer division
query I rowsort label-4982
SELECT - - col1 DIV ( col2 ) AS col2 FROM tab0 AS cor0
----
1
2
97

skipif mysql # not compatible
query I rowsort label-4982
SELECT - - col1 / ( col2 ) AS col2 FROM tab0 AS cor0
----
1
2
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-4983
SELECT col2 * col1 DIV CAST( - col2 AS SIGNED ) - - col0 * tab1.col1 FROM tab1
----
1027
52
630

skipif mysql # not compatible
query I rowsort label-4983
SELECT col2 * col1 / CAST ( - col2 AS INTEGER ) - - col0 * tab1.col1 FROM tab1
----
1027
52
630

query I rowsort
SELECT ALL ( col0 ) + - tab1.col0 + + col1 AS col1 FROM tab1
----
10
13
26

query I rowsort
SELECT 66 FROM tab0, tab1 AS cor0, tab0 AS cor1, tab2 AS cor2
----
81 values hashing to dc112f70fecc29a6e605a39541192f43

query I rowsort
SELECT 61 - + col0 AS col0 FROM tab0 AS cor0
----
-28
26
37

query I rowsort
SELECT DISTINCT - col1 + + col1 - 69 AS col0 FROM tab2 cor0
----
-69

query I rowsort
SELECT col1 * - col2 - + 84 * + cor0.col1 FROM tab1 AS cor0
----
-1410
-2340
-3588

onlyif mysql # use DIV operator for integer division
query I rowsort label-4989
SELECT col0 + col2 - + 77 DIV ( col0 * col1 ) FROM tab1 AS cor0
----
121
176
57

skipif mysql # not compatible
query I rowsort label-4989
SELECT col0 + col2 - + 77 / ( col0 * col1 ) FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT ALL + - col2 + col1 * cor0.col1 FROM tab0 AS cor0
----
7363
8199
9408

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - col2 col2 FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT ALL col0 + + col0 * ( + col2 + col1 ) AS col0 FROM tab1 AS cor0
----
243
4352
8800

query I rowsort
SELECT DISTINCT + - 74 - col0 FROM tab2 cor0
----
-152
-153
-81

query I rowsort
SELECT - 59 * col1 * + col0 - 0 * + col0 AS col1 FROM tab1 cor0
----
-37760
-4602
-61360

query I rowsort
SELECT + col0 * col0 + 78 FROM tab2 cor0
----
127
6162
6319

query I rowsort
SELECT DISTINCT + cor0.col0 * 29 AS col1 FROM tab1 AS cor0
----
1856
2320
87

query I rowsort
SELECT ALL col2 * - 75 AS col2 FROM tab2 AS cor0
----
-1950
-2025
-2850

query I rowsort
SELECT ALL + + col2 * - 92 + 35 AS col1 FROM tab1 AS cor0
----
-4933
-5209
-8797

query I rowsort
SELECT + col0 + - 75 AS col1 FROM tab2 AS cor0
----
-68
3
4

query I rowsort
SELECT ALL + col1 * - cor0.col1 AS col2 FROM tab2 AS cor0
----
-289
-3481
-961

query I rowsort
SELECT + col2 + ( col0 ) FROM tab2 cor0
----
104
117
34

query I rowsort
SELECT DISTINCT - + col2 + 68 * col2 AS col0 FROM tab1 cor0
----
3618
3819
6432

onlyif mysql # use DIV operator for integer division
query I rowsort label-5003
SELECT col1 * + ( 64 ) + col1 DIV 98 col1 FROM tab1 AS cor0
----
1664
640
832

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5003
SELECT col1 * + ( 64 ) + col1 / 98 col1 FROM tab1 AS cor0
----
1664
640
832

query I rowsort
SELECT col0 + - col2 * + 57 FROM tab1 AS cor0
----
-3075
-3185
-5392

query I rowsort
SELECT ALL - tab0.col2 - + col1 * + tab0.col1 AS col0 FROM tab0
----
-7429
-8363
-9410

query I rowsort
SELECT ALL col1 + col0 - - col0 * - tab2.col2 AS col2 FROM tab2
----
-151
-1891
-2906

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5007
SELECT ALL CAST( NULL AS SIGNED ) + 66 AS col2 FROM tab0, tab1 AS cor0, tab2 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-5007
SELECT ALL CAST ( NULL AS INTEGER ) + 66 AS col2 FROM tab0, tab1 AS cor0, tab2 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT DISTINCT + 55 + - tab1.col2 AS col2 FROM tab1
----
-2
-41
1

query I rowsort
SELECT DISTINCT 24 + + col0 AS col0 FROM tab0 AS cor0
----
113
48
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-5010
SELECT ALL cor0.col2 DIV 20 + + col1 col0 FROM tab0 AS cor0
----
87
95
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5010
SELECT ALL cor0.col2 / 20 + + col1 col0 FROM tab0 AS cor0
----
87
95
97

query I rowsort
SELECT + ( + cor0.col0 ) + + cor0.col0 AS col1 FROM tab0 AS cor0
----
178
48
70

query I rowsort
SELECT ALL col1 * ( col0 ) * 24 - + col2 FROM tab2 AS cor0
----
110422
32194
5181

query I rowsort
SELECT - 0 * + col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + ( + col1 ) * col0 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT ALL + - 1 + col2 + - col0 FROM tab0 AS cor0
----
-35
-8
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 + col2 col1 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT + ( + col0 ) + - col2 AS col0 FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT ALL - 31 + - ( + col0 ) * col1 FROM tab1 AS cor0
----
-1071
-109
-671

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + col0 col2 FROM tab0 cor0
----
178
48
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 26 col2 FROM tab2 AS cor0
----
-26
-26
-26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab1.col1 col1 FROM tab1, tab2 AS cor0
----
-10
-13
-26

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 DISTINCT ( ( - col0 ) ) AS col2 FROM tab2
----
-7
-78
-79

query I rowsort
SELECT ( col0 + + col2 ) FROM tab2
----
104
117
34

query I rowsort
SELECT DISTINCT - col0 * - col0 + + 79 * 95 - col2 AS col2 FROM tab0 cor0
----
15344
8048
8729

query I rowsort
SELECT 50 * col1 * cor0.col0 FROM tab2 AS cor0
----
10850
230100
67150

query I rowsort
SELECT DISTINCT - col2 * cor0.col2 - + ( - 78 ) AS col1 FROM tab2 AS cor0
----
-1366
-598
-651

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5028
SELECT ALL - CAST( NULL AS SIGNED ) / 39 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5028
SELECT ALL - CAST ( NULL AS INTEGER ) / 39 AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ( + col2 * tab2.col1 ) FROM tab2
----
1534
646
837

query I rowsort
SELECT + ( col2 ) * + col0 * + cor0.col2 AS col2 FROM tab2 cor0
----
114076
5103
52728

query I rowsort
SELECT DISTINCT + ( + col0 ) * + ( col1 + - col1 ) FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL + cor0.col0 * + col2 + + cor0.col2 * - col2 FROM tab0 AS cor0
----
-297
34
574

query I rowsort
SELECT 30 * col0 FROM tab2 AS cor0
----
210
2340
2370

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 94 + col0 col2 FROM tab0 AS cor0
----
118
129
183

query I rowsort
SELECT ALL + ( col0 ) * ( - col0 ) + + cor0.col1 FROM tab2 AS cor0
----
-18
-6025
-6224

query I rowsort
SELECT DISTINCT - + col1 * - col0 AS col1 FROM tab2 cor0
----
1343
217
4602

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5037
SELECT + - ( col0 ) + CAST( NULL AS SIGNED ) * 92 * col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5037
SELECT + - ( col0 ) + CAST ( NULL AS INTEGER ) * 92 * col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col1 + - 84 + + col2 AS col2 FROM tab1
----
-17
-4
25

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5039
SELECT ALL + cor0.col0 * CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5039
SELECT ALL + cor0.col0 * CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - col0 * ( - cor0.col2 ) + - cor0.col0 AS col2 FROM tab1 AS cor0
----
159
3584
7600

query I rowsort
SELECT ALL col2 + + 83 AS col1 FROM tab1 AS cor0
----
137
140
179

onlyif mysql # use DIV operator for integer division
query I rowsort label-5042
SELECT col0 DIV col2 + + 76 FROM tab0 AS cor0
----
111
76
77

skipif mysql # not compatible
query I rowsort label-5042
SELECT col0 / col2 + + 76 FROM tab0 AS cor0
----
111
76
77

query I rowsort
SELECT DISTINCT + + col1 * + col2 * + ( + col2 ) + col1 AS col0 FROM tab1 AS cor0
----
119821
32500
75842

query I rowsort
SELECT + + col1 * col1 * 5 AS col2 FROM tab0 AS cor0
----
36980
41405
47045

query I rowsort
SELECT DISTINCT + cor0.col0 * ( 90 ) AS col0 FROM tab1 cor0
----
270
5760
7200

query I rowsort
SELECT + 75 AS col1 FROM tab1, tab0 cor0
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea

query I rowsort
SELECT ALL col2 + ( + col1 ) * + col2 + col0 FROM tab2
----
1638
763
871

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 46 col2 FROM tab1 AS cor0
----
-46
-46
-46

query I rowsort
SELECT DISTINCT col2 + 78 * cor0.col2 * - col0 FROM tab2 AS cor0
----
-14715
-158158
-234118

query I rowsort
SELECT ALL + 4 AS col2 FROM tab2 AS cor0
----
4
4
4

query I rowsort
SELECT DISTINCT 17 * 23 * cor0.col1 FROM tab2 AS cor0
----
12121
23069
6647

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col1 + - 14 col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 24fb67817b4f0a06f8bcfc2c1dffaf59

query I rowsort
SELECT - 97 + - 15 AS col2 FROM tab0 AS cor0
----
-112
-112
-112

query I rowsort
SELECT ALL - - 79 + - 7 * + cor0.col0 FROM tab1 AS cor0
----
-369
-481
58

query I rowsort
SELECT ALL - col2 * cor0.col1 FROM tab0 cor0
----
-2838
-7462
-97

query I rowsort
SELECT 98 * + 52 FROM tab2 AS cor0
----
5096
5096
5096

query I rowsort
SELECT 22 + tab1.col1 * ( - 60 ) * col0 AS col2 FROM tab1
----
-38378
-4658
-62378

query I rowsort
SELECT DISTINCT + col0 + col0 * ( col2 ) FROM tab1
----
165
3712
7760

query I rowsort
SELECT + 44 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to 0cc3e52e781e46962291c3060c6ae73b

onlyif mysql # use DIV operator for integer division
query I rowsort label-5060
SELECT DISTINCT - 46 DIV col2 AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5060
SELECT DISTINCT - 46 / col2 AS col1 FROM tab1
----
0

query I rowsort
SELECT ( col0 ) * + tab1.col1 AS col2 FROM tab1
----
1040
640
78

query I rowsort
SELECT col1 * col2 * ( 78 ) FROM tab0
----
221364
582036
7566

query I rowsort
SELECT - 57 AS col1 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 0b74bbd7631afe9b2eeb9f18b9dc6505

query I rowsort
SELECT DISTINCT col0 * + col2 * col2 FROM tab2
----
114076
5103
52728

query I rowsort
SELECT col0 * tab1.col1 * - col0 AS col0 FROM tab1
----
-234
-40960
-83200

query I rowsort
SELECT + col0 * 3 AS col2 FROM tab2
----
21
234
237

query I rowsort
SELECT + cor0.col2 AS col0 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8

query I rowsort
SELECT col0 * + col2 + - col1 FROM tab0 AS cor0
----
-62
706
7207

query I rowsort
SELECT DISTINCT - 70 FROM tab1, tab2 AS cor0
----
-70

query IIIIIIIII rowsort
SELECT * FROM tab0, tab1 AS cor0 CROSS JOIN tab1 cor1
----
243 values hashing to 7e12d99d8ab63d9fd10e95cef9d78998

query I rowsort
SELECT ALL + 40 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3

query I rowsort
SELECT DISTINCT - 76 * - 34 FROM tab2 AS cor0
----
2584

query I rowsort
SELECT + - cor0.col1 + + ( cor0.col0 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d924577a04b3a692cbbd2348e6f8e88f

query I rowsort
SELECT ALL + col0 * 16 * - col0 FROM tab2 AS cor0
----
-784
-97344
-99856

onlyif mysql # use DIV operator for integer division
query I rowsort label-5075
SELECT + cor0.col2 + + cor0.col1 DIV col0 FROM tab2 AS cor0
----
26
31
38

skipif mysql # not compatible
query I rowsort label-5075
SELECT + cor0.col2 + + cor0.col1 / col0 FROM tab2 AS cor0
----
26
31
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * + cor0.col2 col2 FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT - - col1 - col2 AS col2 FROM tab2 AS cor0
----
-21
33
4

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5078
SELECT ALL + col1 * col1 - - CAST( 82 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
182
251
758

skipif mysql # not compatible
query I rowsort label-5078
SELECT ALL + col1 * col1 - - CAST ( 82 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
182
251
758

query I rowsort
SELECT - - ( + col1 ) + col0 * 40 FROM tab0 AS cor0
----
1046
1497
3651

query I rowsort
SELECT + col1 * cor0.col2 - - 4 FROM tab0 cor0
----
101
2842
7466

query I rowsort
SELECT - col0 * col2 + + col0 + + col0 FROM tab2 AS cor0
----
-175
-1872
-2844

query I rowsort
SELECT + + col1 * + col1 + - col2 FROM tab0 AS cor0
----
7363
8199
9408

query I rowsort
SELECT ALL - + cor0.col0 * col0 * - col0 + col0 AS col2 FROM tab0 AS cor0
----
13848
42910
705058

query I rowsort
SELECT DISTINCT ( + col0 ) + - col0 AS col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL - col0 - - col1 FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT DISTINCT col0 * cor0.col1 AS col2 FROM tab2 cor0
----
1343
217
4602

query I rowsort
SELECT DISTINCT - col1 + cor0.col0 * col1 AS col2 FROM tab1 AS cor0
----
1027
52
630

query I rowsort
SELECT - cor0.col2 * col1 * col0 - cor0.col1 FROM tab1 AS cor0
----
-36490
-4238
-99853

onlyif mysql # use DIV operator for integer division
query I rowsort label-5089
SELECT DISTINCT + col2 DIV + col1 + col0 AS col2 FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-5089
SELECT DISTINCT + col2 / + col1 + col0 AS col2 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT - 1 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b

query I rowsort
SELECT + 54 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to d2364c4ffc09ac2cf1f6fa4d767d8b09

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 * - col2 col2 FROM tab2 AS cor0
----
-1534
-646
-837

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 50 col1 FROM tab1, tab1 AS cor0
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52

query I rowsort
SELECT 0 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT ALL + col2 * - ( + col0 ) FROM tab2
----
-189
-2028
-3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-5096
SELECT ALL col0 DIV + 22 AS col2 FROM tab1
----
0
2
3

skipif mysql # not compatible
query I rowsort label-5096
SELECT ALL col0 / + 22 AS col2 FROM tab1
----
0
2
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col2 ) + col2 col0 FROM tab1
----
108
114
192

query I rowsort
SELECT DISTINCT 67 * col2 * col1 AS col1 FROM tab0
----
190146
499954
6499

query I rowsort
SELECT 79 * - 81 FROM tab0, tab2 AS cor0, tab1, tab2 AS cor1
----
81 values hashing to 308913580ba129875e4937ac27f553ec

query I rowsort
SELECT ALL - + col1 * - col0 + + col2 FROM tab0 cor0
----
2097
3396
8181

query I rowsort
SELECT DISTINCT ( - 53 ) AS col1 FROM tab1, tab0 AS cor0
----
-53

query I rowsort
SELECT ALL + 4 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b

query I rowsort
SELECT + col0 * - ( + 14 ) FROM tab1 AS cor0
----
-1120
-42
-896

query I rowsort
SELECT - + col0 + - 58 FROM tab0 AS cor0
----
-147
-82
-93

query I rowsort
SELECT DISTINCT - + cor0.col1 * cor0.col2 + col2 AS col2 FROM tab1 AS cor0
----
-1152
-1350
-513

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5106
SELECT DISTINCT + - CAST( - col1 AS SIGNED ) + col1 * - ( col0 + col0 * - col0 ) FROM tab0 AS cor0
----
115527
47558
712803

skipif mysql # not compatible
query I rowsort label-5106
SELECT DISTINCT + - CAST ( - col1 AS INTEGER ) + col1 * - ( col0 + col0 * - col0 ) FROM tab0 AS cor0
----
115527
47558
712803

query I rowsort
SELECT ALL - ( col2 ) + + col0 FROM tab0
----
-9
34
7

query I rowsort
SELECT 60 * + col1 AS col2 FROM tab1
----
1560
600
780

query I rowsort
SELECT + 51 * + col0 FROM tab0 AS cor0
----
1224
1785
4539

query I rowsort
SELECT ALL cor2.col0 FROM tab2, tab0 AS cor0, tab2 AS cor1, tab1 AS cor2
----
81 values hashing to e28bf7f922650ca423ade3642ce0285b

query I rowsort
SELECT - 51 * 42 - + col0 FROM tab0 AS cor0
----
-2166
-2177
-2231

onlyif mysql # use DIV operator for integer division
query I rowsort label-5112
SELECT col1 + cor0.col0 DIV col0 AS col1 FROM tab0 cor0
----
87
92
98

skipif mysql # not compatible
query I rowsort label-5112
SELECT col1 + cor0.col0 / col0 AS col1 FROM tab0 cor0
----
87
92
98

query I rowsort
SELECT ALL - col0 + - 75 * col1 AS col1 FROM tab0 AS cor0
----
-6474
-6914
-7310

query I rowsort
SELECT + ( - col0 ) + - col0 * col2 AS col0 FROM tab2 AS cor0
----
-196
-2106
-3081

query I rowsort
SELECT 8 * - tab0.col2 + + col1 * col1 * col2 FROM tab0
----
243804
678386
9401

query I rowsort
SELECT col0 + - col1 * - col2 AS col0 FROM tab0
----
132
2862
7551

query I rowsort
SELECT DISTINCT - 35 * col0 AS col1 FROM tab0
----
-1225
-3115
-840

query I rowsort
SELECT col0 - col2 * - col2 FROM tab2
----
1523
736
754

onlyif mysql # use DIV operator for integer division
query I rowsort label-5119
SELECT DISTINCT - 20 + tab1.col1 DIV - 73 FROM tab1
----
-20

skipif mysql # not compatible
query I rowsort label-5119
SELECT DISTINCT - 20 + tab1.col1 / - 73 FROM tab1
----
-20

query I rowsort
SELECT 26 AS col0 FROM tab0 AS cor0
----
26
26
26

query I rowsort
SELECT ALL - + 69 - col0 FROM tab2 AS cor0
----
-147
-148
-76

query I rowsort
SELECT - + 16 + - col0 FROM tab0 AS cor0
----
-105
-40
-51

query I rowsort
SELECT ALL col1 * 69 + - col0 - + col1 FROM tab0 AS cor0
----
5824
6099
6561

query I rowsort
SELECT DISTINCT col0 * ( col1 ) AS col1 FROM tab2 AS cor0
----
1343
217
4602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * ( 83 ) col0 FROM tab2 AS cor0
----
581
6474
6557

query I rowsort
SELECT ALL - col2 * - 7 * - col2 FROM tab0 AS cor0
----
-47068
-7
-7623

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5127
SELECT col2 + - CAST( NULL AS DECIMAL ) * 86 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5127
SELECT col2 + - CAST ( NULL AS REAL ) * 86 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5128
SELECT ALL - col1 DIV + 68 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5128
SELECT ALL - col1 / + 68 FROM tab0 AS cor0
----
-1
-1
-1

onlyif mysql # use DIV operator for integer division
query I rowsort label-5129
SELECT ALL - col2 * ( - ( - col0 ) + ( 14 ) ) DIV - col0 FROM tab2
----
30
44
81

skipif mysql # not compatible
query I rowsort label-5129
SELECT ALL - col2 * ( - ( - col0 ) + ( 14 ) ) / - col0 FROM tab2
----
30
44
81

query I rowsort
SELECT ALL col2 * + 92 + col1 * col2 * + col1 + + col0 FROM tab2 cor0
----
14557
28438
92976

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - col2 ) * col0 * ( ( col1 ) ) col1 FROM tab1 cor0
----
-36480
-4212
-99840

onlyif mysql # use DIV operator for integer division
query I rowsort label-5132
SELECT + + ( 45 ) + col0 DIV - ( + col2 ) FROM tab1 AS cor0
----
44
45
45

skipif mysql # not compatible
query I rowsort label-5132
SELECT + + ( 45 ) + col0 / - ( + col2 ) FROM tab1 AS cor0
----
44
45
45

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5133
SELECT - CAST( NULL AS DECIMAL ) * col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5133
SELECT - CAST ( NULL AS REAL ) * col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - col2 * + 80 FROM tab2 AS cor0
----
-2080
-2160
-3040

query I rowsort
SELECT - - cor0.col1 + + 77 FROM tab2 AS cor0
----
108
136
94

query I rowsort
SELECT ALL - - 88 + col0 FROM tab1 AS cor0
----
152
168
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + ( col2 ) + ( + cor0.col2 * col1 ) col0 FROM tab1 AS cor0
----
1344
1458
627

query I rowsort
SELECT DISTINCT col2 * col0 + - ( - col0 ) FROM tab0 AS cor0
----
70
7387
816

query I rowsort
SELECT + 24 * col2 - - col0 AS col1 FROM tab1 cor0
----
1299
1432
2384

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 91 + + col1 col1 FROM tab0 AS cor0
----
-5
0
6

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5141
SELECT - cor0.col0 - cor0.col0 * - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5141
SELECT - cor0.col0 - cor0.col0 * - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - cor0.col2 + - col1 * - 53 AS col1 FROM tab1 AS cor0
----
1324
473
593

query I rowsort
SELECT ALL - 71 + col0 * - col0 * + 47 FROM tab2 AS cor0
----
-2374
-286019
-293398

query I rowsort
SELECT ALL - ( col2 ) * - col1 + col0 FROM tab0 AS cor0
----
132
2862
7551

query I rowsort
SELECT DISTINCT + - 27 * - col2 FROM tab1 AS cor0
----
1458
1539
2592

query I rowsort
SELECT + 51 * - col2 * col1 + col2 FROM tab2 AS cor0
----
-32908
-42660
-78208

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * col1 col1 FROM tab0 cor0
----
7396
8281
9409

query I rowsort
SELECT ALL - col0 + - tab0.col1 FROM tab0
----
-110
-132
-180

query I rowsort
SELECT ALL ( ( - col0 ) ) + col1 FROM tab0
----
2
62
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-5150
SELECT ALL col2 DIV + col2 - - col2 * + 50 AS col2 FROM tab0
----
1651
4101
51

skipif mysql # not compatible
query I rowsort label-5150
SELECT ALL col2 / + col2 - - col2 * + 50 AS col2 FROM tab0
----
1651
4101
51

query I rowsort
SELECT ALL ( col1 ) - col0 FROM tab1
----
-54
-67
23

query I rowsort
SELECT ALL + col1 - tab2.col1 AS col0 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL col0 * col1 + + ( col1 ) FROM tab0
----
2150
3492
8190

query I rowsort
SELECT ALL col0 + tab2.col0 AS col1 FROM tab2
----
14
156
158

onlyif mysql # use DIV operator for integer division
query I rowsort label-5155
SELECT DISTINCT - col1 DIV tab0.col2 + - 62 FROM tab0
----
-159
-63
-64

skipif mysql # not compatible
query I rowsort label-5155
SELECT DISTINCT - col1 / tab0.col2 + - 62 FROM tab0
----
-159
-63
-64

query I rowsort
SELECT ALL cor0.col2 * + col2 + col1 + + col0 AS col1 FROM tab1 AS cor0
----
2945
3323
9309

query I rowsort
SELECT ALL - col0 - cor0.col0 FROM tab1 cor0
----
-128
-160
-6

query I rowsort
SELECT - col1 * col1 + 34 FROM tab1 AS cor0
----
-135
-642
-66

query I rowsort
SELECT DISTINCT 40 * cor1.col0 - + cor0.col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 414a42d3ae56453c49386eff874e1c5e

onlyif mysql # use DIV operator for integer division
query I rowsort label-5160
SELECT - col1 * + col1 - - 17 DIV col1 AS col0 FROM tab0 AS cor0
----
-7396
-8281
-9409

skipif mysql # not compatible
query I rowsort label-5160
SELECT - col1 * + col1 - - 17 / col1 AS col0 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT ( cor0.col0 ) * + col1 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT + - 55 - cor0.col2 FROM tab0 AS cor0
----
-137
-56
-88

query I rowsort
SELECT - 50 - col1 AS col1 FROM tab1 cor0
----
-60
-63
-76

query I rowsort
SELECT + col0 * + col1 + + 93 FROM tab1 AS cor0
----
1133
171
733

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5165
SELECT ALL CAST( 57 AS SIGNED ) AS col1 FROM tab1
----
57
57
57

skipif mysql # not compatible
query I rowsort label-5165
SELECT ALL CAST ( 57 AS INTEGER ) AS col1 FROM tab1
----
57
57
57

query I rowsort
SELECT ALL 62 * col1 AS col0 FROM tab0
----
5332
5642
6014

query I rowsort
SELECT DISTINCT + 87 FROM tab2, tab1, tab2 AS cor0
----
87

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5168
SELECT - 91 * col1 - - CAST( - 22 AS SIGNED ) FROM tab1 AS cor0
----
-1205
-2388
-932

skipif mysql # not compatible
query I rowsort label-5168
SELECT - 91 * col1 - - CAST ( - 22 AS INTEGER ) FROM tab1 AS cor0
----
-1205
-2388
-932

query I rowsort
SELECT col1 * col2 - + col1 AS col0 FROM tab0 AS cor0
----
0
2752
7371

query I rowsort
SELECT DISTINCT col2 + 65 * cor0.col2 AS col2 FROM tab1 AS cor0
----
3564
3762
6336

query IIIIII rowsort
SELECT ALL * FROM tab1, tab1 cor0 WHERE NOT NULL > NULL
----

query I rowsort
SELECT - cor1.col0 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8

query I rowsort
SELECT DISTINCT col2 * col2 + col2 AS col2 FROM tab0 AS cor0
----
1122
2
6806

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - 24 ) col2 FROM tab0 AS cor0
----
-24

query I rowsort
SELECT + ( + col1 ) + cor0.col2 AS col1 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT DISTINCT col2 * - col1 * tab2.col2 FROM tab2
----
-22599
-24548
-39884

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 96 col2 FROM tab0, tab0 AS cor0
----
9 values hashing to c89b545346f99713888a7934e4caa539

query I rowsort
SELECT DISTINCT + 70 AS col2 FROM tab1, tab0 AS cor0
----
70

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5179
SELECT - CAST( NULL AS SIGNED ) + cor0.col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5179
SELECT - CAST ( NULL AS INTEGER ) + cor0.col1 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 92 AS col1 FROM tab1 cor0
----
92
92
92

query I rowsort
SELECT + 60 AS col2 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 1d2ab302ae60f95b15e68cf89083b162

query I rowsort
SELECT col0 + + col2 * col0 AS col1 FROM tab2
----
196
2106
3081

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 66 col2 FROM tab2 cor0
----
66
66
66

query I rowsort
SELECT ALL ( - col2 ) + + col0 + + col0 FROM tab2 AS cor0
----
-13
120
130

query I rowsort
SELECT + + col0 + col1 * - col2 AS col1 FROM tab0 AS cor0
----
-2814
-62
-7373

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5186
SELECT DISTINCT - + cor0.col1 * + col2 + - CAST( NULL AS DECIMAL ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5186
SELECT DISTINCT - + cor0.col1 * + col2 + - CAST ( NULL AS REAL ) AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT 5 AS col1 FROM tab2 AS cor0
----
5
5
5

query I rowsort
SELECT + + cor0.col2 + - cor0.col1 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 81a5cd95f3bf6bcb4ae24bb35bb8df50

query I rowsort
SELECT ALL - - cor0.col0 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870

query I rowsort
SELECT + + col1 + - col0 AS col1 FROM tab1 cor0
----
-54
-67
23

onlyif mysql # use DIV operator for integer division
query I rowsort label-5191
SELECT + col2 DIV + col1 FROM tab1 cor0
----
2
5
7

skipif mysql # not compatible
query I rowsort label-5191
SELECT + col2 / + col1 FROM tab1 cor0
----
2
5
7

query I rowsort
SELECT ALL + + ( - cor0.col0 ) + - col0 * 8 FROM tab2 AS cor0
----
-63
-702
-711

onlyif mysql # use DIV operator for integer division
query I rowsort label-5193
SELECT DISTINCT 41 + - 14 + + col0 DIV + 57 FROM tab1 AS cor0
----
27
28

skipif mysql # not compatible
query I rowsort label-5193
SELECT DISTINCT 41 + - 14 + + col0 / + 57 FROM tab1 AS cor0
----
27
28

query I rowsort
SELECT - + col0 * + 17 FROM tab2 AS cor0
----
-119
-1326
-1343

onlyif mysql # use DIV operator for integer division
query I rowsort label-5195
SELECT ALL + tab0.col2 DIV - 80 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 721682d0719de924079c33bd72eef789

skipif mysql # not compatible
query I rowsort label-5195
SELECT ALL + tab0.col2 / - 80 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 721682d0719de924079c33bd72eef789

query I rowsort
SELECT DISTINCT - - tab0.col0 + - 6 AS col2 FROM tab0, tab2, tab1 AS cor0
----
18
29
83

query I rowsort
SELECT DISTINCT cor0.col1 * + col2 + - col2 + col1 AS col2 FROM tab2 AS cor0
----
1567
625
841

query I rowsort
SELECT DISTINCT col1 + col2 * - col2 * cor0.col1 AS col1 FROM tab0 AS cor0
----
-611793
-93568
0

query I rowsort
SELECT DISTINCT cor0.col0 + + col0 + col1 * col2 FROM tab2 AS cor0
----
1690
804
851

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL IN ( col1 / col0 + col0 )
----

query I rowsort
SELECT ALL col1 * + cor0.col0 * - col1 AS col0 FROM tab0 AS cor0
----
-177504
-329315
-737009

query I rowsort
SELECT ALL - col2 * - col2 + + cor0.col2 FROM tab0 cor0
----
1122
2
6806

onlyif mysql # use DIV operator for integer division
query I rowsort label-5203
SELECT DISTINCT + col0 + col1 DIV + col0 + col1 FROM tab0 AS cor0
----
113
134
181

skipif mysql # not compatible
query I rowsort label-5203
SELECT DISTINCT + col0 + col1 / + col0 + col1 FROM tab0 AS cor0
----
113
134
181

query I rowsort
SELECT ALL + col2 + - col0 + col0 AS col2 FROM tab0
----
1
33
82

query I rowsort
SELECT + cor0.col2 FROM tab0 AS cor0 CROSS JOIN tab2
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8

onlyif mysql # use DIV operator for integer division
query I rowsort label-5206
SELECT ALL col1 DIV col2 + col1 + col1 AS col0 FROM tab0
----
174
183
291

skipif mysql # not compatible
query I rowsort label-5206
SELECT ALL col1 / col2 + col1 + col1 AS col0 FROM tab0
----
174
183
291

query I rowsort
SELECT ALL - tab0.col1 + + tab0.col0 AS col2 FROM tab0
----
-2
-62
-62

query I rowsort
SELECT + tab0.col2 - col1 AS col1 FROM tab0
----
-53
-9
-96

query I rowsort
SELECT DISTINCT + tab1.col1 + - col0 AS col1 FROM tab1
----
-54
-67
23

query I rowsort
SELECT ALL - tab1.col2 + col0 FROM tab1
----
-16
-51
7

query I rowsort
SELECT ALL - col0 * + col0 + col2 FROM tab1 WHERE - col2 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL tab1.col2 * col0 + tab1.col1 AS col1 FROM tab1
----
188
3658
7693

query I rowsort
SELECT - tab2.col1 + col2 * tab2.col2 AS col1 FROM tab2
----
1427
617
698

query I rowsort
SELECT col2 * col1 FROM tab2 WHERE NULL NOT IN ( col2 * - col1 + - col1 )
----

query I rowsort
SELECT DISTINCT + col2 + col0 * + col2 * col1 AS col2 FROM tab2
----
119678
51072
5886

query I rowsort
SELECT + col2 - col1 * + col1 AS col2 FROM tab0
----
-7363
-8199
-9408

query I rowsort
SELECT DISTINCT col2 FROM tab2 AS cor0 WHERE - col1 BETWEEN NULL AND + col2 * - cor0.col2
----

query I rowsort
SELECT - col0 * + cor0.col1 + - col1 AS col2 FROM tab0 AS cor0
----
-2150
-3492
-8190

query I rowsort
SELECT ALL + tab1.col2 AS col1 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT DISTINCT - col0 + tab1.col0 + col0 FROM tab1
----
3
64
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-5221
SELECT DISTINCT - col0 DIV - col2 + col1 FROM tab0
----
132
86
92

skipif mysql # not compatible
query I rowsort label-5221
SELECT DISTINCT - col0 / - col2 + col1 FROM tab0
----
132
86
92

onlyif mysql # use DIV operator for integer division
query I rowsort label-5222
SELECT DISTINCT + col2 DIV col0 + col0 + + col1 AS col0 FROM tab1
----
47
74
94

skipif mysql # not compatible
query I rowsort label-5222
SELECT DISTINCT + col2 / col0 + col0 + + col1 AS col0 FROM tab1
----
47
74
94

query I rowsort
SELECT - + col0 + + cor0.col0 * + col0 FROM tab1 AS cor0
----
4032
6
6320

query I rowsort
SELECT tab2.col1 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2
----
9 values hashing to c61d27a0022e6d022371dc58819ab272

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - cor0.col2 * + cor0.col0 col0 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT + + col2 + cor0.col1 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT - col0 * col2 * - col2 AS col0 FROM tab0 AS cor0
----
26136
35
598436

query I rowsort
SELECT col0 * col0 + + col1 AS col2 FROM tab0 cor0
----
1322
662
8012

query I rowsort
SELECT ALL + - cor0.col0 * - col1 AS col0 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT DISTINCT + col2 + cor0.col2 * col0 AS col2 FROM tab2 AS cor0
----
2054
216
3040

query I rowsort
SELECT DISTINCT - 6 * + col1 + col1 + - col2 AS col2 FROM tab1
----
-107
-161
-184

query I rowsort
SELECT - ( col1 ) + + 22 * 36 FROM tab1
----
766
779
782

query I rowsort
SELECT 90 AS col2 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 5d25a546acf3ae171e731e50adc0112e

onlyif mysql # use DIV operator for integer division
query I rowsort label-5234
SELECT DISTINCT col2 * col0 DIV + 92 + + 83 + + col1 * + 92 FROM tab1 AS cor0
----
1042
1362
2476

skipif mysql # not compatible
query I rowsort label-5234
SELECT DISTINCT col2 * col0 / + 92 + + 83 + + col1 * + 92 FROM tab1 AS cor0
----
1042
1362
2476

query I rowsort
SELECT - col2 - + col0 * + col0 AS col1 FROM tab1 AS cor0
----
-4153
-63
-6496

query I rowsort
SELECT DISTINCT + 86 * - col1 + - col0 FROM tab1 AS cor0
----
-1198
-2239
-924

query I rowsort
SELECT DISTINCT - + col0 * col0 + + col2 FROM tab2 AS cor0
----
-22
-6058
-6203

query I rowsort
SELECT ALL + + col1 + + 90 * - col2 FROM tab0 AS cor0
----
-2884
-7289
7

query I rowsort
SELECT + col2 + ( + ( - col1 ) + col0 ) FROM tab2 AS cor0
----
100
3
45

onlyif mysql # use DIV operator for integer division
query I rowsort label-5240
SELECT DISTINCT - col0 DIV col2 AS col1 FROM tab0 AS cor0
----
-1
-35
0

skipif mysql # not compatible
query I rowsort label-5240
SELECT DISTINCT - col0 / col2 AS col1 FROM tab0 AS cor0
----
-1
-35
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5241
SELECT + cor0.col1 + 88 DIV 90 AS col0 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-5241
SELECT + cor0.col1 + 88 / 90 AS col0 FROM tab0 AS cor0
----
86
91
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5242
SELECT - col2 * - CAST( col2 AS SIGNED ) FROM tab2 AS cor0
----
1444
676
729

skipif mysql # not compatible
query I rowsort label-5242
SELECT - col2 * - CAST ( col2 AS INTEGER ) FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT - col1 + 50 FROM tab0 AS cor0
----
-36
-41
-47

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5244
SELECT + col1 * CAST( NULL AS SIGNED ) * col0 + col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5244
SELECT + col1 * CAST ( NULL AS INTEGER ) * col0 + col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - + col0 * ( - col1 ) FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT DISTINCT tab0.col2 + tab0.col1 * + 23 AS col1 FROM tab0
----
2011
2175
2232

query I rowsort
SELECT DISTINCT col2 * + col0 + col1 FROM tab0
----
132
7389
878

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 + cor0.col0 * col0 col0 FROM tab1 cor0
----
4032
6
6320

query I rowsort
SELECT + col1 * ( 17 * col1 ) FROM tab2 AS cor0
----
16337
4913
59177

onlyif mysql # use DIV operator for integer division
query I rowsort label-5250
SELECT + col1 * col1 + - col0 DIV - col2 FROM tab1 cor0
----
101
169
676

skipif mysql # not compatible
query I rowsort label-5250
SELECT + col1 * col1 + - col0 / - col2 FROM tab1 cor0
----
101
169
676

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col1 = NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-5252
SELECT + tab0.col2 + col1 DIV col1 AS col1 FROM tab0
----
2
34
83

skipif mysql # not compatible
query I rowsort label-5252
SELECT + tab0.col2 + col1 / col1 AS col1 FROM tab0
----
2
34
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * + col1 * col1 + + col2 col0 FROM tab2
----
11020
25974
90532

query I rowsort
SELECT + tab2.col0 * col0 * tab2.col1 FROM tab2
----
106097
1519
358956

query I rowsort
SELECT + col2 FROM tab1 WHERE NOT NULL BETWEEN ( NULL ) AND col2
----

query I rowsort
SELECT - col0 + - col0 * col0 AS col1 FROM tab1
----
-12
-4160
-6480

query I rowsort
SELECT ALL - col0 * - tab2.col0 + - col1 FROM tab2
----
18
6025
6224

query I rowsort
SELECT col0 AS col0 FROM tab0 WHERE NULL NOT IN ( col0 )
----

query I rowsort
SELECT col0 FROM tab1 WHERE NOT NULL IN ( + col1 * + col2 * + col0 )
----

query I rowsort
SELECT DISTINCT col2 * + tab1.col1 + col1 AS col0 FROM tab1
----
1261
1430
580

query I rowsort
SELECT ALL col2 + col1 * col2 FROM tab1
----
1344
1458
627

query I rowsort
SELECT DISTINCT tab0.col2 + tab0.col1 * - col2 AS col0 FROM tab0
----
-2805
-7380
-96

query I rowsort
SELECT + tab2.col2 + col1 * col2 * col0 FROM tab2
----
119678
51072
5886

query I rowsort
SELECT - col1 + - col1 + col0 AS col2 FROM tab0
----
-148
-159
-93

query I rowsort
SELECT ALL col0 AS col1 FROM tab0 WHERE ( col1 - col2 ) = NULL
----

query I rowsort
SELECT ALL - cor0.col0 * + col2 * col2 FROM tab1 AS cor0
----
-207936
-737280
-8748

onlyif mysql # use DIV operator for integer division
query I rowsort label-5267
SELECT + 12 DIV - col1 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5267
SELECT + 12 / - col1 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT + 19 + - col1 - + cor0.col1 * 11 FROM tab0 AS cor0
----
-1013
-1073
-1145

onlyif mysql # use DIV operator for integer division
query I rowsort label-5269
SELECT DISTINCT + col0 + col2 DIV col0 + col1 * - col1 FROM tab2
----
-210
-3403
-951

skipif mysql # not compatible
query I rowsort label-5269
SELECT DISTINCT + col0 + col2 / col0 + col1 * - col1 FROM tab2
----
-210
-3403
-951

query I rowsort
SELECT ALL - tab2.col1 / + col1 AS col0 FROM tab2 WHERE NULL BETWEEN ( NULL ) AND col2 + col2
----

query I rowsort
SELECT + tab2.col0 * col1 - - tab2.col0 * - col2 AS col2 FROM tab2
----
-1659
2574
28

query I rowsort
SELECT - col2 + col2 * - tab2.col1 AS col0 FROM tab2
----
-1560
-684
-864

query I rowsort
SELECT col1 * - col1 * + col1 FROM tab1
----
-1000
-17576
-2197

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab0.col0 + + col0 * - col2 col2 FROM tab0
----
-70
-7387
-816

query I rowsort
SELECT col0 + 50 FROM tab1
----
114
130
53

query I rowsort
SELECT - 11 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 7120875811e4d19a19b69cd34b6bc202

query I rowsort
SELECT DISTINCT tab2.col0 * 95 AS col1 FROM tab2
----
665
7410
7505

query I rowsort
SELECT - - col2 + - col2 AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + 16 * + col1 FROM tab0 cor0
----
1376
1456
1552

skipif mysql # not compatible
query I rowsort
SELECT - CAST ( col0 AS REAL ) * col2 AS col1 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT - - ( 75 ) * - col1 AS col1 FROM tab2 AS cor0
----
-1275
-2325
-4425

query I rowsort
SELECT - 91 * - ( - col2 ) * + col1 FROM tab0 AS cor0
----
-258258
-679042
-8827

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5283
SELECT - CAST( NULL AS SIGNED ) * + col2 * col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5283
SELECT - CAST ( NULL AS INTEGER ) * + col2 * col2 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5284
SELECT - CAST( NULL AS SIGNED ) * - col0 * + col1 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5284
SELECT - CAST ( NULL AS INTEGER ) * - col0 * + col1 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 * ( + col2 * + 50 ) AS col1 FROM tab2 AS cor0
----
33800
36450
72200

onlyif mysql # use DIV operator for integer division
query I rowsort label-5286
SELECT ALL - col2 DIV - col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5286
SELECT ALL - col2 / - col1 FROM tab0
----
0
0
0

query I rowsort
SELECT ( + 65 ) * - col1 AS col1 FROM tab2 AS cor0
----
-1105
-2015
-3835

query I rowsort
SELECT DISTINCT + + 62 AS col0 FROM tab0 AS cor0
----
62

query I rowsort
SELECT ALL ( col0 ) * + col2 AS col0 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT DISTINCT 86 AS col0 FROM tab2 AS cor0
----
86

query I rowsort
SELECT - 0 * col2 + - ( col2 ) AS col1 FROM tab0 cor0
----
-1
-33
-82

query I rowsort
SELECT + cor0.col2 + + col1 * cor0.col0 FROM tab0 AS cor0
----
2097
3396
8181

query I rowsort
SELECT ALL + + col2 + + col1 * col1 FROM tab2 AS cor0
----
327
3507
988

query I rowsort
SELECT + cor0.col1 * cor0.col2 + - col0 AS col1 FROM tab2 AS cor0
----
1456
567
830

query I rowsort
SELECT - col2 * - col2 * + col0 FROM tab2
----
114076
5103
52728

query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab1 cor0, tab2 cor1, tab2 cor2
----
972 values hashing to f94a4a64ac54a61fc21f78e2b831ebee

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5297
SELECT + ( - col1 ) * CAST( - col1 AS SIGNED ) FROM tab0
----
7396
8281
9409

skipif mysql # not compatible
query I rowsort label-5297
SELECT + ( - col1 ) * CAST ( - col1 AS INTEGER ) FROM tab0
----
7396
8281
9409

query I rowsort
SELECT ALL + cor0.col2 + - 46 * col1 FROM tab2 cor0
----
-1399
-2688
-744

query I rowsort
SELECT - - col1 * col2 + col0 AS col1 FROM tab1 cor0
----
1328
1407
634

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5300
SELECT ALL + col0 * - CAST( + col2 AS SIGNED ) * - col2 + CAST( - 19 AS SIGNED ) FROM tab1 AS cor0
----
207917
737261
8729

skipif mysql # not compatible
query I rowsort label-5300
SELECT ALL + col0 * - CAST ( + col2 AS INTEGER ) * - col2 + CAST ( - 19 AS INTEGER ) FROM tab1 AS cor0
----
207917
737261
8729

query I rowsort
SELECT ALL col0 * col1 + + 71 FROM tab0 AS cor0
----
2135
3466
8170

query I rowsort
SELECT DISTINCT - cor0.col2 * - col2 - + col2 * - col1 AS col1 FROM tab1 AS cor0
----
10464
3819
4320

query I rowsort
SELECT - - col2 + col2 AS col1 FROM tab0 cor0
----
164
2
66

query I rowsort
SELECT col1 + 84 FROM tab1 AS cor0
----
110
94
97

query I rowsort
SELECT - col0 + + ( col1 ) * + col1 AS col2 FROM tab1 AS cor0
----
36
673
89

query I rowsort
SELECT DISTINCT + + cor0.col1 + - 63 * - 43 * col2 + + col2 AS col2 FROM tab2 cor0
----
102997
70519
73201

query I rowsort
SELECT DISTINCT - - col0 * ( + col1 ) AS col2 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT ALL + + col2 * 71 FROM tab2 AS cor0
----
1846
1917
2698

query I rowsort
SELECT ALL col2 * 66 + col0 * col0 AS col0 FROM tab2 AS cor0
----
1831
7800
8749

query I rowsort
SELECT DISTINCT col0 * 23 + col1 FROM tab1 AS cor0
----
1482
1853
95

query I rowsort
SELECT ALL + + cor0.col2 + ( col0 ) + col1 AS col1 FROM tab1 AS cor0
----
131
189
83

query I rowsort
SELECT - col1 + + col1 * col2 FROM tab2 AS cor0
----
1475
629
806

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5313
SELECT col1 * CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5313
SELECT col1 * CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 + col0 * - col0 * + col0 FROM tab2 AS cor0
----
-336
-474474
-492960

query I rowsort
SELECT - col1 * + col0 * - col2 AS col2 FROM tab0 AS cor0
----
3395
664118
68112

query I rowsort
SELECT DISTINCT + + 77 AS col1 FROM tab1 cor0
----
77

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5317
SELECT - CAST( NULL AS SIGNED ) * + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5317
SELECT - CAST ( NULL AS INTEGER ) * + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5318
SELECT ALL - CAST( - 51 * col1 AS SIGNED ) AS col2 FROM tab1
----
1326
510
663

skipif mysql # not compatible
query I rowsort label-5318
SELECT ALL - CAST ( - 51 * col1 AS INTEGER ) AS col2 FROM tab1
----
1326
510
663

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5319
SELECT ALL col0 * + col0 + + CAST( NULL AS DECIMAL ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5319
SELECT ALL col0 * + col0 + + CAST ( NULL AS REAL ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + col1 + col1 col0 FROM tab1 AS cor0
----
110
182
702

query I rowsort
SELECT col0 * tab1.col1 + col1 AS col2 FROM tab1
----
104
1053
650

query I rowsort
SELECT ALL ( + col0 ) + + ( col2 ) * + col2 FROM tab2
----
1523
736
754

query I rowsort
SELECT ALL + - 12 + + col1 FROM tab0 AS cor0
----
74
79
85

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5324
SELECT DISTINCT + CAST( 14 AS SIGNED ) FROM tab1, tab0 AS cor0, tab0 cor1
----
14

skipif mysql # not compatible
query I rowsort label-5324
SELECT DISTINCT + CAST ( 14 AS INTEGER ) FROM tab1, tab0 AS cor0, tab0 cor1
----
14

query I rowsort
SELECT + ( cor0.col0 ) AS col2 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT + + col2 * + col2 - ( - col2 + - col1 ) FROM tab0 AS cor0
----
1208
6897
99

onlyif mysql # use DIV operator for integer division
query I rowsort label-5327
SELECT - col1 DIV col0 + cor0.col2 * col2 FROM tab0 cor0
----
-1
1086
6723

skipif mysql # not compatible
query I rowsort label-5327
SELECT - col1 / col0 + cor0.col2 * col2 FROM tab0 cor0
----
-1
1086
6723

onlyif mysql # use DIV operator for integer division
query I rowsort label-5328
SELECT ALL - tab2.col0 DIV + 99 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5328
SELECT ALL - tab2.col0 / + 99 FROM tab2
----
0
0
0

query I rowsort
SELECT + col0 + 53 FROM tab0 AS cor0
----
142
77
88

query I rowsort
SELECT ALL - ( + 65 ) AS col1 FROM tab1 AS cor0
----
-65
-65
-65

query I rowsort
SELECT DISTINCT - + 81 + 11 * cor0.col0 * col1 FROM tab0 AS cor0
----
22623
37264
89008

query I rowsort
SELECT ALL col1 * + cor0.col1 * + col0 AS col2 FROM tab0 AS cor0
----
177504
329315
737009

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5333
SELECT DISTINCT - - col0 * 34 + + col1 * + CAST( 44 AS SIGNED ) FROM tab2 AS cor0
----
1602
3434
5248

skipif mysql # not compatible
query I rowsort label-5333
SELECT DISTINCT - - col0 * 34 + + col1 * + CAST ( 44 AS INTEGER ) FROM tab2 AS cor0
----
1602
3434
5248

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 77 * + 24 + col0 col2 FROM tab0 AS cor0
----
-1759
-1813
-1824

query I rowsort
SELECT ALL - ( col2 ) * cor0.col2 FROM tab0 AS cor0
----
-1
-1089
-6724

query I rowsort
SELECT - col2 * + 99 + - col1 AS col2 FROM tab2 AS cor0
----
-2633
-2704
-3779

query I rowsort
SELECT DISTINCT - ( col1 ) * - col0 AS col1 FROM tab1 cor0
----
1040
640
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-5338
SELECT DISTINCT - 58 * col0 + col1 DIV 48 FROM tab0 AS cor0
----
-1391
-2028
-5161

skipif mysql # not compatible
query I rowsort label-5338
SELECT DISTINCT - 58 * col0 + col1 / 48 FROM tab0 AS cor0
----
-1391
-2028
-5161

query I rowsort
SELECT DISTINCT col1 * - ( cor0.col1 ) * + 15 FROM tab2 AS cor0
----
-14415
-4335
-52215

onlyif mysql # use DIV operator for integer division
query I rowsort label-5340
SELECT - + cor0.col2 DIV + col1 FROM tab1 AS cor0
----
-2
-5
-7

skipif mysql # not compatible
query I rowsort label-5340
SELECT - + cor0.col2 / + col1 FROM tab1 AS cor0
----
-2
-5
-7

query I rowsort
SELECT + 75 * col1 + + col1 FROM tab0 AS cor0
----
6536
6916
7372

onlyif mysql # use DIV operator for integer division
query I rowsort label-5342
SELECT - cor0.col1 DIV cor0.col0 FROM tab1 AS cor0
----
-8
0
0

skipif mysql # not compatible
query I rowsort label-5342
SELECT - cor0.col1 / cor0.col0 FROM tab1 AS cor0
----
-8
0
0

query I rowsort
SELECT DISTINCT 60 + col1 AS col0 FROM tab0 AS cor0
----
146
151
157

query I rowsort
SELECT DISTINCT + - 71 * 47 FROM tab0 AS cor0
----
-3337

query I rowsort
SELECT + ( col1 ) * cor0.col1 + - 48 * col2 AS col1 FROM tab2 AS cor0
----
-1535
-335
2233

query I rowsort
SELECT ALL - + col2 + + 18 AS col0 FROM tab1 AS cor0
----
-36
-39
-78

query I rowsort
SELECT + 58 * col1 * - 95 AS col0 FROM tab1 AS cor0
----
-143260
-55100
-71630

onlyif mysql # use DIV operator for integer division
query I rowsort label-5348
SELECT + 96 DIV - col2 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5348
SELECT + 96 / - col2 FROM tab1 AS cor0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col0 ) col1 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT 61 * - col0 FROM tab0 AS cor0
----
-1464
-2135
-5429

query I rowsort
SELECT ALL 50 + col1 FROM tab2 cor0
----
109
67
81

query I rowsort
SELECT ALL 6 + - col0 + tab0.col0 * col0 AS col1 FROM tab0
----
1196
558
7838

query I rowsort
SELECT - ( - 30 ) + tab0.col1 AS col2 FROM tab0
----
116
121
127

query I rowsort
SELECT ALL - ( tab0.col2 ) + - col0 AS col0 FROM tab0
----
-171
-36
-57

query I rowsort
SELECT + col0 * col2 + + col1 AS col1 FROM tab1 cor0
----
188
3658
7693

query I rowsort
SELECT col1 - + col1 FROM tab0 cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5357
SELECT + col0 + - col1 DIV col1 FROM tab2 AS cor0
----
6
77
78

skipif mysql # not compatible
query I rowsort label-5357
SELECT + col0 + - col1 / col1 FROM tab2 AS cor0
----
6
77
78

query I rowsort
SELECT DISTINCT + col2 + - ( cor0.col1 * col2 + - col2 * col1 ) AS col0 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT + - cor0.col2 + ( 98 ) FROM tab0 AS cor0
----
16
65
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5360
SELECT + col2 + - CAST( NULL AS SIGNED ) - + col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5360
SELECT + col2 + - CAST ( NULL AS INTEGER ) - + col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 86 AS col1 FROM tab1, tab2 cor0
----
9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col0 + + 48 * - 73 * cor0.col0 col2 FROM tab1 AS cor0
----
-10509
-224192
-280240

query I rowsort
SELECT ALL - col2 + + ( - col1 + col1 ) FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT ALL col2 * col0 - col2 AS col1 FROM tab2
----
162
2002
2964

query I rowsort
SELECT ALL - 58 FROM tab1, tab2 cor0
----
9 values hashing to de0811e670e75d2aeeb657e32bddb0c0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5366
SELECT ALL col1 + - 89 DIV col1 + - col0 DIV 3 AS col0 FROM tab0
----
62
77
86

skipif mysql # not compatible
query I rowsort label-5366
SELECT ALL col1 + - 89 / col1 + - col0 / 3 AS col0 FROM tab0
----
62
77
86

query I rowsort
SELECT + + ( 31 ) * col0 + - col2 AS col0 FROM tab0 AS cor0
----
1084
2677
711

query I rowsort
SELECT - col1 * - col1 AS col2 FROM tab1
----
100
169
676

query I rowsort
SELECT + cor0.col1 * col1 * + col1 + - col1 AS col0 FROM tab2 cor0
----
205320
29760
4896

onlyif mysql # use DIV operator for integer division
query I rowsort label-5370
SELECT + col2 - col2 DIV ( col0 ) FROM tab2 AS cor0
----
24
26
38

skipif mysql # not compatible
query I rowsort label-5370
SELECT + col2 - col2 / ( col0 ) FROM tab2 AS cor0
----
24
26
38

query I rowsort
SELECT DISTINCT 94 FROM tab0, tab1 AS cor0
----
94

query I rowsort
SELECT 20 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 - + 64 col1 FROM tab0 AS cor0
----
-150
-155
-161

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 77 col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 3a24155cb91ceff1e67bb51c07b72107

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2 cor0 CROSS JOIN tab0, tab0 AS cor1, tab1, tab2 AS cor2
----
3645 values hashing to 81a27955147133c47c9e8e63dacc5c37

query I rowsort
SELECT DISTINCT - ( - 36 ) AS col2 FROM tab0
----
36

query I rowsort
SELECT tab1.col0 * 94 FROM tab1
----
282
6016
7520

query I rowsort
SELECT ( 42 * tab1.col2 ) FROM tab1
----
2268
2394
4032

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col2 + 86 + - col2 col0 FROM tab2
----
86
86
86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + cor0.col1 * cor0.col2 * col0 - - 8 col2 FROM tab2 AS cor0
----
119660
51042
5867

onlyif mysql # use DIV operator for integer division
query I rowsort label-5381
SELECT 62 DIV + col2 + - cor0.col1 DIV - col0 AS col1 FROM tab1 AS cor0
----
0
1
9

skipif mysql # not compatible
query I rowsort label-5381
SELECT 62 / + col2 + - cor0.col1 / - col0 AS col1 FROM tab1 AS cor0
----
0
1
9

query I rowsort
SELECT + + 92 * 12 - col0 AS col1 FROM tab1 AS cor0
----
1024
1040
1101

query I rowsort
SELECT DISTINCT - - cor0.col1 + col2 * col1 FROM tab2 AS cor0
----
1593
663
868

query I rowsort
SELECT 79 + + col1 * + 67 FROM tab0
----
5841
6176
6578

query I rowsort
SELECT - col2 + + tab2.col2 * col2 AS col1 FROM tab2
----
1406
650
702

query I rowsort
SELECT - cor1.col1 AS col0 FROM tab2, tab2 AS cor0, tab1 AS cor1, tab1 AS cor2
----
81 values hashing to 96e9ef2950805bca93a295eeea43ef5b

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5387
SELECT - CAST( NULL AS SIGNED ) * 65 AS col2 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-5387
SELECT - CAST ( NULL AS INTEGER ) * 65 AS col2 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT ALL col0 * - cor0.col0 AS col1 FROM tab2 AS cor0
----
-49
-6084
-6241

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5389
SELECT ALL + ( col0 ) * CAST( NULL AS SIGNED ) * + col1 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5389
SELECT ALL + ( col0 ) * CAST ( NULL AS INTEGER ) * + col1 AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 * + 91 + + 35 * col0 FROM tab1 AS cor0
----
11536
5019
7427

query I rowsort
SELECT - col1 + 36 * col1 FROM tab1 AS cor0
----
350
455
910

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 * col1 col1 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT DISTINCT - col1 * col0 AS col0 FROM tab1 cor0
----
-1040
-640
-78

query I rowsort
SELECT DISTINCT - col1 + + ( col1 ) AS col0 FROM tab2 AS cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5395
SELECT DISTINCT col1 DIV + ( col0 * - col2 ) AS col0 FROM tab0 AS cor0
----
-2
0

skipif mysql # not compatible
query I rowsort label-5395
SELECT DISTINCT col1 / + ( col0 * - col2 ) AS col0 FROM tab0 AS cor0
----
-2
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5396
SELECT + col2 DIV 42 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5396
SELECT + col2 / 42 AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - + col2 * + ( col1 ) AS col1 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT + - col1 * + ( - 46 ) FROM tab1 AS cor0
----
1196
460
598

query I rowsort
SELECT + col1 + col1 * 55 FROM tab1 AS cor0
----
1456
560
728

query I rowsort
SELECT - col0 * 79 FROM tab0
----
-1896
-2765
-7031

query I rowsort
SELECT - 56 * + 5 FROM tab1
----
-280
-280
-280

onlyif mysql # use DIV operator for integer division
query I rowsort label-5402
SELECT - - col0 DIV 97 + - col1 FROM tab0 AS cor0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-5402
SELECT - - col0 / 97 + - col1 FROM tab0 AS cor0
----
-86
-91
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 26 col2 FROM tab0
----
26
26
26

query I rowsort
SELECT ALL 21 * 91 FROM tab0, tab1, tab0 cor0
----
27 values hashing to e629ae3dd3228bb8edaf15803b36d883

onlyif mysql # use DIV operator for integer division
query I rowsort label-5405
SELECT ALL + 53 DIV + col0 FROM tab2
----
0
0
7

skipif mysql # not compatible
query I rowsort label-5405
SELECT ALL + 53 / + col0 FROM tab2
----
0
0
7

query I rowsort
SELECT - col0 * + col1 * + col1 FROM tab2 AS cor0
----
-22831
-271518
-6727

onlyif mysql # use DIV operator for integer division
query I rowsort label-5407
SELECT col1 DIV - col0 AS col1 FROM tab0 AS cor0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-5407
SELECT col1 / - col0 AS col1 FROM tab0 AS cor0
----
-1
-2
-3

onlyif mysql # use DIV operator for integer division
query I rowsort label-5408
SELECT + + col0 DIV + col1 + col1 AS col2 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-5408
SELECT + + col0 / + col1 + col1 AS col2 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT ALL + 95 + col1 FROM tab0 AS cor0
----
181
186
192

query I rowsort
SELECT DISTINCT + 95 * - col0 FROM tab0 AS cor0
----
-2280
-3325
-8455

query I rowsort
SELECT + 84 * + col0 * - col0 AS col1 FROM tab2 AS cor0
----
-4116
-511056
-524244

query I rowsort
SELECT DISTINCT + col1 * + tab1.col2 FROM tab1
----
1248
1404
570

onlyif mysql # use DIV operator for integer division
query I rowsort label-5413
SELECT + + cor0.col0 * + col2 DIV - col2 + col2 AS col1 FROM tab1 AS cor0
----
-7
16
51

skipif mysql # not compatible
query I rowsort label-5413
SELECT + + cor0.col0 * + col2 / - col2 + col2 AS col1 FROM tab1 AS cor0
----
-7
16
51

query I rowsort
SELECT DISTINCT + col1 + ( 83 ) FROM tab2 cor0
----
100
114
142

query I rowsort
SELECT - + col1 * - col2 + + 8 FROM tab0 cor0
----
105
2846
7470

query I rowsort
SELECT - col1 * col2 + ( + cor0.col0 ) FROM tab1 AS cor0
----
-1168
-1401
-506

query I rowsort
SELECT - - col1 - col0 AS col0 FROM tab0 AS cor0
----
2
62
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-5418
SELECT col2 DIV + 40 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5418
SELECT col2 / + 40 AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT 68 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 599bee15ac4cc39b859854e07dfe7990

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5420
SELECT DISTINCT + cor0.col0 + + CAST( cor0.col2 AS SIGNED ) FROM tab2, tab1 cor0
----
121
176
57

skipif mysql # not compatible
query I rowsort label-5420
SELECT DISTINCT + cor0.col0 + + CAST ( cor0.col2 AS INTEGER ) FROM tab2, tab1 cor0
----
121
176
57

query I rowsort
SELECT + cor0.col0 * - 55 AS col1 FROM tab0 AS cor0
----
-1320
-1925
-4895

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 + - 26 col0 FROM tab0 cor0
----
-115
-50
-61

query I rowsort
SELECT - 39 + ( col2 ) AS col1 FROM tab0 AS cor0
----
-38
-6
43

onlyif mysql # use DIV operator for integer division
query I rowsort label-5424
SELECT col0 DIV 89 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5424
SELECT col0 / 89 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT 72 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49

query I rowsort
SELECT - + 66 + 41 FROM tab1 cor0
----
-25
-25
-25

query I rowsort
SELECT ALL col0 * - col2 + cor0.col0 FROM tab1 AS cor0
----
-159
-3584
-7600

query I rowsort
SELECT + + ( col0 ) * col2 + col1 AS col0 FROM tab1 cor0
----
188
3658
7693

query I rowsort
SELECT DISTINCT - ( - cor0.col0 ) * col1 FROM tab1 cor0
----
1040
640
78

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5430
SELECT + CAST( ( col2 ) AS SIGNED ) - ( + col1 ) AS col0 FROM tab2 AS cor0
----
-33
-4
21

skipif mysql # not compatible
query I rowsort label-5430
SELECT + CAST ( ( col2 ) AS INTEGER ) - ( + col1 ) AS col0 FROM tab2 AS cor0
----
-33
-4
21

onlyif mysql # use DIV operator for integer division
query I rowsort label-5431
SELECT ALL col2 * - col1 DIV col1 + + ( col2 * col1 ) FROM tab1 AS cor0
----
1152
1350
513

skipif mysql # not compatible
query I rowsort label-5431
SELECT ALL col2 * - col1 / col1 + + ( col2 * col1 ) FROM tab1 AS cor0
----
1152
1350
513

query I rowsort
SELECT DISTINCT - col0 * + tab2.col0 AS col1 FROM tab2
----
-49
-6084
-6241

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5433
SELECT DISTINCT + + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5433
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL 70 * col2 * - col1 + + ( + 13 + + col1 * + ( ( + col2 ) ) ) AS col1 FROM tab1 AS cor0
----
-39317
-86099
-96863

onlyif mysql # use DIV operator for integer division
query I rowsort label-5435
SELECT DISTINCT - col0 DIV - 32 AS col2 FROM tab1 AS cor0
----
0
2

skipif mysql # not compatible
query I rowsort label-5435
SELECT DISTINCT - col0 / - 32 AS col2 FROM tab1 AS cor0
----
0
2

query I rowsort
SELECT + col1 * - 55 - - col0 AS col0 FROM tab2 AS cor0
----
-1698
-3167
-856

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 16 * - col1 - - col2 col0 FROM tab1 AS cor0
----
-103
-112
-362

query I rowsort
SELECT ALL + 5 * col0 + - cor0.col0 FROM tab2 AS cor0
----
28
312
316

query I rowsort
SELECT + 60 AS col0 FROM tab0
----
60
60
60

query I rowsort
SELECT DISTINCT + 19 * col1 FROM tab2 AS cor0
----
1121
323
589

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5441
SELECT - + col0 + col2 * + CAST( col2 AS SIGNED ) FROM tab1 cor0
----
2913
3185
9136

skipif mysql # not compatible
query I rowsort label-5441
SELECT - + col0 + col2 * + CAST ( col2 AS INTEGER ) FROM tab1 cor0
----
2913
3185
9136

query I rowsort
SELECT ALL col0 - + col0 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - col1 * + 67 + - col0 FROM tab1 AS cor0
----
-1745
-734
-951

query I rowsort
SELECT DISTINCT - + col1 * cor0.col1 + - col0 + - col2 FROM tab1 AS cor0
----
-221
-345
-733

query I rowsort
SELECT - + ( + 4 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5784540a5af6ca2be84399d314acd2fd

query I rowsort
SELECT ALL col2 * + 68 * - col1 - col2 * - col2 AS col0 FROM tab2
----
-103636
-42484
-56187

onlyif mysql # use DIV operator for integer division
query I rowsort label-5447
SELECT - tab1.col1 DIV 50 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5447
SELECT - tab1.col1 / 50 FROM tab1
----
0
0
0

query I rowsort
SELECT col2 * 25 AS col2 FROM tab2
----
650
675
950

query I rowsort
SELECT - 16 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to be22ac76b42c6f7212ecc0ba7c89eb34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775

query I rowsort
SELECT + cor0.col1 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

query I rowsort
SELECT ALL - 64 FROM tab1 cor0
----
-64
-64
-64

query I rowsort
SELECT col0 + col1 * + ( col0 ) * col1 + - col1 * col1 * + col2 FROM tab0 AS cor0
----
-66540
319941
58056

query I rowsort
SELECT ALL - + cor0.col1 * - col0 + - col1 AS col2 FROM tab0 AS cor0
----
1978
3298
8008

query I rowsort
SELECT DISTINCT + 64 + - col2 AS col0 FROM tab0 AS cor0
----
-18
31
63

query I rowsort
SELECT DISTINCT - + 57 * - col2 AS col1 FROM tab2 AS cor0
----
1482
1539
2166

query I rowsort
SELECT ALL - col0 * col0 + 96 * 3 + col1 AS col0 FROM tab2 AS cor0
----
-5737
-5936
270

query I rowsort
SELECT DISTINCT - 51 * + col1 + ( + col2 ) AS col0 FROM tab1 cor0
----
-1272
-453
-567

onlyif mysql # use DIV operator for integer division
query I rowsort label-5459
SELECT DISTINCT - col0 * - col2 + ( - col1 ) DIV - col0 AS col0 FROM tab2
----
193
2028
3002

skipif mysql # not compatible
query I rowsort label-5459
SELECT DISTINCT - col0 * - col2 + ( - col1 ) / - col0 AS col0 FROM tab2
----
193
2028
3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 + + cor0.col0 + col2 col1 FROM tab0 cor0
----
133
143
262

query I rowsort
SELECT + cor0.col2 * cor0.col2 - col1 AS col2 FROM tab0 AS cor0
----
-96
1003
6633

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5462
SELECT ( + col1 ) + CAST( NULL AS SIGNED ) + col1 * col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5462
SELECT ( + col1 ) + CAST ( NULL AS INTEGER ) + col1 * col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - + col2 + 79 * - cor0.col1 FROM tab2 AS cor0
----
-1381
-2476
-4687

query I rowsort
SELECT DISTINCT - cor0.col2 * ( - 17 ) * + cor0.col0 FROM tab0 AS cor0
----
124066
13464
595

query I rowsort
SELECT DISTINCT + + col1 * ( 91 ) AS col0 FROM tab1 AS cor0
----
1183
2366
910

onlyif mysql # use DIV operator for integer division
query I rowsort label-5466
SELECT ALL col2 DIV - col1 - col2 * col0 AS col2 FROM tab2 AS cor0
----
-189
-2028
-3004

skipif mysql # not compatible
query I rowsort label-5466
SELECT ALL col2 / - col1 - col2 * col0 AS col2 FROM tab2 AS cor0
----
-189
-2028
-3004

query I rowsort
SELECT + col0 * - col1 + col1 + - col0 FROM tab0 AS cor0
----
-2002
-3333
-8097

query I rowsort
SELECT DISTINCT col1 * + 86 FROM tab1 AS cor0
----
1118
2236
860

query I rowsort
SELECT + - col1 * 51 AS col1 FROM tab2 AS cor0
----
-1581
-3009
-867

onlyif mysql # use DIV operator for integer division
query I rowsort label-5470
SELECT 73 DIV + col0 AS col1 FROM tab0 cor0
----
0
2
3

skipif mysql # not compatible
query I rowsort label-5470
SELECT 73 / + col0 AS col1 FROM tab0 cor0
----
0
2
3

query I rowsort
SELECT ALL 65 * 84 * col2 + + ( + col2 * col0 + - cor0.col1 ) FROM tab1 cor0
----
294976
314858
531827

query I rowsort
SELECT - ( 25 ) FROM tab2 AS cor0
----
-25
-25
-25

query I rowsort
SELECT cor0.col0 + cor0.col1 FROM tab0, tab0 AS cor0
----
9 values hashing to f65167375aa80cc8b3f3f8987d2662a3

query I rowsort
SELECT ALL col1 + - col1 * + cor0.col2 FROM tab2 AS cor0
----
-1475
-629
-806

query I rowsort
SELECT ALL + ( 41 ) FROM tab2 AS cor0
----
41
41
41

query I rowsort
SELECT DISTINCT col0 + + ( col1 ) FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT + + 30 AS col1 FROM tab2 AS cor0
----
30
30
30

query I rowsort
SELECT DISTINCT col1 * col2 + col2 AS col1 FROM tab2 AS cor0
----
1560
684
864

query I rowsort
SELECT + + col2 * - cor0.col1 AS col2 FROM tab1 AS cor0
----
-1248
-1404
-570

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5480
SELECT CAST( col2 + + col2 AS SIGNED ) AS col2 FROM tab2
----
52
54
76

skipif mysql # not compatible
query I rowsort label-5480
SELECT CAST ( col2 + + col2 AS INTEGER ) AS col2 FROM tab2
----
52
54
76

query I rowsort
SELECT ALL ( + col1 ) * + 30 AS col1 FROM tab0 AS cor0
----
2580
2730
2910

onlyif mysql # use DIV operator for integer division
query I rowsort label-5482
SELECT DISTINCT - + cor0.col1 DIV cor0.col0 FROM tab0 AS cor0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-5482
SELECT DISTINCT - + cor0.col1 / cor0.col0 FROM tab0 AS cor0
----
-1
-2
-3

query I rowsort
SELECT ALL + 24 + col2 FROM tab0 AS cor0
----
106
25
57

query I rowsort
SELECT + 77 AS col0 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to d7b027bca5d37c67e29013904def8125

query I rowsort
SELECT ALL + - 66 * col1 FROM tab1 AS cor0
----
-1716
-660
-858

query I rowsort
SELECT + 51 + + col2 AS col2 FROM tab1 AS cor0
----
105
108
147

query I rowsort
SELECT 54 FROM tab1, tab0 AS cor0
----
9 values hashing to d2364c4ffc09ac2cf1f6fa4d767d8b09

query I rowsort
SELECT 93 + - col2 FROM tab0
----
11
60
92

query I rowsort
SELECT ALL - 75 * col0 AS col1 FROM tab2
----
-525
-5850
-5925

query I rowsort
SELECT - - col0 + + cor0.col0 * + 85 + col0 FROM tab2 AS cor0
----
609
6786
6873

query I rowsort
SELECT + cor0.col1 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

query I rowsort
SELECT ALL tab1.col2 * + tab1.col2 + - col2 + - 92 AS col2 FROM tab1
----
2770
3100
9028

query I rowsort
SELECT + tab1.col2 * cor0.col2 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to ede9f33694b1d188a31631cf33240c69

query I rowsort
SELECT 45 AS col1 FROM tab2
----
45
45
45

query I rowsort
SELECT ALL - tab0.col1 + - col0 AS col1 FROM tab0
----
-110
-132
-180

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5496
SELECT + CAST( NULL AS SIGNED ) + cor0.col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5496
SELECT + CAST ( NULL AS INTEGER ) + cor0.col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + 91 AS col0 FROM tab2 AS cor0
----
-91
-91
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * 31 + - col0 col2 FROM tab0
----
-1120
-2848
-768

query I rowsort
SELECT DISTINCT + 90 * - col1 AS col1 FROM tab0
----
-7740
-8190
-8730

query I rowsort
SELECT - 2 * - col1 AS col2 FROM tab1 AS cor0
----
20
26
52

query I rowsort
SELECT + ( 4 ) * - col2 FROM tab0 AS cor0
----
-132
-328
-4

query I rowsort
SELECT ALL col0 * 50 * + col1 AS col1 FROM tab1 cor0
----
32000
3900
52000

query I rowsort
SELECT 61 * col1 * col1 FROM tab1 AS cor0
----
10309
41236
6100

onlyif mysql # use DIV operator for integer division
query I rowsort label-5504
SELECT DISTINCT + cor0.col2 - ( - col2 ) * col2 DIV col0 AS col1 FROM tab1 AS cor0
----
1026
107
211

skipif mysql # not compatible
query I rowsort label-5504
SELECT DISTINCT + cor0.col2 - ( - col2 ) * col2 / col0 AS col1 FROM tab1 AS cor0
----
1026
107
211

query I rowsort
SELECT DISTINCT 56 * - col1 AS col0 FROM tab1 AS cor0
----
-1456
-560
-728

query I rowsort
SELECT ALL + - col2 * col2 + + col1 + - col0 AS col2 FROM tab1 cor0
----
-2893
-3303
-9283

query I rowsort
SELECT + col0 * cor0.col1 + - col1 FROM tab1 AS cor0
----
1027
52
630

query I rowsort
SELECT DISTINCT + col0 - col0 * + cor0.col0 AS col0 FROM tab2 AS cor0
----
-42
-6006
-6162

onlyif mysql # use DIV operator for integer division
query I rowsort label-5509
SELECT ALL 96 * cor0.col2 DIV - cor0.col2 col2 FROM tab0 AS cor0
----
-96
-96
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5509
SELECT ALL 96 * cor0.col2 / - cor0.col2 col2 FROM tab0 AS cor0
----
-96
-96
-96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5510
SELECT ALL - CAST( col1 AS SIGNED ) FROM tab1 cor0
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-5510
SELECT ALL - CAST ( col1 AS INTEGER ) FROM tab1 cor0
----
-10
-13
-26

query I rowsort
SELECT cor0.col1 AS col0 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

query I rowsort
SELECT col1 * - 64 + - col0 AS col2 FROM tab2 cor0
----
-1167
-1991
-3854

query I rowsort
SELECT ALL - col0 + + 31 FROM tab2 AS cor0
----
-47
-48
24

query I rowsort
SELECT ( col1 ) + col0 AS col1 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT - cor0.col0 AS col0 FROM tab2, tab2 cor0, tab1 AS cor1
----
27 values hashing to c82df1de3cb666224690a83f3d790d79

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab1, tab2 AS cor2
----
3645 values hashing to b6efe6f7ec1a3daa3cc6ea9dd7d13455

query I rowsort
SELECT + 69 FROM tab1, tab1 AS cor0
----
9 values hashing to 85d9b90a03b9def161891b13085271f7

query I rowsort
SELECT ALL + + 18 AS col1 FROM tab0 AS cor0
----
18
18
18

onlyif mysql # use DIV operator for integer division
query I rowsort label-5519
SELECT DISTINCT - 49 DIV col0 FROM tab1
----
-16
0

skipif mysql # not compatible
query I rowsort label-5519
SELECT DISTINCT - 49 / col0 FROM tab1
----
-16
0

query I rowsort
SELECT ALL tab2.col1 * col0 * + col0 AS col2 FROM tab2
----
106097
1519
358956

onlyif mysql # use DIV operator for integer division
query I rowsort label-5521
SELECT ALL + 15 DIV tab1.col1 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-5521
SELECT ALL + 15 / tab1.col1 FROM tab1
----
0
1
1

query I rowsort
SELECT + 97 + col2 * + ( ( - col0 ) ) * col1 FROM tab0 AS cor0
----
-3298
-664021
-68015

query I rowsort
SELECT + ( col2 ) * + col0 + - 45 FROM tab2 AS cor0
----
144
1983
2957

query I rowsort
SELECT + + col2 + - 4 AS col2 FROM tab2 AS cor0
----
22
23
34

query I rowsort
SELECT - + 5 * ( - col2 ) + - col1 FROM tab0 AS cor0
----
-92
319
79

query I rowsort
SELECT ALL tab2.col0 + + 45 FROM tab2
----
123
124
52

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5527
SELECT CAST( + col1 AS SIGNED ) - - col0 * col0 FROM tab0
----
1322
662
8012

skipif mysql # not compatible
query I rowsort label-5527
SELECT CAST ( + col1 AS INTEGER ) - - col0 * col0 FROM tab0
----
1322
662
8012

query I rowsort
SELECT + ( - 7 ) AS col1 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 82db7c0390abae7ccf4512b1302a6466

query I rowsort
SELECT DISTINCT - 35 AS col0 FROM tab0, tab2 AS cor0
----
-35

query I rowsort
SELECT 66 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 897b6122ac98340b78905f39d81897fc

query I rowsort
SELECT 61 AS col0 FROM tab0
----
61
61
61

query I rowsort
SELECT + + col0 + ( - col2 ) FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT + + col1 * + col1 + col2 AS col0 FROM tab2 cor0
----
327
3507
988

query I rowsort
SELECT col0 * + col2 * + col0 FROM tab1
----
233472
486
614400

query I rowsort
SELECT - col1 * - 59 * 33 AS col0 FROM tab2 AS cor0
----
114873
33099
60357

query I rowsort
SELECT - col1 + + 43 AS col1 FROM tab2 AS cor0
----
-16
12
26

query I rowsort
SELECT - - col0 * - col0 AS col0 FROM tab0 AS cor0
----
-1225
-576
-7921

query I rowsort
SELECT col0 + - ( + col0 ) * col1 FROM tab1 AS cor0
----
-576
-75
-960

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5539
SELECT col0 + - CAST( col0 * col2 AS SIGNED ) FROM tab0
----
-7209
-768
0

skipif mysql # not compatible
query I rowsort label-5539
SELECT col0 + - CAST ( col0 * col2 AS INTEGER ) FROM tab0
----
-7209
-768
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5540
SELECT + + cor0.col1 DIV ( col2 ) col2 FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5540
SELECT + + cor0.col1 / ( col2 ) col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5541
SELECT - - CAST( 46 AS SIGNED ) * col2 - - 79 * - col2 * + col0 FROM tab2 cor0
----
-13689
-159016
-235410

skipif mysql # not compatible
query I rowsort label-5541
SELECT - - CAST ( 46 AS INTEGER ) * col2 - - 79 * - col2 * + col0 FROM tab2 cor0
----
-13689
-159016
-235410

query I rowsort
SELECT ALL + col0 * col0 + col0 * col1 AS col2 FROM tab1 AS cor0
----
4736
7440
87

onlyif mysql # use DIV operator for integer division
query I rowsort label-5543
SELECT - cor0.col2 - - 86 DIV col1 col2 FROM tab1 AS cor0
----
-49
-51
-90

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5543
SELECT - cor0.col2 - - 86 / col1 col2 FROM tab1 AS cor0
----
-49
-51
-90

query I rowsort
SELECT ALL cor0.col0 + col2 * col1 + - col0 AS col1 FROM tab1 cor0
----
1248
1404
570

query I rowsort
SELECT DISTINCT + col2 - col1 AS col0 FROM tab2 AS cor0
----
-33
-4
21

query I rowsort
SELECT DISTINCT col1 - + col0 AS col2 FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT + + cor0.col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c61d27a0022e6d022371dc58819ab272

query I rowsort
SELECT - - cor0.col1 + 3 * col2 + ( col2 + col2 ) * + 31 FROM tab2 AS cor0
----
1749
1786
2487

query I rowsort
SELECT 43 * + col1 - - col1 FROM tab0 AS cor0
----
3784
4004
4268

query I rowsort
SELECT DISTINCT + col2 * + 86 AS col0 FROM tab1 AS cor0
----
4644
4902
8256

query I rowsort
SELECT ALL - ( + col0 ) * + col1 + + 90 AS col0 FROM tab1 AS cor0
----
-550
-950
12

query I rowsort
SELECT DISTINCT + - 75 AS col0 FROM tab1 cor0
----
-75

query I rowsort
SELECT - 61 * ( col2 ) FROM tab1 AS cor0
----
-3294
-3477
-5856

query I rowsort
SELECT DISTINCT - col1 * - ( + col0 ) AS col1 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT DISTINCT - col1 * ( + 6 ) FROM tab2
----
-102
-186
-354

query I rowsort
SELECT tab2.col2 FROM tab2, tab0, tab2 cor0
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT DISTINCT ( - col0 ) * - col2 + - 65 * + cor0.col2 AS col0 FROM tab0 AS cor0
----
-1353
-30
1968

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5558
SELECT - CAST( - col0 AS SIGNED ) + + col1 AS col1 FROM tab2 cor0
----
137
38
96

skipif mysql # not compatible
query I rowsort label-5558
SELECT - CAST ( - col0 AS INTEGER ) + + col1 AS col1 FROM tab2 cor0
----
137
38
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-5559
SELECT DISTINCT - + col0 DIV col1 AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5559
SELECT DISTINCT - + col0 / col1 AS col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT + + col1 * 3 AS col2 FROM tab1 AS cor0
----
30
39
78

query I rowsort
SELECT - + col1 * + col0 AS col1 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT + col1 * col1 + col1 * - col0 + col0 FROM tab1 AS cor0
----
-476
-791
601

query I rowsort
SELECT ALL + col1 * col2 + 9 FROM tab0 cor0
----
106
2847
7471

query I rowsort
SELECT DISTINCT 81 * col0 AS col0 FROM tab0 AS cor0
----
1944
2835
7209

query I rowsort
SELECT ALL + col1 * cor0.col0 + 81 * 85 + col2 AS col2 FROM tab2 AS cor0
----
11513
7129
8266

query I rowsort
SELECT + + col1 * col2 * - col2 + cor0.col1 * - cor0.col0 AS col0 FROM tab1 AS cor0
----
-120848
-33130
-75894

query I rowsort
SELECT ALL + col2 + - col2 * + ( - col0 ) AS col2 FROM tab0 cor0
----
36
7380
825

query I rowsort
SELECT DISTINCT 12 + cor0.col1 AS col1 FROM tab0 AS cor0
----
103
109
98

query I rowsort
SELECT DISTINCT - - 71 FROM tab1 cor0
----
71

query I rowsort
SELECT + cor0.col1 + col1 * col1 AS col1 FROM tab1 AS cor0
----
110
182
702

query I rowsort
SELECT col2 * - 20 AS col1 FROM tab1 AS cor0
----
-1080
-1140
-1920

query I rowsort
SELECT DISTINCT - 9 * + col0 * + 7 AS col0 FROM tab2
----
-441
-4914
-4977

query I rowsort
SELECT - col1 * - cor0.col1 AS col2 FROM tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT DISTINCT + 35 FROM tab0, tab1 AS cor0, tab1 cor1
----
35

query I rowsort
SELECT + + cor0.col1 * col2 + col0 FROM tab2 AS cor0
----
1612
725
844

query I rowsort
SELECT ALL + col2 - - col0 FROM tab1 AS cor0
----
121
176
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-5577
SELECT DISTINCT + col0 * col1 + + col0 DIV + cor0.col2 AS col1 FROM tab0 AS cor0
----
2064
3430
8100

skipif mysql # not compatible
query I rowsort label-5577
SELECT DISTINCT + col0 * col1 + + col0 / + cor0.col2 AS col1 FROM tab0 AS cor0
----
2064
3430
8100

query I rowsort
SELECT ALL + col0 - + col0 * col0 AS col1 FROM tab2 AS cor0
----
-42
-6006
-6162

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * tab0.col0 + - col2 * col2 col0 FROM tab0
----
1375
3394
975

query I rowsort
SELECT + col2 + - col2 * col0 FROM tab0
----
-34
-7216
-759

query I rowsort
SELECT - col0 * col1 + col1 FROM tab0
----
-1978
-3298
-8008

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL >= col0
----

query I rowsort
SELECT ALL + col2 + + col1 * + col0 FROM tab0
----
2097
3396
8181

query I rowsort
SELECT ALL col2 * + cor0.col1 - + col1 AS col0 FROM tab2 AS cor0
----
1475
629
806

query I rowsort
SELECT ALL col0 + - col2 * col0 * col2 FROM tab2
----
-113997
-5096
-52650

query III rowsort
SELECT ALL * FROM tab0 WHERE + col2 < NULL
----

query I rowsort
SELECT DISTINCT + col2 * col2 + - col1 * col2 FROM tab0 AS cor0
----
-1749
-738
-96

query I rowsort
SELECT ALL col1 + + col1 * - col0 AS col2 FROM tab2
----
-1326
-186
-4543

query I rowsort
SELECT DISTINCT + tab1.col2 + + col0 + - col1 AS col0 FROM tab1
----
111
163
31

query I rowsort
SELECT DISTINCT + 53 * col0 FROM tab2 AS cor0
----
371
4134
4187

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + cor0.col2 col0 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT ALL + 53 * - col0 AS col0 FROM tab0 AS cor0
----
-1272
-1855
-4717

query I rowsort
SELECT - col0 + col0 * cor0.col1 FROM tab1 cor0
----
576
75
960

query I rowsort
SELECT ALL - 23 * col1 * - col2 FROM tab1 AS cor0
----
13110
28704
32292

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - col2 + + col1 * - cor0.col0 col2 FROM tab0 AS cor0
----
-15561
-3492
-4902

onlyif mysql # use DIV operator for integer division
query I rowsort label-5596
SELECT DISTINCT + + col2 + col2 DIV - col1 FROM tab1 AS cor0
----
52
89

skipif mysql # not compatible
query I rowsort label-5596
SELECT DISTINCT + + col2 + col2 / - col1 FROM tab1 AS cor0
----
52
89

query I rowsort
SELECT DISTINCT - 28 * - col2 AS col0 FROM tab0
----
2296
28
924

query I rowsort
SELECT ALL + col1 * - tab0.col1 FROM tab0
----
-7396
-8281
-9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col2 col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3

query I rowsort
SELECT ALL - col2 * + col1 * + col1 AS col1 FROM tab2 AS cor0
----
-10982
-25947
-90506

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + + col2 * cor0.col0 col0 FROM tab2 AS cor0
----
196
2106
3081

query I rowsort
SELECT - cor0.col1 AS col1 FROM tab2, tab2 cor0
----
9 values hashing to ccaa5dd3388d9ee0fea676fa35299fe5

query I rowsort
SELECT ALL + + col1 + - col0 * - col1 * - col0 + - col1 * + cor0.col2 * cor0.col0 FROM tab2 AS cor0
----
-157114
-478549
-7347

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * cor0.col2 col2 FROM tab2 AS cor0
----
-1444
-676
-729

query I rowsort
SELECT DISTINCT - col0 + col1 * + col1 AS col1 FROM tab0
----
7372
8192
9374

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL = col2 + + col1
----

query I rowsort
SELECT tab2.col0 + tab2.col2 FROM tab2
----
104
117
34

onlyif mysql # use DIV operator for integer division
query I rowsort label-5608
SELECT ALL + col2 + + col2 DIV + col2 FROM tab0
----
2
34
83

skipif mysql # not compatible
query I rowsort label-5608
SELECT ALL + col2 + + col2 / + col2 FROM tab0
----
2
34
83

query I rowsort
SELECT col2 + col1 * - col2 AS col2 FROM tab1
----
-1152
-1350
-513

query I rowsort
SELECT col1 * tab2.col1 - - col0 * col1 FROM tab2
----
1178
1632
8083

query I rowsort
SELECT ALL col0 - + col0 AS col2 FROM tab0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * col1 col1 FROM tab1
----
1040
640
78

query I rowsort
SELECT tab2.col2 + + col1 + - col0 AS col1 FROM tab2
----
-24
51
7

query I rowsort
SELECT + col2 * + col1 AS col0 FROM tab2 WHERE col2 + + col0 / + col0 + + tab2.col0 * + col2 IN ( - col1 )
----

query I rowsort
SELECT DISTINCT - col1 + - col2 AS col2 FROM tab0
----
-119
-173
-98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * tab2.col1 + col2 + col2 col0 FROM tab2
----
-1267
-163
-4550

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5617
SELECT + 90 * - col1 * CAST( ( - col0 ) * ( - col0 ) AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-136710
-32306040
-9548730

skipif mysql # not compatible
query I rowsort label-5617
SELECT + 90 * - col1 * CAST ( ( - col0 ) * ( - col0 ) AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-136710
-32306040
-9548730

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 31 * col0 * - col2 col1 FROM tab1 AS cor0
----
-113088
-238080
-5022

onlyif mysql # use DIV operator for integer division
query I rowsort label-5619
SELECT DISTINCT + col1 - col1 DIV + col1 AS col2 FROM tab1
----
12
25
9

skipif mysql # not compatible
query I rowsort label-5619
SELECT DISTINCT + col1 - col1 / + col1 AS col2 FROM tab1
----
12
25
9

query I rowsort
SELECT col0 - + col1 * + col2 FROM tab0
----
-2814
-62
-7373

query I rowsort
SELECT ALL col2 FROM tab1 WHERE ( NULL ) NOT BETWEEN NULL AND ( col0 )
----

query I rowsort
SELECT - cor0.col0 * col1 AS col0 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT - col1 + col2 * + col2 FROM tab2
----
1427
617
698

query I rowsort
SELECT - col1 + col1 * col1 FROM tab0
----
7310
8190
9312

query I rowsort
SELECT DISTINCT - col0 + - col2 * + col1 FROM tab0
----
-132
-2862
-7551

query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) NOT IN ( col2 )
----

query III rowsort
SELECT * FROM tab0 WHERE NULL > ( NULL )
----

query I rowsort
SELECT ALL - col0 + tab1.col2 * + col1 FROM tab1
----
1168
1401
506

query I rowsort
SELECT - col2 * + col0 + tab2.col1 + col0 AS col2 FROM tab2
----
-151
-1891
-2906

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col1 FROM tab1 WHERE NULL NOT IN ( - col2 )
----

query I rowsort
SELECT - col0 * + tab0.col2 + tab0.col1 FROM tab0
----
-706
-7207
62

query I rowsort
SELECT DISTINCT - col2 - - col0 AS col1 FROM tab0 WHERE NULL NOT IN ( - tab0.col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + col2 * col2 col0 FROM tab1
----
2919
3313
9296

query III rowsort
SELECT * FROM tab1 WHERE + col0 IN ( + col1 )
----

query I rowsort
SELECT + col0 * - col2 + col0 AS col0 FROM tab2
----
-182
-1950
-2923

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + col1 col2 FROM tab1
----
109
67
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + tab0.col1 * col1 col2 FROM tab0
----
7372
8192
9374

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5638
SELECT - - 26 * col1 + CAST( - col0 AS SIGNED ) - col0 FROM tab2 AS cor0
----
1378
284
792

skipif mysql # not compatible
query I rowsort label-5638
SELECT - - 26 * col1 + CAST ( - col0 AS INTEGER ) - col0 FROM tab2 AS cor0
----
1378
284
792

query I rowsort
SELECT + + 70 + - cor0.col2 AS col0 FROM tab2 AS cor0
----
32
43
44

query I rowsort
SELECT DISTINCT cor0.col2 + cor0.col0 * 54 + col1 * col1 FROM tab2 AS cor0
----
1366
4593
7719

query I rowsort
SELECT DISTINCT - + col2 * - col1 AS col2 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT - - cor0.col1 + + col0 AS col1 FROM tab0 cor0
----
110
132
180

onlyif mysql # use DIV operator for integer division
query I rowsort label-5643
SELECT DISTINCT + col2 * col0 DIV col1 AS col2 FROM tab0
----
0
80
9

skipif mysql # not compatible
query I rowsort label-5643
SELECT DISTINCT + col2 * col0 / col1 AS col2 FROM tab0
----
0
80
9

query I rowsort
SELECT col0 * - tab2.col1 * - col1 AS col0 FROM tab2
----
22831
271518
6727

query I rowsort
SELECT DISTINCT - 73 AS col0 FROM tab2
----
-73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - 10 ) col0 FROM tab1 AS cor0
----
-10
-10
-10

query I rowsort
SELECT ALL + col2 * + 42 AS col1 FROM tab1
----
2268
2394
4032

query I rowsort
SELECT - - 88 AS col2 FROM tab0 AS cor0
----
88
88
88

query I rowsort
SELECT + - col1 * + col2 * col0 FROM tab2 cor0
----
-119652
-51034
-5859

query I rowsort
SELECT DISTINCT - + 78 FROM tab1 AS cor0
----
-78

query I rowsort
SELECT DISTINCT + col2 * - col2 * + col2 AS col1 FROM tab2 AS cor0
----
-17576
-19683
-54872

query I rowsort
SELECT ALL + - ( - col2 ) FROM tab2 cor0
----
26
27
38

query I rowsort
SELECT col1 - col2 * col0 AS col1 FROM tab0
----
-706
-7207
62

query I rowsort
SELECT - col1 - 32 AS col1 FROM tab1
----
-42
-45
-58

query I rowsort
SELECT + col0 + ( - col0 ) FROM tab0
----
0
0
0

query I rowsort
SELECT - tab0.col1 - + tab0.col1 AS col1 FROM tab0
----
-172
-182
-194

query I rowsort
SELECT ALL + ( - col2 ) * + col1 AS col0 FROM tab1
----
-1248
-1404
-570

query I rowsort
SELECT + 27 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8

query I rowsort
SELECT + + ( cor0.col1 ) FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT ALL 66 * col2 * col1 AS col0 FROM tab1 AS cor0
----
37620
82368
92664

query I rowsort
SELECT DISTINCT + - ( col0 ) * 0 AS col2 FROM tab1 cor0
----
0

query I rowsort
SELECT ALL - ( cor0.col1 ) * 76 FROM tab2 AS cor0
----
-1292
-2356
-4484

query I rowsort
SELECT - 52 * col0 FROM tab2 AS cor0
----
-364
-4056
-4108

query I rowsort
SELECT ALL cor0.col2 * - cor0.col1 + + ( + col2 ) FROM tab1 AS cor0
----
-1152
-1350
-513

query I rowsort
SELECT DISTINCT - 93 * - col2 - - col2 AS col0 FROM tab1 AS cor0
----
5076
5358
9024

query I rowsort
SELECT DISTINCT col1 + col0 * + 69 FROM tab1
----
233
4426
5533

query I rowsort
SELECT DISTINCT cor0.col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
10
13
26

query I rowsort
SELECT ALL + 19 + cor0.col0 FROM tab0, tab1 cor0, tab0 AS cor1
----
27 values hashing to 498e5ef265639e7ff8dbb333a4772786

query I rowsort
SELECT col0 * ( col1 * + col0 ) FROM tab1
----
234
40960
83200

query I rowsort
SELECT - col1 + + 11 + + cor0.col0 FROM tab2 AS cor0
----
-13
30
73

query I rowsort
SELECT col0 + + col0 * col2 AS col1 FROM tab0 AS cor0
----
70
7387
816

query I rowsort
SELECT + col0 * col2 * col1 AS col1 FROM tab0 AS cor0
----
3395
664118
68112

query I rowsort
SELECT + + col1 * col2 + - col0 - + col0 FROM tab0 AS cor0
----
27
2790
7284

query I rowsort
SELECT DISTINCT + 98 AS col1 FROM tab0, tab0 AS cor0
----
98

query I rowsort
SELECT DISTINCT + 66 AS col1 FROM tab1, tab1 AS cor0
----
66

query I rowsort
SELECT DISTINCT - + 65 * + col0 AS col1 FROM tab1 AS cor0
----
-195
-4160
-5200

query I rowsort
SELECT + col2 * 51 FROM tab2 cor0
----
1326
1377
1938

query I rowsort
SELECT DISTINCT + 4 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
4

onlyif mysql # use DIV operator for integer division
query I rowsort label-5679
SELECT DISTINCT + 54 DIV + col2 FROM tab0 AS cor0
----
0
1
54

skipif mysql # not compatible
query I rowsort label-5679
SELECT DISTINCT + 54 / + col2 FROM tab0 AS cor0
----
0
1
54

query I rowsort
SELECT + + 4 * + 61 AS col1 FROM tab1 AS cor0
----
244
244
244

query I rowsort
SELECT ALL + 56 * 24 FROM tab1 AS cor0
----
1344
1344
1344

query I rowsort
SELECT ALL + + cor0.col0 + - ( + col2 ) * 21 AS col2 FROM tab2 AS cor0
----
-468
-560
-719

query I rowsort
SELECT + - 10 * 62 AS col1 FROM tab1 AS cor0
----
-620
-620
-620

onlyif mysql # use DIV operator for integer division
query I rowsort label-5684
SELECT - col2 DIV 18 AS col2 FROM tab0 AS cor0
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-5684
SELECT - col2 / 18 AS col2 FROM tab0 AS cor0
----
-1
-4
0

query I rowsort
SELECT ALL col0 + ( col2 ) FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT ALL + col1 + - 47 * col2 FROM tab2 AS cor0
----
-1163
-1238
-1769

query I rowsort
SELECT DISTINCT + col2 + ( ( - col0 ) ) * col2 FROM tab0 cor0
----
-34
-7216
-759

query I rowsort
SELECT cor0.col1 * 50 FROM tab0 AS cor0
----
4300
4550
4850

onlyif mysql # use DIV operator for integer division
query I rowsort label-5689
SELECT ALL - - col2 + col2 DIV - 54 AS col2 FROM tab2 AS cor0
----
26
27
38

skipif mysql # not compatible
query I rowsort label-5689
SELECT ALL - - col2 + col2 / - 54 AS col2 FROM tab2 AS cor0
----
26
27
38

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5690
SELECT DISTINCT 51 * - col0 + - CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5690
SELECT DISTINCT 51 * - col0 + - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query I rowsort
SELECT - - 53 AS col1 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 866ae1b4ab9e5b4043ac1bcfd413aaa6

query I rowsort
SELECT col2 + + tab1.col1 AS col0 FROM tab1
----
109
67
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-5693
SELECT + 48 * + col0 DIV + ( ( tab0.col0 ) ) - 68 AS col1 FROM tab0
----
-20
-20
-20

skipif mysql # not compatible
query I rowsort label-5693
SELECT + 48 * + col0 / + ( ( tab0.col0 ) ) - 68 AS col1 FROM tab0
----
-20
-20
-20

query I rowsort
SELECT 93 + col1 AS col0 FROM tab2
----
110
124
152

query I rowsort
SELECT + col2 - + col0 * 64 FROM tab0
----
-1503
-2239
-5614

query I rowsort
SELECT ALL tab0.col1 * + col1 + - col0 AS col0 FROM tab0
----
7372
8192
9374

query I rowsort
SELECT - col1 + - ( 87 ) FROM tab2 AS cor0
----
-104
-118
-146

onlyif mysql # use DIV operator for integer division
query I rowsort label-5698
SELECT ALL + col0 DIV - col1 AS col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5698
SELECT ALL + col0 / - col1 AS col1 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL - 40 FROM tab2, tab0 AS cor0
----
9 values hashing to f02f17e9bc17e514af018c6f245ed7a9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5700
SELECT CAST( 86 AS SIGNED ) FROM tab0 AS cor0
----
86
86
86

skipif mysql # not compatible
query I rowsort label-5700
SELECT CAST ( 86 AS INTEGER ) FROM tab0 AS cor0
----
86
86
86

skipif mysql # not compatible
query I rowsort
SELECT + CAST ( + col1 AS REAL ) AS col1 FROM tab1
----
10
13
26

query I rowsort
SELECT col1 + + col2 * 70 FROM tab2 AS cor0
----
1879
1921
2677

query I rowsort
SELECT ALL col2 * col2 * col2 AS col0 FROM tab2 cor0
----
17576
19683
54872

query I rowsort
SELECT DISTINCT 85 + - cor0.col2 FROM tab0, tab0 AS cor0
----
3
52
84

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5705
SELECT ALL + CAST( - col2 AS SIGNED ) + - tab2.col2 * + col0 * col2 FROM tab2
----
-114114
-5130
-52754

skipif mysql # not compatible
query I rowsort label-5705
SELECT ALL + CAST ( - col2 AS INTEGER ) + - tab2.col2 * + col0 * col2 FROM tab2
----
-114114
-5130
-52754

query I rowsort
SELECT ALL 92 FROM tab0, tab0 AS cor0
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a

onlyif mysql # use DIV operator for integer division
query I rowsort label-5707
SELECT col2 * col2 DIV + col0 + tab2.col2 FROM tab2
----
131
34
56

skipif mysql # not compatible
query I rowsort label-5707
SELECT col2 * col2 / + col0 + tab2.col2 FROM tab2
----
131
34
56

query I rowsort
SELECT - 57 * + tab1.col0 FROM tab1
----
-171
-3648
-4560

query I rowsort
SELECT tab2.col2 * - col0 + 65 AS col0 FROM tab2
----
-124
-1963
-2937

query I rowsort
SELECT ALL ( - cor0.col1 ) * col2 - 90 AS col2 FROM tab2 AS cor0
----
-1624
-736
-927

query I rowsort
SELECT DISTINCT cor0.col1 * + col1 AS col2 FROM tab2 AS cor0
----
289
3481
961

onlyif mysql # use DIV operator for integer division
query I rowsort label-5712
SELECT col0 DIV - col1 + + col0 AS col0 FROM tab1 AS cor0
----
3
58
74

skipif mysql # not compatible
query I rowsort label-5712
SELECT col0 / - col1 + + col0 AS col0 FROM tab1 AS cor0
----
3
58
74

query I rowsort
SELECT DISTINCT col0 + col0 * + 6 + + cor0.col1 FROM tab2 AS cor0
----
570
605
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 86 + col0 col2 FROM tab2 AS cor0
----
-7
-79
-8

query I rowsort
SELECT ALL col0 * col0 - + cor0.col1 AS col2 FROM tab0 cor0
----
1128
490
7830

query I rowsort
SELECT tab0.col2 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8

query I rowsort
SELECT ALL 89 + col2 * 40 FROM tab0 AS cor0
----
129
1409
3369

query I rowsort
SELECT + 20 + - col1 AS col2 FROM tab1 AS cor0
----
-6
10
7

query I rowsort
SELECT DISTINCT + cor0.col0 + - col1 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT + col0 + - 60 FROM tab2 AS cor0
----
-53
18
19

query I rowsort
SELECT ALL - - cor0.col1 - col0 FROM tab1 cor0
----
-54
-67
23

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5722
SELECT DISTINCT - col1 + - CAST( - cor0.col1 AS SIGNED ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5722
SELECT DISTINCT - col1 + - CAST ( - cor0.col1 AS INTEGER ) FROM tab0 AS cor0
----
0

query IIIIII rowsort
SELECT ALL * FROM tab0, tab0 AS cor0 WHERE cor0.col2 <= ( NULL )
----

query I rowsort
SELECT ALL - tab2.col0 * + 22 AS col0 FROM tab2
----
-154
-1716
-1738

query I rowsort
SELECT + col2 + 79 * col0 AS col2 FROM tab2 AS cor0
----
580
6188
6279

query I rowsort
SELECT - 65 AS col0 FROM tab0
----
-65
-65
-65

query I rowsort
SELECT ALL col0 + col0 * col0 AS col2 FROM tab0 AS cor0
----
1260
600
8010

onlyif mysql # use DIV operator for integer division
query I rowsort label-5728
SELECT DISTINCT + col2 DIV - 90 AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5728
SELECT DISTINCT + col2 / - 90 AS col1 FROM tab0 AS cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5729
SELECT - col2 DIV col0 AS col0 FROM tab0 cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-5729
SELECT - col2 / col0 AS col0 FROM tab0 cor0
----
-1
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5730
SELECT ALL + 55 + 95 DIV + col2 AS col1 FROM tab1 cor0
----
55
56
56

skipif mysql # not compatible
query I rowsort label-5730
SELECT ALL + 55 + 95 / + col2 AS col1 FROM tab1 cor0
----
55
56
56

query I rowsort
SELECT ALL + 49 AS col2 FROM tab0 AS cor0
----
49
49
49

query I rowsort
SELECT - + col2 + + cor0.col2 AS col1 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - 23 * 13 * cor0.col1 FROM tab1 cor0
----
-2990
-3887
-7774

query I rowsort
SELECT DISTINCT 25 * col1 + col2 * 38 AS col2 FROM tab1 AS cor0
----
2416
2702
3973

query I rowsort
SELECT - - 52 FROM tab0 cor0
----
52
52
52

query I rowsort
SELECT - col0 * - col1 + 85 - cor0.col0 * + col0 FROM tab1 AS cor0
----
-3371
-5275
154

query I rowsort
SELECT DISTINCT - cor0.col2 * - col2 + - col0 * + col0 AS col2 FROM tab1 AS cor0
----
-847
2816
2907

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * - col2 + col2 + col2 col0 FROM tab0 AS cor0
----
1155
3
6888

query I rowsort
SELECT ALL + col0 + col0 + col0 AS col0 FROM tab0
----
105
267
72

query I rowsort
SELECT col1 * + col1 + - ( + col0 ) - + col2 * - 94 * + ( col2 + + col1 * - col2 ) FROM tab2 cor0
----
-2054826
-2171566
-3682149

query I rowsort
SELECT ALL - col0 + + col2 + + col1 * + col0 * 57 AS col2 FROM tab1
----
36473
4497
59296

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab1, tab2 AS cor2
----
3645 values hashing to 85e6cb74738e0d8388af8fb625b2bd38

query I rowsort
SELECT + col1 * + 0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT 9 FROM tab0, tab0 AS cor0
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b

query I rowsort
SELECT + cor0.col1 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775

query I rowsort
SELECT + ( - cor0.col1 ) * + col0 FROM tab2 cor0
----
-1343
-217
-4602

query I rowsort
SELECT 88 * col0 FROM tab0 AS cor0
----
2112
3080
7832

query I rowsort
SELECT ALL 70 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 9758da65ae4711e3e8c8def2fe026911

query I rowsort
SELECT - + col2 * - 65 FROM tab1 AS cor0
----
3510
3705
6240

query I rowsort
SELECT DISTINCT - + col0 * + col0 * - col1 AS col0 FROM tab1 AS cor0
----
234
40960
83200

query I rowsort
SELECT ALL - col1 + ( col1 ) * 12 * 64 FROM tab1 AS cor0
----
19942
7670
9971

query I rowsort
SELECT DISTINCT col2 + 21 FROM tab2 AS cor0
----
47
48
59

query I rowsort
SELECT ALL + 92 + col2 * + col1 + + 17 FROM tab2 AS cor0
----
1643
755
946

query I rowsort
SELECT ALL + - col1 + 82 FROM tab1 AS cor0
----
56
69
72

onlyif mysql # use DIV operator for integer division
query I rowsort label-5755
SELECT 43 DIV + 58 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-5755
SELECT 43 / + 58 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT ALL + col1 + - col0 + 38 AS col1 FROM tab2
----
-24
19
62

query I rowsort
SELECT ALL col2 + + col0 * - tab2.col1 FROM tab2
----
-1305
-190
-4576

query I rowsort
SELECT - + col2 + + col2 + + col0 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT - 81 FROM tab2, tab0 AS cor0, tab1 AS cor1, tab0 AS cor2
----
81 values hashing to bab7cb237ee73283089388c330f59598

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 67 * + col2 col2 FROM tab2 AS cor0
----
-1742
-1809
-2546

onlyif mysql # use DIV operator for integer division
query I rowsort label-5761
SELECT + - cor0.col0 + cor0.col0 DIV - col2 AS col0 FROM tab1 AS cor0
----
-3
-65
-80

skipif mysql # not compatible
query I rowsort label-5761
SELECT + - cor0.col0 + cor0.col0 / - col2 AS col0 FROM tab1 AS cor0
----
-3
-65
-80

query I rowsort
SELECT DISTINCT - + col2 + 30 FROM tab2 AS cor0
----
-8
3
4

query I rowsort
SELECT DISTINCT - cor0.col2 + - 2 AS col1 FROM tab2 AS cor0
----
-28
-29
-40

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5764
SELECT + col2 * CAST( NULL AS SIGNED ) + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5764
SELECT + col2 * CAST ( NULL AS INTEGER ) + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - - col0 * - 77 + col0 FROM tab2 AS cor0
----
-532
-5928
-6004

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5766
SELECT DISTINCT col2 + CAST( + col1 AS SIGNED ) * - cor0.col0 AS col1 FROM tab1 AS cor0
----
-24
-583
-944

skipif mysql # not compatible
query I rowsort label-5766
SELECT DISTINCT col2 + CAST ( + col1 AS INTEGER ) * - cor0.col0 AS col1 FROM tab1 AS cor0
----
-24
-583
-944

onlyif mysql # use DIV operator for integer division
query I rowsort label-5767
SELECT + col2 DIV 92 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5767
SELECT + col2 / 92 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + col2 + + col0 ) * ( col0 ) col2 FROM tab2
----
238
8112
9243

query I rowsort
SELECT DISTINCT 66 * col1 FROM tab1
----
1716
660
858

query I rowsort
SELECT - col1 + cor0.col1 * + col0 * cor0.col2 FROM tab1 AS cor0
----
36470
4186
99827

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5771
SELECT + + col0 / + CAST( NULL AS DECIMAL ) + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5771
SELECT + + col0 / + CAST ( NULL AS REAL ) + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 + 33 * - col2 FROM tab0 AS cor0
----
-1065
-2617
2

query I rowsort
SELECT ALL + col1 + + 71 FROM tab0 AS cor0
----
157
162
168

query I rowsort
SELECT ALL cor0.col1 * + ( - 34 * col0 ) FROM tab2 AS cor0
----
-156468
-45662
-7378

query I rowsort
SELECT DISTINCT - col0 * - col2 - col0 AS col2 FROM tab1
----
159
3584
7600

query I rowsort
SELECT + col1 * - ( - 10 ) + cor0.col1 FROM tab1 AS cor0
----
110
143
286

query I rowsort
SELECT ALL + col0 + 16 FROM tab1
----
19
80
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-5778
SELECT col2 DIV - 61 FROM tab1 cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-5778
SELECT col2 / - 61 FROM tab1 cor0
----
-1
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + tab1.col2 col0 FROM tab1
----
108
114
192

query I rowsort
SELECT ALL 42 + col1 + col0 * + cor0.col0 FROM tab1 AS cor0
----
4148
6455
77

query I rowsort
SELECT col0 + tab1.col0 * + col1 AS col0 FROM tab1
----
1120
704
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-5782
SELECT DISTINCT col0 DIV - 18 AS col2 FROM tab1
----
-3
-4
0

skipif mysql # not compatible
query I rowsort label-5782
SELECT DISTINCT col0 / - 18 AS col2 FROM tab1
----
-3
-4
0

query I rowsort
SELECT DISTINCT - tab0.col2 * + 79 * 70 AS col0 FROM tab0
----
-182490
-453460
-5530

skipif mysql # not compatible
query I rowsort
SELECT ALL col2 + + tab1.col1 * - col2 + col1 * CAST ( - col1 AS REAL ) FROM tab1
----
-1321
-2026
-613

query I rowsort
SELECT ALL col0 * - ( col1 ) + col0 AS col0 FROM tab1
----
-576
-75
-960

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5786
SELECT DISTINCT - col0 * + CAST( col2 AS SIGNED ) + - col0 + tab2.col0 AS col0 FROM tab2
----
-189
-2028
-3002

skipif mysql # not compatible
query I rowsort label-5786
SELECT DISTINCT - col0 * + CAST ( col2 AS INTEGER ) + - col0 + tab2.col0 AS col0 FROM tab2
----
-189
-2028
-3002

query I rowsort
SELECT + col0 * - 82 FROM tab0
----
-1968
-2870
-7298

query I rowsort
SELECT ALL 74 AS col0 FROM tab0 AS cor0
----
74
74
74

onlyif mysql # use DIV operator for integer division
query I rowsort label-5789
SELECT + col0 * col1 - + col0 DIV + col0 FROM tab0 AS cor0
----
2063
3394
8098

skipif mysql # not compatible
query I rowsort label-5789
SELECT + col0 * col1 - + col0 / + col0 FROM tab0 AS cor0
----
2063
3394
8098

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 71 col0 FROM tab2, tab0, tab0 AS cor0
----
-71

query I rowsort
SELECT + 86 + + col1 FROM tab0 AS cor0
----
172
177
183

onlyif mysql # use DIV operator for integer division
query I rowsort label-5792
SELECT 46 * col1 + - ( col0 ) DIV + col1 FROM tab2 AS cor0
----
1426
2713
778

skipif mysql # not compatible
query I rowsort label-5792
SELECT 46 * col1 + - ( col0 ) / + col1 FROM tab2 AS cor0
----
1426
2713
778

query I rowsort
SELECT DISTINCT + 72 * col2 + + 3 FROM tab0 AS cor0
----
2379
5907
75

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5794
SELECT DISTINCT + 23 * + col0 + CAST( NULL AS SIGNED ) * col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5794
SELECT DISTINCT + 23 * + col0 + CAST ( NULL AS INTEGER ) * col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + - cor0.col2 * + col2 * + 94 AS col0 FROM tab2 AS cor0
----
-135736
-63544
-68526

onlyif mysql # use DIV operator for integer division
query I rowsort label-5796
SELECT + col0 DIV + col1 + cor0.col0 FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-5796
SELECT + col0 / + col1 + cor0.col0 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT DISTINCT - cor0.col0 * - col2 FROM tab2 cor0
----
189
2028
3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-5798
SELECT DISTINCT - col1 + + col1 DIV ( + col1 ) FROM tab1 AS cor0
----
-12
-25
-9

skipif mysql # not compatible
query I rowsort label-5798
SELECT DISTINCT - col1 + + col1 / ( + col1 ) FROM tab1 AS cor0
----
-12
-25
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 78 - - col1 col2 FROM tab2
----
109
137
95

query I rowsort
SELECT ALL + col1 * col0 - col2 FROM tab2
----
1305
190
4576

query I rowsort
SELECT DISTINCT 56 AS col1 FROM tab0, tab1 AS cor0
----
56

query I rowsort
SELECT + tab0.col0 + - col1 AS col1 FROM tab0
----
-2
-62
-62

query I rowsort
SELECT DISTINCT + 44 FROM tab1, tab0 AS cor0
----
44

query I rowsort
SELECT + tab2.col1 * 27 AS col0 FROM tab2
----
1593
459
837

onlyif mysql # use DIV operator for integer division
query I rowsort label-5805
SELECT DISTINCT - col2 - col2 DIV tab1.col2 AS col0 FROM tab1
----
-55
-58
-97

skipif mysql # not compatible
query I rowsort label-5805
SELECT DISTINCT - col2 - col2 / tab1.col2 AS col0 FROM tab1
----
-55
-58
-97

query I rowsort
SELECT - 13 * 52 AS col2 FROM tab0 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 1a54cd30bc4312a4d9f916b2dcc985a4

query I rowsort
SELECT DISTINCT - cor0.col2 - col0 FROM tab0 AS cor0
----
-171
-36
-57

onlyif mysql # use DIV operator for integer division
query I rowsort label-5808
SELECT ALL + 10 + col1 DIV + ( col0 ) col0 FROM tab0 AS cor0
----
11
12
13

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5808
SELECT ALL + 10 + col1 / + ( col0 ) col0 FROM tab0 AS cor0
----
11
12
13

query I rowsort
SELECT DISTINCT + col0 + - col1 * - cor0.col0 AS col0 FROM tab1 AS cor0
----
1120
704
81

query I rowsort
SELECT + 5 - - col1 FROM tab2 AS cor0
----
22
36
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 89 * col0 col1 FROM tab0 cor0
----
-2136
-3115
-7921

query I rowsort
SELECT - + 28 AS col2 FROM tab0 AS cor0
----
-28
-28
-28

query I rowsort
SELECT 89 * col2 AS col0 FROM tab1
----
4806
5073
8544

query I rowsort
SELECT DISTINCT ( col2 ) * col2 AS col0 FROM tab1
----
2916
3249
9216

query I rowsort
SELECT tab2.col0 + - 77 FROM tab2
----
-70
1
2

query I rowsort
SELECT ( col2 * col1 ) + + 59 AS col2 FROM tab1
----
1307
1463
629

query I rowsort
SELECT - ( ( + col0 ) ) * 41 AS col0 FROM tab0
----
-1435
-3649
-984

query I rowsort
SELECT - ( col1 ) + col0 AS col0 FROM tab0
----
-2
-62
-62

query I rowsort
SELECT + 47 FROM tab2, tab2 AS cor0
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

query I rowsort
SELECT ALL + col2 * + 38 FROM tab2 cor0
----
1026
1444
988

query I rowsort
SELECT ALL + - col2 + - col0 * + cor0.col1 AS col0 FROM tab0 AS cor0
----
-2097
-3396
-8181

query I rowsort
SELECT DISTINCT 4 * ( - col0 ) AS col2 FROM tab0 cor0
----
-140
-356
-96

query I rowsort
SELECT - ( + col2 ) * + col0 + cor0.col1 * + col1 AS col1 FROM tab2 AS cor0
----
-2713
1453
772

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5824
SELECT - CAST( - 46 AS SIGNED ) * col1 FROM tab2 AS cor0
----
1426
2714
782

skipif mysql # not compatible
query I rowsort label-5824
SELECT - CAST ( - 46 AS INTEGER ) * col1 FROM tab2 AS cor0
----
1426
2714
782

query I rowsort
SELECT 70 + + cor0.col2 FROM tab2 AS cor0
----
108
96
97

query I rowsort
SELECT ALL - cor0.col1 * - cor0.col0 FROM tab0 AS cor0
----
2064
3395
8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-5827
SELECT DISTINCT col1 DIV + cor0.col2 AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5827
SELECT DISTINCT col1 / + cor0.col2 AS col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT col2 * col1 + ( + 76 * col1 ) FROM tab0 cor0
----
14378
7469
9374

query I rowsort
SELECT ALL - + 1 + col1 FROM tab2 AS cor0
----
16
30
58

query I rowsort
SELECT + - col0 * cor0.col1 AS col1 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT ALL - cor0.col1 + col2 * - 84 * col1 AS col1 FROM tab0 AS cor0
----
-238478
-626899
-8245

query I rowsort
SELECT - col1 * col0 * - cor0.col2 AS col0 FROM tab2 AS cor0
----
119652
51034
5859

query I rowsort
SELECT DISTINCT col2 + ( col0 ) + - ( col2 ) FROM tab0
----
24
35
89

query I rowsort
SELECT - 58 + tab1.col2 + - col2 AS col1 FROM tab1
----
-58
-58
-58

query I rowsort
SELECT + col2 * - col1 + cor0.col0 AS col2 FROM tab1 AS cor0
----
-1168
-1401
-506

onlyif mysql # use DIV operator for integer division
query I rowsort label-5836
SELECT DISTINCT + col2 DIV cor0.col1 + col1 FROM tab1 AS cor0
----
15
20
28

skipif mysql # not compatible
query I rowsort label-5836
SELECT DISTINCT + col2 / cor0.col1 + col1 FROM tab1 AS cor0
----
15
20
28

query I rowsort
SELECT DISTINCT - col1 + 84 * - col2 FROM tab1 AS cor0
----
-4562
-4798
-8077

query I rowsort
SELECT ALL col1 * - col0 + cor0.col0 AS col1 FROM tab1 AS cor0
----
-576
-75
-960

query I rowsort
SELECT ALL + cor0.col1 * 68 FROM tab2 AS cor0
----
1156
2108
4012

query I rowsort
SELECT DISTINCT - + col0 * + ( - ( col2 ) ) FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT DISTINCT + 33 FROM tab1 AS cor0 CROSS JOIN tab0, tab0 AS cor1
----
33

query I rowsort
SELECT ALL col2 + ( + ( col0 ) ) FROM tab2
----
104
117
34

query I rowsort
SELECT - col1 * + 87 + ( cor0.col0 ) FROM tab0 AS cor0
----
-7458
-7828
-8404

query I rowsort
SELECT DISTINCT + col1 * + ( col2 * + col0 ) + + 70 AS col2 FROM tab2 AS cor0
----
119722
51104
5929

onlyif mysql # use DIV operator for integer division
query I rowsort label-5845
SELECT DISTINCT + cor0.col2 DIV - 21 + + col1 FROM tab1 AS cor0
----
24
8
9

skipif mysql # not compatible
query I rowsort label-5845
SELECT DISTINCT + cor0.col2 / - 21 + + col1 FROM tab1 AS cor0
----
24
8
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-5846
SELECT cor0.col0 DIV + 39 AS col1 FROM tab0 AS cor0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-5846
SELECT cor0.col0 / + 39 AS col1 FROM tab0 AS cor0
----
0
0
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 57 + - col0 col2 FROM tab0
----
-146
-81
-92

onlyif mysql # use DIV operator for integer division
query I rowsort label-5848
SELECT ALL + cor0.col1 DIV + cor0.col2 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5848
SELECT ALL + cor0.col1 / + cor0.col2 AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col0 * 77 FROM tab0 cor0
----
1848
2695
6853

onlyif mysql # use DIV operator for integer division
query I rowsort label-5850
SELECT col1 DIV 60 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5850
SELECT col1 / 60 FROM tab1 cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5851
SELECT DISTINCT col1 + CAST( NULL AS DECIMAL ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5851
SELECT DISTINCT col1 + CAST ( NULL AS REAL ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort
SELECT ( 29 ) * - col1 + + CAST ( col1 AS REAL ) - + col2 AS col0 FROM tab0 AS cor0
----
-2441
-2630
-2717

query I rowsort
SELECT ALL - col0 + 70 FROM tab0
----
-19
35
46

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5854
SELECT DISTINCT tab0.col0 * - CAST( NULL AS SIGNED ) + col0 + - tab0.col0 AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5854
SELECT DISTINCT tab0.col0 * - CAST ( NULL AS INTEGER ) + col0 + - tab0.col0 AS col0 FROM tab0
----
NULL

query I rowsort
SELECT - col2 * + cor0.col1 + - col2 * ( + cor0.col1 + + col0 ) * - ( col0 + col1 ) FROM tab0 AS cor0
----
17327
2649338
396462

query I rowsort
SELECT - 37 + + col1 FROM tab1 AS cor0
----
-11
-24
-27

onlyif mysql # use DIV operator for integer division
query I rowsort label-5857
SELECT + + col0 + col0 DIV col1 FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-5857
SELECT + + col0 + col0 / col1 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT + + col0 * col2 * + cor0.col0 + - 96 * - 42 - - col1 AS col2 FROM tab2 AS cor0
----
162275
241207
5386

query I rowsort
SELECT + 64 + col2 AS col2 FROM tab0 AS cor0
----
146
65
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5860
SELECT CAST( NULL AS SIGNED ) + + 28 FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-5860
SELECT CAST ( NULL AS INTEGER ) + + 28 FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ALL cor0.col1 + - col2 + - 75 AS col2 FROM tab0 cor0
----
-22
-66
21

query I rowsort
SELECT - col2 + col1 * + col2 FROM tab1
----
1152
1350
513

query I rowsort
SELECT - 77 + + 72 * cor0.col1 FROM tab1 cor0
----
1795
643
859

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 53 + 14 * col0 * - 47 col1 FROM tab0 AS cor0
----
-15845
-23083
-58615

query I rowsort
SELECT DISTINCT - cor0.col1 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-17
-31
-59

query I rowsort
SELECT DISTINCT + ( + col1 * col0 ) FROM tab2
----
1343
217
4602

query I rowsort
SELECT + 76 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5

query I rowsort
SELECT 16 AS col0 FROM tab1
----
16
16
16

query I rowsort
SELECT ALL - 3 * cor1.col2 AS col2 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to ba26ed3b3fc465bbb9ce9717ff1c2681

query I rowsort
SELECT - col1 + - cor0.col2 * + col1 FROM tab0 AS cor0
----
-194
-2924
-7553

query I rowsort
SELECT ALL + - col0 * ( + col2 ) FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT DISTINCT - - ( - col0 ) * col2 AS col2 FROM tab2 AS cor0
----
-189
-2028
-3002

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5873
SELECT - CAST( NULL AS SIGNED ) AS col1 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-5873
SELECT - CAST ( NULL AS INTEGER ) AS col1 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 17 + - col1 col1 FROM tab2 cor0
----
-34
-48
-76

query I rowsort
SELECT DISTINCT 46 * + col0 + - col2 FROM tab1
----
2887
3584
84

query I rowsort
SELECT 89 + col1 * tab2.col1 * tab2.col2 AS col0 FROM tab2
----
11071
26036
90595

query I rowsort
SELECT col0 - - col2 AS col0 FROM tab0
----
171
36
57

query I rowsort
SELECT - 80 AS col1 FROM tab0, tab2, tab2 cor0
----
27 values hashing to 26dbcc98d4b4e864ffa31be685a5dfbd

query I rowsort
SELECT col2 + - col2 * + 94 AS col0 FROM tab2
----
-2418
-2511
-3534

onlyif mysql # use DIV operator for integer division
query I rowsort label-5880
SELECT col0 DIV col0 + + col0 FROM tab0
----
25
36
90

skipif mysql # not compatible
query I rowsort label-5880
SELECT col0 / col0 + + col0 FROM tab0
----
25
36
90

query I rowsort
SELECT + col2 * col1 * - 46 FROM tab2 AS cor0
----
-29716
-38502
-70564

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + col1 col2 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT + - col1 + col1 * ( 4 ) AS col0 FROM tab0 AS cor0
----
258
273
291

onlyif mysql # use DIV operator for integer division
query I rowsort label-5884
SELECT col1 * 13 DIV col2 FROM tab1
----
1
2
6

skipif mysql # not compatible
query I rowsort label-5884
SELECT col1 * 13 / col2 FROM tab1
----
1
2
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * - ( ( - col0 ) ) col1 FROM tab1
----
1040
640
78

query I rowsort
SELECT + 62 + 48 * tab0.col1 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 1238e9a9d1c7dbc2e59c7e238bba5022

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab2.col1 * col0 * - col2 col2 FROM tab2
----
-119652
-51034
-5859

onlyif mysql # use DIV operator for integer division
query I rowsort label-5888
SELECT + col2 DIV - tab0.col1 AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5888
SELECT + col2 / - tab0.col1 AS col0 FROM tab0
----
0
0
0

query I rowsort
SELECT + cor0.col2 + + 49 * - col0 + - col2 * 90 FROM tab1 AS cor0
----
-12464
-4953
-8209

query I rowsort
SELECT tab1.col1 - + ( - ( col0 ) ) * col1 FROM tab1
----
104
1053
650

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5891
SELECT + - CAST( NULL AS DECIMAL ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5891
SELECT + - CAST ( NULL AS REAL ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 87 * - col1 * col0 FROM tab2 cor0
----
-116841
-18879
-400374

query I rowsort
SELECT tab1.col2 + - col2 + tab1.col1 * + 92 * - col0 FROM tab1
----
-58880
-7176
-95680

onlyif mysql # use DIV operator for integer division
query I rowsort label-5894
SELECT - col0 DIV - ( + col0 ) AS col1 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5894
SELECT - col0 / - ( + col0 ) AS col1 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT - col0 * col2 + + cor0.col2 + cor0.col0 * 61 FROM tab0 cor0
----
-1787
2101
705

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - - CAST ( col0 AS REAL ) AS col1 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT col2 * col0 + + cor0.col0 * col1 FROM tab2 AS cor0
----
406
4345
6630

query I rowsort
SELECT + col1 + - 15 * col0 AS col2 FROM tab1 AS cor0
----
-1187
-19
-950

query I rowsort
SELECT col2 * 41 AS col2 FROM tab1
----
2214
2337
3936

query I rowsort
SELECT ( + col1 ) + - col2 * col1 + col2 * + tab0.col0 FROM tab0
----
-1960
-73
35

query I rowsort
SELECT + col2 + col0 + col0 FROM tab1
----
185
256
60

query I rowsort
SELECT DISTINCT + - tab0.col2 * + cor0.col1 AS col1 FROM tab0, tab2, tab2 AS cor0
----
9 values hashing to 908fcf1ad35b8d9385588bf778296344

query I rowsort
SELECT DISTINCT 3 + 73 AS col2 FROM tab1 AS cor0
----
76

query I rowsort
SELECT ALL 95 * col0 + col0 FROM tab0 AS cor0
----
2304
3360
8544

query I rowsort
SELECT ALL - col2 * + col0 * + col2 FROM tab2 AS cor0
----
-114076
-5103
-52728

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5906
SELECT + + CAST( NULL AS SIGNED ) * + 26 + + col2 - col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5906
SELECT + + CAST ( NULL AS INTEGER ) * + 26 + + col2 - col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 21 + - col2 - - col0 col2 FROM tab0 AS cor0
----
12
28
55

query I rowsort
SELECT DISTINCT + - cor0.col2 * col2 FROM tab2 AS cor0
----
-1444
-676
-729

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + - col1 * col2 * col0 + + cor0.col1 col1 FROM tab1 cor0
----
-36527
-4240
-99923

query I rowsort
SELECT - + ( + col1 ) + - col0 * - col1 FROM tab1 AS cor0
----
1027
52
630

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + col0 col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT col0 - col0 * col0 FROM tab0 AS cor0
----
-1190
-552
-7832

query I rowsort
SELECT ALL + + col1 + - col2 AS col0 FROM tab1 cor0
----
-28
-47
-83

onlyif mysql # use DIV operator for integer division
query I rowsort label-5914
SELECT - cor0.col1 + - col0 DIV + cor0.col2 AS col2 FROM tab1 cor0
----
-11
-13
-26

skipif mysql # not compatible
query I rowsort label-5914
SELECT - cor0.col1 + - col0 / + cor0.col2 AS col2 FROM tab1 cor0
----
-11
-13
-26

query I rowsort
SELECT DISTINCT - col0 * col2 + col1 + col1 AS col0 FROM tab0 AS cor0
----
-620
-7116
159

query I rowsort
SELECT col2 + col1 + + col2 FROM tab2 AS cor0
----
111
85
93

onlyif mysql # use DIV operator for integer division
query I rowsort label-5917
SELECT DISTINCT - cor0.col2 DIV col2 FROM tab0 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-5917
SELECT DISTINCT - cor0.col2 / col2 FROM tab0 cor0
----
-1

query I rowsort
SELECT ALL col1 + 15 + col2 * col1 FROM tab1
----
1276
1445
595

query I rowsort
SELECT ALL + ( 9 ) + + col1 AS col1 FROM tab2
----
26
40
68

onlyif mysql # use DIV operator for integer division
query I rowsort label-5920
SELECT ALL col1 DIV col1 + col1 col2 FROM tab1
----
11
14
27

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5920
SELECT ALL col1 / col1 + col1 col2 FROM tab1
----
11
14
27

query I rowsort
SELECT - - col2 * col2 - col1 * col1 FROM tab0 AS cor0
----
-1557
-6307
-9408

query I rowsort
SELECT DISTINCT + 28 * cor0.col1 FROM tab1 cor0
----
280
364
728

query I rowsort
SELECT - 81 + col2 - col2 * + col2 FROM tab1
----
-2943
-3273
-9201

query I rowsort
SELECT ALL - col0 - - col2 * - col1 FROM tab2
----
-1612
-725
-844

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5925
SELECT - + col0 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5925
SELECT - + col0 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5926
SELECT ALL col1 * col2 DIV col0 FROM tab2 AS cor0
----
119
19
8

skipif mysql # not compatible
query I rowsort label-5926
SELECT ALL col1 * col2 / col0 FROM tab2 AS cor0
----
119
19
8

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5927
SELECT - col2 * + CAST( 32 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-1056
-2624
-32

skipif mysql # not compatible
query I rowsort label-5927
SELECT - col2 * + CAST ( 32 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-1056
-2624
-32

query I rowsort
SELECT DISTINCT - + col1 + - 29 FROM tab2 AS cor0
----
-46
-60
-88

query I rowsort
SELECT DISTINCT + col2 * - col2 * col1 FROM tab1 cor0
----
-119808
-32490
-75816

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5930
SELECT - cor0.col0 * - CAST( + col0 AS SIGNED ) FROM tab0 AS cor0
----
1225
576
7921

skipif mysql # not compatible
query I rowsort label-5930
SELECT - cor0.col0 * - CAST ( + col0 AS INTEGER ) FROM tab0 AS cor0
----
1225
576
7921

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * col0 * col2 + col0 + col0 col0 FROM tab0 cor0
----
1295
19056
649700

query I rowsort
SELECT DISTINCT + col1 + - 16 FROM tab0 AS cor0
----
70
75
81

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5933
SELECT CAST( NULL AS DECIMAL ) * cor0.col2 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-5933
SELECT CAST ( NULL AS REAL ) * cor0.col2 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT DISTINCT + ( col1 ) AS col1 FROM tab1
----
10
13
26

query I rowsort
SELECT ALL - col1 + + 78 * col1 FROM tab0 AS cor0
----
6622
7007
7469

query I rowsort
SELECT DISTINCT col2 + - col1 * col1 FROM tab2 AS cor0
----
-251
-3455
-934

query I rowsort
SELECT ALL - col2 * col2 * + 25 FROM tab0 cor0
----
-168100
-25
-27225

query I rowsort
SELECT DISTINCT + col2 * + ( - col1 ) + col0 FROM tab0 AS cor0
----
-2814
-62
-7373

query I rowsort
SELECT ALL - col0 - + 57 FROM tab1
----
-121
-137
-60

query I rowsort
SELECT ALL - 41 AS col2 FROM tab1 AS cor0
----
-41
-41
-41

query I rowsort
SELECT ALL - col0 + col0 * - cor0.col0 FROM tab0 AS cor0
----
-1260
-600
-8010

query I rowsort
SELECT col2 * + col0 + - col2 AS col2 FROM tab0
----
34
7216
759

query I rowsort
SELECT DISTINCT cor0.col0 AS col0 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
3
64
80

query I rowsort
SELECT - col0 * col2 + + 52 FROM tab0 AS cor0
----
-7246
-740
17

query I rowsort
SELECT tab2.col1 * col0 + tab2.col0 + - 51 AS col1 FROM tab2
----
1371
173
4629

query I rowsort
SELECT ALL + col2 * + col1 + col0 * + tab0.col2 FROM tab0
----
132
14760
3630

query I rowsort
SELECT + + 29 AS col2 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 4c56285992bcb76e1aac22e6d23d1318

query I rowsort
SELECT ALL + + 37 + col0 AS col2 FROM tab1 AS cor0
----
101
117
40

query I rowsort
SELECT ALL - - cor0.col2 * col2 AS col1 FROM tab0 AS cor0
----
1
1089
6724

onlyif mysql # use DIV operator for integer division
query I rowsort label-5950
SELECT + col1 DIV + col1 - col2 AS col1 FROM tab0 AS cor0
----
-32
-81
0

skipif mysql # not compatible
query I rowsort label-5950
SELECT + col1 / + col1 - col2 AS col1 FROM tab0 AS cor0
----
-32
-81
0

query I rowsort
SELECT ALL col1 + + col2 * 62 FROM tab2 cor0
----
1671
1705
2373

query I rowsort
SELECT ALL + 27 + tab0.col0 FROM tab0
----
116
51
62

query I rowsort
SELECT + ( col1 ) * + col2 AS col1 FROM tab1
----
1248
1404
570

query I rowsort
SELECT DISTINCT col2 - 7 AS col1 FROM tab1 AS cor0
----
47
50
89

query I rowsort
SELECT - cor0.col1 * col1 + cor0.col2 FROM tab0 AS cor0
----
-7363
-8199
-9408

query I rowsort
SELECT DISTINCT - col2 + - cor0.col2 FROM tab2 AS cor0
----
-52
-54
-76

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5957
SELECT ALL col0 * CAST( - col0 AS SIGNED ) + - col2 AS col0 FROM tab1 AS cor0
----
-4153
-63
-6496

skipif mysql # not compatible
query I rowsort label-5957
SELECT ALL col0 * CAST ( - col0 AS INTEGER ) + - col2 AS col0 FROM tab1 AS cor0
----
-4153
-63
-6496

query I rowsort
SELECT ALL - - col2 * - ( col1 ) AS col1 FROM tab0 cor0
----
-2838
-7462
-97

query I rowsort
SELECT DISTINCT + + col0 + - cor0.col1 + cor0.col2 AS col0 FROM tab0 AS cor0
----
-29
-61
80

query I rowsort
SELECT + col1 + - ( - col1 + + col2 ) * - col0 * - col0 FROM tab0 AS cor0
----
117697
30614
71380

query I rowsort
SELECT DISTINCT col1 + - 38 FROM tab2 AS cor0
----
-21
-7
21

query I rowsort
SELECT DISTINCT + col1 * - ( - col0 + 92 * 64 ) FROM tab1 AS cor0
----
-153010
-58240
-75504

query I rowsort
SELECT DISTINCT + 13 + + col1 FROM tab1 cor0
----
23
26
39

query I rowsort
SELECT DISTINCT - 38 FROM tab0 cor0
----
-38

query I rowsort
SELECT - ( col1 ) * - col2 AS col0 FROM tab2 AS cor0
----
1534
646
837

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5966
SELECT DISTINCT col1 * 23 + cor0.col2 + CAST( - col1 + + col0 AS SIGNED ) AS col0 FROM tab0 cor0
----
1949
2170
2173

skipif mysql # not compatible
query I rowsort label-5966
SELECT DISTINCT col1 * 23 + cor0.col2 + CAST ( - col1 + + col0 AS INTEGER ) AS col0 FROM tab0 cor0
----
1949
2170
2173

onlyif mysql # use DIV operator for integer division
query I rowsort label-5967
SELECT - 49 DIV - 48 FROM tab1 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5967
SELECT - 49 / - 48 FROM tab1 cor0
----
1
1
1

query I rowsort
SELECT + cor0.col2 * + 72 FROM tab2 AS cor0
----
1872
1944
2736

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - CAST ( - col1 AS REAL ) FROM tab1 cor0
----
10
13
26

query I rowsort
SELECT ALL + ( 57 ) * - col1 AS col0 FROM tab2 AS cor0
----
-1767
-3363
-969

query I rowsort
SELECT col2 + 38 FROM tab1 cor0
----
134
92
95

query I rowsort
SELECT DISTINCT + 26 + col1 FROM tab2 AS cor0
----
43
57
85

query I rowsort
SELECT DISTINCT + - cor0.col0 - - col2 FROM tab2 AS cor0
----
-41
-52
20

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( col0 ) col0 FROM tab2 AS cor0
----
-7
-78
-79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5975
SELECT ALL - CAST( ( + col2 ) AS SIGNED ) * + col0 AS col2 FROM tab1
----
-162
-3648
-7680

skipif mysql # not compatible
query I rowsort label-5975
SELECT ALL - CAST ( ( + col2 ) AS INTEGER ) * + col0 AS col2 FROM tab1
----
-162
-3648
-7680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 85 * col2 col1 FROM tab2 cor0
----
-2210
-2295
-3230

query I rowsort
SELECT - col2 + - cor0.col2 AS col1 FROM tab1 cor0
----
-108
-114
-192

query I rowsort
SELECT + tab2.col1 FROM tab2, tab1 cor0, tab0 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

query I rowsort
SELECT + 97 * + col2 FROM tab0 AS cor0
----
3201
7954
97

query I rowsort
SELECT - 16 * - col2 AS col1 FROM tab1 cor0
----
1536
864
912

query I rowsort
SELECT col1 + - ( + 85 ) AS col1 FROM tab0 AS cor0
----
1
12
6

query I rowsort
SELECT col2 - + ( col2 ) * + col2 FROM tab2 AS cor0
----
-1406
-650
-702

query I rowsort
SELECT DISTINCT tab0.col1 AS col1 FROM tab0, tab0 AS cor0
----
86
91
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col0 + col0 * col1 col2 FROM tab1
----
240
4288
8720

query I rowsort
SELECT DISTINCT - cor0.col0 AS col1 FROM tab1, tab2 cor0, tab0 AS cor1, tab0, tab1 AS cor2
----
-7
-78
-79

onlyif mysql # use DIV operator for integer division
query I rowsort label-5986
SELECT - - col0 DIV col0 + col1 AS col0 FROM tab0 AS cor0
----
87
92
98

skipif mysql # not compatible
query I rowsort label-5986
SELECT - - col0 / col0 + col1 AS col0 FROM tab0 AS cor0
----
87
92
98

query I rowsort
SELECT ALL ( 17 ) AS col0 FROM tab2
----
17
17
17

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5988
SELECT ALL + CAST( - 34 AS SIGNED ) FROM tab2
----
-34
-34
-34

skipif mysql # not compatible
query I rowsort label-5988
SELECT ALL + CAST ( - 34 AS INTEGER ) FROM tab2
----
-34
-34
-34

query I rowsort
SELECT DISTINCT + - col1 + 39 AS col1 FROM tab0 cor0
----
-47
-52
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - col2 + col1 col1 FROM tab1 AS cor0
----
-1235
-1378
-560

query I rowsort
SELECT + 56 + + col1 FROM tab0 AS cor0
----
142
147
153

query I rowsort
SELECT ALL ( ( + col1 ) ) AS col1 FROM tab0
----
86
91
97

query I rowsort
SELECT ALL ( - 85 ) FROM tab1
----
-85
-85
-85

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5994
SELECT ALL CAST( col1 AS SIGNED ) * - col1 FROM tab2 cor0
----
-289
-3481
-961

skipif mysql # not compatible
query I rowsort label-5994
SELECT ALL CAST ( col1 AS INTEGER ) * - col1 FROM tab2 cor0
----
-289
-3481
-961

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5995
SELECT + CAST( ( col1 ) AS SIGNED ) * - col0 AS col1 FROM tab2 AS cor0
----
-1343
-217
-4602

skipif mysql # not compatible
query I rowsort label-5995
SELECT + CAST ( ( col1 ) AS INTEGER ) * - col0 AS col1 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT DISTINCT + 18 + col2 + col1 FROM tab1
----
127
85
98

query I rowsort
SELECT + 70 - 76 FROM tab1 AS cor0
----
-6
-6
-6

query I rowsort
SELECT ( + 80 ) + col2 AS col1 FROM tab1 AS cor0
----
134
137
176

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 97 + - col0 * - cor0.col0 col1 FROM tab2 AS cor0
----
-48
5987
6144

query I rowsort
SELECT + - col2 + + col1 + - col1 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT ALL - 95 FROM tab0 cor0
----
-95
-95
-95

onlyif mysql # use DIV operator for integer division
query I rowsort label-6002
SELECT + - 35 DIV - col1 AS col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6002
SELECT + - 35 / - col1 AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - + 94 + - col0 * col2 FROM tab1 AS cor0
----
-256
-3742
-7774

query I rowsort
SELECT + col0 * 98 AS col0 FROM tab2
----
686
7644
7742

onlyif mysql # use DIV operator for integer division
query I rowsort label-6005
SELECT + col0 * col1 DIV col0 FROM tab0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-6005
SELECT + col0 * col1 / col0 FROM tab0
----
86
91
97

query I rowsort
SELECT ALL - cor0.col2 * 53 FROM tab1 AS cor0
----
-2862
-3021
-5088

query I rowsort
SELECT DISTINCT col1 + + cor0.col2 AS col2 FROM tab2 cor0
----
55
58
85

query I rowsort
SELECT DISTINCT - + 18 * + col1 AS col0 FROM tab2 AS cor0
----
-1062
-306
-558

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + 94 + col2 - col0 * cor0.col1 col0 FROM tab1 AS cor0
----
4775
5052
8080

query I rowsort
SELECT ALL cor0.col1 * - ( col2 ) FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT 18 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to b95bafa733666df39c5d3f94760d010f

onlyif mysql # use DIV operator for integer division
query I rowsort label-6012
SELECT + cor0.col1 DIV - col0 col0 FROM tab1 AS cor0
----
-8
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6012
SELECT + cor0.col1 / - col0 col0 FROM tab1 AS cor0
----
-8
0
0

query I rowsort
SELECT DISTINCT col0 * - col1 * - ( - col2 ) FROM tab2 AS cor0
----
-119652
-51034
-5859

query I rowsort
SELECT 19 FROM tab2, tab2 cor0 CROSS JOIN tab0, tab1, tab2 AS cor1
----
243 values hashing to 964295a09704e7eeb1758493220d9bb0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6015
SELECT - CAST( col1 AS SIGNED ) + col1 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6015
SELECT - CAST ( col1 AS INTEGER ) + col1 AS col2 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT 71 * 66 FROM tab1
----
4686

query I rowsort
SELECT col0 - + col0 AS col1 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT - + cor1.col0 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-7
-78
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - cor0.col1 col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775

query I rowsort
SELECT - col1 + + 77 * - col0 FROM tab1 AS cor0
----
-257
-4938
-6173

query I rowsort
SELECT ALL + + col0 * col2 + 38 + + col2 AS col1 FROM tab0 AS cor0
----
74
7418
863

query I rowsort
SELECT DISTINCT col0 - - ( col2 ) FROM tab1 AS cor0
----
121
176
57

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6023
SELECT ALL - CAST( + 86 AS SIGNED ) col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 9ac806793c03d3a6b5e3a3029d20e4da

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6023
SELECT ALL - CAST ( + 86 AS INTEGER ) col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 9ac806793c03d3a6b5e3a3029d20e4da

query I rowsort
SELECT ALL - cor0.col0 + + 51 AS col1 FROM tab1 AS cor0
----
-13
-29
48

query I rowsort
SELECT ( - cor0.col2 ) FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 44fdcd7cd603352d4d127811d164cc1e

query I rowsort
SELECT col0 * - col1 + col2 - - col0 AS col1 FROM tab1
----
-21
-519
-864

query I rowsort
SELECT ALL 76 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5

query I rowsort
SELECT DISTINCT + col2 - ( + tab1.col0 ) * col1 FROM tab1
----
-24
-583
-944

query I rowsort
SELECT ALL 0 - + col0 * col0 AS col2 FROM tab0 AS cor0
----
-1225
-576
-7921

onlyif mysql # use DIV operator for integer division
query I rowsort label-6030
SELECT DISTINCT ( col1 ) + col1 DIV - ( - col2 ) AS col1 FROM tab0 AS cor0
----
194
88
92

skipif mysql # not compatible
query I rowsort label-6030
SELECT DISTINCT ( col1 ) + col1 / - ( - col2 ) AS col1 FROM tab0 AS cor0
----
194
88
92

onlyif mysql # use DIV operator for integer division
query I rowsort label-6031
SELECT + col0 DIV - 59 + + col2 FROM tab0
----
1
33
81

skipif mysql # not compatible
query I rowsort label-6031
SELECT + col0 / - 59 + + col2 FROM tab0
----
1
33
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-6032
SELECT ALL ( col2 ) DIV col1 + 81 FROM tab2
----
81
81
83

skipif mysql # not compatible
query I rowsort label-6032
SELECT ALL ( col2 ) / col1 + 81 FROM tab2
----
81
81
83

query I rowsort
SELECT DISTINCT - ( 34 ) + - col0 FROM tab1 AS cor0
----
-114
-37
-98

query I rowsort
SELECT ALL - cor1.col0 AS col1 FROM tab0, tab0 cor0, tab2 AS cor1
----
27 values hashing to c82df1de3cb666224690a83f3d790d79

query I rowsort
SELECT ALL + 11 + - col1 * + col2 AS col0 FROM tab0
----
-2827
-7451
-86

onlyif mysql # use DIV operator for integer division
query I rowsort label-6036
SELECT ALL 64 DIV 57 + + col1 FROM tab1
----
11
14
27

skipif mysql # not compatible
query I rowsort label-6036
SELECT ALL 64 / 57 + + col1 FROM tab1
----
11
14
27

query I rowsort
SELECT DISTINCT - 38 + - ( col1 ) FROM tab2
----
-55
-69
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + - col0 col2 FROM tab2 cor0
----
-41
-52
20

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6039
SELECT DISTINCT CAST( col2 AS SIGNED ) - col0 * col1 FROM tab1 AS cor0
----
-24
-583
-944

skipif mysql # not compatible
query I rowsort label-6039
SELECT DISTINCT CAST ( col2 AS INTEGER ) - col0 * col1 FROM tab1 AS cor0
----
-24
-583
-944

query I rowsort
SELECT + 15 * cor0.col1 AS col1 FROM tab0 AS cor0
----
1290
1365
1455

query I rowsort
SELECT ALL - 48 + - cor0.col1 FROM tab0 AS cor0
----
-134
-139
-145

query I rowsort
SELECT + + cor0.col1 + 22 AS col1 FROM tab2 AS cor0
----
39
53
81

query I rowsort
SELECT - ( cor1.col1 ) FROM tab2, tab1 AS cor0, tab0 AS cor1, tab1 AS cor2
----
81 values hashing to 786a240f80bef6f9c6a190e92cd4f9e8

onlyif mysql # use DIV operator for integer division
query I rowsort label-6044
SELECT ALL + ( 47 ) * col0 + cor0.col0 * cor0.col0 DIV + col1 col0 FROM tab2 AS cor0
----
330
3769
4080

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6044
SELECT ALL + ( 47 ) * col0 + cor0.col0 * cor0.col0 / + col1 col0 FROM tab2 AS cor0
----
330
3769
4080

query I rowsort
SELECT + cor0.col0 * col0 - - col1 FROM tab1 AS cor0
----
35
4106
6413

onlyif mysql # use DIV operator for integer division
query I rowsort label-6046
SELECT ALL 97 * + 59 + cor0.col1 DIV - 76 AS col1 FROM tab0 cor0
----
5722
5722
5722

skipif mysql # not compatible
query I rowsort label-6046
SELECT ALL 97 * + 59 + cor0.col1 / - 76 AS col1 FROM tab0 cor0
----
5722
5722
5722

query I rowsort
SELECT ALL + tab0.col0 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT col0 + + col2 * - 11 AS col0 FROM tab0
----
-339
-813
24

query I rowsort
SELECT ALL 30 AS col2 FROM tab1 AS cor0
----
30
30
30

query I rowsort
SELECT + - ( cor0.col0 ) FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT ALL + - col1 * col2 * + col0 FROM tab0 AS cor0
----
-3395
-664118
-68112

query I rowsort
SELECT - 50 + - col2 FROM tab0 AS cor0
----
-132
-51
-83

query I rowsort
SELECT DISTINCT + 11 * col1 FROM tab2 cor0
----
187
341
649

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col2 * cor0.col1 col1 FROM tab2 AS cor0
----
1534
646
837

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6055
SELECT ALL + col1 * CAST( - col2 AS SIGNED ) * - col1 col0 FROM tab2 cor0
----
10982
25947
90506

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6055
SELECT ALL + col1 * CAST ( - col2 AS INTEGER ) * - col1 col0 FROM tab2 cor0
----
10982
25947
90506

onlyif mysql # use DIV operator for integer division
query I rowsort label-6056
SELECT ALL col2 DIV + 63 AS col2 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6056
SELECT ALL col2 / + 63 AS col2 FROM tab0 AS cor0
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * + col2 col1 FROM tab0 AS cor0
----
-1
-1089
-6724

onlyif mysql # use DIV operator for integer division
query I rowsort label-6058
SELECT DISTINCT - cor0.col0 + 30 DIV col0 + - col0 AS col2 FROM tab0 cor0
----
-178
-47
-70

skipif mysql # not compatible
query I rowsort label-6058
SELECT DISTINCT - cor0.col0 + 30 / col0 + - col0 AS col2 FROM tab0 cor0
----
-178
-47
-70

query I rowsort
SELECT DISTINCT col0 * + col0 * col0 AS col0 FROM tab0 AS cor0
----
13824
42875
704969

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 + col1 col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT - - col2 * + 66 FROM tab1 AS cor0
----
3564
3762
6336

query I rowsort
SELECT DISTINCT col2 * 85 AS col0 FROM tab0 AS cor0
----
2805
6970
85

query I rowsort
SELECT + - col1 + 70 AS col0 FROM tab0 AS cor0
----
-16
-21
-27

query I rowsort
SELECT ALL 77 * col1 FROM tab2
----
1309
2387
4543

query I rowsort
SELECT DISTINCT - tab1.col2 AS col1 FROM tab1, tab2, tab1 AS cor0, tab0
----
-54
-57
-96

query I rowsort
SELECT ALL ( + col1 ) * ( - col2 ) * col0 AS col1 FROM tab0
----
-3395
-664118
-68112

query I rowsort
SELECT ALL - col0 + col2 * 93 FROM tab2 AS cor0
----
2340
2504
3455

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + - col1 col2 FROM tab0 AS cor0
----
-2
-62
-62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - cor0.col2 * - 7 col2 FROM tab2 AS cor0
----
-182
-189
-266

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6070
SELECT ALL cor0.col1 / CAST( NULL AS SIGNED ) - + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6070
SELECT ALL cor0.col1 / CAST ( NULL AS INTEGER ) - + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 * col2 - - col1 AS col1 FROM tab2 AS cor0
----
2087
220
3019

query I rowsort
SELECT ALL 8 AS col0 FROM tab1, tab0 cor0, tab0 cor1, tab0, tab2 AS cor2
----
243 values hashing to 166637359c82545ac3371f65af093c5f

query I rowsort
SELECT DISTINCT 59 * + col0 + + cor0.col0 FROM tab1 AS cor0
----
180
3840
4800

query I rowsort
SELECT + 6 * col1 AS col2 FROM tab1 AS cor0
----
156
60
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 * ( col1 ) - - cor0.col2 col2 FROM tab2 AS cor0
----
327
3507
988

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6076
SELECT - col2 * CAST( + col2 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-1444
-676
-729

skipif mysql # not compatible
query I rowsort label-6076
SELECT - col2 * CAST ( + col2 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-1444
-676
-729

onlyif mysql # use DIV operator for integer division
query I rowsort label-6077
SELECT ALL - cor0.col2 DIV + cor0.col0 AS col2 FROM tab2 cor0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-6077
SELECT ALL - cor0.col2 / + cor0.col0 AS col2 FROM tab2 cor0
----
-3
0
0

query I rowsort
SELECT DISTINCT + tab0.col0 FROM tab0, tab1, tab2 AS cor0, tab2 AS cor1
----
24
35
89

query I rowsort
SELECT ALL + 64 * col1 FROM tab0
----
5504
5824
6208

query I rowsort
SELECT DISTINCT tab0.col1 AS col0 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
86
91
97

query I rowsort
SELECT tab1.col2 * - ( 77 + + col1 ) * 88 FROM tab1
----
-436392
-489456
-760320

query I rowsort
SELECT ALL - col1 * col1 + col1 * + col2 AS col1 FROM tab1
----
1079
470
728

query I rowsort
SELECT + col2 + 53 * + col0 AS col2 FROM tab1 cor0
----
213
3449
4336

query I rowsort
SELECT + 47 + 24 AS col0 FROM tab2 cor0
----
71
71
71

query I rowsort
SELECT + 67 * - col0 + + col1 AS col2 FROM tab1 AS cor0
----
-175
-4278
-5347

query I rowsort
SELECT + col2 + - col1 * col0 * tab2.col1 FROM tab2
----
-22793
-271492
-6700

query I rowsort
SELECT - cor0.col0 + cor1.col2 + - cor0.col1 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 142be80900d93468245514a73ce42d3c

query I rowsort
SELECT col2 * + 48 * 27 AS col1 FROM tab1
----
124416
69984
73872

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6089
SELECT col2 / 79 + - col2 * + col1 * CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6089
SELECT col2 / 79 + - col2 * + col1 * CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab2.col1 * - 98 col1 FROM tab2
----
-1666
-3038
-5782

query I rowsort
SELECT DISTINCT - 61 AS col1 FROM tab0
----
-61

query I rowsort
SELECT - 67 * - tab0.col0 + col2 AS col2 FROM tab0
----
1641
2346
6045

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6093
SELECT ALL - CAST( - col0 AS SIGNED ) FROM tab2
----
7
78
79

skipif mysql # not compatible
query I rowsort label-6093
SELECT ALL - CAST ( - col0 AS INTEGER ) FROM tab2
----
7
78
79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6094
SELECT DISTINCT + ( - col1 ) * - col0 + 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-6094
SELECT DISTINCT + ( - col1 ) * - col0 + CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + col1 * + col2 + col0 FROM tab1 AS cor0
----
1328
1407
634

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6096
SELECT DISTINCT CAST( + col1 AS SIGNED ) FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-6096
SELECT DISTINCT CAST ( + col1 AS INTEGER ) FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT ALL ( col1 ) + cor0.col2 * ( 58 ) AS col1 FROM tab0 AS cor0
----
155
2000
4847

query I rowsort
SELECT + + 63 AS col0 FROM tab0 AS cor0
----
63
63
63

query I rowsort
SELECT ALL ( + ( - col1 ) ) * - col0 FROM tab1 AS cor0
----
1040
640
78

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6100
SELECT DISTINCT + - CAST( NULL AS SIGNED ) AS col0 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6100
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 cor0
----
NULL

query I rowsort
SELECT - + 2 * col1 AS col0 FROM tab0 AS cor0
----
-172
-182
-194

query I rowsort
SELECT ALL - + col2 * - 0 + col1 * + col2 FROM tab0 AS cor0
----
2838
7462
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 5 + + cor0.col1 col0 FROM tab1 AS cor0
----
15
18
31

query I rowsort
SELECT + ( 11 * + col0 ) AS col1 FROM tab0
----
264
385
979

query I rowsort
SELECT - 11 * col1 + + col0 FROM tab0
----
-1032
-912
-922

query I rowsort
SELECT - 27 * - ( + cor0.col1 + col2 ) * cor0.col2 FROM tab2 AS cor0
----
42282
56430
59670

query I rowsort
SELECT - col2 + col0 * col2 AS col1 FROM tab2 AS cor0
----
162
2002
2964

query I rowsort
SELECT + + 92 * + col1 FROM tab0 AS cor0
----
7912
8372
8924

onlyif mysql # use DIV operator for integer division
query I rowsort label-6109
SELECT ALL - cor0.col0 DIV + col2 - ( col0 * col0 ) col2 FROM tab1 AS cor0
----
-4097
-6400
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6109
SELECT ALL - cor0.col0 / + col2 - ( col0 * col0 ) col2 FROM tab1 AS cor0
----
-4097
-6400
-9

onlyif mysql # use DIV operator for integer division
query I rowsort label-6110
SELECT DISTINCT - - 79 DIV + col1 AS col0 FROM tab2 AS cor0
----
1
2
4

skipif mysql # not compatible
query I rowsort label-6110
SELECT DISTINCT - - 79 / + col1 AS col0 FROM tab2 AS cor0
----
1
2
4

query I rowsort
SELECT ALL - + 23 - - col1 * col2 FROM tab0 AS cor0
----
2815
74
7439

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6112
SELECT ALL + + col0 + cor0.col0 * - CAST( + 98 AS SIGNED ) AS col0 FROM tab2 cor0
----
-679
-7566
-7663

skipif mysql # not compatible
query I rowsort label-6112
SELECT ALL + + col0 + cor0.col0 * - CAST ( + 98 AS INTEGER ) AS col0 FROM tab2 cor0
----
-679
-7566
-7663

query I rowsort
SELECT ( - col2 ) + - col2 FROM tab0 AS cor0
----
-164
-2
-66

query I rowsort
SELECT col2 + ( col2 ) + col2 * col0 * col0 AS col0 FROM tab0 AS cor0
----
1227
19074
649686

query I rowsort
SELECT ALL - col2 + + col2 * col2 * + col2 AS col1 FROM tab2 AS cor0
----
17550
19656
54834

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6116
SELECT ALL col1 * CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6116
SELECT ALL col1 * CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6117
SELECT + col2 DIV - 68 + 67 + col0 FROM tab0 AS cor0
----
102
155
91

skipif mysql # not compatible
query I rowsort label-6117
SELECT + col2 / - 68 + 67 + col0 FROM tab0 AS cor0
----
102
155
91

query I rowsort
SELECT - + col0 * + 26 AS col0 FROM tab1 AS cor0
----
-1664
-2080
-78

query I rowsort
SELECT - col1 * - 95 - cor0.col2 AS col2 FROM tab2 AS cor0
----
1577
2918
5579

query I rowsort
SELECT + - col2 + + col0 * cor0.col1 FROM tab2 AS cor0
----
1305
190
4576

query I rowsort
SELECT + col1 * + col1 + col0 - col0 * + 93 FROM tab2 AS cor0
----
-3695
-6979
317

query I rowsort
SELECT - col0 + - ( + col0 ) FROM tab0 cor0
----
-178
-48
-70

query I rowsort
SELECT 26 * col1 FROM tab1
----
260
338
676

query I rowsort
SELECT DISTINCT + col1 + + col2 * cor0.col0 AS col0 FROM tab1 AS cor0
----
188
3658
7693

query I rowsort
SELECT + + ( + col0 ) * ( col0 ) FROM tab2 AS cor0
----
49
6084
6241

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * col2 col0 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT - + 56 * + col1 AS col1 FROM tab2 AS cor0
----
-1736
-3304
-952

query I rowsort
SELECT col1 + - cor0.col0 + + col1 AS col1 FROM tab1 AS cor0
----
-44
-54
49

query I rowsort
SELECT - col0 * + 13 + - col0 + col1 AS col0 FROM tab2 AS cor0
----
-1033
-1089
-67

query I rowsort
SELECT + cor0.col0 + - 48 FROM tab0 AS cor0
----
-13
-24
41

query I rowsort
SELECT + - col1 + ( + col1 ) AS col1 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6132
SELECT + col0 - + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6132
SELECT + col0 - + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - cor0.col0 * col2 - 68 FROM tab0 cor0
----
-103
-7366
-860

onlyif mysql # use DIV operator for integer division
query I rowsort label-6134
SELECT DISTINCT - col0 DIV - col1 FROM tab2 AS cor0
----
0
1
4

skipif mysql # not compatible
query I rowsort label-6134
SELECT DISTINCT - col0 / - col1 FROM tab2 AS cor0
----
0
1
4

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6135
SELECT + + col0 * + CAST( col0 AS SIGNED ) - col0 FROM tab2 AS cor0
----
42
6006
6162

skipif mysql # not compatible
query I rowsort label-6135
SELECT + + col0 * + CAST ( col0 AS INTEGER ) - col0 FROM tab2 AS cor0
----
42
6006
6162

query I rowsort
SELECT DISTINCT + col1 * + 58 AS col2 FROM tab0 AS cor0
----
4988
5278
5626

query I rowsort
SELECT ALL 50 - - tab2.col2 FROM tab2
----
76
77
88

query I rowsort
SELECT DISTINCT + - cor0.col2 * + col1 - 18 FROM tab2 AS cor0
----
-1552
-664
-855

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6139
SELECT - - CAST( col0 AS SIGNED ) FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-6139
SELECT - - CAST ( col0 AS INTEGER ) FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + ( col1 ) + + col1 * CAST ( - col2 AS REAL ) FROM tab0 AS cor0
----
-2752
-7371
0

query I rowsort
SELECT tab0.col0 AS col2 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT + + 74 * + col0 AS col2 FROM tab2 AS cor0
----
518
5772
5846

query I rowsort
SELECT DISTINCT + col1 * + col2 + 24 FROM tab1 AS cor0
----
1272
1428
594

query I rowsort
SELECT + col2 - + 59 FROM tab1
----
-2
-5
37

onlyif mysql # use DIV operator for integer division
query I rowsort label-6145
SELECT DISTINCT 23 DIV + ( col1 ) col1 FROM tab2
----
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6145
SELECT DISTINCT 23 / + ( col1 ) col1 FROM tab2
----
0
1

query I rowsort
SELECT + ( ( - col2 ) * + 62 ) AS col1 FROM tab2
----
-1612
-1674
-2356

query I rowsort
SELECT - col0 * col0 - + col0 * - 33 FROM tab2
----
-3510
-3634
182

query I rowsort
SELECT ALL - 73 AS col0 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 2931474b870c05694e446771031a6949

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + cor0.col0 col1 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT ALL + + 99 * + col2 FROM tab1 AS cor0
----
5346
5643
9504

query I rowsort
SELECT ALL + ( + col1 ) * col0 + ( + col0 ) AS col1 FROM tab1 AS cor0
----
1120
704
81

query I rowsort
SELECT - + 15 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 1172c9a62bdad7db0def9205c06ee1f2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 - + col1 * col0 col1 FROM tab1
----
-24
-583
-944

query I rowsort
SELECT + col2 * cor0.col0 AS col0 FROM tab1 AS cor0
----
162
3648
7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-6155
SELECT DISTINCT + cor0.col2 DIV + col2 FROM tab0 cor0
----
1

skipif mysql # not compatible
query I rowsort label-6155
SELECT DISTINCT + cor0.col2 / + col2 FROM tab0 cor0
----
1

query I rowsort
SELECT - + col1 * - col1 + 9 AS col2 FROM tab0 AS cor0
----
7405
8290
9418

query I rowsort
SELECT DISTINCT - - 56 * cor0.col1 AS col1 FROM tab2 cor0
----
1736
3304
952

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col1 + cor0.col1 col2 FROM tab2, tab0 AS cor0
----
9 values hashing to e205c60b0806256e15ecb6a115a429b3

onlyif mysql # use DIV operator for integer division
query I rowsort label-6159
SELECT ALL + col0 DIV - col2 + - col1 FROM tab0 AS cor0
----
-132
-86
-92

skipif mysql # not compatible
query I rowsort label-6159
SELECT ALL + col0 / - col2 + - col1 FROM tab0 AS cor0
----
-132
-86
-92

query I rowsort
SELECT ALL + col1 * col2 * - 19 FROM tab1
----
-10830
-23712
-26676

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 1 col0 FROM tab2, tab1, tab2 AS cor0
----
-1

query I rowsort
SELECT ALL col0 + 67 * 99 FROM tab1
----
6636
6697
6713

query I rowsort
SELECT ALL - col1 + 98 AS col1 FROM tab2
----
39
67
81

query I rowsort
SELECT DISTINCT + col2 * - ( col0 ) + 65 FROM tab0 AS cor0
----
-7233
-727
30

query I rowsort
SELECT ALL + col0 + 91 FROM tab2
----
169
170
98

query I rowsort
SELECT ALL + col2 * col2 + col0 * - col2 FROM tab2
----
-1352
-1558
540

onlyif mysql # use DIV operator for integer division
query I rowsort label-6167
SELECT DISTINCT + col1 + col2 DIV cor0.col0 AS col2 FROM tab0 AS cor0
----
87
91
97

skipif mysql # not compatible
query I rowsort label-6167
SELECT DISTINCT + col1 + col2 / cor0.col0 AS col2 FROM tab0 AS cor0
----
87
91
97

query I rowsort
SELECT ALL + - col2 * + ( + col0 ) + col0 AS col1 FROM tab1 AS cor0
----
-159
-3584
-7600

query I rowsort
SELECT - 3 * 82 + + col1 * 55 FROM tab0 AS cor0
----
4484
4759
5089

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 43 + 39 col0 FROM tab2 AS cor0
----
-4

query I rowsort
SELECT ALL + - ( - col0 ) * col0 + cor0.col1 FROM tab2 AS cor0
----
6143
6258
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6172
SELECT DISTINCT - CAST( + ( col0 ) AS SIGNED ) + + col1 FROM tab1 AS cor0
----
-54
-67
23

skipif mysql # not compatible
query I rowsort label-6172
SELECT DISTINCT - CAST ( + ( col0 ) AS INTEGER ) + + col1 FROM tab1 AS cor0
----
-54
-67
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * 91 - + cor0.col2 * 92 col0 FROM tab2 AS cor0
----
-5043
-5305
-7761

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6174
SELECT CAST( NULL AS SIGNED ) * - col2 + col1 / ( + ( + cor0.col0 ) + ( 76 ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6174
SELECT CAST ( NULL AS INTEGER ) * - col2 + col1 / ( + ( + cor0.col0 ) + ( 76 ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort
SELECT ALL - CAST ( col0 AS REAL ) + + col1 AS col1 FROM tab0 AS cor0
----
2
62
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-6176
SELECT DISTINCT + ( col1 ) DIV col1 AS col0 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-6176
SELECT DISTINCT + ( col1 ) / col1 AS col0 FROM tab0 AS cor0
----
1

query I rowsort
SELECT ALL + + 85 - + cor0.col1 * col0 FROM tab2 cor0
----
-1258
-132
-4517

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 - + col0 col0 FROM tab0 cor0
----
-34
-7
9

query I rowsort
SELECT 97 * col1 + + cor0.col1 FROM tab2 AS cor0
----
1666
3038
5782

query I rowsort
SELECT - col0 * - col0 + + col0 * + cor0.col1 * col2 AS col0 FROM tab1 AS cor0
----
106240
40576
4221

query I rowsort
SELECT DISTINCT + 46 + col1 AS col0 FROM tab0 AS cor0
----
132
137
143

query I rowsort
SELECT DISTINCT + 49 + col2 FROM tab1 AS cor0
----
103
106
145

query I rowsort
SELECT - + 0 + + col1 AS col1 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT ALL - col2 * - 31 FROM tab0 AS cor0
----
1023
2542
31

query I rowsort
SELECT DISTINCT - + col0 + - 62 AS col1 FROM tab0 AS cor0
----
-151
-86
-97

query I rowsort
SELECT ALL + - 48 - - col1 FROM tab0 cor0
----
38
43
49

query I rowsort
SELECT ALL col0 + cor0.col1 AS col1 FROM tab1 cor0
----
29
74
93

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6188
SELECT DISTINCT CAST( NULL AS DECIMAL ) + + 30 FROM tab0, tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6188
SELECT DISTINCT CAST ( NULL AS REAL ) + + 30 FROM tab0, tab0 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * 21 col1 FROM tab2
----
-1239
-357
-651

query I rowsort
SELECT cor0.col1 * 70 AS col0 FROM tab1 cor0
----
1820
700
910

query I rowsort
SELECT - col0 * - 21 FROM tab1 AS cor0
----
1344
1680
63

query I rowsort
SELECT + - 89 * col2 AS col1 FROM tab1 AS cor0
----
-4806
-5073
-8544

query I rowsort
SELECT col0 + col0 * - col1 * col1 FROM tab1
----
-13440
-2025
-6336

query I rowsort
SELECT DISTINCT col1 * 4 FROM tab1
----
104
40
52

query I rowsort
SELECT ALL + - col0 - col0 AS col2 FROM tab0 AS cor0
----
-178
-48
-70

query I rowsort
SELECT - col2 * col1 + col1 AS col1 FROM tab2 AS cor0
----
-1475
-629
-806

query I rowsort
SELECT ALL - - 71 + - col0 * + ( - ( + col2 ) ) * 29 AS col1 FROM tab1 AS cor0
----
105863
222791
4769

query I rowsort
SELECT ALL 83 * - cor0.col0 AS col2 FROM tab1 AS cor0
----
-249
-5312
-6640

query I rowsort
SELECT DISTINCT col2 * col2 + 31 * col0 FROM tab2 AS cor0
----
3094
3893
946

query I rowsort
SELECT DISTINCT + + col2 + col2 * col1 AS col1 FROM tab0 AS cor0
----
2871
7544
98

query I rowsort
SELECT col1 + + cor0.col2 * + 79 AS col2 FROM tab0 cor0
----
176
2693
6569

query I rowsort
SELECT ALL col1 + 22 FROM tab0
----
108
113
119

query I rowsort
SELECT ALL ( col0 ) + - col1 FROM tab2
----
-24
19
62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6204
SELECT CAST( NULL AS SIGNED ) * - 92 + col1 * 1 * - 62 + tab0.col2 * - ( - 75 + - col1 ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6204
SELECT CAST ( NULL AS INTEGER ) * - 92 + col1 * 1 * - 62 + tab0.col2 * - ( - 75 + - col1 ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + 4 + 42 AS col2 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 2f97924b57b73102233df7c9ce8ad602

query I rowsort
SELECT + col2 + col2 * + col2 FROM tab1 AS cor0
----
2970
3306
9312

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6207
SELECT ALL CAST( NULL AS SIGNED ) + col2 / tab1.col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6207
SELECT ALL CAST ( NULL AS INTEGER ) + col2 / tab1.col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 * col1 + col0 * + col0 AS col1 FROM tab1
----
1413
4666
7648

onlyif mysql # use DIV operator for integer division
query I rowsort label-6209
SELECT ALL - col2 DIV - tab1.col0 + col0 FROM tab1
----
21
64
81

skipif mysql # not compatible
query I rowsort label-6209
SELECT ALL - col2 / - tab1.col0 + col0 FROM tab1
----
21
64
81

query I rowsort
SELECT DISTINCT + + col2 * - col2 + + col1 * col0 FROM tab1 AS cor0
----
-2609
-2838
-8176

query I rowsort
SELECT ALL - + 10 + - cor0.col2 * + col2 AS col2 FROM tab1 AS cor0
----
-2926
-3259
-9226

query I rowsort
SELECT + ( - cor0.col0 ) + 39 FROM tab1 AS cor0
----
-25
-41
36

query I rowsort
SELECT DISTINCT 72 + + col0 FROM tab2 cor0
----
150
151
79

query I rowsort
SELECT - col1 + - col1 * - 24 FROM tab1 AS cor0
----
230
299
598

query I rowsort
SELECT ALL + cor0.col2 * cor0.col2 + col1 - col1 FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT - cor0.col2 * col1 + + 92 AS col0 FROM tab1 AS cor0
----
-1156
-1312
-478

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6217
SELECT col0 * - CAST( NULL AS SIGNED ) * - col2 + - cor0.col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6217
SELECT col0 * - CAST ( NULL AS INTEGER ) * - col2 + - cor0.col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6218
SELECT DISTINCT CAST( NULL AS SIGNED ) FROM tab2, tab2 AS cor0, tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-6218
SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab2, tab2 AS cor0, tab1 AS cor1
----
NULL

query I rowsort
SELECT col0 * + 78 FROM tab1
----
234
4992
6240

query I rowsort
SELECT + col2 * - 36 AS col0 FROM tab2 AS cor0
----
-1368
-936
-972

query I rowsort
SELECT + col0 * + col1 + col0 FROM tab1 AS cor0
----
1120
704
81

query I rowsort
SELECT + 35 FROM tab2, tab0 AS cor0
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29

query I rowsort
SELECT 66 FROM tab2, tab2 cor0
----
9 values hashing to 29794915b585eea848ad670075452c88

query I rowsort
SELECT DISTINCT 64 - tab1.col2 AS col0 FROM tab1, tab2 AS cor0
----
-32
10
7

query I rowsort
SELECT ALL 23 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to d94fadcc1c8cc4fc51b78b83e04795f2

query I rowsort
SELECT 62 * ( - col2 ) FROM tab2 AS cor0
----
-1612
-1674
-2356

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6227
SELECT ALL + CAST( - 39 AS SIGNED ) AS col1 FROM tab0 cor0
----
-39
-39
-39

skipif mysql # not compatible
query I rowsort label-6227
SELECT ALL + CAST ( - 39 AS INTEGER ) AS col1 FROM tab0 cor0
----
-39
-39
-39

query I rowsort
SELECT ( 67 ) * + col1 FROM tab1 cor0
----
1742
670
871

query I rowsort
SELECT + col1 * 37 FROM tab2 AS cor0
----
1147
2183
629

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 80 * ( col0 ) * + 76 col2 FROM tab0 AS cor0
----
145920
212800
541120

query I rowsort
SELECT + col1 * - col0 + col2 * col2 * col0 FROM tab0 cor0
----
-3360
24072
590337

query I rowsort
SELECT + col0 - + cor0.col1 AS col0 FROM tab0 AS cor0
----
-2
-62
-62

query I rowsort
SELECT - col1 * + col0 + col0 * col2 FROM tab0 cor0
----
-1272
-3360
-801

onlyif mysql # use DIV operator for integer division
query I rowsort label-6234
SELECT + col1 + + col0 + col2 DIV - 96 FROM tab1 AS cor0
----
29
74
92

skipif mysql # not compatible
query I rowsort label-6234
SELECT + col1 + + col0 + col2 / - 96 FROM tab1 AS cor0
----
29
74
92

query I rowsort
SELECT + - ( col1 ) * + ( col0 ) * col1 AS col2 FROM tab2 AS cor0
----
-22831
-271518
-6727

query I rowsort
SELECT ALL + + cor0.col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870

query I rowsort
SELECT - - col0 * - col1 - + ( ( col1 ) ) FROM tab2 AS cor0
----
-1360
-248
-4661

query I rowsort
SELECT + 54 AS col0 FROM tab0 cor0
----
54
54
54

query I rowsort
SELECT ALL ( - 44 ) * col1 + - col2 FROM tab1 AS cor0
----
-1198
-497
-668

query I rowsort
SELECT - ( col1 ) + col1 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT ALL - col2 - 77 * + col0 AS col2 FROM tab1 cor0
----
-285
-4985
-6256

query I rowsort
SELECT DISTINCT + 57 * - ( col0 * + cor0.col1 ) AS col2 FROM tab1 AS cor0
----
-36480
-4446
-59280

query I rowsort
SELECT DISTINCT ( 52 ) * col2 AS col2 FROM tab2 AS cor0
----
1352
1404
1976

query I rowsort
SELECT - col0 + 23 * 50 FROM tab2
----
1071
1072
1143

onlyif mysql # use DIV operator for integer division
query I rowsort label-6245
SELECT + col0 + + ( col2 + col1 ) DIV + CAST( 20 AS SIGNED ) FROM tab0
----
29
39
97

skipif mysql # not compatible
query I rowsort label-6245
SELECT + col0 + + ( col2 + col1 ) / + CAST ( 20 AS INTEGER ) FROM tab0
----
29
39
97

query I rowsort
SELECT col1 + 3 * - tab1.col2 FROM tab1
----
-136
-161
-275

query I rowsort
SELECT ALL + col1 + - col2 * col1 AS col0 FROM tab2 AS cor0
----
-1475
-629
-806

query I rowsort
SELECT 77 + - col1 * - cor0.col0 AS col2 FROM tab1 AS cor0
----
1117
155
717

query I rowsort
SELECT DISTINCT + col1 + - col0 * cor0.col2 + - ( - 89 * col0 + - col0 * + col0 ) AS col2 FROM tab0 AS cor0
----
2006
4402
8635

query I rowsort
SELECT DISTINCT col0 * ( col0 ) FROM tab1 cor0
----
4096
6400
9

query I rowsort
SELECT ALL - 48 AS col0 FROM tab1 AS cor0
----
-48
-48
-48

query I rowsort
SELECT ALL - 31 * + col2 + col0 AS col0 FROM tab2 AS cor0
----
-1099
-728
-830

query I rowsort
SELECT DISTINCT 74 AS col0 FROM tab2 AS cor0
----
74

query I rowsort
SELECT DISTINCT + col1 + 97 FROM tab0 AS cor0
----
183
188
194

query I rowsort
SELECT ( + 33 ) FROM tab2 AS cor0
----
33
33
33

query I rowsort
SELECT DISTINCT - ( - col2 ) * col2 FROM tab1 cor0
----
2916
3249
9216

query I rowsort
SELECT - - 2 * col2 + 40 AS col2 FROM tab0 cor0
----
106
204
42

query I rowsort
SELECT col1 + col2 * 67 FROM tab2 AS cor0
----
1801
1840
2563

query I rowsort
SELECT + col0 + - cor0.col0 AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT - - cor0.col2 * + col2 + 43 AS col0 FROM tab0 AS cor0
----
1132
44
6767

query I rowsort
SELECT DISTINCT + col1 * 67 AS col0 FROM tab2 AS cor0
----
1139
2077
3953

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + 59 col0 FROM tab1 AS cor0
----
-21
-5
56

query I rowsort
SELECT ALL - + col1 + + col0 * cor0.col2 FROM tab0 AS cor0
----
-62
706
7207

query I rowsort
SELECT + col2 * 3 FROM tab0 AS cor0
----
246
3
99

query I rowsort
SELECT ALL col0 + + col2 * col1 AS col0 FROM tab2 AS cor0
----
1612
725
844

query I rowsort
SELECT DISTINCT col1 * col2 * + col2 + + col0 AS col0 FROM tab0 AS cor0
----
132
611973
93678

query I rowsort
SELECT + col1 + + cor0.col0 * col1 AS col1 FROM tab0 AS cor0
----
2150
3492
8190

query I rowsort
SELECT ALL + col0 + 27 FROM tab2 AS cor0
----
105
106
34

query I rowsort
SELECT DISTINCT - col1 + col2 + - col0 FROM tab2 AS cor0
----
-11
-111
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 col1 FROM tab0 cor0
----
86
91
97

query I rowsort
SELECT DISTINCT + cor0.col2 * + col0 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT col0 * col2 + - 14 AS col2 FROM tab0 AS cor0
----
21
7284
778

query I rowsort
SELECT DISTINCT - col2 + - 60 FROM tab0 AS cor0
----
-142
-61
-93

query I rowsort
SELECT ALL - + col2 + col1 * col2 AS col2 FROM tab0 AS cor0
----
2805
7380
96

query I rowsort
SELECT DISTINCT cor0.col1 * 27 FROM tab2 AS cor0
----
1593
459
837

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6276
SELECT DISTINCT + + col0 + + CAST( NULL AS SIGNED ) * + col2 AS col1 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6276
SELECT DISTINCT + + col0 + + CAST ( NULL AS INTEGER ) * + col2 AS col1 FROM tab2 cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6277
SELECT + - col1 + + CAST( col0 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-2
-62
-62

skipif mysql # not compatible
query I rowsort label-6277
SELECT + - col1 + + CAST ( col0 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-2
-62
-62

query I rowsort
SELECT + + col2 * ( col1 ) * cor0.col1 AS col0 FROM tab0 cor0
----
244068
679042
9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-6279
SELECT col1 + + col0 DIV col1 AS col2 FROM tab2 AS cor0
----
21
31
60

skipif mysql # not compatible
query I rowsort label-6279
SELECT col1 + + col0 / col1 AS col2 FROM tab2 AS cor0
----
21
31
60

query I rowsort
SELECT - - 90 * col0 AS col2 FROM tab1 AS cor0
----
270
5760
7200

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6281
SELECT DISTINCT + CAST( col2 AS SIGNED ) AS col2 FROM tab1 cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-6281
SELECT DISTINCT + CAST ( col2 AS INTEGER ) AS col2 FROM tab1 cor0
----
54
57
96

query I rowsort
SELECT col2 * 99 AS col2 FROM tab0 AS cor0
----
3267
8118
99

onlyif mysql # use DIV operator for integer division
query I rowsort label-6283
SELECT DISTINCT + col2 + 81 DIV - cor0.col0 AS col1 FROM tab0 AS cor0
----
-1
30
82

skipif mysql # not compatible
query I rowsort label-6283
SELECT DISTINCT + col2 + 81 / - cor0.col0 AS col1 FROM tab0 AS cor0
----
-1
30
82

query I rowsort
SELECT - + col0 * - cor0.col0 AS col2 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT DISTINCT - col0 * 90 FROM tab0 AS cor0
----
-2160
-3150
-8010

query I rowsort
SELECT cor0.col1 * col1 * col0 AS col2 FROM tab0 AS cor0
----
177504
329315
737009

query I rowsort
SELECT - tab1.col0 + + col0 * col1 * col1 FROM tab1
----
13440
2025
6336

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 - - col0 col0 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT + col1 * col1 + + col0 * - ( col0 ) * col1 AS col1 FROM tab2 AS cor0
----
-105808
-355475
-558

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col0 + + col2 col2 FROM tab0 AS cor0
----
-34
-7
9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6291
SELECT DISTINCT + 67 * col2 + - CAST( NULL AS SIGNED ) col2 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6291
SELECT DISTINCT + 67 * col2 + - CAST ( NULL AS INTEGER ) col2 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 - - col1 * - ( col0 ) col1 FROM tab1 AS cor0
----
-24
-583
-944

query I rowsort
SELECT ALL 15 + - col2 FROM tab0 AS cor0
----
-18
-67
14

query I rowsort
SELECT DISTINCT - + ( - col0 ) + + 62 FROM tab2 AS cor0
----
140
141
69

query I rowsort
SELECT DISTINCT + col2 * cor0.col2 + col2 FROM tab1 cor0
----
2970
3306
9312

onlyif mysql # use DIV operator for integer division
query I rowsort label-6296
SELECT 4 + + col1 DIV + col0 - - col1 * - col0 AS col0 FROM tab2 AS cor0
----
-1339
-209
-4598

skipif mysql # not compatible
query I rowsort label-6296
SELECT 4 + + col1 / + col0 - - col1 * - col0 AS col0 FROM tab2 AS cor0
----
-1339
-209
-4598

onlyif mysql # use DIV operator for integer division
query I rowsort label-6297
SELECT DISTINCT - 53 DIV col1 AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6297
SELECT DISTINCT - 53 / col1 AS col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL col1 * + col2 + 34 + + tab1.col1 AS col0 FROM tab1
----
1295
1464
614

query I rowsort
SELECT DISTINCT tab2.col2 AS col2 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
26
27
38

query I rowsort
SELECT - 79 * col1 FROM tab2
----
-1343
-2449
-4661

query I rowsort
SELECT - col1 + col0 - ( - col2 ) FROM tab1 AS cor0
----
111
163
31

query I rowsort
SELECT DISTINCT - cor0.col0 * col2 AS col0 FROM tab2 cor0
----
-189
-2028
-3002

query I rowsort
SELECT - + 28 + col0 FROM tab0 AS cor0
----
-4
61
7

query I rowsort
SELECT ALL + - ( cor0.col2 ) + - col2 AS col1 FROM tab0 AS cor0
----
-164
-2
-66

query I rowsort
SELECT 32 * + cor0.col1 + - ( - col2 ) AS col0 FROM tab2 AS cor0
----
1019
1914
582

query I rowsort
SELECT ALL col0 + - col1 * + ( col2 ) FROM tab2
----
-1456
-567
-830

onlyif mysql # use DIV operator for integer division
query I rowsort label-6307
SELECT DISTINCT - col2 DIV tab0.col0 + col0 + + col2 AS col0 FROM tab0
----
171
36
56

skipif mysql # not compatible
query I rowsort label-6307
SELECT DISTINCT - col2 / tab0.col0 + col0 + + col2 AS col0 FROM tab0
----
171
36
56

query I rowsort
SELECT DISTINCT - 27 FROM tab0, tab0 AS cor0
----
-27

query I rowsort
SELECT ALL + ( - col0 ) * + col0 FROM tab1
----
-4096
-6400
-9

query I rowsort
SELECT ALL - col0 * + cor0.col2 + - col2 * ( col2 ) FROM tab1 AS cor0
----
-16896
-3078
-6897

query I rowsort
SELECT ALL - - ( 13 ) * - col1 + + col0 AS col2 FROM tab0 AS cor0
----
-1094
-1094
-1226

query I rowsort
SELECT + + 62 AS col0 FROM tab1 AS cor0
----
62
62
62

query I rowsort
SELECT - + 73 + - col2 * + col2 AS col2 FROM tab1 AS cor0
----
-2989
-3322
-9289

query I rowsort
SELECT DISTINCT + col1 - - col0 AS col0 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT ALL - col2 + ( col2 ) * - col2 AS col1 FROM tab0 AS cor0
----
-1122
-2
-6806

query I rowsort
SELECT ALL 39 FROM tab0, tab0 cor0
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf

query I rowsort
SELECT ALL 18 * - col0 - + col2 * col1 AS col1 FROM tab2 AS cor0
----
-2068
-2938
-963

query I rowsort
SELECT 59 - cor1.col2 AS col0 FROM tab0, tab2 AS cor0, tab2 cor1
----
27 values hashing to 1ad7b01742b87bab69396cb4b0796587

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 41 col1 FROM tab2
----
41
41
41

query I rowsort
SELECT 68 + - cor0.col2 AS col0 FROM tab1 AS cor0
----
-28
11
14

query I rowsort
SELECT 58 FROM tab0, tab0 AS cor0, tab1 AS cor1, tab2 AS cor2
----
81 values hashing to 793ce5fda3f22b0a251dca7e8a07baed

query I rowsort
SELECT DISTINCT + col1 * 63 FROM tab0 cor0
----
5418
5733
6111

query I rowsort
SELECT tab0.col2 + - 64 * col2 + col2 FROM tab0
----
-2046
-5084
-62

onlyif mysql # use DIV operator for integer division
query I rowsort label-6324
SELECT ALL - col2 DIV col1 + - col1 * + col2 AS col2 FROM tab0
----
-2838
-7462
-97

skipif mysql # not compatible
query I rowsort label-6324
SELECT ALL - col2 / col1 + - col1 * + col2 AS col2 FROM tab0
----
-2838
-7462
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-6325
SELECT + cor0.col0 DIV - tab1.col1 FROM tab1, tab2, tab2 cor0
----
27 values hashing to bf979b975e596d722c0c705dda80be1f

skipif mysql # not compatible
query I rowsort label-6325
SELECT + cor0.col0 / - tab1.col1 FROM tab1, tab2, tab2 cor0
----
27 values hashing to bf979b975e596d722c0c705dda80be1f

query I rowsort
SELECT DISTINCT col2 + 69 AS col0 FROM tab1
----
123
126
165

skipif mysql # not compatible
query I rowsort
SELECT ALL - cor0.col0 * - CAST ( 36 AS REAL ) AS col0 FROM tab2 cor0
----
252
2808
2844

query I rowsort
SELECT ALL - - col2 * - 58 AS col1 FROM tab1 cor0
----
-3132
-3306
-5568

query I rowsort
SELECT col0 + + cor0.col1 * col2 AS col1 FROM tab0 AS cor0
----
132
2862
7551

onlyif mysql # use DIV operator for integer division
query I rowsort label-6330
SELECT DISTINCT - cor0.col1 + 16 + - col1 DIV + cor0.col0 AS col1 FROM tab0 AS cor0
----
-73
-76
-83

skipif mysql # not compatible
query I rowsort label-6330
SELECT DISTINCT - cor0.col1 + 16 + - col1 / + cor0.col0 AS col1 FROM tab0 AS cor0
----
-73
-76
-83

query I rowsort
SELECT ALL - + col0 - - col1 AS col0 FROM tab0 AS cor0
----
2
62
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-6332
SELECT - 85 + col0 DIV - col1 FROM tab1 AS cor0
----
-85
-91
-91

skipif mysql # not compatible
query I rowsort label-6332
SELECT - 85 + col0 / - col1 FROM tab1 AS cor0
----
-85
-91
-91

query I rowsort
SELECT + - col1 + col0 * col1 AS col2 FROM tab1 AS cor0
----
1027
52
630

onlyif mysql # use DIV operator for integer division
query I rowsort label-6334
SELECT + ( - 86 ) * col1 + cor0.col0 DIV col2 + col1 FROM tab0 cor0
----
-7310
-7734
-8210

skipif mysql # not compatible
query I rowsort label-6334
SELECT + ( - 86 ) * col1 + cor0.col0 / col2 + col1 FROM tab0 cor0
----
-7310
-7734
-8210

query I rowsort
SELECT col2 * - cor0.col1 AS col1 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT DISTINCT 39 * ( - col0 ) FROM tab1 cor0
----
-117
-2496
-3120

onlyif mysql # use DIV operator for integer division
query I rowsort label-6337
SELECT ALL - - col0 * 35 + col2 DIV - col1 FROM tab1 AS cor0
----
103
2235
2793

skipif mysql # not compatible
query I rowsort label-6337
SELECT ALL - - col0 * 35 + col2 / - col1 FROM tab1 AS cor0
----
103
2235
2793

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 84 + - 74 + col1 * col2 * + col1 col2 FROM tab0 cor0
----
243910
678884
9251

query I rowsort
SELECT ALL col1 * + col2 + 75 FROM tab0
----
172
2913
7537

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 54 col1 FROM tab2 AS cor0
----
54
54
54

query I rowsort
SELECT + col2 + + cor0.col1 - + col0 FROM tab0 cor0
----
63
84
95

query I rowsort
SELECT - col2 - + cor0.col1 AS col0 FROM tab2 cor0
----
-55
-58
-85

query I rowsort
SELECT + ( col0 ) + col2 + col0 FROM tab2 AS cor0
----
182
196
41

query I rowsort
SELECT + col2 + col2 * + col0 AS col1 FROM tab0 AS cor0
----
36
7380
825

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 0 col0 FROM tab0, tab1 AS cor0
----
0

query I rowsort
SELECT ALL + col1 * col0 - + col1 FROM tab0
----
1978
3298
8008

query I rowsort
SELECT DISTINCT + - ( col1 ) * col0 AS col1 FROM tab0 AS cor0
----
-2064
-3395
-8099

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6348
SELECT ALL + CAST( - col2 AS SIGNED ) + cor0.col1 AS col2 FROM tab0 AS cor0
----
53
9
96

skipif mysql # not compatible
query I rowsort label-6348
SELECT ALL + CAST ( - col2 AS INTEGER ) + cor0.col1 AS col2 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT + col2 + col1 * - col1 + - col0 * - col2 FROM tab0 AS cor0
----
-6571
-901
-9373

query I rowsort
SELECT ALL - ( - col2 ) + + cor0.col1 * col0 AS col0 FROM tab1 AS cor0
----
1136
132
697

query I rowsort
SELECT DISTINCT - col2 * + cor0.col1 * - col2 FROM tab2 AS cor0
----
22599
24548
39884

query I rowsort
SELECT DISTINCT - 16 + + col0 FROM tab1 AS cor0
----
-13
48
64

query I rowsort
SELECT col0 + col1 - - col2 AS col1 FROM tab1 AS cor0
----
131
189
83

query I rowsort
SELECT DISTINCT 89 * col0 AS col2 FROM tab2
----
623
6942
7031

query I rowsort
SELECT DISTINCT - ( tab2.col2 + + col2 ) AS col2 FROM tab2
----
-52
-54
-76

query I rowsort
SELECT ALL ( 31 ) * + col2 AS col0 FROM tab0
----
1023
2542
31

skipif mysql # not compatible
query I rowsort
SELECT + CAST ( col2 AS REAL ) FROM tab2
----
26
27
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-6358
SELECT - 86 DIV tab0.col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 175191f61952e3d585ae3ee0d24378d6

skipif mysql # not compatible
query I rowsort label-6358
SELECT - 86 / tab0.col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 175191f61952e3d585ae3ee0d24378d6

query I rowsort
SELECT DISTINCT - 75 AS col2 FROM tab1, tab0 AS cor0
----
-75

query I rowsort
SELECT ALL - 85 AS col0 FROM tab1, tab1 cor0
----
9 values hashing to 8ebc8ffafb1517ea04e3a6fc4059d88a

query I rowsort
SELECT - ( - tab2.col0 ) AS col2 FROM tab2
----
7
78
79

query I rowsort
SELECT col0 * col1 + + col1 * - ( - col1 ) FROM tab1
----
1209
740
754

query I rowsort
SELECT ALL 42 + 4 FROM tab0, tab1 AS cor0
----
9 values hashing to 31818c9d4d325eb248735c97cb1dce39

onlyif mysql # use DIV operator for integer division
query I rowsort label-6364
SELECT + col1 DIV - 47 AS col0 FROM tab0 AS cor0
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-6364
SELECT + col1 / - 47 AS col0 FROM tab0 AS cor0
----
-1
-1
-2

query I rowsort
SELECT + - col2 + 49 * cor0.col2 AS col0 FROM tab2 AS cor0
----
1248
1296
1824

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6366
SELECT DISTINCT - col1 + + CAST( - col2 AS SIGNED ) FROM tab2 AS cor0
----
-55
-58
-85

skipif mysql # not compatible
query I rowsort label-6366
SELECT DISTINCT - col1 + + CAST ( - col2 AS INTEGER ) FROM tab2 AS cor0
----
-55
-58
-85

query I rowsort
SELECT ALL + + col2 * + col2 + - cor0.col2 * cor0.col2 + 64 * 50 AS col1 FROM tab0 AS cor0
----
3200
3200
3200

query I rowsort
SELECT ALL - col0 * col0 + col0 FROM tab0 AS cor0
----
-1190
-552
-7832

query I rowsort
SELECT - col2 * 80 AS col0 FROM tab2 cor0
----
-2080
-2160
-3040

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6370
SELECT ALL + + col1 * + CAST( NULL AS SIGNED ) - 42 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6370
SELECT ALL + + col1 * + CAST ( NULL AS INTEGER ) - 42 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6371
SELECT cor0.col0 * + CAST( 77 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
231
4928
6160

skipif mysql # not compatible
query I rowsort label-6371
SELECT cor0.col0 * + CAST ( 77 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
231
4928
6160

query I rowsort
SELECT ALL + col1 * ( - col2 ) + - col1 * + col2 AS col2 FROM tab0 AS cor0
----
-14924
-194
-5676

query I rowsort
SELECT DISTINCT + col1 + + col0 + + 46 AS col2 FROM tab1 cor0
----
120
139
75

query I rowsort
SELECT DISTINCT - col2 + + cor0.col1 * + 63 FROM tab2 AS cor0
----
1033
1926
3691

onlyif mysql # use DIV operator for integer division
query I rowsort label-6375
SELECT DISTINCT col1 DIV + ( + col2 ) + - cor0.col1 * 68 AS col0 FROM tab1 cor0
----
-1768
-680
-884

skipif mysql # not compatible
query I rowsort label-6375
SELECT DISTINCT col1 / + ( + col2 ) + - cor0.col1 * 68 AS col0 FROM tab1 cor0
----
-1768
-680
-884

query I rowsort
SELECT tab1.col2 + col0 * col1 AS col2 FROM tab1
----
1136
132
697

query I rowsort
SELECT + col1 * 28 * 73 FROM tab1 AS cor0
----
20440
26572
53144

query I rowsort
SELECT + col0 + cor0.col0 + col0 AS col0 FROM tab2 AS cor0
----
21
234
237

query I rowsort
SELECT ALL + + col1 + 22 * - col1 AS col2 FROM tab1 AS cor0
----
-210
-273
-546

onlyif mysql # use DIV operator for integer division
query I rowsort label-6380
SELECT ALL + col1 * col0 DIV col2 AS col2 FROM tab1
----
1
10
11

skipif mysql # not compatible
query I rowsort label-6380
SELECT ALL + col1 * col0 / col2 AS col2 FROM tab1
----
1
10
11

query I rowsort
SELECT - col1 * col2 - col1 AS col1 FROM tab0
----
-194
-2924
-7553

query I rowsort
SELECT ALL + col1 * - col2 + col2 AS col2 FROM tab0
----
-2805
-7380
-96

query I rowsort
SELECT ALL - col2 - + col0 FROM tab2
----
-104
-117
-34

query I rowsort
SELECT DISTINCT + 46 * col0 - - 92 AS col2 FROM tab1 AS cor0
----
230
3036
3772

query I rowsort
SELECT - - 95 AS col1 FROM tab0, tab0 cor0
----
9 values hashing to e57d8ed879dfd04d04aae87725c970d3

query I rowsort
SELECT ALL + + ( col1 ) * + col2 * col2 FROM tab1 cor0
----
119808
32490
75816

query I rowsort
SELECT col1 * - col0 - 10 * - col1 FROM tab2 AS cor0
----
-1173
-4012
93

query I rowsort
SELECT - col0 * + col0 + tab2.col0 * col1 FROM tab2
----
-1482
-4898
168

query I rowsort
SELECT col1 * - tab1.col2 + - col2 FROM tab1
----
-1344
-1458
-627

query I rowsort
SELECT + col1 * + col2 + + col2 AS col1 FROM tab2
----
1560
684
864

onlyif mysql # use DIV operator for integer division
query I rowsort label-6391
SELECT ALL - tab1.col2 DIV col2 AS col0 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6391
SELECT ALL - tab1.col2 / col2 AS col0 FROM tab1
----
-1
-1
-1

query III rowsort
SELECT * FROM tab2 WHERE NOT + col0 - + col1 NOT IN ( col2 + - col0 * - col0 )
----

query I rowsort
SELECT - tab2.col1 * col1 + + col1 * - col0 + + col2 AS col0 FROM tab2
----
-1151
-1594
-8057

query I rowsort
SELECT + col2 * - tab2.col0 * - col1 FROM tab2
----
119652
51034
5859

query I rowsort
SELECT + tab1.col1 * + col1 * + tab1.col1 AS col1 FROM tab1
----
1000
17576
2197

onlyif mysql # use DIV operator for integer division
query I rowsort label-6396
SELECT col1 * col2 DIV col1 AS col1 FROM tab1
----
54
57
96

skipif mysql # not compatible
query I rowsort label-6396
SELECT col1 * col2 / col1 AS col1 FROM tab1
----
54
57
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-6397
SELECT DISTINCT + tab1.col1 DIV tab1.col1 AS col0 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-6397
SELECT DISTINCT + tab1.col1 / tab1.col1 AS col0 FROM tab1
----
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-6398
SELECT ALL tab2.col2 DIV col0 AS col1 FROM tab2
----
0
0
3

skipif mysql # not compatible
query I rowsort label-6398
SELECT ALL tab2.col2 / col0 AS col1 FROM tab2
----
0
0
3

query I rowsort
SELECT col1 * + col2 + col2 + - col0 AS col2 FROM tab1
----
1264
1455
563

onlyif mysql # use DIV operator for integer division
query I rowsort label-6400
SELECT DISTINCT col1 DIV + col1 col0 FROM tab2
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6400
SELECT DISTINCT col1 / + col1 col0 FROM tab2
----
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-6401
SELECT ALL 26 DIV col0 + col1 AS col1 FROM tab2
----
17
34
59

skipif mysql # not compatible
query I rowsort label-6401
SELECT ALL 26 / col0 + col1 AS col1 FROM tab2
----
17
34
59

query I rowsort
SELECT ALL col0 * - col2 + - ( 58 ) AS col1 FROM tab1
----
-220
-3706
-7738

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6403
SELECT + col1 + - col2 * CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6403
SELECT + col1 + - col2 * CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 63 AS col0 FROM tab1 AS cor0
----
63

query I rowsort
SELECT - ( col0 ) - - 46 * col1 FROM tab1 AS cor0
----
1193
396
518

query I rowsort
SELECT DISTINCT col2 * col0 - - col0 AS col1 FROM tab0 AS cor0
----
70
7387
816

onlyif mysql # use DIV operator for integer division
query I rowsort label-6407
SELECT cor0.col1 + col1 DIV - col0 AS col2 FROM tab0 AS cor0
----
83
90
95

skipif mysql # not compatible
query I rowsort label-6407
SELECT cor0.col1 + col1 / - col0 AS col2 FROM tab0 AS cor0
----
83
90
95

query I rowsort
SELECT ALL - 84 * + cor0.col0 + + col1 AS col2 FROM tab1 AS cor0
----
-226
-5366
-6707

query I rowsort
SELECT DISTINCT col1 * tab1.col2 + tab1.col2 * col0 AS col1 FROM tab1
----
1566
4218
8928

query I rowsort
SELECT ALL 93 + col0 + col2 FROM tab0
----
129
150
264

query I rowsort
SELECT DISTINCT col2 * col0 * 21 + col1 AS col0 FROM tab1
----
161293
3428
76618

query I rowsort
SELECT ALL + - 46 FROM tab1 cor0
----
-46
-46
-46

query I rowsort
SELECT + - cor0.col1 - + col1 * 14 AS col0 FROM tab2 AS cor0
----
-255
-465
-885

query I rowsort
SELECT DISTINCT - 34 + + tab2.col2 AS col2 FROM tab2
----
-7
-8
4

query I rowsort
SELECT + - 61 + col1 * - col1 AS col1 FROM tab0 AS cor0
----
-7457
-8342
-9470

query I rowsort
SELECT + cor0.col2 * + col0 + col1 AS col2 FROM tab1 AS cor0
----
188
3658
7693

query I rowsort
SELECT DISTINCT + 12 - - col2 AS col2 FROM tab2 cor0
----
38
39
50

query I rowsort
SELECT - col0 + + ( col0 ) AS col0 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * + col1 col1 FROM tab1 cor0
----
-1040
-640
-78

query I rowsort
SELECT ALL + + col0 * - 93 FROM tab0 AS cor0
----
-2232
-3255
-8277

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * - col1 - col1 col1 FROM tab1 cor0
----
-1261
-1430
-580

query I rowsort
SELECT + col2 * + col1 + col0 * cor0.col0 * + col0 AS col0 FROM tab1 AS cor0
----
1431
262714
513248

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6423
SELECT - CAST( + col0 AS SIGNED ) + + col2 AS col1 FROM tab0
----
-34
-7
9

skipif mysql # not compatible
query I rowsort label-6423
SELECT - CAST ( + col0 AS INTEGER ) + + col2 AS col1 FROM tab0
----
-34
-7
9

query I rowsort
SELECT ALL - tab0.col2 * tab0.col2 AS col1 FROM tab0
----
-1
-1089
-6724

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 * col2 col1 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT - 83 - col0 FROM tab2 AS cor0
----
-161
-162
-90

query I rowsort
SELECT DISTINCT - 34 * cor0.col2 AS col0 FROM tab0 AS cor0
----
-1122
-2788
-34

query I rowsort
SELECT + + col0 * col2 + ( 23 ) + + cor0.col0 AS col0 FROM tab2 AS cor0
----
2129
219
3104

onlyif mysql # use DIV operator for integer division
query I rowsort label-6429
SELECT col1 + - col0 DIV 59 AS col1 FROM tab0 AS cor0
----
86
90
97

skipif mysql # not compatible
query I rowsort label-6429
SELECT col1 + - col0 / 59 AS col1 FROM tab0 AS cor0
----
86
90
97

query I rowsort
SELECT + col1 * col2 * - ( + 60 ) FROM tab1 AS cor0
----
-34200
-74880
-84240

onlyif mysql # use DIV operator for integer division
query I rowsort label-6431
SELECT col1 * + col0 - + 45 DIV + col0 FROM tab2 AS cor0
----
1343
211
4602

skipif mysql # not compatible
query I rowsort label-6431
SELECT col1 * + col0 - + 45 / + col0 FROM tab2 AS cor0
----
1343
211
4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-6432
SELECT ALL - col1 * col0 DIV + 66 AS col2 FROM tab1 AS cor0
----
-1
-15
-9

skipif mysql # not compatible
query I rowsort label-6432
SELECT ALL - col1 * col0 / + 66 AS col2 FROM tab1 AS cor0
----
-1
-15
-9

query I rowsort
SELECT + col1 + col0 * col2 AS col1 FROM tab0 AS cor0
----
132
7389
878

query I rowsort
SELECT ALL 96 AS col2 FROM tab2 AS cor0
----
96
96
96

query I rowsort
SELECT DISTINCT 55 * + tab2.col1 AS col0 FROM tab2
----
1705
3245
935

query I rowsort
SELECT - tab0.col1 + + col2 * col0 AS col2 FROM tab0
----
-62
706
7207

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - col2 col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - CAST ( col0 + col0 AS REAL ) FROM tab0
----
-178
-48
-70

query I rowsort
SELECT DISTINCT 96 * 98 FROM tab2
----
9408

query I rowsort
SELECT - 88 + + col2 FROM tab2
----
-50
-61
-62

query I rowsort
SELECT col0 - + 84 * col1 * col0 AS col1 FROM tab0
----
-173352
-285145
-680227

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col1 + col1 * + col2 ) col0 FROM tab1
----
1235
1378
560

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 * + col0 + + col0 col1 FROM tab1 AS cor0
----
-159
-3584
-7600

query I rowsort
SELECT DISTINCT - 26 + + col0 * col1 * - col0 FROM tab2
----
-106123
-1545
-358982

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + + col0 col1 FROM tab0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6446
SELECT col0 DIV + col1 AS col2 FROM tab2
----
0
1
4

skipif mysql # not compatible
query I rowsort label-6446
SELECT col0 / + col1 AS col2 FROM tab2
----
0
1
4

query I rowsort
SELECT - col1 * tab1.col2 AS col0 FROM tab1
----
-1248
-1404
-570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + tab2.col2 col1 FROM tab2
----
-189
-2028
-3002

query I rowsort
SELECT ALL col0 + col1 * + cor0.col2 AS col0 FROM tab1 AS cor0
----
1328
1407
634

query I rowsort
SELECT + - col1 + cor0.col0 - col2 FROM tab1 AS cor0
----
-29
-3
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + col0 * col1 col1 FROM tab2 AS cor0
----
1360
248
4661

query I rowsort
SELECT ALL 96 * - 56 AS col0 FROM tab1
----
-5376
-5376
-5376

query I rowsort
SELECT DISTINCT col1 * - 26 FROM tab0
----
-2236
-2366
-2522

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6454
SELECT CAST( col2 AS SIGNED ) AS col2 FROM tab2
----
26
27
38

skipif mysql # not compatible
query I rowsort label-6454
SELECT CAST ( col2 AS INTEGER ) AS col2 FROM tab2
----
26
27
38

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6455
SELECT + CAST( + col1 AS SIGNED ) + col0 FROM tab0
----
110
132
180

skipif mysql # not compatible
query I rowsort label-6455
SELECT + CAST ( + col1 AS INTEGER ) + col0 FROM tab0
----
110
132
180

query I rowsort
SELECT - 32 AS col0 FROM tab0
----
-32
-32
-32

query I rowsort
SELECT ALL + + col1 + cor0.col2 * + col1 AS col2 FROM tab0 AS cor0
----
194
2924
7553

query I rowsort
SELECT ALL + + col0 + - col1 AS col2 FROM tab0 AS cor0
----
-2
-62
-62

query I rowsort
SELECT ALL + 93 * + col2 + - col2 AS col1 FROM tab1 cor0
----
4968
5244
8832

onlyif mysql # use DIV operator for integer division
query I rowsort label-6460
SELECT DISTINCT + + col1 * col0 - col0 DIV + col0 AS col1 FROM tab2 AS cor0
----
1342
216
4601

skipif mysql # not compatible
query I rowsort label-6460
SELECT DISTINCT + + col1 * col0 - col0 / + col0 AS col1 FROM tab2 AS cor0
----
1342
216
4601

query I rowsort
SELECT DISTINCT + + 91 AS col2 FROM tab2 AS cor0
----
91

query I rowsort
SELECT + ( + col2 ) * + col1 FROM tab2 cor0
----
1534
646
837

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 + cor0.col1 * - col2 col0 FROM tab0 AS cor0
----
-2814
-62
-7373

query I rowsort
SELECT - + col2 * - col2 AS col1 FROM tab1 cor0
----
2916
3249
9216

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 35 col2 FROM tab0 cor0
----
35
35
35

query I rowsort
SELECT + + cor0.col2 * - col1 + - col1 FROM tab2 AS cor0
----
-1593
-663
-868

query I rowsort
SELECT ALL col2 * col2 + col2 * - col0 FROM tab0
----
-34
-574
297

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + col0 col1 FROM tab2
----
0

query I rowsort
SELECT ALL + col1 + tab2.col2 * + col2 AS col1 FROM tab2
----
1461
735
760

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL BETWEEN - col1 AND col2 * - cor0.col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - col1 col2 FROM tab0 cor0
----
-7396
-8281
-9409

query I rowsort
SELECT DISTINCT + col1 * col1 + tab1.col2 FROM tab1
----
157
265
730

query I rowsort
SELECT + col2 + - tab2.col0 - + col2 * - col0 FROM tab2
----
1976
209
2961

query I rowsort
SELECT ALL col2 + col2 * col2 FROM tab0
----
1122
2
6806

query I rowsort
SELECT col2 + - col2 * - col1 FROM tab1
----
1344
1458
627

onlyif mysql # use DIV operator for integer division
query I rowsort label-6476
SELECT ALL + col2 * col0 + + col2 DIV + tab1.col2 FROM tab1
----
163
3649
7681

skipif mysql # not compatible
query I rowsort label-6476
SELECT ALL + col2 * col0 + + col2 / + tab1.col2 FROM tab1
----
163
3649
7681

query I rowsort
SELECT - col1 * col1 * + col0 FROM tab1
----
-13520
-2028
-6400

query I rowsort
SELECT + tab1.col0 + tab1.col2 * col1 FROM tab1
----
1328
1407
634

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col0 >= - col0
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

query I rowsort
SELECT col0 + - col1 * + col0 AS col1 FROM tab1
----
-576
-75
-960

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + tab2.col1 col2 FROM tab2
----
137
38
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col0 * col2 col1 FROM tab2 WHERE NULL NOT BETWEEN col1 * - col0 + - col1 - + col1 AND ( NULL )
----

query I rowsort
SELECT + col1 + cor0.col1 AS col1 FROM tab2 cor0
----
118
34
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-6484
SELECT + - cor0.col1 + col1 DIV - col2 FROM tab0 AS cor0
----
-194
-88
-92

skipif mysql # not compatible
query I rowsort label-6484
SELECT + - cor0.col1 + col1 / - col2 FROM tab0 AS cor0
----
-194
-88
-92

query I rowsort
SELECT col0 * + col2 + col1 FROM tab1
----
188
3658
7693

query I rowsort
SELECT tab2.col0 + + col1 + col2 AS col1 FROM tab2
----
134
163
65

query I rowsort
SELECT cor0.col0 * - col0 AS col1 FROM tab1 AS cor0
----
-4096
-6400
-9

query I rowsort
SELECT ALL + col2 FROM tab2 WHERE ( NULL ) IN ( + col1 )
----

query I rowsort
SELECT tab0.col2 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8

query I rowsort
SELECT cor0.col1 * cor0.col2 AS col1 FROM tab0 cor0
----
2838
7462
97

query I rowsort
SELECT DISTINCT cor0.col0 * col1 AS col1 FROM tab0 AS cor0
----
2064
3395
8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-6492
SELECT ALL cor0.col0 DIV - cor0.col2 col1 FROM tab0 AS cor0
----
-1
-35
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6492
SELECT ALL cor0.col0 / - cor0.col2 col1 FROM tab0 AS cor0
----
-1
-35
0

query I rowsort
SELECT + - col2 * ( col1 ) + - col2 + - col2 * + cor0.col0 * col1 AS col1 FROM tab1 AS cor0
----
-101184
-37107
-5670

query I rowsort
SELECT DISTINCT + ( col2 ) * - col0 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT ALL 18 + col1 FROM tab1
----
28
31
44

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6496
SELECT DISTINCT - CAST( NULL AS SIGNED ) + tab2.col0 col1 FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6496
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + tab2.col0 col1 FROM tab2
----
NULL

query I rowsort
SELECT ALL - + col1 * + cor0.col0 - col1 FROM tab0 AS cor0
----
-2150
-3492
-8190

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 2 col2 FROM tab1 AS cor0
----
-2
-2
-2

onlyif mysql # use DIV operator for integer division
query I rowsort label-6499
SELECT ALL + 19 DIV - col2 AS col1 FROM tab0 AS cor0
----
-19
0
0

skipif mysql # not compatible
query I rowsort label-6499
SELECT ALL + 19 / - col2 AS col1 FROM tab0 AS cor0
----
-19
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6500
SELECT CAST( 24 AS SIGNED ) - + col2 FROM tab1 AS cor0
----
-30
-33
-72

skipif mysql # not compatible
query I rowsort label-6500
SELECT CAST ( 24 AS INTEGER ) - + col2 FROM tab1 AS cor0
----
-30
-33
-72

query I rowsort
SELECT DISTINCT - col1 * col2 + col2 + - 15 FROM tab1 AS cor0
----
-1167
-1365
-528

query I rowsort
SELECT ALL - ( col0 ) AS col0 FROM tab1 cor0
----
-3
-64
-80

query I rowsort
SELECT - - col2 * + col1 + - col2 AS col2 FROM tab0 AS cor0
----
2805
7380
96

query I rowsort
SELECT 74 * + col0 + col0 AS col2 FROM tab2 AS cor0
----
525
5850
5925

query I rowsort
SELECT ALL + - 31 FROM tab1 AS cor0
----
-31
-31
-31

query I rowsort
SELECT ALL 41 + col0 AS col0 FROM tab0 AS cor0
----
130
65
76

query I rowsort
SELECT ALL + - col2 + cor0.col1 AS col2 FROM tab2 AS cor0
----
-21
33
4

query I rowsort
SELECT - - 17 * - cor0.col0 + ( cor0.col2 ) * col2 * col0 AS col1 FROM tab1 AS cor0
----
206848
735920
8697

query I rowsort
SELECT DISTINCT + ( + col0 ) AS col2 FROM tab2 cor0
----
7
78
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-6510
SELECT + + 39 DIV - col1 + 16 FROM tab2 AS cor0
----
14
15
16

skipif mysql # not compatible
query I rowsort label-6510
SELECT + + 39 / - col1 + 16 FROM tab2 AS cor0
----
14
15
16

query I rowsort
SELECT ALL col2 * col0 - + col1 FROM tab2 AS cor0
----
158
1969
2985

query I rowsort
SELECT col0 * - col2 + col1 FROM tab2 cor0
----
-158
-1969
-2985

onlyif mysql # use DIV operator for integer division
query I rowsort label-6513
SELECT DISTINCT - 16 DIV col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6513
SELECT DISTINCT - 16 / col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL + 73 * col1 * 67 + 65 AS col2 FROM tab1 AS cor0
----
127231
48975
63648

query I rowsort
SELECT + - 69 * - col1 FROM tab2 AS cor0
----
1173
2139
4071

query I rowsort
SELECT DISTINCT - - col2 - + col0 FROM tab1 AS cor0
----
-7
16
51

query I rowsort
SELECT DISTINCT - 22 * col2 FROM tab2 AS cor0
----
-572
-594
-836

onlyif mysql # use DIV operator for integer division
query I rowsort label-6518
SELECT - col2 DIV - col2 + 22 * + 29 FROM tab1 AS cor0
----
639
639
639

skipif mysql # not compatible
query I rowsort label-6518
SELECT - col2 / - col2 + 22 * + 29 FROM tab1 AS cor0
----
639
639
639

query I rowsort
SELECT DISTINCT - col2 + col1 * tab2.col1 FROM tab2
----
251
3455
934

query I rowsort
SELECT ALL - col1 * col2 * + col0 FROM tab2 AS cor0
----
-119652
-51034
-5859

query I rowsort
SELECT col2 * tab1.col1 * col1 - - col2 AS col1 FROM tab1
----
16320
36558
5757

query I rowsort
SELECT ALL col2 * + ( - col2 ) AS col0 FROM tab0 AS cor0
----
-1
-1089
-6724

query I rowsort
SELECT DISTINCT - col1 + + col1 * - ( + col0 + 65 ) FROM tab0 AS cor0
----
-14105
-7740
-9797

query I rowsort
SELECT ALL col2 * col2 + - col2 FROM tab2 AS cor0
----
1406
650
702

query I rowsort
SELECT DISTINCT - cor0.col2 * + 35 FROM tab2 AS cor0
----
-1330
-910
-945

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6526
SELECT ALL + col2 * CAST( NULL AS SIGNED ) + col0 * - col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6526
SELECT ALL + col2 * CAST ( NULL AS INTEGER ) + col0 * - col0 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 * + 72 FROM tab2 AS cor0
----
1224
2232
4248

query I rowsort
SELECT ALL + + col2 * ( 60 + - col0 ) FROM tab0 AS cor0
----
-2378
1188
25

query I rowsort
SELECT col0 + - col0 * + 77 * + col2 FROM tab0 AS cor0
----
-2660
-561857
-60960

query I rowsort
SELECT DISTINCT - - cor0.col2 * - col2 FROM tab1 AS cor0
----
-2916
-3249
-9216

query I rowsort
SELECT ALL cor0.col1 + - 47 * 46 AS col0 FROM tab2 AS cor0
----
-2103
-2131
-2145

query I rowsort
SELECT ALL col2 + col1 * col1 FROM tab2 AS cor0
----
327
3507
988

query I rowsort
SELECT ALL + col0 * - cor0.col1 * col1 + + col1 FROM tab0 cor0
----
-177418
-329218
-736918

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * ( col1 ) col2 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT DISTINCT col0 * ( - cor0.col0 ) + col2 FROM tab2 AS cor0
----
-22
-6058
-6203

query I rowsort
SELECT cor0.col2 + + cor0.col0 * 78 * col0 AS col0 FROM tab1 AS cor0
----
319545
499296
756

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6537
SELECT DISTINCT CAST( NULL AS DECIMAL ) FROM tab2, tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6537
SELECT DISTINCT CAST ( NULL AS REAL ) FROM tab2, tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + + 77 AS col1 FROM tab0 AS cor0
----
77

query I rowsort
SELECT DISTINCT tab1.col0 + 58 FROM tab1, tab0 AS cor0
----
122
138
61

query I rowsort
SELECT DISTINCT + col1 * - 14 AS col1 FROM tab2
----
-238
-434
-826

query I rowsort
SELECT + - 65 FROM tab2 AS cor0
----
-65
-65
-65

query I rowsort
SELECT DISTINCT ( col0 ) + col0 AS col2 FROM tab0 AS cor0
----
178
48
70

query I rowsort
SELECT - - 7 * + col1 FROM tab1 AS cor0
----
182
70
91

query I rowsort
SELECT ALL cor0.col2 * col2 + col1 * cor0.col1 FROM tab1 cor0
----
3349
3592
9385

query I rowsort
SELECT ALL tab1.col1 * + 63 * col0 FROM tab1
----
40320
4914
65520

query I rowsort
SELECT tab1.col0 * + 69 + - col2 FROM tab1
----
153
4359
5424

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + 27 col0 FROM tab0
----
109
28
60

query I rowsort
SELECT col0 - ( col2 ) AS col2 FROM tab1
----
-16
-51
7

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab1 cor0 CROSS JOIN tab2, tab1 AS cor1
----
972 values hashing to 4634d10e8b6b37510bb99745aade36ab

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 AS cor0, tab2, tab0 cor1
----
972 values hashing to 9345325155d9f4d7dc4986690c631cb9

query I rowsort
SELECT ALL - - cor1.col1 * - 82 FROM tab0 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 31d673572b55f6f3951b4724c7fb93a0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6552
SELECT 65 DIV + 78 AS col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6552
SELECT 65 / + 78 AS col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + + 63 AS col2 FROM tab2 AS cor0
----
63

onlyif mysql # use DIV operator for integer division
query I rowsort label-6554
SELECT ALL + ( + 11 ) + col0 DIV cor0.col2 FROM tab1 cor0
----
11
11
12

skipif mysql # not compatible
query I rowsort label-6554
SELECT ALL + ( + 11 ) + col0 / cor0.col2 FROM tab1 cor0
----
11
11
12

query I rowsort
SELECT + - col2 * - 73 FROM tab1 AS cor0
----
3942
4161
7008

onlyif mysql # use DIV operator for integer division
query I rowsort label-6556
SELECT - col0 DIV col0 AS col2 FROM tab0 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6556
SELECT - col0 / col0 AS col2 FROM tab0 cor0
----
-1
-1
-1

query I rowsort
SELECT ALL - ( col0 ) + - col2 AS col2 FROM tab1 AS cor0
----
-121
-176
-57

query I rowsort
SELECT DISTINCT + 8 * - col2 * col1 FROM tab1
----
-11232
-4560
-9984

query I rowsort
SELECT ALL - tab2.col0 * tab2.col1 FROM tab2
----
-1343
-217
-4602

query I rowsort
SELECT tab2.col1 + tab2.col1 AS col2 FROM tab2
----
118
34
62

query I rowsort
SELECT ALL + cor0.col0 AS col2 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

onlyif mysql # use DIV operator for integer division
query I rowsort label-6562
SELECT ALL col2 + col1 DIV ( col0 + col2 ) FROM tab1 cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-6562
SELECT ALL col2 + col1 / ( col0 + col2 ) FROM tab1 cor0
----
54
57
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-6563
SELECT DISTINCT cor0.col2 * col0 * col0 + + col0 DIV - col1 col2 FROM tab2 AS cor0
----
1323
158183
237154

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6563
SELECT DISTINCT cor0.col2 * col0 * col0 + + col0 / - col1 col2 FROM tab2 AS cor0
----
1323
158183
237154

query I rowsort
SELECT ALL - cor0.col2 * col2 - col0 AS col2 FROM tab2 AS cor0
----
-1523
-736
-754

query I rowsort
SELECT - + ( col1 ) * - 16 AS col0 FROM tab1 AS cor0
----
160
208
416

query I rowsort
SELECT DISTINCT + + col2 * + col0 FROM tab1 cor0
----
162
3648
7680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - ( col0 ) * col2 + col1 col1 FROM tab1 AS cor0
----
188
3658
7693

query I rowsort
SELECT + col0 + - col2 * cor0.col0 AS col2 FROM tab2 AS cor0
----
-182
-1950
-2923

query I rowsort
SELECT ALL - tab1.col1 * col1 AS col1 FROM tab1
----
-100
-169
-676

query I rowsort
SELECT + - cor0.col2 + cor0.col0 AS col2 FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT DISTINCT - + col1 + col1 AS col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT col2 + 96 FROM tab2 AS cor0
----
122
123
134

query I rowsort
SELECT + col2 * - col0 + - col0 FROM tab1 cor0
----
-165
-3712
-7760

onlyif mysql # use DIV operator for integer division
query I rowsort label-6574
SELECT - - col2 DIV - col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6574
SELECT - - col2 / - col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + 76 * - 81 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 9229fe8d5174c04237ee037e4374aae1

query I rowsort
SELECT ALL + + col0 + col0 * - ( col1 ) AS col2 FROM tab1 AS cor0
----
-576
-75
-960

query I rowsort
SELECT + 41 * cor0.col2 AS col0 FROM tab2 cor0
----
1066
1107
1558

onlyif mysql # use DIV operator for integer division
query I rowsort label-6578
SELECT - + ( - col1 ) DIV + ( + col1 + cor0.col1 ) FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6578
SELECT - + ( - col1 ) / + ( + col1 + cor0.col1 ) FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + + col1 - - cor0.col1 AS col2 FROM tab2 cor0
----
118
34
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 * - 45 - col2 col2 FROM tab1 AS cor0
----
-1224
-507
-681

query I rowsort
SELECT 32 + + cor1.col2 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to b2fa252b7941e764ec74ef057273d904

query I rowsort
SELECT DISTINCT + 99 AS col2 FROM tab0, tab2 AS cor0
----
99

query I rowsort
SELECT - + col2 + 25 AS col2 FROM tab0 AS cor0
----
-57
-8
24

query I rowsort
SELECT - cor0.col2 AS col2 FROM tab1, tab2 cor0
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75

query I rowsort
SELECT col0 * cor0.col0 AS col2 FROM tab2 cor0
----
49
6084
6241

query I rowsort
SELECT DISTINCT 69 FROM tab2, tab2 cor0, tab2 cor1, tab0 cor2
----
69

query I rowsort
SELECT ALL col0 * ( 47 ) AS col0 FROM tab2
----
329
3666
3713

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - col1 col2 FROM tab0
----
-2
-62
-62

query I rowsort
SELECT - ( 66 * - col1 ) + + col2 AS col0 FROM tab1
----
1770
717
954

query I rowsort
SELECT col2 * col1 + + col0 + + 90 FROM tab2 AS cor0
----
1702
815
934

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6591
SELECT ALL - CAST( + col1 AS SIGNED ) + cor0.col1 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6591
SELECT ALL - CAST ( + col1 AS INTEGER ) + cor0.col1 AS col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT - col2 * + col0 + col2 * col1 AS col2 FROM tab0 AS cor0
----
164
2046
62

query I rowsort
SELECT ALL - + col1 + col0 AS col1 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT + 32 AS col2 FROM tab2 cor0
----
32
32
32

query I rowsort
SELECT + tab2.col2 - + col2 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT 33 AS col1 FROM tab0, tab2 AS cor0
----
33

query I rowsort
SELECT ALL - - 50 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 314aace40e704c20a6be06204a329f80

query I rowsort
SELECT ALL 10 * + col0 FROM tab1
----
30
640
800

onlyif mysql # use DIV operator for integer division
query I rowsort label-6599
SELECT DISTINCT + col2 DIV - col1 AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-6599
SELECT DISTINCT + col2 / - col1 AS col1 FROM tab0
----
0

query I rowsort
SELECT - tab1.col0 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 729c1edda9332398299f39cd174ed840

query I rowsort
SELECT - col2 * + ( - col1 ) AS col1 FROM tab1
----
1248
1404
570

query I rowsort
SELECT col0 * col1 * 65 AS col1 FROM tab2
----
14105
299130
87295

query I rowsort
SELECT DISTINCT + col2 * + ( - 48 ) FROM tab0
----
-1584
-3936
-48

query I rowsort
SELECT + col2 * 64 FROM tab0 AS cor0
----
2112
5248
64

query I rowsort
SELECT col2 + 4 AS col2 FROM tab2 AS cor0
----
30
31
42

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6606
SELECT - CAST( - col0 AS SIGNED ) * + col1 + + col0 * 24 FROM tab0 AS cor0
----
10235
2640
4235

skipif mysql # not compatible
query I rowsort label-6606
SELECT - CAST ( - col0 AS INTEGER ) * + col1 + + col0 * 24 FROM tab0 AS cor0
----
10235
2640
4235

skipif mysql # not compatible
query I rowsort
SELECT - - CAST ( + col2 AS REAL ) FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT + ( - 56 ) + - col0 FROM tab0 AS cor0
----
-145
-80
-91

query I rowsort
SELECT ALL 69 + ( - col2 ) AS col1 FROM tab1 AS cor0
----
-27
12
15

query I rowsort
SELECT DISTINCT ( 19 ) FROM tab1 AS cor0
----
19

skipif mysql # not compatible
query I rowsort
SELECT + - CAST ( - col2 AS REAL ) FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT + 49 AS col1 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to a40d8754a5be3ce2309c61bfd3e00197

query I rowsort
SELECT ALL + ( + col1 ) * - col2 FROM tab1
----
-1248
-1404
-570

query I rowsort
SELECT + col0 + col2 + 9 AS col0 FROM tab2
----
113
126
43

onlyif mysql # use DIV operator for integer division
query I rowsort label-6615
SELECT DISTINCT 59 - col0 * 81 DIV ( - col1 ) AS col1 FROM tab2
----
166
435
77

skipif mysql # not compatible
query I rowsort label-6615
SELECT DISTINCT 59 - col0 * 81 / ( - col1 ) AS col1 FROM tab2
----
166
435
77

query I rowsort
SELECT DISTINCT - 11 AS col1 FROM tab0
----
-11

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab1, tab2 AS cor0, tab2 cor1
----
972 values hashing to f94a4a64ac54a61fc21f78e2b831ebee

query I rowsort
SELECT ALL col0 * col1 + - 2 * - col2 AS col1 FROM tab1 AS cor0
----
1232
186
754

query I rowsort
SELECT DISTINCT + cor0.col1 * col0 AS col0 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT ALL col1 * 18 - 6 AS col0 FROM tab1 AS cor0
----
174
228
462

query I rowsort
SELECT col2 + col2 * - col2 FROM tab0 AS cor0
----
-1056
-6642
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6622
SELECT DISTINCT - col2 + col0 DIV 15 FROM tab1 cor0
----
-53
-54
-91

skipif mysql # not compatible
query I rowsort label-6622
SELECT DISTINCT - col2 + col0 / 15 FROM tab1 cor0
----
-53
-54
-91

query I rowsort
SELECT DISTINCT - + cor0.col1 * 20 * col2 + + col0 FROM tab1 AS cor0
----
-11336
-24880
-28077

onlyif mysql # use DIV operator for integer division
query I rowsort label-6624
SELECT ALL + col2 DIV - 87 + cor0.col0 AS col1 FROM tab1 AS cor0
----
3
64
79

skipif mysql # not compatible
query I rowsort label-6624
SELECT ALL + col2 / - 87 + cor0.col0 AS col1 FROM tab1 AS cor0
----
3
64
79

query I rowsort
SELECT - col0 - ( col0 ) AS col0 FROM tab1 AS cor0
----
-128
-160
-6

query I rowsort
SELECT ALL cor0.col1 * + col0 * col0 + col2 FROM tab0 AS cor0
----
118826
49569
720893

query I rowsort
SELECT col2 + - col2 * - col2 FROM tab0 AS cor0
----
1122
2
6806

query I rowsort
SELECT DISTINCT col0 - + 48 * + cor0.col1 AS col2 FROM tab1 AS cor0
----
-1245
-416
-544

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * 52 col2 FROM tab1 AS cor0
----
156
3328
4160

query I rowsort
SELECT 29 + + 87 FROM tab1 AS cor0
----
116
116
116

query I rowsort
SELECT + 74 + col1 * col2 AS col0 FROM tab2 AS cor0
----
1608
720
911

query I rowsort
SELECT + - ( 85 ) FROM tab0 AS cor0
----
-85
-85
-85

query I rowsort
SELECT ALL + 86 AS col2 FROM tab0 AS cor0
----
86
86
86

query I rowsort
SELECT DISTINCT - ( + 57 ) FROM tab2 AS cor0
----
-57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col1 + cor0.col2 col0 FROM tab0 cor0
----
2871
7544
98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6636
SELECT ALL CAST( - col1 AS SIGNED ) * col2 AS col2 FROM tab2 AS cor0
----
-1534
-646
-837

skipif mysql # not compatible
query I rowsort label-6636
SELECT ALL CAST ( - col1 AS INTEGER ) * col2 AS col2 FROM tab2 AS cor0
----
-1534
-646
-837

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col0 * col0 col2 FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT DISTINCT + - 86 AS col0 FROM tab0 AS cor0
----
-86

query I rowsort
SELECT 95 * - col1 FROM tab1 AS cor0
----
-1235
-2470
-950

onlyif mysql # use DIV operator for integer division
query I rowsort label-6640
SELECT + col1 DIV cor0.col0 AS col0 FROM tab2 AS cor0
----
0
0
4

skipif mysql # not compatible
query I rowsort label-6640
SELECT + col1 / cor0.col0 AS col0 FROM tab2 AS cor0
----
0
0
4

query I rowsort
SELECT DISTINCT + + ( col1 ) AS col0 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT ALL 54 * + col1 FROM tab0 AS cor0
----
4644
4914
5238

query I rowsort
SELECT ALL - 11 AS col1 FROM tab0 AS cor0
----
-11
-11
-11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + col0 * col1 col0 FROM tab1 AS cor0
----
576
75
960

query I rowsort
SELECT ALL - 17 * + col0 AS col2 FROM tab1 AS cor0
----
-1088
-1360
-51

query I rowsort
SELECT 67 * col1 + + col2 FROM tab0 AS cor0
----
5795
6179
6500

query I rowsort
SELECT + cor0.col0 * col1 * + 80 FROM tab1 AS cor0
----
51200
6240
83200

query I rowsort
SELECT ALL ( 43 ) * col0 AS col1 FROM tab1
----
129
2752
3440

query I rowsort
SELECT - col1 - + 13 FROM tab0
----
-104
-110
-99

query I rowsort
SELECT ALL - col0 + col2 * - col0 * + 30 FROM tab2 AS cor0
----
-5677
-60918
-90139

query I rowsort
SELECT ALL + + ( + col0 ) + + col1 * col0 + + col1 AS col2 FROM tab2 AS cor0
----
1439
255
4739

onlyif mysql # use DIV operator for integer division
query I rowsort label-6652
SELECT DISTINCT - col1 DIV cor0.col1 AS col0 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-6652
SELECT DISTINCT - col1 / cor0.col1 AS col0 FROM tab1 AS cor0
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col1 col0 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT DISTINCT - - ( col1 ) + col2 FROM tab2 AS cor0
----
55
58
85

onlyif mysql # use DIV operator for integer division
query I rowsort label-6655
SELECT DISTINCT ( col0 ) + + 70 + col0 DIV - col2 FROM tab0 AS cor0
----
158
70
94

skipif mysql # not compatible
query I rowsort label-6655
SELECT DISTINCT ( col0 ) + + 70 + col0 / - col2 FROM tab0 AS cor0
----
158
70
94

onlyif mysql # use DIV operator for integer division
query I rowsort label-6656
SELECT ALL - col1 + col2 DIV col1 col2 FROM tab0 AS cor0
----
-86
-91
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6656
SELECT ALL - col1 + col2 / col1 col2 FROM tab0 AS cor0
----
-86
-91
-97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6657
SELECT DISTINCT + + col1 + - cor0.col1 * - CAST( col2 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
1593
663
868

skipif mysql # not compatible
query I rowsort label-6657
SELECT DISTINCT + + col1 + - cor0.col1 * - CAST ( col2 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
1593
663
868

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6658
SELECT ALL - CAST( NULL AS SIGNED ) + col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6658
SELECT ALL - CAST ( NULL AS INTEGER ) + col1 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + col0 * - col2 col2 FROM tab0 AS cor0
----
-7209
-768
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + tab0.col1 col2 FROM tab0
----
53
9
96

query I rowsort
SELECT ( + 9 ) FROM tab2 AS cor0
----
9
9
9

query I rowsort
SELECT ALL col2 * col2 * col1 AS col1 FROM tab0 AS cor0
----
611884
93654
97

query I rowsort
SELECT ALL + 62 + col2 AS col0 FROM tab2 AS cor0
----
100
88
89

query I rowsort
SELECT DISTINCT cor0.col2 * - 5 FROM tab2 AS cor0
----
-130
-135
-190

query I rowsort
SELECT + col0 + + col1 * - 54 AS col0 FROM tab1
----
-1401
-476
-622

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6666
SELECT DISTINCT col2 / - CAST( NULL AS SIGNED ) + col1 AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6666
SELECT DISTINCT col2 / - CAST ( NULL AS INTEGER ) + col1 AS col2 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT + tab0.col1 + + ( col0 ) FROM tab0
----
110
132
180

query I rowsort
SELECT + col1 * + tab2.col1 AS col2 FROM tab2
----
289
3481
961

query I rowsort
SELECT - tab2.col1 * - col0 AS col2 FROM tab2
----
1343
217
4602

query I rowsort
SELECT + col1 * tab2.col2 + + col2 AS col1 FROM tab2
----
1560
684
864

query I rowsort
SELECT cor0.col0 + 74 * col0 FROM tab0 cor0
----
1800
2625
6675

query I rowsort
SELECT DISTINCT - + 99 * + ( - col0 ) AS col0 FROM tab2 AS cor0
----
693
7722
7821

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 95 * col0 + col2 * - col2 col2 FROM tab2 AS cor0
----
-1394
-8086
-8949

query I rowsort
SELECT ALL 84 AS col2 FROM tab2 AS cor0
----
84
84
84

query I rowsort
SELECT DISTINCT + + 31 FROM tab2 AS cor0
----
31

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6676
SELECT ALL - CAST( NULL AS SIGNED ) + - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6676
SELECT ALL - CAST ( NULL AS INTEGER ) + - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 64 col0 FROM tab1, tab0 AS cor0
----
-64

query I rowsort
SELECT + 43 AS col0 FROM tab2, tab2 cor0, tab1 AS cor1
----
27 values hashing to ee5108f6248be48c54e069545f81c5d9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 * + col1 + - col1 col1 FROM tab0 AS cor0
----
1978
3298
8008

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6680
SELECT - - col0 * CAST( NULL AS SIGNED ) + + cor0.col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6680
SELECT - - col0 * CAST ( NULL AS INTEGER ) + + cor0.col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 78 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-78

query I rowsort
SELECT DISTINCT col1 + + col1 * - col2 AS col1 FROM tab0 AS cor0
----
-2752
-7371
0

query I rowsort
SELECT cor0.col0 * col0 * - 64 AS col2 FROM tab1 AS cor0
----
-262144
-409600
-576

query I rowsort
SELECT ALL + + col0 * + 3 FROM tab0 cor0
----
105
267
72

query I rowsort
SELECT col0 * 26 + col0 AS col1 FROM tab1 AS cor0
----
1728
2160
81

query I rowsort
SELECT + + col1 + + 13 AS col1 FROM tab2 AS cor0
----
30
44
72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * ( + 49 ) + col1 * - ( + col0 ) col2 FROM tab2 AS cor0
----
-3328
1106
519

query I rowsort
SELECT ( - col1 ) + - col1 * + 76 * col2 FROM tab1 AS cor0
----
-106730
-43330
-94861

query I rowsort
SELECT cor2.col2 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab1, tab0 AS cor2
----
243 values hashing to 291cdf20f55dc7bbcb55f561dc0b74d8

query I rowsort
SELECT cor1.col1 * - cor0.col1 * - 45 AS col2 FROM tab1, tab0 cor0, tab1 AS cor1
----
27 values hashing to 5429d1b4068b26c779298760b283f6e2

query I rowsort
SELECT col1 * + ( + col2 ) AS col0 FROM tab1 AS cor0
----
1248
1404
570

onlyif mysql # use DIV operator for integer division
query I rowsort label-6692
SELECT col0 DIV col2 + col2 - col1 AS col1 FROM tab0 AS cor0
----
-53
-61
-8

skipif mysql # not compatible
query I rowsort label-6692
SELECT col0 / col2 + col2 - col1 AS col1 FROM tab0 AS cor0
----
-53
-61
-8

query I rowsort
SELECT DISTINCT + cor0.col1 * col0 AS col0 FROM tab0 cor0
----
2064
3395
8099

query I rowsort
SELECT col2 * + col1 + col2 AS col0 FROM tab2 cor0
----
1560
684
864

query I rowsort
SELECT + col1 + - col2 + - cor0.col0 * col0 FROM tab0 AS cor0
----
-1129
-523
-7912

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 90 * - cor0.col0 col1 FROM tab0 AS cor0
----
-2160
-3150
-8010

onlyif mysql # use DIV operator for integer division
query I rowsort label-6697
SELECT 99 DIV - cor1.col1 FROM tab2, tab0 AS cor0, tab1 cor1
----
27 values hashing to 1415633cf91c1be27097ad830fdd618a

skipif mysql # not compatible
query I rowsort label-6697
SELECT 99 / - cor1.col1 FROM tab2, tab0 AS cor0, tab1 cor1
----
27 values hashing to 1415633cf91c1be27097ad830fdd618a

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6698
SELECT + col2 * - col1 + - CAST( NULL AS SIGNED ) * - ( - cor0.col2 ) - - cor0.col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6698
SELECT + col2 * - col1 + - CAST ( NULL AS INTEGER ) * - ( - cor0.col2 ) - - cor0.col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6699
SELECT + - 12 DIV - 51 col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6699
SELECT + - 12 / - 51 col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT - cor0.col2 * - 3 + - col0 * col0 AS col2 FROM tab0 AS cor0
----
-1222
-477
-7675

query I rowsort
SELECT + col0 + - ( col2 ) * - cor0.col2 FROM tab0 AS cor0
----
1113
36
6813

query I rowsort
SELECT 31 * col1 AS col1 FROM tab0
----
2666
2821
3007

query I rowsort
SELECT + + col1 * 80 FROM tab1 AS cor0
----
1040
2080
800

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1, tab0 cor0, tab0 cor1
----
972 values hashing to 8b4fcda7f1ca76bad7c7d728f54a51e0

query I rowsort
SELECT DISTINCT - col2 * - col0 AS col2 FROM tab2
----
189
2028
3002

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6706
SELECT ALL col2 * col0 * - CAST( 82 AS SIGNED ) FROM tab2
----
-15498
-166296
-246164

skipif mysql # not compatible
query I rowsort label-6706
SELECT ALL col2 * col0 * - CAST ( 82 AS INTEGER ) FROM tab2
----
-15498
-166296
-246164

query I rowsort
SELECT ALL - 35 * + tab1.col1 - + tab1.col2 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 778be47a7d070ce7adb27529ebeaa049

query I rowsort
SELECT - + col1 * + col2 AS col1 FROM tab2 cor0
----
-1534
-646
-837

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6709
SELECT DISTINCT + cor0.col1 + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6709
SELECT DISTINCT + cor0.col1 + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 * + ( col1 ) col2 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT + col2 + 57 * + cor0.col2 FROM tab0 AS cor0
----
1914
4756
58

onlyif mysql # use DIV operator for integer division
query I rowsort label-6712
SELECT + + col0 - - 67 DIV - col0 AS col2 FROM tab2 cor0
----
-2
78
79

skipif mysql # not compatible
query I rowsort label-6712
SELECT + + col0 - - 67 / - col0 AS col2 FROM tab2 cor0
----
-2
78
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-6713
SELECT DISTINCT col1 DIV - col1 + col2 AS col2 FROM tab0 cor0
----
0
32
81

skipif mysql # not compatible
query I rowsort label-6713
SELECT DISTINCT col1 / - col1 + col2 AS col2 FROM tab0 cor0
----
0
32
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-6714
SELECT - ( cor0.col2 ) DIV - cor0.col2 AS col2 FROM tab1, tab1 cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

skipif mysql # not compatible
query I rowsort label-6714
SELECT - ( cor0.col2 ) / - cor0.col2 AS col2 FROM tab1, tab1 cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

query I rowsort
SELECT + 73 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496

query I rowsort
SELECT DISTINCT 61 AS col2 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
61

query I rowsort
SELECT DISTINCT col1 * + 52 FROM tab1
----
1352
520
676

query I rowsort
SELECT DISTINCT 78 AS col0 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
78

query I rowsort
SELECT - 28 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to eac00a95d734c7071360ed392c3f39bc

query I rowsort
SELECT + tab0.col0 + - ( tab0.col1 * col2 ) - col0 AS col2 FROM tab0
----
-2838
-7462
-97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6721
SELECT - col1 * ( - col0 ) + - col1 / 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-6721
SELECT - col1 * ( - col0 ) + - col1 / CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6722
SELECT + col0 + + CAST( NULL AS DECIMAL ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6722
SELECT + col0 + + CAST ( NULL AS REAL ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col0 + col2 * - col0 AS col0 FROM tab2
----
-182
-1950
-2923

query I rowsort
SELECT ALL + + col1 + - col1 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 21 col2 FROM tab2
----
-21

query I rowsort
SELECT ( - 35 ) FROM tab0
----
-35
-35
-35

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6727
SELECT - CAST( - 18 AS SIGNED ) FROM tab2
----
18
18
18

skipif mysql # not compatible
query I rowsort label-6727
SELECT - CAST ( - 18 AS INTEGER ) FROM tab2
----
18
18
18

query I rowsort
SELECT - 15 * col2 AS col2 FROM tab2
----
-390
-405
-570

query I rowsort
SELECT - + 21 + + col2 FROM tab2 cor0
----
17
5
6

query I rowsort
SELECT - col0 - - col1 * + 83 AS col0 FROM tab2 AS cor0
----
1332
2566
4819

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 * col1 * + col0 + + col2 col2 FROM tab2 AS cor0
----
106135
1546
358982

onlyif mysql # use DIV operator for integer division
query I rowsort label-6732
SELECT col0 DIV cor0.col0 + col2 AS col0 FROM tab1 AS cor0
----
55
58
97

skipif mysql # not compatible
query I rowsort label-6732
SELECT col0 / cor0.col0 + col2 AS col0 FROM tab1 AS cor0
----
55
58
97

query I rowsort
SELECT - col0 - - cor0.col0 AS col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT - + 68 AS col2 FROM tab0 AS cor0
----
-68
-68
-68

query I rowsort
SELECT col0 + - col0 AS col1 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT cor0.col1 + - col1 * 49 - + 71 AS col0 FROM tab2 cor0
----
-1559
-2903
-887

query I rowsort
SELECT DISTINCT + col1 + + col0 * col1 FROM tab2 AS cor0
----
1360
248
4661

query I rowsort
SELECT ALL - col1 * - col2 + - col1 FROM tab1 AS cor0
----
1235
1378
560

query I rowsort
SELECT cor0.col0 * + 39 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 1ebbdeb5daed83ce44092cc3875ddc57

query I rowsort
SELECT DISTINCT - + col1 + + col2 * + ( cor0.col0 ) AS col0 FROM tab2 AS cor0
----
158
1969
2985

query I rowsort
SELECT + col1 * col2 FROM tab2 WHERE NOT col0 NOT IN ( tab2.col2 + col0 * + col0 )
----

query I rowsort
SELECT + tab2.col2 * + tab2.col1 FROM tab2
----
1534
646
837

query I rowsort
SELECT col2 + col1 + col0 * col0 FROM tab0
----
1323
695
8094

query I rowsort
SELECT ( 16 ) AS col2 FROM tab2, tab2 cor0, tab1 AS cor1
----
27 values hashing to ee5bde9f68ee828e8cd86b0d590090bc

query I rowsort
SELECT DISTINCT - tab0.col1 * + col1 AS col2 FROM tab0
----
-7396
-8281
-9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab1.col2 col0 FROM tab1, tab0 cor0
----
-54
-57
-96

query I rowsort
SELECT DISTINCT + 77 * - col0 FROM tab2
----
-539
-6006
-6083

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 AS cor0, tab0 AS cor1, tab2 cor2
----
972 values hashing to 42e69ecdafb3c81046bc5cb4c98b1666

query I rowsort
SELECT ALL + 53 AS col2 FROM tab1 AS cor0
----
53
53
53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 14 col2 FROM tab2, tab1, tab1 cor0
----
27 values hashing to c2bf0e2420d22cd58d7ee3b30827afcc

query I rowsort
SELECT ALL col0 * - col1 + - tab0.col2 + - col2 FROM tab0
----
-2130
-3397
-8263

query I rowsort
SELECT ALL + col0 * col1 + col1 * - tab1.col0 + col0 * col2 FROM tab1
----
162
3648
7680

query I rowsort
SELECT ALL col2 FROM tab1 WHERE NOT col2 + col2 <> NULL
----

query I rowsort
SELECT col1 * col0 - col2 AS col0 FROM tab2
----
1305
190
4576

query I rowsort
SELECT + tab1.col0 + + col1 + - col0 FROM tab1 WHERE NULL BETWEEN col1 AND NULL
----

query I rowsort
SELECT + col0 * col0 + col1 AS col2 FROM tab2
----
6143
6258
80

query I rowsort
SELECT DISTINCT col2 * + col0 + + col0 * col1 AS col1 FROM tab1
----
240
4288
8720

query I rowsort
SELECT - col0 + - col0 * - col1 AS col0 FROM tab2 WHERE NOT col0 <> NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-6759
SELECT col1 * col0 + - col0 DIV col1 FROM tab2
----
1339
217
4601

skipif mysql # not compatible
query I rowsort label-6759
SELECT col1 * col0 + - col0 / col1 FROM tab2
----
1339
217
4601

query I rowsort
SELECT col0 AS col0 FROM tab1 WHERE col1 + + col1 > ( - col1 * + col0 * col2 + + col2 )
----
3
64
80

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) > ( NULL )
----

query I rowsort
SELECT ALL col1 * tab0.col0 * + col2 AS col1 FROM tab0
----
3395
664118
68112

query I rowsort
SELECT ALL + tab2.col0 + + col2 + col1 AS col1 FROM tab2
----
134
163
65

query I rowsort
SELECT tab1.col0 + + col1 - - tab1.col1 FROM tab1
----
106
55
84

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT IN ( col1 * col0 )
----

query I rowsort
SELECT - col2 + col2 * col2 * tab2.col0 FROM tab2
----
114038
5076
52702

query I rowsort
SELECT ALL col1 * - col0 + col1 * col2 AS col0 FROM tab0
----
-3298
-637
774

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col0 <= NULL
----

query I rowsort
SELECT col2 AS col1 FROM tab2 WHERE + col0 >= ( + tab2.col1 + col2 + - col2 / col1 )
----
38

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col2 > NULL
----

query I rowsort
SELECT + col0 * + col0 + tab1.col2 AS col1 FROM tab1
----
4153
63
6496

query I rowsort
SELECT DISTINCT + col2 + - col2 / - col0 FROM tab2 WHERE ( NULL ) BETWEEN NULL AND - col1 * col1
----

query III rowsort
SELECT * FROM tab2 WHERE col0 >= NULL
----

query I rowsort
SELECT - col0 + col1 * col0 FROM tab1
----
576
75
960

query I rowsort
SELECT ALL col1 FROM tab0 WHERE ( NULL ) >= col0
----

query I rowsort
SELECT DISTINCT 56 AS col1 FROM tab0
----
56

query I rowsort
SELECT DISTINCT - 23 + cor0.col1 FROM tab1, tab0 AS cor0
----
63
68
74

query I rowsort
SELECT + 58 + + col2 * col0 * + ( + 21 ) FROM tab2
----
4027
42646
63100

onlyif mysql # use DIV operator for integer division
query I rowsort label-6779
SELECT 0 DIV col1 + - tab1.col1 FROM tab1
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-6779
SELECT 0 / col1 + - tab1.col1 FROM tab1
----
-10
-13
-26

query I rowsort
SELECT DISTINCT 57 AS col1 FROM tab1
----
57

query I rowsort
SELECT + 53 FROM tab2, tab1 AS cor0
----
9 values hashing to fede6033dee346dbd272085c05724fda

onlyif mysql # use DIV operator for integer division
query I rowsort label-6782
SELECT ALL + 2 * cor0.col1 DIV + cor0.col0 + + col2 FROM tab2 AS cor0
----
27
35
38

skipif mysql # not compatible
query I rowsort label-6782
SELECT ALL + 2 * cor0.col1 / + cor0.col0 + + col2 FROM tab2 AS cor0
----
27
35
38

query I rowsort
SELECT ALL + col2 + col0 - col2 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT ALL cor0.col1 * 85 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to afe41043ca9af5e0cd03d3d29f67906f

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6785
SELECT - CAST( col0 AS SIGNED ) + + col2 AS col0 FROM tab0 AS cor0
----
-34
-7
9

skipif mysql # not compatible
query I rowsort label-6785
SELECT - CAST ( col0 AS INTEGER ) + + col2 AS col0 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT DISTINCT + cor0.col2 + 75 * 93 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
7001
7002
7013

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6787
SELECT DISTINCT - CAST( 42 AS SIGNED ) * col2 AS col1 FROM tab2 AS cor0
----
-1092
-1134
-1596

skipif mysql # not compatible
query I rowsort label-6787
SELECT DISTINCT - CAST ( 42 AS INTEGER ) * col2 AS col1 FROM tab2 AS cor0
----
-1092
-1134
-1596

query I rowsort
SELECT 6 * + ( col2 ) AS col1 FROM tab2
----
156
162
228

query I rowsort
SELECT DISTINCT - - 71 * 31 FROM tab1 AS cor0
----
2201

query I rowsort
SELECT ALL - 28 * - col2 FROM tab2 AS cor0
----
1064
728
756

query I rowsort
SELECT - - 77 + + col2 AS col1 FROM tab2 AS cor0
----
103
104
115

query I rowsort
SELECT ALL 82 + + cor0.col2 AS col0 FROM tab2 AS cor0
----
108
109
120

query I rowsort
SELECT - + 39 * + col1 + col0 * col1 FROM tab2 AS cor0
----
-992
2301
680

query I rowsort
SELECT ALL + - col2 + + cor0.col2 AS col2 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6795
SELECT DISTINCT + col1 DIV col2 - + col1 FROM tab0 AS cor0
----
-84
-90
0

skipif mysql # not compatible
query I rowsort label-6795
SELECT DISTINCT + col1 / col2 - + col1 FROM tab0 AS cor0
----
-84
-90
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6796
SELECT ALL 17 + 46 DIV col1 AS col1 FROM tab0
----
17
17
17

skipif mysql # not compatible
query I rowsort label-6796
SELECT ALL 17 + 46 / col1 AS col1 FROM tab0
----
17
17
17

query I rowsort
SELECT - col2 + + ( col0 ) * + cor0.col0 AS col1 FROM tab2 AS cor0
----
22
6058
6203

query I rowsort
SELECT col2 * + col2 + - col1 * col0 AS col1 FROM tab0 AS cor0
----
-1375
-3394
-975

onlyif mysql # use DIV operator for integer division
query I rowsort label-6799
SELECT DISTINCT - cor0.col1 DIV + ( col1 ) FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-6799
SELECT DISTINCT - cor0.col1 / + ( col1 ) FROM tab1 AS cor0
----
-1

query I rowsort
SELECT - col2 + col1 + - col1 FROM tab1 cor0
----
-54
-57
-96

query I rowsort
SELECT DISTINCT col2 + - 52 AS col0 FROM tab0
----
-19
-51
30

query I rowsort
SELECT ALL + cor0.col2 + 27 FROM tab1 AS cor0
----
123
81
84

query I rowsort
SELECT DISTINCT col0 * ( + ( + col2 ) + col2 ) FROM tab2 cor0
----
378
4056
6004

onlyif mysql # use DIV operator for integer division
query I rowsort label-6804
SELECT - col2 DIV col1 - 38 * col0 * 7 col1 FROM tab0 AS cor0
----
-23674
-6384
-9310

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6804
SELECT - col2 / col1 - 38 * col0 * 7 col1 FROM tab0 AS cor0
----
-23674
-6384
-9310

query I rowsort
SELECT + col2 * + ( col1 ) AS col2 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT ( + col2 ) + + 54 AS col1 FROM tab0
----
136
55
87

query I rowsort
SELECT DISTINCT cor0.col0 * ( col0 ) FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT DISTINCT - cor0.col2 + 78 FROM tab0 AS cor0
----
-4
45
77

onlyif mysql # use DIV operator for integer division
query I rowsort label-6809
SELECT DISTINCT + col1 DIV cor0.col2 FROM tab0 AS cor0
----
1
2
97

skipif mysql # not compatible
query I rowsort label-6809
SELECT DISTINCT + col1 / cor0.col2 FROM tab0 AS cor0
----
1
2
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6810
SELECT - col1 * + CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6810
SELECT - 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 - - col2 + 41 col0 FROM tab1 AS cor0
----
137
95
98

query I rowsort
SELECT ALL - tab2.col2 + + col2 FROM tab2
----
0
0
0

query I rowsort
SELECT + + col2 + - col1 * col1 AS col0 FROM tab2 AS cor0
----
-251
-3455
-934

query I rowsort
SELECT + + 45 + 38 FROM tab2 AS cor0
----
83
83
83

query I rowsort
SELECT - col0 * col0 + + col1 AS col2 FROM tab1
----
-4086
-6387
17

onlyif mysql # use DIV operator for integer division
query I rowsort label-6816
SELECT DISTINCT col0 DIV col1 + 72 FROM tab2
----
72
73
76

skipif mysql # not compatible
query I rowsort label-6816
SELECT DISTINCT col0 / col1 + 72 FROM tab2
----
72
73
76

query I rowsort
SELECT + col1 * 64 FROM tab2
----
1088
1984
3776

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * col2 + col2 col1 FROM tab0 AS cor0
----
36
7380
825

query I rowsort
SELECT - ( - col0 ) + - col1 AS col1 FROM tab0 AS cor0
----
-2
-62
-62

onlyif mysql # use DIV operator for integer division
query I rowsort label-6820
SELECT col2 + col1 + + col0 DIV col1 AS col1 FROM tab1 cor0
----
115
73
80

skipif mysql # not compatible
query I rowsort label-6820
SELECT col2 + col1 + + col0 / col1 AS col1 FROM tab1 cor0
----
115
73
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-6821
SELECT + 50 DIV + col2 col1 FROM tab0 AS cor0
----
0
1
50

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6821
SELECT + 50 / + col2 col1 FROM tab0 AS cor0
----
0
1
50

query I rowsort
SELECT ( - col2 * - col2 ) AS col1 FROM tab1
----
2916
3249
9216

query I rowsort
SELECT DISTINCT + 94 * 74 AS col2 FROM tab0
----
6956

query I rowsort
SELECT ( + col2 + + col0 * col0 ) FROM tab0
----
1226
609
8003

query I rowsort
SELECT ALL - tab2.col1 - + tab2.col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 66e198acca624efd182aa551bb5de4c7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + + col2 col2 FROM tab1 cor0
----
121
176
57

query I rowsort
SELECT - 72 + cor0.col2 * cor0.col0 FROM tab2 AS cor0
----
117
1956
2930

query I rowsort
SELECT - - cor0.col2 + col1 * col1 FROM tab0 AS cor0
----
7429
8363
9410

onlyif mysql # use DIV operator for integer division
query I rowsort label-6829
SELECT 81 * + col1 + - col1 DIV col0 AS col2 FROM tab1 cor0
----
1053
2098
810

skipif mysql # not compatible
query I rowsort label-6829
SELECT 81 * + col1 + - col1 / col0 AS col2 FROM tab1 cor0
----
1053
2098
810

query I rowsort
SELECT ALL 20 + + col2 * + col0 FROM tab2
----
2048
209
3022

query I rowsort
SELECT - - col2 * cor0.col0 + + col2 * col0 FROM tab2 AS cor0
----
378
4056
6004

query I rowsort
SELECT col0 * - col0 + col2 FROM tab0 AS cor0
----
-1224
-543
-7839

query I rowsort
SELECT ALL - cor0.col1 + - cor0.col0 FROM tab2 AS cor0
----
-137
-38
-96

query I rowsort
SELECT col2 - ( cor0.col2 ) AS col1 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT + + 85 + cor0.col2 AS col1 FROM tab2 AS cor0
----
111
112
123

query I rowsort
SELECT col1 * + tab1.col0 FROM tab1
----
1040
640
78

query I rowsort
SELECT + ( - col2 * col0 ) FROM tab0
----
-35
-7298
-792

query I rowsort
SELECT col1 + col2 * + col0 AS col0 FROM tab0 AS cor0
----
132
7389
878

query I rowsort
SELECT + + ( + col2 ) * col0 - + col2 FROM tab2 AS cor0
----
162
2002
2964

query I rowsort
SELECT DISTINCT tab2.col1 - + col0 * + col2 FROM tab2
----
-158
-1969
-2985

query I rowsort
SELECT - col0 + col2 + - col2 AS col1 FROM tab2
----
-7
-78
-79

query I rowsort
SELECT + col1 + col0 * col2 FROM tab1 cor0
----
188
3658
7693

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab2.col0 - col0 col0 FROM tab2
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6844
SELECT ALL - cor0.col2 + cor0.col1 DIV + cor0.col2 FROM tab1 AS cor0
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-6844
SELECT ALL - cor0.col2 + cor0.col1 / + cor0.col2 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT DISTINCT col2 + col2 * cor0.col2 FROM tab1 AS cor0
----
2970
3306
9312

query I rowsort
SELECT DISTINCT + col0 * col1 - col0 FROM tab2 AS cor0
----
1264
210
4524

query I rowsort
SELECT ALL - + cor0.col2 + cor0.col0 AS col2 FROM tab2 AS cor0
----
-20
41
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-6848
SELECT DISTINCT + col1 * + cor0.col1 + - col0 DIV - col2 AS col0 FROM tab1 AS cor0
----
101
169
676

skipif mysql # not compatible
query I rowsort label-6848
SELECT DISTINCT + col1 * + cor0.col1 + - col0 / - col2 AS col0 FROM tab1 AS cor0
----
101
169
676

query I rowsort
SELECT - cor0.col0 * - col0 * - col1 FROM tab1 cor0
----
-234
-40960
-83200

query I rowsort
SELECT ALL col1 * col2 - - col1 FROM tab1 AS cor0
----
1261
1430
580

query I rowsort
SELECT + col2 FROM tab1 AS cor0 WHERE NOT col2 + col0 * - col0 * + col1 NOT IN ( + col2 )
----

query I rowsort
SELECT + cor0.col0 + + col0 * col0 FROM tab2 cor0
----
56
6162
6320

query I rowsort
SELECT DISTINCT - col2 - col0 AS col1 FROM tab2 cor0
----
-104
-117
-34

query I rowsort
SELECT col1 * - col0 + + col2 * col2 * col0 FROM tab0 AS cor0
----
-3360
24072
590337

query I rowsort
SELECT ALL - col2 - col1 FROM tab1
----
-109
-67
-80

query I rowsort
SELECT DISTINCT + col1 * + col0 AS col0 FROM tab2 cor0
----
1343
217
4602

query I rowsort
SELECT ALL + col2 * + tab1.col0 FROM tab1
----
162
3648
7680

query I rowsort
SELECT DISTINCT + cor1.col0 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
24
35
89

query I rowsort
SELECT DISTINCT - cor0.col2 - col2 * + col1 FROM tab1 AS cor0
----
-1344
-1458
-627

query I rowsort
SELECT ALL - col0 * + col2 AS col1 FROM tab2 cor0
----
-189
-2028
-3002

query I rowsort
SELECT col1 - col0 * - col2 * col1 FROM tab2
----
119711
51051
5890

query I rowsort
SELECT - tab0.col1 * + col2 + col1 * col2 AS col0 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT - col1 * - col2 AS col0 FROM tab0
----
2838
7462
97

query I rowsort
SELECT - col2 - - tab2.col1 AS col2 FROM tab2
----
-21
33
4

query I rowsort
SELECT cor0.col2 AS col1 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT DISTINCT + col0 + - col2 * col0 FROM tab1 AS cor0
----
-159
-3584
-7600

query I rowsort
SELECT col1 + + 44 FROM tab0 AS cor0
----
130
135
141

query I rowsort
SELECT - col2 * + 57 AS col2 FROM tab1
----
-3078
-3249
-5472

query I rowsort
SELECT + col1 * ( col0 * col1 ) AS col2 FROM tab0 AS cor0
----
177504
329315
737009

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6870
SELECT - - col0 * - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6870
SELECT - - col0 * - CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 10 * 6 FROM tab1, tab2 cor0
----
9 values hashing to 067a4b5daf8747042e3b07ca8459859f

query I rowsort
SELECT DISTINCT - 15 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
-15

query I rowsort
SELECT ALL - + cor0.col2 + col1 * - 9 AS col1 FROM tab0 cor0
----
-807
-874
-901

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + - 98 * 31 col1 FROM tab2 AS cor0
----
-3000
-3011
-3012

query I rowsort
SELECT ALL ( 45 ) * + col2 AS col1 FROM tab1 AS cor0
----
2430
2565
4320

query I rowsort
SELECT ( cor0.col2 ) * + col2 * col1 FROM tab2 AS cor0
----
22599
24548
39884

query I rowsort
SELECT DISTINCT + - 99 * cor0.col2 AS col0 FROM tab1 AS cor0
----
-5346
-5643
-9504

query I rowsort
SELECT ALL + + ( + 13 ) * col1 FROM tab1 AS cor0
----
130
169
338

query I rowsort
SELECT ALL + 11 FROM tab1, tab1 AS cor0
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00

query I rowsort
SELECT col1 * ( - 12 * col2 ) + 80 AS col0 FROM tab1
----
-14896
-16768
-6760

query I rowsort
SELECT DISTINCT + col2 * col1 + 79 + 11 AS col0 FROM tab2 AS cor0
----
1624
736
927

query I rowsort
SELECT ALL - 57 * + cor0.col2 FROM tab0 cor0
----
-1881
-4674
-57

query I rowsort
SELECT - col0 * - col0 - cor0.col0 AS col1 FROM tab1 AS cor0
----
4032
6
6320

query I rowsort
SELECT ALL - 58 + + col1 * col1 AS col2 FROM tab0 AS cor0
----
7338
8223
9351

query I rowsort
SELECT DISTINCT + col0 + + cor0.col1 * col1 AS col1 FROM tab0 AS cor0
----
7420
8370
9444

query I rowsort
SELECT ALL - ( + col0 + col1 ) AS col2 FROM tab0
----
-110
-132
-180

query I rowsort
SELECT + cor0.col0 + col2 FROM tab2 cor0
----
104
117
34

query I rowsort
SELECT DISTINCT + - 57 * col1 AS col0 FROM tab0 cor0
----
-4902
-5187
-5529

query I rowsort
SELECT ALL col2 * col0 + + col0 + - col1 * col0 FROM tab0 AS cor0
----
-1248
-3325
-712

query I rowsort
SELECT + + cor0.col1 + + cor0.col0 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT ALL - ( - col2 ) + - col1 AS col0 FROM tab2 AS cor0
----
-33
-4
21

query I rowsort
SELECT DISTINCT - 55 FROM tab0 cor0
----
-55

query I rowsort
SELECT DISTINCT + col1 + - col2 * cor0.col0 FROM tab0 AS cor0
----
-706
-7207
62

query I rowsort
SELECT ALL + 77 AS col1 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to d7b027bca5d37c67e29013904def8125

query I rowsort
SELECT 13 * ( - col0 * ( col1 ) ) + col2 FROM tab2
----
-17421
-2794
-59800

query I rowsort
SELECT DISTINCT col0 - + tab1.col2 AS col1 FROM tab1
----
-16
-51
7

query I rowsort
SELECT 80 + cor0.col2 FROM tab1, tab2, tab2 cor0
----
27 values hashing to eb934ec37213ab3621607e9b16e3ef11

onlyif mysql # use DIV operator for integer division
query I rowsort label-6898
SELECT 98 * tab0.col1 DIV + col1 col2 FROM tab0
----
98
98
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6898
SELECT 98 * tab0.col1 / + col1 col2 FROM tab0
----
98
98
98

query I rowsort
SELECT - ( col1 ) * + col2 FROM tab2
----
-1534
-646
-837

query I rowsort
SELECT - 76 + tab2.col1 - col1 * - col1 FROM tab2
----
230
3464
916

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6901
SELECT DISTINCT - col2 + col0 / - col0 - + CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6901
SELECT DISTINCT - col2 + col0 / - col0 - + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6902
SELECT + ( col0 ) * CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6902
SELECT + ( col0 ) * CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - 19 * col2 FROM tab1
----
-1026
-1083
-1824

query I rowsort
SELECT DISTINCT + col2 + col1 * + col0 FROM tab2
----
1381
244
4628

query I rowsort
SELECT ALL - - 31 * - col0 + - 51 AS col0 FROM tab0 cor0
----
-1136
-2810
-795

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - cor0.col1 + col2 * + col0 col0 FROM tab2 cor0
----
158
1969
2985

query I rowsort
SELECT + 4 * - col2 + + col2 - col2 FROM tab1 AS cor0
----
-216
-228
-384

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + col1 * + 38 col1 FROM tab0 AS cor0
----
3182
3367
3589

query I rowsort
SELECT - cor0.col2 - + col2 * ( col2 ) AS col1 FROM tab2 cor0
----
-1482
-702
-756

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6910
SELECT - + col0 + CAST( NULL AS DECIMAL ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6910
SELECT - + col0 + CAST ( NULL AS REAL ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 col1 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

query I rowsort
SELECT DISTINCT - col2 * - col2 + - 24 * + col1 FROM tab1 cor0
----
2292
3009
8904

onlyif mysql # use DIV operator for integer division
query I rowsort label-6913
SELECT ALL col0 DIV - col1 + col1 FROM tab2
----
13
31
58

skipif mysql # not compatible
query I rowsort label-6913
SELECT ALL col0 / - col1 + col1 FROM tab2
----
13
31
58

query I rowsort
SELECT 7 FROM tab2, tab1 cor0, tab2 AS cor1
----
27 values hashing to 4e72e9e33dacac757f48d0ce46094607

query I rowsort
SELECT ALL - 1 + - tab0.col0 * tab0.col1 AS col2 FROM tab0
----
-2065
-3396
-8100

query I rowsort
SELECT DISTINCT - col1 * - ( + col1 * col1 ) FROM tab1 AS cor0
----
1000
17576
2197

query I rowsort
SELECT ALL + + col0 + + 24 AS col0 FROM tab2 AS cor0
----
102
103
31

query I rowsort
SELECT ALL + 62 AS col1 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 4911b1417a3797d23dd8f38b6ed05c1b

query I rowsort
SELECT + - col0 * + ( - ( - col2 ) ) AS col2 FROM tab2 cor0
----
-189
-2028
-3002

query I rowsort
SELECT + col1 * ( col2 ) + cor0.col0 FROM tab1 AS cor0
----
1328
1407
634

onlyif mysql # use DIV operator for integer division
query I rowsort label-6921
SELECT - - col1 DIV col1 + - ( col0 ) FROM tab2 AS cor0
----
-6
-77
-78

skipif mysql # not compatible
query I rowsort label-6921
SELECT - - col1 / col1 + - ( col0 ) FROM tab2 AS cor0
----
-6
-77
-78

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6922
SELECT DISTINCT + cor0.col1 + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6922
SELECT DISTINCT + cor0.col1 + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL + col2 + + col0 + - col0 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT DISTINCT + + col1 * + col2 - col2 * col2 FROM tab2 AS cor0
----
-798
108
858

query I rowsort
SELECT - - col2 + col0 * - 89 AS col0 FROM tab1 cor0
----
-213
-5639
-7024

query I rowsort
SELECT - col1 * + col0 - + 22 FROM tab1 AS cor0
----
-100
-1062
-662

onlyif mysql # use DIV operator for integer division
query I rowsort label-6927
SELECT + cor0.col0 DIV 2 AS col1 FROM tab0 cor0
----
12
17
44

skipif mysql # not compatible
query I rowsort label-6927
SELECT + cor0.col0 / 2 AS col1 FROM tab0 cor0
----
12
17
44

query I rowsort
SELECT ALL + - col0 * col2 * col0 + - col2 FROM tab2 AS cor0
----
-1350
-158210
-237196

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 + - col1 col2 FROM tab1 AS cor0
----
-109
-67
-80

query I rowsort
SELECT DISTINCT - - 23 - - col2 AS col0 FROM tab0 AS cor0
----
105
24
56

query I rowsort
SELECT + 33 + col0 AS col2 FROM tab2 AS cor0
----
111
112
40

query I rowsort
SELECT DISTINCT + + 42 + + col0 + + col2 AS col2 FROM tab1 AS cor0
----
163
218
99

onlyif mysql # use DIV operator for integer division
query I rowsort label-6933
SELECT ALL - - cor0.col0 - - col1 DIV - col1 FROM tab2 AS cor0
----
6
77
78

skipif mysql # not compatible
query I rowsort label-6933
SELECT ALL - - cor0.col0 - - col1 / - col1 FROM tab2 AS cor0
----
6
77
78

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6934
SELECT CAST( NULL AS SIGNED ) + 36 * + col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6934
SELECT CAST ( NULL AS INTEGER ) + 36 * + col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6935
SELECT ALL ( - col2 ) DIV col0 + + col2 AS col0 FROM tab2 AS cor0
----
24
26
38

skipif mysql # not compatible
query I rowsort label-6935
SELECT ALL ( - col2 ) / col0 + + col2 AS col0 FROM tab2 AS cor0
----
24
26
38

query I rowsort
SELECT 70 + 15 * + cor0.col2 AS col1 FROM tab1 cor0
----
1510
880
925

query I rowsort
SELECT ALL + + 1 FROM tab0 AS cor0
----
1
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-6938
SELECT DISTINCT + 19 DIV + col0 AS col1 FROM tab2 cor0
----
0
2

skipif mysql # not compatible
query I rowsort label-6938
SELECT DISTINCT + 19 / + col0 AS col1 FROM tab2 cor0
----
0
2

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6939
SELECT - CAST( col1 AS SIGNED ) * + col0 * col1 AS col1 FROM tab2 AS cor0
----
-22831
-271518
-6727

skipif mysql # not compatible
query I rowsort label-6939
SELECT - CAST ( col1 AS INTEGER ) * + col0 * col1 AS col1 FROM tab2 AS cor0
----
-22831
-271518
-6727

query I rowsort
SELECT ALL ( 99 ) * + col0 + + ( col1 + col1 ) * ( - col2 + - col1 ) FROM tab1 cor0
----
-3863
4996
5086

query I rowsort
SELECT ALL - cor0.col2 * - col2 - - cor0.col1 FROM tab0 AS cor0
----
1175
6815
98

query I rowsort
SELECT ALL cor0.col2 * - col2 + col1 FROM tab0 AS cor0
----
-1003
-6633
96

query I rowsort
SELECT DISTINCT - - col2 - + col0 FROM tab2 AS cor0
----
-41
-52
20

query I rowsort
SELECT - 70 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to c2a2994a4e94583683ccda2cc098c58f

query I rowsort
SELECT + col1 - col0 * ( - col1 ) FROM tab1 AS cor0
----
104
1053
650

query I rowsort
SELECT DISTINCT 81 + col0 FROM tab2 AS cor0
----
159
160
88

query I rowsort
SELECT DISTINCT col2 + + cor0.col1 * col2 AS col1 FROM tab2 AS cor0
----
1560
684
864

query I rowsort
SELECT - 86 + col1 FROM tab0 AS cor0
----
0
11
5

query I rowsort
SELECT + 81 * cor0.col0 * - col0 + + 67 AS col2 FROM tab2 cor0
----
-3902
-492737
-505454

query I rowsort
SELECT DISTINCT - 20 + col1 * + col2 AS col1 FROM tab1 AS cor0
----
1228
1384
550

query I rowsort
SELECT 8 * + cor0.col1 FROM tab0 AS cor0
----
688
728
776

query I rowsort
SELECT col1 * col2 * - col0 AS col0 FROM tab2 AS cor0
----
-119652
-51034
-5859

query I rowsort
SELECT - 5 * col0 + col2 * - 27 * + ( col1 ) - col0 AS col0 FROM tab0 AS cor0
----
-202008
-2829
-76770

query I rowsort
SELECT + col0 + col1 - - col2 FROM tab1 cor0
----
131
189
83

query I rowsort
SELECT - 97 * - 49 + + col0 * col1 + 23 AS col0 FROM tab1 AS cor0
----
4854
5416
5816

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 83 + - col0 col2 FROM tab0 AS cor0
----
-107
-118
-172

query I rowsort
SELECT - 15 AS col2 FROM tab1 cor0
----
-15
-15
-15

query I rowsort
SELECT + 50 AS col1 FROM tab0 AS cor0
----
50
50
50

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6959
SELECT - cor0.col0 + - 49 * col0 - - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6959
SELECT - cor0.col0 + - 49 * col0 - - CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + col0 - + col1 FROM tab1 cor0
----
-29
-74
-93

query I rowsort
SELECT ALL col0 + + ( - 27 ) AS col0 FROM tab0
----
-3
62
8

query I rowsort
SELECT 26 FROM tab2, tab1 AS cor0, tab0 cor1
----
27 values hashing to ede8226bb7e602e221f9d98345b4da37

query I rowsort
SELECT + 15 AS col0 FROM tab2, tab0 cor0
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd

query I rowsort
SELECT + col2 * + 60 + col1 AS col1 FROM tab1 AS cor0
----
3266
3430
5773

query I rowsort
SELECT ALL - 3 FROM tab0, tab0 AS cor0
----
9 values hashing to 95b6b9b4aae5cc2d9545db9f8940b2dc

query I rowsort
SELECT DISTINCT + cor0.col1 * - col1 + 82 FROM tab1 AS cor0
----
-18
-594
-87

query I rowsort
SELECT ALL col0 * col2 * - col2 FROM tab2
----
-114076
-5103
-52728

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 40 col1 FROM tab1, tab2 AS cor0
----
9 values hashing to f02f17e9bc17e514af018c6f245ed7a9

query I rowsort
SELECT DISTINCT - cor1.col1 - 94 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-180
-185
-191

query I rowsort
SELECT - + cor1.col1 FROM tab2, tab2 AS cor0, tab2 AS cor1, tab1, tab2 AS cor2
----
243 values hashing to aad6a39cc782d0570960622f04a07424

query I rowsort
SELECT 60 AS col0 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to a97561e17ecaa618227c75a57b268f33

query I rowsort
SELECT - 55 AS col2 FROM tab1
----
-55
-55
-55

query I rowsort
SELECT ALL - 1 FROM tab1, tab2 AS cor0
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b

query I rowsort
SELECT DISTINCT - 55 FROM tab1, tab2 AS cor0
----
-55

query I rowsort
SELECT ALL col2 * ( 90 + - col0 ) FROM tab0
----
2178
55
82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6976
SELECT CAST( NULL AS SIGNED ) * - cor0.col1 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-6976
SELECT CAST ( NULL AS INTEGER ) * - cor0.col1 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT - - col2 * 49 FROM tab1 AS cor0
----
2646
2793
4704

query I rowsort
SELECT - - col1 + col1 AS col0 FROM tab1 AS cor0
----
20
26
52

query I rowsort
SELECT - col2 * - 14 AS col2 FROM tab0 AS cor0
----
1148
14
462

query I rowsort
SELECT DISTINCT + col0 * ( - col1 * + col0 ) AS col1 FROM tab1 cor0
----
-234
-40960
-83200

query I rowsort
SELECT + cor0.col2 + + col1 * col0 FROM tab0 AS cor0
----
2097
3396
8181

query I rowsort
SELECT DISTINCT + - col1 * + 25 + col2 FROM tab0 AS cor0
----
-2117
-2193
-2424

query I rowsort
SELECT + col1 + ( col0 ) FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT + - ( 67 ) + col1 AS col0 FROM tab2 AS cor0
----
-36
-50
-8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + - col1 * cor0.col0 col2 FROM tab2 cor0
----
-1326
-186
-4543

onlyif mysql # use DIV operator for integer division
query I rowsort label-6986
SELECT + + col1 * col0 DIV col1 AS col0 FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-6986
SELECT + + col1 * col0 / col1 AS col0 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT DISTINCT - 16 + col1 AS col1 FROM tab0
----
70
75
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 26 * + col2 + cor0.col1 * + ( col2 * - col2 + - col2 * cor0.col2 ) col1 FROM tab0 AS cor0
----
-1225900
-188166
-220

query I rowsort
SELECT ALL 71 + col0 * col2 FROM tab2
----
2099
260
3073

query I rowsort
SELECT - 13 AS col2 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 1c6aaa07ba8d3dc01ee616e16bef60f2

query I rowsort
SELECT + col1 * + col1 + col2 FROM tab1 AS cor0
----
157
265
730

query I rowsort
SELECT - col0 + 77 AS col1 FROM tab2 AS cor0
----
-1
-2
70

query I rowsort
SELECT - 15 * col2 AS col0 FROM tab1
----
-1440
-810
-855

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 89 + - 41 * tab2.col2 * col0 col1 FROM tab2
----
-122993
-7660
-83059

query I rowsort
SELECT col0 * 60 AS col2 FROM tab2
----
420
4680
4740

query I rowsort
SELECT DISTINCT + 88 FROM tab2, tab0 AS cor0
----
88

query I rowsort
SELECT - 98 * 14 - col2 FROM tab0 AS cor0
----
-1373
-1405
-1454

query I rowsort
SELECT - col0 * + col0 - col0 AS col1 FROM tab0 cor0
----
-1260
-600
-8010

query I rowsort
SELECT ALL + col1 * 5 + col1 AS col2 FROM tab1 AS cor0
----
156
60
78

query I rowsort
SELECT DISTINCT + + ( col0 ) + - col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT 91 + + col1 AS col2 FROM tab0 AS cor0
----
177
182
188

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7002
SELECT - CAST( + col1 AS SIGNED ) + cor0.col1 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7002
SELECT - CAST ( + col1 AS INTEGER ) + cor0.col1 AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT col1 * - cor0.col0 + col1 FROM tab1 AS cor0
----
-1027
-52
-630

onlyif mysql # use DIV operator for integer division
query I rowsort label-7004
SELECT ALL + + col1 DIV - cor0.col1 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7004
SELECT ALL + + col1 / - cor0.col1 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ALL - ( col1 ) + 92 AS col1 FROM tab0 AS cor0
----
-5
1
6

query I rowsort
SELECT DISTINCT - col1 * - cor0.col0 * 96 AS col2 FROM tab1 AS cor0
----
61440
7488
99840

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 12 + - col1 * col1 col2 FROM tab1 AS cor0
----
-112
-181
-688

query I rowsort
SELECT - 3 * - cor0.col2 + - cor0.col1 AS col1 FROM tab0 AS cor0
----
-94
13
155

query I rowsort
SELECT + col0 + - col0 * - 88 AS col0 FROM tab1 AS cor0
----
267
5696
7120

onlyif mysql # use DIV operator for integer division
query I rowsort label-7010
SELECT DISTINCT - 76 DIV - col1 + - col1 AS col1 FROM tab1
----
-24
-3
-8

skipif mysql # not compatible
query I rowsort label-7010
SELECT DISTINCT - 76 / - col1 + - col1 AS col1 FROM tab1
----
-24
-3
-8

query I rowsort
SELECT ALL + 25 * - 16 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 62a353f997e2776254aabeb7980dcd80

query I rowsort
SELECT + + col0 * 29 + ( + col1 ) FROM tab0 cor0
----
1112
2672
782

query I rowsort
SELECT DISTINCT - cor0.col1 + - col2 FROM tab2 cor0
----
-55
-58
-85

query I rowsort
SELECT ALL + cor0.col1 * col1 FROM tab1 cor0
----
100
169
676

query I rowsort
SELECT + col0 * - ( ( col1 ) + 1 ) FROM tab2 AS cor0
----
-1422
-224
-4680

query I rowsort
SELECT + cor0.col1 * 81 AS col0 FROM tab2 AS cor0
----
1377
2511
4779

query I rowsort
SELECT ALL - - col1 + - cor0.col2 AS col1 FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT ALL + cor0.col0 + col0 * - col1 FROM tab2 AS cor0
----
-1264
-210
-4524

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - 32 col0 FROM tab2 AS cor0
----
-1888
-544
-992

query I rowsort
SELECT ALL + - ( 51 ) FROM tab2 AS cor0
----
-51
-51
-51

query I rowsort
SELECT DISTINCT + col0 + col1 * + cor0.col1 * - col0 FROM tab2 AS cor0
----
-22752
-271440
-6720

query I rowsort
SELECT DISTINCT col0 + - ( col1 ) FROM tab0 AS cor0
----
-2
-62

query I rowsort
SELECT ( - col1 ) + col1 * + ( col2 ) FROM tab2 AS cor0
----
1475
629
806

onlyif mysql # use DIV operator for integer division
query I rowsort label-7024
SELECT ALL col0 + col1 - - col2 DIV - col1 AS col0 FROM tab1
----
27
69
86

skipif mysql # not compatible
query I rowsort label-7024
SELECT ALL col0 + col1 - - col2 / - col1 AS col0 FROM tab1
----
27
69
86

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7025
SELECT DISTINCT CAST( NULL AS SIGNED ) + + 8 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7025
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + 8 FROM tab2 cor0
----
NULL

query I rowsort
SELECT - 32 * col1 + + cor0.col0 AS col2 FROM tab2 AS cor0
----
-1810
-465
-985

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7027
SELECT DISTINCT CAST( NULL AS SIGNED ) * 93 + col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7027
SELECT DISTINCT CAST ( NULL AS INTEGER ) * 93 + col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7028
SELECT DISTINCT + - CAST( NULL AS DECIMAL ) + col2 AS col1 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7028
SELECT DISTINCT + - CAST ( NULL AS REAL ) + col2 AS col1 FROM tab2 cor0
----
NULL

query I rowsort
SELECT - col1 * 37 AS col2 FROM tab0 AS cor0
----
-3182
-3367
-3589

query I rowsort
SELECT DISTINCT + 4 FROM tab1, tab1 AS cor0
----
4

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7031
SELECT DISTINCT col0 * - CAST( - col0 * + col0 AS SIGNED ) FROM tab0
----
13824
42875
704969

skipif mysql # not compatible
query I rowsort label-7031
SELECT DISTINCT col0 * - CAST ( - col0 * + col0 AS INTEGER ) FROM tab0
----
13824
42875
704969

query I rowsort
SELECT tab0.col0 + + tab0.col1 AS col2 FROM tab0
----
110
132
180

query I rowsort
SELECT - 83 + - 30 FROM tab2 AS cor0
----
-113
-113
-113

query I rowsort
SELECT cor0.col0 + 71 FROM tab1 AS cor0
----
135
151
74

onlyif mysql # use DIV operator for integer division
query I rowsort label-7035
SELECT + + col0 DIV ( col1 ) FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7035
SELECT + + col0 / ( col1 ) FROM tab0 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-7036
SELECT ALL + col2 + + col0 DIV - col1 AS col2 FROM tab1 AS cor0
----
51
54
90

skipif mysql # not compatible
query I rowsort label-7036
SELECT ALL + col2 + + col0 / - col1 AS col2 FROM tab1 AS cor0
----
51
54
90

query I rowsort
SELECT + col1 * - 52 * cor0.col1 FROM tab1 AS cor0
----
-35152
-5200
-8788

query I rowsort
SELECT - - 24 * col2 AS col0 FROM tab1 AS cor0
----
1296
1368
2304

query I rowsort
SELECT ALL col1 + col1 + + col1 FROM tab2
----
177
51
93

query I rowsort
SELECT ALL ( - 16 * + col2 ) + 54 AS col2 FROM tab1
----
-1482
-810
-858

query I rowsort
SELECT - col0 - + col1 AS col1 FROM tab1 AS cor0
----
-29
-74
-93

query I rowsort
SELECT + col0 * cor0.col1 + 62 FROM tab2 AS cor0
----
1405
279
4664

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + col0 ) + col2 col2 FROM tab1
----
-7
16
51

query I rowsort
SELECT ALL ( col2 ) * col0 FROM tab2 cor0
----
189
2028
3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col1 col1 FROM tab1, tab0 cor0
----
9 values hashing to 58ed467a9a332e4d7bfaa9abdbbd063f

query I rowsort
SELECT - col1 * ( - 94 * + col1 ) AS col2 FROM tab1 AS cor0
----
15886
63544
9400

query I rowsort
SELECT + col2 * 79 + - col1 * col2 * cor0.col0 + ( col1 ) FROM tab2 AS cor0
----
-117539
-3695
-48015

query I rowsort
SELECT - - col1 + + 31 * 37 AS col0 FROM tab1 AS cor0
----
1157
1160
1173

query I rowsort
SELECT + + col0 + cor0.col0 + - col1 * - col0 FROM tab2 AS cor0
----
1501
231
4758

query I rowsort
SELECT - 18 * col0 FROM tab0
----
-1602
-432
-630

query I rowsort
SELECT DISTINCT 59 FROM tab0, tab0 AS cor0, tab0 cor1
----
59

query I rowsort
SELECT - ( col2 ) * - col0 * col2 + + col1 FROM tab2
----
114093
5134
52787

query I rowsort
SELECT ( - col0 ) * tab0.col0 * col2 FROM tab0
----
-1225
-19008
-649522

onlyif mysql # use DIV operator for integer division
query I rowsort label-7054
SELECT + tab2.col2 + + tab2.col2 DIV + 31 AS col2 FROM tab2
----
26
27
39

skipif mysql # not compatible
query I rowsort label-7054
SELECT + tab2.col2 + + tab2.col2 / + 31 AS col2 FROM tab2
----
26
27
39

onlyif mysql # use DIV operator for integer division
query I rowsort label-7055
SELECT ALL + tab1.col2 DIV - 96 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-7055
SELECT ALL + tab1.col2 / - 96 FROM tab1
----
-1
0
0

query I rowsort
SELECT DISTINCT + + col2 * 29 + col1 FROM tab2 AS cor0
----
1119
813
814

onlyif mysql # use DIV operator for integer division
query I rowsort label-7057
SELECT - col2 + + 39 DIV + col1 FROM tab2 AS cor0
----
-26
-26
-36

skipif mysql # not compatible
query I rowsort label-7057
SELECT - col2 + + 39 / + col1 FROM tab2 AS cor0
----
-26
-26
-36

query I rowsort
SELECT + col0 * + 69 AS col1 FROM tab1 cor0
----
207
4416
5520

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7059
SELECT DISTINCT col2 / CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7059
SELECT DISTINCT col2 / CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + + cor0.col1 + + 48 FROM tab2 cor0
----
107
65
79

query I rowsort
SELECT DISTINCT col2 * 2 + cor0.col2 AS col2 FROM tab1 cor0
----
162
171
288

query I rowsort
SELECT + col1 * 68 FROM tab1 AS cor0
----
1768
680
884

query I rowsort
SELECT DISTINCT + col2 * cor0.col0 - - cor0.col0 FROM tab2 cor0
----
196
2106
3081

query I rowsort
SELECT ALL - col1 * col2 + 40 FROM tab1 AS cor0
----
-1208
-1364
-530

query I rowsort
SELECT + col2 * - col2 + 7 FROM tab0 cor0
----
-1082
-6717
6

query I rowsort
SELECT - + col2 + 83 * + cor0.col2 AS col2 FROM tab2 AS cor0
----
2132
2214
3116

query I rowsort
SELECT DISTINCT - cor0.col0 * + tab2.col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 7522b05e664ac1561bef84e44b3f2d33

query I rowsort
SELECT DISTINCT - + col2 + 46 AS col2 FROM tab0 AS cor0
----
-36
13
45

query I rowsort
SELECT ALL - col1 - + 96 FROM tab1 cor0
----
-106
-109
-122

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 - + 62 col2 FROM tab0 AS cor0
----
-29
-61
20

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col0 col2 FROM tab1 AS cor0
----
162
3648
7680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7072
SELECT - CAST( NULL AS SIGNED ) * - cor0.col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7072
SELECT - CAST ( NULL AS INTEGER ) * - cor0.col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 + - 41 AS col2 FROM tab1 AS cor0
----
-38
23
39

query I rowsort
SELECT - ( col1 ) + cor0.col1 * col1 FROM tab2 AS cor0
----
272
3422
930

query I rowsort
SELECT 3 + cor0.col2 * col2 FROM tab2 AS cor0
----
1447
679
732

query I rowsort
SELECT - - col2 * col0 * col2 FROM tab0 AS cor0
----
26136
35
598436

query I rowsort
SELECT + col1 + + tab2.col1 * - col0 AS col1 FROM tab2
----
-1326
-186
-4543

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7078
SELECT - col1 + CAST( NULL AS SIGNED ) + ( col0 + col1 ) col1 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7078
SELECT - col1 + CAST ( NULL AS INTEGER ) + ( col0 + col1 ) col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-7079
SELECT - ( col1 ) * col1 DIV + col1 + col0 * col2 FROM tab0 AS cor0
----
-62
706
7207

skipif mysql # not compatible
query I rowsort label-7079
SELECT - ( col1 ) * col1 / + col1 + col0 * col2 FROM tab0 AS cor0
----
-62
706
7207

query I rowsort
SELECT DISTINCT - 71 + + col1 FROM tab1 AS cor0
----
-45
-58
-61

query I rowsort
SELECT ALL - col1 - + col0 AS col0 FROM tab2 cor0
----
-137
-38
-96

query I rowsort
SELECT ALL 45 AS col2 FROM tab1, tab0 AS cor0 CROSS JOIN tab2
----
27 values hashing to 14cec871edc37b5056cda01c8331fdca

query I rowsort
SELECT ALL + + col2 * + col1 AS col1 FROM tab0 AS cor0
----
2838
7462
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + col2 + col0 col1 FROM tab0 cor0
----
-1065
-6635
34

onlyif mysql # use DIV operator for integer division
query I rowsort label-7085
SELECT ALL col0 DIV col1 AS col1 FROM tab1 cor0
----
0
6
6

skipif mysql # not compatible
query I rowsort label-7085
SELECT ALL col0 / col1 AS col1 FROM tab1 cor0
----
0
6
6

query I rowsort
SELECT - ( cor0.col0 ) * + col1 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT DISTINCT col2 + col0 * - ( - 37 ) FROM tab1 AS cor0
----
165
2425
3056

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col2 + + cor0.col2 col0 FROM tab2 AS cor0
----
52
54
76

query I rowsort
SELECT cor0.col2 * + col1 * - col1 + col2 AS col1 FROM tab1 AS cor0
----
-16128
-36450
-5643

query I rowsort
SELECT ALL - + 23 * col0 FROM tab0 AS cor0
----
-2047
-552
-805

onlyif mysql # use DIV operator for integer division
query I rowsort label-7091
SELECT 87 DIV + cor0.col1 + 39 AS col1 FROM tab2 AS cor0
----
40
41
44

skipif mysql # not compatible
query I rowsort label-7091
SELECT 87 / + cor0.col1 + 39 AS col1 FROM tab2 AS cor0
----
40
41
44

onlyif mysql # use DIV operator for integer division
query I rowsort label-7092
SELECT DISTINCT + col2 DIV + col0 FROM tab0 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-7092
SELECT DISTINCT + col2 / + col0 FROM tab0 AS cor0
----
0
1

query I rowsort
SELECT DISTINCT - 43 + - col2 FROM tab1 AS cor0
----
-100
-139
-97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7094
SELECT DISTINCT - 26 * - col1 + + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7094
SELECT DISTINCT - 26 * - col1 + + CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - 39 AS col1 FROM tab2
----
-39

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7096
SELECT CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-7096
SELECT CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT - ( col2 ) * - 79 FROM tab0 AS cor0
----
2607
6478
79

query I rowsort
SELECT ALL - 52 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 9500afe5646d620d5e8943351a29d082

query I rowsort
SELECT ALL + + col0 * - col0 AS col0 FROM tab2 AS cor0
----
-49
-6084
-6241

query I rowsort
SELECT ALL 95 * 50 FROM tab2 cor0 CROSS JOIN tab0, tab2 AS cor1
----
27 values hashing to 492ed509338beb16888bd85339e4ec64

query I rowsort
SELECT ALL - col0 - - 22 * 17 AS col1 FROM tab0
----
285
339
350

query I rowsort
SELECT + col1 + col2 * - tab1.col2 FROM tab1
----
-2890
-3239
-9203

query I rowsort
SELECT - - col1 + + col2 * + cor0.col0 * col0 FROM tab0 AS cor0
----
1322
19094
649613

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + + 10 + col0 * + 17 col2 FROM tab1
----
115
1155
1466

query I rowsort
SELECT ALL + col2 + - 63 + + col0 AS col0 FROM tab2
----
-29
41
54

query I rowsort
SELECT ALL + ( + 85 ) * + col1 * tab2.col1 + - col0 FROM tab2
----
24486
295807
81678

query I rowsort
SELECT ALL - 93 * col2 + col0 FROM tab2 AS cor0
----
-2340
-2504
-3455

query I rowsort
SELECT DISTINCT 48 * - col1 FROM tab0 AS cor0
----
-4128
-4368
-4656

query I rowsort
SELECT ALL - col1 * col0 + col0 FROM tab2 AS cor0
----
-1264
-210
-4524

query I rowsort
SELECT + 98 - col2 FROM tab1 cor0
----
2
41
44

query I rowsort
SELECT DISTINCT - - col2 * - col0 + col1 FROM tab0 AS cor0
----
-706
-7207
62

query I rowsort
SELECT ALL 67 FROM tab1, tab0 cor0
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c

query I rowsort
SELECT DISTINCT ( - 15 ) + col1 FROM tab1 AS cor0
----
-2
-5
11

query I rowsort
SELECT + - 97 + 79 FROM tab0 AS cor0
----
-18
-18
-18

query I rowsort
SELECT ALL + 77 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622

query I rowsort
SELECT ALL - - col1 * 63 + - col1 + + col1 * col2 * - 60 AS col2 FROM tab1 AS cor0
----
-33580
-74074
-82628

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 23 col2 FROM tab1, tab1 AS cor0, tab0 cor1
----
23

query I rowsort
SELECT ( + col0 * col2 ) + - 57 AS col1 FROM tab2
----
132
1971
2945

query I rowsort
SELECT + col0 * col2 * - col0 + col1 * col2 * + col2 FROM tab0
----
-1128
-37638
74646

query I rowsort
SELECT DISTINCT cor0.col1 + - col0 * + 90 FROM tab2 AS cor0
----
-599
-6961
-7093

query I rowsort
SELECT DISTINCT + col0 + ( - col1 * col0 ) AS col0 FROM tab2
----
-1264
-210
-4524

onlyif mysql # use DIV operator for integer division
query I rowsort label-7122
SELECT DISTINCT + 90 DIV cor0.col0 AS col2 FROM tab1, tab1 cor0
----
1
30

skipif mysql # not compatible
query I rowsort label-7122
SELECT DISTINCT + 90 / cor0.col0 AS col2 FROM tab1, tab1 cor0
----
1
30

query I rowsort
SELECT DISTINCT col1 + + col0 + 6 * col0 AS col1 FROM tab1
----
458
47
573

query I rowsort
SELECT + tab0.col1 * col2 * + col2 AS col0 FROM tab0
----
611884
93654
97

query I rowsort
SELECT ALL - col1 * 64 + cor0.col1 AS col1 FROM tab1 AS cor0
----
-1638
-630
-819

onlyif mysql # use DIV operator for integer division
query I rowsort label-7126
SELECT ALL + col2 - + ( + 64 + + col0 ) DIV + 82 FROM tab2 cor0
----
25
27
37

skipif mysql # not compatible
query I rowsort label-7126
SELECT ALL + col2 - + ( + 64 + + col0 ) / + 82 FROM tab2 cor0
----
25
27
37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 + col0 * col1 - cor0.col1 col2 FROM tab0 AS cor0
----
2002
3333
8097

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + cor0.col0 col2 FROM tab2 AS cor0
----
14
156
158

onlyif mysql # use DIV operator for integer division
query I rowsort label-7129
SELECT DISTINCT - cor0.col0 * 98 + + 36 DIV col2 AS col2 FROM tab1 AS cor0
----
-294
-6272
-7840

skipif mysql # not compatible
query I rowsort label-7129
SELECT DISTINCT - cor0.col0 * 98 + + 36 / col2 AS col2 FROM tab1 AS cor0
----
-294
-6272
-7840

query I rowsort
SELECT DISTINCT + col0 * col2 * 38 + col0 FROM tab0 AS cor0
----
1365
277413
30120

onlyif mysql # use DIV operator for integer division
query I rowsort label-7131
SELECT ALL + col1 * cor0.col0 + - col0 DIV col0 + 54 FROM tab0 AS cor0
----
2117
3448
8152

skipif mysql # not compatible
query I rowsort label-7131
SELECT ALL + col1 * cor0.col0 + - col0 / col0 + 54 FROM tab0 AS cor0
----
2117
3448
8152

query I rowsort
SELECT col0 + + 62 FROM tab2 AS cor0
----
140
141
69

query I rowsort
SELECT - ( col1 ) * - col2 + col0 AS col2 FROM tab0
----
132
2862
7551

query I rowsort
SELECT DISTINCT - 87 AS col1 FROM tab1
----
-87

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7135
SELECT ALL - CAST( 70 + col0 AS SIGNED ) FROM tab2
----
-148
-149
-77

skipif mysql # not compatible
query I rowsort label-7135
SELECT ALL - CAST ( 70 + col0 AS INTEGER ) FROM tab2
----
-148
-149
-77

query I rowsort
SELECT ALL cor0.col0 * - col2 AS col0 FROM tab0 AS cor0
----
-35
-7298
-792

onlyif mysql # use DIV operator for integer division
query I rowsort label-7137
SELECT ALL + col2 + col2 DIV + col0 AS col1 FROM tab2 AS cor0
----
26
30
38

skipif mysql # not compatible
query I rowsort label-7137
SELECT ALL + col2 + col2 / + col0 AS col1 FROM tab2 AS cor0
----
26
30
38

query I rowsort
SELECT 13 * + 50 AS col1 FROM tab0 AS cor0
----
650
650
650

query I rowsort
SELECT DISTINCT col2 * 20 AS col1 FROM tab2 AS cor0
----
520
540
760

query I rowsort
SELECT + col1 * 3 AS col0 FROM tab2 AS cor0
----
177
51
93

query I rowsort
SELECT DISTINCT col0 * col2 - ( col0 ) * col2 AS col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT col2 * + col1 + - col2 + + col0 FROM tab1 AS cor0
----
1232
1353
577

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7143
SELECT DISTINCT + col2 * - col1 + + CAST( NULL AS SIGNED ) col1 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7143
SELECT DISTINCT + col2 * - col1 + + CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + 56 AS col2 FROM tab2 AS cor0
----
56
56
56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 87 * - col1 * 9 + col0 col0 FROM tab2 cor0
----
-13232
-24266
-46119

query I rowsort
SELECT - 24 AS col1 FROM tab0 AS cor0
----
-24
-24
-24

query I rowsort
SELECT ALL cor0.col2 + col0 + - col0 AS col1 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT DISTINCT - col2 - col1 AS col0 FROM tab0 AS cor0
----
-119
-173
-98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 + col0 * - col1 col2 FROM tab0 AS cor0
----
-2150
-3492
-8190

onlyif mysql # use DIV operator for integer division
query I rowsort label-7150
SELECT DISTINCT - col2 * - col0 + col2 DIV ( col1 ) FROM tab0 AS cor0
----
35
7298
792

skipif mysql # not compatible
query I rowsort label-7150
SELECT DISTINCT - col2 * - col0 + col2 / ( col1 ) FROM tab0 AS cor0
----
35
7298
792

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7151
SELECT DISTINCT - + col0 - cor0.col2 * CAST( col2 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-1113
-36
-6813

skipif mysql # not compatible
query I rowsort label-7151
SELECT DISTINCT - + col0 - cor0.col2 * CAST ( col2 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-1113
-36
-6813

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 54 col0 FROM tab0 AS cor0
----
-54
-54
-54

query I rowsort
SELECT ALL + col0 * cor0.col1 - col1 FROM tab2 cor0
----
1326
186
4543

query I rowsort
SELECT + col1 * - cor0.col1 * ( - col2 ) FROM tab0 AS cor0
----
244068
679042
9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 78 * - col1 col1 FROM tab1
----
1014
2028
780

query I rowsort
SELECT + 66 + + col2 AS col1 FROM tab1 cor0
----
120
123
162

query I rowsort
SELECT DISTINCT + col2 * - col2 * 48 FROM tab1
----
-139968
-155952
-442368

query I rowsort
SELECT ALL - 7 AS col1 FROM tab2
----
-7
-7
-7

onlyif mysql # use DIV operator for integer division
query I rowsort label-7159
SELECT - cor0.col2 DIV - col1 AS col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7159
SELECT - cor0.col2 / - col1 AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + col2 * col2 * ( col2 ) FROM tab1 AS cor0
----
157464
185193
884736

query I rowsort
SELECT - col0 * + 88 AS col1 FROM tab1 AS cor0
----
-264
-5632
-7040

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7162
SELECT - col0 * + CAST( col1 * col2 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-119652
-51034
-5859

skipif mysql # not compatible
query I rowsort label-7162
SELECT - col0 * + CAST ( col1 * col2 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-119652
-51034
-5859

query I rowsort
SELECT + + col0 + - 5 AS col2 FROM tab1 AS cor0
----
-2
59
75

query I rowsort
SELECT + col0 + + col1 * - 48 AS col2 FROM tab1 AS cor0
----
-1245
-416
-544

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + col1 * - 43 col2 FROM tab2
----
-1326
-2459
-652

query I rowsort
SELECT DISTINCT + 17 FROM tab0, tab1, tab1 AS cor0
----
17

query I rowsort
SELECT DISTINCT - ( col0 ) * - col1 + 97 AS col1 FROM tab1 AS cor0
----
1137
175
737

query I rowsort
SELECT - cor0.col0 * col2 FROM tab1 cor0
----
-162
-3648
-7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-7169
SELECT + col1 DIV col1 + cor0.col1 AS col1 FROM tab1 AS cor0
----
11
14
27

skipif mysql # not compatible
query I rowsort label-7169
SELECT + col1 / col1 + cor0.col1 AS col1 FROM tab1 AS cor0
----
11
14
27

query I rowsort
SELECT DISTINCT - ( + cor0.col2 ) FROM tab0 cor0
----
-1
-33
-82

query I rowsort
SELECT ALL - col2 + 11 * col0 * + ( + col2 ) FROM tab1 AS cor0
----
1728
40071
84384

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 * col2 col1 FROM tab1 cor0
----
2916
3249
9216

query I rowsort
SELECT ALL 26 + - 77 * - col2 AS col1 FROM tab0 AS cor0
----
103
2567
6340

onlyif mysql # use DIV operator for integer division
query I rowsort label-7174
SELECT DISTINCT ( cor0.col2 ) DIV col1 AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7174
SELECT DISTINCT ( cor0.col2 ) / col1 AS col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT + tab2.col0 + 44 + + col2 * col1 FROM tab2
----
1656
769
888

query I rowsort
SELECT col0 * ( - col2 ) + col0 * - col2 AS col1 FROM tab1
----
-15360
-324
-7296

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7177
SELECT col1 + - CAST( - col0 AS SIGNED ) FROM tab2
----
137
38
96

skipif mysql # not compatible
query I rowsort label-7177
SELECT col1 + - CAST ( - col0 AS INTEGER ) FROM tab2
----
137
38
96

query I rowsort
SELECT - ( + 81 ) * - col1 * - cor0.col2 + - col0 * col0 AS col0 FROM tab1 AS cor0
----
-107488
-113733
-50266

query I rowsort
SELECT col1 * col2 * col1 + - col0 + ( + col1 + + col0 ) FROM tab1 AS cor0
----
16237
36530
5710

query I rowsort
SELECT ALL - col0 + col1 * - tab1.col1 AS col1 FROM tab1
----
-164
-249
-679

query I rowsort
SELECT ALL 75 FROM tab0, tab0 cor0, tab2 AS cor1
----
27 values hashing to e61b59795204c348103a58c0a8e4ce16

query I rowsort
SELECT + 71 + - col1 FROM tab1 AS cor0
----
45
58
61

query I rowsort
SELECT ALL + 42 + + col0 AS col0 FROM tab0 cor0
----
131
66
77

query I rowsort
SELECT ALL - ( + tab1.col0 ) AS col0 FROM tab1
----
-3
-64
-80

query I rowsort
SELECT DISTINCT - col1 + + 25 FROM tab2 AS cor0
----
-34
-6
8

query I rowsort
SELECT 83 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 002a717a3d902d97220759065fb107c3

query I rowsort
SELECT 74 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31

query I rowsort
SELECT DISTINCT + 8 AS col0 FROM tab1, tab2, tab1 AS cor0, tab0
----
8

query I rowsort
SELECT ALL tab0.col2 FROM tab0, tab2, tab0 cor0
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT - + ( - col1 ) FROM tab1 cor0
----
10
13
26

query I rowsort
SELECT + - 21 AS col2 FROM tab1 AS cor0
----
-21
-21
-21

query I rowsort
SELECT DISTINCT + - 2 FROM tab0 AS cor0
----
-2

onlyif mysql # use DIV operator for integer division
query I rowsort label-7193
SELECT + 72 + 21 DIV + cor0.col0 AS col1 FROM tab1 cor0
----
72
72
79

skipif mysql # not compatible
query I rowsort label-7193
SELECT + 72 + 21 / + cor0.col0 AS col1 FROM tab1 cor0
----
72
72
79

query I rowsort
SELECT ALL - col2 * 57 + + col1 * - 67 FROM tab0 AS cor0
----
-10771
-6556
-7643

onlyif mysql # use DIV operator for integer division
query I rowsort label-7195
SELECT ALL + ( col2 ) + col1 DIV - col2 FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-7195
SELECT ALL + ( col2 ) + col1 / - col2 FROM tab1 AS cor0
----
54
57
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 41 col2 FROM tab0 AS cor0
----
-41
-41
-41

query I rowsort
SELECT - 97 * cor0.col2 AS col1 FROM tab0 AS cor0
----
-3201
-7954
-97

query I rowsort
SELECT + - 48 + + col0 AS col2 FROM tab0 AS cor0
----
-13
-24
41

query I rowsort
SELECT + col0 - + col1 AS col1 FROM tab2 cor0
----
-24
19
62

query I rowsort
SELECT + col1 * + 9 FROM tab0 AS cor0
----
774
819
873

skipif mysql # not compatible
query I rowsort
SELECT + col0 + CAST ( - col1 AS REAL ) FROM tab2 AS cor0
----
-24
19
62

query I rowsort
SELECT ALL ( tab2.col2 * 45 ) FROM tab2
----
1170
1215
1710

onlyif mysql # use DIV operator for integer division
query I rowsort label-7203
SELECT DISTINCT + + cor0.col1 + ( cor0.col2 ) DIV - col0 AS col0 FROM tab2 AS cor0
----
17
28
59

skipif mysql # not compatible
query I rowsort label-7203
SELECT DISTINCT + + cor0.col1 + ( cor0.col2 ) / - col0 AS col0 FROM tab2 AS cor0
----
17
28
59

query I rowsort
SELECT + col0 + cor0.col0 AS col2 FROM tab0 cor0
----
178
48
70

query I rowsort
SELECT + col0 + + ( - 41 * col1 ) - col2 FROM tab1 AS cor0
----
-1117
-403
-549

onlyif mysql # use DIV operator for integer division
query I rowsort label-7206
SELECT - - col0 DIV col0 + - col1 AS col2 FROM tab2 AS cor0
----
-16
-30
-58

skipif mysql # not compatible
query I rowsort label-7206
SELECT - - col0 / col0 + - col1 AS col2 FROM tab2 AS cor0
----
-16
-30
-58

query I rowsort
SELECT + col0 * + col2 - - 41 AS col2 FROM tab2 AS cor0
----
2069
230
3043

query I rowsort
SELECT - cor0.col1 + 33 FROM tab1 AS cor0
----
20
23
7

query I rowsort
SELECT + col0 * + 83 + col1 * col1 FROM tab0 AS cor0
----
12314
15668
9388

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + - 95 col1 FROM tab2 cor0
----
-102
-173
-174

query I rowsort
SELECT ALL col1 * col2 + - col2 * cor0.col2 AS col0 FROM tab1 AS cor0
----
-1512
-2679
-7968

query I rowsort
SELECT DISTINCT - + col0 * col0 + + col0 * col0 AS col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT + + 85 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b

query I rowsort
SELECT DISTINCT - 62 * - 99 + + col2 FROM tab2 AS cor0
----
6164
6165
6176

onlyif mysql # use DIV operator for integer division
query I rowsort label-7215
SELECT DISTINCT - - CAST( col1 AS SIGNED ) DIV col1 AS col0 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-7215
SELECT DISTINCT - - CAST ( col1 AS INTEGER ) / col1 AS col0 FROM tab0 AS cor0
----
1

query I rowsort
SELECT ALL + col0 + - 84 AS col2 FROM tab1 AS cor0
----
-20
-4
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - col1 + + ( - col2 ) col0 FROM tab2
----
-17
-31
-59

query I rowsort
SELECT - col1 * 48 - - col0 AS col1 FROM tab1
----
-1245
-416
-544

onlyif mysql # use DIV operator for integer division
query I rowsort label-7219
SELECT + cor0.col0 DIV 38 AS col0 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to eff82df49d5880477456e4901e030e04

skipif mysql # not compatible
query I rowsort label-7219
SELECT + cor0.col0 / 38 AS col0 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to eff82df49d5880477456e4901e030e04

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 32 * - col0 col2 FROM tab1 AS cor0
----
2048
2560
96

query I rowsort
SELECT DISTINCT + 92 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
92

onlyif mysql # use DIV operator for integer division
query I rowsort label-7222
SELECT DISTINCT - col2 + + cor0.col1 DIV col1 FROM tab0 AS cor0
----
-32
-81
0

skipif mysql # not compatible
query I rowsort label-7222
SELECT DISTINCT - col2 + + cor0.col1 / col1 FROM tab0 AS cor0
----
-32
-81
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-7223
SELECT ALL - 26 DIV + col2 + 57 AS col1 FROM tab1 cor0
----
57
57
57

skipif mysql # not compatible
query I rowsort label-7223
SELECT ALL - 26 / + col2 + 57 AS col1 FROM tab1 cor0
----
57
57
57

query I rowsort
SELECT - 33 FROM tab0, tab0 AS cor0
----
9 values hashing to 8035c665a75d22be5922be1a4e574e03

query I rowsort
SELECT 99 + col1 * + col2 - + 27 AS col1 FROM tab0
----
169
2910
7534

query I rowsort
SELECT ALL - col2 * + tab1.col0 - col2 * col0 FROM tab1
----
-15360
-324
-7296

query I rowsort
SELECT col1 - + col1 FROM tab1
----
0
0
0

query I rowsort
SELECT - 7 * col0 AS col2 FROM tab0
----
-168
-245
-623

onlyif mysql # use DIV operator for integer division
query I rowsort label-7229
SELECT - col1 DIV + tab0.col1 AS col2 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7229
SELECT - col1 / + tab0.col1 AS col2 FROM tab0
----
-1
-1
-1

query I rowsort
SELECT + col2 * + col0 * + 86 AS col0 FROM tab1
----
13932
313728
660480

query I rowsort
SELECT ALL col1 - - tab0.col2 * - 97 FROM tab0
----
-3115
-7863
0

query I rowsort
SELECT DISTINCT col1 + - col0 - - col2 FROM tab2
----
-24
51
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-7233
SELECT - col0 DIV col2 + col2 AS col1 FROM tab1 AS cor0
----
54
56
96

skipif mysql # not compatible
query I rowsort label-7233
SELECT - col0 / col2 + col2 AS col1 FROM tab1 AS cor0
----
54
56
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-7234
SELECT DISTINCT - col2 DIV - col1 - col0 AS col2 FROM tab0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-7234
SELECT DISTINCT - col2 / - col1 - col0 AS col2 FROM tab0
----
-24
-35
-89

query I rowsort
SELECT DISTINCT - 48 + - col0 FROM tab2 AS cor0
----
-126
-127
-55

query I rowsort
SELECT ALL - 49 * + col0 FROM tab2 AS cor0
----
-343
-3822
-3871

query I rowsort
SELECT ALL + col2 * col0 * - 43 FROM tab1 AS cor0
----
-156864
-330240
-6966

query I rowsort
SELECT ALL 51 AS col2 FROM tab0 AS cor0
----
51
51
51

query I rowsort
SELECT ALL ( - col0 ) * - col0 FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT DISTINCT 97 FROM tab2 cor0
----
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-7241
SELECT DISTINCT - + 28 * + cor0.col1 + 60 * - cor0.col1 * - col2 + col1 DIV col1 AS col2 FROM tab0 AS cor0
----
167873
3105
445173

skipif mysql # not compatible
query I rowsort label-7241
SELECT DISTINCT - + 28 * + cor0.col1 + 60 * - cor0.col1 * - col2 + col1 / col1 AS col2 FROM tab0 AS cor0
----
167873
3105
445173

onlyif mysql # use DIV operator for integer division
query I rowsort label-7242
SELECT ALL 58 * + col2 * + col1 + + col1 DIV col0 - - 55 AS col0 FROM tab0 AS cor0
----
164662
432852
5683

skipif mysql # not compatible
query I rowsort label-7242
SELECT ALL 58 * + col2 * + col1 + + col1 / col0 - - 55 AS col0 FROM tab0 AS cor0
----
164662
432852
5683

query I rowsort
SELECT ALL - 65 AS col2 FROM tab1 AS cor0
----
-65
-65
-65

query I rowsort
SELECT - ( col2 ) * col1 FROM tab0 cor0
----
-2838
-7462
-97

query I rowsort
SELECT DISTINCT - - 80 FROM tab0 AS cor0
----
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-7246
SELECT + 66 DIV col0 AS col2 FROM tab2 cor0
----
0
0
9

skipif mysql # not compatible
query I rowsort label-7246
SELECT + 66 / col0 AS col2 FROM tab2 cor0
----
0
0
9

query I rowsort
SELECT - ( - 41 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e

query I rowsort
SELECT ALL 73 * + col0 FROM tab2
----
511
5694
5767

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + 56 col1 FROM tab2 AS cor0
----
392
4368
4424

onlyif mysql # use DIV operator for integer division
query I rowsort label-7250
SELECT 7 DIV cor0.col0 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to e30b1feec13aa0bbbc46a0526de3ebe0

skipif mysql # not compatible
query I rowsort label-7250
SELECT 7 / cor0.col0 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to e30b1feec13aa0bbbc46a0526de3ebe0

query I rowsort
SELECT ALL - 5 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 4f346dd2f65047c836c6957f80f0ef9e

query I rowsort
SELECT + cor0.col0 + 69 FROM tab0, tab1 cor0
----
9 values hashing to 6311519ee78ddc1b7fe3e26df1933bc8

onlyif mysql # use DIV operator for integer division
query I rowsort label-7253
SELECT tab1.col2 DIV - CAST( + col2 AS SIGNED ) - col0 FROM tab1
----
-4
-65
-81

skipif mysql # not compatible
query I rowsort label-7253
SELECT tab1.col2 / - CAST ( + col2 AS INTEGER ) - col0 FROM tab1
----
-4
-65
-81

query I rowsort
SELECT DISTINCT + ( 7 ) * + col2 AS col2 FROM tab0 AS cor0
----
231
574
7

query I rowsort
SELECT ALL - col2 + ( - col0 ) FROM tab1 cor0
----
-121
-176
-57

query I rowsort
SELECT - - col1 * 84 AS col0 FROM tab1 AS cor0
----
1092
2184
840

onlyif mysql # use DIV operator for integer division
query I rowsort label-7257
SELECT + col0 DIV + 41 AS col0 FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-7257
SELECT + col0 / + 41 AS col0 FROM tab1 AS cor0
----
0
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 73 col2 FROM tab1, tab1 AS cor0
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496

query I rowsort
SELECT - col1 * 82 FROM tab2
----
-1394
-2542
-4838

query I rowsort
SELECT ALL - col1 * - col2 + - 96 * + tab0.col0 + + 88 FROM tab0
----
-3175
-994
622

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7261
SELECT + CAST( NULL AS SIGNED ) AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-7261
SELECT + CAST ( NULL AS INTEGER ) AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7262
SELECT DISTINCT - col0 + + CAST( NULL AS SIGNED ) / col1 AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7262
SELECT DISTINCT - col0 + + CAST ( NULL AS INTEGER ) / col1 AS col1 FROM tab0
----
NULL

query I rowsort
SELECT - ( - col0 ) + + col2 AS col2 FROM tab2
----
104
117
34

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7264
SELECT + CAST( 80 AS SIGNED ) * col0 FROM tab0
----
1920
2800
7120

skipif mysql # not compatible
query I rowsort label-7264
SELECT + CAST ( 80 AS INTEGER ) * col0 FROM tab0
----
1920
2800
7120

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 col1 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT ( 8 * col2 ) AS col0 FROM tab1
----
432
456
768

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7267
SELECT DISTINCT CAST( 22 * + col0 AS SIGNED ) FROM tab1
----
1408
1760
66

skipif mysql # not compatible
query I rowsort label-7267
SELECT DISTINCT CAST ( 22 * + col0 AS INTEGER ) FROM tab1
----
1408
1760
66

query I rowsort
SELECT DISTINCT ( + cor0.col2 ) + cor0.col0 * + col0 FROM tab2 AS cor0
----
6110
6279
76

query I rowsort
SELECT - col0 + + ( col2 ) * col1 FROM tab0 AS cor0
----
2814
62
7373

query I rowsort
SELECT ALL 50 + col0 * + col2 FROM tab2 AS cor0
----
2078
239
3052

query I rowsort
SELECT ALL + - ( - ( - col2 ) ) AS col0 FROM tab0 AS cor0
----
-1
-33
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( ( - col2 ) ) * col2 * - col1 col1 FROM tab2
----
-22599
-24548
-39884

query I rowsort
SELECT ALL + col1 + - 62 AS col1 FROM tab2 AS cor0
----
-3
-31
-45

query I rowsort
SELECT 95 * - col0 + col2 * + col2 AS col0 FROM tab0 AS cor0
----
-1191
-1731
-3324

onlyif mysql # use DIV operator for integer division
query I rowsort label-7275
SELECT DISTINCT + - 0 * col0 + - col2 DIV ( - col2 ) FROM tab0 cor0
----
1

skipif mysql # not compatible
query I rowsort label-7275
SELECT DISTINCT + - 0 * col0 + - col2 / ( - col2 ) FROM tab0 cor0
----
1

query I rowsort
SELECT ( + col0 + + tab2.col2 ) * + ( + col2 ) AS col0 FROM tab2
----
2704
4446
918

query IIIIIIIII rowsort
SELECT ALL * FROM tab0, tab1 AS cor0 CROSS JOIN tab0 cor1
----
243 values hashing to 74e36edda45186a5c45856859d8e21f0

query I rowsort
SELECT 17 + 86 AS col0 FROM tab2
----
103
103
103

query I rowsort
SELECT DISTINCT + - col2 * col0 * col1 AS col0 FROM tab2 AS cor0
----
-119652
-51034
-5859

query I rowsort
SELECT DISTINCT - col2 * + col0 + col1 * 11 AS col0 FROM tab0 AS cor0
----
-6297
1032
154

onlyif mysql # use DIV operator for integer division
query I rowsort label-7281
SELECT cor0.col2 + 54 DIV col1 AS col2 FROM tab1 AS cor0
----
100
56
62

skipif mysql # not compatible
query I rowsort label-7281
SELECT cor0.col2 + 54 / col1 AS col2 FROM tab1 AS cor0
----
100
56
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-7282
SELECT ALL CAST( 63 AS SIGNED ) DIV cor0.col0 AS col2 FROM tab0 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-7282
SELECT ALL CAST ( 63 AS INTEGER ) / cor0.col0 AS col2 FROM tab0 AS cor0
----
0
1
2

onlyif mysql # use DIV operator for integer division
query I rowsort label-7283
SELECT DISTINCT - + col1 DIV - col0 + + col1 * + col2 AS col0 FROM tab2 AS cor0
----
1534
646
841

skipif mysql # not compatible
query I rowsort label-7283
SELECT DISTINCT - + col1 / - col0 + + col1 * + col2 AS col0 FROM tab2 AS cor0
----
1534
646
841

query I rowsort
SELECT + 20 FROM tab2, tab0 AS cor0 CROSS JOIN tab0, tab1 AS cor1
----
81 values hashing to 8550664862df5be7a3d3f6037537d2d8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 * col2 col1 FROM tab1 AS cor0
----
-162
-3648
-7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-7286
SELECT DISTINCT - col1 DIV - col0 AS col2 FROM tab1
----
0
8

skipif mysql # not compatible
query I rowso