hash-threshold 8

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

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

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT 45 * 92 AS col0 FROM tab1
----
4140
4140
4140

query I rowsort
SELECT + + col1 + + ( ( + col2 ) ) - ( - col1 ) AS col1 FROM tab2 AS cor0
----
144
72
89

query I rowsort
SELECT ALL - col2 + col1 * 98 * + col1 AS col1 FROM tab2 AS cor0
----
28284
341112
94151

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

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

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

query I rowsort
SELECT cor0.col2 * cor0.col2 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to aeb56f097f17f262600266df7fcf8652

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

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

query I rowsort
SELECT DISTINCT + ( cor0.col0 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
24
35
89

query I rowsort
SELECT + 12 AS col0 FROM tab1, tab0 cor0, tab1 AS cor1
----
27 values hashing to 702478c53caf2f7ebb9fff96d800f5a6

onlyif mysql # use DIV operator for integer division
query I rowsort label-9
SELECT - col0 * ( + 95 ) DIV col1 + - ( - col2 ) - col1 FROM tab2 AS cor0
----
-158
-25
-420

skipif mysql # not compatible
query I rowsort label-9
SELECT - col0 * ( + 95 ) / col1 + - ( - col2 ) - col1 FROM tab2 AS cor0
----
-158
-25
-420

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-11
SELECT + col1 + CAST( col0 AS SIGNED ) * col2 FROM tab1
----
188
3658
7693

skipif mysql # not compatible
query I rowsort label-11
SELECT + col1 + CAST ( col0 AS INTEGER ) * col2 FROM tab1
----
188
3658
7693

query I rowsort
SELECT DISTINCT col2 + ( - col2 ) FROM tab1
----
0

query I rowsort
SELECT + 99 * + col0 * col1 AS col0 FROM tab0 cor0
----
204336
336105
801801

query I rowsort
SELECT DISTINCT - col1 + 48 AS col0 FROM tab2
----
-11
17
31

query I rowsort
SELECT ALL - 28 AS col1 FROM tab1, tab2 cor0
----
9 values hashing to c3e7fa3d059fc708f03c60e9cef0c115

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT + col0 + - ( + 45 ) AS col0 FROM tab1
----
-42
19
35

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

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

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

query I rowsort
SELECT + cor0.col0 * col0 - - col2 FROM tab0 cor0
----
1226
609
8003

query I rowsort
SELECT + 88 + cor0.col1 * - col2 AS col1 FROM tab2 AS cor0
----
-1446
-558
-749

onlyif mysql # use DIV operator for integer division
query I rowsort label-30
SELECT + + col0 DIV + col0 - cor0.col0 FROM tab1 AS cor0
----
-2
-63
-79

skipif mysql # not compatible
query I rowsort label-30
SELECT + + col0 / + col0 - cor0.col0 FROM tab1 AS cor0
----
-2
-63
-79

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

query I rowsort
SELECT col2 * col0 + 56 FROM tab1 AS cor0
----
218
3704
7736

query I rowsort
SELECT + 22 * - 79 * + col1 AS col2 FROM tab2
----
-102542
-29546
-53878

query I rowsort
SELECT DISTINCT - + col2 * - col1 * - 58 AS col0 FROM tab1 AS cor0
----
-33060
-72384
-81432

onlyif mysql # use DIV operator for integer division
query I rowsort label-35
SELECT ALL - + col1 * col2 + CAST( 33 AS SIGNED ) DIV - col2 AS col2 FROM tab1 cor0
----
-1248
-1404
-570

skipif mysql # not compatible
query I rowsort label-35
SELECT ALL - + col1 * col2 + CAST ( 33 AS INTEGER ) / - col2 AS col2 FROM tab1 cor0
----
-1248
-1404
-570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - col0 col0 FROM tab2 AS cor0
----
-1343
-217
-4602

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

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

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

query I rowsort
SELECT ALL 79 + col1 * + col1 FROM tab2 AS cor0
----
1040
3560
368

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

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

query I rowsort
SELECT DISTINCT 26 * + col0 * - col0 AS col1 FROM tab1 AS cor0
----
-106496
-166400
-234

query I rowsort
SELECT DISTINCT + - 65 FROM tab1 cor0
----
-65

onlyif mysql # use DIV operator for integer division
query I rowsort label-43
SELECT - col0 * - col0 - 67 DIV + col0 FROM tab0 AS cor0
----
1224
574
7921

skipif mysql # not compatible
query I rowsort label-43
SELECT - col0 * - col0 - 67 / + col0 FROM tab0 AS cor0
----
1224
574
7921

query I rowsort
SELECT 7 + col2 AS col0 FROM tab0
----
40
8
89

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-47
SELECT DISTINCT col2 - cor0.col1 DIV - col1 FROM tab0 AS cor0
----
2
34
83

skipif mysql # not compatible
query I rowsort label-47
SELECT DISTINCT col2 - cor0.col1 / - col1 FROM tab0 AS cor0
----
2
34
83

query I rowsort
SELECT ALL + col0 * - 59 FROM tab1 AS cor0
----
-177
-3776
-4720

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-51
SELECT + col2 * col0 + col2 DIV - col1 AS col2 FROM tab1 cor0
----
160
3643
7673

skipif mysql # not compatible
query I rowsort label-51
SELECT + col2 * col0 + col2 / - col1 AS col2 FROM tab1 cor0
----
160
3643
7673

query I rowsort
SELECT ALL + - col0 * col0 * - col0 + col0 * + col0 AS col2 FROM tab2 AS cor0
----
392
480636
499280

onlyif mysql # use DIV operator for integer division
query I rowsort label-53
SELECT DISTINCT - - col2 DIV + 24 FROM tab0 AS cor0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-53
SELECT DISTINCT - - col2 / + 24 FROM tab0 AS cor0
----
0
1
3

query I rowsort
SELECT - col1 + + cor0.col1 AS col2 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort
SELECT ALL - cor0.col1 + CAST ( + col1 * + col2 AS REAL ) FROM tab1 AS cor0
----
1235
1378
560

query I rowsort
SELECT - + col0 * + 62 + col0 FROM tab1 AS cor0
----
-183
-3904
-4880

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

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

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

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

query I rowsort
SELECT DISTINCT + 30 * col0 + col2 AS col0 FROM tab2
----
2366
237
2408

onlyif mysql # use DIV operator for integer division
query I rowsort label-60
SELECT col2 + col1 DIV + 87 + 5 AS col2 FROM tab0
----
38
7
88

skipif mysql # not compatible
query I rowsort label-60
SELECT col2 + col1 / + 87 + 5 AS col2 FROM tab0
----
38
7
88

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

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

query I rowsort
SELECT 78 + col1 * + ( - ( + col2 ) ) AS col2 FROM tab1
----
-1170
-1326
-492

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

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

query I rowsort
SELECT DISTINCT 38 * + col1 * col2 - - tab1.col0 FROM tab1
----
21724
47504
53355

query I rowsort
SELECT col0 * - 36 * - col2 FROM tab2 cor0
----
108072
6804
73008

query I rowsort
SELECT DISTINCT - - cor0.col2 * 46 FROM tab1 AS cor0
----
2484
2622
4416

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + + col0 * col2 * 70 col0 FROM tab2 AS cor0
----
13257
141986
210178

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-69
SELECT ALL - CAST( col2 AS SIGNED ) * col2 FROM tab2 AS cor0
----
-1444
-676
-729

skipif mysql # not compatible
query I rowsort label-69
SELECT ALL - CAST ( col2 AS INTEGER ) * col2 FROM tab2 AS cor0
----
-1444
-676
-729

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

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

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

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

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

query I rowsort
SELECT ALL - + col2 + col0 * col2 * cor0.col2 AS col2 FROM tab0 cor0
----
26103
34
598354

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

query I rowsort
SELECT DISTINCT col1 + - col2 * - col2 + - col1 FROM tab1
----
2916
3249
9216

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 78 * - 13 + col2 col2 FROM tab0 AS cor0
----
-1013
-932
-981

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 89 * + col0 col2 FROM tab0 AS cor0
----
-2136
-3115
-7921

query I rowsort
SELECT DISTINCT - + 49 AS col1 FROM tab1 AS cor0
----
-49

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

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

query I rowsort
SELECT DISTINCT 3 * tab0.col0 * - tab0.col2 AS col0 FROM tab0, tab1 AS cor0
----
-105
-21894
-2376

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

query I rowsort
SELECT - col1 + + col1 + 39 FROM tab0 cor0
----
39
39
39

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

skipif mysql # not compatible
query I rowsort label-87
SELECT + + col1 + cor0.col1 / ( - col0 ) FROM tab0 AS cor0
----
83
90
95

query I rowsort
SELECT ALL col0 + - cor0.col1 * 82 FROM tab1 AS cor0
----
-2129
-756
-986

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 * + 6 col0 FROM tab1 cor0
----
-324
-342
-576

query I rowsort
SELECT ALL + col1 * 47 AS col0 FROM tab0 AS cor0
----
4042
4277
4559

onlyif mysql # use DIV operator for integer division
query I rowsort label-91
SELECT DISTINCT col0 DIV - 4 AS col2 FROM tab0 AS cor0
----
-22
-6
-8

skipif mysql # not compatible
query I rowsort label-91
SELECT DISTINCT col0 / - 4 AS col2 FROM tab0 AS cor0
----
-22
-6
-8

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

skipif mysql # not compatible
query I rowsort label-92
SELECT - - col0 * - col2 / col2 FROM tab0 AS cor0
----
-24
-35
-89

onlyif mysql # use DIV operator for integer division
query I rowsort label-93
SELECT DISTINCT + col1 + - col1 DIV col1 FROM tab2
----
16
30
58

skipif mysql # not compatible
query I rowsort label-93
SELECT DISTINCT + col1 + - col1 / col1 FROM tab2
----
16
30
58

query I rowsort
SELECT - 4 * - col2 FROM tab0
----
132
328
4

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

query I rowsort
SELECT col0 + + tab0.col1 * + tab0.col1 + - col1 FROM tab0
----
7334
8279
9347

onlyif mysql # use DIV operator for integer division
query I rowsort label-97
SELECT - col2 DIV col1 + + tab1.col0 + - 32 FROM tab1
----
-31
27
41

skipif mysql # not compatible
query I rowsort label-97
SELECT - col2 / col1 + + tab1.col0 + - 32 FROM tab1
----
-31
27
41

query I rowsort
SELECT ALL 96 AS col2 FROM tab1, tab0 AS cor0, tab0 cor1
----
27 values hashing to f1d978c2d5bfc6f26e0907ac777be83e

query I rowsort
SELECT - 63 + - tab1.col2 FROM tab1
----
-117
-120
-159

query I rowsort
SELECT DISTINCT - col1 + 8 FROM tab0
----
-78
-83
-89

query I rowsort
SELECT col2 + 72 FROM tab1 cor0
----
126
129
168

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * - 21 col1 FROM tab1 AS cor0
----
210
273
546

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

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

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

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

query I rowsort
SELECT DISTINCT col1 + - 77 * 33 AS col1 FROM tab1 AS cor0
----
-2515
-2528
-2531

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-109
SELECT + + col2 * col0 + + col0 * 2 DIV + col2 + - col1 * - 24 FROM tab1 cor0
----
3890
786
7993

skipif mysql # not compatible
query I rowsort label-109
SELECT + + col2 * col0 + + col0 * 2 / + col2 + - col1 * - 24 FROM tab1 cor0
----
3890
786
7993

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

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

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

query I rowsort
SELECT + ( - 74 ) AS col1 FROM tab1 cor0
----
-74
-74
-74

query I rowsort
SELECT + + 52 + - 41 * + cor0.col0 * + 12 FROM tab2 AS cor0
----
-3392
-38324
-38816

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

query I rowsort
SELECT + col0 + 45 AS col0 FROM tab1 cor0
----
109
125
48

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

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

query I rowsort
SELECT - 91 + col0 * - cor0.col0 FROM tab0 AS cor0
----
-1316
-667
-8012

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

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

query I rowsort
SELECT DISTINCT + - 32 * cor0.col2 * + ( - col1 ) AS col2 FROM tab1 AS cor0
----
18240
39936
44928

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

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

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

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

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

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

query I rowsort
SELECT + col2 * col2 + - col0 * cor0.col0 * col0 + 2 FROM tab2 AS cor0
----
-473874
-491593
388

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

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

query I rowsort
SELECT DISTINCT + 57 * - col2 AS col0 FROM tab1 AS cor0
----
-3078
-3249
-5472

query I rowsort
SELECT 97 * - col1 + + col1 * col1 - col0 FROM tab2 AS cor0
----
-1439
-2053
-2320

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

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

query I rowsort
SELECT + 20 - + col1 FROM tab2 cor0
----
-11
-39
3

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-134
SELECT DISTINCT - - col1 + col0 * col1 + col0 DIV - col0 AS col2 FROM tab1 AS cor0
----
103
1052
649

skipif mysql # not compatible
query I rowsort label-134
SELECT DISTINCT - - col1 + col0 * col1 + col0 / - col0 AS col2 FROM tab1 AS cor0
----
103
1052
649

query I rowsort
SELECT + - col1 * cor0.col0 * col0 + cor0.col0 FROM tab0 AS cor0
----
-118790
-49512
-720722

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-136
SELECT ( - col2 * ( col1 ) ) + + col0 + CAST( col1 AS SIGNED ) * + col1 AS col2 FROM tab0
----
4582
908
9347

skipif mysql # not compatible
query I rowsort label-136
SELECT ( - col2 * ( col1 ) ) + + col0 + CAST ( col1 AS INTEGER ) * + col1 AS col2 FROM tab0
----
4582
908
9347

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

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

query I rowsort
SELECT - 11 - 2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to e95f5f4bd0f480397cced5f5e8a23792

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

query I rowsort
SELECT - 31 + - col2 * col0 FROM tab2 AS cor0
----
-2059
-220
-3033

query I rowsort
SELECT DISTINCT + col1 + 3 * + col0 AS col0 FROM tab1 AS cor0
----
202
253
35

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

skipif mysql # not compatible
query I rowsort label-143
SELECT DISTINCT + CAST ( NULL AS REAL ) + 49 FROM tab2, tab0 AS cor0
----
NULL

query I rowsort
SELECT col0 * - col1 + + 87 FROM tab2
----
-1256
-130
-4515

skipif mysql # not compatible
query I rowsort
SELECT ALL CAST ( 76 AS REAL ) AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * 90 * + col0 col1 FROM tab2
----
4410
547560
561690

query I rowsort
SELECT + col2 * 94 + col1 * + col0 AS col1 FROM tab1
----
10064
5154
5998

query I rowsort
SELECT - + col2 + - 64 * col0 * - 98 AS col0 FROM tab1 cor0
----
18762
401351
501664

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + col0 ) * + col0 + + 23 col0 FROM tab0 AS cor0
----
-1202
-553
-7898

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

query I rowsort
SELECT ALL - - 38 + + col1 * cor0.col2 FROM tab1 AS cor0
----
1286
1442
608

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

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

query I rowsort
SELECT 72 * + col2 + + cor0.col2 FROM tab2 AS cor0
----
1898
1971
2774

query I rowsort
SELECT ALL + - 36 * + cor0.col1 + 96 AS col1 FROM tab0 AS cor0
----
-3000
-3180
-3396

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

query I rowsort
SELECT DISTINCT col1 * + col1 + - col0 + + cor0.col2 FROM tab1 AS cor0
----
185
727
93

query I rowsort
SELECT DISTINCT col1 * + col2 + 81 AS col2 FROM tab0 AS cor0
----
178
2919
7543

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

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

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

query I rowsort
SELECT ALL - tab2.col0 + + col2 + + col0 FROM tab2
----
26
27
38

query I rowsort
SELECT DISTINCT + + ( col1 ) + 32 * - col0 FROM tab2 AS cor0
----
-193
-2437
-2511

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

skipif mysql # not compatible
query I rowsort label-162
SELECT - 58 / col1 FROM tab2 cor0
----
-1
-3
0

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-166
SELECT ALL - col1 + + cor0.col2 + 64 DIV - 59 FROM tab0 AS cor0
----
-10
-54
-97

skipif mysql # not compatible
query I rowsort label-166
SELECT ALL - col1 + + cor0.col2 + 64 / - 59 FROM tab0 AS cor0
----
-10
-54
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + 3 col2 FROM tab2 AS cor0
----
-23
-24
-35

query I rowsort
SELECT col0 + 72 * - col2 * + col2 FROM tab0 AS cor0
----
-37
-484039
-78384

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

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

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

query I rowsort
SELECT DISTINCT + col0 * - col1 * - col1 + 90 * - ( - col2 ) FROM tab2 AS cor0
----
26251
273858
9157

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

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

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

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

query I rowsort
SELECT ALL 72 + 98 AS col1 FROM tab1 AS cor0
----
170
170
170

query I rowsort
SELECT ALL 30 * - col0 + + col2 FROM tab2 AS cor0
----
-183
-2314
-2332

query I rowsort
SELECT DISTINCT + + ( col2 ) - - cor0.col2 * col2 FROM tab0 AS cor0
----
1122
2
6806

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

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

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

query I rowsort
SELECT col0 * col1 - 40 FROM tab2
----
1303
177
4562

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 7 col1 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 4e72e9e33dacac757f48d0ce46094607

query I rowsort
SELECT DISTINCT 2 + col2 * col0 FROM tab1 cor0
----
164
3650
7682

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + ( + col1 ) * + 73 + 92 * - col2 col0 FROM tab2 AS cor0
----
-221
-2255
1915

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

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

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

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

query I rowsort
SELECT DISTINCT 94 + + col2 FROM tab1
----
148
151
190

query I rowsort
SELECT 42 * col1 * + 57 FROM tab2
----
141246
40698
74214

query I rowsort
SELECT - col0 + + 63 * col1 AS col2 FROM tab1 AS cor0
----
1635
566
739

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

query I rowsort
SELECT - col1 + col0 * 5 * col1 AS col2 FROM tab1 AS cor0
----
3190
364
5187

query I rowsort
SELECT + 45 + col0 AS col2 FROM tab2
----
123
124
52

query I rowsort
SELECT col2 * col0 * ( - col2 * + col2 ) AS col2 FROM tab0
----
-35
-49071752
-862488

query I rowsort
SELECT DISTINCT 4 * - col1 + + col0 AS col1 FROM tab1 AS cor0
----
-101
24
28

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 + col1 * col2 col0 FROM tab1 AS cor0
----
1235
1378
560

onlyif mysql # use DIV operator for integer division
query I rowsort label-199
SELECT DISTINCT + + col2 DIV - 28 AS col2 FROM tab1 AS cor0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-199
SELECT DISTINCT + + col2 / - 28 AS col2 FROM tab1 AS cor0
----
-1
-2
-3

onlyif mysql # use DIV operator for integer division
query I rowsort label-200
SELECT + col1 * col1 DIV + col2 AS col2 FROM tab1 cor0
----
1
1
12

skipif mysql # not compatible
query I rowsort label-200
SELECT + col1 * col1 / + col2 AS col2 FROM tab1 cor0
----
1
1
12

query I rowsort
SELECT col2 + + col0 * col2 * - col0 FROM tab2 AS cor0
----
-1296
-158158
-237120

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-203
SELECT 81 DIV - col0 FROM tab0 AS cor0
----
-2
-3
0

skipif mysql # not compatible
query I rowsort label-203
SELECT 81 / - col0 FROM tab0 AS cor0
----
-2
-3
0

query I rowsort
SELECT DISTINCT 97 + + col0 * + col0 FROM tab1 AS cor0
----
106
4193
6497

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-206
SELECT ALL - 55 DIV - 91 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-206
SELECT ALL - 55 / - 91 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT - ( + cor0.col2 ) FROM tab1 cor0
----
-54
-57
-96

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-209
SELECT - + 11 DIV col1 FROM tab1 cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-209
SELECT - + 11 / col1 FROM tab1 cor0
----
-1
0
0

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

query I rowsort
SELECT DISTINCT 21 + col0 * - col2 AS col1 FROM tab0 cor0
----
-14
-7277
-771

query I rowsort
SELECT + - 80 * col2 AS col1 FROM tab0 AS cor0
----
-2640
-6560
-80

onlyif mysql # use DIV operator for integer division
query I rowsort label-213
SELECT + col0 DIV + col1 + ( - tab1.col1 ) FROM tab1
----
-26
-4
-7

skipif mysql # not compatible
query I rowsort label-213
SELECT + col0 / + col1 + ( - tab1.col1 ) FROM tab1
----
-26
-4
-7

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-216
SELECT + col2 DIV + 19 FROM tab1 cor0
----
2
3
5

skipif mysql # not compatible
query I rowsort label-216
SELECT + col2 / + 19 FROM tab1 cor0
----
2
3
5

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

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

query I rowsort
SELECT DISTINCT + - 74 * - cor0.col0 + col2 * - col1 FROM tab1 AS cor0
----
-1182
4166
4672

query I rowsort
SELECT 76 * col2 + col0 FROM tab1 AS cor0
----
4107
4396
7376

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

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

query I rowsort
SELECT ALL - ( + 90 + + tab1.col2 ) * + 96 FROM tab1
----
-13824
-14112
-17856

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT CAST ( - col1 AS REAL ) col2 FROM tab0
----
-86
-91
-97

query I rowsort
SELECT + 91 * + tab0.col2 AS col0 FROM tab0
----
3003
7462
91

query I rowsort
SELECT ALL - 64 * col0 FROM tab1
----
-192
-4096
-5120

onlyif mysql # use DIV operator for integer division
query I rowsort label-226
SELECT + 40 DIV col1 + - ( - col0 + col1 ) AS col2 FROM tab0 AS cor0
----
-2
-62
-62

skipif mysql # not compatible
query I rowsort label-226
SELECT + 40 / col1 + - ( - col0 + col1 ) AS col2 FROM tab0 AS cor0
----
-2
-62
-62

query I rowsort
SELECT + + 8 * col0 + + 66 * - col2 + col2 AS col0 FROM tab0 AS cor0
----
-1953
-4618
215

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 22 col0 FROM tab1, tab1 AS cor0
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9

query I rowsort
SELECT ALL + 73 AS col2 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 3933a906d17a820ccf95467e2206df8f

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

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

query I rowsort
SELECT ALL - col1 + - 90 AS col1 FROM tab2 AS cor0
----
-107
-121
-149

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * 40 col2 FROM tab0 AS cor0
----
-1320
-3280
-40

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

query I rowsort
SELECT - cor0.col0 * + 9 FROM tab1 cor0
----
-27
-576
-720

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

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

skipif mysql # not compatible
query I rowsort label-239
SELECT DISTINCT + - 20 + col2 * col2 + + CAST ( ( + col2 ) AS INTEGER ) * - col2 * + col0 AS col0 FROM tab0 cor0
----
-25067
-54
-591732

query I rowsort
SELECT + + col1 + - 29 FROM tab0 AS cor0
----
57
62
68

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

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

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

skipif mysql # not compatible
query I rowsort label-242
SELECT CAST ( + col0 * - col0 AS INTEGER ) AS col2 FROM tab2
----
-49
-6084
-6241

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

query I rowsort
SELECT DISTINCT cor0.col2 * - tab0.col0 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 5a475cfe41f7ddfc26a553f412abc75a

query I rowsort
SELECT col2 - ( + 39 ) * tab2.col2 FROM tab2
----
-1026
-1444
-988

query I rowsort
SELECT ALL col0 + ( + col0 + + cor0.col2 ) FROM tab1 cor0
----
185
256
60

query I rowsort
SELECT DISTINCT - col1 * 45 - col1 AS col1 FROM tab2 AS cor0
----
-1426
-2714
-782

query I rowsort
SELECT + col1 * + 16 AS col2 FROM tab1 AS cor0
----
160
208
416

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

skipif mysql # not compatible
query I rowsort label-249
SELECT ALL + + cor0.col1 * CAST ( ( col2 ) AS INTEGER ) AS col2 FROM tab1 AS cor0
----
1248
1404
570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - 46 * - 40 col0 FROM tab0 AS cor0
----
158240
167440
178480

query I rowsort
SELECT ALL + col0 * ( col0 ) + + col1 * col1 AS col2 FROM tab1 AS cor0
----
4196
6569
685

query I rowsort
SELECT + - col2 * ( cor0.col2 * cor0.col2 + col2 ) AS col0 FROM tab1 cor0
----
-160380
-188442
-893952

query I rowsort
SELECT ALL col2 - ( 44 ) FROM tab2 AS cor0
----
-17
-18
-6

query I rowsort
SELECT - ( + 47 ) + col2 * ( + 28 ) AS col2 FROM tab1 cor0
----
1465
1549
2641

query I rowsort
SELECT DISTINCT + cor0.col2 * 95 AS col0 FROM tab2 cor0
----
2470
2565
3610

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

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

query I rowsort
SELECT ALL - 89 * ( - col0 ) FROM tab0 AS cor0
----
2136
3115
7921

query I rowsort
SELECT ( + 8 ) FROM tab0, tab1 AS cor0
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57

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

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

query I rowsort
SELECT DISTINCT - col0 * + 51 * + col0 FROM tab2
----
-2499
-310284
-318291

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

query I rowsort
SELECT - col0 + cor0.col2 + col1 * ( col1 ) * + col0 AS col0 FROM tab1 AS cor0
----
13536
2079
6393

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

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

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

skipif mysql # not compatible
query I rowsort label-267
SELECT - tab0.col1 + cor0.col0 / + CAST ( NULL AS INTEGER ) FROM tab0, tab1, tab1 cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

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

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

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

query I rowsort
SELECT + + col0 * col0 + + 73 * - col1 + col0 AS col0 FROM tab0 AS cor0
----
-5678
-5821
1367

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

query I rowsort
SELECT DISTINCT 55 - tab1.col2 AS col2 FROM tab1, tab0 AS cor0
----
-2
-41
1

query I rowsort
SELECT ALL tab1.col0 * ( ( col2 ) + + col1 ) AS col2 FROM tab1
----
240
4288
8720

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

skipif mysql # not compatible
query I rowsort label-275
SELECT ALL col2 / 53 AS col0 FROM tab1
----
1
1
1

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

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

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

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

skipif mysql # not compatible
query I rowsort label-278
SELECT + tab1.col2 * + 44 * col1 + col0 * 27 + col2 / + CAST ( NULL AS REAL ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 35 - col0 FROM tab0
----
-54
0
11

query I rowsort
SELECT - col1 + + 70 + - col0 AS col1 FROM tab0
----
-110
-40
-62

onlyif mysql # use DIV operator for integer division
query I rowsort label-281
SELECT ( col2 ) DIV col0 + ( col2 ) FROM tab2
----
26
30
38

skipif mysql # not compatible
query I rowsort label-281
SELECT ( col2 ) / col0 + ( col2 ) FROM tab2
----
26
30
38

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

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

query I rowsort
SELECT DISTINCT 60 + col1 * col2 FROM tab2
----
1594
706
897

query I rowsort
SELECT DISTINCT - 48 FROM tab1
----
-48

query I rowsort
SELECT + 75 - col2 FROM tab0 AS cor0
----
-7
42
74

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

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

query I rowsort
SELECT DISTINCT + ( - col0 ) + - col2 * col2 AS col2 FROM tab1
----
-2919
-3313
-9296

query I rowsort
SELECT DISTINCT - 63 AS col0 FROM tab0 AS cor0
----
-63

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

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

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

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

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

query I rowsort
SELECT DISTINCT + 63 * col1 * - col1 FROM tab1 AS cor0
----
-10647
-42588
-6300

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

query I rowsort
SELECT + 76 * col1 AS col2 FROM tab0 AS cor0
----
6536
6916
7372

query I rowsort
SELECT DISTINCT - 90 + + col2 FROM tab2 AS cor0
----
-52
-63
-64

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

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

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

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

query I rowsort
SELECT + 94 * + col2 + col1 * col2 - col1 FROM tab1 cor0
----
10259
5918
6454

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

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

query I rowsort
SELECT ALL - + 81 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to d0bfe8494f52235d9fcafb5ac5de3f81

query I rowsort
SELECT DISTINCT 42 + - 59 - + tab1.col2 * + cor0.col2 FROM tab1, tab0, tab0 AS cor0
----
9 values hashing to 69b6757e0c6d73bde10049570756590f

query I rowsort
SELECT ALL - ( - 7 ) * col2 FROM tab1
----
378
399
672

query I rowsort
SELECT + col1 * col2 - col0 * + col2 FROM tab2 AS cor0
----
-2356
-494
648

query I rowsort
SELECT + col0 * - col0 + - col2 - 17 FROM tab0 cor0
----
-1243
-626
-8020

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

skipif mysql # not compatible
query I rowsort label-309
SELECT DISTINCT + - col2 + col0 + col2 * CAST ( 17 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
1616
867
976

query I rowsort
SELECT ALL + - cor0.col2 * 44 + col2 * cor0.col2 * - 60 AS col1 FROM tab2 AS cor0
----
-41704
-44928
-88312

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-311
SELECT CAST( NULL AS DECIMAL ) AS col1 FROM tab2, tab0 AS cor0, tab0 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-311
SELECT CAST ( NULL AS REAL ) AS col1 FROM tab2, tab0 AS cor0, tab0 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

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

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

query I rowsort
SELECT + col2 + col2 * ( 74 ) * col1 FROM tab1 AS cor0
----
103950
42237
92448

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-316
SELECT DISTINCT col2 + col1 DIV - 87 FROM tab2 AS cor0
----
26
27
38

skipif mysql # not compatible
query I rowsort label-316
SELECT DISTINCT col2 + col1 / - 87 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT ALL - cor0.col0 + + ( + cor0.col2 * - col1 + - 87 * 7 ) AS col0 FROM tab0 AS cor0
----
-3471
-741
-8160

query I rowsort
SELECT ALL - - col2 + - ( 11 ) * col1 * + col0 AS col1 FROM tab1 AS cor0
----
-11344
-6983
-804

onlyif mysql # use DIV operator for integer division
query I rowsort label-319
SELECT ALL - cor0.col2 * 29 + 48 DIV - col1 FROM tab1 AS cor0
----
-1567
-1657
-2787

skipif mysql # not compatible
query I rowsort label-319
SELECT ALL - cor0.col2 * 29 + 48 / - col1 FROM tab1 AS cor0
----
-1567
-1657
-2787

query I rowsort
SELECT ALL + col1 * + 30 + + col0 AS col1 FROM tab0 AS cor0
----
2604
2819
2945

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

query I rowsort
SELECT - col2 * ( - 72 ) AS col1 FROM tab2 cor0
----
1872
1944
2736

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

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

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

query I rowsort
SELECT DISTINCT + 59 * col0 + + col0 * col0 AS col1 FROM tab0 AS cor0
----
13172
1992
3290

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

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

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

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

query I rowsort
SELECT 44 * col1 FROM tab1 cor0
----
1144
440
572

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 74 + - 24 * + col2 col0 FROM tab0 AS cor0
----
-1894
-718
50

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

query I rowsort
SELECT - + tab1.col1 AS col2 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6

query I rowsort
SELECT - ( - col2 ) * col2 + + 88 FROM tab1 AS cor0
----
3004
3337
9304

query I rowsort
SELECT col2 * + col2 + 16 FROM tab2 AS cor0
----
1460
692
745

query I rowsort
SELECT 97 * col2 FROM tab2 AS cor0
----
2522
2619
3686

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

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

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

query I rowsort
SELECT col0 * 71 FROM tab2
----
497
5538
5609

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

query I rowsort
SELECT DISTINCT - 86 * - col0 AS col2 FROM tab1
----
258
5504
6880

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

query I rowsort
SELECT ALL cor0.col2 * - cor0.col1 + - col0 * col0 * col0 + - 57 * + col0 FROM tab0 AS cor0
----
-18030
-44967
-717504

query I rowsort
SELECT ALL + + 27 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8

onlyif mysql # use DIV operator for integer division
query I rowsort label-344
SELECT DISTINCT + 71 DIV col0 FROM tab0
----
0
2

skipif mysql # not compatible
query I rowsort label-344
SELECT DISTINCT + 71 / col0 FROM tab0
----
0
2

query I rowsort
SELECT DISTINCT ( cor1.col1 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
86
91
97

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

skipif mysql # not compatible
query I rowsort label-346
SELECT DISTINCT 34 + col2 / + tab0.col1 FROM tab0
----
34

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

query I rowsort
SELECT DISTINCT + tab2.col0 * col0 + col2 * 22 AS col1 FROM tab2
----
643
6656
7077

query I rowsort
SELECT DISTINCT - col1 + - 21 FROM tab0
----
-107
-112
-118

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

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

query I rowsort
SELECT ALL - tab2.col2 AS col2 FROM tab2, tab0, tab0 cor0
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6

onlyif mysql # use DIV operator for integer division
query I rowsort label-353
SELECT DISTINCT 75 + + col2 DIV col1 col2 FROM tab2
----
75
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-353
SELECT DISTINCT 75 + + col2 / col1 col2 FROM tab2
----
75
77

query I rowsort
SELECT ALL + col1 * + 64 * col0 + - col2 FROM tab0
----
132063
217279
518254

query I rowsort
SELECT cor0.col0 * 47 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to e68b73c1af696536889e9683d2f878c7

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-357
SELECT DISTINCT + 17 + + 70 DIV cor1.col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
17

skipif mysql # not compatible
query I rowsort label-357
SELECT DISTINCT + 17 + + 70 / cor1.col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
17

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

skipif mysql # not compatible
query I rowsort label-358
SELECT col2 * - col0 / + col0 AS col1 FROM tab1 AS cor0
----
-54
-57
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-359
SELECT + 22 + - col2 DIV col0 FROM tab2 cor0
----
19
22
22

skipif mysql # not compatible
query I rowsort label-359
SELECT + 22 + - col2 / col0 FROM tab2 cor0
----
19
22
22

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-360
SELECT DISTINCT col1 * tab2.col0 * CAST( - col2 AS SIGNED ) FROM tab2
----
-119652
-51034
-5859

skipif mysql # not compatible
query I rowsort label-360
SELECT DISTINCT col1 * tab2.col0 * CAST ( - col2 AS INTEGER ) FROM tab2
----
-119652
-51034
-5859

query I rowsort
SELECT 50 * - col0 AS col1 FROM tab1 AS cor0
----
-150
-3200
-4000

query I rowsort
SELECT ( col2 ) * 33 AS col1 FROM tab0 AS cor0
----
1089
2706
33

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

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

query I rowsort
SELECT cor0.col2 * col1 + - 21 * 73 AS col1 FROM tab1 AS cor0
----
-129
-285
-963

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

query I rowsort
SELECT 46 * + col1 AS col2 FROM tab1 AS cor0
----
1196
460
598

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + col2 * - tab0.col2 * + col1 - + 87 col0 FROM tab0
----
-183
-611889
-93708

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

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

query I rowsort
SELECT ALL col0 + + 54 FROM tab0 AS cor0
----
143
78
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-371
SELECT + cor0.col1 * 17 - col1 DIV col1 FROM tab0 cor0
----
1461
1546
1648

skipif mysql # not compatible
query I rowsort label-371
SELECT + cor0.col1 * 17 - col1 / col1 FROM tab0 cor0
----
1461
1546
1648

query I rowsort
SELECT ALL + cor0.col2 + col1 * + 86 + + col1 AS col1 FROM tab2 AS cor0
----
1517
2724
5159

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-374
SELECT + - col0 - cor0.col0 DIV - 27 AS col1 FROM tab2 AS cor0
----
-7
-76
-77

skipif mysql # not compatible
query I rowsort label-374
SELECT + - col0 - cor0.col0 / - 27 AS col1 FROM tab2 AS cor0
----
-7
-76
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 - 43 col2 FROM tab0 cor0
----
-129
-134
-140

query I rowsort
SELECT - + 96 AS col2 FROM tab1 AS cor0
----
-96
-96
-96

query I rowsort
SELECT DISTINCT + 42 * + col2 + - col1 * col2 FROM tab2 AS cor0
----
-442
297
950

query I rowsort
SELECT DISTINCT - 97 AS col1 FROM tab0 AS cor0
----
-97

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

query I rowsort
SELECT ALL + + 78 + - col0 * - col1 AS col1 FROM tab0 AS cor0
----
2142
3473
8177

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

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

query I rowsort
SELECT ALL - - 64 + + 49 FROM tab1 cor0
----
113
113
113

query I rowsort
SELECT - - ( + 49 ) + - col0 * col0 AS col2 FROM tab0 AS cor0
----
-1176
-527
-7872

query I rowsort
SELECT ALL - 83 FROM tab0 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab2 AS cor2
----
81 values hashing to 291feef3dca992d41fad4b2f7ab1ab9e

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-386
SELECT DISTINCT + CAST( - ( col2 ) AS SIGNED ) - - cor0.col0 * + 34 FROM tab0 AS cor0
----
1189
2944
783

skipif mysql # not compatible
query I rowsort label-386
SELECT DISTINCT + CAST ( - ( col2 ) AS INTEGER ) - - cor0.col0 * + 34 FROM tab0 AS cor0
----
1189
2944
783

query I rowsort
SELECT + col2 * cor0.col2 + - col1 * + 64 FROM tab0 AS cor0
----
-4415
-6207
900

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + + cor0.col1 * cor0.col0 col0 FROM tab0 cor0
----
2088
3430
8188

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

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

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort
SELECT + CAST ( - col0 AS REAL ) + - col2 * 24 AS col1 FROM tab2 AS cor0
----
-655
-702
-991

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-397
SELECT ALL - - col1 DIV - col1 + col0 FROM tab2 AS cor0
----
6
77
78

skipif mysql # not compatible
query I rowsort label-397
SELECT ALL - - col1 / - col1 + col0 FROM tab2 AS cor0
----
6
77
78

query I rowsort
SELECT ALL + col2 - + 64 FROM tab0
----
-31
-63
18

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

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

query I rowsort
SELECT 78 + 22 FROM tab2 AS cor0
----
100
100
100

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

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

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

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

query I rowsort
SELECT + 77 + + cor0.col2 FROM tab1 AS cor0
----
131
134
173

onlyif mysql # use DIV operator for integer division
query I rowsort label-406
SELECT col0 + col0 DIV - 23 FROM tab0 AS cor0
----
23
34
86

skipif mysql # not compatible
query I rowsort label-406
SELECT col0 + col0 / - 23 FROM tab0 AS cor0
----
23
34
86

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

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

query I rowsort
SELECT ALL 71 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0

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

query I rowsort
SELECT DISTINCT + col2 + + ( 59 ) * tab1.col2 FROM tab1
----
3240
3420
5760

query I rowsort
SELECT + tab2.col0 + 30 + + col1 * - col2 FROM tab2
----
-1426
-537
-800

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

query I rowsort
SELECT tab0.col2 * + col1 * - col2 + col2 + - 41 * + 35 FROM tab0
----
-1531
-613237
-95056

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-416
SELECT col0 + + CAST( 34 AS SIGNED ) * tab1.col2 col2 FROM tab1
----
1839
2002
3344

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-416
SELECT col0 + + CAST ( 34 AS INTEGER ) * tab1.col2 col2 FROM tab1
----
1839
2002
3344

onlyif mysql # use DIV operator for integer division
query I rowsort label-417
SELECT ALL + tab2.col1 * col0 DIV 63 + col0 + 3 FROM tab2
----
103
13
154

skipif mysql # not compatible
query I rowsort label-417
SELECT ALL + tab2.col1 * col0 / 63 + col0 + 3 FROM tab2
----
103
13
154

query I rowsort
SELECT DISTINCT - col1 + 54 + + 41 FROM tab0 AS cor0
----
-2
4
9

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-420
SELECT DISTINCT + col1 + CAST( 9 AS SIGNED ) DIV - col0 + + 99 FROM tab1
----
109
112
122

skipif mysql # not compatible
query I rowsort label-420
SELECT DISTINCT + col1 + CAST ( 9 AS INTEGER ) / - col0 + + 99 FROM tab1
----
109
112
122

query I rowsort
SELECT DISTINCT col2 * tab1.col2 + + 50 FROM tab1
----
2966
3299
9266

onlyif mysql # use DIV operator for integer division
query I rowsort label-422
SELECT DISTINCT col0 DIV col1 + col1 + col0 FROM tab0
----
110
132
180

skipif mysql # not compatible
query I rowsort label-422
SELECT DISTINCT col0 / col1 + col1 + col0 FROM tab0
----
110
132
180

onlyif mysql # use DIV operator for integer division
query I rowsort label-423
SELECT - col0 DIV - 11 AS col1 FROM tab2
----
0
7
7

skipif mysql # not compatible
query I rowsort label-423
SELECT - col0 / - 11 AS col1 FROM tab2
----
0
7
7

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

query I rowsort
SELECT + tab2.col2 * + ( 78 ) AS col1 FROM tab2
----
2028
2106
2964

query I rowsort
SELECT - col2 - 76 FROM tab2 AS cor0
----
-102
-103
-114

query IIIIII rowsort
SELECT * FROM tab2, tab2 AS cor0 WHERE NOT ( NULL ) <= NULL
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - tab0.col2 * + col2 col0 FROM tab0
----
-1
-35937
-551368

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col2 * + col0 + + col0 * col2 * col2 col2 FROM tab2
----
117078
5292
54756

query I rowsort
SELECT - col1 / col1 AS col1 FROM tab0 WHERE ( - col2 * + col1 ) IN ( + col0 - col0 / tab0.col2 )
----

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND col2 * col2
----

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

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

query I rowsort
SELECT col2 * - col1 + + col0 * col0 FROM tab1 AS cor0
----
-1395
3526
5152

query I rowsort
SELECT DISTINCT + col1 + + col2 + - col0 FROM tab0
----
63
84
95

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

query I rowsort
SELECT ALL + col2 * - col2 * + col2 FROM tab0
----
-1
-35937
-551368

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-443
SELECT - col1 DIV - col1 + - col0 FROM tab1 AS cor0
----
-2
-63
-79

skipif mysql # not compatible
query I rowsort label-443
SELECT - col1 / - col1 + - col0 FROM tab1 AS cor0
----
-2
-63
-79

onlyif mysql # use DIV operator for integer division
query I rowsort label-444
SELECT ALL - col0 DIV + cor0.col1 + col2 * col1 FROM tab0 AS cor0
----
2838
7462
97

skipif mysql # not compatible
query I rowsort label-444
SELECT ALL - col0 / + cor0.col1 + col2 * col1 FROM tab0 AS cor0
----
2838
7462
97

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-446
SELECT + col1 + + col2 * col2 + + col0 DIV + col1 FROM tab2 AS cor0
----
1465
736
760

skipif mysql # not compatible
query I rowsort label-446
SELECT + col1 + + col2 * col2 + + col0 / + col1 FROM tab2 AS cor0
----
1465
736
760

query I rowsort
SELECT ALL cor0.col2 * - col2 AS col2 FROM tab2 AS cor0
----
-1444
-676
-729

onlyif mysql # use DIV operator for integer division
query I rowsort label-448
SELECT ALL - cor0.col2 DIV col2 col2 FROM tab0 cor0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-448
SELECT ALL - cor0.col2 / col2 col2 FROM tab0 cor0
----
-1
-1
-1

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

query I rowsort
SELECT 50 * tab2.col1 FROM tab2
----
1550
2950
850

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

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-456
SELECT + col2 DIV + 51 FROM tab1 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-456
SELECT + col2 / + 51 FROM tab1 cor0
----
1
1
1

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

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

skipif mysql # not compatible
query I rowsort label-458
SELECT - col2 * CAST ( + col2 AS INTEGER ) FROM tab2 AS cor0
----
-1444
-676
-729

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

query I rowsort
SELECT col2 + + col0 - - col2 * col1 AS col0 FROM tab1
----
1424
1461
691

query I rowsort
SELECT ALL + col2 * col0 + - col2 - - tab0.col0 AS col0 FROM tab0
----
69
7305
783

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

skipif mysql # not compatible
query I rowsort label-462
SELECT ALL + col2 * col2 / col2 AS col1 FROM tab1
----
54
57
96

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

skipif mysql # not compatible
query I rowsort label-463
SELECT ALL col2 / tab0.col1 AS col1 FROM tab0
----
0
0
0

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

query I rowsort
SELECT col2 * col2 + + tab0.col1 + col1 FROM tab0
----
1261
195
6906

query I rowsort
SELECT tab1.col0 * col2 * + col0 AS col0 FROM tab1
----
233472
486
614400

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-470
SELECT + col1 + - col0 DIV col0 FROM tab0
----
85
90
96

skipif mysql # not compatible
query I rowsort label-470
SELECT + col1 + - col0 / col0 FROM tab0
----
85
90
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-471
SELECT ALL col0 * + tab0.col1 + col0 * - col0 + col2 DIV - col0 AS col1 FROM tab0
----
1487
178
2170

skipif mysql # not compatible
query I rowsort label-471
SELECT ALL col0 * + tab0.col1 + col0 * - col0 + col2 / - col0 AS col1 FROM tab0
----
1487
178
2170

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-474
SELECT ALL - col1 * col0 DIV - col1 AS col1 FROM tab0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-474
SELECT ALL - col1 * col0 / - col1 AS col1 FROM tab0
----
24
35
89

query I rowsort
SELECT - + 32 + + cor0.col0 * col2 FROM tab2 AS cor0
----
157
1996
2970

query I rowsort
SELECT ALL col1 - col0 * - tab0.col2 FROM tab0
----
132
7389
878

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

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

query III rowsort
SELECT * FROM tab2 WHERE NOT ( col0 ) BETWEEN ( col0 ) AND - col1
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

query I rowsort
SELECT DISTINCT col1 - + tab0.col1 * col0 FROM tab0
----
-1978
-3298
-8008

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( + col0 ) > NULL
----

query I rowsort
SELECT cor0.col1 * 40 * col2 FROM tab1 AS cor0
----
22800
49920
56160

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + cor0.col2 * + 21 col1 FROM tab1 AS cor0
----
1134
1197
2016

onlyif mysql # use DIV operator for integer division
query I rowsort label-484
SELECT ALL - - col2 + col0 DIV - col1 AS col1 FROM tab1 AS cor0
----
51
54
90

skipif mysql # not compatible
query I rowsort label-484
SELECT ALL - - col2 + col0 / - col1 AS col1 FROM tab1 AS cor0
----
51
54
90

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-486
SELECT DISTINCT + col2 DIV - 12 AS col0 FROM tab0 AS cor0
----
-2
-6
0

skipif mysql # not compatible
query I rowsort label-486
SELECT DISTINCT + col2 / - 12 AS col0 FROM tab0 AS cor0
----
-2
-6
0

query I rowsort
SELECT col2 * 73 AS col2 FROM tab1 AS cor0
----
3942
4161
7008

onlyif mysql # use DIV operator for integer division
query I rowsort label-488
SELECT + col0 * ( + 63 ) + col1 + col2 DIV cor0.col1 FROM tab1 AS cor0
----
217
4047
5060

skipif mysql # not compatible
query I rowsort label-488
SELECT + col0 * ( + 63 ) + col1 + col2 / cor0.col1 FROM tab1 AS cor0
----
217
4047
5060

query I rowsort
SELECT ALL - col0 * + 71 * - col1 FROM tab1 AS cor0
----
45440
5538
73840

onlyif mysql # use DIV operator for integer division
query I rowsort label-490
SELECT col2 * col1 - tab0.col2 DIV + col1 AS col0 FROM tab0
----
2838
7462
97

skipif mysql # not compatible
query I rowsort label-490
SELECT col2 * col1 - tab0.col2 / + col1 AS col0 FROM tab0
----
2838
7462
97

query I rowsort
SELECT ALL col2 + - col0 + - tab1.col0 AS col0 FROM tab1
----
-64
-71
48

query I rowsort
SELECT col2 + + col2 * + 37 + + col1 * col1 FROM tab0
----
11397
8650
9447

query I rowsort
SELECT - tab1.col0 + tab1.col1 AS col1 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to bae587a8285614200d114dd089f83a2b

query I rowsort
SELECT + col1 + - col1 * 50 FROM tab1
----
-1274
-490
-637

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

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

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

query I rowsort
SELECT + + col0 + - ( col0 ) * col0 AS col1 FROM tab1 AS cor0
----
-4032
-6
-6320

onlyif mysql # use DIV operator for integer division
query I rowsort label-498
SELECT + - col2 DIV ( 1 * col2 ) + - col0 FROM tab1 AS cor0
----
-4
-65
-81

skipif mysql # not compatible
query I rowsort label-498
SELECT + - col2 / ( 1 * col2 ) + - col0 FROM tab1 AS cor0
----
-4
-65
-81

query I rowsort
SELECT 20 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4

query I rowsort
SELECT 22 * - col2 FROM tab0
----
-1804
-22
-726

onlyif mysql # use DIV operator for integer division
query I rowsort label-501
SELECT tab0.col2 DIV tab0.col1 + + col2 + + tab0.col0 FROM tab0
----
171
36
57

skipif mysql # not compatible
query I rowsort label-501
SELECT tab0.col2 / tab0.col1 + + col2 + + tab0.col0 FROM tab0
----
171
36
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-502
SELECT + - col0 DIV 41 AS col0 FROM tab0 AS cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-502
SELECT + - col0 / 41 AS col0 FROM tab0 AS cor0
----
-2
0
0

query I rowsort
SELECT + 7 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76

query I rowsort
SELECT - + 17 * - col1 + + col1 FROM tab1 AS cor0
----
180
234
468

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

skipif mysql # not compatible
query I rowsort label-505
SELECT - - 91 * col1 / CAST ( NULL AS INTEGER ) - 54 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-506
SELECT DISTINCT col2 + + col2 + - CAST( + ( + col1 ) AS SIGNED ) AS col2 FROM tab2
----
-7
23
59

skipif mysql # not compatible
query I rowsort label-506
SELECT DISTINCT col2 + + col2 + - CAST ( + ( + col1 ) AS INTEGER ) AS col2 FROM tab2
----
-7
23
59

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

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

query I rowsort
SELECT ALL 33 * - col2 AS col2 FROM tab2 AS cor0
----
-1254
-858
-891

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

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

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

query I rowsort
SELECT ALL - 31 + col1 * col0 FROM tab0
----
2033
3364
8068

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-514
SELECT - 96 DIV + col2 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-514
SELECT - 96 / + col2 FROM tab1
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + col0 + + tab1.col0 col2 FROM tab1
----
192
240
9

query I rowsort
SELECT ALL + 83 + col1 AS col1 FROM tab2
----
100
114
142

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-518
SELECT DISTINCT + + 42 DIV col0 + col2 AS col0 FROM tab2 AS cor0
----
26
33
38

skipif mysql # not compatible
query I rowsort label-518
SELECT DISTINCT + + 42 / col0 + col2 AS col0 FROM tab2 AS cor0
----
26
33
38

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

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

query I rowsort
SELECT DISTINCT - + 52 * - col0 - cor0.col0 FROM tab0 AS cor0
----
1224
1785
4539

query I rowsort
SELECT DISTINCT - + 48 * col1 - col0 AS col0 FROM tab0 AS cor0
----
-4152
-4457
-4691

query I rowsort
SELECT DISTINCT - + col2 + - col2 * col2 AS col1 FROM tab2 AS cor0
----
-1482
-702
-756

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

query I rowsort
SELECT + 59 - col0 FROM tab0 AS cor0
----
-30
24
35

onlyif mysql # use DIV operator for integer division
query I rowsort label-526
SELECT - col0 DIV col1 + + col1 * + col1 col0 FROM tab2 AS cor0
----
285
3480
961

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-526
SELECT - col0 / col1 + + col1 * + col1 col0 FROM tab2 AS cor0
----
285
3480
961

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

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

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

query I rowsort
SELECT DISTINCT + + 18 * ( col0 ) * - cor0.col2 AS col0 FROM tab1 AS cor0
----
-138240
-2916
-65664

query I rowsort
SELECT ALL - ( 4 ) * - cor0.col2 AS col2 FROM tab2 AS cor0
----
104
108
152

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

query I rowsort
SELECT DISTINCT - 38 * + cor0.col2 - cor0.col0 FROM tab2 AS cor0
----
-1033
-1066
-1523

query I rowsort
SELECT DISTINCT col1 * 73 * col0 - cor0.col0 FROM tab2 cor0
----
15834
335868
97960

query I rowsort
SELECT + col2 * - 80 FROM tab1 cor0
----
-4320
-4560
-7680

query I rowsort
SELECT DISTINCT - + col2 * + 7 FROM tab2 AS cor0
----
-182
-189
-266

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - 54 * col1 col2 FROM tab2 AS cor0
----
-11718
-248508
-72522

query I rowsort
SELECT col2 + 1 * - col0 FROM tab2
----
-41
-52
20

query I rowsort
SELECT DISTINCT + 70 * + 9 AS col0 FROM tab2
----
630

query I rowsort
SELECT DISTINCT 60 + + cor0.col0 * col1 * col0 AS col1 FROM tab2 AS cor0
----
106157
1579
359016

query I rowsort
SELECT DISTINCT - 17 * col2 + col1 AS col2 FROM tab2 AS cor0
----
-383
-428
-629

query I rowsort
SELECT ALL + + 25 - + col1 * - col0 FROM tab0 AS cor0
----
2089
3420
8124

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

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

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

query I rowsort
SELECT ALL - + col1 * col1 - - col1 * - col1 AS col0 FROM tab2 AS cor0
----
-1922
-578
-6962

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

query I rowsort
SELECT - col2 * + col1 + - col0 * 26 FROM tab1 AS cor0
----
-1482
-2234
-3328

query I rowsort
SELECT DISTINCT - cor0.col0 * cor0.col2 + - col2 * + col2 * + col2 FROM tab0 AS cor0
----
-36
-36729
-558666

query I rowsort
SELECT DISTINCT - + 9 + - 94 * cor0.col2 FROM tab1 cor0
----
-5085
-5367
-9033

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-550
SELECT + CAST( 68 AS SIGNED ) + + col1 FROM tab0 AS cor0
----
154
159
165

skipif mysql # not compatible
query I rowsort label-550
SELECT + CAST ( 68 AS INTEGER ) + + col1 FROM tab0 AS cor0
----
154
159
165

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

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

skipif mysql # not compatible
query I rowsort label-552
SELECT - CAST ( - col0 AS INTEGER ) * col2 + + col0 FROM tab0
----
70
7387
816

query I rowsort
SELECT col2 - - 92 FROM tab2 AS cor0
----
118
119
130

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 - 29 * 47 col1 FROM tab0 AS cor0
----
-1387
-1398
-1452

query I rowsort
SELECT DISTINCT + col1 * + col0 + - 15 AS col2 FROM tab2
----
1328
202
4587

query I rowsort
SELECT + cor0.col1 * - 5 AS col0 FROM tab0 AS cor0
----
-430
-455
-485

query I rowsort
SELECT col0 + + 48 AS col0 FROM tab1
----
112
128
51

query I rowsort
SELECT + 88 * col1 + - col0 AS col1 FROM tab0 cor0
----
7544
7919
8501

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-559
SELECT DISTINCT col1 * + CAST( + 12 AS SIGNED ) * col1 + 67 AS col0 FROM tab1
----
1267
2095
8179

skipif mysql # not compatible
query I rowsort label-559
SELECT DISTINCT col1 * + CAST ( + 12 AS INTEGER ) * col1 + 67 AS col0 FROM tab1
----
1267
2095
8179

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

query I rowsort
SELECT ALL + 22 * - cor1.col1 AS col1 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 6a34907a3f32ffd66f8778936849ae32

query I rowsort
SELECT - col1 * 56 FROM tab1
----
-1456
-560
-728

query I rowsort
SELECT DISTINCT - tab2.col1 * - 74 * col1 AS col0 FROM tab2
----
21386
257594
71114

query I rowsort
SELECT DISTINCT - - 81 + col1 * + col2 AS col1 FROM tab0 AS cor0
----
178
2919
7543

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

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

query I rowsort
SELECT - col1 * 26 FROM tab1
----
-260
-338
-676

query I rowsort
SELECT - 37 + col0 AS col0 FROM tab2
----
-30
41
42

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

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

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

query I rowsort
SELECT - 23 + - col2 + + col0 FROM tab1
----
-16
-39
-74

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

query I rowsort
SELECT tab2.col2 + 23 FROM tab2, tab1 AS cor0
----
9 values hashing to baccdd4eb2fb6669dcc06519f6cb9228

query I rowsort
SELECT ALL cor0.col2 * 84 FROM tab1, tab1 AS cor0
----
9 values hashing to a0722a95fc6c19bdf3fbe30c59084b3d

onlyif mysql # use DIV operator for integer division
query I rowsort label-575
SELECT - col0 * 58 + + col1 DIV cor0.col0 - 97 AS col1 FROM tab2 AS cor0
----
-4621
-4679
-499

skipif mysql # not compatible
query I rowsort label-575
SELECT - col0 * 58 + + col1 / cor0.col0 - 97 AS col1 FROM tab2 AS cor0
----
-4621
-4679
-499

query I rowsort
SELECT col1 - 89 AS col2 FROM tab1 AS cor0
----
-63
-76
-79

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-578
SELECT + col0 * ( 46 + + col1 ) DIV 74 AS col1 FROM tab2 AS cor0
----
110
67
7

skipif mysql # not compatible
query I rowsort label-578
SELECT + col0 * ( 46 + + col1 ) / 74 AS col1 FROM tab2 AS cor0
----
110
67
7

query I rowsort
SELECT + col2 * - 16 AS col0 FROM tab2
----
-416
-432
-608

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

query I rowsort
SELECT ALL - col2 * - 27 AS col2 FROM tab0 AS cor0
----
2214
27
891

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

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

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

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

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

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

query I rowsort
SELECT + 48 * - col0 AS col0 FROM tab0 AS cor0
----
-1152
-1680
-4272

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

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

skipif mysql # not compatible
query I rowsort label-588
SELECT - 21 / - tab1.col2 AS col2 FROM tab1
----
0
0
0

query I rowsort
SELECT + 47 + col2 + col0 FROM tab0
----
104
218
83

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

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

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

query I rowsort
SELECT DISTINCT + 18 - - cor0.col1 AS col1 FROM tab0 AS cor0
----
104
109
115

query I rowsort
SELECT DISTINCT - + 42 - - col1 AS col0 FROM tab0 AS cor0
----
44
49
55

onlyif mysql # use DIV operator for integer division
query I rowsort label-595
SELECT - + col1 * - col0 - + ( - col1 ) DIV + cor0.col0 FROM tab0 AS cor0
----
2067
3397
8100

skipif mysql # not compatible
query I rowsort label-595
SELECT - + col1 * - col0 - + ( - col1 ) / + cor0.col0 FROM tab0 AS cor0
----
2067
3397
8100

query I rowsort
SELECT DISTINCT - + 24 * col1 * col0 FROM tab0 AS cor0
----
-194376
-49536
-81480

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

query I rowsort
SELECT ALL + col2 + 1 FROM tab0 AS cor0
----
2
34
83

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

skipif mysql # not compatible
query I rowsort label-599
SELECT + col2 + + col0 / + col1 FROM tab1 AS cor0
----
102
54
63

query I rowsort
SELECT + - col0 * + col0 + + col0 + - col1 FROM tab1 AS cor0
----
-32
-4042
-6333

query I rowsort
SELECT + + cor0.col0 + - 49 FROM tab1 AS cor0
----
-46
15
31

query I rowsort
SELECT DISTINCT - - col2 * + 91 + col2 AS col0 FROM tab0 AS cor0
----
3036
7544
92

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-604
SELECT col0 + + 88 DIV - col0 AS col2 FROM tab2 AS cor0
----
-5
77
78

skipif mysql # not compatible
query I rowsort label-604
SELECT col0 + + 88 / - col0 AS col2 FROM tab2 AS cor0
----
-5
77
78

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + 10 col0 FROM tab1 AS cor0
----
106
64
67

onlyif mysql # use DIV operator for integer division
query I rowsort label-607
SELECT 49 DIV - col2 - col0 AS col1 FROM tab0
----
-25
-84
-89

skipif mysql # not compatible
query I rowsort label-607
SELECT 49 / - col2 - col0 AS col1 FROM tab0
----
-25
-84
-89

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-609
SELECT DISTINCT - 16 DIV + col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-609
SELECT DISTINCT - 16 / + col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT 30 * cor0.col1 AS col2 FROM tab0 AS cor0
----
2580
2730
2910

query I rowsort
SELECT DISTINCT col2 * - 55 - col2 AS col2 FROM tab2 AS cor0
----
-1456
-1512
-2128

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-613
SELECT DISTINCT cor0.col2 * + col2 + col1 DIV col1 AS col1 FROM tab1 cor0
----
2917
3250
9217

skipif mysql # not compatible
query I rowsort label-613
SELECT DISTINCT cor0.col2 * + col2 + col1 / col1 AS col1 FROM tab1 cor0
----
2917
3250
9217

query I rowsort
SELECT DISTINCT 36 * - 92 AS col2 FROM tab1, tab2 AS cor0
----
-3312

onlyif mysql # use DIV operator for integer division
query I rowsort label-615
SELECT - col1 DIV + 61 - - col1 col2 FROM tab0
----
85
90
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-615
SELECT - col1 / + 61 - - col1 col2 FROM tab0
----
85
90
96

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 * + col1 col1 FROM tab2 AS cor0
----
-1343
-217
-4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-618
SELECT ALL + tab1.col1 DIV - 24 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-618
SELECT ALL + tab1.col1 / - 24 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort
SELECT + CAST ( + 86 AS REAL ) - col0 FROM tab0
----
-3
51
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 45 col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050

query I rowsort
SELECT - ( - 8 ) * cor0.col0 AS col1 FROM tab1 AS cor0
----
24
512
640

query I rowsort
SELECT ( 47 ) + col0 AS col0 FROM tab0
----
136
71
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 49 + cor0.col2 col0 FROM tab2 AS cor0
----
75
76
87

query I rowsort
SELECT ALL - ( - 53 ) AS col0 FROM tab1
----
53
53
53

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 + cor0.col1 col1 FROM tab1 cor0
----
20
26
52

query I rowsort
SELECT ALL - 95 AS col1 FROM tab1, tab0 cor0
----
9 values hashing to 1c7934db0632c123332c43f17b661d6c

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-628
SELECT 3 + + col2 * CAST( - col2 AS SIGNED ) FROM tab1
----
-2913
-3246
-9213

skipif mysql # not compatible
query I rowsort label-628
SELECT 3 + + col2 * CAST ( - col2 AS INTEGER ) FROM tab1
----
-2913
-3246
-9213

query I rowsort
SELECT - cor1.col0 * + 49 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8c52dc06e3be29deb4b8ff99017a5caf

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + col2 * col0 col1 FROM tab2
----
2054
216
3040

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

query I rowsort
SELECT ALL + - 28 * - col0 FROM tab1 AS cor0
----
1792
2240
84

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + 90 * col0 + + col1 col1 FROM tab2
----
692
7138
7144

query I rowsort
SELECT + col2 + + 32 FROM tab1
----
128
86
89

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-640
SELECT ALL + col0 DIV + col1 + 86 * - col1 col2 FROM tab0 AS cor0
----
-7396
-7826
-8342

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-640
SELECT ALL + col0 / + col1 + 86 * - col1 col2 FROM tab0 AS cor0
----
-7396
-7826
-8342

query I rowsort
SELECT DISTINCT + col1 * - col2 + + 73 * - col0 + 6 AS col2 FROM tab2 AS cor0
----
-1342
-6407
-7222

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 * + 84 col0 FROM tab2 AS cor0
----
-2184
-2268
-3192

query I rowsort
SELECT DISTINCT col0 + ( col2 ) + cor0.col0 AS col2 FROM tab0 AS cor0
----
260
71
81

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

skipif mysql # not compatible
query I rowsort label-644
SELECT ALL + - col2 * cor0.col1 / col1 AS col2 FROM tab1 cor0
----
-54
-57
-96

query I rowsort
SELECT ALL - col1 * - ( col1 ) AS col0 FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT - + cor0.col0 * ( - col0 ) + - col1 * col0 * col0 FROM tab2 cor0
----
-1470
-352872
-99856

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

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

query I rowsort
SELECT ( 75 ) * col1 FROM tab2 cor0
----
1275
2325
4425

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

query I rowsort
SELECT ALL + 83 * col0 AS col1 FROM tab1 AS cor0
----
249
5312
6640

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

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

skipif mysql # not compatible
query I rowsort label-653
SELECT ALL - CAST ( - ( + col2 ) AS INTEGER ) + ( + col0 + col0 ) FROM tab0 AS cor0
----
260
71
81

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

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

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

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

query I rowsort
SELECT ALL - col0 - - col0 * cor0.col0 AS col2 FROM tab1 AS cor0
----
4032
6
6320

query I rowsort
SELECT - + col2 + col1 * 69 FROM tab0 cor0
----
5901
6197
6692

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 97 - + col2 col1 FROM tab0 AS cor0
----
-130
-179
-98

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

query I rowsort
SELECT - col0 + + col1 * + 33 FROM tab1 AS cor0
----
266
349
855

query I rowsort
SELECT ( col1 ) - + 9 FROM tab2 cor0
----
22
50
8

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

query I rowsort
SELECT DISTINCT ( col2 + ( + 50 ) ) FROM tab2
----
76
77
88

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

query I rowsort
SELECT ALL 36 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 4d1892e880125dc90345721151acb22c

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-667
SELECT ALL - CAST( col2 AS SIGNED ) + + col0 AS col2 FROM tab1 cor0
----
-16
-51
7

skipif mysql # not compatible
query I rowsort label-667
SELECT ALL - CAST ( col2 AS INTEGER ) + + col0 AS col2 FROM tab1 cor0
----
-16
-51
7

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

query I rowsort
SELECT ALL 77 * col1 + col2 * + col0 AS col1 FROM tab0 AS cor0
----
14305
7414
7504

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-671
SELECT DISTINCT - 4 * ( + col1 ) DIV + CAST( - col0 * - col0 AS SIGNED ) - 38 FROM tab1 AS cor0
----
-38
-49

skipif mysql # not compatible
query I rowsort label-671
SELECT DISTINCT - 4 * ( + col1 ) / + CAST ( - col0 * - col0 AS INTEGER ) - 38 FROM tab1 AS cor0
----
-38
-49

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

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

query I rowsort
SELECT - - col1 * col0 - ( col1 + + cor0.col0 ) FROM tab0 cor0
----
1954
3263
7919

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

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

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

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

query I rowsort
SELECT + 96 * col2 FROM tab2 AS cor0
----
2496
2592
3648

query I rowsort
SELECT - 65 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 4ca93c42a91c7dff917e7b7090ba9e57

query I rowsort
SELECT 45 * - tab0.col1 FROM tab0
----
-3870
-4095
-4365

query I rowsort
SELECT ALL 18 * + tab0.col0 AS col0 FROM tab0
----
1602
432
630

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

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

query I rowsort
SELECT col2 * - 59 FROM tab2 AS cor0
----
-1534
-1593
-2242

query I rowsort
SELECT DISTINCT + + col1 * + 7 + - col0 * - col2 + - 69 AS col2 FROM tab0 AS cor0
----
1325
645
7866

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

query I rowsort
SELECT DISTINCT - col1 + ( 72 ) FROM tab2 AS cor0
----
13
41
55

query I rowsort
SELECT - - cor0.col2 * col2 - cor0.col2 AS col1 FROM tab0 cor0
----
0
1056
6642

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 50 col0 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 314aace40e704c20a6be06204a329f80

query I rowsort
SELECT ALL 59 * + col2 FROM tab2
----
1534
1593
2242

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

skipif mysql # not compatible
query I rowsort label-692
SELECT + col0 / + col0 AS col0 FROM tab0
----
1
1
1

query I rowsort
SELECT 29 * + cor0.col2 FROM tab2 AS cor0
----
1102
754
783

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

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

skipif mysql # not compatible
query I rowsort label-695
SELECT - CAST ( NULL AS INTEGER ) - 15 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-696
SELECT CAST( + 80 AS SIGNED ) * col0 FROM tab2 AS cor0
----
560
6240
6320

skipif mysql # not compatible
query I rowsort label-696
SELECT CAST ( + 80 AS INTEGER ) * col0 FROM tab2 AS cor0
----
560
6240
6320

query I rowsort
SELECT DISTINCT + col1 * + 42 * + col2 AS col0 FROM tab0
----
119196
313404
4074

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

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

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

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + ( 95 ) col1 FROM tab1
----
149
152
191

query I rowsort
SELECT DISTINCT - + cor0.col1 * + cor0.col1 + cor0.col0 * - col0 FROM tab0 AS cor0
----
-10634
-16202
-7972

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

skipif mysql # not compatible
query I rowsort label-708
SELECT cor0.col2 + cor0.col0 / 56 FROM tab0 AS cor0
----
1
33
83

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

query I rowsort
SELECT DISTINCT - col1 + - 39 AS col2 FROM tab0 AS cor0
----
-125
-130
-136

onlyif mysql # use DIV operator for integer division
query I rowsort label-711
SELECT DISTINCT col0 * 1 + 94 DIV col0 + - col0 col2 FROM tab1 AS cor0
----
1
31

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 30 col2 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 6c98840ed134c765d56389f4150075f0

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

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

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

query I rowsort
SELECT DISTINCT + + col2 + + cor0.col2 + col2 FROM tab1 AS cor0
----
162
171
288

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 * cor0.col2 * - cor0.col2 col1 FROM tab1 cor0
----
-207936
-737280
-8748

onlyif mysql # use DIV operator for integer division
query I rowsort label-720
SELECT + 80 DIV col0 FROM tab1 AS cor0
----
1
1
26

skipif mysql # not compatible
query I rowsort label-720
SELECT + 80 / col0 FROM tab1 AS cor0
----
1
1
26

onlyif mysql # use DIV operator for integer division
query I rowsort label-721
SELECT ALL + 84 DIV ( - col1 ) + 75 + - 20 FROM tab0 AS cor0
----
55
55
55

skipif mysql # not compatible
query I rowsort label-721
SELECT ALL + 84 / ( - col1 ) + 75 + - 20 FROM tab0 AS cor0
----
55
55
55

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

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

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

query I rowsort
SELECT DISTINCT + + 32 + col0 * - col0 AS col2 FROM tab1 cor0
----
-4064
-6368
23

query I rowsort
SELECT DISTINCT 65 * - col0 FROM tab1 AS cor0
----
-195
-4160
-5200

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

skipif mysql # not compatible
query I rowsort label-726
SELECT - - CAST ( 50 AS INTEGER ) FROM tab2 AS cor0
----
50
50
50

query I rowsort
SELECT DISTINCT + - 69 + + col0 AS col0 FROM tab0 AS cor0
----
-34
-45
20

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

query I rowsort
SELECT ALL 56 * - col0 FROM tab1 cor0
----
-168
-3584
-4480

query I rowsort
SELECT DISTINCT + + 59 * - cor0.col0 + cor0.col2 FROM tab1 AS cor0
----
-123
-3719
-4624

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-731
SELECT DISTINCT - CAST( + 60 AS SIGNED ) * + col2 + col1 * - ( col1 ) FROM tab2 AS cor0
----
-2569
-2581
-5041

skipif mysql # not compatible
query I rowsort label-731
SELECT DISTINCT - CAST ( + 60 AS INTEGER ) * + col2 + col1 * - ( col1 ) FROM tab2 AS cor0
----
-2569
-2581
-5041

query I rowsort
SELECT ALL + + col2 * col0 * col2 + col2 + + cor0.col0 AS col2 FROM tab0 AS cor0
----
26193
598607
71

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

query I rowsort
SELECT + - cor0.col1 + cor0.col1 * - ( 47 ) FROM tab0 cor0
----
-4128
-4368
-4656

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

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

query I rowsort
SELECT ALL - - 27 * - col0 FROM tab2 AS cor0
----
-189
-2106
-2133

query I rowsort
SELECT - + 10 * col0 FROM tab0 AS cor0
----
-240
-350
-890

query I rowsort
SELECT DISTINCT + 11 + - col0 FROM tab0 AS cor0
----
-13
-24
-78

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

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

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

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

query I rowsort
SELECT + col1 + col1 * - cor0.col1 AS col2 FROM tab2 AS cor0
----
-272
-3422
-930

query I rowsort
SELECT ALL - + 64 * col0 AS col1 FROM tab0 AS cor0
----
-1536
-2240
-5696

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-745
SELECT ALL col2 + - ( + 49 ) DIV + col2 FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-745
SELECT ALL col2 + - ( + 49 ) / + col2 FROM tab1 AS cor0
----
54
57
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-746
SELECT ALL + col2 DIV - col2 + - 69 DIV + col0 + col1 FROM tab0 AS cor0
----
83
90
95

skipif mysql # not compatible
query I rowsort label-746
SELECT ALL + col2 / - col2 + - 69 / + col0 + col1 FROM tab0 AS cor0
----
83
90
95

onlyif mysql # use DIV operator for integer division
query I rowsort label-747
SELECT DISTINCT - + col1 * 27 - - col0 DIV col0 FROM tab0 AS cor0
----
-2321
-2456
-2618

skipif mysql # not compatible
query I rowsort label-747
SELECT DISTINCT - + col1 * 27 - - col0 / col0 FROM tab0 AS cor0
----
-2321
-2456
-2618

query I rowsort
SELECT ALL - cor0.col1 * col2 * + 49 FROM tab2 AS cor0
----
-31654
-41013
-75166

query I rowsort
SELECT - + cor0.col0 * - col2 + + 60 FROM tab2 AS cor0
----
2088
249
3062

query I rowsort
SELECT ALL + col1 * + ( 89 ) FROM tab1 AS cor0
----
1157
2314
890

query I rowsort
SELECT + col0 + - 23 AS col0 FROM tab1 AS cor0
----
-20
41
57

query I rowsort
SELECT ALL - col2 - + col0 AS col0 FROM tab1 AS cor0
----
-121
-176
-57

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

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

query I rowsort
SELECT ALL col2 * 61 FROM tab0 AS cor0
----
2013
5002
61

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 11 - + col2 col0 FROM tab1
----
-43
-46
-85

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

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

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

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

skipif mysql # not compatible
query I rowsort label-760
SELECT + col1 + col2 / + ( col0 ) FROM tab0 AS cor0
----
87
91
97

query I rowsort
SELECT DISTINCT - 60 * - col1 + - col2 + col0 FROM tab1
----
1509
607
764

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-762
SELECT CAST( 1 AS SIGNED ) col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-762
SELECT CAST ( 1 AS INTEGER ) col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

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

query I rowsort
SELECT DISTINCT + col1 * - 87 * + col1 FROM tab1
----
-14703
-58812
-8700

query I rowsort
SELECT + 34 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 1146d159f0b9b4378a8b738b963f7039

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + + col1 * - cor0.col1 col1 FROM tab0 AS cor0
----
-7363
-8199
-9408

query I rowsort
SELECT + 48 FROM tab0, tab0 cor0
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + 95 col0 FROM tab0
----
181
186
192

query I rowsort
SELECT + col1 * col1 * - col0 + - cor0.col0 * col2 AS col0 FROM tab1 AS cor0
----
-10048
-21200
-2190

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

query I rowsort
SELECT ALL - 58 * + col1 FROM tab2
----
-1798
-3422
-986

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

query I rowsort
SELECT 90 + - col0 FROM tab2
----
11
12
83

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

query I rowsort
SELECT + col0 + cor0.col1 + + col0 * 75 AS col1 FROM tab2 AS cor0
----
563
5987
6021

onlyif mysql # use DIV operator for integer division
query I rowsort label-777
SELECT ALL - cor0.col2 + - col0 DIV - col2 AS col2 FROM tab0 AS cor0
----
-33
-81
34

skipif mysql # not compatible
query I rowsort label-777
SELECT ALL - cor0.col2 + - col0 / - col2 AS col2 FROM tab0 AS cor0
----
-33
-81
34

query I rowsort
SELECT ALL + col0 * + cor0.col0 * + col1 FROM tab2 AS cor0
----
106097
1519
358956

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

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

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

query I rowsort
SELECT DISTINCT tab1.col2 * - col2 * col0 FROM tab1
----
-207936
-737280
-8748

query I rowsort
SELECT - col1 * col0 AS col1 FROM tab1 WHERE NOT - col0 * col1 + col2 * + col1 < col2
----
-1040
-78

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

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

query I rowsort
SELECT DISTINCT - col2 * + col2 - col2 * + col2 AS col1 FROM tab2
----
-1352
-1458
-2888

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

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

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

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

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

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

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

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

query I rowsort
SELECT col2 + col0 + tab0.col0 * + col0 FROM tab0
----
1261
633
8092

query III rowsort
SELECT ALL * FROM tab2 WHERE - col2 >= NULL
----

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

query I rowsort
SELECT DISTINCT + col2 FROM tab1 WHERE NULL < + col0
----

query I rowsort
SELECT DISTINCT + col0 * col0 - col0 AS col1 FROM tab1
----
4032
6
6320

query I rowsort
SELECT + col1 + + col2 + col1 * col1 AS col1 FROM tab0
----
7515
8454
9507

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

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

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

skipif mysql # not compatible
query I rowsort label-801
SELECT cor0.col2 / col1 FROM tab2 cor0
----
0
0
2

query I rowsort
SELECT - 89 + - tab1.col2 * 22 AS col0 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to 789d92a71232197268f6ad8f789a2b3e

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * col1 - col0 col2 FROM tab0
----
-132
-2862
-7551

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL <= - col2 / col2
----

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

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

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

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

query I rowsort
SELECT ALL cor0.col2 + col2 FROM tab1 cor0
----
108
114
192

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( col0 * col1 ) NOT IN ( col0 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-810
SELECT + col1 * + col2 + col1 DIV col0 FROM tab0
----
2841
7463
99

skipif mysql # not compatible
query I rowsort label-810
SELECT + col1 * + col2 + col1 / col0 FROM tab0
----
2841
7463
99

query I rowsort
SELECT DISTINCT - col0 * col0 * col2 + col2 + col0 AS col1 FROM tab2
----
-1289
-158080
-237041

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

query I rowsort
SELECT - tab0.col2 FROM tab0 WHERE NULL < NULL
----

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

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

query I rowsort
SELECT ALL col2 + col2 * col2 * + col2 AS col0 FROM tab0
----
2
35970
551450

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

query I rowsort
SELECT DISTINCT - col0 + + col0 + tab2.col2 FROM tab2
----
26
27
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-819
SELECT - col2 - col0 DIV + col1 AS col2 FROM tab1
----
-102
-54
-63

skipif mysql # not compatible
query I rowsort label-819
SELECT - col2 - col0 / + col1 AS col2 FROM tab1
----
-102
-54
-63

query I rowsort
SELECT + tab1.col1 * - col1 + - col2 * col0 * + col2 FROM tab1 WHERE NULL >= NULL
----

query I rowsort
SELECT ALL + - 78 * col2 AS col2 FROM tab2 AS cor0
----
-2028
-2106
-2964

query I rowsort
SELECT ALL + 51 + - col1 * 22 * 97 FROM tab1 AS cor0
----
-21289
-27691
-55433

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - cor0.col1 + 15 col2 FROM tab0 AS cor0
----
7411
8296
9424

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

query I rowsort
SELECT DISTINCT - tab2.col1 + - cor0.col0 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to f319d3953aca5920d490aa8e1c5e5788

query I rowsort
SELECT + col0 + col0 * + 17 FROM tab0
----
1602
432
630

query I rowsort
SELECT + 49 + col1 FROM tab1
----
59
62
75

query I rowsort
SELECT col2 * col2 + 72 FROM tab2
----
1516
748
801

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

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

query I rowsort
SELECT - 65 AS col0 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 4ca93c42a91c7dff917e7b7090ba9e57

query I rowsort
SELECT ALL + col0 + col0 + - 28 AS col2 FROM tab2
----
-14
128
130

onlyif mysql # use DIV operator for integer division
query I rowsort label-834
SELECT DISTINCT + col2 * tab1.col2 + + tab1.col2 * col1 + col1 DIV col0 FROM tab1
----
10464
3819
4328

skipif mysql # not compatible
query I rowsort label-834
SELECT DISTINCT + col2 * tab1.col2 + + tab1.col2 * col1 + col1 / col0 FROM tab1
----
10464
3819
4328

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-836
SELECT col0 + + col2 - - col1 DIV col0 col1 FROM tab1
----
121
176
65

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-836
SELECT col0 + + col2 - - col1 / col0 col1 FROM tab1
----
121
176
65

onlyif mysql # use DIV operator for integer division
query I rowsort label-837
SELECT DISTINCT tab1.col2 * + tab1.col0 - col1 DIV col2 AS col2 FROM tab1
----
162
3648
7680

skipif mysql # not compatible
query I rowsort label-837
SELECT DISTINCT tab1.col2 * + tab1.col0 - col1 / col2 AS col2 FROM tab1
----
162
3648
7680

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

query I rowsort
SELECT ALL col1 + 7 FROM tab0
----
104
93
98

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

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

query I rowsort
SELECT + col2 * + 13 FROM tab2
----
338
351
494

skipif mysql # not compatible
query I rowsort
SELECT ALL - CAST ( - ( + col0 ) AS REAL ) * col1 FROM tab2 AS cor0
----
1343
217
4602

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

query I rowsort
SELECT DISTINCT - ( - 48 ) + col2 AS col0 FROM tab0 cor0
----
130
49
81

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

query I rowsort
SELECT DISTINCT - col1 * - 87 * + col0 AS col2 FROM tab1 AS cor0
----
55680
6786
90480

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 83 * ( col2 + col1 ) col2 FROM tab0 AS cor0
----
14359
8134
9877

query I rowsort
SELECT - 64 + + col0 AS col2 FROM tab0 AS cor0
----
-29
-40
25

query I rowsort
SELECT ALL + 87 + ( col1 ) AS col1 FROM tab2 AS cor0
----
104
118
146

onlyif mysql # use DIV operator for integer division
query I rowsort label-852
SELECT DISTINCT + 86 DIV 23 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-852
SELECT DISTINCT + 86 / 23 FROM tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT 49 + ( - col1 ) FROM tab0 cor0
----
-37
-42
-48

onlyif mysql # use DIV operator for integer division
query I rowsort label-854
SELECT - col1 DIV + 33 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-854
SELECT - col1 / + 33 FROM tab2 AS cor0
----
-1
0
0

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

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

query I rowsort
SELECT ALL - + 13 + 54 AS col2 FROM tab1 AS cor0
----
41
41
41

onlyif mysql # use DIV operator for integer division
query I rowsort label-858
SELECT ( col1 ) + + col2 DIV col1 AS col1 FROM tab1 AS cor0
----
15
20
28

skipif mysql # not compatible
query I rowsort label-858
SELECT ( col1 ) + + col2 / col1 AS col1 FROM tab1 AS cor0
----
15
20
28

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-860
SELECT cor0.col1 DIV - col2 + + col2 * col1 + col2 * - col2 AS col2 FROM tab0 cor0
----
-1
1747
737

skipif mysql # not compatible
query I rowsort label-860
SELECT cor0.col1 / - col2 + + col2 * col1 + col2 * - col2 AS col2 FROM tab0 cor0
----
-1
1747
737

query I rowsort
SELECT - col2 + + col0 * col2 + col1 * col1 FROM tab2 cor0
----
1123
3253
5483

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

skipif mysql # not compatible
query I rowsort label-862
SELECT col1 + + col1 + - cor0.col2 / col0 FROM tab0 AS cor0
----
171
182
194

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 37 + - col0 col1 FROM tab1
----
-101
-117
-40

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - col0 ) * col1 col0 FROM tab2
----
1343
217
4602

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-870
SELECT DISTINCT + - col0 * col2 * - 79 + col0 DIV + cor0.col1 AS col2 FROM tab2 AS cor0
----
14931
160213
237162

skipif mysql # not compatible
query I rowsort label-870
SELECT DISTINCT + - col0 * col2 * - 79 + col0 / + cor0.col1 AS col2 FROM tab2 AS cor0
----
14931
160213
237162

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 - 89 * - ( - cor0.col2 * col0 ) col2 FROM tab0 AS cor0
----
-3114
-649440
-70455

onlyif mysql # use DIV operator for integer division
query I rowsort label-872
SELECT ALL - col2 + - col0 * ( col1 ) DIV + cor0.col0 FROM tab1 AS cor0
----
-109
-67
-80

skipif mysql # not compatible
query I rowsort label-872
SELECT ALL - col2 + - col0 * ( col1 ) / + cor0.col0 FROM tab1 AS cor0
----
-109
-67
-80

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

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

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

query I rowsort
SELECT ALL + col1 - col1 * col0 AS col0 FROM tab0 cor0
----
-1978
-3298
-8008

query I rowsort
SELECT DISTINCT col2 * - ( - col2 ) FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT DISTINCT col2 * 76 + col2 * - col0 * col2 FROM tab1 AS cor0
----
-203604
-4644
-729984

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

query I rowsort
SELECT ALL + + col0 * 33 FROM tab0 AS cor0
----
1155
2937
792

query I rowsort
SELECT cor0.col0 * 95 FROM tab1 AS cor0
----
285
6080
7600

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + col0 * - 81 col2 FROM tab0 AS cor0
----
-1911
-2834
-7127

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col2 * col2 + col2 col2 FROM tab1 cor0
----
-2862
-3192
-9120

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

query I rowsort
SELECT + col0 * 63 AS col2 FROM tab2
----
441
4914
4977

query I rowsort
SELECT + col1 + 35 * col1 FROM tab0 AS cor0
----
3096
3276
3492

query I rowsort
SELECT col2 * 27 AS col2 FROM tab1 AS cor0
----
1458
1539
2592

query I rowsort
SELECT - 15 * 58 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 4609e67dba0568ce0bd06f1dc11c86ee

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

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

query I rowsort
SELECT DISTINCT - ( 43 ) * col0 AS col1 FROM tab1 cor0
----
-129
-2752
-3440

query I rowsort
SELECT ALL - + 13 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e95f5f4bd0f480397cced5f5e8a23792

query I rowsort
SELECT + 88 * col1 * - 34 AS col2 FROM tab2 AS cor0
----
-176528
-50864
-92752

query I rowsort
SELECT - 47 AS col2 FROM tab2, tab2 AS cor0, tab1 cor1
----
27 values hashing to a4d3a02c376c52ddb0a38a801f7b50d5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17

query I rowsort
SELECT 31 * - col0 FROM tab2 AS cor0
----
-217
-2418
-2449

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

query I rowsort
SELECT DISTINCT 14 * - col0 FROM tab0
----
-1246
-336
-490

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

query I rowsort
SELECT 3 * ( col2 ) FROM tab2
----
114
78
81

query I rowsort
SELECT 36 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 4d1892e880125dc90345721151acb22c

query I rowsort
SELECT + 15 * + col1 FROM tab2
----
255
465
885

query I rowsort
SELECT + 73 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 3933a906d17a820ccf95467e2206df8f

query I rowsort
SELECT ALL 75 FROM tab0 cor0
----
75
75
75

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

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

query I rowsort
SELECT ALL 79 * col0 AS col1 FROM tab0
----
1896
2765
7031

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 31 * col0 col1 FROM tab2 AS cor0
----
-217
-2418
-2449

query I rowsort
SELECT + 72 + - 66 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 + col2 + col0 * + 64 col1 FROM tab2 AS cor0
----
468
4940
5015

onlyif mysql # use DIV operator for integer division
query I rowsort label-911
SELECT col0 * col0 DIV + col1 + tab0.col2 * + col2 FROM tab0
----
1095
13
6811

skipif mysql # not compatible
query I rowsort label-911
SELECT col0 * col0 / + col1 + tab0.col2 * + col2 FROM tab0
----
1095
13
6811

query I rowsort
SELECT + + col2 + + 26 FROM tab2 cor0
----
52
53
64

query I rowsort
SELECT ALL tab1.col0 AS col1 FROM tab0, tab2, tab2 AS cor0, tab1
----
81 values hashing to e28bf7f922650ca423ade3642ce0285b

query I rowsort
SELECT col2 + 42 * 52 AS col1 FROM tab2 AS cor0
----
2210
2211
2222

query I rowsort
SELECT - col0 * - 27 + ( - cor0.col2 ) + col1 FROM tab1 AS cor0
----
1681
2077
53

query I rowsort
SELECT ALL 90 - + col2 FROM tab1
----
-6
33
36

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

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

query I rowsort
SELECT ALL ( + 39 ) FROM tab1
----
39
39
39

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT CAST ( - ( col1 ) AS REAL ) col2 FROM tab1
----
-10
-13
-26

query I rowsort
SELECT + ( col0 ) + + cor0.col2 * + 0 AS col0 FROM tab1 AS cor0
----
3
64
80

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + 51 - col2 col2 FROM tab0 cor0
----
-1257
-1786
-4621

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

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-927
SELECT - ( 93 ) DIV tab1.col1 AS col0 FROM tab1
----
-3
-7
-9

skipif mysql # not compatible
query I rowsort label-927
SELECT - ( 93 ) / tab1.col1 AS col0 FROM tab1
----
-3
-7
-9

onlyif mysql # use DIV operator for integer division
query I rowsort label-928
SELECT DISTINCT + + col0 DIV - cor0.col0 + + 48 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-928
SELECT DISTINCT + + col0 / - cor0.col0 + + 48 FROM tab1 AS cor0
----
47

query I rowsort
SELECT DISTINCT - col2 * col2 + + col1 FROM tab2 AS cor0
----
-1427
-617
-698

onlyif mysql # use DIV operator for integer division
query I rowsort label-930
SELECT DISTINCT 73 * + col0 + + col2 DIV + col0 FROM tab2 AS cor0
----
514
5694
5767

skipif mysql # not compatible
query I rowsort label-930
SELECT DISTINCT 73 * + col0 + + col2 / + col0 FROM tab2 AS cor0
----
514
5694
5767

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-931
SELECT ALL - + ( - col0 ) * + CAST( 88 * - col0 AS SIGNED ) FROM tab0 AS cor0
----
-107800
-50688
-697048

skipif mysql # not compatible
query I rowsort label-931
SELECT ALL - + ( - col0 ) * + CAST ( 88 * - col0 AS INTEGER ) FROM tab0 AS cor0
----
-107800
-50688
-697048

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

query I rowsort
SELECT DISTINCT - ( cor0.col1 ) * + col2 + ( col1 * - col2 ) FROM tab1 AS cor0
----
-1140
-2496
-2808

query I rowsort
SELECT DISTINCT col0 * - 44 AS col2 FROM tab0 AS cor0
----
-1056
-1540
-3916

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * - col2 - col0 col0 FROM tab2 AS cor0
----
-196
-2106
-3081

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

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

query I rowsort
SELECT ALL ( col2 ) + + col2 * + col2 * - col2 AS col2 FROM tab1 AS cor0
----
-157410
-185136
-884640

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col2 - 40 col0 FROM tab0
----
-39
-7
42

query I rowsort
SELECT cor1.col1 AS col2 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

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

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

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

query I rowsort
SELECT DISTINCT 1 * - ( col0 ) + col1 AS col0 FROM tab1
----
-54
-67
23

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-945
SELECT + col0 * - tab0.col2 + tab0.col0 * - CAST( + col1 * tab0.col2 AS SIGNED ) col0 FROM tab0
----
-3430
-671416
-68904

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-945
SELECT + col0 * - tab0.col2 + tab0.col0 * - CAST ( + col1 * tab0.col2 AS INTEGER ) col0 FROM tab0
----
-3430
-671416
-68904

query I rowsort
SELECT ALL col2 * 34 AS col0 FROM tab0
----
1122
2788
34

query I rowsort
SELECT DISTINCT - 84 + tab0.col1 AS col1 FROM tab0, tab2 AS cor0
----
13
2
7

query I rowsort
SELECT ALL 39 * cor0.col1 AS col1 FROM tab2 AS cor0
----
1209
2301
663

query I rowsort
SELECT col0 * - 27 AS col2 FROM tab0
----
-2403
-648
-945

query I rowsort
SELECT ALL + - col1 * ( 23 ) FROM tab0 AS cor0
----
-1978
-2093
-2231

query I rowsort
SELECT ALL + + col2 * - col2 * col2 AS col0 FROM tab2 AS cor0
----
-17576
-19683
-54872

query I rowsort
SELECT + col1 * - 47 FROM tab2 AS cor0
----
-1457
-2773
-799

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-956
SELECT ALL - col1 DIV 95 AS col1 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-956
SELECT ALL - col1 / 95 AS col1 FROM tab0 AS cor0
----
-1
0
0

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

query I rowsort
SELECT + col1 * 87 + col0 FROM tab0 AS cor0
----
7506
8006
8474

query I rowsort
SELECT DISTINCT + col0 + - 75 FROM tab1 AS cor0
----
-11
-72
5

onlyif mysql # use DIV operator for integer division
query I rowsort label-960
SELECT col1 * + tab1.col1 + - col2 DIV col0 + 1 * col0 * - col2 AS col1 FROM tab1
----
-3548
-7512
496

skipif mysql # not compatible
query I rowsort label-960
SELECT col1 * + tab1.col1 + - col2 / col0 + 1 * col0 * - col2 AS col1 FROM tab1
----
-3548
-7512
496

query I rowsort
SELECT ALL - col0 + + ( + col0 ) * + col0 + + ( + col1 ) * + tab2.col0 * + ( col0 ) FROM tab2
----
112259
1561
364962

query I rowsort
SELECT col2 + col2 + 71 FROM tab2
----
123
125
147

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + + 88 * - col2 + col0 col2 FROM tab2 AS cor0
----
-2132
-2362
-3186

query I rowsort
SELECT DISTINCT - + col2 + - 65 FROM tab2 AS cor0
----
-103
-91
-92

onlyif mysql # use DIV operator for integer division
query I rowsort label-965
SELECT ALL - + col0 DIV 17 + - 98 AS col1 FROM tab1 AS cor0
----
-101
-102
-98

skipif mysql # not compatible
query I rowsort label-965
SELECT ALL - + col0 / 17 + - 98 AS col1 FROM tab1 AS cor0
----
-101
-102
-98

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

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

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

skipif mysql # not compatible
query I rowsort
SELECT CAST ( - col0 AS REAL ) * col1 AS col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT ALL - cor0.col1 * + 58 AS col0 FROM tab2 AS cor0
----
-1798
-3422
-986

query I rowsort
SELECT + + 18 * cor0.col0 - - col1 AS col0 FROM tab2 AS cor0
----
1439
1463
157

onlyif mysql # use DIV operator for integer division
query I rowsort label-972
SELECT DISTINCT col1 DIV + 20 AS col1 FROM tab2 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-972
SELECT DISTINCT col1 / + 20 AS col1 FROM tab2 AS cor0
----
0
1
2

query I rowsort
SELECT DISTINCT + col1 * - 86 AS col1 FROM tab2 AS cor0
----
-1462
-2666
-5074

query I rowsort
SELECT - 15 * - col2 * + cor0.col1 FROM tab0 AS cor0
----
111930
1455
42570

query I rowsort
SELECT ALL + 98 * col2 FROM tab0
----
3234
8036
98

query I rowsort
SELECT DISTINCT - + ( - ( + col1 ) ) * + 6 AS col0 FROM tab1 AS cor0
----
156
60
78

query I rowsort
SELECT - + 49 * col0 * - col1 AS col1 FROM tab2 AS cor0
----
10633
225498
65807

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-979
SELECT - CAST( - col2 AS SIGNED ) + + col1 DIV ( - col0 ) AS col1 FROM tab2 AS cor0
----
23
26
38

skipif mysql # not compatible
query I rowsort label-979
SELECT - CAST ( - col2 AS INTEGER ) + + col1 / ( - col0 ) AS col1 FROM tab2 AS cor0
----
23
26
38

query I rowsort
SELECT DISTINCT + 82 * col2 - + 58 FROM tab2 AS cor0
----
2074
2156
3058

query I rowsort
SELECT - + ( 19 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 339c9d62143bf2f7566b89a1b56eeeb4

query I rowsort
SELECT ALL col0 + - col1 + + col2 * col0 FROM tab2 AS cor0
----
165
2047
3064

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-983
SELECT + ( tab1.col0 ) + CAST( col0 AS SIGNED ) FROM tab1
----
128
160
6

skipif mysql # not compatible
query I rowsort label-983
SELECT + ( tab1.col0 ) + CAST ( col0 AS INTEGER ) FROM tab1
----
128
160
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor1.col0 col0 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

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

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

query I rowsort
SELECT DISTINCT - 73 + col1 + - col1 AS col1 FROM tab1 AS cor0
----
-73

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

query I rowsort
SELECT ALL + ( - col2 ) + + 60 AS col1 FROM tab2 AS cor0
----
22
33
34

query I rowsort
SELECT ALL col1 + + 43 * col2 AS col1 FROM tab2 AS cor0
----
1177
1192
1651

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-992
SELECT + CAST( - col1 AS SIGNED ) * + col0 * col1 FROM tab2
----
-22831
-271518
-6727

skipif mysql # not compatible
query I rowsort label-992
SELECT + CAST ( - col1 AS INTEGER ) * + col0 * col1 FROM tab2
----
-22831
-271518
-6727

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

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

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

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

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

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 + - col0 + + col1 AS col1 FROM tab0 AS cor0
----
2
62
62

query I rowsort
SELECT 32 + col0 + col1 FROM tab1 AS cor0
----
106
125
61

onlyif mysql # use DIV operator for integer division
query I rowsort label-999
SELECT DISTINCT - col1 * col1 + + col0 + + col0 DIV - col2 AS col0 FROM tab0 AS cor0
----
-7372
-8193
-9409

skipif mysql # not compatible
query I rowsort label-999
SELECT DISTINCT - col1 * col1 + + col0 + + col0 / - col2 AS col0 FROM tab0 AS cor0
----
-7372
-8193
-9409

query I rowsort
SELECT + col0 + col1 + 83 AS col2 FROM tab0 AS cor0
----
193
215
263

query I rowsort
SELECT col0 * col0 + - cor0.col1 + 5 AS col0 FROM tab1 AS cor0
----
-12
4091
6392

query I rowsort
SELECT + + 28 * col2 AS col0 FROM tab0 AS cor0
----
2296
28
924

onlyif mysql # use DIV operator for integer division
query I rowsort label-1003
SELECT ALL - - col0 DIV - ( ( col1 ) ) + CAST( col0 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
7
75
77

skipif mysql # not compatible
query I rowsort label-1003
SELECT ALL - - col0 / - ( ( col1 ) ) + CAST ( col0 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
7
75
77

onlyif mysql # use DIV operator for integer division
query I rowsort label-1004
SELECT + col0 DIV + 59 + col0 * col1 FROM tab1 AS cor0
----
1041
641
78

skipif mysql # not compatible
query I rowsort label-1004
SELECT + col0 / + 59 + col0 * col1 FROM tab1 AS cor0
----
1041
641
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-1005
SELECT DISTINCT col0 + col2 DIV - col1 FROM tab2 AS cor0
----
7
77
78

skipif mysql # not compatible
query I rowsort label-1005
SELECT DISTINCT col0 + col2 / - col1 FROM tab2 AS cor0
----
7
77
78

query I rowsort
SELECT + col2 - ( - col2 ) * - col1 * - cor0.col2 FROM tab0 cor0
----
611966
93687
98

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

skipif mysql # not compatible
query I rowsort label-1007
SELECT col2 + CAST ( - 91 AS INTEGER ) FROM tab2 AS cor0
----
-53
-64
-65

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

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

query I rowsort
SELECT col2 * 94 FROM tab0 AS cor0
----
3102
7708
94

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

skipif mysql # not compatible
query I rowsort label-1011
SELECT + col0 * - col1 + + col1 + CAST ( + col2 + + col1 AS INTEGER ) FROM tab0 AS cor0
----
-1859
-3200
-7835

query I rowsort
SELECT + - cor0.col2 * + 15 AS col1 FROM tab2 AS cor0
----
-390
-405
-570

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

query I rowsort
SELECT + col0 * 57 * col0 AS col1 FROM tab0
----
32832
451497
69825

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1016
SELECT DISTINCT col1 * - col0 + col0 DIV + col0 AS col2 FROM tab1 AS cor0
----
-1039
-639
-77

skipif mysql # not compatible
query I rowsort label-1016
SELECT DISTINCT col1 * - col0 + col0 / + col0 AS col2 FROM tab1 AS cor0
----
-1039
-639
-77

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1019
SELECT DISTINCT + + 42 DIV 37 + + col0 + + cor0.col1 col0 FROM tab1 AS cor0
----
30
75
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1019
SELECT DISTINCT + + 42 / 37 + + col0 + + cor0.col1 col0 FROM tab1 AS cor0
----
30
75
94

query I rowsort
SELECT + + 47 - col2 AS col0 FROM tab1 AS cor0
----
-10
-49
-7

query I rowsort
SELECT - - 50 + col1 FROM tab2 AS cor0
----
109
67
81

query I rowsort
SELECT - ( 5 ) + - col0 FROM tab1 AS cor0
----
-69
-8
-85

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

query I rowsort
SELECT DISTINCT - col0 * + 45 + - col1 + - col0 * - col1 * - col0 FROM tab0 AS cor0
----
-120497
-50702
-724907

query I rowsort
SELECT 87 FROM tab0, tab1 AS cor0, tab1 cor1
----
27 values hashing to 8661ffbd1a72897c495405c53b816e50

onlyif mysql # use DIV operator for integer division
query I rowsort label-1026
SELECT col0 DIV CAST( col2 AS SIGNED ) AS col0 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-1026
SELECT col0 / CAST ( col2 AS INTEGER ) AS col0 FROM tab1
----
0
0
1

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

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

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

skipif mysql # not compatible
query I rowsort label-1029
SELECT CAST ( + col2 AS INTEGER ) * - col0 AS col0 FROM tab0 AS cor0
----
-35
-7298
-792

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

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

query I rowsort
SELECT - - 69 - + col2 AS col1 FROM tab0 AS cor0
----
-13
36
68

query I rowsort
SELECT ALL + ( - 88 ) * col2 AS col1 FROM tab1 AS cor0
----
-4752
-5016
-8448

query I rowsort
SELECT + + 68 + col2 AS col0 FROM tab2 AS cor0
----
106
94
95

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

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

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

query I rowsort
SELECT DISTINCT 24 * + tab0.col2 + col0 * col0 AS col1 FROM tab0
----
1249
1368
9889

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

skipif mysql # not compatible
query I rowsort label-1039
SELECT ALL ( - col1 ) * + CAST ( col1 + col0 * col1 AS INTEGER ) FROM tab1 AS cor0
----
-13689
-2704
-6500

query I rowsort
SELECT + + 31 * col2 + col1 * col0 + col0 FROM tab1 AS cor0
----
1755
2471
4096

query I rowsort
SELECT - ( 19 ) + - col2 FROM tab1 AS cor0
----
-115
-73
-76

onlyif mysql # use DIV operator for integer division
query I rowsort label-1042
SELECT ALL col1 DIV + col0 + + tab2.col0 * - CAST( + ( - col1 ) AS SIGNED ) * col0 AS col2 FROM tab2
----
106097
1523
358956

skipif mysql # not compatible
query I rowsort label-1042
SELECT ALL col1 / + col0 + + tab2.col0 * - CAST ( + ( - col1 ) AS INTEGER ) * col0 AS col2 FROM tab2
----
106097
1523
358956

query I rowsort
SELECT ALL - + col2 * - 8 AS col2 FROM tab2 AS cor0
----
208
216
304

query I rowsort
SELECT ( + tab1.col0 ) AS col0 FROM tab1
----
3
64
80

query I rowsort
SELECT DISTINCT - col1 - 29 FROM tab1 AS cor0
----
-39
-42
-55

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

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

query I rowsort
SELECT ALL + 9 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b

query I rowsort
SELECT 90 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 96f7a90428db93f472e0d219bab64853

query I rowsort
SELECT ALL - col2 * - 38 - col2 * col1 FROM tab0
----
-1584
-4346
-59

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

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

query I rowsort
SELECT - col0 + 21 + col2 * - col2 * tab2.col0 FROM tab2
----
-114134
-5089
-52785

query I rowsort
SELECT DISTINCT tab1.col0 * + 16 - + 14 AS col1 FROM tab1
----
1010
1266
34

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

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

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1057
SELECT col1 * CAST( 98 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
1274
2548
980

skipif mysql # not compatible
query I rowsort label-1057
SELECT col1 * CAST ( 98 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
1274
2548
980

onlyif mysql # use DIV operator for integer division
query I rowsort label-1058
SELECT DISTINCT - + col1 + - col2 DIV - 13 FROM tab2 AS cor0
----
-15
-29
-57

skipif mysql # not compatible
query I rowsort label-1058
SELECT DISTINCT - + col1 + - col2 / - 13 FROM tab2 AS cor0
----
-15
-29
-57

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

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

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

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

query I rowsort
SELECT ALL - - 69 + - col0 FROM tab0 AS cor0
----
-20
34
45

query I rowsort
SELECT DISTINCT + - 8 + - col1 * - ( + 84 ) FROM tab0 AS cor0
----
7216
7636
8140

query I rowsort
SELECT - col1 - col1 * + 68 AS col1 FROM tab2 AS cor0
----
-1173
-2139
-4071

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1065
SELECT + + 5 * + col2 + col0 DIV + 75 AS col2 FROM tab0 AS cor0
----
165
411
5

skipif mysql # not compatible
query I rowsort label-1065
SELECT + + 5 * + col2 + col0 / + 75 AS col2 FROM tab0 AS cor0
----
165
411
5

query I rowsort
SELECT ALL + + 98 + col2 AS col0 FROM tab0 AS cor0
----
131
180
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 * + 59 col1 FROM tab2 cor0
----
-413
-4602
-4661

query I rowsort
SELECT + 54 FROM tab2, tab0 AS cor0, tab2 cor1
----
27 values hashing to 81150d59d6c3fc48b4ef5a4a5495bc7a

query I rowsort
SELECT DISTINCT - col2 + + 6 * - col0 FROM tab0 cor0
----
-177
-211
-616

query I rowsort
SELECT - 12 * col0 AS col0 FROM tab1
----
-36
-768
-960

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 24 + col0 col1 FROM tab2 cor0
----
102
103
31

onlyif mysql # use DIV operator for integer division
query I rowsort label-1073
SELECT DISTINCT + - col1 DIV 5 + + col0 + col1 AS col0 FROM tab1 AS cor0
----
24
72
91

skipif mysql # not compatible
query I rowsort label-1073
SELECT DISTINCT + - col1 / 5 + + col0 + col1 AS col0 FROM tab1 AS cor0
----
24
72
91

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1074
SELECT ALL + CAST( NULL AS SIGNED ) * col0 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-1074
SELECT ALL + CAST ( NULL AS INTEGER ) * col0 col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 + 93 AS col1 FROM tab2
----
110
124
152

query I rowsort
SELECT + cor0.col1 + + cor0.col0 FROM tab1, tab0 AS cor0
----
9 values hashing to f65167375aa80cc8b3f3f8987d2662a3

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

query I rowsort
SELECT DISTINCT - col2 + - 30 AS col1 FROM tab2 cor0
----
-56
-57
-68

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

query I rowsort
SELECT ALL - - cor0.col0 * - col0 - + col0 FROM tab1 AS cor0
----
-12
-4160
-6480

query I rowsort
SELECT DISTINCT - col2 + col2 * + col0 + + 32 FROM tab1 AS cor0
----
140
3623
7616

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

query I rowsort
SELECT ALL col1 + + col1 * + col2 * col0 - col0 FROM tab2 AS cor0
----
119633
50972
5883

query I rowsort
SELECT ALL - - col0 + - cor0.col2 * ( col2 * - col0 ) FROM tab0 cor0
----
26160
598525
70

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

query I rowsort
SELECT ( 12 ) FROM tab0
----
12
12
12

query I rowsort
SELECT col1 * + col0 + - ( + 8 ) FROM tab2
----
1335
209
4594

query I rowsort
SELECT DISTINCT + tab2.col0 * - 33 AS col1 FROM tab2, tab2 AS cor0
----
-231
-2574
-2607

query I rowsort
SELECT ALL - tab0.col0 AS col1 FROM tab0, tab2, tab0 AS cor0, tab1
----
81 values hashing to 26e45cd9fe71a2b90a8bdef20c88e70d

skipif mysql # not compatible
query I rowsort
SELECT tab1.col1 * - 18 + + ( + col1 ) + CAST ( - col1 AS REAL ) * - col2 FROM tab1
----
1027
400
962

query I rowsort
SELECT + col1 + - ( col2 * + col0 ) FROM tab1
----
-136
-3638
-7667

query I rowsort
SELECT DISTINCT + col2 + 65 + col2 * col2 FROM tab0
----
1187
67
6871

query I rowsort
SELECT - col2 * + 14 FROM tab1
----
-1344
-756
-798

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 + col1 * - col0 * col0 col2 FROM tab1 AS cor0
----
-208
-40950
-83187

query I rowsort
SELECT col2 * ( 13 * col1 ) AS col1 FROM tab0
----
1261
36894
97006

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

query I rowsort
SELECT ALL - cor1.col1 AS col2 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2

query I rowsort
SELECT cor0.col0 + + 30 FROM tab0 AS cor0
----
119
54
65

query I rowsort
SELECT ALL - - 37 * - col0 FROM tab1 AS cor0
----
-111
-2368
-2960

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

query I rowsort
SELECT - + 45 * cor0.col2 AS col1 FROM tab0 AS cor0
----
-1485
-3690
-45

query I rowsort
SELECT - 54 * + col0 * col1 AS col0 FROM tab1 AS cor0
----
-34560
-4212
-56160

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

query I rowsort
SELECT ALL + - 47 + col1 AS col1 FROM tab1 AS cor0
----
-21
-34
-37

query I rowsort
SELECT DISTINCT + + 74 * col2 AS col1 FROM tab0 AS cor0
----
2442
6068
74

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

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1109
SELECT - CAST( NULL AS SIGNED ) + - ( cor1.col1 ) AS col0 FROM tab0, tab1 AS cor0, tab1, tab0 AS cor1
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

skipif mysql # not compatible
query I rowsort label-1109
SELECT - CAST ( NULL AS INTEGER ) + - ( cor1.col1 ) AS col0 FROM tab0, tab1 AS cor0, tab1, tab0 AS cor1
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

query I rowsort
SELECT DISTINCT + 66 * - 40 AS col2 FROM tab1, tab1 AS cor0, tab2, tab2 AS cor1
----
-2640

onlyif mysql # use DIV operator for integer division
query I rowsort label-1111
SELECT - + col0 * col0 DIV + 92 FROM tab2 AS cor0
----
-66
-67
0

skipif mysql # not compatible
query I rowsort label-1111
SELECT - + col0 * col0 / + 92 FROM tab2 AS cor0
----
-66
-67
0

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

query I rowsort
SELECT + cor0.col0 * + cor0.col2 + - ( col2 + 26 ) FROM tab2 AS cor0
----
136
1976
2938

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

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

query I rowsort
SELECT + 23 + + col0 FROM tab0 cor0
----
112
47
58

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1118
SELECT ALL - CAST( 6 AS SIGNED ) FROM tab0
----
-6
-6
-6

skipif mysql # not compatible
query I rowsort label-1118
SELECT ALL - CAST ( 6 AS INTEGER ) FROM tab0
----
-6
-6
-6

query I rowsort
SELECT + - 9 * 90 AS col1 FROM tab2 AS cor0
----
-810
-810
-810

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1121
SELECT col1 * col1 DIV ( col1 ) + col2 - + CAST( col0 AS SIGNED ) * + col2 AS col0 FROM tab2 AS cor0
----
-131
-1943
-2947

skipif mysql # not compatible
query I rowsort label-1121
SELECT col1 * col1 / ( col1 ) + col2 - + CAST ( col0 AS INTEGER ) * + col2 AS col0 FROM tab2 AS cor0
----
-131
-1943
-2947

query I rowsort
SELECT 6 * col0 * col1 AS col0 FROM tab2 AS cor0
----
1302
27612
8058

query I rowsort
SELECT - 57 + col0 FROM tab2
----
-50
21
22

query I rowsort
SELECT DISTINCT - - 50 - 8 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
42

query I rowsort
SELECT ALL 6 * - col2 AS col2 FROM tab0 AS cor0
----
-198
-492
-6

query I rowsort
SELECT DISTINCT - - 89 * col0 + + col0 * - 41 AS col2 FROM tab2 AS cor0
----
336
3744
3792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 48 - - col2 col0 FROM tab0 AS cor0
----
130
49
81

query I rowsort
SELECT - - 99 * - col1 AS col0 FROM tab2 AS cor0
----
-1683
-3069
-5841

onlyif mysql # use DIV operator for integer division
query I rowsort label-1129
SELECT + + col0 + col2 DIV + 6 AS col0 FROM tab2 AS cor0
----
11
82
85

skipif mysql # not compatible
query I rowsort label-1129
SELECT + + col0 + col2 / + 6 AS col0 FROM tab2 AS cor0
----
11
82
85

query I rowsort
SELECT DISTINCT - col1 * 36 AS col0 FROM tab0 AS cor0
----
-3096
-3276
-3492

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

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

skipif mysql # not compatible
query I rowsort label-1132
SELECT - - col1 + - col0 / 16 AS col2 FROM tab1 AS cor0
----
26
6
8

query I rowsort
SELECT DISTINCT ( 43 ) FROM tab1, tab2 cor0
----
43

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

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

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

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

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

query I rowsort
SELECT + + 56 FROM tab0 cor0
----
56
56
56

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

skipif mysql # not compatible
query I rowsort
SELECT + CAST ( - ( col0 ) AS INTEGER ) + CAST ( + col0 AS REAL ) AS col2 FROM tab0 AS cor0
----
0
0
0

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

query I rowsort
SELECT + + col2 * col2 + - cor0.col2 * + 8 AS col2 FROM tab1 cor0
----
2484
2793
8448

query I rowsort
SELECT ALL - 36 AS col2 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 3bcd07d22b62d2042b499253b1c13d9e

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

query I rowsort
SELECT ALL - - 1 + col0 + - col0 AS col1 FROM tab1 AS cor0
----
1
1
1

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1146
SELECT + 38 * col0 DIV col1 + col1 * col2 DIV col2 col2 FROM tab0
----
110
128
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1146
SELECT + 38 * col0 / col1 + col1 * col2 / col2 col2 FROM tab0
----
110
128
96

query I rowsort
SELECT 17 - col0 FROM tab1
----
-47
-63
14

query I rowsort
SELECT - col2 * 16 + 70 AS col0 FROM tab0
----
-1242
-458
54

query I rowsort
SELECT - col0 + 95 AS col2 FROM tab0 AS cor0
----
6
60
71

query I rowsort
SELECT ALL + col1 * col1 * cor0.col2 AS col2 FROM tab0 AS cor0
----
244068
679042
9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-1151
SELECT DISTINCT - - col1 + - col0 DIV 74 FROM tab0 AS cor0
----
86
90
97

skipif mysql # not compatible
query I rowsort label-1151
SELECT DISTINCT - - col1 + - col0 / 74 FROM tab0 AS cor0
----
86
90
97

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

query I rowsort
SELECT ALL - + col2 + + 34 FROM tab2 AS cor0
----
-4
7
8

query I rowsort
SELECT cor0.col1 * + col2 * col0 + - col1 * - col0 + - col2 AS col2 FROM tab0 AS cor0
----
672135
6789
70143

query I rowsort
SELECT DISTINCT 35 + - col2 * - col0 * + col1 FROM tab2
----
119687
51069
5894

onlyif mysql # use DIV operator for integer division
query I rowsort label-1156
SELECT + 9 DIV - 83 AS col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1156
SELECT + 9 / - 83 AS col2 FROM tab0
----
0
0
0

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

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

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

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

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

query I rowsort
SELECT ALL - + 59 + cor0.col1 FROM tab1 AS cor0
----
-33
-46
-49

onlyif mysql # use DIV operator for integer division
query I rowsort label-1162
SELECT - col0 DIV col2 + tab0.col1 AS col1 FROM tab0
----
62
86
90

skipif mysql # not compatible
query I rowsort label-1162
SELECT - col0 / col2 + tab0.col1 AS col1 FROM tab0
----
62
86
90

query I rowsort
SELECT DISTINCT - col0 + col0 * + col0 AS col2 FROM tab0
----
1190
552
7832

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

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

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

query I rowsort
SELECT ALL + cor0.col1 + - 22 FROM tab0 AS cor0
----
64
69
75

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

skipif mysql # not compatible
query I rowsort label-1168
SELECT ALL col1 / + col0 AS col0 FROM tab0 AS cor0
----
1
2
3

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

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

query I rowsort
SELECT col0 * - col2 * col0 AS col0 FROM tab1 AS cor0
----
-233472
-486
-614400

query I rowsort
SELECT ALL 3 * col0 + col1 FROM tab2
----
254
293
52

query I rowsort
SELECT DISTINCT ( col1 ) * col0 * + col2 + + col2 FROM tab0
----
3396
664200
68145

query I rowsort
SELECT - 11 * col2 + + col1 * tab2.col2 * col0 AS col1 FROM tab2
----
119366
50616
5562

query I rowsort
SELECT DISTINCT col1 + col2 * 87 AS col1 FROM tab1
----
4724
4969
8365

query I rowsort
SELECT tab2.col1 - col1 * - 92 FROM tab2
----
1581
2883
5487

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1177
SELECT DISTINCT + col0 + CAST( + 22 AS SIGNED ) AS col1 FROM tab2 cor0
----
100
101
29

skipif mysql # not compatible
query I rowsort label-1177
SELECT DISTINCT + col0 + CAST ( + 22 AS INTEGER ) AS col1 FROM tab2 cor0
----
100
101
29

query I rowsort
SELECT DISTINCT + - col1 + + 40 FROM tab2 AS cor0
----
-19
23
9

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

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

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

query I rowsort
SELECT ALL - cor1.col2 FROM tab0, tab0 AS cor0, tab2 cor1, tab1, tab0 AS cor2
----
243 values hashing to b98cc07e6d63e3c0583ed19f9e9ad2be

query I rowsort
SELECT - col1 + + 2 * 93 AS col0 FROM tab2 AS cor0
----
127
155
169

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 43 + - cor0.col0 * - cor0.col0 col0 FROM tab2 cor0
----
6127
6284
92

onlyif mysql # use DIV operator for integer division
query I rowsort label-1184
SELECT col2 DIV 9 FROM tab2 cor0
----
2
3
4

skipif mysql # not compatible
query I rowsort label-1184
SELECT col2 / 9 FROM tab2 cor0
----
2
3
4

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

skipif mysql # not compatible
query I rowsort label-1185
SELECT - - 33 * col0 + - CAST ( col1 AS INTEGER ) FROM tab1 AS cor0
----
2102
2627
73

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

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

query I rowsort
SELECT ALL 30 + col0 * + col1 - 63 AS col2 FROM tab0 AS cor0
----
2031
3362
8066

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * - col1 + - col1 * col0 col1 FROM tab1 AS cor0
----
-1280
-156
-2080

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1191
SELECT + 9 DIV - col0 + ( col1 ) * + col1 AS col2 FROM tab1 AS cor0
----
100
169
673

skipif mysql # not compatible
query I rowsort label-1191
SELECT + 9 / - col0 + ( col1 ) * + col1 AS col2 FROM tab1 AS cor0
----
100
169
673

query I rowsort
SELECT DISTINCT - 66 + 59 * + col0 AS col1 FROM tab2
----
347
4536
4595

query I rowsort
SELECT ALL + 34 + col1 * col0 AS col2 FROM tab2
----
1377
251
4636

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 26 col1 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to ede8226bb7e602e221f9d98345b4da37

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

query I rowsort
SELECT ALL + col2 + + 91 + col2 AS col0 FROM tab1
----
199
205
283

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

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

query I rowsort
SELECT ALL 13 + col0 FROM tab0 AS cor0
----
102
37
48

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

query I rowsort
SELECT DISTINCT - 60 AS col2 FROM tab2 cor0
----
-60

query I rowsort
SELECT - ( + cor0.col2 ) FROM tab2, tab0 AS cor0
----
9 values hashing to b5a4102107e5ebd26e341538f4fede1e

onlyif mysql # use DIV operator for integer division
query I rowsort label-1202
SELECT + 3 - - col1 DIV + ( cor0.col2 + + cor0.col0 ) FROM tab1 AS cor0
----
3
3
3

skipif mysql # not compatible
query I rowsort label-1202
SELECT + 3 - - col1 / + ( cor0.col2 + + cor0.col0 ) FROM tab1 AS cor0
----
3
3
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - col2 ) - ( + 27 ) col1 FROM tab0 AS cor0
----
-109
-28
-60

query I rowsort
SELECT - 80 + + col0 AS col2 FROM tab1 AS cor0
----
-16
-77
0

query I rowsort
SELECT DISTINCT - col0 + + col0 * - 48 FROM tab0 AS cor0
----
-1176
-1715
-4361

query I rowsort
SELECT DISTINCT - col2 * + col0 - 34 * - col0 FROM tab2 AS cor0
----
-316
49
624

onlyif mysql # use DIV operator for integer division
query I rowsort label-1207
SELECT ALL + col2 DIV - col0 FROM tab2 cor0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-1207
SELECT ALL + col2 / - col0 FROM tab2 cor0
----
-3
0
0

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

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

query I rowsort
SELECT ALL - + col2 + + 70 * col0 + - col1 AS col2 FROM tab1 AS cor0
----
130
4413
5491

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

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

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

query I rowsort
SELECT ALL + col2 - + tab2.col2 * - 62 FROM tab2
----
1638
1701
2394

query I rowsort
SELECT ALL + + 42 * col1 - col1 AS col1 FROM tab1 AS cor0
----
1066
410
533

query I rowsort
SELECT + 89 + cor0.col0 * - col0 FROM tab2 AS cor0
----
-5995
-6152
40

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

query I rowsort
SELECT ALL + 47 AS col0 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 3f991632e9c7c5142e1d80857cd10a2d

query I rowsort
SELECT - col0 * 74 FROM tab0
----
-1776
-2590
-6586

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col1 ) col0 FROM tab0
----
86
91
97

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

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

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

skipif mysql # not compatible
query I rowsort label-1224
SELECT CAST ( NULL AS REAL ) * col2 * + col1 - + col1 / - col1 AS col2 FROM tab1
----
NULL
NULL
NULL

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

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1228
SELECT tab2.col0 DIV 79 FROM tab2, tab1 cor0, tab1 AS cor1
----
27 values hashing to 953562d3ce2a62a1679a1ae0451294c6

skipif mysql # not compatible
query I rowsort label-1228
SELECT tab2.col0 / 79 FROM tab2, tab1 cor0, tab1 AS cor1
----
27 values hashing to 953562d3ce2a62a1679a1ae0451294c6

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

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

query I rowsort
SELECT ALL + col0 * + tab2.col0 AS col2 FROM tab2
----
49
6084
6241

query I rowsort
SELECT - ( col2 ) - + col0 * + ( tab0.col1 * - col2 ) AS col1 FROM tab0
----
3394
664036
68079

query I rowsort
SELECT ALL + + 40 AS col2 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to e4d10f7d6c34a281f524e45e82ebd2a0

query I rowsort
SELECT + ( + col0 ) * + col2 * + col2 + - col0 FROM tab1
----
207872
737200
8745

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

query I rowsort
SELECT - col2 + col0 * - col1 * + col0 AS col0 FROM tab2 AS cor0
----
-106135
-1546
-358982

query I rowsort
SELECT ALL - col0 + col1 * + ( 16 ) FROM tab0 AS cor0
----
1352
1367
1517

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

query I rowsort
SELECT ALL col0 + + col1 + col0 AS col1 FROM tab2
----
175
215
45

query I rowsort
SELECT + ( + 10 ) FROM tab1, tab0 cor0
----
9 values hashing to a47194429f3e0358a3aebffd5f050113

query I rowsort
SELECT col2 + tab0.col2 + + 90 * + col0 AS col2 FROM tab0
----
2226
3152
8174

query I rowsort
SELECT - - col2 * col2 + + 59 AS col2 FROM tab0 AS cor0
----
1148
60
6783

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

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

query I rowsort
SELECT col2 + 4 FROM tab2 AS cor0
----
30
31
42

onlyif mysql # use DIV operator for integer division
query I rowsort label-1245
SELECT DISTINCT col0 * 57 DIV - cor0.col0 FROM tab0 AS cor0
----
-57

skipif mysql # not compatible
query I rowsort label-1245
SELECT DISTINCT col0 * 57 / - cor0.col0 FROM tab0 AS cor0
----
-57

query I rowsort
SELECT - col2 + 68 FROM tab0 AS cor0
----
-14
35
67

query I rowsort
SELECT col2 * 77 FROM tab0 AS cor0
----
2541
6314
77

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

query I rowsort
SELECT + 43 * - 22 FROM tab1 AS cor0
----
-946
-946
-946

query I rowsort
SELECT DISTINCT ( 47 ) * col1 AS col0 FROM tab0 AS cor0
----
4042
4277
4559

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

query I rowsort
SELECT ALL + 95 FROM tab2, tab1 AS cor0
----
9 values hashing to e57d8ed879dfd04d04aae87725c970d3

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1256
SELECT DISTINCT + col1 + col0 DIV col1 FROM tab2 cor0
----
21
31
60

skipif mysql # not compatible
query I rowsort label-1256
SELECT DISTINCT + col1 + col0 / col1 FROM tab2 cor0
----
21
31
60

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

query I rowsort
SELECT ALL - cor0.col0 + - 58 AS col1 FROM tab2 cor0
----
-136
-137
-65

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

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

query I rowsort
SELECT col0 * - 88 + + ( cor0.col1 * col0 ) FROM tab0 AS cor0
----
-48
267
315

query I rowsort
SELECT ALL - col0 * - 83 AS col0 FROM tab0 AS cor0
----
1992
2905
7387

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col2 + + 32 col1 FROM tab0 cor0
----
114
33
65

onlyif mysql # use DIV operator for integer division
query I rowsort label-1263
SELECT - col2 DIV tab1.col1 + 84 col1 FROM tab1
----
77
79
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1263
SELECT - col2 / tab1.col1 + 84 col1 FROM tab1
----
77
79
82

query I rowsort
SELECT + ( col1 ) + 8 FROM tab1
----
18
21
34

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

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

query I rowsort
SELECT - 54 + - col1 * col1 FROM tab0 AS cor0
----
-7450
-8335
-9463

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1269
SELECT ALL - col1 + + col0 DIV 59 FROM tab0 AS cor0
----
-86
-90
-97

skipif mysql # not compatible
query I rowsort label-1269
SELECT ALL - col1 + + col0 / 59 FROM tab0 AS cor0
----
-86
-90
-97

query I rowsort
SELECT + 10 AS col1 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to a47194429f3e0358a3aebffd5f050113

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1272
SELECT tab1.col2 DIV col1 + col1 DIV col0 + col1 FROM tab1
----
15
20
36

skipif mysql # not compatible
query I rowsort label-1272
SELECT tab1.col2 / col1 + col1 / col0 + col1 FROM tab1
----
15
20
36

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

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

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

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

query I rowsort
SELECT DISTINCT + col1 - - col2 * col2 FROM tab1
----
2942
3259
9229

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * col2 * - col1 col2 FROM tab0
----
3395
664118
68112

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

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

query I rowsort
SELECT DISTINCT - col1 * + col1 * col2 AS col1 FROM tab2
----
-10982
-25947
-90506

query I rowsort
SELECT ALL tab0.col1 FROM tab0 WHERE + col0 + - col0 = ( NULL )
----

query I rowsort
SELECT DISTINCT ( 67 ) AS col1 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
67

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

skipif mysql # not compatible
query I rowsort label-1284
SELECT ALL col0 / - cor0.col0 FROM tab2 cor0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + col1 * + col0 col1 FROM tab2
----
1326
186
4543

query I rowsort
SELECT + col1 * + col0 + + 8 FROM tab2
----
1351
225
4610

query I rowsort
SELECT - + col0 * col2 * col2 FROM tab1 AS cor0
----
-207936
-737280
-8748

query I rowsort
SELECT DISTINCT ( - cor0.col2 ) * 94 FROM tab1 cor0
----
-5076
-5358
-9024

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

query I rowsort
SELECT - col0 + + col1 * + ( 77 ) FROM tab0 AS cor0
----
6598
6918
7434

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1295
SELECT col1 * col2 DIV col1 col1 FROM tab0 cor0
----
1
33
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1295
SELECT col1 * col2 / col1 col1 FROM tab0 cor0
----
1
33
82

query I rowsort
SELECT ALL + 57 + col2 FROM tab1 cor0
----
111
114
153

query I rowsort
SELECT DISTINCT + col2 + col0 * col0 FROM tab0 AS cor0
----
1226
609
8003

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

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

query I rowsort
SELECT + col1 * 65 + 44 AS col2 FROM tab1 cor0
----
1734
694
889

query I rowsort
SELECT 98 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809

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

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

skipif mysql # not compatible
query I rowsort label-1302
SELECT - col1 + CAST ( - col0 AS INTEGER ) + cor0.col2 * CAST ( - 33 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-1350
-929
-995

query I rowsort
SELECT ALL + - col0 * col2 * col2 AS col1 FROM tab1 AS cor0
----
-207936
-737280
-8748

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

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

query I rowsort
SELECT DISTINCT - col2 + 33 FROM tab0 AS cor0
----
-49
0
32

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

query I rowsort
SELECT ALL - col2 + col0 + + cor0.col0 * col2 * + col2 FROM tab2 cor0
----
114117
5083
52780

query I rowsort
SELECT cor0.col0 * + 94 AS col1 FROM tab0 AS cor0
----
2256
3290
8366

query I rowsort
SELECT cor1.col1 FROM tab0, tab2 AS cor0, tab2 AS cor1, tab2, tab2 AS cor2
----
243 values hashing to 42b04a30acb32fcd35bf97afdee87fe6

onlyif mysql # use DIV operator for integer division
query I rowsort label-1311
SELECT col0 + col0 DIV 3 col0 FROM tab1 AS cor0
----
106
4
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1311
SELECT col0 + col0 / 3 col0 FROM tab1 AS cor0
----
106
4
85

query I rowsort
SELECT + + 26 + cor0.col1 - 68 FROM tab0 AS cor0
----
44
49
55

onlyif mysql # use DIV operator for integer division
query I rowsort label-1313
SELECT - 73 DIV - col1 AS col1 FROM tab1 AS cor0
----
2
5
7

skipif mysql # not compatible
query I rowsort label-1313
SELECT - 73 / - col1 AS col1 FROM tab1 AS cor0
----
2
5
7

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

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

query I rowsort
SELECT ALL + col1 + - ( - tab2.col1 * col2 ) + col2 FROM tab2
----
1619
701
895

query I rowsort
SELECT DISTINCT - 39 + + cor0.col1 FROM tab0 AS cor0
----
47
52
58

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

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

query I rowsort
SELECT DISTINCT + - 55 * 8 AS col2 FROM tab2 AS cor0
----
-440

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

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

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

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

query I rowsort
SELECT ALL 78 + 26 * - cor0.col0 * col0 FROM tab0 AS cor0
----
-14898
-205868
-31772

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1325
SELECT + col1 + col1 DIV 25 AS col1 FROM tab2 AS cor0
----
17
32
61

skipif mysql # not compatible
query I rowsort label-1325
SELECT + col1 + col1 / 25 AS col1 FROM tab2 AS cor0
----
17
32
61

query I rowsort
SELECT 34 + + col2 * cor0.col1 FROM tab1 AS cor0
----
1282
1438
604

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

query I rowsort
SELECT 88 + col0 AS col2 FROM tab1
----
152
168
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * col0 - - cor0.col0 col1 FROM tab0 AS cor0
----
1260
600
8010

query I rowsort
SELECT DISTINCT + + 38 + 26 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col0 + 50 + - 33 col2 FROM tab1, tab2 AS cor0
----
24
95
96

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT col1 * CAST ( col0 AS REAL ) FROM tab0 cor0
----
2064
3395
8099

query I rowsort
SELECT + cor0.col1 * 53 + + col1 * col1 AS col2 FROM tab1 AS cor0
----
2054
630
858

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

query I rowsort
SELECT ALL + col2 * ( 18 ) + cor0.col2 AS col2 FROM tab1 AS cor0
----
1026
1083
1824

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

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

query I rowsort
SELECT DISTINCT col1 * + 61 FROM tab0 AS cor0
----
5246
5551
5917

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

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

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

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

query I rowsort
SELECT 84 AS col0 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to e8cd683fe8cea77b4326d9b80f21c74a

query I rowsort
SELECT + 20 - col2 FROM tab0
----
-13
-62
19

query I rowsort
SELECT ALL col1 + tab2.col1 + - 67 AS col1 FROM tab2
----
-33
-5
51

query I rowsort
SELECT ALL + 92 AS col0 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to c64cb7a81da51f4be0b6906a223e8817

query I rowsort
SELECT ALL - 14 + col0 * + ( + col1 ) AS col2 FROM tab1
----
1026
626
64

query I rowsort
SELECT ALL 59 * col1 + + col2 FROM tab2
----
1041
1856
3507

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 67 - 63 col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b

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

query I rowsort
SELECT - + cor0.col2 * + col2 AS col0 FROM tab2 AS cor0
----
-1444
-676
-729

query I rowsort
SELECT DISTINCT + col2 * - 77 * + col2 AS col2 FROM tab2 AS cor0
----
-111188
-52052
-56133

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

query I rowsort
SELECT - col1 * ( - 87 + cor0.col0 ) FROM tab1 AS cor0
----
2184
230
91

query I rowsort
SELECT DISTINCT - col0 + - 74 * + col1 FROM tab1 AS cor0
----
-1042
-1927
-804

query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab0 cor0 CROSS JOIN tab0, tab2 cor1
----
972 values hashing to 1e9d01970ae508486ddabec967bb176c

query I rowsort
SELECT col1 + col1 + col1 AS col0 FROM tab1
----
30
39
78

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1357
SELECT - col0 + 27 - tab0.col2 * + CAST( + 19 AS SIGNED ) FROM tab0
----
-1620
-27
-624

skipif mysql # not compatible
query I rowsort label-1357
SELECT - col0 + 27 - tab0.col2 * + CAST ( + 19 AS INTEGER ) FROM tab0
----
-1620
-27
-624

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1360
SELECT tab1.col0 DIV - col0 + + col0 + col0 FROM tab1
----
127
159
5

skipif mysql # not compatible
query I rowsort label-1360
SELECT tab1.col0 / - col0 + + col0 + col0 FROM tab1
----
127
159
5

query I rowsort
SELECT col1 + tab0.col2 + - ( col1 + - col2 ) FROM tab0
----
164
2
66

query I rowsort
SELECT 72 + - col2 AS col0 FROM tab1 AS cor0
----
-24
15
18

onlyif mysql # use DIV operator for integer division
query I rowsort label-1363
SELECT - cor0.col0 * col2 DIV 97 AS col2 FROM tab1 AS cor0
----
-1
-37
-79

skipif mysql # not compatible
query I rowsort label-1363
SELECT - cor0.col0 * col2 / 97 AS col2 FROM tab1 AS cor0
----
-1
-37
-79

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

query I rowsort
SELECT DISTINCT + col0 * + col1 + + col2 * col2 FROM tab0 AS cor0
----
14823
3153
3396

query I rowsort
SELECT ALL col1 + + col2 + col2 AS col0 FROM tab2 AS cor0
----
111
85
93

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

query I rowsort
SELECT DISTINCT - 6 + + 81 AS col0 FROM tab2 cor0
----
75

query I rowsort
SELECT ALL - 5 * col1 AS col2 FROM tab1 AS cor0
----
-130
-50
-65

query I rowsort
SELECT + 50 + - col0 + col2 FROM tab0 AS cor0
----
16
43
59

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

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

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

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

query I rowsort
SELECT cor0.col0 * 80 AS col2 FROM tab1 cor0
----
240
5120
6400

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

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

query I rowsort
SELECT ALL 66 * ( - cor0.col1 ) AS col1 FROM tab0 AS cor0
----
-5676
-6006
-6402

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

query I rowsort
SELECT + 50 * - ( col2 ) * col0 + cor0.col1 FROM tab0 AS cor0
----
-1653
-364809
-39514

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

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

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

query I rowsort
SELECT ALL + cor0.col0 * 32 AS col0 FROM tab1 AS cor0
----
2048
2560
96

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

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

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

query I rowsort
SELECT col0 - + col2 * - col2 * col0 FROM tab2 AS cor0
----
114155
5110
52806

query I rowsort
SELECT 27 * tab0.col1 + col2 AS col1 FROM tab0
----
2355
2539
2620

onlyif mysql # use DIV operator for integer division
query I rowsort label-1388
SELECT ALL col2 + 51 DIV + col1 AS col2 FROM tab2
----
26
28
41

skipif mysql # not compatible
query I rowsort label-1388
SELECT ALL col2 + 51 / + col1 AS col2 FROM tab2
----
26
28
41

query I rowsort
SELECT + col2 + col1 * 79 + col1 FROM tab2
----
1398
2507
4746

query I rowsort
SELECT DISTINCT col1 * 52 + col1 FROM tab0
----
4558
4823
5141

onlyif mysql # use DIV operator for integer division
query I rowsort label-1391
SELECT - - col2 - ( col2 + col1 ) DIV + col1 AS col0 FROM tab2 AS cor0
----
25
26
35

skipif mysql # not compatible
query I rowsort label-1391
SELECT - - col2 - ( col2 + col1 ) / + col1 AS col0 FROM tab2 AS cor0
----
25
26
35

query I rowsort
SELECT DISTINCT + - col1 * + col2 + + 45 + + col1 FROM tab1 AS cor0
----
-1190
-1333
-515

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

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

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

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

query I rowsort
SELECT + tab1.col1 + - ( 19 ) * col0 AS col2 FROM tab1
----
-1206
-1507
-31

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1400
SELECT - - col2 - col2 / col1 FROM tab2 AS cor0
----
26
27
36

query I rowsort
SELECT 16 AS col2 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to ee5bde9f68ee828e8cd86b0d590090bc

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 86 col1 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to ed1a39c2752ca3723602e4a92c54bbc4

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

query I rowsort
SELECT DISTINCT - + 79 * + col2 + + col0 * + ( col0 ) FROM tab0 AS cor0
----
-2031
1146
1443

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

query I rowsort
SELECT DISTINCT + + 86 * + cor0.col0 FROM tab0 AS cor0
----
2064
3010
7654

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

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

query I rowsort
SELECT ALL + + col2 * - 82 + col1 FROM tab1 AS cor0
----
-4402
-4664
-7859

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

skipif mysql # not compatible
query I rowsort label-1411
SELECT - col1 / + 36 AS col0 FROM tab0 cor0
----
-2
-2
-2

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1412
SELECT - col1 / ( + col1 * col1 ) col0 FROM tab1 AS cor0
----
0
0
0

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

query I rowsort
SELECT 71 * 67 FROM tab2
----
4757
4757
4757

query I rowsort
SELECT DISTINCT 86 * - col1 AS col0 FROM tab1
----
-1118
-2236
-860

query I rowsort
SELECT ALL + - 58 + cor0.col2 * col2 AS col2 FROM tab1 AS cor0
----
2858
3191
9158

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

query I rowsort
SELECT DISTINCT 51 * col1 AS col2 FROM tab1
----
1326
510
663

query I rowsort
SELECT DISTINCT - col2 + + col1 * + 74 AS col0 FROM tab2 AS cor0
----
1220
2267
4340

query I rowsort
SELECT - - cor0.col0 + + col0 * - col0 FROM tab1 AS cor0
----
-4032
-6
-6320

query I rowsort
SELECT ALL 31 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540

query I rowsort
SELECT - tab2.col1 * 8 FROM tab2
----
-136
-248
-472

query I rowsort
SELECT ALL - col2 * + ( - 60 * tab0.col2 ) + + col1 * 52 - col0 AS col0 FROM tab0
----
408083
5069
69788

onlyif mysql # use DIV operator for integer division
query I rowsort label-1424
SELECT ALL - col0 - + ( tab1.col1 + + col0 ) DIV col0 col0 FROM tab1
----
-12
-65
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1424
SELECT ALL - col0 - + ( tab1.col1 + + col0 ) / col0 col0 FROM tab1
----
-12
-65
-81

query I rowsort
SELECT col2 - ( - col1 + - col1 ) FROM tab1 AS cor0
----
106
122
77

query I rowsort
SELECT + 59 + - cor0.col0 FROM tab1 AS cor0
----
-21
-5
56

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

query I rowsort
SELECT DISTINCT + col0 * - 95 FROM tab0
----
-2280
-3325
-8455

query I rowsort
SELECT DISTINCT 47 - 75 FROM tab2, tab1 AS cor0
----
-28

onlyif mysql # use DIV operator for integer division
query I rowsort label-1430
SELECT DISTINCT - col2 DIV + 98 AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-1430
SELECT DISTINCT - col2 / + 98 AS col2 FROM tab1
----
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1431
SELECT + CAST( + col0 AS SIGNED ) - col1 * 54 AS col1 FROM tab2 AS cor0
----
-1667
-3108
-839

skipif mysql # not compatible
query I rowsort label-1431
SELECT + CAST ( + col0 AS INTEGER ) - col1 * 54 AS col1 FROM tab2 AS cor0
----
-1667
-3108
-839

query I rowsort
SELECT ALL + col2 * 22 FROM tab2 AS cor0
----
572
594
836

onlyif mysql # use DIV operator for integer division
query I rowsort label-1433
SELECT ALL ( 83 ) DIV - col0 FROM tab1 AS cor0
----
-1
-1
-27

skipif mysql # not compatible
query I rowsort label-1433
SELECT ALL ( 83 ) / - col0 FROM tab1 AS cor0
----
-1
-1
-27

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1436
SELECT - CAST( + 84 AS SIGNED ) DIV cor0.col1 AS col0 FROM tab1 AS cor0
----
-3
-6
-8

skipif mysql # not compatible
query I rowsort label-1436
SELECT - CAST ( + 84 AS INTEGER ) / cor0.col1 AS col0 FROM tab1 AS cor0
----
-3
-6
-8

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

query I rowsort
SELECT DISTINCT - 22 FROM tab1 cor0
----
-22

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1440
SELECT DISTINCT 60 + - ( col2 ) DIV CAST( col1 AS SIGNED ) AS col1 FROM tab1
----
53
55
58

skipif mysql # not compatible
query I rowsort label-1440
SELECT DISTINCT 60 + - ( col2 ) / CAST ( col1 AS INTEGER ) AS col1 FROM tab1
----
53
55
58

query I rowsort
SELECT 38 + - col2 + + col0 * tab1.col1 * - tab1.col2 FROM tab1
----
-36499
-4228
-99898

query I rowsort
SELECT ALL 8 * cor0.col0 FROM tab1 AS cor0
----
24
512
640

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

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

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

query I rowsort
SELECT DISTINCT col2 * col0 * - cor0.col2 + - col1 * col2 AS col1 FROM tab2 cor0
----
-114722
-54262
-5940

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

query I rowsort
SELECT DISTINCT + col1 * ( col0 ) + - 73 AS col0 FROM tab2 AS cor0
----
1270
144
4529

query I rowsort
SELECT ALL - 8 * + 28 AS col0 FROM tab0 AS cor0
----
-224
-224
-224

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

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

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

query I rowsort
SELECT ALL col0 + 8 - col0 * - col2 AS col2 FROM tab1
----
173
3720
7768

query I rowsort
SELECT ALL col0 + + col0 + col0 AS col1 FROM tab2 AS cor0
----
21
234
237

query I rowsort
SELECT - col0 * col2 + 38 FROM tab1 AS cor0
----
-124
-3610
-7642

onlyif mysql # use DIV operator for integer division
query I rowsort label-1455
SELECT ALL + 68 DIV col0 + + 2 * + col0 FROM tab2 AS cor0
----
156
158
23

skipif mysql # not compatible
query I rowsort label-1455
SELECT ALL + 68 / col0 + + 2 * + col0 FROM tab2 AS cor0
----
156
158
23

onlyif mysql # use DIV operator for integer division
query I rowsort label-1456
SELECT DISTINCT - col2 * + col1 + + col0 * cor0.col1 DIV col2 AS col1 FROM tab0 AS cor0
----
-2776
-7364
3298

skipif mysql # not compatible
query I rowsort label-1456
SELECT DISTINCT - col2 * + col1 + + col0 * cor0.col1 / col2 AS col1 FROM tab0 AS cor0
----
-2776
-7364
3298

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1457
SELECT ALL ( cor0.col0 ) * - CAST( 41 * col0 AS SIGNED ) FROM tab0 AS cor0
----
-23616
-324761
-50225

skipif mysql # not compatible
query I rowsort label-1457
SELECT ALL ( cor0.col0 ) * - CAST ( 41 * col0 AS INTEGER ) FROM tab0 AS cor0
----
-23616
-324761
-50225

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + ( tab1.col1 ) ) + tab1.col2 col2 FROM tab1
----
109
67
80

query I rowsort
SELECT + 55 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0

query I rowsort
SELECT DISTINCT - tab2.col0 + 42 FROM tab2
----
-36
-37
35

query I rowsort
SELECT ( + col2 ) * tab0.col1 - tab0.col1 * 65 FROM tab0
----
-2752
-6208
1547

query I rowsort
SELECT + 91 * - col0 + col1 * - col1 AS col1 FROM tab0
----
-12594
-16380
-9580

query I rowsort
SELECT ALL + col1 * - ( col0 ) + + col0 * ( - 89 ) + - col0 FROM tab2 cor0
----
-11622
-8453
-847

query I rowsort
SELECT DISTINCT + col0 + 73 FROM tab0 AS cor0
----
108
162
97

query I rowsort
SELECT ALL - + col1 * col1 + - col2 * col1 FROM tab0 AS cor0
----
-10234
-15743
-9506

query I rowsort
SELECT ALL col1 * - ( - 62 ) + - col0 AS col0 FROM tab2 AS cor0
----
1915
3580
975

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 * ( 11 ) col2 FROM tab2 cor0
----
-77
-858
-869

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

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

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

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

query I rowsort
SELECT tab1.col2 AS col1 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1473
SELECT col1 - + col2 * CAST( 60 * + col1 AS SIGNED ) AS col2 FROM tab0
----
-170194
-447629
-5723

skipif mysql # not compatible
query I rowsort label-1473
SELECT col1 - + col2 * CAST ( 60 * + col1 AS INTEGER ) AS col2 FROM tab0
----
-170194
-447629
-5723

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

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

query I rowsort
SELECT ALL + 18 + col1 * + tab2.col2 + col1 AS col1 FROM tab2
----
1611
681
886

query I rowsort
SELECT + ( col0 ) * + ( col0 * + col0 ) - col1 * col0 FROM tab1 AS cor0
----
-51
261504
510960

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

query I rowsort
SELECT ALL - col0 * - col2 + ( col0 ) FROM tab2 cor0
----
196
2106
3081

query I rowsort
SELECT DISTINCT + col0 * + col0 - 57 FROM tab2 AS cor0
----
-8
6027
6184

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

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

skipif mysql # not compatible
query I rowsort label-1482
SELECT ALL - col0 * + CAST ( col0 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-49
-6084
-6241

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

query I rowsort
SELECT col2 + + col0 * cor0.col0 * col0 AS col1 FROM tab2 AS cor0
----
370
474578
493077

query I rowsort
SELECT ALL - col1 + - 8 AS col0 FROM tab0 AS cor0
----
-105
-94
-99

onlyif mysql # use DIV operator for integer division
query I rowsort label-1486
SELECT DISTINCT + col2 + 59 * 46 DIV col0 FROM tab0 AS cor0
----
112
146
78

skipif mysql # not compatible
query I rowsort label-1486
SELECT DISTINCT + col2 + 59 * 46 / col0 FROM tab0 AS cor0
----
112
146
78

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1488
SELECT ALL col2 / + col1 col2 FROM tab2 AS cor0
----
0
0
2

query I rowsort
SELECT col1 * + ( cor0.col0 ) + col2 * 11 FROM tab0 AS cor0
----
2427
3406
9001

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

query I rowsort
SELECT DISTINCT 67 * 68 FROM tab2 AS cor0
----
4556

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

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1496
SELECT col1 DIV + 45 FROM tab0 AS cor0
----
1
2
2

skipif mysql # not compatible
query I rowsort label-1496
SELECT col1 / + 45 FROM tab0 AS cor0
----
1
2
2

onlyif mysql # use DIV operator for integer division
query I rowsort label-1497
SELECT DISTINCT + - ( 4 ) + - col2 DIV - cor0.col1 AS col2 FROM tab0 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-1497
SELECT DISTINCT + - ( 4 ) + - col2 / - cor0.col1 AS col2 FROM tab0 AS cor0
----
-4

query I rowsort
SELECT ALL col2 * - col2 + col2 * - ( col2 + cor0.col0 ) * ( - cor0.col0 * - col1 ) AS col2 FROM tab0 AS cor0
----
-113570902
-122221
-3883473

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1500
SELECT + 55 * ( col0 ) DIV - 40 AS col2 FROM tab0 AS cor0
----
-122
-33
-48

skipif mysql # not compatible
query I rowsort label-1500
SELECT + 55 * ( col0 ) / - 40 AS col2 FROM tab0 AS cor0
----
-122
-33
-48

query I rowsort
SELECT DISTINCT 48 * cor0.col0 AS col0 FROM tab1 AS cor0
----
144
3072
3840

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

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

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

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

query I rowsort
SELECT ALL + 24 * col2 + 86 AS col0 FROM tab2 AS cor0
----
710
734
998

query I rowsort
SELECT 17 * - col2 + - col0 FROM tab1
----
-1033
-1712
-921

query I rowsort
SELECT + cor1.col1 - cor0.col1 AS col0 FROM tab0, tab0 AS cor0, tab2 cor1
----
27 values hashing to 14ba2031bc9d3391a60f7163593933fc

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

query I rowsort
SELECT - col1 * ( col0 ) + 78 FROM tab0 cor0
----
-1986
-3317
-8021

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

query I rowsort
SELECT ALL + ( 86 ) * col1 FROM tab0
----
7396
7826
8342

query I rowsort
SELECT + 14 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 83e5779d2487d12495e7d816c797264f

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

skipif mysql # not compatible
query I rowsort
SELECT - + cor0.col0 * - CAST ( cor0.col1 AS REAL ) FROM tab0, tab1 cor0
----
9 values hashing to 815fccd4c3d372b28d3f3fb103025775

query I rowsort
SELECT + col0 * - col0 * - col1 + col0 FROM tab2 AS cor0
----
106176
1526
359034

query IIIIII rowsort
SELECT * FROM tab0, tab2 AS cor0 WHERE ( NULL ) IN ( + cor0.col0 )
----

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

query IIIIII rowsort
SELECT * FROM tab2, tab2 AS cor0 WHERE NOT cor0.col2 > ( NULL )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-1519
SELECT col1 + - col2 DIV col2 FROM tab0 AS cor0
----
85
90
96

skipif mysql # not compatible
query I rowsort label-1519
SELECT col1 + - col2 / col2 FROM tab0 AS cor0
----
85
90
96

query I rowsort
SELECT ALL + col2 + + tab1.col0 AS col0 FROM tab1
----
121
176
57

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1523
SELECT DISTINCT + col0 * + col0 + col0 DIV col1 AS col0 FROM tab1
----
4102
6406
9

skipif mysql # not compatible
query I rowsort label-1523
SELECT DISTINCT + col0 * + col0 + col0 / col1 AS col0 FROM tab1
----
4102
6406
9

query I rowsort
SELECT ( 50 ) FROM tab2
----
50
50
50

query I rowsort
SELECT 99 + col1 FROM tab0 cor0
----
185
190
196

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

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

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

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

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

query I rowsort
SELECT + ( 60 ) FROM tab1
----
60
60
60

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

query I rowsort
SELECT DISTINCT - 63 * - col0 AS col0 FROM tab0
----
1512
2205
5607

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

query I rowsort
SELECT + col1 * col1 + + col0 * + col2 FROM tab2 AS cor0
----
1150
3291
5509

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

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

query I rowsort
SELECT - + cor0.col1 * - col1 - col0 * - col1 AS col1 FROM tab1 AS cor0
----
1209
740
754

query I rowsort
SELECT 36 + col1 AS col2 FROM tab2 AS cor0
----
53
67
95

query I rowsort
SELECT 64 * col1 * col1 + col1 * - col2 * - col0 - - col2 FROM tab0
----
1194184
541489
605572

query I rowsort
SELECT DISTINCT col1 + + col0 * col1 - - col2 * col1 * - col0 AS col0 FROM tab0
----
-655928
-65962
97

query I rowsort
SELECT - 68 + col0 AS col2 FROM tab1 AS cor0
----
-4
-65
12

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + col2 NOT IN ( + col1 * + col0 ) ) AND col2 + - col1 IN ( - col0 / + col1 + col2 / - col1 ) OR NOT col2 BETWEEN col0 AND ( NULL )
----
35
97
1
89
91
82

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

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

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT IN ( col1 )
----

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

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

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

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

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

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL >= ( NULL )
----

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col2 NOT IN ( - col2 + - col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col0 col1 FROM tab0 WHERE ( + col1 * - col1 ) < col0
----
24
35
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - col0 col1 FROM tab2
----
-49
-6084
-6241

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

query III rowsort
SELECT * FROM tab0 WHERE col0 BETWEEN NULL AND NULL
----

query I rowsort
SELECT - col0 * + col2 + - tab1.col0 + col2 FROM tab1
----
-111
-3655
-7664

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col1 <> - col1 / - col2
----

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

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

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

query I rowsort
SELECT ALL + col0 + + col0 * col2 * - col1 AS col1 FROM tab1 AS cor0
----
-36416
-4209
-99760

query I rowsort
SELECT ALL col0 * col1 * + col2 + col2 * col2 FROM tab2 AS cor0
----
120328
52478
6588

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

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

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

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

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

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

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

query I rowsort
SELECT + 83 * + 29 * col0 AS col1 FROM tab2 cor0
----
16849
187746
190153

query I rowsort
SELECT ALL - col1 * - 23 FROM tab2
----
1357
391
713

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

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

query I rowsort
SELECT DISTINCT tab1.col2 * + ( + col0 + + tab1.col0 ) AS col2 FROM tab1
----
15360
324
7296

query I rowsort
SELECT ALL + ( 37 ) FROM tab1, tab2 AS cor0
----
9 values hashing to a10b03e72860b949bdff53827700a9a8

onlyif mysql # use DIV operator for integer division
query I rowsort label-1577
SELECT DISTINCT + col2 + + col0 DIV - col0 AS col1 FROM tab2
----
25
26
37

skipif mysql # not compatible
query I rowsort label-1577
SELECT DISTINCT + col2 + + col0 / - col0 AS col1 FROM tab2
----
25
26
37

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1580
SELECT DISTINCT - + col1 DIV - col1 - cor0.col0 AS col2 FROM tab2 cor0
----
-6
-77
-78

skipif mysql # not compatible
query I rowsort label-1580
SELECT DISTINCT - + col1 / - col1 - cor0.col0 AS col2 FROM tab2 cor0
----
-6
-77
-78

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

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

query I rowsort
SELECT ALL - + 33 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8035c665a75d22be5922be1a4e574e03

onlyif mysql # use DIV operator for integer division
query I rowsort label-1584
SELECT - col0 DIV col2 + - 79 * col0 AS col0 FROM tab1
----
-237
-5057
-6320

skipif mysql # not compatible
query I rowsort label-1584
SELECT - col0 / col2 + - 79 * col0 AS col0 FROM tab1
----
-237
-5057
-6320

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 + - col0 * col2 col0 FROM tab2 AS cor0
----
-182
-1950
-2923

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1587
SELECT - + col1 + col2 * col0 DIV ( + cor0.col0 ) FROM tab1 AS cor0
----
28
47
83

skipif mysql # not compatible
query I rowsort label-1587
SELECT - + col1 + col2 * col0 / ( + cor0.col0 ) FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT ALL - col0 * col0 + 22 * - cor0.col0 FROM tab1 cor0
----
-5504
-75
-8160

query I rowsort
SELECT - + ( col1 ) + ( + 52 ) + - col1 FROM tab1 AS cor0
----
0
26
32

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

query I rowsort
SELECT ALL + 90 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 5d25a546acf3ae171e731e50adc0112e

onlyif mysql # use DIV operator for integer division
query I rowsort label-1592
SELECT DISTINCT - - col1 DIV + col2 + ( col2 ) * col2 AS col2 FROM tab0 AS cor0
----
1091
6725
98

skipif mysql # not compatible
query I rowsort label-1592
SELECT DISTINCT - - col1 / + col2 + ( col2 ) * col2 AS col2 FROM tab0 AS cor0
----
1091
6725
98

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

skipif mysql # not compatible
query I rowsort label-1593
SELECT DISTINCT - CAST ( NULL AS REAL ) FROM tab1, tab1 cor0
----
NULL

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

query I rowsort
SELECT ALL + col0 * col0 + - col0 * - 95 + col2 FROM tab1
----
10233
14096
348

query I rowsort
SELECT 36 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752

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

query I rowsort
SELECT - cor0.col0 * + col1 * + ( col2 + col1 ) AS col2 FROM tab1 AS cor0
----
-113360
-42880
-6240

query I rowsort
SELECT col2 * - 3 + 22 AS col0 FROM tab0 AS cor0
----
-224
-77
19

query I rowsort
SELECT - + col2 * 0 + cor0.col2 + col0 * col1 * col0 AS col2 FROM tab0 cor0
----
118826
49569
720893

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

query I rowsort
SELECT + - cor1.col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to b234798d4706314ba14eaad539d0aa88

onlyif mysql # use DIV operator for integer division
query I rowsort label-1603
SELECT DISTINCT col2 DIV + 74 AS col2 FROM tab0
----
0
1

skipif mysql # not compatible
query I rowsort label-1603
SELECT DISTINCT col2 / + 74 AS col2 FROM tab0
----
0
1

query I rowsort
SELECT ALL 11 * - col0 + col2 + - col0 * + cor0.col1 FROM tab2 AS cor0
----
-2174
-267
-5434

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

skipif mysql # not compatible
query I rowsort label-1605
SELECT DISTINCT + - cor0.col0 + col1 * CAST ( col0 AS INTEGER ) FROM tab0 AS cor0
----
2040
3360
8010

query I rowsort
SELECT ALL + 29 - + cor0.col2 AS col2 FROM tab1 AS cor0
----
-25
-28
-67

query I rowsort
SELECT DISTINCT - 48 * - 51 + + tab0.col1 AS col2 FROM tab0
----
2534
2539
2545

query I rowsort
SELECT ALL - col2 + + 63 FROM tab2
----
25
36
37

onlyif mysql # use DIV operator for integer division
query I rowsort label-1609
SELECT + col0 DIV + tab0.col0 + col1 AS col0 FROM tab0
----
87
92
98

skipif mysql # not compatible
query I rowsort label-1609
SELECT + col0 / + tab0.col0 + col1 AS col0 FROM tab0
----
87
92
98

query I rowsort
SELECT - cor0.col0 * + cor0.col0 - + ( + col2 ) * col2 FROM tab1 AS cor0
----
-15616
-2925
-7345

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

query I rowsort
SELECT 12 * + tab0.col0 * + 72 AS col0 FROM tab0
----
20736
30240
76896

query I rowsort
SELECT 38 + col2 AS col2 FROM tab1
----
134
92
95

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

query I rowsort
SELECT ALL - col1 + col2 + + 44 FROM tab1
----
127
72
91

query I rowsort
SELECT ALL + ( + tab1.col2 ) FROM tab1
----
54
57
96

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

query I rowsort
SELECT - 60 * col0 AS col1 FROM tab0
----
-1440
-2100
-5340

query I rowsort
SELECT - 63 * col0 AS col1 FROM tab1 AS cor0
----
-189
-4032
-5040

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

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

query I rowsort
SELECT ALL + 9 + cor0.col1 FROM tab0 cor0
----
100
106
95

query I rowsort
SELECT ALL - col1 + col2 * 94 FROM tab1 AS cor0
----
5050
5348
9011

query I rowsort
SELECT DISTINCT - 11 + col2 FROM tab1 AS cor0
----
43
46
85

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

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

query I rowsort
SELECT - col0 * + col2 * cor0.col0 FROM tab1 AS cor0
----
-233472
-486
-614400

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1629
SELECT DISTINCT + col1 + + 89 DIV col1 col2 FROM tab2 AS cor0
----
22
33
60

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1629
SELECT DISTINCT + col1 + + 89 / col1 col2 FROM tab2 AS cor0
----
22
33
60

query I rowsort
SELECT ALL + cor0.col1 * - col1 + col0 FROM tab1 cor0
----
-36
-673
-89

onlyif mysql # use DIV operator for integer division
query I rowsort label-1631
SELECT col1 + - ( 8 ) DIV col1 AS col1 FROM tab2 AS cor0
----
17
31
59

skipif mysql # not compatible
query I rowsort label-1631
SELECT col1 + - ( 8 ) / col1 AS col1 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT ALL - col2 + cor0.col0 + 10 AS col0 FROM tab1 AS cor0
----
-41
-6
17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 * + col0 + + 55 * cor0.col2 * col2 - + col1 * + col1 col0 FROM tab2 AS cor0
----
29097
38917
77788

query I rowsort
SELECT 58 + - col2 * - cor0.col2 AS col1 FROM tab2 AS cor0
----
1502
734
787

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1636
SELECT DISTINCT + + cor0.col1 DIV cor0.col1 + col2 AS col2 FROM tab0 AS cor0
----
2
34
83

skipif mysql # not compatible
query I rowsort label-1636
SELECT DISTINCT + + cor0.col1 / cor0.col1 + col2 AS col2 FROM tab0 AS cor0
----
2
34
83

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

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

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

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

query I rowsort
SELECT DISTINCT ( 5 ) * col0 FROM tab0 AS cor0
----
120
175
445

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

skipif mysql # not compatible
query I rowsort label-1641
SELECT ALL + col1 + ( col2 ) * - CAST ( col0 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-706
-7207
62

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

query I rowsort
SELECT DISTINCT 24 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
24

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

skipif mysql # not compatible
query I rowsort label-1644
SELECT DISTINCT + - cor0.col0 * + col2 + CAST ( 45 AS INTEGER ) + - col0 * + col2 AS col2 FROM tab2 AS cor0
----
-333
-4011
-5959

query I rowsort
SELECT 45 * - col2 + + col2 AS col0 FROM tab0
----
-1452
-3608
-44

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

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

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

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

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

query I rowsort
SELECT col1 + + col1 * - ( col2 ) AS col1 FROM tab1
----
-1235
-1378
-560

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

query I rowsort
SELECT ALL ( col1 ) + + col0 - - col1 * cor0.col2 AS col1 FROM tab1 AS cor0
----
1341
1433
644

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

query I rowsort
SELECT ALL + col0 + ( tab2.col2 ) + + col1 FROM tab2
----
134
163
65

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

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

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

query I rowsort
SELECT DISTINCT col2 + 13 * ( - col2 ) + - 12 AS col2 FROM tab1
----
-1164
-660
-696

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1660
SELECT + col2 + col0 DIV col0 + + col2 AS col0 FROM tab1
----
109
115
193

skipif mysql # not compatible
query I rowsort label-1660
SELECT + col2 + col0 / col0 + + col2 AS col0 FROM tab1
----
109
115
193

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

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

query I rowsort
SELECT DISTINCT + + 88 * col0 AS col1 FROM tab0 AS cor0
----
2112
3080
7832

onlyif mysql # use DIV operator for integer division
query I rowsort label-1663
SELECT ALL - - 29 * - col0 + col2 * col0 DIV ( cor0.col1 ) + + 20 AS col2 FROM tab1 cor0
----
-1472
-1710
-61

skipif mysql # not compatible
query I rowsort label-1663
SELECT ALL - - 29 * - col0 + col2 * col0 / ( cor0.col1 ) + + 20 AS col2 FROM tab1 cor0
----
-1472
-1710
-61

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

query I rowsort
SELECT ALL + 33 * col2 * col2 AS col1 FROM tab2 AS cor0
----
22308
24057
47652

query I rowsort
SELECT + 97 + + ( - cor0.col2 ) FROM tab1 AS cor0
----
1
40
43

onlyif mysql # use DIV operator for integer division
query I rowsort label-1667
SELECT ALL 68 + + cor0.col0 + + col0 DIV ( - col2 ) FROM tab1 AS cor0
----
131
148
71

skipif mysql # not compatible
query I rowsort label-1667
SELECT ALL 68 + + cor0.col0 + + col0 / ( - col2 ) FROM tab1 AS cor0
----
131
148
71

onlyif mysql # use DIV operator for integer division
query I rowsort label-1668
SELECT + 92 * - col0 + - col2 DIV - col2 AS col0 FROM tab0 AS cor0
----
-2207
-3219
-8187

skipif mysql # not compatible
query I rowsort label-1668
SELECT + 92 * - col0 + - col2 / - col2 AS col0 FROM tab0 AS cor0
----
-2207
-3219
-8187

query I rowsort
SELECT DISTINCT + 77 * col0 AS col0 FROM tab2 AS cor0
----
539
6006
6083

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

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

query I rowsort
SELECT + - col2 * - ( + col2 + col0 ) * + col0 FROM tab0 AS cor0
----
1247958
1260
45144

query I rowsort
SELECT DISTINCT - col2 * 49 AS col1 FROM tab0 AS cor0
----
-1617
-4018
-49

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

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 DISTINCT + - 33 + ( col2 ) FROM tab0 AS cor0
----
-32
0
49

query I rowsort
SELECT + ( col1 ) * cor0.col2 + + 27 FROM tab2 AS cor0
----
1561
673
864

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

query I rowsort
SELECT DISTINCT - - cor0.col2 - 14 AS col0 FROM tab2 AS cor0
----
12
13
24

query I rowsort
SELECT - + 40 * col2 * + col2 FROM tab0 AS cor0
----
-268960
-40
-43560

onlyif mysql # use DIV operator for integer division
query I rowsort label-1681
SELECT DISTINCT - ( col0 ) DIV - cor0.col2 AS col2 FROM tab0 AS cor0
----
0
1
35

skipif mysql # not compatible
query I rowsort label-1681
SELECT DISTINCT - ( col0 ) / - cor0.col2 AS col2 FROM tab0 AS cor0
----
0
1
35

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1682
SELECT - CAST( NULL AS SIGNED ) * - col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1682
SELECT - CAST ( NULL AS INTEGER ) * - col1 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1683
SELECT DISTINCT - col2 + CAST( NULL AS SIGNED ) / + cor0.col2 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1683
SELECT DISTINCT - col2 + CAST ( NULL AS INTEGER ) / + cor0.col2 FROM tab0 cor0
----
NULL

query I rowsort
SELECT ALL - - col0 * + ( col1 ) * + col1 FROM tab1 AS cor0
----
13520
2028
6400

query I rowsort
SELECT + cor0.col1 * ( - cor0.col0 ) FROM tab2 AS cor0
----
-1343
-217
-4602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + col1 col2 FROM tab1 cor0
----
29
74
93

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1687
SELECT CAST( + ( + col0 ) AS SIGNED ) + - col2 * + col0 FROM tab1 cor0
----
-159
-3584
-7600

skipif mysql # not compatible
query I rowsort label-1687
SELECT CAST ( + ( + col0 ) AS INTEGER ) + - col2 * + col0 FROM tab1 cor0
----
-159
-3584
-7600

onlyif mysql # use DIV operator for integer division
query I rowsort label-1688
SELECT + ( col0 ) + col0 DIV + col1 col1 FROM tab2 AS cor0
----
7
79
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1688
SELECT + ( col0 ) + col0 / + col1 col1 FROM tab2 AS cor0
----
7
79
83

query I rowsort
SELECT + col1 + + col1 * + col2 AS col0 FROM tab2 cor0
----
1593
663
868

query I rowsort
SELECT DISTINCT - + col0 * + col2 + - col1 AS col2 FROM tab1 AS cor0
----
-188
-3658
-7693

query I rowsort
SELECT + 19 * + col1 + + 26 FROM tab0 AS cor0
----
1660
1755
1869

query I rowsort
SELECT + + ( + col2 ) + - cor0.col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - col0 * col2 + + col1 FROM tab2
----
-158
-1969
-2985

query I rowsort
SELECT DISTINCT - col2 + col0 * - col0 FROM tab2 AS cor0
----
-6110
-6279
-76

query I rowsort
SELECT + 82 + col2 AS col0 FROM tab1 AS cor0
----
136
139
178

query I rowsort
SELECT - col0 * + col0 + + col1 FROM tab1 AS cor0
----
-4086
-6387
17

onlyif mysql # use DIV operator for integer division
query I rowsort label-1697
SELECT DISTINCT + 48 DIV cor0.col2 + - 84 * col2 FROM tab1 AS cor0
----
-4536
-4788
-8064

skipif mysql # not compatible
query I rowsort label-1697
SELECT DISTINCT + 48 / cor0.col2 + - 84 * col2 FROM tab1 AS cor0
----
-4536
-4788
-8064

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1698
SELECT DISTINCT + 99 * - col2 + - CAST( NULL AS SIGNED ) * - 26 * col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1698
SELECT DISTINCT + 99 * - col2 + - CAST ( NULL AS INTEGER ) * - 26 * col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-1699
SELECT + col1 + - col2 DIV - col0 FROM tab0 AS cor0
----
87
91
97

skipif mysql # not compatible
query I rowsort label-1699
SELECT + col1 + - col2 / - col0 FROM tab0 AS cor0
----
87
91
97

query I rowsort
SELECT ALL - 84 - + col1 AS col0 FROM tab2 AS cor0
----
-101
-115
-143

query I rowsort
SELECT + + col0 + - col0 * col0 AS col1 FROM tab1 AS cor0
----
-4032
-6
-6320

query I rowsort
SELECT ALL - 93 AS col1 FROM tab1 cor0
----
-93
-93
-93

query I rowsort
SELECT ALL + + col0 * col2 + cor0.col0 FROM tab1 AS cor0
----
165
3712
7760

query I rowsort
SELECT DISTINCT - col2 * col2 * - col2 FROM tab2
----
17576
19683
54872

query I rowsort
SELECT - + col2 * 84 + + col1 AS col2 FROM tab0 AS cor0
----
-2686
-6797
13

query I rowsort
SELECT col0 * - 77 + col2 FROM tab1 cor0
----
-177
-4871
-6064

query I rowsort
SELECT ALL - - col1 + + col0 * col2 * col0 FROM tab0 AS cor0
----
1322
19094
649613

query I rowsort
SELECT ALL tab2.col1 * - ( 43 ) AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 2ff4c08fc60430b67daf5f05366431dc

query I rowsort
SELECT DISTINCT - col1 + + ( - col1 ) FROM tab0
----
-172
-182
-194

query I rowsort
SELECT - col1 + 49 * - col1 FROM tab0 AS cor0
----
-4300
-4550
-4850

query I rowsort
SELECT - - col2 + + 12 AS col1 FROM tab0 AS cor0
----
13
45
94

query I rowsort
SELECT ALL ( col0 ) * - col1 AS col1 FROM tab2
----
-1343
-217
-4602

query I rowsort
SELECT + ( col0 ) * col2 * ( col0 + col2 ) FROM tab0 AS cor0
----
1247958
1260
45144

query I rowsort
SELECT DISTINCT - ( - 33 ) + - col0 FROM tab2 AS cor0
----
-45
-46
26

query I rowsort
SELECT + col2 * + col1 * - 96 + col1 + + col0 AS col0 FROM tab0 AS cor0
----
-272338
-716172
-9180

query I rowsort
SELECT 54 AS col2 FROM tab0 AS cor0
----
54
54
54

query I rowsort
SELECT + + cor0.col1 * col1 AS col1 FROM tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT - - cor0.col1 - col0 * - ( - 37 + col0 ) FROM tab2 AS cor0
----
-179
3257
3335

onlyif mysql # use DIV operator for integer division
query I rowsort label-1719
SELECT col0 DIV - col0 + col0 * ( - col2 ) col2 FROM tab2 cor0
----
-190
-2029
-3003

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1719
SELECT col0 / - col0 + col0 * ( - col2 ) col2 FROM tab2 cor0
----
-190
-2029
-3003

query I rowsort
SELECT + cor0.col0 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1, tab0 cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

onlyif mysql # use DIV operator for integer division
query I rowsort label-1721
SELECT + col2 + 36 DIV + 72 FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-1721
SELECT + col2 + 36 / + 72 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT + col1 * - cor0.col0 * 18 FROM tab2 cor0
----
-24174
-3906
-82836

query I rowsort
SELECT + col2 * 62 AS col1 FROM tab1 AS cor0
----
3348
3534
5952

onlyif mysql # use DIV operator for integer division
query I rowsort label-1724
SELECT cor0.col2 * ( - col0 ) DIV col2 AS col0 FROM tab1 AS cor0
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-1724
SELECT cor0.col2 * ( - col0 ) / col2 AS col0 FROM tab1 AS cor0
----
-3
-64
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 * col2 - - col1 col0 FROM tab1 cor0
----
1261
1430
580

query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab0 AS cor0, tab0 cor1, tab1 cor2
----
972 values hashing to 88213a0de4c0a44aaefe8bbffbcaf44a

query I rowsort
SELECT DISTINCT - 47 * col0 AS col0 FROM tab2 AS cor0
----
-329
-3666
-3713

query I rowsort
SELECT 98 + col0 * - col1 AS col2 FROM tab1 AS cor0
----
-542
-942
20

query I rowsort
SELECT ALL + - ( + col1 ) FROM tab1 cor0
----
-10
-13
-26

query I rowsort
SELECT 27 FROM tab2, tab0 AS cor0, tab0 AS cor1, tab1 AS cor2
----
81 values hashing to 092918b9163061e291041d594b1a402a

query I rowsort
SELECT - - 0 + col2 * col2 * cor0.col0 AS col1 FROM tab1 AS cor0
----
207936
737280
8748

query I rowsort
SELECT DISTINCT + 44 * col0 FROM tab0 AS cor0
----
1056
1540
3916

query I rowsort
SELECT DISTINCT + cor1.col2 - + 99 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
-61
-72
-73

query I rowsort
SELECT + 12 * col0 FROM tab0 AS cor0
----
1068
288
420

query I rowsort
SELECT - col1 + - col2 * col0 * - col1 + col0 * - col1 FROM tab1
----
35830
4108
98787

query I rowsort
SELECT DISTINCT - 93 + col0 AS col1 FROM tab2
----
-14
-15
-86

query I rowsort
SELECT DISTINCT 12 + + tab2.col2 AS col2 FROM tab2
----
38
39
50

query I rowsort
SELECT cor0.col0 + - col1 AS col0 FROM tab0 AS cor0
----
-2
-62
-62

query I rowsort
SELECT ALL 8 * col1 FROM tab1 AS cor0
----
104
208
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1740
SELECT DISTINCT + - col1 + - col2 * CAST( - col2 + - col2 AS SIGNED ) FROM tab2 AS cor0
----
1293
1427
2871

skipif mysql # not compatible
query I rowsort label-1740
SELECT DISTINCT + - col1 + - col2 * CAST ( - col2 + - col2 AS INTEGER ) FROM tab2 AS cor0
----
1293
1427
2871

query I rowsort
SELECT ALL + 78 * - 12 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to f0345beef452a2b45eb5ebc5e5955c47

query I rowsort
SELECT ALL - col1 + - 19 + - col1 AS col2 FROM tab0 AS cor0
----
-191
-201
-213

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1743
SELECT ALL - - col2 + CAST( col1 * col0 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
1136
132
697

skipif mysql # not compatible
query I rowsort label-1743
SELECT ALL - - col2 + CAST ( col1 * col0 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
1136
132
697

query I rowsort
SELECT DISTINCT + col2 * - 3 AS col2 FROM tab2 AS cor0
----
-114
-78
-81

query I rowsort
SELECT ALL + col1 + ( - col0 + + col0 ) AS col2 FROM tab1 AS cor0
----
10
13
26

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1746
SELECT ALL - - col1 * CAST( NULL AS SIGNED ) * col2 + - cor0.col1 * cor0.col0 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-1746
SELECT ALL - - col1 * CAST ( NULL AS INTEGER ) * col2 + - cor0.col1 * cor0.col0 col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 74 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to dc22979e6d261795bd3ce2990fdbbf82

query I rowsort
SELECT ALL + tab2.col0 * - tab2.col2 FROM tab2
----
-189
-2028
-3002

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + col2 + + CAST ( col0 * + col2 AS REAL ) AS col2 FROM tab0 AS cor0
----
36
7380
825

query I rowsort
SELECT col1 * + tab1.col1 - + col0 FROM tab1
----
36
673
89

query I rowsort
SELECT DISTINCT + cor0.col1 + - col2 FROM tab2 AS cor0
----
-21
33
4

query I rowsort
SELECT 3 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 3e22859a313d85a6146c6df5f23d77cf

query I rowsort
SELECT DISTINCT - 81 + col0 AS col0 FROM tab2
----
-2
-3
-74

onlyif mysql # use DIV operator for integer division
query I rowsort label-1754
SELECT DISTINCT col2 DIV + ( + col0 ) + - col0 * + ( 94 * col0 ) col2 FROM tab1
----
-385024
-601599
-828

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1754
SELECT DISTINCT col2 / + ( + col0 ) + - col0 * + ( 94 * col0 ) col2 FROM tab1
----
-385024
-601599
-828

query I rowsort
SELECT col2 + + 89 AS col0 FROM tab0
----
122
171
90

query I rowsort
SELECT - - ( + 29 ) FROM tab2 AS cor0
----
29
29
29

query I rowsort
SELECT DISTINCT + 83 AS col1 FROM tab2, tab2 AS cor0
----
83

query I rowsort
SELECT DISTINCT col1 * ( + col2 ) FROM tab1
----
1248
1404
570

query I rowsort
SELECT col2 + 32 FROM tab1
----
128
86
89

query I rowsort
SELECT col1 * + ( + col0 ) + + col2 FROM tab0
----
2097
3396
8181

query I rowsort
SELECT ALL - col0 * - cor0.col2 + ( - cor0.col0 ) FROM tab2 AS cor0
----
182
1950
2923

query I rowsort
SELECT ALL - + 46 + + cor0.col2 FROM tab0 AS cor0
----
-13
-45
36

onlyif mysql # use DIV operator for integer division
query I rowsort label-1763
SELECT - col2 + col1 * 72 + col1 DIV col1 AS col0 FROM tab0 AS cor0
----
6160
6471
6984

skipif mysql # not compatible
query I rowsort label-1763
SELECT - col2 + col1 * 72 + col1 / col1 AS col0 FROM tab0 AS cor0
----
6160
6471
6984

onlyif mysql # use DIV operator for integer division
query I rowsort label-1764
SELECT ALL 56 * + cor0.col0 DIV + col0 AS col2 FROM tab0 AS cor0
----
56
56
56

skipif mysql # not compatible
query I rowsort label-1764
SELECT ALL 56 * + cor0.col0 / + col0 AS col2 FROM tab0 AS cor0
----
56
56
56

query I rowsort
SELECT ALL + ( col1 ) * - col0 AS col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT ( - 67 ) + col2 AS col1 FROM tab1
----
-10
-13
29

query I rowsort
SELECT 39 * + 83 FROM tab0
----
3237
3237
3237

query I rowsort
SELECT - ( + col1 ) * col2 - tab2.col2 FROM tab2
----
-1560
-684
-864

onlyif mysql # use DIV operator for integer division
query I rowsort label-1769
SELECT + col2 DIV - col1 col2 FROM tab0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1769
SELECT + col2 / - col1 col2 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL ( - cor1.col0 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0

onlyif mysql # use DIV operator for integer division
query I rowsort label-1771
SELECT ALL ( - col1 ) DIV 70 + + col2 AS col2 FROM tab2
----
26
27
38

skipif mysql # not compatible
query I rowsort label-1771
SELECT ALL ( - col1 ) / 70 + + col2 AS col2 FROM tab2
----
26
27
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-1772
SELECT DISTINCT + 89 DIV + col2 + - col1 * + col2 AS col2 FROM tab0
----
-2836
-7461
-8

skipif mysql # not compatible
query I rowsort label-1772
SELECT DISTINCT + 89 / + col2 + - col1 * + col2 AS col2 FROM tab0
----
-2836
-7461
-8

query I rowsort
SELECT ALL - 75 + + cor0.col1 FROM tab0 AS cor0
----
11
16
22

query I rowsort
SELECT ALL col2 + + col0 * - cor0.col0 FROM tab2 AS cor0
----
-22
-6058
-6203

query I rowsort
SELECT + - 26 - - col1 AS col1 FROM tab2 AS cor0
----
-9
33
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + cor0.col2 col1 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT 82 + col1 FROM tab0 AS cor0
----
168
173
179

query I rowsort
SELECT ALL ( col1 ) + - ( col0 ) * + col2 FROM tab2 AS cor0
----
-158
-1969
-2985

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 * + cor0.col0 * cor0.col2 + + cor0.col2 col1 FROM tab2 cor0
----
1350
158210
237196

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 70 + - col0 col2 FROM tab0 AS cor0
----
-105
-159
-94

query I rowsort
SELECT ALL + 46 + - col0 + + 59 AS col2 FROM tab0 AS cor0
----
16
70
81

query I rowsort
SELECT DISTINCT - - col1 - + col0 AS col2 FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT - col2 * col0 * + col0 - - cor0.col1 FROM tab0 AS cor0
----
-1128
-18922
-649431

query I rowsort
SELECT col0 * col1 * col0 AS col0 FROM tab2
----
106097
1519
358956

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1785
SELECT DISTINCT CAST( NULL AS SIGNED ) * + col0 AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1785
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + col0 AS col2 FROM tab0
----
NULL

query I rowsort
SELECT + 14 + col0 * - col0 FROM tab2 AS cor0
----
-35
-6070
-6227

query I rowsort
SELECT DISTINCT + - tab2.col1 * + tab2.col1 FROM tab2, tab0, tab1 AS cor0
----
-289
-3481
-961

onlyif mysql # use DIV operator for integer division
query I rowsort label-1788
SELECT DISTINCT - col2 DIV + tab0.col0 col2 FROM tab0
----
-1
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1788
SELECT DISTINCT - col2 / + tab0.col0 col2 FROM tab0
----
-1
0

query I rowsort
SELECT DISTINCT 73 * - 99 FROM tab0
----
-7227

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + tab1.col0 col1 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
3
64
80

query I rowsort
SELECT - 22 + col1 * + col2 AS col2 FROM tab2
----
1512
624
815

query I rowsort
SELECT DISTINCT 99 * 63 FROM tab2 AS cor0
----
6237

query I rowsort
SELECT - 33 + - col1 * - col0 FROM tab2 AS cor0
----
1310
184
4569

query I rowsort
SELECT ALL - 17 * + 48 FROM tab2 AS cor0
----
-816
-816
-816

query I rowsort
SELECT + + col0 * - col0 AS col1 FROM tab2 cor0
----
-49
-6084
-6241

query I rowsort
SELECT + - col2 + + col1 * 94 AS col0 FROM tab2 AS cor0
----
1560
2887
5520

query I rowsort
SELECT + + col0 + - col0 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT ALL ( ( + col1 ) ) + ( + col1 * + col2 ) AS col2 FROM tab0
----
194
2924
7553

query I rowsort
SELECT col0 + ( - tab1.col2 * - col0 ) FROM tab1
----
165
3712
7760

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 14 col2 FROM tab0
----
14
14
14

query I rowsort
SELECT tab2.col0 * 49 AS col2 FROM tab2
----
343
3822
3871

onlyif mysql # use DIV operator for integer division
query I rowsort label-1802
SELECT col1 DIV ( col2 ) + 98 col2 FROM tab1
----
98
98
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1802
SELECT col1 / ( col2 ) + 98 col2 FROM tab1
----
98
98
98

query I rowsort
SELECT + 45 + col1 * cor0.col0 AS col0 FROM tab2 AS cor0
----
1388
262
4647

onlyif mysql # use DIV operator for integer division
query I rowsort label-1804
SELECT col1 DIV 53 + + col1 * col1 + - col2 AS col1 FROM tab2
----
251
3456
934

skipif mysql # not compatible
query I rowsort label-1804
SELECT col1 / 53 + + col1 * col1 + - col2 AS col1 FROM tab2
----
251
3456
934

query I rowsort
SELECT DISTINCT - col2 + + col2 AS col2 FROM tab0 cor0
----
0

query I rowsort
SELECT col0 * - 79 AS col2 FROM tab1 AS cor0
----
-237
-5056
-6320

onlyif mysql # use DIV operator for integer division
query I rowsort label-1807
SELECT col0 + col0 DIV - col1 AS col0 FROM tab2 AS cor0
----
7
75
77

skipif mysql # not compatible
query I rowsort label-1807
SELECT col0 + col0 / - col1 AS col0 FROM tab2 AS cor0
----
7
75
77

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1808
SELECT DISTINCT - col2 * CAST( NULL AS SIGNED ) / cor0.col1 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1808
SELECT DISTINCT - col2 * CAST ( NULL AS INTEGER ) / cor0.col1 FROM tab1 cor0
----
NULL

query I rowsort
SELECT DISTINCT + + col0 - col0 AS col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL + - col0 * cor0.col2 + col2 * + cor0.col2 FROM tab0 cor0
----
-34
-574
297

query I rowsort
SELECT + col1 * + col1 + cor0.col0 FROM tab0 AS cor0
----
7420
8370
9444

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - cor0.col0 col0 FROM tab1 AS cor0
----
-7
16
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 * - col0 + + col1 col1 FROM tab0 AS cor0
----
-1978
-3298
-8008

query I rowsort
SELECT col0 * 13 FROM tab2 cor0
----
1014
1027
91

query I rowsort
SELECT col2 + + cor0.col0 AS col0 FROM tab2 AS cor0
----
104
117
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - cor0.col2 * + cor0.col0 + col0 col0 FROM tab0 AS cor0
----
-7209
-768
0

query I rowsort
SELECT col1 * - col1 - col1 FROM tab1 cor0
----
-110
-182
-702

query I rowsort
SELECT 18 * col1 * col0 FROM tab1
----
11520
1404
18720

onlyif mysql # use DIV operator for integer division
query I rowsort label-1819
SELECT DISTINCT col1 * - tab2.col0 DIV + col0 AS col1 FROM tab2
----
-17
-31
-59

skipif mysql # not compatible
query I rowsort label-1819
SELECT DISTINCT col1 * - tab2.col0 / + col0 AS col1 FROM tab2
----
-17
-31
-59

query I rowsort
SELECT - col1 + + ( col0 * ( - 48 ) ) - tab0.col0 * - 85 * - col1 FROM tab0
----
-176678
-290352
-692778

query I rowsort
SELECT ALL - 90 * col2 * col0 FROM tab0 cor0
----
-3150
-656820
-71280

query I rowsort
SELECT ALL + + 93 AS col0 FROM tab2 AS cor0
----
93
93
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 48 col2 FROM tab1
----
48
48
48

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1824
SELECT + - CAST( NULL AS SIGNED ) col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1824
SELECT + - CAST ( NULL AS INTEGER ) col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT 54 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to d2364c4ffc09ac2cf1f6fa4d767d8b09

query I rowsort
SELECT 99 FROM tab2, tab0 AS cor0, tab1 cor1
----
27 values hashing to 05ea182fd6036c7f5e0ea08fc061cc67

query I rowsort
SELECT ALL - 93 + col1 * - col1 FROM tab2 AS cor0
----
-1054
-3574
-382

onlyif mysql # use DIV operator for integer division
query I rowsort label-1828
SELECT DISTINCT + col1 + - col2 DIV - col0 FROM tab1 AS cor0
----
10
14
44

skipif mysql # not compatible
query I rowsort label-1828
SELECT DISTINCT + col1 + - col2 / - col0 FROM tab1 AS cor0
----
10
14
44

query I rowsort
SELECT - - col1 + col1 * - col1 AS col2 FROM tab0 AS cor0
----
-7310
-8190
-9312

query I rowsort
SELECT DISTINCT - + 43 - col2 FROM tab1 AS cor0
----
-100
-139
-97

query I rowsort
SELECT ALL 28 * - cor0.col2 FROM tab1 AS cor0
----
-1512
-1596
-2688

query I rowsort
SELECT ALL 82 * cor0.col0 + cor0.col0 AS col1 FROM tab1 AS cor0
----
249
5312
6640

onlyif mysql # use DIV operator for integer division
query I rowsort label-1833
SELECT ALL - cor0.col0 DIV + col1 AS col0 FROM tab2 AS cor0
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-1833
SELECT ALL - cor0.col0 / + col1 AS col0 FROM tab2 AS cor0
----
-1
-4
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-1834
SELECT DISTINCT + 49 DIV col1 + col2 AS col2 FROM tab2 AS cor0
----
26
28
40

skipif mysql # not compatible
query I rowsort label-1834
SELECT DISTINCT + 49 / col1 + col2 AS col2 FROM tab2 AS cor0
----
26
28
40

query I rowsort
SELECT ALL - 20 * + col1 + col1 - cor0.col1 AS col1 FROM tab0 AS cor0
----
-1720
-1820
-1940

query I rowsort
SELECT DISTINCT + + ( col1 ) + col0 AS col0 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT DISTINCT - col1 * + col2 - col1 FROM tab1 AS cor0
----
-1261
-1430
-580

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( - col0 ) col0 FROM tab0 AS cor0
----
24
35
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 85 + col0 col2 FROM tab1
----
-21
-5
-82

onlyif mysql # use DIV operator for integer division
query I rowsort label-1840
SELECT ALL - ( ( col0 ) ) DIV + col1 + col0 FROM tab1
----
3
58
74

skipif mysql # not compatible
query I rowsort label-1840
SELECT ALL - ( ( col0 ) ) / + col1 + col0 FROM tab1
----
3
58
74

query I rowsort
SELECT DISTINCT col1 + 7 FROM tab2
----
24
38
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 18 + 82 col2 FROM tab1
----
100
100
100

query I rowsort
SELECT DISTINCT - + 37 * col0 * + col2 AS col2 FROM tab1 AS cor0
----
-134976
-284160
-5994

query I rowsort
SELECT + - col2 * col2 + col0 FROM tab1 AS cor0
----
-2913
-3185
-9136

query I rowsort
SELECT - col0 * col2 + col1 * col0 FROM tab1 cor0
----
-3008
-6640
-84

query I rowsort
SELECT DISTINCT + col0 * - col0 * - col1 + + col1 FROM tab2 AS cor0
----
106114
1550
359015

query I rowsort
SELECT ALL cor0.col2 * - 81 FROM tab0, tab2 AS cor0
----
9 values hashing to 8fb26f057d451dfd317c4a7cb83f297b

query I rowsort
SELECT ALL cor0.col1 AS col1 FROM tab0, tab0 cor0, tab1 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

query I rowsort
SELECT + col2 * ( col2 * col0 ) + col1 - - col2 AS col0 FROM tab2 AS cor0
----
114131
5161
52813

onlyif mysql # use DIV operator for integer division
query I rowsort label-1850
SELECT + - col0 - + col0 DIV ( + cor0.col2 ) AS col0 FROM tab1 AS cor0
----
-3
-65
-80

skipif mysql # not compatible
query I rowsort label-1850
SELECT + - col0 - + col0 / ( + cor0.col2 ) AS col0 FROM tab1 AS cor0
----
-3
-65
-80

query I rowsort
SELECT col2 + 90 + col2 FROM tab2
----
142
144
166

query I rowsort
SELECT col2 * + col0 * 51 + col2 + - tab0.col0 * col2 AS col0 FROM tab0
----
1751
364982
39633

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1853
SELECT + + CAST( NULL AS SIGNED ) * + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1853
SELECT + + CAST ( NULL AS INTEGER ) * + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 + - col2 * col2 AS col2 FROM tab0
----
-1056
-6642
0

query I rowsort
SELECT 70 * + col2 FROM tab1
----
3780
3990
6720

query I rowsort
SELECT - 25 * 28 AS col0 FROM tab0
----
-700
-700
-700

query I rowsort
SELECT + cor0.col2 + 1 AS col0 FROM tab0 AS cor0
----
2
34
83

query I rowsort
SELECT ALL + 23 * + 86 + - col1 FROM tab0 AS cor0
----
1881
1887
1892

query I rowsort
SELECT ALL - - 42 * + col2 FROM tab1 AS cor0
----
2268
2394
4032

query I rowsort
SELECT DISTINCT ( - 78 ) + + col1 AS col0 FROM tab1 AS cor0
----
-52
-65
-68

query I rowsort
SELECT ( - col2 ) + + col1 FROM tab1 cor0
----
-28
-47
-83

query I rowsort
SELECT DISTINCT 6 FROM tab0 cor0
----
6

query I rowsort
SELECT cor0.col1 FROM tab0 AS cor0 CROSS JOIN tab2
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc

query I rowsort
SELECT ALL - col0 + + col2 + + col1 * + col2 AS col1 FROM tab0
----
2847
63
7455

query I rowsort
SELECT ALL col0 + col2 * col1 * - col1 + col2 * col0 FROM tab2
----
-25751
-7901
-88400

onlyif mysql # use DIV operator for integer division
query I rowsort label-1866
SELECT - col1 DIV - tab1.col2 + + col0 + - tab1.col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1866
SELECT - col1 / - tab1.col2 + + col0 + - tab1.col0 FROM tab1
----
0
0
0

query I rowsort
SELECT col1 + tab0.col0 * + col1 + + col0 FROM tab0
----
2174
3527
8279

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + col0 * col1 - + col1 * col2 col2 FROM tab0 AS cor0
----
-860
3201
546

query I rowsort
SELECT + col0 * - col1 + + col0 FROM tab1 AS cor0
----
-576
-75
-960

onlyif mysql # use DIV operator for integer division
query I rowsort label-1870
SELECT DISTINCT cor0.col0 DIV - col2 FROM tab0 AS cor0
----
-1
-35
0

skipif mysql # not compatible
query I rowsort label-1870
SELECT DISTINCT cor0.col0 / - col2 FROM tab0 AS cor0
----
-1
-35
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * col2 * - col0 col1 FROM tab0 AS cor0
----
-3395
-664118
-68112

query I rowsort
SELECT DISTINCT col1 * - cor0.col2 * - cor0.col2 AS col1 FROM tab1 AS cor0
----
119808
32490
75816

query I rowsort
SELECT - col2 + - col1 * col0 FROM tab2
----
-1381
-244
-4628

query I rowsort
SELECT col2 + - col2 + col2 FROM tab2
----
26
27
38

query I rowsort
SELECT + tab0.col0 + - col0 * - col0 AS col0 FROM tab0
----
1260
600
8010

query I rowsort
SELECT DISTINCT - col0 FROM tab2 AS cor0 WHERE ( col0 * col1 / + col0 ) BETWEEN NULL AND ( NULL )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-1877
SELECT col2 DIV + col0 + + col0 FROM tab1 cor0
----
21
64
81

skipif mysql # not compatible
query I rowsort label-1877
SELECT col2 / + col0 + + col0 FROM tab1 cor0
----
21
64
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-1878
SELECT DISTINCT col0 + + col1 DIV col2 FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-1878
SELECT DISTINCT col0 + + col1 / col2 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT ALL col2 * + col1 + + col2 + + col1 * col1 * col0 FROM tab0 AS cor0
----
180375
329413
744553

query I rowsort
SELECT DISTINCT - cor0.col0 * - col2 * + col1 + col0 AS col0 FROM tab1 AS cor0
----
36544
4215
99920

query I rowsort
SELECT tab2.col0 - + col1 AS col2 FROM tab2
----
-24
19
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-1882
SELECT - col1 DIV col0 col0 FROM tab2 AS cor0
----
-4
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1882
SELECT - col1 / col0 col0 FROM tab2 AS cor0
----
-4
0
0

query I rowsort
SELECT DISTINCT + col2 * col1 * - cor0.col2 FROM tab0 AS cor0
----
-611884
-93654
-97

query I rowsort
SELECT ALL + - cor0.col2 + col1 * col2 AS col1 FROM tab2 cor0
----
1508
608
810

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - + col2 col0 FROM tab2
----
0
0
0

query I rowsort
SELECT cor0.col1 + - col2 - col2 AS col1 FROM tab0 cor0
----
-73
20
95

onlyif mysql # use DIV operator for integer division
query I rowsort label-1887
SELECT - cor0.col1 + + cor0.col2 + cor0.col2 DIV col0 FROM tab2 AS cor0
----
-1
-33
21

skipif mysql # not compatible
query I rowsort label-1887
SELECT - cor0.col1 + + cor0.col2 + cor0.col2 / col0 FROM tab2 AS cor0
----
-1
-33
21

query I rowsort
SELECT - + col0 * + col0 + - col0 - - col1 FROM tab2 AS cor0
----
-25
-6103
-6303

query I rowsort
SELECT ALL col0 * col2 * - col0 AS col2 FROM tab1
----
-233472
-486
-614400

onlyif mysql # use DIV operator for integer division
query I rowsort label-1890
SELECT ALL + tab2.col0 DIV - tab2.col1 FROM tab2
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-1890
SELECT ALL + tab2.col0 / - tab2.col1 FROM tab2
----
-1
-4
0

query I rowsort
SELECT DISTINCT + tab1.col2 * - col0 * - col0 AS col1 FROM tab1
----
233472
486
614400

query I rowsort
SELECT tab0.col1 - col1 * tab0.col1 FROM tab0
----
-7310
-8190
-9312

onlyif mysql # use DIV operator for integer division
query I rowsort label-1893
SELECT + tab0.col1 DIV + col2 + col0 AS col0 FROM tab0
----
132
26
90

skipif mysql # not compatible
query I rowsort label-1893
SELECT + tab0.col1 / + col2 + col0 AS col0 FROM tab0
----
132
26
90

query I rowsort
SELECT ALL col2 * 34 * col2 FROM tab1
----
110466
313344
99144

query I rowsort
SELECT ALL - 34 FROM tab1, tab2 AS cor0, tab0 cor1
----
27 values hashing to 5b88331e40da4796cc4826c442aa45f7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1896
SELECT + col2 * - CAST( NULL AS SIGNED ) * col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1896
SELECT + col2 * - CAST ( NULL AS INTEGER ) * col0 FROM tab2
----
NULL
NULL
NULL

query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab1, tab0 cor0, tab2 cor1
----
972 values hashing to 9600bdf5bac0caec3229e87170cc40b3

query I rowsort
SELECT col0 - - 71 * - col2 FROM tab1 AS cor0
----
-3831
-3983
-6736

query I rowsort
SELECT + col1 - - 69 AS col2 FROM tab2 AS cor0
----
100
128
86

query I rowsort
SELECT DISTINCT - ( - 16 ) * col2 AS col0 FROM tab0
----
1312
16
528

query I rowsort
SELECT - 72 + + cor0.col2 * + col1 AS col2 FROM tab0 cor0
----
25
2766
7390

query I rowsort
SELECT col0 + - col1 * + 58 FROM tab0 AS cor0
----
-4964
-5189
-5591

onlyif mysql # use DIV operator for integer division
query I rowsort label-1903
SELECT DISTINCT + col1 + cor0.col1 DIV - col2 FROM tab1 AS cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-1903
SELECT DISTINCT + col1 + cor0.col1 / - col2 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT ALL - 53 * - col2 FROM tab0 AS cor0
----
1749
4346
53

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1905
SELECT ( ( - tab1.col0 ) ) + CAST( NULL AS SIGNED ) / col0 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1905
SELECT ( ( - tab1.col0 ) ) + CAST ( NULL AS INTEGER ) / col0 AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 * col0 * tab1.col2 + + col2 AS col1 FROM tab1
----
-207879
-737184
-8694

onlyif mysql # use DIV operator for integer division
query I rowsort label-1907
SELECT - col1 - col2 DIV + col2 FROM tab0
----
-87
-92
-98

skipif mysql # not compatible
query I rowsort label-1907
SELECT - col1 - col2 / + col2 FROM tab0
----
-87
-92
-98

query I rowsort
SELECT + col2 * - col1 AS col1 FROM tab1 cor0
----
-1248
-1404
-570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col2 * 93 col0 FROM tab1, tab1 cor0
----
5022
5301
8928

query I rowsort
SELECT col1 * col0 * - col0 AS col1 FROM tab0 cor0
----
-118825
-49536
-720811

query I rowsort
SELECT ALL - - col0 + + col2 FROM tab2 cor0
----
104
117
34

query I rowsort
SELECT ALL col1 * + 67 * - 32 + - col1 AS col0 FROM tab2 cor0
----
-126555
-36465
-66495

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 * cor0.col1 col0 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT col2 * col0 * cor0.col0 FROM tab0 cor0
----
1225
19008
649522

query I rowsort
SELECT DISTINCT + 19 * col0 AS col2 FROM tab2
----
133
1482
1501

query I rowsort
SELECT DISTINCT - col2 * ( col0 ) AS col0 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT ALL cor0.col1 - 99 AS col1 FROM tab1 AS cor0
----
-73
-86
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * cor0.col2 col2 FROM tab0 AS cor0
----
-35
-7298
-792

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1919
SELECT + CAST( - 36 AS SIGNED ) + - col1 AS col1 FROM tab2 AS cor0
----
-53
-67
-95

skipif mysql # not compatible
query I rowsort label-1919
SELECT + CAST ( - 36 AS INTEGER ) + - col1 AS col1 FROM tab2 AS cor0
----
-53
-67
-95

query I rowsort
SELECT - + ( + 63 ) FROM tab0 AS cor0
----
-63
-63
-63

query I rowsort
SELECT - cor0.col2 * + 10 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cb7366d61d8626f6f9e921d948ac1ce2

query I rowsort
SELECT ALL + - cor0.col2 * - col0 FROM tab0 AS cor0
----
35
7298
792

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1923
SELECT + CAST( NULL AS SIGNED ) + col2 * col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1923
SELECT + CAST ( NULL AS INTEGER ) + col2 * col2 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + ( tab2.col0 * + col1 + + 53 ) AS col2 FROM tab2
----
1396
270
4655

onlyif mysql # use DIV operator for integer division
query I rowsort label-1925
SELECT DISTINCT - - col1 * col0 + col2 DIV col1 AS col2 FROM tab1 AS cor0
----
1047
645
80

skipif mysql # not compatible
query I rowsort label-1925
SELECT DISTINCT - - col1 * col0 + col2 / col1 AS col2 FROM tab1 AS cor0
----
1047
645
80

query I rowsort
SELECT ALL col1 * - col0 + col0 + - ( cor0.col1 ) * col2 FROM tab1 AS cor0
----
-1146
-1479
-2208

query I rowsort
SELECT ALL - + col2 + - col0 * + col1 * - col0 AS col0 FROM tab2 AS cor0
----
106059
1492
358930

query I rowsort
SELECT DISTINCT + - col2 - + col1 * + col1 AS col1 FROM tab0 AS cor0
----
-7429
-8363
-9410

query I rowsort
SELECT + - 20 * - col0 + + col1 * col0 AS col0 FROM tab1 AS cor0
----
138
1920
2640

query I rowsort
SELECT col1 * + col0 + + cor0.col0 FROM tab1 cor0
----
1120
704
81

query I rowsort
SELECT DISTINCT - + 69 + col1 * + cor0.col0 FROM tab1 AS cor0
----
571
9
971

query I rowsort
SELECT ALL - - ( - cor0.col2 ) * col1 AS col0 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT ALL + 11 * - col0 * col2 FROM tab0 AS cor0
----
-385
-80278
-8712

onlyif mysql # use DIV operator for integer division
query I rowsort label-1934
SELECT + CAST( - col1 AS SIGNED ) - cor0.col2 DIV - col0 AS col0 FROM tab1 cor0
----
-10
-12
-8

skipif mysql # not compatible
query I rowsort label-1934
SELECT + CAST ( - col1 AS INTEGER ) - cor0.col2 / - col0 AS col0 FROM tab1 cor0
----
-10
-12
-8

onlyif mysql # use DIV operator for integer division
query I rowsort label-1935
SELECT - col2 + cor0.col0 DIV col0 FROM tab0 AS cor0
----
-32
-81
0

skipif mysql # not compatible
query I rowsort label-1935
SELECT - col2 + cor0.col0 / col0 FROM tab0 AS cor0
----
-32
-81
0

query I rowsort
SELECT DISTINCT - - 79 + ( col1 ) AS col0 FROM tab1 AS cor0
----
105
89
92

query I rowsort
SELECT DISTINCT + 33 * + col1 + - col2 FROM tab1 AS cor0
----
273
333
804

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 24 + + ( col2 ) - + col1 col0 FROM tab2
----
-9
20
45

query I rowsort
SELECT - col0 * 0 AS col1 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT + col1 + cor0.col2 * 43 AS col1 FROM tab2 AS cor0
----
1177
1192
1651

query I rowsort
SELECT ALL col1 + - col0 * + 23 + - col2 * col2 AS col0 FROM tab2 cor0
----
-2411
-3244
-859

query I rowsort
SELECT ALL + tab1.col1 + col2 + col0 * + 29 FROM tab1
----
167
1923
2429

query I rowsort
SELECT ALL - + col0 * + 5 * col0 FROM tab0 AS cor0
----
-2880
-39605
-6125

query I rowsort
SELECT - col1 * - ( - 59 ) FROM tab1 AS cor0
----
-1534
-590
-767

query I rowsort
SELECT DISTINCT 80 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 31 + - 78 col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 6942a0d9558277afd0d00408d65cf5aa

query I rowsort
SELECT ALL - col0 - - 12 FROM tab1 AS cor0
----
-52
-68
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-1948
SELECT DISTINCT - cor0.col0 - 90 * col0 DIV + col2 FROM tab0 AS cor0
----
-186
-3185
-89

skipif mysql # not compatible
query I rowsort label-1948
SELECT DISTINCT - cor0.col0 - 90 * col0 / + col2 FROM tab0 AS cor0
----
-186
-3185
-89

query I rowsort
SELECT - cor0.col2 * - 33 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e7820be5709e09416ae743ae8b4ffc47

query I rowsort
SELECT ALL + tab1.col1 * - col2 * col1 - col0 * col1 AS col0 FROM tab1
----
-17264
-36582
-6340

onlyif mysql # use DIV operator for integer division
query I rowsort label-1951
SELECT ALL col0 DIV + col0 - col2 AS col0 FROM tab1
----
-53
-56
-95

skipif mysql # not compatible
query I rowsort label-1951
SELECT ALL col0 / + col0 - col2 AS col0 FROM tab1
----
-53
-56
-95

onlyif mysql # use DIV operator for integer division
query I rowsort label-1952
SELECT col1 DIV - 35 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-1952
SELECT col1 / - 35 FROM tab2
----
-1
0
0

query I rowsort
SELECT ALL + col2 * + col1 * - col2 + col0 * + col0 * 58 FROM tab2 AS cor0
----
-19757
312988
337430

query I rowsort
SELECT ALL + col0 * col0 - col2 FROM tab0
----
1224
543
7839

query I rowsort
SELECT ALL 71 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 95a6ff35b7b8f00868fb58bcaa32d0c2

query I rowsort
SELECT ALL col1 + + col2 * - 40 AS col2 FROM tab0 AS cor0
----
-1234
-3189
57

query I rowsort
SELECT DISTINCT + col0 * - cor0.col1 + col2 FROM tab0 cor0
----
-2031
-3394
-8017

query I rowsort
SELECT DISTINCT + col1 * - 95 FROM tab0 AS cor0
----
-8170
-8645
-9215

onlyif mysql # use DIV operator for integer division
query I rowsort label-1959
SELECT + col0 DIV ( col1 ) FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1959
SELECT + col0 / ( col1 ) FROM tab0 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-1960
SELECT ALL col1 DIV ( col0 ) FROM tab2 AS cor0
----
0
0
4

skipif mysql # not compatible
query I rowsort label-1960
SELECT ALL col1 / ( col0 ) FROM tab2 AS cor0
----
0
0
4

query I rowsort
SELECT + + ( - cor0.col0 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 3000337dd3f11e9cfd5a312b01ef3f8b

query I rowsort
SELECT + 93 * + cor0.col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d5481c0e976f89c76e5a8641fa15ecb8

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1963
SELECT DISTINCT + CAST( 65 + - col0 AS SIGNED ) * + col2 AS col0 FROM tab1
----
-1440
3348
57

skipif mysql # not compatible
query I rowsort label-1963
SELECT DISTINCT + CAST ( 65 + - col0 AS INTEGER ) * + col2 AS col0 FROM tab1
----
-1440
3348
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + 72 col1 FROM tab0 AS cor0
----
105
154
73

query I rowsort
SELECT ALL + + 55 * - col0 + + col0 * ( col0 ) + - col2 AS col1 FROM tab1 AS cor0
----
-210
1904
519

query I rowsort
SELECT ALL - - 39 - col2 AS col1 FROM tab2 AS cor0
----
1
12
13

query I rowsort
SELECT - - 87 + col1 FROM tab0 AS cor0
----
173
178
184

query I rowsort
SELECT DISTINCT - ( 62 ) + + col2 FROM tab1 AS cor0
----
-5
-8
34

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1969
SELECT DISTINCT - - col2 * col0 - col1 * - CAST( col2 * cor0.col0 AS SIGNED ) FROM tab2 AS cor0
----
121680
54036
6048

skipif mysql # not compatible
query I rowsort label-1969
SELECT DISTINCT - - col2 * col0 - col1 * - CAST ( col2 * cor0.col0 AS INTEGER ) FROM tab2 AS cor0
----
121680
54036
6048

query I rowsort
SELECT - cor0.col2 * cor0.col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 18f45a7edd86e3eccc832dcdb6123662

query I rowsort
SELECT 6 + + col2 AS col1 FROM tab2
----
32
33
44

query I rowsort
SELECT 70 AS col2 FROM tab1, tab2 cor0, tab2 AS cor1
----
27 values hashing to c76157a7a7ec18de56823b2058b49f32

query I rowsort
SELECT DISTINCT 26 * col2 AS col2 FROM tab1
----
1404
1482
2496

query I rowsort
SELECT - col2 * col0 - 18 * ( col0 * col1 + 73 ) FROM tab0
----
-154394
-39258
-62459

query I rowsort
SELECT - 1 * - tab0.col2 FROM tab0, tab1, tab1 cor0
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT - 74 + col2 FROM tab0
----
-41
-73
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 * col2 col1 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT - 1 + col0 * col1 * col2 + col2 * + 20 FROM tab2 AS cor0
----
120171
51793
6398

query I rowsort
SELECT DISTINCT - col1 * - 79 + col2 * col0 FROM tab0 cor0
----
14487
7586
7698

query I rowsort
SELECT ALL - + col2 * cor0.col2 AS col0 FROM tab0 cor0
----
-1
-1089
-6724

onlyif mysql # use DIV operator for integer division
query I rowsort label-1981
SELECT + col0 DIV CAST( - col0 + col2 AS SIGNED ) AS col2 FROM tab0 cor0
----
-1
-12
2

skipif mysql # not compatible
query I rowsort label-1981
SELECT + col0 / CAST ( - col0 + col2 AS INTEGER ) AS col2 FROM tab0 cor0
----
-1
-12
2

query I rowsort
SELECT col0 * 20 AS col0 FROM tab2 cor0
----
140
1560
1580

query I rowsort
SELECT ALL + col0 * - col2 + cor0.col0 + - col1 * + col1 AS col1 FROM tab0 AS cor0
----
-15490
-8164
-9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-1984
SELECT DISTINCT - col1 + - col2 DIV col0 FROM tab0 AS cor0
----
-87
-91
-97

skipif mysql # not compatible
query I rowsort label-1984
SELECT DISTINCT - col1 + - col2 / col0 FROM tab0 AS cor0
----
-87
-91
-97

query I rowsort
SELECT DISTINCT - col1 * - 94 AS col0 FROM tab1 AS cor0
----
1222
2444
940

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1986
SELECT cor0.col0 * CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1986
SELECT cor0.col0 * CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + tab1.col2 * col2 col0 FROM tab1
----
2862
3192
9120

query I rowsort
SELECT + col2 FROM tab1 WHERE col1 <> NULL
----

query I rowsort
SELECT ALL - col2 * + col0 FROM tab0 WHERE ( NULL ) IN ( + col2 )
----

query I rowsort
SELECT ALL - col1 - - col1 AS col1 FROM tab1 WHERE NOT NULL NOT IN ( col0 * col0 )
----

query I rowsort
SELECT ALL - 69 * + cor0.col2 AS col2 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 67c4c71905fce3565e1e5bd7a28a8850

query I rowsort
SELECT ALL 6 * tab1.col0 + 63 AS col1 FROM tab1
----
447
543
81

query I rowsort
SELECT + 19 * - col0 AS col2 FROM tab1
----
-1216
-1520
-57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab1.col2 col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17

onlyif mysql # use DIV operator for integer division
query I rowsort label-1995
SELECT ALL + + ( col1 ) + 24 DIV + col1 AS col0 FROM tab2 AS cor0
----
18
31
59

skipif mysql # not compatible
query I rowsort label-1995
SELECT ALL + + ( col1 ) + 24 / + col1 AS col0 FROM tab2 AS cor0
----
18
31
59

query I rowsort
SELECT - ( - col2 * 47 ) FROM tab1
----
2538
2679
4512

onlyif mysql # use DIV operator for integer division
query I rowsort label-1997
SELECT DISTINCT - 5 * col0 DIV - col0 FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-1997
SELECT DISTINCT - 5 * col0 / - col0 FROM tab1
----
5

onlyif mysql # use DIV operator for integer division
query I rowsort label-1998
SELECT DISTINCT + col0 * col2 + - col0 DIV col0 AS col0 FROM tab2
----
188
2027
3001

skipif mysql # not compatible
query I rowsort label-1998
SELECT DISTINCT + col0 * col2 + - col0 / col0 AS col0 FROM tab2
----
188
2027
3001

query I rowsort
SELECT - col0 / col2 AS col2 FROM tab0 WHERE ( NULL ) > col2
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL ) NOT IN ( col1 * col1 + col1 * - col2 )
----

query III rowsort
SELECT * FROM tab0 WHERE + col2 > ( NULL )
----

query I rowsort
SELECT ALL col0 * - tab1.col2 - col1 FROM tab1 WHERE + col1 * col1 + - col0 IN ( - col1 )
----

query I rowsort
SELECT tab0.col0 * + col0 + col2 FROM tab0
----
1226
609
8003

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) IN ( col2 * - col1 + - tab2.col0 * - col1 )
----

query I rowsort
SELECT ALL + col1 - col2 * + col2 FROM tab2
----
-1427
-617
-698

query I rowsort
SELECT - col1 * - tab2.col0 + col1 FROM tab2
----
1360
248
4661

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col2 * tab0.col2 NOT IN ( - tab0.col1 )
----

query I rowsort
SELECT ALL col0 * col1 FROM tab0 WHERE NOT NULL NOT IN ( + col1 * tab0.col0 + tab0.col1 )
----

query I rowsort
SELECT DISTINCT + col1 * col2 + + col1 FROM tab1
----
1261
1430
580

query I rowsort
SELECT ALL + col2 - - tab2.col0 AS col0 FROM tab2
----
104
117
34

query I rowsort
SELECT col2 * + col2 + - col1 + col1 * - col2 FROM tab2
----
-139
-917
781

query I rowsort
SELECT ALL + col1 * - tab0.col2 * col1 AS col1 FROM tab0
----
-244068
-679042
-9409

query I rowsort
SELECT + col1 + - col1 * tab2.col1 AS col0 FROM tab2
----
-272
-3422
-930

query I rowsort
SELECT DISTINCT 69 + 89 FROM tab2, tab0, tab2 AS cor0
----
158

query I rowsort
SELECT - 27 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 90b76caf54a4e48ee4a9784f52997a6a

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2016
SELECT ALL - CAST( col1 + col2 AS SIGNED ) AS col2 FROM tab1
----
-109
-67
-80

skipif mysql # not compatible
query I rowsort label-2016
SELECT ALL - CAST ( col1 + col2 AS INTEGER ) AS col2 FROM tab1
----
-109
-67
-80

onlyif mysql # use DIV operator for integer division
query I rowsort label-2017
SELECT ALL ( + 98 ) DIV + col1 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2017
SELECT ALL ( + 98 ) / + col1 FROM tab0
----
1
1
1

query I rowsort
SELECT 73 * - col0 * + col2 AS col1 FROM tab2 AS cor0
----
-13797
-148044
-219146

query I rowsort
SELECT 75 + + col0 * - col1 FROM tab0 AS cor0
----
-1989
-3320
-8024

query I rowsort
SELECT DISTINCT tab0.col2 * + tab0.col2 * col0 + + col2 FROM tab0
----
26169
36
598518

query I rowsort
SELECT - 82 * cor0.col2 FROM tab0 cor0
----
-2706
-6724
-82

query I rowsort
SELECT + col1 + + cor0.col1 * ( col0 ) FROM tab0 AS cor0
----
2150
3492
8190

query I rowsort
SELECT + col1 * + cor0.col2 * - 90 AS col0 FROM tab1 AS cor0
----
-112320
-126360
-51300

query I rowsort
SELECT DISTINCT - ( cor0.col0 ) + + col1 AS col1 FROM tab0 AS cor0
----
2
62

query I rowsort
SELECT col2 + - cor0.col2 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + col2 * col2 + - ( 32 ) FROM tab0 AS cor0
----
-31
1057
6692

query I rowsort
SELECT ALL + - 13 FROM tab0 cor0
----
-13
-13
-13

onlyif mysql # use DIV operator for integer division
query I rowsort label-2028
SELECT ALL - col0 * - col2 + + col1 DIV col2 FROM tab0 AS cor0
----
132
7299
794

skipif mysql # not compatible
query I rowsort label-2028
SELECT ALL - col0 * - col2 + + col1 / col2 FROM tab0 AS cor0
----
132
7299
794

query I rowsort
SELECT DISTINCT col2 + + col1 * + ( + cor0.col2 ) - col2 * - ( col1 ) AS col1 FROM tab0 AS cor0
----
15006
195
5709

onlyif mysql # use DIV operator for integer division
query I rowsort label-2030
SELECT + - col1 DIV col0 + col2 FROM tab2 AS cor0
----
23
26
38

skipif mysql # not compatible
query I rowsort label-2030
SELECT + - col1 / col0 + col2 FROM tab2 AS cor0
----
23
26
38

query I rowsort
SELECT + - cor0.col0 + - col2 * col2 AS col0 FROM tab0 AS cor0
----
-1113
-36
-6813

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2032
SELECT + + col2 / CAST( NULL AS SIGNED ) - - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2032
SELECT + + col2 / CAST ( NULL AS INTEGER ) - - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2033
SELECT tab2.col0 / CAST( NULL AS DECIMAL ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2033
SELECT tab2.col0 / CAST ( NULL AS REAL ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 67 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-67

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab1, tab0 AS cor2
----
3645 values hashing to 64312dc66df177d8c745c63c0bdd4dc7

query I rowsort
SELECT + col1 + 66 AS col2 FROM tab0 AS cor0
----
152
157
163

query I rowsort
SELECT + + col0 + - col0 * + col0 * - col0 AS col2 FROM tab2 AS cor0
----
350
474630
493118

query I rowsort
SELECT + col2 * - col2 + ( + cor0.col2 ) FROM tab1 AS cor0
----
-2862
-3192
-9120

query I rowsort
SELECT - col0 * col0 - col2 AS col1 FROM tab0 AS cor0
----
-1226
-609
-8003

query I rowsort
SELECT - col0 + ( col0 * + col0 ) FROM tab2 AS cor0
----
42
6006
6162

query I rowsort
SELECT - 98 * - col2 FROM tab2 AS cor0
----
2548
2646
3724

query I rowsort
SELECT - - ( cor1.col1 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 50 col2 FROM tab0, tab0 AS cor0
----
-50

query I rowsort
SELECT 21 - - 82 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to a6436390b76d026d00c9c9e8c68d8420

query I rowsort
SELECT 27 + - col2 AS col1 FROM tab2
----
-11
0
1

query I rowsort
SELECT DISTINCT tab0.col2 * - col1 AS col0 FROM tab0
----
-2838
-7462
-97

query I rowsort
SELECT DISTINCT col0 + col2 * - 87 AS col0 FROM tab0 AS cor0
----
-2847
-52
-7045

query I rowsort
SELECT ALL + + 49 * col0 * col0 + - col2 * - col0 * 29 AS col0 FROM tab1 AS cor0
----
306496
5139
536320

query I rowsort
SELECT DISTINCT + + col1 + 27 * col2 FROM tab1 AS cor0
----
1484
1549
2605

query I rowsort
SELECT ALL + + col0 + + 38 AS col2 FROM tab1 cor0
----
102
118
41

query I rowsort
SELECT + + col1 * 22 - col1 AS col2 FROM tab1 AS cor0
----
210
273
546

onlyif mysql # use DIV operator for integer division
query I rowsort label-2052
SELECT DISTINCT + col2 + - col0 - + col1 DIV col2 AS col1 FROM tab1 AS cor0
----
-7
16
51

skipif mysql # not compatible
query I rowsort label-2052
SELECT DISTINCT + col2 + - col0 - + col1 / col2 AS col1 FROM tab1 AS cor0
----
-7
16
51

query I rowsort
SELECT + + col1 - 32 AS col2 FROM tab0 cor0
----
54
59
65

query I rowsort
SELECT ALL + col0 * ( 15 ) AS col2 FROM tab2 AS cor0
----
105
1170
1185

query I rowsort
SELECT - col1 * - ( - 0 ) FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - col0 * col2 - + tab2.col2 * - tab2.col0 FROM tab2
----
0

query I rowsort
SELECT DISTINCT col1 - cor0.col0 FROM tab2 cor0
----
-19
-62
24

query I rowsort
SELECT + col2 * 56 * col1 - col0 * col1 * 15 FROM tab1 cor0
----
22320
54288
77454

query I rowsort
SELECT 64 * + col2 + col2 AS col2 FROM tab1
----
3510
3705
6240

query I rowsort
SELECT DISTINCT col2 * col1 - - col1 FROM tab0
----
194
2924
7553

query I rowsort
SELECT - 41 + col0 AS col2 FROM tab0
----
-17
-6
48

query I rowsort
SELECT ALL - - col0 * + cor0.col0 + col0 * cor0.col0 FROM tab1 AS cor0
----
12800
18
8192

onlyif mysql # use DIV operator for integer division
query I rowsort label-2063
SELECT ALL - col1 * ( col0 ) + col1 DIV 12 AS col0 FROM tab0 AS cor0
----
-2057
-3387
-8092

skipif mysql # not compatible
query I rowsort label-2063
SELECT ALL - col1 * ( col0 ) + col1 / 12 AS col0 FROM tab0 AS cor0
----
-2057
-3387
-8092

query I rowsort
SELECT DISTINCT 54 + col2 FROM tab0 AS cor0
----
136
55
87

query I rowsort
SELECT ALL + 7 AS col0 FROM tab0 AS cor0
----
7
7
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-2066
SELECT - + 55 + - col1 DIV col0 AS col0 FROM tab2 AS cor0
----
-55
-55
-59

skipif mysql # not compatible
query I rowsort label-2066
SELECT - + 55 + - col1 / col0 AS col0 FROM tab2 AS cor0
----
-55
-55
-59

onlyif mysql # use DIV operator for integer division
query I rowsort label-2067
SELECT DISTINCT - col1 DIV 21 FROM tab1 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-2067
SELECT DISTINCT - col1 / 21 FROM tab1 AS cor0
----
-1
0

query I rowsort
SELECT + 99 * - col2 AS col2 FROM tab0 AS cor0
----
-3267
-8118
-99

query I rowsort
SELECT DISTINCT - ( col1 ) + col1 * cor0.col2 AS col2 FROM tab0 AS cor0
----
0
2752
7371

query I rowsort
SELECT - col0 + - cor0.col0 + col2 FROM tab1 AS cor0
----
-64
-71
48

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2071
SELECT DISTINCT + - CAST( NULL AS SIGNED ) * cor0.col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2071
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) * cor0.col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - col0 + cor0.col2 + col1 * col2 FROM tab0 AS cor0
----
2847
63
7455

query I rowsort
SELECT DISTINCT cor0.col0 + 10 * + cor0.col2 AS col1 FROM tab2 AS cor0
----
277
338
459

query I rowsort
SELECT 22 + col1 * - cor0.col2 FROM tab0 AS cor0
----
-2816
-7440
-75

query I rowsort
SELECT ALL col1 + 97 AS col1 FROM tab1 cor0
----
107
110
123

query I rowsort
SELECT 18 FROM tab2, tab2 cor0
----
9 values hashing to b95bafa733666df39c5d3f94760d010f

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2077
SELECT DISTINCT - CAST( NULL AS DECIMAL ) + - cor0.col0 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2077
SELECT DISTINCT - CAST ( NULL AS REAL ) + - cor0.col0 AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + col1 * - 63 AS col1 FROM tab0 AS cor0
----
-5418
-5733
-6111

query I rowsort
SELECT ALL - + ( col1 ) * col2 FROM tab2 cor0
----
-1534
-646
-837

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 + + 68 * cor0.col1 + + 47 col2 FROM tab1 AS cor0
----
1027
1869
784

onlyif mysql # use DIV operator for integer division
query I rowsort label-2081
SELECT + - ( 40 ) DIV col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2081
SELECT + - ( 40 ) / col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - 16 * - col2 AS col0 FROM tab1 AS cor0
----
1536
864
912

query I rowsort
SELECT ALL + 77 AS col1 FROM tab1, tab1 AS cor0, tab2 cor1, tab2, tab2 AS cor2
----
243 values hashing to 8ccc811400e876777c9ee75b1bb4b694

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + - col1 col1 FROM tab1 cor0
----
-29
-74
-93

query I rowsort
SELECT - 17 - col2 AS col0 FROM tab1
----
-113
-71
-74

query I rowsort
SELECT ALL - col2 - + col0 * - ( col0 + col0 ) FROM tab2 AS cor0
----
12142
12444
71

query I rowsort
SELECT DISTINCT cor0.col0 * col2 FROM tab2 cor0
----
189
2028
3002

query I rowsort
SELECT DISTINCT - + cor0.col0 + col2 * col0 AS col1 FROM tab1 AS cor0
----
159
3584
7600

query I rowsort
SELECT DISTINCT 85 * - cor0.col0 + + ( - 4 ) * col2 * col0 AS col2 FROM tab2 AS cor0
----
-1351
-14742
-18723

query I rowsort
SELECT ALL col2 * + col0 * ( + tab2.col2 ) FROM tab2
----
114076
5103
52728

query I rowsort
SELECT DISTINCT 40 + col2 AS col1 FROM tab2 cor0
----
66
67
78

query I rowsort
SELECT DISTINCT - col1 + + cor0.col0 * col2 FROM tab2 AS cor0
----
158
1969
2985

query I rowsort
SELECT + 18 * + 61 + + col1 FROM tab1 AS cor0
----
1108
1111
1124

query I rowsort
SELECT + col2 + - 66 FROM tab1
----
-12
-9
30

query I rowsort
SELECT DISTINCT + cor0.col2 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
54
57
96

query I rowsort
SELECT + 80 AS col2 FROM tab2
----
80
80
80

query I rowsort
SELECT col1 * 33 FROM tab0
----
2838
3003
3201

query I rowsort
SELECT - col1 * col0 + - col0 AS col1 FROM tab2 cor0
----
-1422
-224
-4680

query I rowsort
SELECT ALL + 44 + - col1 AS col0 FROM tab0 AS cor0
----
-42
-47
-53

onlyif mysql # use DIV operator for integer division
query I rowsort label-2100
SELECT DISTINCT - col1 DIV - 62 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2100
SELECT DISTINCT - col1 / - 62 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL + 6 * - 49 * col0 FROM tab1 AS cor0
----
-18816
-23520
-882

query I rowsort
SELECT DISTINCT + cor0.col2 * + 23 AS col1 FROM tab1, tab0 AS cor0
----
1886
23
759

query I rowsort
SELECT DISTINCT + col1 + - ( - 12 ) AS col2 FROM tab0 AS cor0
----
103
109
98

query I rowsort
SELECT + + col2 * - col0 * + col1 AS col1 FROM tab1 AS cor0
----
-36480
-4212
-99840

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2105
SELECT + CAST( NULL AS SIGNED ) AS col2 FROM tab2, tab0 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2105
SELECT + CAST ( NULL AS INTEGER ) AS col2 FROM tab2, tab0 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + 20 * + col1 col1 FROM tab0 AS cor0
----
1753
1902
1941

query I rowsort
SELECT - col0 * ( cor0.col0 ) + col0 + - cor0.col1 AS col2 FROM tab1 AS cor0
----
-32
-4042
-6333

onlyif mysql # use DIV operator for integer division
query I rowsort label-2108
SELECT + col2 DIV + 9 + col0 FROM tab0 AS cor0
----
27
35
98

skipif mysql # not compatible
query I rowsort label-2108
SELECT + col2 / + 9 + col0 FROM tab0 AS cor0
----
27
35
98

query I rowsort
SELECT + - col2 * - col1 + + col2 AS col2 FROM tab0 AS cor0
----
2871
7544
98

query I rowsort
SELECT - col2 + + cor0.col0 + + 76 FROM tab1 AS cor0
----
25
60
83

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2111
SELECT + + CAST( NULL AS SIGNED ) * - 73 * + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2111
SELECT + + CAST ( NULL AS INTEGER ) * - 73 * + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + 82 * + col2 FROM tab2 AS cor0
----
2132
2214
3116

query I rowsort
SELECT 27 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8

query I rowsort
SELECT DISTINCT + - 14 * col2 * col2 - + ( col1 ) * + col2 FROM tab1 AS cor0
----
-130272
-42228
-46056

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 37 * col0 - + 95 col2 FROM tab0 cor0
----
1200
3198
793

query I rowsort
SELECT col0 * - col1 * col1 AS col2 FROM tab0 AS cor0
----
-177504
-329315
-737009

query I rowsort
SELECT DISTINCT - + cor0.col1 + - col0 * col2 AS col0 FROM tab0 AS cor0
----
-132
-7389
-878

query I rowsort
SELECT - - col1 * col1 + ( col1 * + col2 + - col0 ) FROM tab2 AS cor0
----
1791
4937
856

onlyif mysql # use DIV operator for integer division
query I rowsort label-2119
SELECT ( cor0.col0 ) * 63 + - col1 DIV col1 AS col1 FROM tab1 AS cor0
----
188
4031
5039

skipif mysql # not compatible
query I rowsort label-2119
SELECT ( cor0.col0 ) * 63 + - col1 / col1 AS col1 FROM tab1 AS cor0
----
188
4031
5039

query I rowsort
SELECT DISTINCT - tab2.col0 * 97 AS col1 FROM tab2, tab0 AS cor0
----
-679
-7566
-7663

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2121
SELECT DISTINCT CAST( NULL AS SIGNED ) col2 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2121
SELECT DISTINCT CAST ( NULL AS INTEGER ) col2 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
NULL

query I rowsort
SELECT + 83 + col1 FROM tab0
----
169
174
180

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 21 col1 FROM tab1
----
21
21
21

query I rowsort
SELECT col2 * + col2 * col2 AS col0 FROM tab1
----
157464
185193
884736

query I rowsort
SELECT ( - col0 ) * - 49 * tab0.col1 FROM tab0
----
101136
166355
396851

query I rowsort
SELECT ALL col2 + 1 + - 10 AS col2 FROM tab0 cor0
----
-8
24
73

query I rowsort
SELECT ALL + ( - col0 ) * col2 * col0 AS col2 FROM tab2
----
-1323
-158184
-237158

query I rowsort
SELECT ALL col1 + ( 33 ) FROM tab1
----
43
46
59

query I rowsort
SELECT - + col1 + - col0 + - col0 FROM tab2 AS cor0
----
-175
-215
-45

query I rowsort
SELECT - + col0 * + col2 + col2 * col1 AS col1 FROM tab0 cor0
----
164
2046
62

query I rowsort
SELECT ALL 21 * 20 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 9c94863ad19129504220d0f9e9d33832

query I rowsort
SELECT + col1 * + 78 FROM tab2
----
1326
2418
4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-2133
SELECT DISTINCT - col0 + + 75 DIV 8 FROM tab1
----
-55
-71
6

skipif mysql # not compatible
query I rowsort label-2133
SELECT DISTINCT - col0 + + 75 / 8 FROM tab1
----
-55
-71
6

query I rowsort
SELECT DISTINCT + col2 + - col1 + tab1.col2 AS col1 FROM tab1
----
104
179
82

query I rowsort
SELECT ALL - 67 * col0 - - 68 FROM tab1 AS cor0
----
-133
-4220
-5292

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * ( + col2 ) col0 FROM tab1
----
162
3648
7680

query I rowsort
SELECT ALL cor0.col2 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT ( + col2 ) + + col2 AS col0 FROM tab2
----
52
54
76

query I rowsort
SELECT 67 * col0 * col2 + + col2 AS col0 FROM tab1
----
10908
244473
514656

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - col1 ) col2 FROM tab0
----
-86
-91
-97

query I rowsort
SELECT - - cor0.col0 * col2 - cor0.col2 AS col2 FROM tab2 AS cor0
----
162
2002
2964

query I rowsort
SELECT - col0 + - col2 + + col2 AS col1 FROM tab2
----
-7
-78
-79

onlyif mysql # use DIV operator for integer division
query I rowsort label-2143
SELECT ( col0 ) * 65 DIV + col0 + col0 col0 FROM tab1 cor0
----
129
145
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2143
SELECT ( col0 ) * 65 / + col0 + col0 col0 FROM tab1 cor0
----
129
145
68

query I rowsort
SELECT DISTINCT - 29 + - col1 * - col1 AS col0 FROM tab1 AS cor0
----
140
647
71

query I rowsort
SELECT 74 - col2 FROM tab1 AS cor0
----
-22
17
20

query I rowsort
SELECT - col2 + col0 + - 69 * 17 AS col0 FROM tab0 AS cor0
----
-1139
-1166
-1182

query I rowsort
SELECT 77 - + col0 AS col2 FROM tab0 cor0
----
-12
42
53

query I rowsort
SELECT - 87 * - col2 - - cor0.col2 AS col0 FROM tab2 AS cor0
----
2288
2376
3344

query I rowsort
SELECT DISTINCT - col1 * - 11 AS col0 FROM tab2
----
187
341
649

onlyif mysql # use DIV operator for integer division
query I rowsort label-2150
SELECT ALL - - 95 DIV - col0 + - col2 * col2 AS col2 FROM tab0 AS cor0
----
-1092
-3
-6725

skipif mysql # not compatible
query I rowsort label-2150
SELECT ALL - - 95 / - col0 + - col2 * col2 AS col2 FROM tab0 AS cor0
----
-1092
-3
-6725

query I rowsort
SELECT + + ( cor0.col0 ) AS col2 FROM tab1 cor0
----
3
64
80

query I rowsort
SELECT DISTINCT ( + cor0.col0 ) - col0 * + col0 FROM tab1 AS cor0
----
-4032
-6
-6320

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + 73 ) col0 FROM tab1 AS cor0
----
73

query I rowsort
SELECT cor0.col1 * 89 AS col2 FROM tab0 AS cor0
----
7654
8099
8633

query I rowsort
SELECT - col2 * col2 + - 5 FROM tab0
----
-1094
-6
-6729

query I rowsort
SELECT - cor0.col1 AS col0 FROM tab0, tab1 AS cor0, tab0 AS cor1, tab2 AS cor2
----
81 values hashing to 96e9ef2950805bca93a295eeea43ef5b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 94 col2 FROM tab1 cor0
----
94
94
94

query I rowsort
SELECT ALL - cor0.col2 * + 36 FROM tab2 AS cor0
----
-1368
-936
-972

query I rowsort
SELECT DISTINCT + - 34 * col2 FROM tab1 AS cor0
----
-1836
-1938
-3264

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 69 col1 FROM tab1 cor0
----
-69
-69
-69

query I rowsort
SELECT cor0.col1 + 88 AS col0 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 92f87f957233febfe86bc179f47367c2

query I rowsort
SELECT ALL - - 6 - - col0 FROM tab2 AS cor0
----
13
84
85

query I rowsort
SELECT ALL - ( + 52 ) + col2 - col0 * - col2 FROM tab1 AS cor0
----
164
3653
7724

query I rowsort
SELECT ALL + col0 + ( cor0.col0 ) * - ( - 1 ) AS col2 FROM tab2 AS cor0
----
14
156
158

query I rowsort
SELECT DISTINCT - - 90 * - col1 + - col2 AS col0 FROM tab0 cor0
----
-7773
-8272
-8731

query I rowsort
SELECT DISTINCT + col1 + ( cor0.col1 ) FROM tab1 AS cor0
----
20
26
52

query I rowsort
SELECT DISTINCT + + 70 * 70 AS col1 FROM tab1 AS cor0
----
4900

query I rowsort
SELECT 73 * + 73 AS col1 FROM tab2 AS cor0
----
5329
5329
5329

onlyif mysql # use DIV operator for integer division
query I rowsort label-2169
SELECT ALL + 34 + col2 * col0 DIV 79 FROM tab2 AS cor0
----
36
59
72

skipif mysql # not compatible
query I rowsort label-2169
SELECT ALL + 34 + col2 * col0 / 79 FROM tab2 AS cor0
----
36
59
72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( + 24 ) col2 FROM tab2 AS cor0
----
-24
-24
-24

query I rowsort
SELECT DISTINCT cor0.col0 + 75 + col0 AS col0 FROM tab0 cor0
----
123
145
253

onlyif mysql # use DIV operator for integer division
query I rowsort label-2172
SELECT ALL - col1 + + col0 DIV - 58 AS col1 FROM tab2
----
-18
-31
-60

skipif mysql # not compatible
query I rowsort label-2172
SELECT ALL - col1 + + col0 / - 58 AS col1 FROM tab2
----
-18
-31
-60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 6 + + col0 * tab0.col1 + col2 col0 FROM tab0
----
2103
3402
8187

query I rowsort
SELECT 76 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5

onlyif mysql # use DIV operator for integer division
query I rowsort label-2175
SELECT + 32 DIV - 18 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b

skipif mysql # not compatible
query I rowsort label-2175
SELECT + 32 / - 18 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b

query I rowsort
SELECT - ( col1 ) * ( col0 * col1 ) FROM tab1
----
-13520
-2028
-6400

onlyif mysql # use DIV operator for integer division
query I rowsort label-2177
SELECT DISTINCT tab2.col0 + - col0 DIV - col0 FROM tab2
----
79
8
80

skipif mysql # not compatible
query I rowsort label-2177
SELECT DISTINCT tab2.col0 + - col0 / - col0 FROM tab2
----
79
8
80

query I rowsort
SELECT - 12 * + col0 + col2 * + col1 FROM tab2 AS cor0
----
-302
598
753

onlyif mysql # use DIV operator for integer division
query I rowsort label-2179
SELECT - - col1 * col1 DIV - 78 FROM tab0 AS cor0
----
-106
-120
-94

skipif mysql # not compatible
query I rowsort label-2179
SELECT - - col1 * col1 / - 78 FROM tab0 AS cor0
----
-106
-120
-94

query I rowsort
SELECT + 22 + + col2 * ( 10 + - col0 ) FROM tab2 AS cor0
----
-1746
-2600
103

query I rowsort
SELECT - + col2 * + col1 + + ( + 5 + col2 * col0 ) AS col2 FROM tab2 AS cor0
----
-643
2361
499

onlyif mysql # use DIV operator for integer division
query I rowsort label-2182
SELECT col2 * col2 + + cor0.col1 DIV col0 AS col1 FROM tab0 AS cor0
----
1092
3
6725

skipif mysql # not compatible
query I rowsort label-2182
SELECT col2 * col2 + + cor0.col1 / col0 AS col1 FROM tab0 AS cor0
----
1092
3
6725

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 + 43 + - col1 col2 FROM tab1 AS cor0
----
43
43
43

query I rowsort
SELECT ALL col0 + + 85 * col1 FROM tab0 AS cor0
----
7334
7824
8280

query I rowsort
SELECT - + cor0.col0 + cor0.col1 AS col0 FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT ALL + col0 * 27 FROM tab1 AS cor0
----
1728
2160
81

query I rowsort
SELECT + col0 * + ( 51 ) * - col1 AS col0 FROM tab0 AS cor0
----
-105264
-173145
-413049

query I rowsort
SELECT - 54 * - col1 FROM tab0
----
4644
4914
5238

query I rowsort
SELECT DISTINCT col0 * + col0 + tab2.col2 + ( - col1 ) AS col0 FROM tab2
----
45
6051
6262

query I rowsort
SELECT DISTINCT cor0.col1 * ( + ( col0 ) ) + col0 AS col2 FROM tab0 AS cor0
----
2088
3430
8188

onlyif mysql # use DIV operator for integer division
query I rowsort label-2191
SELECT + + col0 DIV 72 + 25 AS col1 FROM tab2 AS cor0
----
25
26
26

skipif mysql # not compatible
query I rowsort label-2191
SELECT + + col0 / 72 + 25 AS col1 FROM tab2 AS cor0
----
25
26
26

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2192
SELECT DISTINCT + col2 * CAST( + 89 AS SIGNED ) + col1 AS col1 FROM tab1 AS cor0
----
4832
5083
8557

skipif mysql # not compatible
query I rowsort label-2192
SELECT DISTINCT + col2 * CAST ( + 89 AS INTEGER ) + col1 AS col1 FROM tab1 AS cor0
----
4832
5083
8557

query I rowsort
SELECT DISTINCT + + cor0.col2 * 21 AS col0 FROM tab0, tab1 AS cor0, tab2, tab0 AS cor1
----
1134
1197
2016

query I rowsort
SELECT DISTINCT col0 + - ( ( + cor0.col2 ) ) * 16 AS col1 FROM tab0 AS cor0
----
-1223
-504
19

query I rowsort
SELECT DISTINCT + + col2 + 54 FROM tab2 AS cor0
----
80
81
92

query I rowsort
SELECT col1 + + col1 * ( col0 * 34 ) AS col2 FROM tab1 cor0
----
21770
2678
35373

onlyif mysql # use DIV operator for integer division
query I rowsort label-2197
SELECT - + col1 * cor0.col2 DIV - 73 + + col1 FROM tab0 cor0
----
124
193
98

skipif mysql # not compatible
query I rowsort label-2197
SELECT - + col1 * cor0.col2 / - 73 + + col1 FROM tab0 cor0
----
124
193
98

query I rowsort
SELECT - + col2 * 88 + 0 FROM tab1 AS cor0
----
-4752
-5016
-8448

query I rowsort
SELECT ALL - col2 * - 28 AS col1 FROM tab0 AS cor0
----
2296
28
924

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + col1 * col0 + + col0 * + ( col0 ) col0 FROM tab0 AS cor0
----
16102
2673
4621

query I rowsort
SELECT + col1 * - cor0.col0 + - col2 AS col2 FROM tab1 AS cor0
----
-1136
-132
-697

onlyif mysql # use DIV operator for integer division
query I rowsort label-2202
SELECT + col1 DIV col2 + col1 * + cor0.col2 + + 78 FROM tab0 cor0
----
272
2918
7541

skipif mysql # not compatible
query I rowsort label-2202
SELECT + col1 / col2 + col1 * + cor0.col2 + + 78 FROM tab0 cor0
----
272
2918
7541

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + 90 * col0 col0 FROM tab1 AS cor0
----
273
5824
7280

query I rowsort
SELECT - col2 * 70 AS col1 FROM tab0 cor0
----
-2310
-5740
-70

query I rowsort
SELECT + - cor0.col2 * 4 + - 84 FROM tab2 AS cor0
----
-188
-192
-236

query I rowsort
SELECT ALL col0 + col1 * col2 FROM tab1 AS cor0
----
1328
1407
634

query I rowsort
SELECT + col0 + ( + col2 + - col2 ) FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT - col2 + + col0 + - col0 FROM tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT 77 + col2 + + col1 FROM tab1 AS cor0
----
144
157
186

query I rowsort
SELECT - - 6 * - col1 + col0 + - 85 AS col2 FROM tab0 AS cor0
----
-542
-577
-632

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2211
SELECT ALL - col1 + + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2211
SELECT ALL - col1 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort
SELECT + CAST ( + col0 AS REAL ) AS col1 FROM tab0 cor0
----
24
35
89

query I rowsort
SELECT ALL + cor0.col1 * col0 AS col1 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT + 65 - - col0 * + col2 FROM tab1 AS cor0
----
227
3713
7745

onlyif mysql # use DIV operator for integer division
query I rowsort label-2215
SELECT DISTINCT + + col0 DIV + col0 - - col1 AS col1 FROM tab2 AS cor0
----
18
32
60

skipif mysql # not compatible
query I rowsort label-2215
SELECT DISTINCT + + col0 / + col0 - - col1 AS col1 FROM tab2 AS cor0
----
18
32
60

query I rowsort
SELECT DISTINCT + 21 * col2 - ( 28 + col1 ) * col0 AS col2 FROM tab1 AS cor0
----
-1235
-1264
972

query I rowsort
SELECT ALL - cor0.col0 + + col2 * col0 AS col2 FROM tab0 AS cor0
----
0
7209
768

onlyif mysql # use DIV operator for integer division
query I rowsort label-2218
SELECT - col0 * col0 * + ( + 90 ) - col0 DIV - col0 AS col1 FROM tab2 AS cor0
----
-4409
-547559
-561689

skipif mysql # not compatible
query I rowsort label-2218
SELECT - col0 * col0 * + ( + 90 ) - col0 / - col0 AS col1 FROM tab2 AS cor0
----
-4409
-547559
-561689

query I rowsort
SELECT 49 AS col2 FROM tab0, tab2 AS cor0 CROSS JOIN tab1
----
27 values hashing to a40d8754a5be3ce2309c61bfd3e00197

query I rowsort
SELECT - ( 59 ) + - col2 AS col1 FROM tab1
----
-113
-116
-155

query I rowsort
SELECT ALL + cor1.col2 FROM tab0, tab1 cor0, tab1 cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT ALL col1 + tab0.col2 AS col2 FROM tab0
----
119
173
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-2223
SELECT + 54 DIV col2 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2223
SELECT + 54 / col2 FROM tab1
----
0
0
1

query I rowsort
SELECT ALL - col2 * col2 + 56 AS col0 FROM tab2
----
-1388
-620
-673

onlyif mysql # use DIV operator for integer division
query I rowsort label-2225
SELECT 32 + - col2 DIV 93 + 48 * - col0 AS col1 FROM tab1
----
-112
-3040
-3809

skipif mysql # not compatible
query I rowsort label-2225
SELECT 32 + - col2 / 93 + 48 * - col0 AS col1 FROM tab1
----
-112
-3040
-3809

query I rowsort
SELECT col1 * col1 + col0 * + 29 * - col1 FROM tab2 AS cor0
----
-129977
-38658
-5332

query I rowsort
SELECT ALL - + col0 + - col0 AS col1 FROM tab2 cor0
----
-14
-156
-158

query I rowsort
SELECT DISTINCT - col2 + tab0.col2 AS col0 FROM tab0
----
0

query I rowsort
SELECT ALL tab0.col0 * + col0 + + 62 FROM tab0
----
1287
638
7983

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * 34 col2 FROM tab0
----
1190
3026
816

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab2.col2 col1 FROM tab2, tab1 cor0
----
26
27
38

query I rowsort
SELECT ( col2 ) + col0 * tab1.col1 FROM tab1
----
1136
132
697

query I rowsort
SELECT + 28 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97

query I rowsort
SELECT - 99 * + col2 FROM tab1 AS cor0
----
-5346
-5643
-9504

query I rowsort
SELECT ALL - col0 * - ( col1 ) + - col0 * 77 FROM tab0 AS cor0
----
1246
216
700

query I rowsort
SELECT - 49 * + col2 AS col2 FROM tab0 AS cor0
----
-1617
-4018
-49

query I rowsort
SELECT + 35 * + col0 * col0 + - col0 AS col1 FROM tab1 AS cor0
----
143296
223920
312

query I rowsort
SELECT 58 AS col2 FROM tab0, tab2 AS cor0, tab2 cor1
----
27 values hashing to 9ee363c6ac19cfdb8a50c7dfd5cc2b8a

query I rowsort
SELECT 58 * col0 FROM tab2 cor0
----
406
4524
4582

onlyif mysql # use DIV operator for integer division
query I rowsort label-2240
SELECT ALL - col1 DIV + col1 + + col2 * col2 + + col0 AS col0 FROM tab2 AS cor0
----
1522
735
753

skipif mysql # not compatible
query I rowsort label-2240
SELECT ALL - col1 / + col1 + + col2 * col2 + + col0 AS col0 FROM tab2 AS cor0
----
1522
735
753

query I rowsort
SELECT ALL col1 + ( cor0.col0 ) + col2 AS col2 FROM tab0 AS cor0
----
133
143
262

query I rowsort
SELECT ALL + + col2 * + 33 AS col0 FROM tab0 AS cor0
----
1089
2706
33

query I rowsort
SELECT DISTINCT - ( - cor0.col1 ) FROM tab0, tab0 AS cor0
----
86
91
97

query IIIIIIIII rowsort
SELECT * FROM tab2, tab0, tab1 AS cor0 WHERE NOT ( NULL ) IN ( + cor0.col2 )
----

query I rowsort
SELECT col0 * ( 69 ) FROM tab2
----
483
5382
5451

query I rowsort
SELECT DISTINCT col1 * + ( tab2.col0 ) FROM tab2
----
1343
217
4602

query I rowsort
SELECT ALL 74 AS col2 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to dc22979e6d261795bd3ce2990fdbbf82

query I rowsort
SELECT - + col1 + 27 * + ( col0 * col0 ) AS col1 FROM tab2 AS cor0
----
1292
164209
168490

query I rowsort
SELECT DISTINCT + col2 + col2 * - 40 * - cor0.col2 FROM tab1 AS cor0
----
116694
130017
368736

query I rowsort
SELECT + + col2 * + cor0.col2 AS col0 FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT - + col0 * - col1 + cor0.col2 FROM tab1 AS cor0
----
1136
132
697

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2252
SELECT + CAST( - 81 AS SIGNED ) + cor0.col0 AS col0 FROM tab1 AS cor0
----
-1
-17
-78

skipif mysql # not compatible
query I rowsort label-2252
SELECT + CAST ( - 81 AS INTEGER ) + cor0.col0 AS col0 FROM tab1 AS cor0
----
-1
-17
-78

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2253
SELECT - + 0 * 7 - + cor0.col0 * + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2253
SELECT - + 0 * 7 - + cor0.col0 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - col2 + 29 * + cor0.col1 AS col0 FROM tab0 AS cor0
----
2461
2557
2812

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + + 11 col2 FROM tab0
----
102
108
97

query I rowsort
SELECT ALL + col2 + + 81 FROM tab1
----
135
138
177

onlyif mysql # use DIV operator for integer division
query I rowsort label-2257
SELECT - col1 * 54 DIV + ( col1 ) FROM tab0
----
-54
-54
-54

skipif mysql # not compatible
query I rowsort label-2257
SELECT - col1 * 54 / + ( col1 ) FROM tab0
----
-54
-54
-54

onlyif mysql # use DIV operator for integer division
query I rowsort label-2258
SELECT ALL tab1.col0 DIV + 37 + + col1 FROM tab1
----
11
15
26

skipif mysql # not compatible
query I rowsort label-2258
SELECT ALL tab1.col0 / + 37 + + col1 FROM tab1
----
11
15
26

query I rowsort
SELECT + - col0 * + col0 - - col0 AS col1 FROM tab0 AS cor0
----
-1190
-552
-7832

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2260
SELECT CAST( + 54 AS SIGNED ) * + col2 AS col1 FROM tab2 AS cor0
----
1404
1458
2052

skipif mysql # not compatible
query I rowsort label-2260
SELECT CAST ( + 54 AS INTEGER ) * + col2 AS col1 FROM tab2 AS cor0
----
1404
1458
2052

query I rowsort
SELECT - 13 * col1 AS col1 FROM tab1 cor0
----
-130
-169
-338

onlyif mysql # use DIV operator for integer division
query I rowsort label-2262
SELECT ALL + ( col2 ) DIV - col2 AS col2 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2262
SELECT ALL + ( col2 ) / - col2 AS col2 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ALL + - ( 98 ) + + col2 AS col2 FROM tab2 AS cor0
----
-60
-71
-72

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2264
SELECT - + 26 * col0 + + CAST( NULL AS SIGNED ) * 37 - + cor0.col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2264
SELECT - + 26 * col0 + + CAST ( NULL AS INTEGER ) * 37 - + cor0.col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 32 * col0 AS col1 FROM tab0
----
1120
2848
768

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2266
SELECT cor0.col2 + - col2 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2266
SELECT cor0.col2 + - col2 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - - col1 * col0 + - col2 FROM tab2 AS cor0
----
1305
190
4576

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 + + col1 * - col0 col2 FROM tab0 AS cor0
----
-2097
-3396
-8181

query I rowsort
SELECT col0 * col1 - col0 * - 3 * col2 AS col0 FROM tab1
----
11584
24080
564

onlyif mysql # use DIV operator for integer division
query I rowsort label-2270
SELECT + 62 DIV + col2 + col0 + col1 FROM tab0
----
111
180
194

skipif mysql # not compatible
query I rowsort label-2270
SELECT + 62 / + col2 + col0 + col1 FROM tab0
----
111
180
194

query I rowsort
SELECT - + tab2.col1 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2

onlyif mysql # use DIV operator for integer division
query I rowsort label-2272
SELECT DISTINCT + col2 * 81 DIV 71 - col2 * col1 FROM tab1 AS cor0
----
-1139
-1343
-505

skipif mysql # not compatible
query I rowsort label-2272
SELECT DISTINCT + col2 * 81 / 71 - col2 * col1 FROM tab1 AS cor0
----
-1139
-1343
-505

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2273
SELECT + CAST( NULL AS DECIMAL ) AS col1 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-2273
SELECT + CAST ( NULL AS REAL ) AS col1 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT 66 - 54 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 702478c53caf2f7ebb9fff96d800f5a6

query I rowsort
SELECT 72 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49

query I rowsort
SELECT ALL col2 + ( col2 ) * col2 AS col2 FROM tab0 AS cor0
----
1122
2
6806

query I rowsort
SELECT col0 + - 69 FROM tab1 AS cor0
----
-5
-66
11

query I rowsort
SELECT ALL + ( - 53 ) FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 2876418587c77a182d88db2907b0a51a

onlyif mysql # use DIV operator for integer division
query I rowsort label-2279
SELECT DISTINCT - cor0.col0 DIV - cor0.col2 + - ( col2 ) AS col1 FROM tab1 AS cor0
----
-54
-56
-96

skipif mysql # not compatible
query I rowsort label-2279
SELECT DISTINCT - cor0.col0 / - cor0.col2 + - ( col2 ) AS col1 FROM tab1 AS cor0
----
-54
-56
-96

skipif mysql # not compatible
query I rowsort
SELECT ALL + col2 * CAST ( 79 AS REAL ) AS col1 FROM tab2 AS cor0
----
2054
2133
3002

query I rowsort
SELECT col0 - + col2 AS col0 FROM tab0
----
-9
34
7

query I rowsort
SELECT + 42 * + tab0.col2 AS col0 FROM tab1, tab2, tab2 AS cor0, tab0
----
81 values hashing to 6c05d9fc073cf3b0f91e22d617e07a72

query I rowsort
SELECT - ( - col0 ) * cor0.col1 FROM tab1 AS cor0
----
1040
640
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-2284
SELECT ALL col2 * col2 DIV col1 AS col0 FROM tab1
----
112
324
708

skipif mysql # not compatible
query I rowsort label-2284
SELECT ALL col2 * col2 / col1 AS col0 FROM tab1
----
112
324
708

query I rowsort
SELECT col1 + + 4 * col0 * - col1 AS col1 FROM tab0
----
-13483
-32305
-8170

query I rowsort
SELECT - 56 * - tab2.col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 81c7a5c966807a2e33be12f1b5e88cb2

query I rowsort
SELECT ALL + 77 * + 55 FROM tab2, tab2 AS cor0
----
9 values hashing to 0b2438c6f8a1b61c1d728241e9fc0dd9

query I rowsort
SELECT - col0 + + 26 FROM tab1
----
-38
-54
23

query I rowsort
SELECT tab0.col2 + tab0.col0 * col1 FROM tab0
----
2097
3396
8181

query I rowsort
SELECT cor0.col0 * col2 - - 58 AS col1 FROM tab0 AS cor0
----
7356
850
93

query I rowsort
SELECT DISTINCT - col2 + col1 + + cor0.col0 * col1 FROM tab0 AS cor0
----
2117
3491
8108

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2292
SELECT ALL + - col2 * - col0 + + CAST( NULL AS SIGNED ) * col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2292
SELECT ALL + - col2 * - col0 + + CAST ( NULL AS INTEGER ) * col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 28 * col1 * + ( - col2 ) AS col0 FROM tab0 AS cor0
----
-208936
-2716
-79464

onlyif mysql # use DIV operator for integer division
query I rowsort label-2294
SELECT ALL ( - col0 ) + 69 DIV + 43 FROM tab2 cor0
----
-6
-77
-78

skipif mysql # not compatible
query I rowsort label-2294
SELECT ALL ( - col0 ) + 69 / + 43 FROM tab2 cor0
----
-6
-77
-78

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2295
SELECT ALL ( + col1 ) * col1 - CAST( NULL AS DECIMAL ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2295
SELECT ALL ( + col1 ) * col1 - CAST ( NULL AS REAL ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-2296
SELECT - 17 DIV - 71 - col2 col2 FROM tab0
----
-1
-33
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2296
SELECT - 17 / - 71 - col2 col2 FROM tab0
----
-1
-33
-82

query I rowsort
SELECT + col2 + - tab1.col2 + - 12 FROM tab1
----
-12
-12
-12

query I rowsort
SELECT DISTINCT - col2 + - cor0.col1 AS col2 FROM tab2 AS cor0
----
-55
-58
-85

query I rowsort
SELECT ALL + - col1 + + col2 * + col0 FROM tab2 AS cor0
----
158
1969
2985

onlyif mysql # use DIV operator for integer division
query I rowsort label-2300
SELECT + 14 + - col0 DIV - 55 AS col0 FROM tab2 AS cor0
----
14
15
15

skipif mysql # not compatible
query I rowsort label-2300
SELECT + 14 + - col0 / - 55 AS col0 FROM tab2 AS cor0
----
14
15
15

query I rowsort
SELECT ALL - - 15 * cor0.col0 + 38 * - 40 AS col0 FROM tab2 AS cor0
----
-1415
-335
-350

query I rowsort
SELECT + 64 + col0 AS col0 FROM tab0 AS cor0
----
153
88
99

onlyif mysql # use DIV operator for integer division
query I rowsort label-2303
SELECT col2 DIV + cor0.col2 + col2 AS col0 FROM tab1 AS cor0
----
55
58
97

skipif mysql # not compatible
query I rowsort label-2303
SELECT col2 / + cor0.col2 + col2 AS col0 FROM tab1 AS cor0
----
55
58
97

query I rowsort
SELECT DISTINCT 97 * - col2 + - 14 FROM tab0 cor0
----
-111
-3215
-7968

query I rowsort
SELECT ALL - 50 + + col2 FROM tab0
----
-17
-49
32

query I rowsort
SELECT DISTINCT ( col1 * + col0 ) + tab1.col1 AS col0 FROM tab1
----
104
1053
650

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2307
SELECT ALL col0 * + col1 * - 50 + ( - col1 ) / - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2307
SELECT ALL col0 * + col1 * - 50 + ( - col1 ) / - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 35 + col0 AS col2 FROM tab2
----
-28
43
44

query I rowsort
SELECT DISTINCT + col1 * - col2 * + ( cor0.col1 ) - col0 AS col2 FROM tab2 AS cor0
----
-11061
-25954
-90584

query I rowsort
SELECT + - 54 - - col1 AS col1 FROM tab1 AS cor0
----
-28
-41
-44

query I rowsort
SELECT DISTINCT + cor0.col2 * col1 + ( col0 ) + cor0.col1 FROM tab2 AS cor0
----
1671
742
875

query I rowsort
SELECT + col0 - + col2 * cor0.col2 AS col1 FROM tab2 AS cor0
----
-1365
-598
-722

query I rowsort
SELECT + col1 * col2 * - 28 FROM tab1
----
-15960
-34944
-39312

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2314
SELECT DISTINCT cor0.col0 * CAST( - col1 AS SIGNED ) - + col0 * 76 FROM tab0 cor0
----
-14863
-3888
-6055

skipif mysql # not compatible
query I rowsort label-2314
SELECT DISTINCT cor0.col0 * CAST ( - col1 AS INTEGER ) - + col0 * 76 FROM tab0 cor0
----
-14863
-3888
-6055

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2315
SELECT DISTINCT + col0 * - CAST( NULL AS SIGNED ) + cor0.col2 AS col2 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2315
SELECT DISTINCT + col0 * - CAST ( NULL AS INTEGER ) + cor0.col2 AS col2 FROM tab1 cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2316
SELECT + - col2 * + CAST( NULL AS SIGNED ) + cor0.col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2316
SELECT + - col2 * + CAST ( NULL AS INTEGER ) + cor0.col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - cor0.col1 + - ( 79 ) AS col1 FROM tab2 AS cor0
----
-20
-48
-62

query I rowsort
SELECT + col2 + - 14 AS col2 FROM tab0 AS cor0
----
-13
19
68

query I rowsort
SELECT - col1 - col0 * 46 FROM tab1 AS cor0
----
-164
-2954
-3693

query I rowsort
SELECT + col2 + + col0 * col2 FROM tab1 AS cor0
----
216
3705
7776

query I rowsort
SELECT cor0.col1 + 32 AS col0 FROM tab2 AS cor0
----
49
63
91

query I rowsort
SELECT ALL + 7 * + col0 FROM tab0 AS cor0
----
168
245
623

query I rowsort
SELECT DISTINCT - cor0.col1 * col2 + + col2 AS col2 FROM tab1 AS cor0
----
-1152
-1350
-513

query I rowsort
SELECT + col0 * + 96 * - col0 FROM tab0 AS cor0
----
-117600
-55296
-760416

query I rowsort
SELECT - 1 * cor0.col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0

query I rowsort
SELECT ALL + 83 AS col1 FROM tab2 AS cor0
----
83
83
83

query I rowsort
SELECT - col0 * col1 * col0 FROM tab2 cor0
----
-106097
-1519
-358956

query I rowsort
SELECT DISTINCT - + ( col1 ) AS col0 FROM tab1 cor0
----
-10
-13
-26

query I rowsort
SELECT ( 47 ) * col1 AS col0 FROM tab1 AS cor0
----
1222
470
611

query I rowsort
SELECT DISTINCT + + col0 + + col2 * + col0 FROM tab2 AS cor0
----
196
2106
3081

query I rowsort
SELECT ALL - col0 * - 68 * col0 AS col2 FROM tab2 AS cor0
----
3332
413712
424388

onlyif mysql # use DIV operator for integer division
query I rowsort label-2332
SELECT ALL + col1 + col0 DIV col1 + ( col2 ) FROM tab1 cor0
----
115
73
80

skipif mysql # not compatible
query I rowsort label-2332
SELECT ALL + col1 + col0 / col1 + ( col2 ) FROM tab1 cor0
----
115
73
80

query I rowsort
SELECT - col0 * + col0 * + col2 FROM tab1 AS cor0
----
-233472
-486
-614400

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 45 col2 FROM tab0 AS cor0
----
45

query I rowsort
SELECT 80 * - col2 FROM tab2 cor0
----
-2080
-2160
-3040

query I rowsort
SELECT DISTINCT + ( col2 ) * + col2 + ( cor0.col0 ) FROM tab1 AS cor0
----
2919
3313
9296

query I rowsort
SELECT ALL + - col1 * - col1 - - col2 AS col2 FROM tab2 AS cor0
----
327
3507
988

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col1 * cor0.col1 col1 FROM tab0 cor0
----
-7396
-8281
-9409

query I rowsort
SELECT DISTINCT - ( col2 * col0 ) FROM tab0
----
-35
-7298
-792

onlyif mysql # use DIV operator for integer division
query I rowsort label-2340
SELECT col1 DIV + col1 + - col2 AS col1 FROM tab0
----
-32
-81
0

skipif mysql # not compatible
query I rowsort label-2340
SELECT col1 / + col1 + - col2 AS col1 FROM tab0
----
-32
-81
0

query I rowsort
SELECT - col1 AS col2 FROM tab1 WHERE NULL NOT IN ( col2 * col0 )
----

query I rowsort
SELECT DISTINCT + tab1.col1 - + col1 FROM tab1
----
0

query I rowsort
SELECT ALL - tab1.col2 * col0 AS col0 FROM tab1
----
-162
-3648
-7680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab0.col2 + col2 col2 FROM tab0
----
164
2
66

query I rowsort
SELECT - col0 AS col0 FROM tab0 WHERE NOT NULL <> ( NULL )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-2346
SELECT col0 DIV - col0 + - tab1.col2 AS col2 FROM tab1
----
-55
-58
-97

skipif mysql # not compatible
query I rowsort label-2346
SELECT col0 / - col0 + - tab1.col2 AS col2 FROM tab1
----
-55
-58
-97

query I rowsort
SELECT + col0 * - col2 - col0 * + col1 AS col1 FROM tab2
----
-406
-4345
-6630

query I rowsort
SELECT - col0 * + col0 * col1 FROM tab0
----
-118825
-49536
-720811

onlyif mysql # use DIV operator for integer division
query I rowsort label-2349
SELECT DISTINCT col1 + col2 DIV + tab1.col0 FROM tab1
----
10
14
44

skipif mysql # not compatible
query I rowsort label-2349
SELECT DISTINCT col1 + col2 / + tab1.col0 FROM tab1
----
10
14
44

onlyif mysql # use DIV operator for integer division
query I rowsort label-2350
SELECT + col2 DIV - tab0.col2 - + col2 AS col1 FROM tab0
----
-2
-34
-83

skipif mysql # not compatible
query I rowsort label-2350
SELECT + col2 / - tab0.col2 - + col2 AS col1 FROM tab0
----
-2
-34
-83

query I rowsort
SELECT col2 * tab0.col2 - col0 * - col1 AS col2 FROM tab0
----
14823
3153
3396

query I rowsort
SELECT ALL col1 - tab1.col1 * - col1 FROM tab1
----
110
182
702

onlyif mysql # use DIV operator for integer division
query I rowsort label-2353
SELECT DISTINCT - col1 * + col1 + + col0 DIV col0 FROM tab2
----
-288
-3480
-960

skipif mysql # not compatible
query I rowsort label-2353
SELECT DISTINCT - col1 * + col1 + + col0 / col0 FROM tab2
----
-288
-3480
-960

query I rowsort
SELECT - tab1.col0 FROM tab1 WHERE ( NULL ) IN ( tab1.col2 )
----

query I rowsort
SELECT - col2 + + col0 + col2 AS col2 FROM tab0
----
24
35
89

query I rowsort
SELECT col1 + col1 * col0 * col1 + - col0 FROM tab2
----
22769
271499
6751

query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 - + col0 BETWEEN NULL AND + col0
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( - col1 - col2 * + col1 ) NOT BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 - - col1 col0 FROM tab1
----
20
26
52

query I rowsort
SELECT - col0 * + tab1.col0 + + tab1.col0 FROM tab1
----
-4032
-6
-6320

onlyif mysql # use DIV operator for integer division
query I rowsort label-2361
SELECT tab1.col0 * - col2 DIV col2 FROM tab1
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-2361
SELECT tab1.col0 * - col2 / col2 FROM tab1
----
-3
-64
-80

query I rowsort
SELECT ALL col2 + + col2 - col2 * - col2 AS col1 FROM tab0
----
1155
3
6888

onlyif mysql # use DIV operator for integer division
query I rowsort label-2363
SELECT DISTINCT - col0 DIV col1 AS col2 FROM tab1
----
-6
0

skipif mysql # not compatible
query I rowsort label-2363
SELECT DISTINCT - col0 / col1 AS col2 FROM tab1
----
-6
0

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) <> col0
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL BETWEEN col0 AND NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-2366
SELECT + col2 DIV - col2 + - col0 AS col1 FROM tab0
----
-25
-36
-90

skipif mysql # not compatible
query I rowsort label-2366
SELECT + col2 / - col2 + - col0 AS col1 FROM tab0
----
-25
-36
-90

query I rowsort
SELECT DISTINCT + col1 + - cor0.col0 * col1 AS col2 FROM tab0 AS cor0
----
-1978
-3298
-8008

query I rowsort
SELECT ALL col0 + col2 * col2 FROM tab0 AS cor0
----
1113
36
6813

query I rowsort
SELECT DISTINCT - tab2.col0 + col2 + col2 * col0 FROM tab2 WHERE NOT ( tab2.col1 ) NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT - col2 + + col2 * tab1.col0 FROM tab1
----
108
3591
7584

query I rowsort
SELECT ALL col2 FROM tab2 AS cor0 WHERE NULL NOT IN ( col0 + + cor0.col1 * col0 * - cor0.col1 )
----

query I rowsort
SELECT - 69 AS col1 FROM tab1, tab0 AS cor0, tab2, tab2 AS cor1
----
81 values hashing to b367033d2867a8ca951e3972e9b13154

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2373
SELECT DISTINCT col1 * CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2373
SELECT DISTINCT col1 * CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-2374
SELECT DISTINCT - - col2 DIV - col0 - - col2 * - ( - 30 * + col1 ) FROM tab2 AS cor0
----
19380
25107
46020

skipif mysql # not compatible
query I rowsort label-2374
SELECT DISTINCT - - col2 / - col0 - - col2 * - ( - 30 * + col1 ) FROM tab2 AS cor0
----
19380
25107
46020

query I rowsort
SELECT DISTINCT + 35 - + ( - col1 * - col1 ) FROM tab0 AS cor0
----
-7361
-8246
-9374

query I rowsort
SELECT - 50 * cor0.col1 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 503b7b917f9f8df21bc1eaf4d8891bc3

query I rowsort
SELECT DISTINCT col0 - 37 FROM tab0 AS cor0
----
-13
-2
52

query I rowsort
SELECT ALL cor0.col0 + + 23 * - col2 FROM tab1 cor0
----
-1239
-1247
-2128

query I rowsort
SELECT ALL + - 26 * col0 FROM tab2 AS cor0
----
-182
-2028
-2054

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + 92 col2 FROM tab2 cor0
----
118
119
130

query I rowsort
SELECT - + 47 * - col0 FROM tab1 AS cor0
----
141
3008
3760

onlyif mysql # use DIV operator for integer division
query I rowsort label-2382
SELECT ALL col0 + - col2 + ( ( - col2 ) ) DIV + col0 FROM tab2
----
-23
41
52

skipif mysql # not compatible
query I rowsort label-2382
SELECT ALL col0 + - col2 + ( ( - col2 ) ) / + col0 FROM tab2
----
-23
41
52

query I rowsort
SELECT + 27 + tab1.col1 * - 55 FROM tab1
----
-1403
-523
-688

query I rowsort
SELECT ALL - col0 + + col1 * - ( + col2 ) * col2 FROM tab2 AS cor0
----
-22606
-24627
-39962

query I rowsort
SELECT DISTINCT + ( + cor1.col2 ) + + cor0.col0 * 16 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
9 values hashing to 5c42e1ba630b87a8328c248c55d38a54

query I rowsort
SELECT - col1 + cor0.col2 + + 74 FROM tab1 AS cor0
----
102
121
157

query I rowsort
SELECT DISTINCT + - 56 * col1 FROM tab0 AS cor0
----
-4816
-5096
-5432

query I rowsort
SELECT - - col0 * ( + 14 ) + - col0 * + col2 + 7 AS col1 FROM tab0 AS cor0
----
-449
-6045
462

query I rowsort
SELECT ALL + cor0.col2 * ( - cor0.col1 ) + - col2 FROM tab0 AS cor0
----
-2871
-7544
-98

query I rowsort
SELECT DISTINCT col0 + ( - 68 ) FROM tab1 cor0
----
-4
-65
12

query I rowsort
SELECT ALL + + col1 * + 15 AS col1 FROM tab0 AS cor0
----
1290
1365
1455

query I rowsort
SELECT DISTINCT cor0.col0 + + col2 AS col1 FROM tab2 AS cor0
----
104
117
34

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2393
SELECT col1 + + CAST( NULL AS SIGNED ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2393
SELECT col1 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL cor0.col0 * + cor0.col1 AS col1 FROM tab0 AS cor0
----
2064
3395
8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-2395
SELECT DISTINCT - col1 DIV + 22 FROM tab2 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-2395
SELECT DISTINCT - col1 / + 22 FROM tab2 AS cor0
----
-1
-2
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2396
SELECT + + col1 + CAST( NULL AS SIGNED ) * - col0 + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2396
SELECT + + col1 + CAST ( NULL AS INTEGER ) * - col0 + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 38 + col0 * + col1 AS col0 FROM tab1
----
1078
116
678

query I rowsort
SELECT ALL - col0 * 75 * col1 AS col1 FROM tab0 AS cor0
----
-154800
-254625
-607425

query I rowsort
SELECT ALL - col2 * - 12 * col2 + ( + 23 ) * + col2 AS col2 FROM tab1 AS cor0
----
112800
36234
40299

onlyif mysql # use DIV operator for integer division
query I rowsort label-2400
SELECT ALL + col0 DIV + 85 + + col0 DIV col2 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2400
SELECT ALL + col0 / + 85 + + col0 / col2 FROM tab1
----
0
0
1

query I rowsort
SELECT DISTINCT col0 * - 35 + col2 AS col1 FROM tab2
----
-218
-2704
-2727

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2402
SELECT col0 * + 65 + - col1 - - CAST( col0 AS SIGNED ) * + cor0.col1 FROM tab1 AS cor0
----
247
4790
6227

skipif mysql # not compatible
query I rowsort label-2402
SELECT col0 * + 65 + - col1 - - CAST ( col0 AS INTEGER ) * + cor0.col1 FROM tab1 AS cor0
----
247
4790
6227

query I rowsort
SELECT ALL - - cor0.col1 + 67 AS col2 FROM tab0 AS cor0
----
153
158
164

query I rowsort
SELECT ALL - col2 * col0 AS col0 FROM tab1 cor0
----
-162
-3648
-7680

skipif mysql # not compatible
query I rowsort
SELECT - col1 * col1 + CAST ( + col1 AS REAL ) * col1 AS col0 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + col2 + col2 * + 22 FROM tab1 AS cor0
----
1242
1311
2208

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col2 ) + + col2 col0 FROM tab1 AS cor0
----
108
114
192

query I rowsort
SELECT - - col0 * col2 + ( - col2 * col1 ) FROM tab2 AS cor0
----
-648
2356
494

query I rowsort
SELECT ALL - + col1 * cor0.col0 AS col1 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT DISTINCT col1 + + 20 + + col0 AS col1 FROM tab0
----
130
152
200

query I rowsort
SELECT ALL + tab0.col1 * + cor1.col1 AS col1 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 95981a80d3d59cb4fd463f4a7ad46da1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2412
SELECT CAST( - col1 * col0 AS SIGNED ) - 51 AS col2 FROM tab2
----
-1394
-268
-4653

skipif mysql # not compatible
query I rowsort label-2412
SELECT CAST ( - col1 * col0 AS INTEGER ) - 51 AS col2 FROM tab2
----
-1394
-268
-4653

query I rowsort
SELECT ALL + col2 + col0 * - tab1.col2 + ( + tab1.col0 * col0 ) FROM tab1
----
-1184
-99
505

query I rowsort
SELECT DISTINCT + + col1 + + col0 * 83 * - col1 AS col0 FROM tab0 AS cor0
----
-171226
-281688
-672126

query I rowsort
SELECT DISTINCT - col0 * 49 + + 8 * col0 AS col0 FROM tab1 AS cor0
----
-123
-2624
-3280

query I rowsort
SELECT ALL - col1 - + 6 FROM tab2 AS cor0
----
-23
-37
-65

query I rowsort
SELECT ALL - col2 * 0 + - col0 * + col1 * + col2 AS col1 FROM tab0 AS cor0
----
-3395
-664118
-68112

query I rowsort
SELECT DISTINCT - col2 * col0 + - 68 + col0 * ( 24 ) AS col0 FROM tab1 AS cor0
----
-158
-2180
-5828

onlyif mysql # use DIV operator for integer division
query I rowsort label-2419
SELECT DISTINCT col1 * 45 + cor0.col2 DIV + col1 AS col2 FROM tab0 AS cor0
----
3870
4095
4365

skipif mysql # not compatible
query I rowsort label-2419
SELECT DISTINCT col1 * 45 + cor0.col2 / + col1 AS col2 FROM tab0 AS cor0
----
3870
4095
4365

query I rowsort
SELECT DISTINCT + + col1 * ( 68 ) + cor0.col2 * - col0 AS col2 FROM tab0 AS cor0
----
-1110
5056
6561

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col1 + + col1 * 83 col1 FROM tab0 AS cor0
----
7224
7644
8148

onlyif mysql # use DIV operator for integer division
query I rowsort label-2422
SELECT DISTINCT + cor0.col1 + col2 * 64 DIV + cor0.col2 FROM tab1 AS cor0
----
74
77
90

skipif mysql # not compatible
query I rowsort label-2422
SELECT DISTINCT + cor0.col1 + col2 * 64 / + cor0.col2 FROM tab1 AS cor0
----
74
77
90

onlyif mysql # use DIV operator for integer division
query I rowsort label-2423
SELECT ( col1 ) + + col1 DIV col1 AS col0 FROM tab2
----
18
32
60

skipif mysql # not compatible
query I rowsort label-2423
SELECT ( col1 ) + + col1 / col1 AS col0 FROM tab2
----
18
32
60

query I rowsort
SELECT ALL + col1 * 47 * col1 + col1 + - col1 AS col2 FROM tab1 AS cor0
----
31772
4700
7943

query I rowsort
SELECT + - 23 AS col1 FROM tab1, tab0, tab1 cor0
----
27 values hashing to 9bd721f99d79dce21b1de2860fd51ed5

query I rowsort
SELECT - col1 * - ( + col1 + col2 ) AS col1 FROM tab2
----
1798
5015
935

query I rowsort
SELECT DISTINCT - 30 AS col0 FROM tab0, tab2 AS cor0
----
-30

query I rowsort
SELECT ALL + 75 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea

query I rowsort
SELECT - tab2.col2 - col0 AS col0 FROM tab2
----
-104
-117
-34

query I rowsort
SELECT ( + cor0.col2 ) AS col0 FROM tab2 AS cor0
----
26
27
38

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2431
SELECT + - CAST( + 54 AS SIGNED ) FROM tab0 AS cor0
----
-54
-54
-54

skipif mysql # not compatible
query I rowsort label-2431
SELECT + - CAST ( + 54 AS INTEGER ) FROM tab0 AS cor0
----
-54
-54
-54

query I rowsort
SELECT 64 FROM tab0, tab1 cor0 CROSS JOIN tab2
----
27 values hashing to c8b19f4c3ff38700cd2bb8a077bf29b9

onlyif mysql # use DIV operator for integer division
query I rowsort label-2433
SELECT DISTINCT + - ( + 80 ) * col0 + col2 DIV - col0 FROM tab0 AS cor0
----
-1921
-2800
-7120

skipif mysql # not compatible
query I rowsort label-2433
SELECT DISTINCT + - ( + 80 ) * col0 + col2 / - col0 FROM tab0 AS cor0
----
-1921
-2800
-7120

query I rowsort
SELECT ALL + - 65 + + col1 FROM tab2 AS cor0
----
-34
-48
-6

query I rowsort
SELECT ALL + - col1 * col0 AS col2 FROM tab2 cor0
----
-1343
-217
-4602

query I rowsort
SELECT 92 * - 44 + col1 * ( + 13 ) AS col0 FROM tab0 AS cor0
----
-2787
-2865
-2930

onlyif mysql # use DIV operator for integer division
query I rowsort label-2437
SELECT - col2 DIV - col1 + - col1 AS col0 FROM tab0 AS cor0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-2437
SELECT - col2 / - col1 + - col1 AS col0 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT - cor1.col1 * - cor0.col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c7e3d87815c66f5a8360e4fe15424a79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2439
SELECT ALL - + CAST( + 6 AS SIGNED ) + + cor1.col2 + + ( 84 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cac3e02d99ed2821efd3e4f568978d21

skipif mysql # not compatible
query I rowsort label-2439
SELECT ALL - + CAST ( + 6 AS INTEGER ) + + cor1.col2 + + ( 84 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cac3e02d99ed2821efd3e4f568978d21

query I rowsort
SELECT DISTINCT + 56 * - col0 + - 48 FROM tab1 AS cor0
----
-216
-3632
-4528

query I rowsort
SELECT ALL - cor0.col2 * + col1 - - col0 AS col1 FROM tab1 AS cor0
----
-1168
-1401
-506

onlyif mysql # use DIV operator for integer division
query I rowsort label-2442
SELECT ALL + 2 DIV col1 col2 FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2442
SELECT ALL + 2 / col1 col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - + col0 * - col2 FROM tab0 cor0
----
35
7298
792

query I rowsort
SELECT + + col0 + - col1 * ( + ( - col1 ) + cor0.col2 ) FROM tab1 AS cor0
----
-406
-725
-999

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 39 + + cor0.col1 col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 02eda61897ba61d13db8edce0ccd4b29

query I rowsort
SELECT + col2 * - 90 FROM tab1 AS cor0
----
-4860
-5130
-8640

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + col0 col0 FROM tab1 cor0
----
162
3648
7680

query I rowsort
SELECT col1 + - 66 AS col0 FROM tab2 AS cor0
----
-35
-49
-7

query I rowsort
SELECT + 24 * + col0 * ( + col0 + - col1 ) AS col2 FROM tab0 AS cor0
----
-35712
-4272
-52080

query I rowsort
SELECT + - 5 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 74665fbb47d5b17da011bca567195b21

query I rowsort
SELECT ALL - col1 * + tab1.col0 * col2 FROM tab1
----
-36480
-4212
-99840

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2452
SELECT - col2 + CAST( - col2 AS SIGNED ) FROM tab0 AS cor0
----
-164
-2
-66

skipif mysql # not compatible
query I rowsort label-2452
SELECT - col2 + CAST ( - col2 AS INTEGER ) FROM tab0 AS cor0
----
-164
-2
-66

query I rowsort
SELECT DISTINCT - col1 * - col2 + - 53 AS col0 FROM tab1 cor0
----
1195
1351
517

query I rowsort
SELECT + col2 * col0 + + col0 - + col2 FROM tab1 AS cor0
----
111
3655
7664

query I rowsort
SELECT ALL - 19 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 339c9d62143bf2f7566b89a1b56eeeb4

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab0 cor0, tab2 AS cor1, tab0 cor2
----
972 values hashing to 380241bbc503a31e70494611a87ffd99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( ( - col2 ) ) col1 FROM tab2 AS cor0
----
-26
-27
-38

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2458
SELECT - CAST( - cor0.col1 AS SIGNED ) FROM tab2, tab1 AS cor0, tab1, tab2 AS cor1
----
81 values hashing to d7d3fabcafbed14f0d6ffd37195c971c

skipif mysql # not compatible
query I rowsort label-2458
SELECT - CAST ( - cor0.col1 AS INTEGER ) FROM tab2, tab1 AS cor0, tab1, tab2 AS cor1
----
81 values hashing to d7d3fabcafbed14f0d6ffd37195c971c

query I rowsort
SELECT - 26 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 47d0574274146de273829785364ada39

query I rowsort
SELECT - 28 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to c3e7fa3d059fc708f03c60e9cef0c115

query I rowsort
SELECT ALL - ( 98 ) FROM tab0
----
-98
-98
-98

query I rowsort
SELECT ALL + 66 * + tab0.col0 FROM tab0
----
1584
2310
5874

onlyif mysql # use DIV operator for integer division
query I rowsort label-2463
SELECT col2 DIV + 44 AS col1 FROM tab0 cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2463
SELECT col2 / + 44 AS col1 FROM tab0 cor0
----
0
0
1

query I rowsort
SELECT - col1 * 39 FROM tab2
----
-1209
-2301
-663

onlyif mysql # use DIV operator for integer division
query I rowsort label-2465
SELECT DISTINCT + col2 + + cor0.col1 DIV - col0 FROM tab0 AS cor0
----
-1
30
81

skipif mysql # not compatible
query I rowsort label-2465
SELECT DISTINCT + col2 + + cor0.col1 / - col0 FROM tab0 AS cor0
----
-1
30
81

query I rowsort
SELECT ALL col2 * + col2 + 21 + - cor0.col0 FROM tab1 AS cor0
----
2934
3206
9157

query I rowsort
SELECT DISTINCT + col0 * col2 + + col2 FROM tab2 AS cor0
----
2054
216
3040

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 61 col0 FROM tab0 AS cor0
----
61
61
61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + col2 col1 FROM tab0
----
164
2
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab0.col2 col1 FROM tab0, tab0 AS cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8

query I rowsort
SELECT DISTINCT col1 * + col1 + col0 FROM tab2 AS cor0
----
3559
368
968

query I rowsort
SELECT - ( - col0 ) + col0 AS col1 FROM tab1 AS cor0
----
128
160
6

query I rowsort
SELECT ( + 53 ) * - cor0.col1 AS col2 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 7ac9efcc5f0e7f073f296acf5abcb8db

query I rowsort
SELECT ALL col0 + 95 - ( - tab2.col1 * 32 ) FROM tab2
----
1094
2061
718

query I rowsort
SELECT DISTINCT + col0 * + 60 FROM tab2
----
420
4680
4740

query I rowsort
SELECT - - ( col0 ) + col1 AS col0 FROM tab1 AS cor0
----
29
74
93

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2477
SELECT - CAST( NULL AS SIGNED ) * - col2 * + col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2477
SELECT - CAST ( NULL AS INTEGER ) * - col2 * + col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + col1 + + 14 AS col0 FROM tab2 cor0
----
31
45
73

query I rowsort
SELECT + 12 + col1 * cor0.col2 AS col1 FROM tab2 AS cor0
----
1546
658
849

query I rowsort
SELECT DISTINCT 72 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
72

query I rowsort
SELECT DISTINCT 69 * col0 FROM tab1 cor0
----
207
4416
5520

query I rowsort
SELECT - col1 + + col0 * col2 AS col0 FROM tab2 AS cor0
----
158
1969
2985

query I rowsort
SELECT ALL + + ( - col1 ) * col1 FROM tab1 AS cor0
----
-100
-169
-676

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2484
SELECT DISTINCT - + CAST( NULL AS DECIMAL ) + col0 * - col2 * - col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2484
SELECT DISTINCT - + CAST ( NULL AS REAL ) + col0 * - col2 * - col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL + col2 * - col1 + - col2 FROM tab1 AS cor0
----
-1344
-1458
-627

query I rowsort
SELECT - col2 * + ( + cor0.col2 ) + + 8 AS col0 FROM tab1 AS cor0
----
-2908
-3241
-9208

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 71 col2 FROM tab2
----
-71
-71
-71

query I rowsort
SELECT DISTINCT + + 86 + + cor0.col2 FROM tab0 AS cor0
----
119
168
87

query I rowsort
SELECT ALL cor0.col2 - - col1 AS col0 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT ALL - - 30 * cor0.col0 FROM tab1 AS cor0
----
1920
2400
90

query I rowsort
SELECT - cor0.col0 - 76 FROM tab2 cor0
----
-154
-155
-83

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2492
SELECT DISTINCT + col0 * - CAST( 12 AS SIGNED ) + cor0.col0 FROM tab0 cor0
----
-264
-385
-979

skipif mysql # not compatible
query I rowsort label-2492
SELECT DISTINCT + col0 * - CAST ( 12 AS INTEGER ) + cor0.col0 FROM tab0 cor0
----
-264
-385
-979

query I rowsort
SELECT DISTINCT col2 + - ( tab2.col1 ) AS col2 FROM tab2
----
-33
-4
21

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2494
SELECT + tab1.col2 * + CAST( NULL AS DECIMAL ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2494
SELECT + tab1.col2 * + CAST ( NULL AS REAL ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-2495
SELECT col1 DIV 57 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2495
SELECT col1 / 57 FROM tab2
----
0
0
1

query I rowsort
SELECT ALL col1 * - 66 + 15 FROM tab0 AS cor0
----
-5661
-5991
-6387

query I rowsort
SELECT + col2 * 28 + + col2 * col1 * + col0 FROM tab2 AS cor0
----
120380
52098
6615

query I rowsort
SELECT DISTINCT col1 + + 53 * + col1 FROM tab0 cor0
----
4644
4914
5238

query I rowsort
SELECT ALL - - col0 * - col0 - col0 FROM tab1 AS cor0
----
-12
-4160
-6480

query I rowsort
SELECT + col1 * 95 AS col2 FROM tab1 AS cor0
----
1235
2470
950

query I rowsort
SELECT ALL - - cor0.col0 - - ( col1 ) FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT DISTINCT + + col0 * + col0 * + col1 FROM tab0 AS cor0
----
118825
49536
720811

query I rowsort
SELECT + 39 + 71 FROM tab2
----
110
110
110

query I rowsort
SELECT + - col1 * 77 FROM tab0 AS cor0
----
-6622
-7007
-7469

query I rowsort
SELECT col2 * - col2 + col2 * col0 FROM tab2
----
-540
1352
1558

query I rowsort
SELECT DISTINCT ( tab1.col1 ) * + col0 * + col2 AS col0 FROM tab1
----
36480
4212
99840

query I rowsort
SELECT DISTINCT col1 * col0 + col0 FROM tab0 cor0
----
2088
3430
8188

query I rowsort
SELECT DISTINCT cor1.col1 AS col2 FROM tab0, tab1 cor0, tab1 cor1
----
10
13
26

query I rowsort
SELECT + 96 + - col1 * + col1 FROM tab0 AS cor0
----
-7300
-8185
-9313

query I rowsort
SELECT - - 57 * - col1 AS col0 FROM tab2 AS cor0
----
-1767
-3363
-969

query I rowsort
SELECT DISTINCT + + col0 * cor0.col0 AS col2 FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT + cor0.col1 * - col2 + + col1 * col2 AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + 7 + cor0.col1 AS col2 FROM tab0 cor0
----
104
93
98

query I rowsort
SELECT ALL - cor0.col1 + col1 * ( cor0.col1 ) FROM tab2 AS cor0
----
272
3422
930

query I rowsort
SELECT ALL + + col2 - col1 AS col0 FROM tab0 cor0
----
-53
-9
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-2516
SELECT DISTINCT cor0.col2 * col2 DIV + col1 FROM tab0 AS cor0
----
0
12
73

skipif mysql # not compatible
query I rowsort label-2516
SELECT DISTINCT cor0.col2 * col2 / + col1 FROM tab0 AS cor0
----
0
12
73

query I rowsort
SELECT DISTINCT + col0 * col0 - 74 FROM tab1 AS cor0
----
-65
4022
6326

query I rowsort
SELECT + 99 * + col2 + + col2 FROM tab2
----
2600
2700
3800

query I rowsort
SELECT col1 + + col2 * + col2 * + 30 AS col0 FROM tab0 AS cor0
----
127
201811
32756

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 * + col0 col1 FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT - 51 FROM tab2, tab2 cor0, tab1 AS cor1, tab0 AS cor2
----
81 values hashing to 006d860fc40bbb38cbb649ba917d74a9

query I rowsort
SELECT + col0 * - cor0.col0 AS col0 FROM tab1 cor0
----
-4096
-6400
-9

query I rowsort
SELECT DISTINCT - 88 AS col1 FROM tab2, tab0, tab0 AS cor0
----
-88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * col1 + col2 col0 FROM tab0 AS cor0
----
7429
8363
9410

query I rowsort
SELECT ALL - 74 + - col2 FROM tab1 AS cor0
----
-128
-131
-170

onlyif mysql # use DIV operator for integer division
query I rowsort label-2526
SELECT + - 0 + - col2 DIV cor0.col0 FROM tab1 AS cor0
----
-1
-18
0

skipif mysql # not compatible
query I rowsort label-2526
SELECT + - 0 + - col2 / cor0.col0 FROM tab1 AS cor0
----
-1
-18
0

query I rowsort
SELECT 81 AS col1 FROM tab1 AS cor0
----
81
81
81

query I rowsort
SELECT col0 * - ( + col2 + col2 ) * col2 AS col2 FROM tab1 AS cor0
----
-1474560
-17496
-415872

query I rowsort
SELECT DISTINCT ( col1 ) * - col1 FROM tab1
----
-100
-169
-676

query I rowsort
SELECT 99 * col1 - col1 FROM tab2 AS cor0
----
1666
3038
5782

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2531
SELECT - + CAST( cor0.col0 AS SIGNED ) AS col1 FROM tab1 cor0
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-2531
SELECT - + CAST ( cor0.col0 AS INTEGER ) AS col1 FROM tab1 cor0
----
-3
-64
-80

query I rowsort
SELECT + col0 + - col2 * - col2 * - col0 FROM tab1 AS cor0
----
-207872
-737200
-8745

query I rowsort
SELECT ALL + + 12 FROM tab0 AS cor0
----
12
12
12

query I rowsort
SELECT col2 + 67 * col2 FROM tab1 AS cor0
----
3672
3876
6528

query I rowsort
SELECT - + ( - col1 ) * col2 AS col2 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT - 8 * col1 * cor0.col0 FROM tab0 AS cor0
----
-16512
-27160
-64792

query I rowsort
SELECT ALL tab1.col0 * + ( 53 ) + + tab1.col2 * 29 FROM tab1
----
1725
5045
7024

query I rowsort
SELECT DISTINCT col2 + 7 * col2 FROM tab1
----
432
456
768

query I rowsort
SELECT ALL col1 * - col1 + col0 AS col2 FROM tab0
----
-7372
-8192
-9374

query I rowsort
SELECT ALL col1 + ( - tab1.col2 ) FROM tab1
----
-28
-47
-83

query I rowsort
SELECT DISTINCT - ( cor0.col0 ) AS col2 FROM tab2, tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT - col0 * + col2 * col1 FROM tab2
----
-119652
-51034
-5859

onlyif mysql # use DIV operator for integer division
query I rowsort label-2543
SELECT DISTINCT + - 75 DIV col2 FROM tab1 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-2543
SELECT DISTINCT + - 75 / col2 FROM tab1 AS cor0
----
-1
0

query I rowsort
SELECT DISTINCT ( - col1 ) + col2 FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT - + 32 * - 44 + col0 * 64 + col0 FROM tab0 cor0
----
2968
3683
7193

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2546
SELECT + - CAST( NULL AS SIGNED ) + + col2 * - col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2546
SELECT + - CAST ( NULL AS INTEGER ) + + col2 * - col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2547
SELECT 35 * col1 + col1 + CAST( + col1 AS SIGNED ) FROM tab1 AS cor0
----
370
481
962

skipif mysql # not compatible
query I rowsort label-2547
SELECT 35 * col1 + col1 + CAST ( + col1 AS INTEGER ) FROM tab1 AS cor0
----
370
481
962

query I rowsort
SELECT DISTINCT - col2 * 18 AS col2 FROM tab1 cor0
----
-1026
-1728
-972

query I rowsort
SELECT ALL col0 * - 75 AS col1 FROM tab1 AS cor0
----
-225
-4800
-6000

query I rowsort
SELECT - + 57 + col0 + col1 * ( - col0 ) FROM tab0 cor0
----
-2097
-3417
-8067

query I rowsort
SELECT + 52 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 7f4ae30893ab330784829711032ae599

query I rowsort
SELECT ALL cor0.col0 FROM tab1, tab0 AS cor0 CROSS JOIN tab2, tab2 AS cor1
----
81 values hashing to 2304fcc140e955eb2d1ee28ab1eea994

query I rowsort
SELECT - 57 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 520dc393896969e02a72ab6c5d92126b

query I rowsort
SELECT ALL + col0 * - ( col2 ) AS col0 FROM tab0
----
-35
-7298
-792

query I rowsort
SELECT ALL + ( 57 ) AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a

query I rowsort
SELECT DISTINCT + 13 FROM tab1, tab2 AS cor0
----
13

query I rowsort
SELECT DISTINCT + - tab1.col0 * - 95 + - 52 FROM tab1, tab0, tab0 cor0
----
233
6028
7548

query I rowsort
SELECT DISTINCT - 36 AS col1 FROM tab1, tab0, tab1 AS cor0, tab2
----
-36

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2559
SELECT tab2.col2 * CAST( NULL AS SIGNED ) * + 52 - col2 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2559
SELECT tab2.col2 * CAST ( NULL AS INTEGER ) * + 52 - col2 AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 10 FROM tab1, tab2 AS cor0
----
10

query I rowsort
SELECT ALL col0 + + col0 * + col2 AS col2 FROM tab0
----
70
7387
816

query I rowsort
SELECT ALL - 92 + + ( col1 ) * + col1 FROM tab2 AS cor0
----
197
3389
869

query I rowsort
SELECT ALL - ( - col1 ) * cor0.col2 + col2 AS col0 FROM tab1 AS cor0
----
1344
1458
627

query I rowsort
SELECT DISTINCT 57 + - 42 AS col0 FROM tab2 AS cor0
----
15

query I rowsort
SELECT ALL - + 87 + - 52 + col0 FROM tab0 AS cor0
----
-104
-115
-50

query I rowsort
SELECT 44 * - col2 + + col0 AS col2 FROM tab1 AS cor0
----
-2373
-2444
-4144

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col1 * cor0.col2 + + col0 col1 FROM tab0 AS cor0
----
132
2862
7551

query I rowsort
SELECT ALL + - col0 * 74 - - col0 FROM tab0 AS cor0
----
-1752
-2555
-6497

query I rowsort
SELECT col2 * + 0 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 69 + ( + col0 ) * 38 col0 FROM tab2 cor0
----
197
2895
2933

onlyif mysql # use DIV operator for integer division
query I rowsort label-2571
SELECT + col1 * col0 DIV col1 FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-2571
SELECT + col1 * col0 / col1 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT 71 + col1 FROM tab0 AS cor0
----
157
162
168

query I rowsort
SELECT ALL + 91 * - col0 FROM tab2
----
-637
-7098
-7189

query I rowsort
SELECT DISTINCT + ( - 49 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-49

onlyif mysql # use DIV operator for integer division
query I rowsort label-2575
SELECT DISTINCT col0 DIV col2 - 20 * - col1 col1 FROM tab0
----
1720
1821
1975

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2575
SELECT DISTINCT col0 / col2 - 20 * - col1 col1 FROM tab0
----
1720
1821
1975

query I rowsort
SELECT - col2 * + col0 - col2 FROM tab2 AS cor0
----
-2054
-216
-3040

query I rowsort
SELECT col0 * - col2 + ( - col0 ) AS col1 FROM tab2 AS cor0
----
-196
-2106
-3081

query I rowsort
SELECT + 29 + + col0 - col2 FROM tab2 AS cor0
----
70
81
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-2579
SELECT col2 DIV - ( + 92 ) + col0 AS col2 FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-2579
SELECT col2 / - ( + 92 ) + col0 AS col2 FROM tab0 AS cor0
----
24
35
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-2580
SELECT DISTINCT + col2 DIV - cor0.col2 AS col0 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2580
SELECT DISTINCT + col2 / - cor0.col2 AS col0 FROM tab1 AS cor0
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * ( + col2 ) col0 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT col0 + 50 * col1 * col1 AS col0 FROM tab2 AS cor0
----
14529
174128
48057

onlyif mysql # use DIV operator for integer division
query I rowsort label-2583
SELECT col0 DIV col0 + + 54 FROM tab2 AS cor0
----
55
55
55

skipif mysql # not compatible
query I rowsort label-2583
SELECT col0 / col0 + + 54 FROM tab2 AS cor0
----
55
55
55

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2584
SELECT ALL cor0.col0 * CAST( + col2 AS SIGNED ) FROM tab2 AS cor0
----
189
2028
3002

skipif mysql # not compatible
query I rowsort label-2584
SELECT ALL cor0.col0 * CAST ( + col2 AS INTEGER ) FROM tab2 AS cor0
----
189
2028
3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-2585
SELECT cor0.col1 DIV - cor0.col2 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2585
SELECT cor0.col1 / - cor0.col2 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - 38 col2 FROM tab1 AS cor0
----
-35
26
42

onlyif mysql # use DIV operator for integer division
query I rowsort label-2587
SELECT - - col2 DIV - 88 + - col0 * - col2 AS col1 FROM tab1 AS cor0
----
162
3648
7679

skipif mysql # not compatible
query I rowsort label-2587
SELECT - - col2 / - 88 + - col0 * - col2 AS col1 FROM tab1 AS cor0
----
162
3648
7679

query I rowsort
SELECT col0 * cor0.col0 * cor0.col0 FROM tab1 AS cor0
----
262144
27
512000

query I rowsort
SELECT - col1 * - ( + col2 ) AS col0 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT DISTINCT col0 * ( ( cor0.col0 ) ) FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT - col2 * ( cor0.col1 * - cor0.col2 ) + cor0.col1 FROM tab1 AS cor0
----
119821
32500
75842

query I rowsort
SELECT - + col2 + + 82 * - col1 FROM tab0 AS cor0
----
-7085
-7544
-7955

query I rowsort
SELECT - cor0.col2 * cor0.col1 AS col1 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT DISTINCT 17 * col1 FROM tab2
----
1003
289
527

query I rowsort
SELECT tab1.col1 * - 58 AS col0 FROM tab1, tab0, tab2 AS cor0, tab2
----
81 values hashing to 12fc27cd8f757f7e9292969d96a7c14a

query I rowsort
SELECT ALL + + col2 * ( - col1 ) + col1 AS col1 FROM tab0 AS cor0
----
-2752
-7371
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2597
SELECT + col2 DIV + col0 + 36 FROM tab1 cor0
----
36
37
54

skipif mysql # not compatible
query I rowsort label-2597
SELECT + col2 / + col0 + 36 FROM tab1 cor0
----
36
37
54

query I rowsort
SELECT ALL + cor0.col1 * - 67 + + col0 FROM tab1 AS cor0
----
-1739
-606
-791

query I rowsort
SELECT DISTINCT col0 + col2 * + 29 FROM tab1 AS cor0
----
1569
1717
2864

query I rowsort
SELECT - col1 * 61 AS col2 FROM tab2
----
-1037
-1891
-3599

query I rowsort
SELECT + cor0.col1 + + 52 * col2 FROM tab2 AS cor0
----
1411
1435
1993

query I rowsort
SELECT DISTINCT 98 + + col1 * col1 AS col2 FROM tab0 cor0
----
7494
8379
9507

query I rowsort
SELECT ALL - ( - 56 ) FROM tab2 AS cor0
----
56
56
56

query I rowsort
SELECT ALL + - 25 * 59 FROM tab2 AS cor0
----
-1475
-1475
-1475

query I rowsort
SELECT ALL + ( + cor0.col2 ) * - col0 AS col0 FROM tab1 AS cor0
----
-162
-3648
-7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-2606
SELECT col2 + 48 + - 33 DIV col1 FROM tab2
----
74
74
85

skipif mysql # not compatible
query I rowsort label-2606
SELECT col2 + 48 + - 33 / col1 FROM tab2
----
74
74
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - tab2.col2 + col1 + + col1 col1 FROM tab2
----
-127
-1910
-2968

query I rowsort
SELECT DISTINCT + col2 + cor0.col1 + + cor0.col1 FROM tab0 AS cor0
----
195
205
264

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 + - cor0.col2 * - cor0.col1 + col1 col0 FROM tab1 AS cor0
----
1165
1376
523

query I rowsort
SELECT - col1 + - col0 * col0 AS col0 FROM tab2
----
-6143
-6258
-80

query I rowsort
SELECT ALL 7 - col2 * col0 AS col0 FROM tab0
----
-28
-7291
-785

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 80 * - col2 + 55 - - col1 col2 FROM tab1
----
-4239
-4495
-7612

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2613
SELECT ALL CAST( NULL AS DECIMAL ) * - 43 AS col1 FROM tab0, tab2 cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-2613
SELECT ALL CAST ( NULL AS REAL ) * - 43 AS col1 FROM tab0, tab2 cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT - 78 + - col1 * col2 - col0 FROM tab1
----
-1406
-1485
-712

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - col1 + - 91 col0 FROM tab2
----
-1434
-308
-4693

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1, tab2 AS cor0, tab1 cor1
----
972 values hashing to dd771e0c15d524f62127686e9bd43f9a

query I rowsort
SELECT DISTINCT cor0.col2 + + cor0.col1 + col1 AS col0 FROM tab0 cor0
----
195
205
264

query I rowsort
SELECT - + ( 29 ) AS col0 FROM tab0 AS cor0
----
-29
-29
-29

query I rowsort
SELECT DISTINCT 91 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
91

query I rowsort
SELECT DISTINCT - cor0.col2 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0, tab1 AS cor1
----
-1
-33
-82

query I rowsort
SELECT ALL + ( - ( col2 ) ) AS col2 FROM tab1
----
-54
-57
-96

query I rowsort
SELECT ALL - cor0.col0 AS col2 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2623
SELECT CAST( NULL AS SIGNED ) * + col1 + - col2 * col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2623
SELECT CAST ( NULL AS INTEGER ) * + col1 + - col2 * col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-2624
SELECT ALL ( - col0 ) DIV - col1 AS col1 FROM tab1
----
0
6
6

skipif mysql # not compatible
query I rowsort label-2624
SELECT ALL ( - col0 ) / - col1 AS col1 FROM tab1
----
0
6
6

query I rowsort
SELECT + 77 + 53 FROM tab1
----
130
130
130

query I rowsort
SELECT DISTINCT + - ( cor0.col0 ) * col0 + col2 FROM tab2 AS cor0
----
-22
-6058
-6203

onlyif mysql # use DIV operator for integer division
query I rowsort label-2627
SELECT ALL - 43 + col2 DIV + ( 7 ) FROM tab0
----
-32
-39
-43

skipif mysql # not compatible
query I rowsort label-2627
SELECT ALL - 43 + col2 / + ( 7 ) FROM tab0
----
-32
-39
-43

query I rowsort
SELECT DISTINCT - tab1.col1 + col2 * 27 FROM tab1
----
1432
1529
2579

onlyif mysql # use DIV operator for integer division
query I rowsort label-2629
SELECT ALL 45 + - col0 DIV - col1 col1 FROM tab2
----
45
46
49

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2629
SELECT ALL 45 + - col0 / - col1 col1 FROM tab2
----
45
46
49

query I rowsort
SELECT DISTINCT + tab2.col0 AS col2 FROM tab2, tab0, tab2 AS cor0
----
7
78
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-2631
SELECT DISTINCT + 40 DIV col0 - - cor0.col1 FROM tab1 AS cor0
----
10
13
39

skipif mysql # not compatible
query I rowsort label-2631
SELECT DISTINCT + 40 / col0 - - cor0.col1 FROM tab1 AS cor0
----
10
13
39

query I rowsort
SELECT + ( - col0 + + 22 * col0 ) FROM tab1
----
1344
1680
63

onlyif mysql # use DIV operator for integer division
query I rowsort label-2633
SELECT DISTINCT + col0 DIV + CAST( - col1 + col0 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
0
1
4

skipif mysql # not compatible
query I rowsort label-2633
SELECT DISTINCT + col0 / + CAST ( - col1 + col0 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
0
1
4

query I rowsort
SELECT DISTINCT - - col2 + ( - ( - cor0.col2 ) * + col0 + cor0.col0 ) AS col0 FROM tab2 AS cor0
----
2132
223
3119

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2635
SELECT DISTINCT col2 + CAST( NULL AS SIGNED ) * + col2 * col0 col0 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2635
SELECT DISTINCT col2 + CAST ( NULL AS INTEGER ) * + col2 * col0 col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - col0 * 24 FROM tab2 cor0
----
-168
-1872
-1896

query I rowsort
SELECT ALL - col1 * ( col0 ) FROM tab0 cor0
----
-2064
-3395
-8099

query I rowsort
SELECT ALL + - col0 * + col2 - + ( + col1 * + col1 ) AS col2 FROM tab1 AS cor0
----
-3748
-7849
-838

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col0 * ( + cor0.col1 ) * col0 col0 FROM tab2 AS cor0
----
-106097
-1519
-358956

query I rowsort
SELECT ALL + col2 * + col0 * + col0 + - col1 * col2 FROM tab2 AS cor0
----
156650
236512
486

query I rowsort
SELECT + tab0.col0 + - ( 21 ) AS col2 FROM tab0
----
14
3
68

query I rowsort
SELECT ALL col1 * 87 FROM tab1 AS cor0
----
1131
2262
870

onlyif mysql # use DIV operator for integer division
query I rowsort label-2643
SELECT ALL col1 + col2 DIV + cor0.col0 AS col0 FROM tab0 AS cor0
----
87
91
97

skipif mysql # not compatible
query I rowsort label-2643
SELECT ALL col1 + col2 / + cor0.col0 AS col0 FROM tab0 AS cor0
----
87
91
97

query I rowsort
SELECT - col2 * + 10 AS col1 FROM tab0 AS cor0
----
-10
-330
-820

query I rowsort
SELECT ALL - col2 * ( - col0 ) + col1 * cor0.col1 FROM tab2 AS cor0
----
1150
3291
5509

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2646
SELECT DISTINCT + - cor0.col1 + - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2646
SELECT DISTINCT + - cor0.col1 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + col1 * - 16 + + col0 AS col0 FROM tab1 AS cor0
----
-128
-413
-96

query I rowsort
SELECT ALL + col1 * + col0 + cor0.col1 * col1 AS col1 FROM tab0 cor0
----
12804
16380
9460

query I rowsort
SELECT DISTINCT - col0 - col1 FROM tab0 cor0
----
-110
-132
-180

query I rowsort
SELECT col2 * - cor0.col2 * + 27 + col1 AS col1 FROM tab0 AS cor0
----
-181457
-29317
70

query I rowsort
SELECT - + col1 * - ( - col2 + cor0.col0 ) AS col1 FROM tab0 AS cor0
----
-774
3298
637

query I rowsort
SELECT ALL - col0 * + col1 * - col1 FROM tab0 AS cor0
----
177504
329315
737009

query I rowsort
SELECT ALL + + cor0.col1 * - ( col1 ) + col0 AS col1 FROM tab2 AS cor0
----
-210
-3403
-954

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col2 col2 FROM tab2
----
-1444
-676
-729

query I rowsort
SELECT + col0 * + col1 * tab2.col1 + + col2 * col0 AS col0 FROM tab2
----
25833
273546
6916

query I rowsort
SELECT - col0 * cor0.col2 * + col2 FROM tab0 AS cor0
----
-26136
-35
-598436

query I rowsort
SELECT + - col1 + - col2 * col0 AS col1 FROM tab1 AS cor0
----
-188
-3658
-7693

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - col2 col2 FROM tab2 AS cor0
----
-1444
-676
-729

query I rowsort
SELECT cor0.col2 + col2 * cor0.col1 FROM tab1 AS cor0
----
1344
1458
627

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + cor0.col0 col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT - col0 + - col0 * col0 FROM tab2 cor0
----
-56
-6162
-6320

query I rowsort
SELECT col2 * + col2 + col2 FROM tab2 cor0
----
1482
702
756

query I rowsort
SELECT + col1 * col0 * + col0 + col1 * col2 AS col2 FROM tab2
----
106743
2356
360490

query I rowsort
SELECT + + col1 * col0 * - col1 AS col1 FROM tab2 AS cor0
----
-22831
-271518
-6727

query I rowsort
SELECT + col2 * - col0 + - col2 * col1 FROM tab1 AS cor0
----
-1566
-4218
-8928

query I rowsort
SELECT DISTINCT cor0.col1 + + col2 FROM tab1 cor0
----
109
67
80

query I rowsort
SELECT + - col0 * + col1 + col2 * + cor0.col2 FROM tab1 AS cor0
----
2609
2838
8176

onlyif mysql # use DIV operator for integer division
query I rowsort label-2668
SELECT ALL 19 * tab0.col1 DIV + col1 FROM tab0
----
19
19
19

skipif mysql # not compatible
query I rowsort label-2668
SELECT ALL 19 * tab0.col1 / + col1 FROM tab0
----
19
19
19

query I rowsort
SELECT DISTINCT 53 + col1 FROM tab2 AS cor0
----
112
70
84

query I rowsort
SELECT DISTINCT - 70 * col1 AS col2 FROM tab2 AS cor0
----
-1190
-2170
-4130

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + col2 * col1 * - col2 - col2 col1 FROM tab0 cor0
----
-612048
-93720
-99

query I rowsort
SELECT - 36 - col1 FROM tab2
----
-53
-67
-95

query I rowsort
SELECT DISTINCT - 80 * + col0 AS col1 FROM tab2
----
-560
-6240
-6320

query I rowsort
SELECT DISTINCT ( col0 ) + tab2.col0 FROM tab2
----
14
156
158

query I rowsort
SELECT ALL - 6 + tab1.col0 * col0 AS col1 FROM tab1
----
3
4090
6394

query I rowsort
SELECT DISTINCT col1 + - col2 * - col0 FROM tab0
----
132
7389
878

query I rowsort
SELECT DISTINCT + col1 * + col2 + - ( - 4 * - col1 ) FROM tab2 AS cor0
----
1298
578
713

query I rowsort
SELECT ALL - col2 + col1 + 39 * col2 AS col0 FROM tab1 AS cor0
----
2078
2176
3661

query I rowsort
SELECT DISTINCT 63 - - col2 AS col0 FROM tab2
----
101
89
90

onlyif mysql # use DIV operator for integer division
query I rowsort label-2680
SELECT + 12 DIV + 86 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-2680
SELECT + 12 / + 86 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT ALL tab1.col0 + - tab1.col1 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 318a6997409c5decbbc3333c9d493ad3

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2682
SELECT - 83 * + col1 - CAST( NULL AS DECIMAL ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2682
SELECT - 83 * + col1 - CAST ( NULL AS REAL ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-2683
SELECT + col1 + + col1 DIV 50 + + col1 FROM tab1 AS cor0
----
20
26
52

skipif mysql # not compatible
query I rowsort label-2683
SELECT + col1 + + col1 / 50 + + col1 FROM tab1 AS cor0
----
20
26
52

query I rowsort
SELECT 52 + col1 * 55 FROM tab0 AS cor0
----
4782
5057
5387

onlyif mysql # use DIV operator for integer division
query I rowsort label-2685
SELECT col1 DIV col1 AS col1 FROM tab0 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2685
SELECT col1 / col1 AS col1 FROM tab0 cor0
----
1
1
1

query I rowsort
SELECT ALL 85 FROM tab0, tab0 cor0
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b

query I rowsort
SELECT ALL tab1.col0 * 28 + + 37 FROM tab1
----
121
1829
2277

query I rowsort
SELECT col1 * + 90 * + col0 FROM tab2
----
120870
19530
414180

query I rowsort
SELECT - 11 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 7120875811e4d19a19b69cd34b6bc202

query I rowsort
SELECT DISTINCT col0 * - 79 + col0 AS col2 FROM tab1
----
-234
-4992
-6240

query I rowsort
SELECT DISTINCT - col0 - col0 * - col2 AS col2 FROM tab2
----
182
1950
2923

query I rowsort
SELECT - ( + 36 ) + - col0 * + 1 + - tab2.col2 * - tab2.col1 AS col0 FROM tab2
----
1420
531
794

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + 59 col0 FROM tab1 AS cor0
----
33
46
49

query I rowsort
SELECT + - 88 FROM tab2 cor0
----
-88
-88
-88

query I rowsort
SELECT DISTINCT col1 + 4 AS col0 FROM tab2 AS cor0
----
21
35
63

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2696
SELECT ALL - CAST( col1 AS SIGNED ) + + col0 AS col1 FROM tab0 AS cor0
----
-2
-62
-62

skipif mysql # not compatible
query I rowsort label-2696
SELECT ALL - CAST ( col1 AS INTEGER ) + + col0 AS col1 FROM tab0 AS cor0
----
-2
-62
-62

query I rowsort
SELECT ( 67 ) + - cor0.col1 FROM tab2 AS cor0
----
36
50
8

query I rowsort
SELECT ALL - - cor0.col1 + col0 AS col1 FROM tab2 cor0
----
137
38
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-2699
SELECT ALL ( - 19 ) + cor0.col2 DIV - col0 AS col0 FROM tab2 AS cor0
----
-19
-19
-22

skipif mysql # not compatible
query I rowsort label-2699
SELECT ALL ( - 19 ) + cor0.col2 / - col0 AS col0 FROM tab2 AS cor0
----
-19
-19
-22

query I rowsort
SELECT DISTINCT + 6 + col0 * - col2 FROM tab0 cor0
----
-29
-7292
-786

query I rowsort
SELECT - 15 * - col2 + ( col0 ) AS col0 FROM tab0 AS cor0
----
1319
50
519

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 * + col1 + - col2 col2 FROM tab1 AS cor0
----
1152
1350
513

query I rowsort
SELECT ALL - - col2 * - cor0.col1 * col0 FROM tab0 AS cor0
----
-3395
-664118
-68112

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2704
SELECT + + col2 + col2 * CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2704
SELECT + + col2 + col2 * CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 86 * - cor0.col0 AS col0 FROM tab2 AS cor0
----
-602
-6708
-6794

query I rowsort
SELECT col2 + + col2 + - col0 FROM tab2
----
-26
-3
47

onlyif mysql # use DIV operator for integer division
query I rowsort label-2707
SELECT DISTINCT + col0 DIV + col2 - - col0 * ( 46 ) DIV tab0.col1 FROM tab0
----
12
45
51

skipif mysql # not compatible
query I rowsort label-2707
SELECT DISTINCT + col0 / + col2 - - col0 * ( 46 ) / tab0.col1 FROM tab0
----
12
45
51

query I rowsort
SELECT ALL ( + col1 ) * - col0 FROM tab2
----
-1343
-217
-4602

query I rowsort
SELECT - + cor1.col2 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2710
SELECT ALL - CAST( col0 AS SIGNED ) * col1 * - col1 - + 72 * + col0 FROM tab2
----
17143
265902
6223

skipif mysql # not compatible
query I rowsort label-2710
SELECT ALL - CAST ( col0 AS INTEGER ) * col1 * - col1 - + 72 * + col0 FROM tab2
----
17143
265902
6223

query I rowsort
SELECT ALL + col1 * - ( - 30 ) + col1 AS col2 FROM tab1 cor0
----
310
403
806

onlyif mysql # use DIV operator for integer division
query I rowsort label-2712
SELECT cor0.col2 DIV ( col0 + - col2 ) FROM tab1 AS cor0
----
-1
-6
8

skipif mysql # not compatible
query I rowsort label-2712
SELECT cor0.col2 / ( col0 + - col2 ) FROM tab1 AS cor0
----
-1
-6
8

onlyif mysql # use DIV operator for integer division
query I rowsort label-2713
SELECT ALL cor0.col2 DIV + ( col0 ) + col0 AS col0 FROM tab1 AS cor0
----
21
64
81

skipif mysql # not compatible
query I rowsort label-2713
SELECT ALL cor0.col2 / + ( col0 ) + col0 AS col0 FROM tab1 AS cor0
----
21
64
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-2714
SELECT ALL + col2 DIV + 27 AS col2 FROM tab1
----
2
2
3

skipif mysql # not compatible
query I rowsort label-2714
SELECT ALL + col2 / + 27 AS col2 FROM tab1
----
2
2
3

query I rowsort
SELECT col0 + 84 AS col2 FROM tab2 AS cor0
----
162
163
91

onlyif mysql # use DIV operator for integer division
query I rowsort label-2716
SELECT DISTINCT ( + col1 ) DIV + col1 FROM tab1 cor0
----
1

skipif mysql # not compatible
query I rowsort label-2716
SELECT DISTINCT ( + col1 ) / + col1 FROM tab1 cor0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col0 - + 29 col2 FROM tab1
----
-26
35
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor1.col1 col2 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

onlyif mysql # use DIV operator for integer division
query I rowsort label-2719
SELECT - col0 * - 43 + col1 DIV + col2 + - ( - col2 ) * col2 AS col0 FROM tab1 AS cor0
----
12656
3045
6001

skipif mysql # not compatible
query I rowsort label-2719
SELECT - col0 * - 43 + col1 / + col2 + - ( - col2 ) * col2 AS col0 FROM tab1 AS cor0
----
12656
3045
6001

query I rowsort
SELECT ALL - cor0.col1 * + 85 * - col2 FROM tab0 cor0
----
241230
634270
8245

onlyif mysql # use DIV operator for integer division
query I rowsort label-2721
SELECT DISTINCT + cor0.col0 DIV col2 AS col0 FROM tab0 AS cor0
----
0
1
35

skipif mysql # not compatible
query I rowsort label-2721
SELECT DISTINCT + cor0.col0 / col2 AS col0 FROM tab0 AS cor0
----
0
1
35

query I rowsort
SELECT + col1 + ( + col0 ) * + col2 AS col2 FROM tab1 cor0
----
188
3658
7693

query I rowsort
SELECT ALL - col1 * + ( 69 ) AS col2 FROM tab0
----
-5934
-6279
-6693

query I rowsort
SELECT - + col2 * + ( ( - col1 ) ) * col1 AS col0 FROM tab0 AS cor0
----
244068
679042
9409

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2725
SELECT + col0 + CAST( + 65 AS SIGNED ) FROM tab2 AS cor0
----
143
144
72

skipif mysql # not compatible
query I rowsort label-2725
SELECT + col0 + CAST ( + 65 AS INTEGER ) FROM tab2 AS cor0
----
143
144
72

query I rowsort
SELECT - + cor0.col0 * 86 FROM tab2 AS cor0
----
-602
-6708
-6794

query I rowsort
SELECT + col1 * - col0 + - col0 * col0 + col1 AS col0 FROM tab0 AS cor0
----
-15929
-2554
-4523

query I rowsort
SELECT DISTINCT + cor0.col0 * + 99 AS col1 FROM tab2 cor0
----
693
7722
7821

query I rowsort
SELECT + cor0.col1 + + 16 * 80 FROM tab0 AS cor0
----
1366
1371
1377

query I rowsort
SELECT - + col0 * col1 * - col0 AS col0 FROM tab2 AS cor0
----
106097
1519
358956

query I rowsort
SELECT - col2 * col0 * - col1 AS col1 FROM tab0 AS cor0
----
3395
664118
68112

query I rowsort
SELECT - 8 + 56 + + cor0.col2 AS col1 FROM tab1 AS cor0
----
102
105
144

query I rowsort
SELECT DISTINCT + cor0.col1 AS col2 FROM tab0, tab2 AS cor0, tab0 AS cor1, tab0 AS cor2
----
17
31
59

query I rowsort
SELECT DISTINCT ( cor0.col1 ) AS col0 FROM tab2, tab2 AS cor0
----
17
31
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-2735
SELECT ALL col1 DIV - col0 AS col0 FROM tab2
----
-4
0
0

skipif mysql # not compatible
query I rowsort label-2735
SELECT ALL col1 / - col0 AS col0 FROM tab2
----
-4
0
0

query I rowsort
SELECT - 66 + col2 * + ( - col1 ) - col2 * + col2 * - cor0.col0 AS col1 FROM tab0 cor0
----
-128
23232
590908

query I rowsort
SELECT ALL col1 + - col2 * - col1 FROM tab2 cor0
----
1593
663
868

query I rowsort
SELECT - 28 - - col1 AS col1 FROM tab2 AS cor0
----
-11
3
31

query I rowsort
SELECT + - ( + cor0.col0 ) * + col2 * col1 FROM tab0 AS cor0
----
-3395
-664118
-68112

query I rowsort
SELECT ALL 20 + - col0 FROM tab2
----
-58
-59
13

onlyif mysql # use DIV operator for integer division
query I rowsort label-2741
SELECT ALL col0 + col2 DIV tab0.col2 + col0 AS col0 FROM tab0
----
179
49
71

skipif mysql # not compatible
query I rowsort label-2741
SELECT ALL col0 + col2 / tab0.col2 + col0 AS col0 FROM tab0
----
179
49
71

query I rowsort
SELECT ALL - 65 FROM tab2, tab2 AS cor0, tab2 cor1
----
27 values hashing to 4ca93c42a91c7dff917e7b7090ba9e57

onlyif mysql # use DIV operator for integer division
query I rowsort label-2743
SELECT 18 DIV col1 AS col2 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-2743
SELECT 18 / col1 AS col2 FROM tab1
----
0
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab1.col2 col2 FROM tab1, tab0 cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17

query I rowsort
SELECT ALL col0 + - tab1.col2 * - col0 * + ( col1 ) FROM tab1
----
36544
4215
99920

query I rowsort
SELECT ALL + 72 + - col2 FROM tab1 AS cor0
----
-24
15
18

query I rowsort
SELECT DISTINCT + cor0.col0 + col0 * ( + col2 ) FROM tab1 AS cor0
----
165
3712
7760

query I rowsort
SELECT ALL + + col1 * - col0 AS col1 FROM tab2 AS cor0
----
-1343
-217
-4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-2749
SELECT DISTINCT - 28 DIV col0 FROM tab2 cor0
----
-4
0

skipif mysql # not compatible
query I rowsort label-2749
SELECT DISTINCT - 28 / col0 FROM tab2 cor0
----
-4
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 * cor0.col0 col2 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT cor0.col0 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

query I rowsort
SELECT - col2 + col0 * + col1 + - col1 FROM tab2
----
1288
159
4517

query I rowsort
SELECT + col1 * col2 * 23 FROM tab1
----
13110
28704
32292

query I rowsort
SELECT + 69 * - col2 AS col0 FROM tab1
----
-3726
-3933
-6624

query I rowsort
SELECT - + col0 + - cor0.col0 * - cor0.col2 FROM tab0 AS cor0
----
0
7209
768

query I rowsort
SELECT col0 * tab1.col0 * + col2 FROM tab1
----
233472
486
614400

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2757
SELECT + CAST( NULL AS SIGNED ) / + 27 - cor0.col1 FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2757
SELECT + CAST ( NULL AS INTEGER ) / + 27 - cor0.col1 FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT - col0 * 6 AS col2 FROM tab1
----
-18
-384
-480

query I rowsort
SELECT col2 * 58 * + col2 FROM tab2
----
39208
42282
83752

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2760
SELECT ALL + CAST( col2 + col1 AS SIGNED ) * + col1 col1 FROM tab0
----
10234
15743
9506

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2760
SELECT ALL + CAST ( col2 + col1 AS INTEGER ) * + col1 col1 FROM tab0
----
10234
15743
9506

query I rowsort
SELECT 67 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2762
SELECT ALL - - CAST( col1 AS SIGNED ) + - cor0.col0 * - cor0.col1 AS col2 FROM tab0 AS cor0
----
2150
3492
8190

skipif mysql # not compatible
query I rowsort label-2762
SELECT ALL - - CAST ( col1 AS INTEGER ) + - cor0.col0 * - cor0.col1 AS col2 FROM tab0 AS cor0
----
2150
3492
8190

query I rowsort
SELECT ALL - 84 + + 25 * col0 + 25 AS col0 FROM tab1 AS cor0
----
1541
16
1941

query I rowsort
SELECT DISTINCT + ( - cor0.col0 ) AS col1 FROM tab2 cor0
----
-7
-78
-79

query I rowsort
SELECT - - 65 * col2 FROM tab1 AS cor0
----
3510
3705
6240

query I rowsort
SELECT + + col2 * cor0.col2 AS col1 FROM tab1 cor0
----
2916
3249
9216

query I rowsort
SELECT ALL + - 43 * col1 + 55 AS col1 FROM tab1 AS cor0
----
-1063
-375
-504

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + ( - tab1.col2 ) col0 FROM tab1
----
-108
-114
-192

query I rowsort
SELECT + - cor0.col0 * cor0.col1 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT + col2 * col1 * - cor0.col1 - col1 FROM tab2 AS cor0
----
-10999
-25978
-90565

query I rowsort
SELECT - - ( 73 ) * tab0.col1 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to b10b181c5b5d760ff974e19c7cd87774

query I rowsort
SELECT + col1 + + col1 - col0 FROM tab2 AS cor0
----
-45
40
55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col1 ) + col1 col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + + col0 + col2 * col0 + col2 AS col2 FROM tab2 AS cor0
----
2132
223
3119

onlyif mysql # use DIV operator for integer division
query I rowsort label-2775
SELECT - col2 DIV + col2 FROM tab0 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2775
SELECT - col2 / + col2 FROM tab0 cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT + 60 + col1 AS col1 FROM tab2 AS cor0
----
119
77
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * cor0.col0 + col1 col1 FROM tab0 AS cor0
----
-1128
-490
-7830

query I rowsort
SELECT DISTINCT + 63 - cor0.col1 * - col0 AS col1 FROM tab0 AS cor0
----
2127
3458
8162

onlyif mysql # use DIV operator for integer division
query I rowsort label-2779
SELECT + col2 + + col1 DIV + 34 AS col0 FROM tab0 AS cor0
----
3
35
84

skipif mysql # not compatible
query I rowsort label-2779
SELECT + col2 + + col1 / + 34 AS col0 FROM tab0 AS cor0
----
3
35
84

query I rowsort
SELECT ALL + 34 + - 91 - col0 * - 50 FROM tab2
----
293
3843
3893

query I rowsort
SELECT ALL col0 * + col0 - - col2 AS col2 FROM tab2
----
6110
6279
76

query I rowsort
SELECT ALL col2 - - 23 AS col2 FROM tab2
----
49
50
61

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2783
SELECT + CAST( NULL AS DECIMAL ) / col2 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2783
SELECT + CAST ( NULL AS REAL ) / col2 AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 72 * - col0 FROM tab2
----
-504
-5616
-5688

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 45 col1 FROM tab1, tab2 cor0
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2786
SELECT ALL col0 + CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2786
SELECT ALL col0 + CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-2787
SELECT - cor0.col1 DIV col2 col1 FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2787
SELECT - cor0.col1 / col2 col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + col0 * 33 FROM tab2 cor0
----
231
2574
2607

query I rowsort
SELECT DISTINCT - col0 + cor0.col2 * col1 AS col1 FROM tab1 AS cor0
----
1168
1401
506

query I rowsort
SELECT - + cor0.col0 + - col2 AS col2 FROM tab2 AS cor0
----
-104
-117
-34

query I rowsort
SELECT col0 * + 13 + + 18 AS col1 FROM tab2 AS cor0
----
1032
1045
109

onlyif mysql # use DIV operator for integer division
query I rowsort label-2792
SELECT - - col2 DIV ( - col2 ) AS col1 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2792
SELECT - - col2 / ( - col2 ) AS col1 FROM tab1 AS cor0
----
-1
-1
-1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2793
SELECT DISTINCT - CAST( NULL AS SIGNED ) * 38 * + cor0.col1 FROM tab0, tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2793
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * 38 * + cor0.col1 FROM tab0, tab2 cor0
----
NULL

query I rowsort
SELECT + col0 + + ( + col1 ) AS col0 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT - col1 * - col1 - 54 AS col1 FROM tab0
----
7342
8227
9355

query I rowsort
SELECT DISTINCT - 3 + col2 AS col2 FROM tab2 cor0
----
23
24
35

query I rowsort
SELECT ALL - - col0 + - cor0.col0 AS col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + ( - 34 ) AS col1 FROM tab1 AS cor0
----
-34
-34
-34

query I rowsort
SELECT DISTINCT - col0 + - 82 * col0 + cor0.col1 AS col1 FROM tab1 AS cor0
----
-223
-5302
-6627

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2800
SELECT col2 - CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2800
SELECT col2 - CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT col1 * - 22 + + col0 FROM tab0
----
-1868
-1913
-2099

query I rowsort
SELECT ALL - - col1 * col2 + - col0 FROM tab1 AS cor0
----
1168
1401
506

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2803
SELECT CAST( - ( col2 ) AS SIGNED ) + col2 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2803
SELECT CAST ( - ( col2 ) AS INTEGER ) + col2 AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + 30 + + ( col2 ) AS col2 FROM tab2 cor0
----
56
57
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * 64 * col1 + col1 + + cor0.col0 * - col2 col1 FROM tab2 AS cor0
----
-100145
-44329
-53726

query I rowsort
SELECT - tab2.col1 AS col2 FROM tab0, tab2 AS cor0 CROSS JOIN tab2
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2

query I rowsort
SELECT DISTINCT - - ( col2 ) * + col1 - + 80 FROM tab0 AS cor0
----
17
2758
7382

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2808
SELECT CAST( + ( - col1 ) AS SIGNED ) * col2 FROM tab1 AS cor0
----
-1248
-1404
-570

skipif mysql # not compatible
query I rowsort label-2808
SELECT CAST ( + ( - col1 ) AS INTEGER ) * col2 FROM tab1 AS cor0
----
-1248
-1404
-570

onlyif mysql # use DIV operator for integer division
query I rowsort label-2809
SELECT + ( + col1 ) * col1 DIV + col0 FROM tab0 AS cor0
----
268
308
93

skipif mysql # not compatible
query I rowsort label-2809
SELECT + ( + col1 ) * col1 / + col0 FROM tab0 AS cor0
----
268
308
93

query I rowsort
SELECT ALL col2 + 12 AS col2 FROM tab1 AS cor0
----
108
66
69

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2811
SELECT CAST( + 4 AS SIGNED ) FROM tab1 AS cor0
----
4
4
4

skipif mysql # not compatible
query I rowsort label-2811
SELECT CAST ( + 4 AS INTEGER ) FROM tab1 AS cor0
----
4
4
4

query I rowsort
SELECT ALL + + 50 + col1 FROM tab2 AS cor0
----
109
67
81

query I rowsort
SELECT ALL col0 * - col0 + col0 FROM tab1 AS cor0
----
-4032
-6
-6320

query I rowsort
SELECT + 27 AS col0 FROM tab0, tab0 AS cor0, tab1 cor1
----
27 values hashing to 1a3cef5c33b8f87ffeded378fd207753

query I rowsort
SELECT ALL 26 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584

query I rowsort
SELECT ALL ( - cor0.col2 ) FROM tab2 cor0
----
-26
-27
-38

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2817
SELECT - + col2 * - col2 * CAST( + col0 AS SIGNED ) + + col2 FROM tab1 AS cor0
----
207993
737376
8802

skipif mysql # not compatible
query I rowsort label-2817
SELECT - + col2 * - col2 * CAST ( + col0 AS INTEGER ) + + col2 FROM tab1 AS cor0
----
207993
737376
8802

query I rowsort
SELECT + 81 * col1 AS col1 FROM tab0 AS cor0
----
6966
7371
7857

query I rowsort
SELECT ALL - - col0 - col2 * cor0.col2 FROM tab2 AS cor0
----
-1365
-598
-722

query I rowsort
SELECT DISTINCT - col2 - + col1 AS col0 FROM tab0 AS cor0
----
-119
-173
-98

onlyif mysql # use DIV operator for integer division
query I rowsort label-2821
SELECT DISTINCT - 56 DIV - col0 AS col2 FROM tab0 cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-2821
SELECT DISTINCT - 56 / - col0 AS col2 FROM tab0 cor0
----
0
1
2

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2822
SELECT + - col1 * col1 + + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2822
SELECT + - col1 * col1 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - + cor0.col0 * 45 AS col1 FROM tab1 AS cor0
----
-135
-2880
-3600

query I rowsort
SELECT ALL - col1 * col2 + + col2 * cor0.col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2825
SELECT ALL col2 DIV - 48 + - col1 FROM tab2 AS cor0
----
-17
-31
-59

skipif mysql # not compatible
query I rowsort label-2825
SELECT ALL col2 / - 48 + - col1 FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT ALL cor0.col0 + + col1 AS col2 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT ALL col0 * 91 FROM tab0 cor0
----
2184
3185
8099

query I rowsort
SELECT ALL col2 + + 24 AS col2 FROM tab2 AS cor0
----
50
51
62

query I rowsort
SELECT ALL + 29 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2

query I rowsort
SELECT + + cor1.col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c61d27a0022e6d022371dc58819ab272

query I rowsort
SELECT DISTINCT - col0 + 59 AS col2 FROM tab2
----
-19
-20
52

query I rowsort
SELECT ALL - 11 + - cor0.col2 FROM tab1 AS cor0
----
-107
-65
-68

query I rowsort
SELECT - col0 - col1 * col1 FROM tab2 AS cor0
----
-3559
-368
-968

query I rowsort
SELECT ALL col1 + + ( col2 ) AS col1 FROM tab1 AS cor0
----
109
67
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 35 col2 FROM tab0 AS cor0
----
-35

query I rowsort
SELECT DISTINCT + - ( col2 ) - cor0.col2 FROM tab2 AS cor0
----
-52
-54
-76

query I rowsort
SELECT - col0 + 21 * col0 AS col1 FROM tab0 AS cor0
----
1780
480
700

query I rowsort
SELECT ALL - 28 * + col0 * - col0 AS col1 FROM tab2 AS cor0
----
1372
170352
174748

query I rowsort
SELECT + + ( col2 ) + - col0 - 24 FROM tab1 AS cor0
----
-31
-8
27

query I rowsort
SELECT DISTINCT + + col2 * - 68 FROM tab0 AS cor0
----
-2244
-5576
-68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( + col0 ) + + col0 col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT col0 + cor0.col1 - cor0.col2 FROM tab1 AS cor0
----
-25
-3
17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 93 col1 FROM tab2 AS cor0
----
93
93
93

query I rowsort
SELECT ALL col1 + col1 * - cor0.col1 AS col1 FROM tab0 AS cor0
----
-7310
-8190
-9312

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 * + col0 + + col2 col1 FROM tab1 AS cor0
----
-24
-583
-944

query I rowsort
SELECT DISTINCT + 7 + col1 * + ( - col0 ) AS col1 FROM tab0 cor0
----
-2057
-3388
-8092

query I rowsort
SELECT + col0 + col2 + col2 AS col2 FROM tab0
----
253
37
90

query I rowsort
SELECT - ( 5 ) + - col2 - - 56 FROM tab0
----
-31
18
50

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( + col0 AS REAL ) + col0 AS col0 FROM tab2
----
14
156
158

query I rowsort
SELECT - cor0.col0 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 09d8a912de1b8ab762e5ffbe028ce99e

query I rowsort
SELECT + 98 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col1 col2 FROM tab2 cor0
----
-17
-31
-59

query I rowsort
SELECT DISTINCT 58 * tab2.col2 AS col1 FROM tab2, tab0 cor0
----
1508
1566
2204

query I rowsort
SELECT + - col0 * - ( 34 + col0 ) FROM tab2 AS cor0
----
287
8736
8927

query I rowsort
SELECT DISTINCT - + col0 * - ( 80 ) + col2 AS col2 FROM tab2 AS cor0
----
587
6266
6358

query I rowsort
SELECT col1 + col2 * col1 AS col1 FROM tab1 AS cor0
----
1261
1430
580

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * 5 col0 FROM tab1 AS cor0
----
130
50
65

query I rowsort
SELECT + col2 * + col1 + + col0 AS col2 FROM tab0 AS cor0
----
132
2862
7551

query I rowsort
SELECT + col1 - + ( + 97 ) AS col1 FROM tab1
----
-71
-84
-87

query I rowsort
SELECT - - col0 * - col1 - col1 AS col1 FROM tab2 AS cor0
----
-1360
-248
-4661

query I rowsort
SELECT ALL + + cor0.col0 * - col2 + + col2 FROM tab1 AS cor0
----
-108
-3591
-7584

onlyif mysql # use DIV operator for integer division
query I rowsort label-2862
SELECT + col2 DIV - col1 + - cor0.col1 col1 FROM tab0 AS cor0
----
-86
-91
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2862
SELECT + col2 / - col1 + - cor0.col1 col1 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT DISTINCT + col2 - cor0.col1 * - col0 FROM tab2 AS cor0
----
1381
244
4628

query I rowsort
SELECT ( + 42 ) FROM tab2 AS cor0
----
42
42
42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 55 col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0

query I rowsort
SELECT ALL col1 * - 52 * tab2.col2 FROM tab2
----
-33592
-43524
-79768

query I rowsort
SELECT ALL tab1.col0 * - 63 FROM tab1, tab2 cor0
----
9 values hashing to 5fe55fbf550243cc78cad91efb6adb29

query I rowsort
SELECT + col0 - col1 AS col0 FROM tab0
----
-2
-62
-62

query I rowsort
SELECT ALL + col0 * - 65 * - col2 AS col2 FROM tab0
----
2275
474370
51480

onlyif mysql # use DIV operator for integer division
query I rowsort label-2870
SELECT 13 DIV + 13 AS col1 FROM tab2, tab1 AS cor0, tab1 AS cor1, tab1 AS cor2
----
81 values hashing to 2a004dce2d308bae163576f54ee1a3fc

skipif mysql # not compatible
query I rowsort label-2870
SELECT 13 / + 13 AS col1 FROM tab2, tab1 AS cor0, tab1 AS cor1, tab1 AS cor2
----
81 values hashing to 2a004dce2d308bae163576f54ee1a3fc

query I rowsort
SELECT DISTINCT 44 AS col2 FROM tab2, tab2 cor0
----
44

query I rowsort
SELECT ALL ( - col1 * col1 ) + - col2 AS col1 FROM tab2
----
-327
-3507
-988

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2873
SELECT + CAST( NULL AS SIGNED ) FROM tab1, tab2, tab2 cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-2873
SELECT + CAST ( NULL AS INTEGER ) FROM tab1, tab2, tab2 cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

onlyif mysql # use DIV operator for integer division
query I rowsort label-2874
SELECT col0 DIV + ( col0 ) FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2874
SELECT col0 / + ( col0 ) FROM tab0
----
1
1
1

query I rowsort
SELECT ALL + 38 AS col2 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to a7827a79248ee7bf2cee915a631d02cb

query I rowsort
SELECT DISTINCT cor0.col0 * - 62 * - 53 FROM tab1, tab0 AS cor0
----
115010
292454
78864

query I rowsort
SELECT tab1.col0 * + tab1.col1 AS col0 FROM tab1
----
1040
640
78

query I rowsort
SELECT DISTINCT + col1 * + ( 65 ) FROM tab1 AS cor0
----
1690
650
845

onlyif mysql # use DIV operator for integer division
query I rowsort label-2879
SELECT ALL - + col2 + - 78 DIV ( + col1 ) FROM tab1 AS cor0
----
-102
-57
-64

skipif mysql # not compatible
query I rowsort label-2879
SELECT ALL - + col2 + - 78 / ( + col1 ) FROM tab1 AS cor0
----
-102
-57
-64

query I rowsort
SELECT col0 * + col0 + 72 * col0 AS col0 FROM tab0 AS cor0
----
14329
2304
3745

query I rowsort
SELECT - cor0.col0 * + ( - ( - col0 ) ) FROM tab0 AS cor0
----
-1225
-576
-7921

query I rowsort
SELECT - col2 * ( col2 ) + - col0 AS col1 FROM tab1 AS cor0
----
-2919
-3313
-9296

onlyif mysql # use DIV operator for integer division
query I rowsort label-2883
SELECT ALL - - cor0.col1 DIV ( + col1 ) + cor0.col1 FROM tab0 AS cor0
----
87
92
98

skipif mysql # not compatible
query I rowsort label-2883
SELECT ALL - - cor0.col1 / ( + col1 ) + cor0.col1 FROM tab0 AS cor0
----
87
92
98

query I rowsort
SELECT + cor0.col2 + col0 * + col1 AS col0 FROM tab0 AS cor0
----
2097
3396
8181

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col0 * - col1 * + col2 - col0 * - cor0.col1 col2 FROM tab2 AS cor0
----
-115050
-49691
-5642

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 50 col0 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to 314aace40e704c20a6be06204a329f80

query I rowsort
SELECT tab0.col1 * + col2 + tab0.col0 * + col1 * - col0 FROM tab0
----
-118728
-46698
-713349

query I rowsort
SELECT + ( col2 ) - + tab2.col1 AS col1 FROM tab2
----
-33
-4
21

query I rowsort
SELECT DISTINCT col2 * - col2 + col2 * - col1 AS col1 FROM tab0 cor0
----
-14186
-3927
-98

query I rowsort
SELECT DISTINCT - col0 * ( col1 ) * col0 AS col2 FROM tab1 AS cor0
----
-234
-40960
-83200

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2891
SELECT ALL + + col0 * CAST( NULL AS SIGNED ) + col0 * + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2891
SELECT ALL + + col0 * CAST ( NULL AS INTEGER ) + col0 * + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col2 - + ( + col1 ) col0 FROM tab2 AS cor0
----
-55
-58
-85

query I rowsort
SELECT ALL - col2 + col2 + col1 AS col1 FROM tab0 AS cor0
----
86
91
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2894
SELECT col2 * - CAST( 41 AS SIGNED ) + col2 FROM tab1 AS cor0
----
-2160
-2280
-3840

skipif mysql # not compatible
query I rowsort label-2894
SELECT col2 * - CAST ( 41 AS INTEGER ) + col2 FROM tab1 AS cor0
----
-2160
-2280
-3840

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2895
SELECT ALL - col1 + + CAST( + 37 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
11
24
27

skipif mysql # not compatible
query I rowsort label-2895
SELECT ALL - col1 + + CAST ( + 37 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
11
24
27

query I rowsort
SELECT + - col0 + ( - cor0.col1 ) FROM tab2 AS cor0
----
-137
-38
-96

query I rowsort
SELECT ALL - col2 * - col2 - - col2 AS col1 FROM tab0 AS cor0
----
1122
2
6806

query I rowsort
SELECT ALL - + col0 * - 27 + + col1 FROM tab0 cor0
----
1042
2494
734

query I rowsort
SELECT ALL + - col2 * col1 * + col0 FROM tab0 AS cor0
----
-3395
-664118
-68112

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 9 col2 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 3dfe689e16ce3a87877d40f349e6c7b5

query I rowsort
SELECT + - 5 * cor0.col2 FROM tab0 AS cor0
----
-165
-410
-5

query I rowsort
SELECT + col0 * col0 + - col0 + 31 FROM tab2 AS cor0
----
6037
6193
73

query I rowsort
SELECT - col1 + + col1 + + col2 AS col0 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT - 84 * col1 + + col1 AS col1 FROM tab2 AS cor0
----
-1411
-2573
-4897

query I rowsort
SELECT - col1 * - 25 * col0 FROM tab2
----
115050
33575
5425

query I rowsort
SELECT DISTINCT + col1 * col0 * col1 FROM tab0
----
177504
329315
737009

query I rowsort
SELECT col1 * ( - col1 ) + + 28 * - col1 + col0 FROM tab1 AS cor0
----
-1401
-316
-453

query I rowsort
SELECT ( 11 ) FROM tab2 AS cor0
----
11
11
11

skipif mysql # not compatible
query I rowsort
SELECT ALL + CAST ( cor0.col1 AS REAL ) + col1 FROM tab2 AS cor0
----
118
34
62

query I rowsort
SELECT ( + col2 ) + - cor0.col1 AS col0 FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT DISTINCT cor1.col1 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
10
13
26

query I rowsort
SELECT ALL 39 FROM tab0, tab1 AS cor0, tab0 cor1
----
27 values hashing to ed2ebd9def3e2c38aa46cb3af60fe229

query I rowsort
SELECT ALL - 48 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 31c94943c073954e4ca20b170ab61f8c

onlyif mysql # use DIV operator for integer division
query I rowsort label-2914
SELECT + - col2 + + col0 DIV + col0 FROM tab0 AS cor0
----
-32
-81
0

skipif mysql # not compatible
query I rowsort label-2914
SELECT + - col2 + + col0 / + col0 FROM tab0 AS cor0
----
-32
-81
0

query I rowsort
SELECT ALL + col0 + - col0 + + col2 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT ALL - + 74 + col0 FROM tab1 AS cor0
----
-10
-71
6

query I rowsort
SELECT - 69 * col1 FROM tab2
----
-1173
-2139
-4071

query I rowsort
SELECT ALL + col1 + col2 * - ( - cor0.col2 * + col1 + col1 ) FROM tab1 AS cor0
----
118573
31930
74438

query I rowsort
SELECT DISTINCT + col2 * cor0.col0 * - col1 FROM tab1 AS cor0
----
-36480
-4212
-99840

query I rowsort
SELECT ALL - 28 + col2 * col0 FROM tab2
----
161
2000
2974

query I rowsort
SELECT - 69 * + col1 + + col1 AS col1 FROM tab0
----
-5848
-6188
-6596

query I rowsort
SELECT ALL cor0.col0 FROM tab1, tab2 AS cor0, tab0, tab2 AS cor1
----
81 values hashing to 05835f29dd9cd4fa16889de54dec3cb6

onlyif mysql # use DIV operator for integer division
query I rowsort label-2923
SELECT ALL + 21 DIV - col1 - + col0 FROM tab1 AS cor0
----
-3
-66
-81

skipif mysql # not compatible
query I rowsort label-2923
SELECT ALL + 21 / - col1 - + col0 FROM tab1 AS cor0
----
-3
-66
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + + cor0.col0 * ( ( col1 ) ) col1 FROM tab2 AS cor0
----
1305
190
4576

query I rowsort
SELECT ALL - 73 AS col0 FROM tab1 AS cor0
----
-73
-73
-73

query I rowsort
SELECT DISTINCT + + col1 + + cor0.col0 FROM tab2 cor0
----
137
38
96

query I rowsort
SELECT - col0 + + 62 AS col0 FROM tab0 AS cor0
----
-27
27
38

query I rowsort
SELECT ALL + col2 * - col1 - - tab0.col1 AS col0 FROM tab0
----
-2752
-7371
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2929
SELECT DISTINCT + tab2.col0 - + col1 DIV col1 AS col2 FROM tab2
----
6
77
78

skipif mysql # not compatible
query I rowsort label-2929
SELECT DISTINCT + tab2.col0 - + col1 / col1 AS col2 FROM tab2
----
6
77
78

query I rowsort
SELECT ALL ( 64 ) + - col0 + + ( 17 ) FROM tab2
----
2
3
74

query I rowsort
SELECT DISTINCT ( + 84 ) * col1 * ( + 9 ) + col0 AS col0 FROM tab1
----
19659
7624
9908

query I rowsort
SELECT DISTINCT + 54 * 2 * col0 - col2 FROM tab1 AS cor0
----
270
6855
8544

query I rowsort
SELECT ALL 94 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24

query I rowsort
SELECT ( col2 ) - + col2 AS col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - 99 AS col2 FROM tab2 AS cor0
----
-99
-99
-99

query I rowsort
SELECT DISTINCT + + 62 + - col2 AS col1 FROM tab0 AS cor0
----
-20
29
61

query I rowsort
SELECT - + ( + col2 ) + col0 AS col1 FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT DISTINCT + col0 + + ( col0 ) + + col2 FROM tab1 cor0
----
185
256
60

onlyif mysql # use DIV operator for integer division
query I rowsort label-2939
SELECT DISTINCT col2 DIV - col0 col2 FROM tab0
----
-1
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2939
SELECT DISTINCT col2 / - col0 col2 FROM tab0
----
-1
0

query I rowsort
SELECT + col1 + - ( cor0.col2 ) * - col2 AS col1 FROM tab2 AS cor0
----
1461
735
760

onlyif mysql # use DIV operator for integer division
query I rowsort label-2941
SELECT col1 DIV 34 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2941
SELECT col1 / 34 AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - + cor0.col0 AS col1 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to c82df1de3cb666224690a83f3d790d79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 44 col0 FROM tab2
----
44
44
44

query I rowsort
SELECT - + 55 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to ac76841ceecd2311e80c621d15bacdd3

query I rowsort
SELECT DISTINCT + col2 + - col1 * + col1 AS col1 FROM tab1
----
-43
-622
-73

query I rowsort
SELECT DISTINCT col0 * - 44 + 61 * col2 FROM tab2 AS cor0
----
-1158
-1846
1339

query I rowsort
SELECT ALL - - col2 + + 2 FROM tab1 AS cor0
----
56
59
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - ( - cor0.col1 ) col2 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT + col1 * ( 85 ) + - col2 * - col1 * - cor0.col2 AS col1 FROM tab2 cor0
----
-19964
-23103
-34869

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 - - cor0.col2 * col2 col2 FROM tab1 AS cor0
----
2862
3192
9120

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2951
SELECT + - cor0.col2 * CAST( 22 AS SIGNED ) - cor0.col2 * col1 FROM tab1 AS cor0
----
-1824
-2592
-3360

skipif mysql # not compatible
query I rowsort label-2951
SELECT + - cor0.col2 * CAST ( 22 AS INTEGER ) - cor0.col2 * col1 FROM tab1 AS cor0
----
-1824
-2592
-3360

query I rowsort
SELECT DISTINCT - col1 * + 94 + + cor0.col1 * + cor0.col1 FROM tab0 cor0
----
-273
-688
291

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 3 + cor0.col2 * col1 col1 FROM tab1 AS cor0
----
1245
1401
567

query I rowsort
SELECT ALL 33 * 3 AS col2 FROM tab1 cor0
----
99
99
99

query I rowsort
SELECT DISTINCT + - 43 FROM tab0 AS cor0
----
-43

query I rowsort
SELECT ALL - col1 * 85 AS col0 FROM tab1 AS cor0
----
-1105
-2210
-850

query I rowsort
SELECT + cor0.col1 * + col2 + + cor0.col1 FROM tab2 cor0
----
1593
663
868

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2958
SELECT DISTINCT + CAST( NULL AS SIGNED ) / col0 col0 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2958
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / col0 col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2959
SELECT DISTINCT + CAST( col1 * + col0 AS SIGNED ) AS col2 FROM tab2
----
1343
217
4602

skipif mysql # not compatible
query I rowsort label-2959
SELECT DISTINCT + CAST ( col1 * + col0 AS INTEGER ) AS col2 FROM tab2
----
1343
217
4602

query I rowsort
SELECT + 77 + col0 AS col2 FROM tab2 AS cor0
----
155
156
84

query I rowsort
SELECT DISTINCT + 99 + + col1 FROM tab1 AS cor0
----
109
112
125

query I rowsort
SELECT - + 48 + cor0.col1 AS col1 FROM tab2 AS cor0
----
-17
-31
11

query I rowsort
SELECT DISTINCT 23 + + col0 FROM tab2 AS cor0
----
101
102
30

query I rowsort
SELECT ALL col0 * col1 + col0 + - ( col1 ) FROM tab1 cor0
----
1107
55
694

onlyif mysql # use DIV operator for integer division
query I rowsort label-2965
SELECT DISTINCT + + col1 + col1 + cor0.col2 * col0 DIV col0 FROM tab2 AS cor0
----
144
72
89

skipif mysql # not compatible
query I rowsort label-2965
SELECT DISTINCT + + col1 + col1 + cor0.col2 * col0 / col0 FROM tab2 AS cor0
----
144
72
89

query I rowsort
SELECT - 97 + - cor0.col1 * cor1.col2 AS col2 FROM tab2, tab0 AS cor0, tab0 cor1
----
27 values hashing to 1d66471a6f93aebd73bdbfe3f6c1f33d

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( col2 ) * + col2 + + col2 col1 FROM tab0
----
1122
2
6806

query I rowsort
SELECT - - cor1.col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8

query I rowsort
SELECT - 74 * col1 + col1 FROM tab0 AS cor0
----
-6278
-6643
-7081

query I rowsort
SELECT 78 + col2 AS col0 FROM tab0 AS cor0
----
111
160
79

query I rowsort
SELECT ALL - col1 + - col2 - - col2 FROM tab1 cor0
----
-10
-13
-26

query I rowsort
SELECT + 32 * - col2 AS col2 FROM tab0 cor0
----
-1056
-2624
-32

query I rowsort
SELECT + 41 * - col1 AS col1 FROM tab0 AS cor0
----
-3526
-3731
-3977

query I rowsort
SELECT DISTINCT col1 * - col2 + + col2 + col1 * col0 FROM tab0
----
-741
3299
719

query I rowsort
SELECT col2 * - ( 21 ) FROM tab2
----
-546
-567
-798

onlyif mysql # use DIV operator for integer division
query I rowsort label-2976
SELECT - - col1 * col2 DIV + cor0.col0 AS col1 FROM tab2 AS cor0
----
119
19
8

skipif mysql # not compatible
query I rowsort label-2976
SELECT - - col1 * col2 / + cor0.col0 AS col1 FROM tab2 AS cor0
----
119
19
8

onlyif mysql # use DIV operator for integer division
query I rowsort label-2977
SELECT + 15 DIV - cor0.col2 + col1 FROM tab1 cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-2977
SELECT + 15 / - cor0.col2 + col1 FROM tab1 cor0
----
10
13
26

query I rowsort
SELECT DISTINCT + 20 * 90 AS col2 FROM tab1
----
1800

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - col2 col2 FROM tab0 cor0
----
-9
34
7

query I rowsort
SELECT ALL + ( col0 ) * + col1 FROM tab0
----
2064
3395
8099

query I rowsort
SELECT + tab2.col0 * - col0 * col0 AS col2 FROM tab2
----
-343
-474552
-493039

onlyif mysql # use DIV operator for integer division
query I rowsort label-2982
SELECT DISTINCT + ( 96 + + col2 ) DIV col1 FROM tab2
----
2
3
7

skipif mysql # not compatible
query I rowsort label-2982
SELECT DISTINCT + ( 96 + + col2 ) / col1 FROM tab2
----
2
3
7

query I rowsort
SELECT col1 * + ( - col2 ) AS col0 FROM tab0
----
-2838
-7462
-97

query I rowsort
SELECT - 22 FROM tab2, tab0 cor0
----
9 values hashing to fae46f8148b02964f7145eb6ed5819f9

query I rowsort
SELECT ALL + ( col2 ) * + col1 AS col0 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT - - col0 * + cor0.col0 AS col2 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT DISTINCT col2 + + ( col0 ) AS col0 FROM tab0
----
171
36
57

query I rowsort
SELECT + 78 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4

query I rowsort
SELECT DISTINCT col2 + - 36 AS col0 FROM tab1
----
18
21
60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + tab2.col0 + col0 col1 FROM tab2
----
175
215
45

query I rowsort
SELECT - 79 + - col0 AS col0 FROM tab2
----
-157
-158
-86

query I rowsort
SELECT DISTINCT - 63 FROM tab2, tab0 AS cor0
----
-63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 71 col1 FROM tab2
----
71
71
71

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2994
SELECT CAST( col1 AS SIGNED ) * col0 FROM tab2 cor0
----
1343
217
4602

skipif mysql # not compatible
query I rowsort label-2994
SELECT CAST ( col1 AS INTEGER ) * col0 FROM tab2 cor0
----
1343
217
4602

query I rowsort
SELECT DISTINCT 5 + - col2 AS col0 FROM tab0 AS cor0
----
-28
-77
4

onlyif mysql # use DIV operator for integer division
query I rowsort label-2996
SELECT ALL + ( - ( + col2 ) ) DIV 54 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2996
SELECT ALL + ( - ( + col2 ) ) / 54 FROM tab0 AS cor0
----
-1
0
0

query I rowsort
SELECT DISTINCT + 30 + col0 FROM tab2 AS cor0
----
108
109
37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 col0 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8

query I rowsort
SELECT 31 * col2 AS col1 FROM tab1
----
1674
1767
2976

onlyif mysql # use DIV operator for integer division
query I rowsort label-3000
SELECT tab2.col2 * tab2.col2 DIV - 12 FROM tab2
----
-120
-56
-60

skipif mysql # not compatible
query I rowsort label-3000
SELECT tab2.col2 * tab2.col2 / - 12 FROM tab2
----
-120
-56
-60

query I rowsort
SELECT + tab2.col1 AS col1 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

query I rowsort
SELECT + col2 + + col2 - tab1.col2 * - col2 * + col0 FROM tab1
----
208050
737472
8856

query I rowsort
SELECT 13 + + col0 AS col2 FROM tab2 AS cor0
----
20
91
92

query I rowsort
SELECT DISTINCT + + col2 * - cor0.col1 AS col0 FROM tab1 cor0
----
-1248
-1404
-570

query I rowsort
SELECT ALL - - cor0.col0 + ( + cor0.col2 ) AS col1 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT DISTINCT - col1 * - 84 + col1 * col1 + col2 AS col1 FROM tab2 AS cor0
----
1755
3592
8463

onlyif mysql # use DIV operator for integer division
query I rowsort label-3007
SELECT - col0 + ( - 52 ) DIV + col1 FROM tab2 AS cor0
----
-78
-8
-82

skipif mysql # not compatible
query I rowsort label-3007
SELECT - col0 + ( - 52 ) / + col1 FROM tab2 AS cor0
----
-78
-8
-82

query I rowsort
SELECT DISTINCT + col0 + ( cor0.col2 ) - col2 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT - 1 AS col1 FROM tab2
----
-1
-1
-1

query I rowsort
SELECT + col0 + 30 FROM tab1 AS cor0
----
110
33
94

query I rowsort
SELECT ALL + col1 + col1 * + col1 FROM tab0 AS cor0
----
7482
8372
9506

query I rowsort
SELECT DISTINCT col0 + + ( col2 ) AS col0 FROM tab0 cor0
----
171
36
57

query I rowsort
SELECT + - col0 * + col1 + - ( col0 ) AS col0 FROM tab1 AS cor0
----
-1120
-704
-81

query I rowsort
SELECT ALL - col2 * ( col2 ) + - col0 FROM tab0 AS cor0
----
-1113
-36
-6813

query I rowsort
SELECT ALL - + col2 * - 11 - col2 AS col2 FROM tab2 cor0
----
260
270
380

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3016
SELECT - + col0 * + cor0.col0 * ( col0 * + CAST( + col0 AS SIGNED ) ) FROM tab1 AS cor0
----
-16777216
-40960000
-81

skipif mysql # not compatible
query I rowsort label-3016
SELECT - + col0 * + cor0.col0 * ( col0 * + CAST ( + col0 AS INTEGER ) ) FROM tab1 AS cor0
----
-16777216
-40960000
-81

query I rowsort
SELECT + tab1.col2 + - 81 AS col0 FROM tab1
----
-24
-27
15

onlyif mysql # use DIV operator for integer division
query I rowsort label-3018
SELECT ALL col1 DIV col0 + tab0.col1 AS col1 FROM tab0
----
89
92
99

skipif mysql # not compatible
query I rowsort label-3018
SELECT ALL col1 / col0 + tab0.col1 AS col1 FROM tab0
----
89
92
99

query I rowsort
SELECT ALL col2 * col2 + tab2.col0 FROM tab2
----
1523
736
754

query I rowsort
SELECT ALL + col1 + + col2 * - col1 * - cor0.col0 AS col0 FROM tab0 AS cor0
----
3492
664209
68198

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * ( + 67 ) col1 FROM tab1 cor0
----
-3618
-3819
-6432

query I rowsort
SELECT - col0 * ( 39 ) + col1 * 66 - col1 AS col1 FROM tab1 AS cor0
----
-1846
-2275
1573

query I rowsort
SELECT ALL - 62 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to d2579f9395350eda865ff3a2d38a74f6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + col0 * - col2 col1 FROM tab0 AS cor0
----
-132
-7389
-878

query I rowsort
SELECT - - col0 * col1 + cor0.col2 * - col0 * + 87 AS col1 FROM tab1 AS cor0
----
-14016
-316736
-667120

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3026
SELECT DISTINCT CAST( NULL AS SIGNED ) + 88 * + cor0.col2 + col2 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3026
SELECT DISTINCT CAST ( NULL AS INTEGER ) + 88 * + cor0.col2 + col2 AS col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL - ( col1 ) * - col2 + cor0.col1 * col2 FROM tab0 AS cor0
----
14924
194
5676

query I rowsort
SELECT + - 91 * col0 * col0 FROM tab1 AS cor0
----
-372736
-582400
-819

onlyif mysql # use DIV operator for integer division
query I rowsort label-3029
SELECT DISTINCT + + 15 * - col2 + - cor0.col0 DIV 7 AS col1 FROM tab2 cor0
----
-401
-406
-581

skipif mysql # not compatible
query I rowsort label-3029
SELECT DISTINCT + + 15 * - col2 + - cor0.col0 / 7 AS col1 FROM tab2 cor0
----
-401
-406
-581

query I rowsort
SELECT 17 * col2 + - col2 AS col1 FROM tab2 AS cor0
----
416
432
608

query I rowsort
SELECT DISTINCT + + 15 + col0 AS col0 FROM tab1 cor0
----
18
79
95

query I rowsort
SELECT ALL col2 + - ( + col0 ) AS col0 FROM tab2
----
-41
-52
20

query I rowsort
SELECT ALL - 45 + cor0.col2 * - tab0.col1 AS col2 FROM tab0, tab0 cor0
----
9 values hashing to 96738293848e5abbc05701b395ba04fa

query I rowsort
SELECT col0 + + col1 * + col2 AS col0 FROM tab1
----
1328
1407
634

query I rowsort
SELECT ALL 7 AS col1 FROM tab2 cor0
----
7
7
7

query I rowsort
SELECT - 81 * + col2 FROM tab2 AS cor0
----
-2106
-2187
-3078

query I rowsort
SELECT DISTINCT + - 89 + - col1 * + col1 AS col1 FROM tab1 AS cor0
----
-189
-258
-765

query I rowsort
SELECT + + 68 + col1 * col0 FROM tab0 AS cor0
----
2132
3463
8167

query I rowsort
SELECT - 0 * + col2 AS col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + + cor0.col2 + + col0 AS col0 FROM tab0 AS cor0
----
171
36
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * + col0 * col0 col0 FROM tab0 AS cor0
----
1225
19008
649522

onlyif mysql # use DIV operator for integer division
query I rowsort label-3042
SELECT DISTINCT + - ( col1 ) + + CAST( + col0 AS SIGNED ) DIV cor0.col0 FROM tab0 AS cor0
----
-85
-90
-96

skipif mysql # not compatible
query I rowsort label-3042
SELECT DISTINCT + - ( col1 ) + + CAST ( + col0 AS INTEGER ) / cor0.col0 FROM tab0 AS cor0
----
-85
-90
-96

query I rowsort
SELECT + + 78 + - col2 * 20 FROM tab2 AS cor0
----
-442
-462
-682

query I rowsort
SELECT DISTINCT col1 * - 12 AS col2 FROM tab1
----
-120
-156
-312

query I rowsort
SELECT DISTINCT - - 27 * col1 + - col2 AS col1 FROM tab2 AS cor0
----
1567
421
810

onlyif mysql # use DIV operator for integer division
query I rowsort label-3046
SELECT ALL 74 DIV 75 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3046
SELECT ALL 74 / 75 AS col2 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT - 69 - + tab2.col1 AS col2 FROM tab2
----
-100
-128
-86

query I rowsort
SELECT + cor0.col0 + - 66 FROM tab1 AS cor0
----
-2
-63
14

query I rowsort
SELECT ALL - col0 * col1 + col1 AS col0 FROM tab0 AS cor0
----
-1978
-3298
-8008

query I rowsort
SELECT - 48 * col1 + col0 FROM tab2
----
-1481
-2754
-737

onlyif mysql # use DIV operator for integer division
query I rowsort label-3051
SELECT + col1 DIV + col2 col0 FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3051
SELECT + col1 / + col2 col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - + col1 * col0 + col2 AS col0 FROM tab0 AS cor0
----
-2031
-3394
-8017

query I rowsort
SELECT col1 + tab2.col0 * + 22 * col2 + - col0 AS col2 FROM tab2
----
4182
44597
65982

query I rowsort
SELECT + - 81 * - col2 AS col1 FROM tab2 AS cor0
----
2106
2187
3078

query I rowsort
SELECT DISTINCT + 32 * - col1 AS col2 FROM tab0 AS cor0
----
-2752
-2912
-3104

query I rowsort
SELECT ALL - - ( col0 ) FROM tab2 cor0
----
7
78
79

query I rowsort
SELECT col0 + - col1 * 2 + + col1 AS col2 FROM tab2 AS cor0
----
-24
19
62

query I rowsort
SELECT DISTINCT 75 * + ( cor0.col1 ) AS col0 FROM tab1, tab1 cor0, tab2 AS cor1
----
1950
750
975

query I rowsort
SELECT col2 * 76 AS col2 FROM tab2 AS cor0
----
1976
2052
2888

query I rowsort
SELECT DISTINCT tab0.col0 + - 11 AS col1 FROM tab0, tab2 cor0
----
13
24
78

query I rowsort
SELECT DISTINCT col0 + col0 * + col2 AS col2 FROM tab2 AS cor0
----
196
2106
3081

onlyif mysql # use DIV operator for integer division
query I rowsort label-3062
SELECT ALL - 43 + - col1 * ( + cor0.col1 ) DIV col1 AS col1 FROM tab2 AS cor0
----
-102
-60
-74

skipif mysql # not compatible
query I rowsort label-3062
SELECT ALL - 43 + - col1 * ( + cor0.col1 ) / col1 AS col1 FROM tab2 AS cor0
----
-102
-60
-74

query I rowsort
SELECT - 52 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 9500afe5646d620d5e8943351a29d082

query I rowsort
SELECT + 47 * + cor0.col0 AS col1 FROM tab2 AS cor0
----
329
3666
3713

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + - ( col1 ) * col0 col2 FROM tab0
----
-1978
-3298
-8008

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab0, tab0 cor2
----
3645 values hashing to 4037d65571c1bbf6e0e7d759f858120e

query I rowsort
SELECT - col1 * - col2 + - col0 FROM tab2
----
1456
567
830

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col1 col2 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2

query I rowsort
SELECT DISTINCT - ( + ( - col2 ) ) FROM tab0
----
1
33
82

query I rowsort
SELECT + col1 * - tab2.col1 * + col0 AS col2 FROM tab2
----
-22831
-271518
-6727

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * col1 + cor0.col2 * col1 col2 FROM tab1 AS cor0
----
1210
1482
2288

query I rowsort
SELECT cor0.col2 * 83 * + 79 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 2b265a9c1fe9619982415bba4be3e6a3

query I rowsort
SELECT ALL ( tab1.col1 ) AS col1 FROM tab1
----
10
13
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( + ( + col1 ) ) col1 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT 67 * - col0 + - col0 AS col1 FROM tab0 AS cor0
----
-1632
-2380
-6052

query I rowsort
SELECT - col1 + + 13 AS col2 FROM tab0 AS cor0
----
-73
-78
-84

query I rowsort
SELECT - - cor0.col0 + + col0 AS col2 FROM tab2 AS cor0
----
14
156
158

query I rowsort
SELECT 24 + + col0 AS col2 FROM tab1 AS cor0
----
104
27
88

query I rowsort
SELECT col2 + - cor0.col2 * ( col2 ) FROM tab1 AS cor0
----
-2862
-3192
-9120

query I rowsort
SELECT - + 51 * + col0 + + col2 AS col0 FROM tab0 AS cor0
----
-1191
-1784
-4457

query I rowsort
SELECT col0 * - 67 * col2 AS col2 FROM tab2
----
-12663
-135876
-201134

onlyif mysql # use DIV operator for integer division
query I rowsort label-3082
SELECT DISTINCT + col2 DIV 30 AS col1 FROM tab1 AS cor0
----
1
3

skipif mysql # not compatible
query I rowsort label-3082
SELECT DISTINCT + col2 / 30 AS col1 FROM tab1 AS cor0
----
1
3

query I rowsort
SELECT col1 + col1 * col1 AS col0 FROM tab0 AS cor0
----
7482
8372
9506

query I rowsort
SELECT 59 + + 63 AS col0 FROM tab1 AS cor0
----
122
122
122

query I rowsort
SELECT + 63 + + 90 FROM tab1 cor0
----
153
153
153

query I rowsort
SELECT - - col2 + 24 FROM tab0 AS cor0
----
106
25
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 18 * + col0 + col2 col0 FROM tab1 AS cor0
----
108
1209
1536

query I rowsort
SELECT ALL col0 * col2 + tab0.col0 AS col1 FROM tab0
----
70
7387
816

query I rowsort
SELECT ALL col1 + + tab1.col1 AS col0 FROM tab1
----
20
26
52

query I rowsort
SELECT DISTINCT - 81 FROM tab0, tab2 AS cor0
----
-81

query I rowsort
SELECT col1 * col2 * - col1 FROM tab0
----
-244068
-679042
-9409

query I rowsort
SELECT ALL tab0.col1 * - 88 AS col1 FROM tab0, tab0 cor0
----
9 values hashing to 1688092a1528c8577b0cd808ddf99200

query I rowsort
SELECT DISTINCT - cor0.col0 * cor0.col0 * - col1 AS col2 FROM tab1 AS cor0
----
234
40960
83200

query I rowsort
SELECT col2 + + col2 + - col2 AS col1 FROM tab0 cor0
----
1
33
82

query I rowsort
SELECT col0 * + col1 * + cor0.col0 FROM tab1 cor0
----
234
40960
83200

query III rowsort
SELECT * FROM tab2 WHERE NOT + col1 <= col1 + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + - col2 * col2 col2 FROM tab0 AS cor0
----
-1065
-6635
34

query III rowsort
SELECT * FROM tab2 WHERE ( - col2 * col1 ) <= NULL
----

query I rowsort
SELECT - col2 * col1 + + col0 * + col1 FROM tab1
----
-1326
-208
70

query I rowsort
SELECT - col0 AS col0 FROM tab0 WHERE - col2 + col1 <= NULL
----

query I rowsort
SELECT DISTINCT col2 + col2 * col0 AS col0 FROM tab2
----
2054
216
3040

query I rowsort
SELECT col1 + col0 - - col0 AS col2 FROM tab1
----
138
173
32

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col0 > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab0.col1 col2 FROM tab0 WHERE NOT NULL = + col0 / col0
----

query I rowsort
SELECT col1 * - tab1.col2 AS col1 FROM tab1 WHERE NULL > NULL
----

query I rowsort
SELECT col1 * col1 + + col2 * col0 FROM tab2
----
1150
3291
5509

query I rowsort
SELECT DISTINCT - col0 * col2 FROM tab2 AS cor0 WHERE NOT ( - col2 ) BETWEEN col0 AND NULL
----
-189
-2028
-3002

query I rowsort
SELECT - col2 FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( - col1 - col0 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-3109
SELECT + col2 + tab0.col0 DIV col2 + col1 col2 FROM tab0
----
119
133
174

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3109
SELECT + col2 + tab0.col0 / col2 + col1 col2 FROM tab0
----
119
133
174

onlyif mysql # use DIV operator for integer division
query I rowsort label-3110
SELECT DISTINCT tab2.col1 + col0 DIV col0 FROM tab2
----
18
32
60

skipif mysql # not compatible
query I rowsort label-3110
SELECT DISTINCT tab2.col1 + col0 / col0 FROM tab2
----
18
32
60

query I rowsort
SELECT ALL + tab2.col2 AS col2 FROM tab2 WHERE NOT + col0 + + col2 NOT BETWEEN + col1 * col1 AND - col2 * - col0
----

query I rowsort
SELECT DISTINCT col2 * - col2 * col1 FROM tab0
----
-611884
-93654
-97

query I rowsort
SELECT col1 + col0 + - col2 FROM tab1
----
-25
-3
17

query I rowsort
SELECT ALL - cor0.col1 + col2 * col2 FROM tab2 cor0
----
1427
617
698

onlyif mysql # use DIV operator for integer division
query I rowsort label-3115
SELECT col0 + col2 DIV col1 AS col1 FROM tab1
----
5
69
87

skipif mysql # not compatible
query I rowsort label-3115
SELECT col0 + col2 / col1 AS col1 FROM tab1
----
5
69
87

query I rowsort
SELECT + col2 - tab1.col2 * + col2 * col0 AS col1 FROM tab1
----
-207879
-737184
-8694

query I rowsort
SELECT ALL - col1 + - col1 - col0 FROM tab2
----
-113
-196
-69

query I rowsort
SELECT DISTINCT - col0 + + tab0.col1 - col2 AS col0 FROM tab0
----
-80
29
61

query I rowsort
SELECT col1 * + cor0.col1 * col2 - + col0 FROM tab2 cor0
----
10903
25940
90428

onlyif mysql # use DIV operator for integer division
query I rowsort label-3120
SELECT ALL + - col2 + col1 DIV col2 FROM tab1 AS cor0
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-3120
SELECT ALL + - col2 + col1 / col2 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT DISTINCT - col1 - col2 AS col0 FROM tab0 cor0
----
-119
-173
-98

query I rowsort
SELECT DISTINCT - - col1 * + col2 * cor0.col1 AS col0 FROM tab2 AS cor0
----
10982
25947
90506

onlyif mysql # use DIV operator for integer division
query I rowsort label-3123
SELECT col0 DIV col1 + cor0.col1 * - col2 FROM tab0 AS cor0
----
-2838
-7462
-97

skipif mysql # not compatible
query I rowsort label-3123
SELECT col0 / col1 + cor0.col1 * - col2 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT - col0 * + col0 + col0 AS col0 FROM tab2 AS cor0
----
-42
-6006
-6162

query I rowsort
SELECT col1 + col1 + + col2 FROM tab2
----
144
72
89

query I rowsort
SELECT - col2 * + col2 * - 21 AS col0 FROM tab1
----
193536
61236
68229

query I rowsort
SELECT ALL 94 AS col0 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to a4d239626cf0546ac1b2f57bb8407089

query I rowsort
SELECT ALL - 39 FROM tab1
----
-39
-39
-39

query I rowsort
SELECT DISTINCT + col1 * - 1 FROM tab1 AS cor0
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort
SELECT - + col2 - + CAST ( col0 AS REAL ) FROM tab1 AS cor0
----
-121
-176
-57

query I rowsort
SELECT DISTINCT + - col0 * 94 + col2 FROM tab0 cor0
----
-2223
-3289
-8284

query I rowsort
SELECT DISTINCT col2 - col2 AS col0 FROM tab1 cor0
----
0

query I rowsort
SELECT ALL col2 * - 43 AS col0 FROM tab1 AS cor0
----
-2322
-2451
-4128

query I rowsort
SELECT + + col1 - - col1 AS col0 FROM tab2 AS cor0
----
118
34
62

query I rowsort
SELECT DISTINCT - cor0.col1 + cor0.col1 + + 15 AS col2 FROM tab1 AS cor0
----
15

onlyif mysql # use DIV operator for integer division
query I rowsort label-3136
SELECT col0 DIV - cor0.col0 + ( col0 + cor0.col2 ) DIV col1 FROM tab0 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-3136
SELECT col0 / - cor0.col0 + ( col0 + cor0.col2 ) / col1 FROM tab0 AS cor0
----
-1
-1
0

query I rowsort
SELECT ALL - col0 + 82 + col0 AS col1 FROM tab2 AS cor0
----
82
82
82

query I rowsort
SELECT DISTINCT - cor0.col2 + + 66 FROM tab0 AS cor0
----
-16
33
65

query I rowsort
SELECT col1 + col1 * + 57 * - col1 AS col2 FROM tab1
----
-38506
-5690
-9620

query I rowsort
SELECT + col0 + + col2 + + col0 AS col0 FROM tab2
----
182
196
41

query I rowsort
SELECT ALL + col0 * + ( + col2 ) AS col2 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT DISTINCT + + col2 + - col1 * 74 AS col0 FROM tab0 AS cor0
----
-6331
-6652
-7177

query I rowsort
SELECT ALL - - col2 * 41 AS col2 FROM tab0 AS cor0
----
1353
3362
41

query I rowsort
SELECT + cor0.col0 * + col0 + - 14 * - col1 AS col2 FROM tab0 cor0
----
1780
2583
9195

query I rowsort
SELECT ALL + cor0.col1 * + col1 - ( + col2 ) * - col1 AS col2 FROM tab1 cor0
----
1417
2080
670

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3146
SELECT DISTINCT cor0.col2 * ( - col1 ) + + col0 + CAST( 99 AS SIGNED ) FROM tab2 AS cor0
----
-1357
-468
-731

skipif mysql # not compatible
query I rowsort label-3146
SELECT DISTINCT cor0.col2 * ( - col1 ) + + col0 + CAST ( 99 AS INTEGER ) FROM tab2 AS cor0
----
-1357
-468
-731

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3147
SELECT - col0 + CAST( + 74 AS SIGNED ) * + col0 FROM tab1 AS cor0
----
219
4672
5840

skipif mysql # not compatible
query I rowsort label-3147
SELECT - col0 + CAST ( + 74 AS INTEGER ) * + col0 FROM tab1 AS cor0
----
219
4672
5840

query I rowsort
SELECT ALL - col1 - - 82 FROM tab0 AS cor0
----
-15
-4
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 - + col0 col2 FROM tab2
----
0

query I rowsort
SELECT col2 / tab2.col0 FROM tab2 WHERE NULL > NULL
----

query III rowsort
SELECT * FROM tab1 WHERE col2 IN ( col0 )
----

query I rowsort
SELECT ALL col0 * col0 + col0 FROM tab1
----
12
4160
6480

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab2.col0 * tab2.col2 * tab2.col2 - col2 col1 FROM tab2
----
114038
5076
52702

query I rowsort
SELECT - tab2.col2 * col0 + + tab2.col2 FROM tab2
----
-162
-2002
-2964

query I rowsort
SELECT ALL col1 * - col0 AS col2 FROM tab0 WHERE ( col0 ) <> - col1
----
-2064
-3395
-8099

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - col2 ) NOT IN ( - col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 - - col0 col1 FROM tab1 cor0
----
128
160
6

query I rowsort
SELECT DISTINCT col0 - tab0.col1 FROM tab0
----
-2
-62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 69 col1 FROM tab1 AS cor0
----
-69
-69
-69

query I rowsort
SELECT ALL col2 * col0 + - col0 * 58 FROM tab1 AS cor0
----
-12
-64
3040

query I rowsort
SELECT ALL - - col0 - + col0 * ( - ( - cor0.col2 ) * - col2 ) FROM tab0 cor0
----
26160
598525
70

query I rowsort
SELECT DISTINCT - col0 - + col0 AS col1 FROM tab1 AS cor0
----
-128
-160
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col1 + + col0 + col0 col2 FROM tab2
----
3637
447
975

query I rowsort
SELECT DISTINCT - tab0.col2 + tab0.col0 * col2 - col1 FROM tab0 WHERE NULL < + col1 + col0
----

query I rowsort
SELECT DISTINCT + cor0.col0 + 65 - + col2 AS col1 FROM tab1 AS cor0
----
14
49
72

query I rowsort
SELECT - col2 * ( + col0 ) FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT DISTINCT col1 * - ( 81 ) AS col2 FROM tab0 AS cor0
----
-6966
-7371
-7857

query I rowsort
SELECT ALL - col0 + 19 * cor0.col2 AS col1 FROM tab1 AS cor0
----
1019
1023
1744

query I rowsort
SELECT - - col2 + col2 * - cor0.col0 * col2 AS col1 FROM tab0 AS cor0
----
-26103
-34
-598354

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3170
SELECT - CAST( col0 AS SIGNED ) * + col2 AS col2 FROM tab2 AS cor0
----
-189
-2028
-3002

skipif mysql # not compatible
query I rowsort label-3170
SELECT - CAST ( col0 AS INTEGER ) * + col2 AS col2 FROM tab2 AS cor0
----
-189
-2028
-3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - col1 col0 FROM tab2 cor0
----
-1343
-217
-4602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab0.col1 col1 FROM tab0, tab2, tab1 AS cor0
----
86
91
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 71 col1 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
71

query I rowsort
SELECT ALL - 74 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 5a567947d14593676e3825756f8e6130

query I rowsort
SELECT - 7 * col2 + + ( cor0.col2 ) AS col2 FROM tab0 AS cor0
----
-198
-492
-6

query I rowsort
SELECT ALL ( + col1 ) * + ( col2 ) + + col1 - 69 FROM tab2 AS cor0
----
1524
594
799

query I rowsort
SELECT + + cor0.col0 AS col1 FROM tab2 cor0
----
7
78
79

skipif mysql # not compatible
query I rowsort
SELECT col0 + - col0 - CAST ( col0 AS REAL ) AS col0 FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT ALL 97 + col1 AS col2 FROM tab1 cor0
----
107
110
123

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + col0 col2 FROM tab0 cor0
----
171
36
57

query I rowsort
SELECT DISTINCT col0 + col2 * 68 * + col2 FROM tab1 cor0
----
198291
220996
626768

query I rowsort
SELECT ( tab1.col0 ) * col1 + col2 * - col0 FROM tab1
----
-3008
-6640
-84

query I rowsort
SELECT DISTINCT 8 AS col0 FROM tab0, tab2 cor0
----
8

query I rowsort
SELECT - + col1 + - col1 + + col1 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT + cor0.col1 - - col2 AS col2 FROM tab2 cor0
----
55
58
85

query I rowsort
SELECT DISTINCT + col2 + - col1 * + col1 FROM tab0
----
-7363
-8199
-9408

query I rowsort
SELECT + - col0 * - col1 AS col1 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT - col2 * 44 + col0 FROM tab2 cor0
----
-1066
-1181
-1593

onlyif mysql # use DIV operator for integer division
query I rowsort label-3189
SELECT col2 DIV - tab2.col1 AS col1 FROM tab2
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-3189
SELECT col2 / - tab2.col1 AS col1 FROM tab2
----
-2
0
0

query I rowsort
SELECT + cor0.col0 + ( + col2 ) FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT col1 * 91 * + cor0.col0 - col1 AS col0 FROM tab1 AS cor0
----
58230
7072
94627

query I rowsort
SELECT + col1 * - col2 + + ( col1 ) * - col0 AS col2 FROM tab0 cor0
----
-15561
-3492
-4902

onlyif mysql # use DIV operator for integer division
query I rowsort label-3193
SELECT ALL col0 DIV 93 AS col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3193
SELECT ALL col0 / 93 AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + col1 * - col1 * - cor0.col0 FROM tab0 AS cor0
----
177504
329315
737009

query I rowsort
SELECT + col2 - cor0.col1 FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT + - col1 * + cor0.col2 + + col0 AS col1 FROM tab0 cor0
----
-2814
-62
-7373

query I rowsort
SELECT ALL + tab1.col2 * + tab1.col2 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to aeb56f097f17f262600266df7fcf8652

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 + + cor0.col1 * - cor0.col2 col0 FROM tab0 AS cor0
----
-2814
-62
-7373

onlyif mysql # use DIV operator for integer division
query I rowsort label-3199
SELECT ALL col1 DIV tab0.col2 + - 83 FROM tab0
----
-81
-82
14

skipif mysql # not compatible
query I rowsort label-3199
SELECT ALL col1 / tab0.col2 + - 83 FROM tab0
----
-81
-82
14

query I rowsort
SELECT ALL + col0 * + col1 + tab2.col0 + + col0 * + col0 AS col0 FROM tab2
----
10764
273
7663

query I rowsort
SELECT DISTINCT + col0 * 83 AS col2 FROM tab1
----
249
5312
6640

query I rowsort
SELECT ALL + col1 * 93 AS col0 FROM tab0
----
7998
8463
9021

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3203
SELECT ALL col2 * + CAST( col0 AS SIGNED ) AS col2 FROM tab1
----
162
3648
7680

skipif mysql # not compatible
query I rowsort label-3203
SELECT ALL col2 * + CAST ( col0 AS INTEGER ) AS col2 FROM tab1
----
162
3648
7680

query I rowsort
SELECT - col1 * + col2 + - col2 * - col0 AS col2 FROM tab1 AS cor0
----
-1242
3078
6432

onlyif mysql # use DIV operator for integer division
query I rowsort label-3205
SELECT + col1 * + 65 + + 46 DIV col2 AS col1 FROM tab0 AS cor0
----
5591
5915
6351

skipif mysql # not compatible
query I rowsort label-3205
SELECT + col1 * + 65 + + 46 / col2 AS col1 FROM tab0 AS cor0
----
5591
5915
6351

onlyif mysql # use DIV operator for integer division
query I rowsort label-3206
SELECT ALL col1 * 94 - + col0 DIV + col2 AS col0 FROM tab1
----
1222
2444
939

skipif mysql # not compatible
query I rowsort label-3206
SELECT ALL col1 * 94 - + col0 / + col2 AS col0 FROM tab1
----
1222
2444
939

query I rowsort
SELECT DISTINCT ( - col1 * - col0 ) FROM tab1
----
1040
640
78

query I rowsort
SELECT ALL - cor1.col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b5a4102107e5ebd26e341538f4fede1e

query I rowsort
SELECT DISTINCT - col2 + ( col2 ) FROM tab1 cor0
----
0

query I rowsort
SELECT ALL - tab1.col1 AS col0 FROM tab2, tab0 AS cor0 CROSS JOIN tab1
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3211
SELECT ALL cor0.col2 + CAST( NULL AS SIGNED ) AS col2 FROM tab0, tab2, tab0 cor0, tab1
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

skipif mysql # not compatible
query I rowsort label-3211
SELECT ALL cor0.col2 + CAST ( NULL AS INTEGER ) AS col2 FROM tab0, tab2, tab0 cor0, tab1
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

query I rowsort
SELECT - col1 + col0 * col1 * col1 FROM tab2
----
22814
271459
6696

query I rowsort
SELECT + 96 * + col1 * ( + col0 * col2 ) FROM tab0 AS cor0
----
325920
63755328
6538752

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 99 col2 FROM tab0 AS cor0
----
-99
-99
-99

query I rowsort
SELECT - col0 + - col1 * ( - col0 ) AS col1 FROM tab0 AS cor0
----
2040
3360
8010

query I rowsort
SELECT + - ( col1 ) * + col0 - 33 FROM tab1 AS cor0
----
-1073
-111
-673

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3217
SELECT CAST( NULL AS SIGNED ) * col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3217
SELECT CAST ( NULL AS INTEGER ) * col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + col1 ) * + col2 col1 FROM tab1 AS cor0
----
1248
1404
570

onlyif mysql # use DIV operator for integer division
query I rowsort label-3219
SELECT DISTINCT + cor0.col0 DIV 86 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3219
SELECT DISTINCT + cor0.col0 / 86 FROM tab1 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 23 + 81 * + col0 * col1 col1 FROM tab1 cor0
----
51817
6295
84217

query I rowsort
SELECT + col2 * + 4 AS col0 FROM tab1 AS cor0
----
216
228
384

query I rowsort
SELECT DISTINCT 18 AS col2 FROM tab2 AS cor0
----
18

query I rowsort
SELECT DISTINCT + + 64 * col2 FROM tab1 AS cor0
----
3456
3648
6144

query I rowsort
SELECT - col0 - + 63 * col2 AS col0 FROM tab1 AS cor0
----
-3405
-3655
-6128

query I rowsort
SELECT ALL + 16 + cor0.col0 + - col1 FROM tab2 AS cor0
----
-8
35
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 - 50 col0 FROM tab2 AS cor0
----
-19
-33
9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3227
SELECT DISTINCT CAST( cor0.col0 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-3227
SELECT DISTINCT CAST ( cor0.col0 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
3
64
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3228
SELECT DISTINCT + CAST( col1 AS SIGNED ) + col1 AS col1 FROM tab2 AS cor0
----
118
34
62

skipif mysql # not compatible
query I rowsort label-3228
SELECT DISTINCT + CAST ( col1 AS INTEGER ) + col1 AS col1 FROM tab2 AS cor0
----
118
34
62

query I rowsort
SELECT DISTINCT - 49 * + col0 * - col1 FROM tab0 cor0
----
101136
166355
396851

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3230
SELECT ALL + cor0.col1 * col0 + CAST( NULL AS SIGNED ) / col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3230
SELECT ALL + cor0.col1 * col0 + CAST ( NULL AS INTEGER ) / col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 62 AS col2 FROM tab0 AS cor0
----
-62

query I rowsort
SELECT ALL - 68 + - col1 AS col1 FROM tab1 AS cor0
----
-78
-81
-94

query I rowsort
SELECT ALL + + col0 + + ( col0 ) FROM tab2 AS cor0
----
14
156
158

query I rowsort
SELECT col2 * tab1.col2 * - 83 AS col0 FROM tab1
----
-242028
-269667
-764928

query I rowsort
SELECT - + col1 * - col2 * + col1 AS col2 FROM tab2 AS cor0
----
10982
25947
90506

query I rowsort
SELECT + 10 AS col0 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 0fe3e45a9ecd49584c2ab442100d5176

query I rowsort
SELECT ALL + 71 * col2 AS col0 FROM tab1 AS cor0
----
3834
4047
6816

query I rowsort
SELECT DISTINCT col2 * ( + col1 ) FROM tab2 cor0
----
1534
646
837

query I rowsort
SELECT + tab0.col1 + 34 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 72164bcaba3daf2931c95e3b54268bc9

query I rowsort
SELECT - col2 - - ( - tab1.col0 ) AS col1 FROM tab1
----
-121
-176
-57

query I rowsort
SELECT ALL col0 * ( col1 ) AS col1 FROM tab1
----
1040
640
78

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3242
SELECT - col2 * + CAST( NULL AS SIGNED ) - + 82 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3242
SELECT - col2 * + CAST ( NULL AS INTEGER ) - + 82 AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT col0 * + col2 + 68 FROM tab1
----
230
3716
7748

query I rowsort
SELECT + col2 + - 38 * + col1 AS col2 FROM tab0
----
-3235
-3376
-3685

query I rowsort
SELECT + cor0.col1 * - 2 AS col1 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to f2f707995d3bf15fbaa7060b3f35c112

query I rowsort
SELECT - 84 AS col2 FROM tab2
----
-84
-84
-84

query I rowsort
SELECT + ( 60 ) + col2 FROM tab1
----
114
117
156

query I rowsort
SELECT DISTINCT ( + col2 ) * tab2.col0 * - col1 AS col2 FROM tab2
----
-119652
-51034
-5859

onlyif mysql # use DIV operator for integer division
query I rowsort label-3249
SELECT - + ( col2 ) DIV + col0 AS col2 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3249
SELECT - + ( col2 ) / + col0 AS col2 FROM tab0 AS cor0
----
-1
0
0

query I rowsort
SELECT DISTINCT + 36 + + 12 FROM tab0 cor0
----
48

query I rowsort
SELECT ALL - 26 * + col1 + col0 FROM tab1 AS cor0
----
-196
-258
-673

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( - 15 ) col1 FROM tab0 AS cor0
----
15
15
15

query I rowsort
SELECT + 41 - cor0.col1 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to d5d616b29041e7949a73577bae8ec9f0

query I rowsort
SELECT DISTINCT 88 * col2 FROM tab1 AS cor0
----
4752
5016
8448

query I rowsort
SELECT DISTINCT col1 + - col0 * + 59 * col2 FROM tab1
----
-215222
-453107
-9532

query I rowsort
SELECT - 58 AS col1 FROM tab1
----
-58
-58
-58

query I rowsort
SELECT DISTINCT - col1 * tab0.col1 + col1 * col0 AS col2 FROM tab0
----
-182
-5332
-6014

query I rowsort
SELECT DISTINCT + ( col0 ) * col1 - - col1 FROM tab2 AS cor0
----
1360
248
4661

query I rowsort
SELECT + col0 * - col1 + col1 * - col2 FROM tab2
----
-1054
-1989
-6136

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col0 * + col1 col0 FROM tab2 AS cor0
----
1343
217
4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-3261
SELECT - col2 DIV - cor0.col0 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3261
SELECT - col2 / - cor0.col0 FROM tab0 AS cor0
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - 55 col1 FROM tab0 cor0
----
-1320
-1925
-4895

onlyif mysql # use DIV operator for integer division
query I rowsort label-3263
SELECT ALL + col0 + ( - cor0.col0 ) DIV - col2 AS col1 FROM tab0 AS cor0
----
24
70
90

skipif mysql # not compatible
query I rowsort label-3263
SELECT ALL + col0 + ( - cor0.col0 ) / - col2 AS col1 FROM tab0 AS cor0
----
24
70
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * cor0.col2 col2 FROM tab0 AS cor0
----
1
1089
6724

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + cor0.col2 + cor0.col1 * col0 + + col1 col1 FROM tab1 AS cor0
----
1149
158
707

query I rowsort
SELECT DISTINCT + 51 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
51

query I rowsort
SELECT ALL + col0 + ( + 93 ) * col1 * col0 FROM tab0 AS cor0
----
191976
315770
753296

query I rowsort
SELECT DISTINCT - col2 * - ( cor0.col2 ) + col0 AS col1 FROM tab1 AS cor0
----
2919
3313
9296

query I rowsort
SELECT ALL - cor0.col0 + + cor0.col0 AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - col2 * - ( + col1 ) FROM tab0 AS cor0
----
2838
7462
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-3271
SELECT DISTINCT - col1 + + col1 DIV cor0.col1 FROM tab1 AS cor0
----
-12
-25
-9

skipif mysql # not compatible
query I rowsort label-3271
SELECT DISTINCT - col1 + + col1 / cor0.col1 FROM tab1 AS cor0
----
-12
-25
-9

query I rowsort
SELECT ALL - col1 * col2 + ( cor0.col2 * col1 ) + cor0.col0 AS col0 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT ALL - 76 + - col0 AS col0 FROM tab2
----
-154
-155
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 24 + + 46 * + col1 col0 FROM tab0
----
3980
4210
4486

query I rowsort
SELECT ALL - col1 + col0 + col1 AS col1 FROM tab2
----
7
78
79

query I rowsort
SELECT ALL - col2 + ( col0 ) AS col1 FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT ALL + + col0 - - col0 * col1 AS col2 FROM tab1 AS cor0
----
1120
704
81

query I rowsort
SELECT DISTINCT - col0 * 64 * cor0.col1 FROM tab1 AS cor0
----
-40960
-4992
-66560

onlyif mysql # use DIV operator for integer division
query I rowsort label-3279
SELECT - ( - col2 + col1 ) DIV - ( - col2 + - col0 ) AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3279
SELECT - ( - col2 + col1 ) / - ( - col2 + - col0 ) AS col0 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL - col1 * - col0 + cor0.col2 FROM tab0 AS cor0
----
2097
3396
8181

query I rowsort
SELECT ALL col0 + + col0 * col1 * + col2 AS col2 FROM tab2 cor0
----
119730
51113
5866

query I rowsort
SELECT - + col1 + col1 * ( - 23 ) AS col2 FROM tab2 AS cor0
----
-1416
-408
-744

query I rowsort
SELECT + col0 - + col1 AS col0 FROM tab2 cor0
----
-24
19
62

query I rowsort
SELECT + ( + col0 ) + - col2 * 54 AS col0 FROM tab2 AS cor0
----
-1326
-1451
-1973

query I rowsort
SELECT DISTINCT col1 * 5 - - col2 AS col1 FROM tab2 AS cor0
----
123
182
321

query I rowsort
SELECT ALL col2 * 20 FROM tab2 AS cor0
----
520
540
760

query I rowsort
SELECT ALL cor0.col1 + 47 * - col2 FROM tab0 AS cor0
----
-1465
-3763
50

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab0, tab1 cor1, tab0 cor2, tab1 AS cor3
----
3645 values hashing to 80b3ced88f886d6e15182ebf21c93987

onlyif mysql # use DIV operator for integer division
query I rowsort label-3289
SELECT DISTINCT - cor0.col2 DIV ( col0 * col1 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3289
SELECT DISTINCT - cor0.col2 / ( col0 * col1 ) FROM tab0 AS cor0
----
0

query I rowsort
SELECT col2 * - ( col0 ) * + col2 FROM tab1 AS cor0
----
-207936
-737280
-8748

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3291
SELECT DISTINCT - col1 + + CAST( col1 AS SIGNED ) * col1 AS col0 FROM tab1 AS cor0
----
156
650
90

skipif mysql # not compatible
query I rowsort label-3291
SELECT DISTINCT - col1 + + CAST ( col1 AS INTEGER ) * col1 AS col0 FROM tab1 AS cor0
----
156
650
90

query I rowsort
SELECT - col2 * + 25 * - col2 AS col0 FROM tab1 AS cor0
----
230400
72900
81225

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3293
SELECT DISTINCT + - cor0.col2 - + CAST( cor0.col2 AS SIGNED ) FROM tab1 cor0
----
-108
-114
-192

skipif mysql # not compatible
query I rowsort label-3293
SELECT DISTINCT + - cor0.col2 - + CAST ( cor0.col2 AS INTEGER ) FROM tab1 cor0
----
-108
-114
-192

onlyif mysql # use DIV operator for integer division
query I rowsort label-3294
SELECT ALL + - col1 DIV 63 col0 FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3294
SELECT ALL + - col1 / 63 col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - col0 * + ( - col1 ) AS col2 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT ALL col2 + 32 * - col1 FROM tab1 AS cor0
----
-263
-320
-778

query I rowsort
SELECT ALL - + ( col1 ) * - col0 + cor0.col2 AS col1 FROM tab0 AS cor0
----
2097
3396
8181

query I rowsort
SELECT ALL - ( 87 ) + - col1 FROM tab2 AS cor0
----
-104
-118
-146

query I rowsort
SELECT - 58 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to de0811e670e75d2aeeb657e32bddb0c0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3300
SELECT col0 DIV - 52 FROM tab2 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-3300
SELECT col0 / - 52 FROM tab2 AS cor0
----
-1
-1
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3301
SELECT col1 + - cor0.col2 DIV col1 FROM tab2 AS cor0
----
15
31
59

skipif mysql # not compatible
query I rowsort label-3301
SELECT col1 + - cor0.col2 / col1 FROM tab2 AS cor0
----
15
31
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-3302
SELECT DISTINCT col1 DIV ( - col1 ) AS col1 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-3302
SELECT DISTINCT col1 / ( - col1 ) AS col1 FROM tab2
----
-1

onlyif mysql # use DIV operator for integer division
query I rowsort label-3303
SELECT cor0.col2 DIV col0 AS col0 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3303
SELECT cor0.col2 / col0 AS col0 FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT - col2 + col1 * 51 FROM tab1 AS cor0
----
1272
453
567

query I rowsort
SELECT DISTINCT ( - col2 ) + col1 AS col1 FROM tab2 AS cor0
----
-21
33
4

query I rowsort
SELECT - 26 * col2 FROM tab2
----
-676
-702
-988

query I rowsort
SELECT col2 * 94 + - col2 * col1 + 42 FROM tab0 cor0
----
288
306
39

query I rowsort
SELECT + 63 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c3eea92c46f2c49716f386a58b575025

onlyif mysql # use DIV operator for integer division
query I rowsort label-3309
SELECT col1 + - col1 DIV + 21 col0 FROM tab1
----
10
13
25

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3309
SELECT col1 + - col1 / + 21 col0 FROM tab1
----
10
13
25

query I rowsort
SELECT + - col1 * col1 AS col2 FROM tab2 cor0
----
-289
-3481
-961

query I rowsort
SELECT ALL - col1 * - 90 FROM tab0
----
7740
8190
8730

onlyif mysql # use DIV operator for integer division
query I rowsort label-3312
SELECT ALL col1 DIV 9 AS col0 FROM tab0
----
10
10
9

skipif mysql # not compatible
query I rowsort label-3312
SELECT ALL col1 / 9 AS col0 FROM tab0
----
10
10
9

query I rowsort
SELECT ALL - 30 + cor0.col0 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 9821891f2211bc0f24a54f05ffd1c6b3

query I rowsort
SELECT - + 41 * col2 FROM tab1 AS cor0
----
-2214
-2337
-3936

query I rowsort
SELECT DISTINCT - + col0 * + col2 * - ( col0 ) FROM tab2 AS cor0
----
1323
158184
237158

query I rowsort
SELECT ALL ( tab2.col0 ) AS col2 FROM tab2
----
7
78
79

query I rowsort
SELECT DISTINCT + 32 + + 21 FROM tab2, tab2 AS cor0
----
53

query I rowsort
SELECT + ( cor0.col0 ) FROM tab0, tab0 AS cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63

query I rowsort
SELECT DISTINCT - col2 * + 52 + col0 AS col0 FROM tab2 cor0
----
-1274
-1397
-1897

query I rowsort
SELECT DISTINCT - col1 * - col2 + col2 * + col2 AS col2 FROM tab1 cor0
----
10464
3819
4320

query I rowsort
SELECT - col2 * ( 79 ) AS col1 FROM tab2 AS cor0
----
-2054
-2133
-3002

query I rowsort
SELECT col2 * - ( 15 + col0 ) AS col2 FROM tab0
----
-1287
-50
-8528

query I rowsort
SELECT ALL col2 * 28 + - col1 AS col2 FROM tab2
----
1047
669
725

query I rowsort
SELECT ALL + col2 + 6 AS col2 FROM tab2
----
32
33
44

query I rowsort
SELECT - col2 * - cor0.col2 - cor0.col0 FROM tab0 AS cor0
----
-34
1065
6635

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3326
SELECT DISTINCT - + col1 + ( col2 ) / 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-3326
SELECT DISTINCT - + col1 + ( col2 ) / col0 + CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - - col1 + col1 - + cor0.col0 AS col2 FROM tab1 AS cor0
----
-44
-54
49

query I rowsort
SELECT ALL - col1 * col2 + + col0 + col1 * 52 FROM tab2 AS cor0
----
1612
317
782

query I rowsort
SELECT ALL - col0 + 84 FROM tab2 AS cor0
----
5
6
77

query I rowsort
SELECT col1 * - col2 * col1 FROM tab2 AS cor0
----
-10982
-25947
-90506

query I rowsort
SELECT - 91 * + col1 AS col2 FROM tab0
----
-7826
-8281
-8827

query I rowsort
SELECT ALL - ( + col1 ) * + col1 AS col2 FROM tab1 cor0
----
-100
-169
-676

query I rowsort
SELECT 67 - cor0.col0 FROM tab0, tab0 cor0
----
9 values hashing to 16fffd944a3e8e0b7b35b8c9645bb2e1

query I rowsort
SELECT + col1 * + 56 FROM tab1 AS cor0
----
1456
560
728

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3335
SELECT - CAST( 56 AS SIGNED ) * col2 FROM tab2 AS cor0
----
-1456
-1512
-2128

skipif mysql # not compatible
query I rowsort label-3335
SELECT - CAST ( 56 AS INTEGER ) * col2 FROM tab2 AS cor0
----
-1456
-1512
-2128

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * + col0 col2 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT DISTINCT + + col1 + col2 * + col2 + 95 AS col0 FROM tab1 AS cor0
----
3037
3354
9324

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + cor0.col0 + - col1 col1 FROM tab1 AS cor0
----
-29
-74
-93

query I rowsort
SELECT DISTINCT - cor0.col1 + - col2 * + cor0.col2 AS col2 FROM tab2 AS cor0
----
-1461
-735
-760

query I rowsort
SELECT + - ( - cor0.col2 ) AS col0 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT DISTINCT col1 + col1 + + 31 AS col1 FROM tab2 AS cor0
----
149
65
93

query I rowsort
SELECT ALL + + 53 + col2 FROM tab2 AS cor0
----
79
80
91

query I rowsort
SELECT DISTINCT - col1 * cor0.col1 - col2 AS col2 FROM tab2 AS cor0
----
-327
-3507
-988

query I rowsort
SELECT ALL + ( col2 * - col2 ) + col0 FROM tab2
----
-1365
-598
-722

query I rowsort
SELECT ALL + col1 + - tab1.col0 AS col1 FROM tab1
----
-54
-67
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( col1 ) col1 FROM tab1
----
-10
-13
-26

query I rowsort
SELECT + 82 * + col2 AS col2 FROM tab1 AS cor0
----
4428
4674
7872

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 51 col0 FROM tab1 AS cor0
----
51
51
51

query I rowsort
SELECT ALL - col2 * col0 * - col1 FROM tab0 AS cor0
----
3395
664118
68112

query I rowsort
SELECT 47 + 33 AS col0 FROM tab0
----
80
80
80

query I rowsort
SELECT DISTINCT + 85 * - col0 * - col2 FROM tab1
----
13770
310080
652800

query I rowsort
SELECT - 22 * tab0.col0 AS col2 FROM tab0
----
-1958
-528
-770

query I rowsort
SELECT + 79 - + cor0.col2 AS col1 FROM tab1 AS cor0
----
-17
22
25

onlyif mysql # use DIV operator for integer division
query I rowsort label-3354
SELECT DISTINCT - col0 DIV ( + tab1.col2 ) - + col1 AS col0 FROM tab1
----
-11
-13
-26

skipif mysql # not compatible
query I rowsort label-3354
SELECT DISTINCT - col0 / ( + tab1.col2 ) - + col1 AS col0 FROM tab1
----
-11
-13
-26

onlyif mysql # use DIV operator for integer division
query I rowsort label-3355
SELECT DISTINCT col0 + col0 - - col1 DIV - col0 FROM tab2
----
10
156
158

skipif mysql # not compatible
query I rowsort label-3355
SELECT DISTINCT col0 + col0 - - col1 / - col0 FROM tab2
----
10
156
158

onlyif mysql # use DIV operator for integer division
query I rowsort label-3356
SELECT + col0 * col0 + col2 + col2 DIV + col0 FROM tab0
----
1226
610
8003

skipif mysql # not compatible
query I rowsort label-3356
SELECT + col0 * col0 + col2 + col2 / + col0 FROM tab0
----
1226
610
8003

query I rowsort
SELECT ALL col2 + - 28 * - cor0.col0 AS col2 FROM tab0 AS cor0
----
2574
705
981

onlyif mysql # use DIV operator for integer division
query I rowsort label-3358
SELECT - ( - cor0.col0 ) DIV col0 - - col2 * + col0 AS col0 FROM tab2 AS cor0
----
190
2029
3003

skipif mysql # not compatible
query I rowsort label-3358
SELECT - ( - cor0.col0 ) / col0 - - col2 * + col0 AS col0 FROM tab2 AS cor0
----
190
2029
3003

query I rowsort
SELECT ALL - 76 * + col2 + col0 AS col0 FROM tab0 AS cor0
----
-2484
-41
-6143

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3360
SELECT CAST( NULL AS SIGNED ) * - col2 * cor0.col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3360
SELECT CAST ( NULL AS INTEGER ) * - col2 * cor0.col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 - + 8 AS col2 FROM tab1 AS cor0
----
-104
-62
-65

query I rowsort
SELECT col1 * + 69 FROM tab0 cor0
----
5934
6279
6693

query I rowsort
SELECT + tab2.col1 + - tab2.col1 + 74 FROM tab2
----
74
74
74

query I rowsort
SELECT DISTINCT col2 + 77 FROM tab2
----
103
104
115

query I rowsort
SELECT - col1 * + ( col2 ) FROM tab1
----
-1248
-1404
-570

query I rowsort
SELECT DISTINCT col0 * col2 - + col0 FROM tab1
----
159
3584
7600

query I rowsort
SELECT DISTINCT col0 - ( - col0 ) * - col1 AS col1 FROM tab2
----
-1264
-210
-4524

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3368
SELECT ALL tab1.col0 - + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3368
SELECT ALL tab1.col0 - + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - ( + 34 ) + - col0 + - col2 * 60 FROM tab1
----
-3277
-3518
-5874

query I rowsort
SELECT ( - 56 ) + tab0.col0 FROM tab0
----
-21
-32
33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col1 ) + + col0 + 12 col0 FROM tab0
----
122
144
192

query I rowsort
SELECT ALL + - 77 * + col2 + - col1 * + col1 AS col2 FROM tab0 cor0
----
-14595
-9486
-9937

query I rowsort
SELECT DISTINCT + 35 + 46 * col0 FROM tab0 AS cor0
----
1139
1645
4129

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 62 * col2 + col1 col2 FROM tab1 AS cor0
----
3374
3544
5965

query I rowsort
SELECT + ( - col1 ) + - cor0.col2 FROM tab0 AS cor0
----
-119
-173
-98

query I rowsort
SELECT DISTINCT + ( + col2 ) * + col1 AS col0 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT + col1 * - col0 * - col2 FROM tab2 AS cor0
----
119652
51034
5859

query I rowsort
SELECT col2 + col1 + col0 AS col0 FROM tab1 AS cor0
----
131
189
83

query I rowsort
SELECT DISTINCT col1 + + col1 * col1 AS col2 FROM tab0 AS cor0
----
7482
8372
9506

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 52 * col2 + - col2 col1 FROM tab1 AS cor0
----
2754
2907
4896

query I rowsort
SELECT + 32 AS col1 FROM tab1, tab1 cor0
----
9 values hashing to d30a2acbf33c88274474306936d3227b

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab1 cor0, tab1 cor1, tab0, tab1 AS cor2
----
3645 values hashing to f9101173abc9e524c6310e6c0eeefb0c

query I rowsort
SELECT ALL + 12 AS col2 FROM tab1
----
12
12
12

onlyif mysql # use DIV operator for integer division
query I rowsort label-3384
SELECT ( - col2 + + col2 ) DIV + ( 59 ) FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3384
SELECT ( - col2 + + col2 ) / + ( 59 ) FROM tab1
----
0
0
0

query I rowsort
SELECT + cor0.col2 * col0 + col1 FROM tab1 cor0
----
188
3658
7693

query I rowsort
SELECT DISTINCT + + ( - 85 ) FROM tab0 AS cor0
----
-85

query I rowsort
SELECT ALL + - 9 * + col2 FROM tab1 AS cor0
----
-486
-513
-864

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( tab0.col0 ) * col0 col1 FROM tab0
----
1225
576
7921

query I rowsort
SELECT DISTINCT 15 FROM tab1, tab2, tab1 AS cor0
----
15

onlyif mysql # use DIV operator for integer division
query I rowsort label-3390
SELECT - col2 * tab2.col2 DIV - col0 FROM tab2
----
104
18
8

skipif mysql # not compatible
query I rowsort label-3390
SELECT - col2 * tab2.col2 / - col0 FROM tab2
----
104
18
8

query I rowsort
SELECT - 96 * - 70 AS col2 FROM tab1
----
6720
6720
6720

onlyif mysql # use DIV operator for integer division
query I rowsort label-3392
SELECT DISTINCT - col0 DIV + col2 AS col0 FROM tab0
----
-1
-35
0

skipif mysql # not compatible
query I rowsort label-3392
SELECT DISTINCT - col0 / + col2 AS col0 FROM tab0
----
-1
-35
0

query I rowsort
SELECT + 13 * col2 AS col0 FROM tab1
----
1248
702
741

query I rowsort
SELECT DISTINCT - 64 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
-64

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3395
SELECT - 40 * - col1 * - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3395
SELECT - 40 * - col1 * - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3396
SELECT col1 DIV + col0 + - col1 FROM tab0
----
-83
-90
-95

skipif mysql # not compatible
query I rowsort label-3396
SELECT col1 / + col0 + - col1 FROM tab0
----
-83
-90
-95

query I rowsort
SELECT + tab2.col2 * - 50 AS col1 FROM tab2, tab2 cor0
----
9 values hashing to bcc37a1eb1cbbdd0dccfd847225cfa67

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab0, tab1 AS cor2
----
3645 values hashing to d0428a2939e158628acd4bd449471d5b

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0 cor0 CROSS JOIN tab1, tab1 cor1, tab0, tab1 AS cor2
----
3645 values hashing to 9044210e7dc2a764fe944d925f222728

query I rowsort
SELECT DISTINCT col2 * ( - col0 * + col1 ) AS col0 FROM tab2
----
-119652
-51034
-5859

query I rowsort
SELECT col2 * col1 * col0 FROM tab0 AS cor0
----
3395
664118
68112

query I rowsort
SELECT DISTINCT + col1 * ( - col1 ) AS col2 FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT DISTINCT + col0 * - 97 AS col2 FROM tab1 AS cor0
----
-291
-6208
-7760

query I rowsort
SELECT - cor0.col1 * col1 AS col2 FROM tab1 cor0
----
-100
-169
-676

query I rowsort
SELECT ALL + 49 FROM tab0, tab1 AS cor0, tab1 cor1
----
27 values hashing to a40d8754a5be3ce2309c61bfd3e00197

query I rowsort
SELECT + col1 * ( tab2.col2 ) + + col0 FROM tab2
----
1612
725
844

query I rowsort
SELECT ALL + col0 + + 8 AS col1 FROM tab2
----
15
86
87

query I rowsort
SELECT ALL 34 FROM tab0, tab1, tab2 AS cor0, tab2 AS cor1
----
81 values hashing to 6cda47a564e8ee9e9e7915815a3a7769

onlyif mysql # use DIV operator for integer division
query I rowsort label-3409
SELECT col2 * + cor0.col0 DIV col0 FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-3409
SELECT col2 * + cor0.col0 / col0 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT + 99 * col2 FROM tab2 cor0
----
2574
2673
3762

onlyif mysql # use DIV operator for integer division
query I rowsort label-3411
SELECT - col0 * - col2 DIV cor0.col2 FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-3411
SELECT - col0 * - col2 / cor0.col2 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT + - 32 * - col2 AS col0 FROM tab0 AS cor0
----
1056
2624
32

onlyif mysql # use DIV operator for integer division
query I rowsort label-3413
SELECT + 57 + cor0.col1 DIV col1 FROM tab0 AS cor0
----
58
58
58

skipif mysql # not compatible
query I rowsort label-3413
SELECT + 57 + cor0.col1 / col1 FROM tab0 AS cor0
----
58
58
58

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3414
SELECT DISTINCT - CAST( col1 AS SIGNED ) + + col1 AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3414
SELECT DISTINCT - CAST ( col1 AS INTEGER ) + + col1 AS col2 FROM tab1 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + col0 col1 FROM tab2 AS cor0
----
-24
19
62

query I rowsort
SELECT DISTINCT + + 59 * - 54 + col1 AS col0 FROM tab0 AS cor0
----
-3089
-3095
-3100

query I rowsort
SELECT - ( - col1 ) * - col2 AS col1 FROM tab2 cor0
----
-1534
-646
-837

query I rowsort
SELECT DISTINCT - ( col1 ) AS col1 FROM tab0 cor0
----
-86
-91
-97

query I rowsort
SELECT DISTINCT - ( - col0 ) * col1 + - 99 FROM tab0 AS cor0
----
1965
3296
8000

query I rowsort
SELECT - - col0 * - col2 + - ( + cor0.col1 ) FROM tab2 AS cor0
----
-2087
-220
-3019

query I rowsort
SELECT - cor0.col1 * cor0.col2 + col0 * + col2 AS col0 FROM tab2 AS cor0
----
-648
2356
494

query I rowsort
SELECT - ( cor0.col1 ) * + cor0.col1 + + col2 AS col0 FROM tab2 AS cor0
----
-251
-3455
-934

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 12 * col1 col1 FROM tab2 AS cor0
----
204
372
708

query I rowsort
SELECT - 57 - - col2 FROM tab2 AS cor0
----
-19
-30
-31

query I rowsort
SELECT ALL cor0.col2 * cor0.col1 + - 46 FROM tab2 AS cor0
----
1488
600
791

query I rowsort
SELECT ALL + + col2 + + 91 FROM tab0 AS cor0
----
124
173
92

query I rowsort
SELECT + col2 * + 47 AS col1 FROM tab2 AS cor0
----
1222
1269
1786

query I rowsort
SELECT DISTINCT cor0.col2 * + cor0.col0 AS col0 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
35
7298
792

query I rowsort
SELECT ALL cor1.col2 FROM tab1, tab0 cor0, tab0 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT ALL - col2 * col0 + - col1 AS col1 FROM tab1 AS cor0
----
-188
-3658
-7693

query I rowsort
SELECT - cor0.col1 + - col2 + cor0.col2 * col0 * cor0.col2 FROM tab0 AS cor0
----
-63
26017
598263

query I rowsort
SELECT ALL + col0 * col2 * + col0 FROM tab1 AS cor0
----
233472
486
614400

query I rowsort
SELECT DISTINCT + col0 + + col0 + - col2 * cor0.col1 AS col0 FROM tab1 AS cor0
----
-1088
-1398
-442

query I rowsort
SELECT col1 * + col0 FROM tab1 AS cor0 WHERE cor0.col0 * col1 / + col2 IN ( cor0.col0 + col0 ) OR NOT ( NULL ) IN ( col0 * col0 * + cor0.col1 + col0 )
----

query I rowsort
SELECT cor0.col2 * + col1 + col0 + col0 * cor0.col1 AS col0 FROM tab2 AS cor0
----
1061
2068
6214

onlyif mysql # use DIV operator for integer division
query I rowsort label-3436
SELECT - col2 + col2 + + col2 DIV col0 AS col1 FROM tab1 AS cor0
----
0
1
18

skipif mysql # not compatible
query I rowsort label-3436
SELECT - col2 + col2 + + col2 / col0 AS col1 FROM tab1 AS cor0
----
0
1
18

query I rowsort
SELECT ALL - col0 + cor0.col1 * + col1 FROM tab0 AS cor0
----
7372
8192
9374

query I rowsort
SELECT ALL - cor0.col2 * - cor0.col0 FROM tab2 AS cor0
----
189
2028
3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - col2 * tab1.col0 col1 FROM tab1
----
-108
-3591
-7584

query I rowsort
SELECT ALL + col0 + tab2.col1 AS col2 FROM tab2
----
137
38
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-3441
SELECT ALL + tab1.col1 * col0 + + col0 + col2 DIV + col1 AS col2 FROM tab1
----
1127
709
83

skipif mysql # not compatible
query I rowsort label-3441
SELECT ALL + tab1.col1 * col0 + + col0 + col2 / + col1 AS col2 FROM tab1
----
1127
709
83

query I rowsort
SELECT ALL + col1 * - tab0.col2 + col0 + - col2 * col2 * - col2 FROM tab0
----
-61
33123
543995

query I rowsort
SELECT ALL - col0 + - col0 * col0 + + col0 * + col2 FROM tab1
----
-512
1200
150

query I rowsort
SELECT - col2 * - cor0.col0 - - col2 FROM tab0 AS cor0
----
36
7380
825

query I rowsort
SELECT - tab0.col1 + + col1 + + col0 FROM tab0
----
24
35
89

query I rowsort
SELECT ALL col1 * col0 + + col0 AS col0 FROM tab2
----
1422
224
4680

query I rowsort
SELECT ALL col0 + col2 * - col2 * + col2 AS col2 FROM tab1
----
-157461
-185129
-884656

query I rowsort
SELECT DISTINCT + col1 * tab2.col1 + col2 AS col1 FROM tab2
----
327
3507
988

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 < - col2 + col0
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

query I rowsort
SELECT col2 * - col1 + col0 AS col1 FROM tab2
----
-1456
-567
-830

onlyif mysql # use DIV operator for integer division
query I rowsort label-3451
SELECT ALL col1 DIV tab0.col1 - col1 AS col2 FROM tab0
----
-85
-90
-96

skipif mysql # not compatible
query I rowsort label-3451
SELECT ALL col1 / tab0.col1 - col1 AS col2 FROM tab0
----
-85
-90
-96

query I rowsort
SELECT ALL tab1.col0 FROM tab1 WHERE - col1 * col1 + + col1 IN ( tab1.col1 )
----

query I rowsort
SELECT - col0 * col2 * + tab2.col0 + - col2 AS col0 FROM tab2
----
-1350
-158210
-237196

query I rowsort
SELECT col0 FROM tab2 WHERE NOT + col1 BETWEEN NULL AND tab2.col1 * + col0 * - col2
----
7
78
79

query I rowsort
SELECT ALL + col2 / + tab1.col0 FROM tab1 WHERE NOT NULL = NULL
----

query I rowsort
SELECT - cor0.col1 AS col1 FROM tab2, tab1 cor0
----
9 values hashing to b234798d4706314ba14eaad539d0aa88

onlyif mysql # use DIV operator for integer division
query I rowsort label-3457
SELECT DISTINCT - 89 + - col2 DIV 39 FROM tab2 AS cor0
----
-89

skipif mysql # not compatible
query I rowsort label-3457
SELECT DISTINCT - 89 + - col2 / 39 FROM tab2 AS cor0
----
-89

query I rowsort
SELECT DISTINCT - + col1 * - cor0.col0 AS col0 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT - col0 / col1 FROM tab2 WHERE NOT ( NULL ) IN ( - col1 * + col0 )
----

query I rowsort
SELECT DISTINCT col0 - col2 * - col2 * tab1.col0 AS col2 FROM tab1
----
208000
737360
8751

query I rowsort
SELECT ALL col2 + tab0.col2 + - col0 AS col0 FROM tab0
----
-33
42
75

query I rowsort
SELECT - col2 * - col1 * col1 + - col1 * col2 AS col2 FROM tab1
----
14976
35100
5130

onlyif mysql # use DIV operator for integer division
query I rowsort label-3463
SELECT DISTINCT + col0 * tab0.col0 DIV + col0 - col0 col0 FROM tab0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3463
SELECT DISTINCT + col0 * tab0.col0 / + col0 - col0 col0 FROM tab0
----
0

query I rowsort
SELECT col1 * - col1 + 22 AS col0 FROM tab1 cor0
----
-147
-654
-78

query I rowsort
SELECT DISTINCT col2 - + cor0.col2 * col2 FROM tab2 AS cor0
----
-1406
-650
-702

query I rowsort
SELECT DISTINCT cor0.col2 - col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL - col0 / col2 FROM tab1 WHERE NOT ( NULL ) NOT IN ( col1 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-3468
SELECT col1 DIV - col1 + col2 * tab1.col2 * - tab1.col1 AS col0 FROM tab1
----
-119809
-32491
-75817

skipif mysql # not compatible
query I rowsort label-3468
SELECT col1 / - col1 + col2 * tab1.col2 * - tab1.col1 AS col0 FROM tab1
----
-119809
-32491
-75817

query I rowsort
SELECT col2 * - col2 * - col2 AS col1 FROM tab1
----
157464
185193
884736

query I rowsort
SELECT ALL + col1 FROM tab2 WHERE - col2 - col0 NOT BETWEEN ( + col1 ) AND NULL
----
17
31
59

query I rowsort
SELECT - col2 * + tab2.col1 * col0 AS col2 FROM tab2
----
-119652
-51034
-5859

query I rowsort
SELECT col0 * tab1.col0 * + col1 + + col2 AS col0 FROM tab1
----
288
41017
83296

query I rowsort
SELECT ALL col0 * + col0 + + col1 - - col2 FROM tab0
----
1323
695
8094

onlyif mysql # use DIV operator for integer division
query I rowsort label-3474
SELECT DISTINCT + col2 + - col0 FROM tab1 WHERE ( col1 DIV col0 - - col2 ) <> + col2
----
51

skipif mysql # not compatible
query I rowsort label-3474
SELECT DISTINCT + col2 + - col0 FROM tab1 WHERE ( col1 / col0 - - col2 ) <> + col2
----
51

onlyif mysql # use DIV operator for integer division
query I rowsort label-3475
SELECT ALL col2 DIV col1 + - col1 * - tab1.col0 * + col0 FROM tab1
----
236
40965
83207

skipif mysql # not compatible
query I rowsort label-3475
SELECT ALL col2 / col1 + - col1 * - tab1.col0 * + col0 FROM tab1
----
236
40965
83207

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL BETWEEN NULL AND ( col2 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-3477
SELECT + col1 + + tab2.col2 DIV tab2.col0 - + col0 FROM tab2
----
-19
-62
27

skipif mysql # not compatible
query I rowsort label-3477
SELECT + col1 + + tab2.col2 / tab2.col0 - + col0 FROM tab2
----
-19
-62
27

query I rowsort
SELECT ALL + col2 FROM tab2 WHERE NOT NULL IN ( col2 )
----

query I rowsort
SELECT tab0.col2 + tab0.col2 * col2 + col2 AS col0 FROM tab0
----
1155
3
6888

query I rowsort
SELECT + col1 + col1 + ( - 62 * col0 ) AS col2 FROM tab2 AS cor0
----
-372
-4718
-4864

query I rowsort
SELECT + col2 * ( col0 ) + col2 FROM tab2 AS cor0
----
2054
216
3040

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 * - col1 col2 FROM tab2 AS cor0
----
-289
-3481
-961

query I rowsort
SELECT + cor0.col2 FROM tab1, tab0, tab0 AS cor0, tab1 AS cor1
----
81 values hashing to e938777ebffc2e3e9c0cdfaa4f732c05

query I rowsort
SELECT ALL - 43 * col0 * - col2 FROM tab2
----
129086
8127
87204

query I rowsort
SELECT + col1 * cor0.col2 + - col2 + 35 * col0 FROM tab1 AS cor0
----
1455
2753
3952

query I rowsort
SELECT 99 + + 15 AS col0 FROM tab1 AS cor0
----
114
114
114

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 + - col2 + col2 col0 FROM tab1 cor0
----
54
57
96

query I rowsort
SELECT - cor0.col2 + 24 * cor0.col0 FROM tab1 cor0
----
1479
18
1824

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 44 * + col2 col1 FROM tab0 AS cor0
----
-1452
-3608
-44

query I rowsort
SELECT 97 * - cor0.col0 + + col2 AS col0 FROM tab0 AS cor0
----
-2295
-3394
-8551

query I rowsort
SELECT col1 + 91 FROM tab2 cor0
----
108
122
150

query I rowsort
SELECT + - col1 * - col2 * col0 + + ( col2 + - col1 ) AS col2 FROM tab1 AS cor0
----
36527
4240
99923

query I rowsort
SELECT ALL - col0 + + 18 AS col2 FROM tab1
----
-46
-62
15

query I rowsort
SELECT ALL ( + 49 + - cor0.col0 ) AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 74fa7cf4480dfd807826058de56912c8

query I rowsort
SELECT ( + col2 ) * cor0.col1 AS col2 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT ALL col0 + 52 * col2 FROM tab0
----
1740
4353
87

query I rowsort
SELECT + cor0.col0 AS col1 FROM tab1, tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT DISTINCT 66 AS col2 FROM tab2 AS cor0
----
66

onlyif mysql # use DIV operator for integer division
query I rowsort label-3499
SELECT ALL + - 55 DIV + 95 AS col1 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3499
SELECT ALL + - 55 / + 95 AS col1 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - col2 + + 45 FROM tab0 AS cor0
----
-37
12
44

query I rowsort
SELECT + col1 * + 16 + + col0 FROM tab0 AS cor0
----
1400
1545
1587

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + 79 col0 FROM tab2 cor0
----
157
158
86

query I rowsort
SELECT - + 32 * - col0 + col1 * 7 + - col0 FROM tab1 AS cor0
----
2054
2571
275

query I rowsort
SELECT ALL + col2 * cor0.col0 * + col2 FROM tab0 AS cor0
----
26136
35
598436

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab2.col0 col0 FROM tab2, tab0, tab1 cor0
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

query I rowsort
SELECT DISTINCT 28 * - col2 * + col1 FROM tab2
----
-18088
-23436
-42952

query I rowsort
SELECT - - col1 + + col2 * 84 AS col2 FROM tab0 AS cor0
----
181
2858
6979

query I rowsort
SELECT + col0 + + col0 * - 99 AS col2 FROM tab0 AS cor0
----
-2352
-3430
-8722

query I rowsort
SELECT DISTINCT col0 * - col1 * + ( 10 * + col1 ) + - col2 FROM tab2 AS cor0
----
-228348
-2715206
-67297

query I rowsort
SELECT DISTINCT + + col0 * + cor0.col1 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT + col2 * col0 + col0 FROM tab0
----
70
7387
816

query I rowsort
SELECT 63 + - tab1.col0 * col0 + + ( col0 + + col2 ) AS col2 FROM tab1
----
-3912
-6161
111

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 40 col2 FROM tab2
----
40
40
40

query I rowsort
SELECT - - cor0.col2 + cor0.col2 AS col1 FROM tab1 AS cor0
----
108
114
192

query I rowsort
SELECT col0 * + col1 + - col1 * 49 AS col1 FROM tab0 AS cor0
----
-1358
-2150
3640

query I rowsort
SELECT + 51 * - col0 FROM tab0 AS cor0
----
-1224
-1785
-4539

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 * col2 + + ( ( col0 ) ) + + 16 col0 FROM tab2 cor0
----
1539
752
770

query I rowsort
SELECT + ( 3 ) AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab1 AS cor2, tab2 AS cor3
----
3645 values hashing to 57708840c4ff70ecdca82ffd05259432

query I rowsort
SELECT 34 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 1146d159f0b9b4378a8b738b963f7039

query I rowsort
SELECT + col0 * ( 25 * - col1 ) AS col1 FROM tab0 AS cor0
----
-202475
-51600
-84875

query I rowsort
SELECT - col1 + - 52 AS col0 FROM tab0 AS cor0
----
-138
-143
-149

query I rowsort
SELECT - col1 * ( + col2 ) - + 60 AS col1 FROM tab0 AS cor0
----
-157
-2898
-7522

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( + cor0.col0 ) col0 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT DISTINCT - col2 - - 87 AS col1 FROM tab1
----
-9
30
33

onlyif mysql # use DIV operator for integer division
query I rowsort label-3526
SELECT ALL col0 - + col2 DIV col1 col1 FROM tab0
----
24
35
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3526
SELECT ALL col0 - + col2 / col1 col1 FROM tab0
----
24
35
89

query I rowsort
SELECT + ( - col1 ) + + col0 AS col2 FROM tab1 cor0
----
-23
54
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 49 col2 FROM tab2 AS cor0
----
49

query I rowsort
SELECT + 29 + + col1 * + cor0.col1 FROM tab2 cor0
----
318
3510
990

query I rowsort
SELECT ALL + + col0 - cor0.col0 * col0 * + cor0.col0 FROM tab0 AS cor0
----
-13800
-42840
-704880

query I rowsort
SELECT + - col2 + cor0.col0 AS col2 FROM tab2 AS cor0
----
-20
41
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-3532
SELECT DISTINCT + col1 DIV ( + ( + col2 ) * 74 ) AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3532
SELECT DISTINCT + col1 / ( + ( + col2 ) * 74 ) AS col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT - + col0 + + ( + col0 ) AS col2 FROM tab1 cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3534
SELECT + col1 * col2 DIV + 8 col1 FROM tab2 AS cor0
----
104
191
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3534
SELECT + col1 * col2 / + 8 col1 FROM tab2 AS cor0
----
104
191
80

query I rowsort
SELECT ALL - col2 * col2 + col1 FROM tab1 cor0
----
-2890
-3239
-9203

query I rowsort
SELECT ALL - 36 AS col1 FROM tab2
----
-36
-36
-36

onlyif mysql # use DIV operator for integer division
query I rowsort label-3537
SELECT DISTINCT - ( - col1 ) DIV col0 AS col1 FROM tab0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-3537
SELECT DISTINCT - ( - col1 ) / col0 AS col1 FROM tab0
----
1
2
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - cor0.col0 * + 44 col1 FROM tab0 AS cor0
----
1056
1540
3916

onlyif mysql # use DIV operator for integer division
query I rowsort label-3539
SELECT DISTINCT - + cor0.col2 DIV - col0 FROM tab2 AS cor0
----
0
3

skipif mysql # not compatible
query I rowsort label-3539
SELECT DISTINCT - + cor0.col2 / - col0 FROM tab2 AS cor0
----
0
3

query I rowsort
SELECT + - col0 - - col0 * - col2 AS col2 FROM tab1 cor0
----
-165
-3712
-7760

query I rowsort
SELECT + cor0.col0 * - cor0.col2 * + col1 FROM tab0 AS cor0
----
-3395
-664118
-68112

query I rowsort
SELECT ALL + - ( - 48 ) FROM tab2 cor0
----
48
48
48

query I rowsort
SELECT ALL 14 + + ( + col1 ) + - col0 * col1 AS col0 FROM tab2 AS cor0
----
-1312
-172
-4529

query I rowsort
SELECT DISTINCT + 63 * - 66 + - col1 FROM tab2 AS cor0
----
-4175
-4189
-4217

query I rowsort
SELECT ( cor1.col0 ) FROM tab1, tab2 cor0, tab1 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

query I rowsort
SELECT DISTINCT + 92 AS col2 FROM tab0, tab2 cor0
----
92

query I rowsort
SELECT 72 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49

query I rowsort
SELECT ALL - 86 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 9ac806793c03d3a6b5e3a3029d20e4da

query I rowsort
SELECT col1 * col1 - + col2 FROM tab1
----
43
622
73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 * col0 col0 FROM tab0 AS cor0
----
-1225
-576
-7921

query I rowsort
SELECT DISTINCT + ( + 61 ) FROM tab0
----
61

query I rowsort
SELECT DISTINCT 14 * - col1 AS col1 FROM tab2
----
-238
-434
-826

query I rowsort
SELECT ALL + col2 * col2 - + ( + col2 * - col0 ) FROM tab0
----
14022
1881
36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 - + col1 * + ( + col2 * col0 ) col1 FROM tab0
----
-3492
-664209
-68198

query I rowsort
SELECT - col2 + + col1 + 15 AS col1 FROM tab1
----
-13
-32
-68

onlyif mysql # use DIV operator for integer division
query I rowsort label-3556
SELECT - 63 DIV col2 AS col1 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-3556
SELECT - 63 / col2 AS col1 FROM tab1
----
-1
-1
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3557
SELECT DISTINCT + ( + col1 * CAST( ( + col1 ) AS SIGNED ) ) - - col0 * - col2 AS col1 FROM tab0
----
6604
9374
983

skipif mysql # not compatible
query I rowsort label-3557
SELECT DISTINCT + ( + col1 * CAST ( ( + col1 ) AS INTEGER ) ) - - col0 * - col2 AS col1 FROM tab0
----
6604
9374
983

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col2 * col2 col1 FROM tab2
----
1444
676
729

query I rowsort
SELECT col1 + col2 - + col2 AS col1 FROM tab0
----
86
91
97

query I rowsort
SELECT DISTINCT + - col0 * - col2 + - col2 * + col2 AS col2 FROM tab2 AS cor0
----
-540
1352
1558

onlyif mysql # use DIV operator for integer division
query I rowsort label-3561
SELECT ( + col2 ) DIV + 30 AS col0 FROM tab1 AS cor0
----
1
1
3

skipif mysql # not compatible
query I rowsort label-3561
SELECT ( + col2 ) / + 30 AS col0 FROM tab1 AS cor0
----
1
1
3

query I rowsort
SELECT + 65 + cor0.col0 - - ( - 94 * - col2 ) AS col1 FROM tab0 AS cor0
----
194
3191
7862

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3563
SELECT DISTINCT - col1 * col0 + - CAST( NULL AS SIGNED ) - - col1 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3563
SELECT DISTINCT - col1 * col0 + - CAST ( NULL AS INTEGER ) - - col1 AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT col1 * - col2 + - ( + 64 ) * cor0.col0 FROM tab2 AS cor0
----
-1285
-5702
-6526

query I rowsort
SELECT ALL - 0 * - col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + col2 * ( + col0 * col2 ) AS col1 FROM tab2
----
114076
5103
52728

query I rowsort
SELECT + 87 + + 4 FROM tab0, tab2 AS cor0
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277

onlyif mysql # use DIV operator for integer division
query I rowsort label-3568
SELECT DISTINCT - col2 DIV ( - col1 ) + col1 * col2 AS col2 FROM tab0 AS cor0
----
2838
7462
97

skipif mysql # not compatible
query I rowsort label-3568
SELECT DISTINCT - col2 / ( - col1 ) + col1 * col2 AS col2 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT DISTINCT + col1 + 0 * - 82 FROM tab0 cor0
----
86
91
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-3570
SELECT + - col2 DIV 39 AS col2 FROM tab0 AS cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-3570
SELECT + - col2 / 39 AS col2 FROM tab0 AS cor0
----
-2
0
0

query I rowsort
SELECT DISTINCT + - col1 * col1 * - 29 FROM tab1 AS cor0
----
19604
2900
4901

query I rowsort
SELECT + col0 * + col0 + + col1 AS col2 FROM tab1
----
35
4106
6413

query I rowsort
SELECT DISTINCT - col2 * + col0 + col1 * - col0 + + col2 AS col2 FROM tab1 cor0
----
-186
-4231
-8624

query I rowsort
SELECT col2 + + tab0.col1 * col1 FROM tab0
----
7429
8363
9410

query I rowsort
SELECT - 5 + 28 FROM tab2
----
23
23
23

query I rowsort
SELECT ALL + cor0.col2 + - ( col0 ) + 20 AS col2 FROM tab0 AS cor0
----
-14
13
29

query I rowsort
SELECT DISTINCT - 72 FROM tab0, tab0 AS cor0
----
-72

query I rowsort
SELECT + ( - 84 ) + - col2 AS col2 FROM tab2 AS cor0
----
-110
-111
-122

query I rowsort
SELECT DISTINCT + 57 + col0 FROM tab2 AS cor0
----
135
136
64

query I rowsort
SELECT - ( 46 ) * col2 FROM tab0 AS cor0
----
-1518
-3772
-46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + cor0.col2 col1 FROM tab0 AS cor0
----
164
2
66

query I rowsort
SELECT - ( + ( + col0 ) ) FROM tab2 cor0
----
-7
-78
-79

query I rowsort
SELECT DISTINCT - - 22 AS col0 FROM tab1 AS cor0
----
22

query I rowsort
SELECT ALL - 90 + col0 + col2 FROM tab2 cor0
----
-56
14
27

query I rowsort
SELECT ALL + col2 + - col1 + - col0 AS col1 FROM tab2 AS cor0
----
-11
-111
-58

query I rowsort
SELECT DISTINCT + - col0 * - cor0.col1 + - 94 + col1 FROM tab0 AS cor0
----
2056
3398
8096

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3587
SELECT - + ( - col2 ) + CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3587
SELECT - + ( - col2 ) + CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - 61 * cor0.col0 AS col1 FROM tab1 AS cor0
----
-183
-3904
-4880

query I rowsort
SELECT ALL 82 + + col0 FROM tab2 AS cor0
----
160
161
89

query I rowsort
SELECT DISTINCT col1 * + col0 + + col1 * col2 FROM tab0 cor0
----
15561
3492
4902

onlyif mysql # use DIV operator for integer division
query I rowsort label-3591
SELECT ALL col2 + + col2 * + col2 DIV col2 FROM tab0 AS cor0
----
164
2
66

skipif mysql # not compatible
query I rowsort label-3591
SELECT ALL col2 + + col2 * + col2 / col2 FROM tab0 AS cor0
----
164
2
66

query I rowsort
SELECT DISTINCT - - col1 * col2 + ( ( col1 ) ) * + 20 AS col2 FROM tab0 AS cor0
----
2037
4558
9282

query I rowsort
SELECT DISTINCT - - col0 * - col0 - col1 * col0 * + col0 AS col1 FROM tab0 AS cor0
----
-120050
-50112
-728732

onlyif mysql # use DIV operator for integer division
query I rowsort label-3594
SELECT DISTINCT + + col0 DIV - col1 + - ( 8 * + col2 ) FROM tab0 AS cor0
----
-264
-656
-8

skipif mysql # not compatible
query I rowsort label-3594
SELECT DISTINCT + + col0 / - col1 + - ( 8 * + col2 ) FROM tab0 AS cor0
----
-264
-656
-8

onlyif mysql # use DIV operator for integer division
query I rowsort label-3595
SELECT DISTINCT col1 + col0 DIV - 78 AS col1 FROM tab2 AS cor0
----
16
31
58

skipif mysql # not compatible
query I rowsort label-3595
SELECT DISTINCT col1 + col0 / - 78 AS col1 FROM tab2 AS cor0
----
16
31
58

query I rowsort
SELECT DISTINCT - 59 * col0 * + 19 FROM tab1 AS cor0
----
-3363
-71744
-89680

query I rowsort
SELECT col0 + - tab0.col1 * col2 AS col0 FROM tab0
----
-2814
-62
-7373

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 98 col2 FROM tab2
----
98
98
98

query I rowsort
SELECT ALL + ( 9 ) FROM tab0
----
9
9
9

query I rowsort
SELECT col1 * + col1 + - ( cor0.col1 ) FROM tab0 AS cor0
----
7310
8190
9312

query I rowsort
SELECT - 78 * col1 FROM tab0 AS cor0
----
-6708
-7098
-7566

query I rowsort
SELECT + col1 * 60 FROM tab2
----
1020
1860
3540

query I rowsort
SELECT - 96 AS col0 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to a7b3e5dd01c8929180b7ffda67f79798

skipif mysql # not compatible
query I rowsort
SELECT - col2 * - CAST ( - col2 AS REAL ) FROM tab1 AS cor0
----
-2916
-3249
-9216

query I rowsort
SELECT col0 + ( - ( col0 ) ) FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT + - cor0.col1 * - col0 * - col1 FROM tab1 cor0
----
-13520
-2028
-6400

onlyif mysql # use DIV operator for integer division
query I rowsort label-3607
SELECT ALL - 49 DIV - 72 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3607
SELECT ALL - 49 / - 72 AS col1 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL 68 + col1 FROM tab2
----
127
85
99

query I rowsort
SELECT - col2 + cor0.col0 + - col2 * ( + col2 ) FROM tab2 AS cor0
----
-1403
-624
-749

onlyif mysql # use DIV operator for integer division
query I rowsort label-3610
SELECT ( col1 + - ( - ( col1 ) ) ) DIV + col1 FROM tab0
----
2
2
2

skipif mysql # not compatible
query I rowsort label-3610
SELECT ( col1 + - ( - ( col1 ) ) ) / + col1 FROM tab0
----
2
2
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 33 * col2 col0 FROM tab1
----
1782
1881
3168

query I rowsort
SELECT + ( col1 ) * + col1 - col0 * - col0 * 94 FROM tab2 AS cor0
----
5567
575377
586943

query I rowsort
SELECT DISTINCT + cor0.col1 * cor0.col0 + - col0 * col0 AS col1 FROM tab1 AS cor0
----
-3456
-5360
69

query I rowsort
SELECT DISTINCT tab1.col0 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
3
64
80

query I rowsort
SELECT - 17 + col2 AS col1 FROM tab2 AS cor0
----
10
21
9

query I rowsort
SELECT - 57 - - col2 FROM tab1 AS cor0
----
-3
0
39

query I rowsort
SELECT + + ( col0 ) - 46 FROM tab0 AS cor0
----
-11
-22
43

query I rowsort
SELECT + - col0 * + col2 - - col0 AS col2 FROM tab1 cor0
----
-159
-3584
-7600

query I rowsort
SELECT col1 * col0 + + col2 FROM tab0 AS cor0
----
2097
3396
8181

query I rowsort
SELECT - col2 + + 91 FROM tab1 AS cor0
----
-5
34
37

query I rowsort
SELECT ALL - col0 * + tab1.col1 * + 77 + 57 * col1 FROM tab1
----
-4524
-48710
-79339

query I rowsort
SELECT col2 + col0 + col1 AS col1 FROM tab0
----
133
143
262

query I rowsort
SELECT - col2 * + col2 - col2 AS col2 FROM tab0 AS cor0
----
-1122
-2
-6806

query I rowsort
SELECT col0 - + cor0.col1 AS col0 FROM tab0 AS cor0
----
-2
-62
-62

query I rowsort
SELECT ALL - col0 + + ( - col2 ) FROM tab2 AS cor0
----
-104
-117
-34

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1 AS cor0, tab2 AS cor1, tab0, tab0 cor2
----
3645 values hashing to 1713adaf687595322d888d4eeefdbbc8

query I rowsort
SELECT col1 * col2 - - col2 FROM tab2 AS cor0
----
1560
684
864

onlyif mysql # use DIV operator for integer division
query I rowsort label-3628
SELECT ALL - col0 * + col1 + - col0 DIV 36 AS col2 FROM tab1 AS cor0
----
-1042
-641
-78

skipif mysql # not compatible
query I rowsort label-3628
SELECT ALL - col0 * + col1 + - col0 / 36 AS col2 FROM tab1 AS cor0
----
-1042
-641
-78

query I rowsort
SELECT ALL + col2 + - 1 FROM tab1 cor0
----
53
56
95

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3630
SELECT DISTINCT + CAST( 89 AS SIGNED ) * - col2 col2 FROM tab0 AS cor0
----
-2937
-7298
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3630
SELECT DISTINCT + CAST ( 89 AS INTEGER ) * - col2 col2 FROM tab0 AS cor0
----
-2937
-7298
-89

onlyif mysql # use DIV operator for integer division
query I rowsort label-3631
SELECT DISTINCT - 24 * col1 DIV col0 + col2 DIV + col0 FROM tab0 AS cor0
----
-24
-66
-85

skipif mysql # not compatible
query I rowsort label-3631
SELECT DISTINCT - 24 * col1 / col0 + col2 / + col0 FROM tab0 AS cor0
----
-24
-66
-85

query I rowsort
SELECT ALL + - 95 AS col1 FROM tab1 cor0
----
-95
-95
-95

query I rowsort
SELECT DISTINCT - 63 + + 52 * col1 FROM tab2 AS cor0
----
1549
3005
821

query I rowsort
SELECT col0 + ( - tab0.col2 ) + - col1 FROM tab0
----
-63
-84
-95

query I rowsort
SELECT ( col1 ) * col2 * col1 FROM tab2 AS cor0
----
10982
25947
90506

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - cor0.col2 col0 FROM tab2 cor0
----
26
27
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 1 col2 FROM tab2 AS cor0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - cor0.col0 * col1 col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + col2 * ( - 48 ) col2 FROM tab2 AS cor0
----
-1222
-1269
-1786

query I rowsort
SELECT cor0.col1 * - col2 * 66 FROM tab2 cor0
----
-101244
-42636
-55242

query I rowsort
SELECT - 45 AS col1 FROM tab0
----
-45
-45
-45

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3642
SELECT ALL + CAST( - 54 AS SIGNED ) AS col2 FROM tab1
----
-54
-54
-54

skipif mysql # not compatible
query I rowsort label-3642
SELECT ALL + CAST ( - 54 AS INTEGER ) AS col2 FROM tab1
----
-54
-54
-54

query I rowsort
SELECT + 23 * - cor0.col0 * col2 FROM tab0 cor0
----
-167854
-18216
-805

query I rowsort
SELECT ( + col0 ) + - col2 AS col0 FROM tab1
----
-16
-51
7

query I rowsort
SELECT ALL - col0 * 6 + col0 AS col0 FROM tab0
----
-120
-175
-445

query I rowsort
SELECT DISTINCT 18 - 24 FROM tab2
----
-6

onlyif mysql # use DIV operator for integer division
query I rowsort label-3647
SELECT DISTINCT + + cor0.col2 DIV + col2 + + col1 * cor0.col1 AS col0 FROM tab1 cor0
----
101
170
677

skipif mysql # not compatible
query I rowsort label-3647
SELECT DISTINCT + + cor0.col2 / + col2 + + col1 * cor0.col1 AS col0 FROM tab1 cor0
----
101
170
677

query I rowsort
SELECT - 0 * col2 AS col2 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT ALL + ( 89 ) AS col0 FROM tab1
----
89
89
89

query I rowsort
SELECT - + ( + col0 ) + - col1 AS col0 FROM tab2 cor0
----
-137
-38
-96

query I rowsort
SELECT + + 4 + + col0 FROM tab2 AS cor0
----
11
82
83

query I rowsort
SELECT + col2 + col1 + col1 AS col2 FROM tab1 cor0
----
106
122
77

query I rowsort
SELECT ALL + 60 + - cor0.col2 FROM tab1 AS cor0
----
-36
3
6

query I rowsort
SELECT DISTINCT - - 86 + - col0 AS col2 FROM tab1 AS cor0
----
22
6
83

query I rowsort
SELECT ALL + 3 + cor0.col1 * - col2 * col0 AS col1 FROM tab1 AS cor0
----
-36477
-4209
-99837

onlyif mysql # use DIV operator for integer division
query I rowsort label-3656
SELECT + - 32 DIV - col2 + - cor0.col2 AS col2 FROM tab1 AS cor0
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-3656
SELECT + - 32 / - col2 + - cor0.col2 AS col2 FROM tab1 AS cor0
----
-54
-57
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - col1 ) + cor0.col1 col1 FROM tab1 cor0
----
20
26
52

query I rowsort
SELECT - col0 * col1 - - 78 FROM tab1 AS cor0
----
-562
-962
0

query I rowsort
SELECT DISTINCT - ( + col1 ) - + tab0.col1 FROM tab0
----
-172
-182
-194

onlyif mysql # use DIV operator for integer division
query I rowsort label-3660
SELECT col2 DIV - 75 col1 FROM tab1
----
-1
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3660
SELECT col2 / - 75 col1 FROM tab1
----
-1
0
0

query I rowsort
SELECT 71 * col0 * - col1 + 11 AS col1 FROM tab2
----
-15396
-326731
-95342

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3662
SELECT DISTINCT - - col0 * CAST( col1 AS SIGNED ) * col2 + ( col1 ) FROM tab0 AS cor0
----
3492
664209
68198

skipif mysql # not compatible
query I rowsort label-3662
SELECT DISTINCT - - col0 * CAST ( col1 AS INTEGER ) * col2 + ( col1 ) FROM tab0 AS cor0
----
3492
664209
68198

onlyif mysql # use DIV operator for integer division
query I rowsort label-3663
SELECT ALL + col1 - + ( col0 ) DIV + col0 AS col2 FROM tab2 AS cor0
----
16
30
58

skipif mysql # not compatible
query I rowsort label-3663
SELECT ALL + col1 - + ( col0 ) / + col0 AS col2 FROM tab2 AS cor0
----
16
30
58

query I rowsort
SELECT DISTINCT col2 + - 94 AS col1 FROM tab1 AS cor0
----
-37
-40
2

query I rowsort
SELECT ALL + + col1 * col2 + cor0.col0 * - col0 + + ( + 20 + + cor0.col1 ) FROM tab2 AS cor0
----
-4471
-5558
839

query I rowsort
SELECT DISTINCT + col2 * + col0 - + 39 AS col0 FROM tab0 AS cor0
----
-4
7259
753

onlyif mysql # use DIV operator for integer division
query I rowsort label-3667
SELECT ALL - col1 + + cor0.col2 + - col0 DIV cor0.col1 FROM tab0 AS cor0
----
-53
-9
-96

skipif mysql # not compatible
query I rowsort label-3667
SELECT ALL - col1 + + cor0.col2 + - col0 / cor0.col1 FROM tab0 AS cor0
----
-53
-9
-96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3668
SELECT col2 * + CAST( 10 AS SIGNED ) + col2 AS col2 FROM tab0 AS cor0
----
11
363
902

skipif mysql # not compatible
query I rowsort label-3668
SELECT col2 * + CAST ( 10 AS INTEGER ) + col2 AS col2 FROM tab0 AS cor0
----
11
363
902

query I rowsort
SELECT DISTINCT col2 + 75 AS col2 FROM tab2 AS cor0
----
101
102
113

query I rowsort
SELECT DISTINCT cor0.col1 * - col1 + ( + cor0.col1 ) + col1 * col2 FROM tab1 AS cor0
----
1092
480
754

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * cor0.col2 - cor0.col2 col2 FROM tab2 AS cor0
----
1406
650
702

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3672
SELECT ALL + col1 + - CAST( NULL AS SIGNED ) * + col1 * col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3672
SELECT ALL + col1 + - CAST ( NULL AS INTEGER ) * + col1 * col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col1 + col1 * + col1 AS col2 FROM tab1 cor0
----
110
182
702

query I rowsort
SELECT ALL - + col0 * + 93 - - col1 FROM tab0 AS cor0
----
-2146
-3158
-8186

query I rowsort
SELECT ALL - 26 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 47d0574274146de273829785364ada39

query I rowsort
SELECT DISTINCT - cor0.col0 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
-7
-78
-79

query I rowsort
SELECT DISTINCT + cor0.col0 AS col0 FROM tab1, tab2 AS cor0, tab0 cor1
----
7
78
79

query I rowsort
SELECT DISTINCT + ( + col0 ) * col2 - ( + col2 ) AS col0 FROM tab0 AS cor0
----
34
7216
759

query I rowsort
SELECT 10 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to a47194429f3e0358a3aebffd5f050113

query I rowsort
SELECT DISTINCT + 16 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
16

query I rowsort
SELECT + tab0.col2 - 45 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 53ceac77be634966c4c5d0825c491a50

query I rowsort
SELECT - + col1 + - col1 * col2 FROM tab1 cor0
----
-1261
-1430
-580

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3683
SELECT - CAST( NULL AS SIGNED ) + col2 * col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3683
SELECT - CAST ( NULL AS INTEGER ) + col2 * col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col2 + + col1 * - col1 FROM tab0 AS cor0
----
-7429
-8363
-9410

query I rowsort
SELECT DISTINCT + col0 + + 47 AS col1 FROM tab0 AS cor0
----
136
71
82

query I rowsort
SELECT - - cor0.col2 * + 51 FROM tab0 AS cor0
----
1683
4182
51

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3687
SELECT ALL + - CAST( NULL AS DECIMAL ) + col0 * - cor0.col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3687
SELECT ALL + - CAST ( NULL AS REAL ) + col0 * - cor0.col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 85 AS col2 FROM tab1 cor0
----
85
85
85

query I rowsort
SELECT + 8 * - col1 AS col1 FROM tab1 AS cor0
----
-104
-208
-80

query I rowsort
SELECT ( 67 ) + - cor0.col2 AS col1 FROM tab2 AS cor0
----
29
40
41

query I rowsort
SELECT col1 * + col2 + 75 AS col0 FROM tab2
----
1609
721
912

onlyif mysql # use DIV operator for integer division
query I rowsort label-3692
SELECT - col2 * ( col1 ) + + col0 DIV col2 FROM tab1
----
-1248
-1404
-569

skipif mysql # not compatible
query I rowsort label-3692
SELECT - col2 * ( col1 ) + + col0 / col2 FROM tab1
----
-1248
-1404
-569

query I rowsort
SELECT DISTINCT + tab2.col2 FROM tab0, tab0 AS cor0 CROSS JOIN tab2, tab1 AS cor1
----
26
27
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 0 * + col1 + ( col2 ) * + col2 col1 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT + cor1.col1 * cor0.col1 * cor0.col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 12dbbf55d3cc0e320a7890bc4e5f4f78

query I rowsort
SELECT - 27 * - col1 AS col0 FROM tab0 AS cor0
----
2322
2457
2619

query I rowsort
SELECT - cor1.col0 AS col1 FROM tab1, tab2 AS cor0, tab2 cor1, tab2 AS cor2
----
81 values hashing to adaea38eae032c1639715f21831dd376

query I rowsort
SELECT tab0.col0 FROM tab0, tab1 AS cor0, tab0 cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT + col0 * - cor0.col2 + + 14 * col2 + - col1 FROM tab2 AS cor0
----
-1723
-2487
158

onlyif mysql # use DIV operator for integer division
query I rowsort label-3700
SELECT + 18 + col1 * - col0 DIV - col0 AS col0 FROM tab1
----
28
31
44

skipif mysql # not compatible
query I rowsort label-3700
SELECT + 18 + col1 * - col0 / - col0 AS col0 FROM tab1
----
28
31
44

query I rowsort
SELECT col0 + + col0 + + col2 AS col1 FROM tab2
----
182
196
41

query I rowsort
SELECT col2 * col2 * + col1 AS col0 FROM tab2
----
22599
24548
39884

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + 38 col2 FROM tab2 AS cor0
----
64
65
76

query I rowsort
SELECT col1 * + ( + col0 ) AS col1 FROM tab0 cor0
----
2064
3395
8099

query I rowsort
SELECT ( 96 ) + col1 * - col2 AS col1 FROM tab0
----
-1
-2742
-7366

query I rowsort
SELECT + cor2.col0 FROM tab2, tab1 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab1 AS cor2
----
243 values hashing to 63f734facb33901524f6f2c799118db4

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3707
SELECT ( - tab1.col0 ) * CAST( col0 AS SIGNED ) FROM tab1
----
-4096
-6400
-9

skipif mysql # not compatible
query I rowsort label-3707
SELECT ( - tab1.col0 ) * CAST ( col0 AS INTEGER ) FROM tab1
----
-4096
-6400
-9

query I rowsort
SELECT ALL + col1 * tab2.col1 * col1 FROM tab2
----
205379
29791
4913

onlyif mysql # use DIV operator for integer division
query I rowsort label-3709
SELECT DISTINCT + col2 DIV - col2 AS col1 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-3709
SELECT DISTINCT + col2 / - col2 AS col1 FROM tab0
----
-1

query I rowsort
SELECT DISTINCT + col2 - - col2 * col0 FROM tab0
----
36
7380
825

query I rowsort
SELECT - - col2 + col0 * + col1 FROM tab2 AS cor0
----
1381
244
4628

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 58 * - cor0.col2 * ( - cor0.col0 ) col0 FROM tab1 AS cor0
----
211584
445440
9396

query I rowsort
SELECT DISTINCT - col0 * - 4 AS col0 FROM tab0
----
140
356
96

query I rowsort
SELECT col0 + 43 * + 95 FROM tab1
----
4088
4149
4165

query I rowsort
SELECT ALL col1 + + 16 AS col1 FROM tab0 AS cor0
----
102
107
113

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3716
SELECT DISTINCT - col1 * - CAST( col2 AS SIGNED ) + + col1 FROM tab1 AS cor0
----
1261
1430
580

skipif mysql # not compatible
query I rowsort label-3716
SELECT DISTINCT - col1 * - CAST ( col2 AS INTEGER ) + + col1 FROM tab1 AS cor0
----
1261
1430
580

query I rowsort
SELECT ALL - + cor0.col1 - 27 AS col2 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 32bb3cac1a7926794c294dcda5462868

query I rowsort
SELECT ALL - col0 * col2 + + 70 * - col0 AS col0 FROM tab2 AS cor0
----
-679
-7488
-8532

query I rowsort
SELECT + col2 + - cor0.col2 * col1 FROM tab0 AS cor0
----
-2805
-7380
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 8 + col2 col0 FROM tab1 AS cor0
----
104
62
65

query I rowsort
SELECT ALL + 9 + + cor0.col1 FROM tab1 cor0
----
19
22
35

query I rowsort
SELECT - - cor0.col1 * col2 - + cor0.col0 * col0 * + col2 AS col1 FROM tab0 AS cor0
----
-1128
-16170
-642060

query I rowsort
SELECT - - 70 AS col1 FROM tab2 AS cor0
----
70
70
70

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3724
SELECT - - CAST( NULL AS SIGNED ) + col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3724
SELECT - - CAST ( NULL AS INTEGER ) + col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 38 * col0 FROM tab1
----
114
2432
3040

query I rowsort
SELECT + ( + col0 * col2 ) - col1 AS col1 FROM tab2
----
158
1969
2985

query I rowsort
SELECT tab2.col0 - + col1 * + col2 * col2 FROM tab2
----
-22592
-24469
-39806

query I rowsort
SELECT DISTINCT - 86 * + 36 AS col0 FROM tab2
----
-3096

query I rowsort
SELECT DISTINCT + - 85 - col2 FROM tab0 cor0
----
-118
-167
-86

query I rowsort
SELECT - + ( ( col1 ) ) AS col2 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT + - 99 - col2 * - col1 * col0 AS col1 FROM tab1 cor0
----
36381
4113
99741

query I rowsort
SELECT ALL - 88 AS col1 FROM tab0 AS cor0
----
-88
-88
-88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 1 - - col0 col1 FROM tab0 AS cor0
----
25
36
90

query I rowsort
SELECT - ( + col2 ) - col1 FROM tab1 cor0
----
-109
-67
-80

onlyif mysql # use DIV operator for integer division
query I rowsort label-3735
SELECT DISTINCT - col2 DIV col2 + + col2 DIV col0 AS col0 FROM tab0 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-3735
SELECT DISTINCT - col2 / col2 + + col2 / col0 AS col0 FROM tab0 AS cor0
----
-1
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3736
SELECT - col1 - + col0 DIV col1 AS col1 FROM tab0 AS cor0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-3736
SELECT - col1 - + col0 / col1 AS col1 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT DISTINCT 17 - col1 FROM tab0 AS cor0
----
-69
-74
-80

onlyif mysql # use DIV operator for integer division
query I rowsort label-3738
SELECT DISTINCT + col2 DIV - col0 + + col2 * col2 FROM tab2 AS cor0
----
1444
676
726

skipif mysql # not compatible
query I rowsort label-3738
SELECT DISTINCT + col2 / - col0 + + col2 * col2 FROM tab2 AS cor0
----
1444
676
726

query I rowsort
SELECT DISTINCT + + col1 * + col1 + + col0 FROM tab2 AS cor0
----
3559
368
968

query I rowsort
SELECT ALL - - col2 + col1 * col2 * col1 FROM tab1 AS cor0
----
16320
36558
5757

query I rowsort
SELECT ALL - cor0.col2 - col1 * col0 FROM tab0 AS cor0
----
-2097
-3396
-8181

query I rowsort
SELECT ALL - ( col0 + - col2 ) FROM tab0
----
-34
-7
9

query I rowsort
SELECT cor0.col0 + col2 AS col1 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT - cor0.col1 + - col2 + col0 AS col2 FROM tab2 AS cor0
----
-51
-7
24

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3745
SELECT + 66 + - col2 / + CAST( NULL AS SIGNED ) + col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3745
SELECT + 66 + - col2 / + CAST ( NULL AS INTEGER ) + col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 * col1 + - 74 AS col1 FROM tab2 AS cor0
----
1460
572
763

query I rowsort
SELECT - col0 * + ( + 69 * col1 ) + col2 AS col0 FROM tab2 AS cor0
----
-14946
-317512
-92629

query I rowsort
SELECT DISTINCT - cor0.col0 * + 70 * + col1 FROM tab0 AS cor0
----
-144480
-237650
-566930

query I rowsort
SELECT ALL - col0 * + ( cor0.col1 ) FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT - + 80 * + cor1.col0 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to acfa33daa371f695a0045a73d68e09ff

query I rowsort
SELECT + col1 * + cor0.col2 FROM tab0 cor0
----
2838
7462
97

query I rowsort
SELECT ALL - col1 * 50 + col0 AS col2 FROM tab0 AS cor0
----
-4276
-4461
-4815

query I rowsort
SELECT ALL 76 AS col0 FROM tab1 cor0
----
76
76
76

onlyif mysql # use DIV operator for integer division
query I rowsort label-3754
SELECT ALL + 98 DIV col1 FROM tab2
----
1
3
5

skipif mysql # not compatible
query I rowsort label-3754
SELECT ALL + 98 / col1 FROM tab2
----
1
3
5

query I rowsort
SELECT ALL + cor0.col0 AS col0 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT DISTINCT + col2 * - 69 AS col2 FROM tab2 AS cor0
----
-1794
-1863
-2622

query I rowsort
SELECT DISTINCT - - col2 * col0 * col0 AS col0 FROM tab1 AS cor0
----
233472
486
614400

query I rowsort
SELECT - 15 + 32 AS col0 FROM tab2, tab1 cor0, tab0 AS cor1
----
27 values hashing to e0dd9155e4d67132637a04c18ef46b2a

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + col2 * - col2 col2 FROM tab1
----
-2913
-3185
-9136

query I rowsort
SELECT - tab1.col0 * - tab1.col2 + 55 * 12 AS col2 FROM tab1
----
4308
822
8340

onlyif mysql # use DIV operator for integer division
query I rowsort label-3761
SELECT + tab0.col2 DIV col2 + - col0 AS col0 FROM tab0
----
-23
-34
-88

skipif mysql # not compatible
query I rowsort label-3761
SELECT + tab0.col2 / col2 + - col0 AS col0 FROM tab0
----
-23
-34
-88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + col2 col2 FROM tab1
----
121
176
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-3763
SELECT col2 + + col0 DIV 68 FROM tab0
----
1
33
83

skipif mysql # not compatible
query I rowsort label-3763
SELECT col2 + + col0 / 68 FROM tab0
----
1
33
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 + ( col0 ) col2 FROM tab2 AS cor0
----
-20
41
52

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab2 AS cor2, tab0 AS cor3
----
3645 values hashing to 752ce7d2fdd0678058de6a90ff2b0f3a

query I rowsort
SELECT DISTINCT + 41 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
41

onlyif mysql # use DIV operator for integer division
query I rowsort label-3767
SELECT + col1 + - ( + ( col0 ) ) DIV - col0 FROM tab1 AS cor0
----
11
14
27

skipif mysql # not compatible
query I rowsort label-3767
SELECT + col1 + - ( + ( col0 ) ) / - col0 FROM tab1 AS cor0
----
11
14
27

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3768
SELECT ALL - + col1 * + CAST( NULL AS SIGNED ) * + col1 AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3768
SELECT ALL - + col1 * + CAST ( NULL AS INTEGER ) * + col1 AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3769
SELECT DISTINCT + + col1 DIV cor0.col2 AS col1 FROM tab0 AS cor0
----
1
2
97

skipif mysql # not compatible
query I rowsort label-3769
SELECT DISTINCT + + col1 / cor0.col2 AS col1 FROM tab0 AS cor0
----
1
2
97

query I rowsort
SELECT col2 + - 92 * 89 FROM tab1 cor0
----
-8092
-8131
-8134

query I rowsort
SELECT ALL col1 + ( + col0 ) * - col1 AS col0 FROM tab2 AS cor0
----
-1326
-186
-4543

query I rowsort
SELECT - col0 * 40 AS col1 FROM tab2 AS cor0
----
-280
-3120
-3160

onlyif mysql # use DIV operator for integer division
query I rowsort label-3773
SELECT ALL + col0 DIV - ( col1 * col0 ) FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3773
SELECT ALL + col0 / - ( col1 * col0 ) FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - col2 * - cor0.col1 * - cor0.col2 FROM tab1 AS cor0
----
-119808
-32490
-75816

onlyif mysql # use DIV operator for integer division
query I rowsort label-3775
SELECT + col1 * ( 77 ) DIV - col2 FROM tab1 cor0
----
-10
-13
-37

skipif mysql # not compatible
query I rowsort label-3775
SELECT + col1 * ( 77 ) / - col2 FROM tab1 cor0
----
-10
-13
-37

onlyif mysql # use DIV operator for integer division
query I rowsort label-3776
SELECT DISTINCT + 50 DIV + col2 + + col2 * - tab0.col0 AS col2 FROM tab0
----
-7298
-791
15

skipif mysql # not compatible
query I rowsort label-3776
SELECT DISTINCT + 50 / + col2 + + col2 * - tab0.col0 AS col2 FROM tab0
----
-7298
-791
15

onlyif mysql # use DIV operator for integer division
query I rowsort label-3777
SELECT 13 DIV + 31 + col0 + + 83 * 23 FROM tab1
----
1912
1973
1989

skipif mysql # not compatible
query I rowsort label-3777
SELECT 13 / + 31 + col0 + + 83 * 23 FROM tab1
----
1912
1973
1989

onlyif mysql # use DIV operator for integer division
query I rowsort label-3778
SELECT DISTINCT cor0.col0 DIV - 50 + col1 FROM tab1 AS cor0
----
12
26
9

skipif mysql # not compatible
query I rowsort label-3778
SELECT DISTINCT cor0.col0 / - 50 + col1 FROM tab1 AS cor0
----
12
26
9

query I rowsort
SELECT DISTINCT ( - col1 ) * col1 + col2 AS col1 FROM tab0 AS cor0
----
-7363
-8199
-9408

query I rowsort
SELECT ALL + ( 20 ) * col1 - - 95 FROM tab0 AS cor0
----
1815
1915
2035

query I rowsort
SELECT ( + cor0.col1 ) + - col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - 73 * + col1 + + col1 AS col2 FROM tab0 AS cor0
----
-6192
-6552
-6984

onlyif mysql # use DIV operator for integer division
query I rowsort label-3783
SELECT - 18 + - col0 DIV col0 AS col2 FROM tab2 AS cor0
----
-19
-19
-19

skipif mysql # not compatible
query I rowsort label-3783
SELECT - 18 + - col0 / col0 AS col2 FROM tab2 AS cor0
----
-19
-19
-19

query I rowsort
SELECT + 69 + - col0 FROM tab0 AS cor0
----
-20
34
45

query I rowsort
SELECT DISTINCT 54 + - cor0.col0 * col2 FROM tab0 AS cor0
----
-7244
-738
19

query I rowsort
SELECT + col2 + cor0.col0 * col1 FROM tab1 AS cor0
----
1136
132
697

onlyif mysql # use DIV operator for integer division
query I rowsort label-3787
SELECT cor0.col1 DIV + col0 AS col1 FROM tab0 AS cor0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-3787
SELECT cor0.col1 / + col0 AS col1 FROM tab0 AS cor0
----
1
2
3

query I rowsort
SELECT DISTINCT + + col2 * col1 * col0 FROM tab2 AS cor0
----
119652
51034
5859

query I rowsort
SELECT ALL + 56 + col1 * - col1 FROM tab0 AS cor0
----
-7340
-8225
-9353

onlyif mysql # use DIV operator for integer division
query I rowsort label-3790
SELECT DISTINCT - - 98 DIV + cor0.col1 AS col2 FROM tab1 AS cor0
----
3
7
9

skipif mysql # not compatible
query I rowsort label-3790
SELECT DISTINCT - - 98 / + cor0.col1 AS col2 FROM tab1 AS cor0
----
3
7
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + col2 * ( - cor0.col0 ) col0 FROM tab2 AS cor0
----
-2054
-216
-3040

onlyif mysql # use DIV operator for integer division
query I rowsort label-3792
SELECT + 40 DIV 99 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

skipif mysql # not compatible
query I rowsort label-3792
SELECT + 40 / 99 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

query I rowsort
SELECT DISTINCT + 71 FROM tab0, tab2 AS cor0
----
71

query I rowsort
SELECT ALL - 59 + - col0 * col1 FROM tab1 AS cor0
----
-1099
-137
-699

query I rowsort
SELECT - 20 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to eb3a66728062963cccbd15bd2f5c9eee

onlyif mysql # use DIV operator for integer division
query I rowsort label-3796
SELECT DISTINCT - col0 * - col1 + - ( + col1 ) DIV - col1 FROM tab1 AS cor0
----
1041
641
79

skipif mysql # not compatible
query I rowsort label-3796
SELECT DISTINCT - col0 * - col1 + - ( + col1 ) / - col1 FROM tab1 AS cor0
----
1041
641
79

query I rowsort
SELECT DISTINCT - col0 * col0 + + 58 * - cor0.col1 AS col1 FROM tab2 AS cor0
----
-1847
-7227
-9506

query I rowsort
SELECT + - col0 + col1 * col0 FROM tab2 cor0
----
1264
210
4524

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * + col0 * + col1 + - col0 col2 FROM tab0 cor0
----
-177528
-329350
-737098

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3800
SELECT ALL + col1 + col1 * + CAST( NULL AS DECIMAL ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3800
SELECT ALL + col1 + col1 * + CAST ( NULL AS REAL ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3801
SELECT DISTINCT col1 + col1 + + col1 * + cor0.col0 DIV + col0 FROM tab2 AS cor0
----
177
51
93

skipif mysql # not compatible
query I rowsort label-3801
SELECT DISTINCT col1 + col1 + + col1 * + cor0.col0 / + col0 FROM tab2 AS cor0
----
177
51
93

query I rowsort
SELECT + 36 * + cor0.col2 FROM tab0 AS cor0
----
1188
2952
36

query I rowsort
SELECT + - col2 * + col1 + col1 FROM tab2 AS cor0
----
-1475
-629
-806

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + cor0.col2 + col0 * 53 * cor0.col0 col2 FROM tab0 AS cor0
----
30495
419731
64924

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 * - col1 col1 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT DISTINCT - col2 * - col0 * + col2 FROM tab0 AS cor0
----
26136
35
598436

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3807
SELECT ALL - - cor0.col2 * + col2 + - CAST( + 63 AS SIGNED ) FROM tab0 AS cor0
----
-62
1026
6661

skipif mysql # not compatible
query I rowsort label-3807
SELECT ALL - - cor0.col2 * + col2 + - CAST ( + 63 AS INTEGER ) FROM tab0 AS cor0
----
-62
1026
6661

query I rowsort
SELECT ALL - + col2 + col1 * col2 FROM tab2 cor0
----
1508
608
810

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 17 + col0 * cor0.col2 * + ( - col0 ) col2 FROM tab2 AS cor0
----
-1340
-158201
-237175

query I rowsort
SELECT + col2 + + ( 37 ) FROM tab1 AS cor0
----
133
91
94

onlyif mysql # use DIV operator for integer division
query I rowsort label-3811
SELECT - col0 + CAST( - col1 AS SIGNED ) DIV col1 FROM tab1 AS cor0
----
-4
-65
-81

skipif mysql # not compatible
query I rowsort label-3811
SELECT - col0 + CAST ( - col1 AS INTEGER ) / col1 FROM tab1 AS cor0
----
-4
-65
-81

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3812
SELECT ALL ( + col1 + CAST( 57 AS SIGNED ) ) AS col0 FROM tab2
----
116
74
88

skipif mysql # not compatible
query I rowsort label-3812
SELECT ALL ( + col1 + CAST ( 57 AS INTEGER ) ) AS col0 FROM tab2
----
116
74
88

query I rowsort
SELECT col2 + + col2 * col2 * col0 FROM tab0
----
26169
36
598518

onlyif mysql # use DIV operator for integer division
query I rowsort label-3814
SELECT ALL - 20 DIV 57 - col2 FROM tab1 AS cor0
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-3814
SELECT ALL - 20 / 57 - col2 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT ALL - 31 FROM tab1, tab0 cor0
----
9 values hashing to f4b05206ee2fc0cf8007d9c3514885fa

query I rowsort
SELECT ALL + - 57 AS col2 FROM tab0 AS cor0
----
-57
-57
-57

query I rowsort
SELECT DISTINCT 63 FROM tab0, tab2 cor0
----
63

query I rowsort
SELECT 51 * col2 * + col0 + + col1 AS col0 FROM tab2 AS cor0
----
103487
153119
9670

query I rowsort
SELECT ALL - col1 + 58 * col1 AS col0 FROM tab0 AS cor0
----
4902
5187
5529

query I rowsort
SELECT ALL - ( 90 ) * + cor0.col0 AS col1 FROM tab2 AS cor0
----
-630
-7020
-7110

onlyif mysql # use DIV operator for integer division
query I rowsort label-3821
SELECT + + CAST( + 91 AS SIGNED ) * cor0.col0 DIV - col1 FROM tab1 AS cor0
----
-10
-560
-582

skipif mysql # not compatible
query I rowsort label-3821
SELECT + + CAST ( + 91 AS INTEGER ) * cor0.col0 / - col1 FROM tab1 AS cor0
----
-10
-560
-582

query I rowsort
SELECT DISTINCT - ( 42 ) * col0 AS col1 FROM tab1 AS cor0
----
-126
-2688
-3360

query IIIIIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab0 cor2
----
972 values hashing to 3a31dab513390ca6bd05c71a3d9c50f0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3824
SELECT ALL - CAST( NULL AS SIGNED ) AS col1 FROM tab2, tab1 AS cor0, tab0, tab1 AS cor1
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

skipif mysql # not compatible
query I rowsort label-3824
SELECT ALL - CAST ( NULL AS INTEGER ) AS col1 FROM tab2, tab1 AS cor0, tab0, tab1 AS cor1
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

query I rowsort
SELECT ALL + 78 * col1 + tab2.col0 FROM tab2
----
1405
2425
4680

onlyif mysql # use DIV operator for integer division
query I rowsort label-3826
SELECT ( col1 + col2 ) * 21 DIV col1 AS col2 FROM tab2
----
30
39
67

skipif mysql # not compatible
query I rowsort label-3826
SELECT ( col1 + col2 ) * 21 / col1 AS col2 FROM tab2
----
30
39
67

query I rowsort
SELECT ALL col1 + + 4 FROM tab0
----
101
90
95

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3828
SELECT DISTINCT + ( col0 ) / col1 + + CAST( NULL AS SIGNED ) * tab1.col2 * - col1 col1 FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3828
SELECT DISTINCT + ( col0 ) / col1 + + CAST ( NULL AS INTEGER ) * tab1.col2 * - col1 col1 FROM tab1
----
NULL

query I rowsort
SELECT - - ( - 52 ) * - col1 + 97 FROM tab2 AS cor0
----
1709
3165
981

query I rowsort
SELECT ALL - col2 * - 60 AS col0 FROM tab2 AS cor0
----
1560
1620
2280

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + + 31 col1 FROM tab2
----
57
58
69

query I rowsort
SELECT ALL + ( - ( col0 ) ) * col1 + + col0 AS col2 FROM tab0
----
-2040
-3360
-8010

query I rowsort
SELECT - cor0.col1 + + 39 AS col2 FROM tab0 AS cor0
----
-47
-52
-58

query I rowsort
SELECT + - cor0.col0 * + ( col0 ) AS col2 FROM tab0 AS cor0
----
-1225
-576
-7921

query I rowsort
SELECT ALL col2 - - 69 FROM tab1 AS cor0
----
123
126
165

query I rowsort
SELECT 70 + cor0.col1 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 10a5c88a1360ebd1066bfc5340131aaa

query I rowsort
SELECT ALL + - col2 * + col2 + + col2 AS col2 FROM tab2 AS cor0
----
-1406
-650
-702

query I rowsort
SELECT col1 * + cor0.col1 FROM tab0 cor0
----
7396
8281
9409

query I rowsort
SELECT + 81 AS col1 FROM tab0 cor0
----
81
81
81

query I rowsort
SELECT col0 * - col0 - col2 FROM tab1 AS cor0
----
-4153
-63
-6496

query I rowsort
SELECT ALL + 57 + cor0.col0 AS col2 FROM tab1 cor0
----
121
137
60

query I rowsort
SELECT ALL - 60 * col1 FROM tab0 AS cor0
----
-5160
-5460
-5820

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3843
SELECT CAST( ( col1 ) AS SIGNED ) * col2 col2 FROM tab0
----
2838
7462
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3843
SELECT CAST ( ( col1 ) AS INTEGER ) * col2 col2 FROM tab0
----
2838
7462
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3844
SELECT - cor0.col1 * CAST( NULL AS SIGNED ) + + cor0.col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3844
SELECT - cor0.col1 * CAST ( NULL AS INTEGER ) + + cor0.col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + cor0.col0 + col0 + - col1 * - col0 FROM tab2 cor0
----
1343
217
4602

skipif mysql # not compatible
query I rowsort
SELECT + col2 + CAST ( + 91 AS REAL ) * col0 AS col2 FROM tab0 AS cor0
----
2217
3186
8181

query I rowsort
SELECT + tab1.col2 + + 37 FROM tab1, tab1 AS cor0
----
9 values hashing to 707b92bfa2e49b01f294b4557662a316

query I rowsort
SELECT DISTINCT + + ( + 38 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
38

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3849
SELECT DISTINCT - CAST( 72 AS SIGNED ) FROM tab1, tab0 AS cor0
----
-72

skipif mysql # not compatible
query I rowsort label-3849
SELECT DISTINCT - CAST ( 72 AS INTEGER ) FROM tab1, tab0 AS cor0
----
-72

query I rowsort
SELECT + 60 + + 51 * - col1 AS col2 FROM tab2 AS cor0
----
-1521
-2949
-807

onlyif mysql # use DIV operator for integer division
query I rowsort label-3851
SELECT - - col1 + col2 DIV col2 AS col1 FROM tab0 AS cor0
----
87
92
98

skipif mysql # not compatible
query I rowsort label-3851
SELECT - - col1 + col2 / col2 AS col1 FROM tab0 AS cor0
----
87
92
98

query I rowsort
SELECT DISTINCT - + col2 + col0 * col2 + + col1 FROM tab2 AS cor0
----
193
2061
2981

query I rowsort
SELECT + 84 FROM tab0, tab2 AS cor0, tab2, tab0 AS cor1
----
81 values hashing to 3c092ed1a99ddb5afc7049fd2b9427f9

query I rowsort
SELECT DISTINCT - 48 AS col1 FROM tab2, tab1 AS cor0
----
-48

query I rowsort
SELECT 7 AS col1 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 4e72e9e33dacac757f48d0ce46094607

query I rowsort
SELECT ALL - ( col1 ) * + col0 FROM tab0
----
-2064
-3395
-8099

query I rowsort
SELECT ( - col0 ) + + col0 AS col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + 13 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 80 col0 FROM tab2 AS cor0
----
80
80
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3860
SELECT + - CAST( NULL AS SIGNED ) * + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3860
SELECT + - CAST ( NULL AS INTEGER ) * + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 59 + + col0 + - col1 * + 7 AS col2 FROM tab2
----
-151
-276
19

query I rowsort
SELECT DISTINCT 21 - - tab2.col0 FROM tab2
----
100
28
99

query I rowsort
SELECT DISTINCT 39 + col1 * 67 AS col1 FROM tab0
----
5801
6136
6538

onlyif mysql # use DIV operator for integer division
query I rowsort label-3864
SELECT + 55 DIV col2 AS col0 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3864
SELECT + 55 / col2 AS col0 FROM tab1
----
0
0
1

query I rowsort
SELECT 98 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to c758e8afbdfa6aae279045b0e9cbacc2

query I rowsort
SELECT ALL tab1.col2 + + col2 * 50 * tab1.col2 + col1 FROM tab1
----
145880
162517
460909

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3867
SELECT ALL + col1 * + CAST( col1 AS SIGNED ) * - col2 AS col2 FROM tab2 AS cor0
----
-10982
-25947
-90506

skipif mysql # not compatible
query I rowsort label-3867
SELECT ALL + col1 * + CAST ( col1 AS INTEGER ) * - col2 AS col2 FROM tab2 AS cor0
----
-10982
-25947
-90506

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3868
SELECT ALL col2 + CAST( col1 AS SIGNED ) FROM tab1 AS cor0
----
109
67
80

skipif mysql # not compatible
query I rowsort label-3868
SELECT ALL col2 + CAST ( col1 AS INTEGER ) FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT - - col0 + col2 + - col2 AS col1 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT + + col1 * 67 AS col2 FROM tab1 AS cor0
----
1742
670
871

onlyif mysql # use DIV operator for integer division
query I rowsort label-3871
SELECT col1 DIV col1 + + col2 * col1 AS col0 FROM tab2 cor0
----
1535
647
838

skipif mysql # not compatible
query I rowsort label-3871
SELECT col1 / col1 + + col2 * col1 AS col0 FROM tab2 cor0
----
1535
647
838

onlyif mysql # use DIV operator for integer division
query I rowsort label-3872
SELECT ALL col0 * col1 DIV 95 AS col0 FROM tab2
----
14
2
48

skipif mysql # not compatible
query I rowsort label-3872
SELECT ALL col0 * col1 / 95 AS col0 FROM tab2
----
14
2
48

query I rowsort
SELECT ( - col0 + ( - ( col2 ) ) ) * col0 FROM tab1
----
-14080
-171
-7744

query I rowsort
SELECT - + col2 + 80 + + col1 FROM tab0 AS cor0
----
133
176
89

query I rowsort
SELECT col1 + + 31 + + col1 FROM tab2 AS cor0
----
149
65
93

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3876
SELECT ALL - cor0.col2 * 27 * + 10 + col1 * - CAST( NULL AS SIGNED ) + - 17 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3876
SELECT ALL - cor0.col2 * 27 * + 10 + col1 * - CAST ( NULL AS INTEGER ) + - 17 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3877
SELECT + col2 * + CAST( col2 + + col1 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
10464
3819
4320

skipif mysql # not compatible
query I rowsort label-3877
SELECT + col2 * + CAST ( col2 + + col1 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
10464
3819
4320

query I rowsort
SELECT ALL - col0 + ( 53 ) AS col0 FROM tab2 AS cor0
----
-25
-26
46

query I rowsort
SELECT DISTINCT 98 AS col2 FROM tab2 AS cor0
----
98

query I rowsort
SELECT - - 90 + - cor0.col1 * + 73 AS col0 FROM tab1 AS cor0
----
-1808
-640
-859

query I rowsort
SELECT ALL - col2 * col2 * - ( - ( col0 ) * 75 + - col2 ) FROM tab1 AS cor0
----
-15780393
-56180736
-813564

onlyif mysql # use DIV operator for integer division
query I rowsort label-3882
SELECT ALL - ( - col1 ) DIV col2 + - col0 DIV cor0.col1 FROM tab1 cor0
----
-6
-6
0

skipif mysql # not compatible
query I rowsort label-3882
SELECT ALL - ( - col1 ) / col2 + - col0 / cor0.col1 FROM tab1 cor0
----
-6
-6
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 * + col0 col0 FROM tab0 AS cor0
----
-35
-7298
-792

onlyif mysql # use DIV operator for integer division
query I rowsort label-3884
SELECT DISTINCT - - cor0.col1 DIV col1 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-3884
SELECT DISTINCT - - cor0.col1 / col1 FROM tab1 AS cor0
----
1

query I rowsort
SELECT DISTINCT tab2.col2 + + col2 * col2 FROM tab2
----
1482
702
756

query I rowsort
SELECT + + 51 + + cor0.col2 FROM tab2 AS cor0
----
77
78
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-3887
SELECT DISTINCT col2 DIV 56 + col0 + CAST( - 60 AS SIGNED ) FROM tab1
----
-57
21
5

skipif mysql # not compatible
query I rowsort label-3887
SELECT DISTINCT col2 / 56 + col0 + CAST ( - 60 AS INTEGER ) FROM tab1
----
-57
21
5

query I rowsort
SELECT DISTINCT + ( - col1 ) + col0 AS col0 FROM tab2 AS cor0
----
-24
19
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col2 col0 FROM tab1, tab2 AS cor0
----
26
27
38

query I rowsort
SELECT DISTINCT - + 49 * + cor0.col2 FROM tab0, tab1, tab0 cor0
----
-1617
-4018
-49

query I rowsort
SELECT 81 AS col2 FROM tab1
----
81
81
81

query I rowsort
SELECT - col2 + + col2 * 98 FROM tab1
----
5238
5529
9312

onlyif mysql # use DIV operator for integer division
query I rowsort label-3893
SELECT + col1 + col0 DIV - 62 col2 FROM tab1
----
12
26
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3893
SELECT + col1 + col0 / - 62 col2 FROM tab1
----
12
26
9

query I rowsort
SELECT ALL + col1 * + 99 AS col2 FROM tab1 AS cor0
----
1287
2574
990

onlyif mysql # use DIV operator for integer division
query I rowsort label-3895
SELECT + col2 DIV col1 col0 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3895
SELECT + col2 / col1 col0 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3896
SELECT DISTINCT - - col0 + - col2 DIV cor0.col1 FROM tab2 AS cor0
----
7
77
78

skipif mysql # not compatible
query I rowsort label-3896
SELECT DISTINCT - - col0 + - col2 / cor0.col1 FROM tab2 AS cor0
----
7
77
78

query I rowsort
SELECT ALL col0 + - ( 24 ) * col2 - 18 AS col1 FROM tab1
----
-1311
-1322
-2242

query I rowsort
SELECT ALL + + 78 * + 44 AS col0 FROM tab0 cor0
----
3432
3432
3432

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3899
SELECT DISTINCT - + CAST( NULL AS SIGNED ) / col0 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3899
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) / col0 AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL + col2 * - col0 + col1 FROM tab1
----
-136
-3638
-7667

query I rowsort
SELECT DISTINCT - col1 + col2 * col1 FROM tab1
----
1235
1378
560

query I rowsort
SELECT col1 + - col1 - col0 FROM tab0
----
-24
-35
-89

query I rowsort
SELECT DISTINCT col0 * ( + col2 ) * tab1.col2 + tab1.col0 - 95 AS col1 FROM tab1
----
207905
737265
8656

query I rowsort
SELECT DISTINCT col2 - - ( - col1 ) * - col2 FROM tab2
----
1560
684
864

query I rowsort
SELECT 31 + ( col0 ) FROM tab0
----
120
55
66

query I rowsort
SELECT 77 FROM tab2, tab2 AS cor0 CROSS JOIN tab0
----
27 values hashing to d7b027bca5d37c67e29013904def8125

query I rowsort
SELECT DISTINCT - ( - tab1.col1 ) + col2 + + 7 FROM tab1
----
116
74
87

query I rowsort
SELECT DISTINCT - tab0.col1 + - col0 + - col0 AS col2 FROM tab0
----
-134
-167
-269

onlyif mysql # use DIV operator for integer division
query I rowsort label-3909
SELECT ALL col0 DIV - col1 col0 FROM tab2 AS cor0
----
-1
-4
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3909
SELECT ALL col0 / - col1 col0 FROM tab2 AS cor0
----
-1
-4
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3910
SELECT ALL + + CAST( 5 AS SIGNED ) + cor0.col0 FROM tab1 AS cor0
----
69
8
85

skipif mysql # not compatible
query I rowsort label-3910
SELECT ALL + + CAST ( 5 AS INTEGER ) + cor0.col0 FROM tab1 AS cor0
----
69
8
85

query I rowsort
SELECT - ( - col0 ) - col1 FROM tab0 cor0
----
-2
-62
-62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 + col1 col2 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT ALL - ( ( + tab2.col0 ) ) FROM tab2
----
-7
-78
-79

query I rowsort
SELECT ALL ( col1 ) * cor0.col1 - + ( - 66 + - col2 * - 29 ) FROM tab0 AS cor0
----
5969
6505
9446

query I rowsort
SELECT ALL - - ( - col0 ) - col0 FROM tab1 AS cor0
----
-128
-160
-6

query I rowsort
SELECT col0 + 43 * col2 FROM tab0 cor0
----
1443
3615
78

query I rowsort
SELECT ALL - col0 + col0 * - col2 AS col0 FROM tab2
----
-196
-2106
-3081

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 31 * + col1 col0 FROM tab2
----
1829
527
961

query I rowsort
SELECT ALL 54 + - col0 + col0 FROM tab0
----
54
54
54

query I rowsort
SELECT ALL - 22 + - 35 FROM tab1
----
-57
-57
-57

query I rowsort
SELECT DISTINCT 32 + col2 * + col1 FROM tab1
----
1280
1436
602

query I rowsort
SELECT DISTINCT col2 + cor0.col1 * col1 FROM tab2 AS cor0
----
327
3507
988

query I rowsort
SELECT + + col0 + - 47 AS col0 FROM tab1 AS cor0
----
-44
17
33

query I rowsort
SELECT ALL + ( 48 ) FROM tab0 cor0
----
48
48
48

query I rowsort
SELECT + - 16 - col1 FROM tab2 AS cor0
----
-33
-47
-75

query I rowsort
SELECT 12 * tab1.col0 AS col1 FROM tab1
----
36
768
960

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3927
SELECT - - ( + col1 ) + + CAST( NULL AS SIGNED ) * + col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3927
SELECT - - ( + col1 ) + + CAST ( NULL AS INTEGER ) * + col2 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3928
SELECT - col2 * col0 + - 4 DIV - col0 FROM tab2 AS cor0
----
-189
-2028
-3002

skipif mysql # not compatible
query I rowsort label-3928
SELECT - col2 * col0 + - 4 / - col0 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT - 14 - - col2 AS col1 FROM tab0 AS cor0
----
-13
19
68

query I rowsort
SELECT - col0 * + col1 * 70 AS col0 FROM tab2 AS cor0
----
-15190
-322140
-94010

query I rowsort
SELECT - cor0.col1 * - col0 + 71 + - col1 FROM tab2 AS cor0
----
1397
257
4614

query I rowsort
SELECT + - col0 * + cor0.col1 * - ( - 71 * - col0 ) AS col2 FROM tab2 AS cor0
----
107849
25485876
7532887

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - cor0.col0 + cor0.col1 + 40 col2 FROM tab2 AS cor0
----
136
177
78

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3934
SELECT ALL + + col2 + - CAST( col0 + + col1 AS SIGNED ) FROM tab2 AS cor0
----
-11
-111
-58

skipif mysql # not compatible
query I rowsort label-3934
SELECT ALL + + col2 + - CAST ( col0 + + col1 AS INTEGER ) FROM tab2 AS cor0
----
-11
-111
-58

onlyif mysql # use DIV operator for integer division
query I rowsort label-3935
SELECT DISTINCT + - col2 DIV cor0.col0 + col1 * col1 AS col1 FROM tab0 AS cor0
----
7395
8281
9409

skipif mysql # not compatible
query I rowsort label-3935
SELECT DISTINCT + - col2 / cor0.col0 + col1 * col1 AS col1 FROM tab0 AS cor0
----
7395
8281
9409

query I rowsort
SELECT ALL + col1 + ( - 97 * + col2 ) AS col2 FROM tab1 AS cor0
----
-5212
-5519
-9299

query I rowsort
SELECT ALL - - col2 * 8 * + col2 FROM tab1 AS cor0
----
23328
25992
73728

query I rowsort
SELECT ALL - - col2 + - col2 * + col1 + + col0 FROM tab1 cor0
----
-1072
-1347
-449

query I rowsort
SELECT DISTINCT - 66 + + col0 AS col2 FROM tab1 AS cor0
----
-2
-63
14

query I rowsort
SELECT ALL ( col0 ) + cor0.col0 * 14 FROM tab0 AS cor0
----
1335
360
525

query I rowsort
SELECT + 43 - + col2 AS col0 FROM tab1 AS cor0
----
-11
-14
-53

query I rowsort
SELECT DISTINCT - 40 FROM tab2, tab2 cor0
----
-40

query I rowsort
SELECT DISTINCT cor1.col0 FROM tab0 AS cor0 CROSS JOIN tab0, tab1 cor1, tab2, tab2 AS cor2
----
3
64
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3944
SELECT DISTINCT cor0.col0 * - CAST( NULL AS DECIMAL ) FROM tab2 AS cor0 CROSS JOIN tab1, tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-3944
SELECT DISTINCT cor0.col0 * - CAST ( NULL AS REAL ) FROM tab2 AS cor0 CROSS JOIN tab1, tab1 AS cor1
----
NULL

query I rowsort
SELECT ( - col1 ) + - col2 AS col2 FROM tab1 AS cor0
----
-109
-67
-80

query I rowsort
SELECT ALL - cor0.col0 + 45 * - cor1.col0 FROM tab1, tab1 AS cor0, tab0, tab0 AS cor1
----
81 values hashing to f6c82c5a0db1df8f9205b5da3fb2e11d

query I rowsort
SELECT DISTINCT + tab1.col0 * col0 * - col0 AS col0 FROM tab1
----
-262144
-27
-512000

query I rowsort
SELECT - - cor0.col2 + + col0 * + col1 FROM tab0 cor0
----
2097
3396
8181

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + col0 col1 FROM tab1 cor0
----
-16
-51
7

query I rowsort
SELECT - cor0.col0 * col0 AS col0 FROM tab1 cor0
----
-4096
-6400
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col2 ) * - cor0.col0 col0 FROM tab0 AS cor0
----
-35
-7298
-792

onlyif mysql # use DIV operator for integer division
query I rowsort label-3952
SELECT + + ( + cor0.col1 ) DIV cor0.col1 AS col2 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3952
SELECT + + ( + cor0.col1 ) / cor0.col1 AS col2 FROM tab0 AS cor0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col2 col1 FROM tab2, tab2 AS cor0
----
26
27
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 29 col0 FROM tab0, tab1 AS cor0, tab1 AS cor1, tab2 AS cor2
----
81 values hashing to 40739d223aa019bd2dfe2db99d596302

query I rowsort
SELECT DISTINCT 24 * cor0.col1 AS col0 FROM tab1 cor0
----
240
312
624

query I rowsort
SELECT 9 * + col2 AS col0 FROM tab0 AS cor0
----
297
738
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor1.col1 col1 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84

query I rowsort
SELECT 4 * col0 * - 36 AS col2 FROM tab2 cor0
----
-1008
-11232
-11376

onlyif mysql # use DIV operator for integer division
query I rowsort label-3959
SELECT ALL - 21 * cor0.col1 DIV - CAST( + col1 * - col2 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-21
0
0

skipif mysql # not compatible
query I rowsort label-3959
SELECT ALL - 21 * cor0.col1 / - CAST ( + col1 * - col2 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-21
0
0

query I rowsort
SELECT - tab2.col1 - cor0.col1 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to b6370a8dbb566b00ce2aafff5085dfe9

query I rowsort
SELECT ALL - cor0.col1 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84

query I rowsort
SELECT - ( col0 ) * + col1 FROM tab0
----
-2064
-3395
-8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-3963
SELECT + 35 + col1 DIV cor0.col0 FROM tab1 AS cor0
----
35
35
43

skipif mysql # not compatible
query I rowsort label-3963
SELECT + 35 + col1 / cor0.col0 FROM tab1 AS cor0
----
35
35
43

query I rowsort
SELECT DISTINCT - cor0.col1 + col0 * + col1 + - col2 AS col1 FROM tab2 cor0
----
1288
159
4517

query I rowsort
SELECT - col0 + col1 * + 47 FROM tab0 cor0
----
4018
4188
4524

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3966
SELECT + - col1 * col0 + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3966
SELECT + - col1 * col0 + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3967
SELECT DISTINCT + 86 DIV col1 FROM tab1 AS cor0
----
3
6
8

skipif mysql # not compatible
query I rowsort label-3967
SELECT DISTINCT + 86 / col1 FROM tab1 AS cor0
----
3
6
8

query I rowsort
SELECT cor0.col2 * - col0 FROM tab0 cor0
----
-35
-7298
-792

query I rowsort
SELECT DISTINCT 22 * col2 FROM tab2 cor0
----
572
594
836

query I rowsort
SELECT + col1 + + col0 + + 90 AS col2 FROM tab1 cor0
----
119
164
183

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 * cor0.col0 * + col0 col1 FROM tab2 AS cor0
----
106097
1519
358956

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3972
SELECT DISTINCT CAST( NULL AS SIGNED ) col2 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3972
SELECT DISTINCT CAST ( NULL AS INTEGER ) col2 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
NULL

query I rowsort
SELECT DISTINCT - + 59 AS col2 FROM tab2 AS cor0
----
-59

query I rowsort
SELECT - 76 * + cor0.col0 AS col0 FROM tab2 AS cor0
----
-532
-5928
-6004

query I rowsort
SELECT ALL 91 * - col2 + col1 AS col2 FROM tab2
----
-2307
-2426
-3441

query I rowsort
SELECT + col0 + + tab2.col2 AS col0 FROM tab2
----
104
117
34

onlyif mysql # use DIV operator for integer division
query I rowsort label-3977
SELECT DISTINCT - col2 DIV 81 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3977
SELECT DISTINCT - col2 / 81 FROM tab2
----
0

query I rowsort
SELECT ( ( col2 ) ) + + 76 FROM tab2 cor0
----
102
103
114

query I rowsort
SELECT ALL + 72 FROM tab1 cor0
----
72
72
72

query I rowsort
SELECT - tab1.col0 + - col0 * 70 AS col1 FROM tab1
----
-213
-4544
-5680

query I rowsort
SELECT DISTINCT col0 * - col1 * - ( + col0 ) AS col0 FROM tab0
----
118825
49536
720811

query I rowsort
SELECT col0 + ( col0 ) AS col2 FROM tab1
----
128
160
6

query I rowsort
SELECT col1 + + tab1.col1 - + col0 AS col2 FROM tab1
----
-44
-54
49

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3984
SELECT CAST( NULL AS SIGNED ) + + 29 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3984
SELECT CAST ( NULL AS INTEGER ) + + 29 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 23 * col2 + cor0.col1 AS col1 FROM tab0 AS cor0
----
120
1977
845

query I rowsort
SELECT ALL + 89 AS col2 FROM tab2 cor0
----
89
89
89

query I rowsort
SELECT DISTINCT + + col0 + col2 * + col2 AS col0 FROM tab2 AS cor0
----
1523
736
754

query I rowsort
SELECT + - col0 * cor0.col0 * - col0 + + col0 - + col0 * - col1 FROM tab1 AS cor0
----
108
262848
513120

query I rowsort
SELECT ALL cor0.col2 * col2 AS col2 FROM tab1 cor0
----
2916
3249
9216

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3990
SELECT DISTINCT CAST( NULL AS SIGNED ) * 33 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3990
SELECT DISTINCT CAST ( NULL AS INTEGER ) * 33 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + CAST ( + col2 AS INTEGER ) + - col1 + + CAST ( col1 * + col0 AS REAL ) AS col1 FROM tab1 AS cor0
----
106
1123
687

query I rowsort
SELECT - 6 * col1 + - cor0.col2 FROM tab1 AS cor0
----
-117
-174
-210

query I rowsort
SELECT + col1 + - 73 * col1 FROM tab2 AS cor0
----
-1224
-2232
-4248

query I rowsort
SELECT + 3 * + col0 + + cor0.col1 AS col1 FROM tab0 AS cor0
----
158
202
358

query I rowsort
SELECT - col0 - col2 * col0 AS col2 FROM tab2 AS cor0
----
-196
-2106
-3081

query I rowsort
SELECT col0 * - col0 * - cor0.col0 AS col1 FROM tab2 AS cor0
----
343
474552
493039

query I rowsort
SELECT - 68 AS col1 FROM tab2, tab1 AS cor0, tab0 cor1
----
27 values hashing to 6fbba7db5bccb533a35aa5125a231f88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col0 * cor0.col0 * + 58 col2 FROM tab1 AS cor0
----
237568
371200
522

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - cor0.col0 col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a

query I rowsort
SELECT DISTINCT + cor0.col2 * + col0 - - col1 AS col2 FROM tab2 AS cor0
----
2087
220
3019

query I rowsort
SELECT - cor0.col2 + 77 AS col0 FROM tab2 cor0
----
39
50
51

query I rowsort
SELECT DISTINCT + - 35 * 92 AS col2 FROM tab0 AS cor0
----
-3220

query I rowsort
SELECT - - col0 * 29 + col0 FROM tab1 AS cor0
----
1920
2400
90

onlyif mysql # use DIV operator for integer division
query I rowsort label-4004
SELECT - - col0 * col1 + - col2 * cor0.col0 + cor0.col2 DIV col0 AS col1 FROM tab0 AS cor0
----
1273
3360
801

skipif mysql # not compatible
query I rowsort label-4004
SELECT - - col0 * col1 + - col2 * cor0.col0 + cor0.col2 / col0 AS col1 FROM tab0 AS cor0
----
1273
3360
801

query I rowsort
SELECT DISTINCT + + col1 * - cor0.col1 FROM tab1 cor0
----
-100
-169
-676

query I rowsort
SELECT ALL cor0.col1 + + col2 AS col0 FROM tab2 AS cor0
----
55
58
85

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4007
SELECT ALL - + col1 + col0 * col2 * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4007
SELECT ALL - + col1 + col0 * col2 * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - ( + col0 ) * col0 + + 3 - + col0 * + col1 FROM tab1 cor0
----
-4733
-7437
-84

query I rowsort
SELECT col0 + 1 FROM tab2 cor0
----
79
8
80

query I rowsort
SELECT - ( - 43 ) AS col2 FROM tab1 AS cor0
----
43
43
43

query I rowsort
SELECT ALL - - ( 97 ) AS col2 FROM tab1 AS cor0
----
97
97
97

query I rowsort
SELECT ALL - col0 + + col0 * + 27 * + tab1.col1 AS col2 FROM tab1
----
17216
2103
28000

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4013
SELECT - col2 + - CAST( NULL AS SIGNED ) col0 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4013
SELECT - col2 + - CAST ( NULL AS INTEGER ) col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + cor0.col2 * col0 * col2 + 47 AS col1 FROM tab0 AS cor0
----
26183
598483
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - col1 ) col2 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT ALL cor0.col0 * cor0.col2 + cor0.col2 AS col0 FROM tab1 AS cor0
----
216
3705
7776

query I rowsort
SELECT + + col2 * + col0 + - 24 AS col2 FROM tab0 cor0
----
11
7274
768

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 83 * col1 col1 FROM tab2 AS cor0
----
1411
2573
4897

query I rowsort
SELECT ALL + - col0 * col0 * + cor0.col2 AS col0 FROM tab2 cor0
----
-1323
-158184
-237158

onlyif mysql # use DIV operator for integer division
query I rowsort label-4020
SELECT ALL + + col1 DIV cor0.col0 AS col0 FROM tab2 AS cor0
----
0
0
4

skipif mysql # not compatible
query I rowsort label-4020
SELECT ALL + + col1 / cor0.col0 AS col0 FROM tab2 AS cor0
----
0
0
4

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4021
SELECT ALL - CAST( NULL AS SIGNED ) * + col0 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4021
SELECT ALL - CAST ( NULL AS INTEGER ) * + col0 AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 + tab0.col2 * + col2 FROM tab0
----
0
1056
6642

query I rowsort
SELECT DISTINCT col0 - cor0.col2 * 45 AS col2 FROM tab0 AS cor0
----
-10
-1461
-3601

query I rowsort
SELECT ALL + 93 * col0 AS col0 FROM tab0 AS cor0
----
2232
3255
8277

onlyif mysql # use DIV operator for integer division
query I rowsort label-4025
SELECT ALL + + col1 * col2 DIV col1 FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-4025
SELECT ALL + + col1 * col2 / col1 FROM tab1 AS cor0
----
54
57
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-4026
SELECT DISTINCT + col0 DIV + col0 + - ( - 25 + col0 ) FROM tab2
----
-52
-53
19

skipif mysql # not compatible
query I rowsort label-4026
SELECT DISTINCT + col0 / + col0 + - ( - 25 + col0 ) FROM tab2
----
-52
-53
19

onlyif mysql # use DIV operator for integer division
query I rowsort label-4027
SELECT ALL + col1 * col2 DIV - 15 FROM tab0 AS cor0
----
-189
-497
-6

skipif mysql # not compatible
query I rowsort label-4027
SELECT ALL + col1 * col2 / - 15 FROM tab0 AS cor0
----
-189
-497
-6

query I rowsort
SELECT DISTINCT + - col1 + col1 * + 28 AS col2 FROM tab0 AS cor0
----
2322
2457
2619

query I rowsort
SELECT - col1 * col0 + 98 * - ( + col0 * - col1 ) + col0 * col1 AS col0 FROM tab0
----
202272
332710
793702

query I rowsort
SELECT - - col2 + col1 * col2 * col1 AS col0 FROM tab1 AS cor0
----
16320
36558
5757

query I rowsort
SELECT - + col0 + + col1 * - col2 AS col2 FROM tab2 AS cor0
----
-1612
-725
-844

query I rowsort
SELECT + + col0 * 57 + col2 AS col0 FROM tab2 AS cor0
----
426
4472
4541

query I rowsort
SELECT ALL - ( col2 ) * col1 * tab1.col2 AS col2 FROM tab1
----
-119808
-32490
-75816

query I rowsort
SELECT col1 + - col1 * col1 * col2 AS col1 FROM tab0
----
-243982
-678951
-9312

query I rowsort
SELECT DISTINCT col0 * - col1 * + col1 AS col0 FROM tab0
----
-177504
-329315
-737009

query I rowsort
SELECT DISTINCT col1 * ( 56 ) FROM tab0 AS cor0
----
4816
5096
5432

query I rowsort
SELECT + col1 + col1 * 86 - col0 * - col2 AS col2 FROM tab0 AS cor0
----
15215
8274
8474

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * - col2 col0 FROM tab1
----
-1248
-1404
-570

query I rowsort
SELECT + col1 * col2 + + col0 - col2 AS col2 FROM tab0 AS cor0
----
131
2829
7469

query I rowsort
SELECT DISTINCT + + col2 + - col0 * - ( + col1 ) FROM tab2 AS cor0
----
1381
244
4628

query I rowsort
SELECT + ( + cor0.col0 ) AS col2 FROM tab1, tab1 AS cor0 CROSS JOIN tab2
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 22 + + ( - cor0.col0 ) col2 FROM tab0 AS cor0
----
-13
-2
-67

query I rowsort
SELECT ALL - ( col2 ) + - col2 AS col0 FROM tab1 AS cor0
----
-108
-114
-192

query I rowsort
SELECT ALL 96 * - 43 FROM tab1 AS cor0
----
-4128
-4128
-4128

query I rowsort
SELECT ALL - 85 + cor0.col1 * + col0 + + 77 * + col2 FROM tab2 AS cor0
----
2211
4184
6519

query I rowsort
SELECT DISTINCT + - col0 + cor0.col0 FROM tab2 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab2.col0 col0 FROM tab2, tab0 AS cor0
----
7
78
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-4048
SELECT ( col2 ) DIV - col1 + col2 * - col1 AS col2 FROM tab1 AS cor0
----
-1255
-1406
-575

skipif mysql # not compatible
query I rowsort label-4048
SELECT ( col2 ) / - col1 + col2 * - col1 AS col2 FROM tab1 AS cor0
----
-1255
-1406
-575

query I rowsort
SELECT DISTINCT + - 7 * cor0.col0 + - ( + col1 ) FROM tab1 AS cor0
----
-458
-47
-573

onlyif mysql # use DIV operator for integer division
query I rowsort label-4050
SELECT ALL cor0.col2 DIV - col0 FROM tab2 AS cor0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-4050
SELECT ALL cor0.col2 / - col0 FROM tab2 AS cor0
----
-3
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4051
SELECT ALL 2 DIV tab2.col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4051
SELECT ALL 2 / tab2.col1 FROM tab2
----
0
0
0

query I rowsort
SELECT + 37 FROM tab2, tab2 cor0, tab0 AS cor1, tab0 AS cor2
----
81 values hashing to b8def841e97863779a391f3a05d3eb92

query I rowsort
SELECT 72 * - col2 FROM tab1 cor0
----
-3888
-4104
-6912

query I rowsort
SELECT DISTINCT + ( col1 ) * + col1 AS col1 FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT ALL - tab1.col2 * ( tab1.col0 ) FROM tab1
----
-162
-3648
-7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-4056
SELECT DISTINCT col2 DIV 47 AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4056
SELECT DISTINCT col2 / 47 AS col1 FROM tab2
----
0

query I rowsort
SELECT + 8 * - 60 + + cor0.col2 FROM tab0 AS cor0
----
-398
-447
-479

onlyif mysql # use DIV operator for integer division
query I rowsort label-4058
SELECT DISTINCT + col0 DIV col0 AS col1 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4058
SELECT DISTINCT + col0 / col0 AS col1 FROM tab1 AS cor0
----
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4059
SELECT ALL - CAST( + col0 AS SIGNED ) + col1 * 9 FROM tab2 AS cor0
----
272
453
74

skipif mysql # not compatible
query I rowsort label-4059
SELECT ALL - CAST ( + col0 AS INTEGER ) + col1 * 9 FROM tab2 AS cor0
----
272
453
74

query I rowsort
SELECT ( col0 ) * - cor0.col2 FROM tab0 AS cor0
----
-35
-7298
-792

skipif mysql # not compatible
query I rowsort
SELECT ALL - CAST ( 48 AS REAL ) * col0 * - 58 AS col2 FROM tab1 AS cor0
----
178176
222720
8352

query I rowsort
SELECT col2 + - 48 + + col0 FROM tab1 cor0
----
128
73
9

query I rowsort
SELECT - col0 * col0 * - col1 + tab0.col0 + - ( - col1 ) FROM tab0
----
118957
49646
720991

query I rowsort
SELECT + tab0.col0 + + col2 * + 99 FROM tab0
----
134
3291
8207

query I rowsort
SELECT col0 * - tab0.col2 AS col1 FROM tab0
----
-35
-7298
-792

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4066
SELECT DISTINCT + col2 * + CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4066
SELECT DISTINCT + col2 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT + 15 + col2 * + col2 AS col0 FROM tab2
----
1459
691
744

query I rowsort
SELECT + + col1 * 48 + col1 * ( col2 ) * - col2 FROM tab1 AS cor0
----
-119184
-32010
-74568

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * col1 + cor0.col2 col1 FROM tab0 AS cor0
----
-2031
-3394
-8017

query I rowsort
SELECT + + 70 AS col1 FROM tab0 cor0
----
70
70
70

query I rowsort
SELECT DISTINCT - 99 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
-99

query I rowsort
SELECT - - 89 + - col2 FROM tab0 AS cor0
----
56
7
88

onlyif mysql # use DIV operator for integer division
query I rowsort label-4073
SELECT + col2 + col2 DIV - 81 FROM tab0 AS cor0
----
1
33
81

skipif mysql # not compatible
query I rowsort label-4073
SELECT + col2 + col2 / - 81 FROM tab0 AS cor0
----
1
33
81

query I rowsort
SELECT DISTINCT + tab0.col1 * col1 * + col1 AS col1 FROM tab0
----
636056
753571
912673

query I rowsort
SELECT DISTINCT tab1.col0 + tab1.col0 AS col1 FROM tab1, tab1 cor0
----
128
160
6

onlyif mysql # use DIV operator for integer division
query I rowsort label-4076
SELECT + col2 DIV CAST( + col1 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4076
SELECT + col2 / CAST ( + col1 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4077
SELECT col2 + col1 DIV + col2 FROM tab0 AS cor0
----
35
83
98

skipif mysql # not compatible
query I rowsort label-4077
SELECT col2 + col1 / + col2 FROM tab0 AS cor0
----
35
83
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-4078
SELECT ALL + cor0.col1 * + 89 + + col1 DIV col0 FROM tab0 AS cor0
----
7657
8100
8635

skipif mysql # not compatible
query I rowsort label-4078
SELECT ALL + cor0.col1 * + 89 + + col1 / col0 FROM tab0 AS cor0
----
7657
8100
8635

onlyif mysql # use DIV operator for integer division
query I rowsort label-4079
SELECT DISTINCT + + col0 - col0 DIV col0 col1 FROM tab2 AS cor0
----
6
77
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4079
SELECT DISTINCT + + col0 - col0 / col0 col1 FROM tab2 AS cor0
----
6
77
78

query I rowsort
SELECT DISTINCT - col2 * col1 * col1 + col0 FROM tab1 AS cor0
----
-16144
-36501
-5636

query I rowsort
SELECT ALL - col1 + 29 AS col0 FROM tab2 AS cor0
----
-2
-30
12

query I rowsort
SELECT ALL + - col0 + - 3 FROM tab0 cor0
----
-27
-38
-92

query I rowsort
SELECT - col2 + + 77 FROM tab2 AS cor0
----
39
50
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + cor0.col0 col1 FROM tab0 AS cor0
----
24
35
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 14 col1 FROM tab0, tab1 AS cor0
----
14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + col1 ) * + col1 + col0 + col0 * - col2 * - col1 col1 FROM tab2 AS cor0
----
116249
4905
50824

query I rowsort
SELECT ALL + + 49 * col1 FROM tab2 AS cor0
----
1519
2891
833

query I rowsort
SELECT 54 FROM tab0, tab0 cor0
----
9 values hashing to d2364c4ffc09ac2cf1f6fa4d767d8b09

query I rowsort
SELECT DISTINCT 45 * ( + col1 ) AS col0 FROM tab2 AS cor0
----
1395
2655
765

query I rowsort
SELECT ALL ( col1 ) * cor0.col1 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT DISTINCT col1 * 22 AS col0 FROM tab2 AS cor0
----
1298
374
682

onlyif mysql # use DIV operator for integer division
query I rowsort label-4092
SELECT DISTINCT - 90 DIV - cor0.col0 AS col2 FROM tab2, tab1 AS cor0
----
1
30

skipif mysql # not compatible
query I rowsort label-4092
SELECT DISTINCT - 90 / - cor0.col0 AS col2 FROM tab2, tab1 AS cor0
----
1
30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 - tab2.col0 col0 FROM tab2
----
-19
-62
24

query I rowsort
SELECT + 59 + col1 + + col1 FROM tab2 AS cor0
----
121
177
93

query I rowsort
SELECT ALL col0 + + col1 - + col1 AS col2 FROM tab2
----
7
78
79

query I rowsort
SELECT ALL - 27 * + col2 AS col1 FROM tab2 AS cor0
----
-1026
-702
-729

query I rowsort
SELECT ALL - - col2 * cor0.col2 AS col2 FROM tab2 cor0
----
1444
676
729

query I rowsort
SELECT DISTINCT - 20 * - cor0.col2 AS col2 FROM tab2 AS cor0
----
520
540
760

query I rowsort
SELECT + 66 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 29794915b585eea848ad670075452c88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 70 col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 35707a5d99c98b2657c084a50ff1b073

query I rowsort
SELECT DISTINCT 71 + col2 FROM tab0 AS cor0
----
104
153
72

query I rowsort
SELECT - 24 - - col0 AS col2 FROM tab0
----
0
11
65

query I rowsort
SELECT DISTINCT - col1 + 3 FROM tab0 cor0
----
-83
-88
-94

query I rowsort
SELECT DISTINCT col1 - 37 AS col0 FROM tab2 AS cor0
----
-20
-6
22

query I rowsort
SELECT ( - col2 * - col0 ) AS col1 FROM tab1
----
162
3648
7680

query I rowsort
SELECT 19 + col1 FROM tab1
----
29
32
45

query I rowsort
SELECT ALL ( + tab1.col0 * ( 90 ) ) AS col0 FROM tab1
----
270
5760
7200

query I rowsort
SELECT col1 - - col1 * - col1 AS col0 FROM tab1
----
-156
-650
-90

query I rowsort
SELECT ALL + col2 * col2 + + col1 + col1 AS col2 FROM tab1
----
2968
3269
9242

query I rowsort
SELECT - ( + col0 ) + - 48 FROM tab1 AS cor0
----
-112
-128
-51

query I rowsort
SELECT + col2 * + ( col1 ) * col2 AS col2 FROM tab1 AS cor0
----
119808
32490
75816

query I rowsort
SELECT DISTINCT col0 + col2 * cor0.col2 FROM tab0 AS cor0
----
1113
36
6813

query I rowsort
SELECT DISTINCT 52 * - col0 AS col1 FROM tab1
----
-156
-3328
-4160

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col1 ) * 69 + col1 - col0 col2 FROM tab2 AS cor0
----
1111
2163
4052

onlyif mysql # use DIV operator for integer division
query I rowsort label-4115
SELECT DISTINCT tab1.col0 * col0 DIV CAST( + col2 AS SIGNED ) FROM tab1
----
0
66
71

skipif mysql # not compatible
query I rowsort label-4115
SELECT DISTINCT tab1.col0 * col0 / CAST ( + col2 AS INTEGER ) FROM tab1
----
0
66
71

query I rowsort
SELECT - cor0.col0 + cor1.col2 FROM tab2, tab2 cor0, tab0 AS cor1
----
27 values hashing to 927bd78ab61aa38e103e2033cac2cd3b

onlyif mysql # use DIV operator for integer division
query I rowsort label-4117
SELECT DISTINCT - col0 * - col1 DIV + cor0.col1 + col1 + + cor0.col0 FROM tab1 AS cor0
----
138
173
32

skipif mysql # not compatible
query I rowsort label-4117
SELECT DISTINCT - col0 * - col1 / + cor0.col1 + col1 + + cor0.col0 FROM tab1 AS cor0
----
138
173
32

query I rowsort
SELECT col0 + col2 * 92 - - cor0.col2 * + cor0.col0 FROM tab0 AS cor0
----
14931
162
3852

query I rowsort
SELECT + + cor0.col2 + col2 * 32 AS col2 FROM tab1 AS cor0
----
1782
1881
3168

onlyif mysql # use DIV operator for integer division
query I rowsort label-4120
SELECT - col2 * cor0.col1 DIV 70 - col0 FROM tab0 AS cor0
----
-195
-36
-64

skipif mysql # not compatible
query I rowsort label-4120
SELECT - col2 * cor0.col1 / 70 - col0 FROM tab0 AS cor0
----
-195
-36
-64

query I rowsort
SELECT - tab2.col1 * 56 + + col0 FROM tab2
----
-1729
-3226
-873

query I rowsort
SELECT DISTINCT + col2 * - col1 + + col2 * + col0 FROM tab2 AS cor0
----
-648
2356
494

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - cor0.col2 * - 30 col2 FROM tab2 AS cor0
----
-1140
-780
-810

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - 68 col0 FROM tab0 AS cor0
----
-5848
-6188
-6596

query I rowsort
SELECT ALL + col2 * 76 AS col1 FROM tab0 AS cor0
----
2508
6232
76

query I rowsort
SELECT ALL + ( + cor0.col0 ) * col1 FROM tab0 cor0
----
2064
3395
8099

query I rowsort
SELECT ALL - + col1 + 23 + - col0 FROM tab0 AS cor0
----
-109
-157
-87

query I rowsort
SELECT - + col0 * col1 + - col0 AS col1 FROM tab0 AS cor0
----
-2088
-3430
-8188

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4129
SELECT DISTINCT - col1 * - col0 + - col1 * - CAST( - col1 * - cor0.col0 + + col0 AS SIGNED ) FROM tab0 AS cor0
----
181632
336105
753207

skipif mysql # not compatible
query I rowsort label-4129
SELECT DISTINCT - col1 * - col0 + - col1 * - CAST ( - col1 * - cor0.col0 + + col0 AS INTEGER ) FROM tab0 AS cor0
----
181632
336105
753207

query I rowsort
SELECT DISTINCT + ( ( - col1 ) ) * + col0 + col2 FROM tab0 AS cor0
----
-2031
-3394
-8017

onlyif mysql # use DIV operator for integer division
query I rowsort label-4131
SELECT ALL + cor0.col0 DIV col1 AS col2 FROM tab2 AS cor0
----
0
1
4

skipif mysql # not compatible
query I rowsort label-4131
SELECT ALL + cor0.col0 / col1 AS col2 FROM tab2 AS cor0
----
0
1
4

query I rowsort
SELECT DISTINCT 40 * - col2 AS col2 FROM tab2 AS cor0
----
-1040
-1080
-1520

query I rowsort
SELECT - ( + col0 ) + + col1 FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT 42 * col2 FROM tab1 AS cor0
----
2268
2394
4032

query I rowsort
SELECT ALL 44 * col2 + col1 FROM tab1 AS cor0
----
2402
2518
4237

query I rowsort
SELECT ALL 61 * - cor0.col1 + + col0 FROM tab0 AS cor0
----
-5222
-5462
-5882

query I rowsort
SELECT + + ( + 7 ) * col0 FROM tab0 AS cor0
----
168
245
623

onlyif mysql # use DIV operator for integer division
query I rowsort label-4138
SELECT ALL col0 DIV - ( col1 + - col0 ) AS col0 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-4138
SELECT ALL col0 / - ( col1 + - col0 ) AS col0 FROM tab1
----
0
1
1

query I rowsort
SELECT - - 75 + + col1 FROM tab2 AS cor0
----
106
134
92

query I rowsort
SELECT - ( col2 ) + col0 * col2 AS col1 FROM tab2 cor0
----
162
2002
2964

query I rowsort
SELECT DISTINCT + + 40 * + 80 FROM tab1 AS cor0
----
3200

query I rowsort
SELECT + - col0 * - col1 + - col2 AS col2 FROM tab0 AS cor0
----
2031
3394
8017

query I rowsort
SELECT - 73 + cor0.col1 FROM tab0, tab2 cor0
----
9 values hashing to e9ccd2306672b41e6000dbba36edd748

query I rowsort
SELECT ( col1 ) * - 43 FROM tab1 AS cor0
----
-1118
-430
-559

query I rowsort
SELECT ( 64 + col1 ) AS col1 FROM tab0
----
150
155
161

query I rowsort
SELECT 23 * + col1 FROM tab2 AS cor0
----
1357
391
713

query I rowsort
SELECT + 84 + - col0 * - cor0.col0 FROM tab2 AS cor0
----
133
6168
6325

onlyif mysql # use DIV operator for integer division
query I rowsort label-4148
SELECT DISTINCT 77 DIV col2 AS col2 FROM tab0
----
0
2
77

skipif mysql # not compatible
query I rowsort label-4148
SELECT DISTINCT 77 / col2 AS col2 FROM tab0
----
0
2
77

query I rowsort
SELECT + + col1 * 79 AS col1 FROM tab2 AS cor0
----
1343
2449
4661

query I rowsort
SELECT + + col0 + 45 AS col2 FROM tab1 AS cor0
----
109
125
48

query I rowsort
SELECT col2 * - 9 * - 67 AS col0 FROM tab1 cor0
----
32562
34371
57888

query I rowsort
SELECT - col2 * 90 FROM tab1 AS cor0
----
-4860
-5130
-8640

query I rowsort
SELECT - col1 + ( 78 ) FROM tab1 cor0
----
52
65
68

query I rowsort
SELECT + col0 * + ( 97 ) * cor0.col1 FROM tab2 AS cor0
----
130271
21049
446394

query I rowsort
SELECT ALL + 0 * - col2 * col0 + tab0.col1 FROM tab0
----
86
91
97

query I rowsort
SELECT DISTINCT ( col2 ) + - col2 * col1 FROM tab0
----
-2805
-7380
-96

query I rowsort
SELECT ALL ( col2 ) + + 24 FROM tab0
----
106
25
57

query I rowsort
SELECT ALL 86 * tab1.col1 AS col1 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 4f21fc32bb8f8c72c1140bd6292aac09

query I rowsort
SELECT DISTINCT - cor0.col0 + cor1.col1 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 58b70711d07101b247f36e81fc4d5ce1

query I rowsort
SELECT ALL cor0.col0 + + 59 FROM tab1 AS cor0
----
123
139
62

query I rowsort
SELECT DISTINCT - col2 * col1 - 68 FROM tab2 AS cor0
----
-1602
-714
-905

onlyif mysql # use DIV operator for integer division
query I rowsort label-4162
SELECT ALL + + col2 + col0 + - col2 DIV col2 FROM tab0 AS cor0
----
170
35
56

skipif mysql # not compatible
query I rowsort label-4162
SELECT ALL + + col2 + col0 + - col2 / col2 FROM tab0 AS cor0
----
170
35
56

query I rowsort
SELECT DISTINCT + cor0.col0 + - col1 AS col2 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT DISTINCT + col2 * cor0.col0 - col1 * - col1 FROM tab1 AS cor0
----
3748
7849
838

onlyif mysql # use DIV operator for integer division
query I rowsort label-4165
SELECT - col0 DIV ( col0 * col1 ) FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4165
SELECT - col0 / ( col0 * col1 ) FROM tab1 cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4166
SELECT + col1 * col2 + + cor0.col0 DIV - col2 - col0 AS col2 FROM tab0 AS cor0
----
27
2814
7372

skipif mysql # not compatible
query I rowsort label-4166
SELECT + col1 * col2 + + cor0.col0 / - col2 - col0 AS col2 FROM tab0 AS cor0
----
27
2814
7372

query I rowsort
SELECT ALL - col1 * - col0 + + 75 * col1 FROM tab1 AS cor0
----
1390
2015
2028

query I rowsort
SELECT + - col0 * - 20 FROM tab0 cor0
----
1780
480
700

query I rowsort
SELECT ALL + cor0.col2 - col0 * + 33 * col1 AS col2 FROM tab1 cor0
----
-21063
-2520
-34224

query I rowsort
SELECT col0 - col1 * 95 FROM tab0 cor0
----
-8146
-8556
-9180

query I rowsort
SELECT - col1 + 52 FROM tab0 AS cor0
----
-34
-39
-45

query I rowsort
SELECT - col1 + col2 - 2 * col1 * + col2 FROM tab0 AS cor0
----
-14933
-290
-5729

query I rowsort
SELECT + + col1 * + ( ( + cor0.col0 ) + col2 ) AS col0 FROM tab1 AS cor0
----
1210
1482
2288

query I rowsort
SELECT ALL col2 + ( - cor0.col2 + + col1 ) FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT - cor0.col0 + + 77 AS col0 FROM tab2 cor0
----
-1
-2
70

query I rowsort
SELECT + col2 * - col1 + - 11 FROM tab0 cor0
----
-108
-2849
-7473

query I rowsort
SELECT col1 * + 67 AS col2 FROM tab1 AS cor0
----
1742
670
871

query I rowsort
SELECT col0 * + 11 + col0 FROM tab2 cor0
----
84
936
948

query I rowsort
SELECT ALL col1 * - 17 - col2 AS col1 FROM tab1
----
-227
-317
-496

onlyif mysql # use DIV operator for integer division
query I rowsort label-4180
SELECT + col2 DIV - 74 + 17 FROM tab1
----
16
17
17

skipif mysql # not compatible
query I rowsort label-4180
SELECT + col2 / - 74 + 17 FROM tab1
----
16
17
17

query I rowsort
SELECT - 37 FROM tab1 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab1 AS cor2, tab1 AS cor3
----
243 values hashing to 09f8bcde9a772dfc9be53a0fd82c4934

query I rowsort
SELECT ALL + col0 * - ( col2 ) * - tab1.col1 + + col2 * - col1 AS col0 FROM tab1
----
2808
35910
98592

onlyif mysql # use DIV operator for integer division
query I rowsort label-4183
SELECT - col2 + col0 DIV col0 FROM tab0
----
-32
-81
0

skipif mysql # not compatible
query I rowsort label-4183
SELECT - col2 + col0 / col0 FROM tab0
----
-32
-81
0

query I rowsort
SELECT ALL + col1 * col0 + tab1.col2 AS col0 FROM tab1
----
1136
132
697

query I rowsort
SELECT - - 57 AS col2 FROM tab1 cor0
----
57
57
57

query I rowsort
SELECT + col0 * col2 AS col2 FROM tab0 WHERE NOT ( - col0 * col0 ) = - col1 + col2
----
35
7298
792

query I rowsort
SELECT ALL + col2 - - col2 AS col1 FROM tab0
----
164
2
66

query I rowsort
SELECT 51 FROM tab0, tab0 AS cor0, tab2 AS cor1, tab2 AS cor2
----
81 values hashing to c9771396949659773ab2fa2a1ac228de

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1 AS cor0, tab2 cor1, tab2, tab0 AS cor2
----
3645 values hashing to e6082e644debd74dcf1042b918d79199

query I rowsort
SELECT + col0 * col1 + + cor0.col0 AS col1 FROM tab0 AS cor0
----
2088
3430
8188

query I rowsort
SELECT - - col2 * + col1 * + col2 FROM tab2 AS cor0
----
22599
24548
39884

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab1.col0 col0 FROM tab1, tab1 AS cor0, tab1 cor1
----
-3
-64
-80

onlyif mysql # use DIV operator for integer division
query I rowsort label-4193
SELECT - 31 DIV - col0 AS col1 FROM tab2 cor0
----
0
0
4

skipif mysql # not compatible
query I rowsort label-4193
SELECT - 31 / - col0 AS col1 FROM tab2 cor0
----
0
0
4

query I rowsort
SELECT - + col1 * - col2 AS col0 FROM tab2 cor0
----
1534
646
837

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * + col0 col1 FROM tab1
----
4096
6400
9

query I rowsort
SELECT ALL - - col0 + ( col2 ) FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT ALL + + col1 * - cor0.col0 + - col2 FROM tab0 AS cor0
----
-2097
-3396
-8181

onlyif mysql # use DIV operator for integer division
query I rowsort label-4198
SELECT - col1 DIV + col0 AS col0 FROM tab2 cor0
----
-4
0
0

skipif mysql # not compatible
query I rowsort label-4198
SELECT - col1 / + col0 AS col0 FROM tab2 cor0
----
-4
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4199
SELECT + + col0 + + col2 DIV col2 AS col1 FROM tab0 AS cor0
----
25
36
90

skipif mysql # not compatible
query I rowsort label-4199
SELECT + + col0 + + col2 / col2 AS col1 FROM tab0 AS cor0
----
25
36
90

query I rowsort
SELECT + col1 * + col2 + - cor0.col0 AS col1 FROM tab1 AS cor0
----
1168
1401
506

query I rowsort
SELECT ( col1 ) * - cor0.col2 AS col2 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT ALL - col2 + ( + col2 ) FROM tab1
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4203
SELECT ALL col0 + 48 DIV col2 AS col0 FROM tab1
----
3
64
80

skipif mysql # not compatible
query I rowsort label-4203
SELECT ALL col0 + 48 / col2 AS col0 FROM tab1
----
3
64
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-4204
SELECT ALL 62 * tab2.col2 DIV + col1 + + col2 AS col1 FROM tab2
----
176
53
81

skipif mysql # not compatible
query I rowsort label-4204
SELECT ALL 62 * tab2.col2 / + col1 + + col2 AS col1 FROM tab2
----
176
53
81

query I rowsort
SELECT + ( col0 ) * col0 + 68 FROM tab2 cor0
----
117
6152
6309

onlyif mysql # use DIV operator for integer division
query I rowsort label-4206
SELECT + 0 + col1 DIV col1 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4206
SELECT + 0 + col1 / col1 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT + col2 + + ( col2 ) FROM tab0 AS cor0
----
164
2
66

onlyif mysql # use DIV operator for integer division
query I rowsort label-4208
SELECT - cor1.col2 DIV - 60 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 953562d3ce2a62a1679a1ae0451294c6

skipif mysql # not compatible
query I rowsort label-4208
SELECT - cor1.col2 / - 60 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 953562d3ce2a62a1679a1ae0451294c6

query I rowsort
SELECT ALL - 13 * col0 FROM tab1 cor0
----
-1040
-39
-832

query I rowsort
SELECT DISTINCT - - 73 - - col2 * + col2 AS col2 FROM tab1 cor0
----
2989
3322
9289

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col2 + col1 col2 FROM tab2 AS cor0
----
-21
33
4

query I rowsort
SELECT ALL 48 + + col0 * + ( - cor0.col0 ) FROM tab1 cor0
----
-4048
-6352
39

query I rowsort
SELECT ALL - col1 * + col1 + ( col0 ) + - cor0.col0 AS col1 FROM tab2 AS cor0
----
-289
-3481
-961

query I rowsort
SELECT DISTINCT + + 2 * + col0 FROM tab1 cor0
----
128
160
6

query I rowsort
SELECT DISTINCT + + 63 * col0 FROM tab1 AS cor0
----
189
4032
5040

query I rowsort
SELECT ALL - + col1 * col0 + - col1 AS col0 FROM tab2 AS cor0
----
-1360
-248
-4661

query I rowsort
SELECT ALL - col0 + + col0 * 59 AS col0 FROM tab2 AS cor0
----
406
4524
4582

query I rowsort
SELECT ( cor0.col1 * + 77 ) AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 2ccd04658f10b0222c7967b3123db10b

query I rowsort
SELECT ALL ( + 8 ) + col0 AS col0 FROM tab1
----
11
72
88

onlyif mysql # use DIV operator for integer division
query I rowsort label-4220
SELECT DISTINCT - col1 DIV - col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4220
SELECT DISTINCT - col1 / - col2 FROM tab1
----
0

query I rowsort
SELECT 58 * col2 + col2 FROM tab0
----
1947
4838
59

query I rowsort
SELECT DISTINCT cor0.col2 AS col0 FROM tab1, tab0, tab1 AS cor0
----
54
57
96

query I rowsort
SELECT col2 * col1 + tab1.col0 * - col2 FROM tab1
----
-3078
-6432
1242

query I rowsort
SELECT ALL tab2.col2 + 90 * + tab2.col2 FROM tab2
----
2366
2457
3458

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4225
SELECT ALL - CAST( NULL AS SIGNED ) + + tab0.col0 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4225
SELECT ALL - CAST ( NULL AS INTEGER ) + + tab0.col0 AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col1 + 42 AS col2 FROM tab0
----
-44
-49
-55

query I rowsort
SELECT ALL + ( col2 ) + col1 AS col2 FROM tab2
----
55
58
85

query I rowsort
SELECT DISTINCT 71 + - tab2.col1 * + col0 + - col2 FROM tab2
----
-1310
-173
-4557

query I rowsort
SELECT - col0 * + col0 * col0 - + col2 AS col1 FROM tab0
----
-13857
-42876
-705051

query I rowsort
SELECT ALL - 46 * ( - col2 * col0 ) AS col2 FROM tab2
----
138092
8694
93288

onlyif mysql # use DIV operator for integer division
query I rowsort label-4231
SELECT DISTINCT - - 80 + + 34 DIV col0 AS col1 FROM tab0 cor0
----
80
81

skipif mysql # not compatible
query I rowsort label-4231
SELECT DISTINCT - - 80 + + 34 / col0 AS col1 FROM tab0 cor0
----
80
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + 24 + + col1 col0 FROM tab2
----
109
79
82

query I rowsort
SELECT tab1.col2 AS col2 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

onlyif mysql # use DIV operator for integer division
query I rowsort label-4234
SELECT col0 + 4 DIV col1 FROM tab2
----
7
78
79

skipif mysql # not compatible
query I rowsort label-4234
SELECT col0 + 4 / col1 FROM tab2
----
7
78
79

query I rowsort
SELECT + 77 * col2 AS col2 FROM tab0 AS cor0
----
2541
6314
77

query I rowsort
SELECT ALL - cor0.col0 + - col1 FROM tab1 AS cor0
----
-29
-74
-93

query I rowsort
SELECT ALL + + 54 * - cor0.col1 + - col1 FROM tab0 cor0
----
-4730
-5005
-5335

query I rowsort
SELECT col0 * - col2 * col1 FROM tab2 AS cor0
----
-119652
-51034
-5859

query I rowsort
SELECT + 47 * col0 + - col1 AS col2 FROM tab2 AS cor0
----
298
3607
3696

query I rowsort
SELECT ALL + 79 * - col1 * - cor0.col1 AS col2 FROM tab0 AS cor0
----
584284
654199
743311

query I rowsort
SELECT ALL + 64 * - col2 FROM tab2 AS cor0
----
-1664
-1728
-2432

query I rowsort
SELECT - - col1 * + col2 * col0 AS col1 FROM tab0 cor0
----
3395
664118
68112

query I rowsort
SELECT DISTINCT 26 + - cor0.col2 * + col1 FROM tab0 AS cor0
----
-2812
-71
-7436

query I rowsort
SELECT - col0 + col0 * + col0 FROM tab2 cor0
----
42
6006
6162

query I rowsort
SELECT DISTINCT - + 53 + - col1 AS col2 FROM tab2 AS cor0
----
-112
-70
-84

query I rowsort
SELECT DISTINCT - col0 * + col0 + - cor0.col0 AS col2 FROM tab1 cor0
----
-12
-4160
-6480

query I rowsort
SELECT col2 * + tab2.col2 AS col0 FROM tab2 WHERE NULL <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - col2 + - tab2.col0 col0 FROM tab2
----
-1612
-725
-844

query I rowsort
SELECT + col2 * - col1 * col0 - col1 * + col1 FROM tab0
----
-12804
-672399
-75508

query I rowsort
SELECT col2 + col1 * tab1.col1 FROM tab1
----
157
265
730

query I rowsort
SELECT col2 * col1 - tab1.col1 * + col2 AS col0 FROM tab1
----
0
0
0

query I rowsort
SELECT col2 * col1 * - col1 - col2 * + col1 AS col1 FROM tab0
----
-246906
-686504
-9506

query I rowsort
SELECT DISTINCT - col1 + col2 * col1 * col2 FROM tab0
----
0
611793
93568

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab2.col2 * col2 col2 FROM tab2
----
1444
676
729

query I rowsort
SELECT + col2 + col1 + col2 FROM tab1
----
124
134
205

query I rowsort
SELECT + tab1.col0 * tab1.col1 FROM tab1 WHERE NULL IN ( tab1.col0 / tab1.col1 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - col2 BETWEEN col1 AND NULL
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col0 + col0 * - tab2.col2 col2 FROM tab2
----
-182
-1950
-2923

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab0.col0 + - tab0.col0 col2 FROM tab0
----
0
0
0

query I rowsort
SELECT - col0 * col1 + col2 AS col2 FROM tab1
----
-24
-583
-944

query I rowsort
SELECT + col1 * - col1 * - col1 AS col1 FROM tab0 WHERE NULL IN ( col1 )
----

query I rowsort
SELECT DISTINCT + col2 FROM tab0 WHERE col2 / + col2 NOT BETWEEN - col1 AND NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-4263
SELECT - col0 + - col1 DIV tab1.col1 + tab1.col2 AS col0 FROM tab1
----
-8
15
50

skipif mysql # not compatible
query I rowsort label-4263
SELECT - col0 + - col1 / tab1.col1 + tab1.col2 AS col0 FROM tab1
----
-8
15
50

query I rowsort
SELECT DISTINCT + cor0.col0 * col1 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( - col2 + - col0 / + col1 ) OR NULL > NULL
----

query I rowsort
SELECT DISTINCT + col1 * + col2 * + col2 FROM tab0 cor0
----
611884
93654
97

query I rowsort
SELECT col2 + + col0 - col0 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT + col0 - cor0.col0 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT ALL + col0 + + col0 * col1 + col0 AS col2 FROM tab0 AS cor0
----
2112
3465
8277

onlyif mysql # use DIV operator for integer division
query I rowsort label-4269
SELECT DISTINCT col0 DIV col1 - col2 * col0 AS col0 FROM tab1 cor0
----
-162
-3642
-7674

skipif mysql # not compatible
query I rowsort label-4269
SELECT DISTINCT col0 / col1 - col2 * col0 AS col0 FROM tab1 cor0
----
-162
-3642
-7674

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + + col2 col0 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT - col2 * col1 + + cor0.col0 FROM tab0 AS cor0
----
-2814
-62
-7373

onlyif mysql # use DIV operator for integer division
query I rowsort label-4272
SELECT ALL - col1 DIV - col1 - col2 AS col1 FROM tab1
----
-53
-56
-95

skipif mysql # not compatible
query I rowsort label-4272
SELECT ALL - col1 / - col1 - col2 AS col1 FROM tab1
----
-53
-56
-95

onlyif mysql # use DIV operator for integer division
query I rowsort label-4273
SELECT DISTINCT col0 DIV - col1 - col1 * - tab2.col1 FROM tab2
----
285
3480
961

skipif mysql # not compatible
query I rowsort label-4273
SELECT DISTINCT col0 / - col1 - col1 * - tab2.col1 FROM tab2
----
285
3480
961

query I rowsort
SELECT + col1 * col2 + + cor0.col2 FROM tab2 AS cor0
----
1560
684
864

query I rowsort
SELECT ALL - col0 * col0 + + col2 AS col2 FROM tab1
----
-4039
-6304
45

query I rowsort
SELECT + col1 * col0 * + col0 FROM tab0
----
118825
49536
720811

query I rowsort
SELECT + col1 / col2 - - col1 AS col1 FROM tab1 WHERE NOT NULL NOT IN ( col2 + tab1.col2 - + col0 / - col1 )
----

query I rowsort
SELECT + tab1.col2 + - tab1.col2 * col2 + col2 FROM tab1
----
-2808
-3135
-9024

query I rowsort
SELECT DISTINCT - + cor0.col1 * ( col0 ) + col0 + + 28 FROM tab1 AS cor0
----
-47
-548
-932

query I rowsort
SELECT DISTINCT col2 + ( col2 ) * 81 + cor0.col2 FROM tab0 AS cor0
----
2739
6806
83

query I rowsort
SELECT cor0.col2 AS col1 FROM tab0, tab1 cor0, tab2 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

onlyif mysql # use DIV operator for integer division
query I rowsort label-4282
SELECT + 1 DIV + col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4282
SELECT + 1 / + col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - col1 * + cor0.col2 AS col2 FROM tab0 AS cor0
----
-2838
-7462
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 + - col0 col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT cor0.col0 + - col2 FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT DISTINCT - - 31 * - col1 AS col1 FROM tab2 AS cor0
----
-1829
-527
-961

onlyif mysql # use DIV operator for integer division
query I rowsort label-4287
SELECT ALL - col2 DIV - col2 + col1 FROM tab0 AS cor0
----
87
92
98

skipif mysql # not compatible
query I rowsort label-4287
SELECT ALL - col2 / - col2 + col1 FROM tab0 AS cor0
----
87
92
98

query I rowsort
SELECT ALL - ( + col1 ) * + col1 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT 11 * col1 - + col1 * col0 AS col1 FROM tab0 AS cor0
----
-1118
-2328
-7098

query I rowsort
SELECT + 85 + + col1 * ( col2 ) FROM tab1 AS cor0
----
1333
1489
655

query I rowsort
SELECT ALL + - 30 FROM tab2 AS cor0
----
-30
-30
-30

onlyif mysql # use DIV operator for integer division
query I rowsort label-4292
SELECT - 30 DIV col2 + - col1 FROM tab0 AS cor0
----
-127
-86
-91

skipif mysql # not compatible
query I rowsort label-4292
SELECT - 30 / col2 + - col1 FROM tab0 AS cor0
----
-127
-86
-91

query I rowsort
SELECT DISTINCT 33 AS col0 FROM tab0 cor0
----
33

query I rowsort
SELECT ALL 65 * col2 + col2 AS col1 FROM tab0 AS cor0
----
2178
5412
66

query I rowsort
SELECT ALL - col2 * 3 AS col1 FROM tab0
----
-246
-3
-99

query I rowsort
SELECT ALL 12 * - col0 AS col1 FROM tab0 AS cor0
----
-1068
-288
-420

query I rowsort
SELECT DISTINCT + col2 * col2 + ( - cor0.col1 ) * cor0.col2 AS col0 FROM tab2 AS cor0
----
-108
-858
798

query I rowsort
SELECT - - col2 + 23 FROM tab2 AS cor0
----
49
50
61

query I rowsort
SELECT + - cor0.col1 + 26 AS col2 FROM tab1 AS cor0
----
0
13
16

query I rowsort
SELECT - - col2 + 31 * + col0 FROM tab0 AS cor0
----
1086
2841
777

query I rowsort
SELECT ALL + + col1 * + cor0.col2 + col0 FROM tab2 AS cor0
----
1612
725
844

query I rowsort
SELECT ALL + - col0 * + 38 FROM tab2 AS cor0
----
-266
-2964
-3002

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4303
SELECT - - col1 + CAST( - 13 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
18
4
46

skipif mysql # not compatible
query I rowsort label-4303
SELECT - - col1 + CAST ( - 13 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
18
4
46

query I rowsort
SELECT - 68 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 5febf382d36d6e0191889c41b928786f

onlyif mysql # use DIV operator for integer division
query I rowsort label-4305
SELECT ALL col0 * + col1 + + col1 DIV col0 + col2 * col1 AS col0 FROM tab0 AS cor0
----
15562
3494
4905

skipif mysql # not compatible
query I rowsort label-4305
SELECT ALL col0 * + col1 + + col1 / col0 + col2 * col1 AS col0 FROM tab0 AS cor0
----
15562
3494
4905

onlyif mysql # use DIV operator for integer division
query I rowsort label-4306
SELECT ALL + col0 + - cor0.col2 DIV + col1 FROM tab1 AS cor0
----
1
59
73

skipif mysql # not compatible
query I rowsort label-4306
SELECT ALL + col0 + - cor0.col2 / + col1 FROM tab1 AS cor0
----
1
59
73

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - CAST ( 6 AS REAL ) FROM tab2 AS cor0
----
-6

query I rowsort
SELECT ALL - - 55 + cor0.col0 * col2 * + ( - cor0.col2 ) AS col1 FROM tab1 AS cor0
----
-207881
-737225
-8693

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4309
SELECT DISTINCT - CAST( NULL AS SIGNED ) + 49 / - col1 - - ( cor0.col1 ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4309
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + 49 / - col1 - - ( cor0.col1 ) AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL + + 14 * col2 FROM tab1 AS cor0
----
1344
756
798

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4311
SELECT DISTINCT - + ( 31 ) * col2 + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4311
SELECT DISTINCT - + ( 31 ) * col2 + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - + col0 * col2 * + col0 AS col0 FROM tab0 AS cor0
----
-1225
-19008
-649522

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4313
SELECT ALL - + CAST( - col2 AS SIGNED ) + col2 FROM tab1 AS cor0
----
108
114
192

skipif mysql # not compatible
query I rowsort label-4313
SELECT ALL - + CAST ( - col2 AS INTEGER ) + col2 FROM tab1 AS cor0
----
108
114
192

query I rowsort
SELECT col2 * + 26 FROM tab2
----
676
702
988

query I rowsort
SELECT ALL - col2 + ( + col2 ) AS col1 FROM tab1
----
0
0
0

query I rowsort
SELECT + tab1.col0 * + 79 * col0 FROM tab1
----
323584
505600
711

query I rowsort
SELECT - col2 * - col1 + col2 * col1 * - 15 AS col1 FROM tab2
----
-11718
-21476
-9044

query I rowsort
SELECT col2 - - 7 FROM tab1
----
103
61
64

onlyif mysql # use DIV operator for integer division
query I rowsort label-4319
SELECT DISTINCT col1 + tab1.col1 * col1 DIV - col1 AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4319
SELECT DISTINCT col1 + tab1.col1 * col1 / - col1 AS col0 FROM tab1
----
0

query I rowsort
SELECT + 49 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to cb40783c0fff72e8802cdf0682e7cb55

query I rowsort
SELECT ALL col0 * - col0 * - col0 + col1 AS col2 FROM tab0
----
13910
42972
705060

query I rowsort
SELECT ALL 39 AS col2 FROM tab2
----
39
39
39

query I rowsort
SELECT ALL + ( - col1 ) + - col2 FROM tab2 AS cor0
----
-55
-58
-85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 54 * + col0 + col1 - + col1 col0 FROM tab1 AS cor0
----
-162
-3456
-4320

query I rowsort
SELECT 32 * col0 + col1 FROM tab2 AS cor0
----
2545
255
2555

onlyif mysql # use DIV operator for integer division
query I rowsort label-4326
SELECT ALL - cor0.col0 DIV + 94 + - col2 + + CAST( - col1 AS SIGNED ) FROM tab2 cor0
----
-55
-58
-85

skipif mysql # not compatible
query I rowsort label-4326
SELECT ALL - cor0.col0 / + 94 + - col2 + + CAST ( - col1 AS INTEGER ) FROM tab2 cor0
----
-55
-58
-85

query IIIIIIIII rowsort
SELECT ALL * FROM tab1, tab2 AS cor0 CROSS JOIN tab2 cor1
----
243 values hashing to 042fa16c43ab365359ee93c064e44127

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4328
SELECT ALL + + CAST( NULL AS SIGNED ) + + col0 * col0 + 71 * + col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4328
SELECT ALL + + CAST ( NULL AS INTEGER ) + + col0 * col0 + 71 * + col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 * 30 + - col2 + cor0.col0 FROM tab0 AS cor0
----
1084
2677
711

query I rowsort
SELECT + ( + tab0.col2 ) * + 70 AS col2 FROM tab0
----
2310
5740
70

query I rowsort
SELECT - + 53 * col2 - - col2 FROM tab2 cor0
----
-1352
-1404
-1976

query I rowsort
SELECT + ( col1 ) * ( 91 ) - + col0 AS col2 FROM tab2 AS cor0
----
1468
2814
5291

query I rowsort
SELECT DISTINCT 6 * - col2 + 47 + + col1 * col1 * - col1 FROM tab1
----
-1295
-17853
-2726

query I rowsort
SELECT ALL col2 * col1 * - 7 FROM tab1
----
-3990
-8736
-9828

query I rowsort
SELECT - - col2 * + col1 AS col0 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT cor0.col1 * + ( 47 ) AS col1 FROM tab1 AS cor0
----
1222
470
611

query I rowsort
SELECT ALL - 65 * + 81 FROM tab1, tab1 AS cor0
----
9 values hashing to caf9b77567a89b4a5571471c5f28fc7b

query I rowsort
SELECT ALL - col1 + 28 FROM tab0
----
-58
-63
-69

query I rowsort
SELECT DISTINCT - - col1 + col2 * - 47 + + col1 FROM tab0 AS cor0
----
-1379
-3672
147

query I rowsort
SELECT col1 + 16 * col0 AS col1 FROM tab0 AS cor0
----
1515
470
657

query I rowsort
SELECT DISTINCT col1 + 4 FROM tab1 AS cor0
----
14
17
30

query I rowsort
SELECT + 4 + - col2 FROM tab2 AS cor0
----
-22
-23
-34

query I rowsort
SELECT + 1 * col1 + col2 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT DISTINCT - cor0.col2 * - col1 + col1 * col0 FROM tab0 AS cor0
----
15561
3492
4902

query I rowsort
SELECT + 94 + col2 AS col1 FROM tab0 AS cor0
----
127
176
95

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4346
SELECT - col2 * col1 * CAST( NULL AS SIGNED ) + - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4346
SELECT - col2 * col1 * CAST ( NULL AS INTEGER ) + - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 87 * + col0 AS col0 FROM tab0 AS cor0
----
-2088
-3045
-7743

query I rowsort
SELECT - col0 * col0 + col0 * col1 + + cor0.col1 FROM tab2 cor0
----
-1423
-4881
199

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col2 * col2 + - cor0.col0 col0 FROM tab2 AS cor0
----
1365
598
722

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor1.col1 col1 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
86
91
97

query I rowsort
SELECT + 16 FROM tab0, tab1 AS cor0, tab1 cor1
----
27 values hashing to ee5bde9f68ee828e8cd86b0d590090bc

query I rowsort
SELECT + col0 + + col2 * ( + 69 ) * col0 FROM tab2
----
13048
140010
207217

query I rowsort
SELECT cor1.col2 FROM tab1, tab2 AS cor0, tab2 cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT ALL + cor0.col1 + - 24 AS col2 FROM tab1 AS cor0
----
-11
-14
2

query I rowsort
SELECT - + col1 + - ( + col0 ) FROM tab2 AS cor0
----
-137
-38
-96

query I rowsort
SELECT DISTINCT - 90 * - col0 AS col1 FROM tab0 AS cor0
----
2160
3150
8010

query I rowsort
SELECT DISTINCT + 38 * + col0 + + col1 AS col0 FROM tab1 AS cor0
----
140
2442
3053

query I rowsort
SELECT - tab2.col2 + - col1 FROM tab2
----
-55
-58
-85

query I rowsort
SELECT ALL + 73 + - col2 FROM tab2
----
35
46
47

query I rowsort
SELECT col1 * + 6 * col0 AS col2 FROM tab0
----
12384
20370
48594

query I rowsort
SELECT ALL + 21 + + col0 + - col0 * col1 FROM tab0 AS cor0
----
-2019
-3339
-7989

query I rowsort
SELECT col2 * - col0 + + col2 * 78 + + col0 AS col2 FROM tab1
----
-112
4053
862

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4363
SELECT - + col0 * + col2 + CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4363
SELECT - + col0 * + col2 + CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT cor0.col0 + - col0 * 19 * - ( cor0.col0 ) FROM tab1 AS cor0
----
121680
174
77888

query I rowsort
SELECT + 85 + - cor0.col2 AS col2 FROM tab2, tab2 AS cor0 CROSS JOIN tab0
----
27 values hashing to 1532f823d6a67542c1d554d535eb2bce

query I rowsort
SELECT ALL - 6 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to e92b2679faac7be63701967e3f0c0934

query I rowsort
SELECT col0 * + ( + col0 ) FROM tab2
----
49
6084
6241

query I rowsort
SELECT DISTINCT + cor0.col2 + tab1.col0 FROM tab1, tab2, tab1 AS cor0
----
9 values hashing to f2656d9e76ae2d6dc568bba21c85e398

query I rowsort
SELECT - ( - col0 + - col1 ) FROM tab2
----
137
38
96

query I rowsort
SELECT DISTINCT + col2 + - col0 * ( + ( - col0 ) + col2 ) FROM tab1
----
-1184
-99
505

query I rowsort
SELECT - 14 * - col1 + - col2 * col2 - - col0 AS col0 FROM tab2
----
-1127
-288
228

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + col0 + + col2 * - 56 col1 FROM tab1 AS cor0
----
-2552
-2946
-4336

query I rowsort
SELECT - 99 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 64d06513850a26495bc6c2fddeb254b7

query I rowsort
SELECT ALL 52 * - tab0.col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 88cb5da6475e6aca1fdec8b696c444e8

query I rowsort
SELECT - 92 FROM tab0, tab1 AS cor0
----
9 values hashing to 1af709a79a3e56281ffdce4d931d5965

onlyif mysql # use DIV operator for integer division
query I rowsort label-4376
SELECT DISTINCT col0 DIV - 5 col2 FROM tab0 AS cor0
----
-17
-4
-7

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4376
SELECT DISTINCT col0 / - 5 col2 FROM tab0 AS cor0
----
-17
-4
-7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4377
SELECT + - CAST( NULL AS SIGNED ) + - cor0.col1 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-4377
SELECT + - CAST ( NULL AS INTEGER ) + - cor0.col1 col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4378
SELECT ( 98 ) DIV col0 col1 FROM tab0 AS cor0
----
1
2
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4378
SELECT ( 98 ) / col0 col1 FROM tab0 AS cor0
----
1
2
4

query I rowsort
SELECT ( + col2 ) * - col0 AS col1 FROM tab2 AS cor0
----
-189
-2028
-3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - cor0.col2 col0 FROM tab1 cor0
----
-2916
-3249
-9216

onlyif mysql # use DIV operator for integer division
query I rowsort label-4381
SELECT + - 19 * col2 DIV + col0 FROM tab0 AS cor0
----
-17
-26
0

skipif mysql # not compatible
query I rowsort label-4381
SELECT + - 19 * col2 / + col0 FROM tab0 AS cor0
----
-17
-26
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4382
SELECT ALL + ( - tab1.col2 ) + CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4382
SELECT ALL + ( - tab1.col2 ) + CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 + 12 col1 FROM tab0 AS cor0
----
101
36
47

query I rowsort
SELECT 58 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 9ee363c6ac19cfdb8a50c7dfd5cc2b8a

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 30 col1 FROM tab0, tab1 AS cor0
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89

query I rowsort
SELECT - col0 * 36 FROM tab0 AS cor0
----
-1260
-3204
-864

query I rowsort
SELECT DISTINCT col1 * 37 FROM tab1 AS cor0
----
370
481
962

query I rowsort
SELECT col0 * ( + 71 ) AS col0 FROM tab1 cor0
----
213
4544
5680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4389
SELECT ALL + col1 * + CAST( - col0 AS SIGNED ) col2 FROM tab0 AS cor0
----
-2064
-3395
-8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4389
SELECT ALL + col1 * + CAST ( - col0 AS INTEGER ) col2 FROM tab0 AS cor0
----
-2064
-3395
-8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-4390
SELECT DISTINCT - col1 DIV - 83 FROM tab0 cor0
----
1

skipif mysql # not compatible
query I rowsort label-4390
SELECT DISTINCT - col1 / - 83 FROM tab0 cor0
----
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4391
SELECT + - CAST( NULL AS DECIMAL ) * - cor0.col2 + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4391
SELECT + - CAST ( NULL AS REAL ) * - cor0.col2 + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - cor0.col0 + ( col0 ) FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT - col2 * col2 + - col1 * + col0 AS col1 FROM tab1 AS cor0
----
-10256
-2994
-3889

query I rowsort
SELECT - - 94 * + cor0.col1 + - col2 + col2 FROM tab2 AS cor0
----
1598
2914
5546

onlyif mysql # use DIV operator for integer division
query I rowsort label-4395
SELECT - 31 + + col2 DIV col2 + CAST( - col0 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-110
-33
-94

skipif mysql # not compatible
query I rowsort label-4395
SELECT - 31 + + col2 / col2 + CAST ( - col0 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-110
-33
-94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col1 + + col0 col0 FROM tab1 AS cor0
----
1328
1407
634

onlyif mysql # use DIV operator for integer division
query I rowsort label-4397
SELECT DISTINCT + + col1 DIV + col1 + - col2 col2 FROM tab2 cor0
----
-25
-26
-37

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4397
SELECT DISTINCT + + col1 / + col1 + - col2 col2 FROM tab2 cor0
----
-25
-26
-37

query I rowsort
SELECT ALL - 38 * col0 + - col1 FROM tab1 AS cor0
----
-140
-2442
-3053

query I rowsort
SELECT 72 * - col2 * col1 AS col1 FROM tab0
----
-204336
-537264
-6984

query I rowsort
SELECT DISTINCT 91 + + cor0.col2 AS col1 FROM tab2 cor0
----
117
118
129

query I rowsort
SELECT + 12 + - col1 * cor0.col0 * + 42 FROM tab2 AS cor0
----
-193272
-56394
-9102

query I rowsort
SELECT cor0.col2 + col2 AS col0 FROM tab0 cor0
----
164
2
66

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4403
SELECT ALL + col1 - - col0 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4403
SELECT ALL + col1 - - col0 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - cor0.col1 * cor0.col2 + + 27 AS col1 FROM tab1 AS cor0
----
-1221
-1377
-543

query I rowsort
SELECT DISTINCT + + col1 + + col0 * + col1 AS col0 FROM tab0 AS cor0
----
2150
3492
8190

query I rowsort
SELECT + col1 * - col2 + + cor0.col1 FROM tab0 AS cor0
----
-2752
-7371
0

query I rowsort
SELECT ALL + ( - col2 ) + 55 FROM tab2 AS cor0
----
17
28
29

onlyif mysql # use DIV operator for integer division
query I rowsort label-4408
SELECT ALL + col2 DIV col1 col1 FROM tab1 cor0
----
2
5
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4408
SELECT ALL + col2 / col1 col1 FROM tab1 cor0
----
2
5
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-4409
SELECT DISTINCT 13 + col2 DIV + col1 FROM tab1 AS cor0
----
15
18
20

skipif mysql # not compatible
query I rowsort label-4409
SELECT DISTINCT 13 + col2 / + col1 FROM tab1 AS cor0
----
15
18
20

query I rowsort
SELECT DISTINCT + 56 - col1 * + col0 FROM tab0
----
-2008
-3339
-8043

query I rowsort
SELECT + 42 + cor0.col2 FROM tab2 AS cor0
----
68
69
80

query I rowsort
SELECT ALL - + 53 AS col0 FROM tab1 cor0
----
-53
-53
-53

query I rowsort
SELECT + - 81 * col0 + + col0 FROM tab0 AS cor0
----
-1920
-2800
-7120

query I rowsort
SELECT DISTINCT - cor0.col2 - - cor0.col0 AS col0 FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT ALL - - col1 + + col1 * col1 FROM tab1 AS cor0
----
110
182
702

query I rowsort
SELECT ALL + cor0.col0 * - col0 + col2 AS col2 FROM tab2 AS cor0
----
-22
-6058
-6203

query I rowsort
SELECT cor1.col2 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17

query I rowsort
SELECT DISTINCT 28 * + 4 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
112

query I rowsort
SELECT - 56 * + col0 + col0 * + col0 FROM tab1
----
-159
1920
512

query I rowsort
SELECT - 45 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 71160abf09589695379a70558726f0ba

query I rowsort
SELECT ALL 64 AS col2 FROM tab0, tab2 cor0
----
9 values hashing to 60ab040e931c5c85db7ba19364eacc8e

query I rowsort
SELECT 50 * col1 FROM tab2 AS cor0
----
1550
2950
850

onlyif mysql # use DIV operator for integer division
query I rowsort label-4423
SELECT - col1 DIV - 59 - - col1 * ( col0 * col0 ) AS col1 FROM tab0 AS cor0
----
118826
49537
720812

skipif mysql # not compatible
query I rowsort label-4423
SELECT - col1 / - 59 - - col1 * ( col0 * col0 ) AS col1 FROM tab0 AS cor0
----
118826
49537
720812

query I rowsort
SELECT - col0 * col1 + - col0 AS col1 FROM tab1
----
-1120
-704
-81

query I rowsort
SELECT DISTINCT - tab0.col2 + 4 AS col2 FROM tab0
----
-29
-78
3

query I rowsort
SELECT DISTINCT + ( + tab0.col1 ) - col0 FROM tab0
----
2
62

query I rowsort
SELECT col1 + - tab1.col2 + col1 * + tab1.col1 FROM tab1
----
53
648
86

query I rowsort
SELECT ALL + + 13 AS col0 FROM tab1 AS cor0
----
13
13
13

onlyif mysql # use DIV operator for integer division
query I rowsort label-4429
SELECT ALL - - ( + col0 ) DIV - col0 AS col0 FROM tab2 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4429
SELECT ALL - - ( + col0 ) / - col0 AS col0 FROM tab2 cor0
----
-1
-1
-1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4430
SELECT ALL CAST( NULL AS SIGNED ) + col2 * - col2 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4430
SELECT ALL CAST ( NULL AS INTEGER ) + col2 * - col2 AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT 85 - col0 FROM tab1 AS cor0
----
21
5
82

query I rowsort
SELECT - tab0.col1 + - 19 FROM tab0
----
-105
-110
-116

query I rowsort
SELECT ALL cor0.col1 AS col2 FROM tab2 cor0 CROSS JOIN tab0, tab0 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

onlyif mysql # use DIV operator for integer division
query I rowsort label-4434
SELECT ALL + + cor0.col1 DIV cor0.col1 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4434
SELECT ALL + + cor0.col1 / cor0.col1 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT ALL col0 * + col2 + + col0 FROM tab0 AS cor0
----
70
7387
816

query I rowsort
SELECT DISTINCT col0 * - ( + col2 ) AS col2 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT ALL - - col1 * 48 + - col2 AS col1 FROM tab2 AS cor0
----
1461
2806
778

query I rowsort
SELECT + col0 + - ( col0 ) + - col1 AS col0 FROM tab0 AS cor0
----
-86
-91
-97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4439
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + col2 * + cor0.col0 AS col0 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4439
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + col2 * + cor0.col0 AS col0 FROM tab2 cor0
----
NULL

query I rowsort
SELECT - + 23 * - col1 FROM tab1 AS cor0
----
230
299
598

query I rowsort
SELECT cor0.col2 + 7 * - col1 AS col0 FROM tab0 AS cor0
----
-555
-569
-678

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 * 64 + + col1 * col1 + cor0.col0 col1 FROM tab1 cor0
----
-476
-583
-985

query I rowsort
SELECT ALL col0 * + col0 + + 15 AS col1 FROM tab1 AS cor0
----
24
4111
6415

onlyif mysql # use DIV operator for integer division
query I rowsort label-4444
SELECT ALL + ( - col2 ) - + 97 DIV - col0 AS col0 FROM tab0 AS cor0
----
-29
-81
1

skipif mysql # not compatible
query I rowsort label-4444
SELECT ALL + ( - col2 ) - + 97 / - col0 AS col0 FROM tab0 AS cor0
----
-29
-81
1

query I rowsort
SELECT ALL - col1 * col2 + + col0 AS col2 FROM tab2 AS cor0
----
-1456
-567
-830

query I rowsort
SELECT ALL col1 - - cor0.col1 * col0 FROM tab0 AS cor0
----
2150
3492
8190

query I rowsort
SELECT + 40 + - col2 * - 69 AS col1 FROM tab1 AS cor0
----
3766
3973
6664

query I rowsort
SELECT + 12 * - col2 FROM tab2 AS cor0
----
-312
-324
-456

query I rowsort
SELECT ALL 97 - + col2 AS col2 FROM tab2 AS cor0
----
59
70
71

query I rowsort
SELECT ALL - ( col0 ) + - col0 + - col2 * cor0.col2 FROM tab1 cor0
----
-2922
-3377
-9376

onlyif mysql # use DIV operator for integer division
query I rowsort label-4451
SELECT DISTINCT cor0.col0 DIV - col2 FROM tab0 cor0
----
-1
-35
0

skipif mysql # not compatible
query I rowsort label-4451
SELECT DISTINCT cor0.col0 / - col2 FROM tab0 cor0
----
-1
-35
0

query I rowsort
SELECT ALL - + col1 * cor0.col0 + + col0 AS col1 FROM tab1 AS cor0
----
-576
-75
-960

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 23 + + cor0.col2 * + col2 col1 FROM tab2 AS cor0
----
1421
653
706

query I rowsort
SELECT col0 + - tab2.col1 * 96 + + col1 FROM tab2
----
-1536
-2938
-5527

onlyif mysql # use DIV operator for integer division
query I rowsort label-4455
SELECT - 37 DIV col1 AS col2 FROM tab2
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-4455
SELECT - 37 / col1 AS col2 FROM tab2
----
-1
-2
0

query I rowsort
SELECT DISTINCT - col0 * 38 FROM tab0 cor0
----
-1330
-3382
-912

query I rowsort
SELECT + cor0.col0 - ( - col2 ) * col1 FROM tab0 AS cor0
----
132
2862
7551

query I rowsort
SELECT ALL + ( tab2.col0 ) AS col2 FROM tab2
----
7
78
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * tab1.col1 - col1 col1 FROM tab1
----
1235
1378
560

query I rowsort
SELECT - 31 AS col2 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to c6c8eebeb1a59f7c046402e25630c0ac

query I rowsort
SELECT DISTINCT + ( col1 ) + ( - tab1.col0 ) + col0 AS col2 FROM tab1
----
10
13
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + + col2 + ( 27 ) * + col2 col0 FROM tab2
----
1081
787

onlyif mysql # use DIV operator for integer division
query I rowsort label-4463
SELECT 20 DIV col1 AS col1 FROM tab1
----
0
1
2

skipif mysql # not compatible
query I rowsort label-4463
SELECT 20 / col1 AS col1 FROM tab1
----
0
1
2

onlyif mysql # use DIV operator for integer division
query I rowsort label-4464
SELECT + col0 + col0 * + 96 + 32 * tab0.col0 DIV + ( - col0 ) col0 FROM tab0
----
2296
3363
8601

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4464
SELECT + col0 + col0 * + 96 + 32 * tab0.col0 / + ( - col0 ) col0 FROM tab0
----
2296
3363
8601

query I rowsort
SELECT - tab1.col2 FROM tab1, tab0, tab1 cor0
----
27 values hashing to 44fdcd7cd603352d4d127811d164cc1e

query I rowsort
SELECT - - col0 + 62 * col0 FROM tab0 AS cor0
----
1512
2205
5607

query I rowsort
SELECT DISTINCT + 75 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
75

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4468
SELECT col0 * CAST( - col2 AS SIGNED ) FROM tab2 AS cor0
----
-189
-2028
-3002

skipif mysql # not compatible
query I rowsort label-4468
SELECT col0 * CAST ( - col2 AS INTEGER ) FROM tab2 AS cor0
----
-189
-2028
-3002

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4469
SELECT + - ( col1 ) * col2 - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4469
SELECT + - ( col1 ) * col2 - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + - col2 * + col1 + + col0 AS col2 FROM tab2 AS cor0
----
-1456
-567
-830

query I rowsort
SELECT ALL col2 + - 10 FROM tab2
----
16
17
28

query I rowsort
SELECT - col2 * + col1 - + col1 * col1 AS col2 FROM tab2 AS cor0
----
-1798
-5015
-935

query I rowsort
SELECT ALL + col1 * - ( tab2.col2 ) AS col2 FROM tab2
----
-1534
-646
-837

query I rowsort
SELECT ALL 28 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 8a39580587f2831072e93c319ff94bbf

query I rowsort
SELECT - col2 + - col1 * ( 57 ) * col1 FROM tab2 AS cor0
----
-16511
-198443
-54804

query I rowsort
SELECT DISTINCT ( col2 ) * tab2.col0 AS col1 FROM tab2
----
189
2028
3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + tab1.col0 * + col0 + col0 col0 FROM tab1
----
-231
-40896
-83120

query I rowsort
SELECT + tab1.col0 - 74 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to d87da68d030230d02fd0f2abfa6fef24

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4479
SELECT - ( col0 ) * + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4479
SELECT - ( col0 ) * + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4480
SELECT col2 * col1 * - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4480
SELECT col2 * col1 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 59 * - col1 FROM tab1 AS cor0
----
-1534
-590
-767

query I rowsort
SELECT DISTINCT - ( cor0.col2 ) AS col1 FROM tab2 cor0
----
-26
-27
-38

onlyif mysql # use DIV operator for integer division
query I rowsort label-4483
SELECT + col2 + cor0.col1 * ( col0 ) DIV + col2 col0 FROM tab1 AS cor0
----
106
55
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4483
SELECT + col2 + cor0.col1 * ( col0 ) / + col2 col0 FROM tab1 AS cor0
----
106
55
68

query I rowsort
SELECT ALL + ( cor0.col2 ) * cor0.col1 + - col1 FROM tab2 AS cor0
----
1475
629
806

query I rowsort
SELECT + + 42 + ( + cor0.col0 ) FROM tab1, tab1 cor0
----
9 values hashing to 00b8b41ff2cd1ba72efe1e7f69e7a836

query I rowsort
SELECT - col1 + col2 * - cor0.col1 FROM tab0 cor0
----
-194
-2924
-7553

onlyif mysql # use DIV operator for integer division
query I rowsort label-4487
SELECT ALL + + 65 DIV col0 FROM tab2 AS cor0
----
0
0
9

skipif mysql # not compatible
query I rowsort label-4487
SELECT ALL + + 65 / col0 FROM tab2 AS cor0
----
0
0
9

query I rowsort
SELECT - ( 99 ) AS col2 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 761f5f1a166a00db99360141565a85da

query I rowsort
SELECT DISTINCT - 25 * + col0 + ( + col1 ) FROM tab0 AS cor0
----
-2134
-514
-778

query I rowsort
SELECT DISTINCT 62 + col2 * + col2 AS col1 FROM tab2 cor0
----
1506
738
791

query I rowsort
SELECT ALL 86 + + col2 AS col2 FROM tab2 AS cor0
----
112
113
124

query I rowsort
SELECT - col0 + - cor0.col0 * col2 AS col2 FROM tab2 AS cor0
----
-196
-2106
-3081

query I rowsort
SELECT DISTINCT - ( + col2 ) * ( - cor0.col0 ) + - col2 + col0 FROM tab0 AS cor0
----
69
7305
783

query I rowsort
SELECT tab0.col2 * tab0.col1 + col0 FROM tab0
----
132
2862
7551

onlyif mysql # use DIV operator for integer division
query I rowsort label-4495
SELECT - tab2.col2 DIV col0 AS col2 FROM tab2
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-4495
SELECT - tab2.col2 / col0 AS col2 FROM tab2
----
-3
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4496
SELECT ALL + col0 DIV + col0 AS col0 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4496
SELECT ALL + col0 / + col0 AS col0 FROM tab1
----
1
1
1

query I rowsort
SELECT - col2 * cor0.col1 + 66 * + col0 AS col0 FROM tab2 AS cor0
----
-375
3614
4568

onlyif mysql # use DIV operator for integer division
query I rowsort label-4498
SELECT ALL - col1 + tab2.col1 DIV - col0 AS col2 FROM tab2
----
-17
-35
-59

skipif mysql # not compatible
query I rowsort label-4498
SELECT ALL - col1 + tab2.col1 / - col0 AS col2 FROM tab2
----
-17
-35
-59

query I rowsort
SELECT 10 - col2 * - tab0.col0 AS col2 FROM tab0
----
45
7308
802

query I rowsort
SELECT DISTINCT 63 + - col0 FROM tab1
----
-1
-17
60

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4501
SELECT DISTINCT - col0 * col0 + CAST( ( - col1 ) AS SIGNED ) FROM tab0
----
-1322
-662
-8012

skipif mysql # not compatible
query I rowsort label-4501
SELECT DISTINCT - col0 * col0 + CAST ( ( - col1 ) AS INTEGER ) FROM tab0
----
-1322
-662
-8012

query I rowsort
SELECT col0 - + col0 * + col2 FROM tab1
----
-159
-3584
-7600

onlyif mysql # use DIV operator for integer division
query I rowsort label-4503
SELECT col0 DIV col1 + col1 col1 FROM tab0
----
86
91
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4503
SELECT col0 / col1 + col1 col1 FROM tab0
----
86
91
97

query I rowsort
SELECT DISTINCT - col1 FROM tab2 WHERE + col2 * - col2 NOT IN ( + col2 )
----
-17
-31
-59

query I rowsort
SELECT ALL - tab0.col1 / col2 - - tab0.col2 AS col1 FROM tab0 WHERE NOT NULL >= NULL
----

query I rowsort
SELECT DISTINCT col2 + col0 - col2 FROM tab2
----
7
78
79

query I rowsort
SELECT tab1.col1 - - col1 * col2 AS col1 FROM tab1
----
1261
1430
580

query I rowsort
SELECT ALL col2 FROM tab0 WHERE ( NULL ) IN ( col1 + - col2 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT IN ( + col2 * col0 )
----

query I rowsort
SELECT col0 * + col1 + col0 * col0 FROM tab1
----
4736
7440
87

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 * - col0 + col2 * - col2 NOT IN ( col2 * + col1 )
----

query I rowsort
SELECT DISTINCT col1 * col1 * + tab0.col2 FROM tab0
----
244068
679042
9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col0 * tab2.col2 col2 FROM tab2
----
189
2028
3002

query I rowsort
SELECT DISTINCT col2 * - tab2.col2 AS col2 FROM tab2
----
-1444
-676
-729

query III rowsort
SELECT * FROM tab0 WHERE ( col2 + + col2 ) NOT BETWEEN NULL AND - col2 * - col0
----

query I rowsort
SELECT - col1 * col0 * col0 AS col0 FROM tab0
----
-118825
-49536
-720811

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + col1 * tab2.col1 col2 FROM tab2
----
10982
25947
90506

query I rowsort
SELECT tab0.col2 - + col1 * col0 FROM tab0
----
-2031
-3394
-8017

query I rowsort
SELECT DISTINCT col0 + 96 AS col2 FROM tab2
----
103
174
175

query I rowsort
SELECT DISTINCT - col1 * + col1 + col1 * + 89 - col0 AS col0 FROM tab2
----
1145
1692
1791

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4521
SELECT DISTINCT CAST( NULL AS SIGNED ) + + col1 / + col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4521
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + col1 / + col0 FROM tab0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4522
SELECT DISTINCT + col0 + col2 DIV col1 + - col2 * col1 FROM tab0
----
-2814
-62
-7373

skipif mysql # not compatible
query I rowsort label-4522
SELECT DISTINCT + col0 + col2 / col1 + - col2 * col1 FROM tab0
----
-2814
-62
-7373

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + col0 * col2 * ( - col1 ) + col2 col0 FROM tab1
----
-36413
-4132
-99731

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4524
SELECT + CAST( NULL AS SIGNED ) AS col2 FROM tab0, tab2 AS cor0, tab1 AS cor1, tab1 AS cor2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

skipif mysql # not compatible
query I rowsort label-4524
SELECT + CAST ( NULL AS INTEGER ) AS col2 FROM tab0, tab2 AS cor0, tab1 AS cor1, tab1 AS cor2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

query I rowsort
SELECT + col2 + + 18 * - col0 + ( col1 ) AS col0 FROM tab0
----
-1429
-313
-532

query I rowsort
SELECT + col2 * col1 * col2 AS col2 FROM tab0 AS cor0
----
611884
93654
97

query I rowsort
SELECT - col0 * cor0.col1 * col2 AS col1 FROM tab2 AS cor0
----
-119652
-51034
-5859

query I rowsort
SELECT DISTINCT - 13 AS col0 FROM tab1 cor0
----
-13

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4529
SELECT - col0 * - col1 * CAST( cor0.col2 * - col0 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-12636
-2334720
-7987200

skipif mysql # not compatible
query I rowsort label-4529
SELECT - col0 * - col1 * CAST ( cor0.col2 * - col0 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-12636
-2334720
-7987200

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 24 + + col2 col1 FROM tab1 cor0
----
120
78
81

query I rowsort
SELECT col2 * cor0.col1 - + 20 FROM tab2 AS cor0
----
1514
626
817

query I rowsort
SELECT - cor0.col0 * + col1 + col2 AS col2 FROM tab2 AS cor0
----
-1305
-190
-4576

onlyif mysql # use DIV operator for integer division
query I rowsort label-4533
SELECT DISTINCT col1 DIV + col0 AS col1 FROM tab0 AS cor0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-4533
SELECT DISTINCT col1 / + col0 AS col1 FROM tab0 AS cor0
----
1
2
3

query I rowsort
SELECT - + cor0.col1 - + col2 AS col0 FROM tab0 AS cor0
----
-119
-173
-98

query I rowsort
SELECT + - 76 + + col1 FROM tab1 AS cor0
----
-50
-63
-66

query I rowsort
SELECT DISTINCT - tab2.col1 - col2 AS col2 FROM tab2
----
-55
-58
-85

query I rowsort
SELECT + 9 * col1 FROM tab1 AS cor0
----
117
234
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - col0 ) + cor0.col1 col2 FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT cor0.col1 + col2 * - col0 AS col0 FROM tab1 AS cor0
----
-136
-3638
-7667

onlyif mysql # use DIV operator for integer division
query I rowsort label-4540
SELECT 19 DIV col0 + + 5 FROM tab2 cor0
----
5
5
7

skipif mysql # not compatible
query I rowsort label-4540
SELECT 19 / col0 + + 5 FROM tab2 cor0
----
5
5
7

query I rowsort
SELECT DISTINCT - - col1 * col0 FROM tab1 cor0
----
1040
640
78

query I rowsort
SELECT ALL + - col0 + 9 + + 7 AS col0 FROM tab0 AS cor0
----
-19
-73
-8

query I rowsort
SELECT DISTINCT - col0 - - col0 AS col1 FROM tab1 AS cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4544
SELECT DISTINCT - col1 DIV - 43 + col2 FROM tab0 AS cor0
----
3
35
84

skipif mysql # not compatible
query I rowsort label-4544
SELECT DISTINCT - col1 / - 43 + col2 FROM tab0 AS cor0
----
3
35
84

query I rowsort
SELECT - col2 * 4 FROM tab2 AS cor0
----
-104
-108
-152

onlyif mysql # use DIV operator for integer division
query I rowsort label-4546
SELECT DISTINCT - - col1 + - ( - 40 ) * col1 DIV cor0.col0 AS col2 FROM tab2 cor0
----
208
25
89

skipif mysql # not compatible
query I rowsort label-4546
SELECT DISTINCT - - col1 + - ( - 40 ) * col1 / cor0.col0 AS col2 FROM tab2 cor0
----
208
25
89

query I rowsort
SELECT DISTINCT - - col1 + col1 * - ( col0 * col0 + ( + col2 ) ) AS col1 FROM tab0 AS cor0
----
-118825
-52288
-728182

query I rowsort
SELECT DISTINCT + + col1 * col0 AS col1 FROM tab0 AS cor0
----
2064
3395
8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * 35 col0 FROM tab1 AS cor0
----
-105
-2240
-2800

query I rowsort
SELECT ALL col0 * - ( + col1 * - col0 ) + col1 * - col0 * cor0.col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4551
SELECT DISTINCT + - col2 + + ( + col1 ) DIV col1 + col1 * + cor0.col2 AS col2 FROM tab2 AS cor0
----
1509
609
811

skipif mysql # not compatible
query I rowsort label-4551
SELECT DISTINCT + - col2 + + ( + col1 ) / col1 + col1 * + cor0.col2 AS col2 FROM tab2 AS cor0
----
1509
609
811

query I rowsort
SELECT ALL + col0 - cor0.col2 AS col2 FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT - cor0.col2 + + ( + col1 ) AS col1 FROM tab1 AS cor0
----
-28
-47
-83

onlyif mysql # use DIV operator for integer division
query I rowsort label-4554
SELECT ALL col1 + cor0.col1 DIV col1 AS col0 FROM tab0 cor0
----
87
92
98

skipif mysql # not compatible
query I rowsort label-4554
SELECT ALL col1 + cor0.col1 / col1 AS col0 FROM tab0 cor0
----
87
92
98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4555
SELECT - CAST( col2 AS SIGNED ) + + col1 * col0 col0 FROM tab0 AS cor0
----
2031
3394
8017

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4555
SELECT - CAST ( col2 AS INTEGER ) + + col1 * col0 col0 FROM tab0 AS cor0
----
2031
3394
8017

query I rowsort
SELECT ALL - 62 * - 95 + col2 + + 95 AS col1 FROM tab2 AS cor0
----
6011
6012
6023

query I rowsort
SELECT - col2 - col0 FROM tab0 cor0
----
-171
-36
-57

query I rowsort
SELECT - col0 + cor0.col2 * + col1 * + col2 - + col0 * - cor0.col2 AS col1 FROM tab2 AS cor0
----
22781
27471
41834

query I rowsort
SELECT col2 * - 60 * col2 + - tab2.col2 AS col2 FROM tab2
----
-40586
-43767
-86678

query I rowsort
SELECT ALL - 8 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 47f43f23dcd23959d97d8e3b0aab692e

query I rowsort
SELECT DISTINCT + 37 * col0 AS col2 FROM tab0
----
1295
3293
888

query I rowsort
SELECT 35 + col2 FROM tab2
----
61
62
73

onlyif mysql # use DIV operator for integer division
query I rowsort label-4563
SELECT 30 DIV col1 + - col0 FROM tab0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-4563
SELECT 30 / col1 + - col0 FROM tab0
----
-24
-35
-89

query I rowsort
SELECT ( + col0 ) + col2 AS col2 FROM tab2
----
104
117
34

onlyif mysql # use DIV operator for integer division
query I rowsort label-4565
SELECT - col2 * tab0.col2 DIV + col1 FROM tab0
----
-12
-73
0

skipif mysql # not compatible
query I rowsort label-4565
SELECT - col2 * tab0.col2 / + col1 FROM tab0
----
-12
-73
0

query I rowsort
SELECT DISTINCT + 21 * col2 FROM tab1
----
1134
1197
2016

query I rowsort
SELECT col0 * + col1 - + col2 AS col1 FROM tab2 AS cor0
----
1305
190
4576

query I rowsort
SELECT - col2 * col1 * cor0.col2 + - col2 * cor0.col0 AS col1 FROM tab0 AS cor0
----
-132
-619182
-94446

onlyif mysql # use DIV operator for integer division
query I rowsort label-4569
SELECT - tab0.col2 DIV tab0.col0 AS col1 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4569
SELECT - tab0.col2 / tab0.col0 AS col1 FROM tab0
----
-1
0
0

query I rowsort
SELECT DISTINCT - cor0.col0 * - col2 + col1 + + cor0.col0 AS col2 FROM tab2 cor0
----
2165
227
3098

query I rowsort
SELECT - col1 + + col0 * - col1 AS col2 FROM tab0 AS cor0
----
-2150
-3492
-8190

query I rowsort
SELECT ALL - + cor0.col1 + - cor0.col2 * cor0.col0 FROM tab2 AS cor0
----
-2087
-220
-3019

onlyif mysql # use DIV operator for integer division
query I rowsort label-4573
SELECT DISTINCT + col0 DIV ( - col0 + - col1 * - cor0.col0 ) AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4573
SELECT DISTINCT + col0 / ( - col0 + - col1 * - cor0.col0 ) AS col0 FROM tab0 AS cor0
----
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4574
SELECT DISTINCT + - cor0.col1 * CAST( col2 AS SIGNED ) FROM tab0 AS cor0
----
-2838
-7462
-97

skipif mysql # not compatible
query I rowsort label-4574
SELECT DISTINCT + - cor0.col1 * CAST ( col2 AS INTEGER ) FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT DISTINCT - col0 * - ( cor0.col1 ) AS col1 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT + + cor0.col2 * + cor0.col1 AS col0 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT - + cor0.col1 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to ccaa5dd3388d9ee0fea676fa35299fe5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 33 col1 FROM tab1 cor0
----
-33

query I rowsort
SELECT DISTINCT 9 FROM tab1, tab1 AS cor0
----
9

query I rowsort
SELECT - + 21 + col1 * + col2 AS col2 FROM tab2 AS cor0
----
1513
625
816

query I rowsort
SELECT cor1.col1 AS col2 FROM tab0, tab1 AS cor0, tab2 cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

query I rowsort
SELECT - tab2.col2 - tab2.col2 * col1 FROM tab2
----
-1560
-684
-864

query I rowsort
SELECT DISTINCT col1 * - col2 + + col1 AS col2 FROM tab1 WHERE + col0 IN ( - col1 + col0 * - col1 + - col1 )
----

query I rowsort
SELECT DISTINCT col1 + - col2 * - col0 AS col1 FROM tab1 WHERE NOT - col0 / - col0 <> NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-4585
SELECT - col0 DIV - col1 + col2 AS col1 FROM tab1 AS cor0
----
102
54
63

skipif mysql # not compatible
query I rowsort label-4585
SELECT - col0 / - col1 + col2 AS col1 FROM tab1 AS cor0
----
102
54
63

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL IN ( - col1 / col2 ) OR NOT col0 IN ( - col1 * + cor0.col2 + col0 * col2 + col0 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 + + col2 col2 FROM tab1 AS cor0
----
-7
16
51

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col1 NOT IN ( col2 + + col2 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

onlyif mysql # use DIV operator for integer division
query I rowsort label-4589
SELECT + col1 DIV cor0.col1 AS col1 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4589
SELECT + col1 / cor0.col1 AS col1 FROM tab2 AS cor0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + + cor0.col2 * col2 col2 FROM tab1 cor0
----
2890
3239
9203

query I rowsort
SELECT col2 * + col0 * - col2 AS col1 FROM tab2
----
-114076
-5103
-52728

query I rowsort
SELECT + col1 + - cor0.col2 * - col1 AS col1 FROM tab0 AS cor0
----
194
2924
7553

query I rowsort
SELECT DISTINCT col0 * + col1 + - col2 FROM tab0 AS cor0
----
2031
3394
8017

onlyif mysql # use DIV operator for integer division
query I rowsort label-4594
SELECT + col0 + - cor0.col1 DIV col1 AS col1 FROM tab1 AS cor0
----
2
63
79

skipif mysql # not compatible
query I rowsort label-4594
SELECT + col0 + - cor0.col1 / col1 AS col1 FROM tab1 AS cor0
----
2
63
79

query I rowsort
SELECT tab0.col2 * - tab0.col1 * - tab0.col0 FROM tab0
----
3395
664118
68112

onlyif mysql # use DIV operator for integer division
query I rowsort label-4596
SELECT DISTINCT - tab1.col0 DIV - tab1.col1 FROM tab1
----
0
6

skipif mysql # not compatible
query I rowsort label-4596
SELECT DISTINCT - tab1.col0 / - tab1.col1 FROM tab1
----
0
6

query I rowsort
SELECT + - col0 * 35 AS col0 FROM tab0 AS cor0
----
-1225
-3115
-840

query I rowsort
SELECT DISTINCT col1 + ( - 22 ) AS col1 FROM tab2 AS cor0
----
-5
37
9

query I rowsort
SELECT DISTINCT col0 * - 7 * - col0 AS col1 FROM tab0 AS cor0
----
4032
55447
8575

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + ( - cor0.col1 ) col2 FROM tab0 cor0
----
-2
-62
-62

query I rowsort
SELECT DISTINCT - cor0.col1 * + 46 FROM tab1 AS cor0
----
-1196
-460
-598

query I rowsort
SELECT DISTINCT - - 82 + col1 FROM tab2 cor0
----
113
141
99

skipif mysql # not compatible
query I rowsort
SELECT ALL CAST ( - 58 AS REAL ) * - tab2.col1 * tab2.col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 6fc7e26424fdea3c7a3de5a51645f4eb

query I rowsort
SELECT ALL 36 AS col0 FROM tab0 AS cor0
----
36
36
36

query I rowsort
SELECT - tab1.col2 * + col2 AS col1 FROM tab1
----
-2916
-3249
-9216

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + - CAST ( + col0 AS REAL ) AS col2 FROM tab2 cor0
----
-7
-78
-79

query I rowsort
SELECT DISTINCT col2 + + 2 + cor0.col2 FROM tab0 AS cor0
----
166
4
68

query I rowsort
SELECT DISTINCT - + cor0.col2 + 35 AS col2 FROM tab0 AS cor0
----
-47
2
34

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4609
SELECT DISTINCT + - cor0.col1 * - col0 + col0 * CAST( col2 * + col2 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
115419
5320
57330

skipif mysql # not compatible
query I rowsort label-4609
SELECT DISTINCT + - cor0.col1 * - col0 + col0 * CAST ( col2 * + col2 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
115419
5320
57330

query I rowsort
SELECT col2 * col2 * - 96 AS col1 FROM tab2
----
-138624
-64896
-69984

query I rowsort
SELECT DISTINCT - col0 + - ( - col1 + tab1.col2 ) AS col2 FROM tab1
----
-111
-163
-31

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4612
SELECT col1 * - CAST( NULL AS SIGNED ) * col2 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4612
SELECT col1 * - CAST ( NULL AS INTEGER ) * col2 AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4613
SELECT col2 * col0 * + tab0.col1 + col1 * ( col1 + col0 ) DIV col2 AS col1 FROM tab0
----
16199
664317
68398

skipif mysql # not compatible
query I rowsort label-4613
SELECT col2 * col0 * + tab0.col1 + col1 * ( col1 + col0 ) / col2 AS col1 FROM tab0
----
16199
664317
68398

query I rowsort
SELECT DISTINCT col1 + - col1 * - ( col0 ) - col0 AS col1 FROM tab1
----
101
586
973

query I rowsort
SELECT + col0 * + col0 * col0 FROM tab0
----
13824
42875
704969

query I rowsort
SELECT + - 67 AS col0 FROM tab1 AS cor0
----
-67
-67
-67

query I rowsort
SELECT DISTINCT - 81 * - col1 + col1 * + col1 FROM tab0 AS cor0
----
14362
15652
17266

query I rowsort
SELECT ALL + - 11 * col2 AS col0 FROM tab1 AS cor0
----
-1056
-594
-627

query I rowsort
SELECT DISTINCT + + col0 * col1 * 82 AS col2 FROM tab1 AS cor0
----
52480
6396
85280

query I rowsort
SELECT ( + 43 ) FROM tab2
----
43
43
43

query I rowsort
SELECT - col2 + col0 * + 84 FROM tab2 AS cor0
----
561
6526
6598

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4622
SELECT ALL + + 1 + col1 * + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4622
SELECT ALL + + 1 + col1 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 30 col2 FROM tab1, tab0 AS cor0
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89

query I rowsort
SELECT - ( - col2 * - col0 ) FROM tab2
----
-189
-2028
-3002

query I rowsort
SELECT + cor0.col2 - cor0.col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 3b143560120db39ddcee311b43b28291

query I rowsort
SELECT - ( - cor1.col2 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8

query I rowsort
SELECT DISTINCT col0 * - ( col1 ) AS col0 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT - - 94 * col2 AS col1 FROM tab0 AS cor0
----
3102
7708
94

query I rowsort
SELECT 77 AS col2 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to d7b027bca5d37c67e29013904def8125

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4630
SELECT DISTINCT col1 * - CAST( NULL AS SIGNED ) / 47 + - col2 * - ( col2 ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4630
SELECT DISTINCT col1 * - CAST ( NULL AS INTEGER ) / 47 + - col2 * - ( col2 ) AS col1 FROM tab0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4631
SELECT DISTINCT + cor0.col0 DIV + col1 FROM tab1 AS cor0
----
0
6

skipif mysql # not compatible
query I rowsort label-4631
SELECT DISTINCT + cor0.col0 / + col1 FROM tab1 AS cor0
----
0
6

query I rowsort
SELECT ALL - col1 + col2 * ( - cor0.col0 ) AS col2 FROM tab2 AS cor0
----
-2087
-220
-3019

query I rowsort
SELECT + col2 + ( cor0.col2 ) * col1 AS col1 FROM tab1 AS cor0
----
1344
1458
627

query I rowsort
SELECT DISTINCT - cor0.col1 * - col0 FROM tab2 cor0
----
1343
217
4602

query I rowsort
SELECT - - col1 * 52 * + col0 FROM tab1 AS cor0
----
33280
4056
54080

query I rowsort
SELECT ALL - - cor0.col0 * ( col2 ) FROM tab2 cor0
----
189
2028
3002

query I rowsort
SELECT DISTINCT + col0 * - ( 25 ) FROM tab1 AS cor0
----
-1600
-2000
-75

query I rowsort
SELECT ALL col2 * col2 * 16 FROM tab1 AS cor0
----
147456
46656
51984

query I rowsort
SELECT - col2 * + col1 * + cor0.col0 FROM tab2 AS cor0
----
-119652
-51034
-5859

query I rowsort
SELECT DISTINCT - col0 - + ( - col1 ) AS col2 FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT ALL + - col0 * - ( + col0 ) + cor0.col0 FROM tab1 cor0
----
12
4160
6480

query I rowsort
SELECT ALL - col2 + + 67 * ( col0 ) FROM tab1 AS cor0
----
147
4231
5264

query I rowsort
SELECT - cor0.col1 * - 45 FROM tab1 AS cor0
----
1170
450
585

query I rowsort
SELECT DISTINCT - + col2 + 35 + col1 AS col1 FROM tab2 AS cor0
----
14
39
68

query I rowsort
SELECT DISTINCT col2 + ( col1 ) * col1 FROM tab1
----
157
265
730

query I rowsort
SELECT ALL col2 + + 82 * - col0 AS col1 FROM tab0 AS cor0
----
-1935
-2869
-7216

query I rowsort
SELECT DISTINCT + ( col2 ) * col0 AS col0 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT ALL + cor0.col0 + 66 + col1 AS col2 FROM tab2 AS cor0
----
104
162
203

query I rowsort
SELECT DISTINCT + + col2 + col1 AS col1 FROM tab0 cor0
----
119
173
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-4650
SELECT - + 58 + col1 + col0 DIV + 90 FROM tab1 AS cor0
----
-32
-45
-48

skipif mysql # not compatible
query I rowsort label-4650
SELECT - + 58 + col1 + col0 / + 90 FROM tab1 AS cor0
----
-32
-45
-48

query I rowsort
SELECT - + 0 * 97 AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - 52 * + 6 FROM tab2 cor0
----
-312
-312
-312

query I rowsort
SELECT DISTINCT 37 + 11 FROM tab1 AS cor0
----
48

query I rowsort
SELECT DISTINCT cor0.col1 + col0 AS col2 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT DISTINCT + - cor0.col2 * + col0 AS col1 FROM tab0 AS cor0
----
-35
-7298
-792

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4656
SELECT col0 * col2 * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4656
SELECT col0 * col2 * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 47 + col1 AS col0 FROM tab0 cor0
----
133
138
144

query I rowsort
SELECT ALL - - 32 AS col1 FROM tab1 AS cor0
----
32
32
32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - cor1.col0 col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870

query I rowsort
SELECT ALL + col2 + - ( col0 ) FROM tab0
----
-34
-7
9

query I rowsort
SELECT DISTINCT - 19 * - col0 FROM tab0 cor0
----
1691
456
665

query I rowsort
SELECT DISTINCT + - col1 + 36 FROM tab0 AS cor0
----
-50
-55
-61

query I rowsort
SELECT ALL - + 73 * 70 AS col1 FROM tab1 AS cor0
----
-5110
-5110
-5110

query I rowsort
SELECT ALL + + 58 + - col0 - + col0 FROM tab2 cor0
----
-100
-98
44

query I rowsort
SELECT ALL 47 FROM tab1, tab1 AS cor0
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + col0 * + col1 * ( col1 ) col0 FROM tab0 AS cor0
----
177528
329350
737098

query I rowsort
SELECT + 79 * 63 AS col0 FROM tab2 AS cor0
----
4977
4977
4977

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor1.col2 col1 FROM tab0, tab2 AS cor0, tab1, tab1 AS cor1
----
81 values hashing to 9d355f1f2edc347a359dad00d2d3f886

query I rowsort
SELECT DISTINCT 46 * cor0.col2 + col2 AS col0 FROM tab2 AS cor0
----
1222
1269
1786

query I rowsort
SELECT DISTINCT - 89 - + col2 FROM tab2 cor0
----
-115
-116
-127

query I rowsort
SELECT ALL + 88 * - col0 FROM tab1 AS cor0
----
-264
-5632
-7040

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4672
SELECT - + col1 + - CAST( NULL AS SIGNED ) + cor0.col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4672
SELECT - + col1 + - CAST ( NULL AS INTEGER ) + cor0.col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 * - col2 * col1 FROM tab2 AS cor0
----
-119652
-51034
-5859

query I rowsort
SELECT col0 * col0 * col1 + col1 FROM tab2
----
106114
1550
359015

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - col0 + - col1 col1 FROM tab2 AS cor0
----
-2087
-220
-3019

query I rowsort
SELECT ALL - - cor0.col1 + - ( - col0 ) FROM tab2 AS cor0
----
137
38
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-4677
SELECT ALL - + col2 DIV - col1 AS col0 FROM tab2 AS cor0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-4677
SELECT ALL - + col2 / - col1 AS col0 FROM tab2 AS cor0
----
0
0
2

query I rowsort
SELECT DISTINCT col2 * + ( cor0.col2 ) AS col2 FROM tab1 AS cor0
----
2916
3249
9216

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * 26 col2 FROM tab2 AS cor0
----
182
2028
2054

query I rowsort
SELECT ALL - + cor0.col0 + - col1 + - 69 FROM tab2 AS cor0
----
-107
-165
-206

query I rowsort
SELECT + col1 * col1 * col0 FROM tab1
----
13520
2028
6400

query I rowsort
SELECT DISTINCT col0 * 61 * col2 AS col2 FROM tab2 AS cor0
----
11529
123708
183122

query I rowsort
SELECT 91 AS col1 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277

query I rowsort
SELECT col2 * ( col2 + - col0 * 56 ) FROM tab1 AS cor0
----
-201039
-420864
-6156

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4685
SELECT ALL - col1 / - CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4685
SELECT ALL - col1 / - CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + - col2 * ( - col1 ) FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT ALL + ( 14 ) * col2 * - ( - 15 ) AS col1 FROM tab2
----
5460
5670
7980

query I rowsort
SELECT + 30 * + col0 + col2 + - ( + col2 + col2 ) AS col0 FROM tab1 AS cor0
----
1863
2304
36

query I rowsort
SELECT ALL 23 AS col0 FROM tab1
----
23
23
23

query I rowsort
SELECT + 92 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to c64cb7a81da51f4be0b6906a223e8817

query I rowsort
SELECT 65 * col2 + + ( col2 ) - + col1 FROM tab0 AS cor0
----
-31
2092
5321

query I rowsort
SELECT - - col2 * col2 + 71 + - col2 * + ( + col0 ) AS col1 FROM tab0 AS cor0
----
-503
368
37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + col0 + 16 col0 FROM tab1 AS cor0
----
1056
656
94

query I rowsort
SELECT + - col0 + ( col1 + col0 ) AS col2 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT + col2 * col1 - col2 * + col0 AS col0 FROM tab0 AS cor0
----
164
2046
62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4696
SELECT - col1 + - ( col2 ) * - col1 + CAST( + cor0.col0 AS SIGNED ) * col1 AS col2 FROM tab0 AS cor0
----
15470
3395
4816

skipif mysql # not compatible
query I rowsort label-4696
SELECT - col1 + - ( col2 ) * - col1 + CAST ( + cor0.col0 AS INTEGER ) * col1 AS col2 FROM tab0 AS cor0
----
15470
3395
4816

skipif mysql # not compatible
query I rowsort
SELECT col2 / + ( col2 ) + col1 * - CAST ( - col1 AS REAL ) FROM tab1 AS cor0
----
101
170
677

query I rowsort
SELECT ALL - tab2.col1 * col2 * - col1 FROM tab2
----
10982
25947
90506

query I rowsort
SELECT ALL tab0.col0 AS col1 FROM tab0, tab2 cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63

query I rowsort
SELECT ALL tab0.col0 + - tab0.col0 FROM tab0
----
0
0
0

query I rowsort
SELECT 58 * tab2.col1 + - col2 AS col2 FROM tab2
----
1771
3396
948

query I rowsort
SELECT + col1 + - col2 * col1 AS col1 FROM tab2
----
-1475
-629
-806

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4703
SELECT - CAST( NULL AS SIGNED ) * + 94 * + tab2.col2 - - CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4703
SELECT - CAST ( NULL AS INTEGER ) * + 94 * + tab2.col2 - - CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - + ( + col1 ) * cor0.col1 AS col1 FROM tab2 AS cor0
----
-289
-3481
-961

query I rowsort
SELECT - + col0 + col2 * - cor0.col1 * col1 FROM tab0 AS cor0
----
-244092
-679131
-9444

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 15 * + col2 col2 FROM tab2 AS cor0
----
390
405
570

query I rowsort
SELECT ALL + + 61 FROM tab0 AS cor0
----
61
61
61

query I rowsort
SELECT + 80 * - cor0.col0 FROM tab2 AS cor0
----
-560
-6240
-6320

query I rowsort
SELECT DISTINCT + col0 + - col1 * col0 AS col1 FROM tab2 AS cor0
----
-1264
-210
-4524

query I rowsort
SELECT - + 88 + col0 * col2 - - 88 FROM tab1 AS cor0
----
162
3648
7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-4711
SELECT DISTINCT 55 DIV - col2 FROM tab0 cor0
----
-1
-55
0

skipif mysql # not compatible
query I rowsort label-4711
SELECT DISTINCT 55 / - col2 FROM tab0 cor0
----
-1
-55
0

query I rowsort
SELECT + 86 AS col2 FROM tab1, tab1 cor0, tab0 AS cor1
----
27 values hashing to ed1a39c2752ca3723602e4a92c54bbc4

onlyif mysql # use DIV operator for integer division
query I rowsort label-4713
SELECT - col0 DIV col0 + + 7 - col1 * + col2 FROM tab1 AS cor0
----
-1242
-1398
-564

skipif mysql # not compatible
query I rowsort label-4713
SELECT - col0 / col0 + + 7 - col1 * + col2 FROM tab1 AS cor0
----
-1242
-1398
-564

query I rowsort
SELECT + cor0.col0 + + col2 - col2 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT DISTINCT cor0.col0 + cor0.col0 AS col1 FROM tab0, tab1 AS cor0
----
128
160
6

query I rowsort
SELECT ALL + - col2 * col0 FROM tab2 cor0
----
-189
-2028
-3002

query I rowsort
SELECT DISTINCT cor0.col0 * + col2 + - col2 FROM tab1 AS cor0
----
108
3591
7584

query I rowsort
SELECT 19 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11

query I rowsort
SELECT - 63 FROM tab1, tab0 cor0
----
9 values hashing to 5a7845ef6e239561caf9a17a28e274b5

query I rowsort
SELECT - col0 * + ( - cor0.col2 ) FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT - 43 AS col2 FROM tab1, tab0 cor0
----
9 values hashing to ab0c314d2b589ccedb9a875beeb1f86a

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4722
SELECT ALL + - col0 * - CAST( NULL AS SIGNED ) + - 38 * - col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4722
SELECT ALL + - col0 * - CAST ( NULL AS INTEGER ) + - 38 * - col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4723
SELECT - - CAST( + col2 AS SIGNED ) * col1 FROM tab1 AS cor0
----
1248
1404
570

skipif mysql # not compatible
query I rowsort label-4723
SELECT - - CAST ( + col2 AS INTEGER ) * col1 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT DISTINCT + - col2 + + col1 * col2 AS col2 FROM tab1 AS cor0
----
1152
1350
513

query I rowsort
SELECT DISTINCT + col2 + 58 FROM tab2 AS cor0
----
84
85
96

query I rowsort
SELECT ALL + ( cor0.col0 ) AS col2 FROM tab1 cor0
----
3
64
80

query I rowsort
SELECT - 36 * + col1 AS col0 FROM tab1 AS cor0
----
-360
-468
-936

query I rowsort
SELECT ALL - col0 + + 54 FROM tab2 AS cor0
----
-24
-25
47

query I rowsort
SELECT ALL - + ( + col0 ) AS col2 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT ALL 37 FROM tab1 cor0
----
37
37
37

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4731
SELECT ALL - CAST( NULL AS SIGNED ) * col1 + + col0 + + ( 31 ) * - col1 * 86 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4731
SELECT ALL - CAST ( NULL AS INTEGER ) * col1 + + col0 + + ( 31 ) * - col1 * 86 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 91 * ( - col1 * + cor0.col0 ) AS col1 FROM tab0 AS cor0
----
-187824
-308945
-737009

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4733
SELECT ALL 97 * col2 + - col1 * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4733
SELECT ALL 97 * col2 + - col1 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4734
SELECT + col2 + 35 * col2 DIV 48 FROM tab0 AS cor0
----
1
141
57

skipif mysql # not compatible
query I rowsort label-4734
SELECT + col2 + 35 * col2 / 48 FROM tab0 AS cor0
----
1
141
57

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4735
SELECT ALL + - CAST( NULL AS SIGNED ) + - col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4735
SELECT ALL + - CAST ( NULL AS INTEGER ) + - col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - + 94 * + cor0.col2 AS col0 FROM tab0 AS cor0
----
-3102
-7708
-94

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - CAST ( - col0 AS REAL ) * - col0 FROM tab1 AS cor0
----
-4096
-6400
-9

query I rowsort
SELECT DISTINCT - 98 + col1 * col1 FROM tab0 AS cor0
----
7298
8183
9311

query I rowsort
SELECT + 76 * col0 * - col0 AS col1 FROM tab1 AS cor0
----
-311296
-486400
-684

query I rowsort
SELECT 50 + tab1.col1 * - col0 FROM tab1
----
-28
-590
-990

query I rowsort
SELECT ( col2 ) * col2 + col0 AS col2 FROM tab0
----
1113
36
6813

query I rowsort
SELECT DISTINCT 35 * col0 FROM tab1
----
105
2240
2800

query I rowsort
SELECT DISTINCT 53 * - col1 FROM tab2
----
-1643
-3127
-901

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4744
SELECT DISTINCT - col2 * + CAST( NULL AS SIGNED ) - - col1 * + col0 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4744
SELECT DISTINCT - col2 * + CAST ( NULL AS INTEGER ) - - col1 * + col0 AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT col0 - + col0 AS col0 FROM tab1
----
0

query I rowsort
SELECT + col2 + col2 * + col0 FROM tab0 AS cor0
----
36
7380
825

query I rowsort
SELECT DISTINCT + col1 * 24 + 74 AS col1 FROM tab1 cor0
----
314
386
698

query I rowsort
SELECT ALL + col2 * col2 - + col0 FROM tab2 AS cor0
----
1365
598
722

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4749
SELECT ALL + + col1 * CAST( cor0.col0 AS SIGNED ) + cor0.col0 AS col2 FROM tab0 AS cor0
----
2088
3430
8188

skipif mysql # not compatible
query I rowsort label-4749
SELECT ALL + + col1 * CAST ( cor0.col0 AS INTEGER ) + cor0.col0 AS col2 FROM tab0 AS cor0
----
2088
3430
8188

query I rowsort
SELECT + col2 + + 72 AS col1 FROM tab2 AS cor0
----
110
98
99

onlyif mysql # use DIV operator for integer division
query I rowsort label-4751
SELECT ALL - col2 DIV + col1 + col2 FROM tab1 AS cor0
----
52
52
89

skipif mysql # not compatible
query I rowsort label-4751
SELECT ALL - col2 / + col1 + col2 FROM tab1 AS cor0
----
52
52
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-4752
SELECT DISTINCT + + col1 DIV col1 AS col0 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4752
SELECT DISTINCT + + col1 / col1 AS col0 FROM tab2 AS cor0
----
1

query I rowsort
SELECT + 6 * col2 * col2 + - col0 AS col0 FROM tab0
----
-29
40255
6510

onlyif mysql # use DIV operator for integer division
query I rowsort label-4754
SELECT col2 * col1 DIV 38 FROM tab0
----
196
2
74

skipif mysql # not compatible
query I rowsort label-4754
SELECT col2 * col1 / 38 FROM tab0
----
196
2
74

query I rowsort
SELECT + col0 * col0 + 81 + + col2 AS col1 FROM tab0
----
1307
690
8084

query I rowsort
SELECT + col1 * col1 + + 69 * - ( col2 ) + col2 FROM tab2
----
-2295
-875
1713

query I rowsort
SELECT DISTINCT 55 + + col1 FROM tab0
----
141
146
152

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab2 AS cor2, tab2 AS cor3
----
3645 values hashing to 8e89a67df0eeeac4bb0eedb403f6bb3e

query I rowsort
SELECT ALL + col0 * col2 + + ( + col1 + + 22 ) FROM tab1
----
210
3680
7715

query I rowsort
SELECT - col1 * - 49 + cor0.col1 AS col2 FROM tab2 AS cor0
----
1550
2950
850

query I rowsort
SELECT col1 * col2 * + col1 + col0 FROM tab0 AS cor0
----
244092
679131
9444

query I rowsort
SELECT DISTINCT + col1 + 73 FROM tab0 AS cor0
----
159
164
170

query I rowsort
SELECT DISTINCT + col2 + + 56 AS col0 FROM tab1 AS cor0
----
110
113
152

query I rowsort
SELECT - col0 * + cor0.col2 + 82 FROM tab0 AS cor0
----
-710
-7216
47

onlyif mysql # use DIV operator for integer division
query I rowsort label-4765
SELECT DISTINCT tab1.col2 DIV + tab1.col1 FROM tab1
----
2
5
7

skipif mysql # not compatible
query I rowsort label-4765
SELECT DISTINCT tab1.col2 / + tab1.col1 FROM tab1
----
2
5
7

query I rowsort
SELECT DISTINCT 22 * col1 FROM tab2
----
1298
374
682

query I rowsort
SELECT ( 55 ) AS col0 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 832128adb1ddc65c3105e29cc2c8b3a3

query I rowsort
SELECT DISTINCT - + ( 94 ) + + cor0.col2 FROM tab1, tab0 cor0
----
-12
-61
-93

query I rowsort
SELECT DISTINCT 34 + col2 AS col1 FROM tab2 AS cor0
----
60
61
72

query I rowsort
SELECT - col2 * + 57 FROM tab0 cor0
----
-1881
-4674
-57

query I rowsort
SELECT + + col1 * col2 * col0 AS col2 FROM tab0 AS cor0
----
3395
664118
68112

onlyif mysql # use DIV operator for integer division
query I rowsort label-4772
SELECT - + cor0.col0 DIV + ( - col0 ) FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4772
SELECT - + cor0.col0 / + ( - col0 ) FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT - - col0 + - col1 + + ( col1 ) AS col1 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT ALL + + col2 * ( col0 ) + - col2 AS col1 FROM tab1 AS cor0
----
108
3591
7584

onlyif mysql # use DIV operator for integer division
query I rowsort label-4775
SELECT DISTINCT + 56 * - col0 + cor0.col0 DIV + col0 FROM tab2 AS cor0
----
-391
-4367
-4423

skipif mysql # not compatible
query I rowsort label-4775
SELECT DISTINCT + 56 * - col0 + cor0.col0 / + col0 FROM tab2 AS cor0
----
-391
-4367
-4423

query I rowsort
SELECT - col1 * 89 AS col2 FROM tab2 cor0
----
-1513
-2759
-5251

query I rowsort
SELECT col1 + + 23 AS col2 FROM tab2 AS cor0
----
40
54
82

query I rowsort
SELECT + 34 + ( - col0 + - col2 ) FROM tab1 AS cor0
----
-142
-23
-87

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4779
SELECT ALL - CAST( - col2 AS SIGNED ) * col0 FROM tab2 AS cor0
----
189
2028
3002

skipif mysql # not compatible
query I rowsort label-4779
SELECT ALL - CAST ( - col2 AS INTEGER ) * col0 FROM tab2 AS cor0
----
189
2028
3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-4780
SELECT - 45 DIV + col0 - col0 * ( - col1 ) AS col0 FROM tab1 AS cor0
----
1040
63
640

skipif mysql # not compatible
query I rowsort label-4780
SELECT - 45 / + col0 - col0 * ( - col1 ) AS col0 FROM tab1 AS cor0
----
1040
63
640

query I rowsort
SELECT 37 + col1 FROM tab0 AS cor0
----
123
128
134

onlyif mysql # use DIV operator for integer division
query I rowsort label-4782
SELECT col0 DIV 18 - cor0.col2 AS col0 FROM tab0 AS cor0
----
-32
-78
0

skipif mysql # not compatible
query I rowsort label-4782
SELECT col0 / 18 - cor0.col2 AS col0 FROM tab0 AS cor0
----
-32
-78
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4783
SELECT ALL col1 + col1 * col2 DIV - tab1.col0 FROM tab1
----
-2
-442
2

skipif mysql # not compatible
query I rowsort label-4783
SELECT ALL col1 + col1 * col2 / - tab1.col0 FROM tab1
----
-2
-442
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 - + 37 col2 FROM tab1 cor0
----
-11
-24
-27

query I rowsort
SELECT col0 * cor0.col0 - + col0 FROM tab1 cor0
----
4032
6
6320

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4786
SELECT 44 * - cor0.col1 + CAST( NULL AS SIGNED ) + + col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4786
SELECT 44 * - cor0.col1 + CAST ( NULL AS INTEGER ) + + col2 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4787
SELECT ALL CAST( NULL AS SIGNED ) col0 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4787
SELECT ALL CAST ( NULL AS INTEGER ) col0 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 28 + col1 * 58 + - col1 col1 FROM tab2 cor0
----
1739
3335
941

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4789
SELECT CAST( NULL AS DECIMAL ) * - col2 * + col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4789
SELECT CAST ( NULL AS REAL ) * - col2 * + col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT col1 + col2 + - col1 AS col0 FROM tab1
----
54
57
96

query I rowsort
SELECT - col0 * col1 + 21 FROM tab1 AS cor0
----
-1019
-57
-619

onlyif mysql # use DIV operator for integer division
query I rowsort label-4792
SELECT DISTINCT + cor0.col0 DIV col2 + col1 + + col0 FROM tab1 AS cor0
----
29
75
93

skipif mysql # not compatible
query I rowsort label-4792
SELECT DISTINCT + cor0.col0 / col2 + col1 + + col0 FROM tab1 AS cor0
----
29
75
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 53 col1 FROM tab1 AS cor0
----
53
53
53

query I rowsort
SELECT ALL + col2 - cor0.col0 AS col0 FROM tab0 AS cor0
----
-34
-7
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 * - col0 + 12 col1 FROM tab1 AS cor0
----
1052
652
90

query I rowsort
SELECT + col0 * - col1 - - col0 FROM tab1 AS cor0
----
-576
-75
-960

query I rowsort
SELECT - col0 * col2 + - ( - col1 ) * col1 FROM tab0 cor0
----
6604
9374
983

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4798
SELECT ALL + CAST( + col1 AS SIGNED ) AS col2 FROM tab2
----
17
31
59

skipif mysql # not compatible
query I rowsort label-4798
SELECT ALL + CAST ( + col1 AS INTEGER ) AS col2 FROM tab2
----
17
31
59

query I rowsort
SELECT DISTINCT + 47 * col1 + + ( + col1 + col2 ) FROM tab0 cor0
----
4161
4450
4657

query I rowsort
SELECT - cor0.col2 * col0 + ( - cor0.col2 + col2 ) * col2 AS col2 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT DISTINCT 79 * - cor0.col2 + - ( + col2 ) AS col0 FROM tab1 AS cor0
----
-4320
-4560
-7680

query I rowsort
SELECT 4 * col0 FROM tab1
----
12
256
320

query I rowsort
SELECT + + 10 + + col2 * + cor0.col2 * - 42 FROM tab2 AS cor0
----
-28382
-30608
-60638

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab0.col2 - 29 * + col1 col1 FROM tab0
----
-2461
-2557
-2812

query I rowsort
SELECT - col1 * + 55 + - col2 * cor0.col0 FROM tab0 AS cor0
----
-12303
-5370
-5522

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4806
SELECT DISTINCT col1 * ( - col1 ) + - col0 - + CAST( col1 AS SIGNED ) * - col1 FROM tab2 AS cor0
----
-7
-78
-79

skipif mysql # not compatible
query I rowsort label-4806
SELECT DISTINCT col1 * ( - col1 ) + - col0 - + CAST ( col1 AS INTEGER ) * - col1 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT DISTINCT - - col0 - - col1 AS col2 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT ALL 27 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + ( + ( + col1 ) * col1 + + 65 ) col0 FROM tab0 AS cor0
----
7547
8437
9571

query I rowsort
SELECT DISTINCT - 99 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
-99

onlyif mysql # use DIV operator for integer division
query I rowsort label-4811
SELECT DISTINCT - - col1 - - col1 DIV + col2 FROM tab1 AS cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-4811
SELECT DISTINCT - - col1 - - col1 / + col2 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT + + col2 + col0 * col1 FROM tab2 cor0
----
1381
244
4628

query I rowsort
SELECT DISTINCT - ( - col2 ) + + col1 FROM tab2
----
55
58
85

query I rowsort
SELECT DISTINCT ( cor0.col1 ) + cor0.col1 FROM tab1, tab2, tab0 AS cor0, tab0
----
172
182
194

onlyif mysql # use DIV operator for integer division
query I rowsort label-4815
SELECT DISTINCT col0 DIV + col2 + col0 + 88 * - col0 FROM tab0
----
-2088
-3010
-7742

skipif mysql # not compatible
query I rowsort label-4815
SELECT DISTINCT col0 / + col2 + col0 + 88 * - col0 FROM tab0
----
-2088
-3010
-7742

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 52 * 13 col2 FROM tab2
----
676
676
676

query I rowsort
SELECT 57 * - col1 AS col0 FROM tab1
----
-1482
-570
-741

query I rowsort
SELECT + ( + 12 ) * col2 FROM tab2 AS cor0
----
312
324
456

onlyif mysql # use DIV operator for integer division
query I rowsort label-4819
SELECT + 99 - col2 DIV col1 AS col2 FROM tab1 AS cor0
----
92
94
97

skipif mysql # not compatible
query I rowsort label-4819
SELECT + 99 - col2 / col1 AS col2 FROM tab1 AS cor0
----
92
94
97

query I rowsort
SELECT 96 * + col1 * - ( 62 ) AS col0 FROM tab0 AS cor0
----
-511872
-541632
-577344

query I rowsort
SELECT ALL + col0 * + col0 * col2 FROM tab0 AS cor0
----
1225
19008
649522

query I rowsort
SELECT + 41 + - col2 * 75 FROM tab2 AS cor0
----
-1909
-1984
-2809

query I rowsort
SELECT col2 * - col0 + + col0 AS col0 FROM tab2 AS cor0
----
-182
-1950
-2923

query I rowsort
SELECT - ( col2 ) + col2 + col0 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT - 15 * + col1 AS col1 FROM tab1 AS cor0
----
-150
-195
-390

query I rowsort
SELECT ALL col1 * + col1 AS col1 FROM tab2 cor0
----
289
3481
961

query I rowsort
SELECT + ( 69 + col1 ) FROM tab1
----
79
82
95

query I rowsort
SELECT - 69 + + col2 AS col1 FROM tab1 AS cor0
----
-12
-15
27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * col2 + 68 * col2 * - col0 col1 FROM tab2 AS cor0
----
-12015
-136370
-203490

query I rowsort
SELECT 27 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 1a3cef5c33b8f87ffeded378fd207753

query I rowsort
SELECT 36 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 4d1892e880125dc90345721151acb22c

onlyif mysql # use DIV operator for integer division
query I rowsort label-4832
SELECT ALL col2 * col1 DIV 52 AS col1 FROM tab1
----
10
24
27

skipif mysql # not compatible
query I rowsort label-4832
SELECT ALL col2 * col1 / 52 AS col1 FROM tab1
----
10
24
27

query I rowsort
SELECT ALL 31 FROM tab0, tab0 cor0, tab1 AS cor1
----
27 values hashing to c3c6f92f0ca72d71793339f88a57e336

query I rowsort
SELECT - cor0.col2 + - col1 + + 80 AS col0 FROM tab0 AS cor0
----
-18
-39
-93

query I rowsort
SELECT - cor0.col1 + cor0.col0 * col2 AS col0 FROM tab1 AS cor0
----
136
3638
7667

query I rowsort
SELECT DISTINCT + - cor0.col0 * - col0 FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT - 47 * + cor0.col2 AS col2 FROM tab0 AS cor0
----
-1551
-3854
-47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + col1 + - 63 col1 FROM tab1 AS cor0
----
-110
-146
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 * - 56 * col0 col0 FROM tab1 AS cor0
----
-35840
-4368
-58240

onlyif mysql # use DIV operator for integer division
query I rowsort label-4840
SELECT - + col2 DIV 32 + 32 * + col2 + - col1 * col1 AS col0 FROM tab1 AS cor0
----
1051
1723
2900

skipif mysql # not compatible
query I rowsort label-4840
SELECT - + col2 / 32 + 32 * + col2 + - col1 * col1 AS col0 FROM tab1 AS cor0
----
1051
1723
2900

onlyif mysql # use DIV operator for integer division
query I rowsort label-4841
SELECT - - col1 * col0 DIV 46 FROM tab2 AS cor0
----
100
29
4

skipif mysql # not compatible
query I rowsort label-4841
SELECT - - col1 * col0 / 46 FROM tab2 AS cor0
----
100
29
4

query I rowsort
SELECT 87 AS col2 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 8661ffbd1a72897c495405c53b816e50

onlyif mysql # use DIV operator for integer division
query I rowsort label-4843
SELECT DISTINCT - tab0.col0 + + col1 DIV 82 AS col0 FROM tab0
----
-23
-34
-88

skipif mysql # not compatible
query I rowsort label-4843
SELECT DISTINCT - tab0.col0 + + col1 / 82 AS col0 FROM tab0
----
-23
-34
-88

query I rowsort
SELECT ALL 11 + col1 FROM tab1
----
21
24
37

query I rowsort
SELECT + 97 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to c73fa6978df8525c99d6bc792bb27123

query I rowsort
SELECT ALL - cor0.col1 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6

query I rowsort
SELECT 70 + col0 FROM tab2
----
148
149
77

query I rowsort
SELECT + col1 + col0 * - 20 AS col2 FROM tab2
----
-109
-1501
-1563

query I rowsort
SELECT - ( 18 ) * + col1 FROM tab0 cor0
----
-1548
-1638
-1746

query I rowsort
SELECT ALL - cor0.col2 - + 99 FROM tab1 AS cor0
----
-153
-156
-195

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4851
SELECT DISTINCT + CAST( NULL AS DECIMAL ) / col0 + cor0.col2 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4851
SELECT DISTINCT + CAST ( NULL AS REAL ) / col0 + cor0.col2 AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL - + 86 * col1 - col0 FROM tab0 AS cor0
----
-7420
-7915
-8377

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4853
SELECT DISTINCT CAST( NULL AS SIGNED ) * - col0 col2 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4853
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - col0 col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4854
SELECT ALL - ( + col0 ) * col2 - + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4854
SELECT ALL - ( + col0 ) * col2 - + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 + - col0 * col2 AS col1 FROM tab0 cor0
----
-34
-7216
-759

query I rowsort
SELECT DISTINCT cor0.col2 + + col0 * col2 AS col2 FROM tab2 AS cor0
----
2054
216
3040

query I rowsort
SELECT + + col2 - - col1 * col0 * ( + col0 ) AS col1 FROM tab2 AS cor0
----
106135
1546
358982

query I rowsort
SELECT DISTINCT + 81 * + col1 + + cor0.col2 FROM tab0 AS cor0
----
6999
7453
7858

query I rowsort
SELECT DISTINCT - + col2 * + cor0.col0 - + cor0.col1 FROM tab1 cor0
----
-188
-3658
-7693

onlyif mysql # use DIV operator for integer division
query I rowsort label-4860
SELECT + col1 + col0 DIV col0 FROM tab0 AS cor0
----
87
92
98

skipif mysql # not compatible
query I rowsort label-4860
SELECT + col1 + col0 / col0 FROM tab0 AS cor0
----
87
92
98

query I rowsort
SELECT ALL col2 + 40 * - col0 AS col1 FROM tab2 AS cor0
----
-253
-3094
-3122

query I rowsort
SELECT DISTINCT + 75 * col2 * col0 + + col1 FROM tab0 AS cor0
----
2722
547441
59486

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4863
SELECT ALL + CAST( col2 AS SIGNED ) * col0 + + col1 FROM tab0 AS cor0
----
132
7389
878

skipif mysql # not compatible
query I rowsort label-4863
SELECT ALL + CAST ( col2 AS INTEGER ) * col0 + + col1 FROM tab0 AS cor0
----
132
7389
878

query I rowsort
SELECT DISTINCT ( 31 ) + + cor0.col1 AS col1 FROM tab0 AS cor0
----
117
122
128

query I rowsort
SELECT - 88 * 13 * - col0 AS col1 FROM tab1 AS cor0
----
3432
73216
91520

query I rowsort
SELECT ALL - col1 * + col2 - + col2 FROM tab0 AS cor0
----
-2871
-7544
-98

query I rowsort
SELECT ALL + col1 + 37 * col1 FROM tab1 AS cor0
----
380
494
988

query I rowsort
SELECT + 44 * 88 AS col2 FROM tab0 AS cor0
----
3872
3872
3872

query I rowsort
SELECT ALL 39 * 16 FROM tab2 AS cor0
----
624
624
624

query I rowsort
SELECT ALL - col2 + 27 AS col1 FROM tab2
----
-11
0
1

query I rowsort
SELECT DISTINCT 85 + col0 AS col1 FROM tab1
----
149
165
88

query I rowsort
SELECT + cor1.col1 FROM tab2, tab2 cor0 CROSS JOIN tab0, tab1, tab1 AS cor1
----
243 values hashing to de2705ff0bb8b4f714dafb07497c6119

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4873
SELECT + CAST( 12 AS SIGNED ) col2 FROM tab1, tab2 AS cor0
----
9 values hashing to d4f5a8e032294c3b9342821617800972

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4873
SELECT + CAST ( 12 AS INTEGER ) col2 FROM tab1, tab2 AS cor0
----
9 values hashing to d4f5a8e032294c3b9342821617800972

query I rowsort
SELECT ALL col1 + - ( + 23 + col1 ) AS col1 FROM tab2
----
-23
-23
-23

query I rowsort
SELECT + + 88 + + 39 * - col1 AS col2 FROM tab2 AS cor0
----
-1121
-2213
-575

onlyif mysql # use DIV operator for integer division
query I rowsort label-4876
SELECT col0 DIV 11 AS col2 FROM tab0
----
2
3
8

skipif mysql # not compatible
query I rowsort label-4876
SELECT col0 / 11 AS col2 FROM tab0
----
2
3
8

query I rowsort
SELECT ALL + col2 * col2 * + col0 AS col2 FROM tab2 AS cor0
----
114076
5103
52728

query I rowsort
SELECT ALL + tab0.col0 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT + - cor0.col2 * - cor0.col2 + - cor0.col2 * col2 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ( + tab0.col0 + tab0.col2 ) FROM tab0
----
171
36
57

query I rowsort
SELECT ALL - 90 FROM tab2, tab0 AS cor0
----
9 values hashing to f6f26b9a04da14807208b93d507095c5

query I rowsort
SELECT col0 * col2 * - cor0.col2 + + col0 AS col2 FROM tab0 AS cor0
----
-26112
-598347
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col1 ) + col0 * - 37 col2 FROM tab1 AS cor0
----
-2358
-2947
-85

onlyif mysql # use DIV operator for integer division
query I rowsort label-4884
SELECT - 48 + col1 DIV + col0 AS col1 FROM tab0 cor0
----
-45
-46
-47

skipif mysql # not compatible
query I rowsort label-4884
SELECT - 48 + col1 / + col0 AS col1 FROM tab0 cor0
----
-45
-46
-47

query I rowsort
SELECT - - col0 * 54 + cor0.col1 AS col1 FROM tab1 AS cor0
----
188
3466
4333

query I rowsort
SELECT ALL - col0 * + col2 + col2 AS col0 FROM tab1 AS cor0
----
-108
-3591
-7584

query I rowsort
SELECT DISTINCT cor0.col0 * - cor0.col0 FROM tab1 AS cor0
----
-4096
-6400
-9

onlyif mysql # use DIV operator for integer division
query I rowsort label-4888
SELECT + col0 + - col2 DIV ( col0 ) AS col1 FROM tab2 AS cor0
----
4
78
79

skipif mysql # not compatible
query I rowsort label-4888
SELECT + col0 + - col2 / ( col0 ) AS col1 FROM tab2 AS cor0
----
4
78
79

query I rowsort
SELECT ( col1 ) * - ( + 2 * col0 + - col0 ) AS col2 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT DISTINCT - col0 * - col1 + col0 * - 52 AS col0 FROM tab1 cor0
----
-2688
-3120
-78

query I rowsort
SELECT DISTINCT + col1 + - col0 + + cor0.col2 AS col0 FROM tab1 AS cor0
----
29
3
77

query I rowsort
SELECT ALL - + col0 + + col1 * - 87 FROM tab2 AS cor0
----
-1558
-2704
-5211

query I rowsort
SELECT DISTINCT col0 * - col0 + - 76 * cor0.col0 FROM tab1 AS cor0
----
-12480
-237
-8960

query I rowsort
SELECT + col2 + 97 FROM tab2 cor0
----
123
124
135

query I rowsort
SELECT + - col0 + cor0.col1 - - col1 FROM tab2 cor0
----
-45
40
55

onlyif mysql # use DIV operator for integer division
query I rowsort label-4896
SELECT + - cor0.col0 DIV + col1 AS col0 FROM tab1 AS cor0
----
-6
-6
0

skipif mysql # not compatible
query I rowsort label-4896
SELECT + - cor0.col0 / + col1 AS col0 FROM tab1 AS cor0
----
-6
-6
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4897
SELECT ALL - col1 DIV + 70 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4897
SELECT ALL - col1 / + 70 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT col0 + cor0.col2 * col1 AS col0 FROM tab2 cor0
----
1612
725
844

query I rowsort
SELECT + col1 - 46 FROM tab2
----
-15
-29
13

query I rowsort
SELECT DISTINCT - col0 + + col1 * + col1 FROM tab0 AS cor0
----
7372
8192
9374

query I rowsort
SELECT ALL + + col1 + col1 AS col2 FROM tab1 AS cor0
----
20
26
52

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4902
SELECT DISTINCT col1 + CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4902
SELECT DISTINCT col1 + CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL

query I rowsort
SELECT DISTINCT - - cor0.col0 * col2 AS col1 FROM tab1 cor0
----
162
3648
7680

query I rowsort
SELECT ALL + 19 FROM tab1, tab0 AS cor0
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11

query I rowsort
SELECT ALL + + col0 * 40 AS col2 FROM tab2 AS cor0
----
280
3120
3160

query I rowsort
SELECT - cor0.col2 + - col2 * + col0 FROM tab0 cor0
----
-36
-7380
-825

query I rowsort
SELECT col2 * - 81 AS col2 FROM tab0
----
-2673
-6642
-81

query I rowsort
SELECT col0 * - 85 AS col1 FROM tab2
----
-595
-6630
-6715

query I rowsort
SELECT DISTINCT 53 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
53

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4910
SELECT - CAST( NULL AS DECIMAL ) AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-4910
SELECT - CAST ( NULL AS REAL ) AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT + + col1 * + col2 + col2 AS col0 FROM tab1 AS cor0
----
1344
1458
627

query I rowsort
SELECT cor0.col0 * 54 FROM tab2, tab0 AS cor0
----
9 values hashing to 08085e5dd776fd51fb3fc0cc67f23f39

query I rowsort
SELECT DISTINCT - 82 * col0 AS col0 FROM tab0 AS cor0
----
-1968
-2870
-7298

query I rowsort
SELECT ALL + - cor0.col2 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 44fdcd7cd603352d4d127811d164cc1e

query I rowsort
SELECT ALL col1 * col2 * + ( + tab0.col2 ) AS col1 FROM tab0
----
611884
93654
97

query I rowsort
SELECT DISTINCT ( + col2 ) + col1 + - ( - col0 * col0 ) FROM tab0 AS cor0
----
1323
695
8094

query I rowsort
SELECT DISTINCT + 38 * col0 + - col2 AS col1 FROM tab1 AS cor0
----
2375
2944
60

query I rowsort
SELECT ALL col0 * + cor0.col1 + + col0 AS col1 FROM tab2 AS cor0
----
1422
224
4680

query I rowsort
SELECT ALL + - col0 * cor0.col1 AS col2 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT + - col0 * col0 + + col1 AS col1 FROM tab2 AS cor0
----
-18
-6025
-6224

query I rowsort
SELECT DISTINCT + - cor0.col2 + col1 AS col1 FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT DISTINCT + 75 * - col0 FROM tab0 AS cor0
----
-1800
-2625
-6675

query I rowsort
SELECT + ( col2 ) * + 1 + + cor0.col1 + - col1 * - col2 FROM tab2 AS cor0
----
1619
701
895

query I rowsort
SELECT ALL - col2 + col0 * col1 AS col1 FROM tab1 AS cor0
----
24
583
944

query I rowsort
SELECT ALL + 98 + col0 AS col2 FROM tab2 cor0
----
105
176
177

query I rowsort
SELECT ALL + ( - col1 ) - + col2 * - col2 * col2 FROM tab1
----
157438
185183
884723

query I rowsort
SELECT DISTINCT 67 + + col0 - - tab2.col1 AS col1 FROM tab2
----
105
163
204

query I rowsort
SELECT ALL + 21 - + col1 FROM tab2
----
-10
-38
4

query I rowsort
SELECT - + col1 * + col0 + ( + col0 + col1 ) * col1 AS col0 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT ALL - ( cor0.col2 ) + col0 * col0 + col2 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT ALL + + col1 * - col0 * + col0 + - 69 FROM tab2 cor0
----
-106166
-1588
-359025

query I rowsort
SELECT ALL + 90 - col0 FROM tab2 AS cor0
----
11
12
83

query I rowsort
SELECT DISTINCT 97 * col1 + col2 * col0 * + col2 FROM tab0
----
34478
607263
9444

query I rowsort
SELECT ALL + - cor0.col0 + 16 * + col0 * + col0 FROM tab1 cor0
----
102320
141
65472

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 + + ( - col0 ) col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT col1 * + col1 + ( + col0 + col1 ) FROM tab2
----
3618
385
999

query I rowsort
SELECT DISTINCT - tab0.col1 * + tab0.col0 * 55 + + 35 * col2 AS col0 FROM tab0
----
-112365
-186690
-442575

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4938
SELECT + CAST( - 59 AS SIGNED ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 1e6537c922fa953e0fd2f59430803703

skipif mysql # not compatible
query I rowsort label-4938
SELECT + CAST ( - 59 AS INTEGER ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 1e6537c922fa953e0fd2f59430803703

query I rowsort
SELECT - 19 * 67 - - col1 FROM tab1 AS cor0
----
-1247
-1260
-1263

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4940
SELECT - CAST( - col1 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-4940
SELECT - CAST ( - col1 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT DISTINCT - ( + ( cor0.col1 ) ) + + col0 FROM tab0 AS cor0
----
-2
-62

query I rowsort
SELECT + 95 AS col1 FROM tab1, tab2 cor0
----
9 values hashing to e57d8ed879dfd04d04aae87725c970d3

query I rowsort
SELECT ALL + 47 * 73 FROM tab2 AS cor0
----
3431
3431
3431

query I rowsort
SELECT - 57 + cor1.col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f41c64d25ec7341d02148486707c2da6

onlyif mysql # use DIV operator for integer division
query I rowsort label-4945
SELECT ( 94 ) DIV col1 FROM tab1
----
3
7
9

skipif mysql # not compatible
query I rowsort label-4945
SELECT ( 94 ) / col1 FROM tab1
----
3
7
9

query I rowsort
SELECT - 21 + cor0.col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 26135b9a5b3e82773d41193544dd382e

query I rowsort
SELECT - col0 * 69 + + col1 FROM tab2
----
-452
-5323
-5434

query I rowsort
SELECT col1 + 54 FROM tab1
----
64
67
80

query I rowsort
SELECT - col0 - - col2 * + col2 * - col1 AS col0 FROM tab1
----
-119888
-32554
-75819

query I rowsort
SELECT + - 11 * + col1 - col0 FROM tab1 AS cor0
----
-174
-223
-289

query I rowsort
SELECT ALL 96 * col1 AS col0 FROM tab0 AS cor0
----
8256
8736
9312

query I rowsort
SELECT ALL - 15 * - tab1.col2 * + col2 + col1 FROM tab1
----
138253
43766
48745

query I rowsort
SELECT ALL + 71 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0

query I rowsort
SELECT + - cor0.col1 * col1 + - col2 FROM tab0 cor0
----
-7429
-8363
-9410

onlyif mysql # use DIV operator for integer division
query I rowsort label-4955
SELECT DISTINCT - col2 * + col1 + col0 * - 44 * - col1 + + col2 DIV 17 AS col2 FROM tab0 cor0
----
149283
348898
87979

skipif mysql # not compatible
query I rowsort label-4955
SELECT DISTINCT - col2 * + col1 + col0 * - 44 * - col1 + + col2 / 17 AS col2 FROM tab0 cor0
----
149283
348898
87979

onlyif mysql # use DIV operator for integer division
query I rowsort label-4956
SELECT ALL 42 + col2 DIV col0 FROM tab2
----
42
42
45

skipif mysql # not compatible
query I rowsort label-4956
SELECT ALL 42 + col2 / col0 FROM tab2
----
42
42
45

query I rowsort
SELECT DISTINCT + cor0.col0 * col0 - 42 FROM tab0 AS cor0
----
1183
534
7879

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 56 * col1 col0 FROM tab1 AS cor0
----
-1456
-560
-728

query I rowsort
SELECT ALL + 63 * - cor0.col2 FROM tab1 AS cor0
----
-3402
-3591
-6048

query I rowsort
SELECT - col1 * - ( col0 ) + col1 FROM tab2
----
1360
248
4661

query I rowsort
SELECT 19 AS col1 FROM tab1, tab1 cor0
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11

query I rowsort
SELECT DISTINCT + - col0 * + 61 + col2 FROM tab0 AS cor0
----
-1431
-2134
-5347

onlyif mysql # use DIV operator for integer division
query I rowsort label-4963
SELECT cor0.col0 DIV 30 AS col2 FROM tab2 cor0
----
0
2
2

skipif mysql # not compatible
query I rowsort label-4963
SELECT cor0.col0 / 30 AS col2 FROM tab2 cor0
----
0
2
2

query I rowsort
SELECT DISTINCT + col0 * + ( + col2 ) FROM tab1 AS cor0
----
162
3648
7680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4965
SELECT + CAST( + ( col0 ) AS SIGNED ) * col0 + + col2 AS col1 FROM tab0 AS cor0
----
1226
609
8003

skipif mysql # not compatible
query I rowsort label-4965
SELECT + CAST ( + ( col0 ) AS INTEGER ) * col0 + + col2 AS col1 FROM tab0 AS cor0
----
1226
609
8003

query I rowsort
SELECT DISTINCT col2 + 48 FROM tab0 cor0
----
130
49
81

query I rowsort
SELECT ALL + col1 + + col0 - + col0 FROM tab0 AS cor0
----
86
91
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-4968
SELECT ALL + col2 DIV col1 + col1 FROM tab2 AS cor0
----
19
31
59

skipif mysql # not compatible
query I rowsort label-4968
SELECT ALL + col2 / col1 + col1 FROM tab2 AS cor0
----
19
31
59

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4969
SELECT + CAST( + 78 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
78
78
78

skipif mysql # not compatible
query I rowsort label-4969
SELECT + CAST ( + 78 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
78
78
78

query I rowsort
SELECT ALL + - 52 + + col2 * - col1 FROM tab0 AS cor0
----
-149
-2890
-7514

query I rowsort
SELECT + 59 + col2 * col2 FROM tab1 AS cor0
----
2975
3308
9275

query I rowsort
SELECT DISTINCT + 56 FROM tab2, tab2 AS cor0
----
56

query I rowsort
SELECT cor0.col1 + 59 * col0 FROM tab0 AS cor0
----
1502
2162
5342

query I rowsort
SELECT + 81 * + col0 AS col1 FROM tab1 AS cor0
----
243
5184
6480

query I rowsort
SELECT + - col2 * 99 * col0 FROM tab2 AS cor0
----
-18711
-200772
-297198

query I rowsort
SELECT + col0 - col2 * col0 FROM tab1 AS cor0
----
-159
-3584
-7600

query I rowsort
SELECT - col1 * + ( col1 ) - col0 FROM tab2 AS cor0
----
-3559
-368
-968

query I rowsort
SELECT cor0.col2 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT ALL - + 83 FROM tab2, tab1, tab0 AS cor0, tab0
----
81 values hashing to 291feef3dca992d41fad4b2f7ab1ab9e

onlyif mysql # use DIV operator for integer division
query I rowsort label-4980
SELECT ALL tab1.col0 DIV + 29 FROM tab1
----
0
2
2

skipif mysql # not compatible
query I rowsort label-4980
SELECT ALL tab1.col0 / + 29 FROM tab1
----
0
2
2

query I rowsort
SELECT DISTINCT tab2.col0 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
7
78
79

query I rowsort
SELECT - + col0 - col2 FROM tab2 cor0
----
-104
-117
-34

query I rowsort
SELECT ALL - + ( + 9 ) * col0 FROM tab1 AS cor0
----
-27
-576
-720

query I rowsort
SELECT DISTINCT - cor0.col2 * 50 FROM tab0 cor0
----
-1650
-4100
-50

query I rowsort
SELECT DISTINCT + - col0 * cor0.col1 AS col1 FROM tab2 AS cor0
----
-1343
-217
-4602

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4986
SELECT CAST( - 56 AS SIGNED ) + + col0 FROM tab0 AS cor0
----
-21
-32
33

skipif mysql # not compatible
query I rowsort label-4986
SELECT CAST ( - 56 AS INTEGER ) + + col0 FROM tab0 AS cor0
----
-21
-32
33

query I rowsort
SELECT + 77 - 53 AS col0 FROM tab1, tab2 cor0
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * col1 * col0 col0 FROM tab0
----
-118825
-49536
-720811

onlyif mysql # use DIV operator for integer division
query I rowsort label-4989
SELECT col2 - col1 DIV + 80 col2 FROM tab0
----
0
32
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4989
SELECT col2 - col1 / + 80 col2 FROM tab0
----
0
32
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 - + col2 * + col0 col2 FROM tab2
----
-182
-1950
-2923

query I rowsort
SELECT ALL 88 * col0 FROM tab0
----
2112
3080
7832

query I rowsort
SELECT + ( - col1 * col0 ) + 51 FROM tab0
----
-2013
-3344
-8048

query I rowsort
SELECT + 96 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303

query I rowsort
SELECT - ( - ( - col0 ) ) AS col2 FROM tab0
----
-24
-35
-89

query I rowsort
SELECT ALL 28 * 99 AS col0 FROM tab1
----
2772
2772
2772

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col0 * - col2 + + 43 * + cor0.col2 col1 FROM tab1 AS cor0
----
11808
2484
6099

query I rowsort
SELECT + col0 + col0 * + 8 FROM tab2 AS cor0
----
63
702
711

query I rowsort
SELECT ALL 99 - - col0 * 46 AS col2 FROM tab1 AS cor0
----
237
3043
3779

query I rowsort
SELECT - + col0 + - col0 * 95 AS col2 FROM tab0 AS cor0
----
-2304
-3360
-8544

query I rowsort
SELECT DISTINCT + ( - col1 ) * - 82 * - col2 AS col2 FROM tab0
----
-232716
-611884
-7954

query I rowsort
SELECT ALL + 88 AS col1 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to c46e7cf9bf516fdfde88534336a28177

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2 cor0, tab1, tab1 cor1
----
972 values hashing to fe55095fff3a5ecc2f113d14a8c6f823

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab0 AS cor2, tab0 AS cor3
----
3645 values hashing to 181d902c42955a43a374f13a73d8b0a1

query I rowsort
SELECT + col0 * col1 * - col2 FROM tab0 AS cor0
----
-3395
-664118
-68112

query I rowsort
SELECT + col1 * - 82 AS col0 FROM tab1 AS cor0
----
-1066
-2132
-820

query I rowsort
SELECT DISTINCT - - col0 * + cor0.col1 AS col1 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT ALL col1 + ( col0 + - col0 ) AS col1 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT + col0 * 72 * col0 FROM tab1 cor0
----
294912
460800
648

query I rowsort
SELECT DISTINCT - - col1 + + cor0.col0 * col2 AS col2 FROM tab1 AS cor0
----
188
3658
7693

query I rowsort
SELECT - cor0.col0 + col1 * - cor0.col2 AS col0 FROM tab0 AS cor0
----
-132
-2862
-7551

query I rowsort
SELECT DISTINCT col2 + - 6 AS col0 FROM tab0 AS cor0
----
-5
27
76

query I rowsort
SELECT + col0 + + cor0.col1 * - col1 FROM tab1 cor0
----
-36
-673
-89

query I rowsort
SELECT + 69 + col1 * + col0 AS col2 FROM tab2 AS cor0
----
1412
286
4671

query I rowsort
SELECT + 88 * + col2 AS col1 FROM tab1 AS cor0
----
4752
5016
8448

query I rowsort
SELECT - - 41 * 16 + - cor0.col0 * + col0 * ( - col0 ) AS col1 FROM tab1 AS cor0
----
262800
512656
683

skipif mysql # not compatible
query I rowsort
SELECT + - cor0.col2 + col1 * + CAST ( + col2 AS REAL ) FROM tab2 AS cor0
----
1508
608
810

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + col0 col2 FROM tab0 cor0
----
35
7298
792

query I rowsort
SELECT + 7 * col1 AS col0 FROM tab0 cor0
----
602
637
679

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5019
SELECT ALL - ( - col2 ) / + CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5019
SELECT ALL - ( - col2 ) / + CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col1 * col2 + - 88 FROM tab1 AS cor0
----
1160
1316
482

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5021
SELECT - col1 * CAST( - col2 * - col2 AS SIGNED ) - col2 FROM tab2 AS cor0
----
-22626
-24586
-39910

skipif mysql # not compatible
query I rowsort label-5021
SELECT - col1 * CAST ( - col2 * - col2 AS INTEGER ) - col2 FROM tab2 AS cor0
----
-22626
-24586
-39910

query I rowsort
SELECT DISTINCT + cor0.col0 * - col0 + + col1 FROM tab1 AS cor0
----
-4086
-6387
17

query I rowsort
SELECT DISTINCT + + col2 * + ( + ( col2 ) ) AS col0 FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT + col2 - 37 AS col0 FROM tab1 AS cor0
----
17
20
59

query I rowsort
SELECT DISTINCT + + cor0.col1 * 85 * cor0.col1 FROM tab1 AS cor0
----
14365
57460
8500

onlyif mysql # use DIV operator for integer division
query I rowsort label-5026
SELECT ALL + col2 DIV - ( + 32 * col2 ) AS col0 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5026
SELECT ALL + col2 / - ( + 32 * col2 ) AS col0 FROM tab1 cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5027
SELECT + col0 + + 10 - + col1 DIV col0 FROM tab0 AS cor0
----
31
43
98

skipif mysql # not compatible
query I rowsort label-5027
SELECT + col0 + + 10 - + col1 / col0 FROM tab0 AS cor0
----
31
43
98

query I rowsort
SELECT - col1 * col2 + cor0.col0 - - col2 FROM tab0 AS cor0
----
-2781
-61
-7291

query I rowsort
SELECT DISTINCT - cor0.col1 + col2 AS col1 FROM tab2 AS cor0
----
-33
-4
21

query I rowsort
SELECT DISTINCT col1 * - ( - col1 ) FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT DISTINCT + + col2 * col1 * + col0 + col1 AS col2 FROM tab2 AS cor0
----
119711
51051
5890

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5032
SELECT ALL - col2 * - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5032
SELECT ALL - col2 * - CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5033
SELECT + col1 DIV cor0.col1 - ( col2 ) * + 60 AS col1 FROM tab2 AS cor0
----
-1559
-1619
-2279

skipif mysql # not compatible
query I rowsort label-5033
SELECT + col1 / cor0.col1 - ( col2 ) * + 60 AS col1 FROM tab2 AS cor0
----
-1559
-1619
-2279

query I rowsort
SELECT - col1 + col0 * - col2 AS col1 FROM tab0 AS cor0
----
-132
-7389
-878

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5035
SELECT DISTINCT col2 * CAST( 77 AS SIGNED ) + col0 FROM tab2 AS cor0
----
2080
2086
3005

skipif mysql # not compatible
query I rowsort label-5035
SELECT DISTINCT col2 * CAST ( 77 AS INTEGER ) + col0 FROM tab2 AS cor0
----
2080
2086
3005

query I rowsort
SELECT + col1 * 5 AS col1 FROM tab1 AS cor0
----
130
50
65

query I rowsort
SELECT + 3 * + col1 * col2 AS col2 FROM tab2 AS cor0
----
1938
2511
4602

query I rowsort
SELECT DISTINCT + - 4 FROM tab2 AS cor0
----
-4

query I rowsort
SELECT + + ( ( cor0.col0 ) ) * 27 FROM tab1 AS cor0
----
1728
2160
81

query I rowsort
SELECT DISTINCT - 9 * 57 FROM tab1 AS cor0
----
-513

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col2 col2 FROM tab1, tab1 cor0, tab0 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT DISTINCT + ( col2 ) * cor0.col2 AS col2 FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT + + 80 + ( + col0 ) FROM tab0 AS cor0
----
104
115
169

query I rowsort
SELECT DISTINCT tab1.col1 + - 82 - tab1.col1 AS col2 FROM tab1
----
-82

query I rowsort
SELECT 4 AS col0 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 730dff78e83112374961ea711f98ebaa

onlyif mysql # use DIV operator for integer division
query I rowsort label-5046
SELECT ALL - col1 + col0 DIV + col1 + ( + cor0.col0 ) AS col2 FROM tab2 AS cor0
----
-24
20
66

skipif mysql # not compatible
query I rowsort label-5046
SELECT ALL - col1 + col0 / + col1 + ( + cor0.col0 ) AS col2 FROM tab2 AS cor0
----
-24
20
66

query I rowsort
SELECT ALL - + col0 + col0 * col2 * - col0 + - col1 AS col0 FROM tab1 AS cor0
----
-233546
-515
-614493

onlyif mysql # use DIV operator for integer division
query I rowsort label-5048
SELECT DISTINCT + col0 DIV + col1 + col0 * - col1 - col1 * ( col1 ) col2 FROM tab1 AS cor0
----
-1203
-734
-754

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5048
SELECT DISTINCT + col0 / + col1 + col0 * - col1 - col1 * ( col1 ) col2 FROM tab1 AS cor0
----
-1203
-734
-754

query I rowsort
SELECT ALL 1 * - col1 + + 72 FROM tab2 AS cor0
----
13
41
55

query I rowsort
SELECT DISTINCT + col1 * col2 + + col2 - - col0 FROM tab1 AS cor0
----
1424
1461
691

onlyif mysql # use DIV operator for integer division
query I rowsort label-5051
SELECT + col2 - - ( + ( cor0.col1 ) ) DIV - ( col2 ) AS col2 FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-5051
SELECT + col2 - - ( + ( cor0.col1 ) ) / - ( col2 ) AS col2 FROM tab1 AS cor0
----
54
57
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5052
SELECT ALL cor0.col1 + - CAST( col1 AS SIGNED ) FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5052
SELECT ALL cor0.col1 + - CAST ( col1 AS INTEGER ) FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + col1 + 18 AS col2 FROM tab2 AS cor0
----
35
49
77

query I rowsort
SELECT ALL + cor0.col0 + col1 + - col1 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT - tab1.col2 * + col0 + + col1 FROM tab1
----
-136
-3638
-7667

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 17 col1 FROM tab2
----
17
17
17

query I rowsort
SELECT DISTINCT + col1 * col2 + + 98 FROM tab0 AS cor0
----
195
2936
7560

query I rowsort
SELECT + 67 + - col1 * 55 AS col2 FROM tab1
----
-1363
-483
-648

query I rowsort
SELECT + col1 * col2 + tab1.col0 FROM tab1
----
1328
1407
634

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( 56 ) col1 FROM tab0, tab1 AS cor0
----
56

query I rowsort
SELECT DISTINCT col0 + col0 * - ( - col0 ) FROM tab2
----
56
6162
6320

query I rowsort
SELECT - col1 + col0 + + col0 * col0 FROM tab0
----
1163
514
7919

onlyif mysql # use DIV operator for integer division
query I rowsort label-5063
SELECT + col2 DIV - 63 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-5063
SELECT + col2 / - 63 FROM tab1
----
-1
0
0

query I rowsort
SELECT ALL 23 * tab2.col2 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to abfa7adc878b672857b09ebcf62b532b

query I rowsort
SELECT ALL + col0 + + col0 AS col1 FROM tab1 AS cor0
----
128
160
6

query I rowsort
SELECT DISTINCT col2 + 90 AS col1 FROM tab1 AS cor0
----
144
147
186

query I rowsort
SELECT DISTINCT + cor0.col2 * + col1 * cor0.col1 + + col2 + col1 AS col0 FROM tab0 AS cor0
----
244187
679215
9507

query I rowsort
SELECT 14 + ( cor0.col2 ) FROM tab2, tab0 AS cor0
----
9 values hashing to d107aa96343b3d78e57ffa34e791fbbd

onlyif mysql # use DIV operator for integer division
query I rowsort label-5069
SELECT DISTINCT - col2 * col1 + cor0.col2 DIV + col2 AS col2 FROM tab1 AS cor0
----
-1247
-1403
-569

skipif mysql # not compatible
query I rowsort label-5069
SELECT DISTINCT - col2 * col1 + cor0.col2 / + col2 AS col2 FROM tab1 AS cor0
----
-1247
-1403
-569

query I rowsort
SELECT ALL col2 + + 52 FROM tab2
----
78
79
90

query I rowsort
SELECT ALL 74 + - ( col2 + - col0 ) AS col2 FROM tab0
----
108
65
81

query I rowsort
SELECT + - cor0.col2 + - col0 AS col0 FROM tab2 AS cor0
----
-104
-117
-34

onlyif mysql # use DIV operator for integer division
query I rowsort label-5073
SELECT DISTINCT 84 + - 32 DIV + col0 FROM tab0
----
83
84

skipif mysql # not compatible
query I rowsort label-5073
SELECT DISTINCT 84 + - 32 / + col0 FROM tab0
----
83
84

query I rowsort
SELECT ALL col2 + col0 * col0 AS col2 FROM tab0
----
1226
609
8003

query I rowsort
SELECT DISTINCT 62 * tab1.col2 + - col0 FROM tab1
----
3345
3470
5872

query I rowsort
SELECT ALL + col2 * tab2.col0 + col1 FROM tab2
----
2087
220
3019

query I rowsort
SELECT 93 + col1 AS col2 FROM tab2 AS cor0
----
110
124
152

query I rowsort
SELECT - col0 * + col2 + + tab1.col2 * + 55 * tab1.col1 AS col1 FROM tab1
----
27702
60960
77058

query I rowsort
SELECT ALL + 25 * tab2.col1 * col2 FROM tab2
----
16150
20925
38350

query I rowsort
SELECT ALL - - col2 * + col1 AS col0 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT ALL - ( col1 ) * 28 AS col2 FROM tab0 cor0
----
-2408
-2548
-2716

query I rowsort
SELECT DISTINCT + col2 + - cor0.col2 AS col2 FROM tab0 AS cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5083
SELECT ALL - - cor0.col1 DIV - col1 + cor0.col2 * 77 AS col0 FROM tab0 AS cor0
----
2540
6313
76

skipif mysql # not compatible
query I rowsort label-5083
SELECT ALL - - cor0.col1 / - col1 + cor0.col2 * 77 AS col0 FROM tab0 AS cor0
----
2540
6313
76

query I rowsort
SELECT ALL 33 * col2 AS col0 FROM tab0 AS cor0
----
1089
2706
33

query I rowsort
SELECT - col0 + - cor0.col0 AS col1 FROM tab0 cor0
----
-178
-48
-70

query I rowsort
SELECT DISTINCT + 51 * + col1 + 46 FROM tab2 AS cor0
----
1627
3055
913

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 36 * + col0 col1 FROM tab2 AS cor0
----
252
2808
2844

query I rowsort
SELECT + cor0.col1 + - col2 + - col1 AS col2 FROM tab0 AS cor0
----
-1
-33
-82

onlyif mysql # use DIV operator for integer division
query I rowsort label-5089
SELECT DISTINCT col1 DIV 45 FROM tab0
----
1
2

skipif mysql # not compatible
query I rowsort label-5089
SELECT DISTINCT col1 / 45 FROM tab0
----
1
2

query I rowsort
SELECT 89 + + cor0.col2 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 5137c331462b967fa21805d7c5fcf0fd

query I rowsort
SELECT - - ( + col1 ) AS col1 FROM tab2 cor0
----
17
31
59

query I rowsort
SELECT - - col1 + + col2 AS col0 FROM tab2 cor0
----
55
58
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 97 col1 FROM tab1
----
-97

query I rowsort
SELECT + col0 + - 88 * - col1 FROM tab0 AS cor0
----
7592
8097
8571

query I rowsort
SELECT ALL + 95 + - col1 * - col1 AS col1 FROM tab1
----
195
264
771

query I rowsort
SELECT 76 + + tab2.col1 * + ( - tab2.col1 ) FROM tab2
----
-213
-3405
-885

query I rowsort
SELECT DISTINCT col0 + col2 * + col1 * + 10 AS col1 FROM tab0
----
1005
28404
74709

query I rowsort
SELECT ALL cor0.col1 - col0 * + col1 AS col0 FROM tab0 AS cor0
----
-1978
-3298
-8008

query I rowsort
SELECT ALL - + col0 * - col2 + col1 * col1 FROM tab2 AS cor0
----
1150
3291
5509

query I rowsort
SELECT DISTINCT - + cor0.col1 * cor0.col0 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT + + tab2.col0 AS col1 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

query I rowsort
SELECT DISTINCT + + 0 + - col0 AS col2 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT + - 83 * - 76 + + col1 AS col1 FROM tab1 AS cor0
----
6318
6321
6334

query I rowsort
SELECT + - 33 AS col0 FROM tab2 cor0
----
-33
-33
-33

query I rowsort
SELECT ALL - 67 * - cor0.col0 - col1 FROM tab1 AS cor0
----
175
4278
5347

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT - CAST ( - col1 AS REAL ) col2 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT ALL + col0 + col0 * - cor0.col2 AS col0 FROM tab0 AS cor0
----
-7209
-768
0

query I rowsort
SELECT DISTINCT 67 * - 90 AS col0 FROM tab1, tab2 cor0
----
-6030

query I rowsort
SELECT - col0 * - col2 + col2 - + col1 FROM tab0
----
-61
7289
739

query I rowsort
SELECT col0 * 52 FROM tab0
----
1248
1820
4628

query I rowsort
SELECT - col2 * - 82 FROM tab2
----
2132
2214
3116

query I rowsort
SELECT - 61 * + 40 FROM tab1, tab2 AS cor0
----
9 values hashing to 998e3d15d381f9a7699947d7a4050ae1

query I rowsort
SELECT DISTINCT - ( + 13 ) FROM tab2
----
-13

query I rowsort
SELECT + col2 * + cor0.col0 AS col0 FROM tab1 cor0
----
162
3648
7680

query I rowsort
SELECT DISTINCT - ( - 55 ) + - col1 * - ( col1 ) AS col0 FROM tab2 AS cor0
----
1016
344
3536

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5116
SELECT + col0 + - col2 * + col1 * 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-5116
SELECT + col0 + - col2 * + col1 * CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 37 * col1 + - cor0.col0 * col0 col1 FROM tab1 AS cor0
----
-3726
-5919
953

query I rowsort
SELECT ( - col1 ) * - col0 FROM tab1 cor0
----
1040
640
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-5119
SELECT ( col2 ) DIV - col1 AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5119
SELECT ( col2 ) / - col1 AS col0 FROM tab0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5120
SELECT col0 + + cor0.col2 + + CAST( NULL AS DECIMAL ) 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-5120
SELECT col0 + + cor0.col2 + + CAST ( NULL AS REAL ) col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 * col1 + - 43 AS col2 FROM tab2 AS cor0
----
246
3438
918

query I rowsort
SELECT - col1 * col0 * - ( + col0 * - col0 ) FROM tab2 AS cor0
----
-10633
-27998568
-8381663

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5123
SELECT - col0 + CAST( NULL AS SIGNED ) * cor0.col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5123
SELECT - col0 + CAST ( NULL AS INTEGER ) * cor0.col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5124
SELECT + + col2 * + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5124
SELECT + + col2 * + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 + col2 + 69 * - tab0.col2 FROM tab0
----
-2158
-5485
29

onlyif mysql # use DIV operator for integer division
query I rowsort label-5126
SELECT + col0 DIV + col0 col1 FROM tab0 AS cor0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5126
SELECT + col0 / + col0 col1 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT 22 + tab0.col1 FROM tab0, tab1 AS cor0
----
9 values hashing to ecc40f22db3be52650304cd9d3449cc4

query I rowsort
SELECT - tab2.col1 - col0 * + col2 AS col1 FROM tab2
----
-2087
-220
-3019

query I rowsort
SELECT DISTINCT - 32 AS col1 FROM tab2, tab2 AS cor0
----
-32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 81 col0 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 0a85639e0dddbffdab2cb16b027cb360

query I rowsort
SELECT ALL + 69 FROM tab0, tab0 AS cor0
----
9 values hashing to 85d9b90a03b9def161891b13085271f7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5132
SELECT + CAST( + col0 AS SIGNED ) AS col0 FROM tab0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-5132
SELECT + CAST ( + col0 AS INTEGER ) AS col0 FROM tab0
----
24
35
89

query I rowsort
SELECT 17 + tab1.col1 AS col1 FROM tab1
----
27
30
43

onlyif mysql # use DIV operator for integer division
query I rowsort label-5134
SELECT col0 * col1 + tab1.col1 + + 67 DIV col2 AS col2 FROM tab1
----
105
1053
651

skipif mysql # not compatible
query I rowsort label-5134
SELECT col0 * col1 + tab1.col1 + + 67 / col2 AS col2 FROM tab1
----
105
1053
651

query I rowsort
SELECT ALL - 78 + col0 FROM tab2
----
-71
0
1

query I rowsort
SELECT ALL + 43 - col2 FROM tab1 AS cor0
----
-11
-14
-53

query I rowsort
SELECT ALL 76 + col0 * - 73 * + col2 AS col2 FROM tab2
----
-13721
-147968
-219070

query I rowsort
SELECT ALL + - 12 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to e698dd57d3aac30af14ce35da434bb45

onlyif mysql # use DIV operator for integer division
query I rowsort label-5139
SELECT ALL - - col0 * col1 + cor0.col2 DIV col2 FROM tab0 cor0
----
2065
3396
8100

skipif mysql # not compatible
query I rowsort label-5139
SELECT ALL - - col0 * col1 + cor0.col2 / col2 FROM tab0 cor0
----
2065
3396
8100

query I rowsort
SELECT DISTINCT + col1 * + col2 + - col0 AS col1 FROM tab1 AS cor0
----
1168
1401
506

query I rowsort
SELECT col2 * cor0.col0 + - col0 AS col2 FROM tab1 AS cor0
----
159
3584
7600

query I rowsort
SELECT ALL + + ( col2 ) * col1 + 45 AS col0 FROM tab2 cor0
----
1579
691
882

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5143
SELECT - CAST( 31 AS SIGNED ) FROM tab1, tab2 AS cor0
----
9 values hashing to f4b05206ee2fc0cf8007d9c3514885fa

skipif mysql # not compatible
query I rowsort label-5143
SELECT - CAST ( 31 AS INTEGER ) FROM tab1, tab2 AS cor0
----
9 values hashing to f4b05206ee2fc0cf8007d9c3514885fa

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + 31 col0 FROM tab1
----
127
85
88

query I rowsort
SELECT - col1 * 41 - col2 FROM tab0
----
-3559
-3813
-3978

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab0.col2 + cor0.col0 col2 FROM tab0, tab2 AS cor0
----
9 values hashing to f9524de6b4589f5113ca4b5c855b9642

query I rowsort
SELECT DISTINCT col2 + + ( - col1 ) AS col2 FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT cor0.col0 + 15 + 44 AS col2 FROM tab2 AS cor0
----
137
138
66

query I rowsort
SELECT DISTINCT - col0 + col2 * - 17 FROM tab2 AS cor0
----
-466
-520
-725

query I rowsort
SELECT DISTINCT col2 + ( + col0 ) FROM tab1 cor0
----
121
176
57

query I rowsort
SELECT DISTINCT - cor0.col0 + - 53 * col1 FROM tab0 cor0
----
-4582
-4912
-5176

query I rowsort
SELECT + col2 + - 63 AS col1 FROM tab1 AS cor0
----
-6
-9
33

query I rowsort
SELECT + - col0 * - 22 + col2 + - col0 FROM tab2 AS cor0
----
1664
1697
174

query I rowsort
SELECT - col2 + ( - col1 ) AS col2 FROM tab0 cor0
----
-119
-173
-98

query I rowsort
SELECT ALL + ( + ( - col2 ) ) - + col2 AS col1 FROM tab1 AS cor0
----
-108
-114
-192

query I rowsort
SELECT + ( 6 ) FROM tab2 AS cor0
----
6
6
6

query I rowsort
SELECT ALL cor0.col0 + col2 * col1 * + col2 AS col1 FROM tab2 AS cor0
----
22606
24627
39962

skipif mysql # not compatible
query I rowsort
SELECT - CAST ( + col1 AS REAL ) FROM tab2 AS cor0
----
-17
-31
-59

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5159
SELECT DISTINCT + CAST( NULL AS DECIMAL ) + 94 * col2 col2 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5159
SELECT DISTINCT + CAST ( NULL AS REAL ) + 94 * col2 col2 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( 81 ) + - col0 * + col2 col1 FROM tab0 AS cor0
----
-116
-7379
-873

query I rowsort
SELECT DISTINCT + - 76 * - 2 * + col1 FROM tab1 AS cor0
----
1520
1976
3952

query I rowsort
SELECT + 91 * - cor0.col2 * cor0.col1 FROM tab1 cor0
----
-113568
-127764
-51870

query I rowsort
SELECT - - 34 * col0 AS col2 FROM tab2 AS cor0
----
238
2652
2686

query I rowsort
SELECT ALL col2 * col0 * - cor0.col0 + col1 + ( - col0 ) AS col1 FROM tab2 cor0
----
-1299
-158203
-237220

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 66 col2 FROM tab2
----
66
66
66

query I rowsort
SELECT - - 96 * col0 + - col1 AS col1 FROM tab0 AS cor0
----
2218
3263
8453

query I rowsort
SELECT - + col1 + 84 FROM tab2 AS cor0
----
25
53
67

query I rowsort
SELECT - col1 * - cor0.col0 + col1 FROM tab2 AS cor0
----
1360
248
4661

onlyif mysql # use DIV operator for integer division
query I rowsort label-5169
SELECT - + col0 DIV 87 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5169
SELECT - + col0 / 87 FROM tab2 cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * - col1 + - cor0.col2 col0 FROM tab1 AS cor0
----
24
583
944

query I rowsort
SELECT + + ( - 29 ) FROM tab1 cor0
----
-29
-29
-29

query I rowsort
SELECT - ( + col0 ) + - col1 AS col2 FROM tab0 AS cor0
----
-110
-132
-180

query I rowsort
SELECT cor0.col0 + + col2 * + col1 AS col1 FROM tab0 AS cor0
----
132
2862
7551

query I rowsort
SELECT DISTINCT - - col2 * - cor0.col0 + 59 FROM tab2 AS cor0
----
-130
-1969
-2943

query I rowsort
SELECT cor0.col1 - col1 * - 99 FROM tab0 AS cor0
----
8600
9100
9700

skipif mysql # not compatible
query I rowsort
SELECT ALL col2 + - col1 / CAST ( - col1 AS REAL ) FROM tab2
----
27
28
39

query I rowsort
SELECT - 9 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to caf28657beb43049740febe1fa9ded5a

query I rowsort
SELECT tab0.col0 + - 72 FROM tab0
----
-37
-48
17

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5179
SELECT col0 + - CAST( - 74 AS SIGNED ) * tab0.col1 * - col1 + - col1 col2 FROM tab0
----
-547366
-612796
-696328

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5179
SELECT col0 + - CAST ( - 74 AS INTEGER ) * tab0.col1 * - col1 + - col1 col2 FROM tab0
----
-547366
-612796
-696328

query I rowsort
SELECT + col0 + + col2 + col0 * - ( 54 ) FROM tab0 AS cor0
----
-1239
-1854
-4635

query I rowsort
SELECT - col2 * 9 + + ( + tab0.col1 * 31 ) AS col2 FROM tab0
----
2083
2369
2998

query I rowsort
SELECT col1 * 46 * 37 AS col1 FROM tab2
----
100418
28934
52762

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5183
SELECT DISTINCT + col1 + - col1 * + ( - col0 ) - CAST( + col2 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
1322
221
4635

skipif mysql # not compatible
query I rowsort label-5183
SELECT DISTINCT + col1 + - col1 * + ( - col0 ) - CAST ( + col2 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
1322
221
4635

query I rowsort
SELECT ALL col1 * + 41 FROM tab2 AS cor0
----
1271
2419
697

query I rowsort
SELECT - 21 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to cdcb40c9e1bb9a33ce9167a0d2bac0b1

query I rowsort
SELECT cor0.col0 * - cor0.col1 AS col0 FROM tab0 cor0
----
-2064
-3395
-8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - - tab0.col0 col2 FROM tab0
----
178
48
70

query I rowsort
SELECT col2 * + ( col0 ) FROM tab1 AS cor0
----
162
3648
7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-5189
SELECT DISTINCT - col1 DIV - 52 AS col1 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-5189
SELECT DISTINCT - col1 / - 52 AS col1 FROM tab1 cor0
----
0

query I rowsort
SELECT ALL + col2 + + ( col2 ) * - col0 AS col1 FROM tab1 AS cor0
----
-108
-3591
-7584

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 * 87 col1 FROM tab2 AS cor0
----
-609
-6786
-6873

query I rowsort
SELECT DISTINCT + 74 AS col0 FROM tab0, tab2 AS cor0
----
74

query I rowsort
SELECT + 51 * - 67 * cor0.col2 - - ( col0 ) * col0 FROM tab0 AS cor0
----
-112185
-2192
-272273

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 88 * + col0 col1 FROM tab1 AS cor0
----
-264
-5632
-7040

query I rowsort
SELECT ALL ( + col0 ) * col2 FROM tab1
----
162
3648
7680

query I rowsort
SELECT ( col1 ) + + cor0.col1 AS col0 FROM tab1 AS cor0
----
20
26
52

query I rowsort
SELECT + - cor0.col0 * - col0 * - col2 FROM tab2 AS cor0
----
-1323
-158184
-237158

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5198
SELECT col2 * + col1 * - CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5198
SELECT col2 * + col1 * - CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - 17 * - col1 * + col1 AS col2 FROM tab1 AS cor0
----
-11492
-1700
-2873

query I rowsort
SELECT + col2 * - cor0.col2 + + ( + col0 ) FROM tab1 AS cor0
----
-2913
-3185
-9136

query I rowsort
SELECT - 52 * col1 * - col2 AS col2 FROM tab2 AS cor0
----
33592
43524
79768

query I rowsort
SELECT DISTINCT - ( + col1 * col2 ) AS col0 FROM tab2
----
-1534
-646
-837

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab1.col2 col2 FROM tab1, tab0 cor0
----
54
57
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-5204
SELECT + CAST( 64 AS SIGNED ) DIV + col0 FROM tab2
----
0
0
9

skipif mysql # not compatible
query I rowsort label-5204
SELECT + CAST ( 64 AS INTEGER ) / + col0 FROM tab2
----
0
0
9

query I rowsort
SELECT DISTINCT + 76 FROM tab2, tab0 cor0
----
76

query I rowsort
SELECT DISTINCT col0 + - tab1.col1 + - 59 FROM tab1
----
-5
-82
8

query I rowsort
SELECT ALL - cor0.col0 + col1 * ( col2 * col2 + - ( - col1 ) ) FROM tab2 cor0
----
23553
24758
43287

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 * cor0.col1 + ( + col2 ) col2 FROM tab2 AS cor0
----
1381
244
4628

query I rowsort
SELECT DISTINCT + ( col2 ) + - 73 * + cor0.col1 AS col0 FROM tab0 AS cor0
----
-6245
-6561
-7080

query I rowsort
SELECT DISTINCT cor0.col1 + col2 * ( - col1 ) FROM tab0 AS cor0
----
-2752
-7371
0

query I rowsort
SELECT DISTINCT - + 3 + cor0.col1 * col1 AS col0 FROM tab2 AS cor0
----
286
3478
958

query I rowsort
SELECT + col1 * ( 8 ) + - cor0.col1 + col1 FROM tab0 AS cor0
----
688
728
776

query I rowsort
SELECT 78 * col0 AS col1 FROM tab2
----
546
6084
6162

query I rowsort
SELECT DISTINCT + col0 * 15 AS col1 FROM tab0 AS cor0
----
1335
360
525

query I rowsort
SELECT col2 + cor0.col0 + + col0 FROM tab0 AS cor0
----
260
71
81

query I rowsort
SELECT col0 + ( + col0 ) AS col1 FROM tab1 cor0
----
128
160
6

onlyif mysql # use DIV operator for integer division
query I rowsort label-5217
SELECT - + col0 DIV col1 + + col2 * + col2 AS col0 FROM tab1 AS cor0
----
2916
3243
9210

skipif mysql # not compatible
query I rowsort label-5217
SELECT - + col0 / col1 + + col2 * + col2 AS col0 FROM tab1 AS cor0
----
2916
3243
9210

query I rowsort
SELECT DISTINCT + col2 + - cor0.col2 AS col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT col0 * - col2 + col0 FROM tab2
----
-182
-1950
-2923

query I rowsort
SELECT DISTINCT 28 + - col1 AS col1 FROM tab0
----
-58
-63
-69

query I rowsort
SELECT DISTINCT ( - col2 ) * 29 * - col0 + + col0 - + ( + col1 ) FROM tab2
----
5457
58831
87120

query I rowsort
SELECT - 21 - col1 FROM tab2
----
-38
-52
-80

query I rowsort
SELECT ALL col2 + ( + col1 ) AS col0 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT ALL + col1 + 97 AS col2 FROM tab2 AS cor0
----
114
128
156

query I rowsort
SELECT DISTINCT + cor0.col1 * col1 + + col1 AS col0 FROM tab0 cor0
----
7482
8372
9506

query I rowsort
SELECT ALL - - col1 * - col1 + - col0 AS col0 FROM tab1 AS cor0
----
-164
-249
-679

query I rowsort
SELECT DISTINCT col1 + col0 - col2 AS col2 FROM tab1 AS cor0
----
-25
-3
17

query I rowsort
SELECT - 53 * + cor0.col1 AS col1 FROM tab1 AS cor0
----
-1378
-530
-689

query I rowsort
SELECT - - 81 * + ( - col1 + col2 ) FROM tab2 cor0
----
-2673
-324
1701

query I rowsort
SELECT ALL 23 * + 86 + - col2 * + 73 + col1 FROM tab2 AS cor0
----
-779
139
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + - col0 col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - 96 AS col2 FROM tab0, tab0 AS cor0 CROSS JOIN tab2, tab1 AS cor1
----
81 values hashing to 5c66f1deb3d2ed61020ac982642dd7b2

query I rowsort
SELECT col2 * - 38 FROM tab0
----
-1254
-3116
-38

query I rowsort
SELECT - - ( ( col1 ) ) * col0 AS col0 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT - col1 / col1 AS col2 FROM tab1 WHERE ( + col1 ) IN ( col0 )
----

query I rowsort
SELECT col1 FROM tab2 WHERE NOT col1 = NULL
----

query I rowsort
SELECT ALL - col1 * - tab1.col2 AS col1 FROM tab1
----
1248
1404
570

query III rowsort
SELECT * FROM tab0 WHERE NOT - col1 > NULL
----

query I rowsort
SELECT DISTINCT + col2 * - tab0.col2 + col0 FROM tab0 WHERE NOT ( col0 ) NOT IN ( - tab0.col2 * col0 * - col2 )
----
34

query I rowsort
SELECT DISTINCT - col2 * - col0 + col0 AS col0 FROM tab2
----
196
2106
3081

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + tab2.col1 + + col2 col1 FROM tab2
----
144
72
89

query I rowsort
SELECT ALL - col0 * + col2 + + col2 AS col2 FROM tab2
----
-162
-2002
-2964

query I rowsort
SELECT col0 + col2 * col2 + col0 FROM tab2
----
1602
743
832

onlyif mysql # use DIV operator for integer division
query I rowsort label-5244
SELECT - col2 DIV tab1.col0 + tab1.col1 - col0 AS col1 FROM tab1
----
-54
-68
5

skipif mysql # not compatible
query I rowsort label-5244
SELECT - col2 / tab1.col0 + tab1.col1 - col0 AS col1 FROM tab1
----
-54
-68
5

query I rowsort
SELECT - col1 * + tab2.col1 AS col1 FROM tab2
----
-289
-3481
-961

query I rowsort
SELECT - col2 + col2 * col0 AS col1 FROM tab0
----
34
7216
759

query I rowsort
SELECT - col0 + col0 * col1 + + col0 AS col2 FROM tab0
----
2064
3395
8099

query I rowsort
SELECT + tab2.col2 + - col0 FROM tab2
----
-41
-52
20

query I rowsort
SELECT ALL - col0 * + col0 - col0 AS col0 FROM tab0
----
-1260
-600
-8010

query I rowsort
SELECT + tab1.col0 - col0 * col2 AS col0 FROM tab1
----
-159
-3584
-7600

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 col2 FROM tab0 WHERE NULL < + col2
----

query I rowsort
SELECT col1 FROM tab1 WHERE NULL NOT IN ( - col2 * tab1.col1 )
----

query III rowsort
SELECT * FROM tab0 WHERE + col0 <> col1 * - col2
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

query I rowsort
SELECT DISTINCT - col0 * tab0.col1 - - col2 FROM tab0
----
-2031
-3394
-8017

query I rowsort
SELECT ALL col0 - + col1 * + col0 FROM tab1
----
-576
-75
-960

query I rowsort
SELECT - col2 * col2 + col0 * - tab0.col1 AS col0 FROM tab0
----
-14823
-3153
-3396

query I rowsort
SELECT ALL + col2 + col0 * col1 + tab0.col1 * + tab0.col2 AS col0 FROM tab0
----
15643
3493
4935

query I rowsort
SELECT DISTINCT + col2 + col1 AS col0 FROM tab0 WHERE NOT col0 <> col2
----

query I rowsort
SELECT ALL col0 + + cor0.col1 + + col1 FROM tab0 cor0
----
196
229
271

query I rowsort
SELECT DISTINCT + tab2.col1 + - col1 AS col1 FROM tab2
----
0

query I rowsort
SELECT - col1 FROM tab2 AS cor0 WHERE NOT col2 * - col2 + col1 <> col0 - + col2
----

query I rowsort
SELECT - tab0.col1 + tab0.col1 * + tab0.col2 FROM tab0
----
0
2752
7371

query I rowsort
SELECT ALL col2 AS col2 FROM tab1 WHERE NULL NOT IN ( col0 / col2 )
----

query I rowsort
SELECT tab1.col2 + - col1 FROM tab1 WHERE + col1 NOT IN ( - col2 / - col0 )
----
28
47
83

query I rowsort
SELECT ALL + col0 * col2 + + col2 * col2 AS col2 FROM tab2
----
2704
4446
918

query I rowsort
SELECT col0 * + col1 + col1 FROM tab0
----
2150
3492
8190

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * col1 + cor0.col0 col2 FROM tab0 AS cor0
----
2088
3430
8188

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL >= ( NULL )
----

query I rowsort
SELECT ALL - 74 AS col2 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 5a477330c946251f814fbbfd08e77c28

query I rowsort
SELECT ALL + col2 * 14 FROM tab2 AS cor0
----
364
378
532

query I rowsort
SELECT - - col2 + - 36 AS col2 FROM tab0 AS cor0
----
-3
-35
46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * + cor0.col2 col0 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT DISTINCT col1 + + 81 * col2 FROM tab2 cor0
----
2165
2218
3095

query I rowsort
SELECT ALL + cor0.col2 + col1 * + 17 FROM tab2 AS cor0
----
1029
327
554

query I rowsort
SELECT + col0 + - ( 30 ) AS col0 FROM tab0 AS cor0
----
-6
5
59

query I rowsort
SELECT ALL col1 * ( - col0 ) FROM tab0 AS cor0
----
-2064
-3395
-8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-5277
SELECT DISTINCT - col1 DIV 20 AS col0 FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-5277
SELECT DISTINCT - col1 / 20 AS col0 FROM tab1
----
-1
0

query I rowsort
SELECT - - cor0.col0 + col2 * col0 AS col2 FROM tab1 cor0
----
165
3712
7760

query I rowsort
SELECT DISTINCT - + cor0.col1 * 95 AS col1 FROM tab0 AS cor0
----
-8170
-8645
-9215

query I rowsort
SELECT + cor0.col1 + + col0 + + 79 AS col1 FROM tab0 AS cor0
----
189
211
259

query I rowsort
SELECT - col1 * 40 + col1 * - col2 AS col1 FROM tab0 AS cor0
----
-11102
-3977
-6278

query I rowsort
SELECT ALL col0 * + ( + 38 ) AS col0 FROM tab1 AS cor0
----
114
2432
3040

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5283
SELECT + CAST( col2 AS SIGNED ) col2 FROM tab1 AS cor0
----
54
57
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5283
SELECT + CAST ( col2 AS INTEGER ) col2 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT - cor0.col0 * - cor0.col0 FROM tab2 cor0
----
49
6084
6241

query I rowsort
SELECT ALL + 16 + 40 FROM tab2 AS cor0
----
56
56
56

query I rowsort
SELECT DISTINCT - col1 + col0 * col0 + - col1 * cor0.col1 FROM tab1 AS cor0
----
-693
3986
6218

query I rowsort
SELECT tab0.col2 * 62 FROM tab0
----
2046
5084
62

query I rowsort
SELECT + + 67 + 63 + cor0.col2 FROM tab0 AS cor0
----
131
163
212

query I rowsort
SELECT ALL + 47 + - col0 + col1 AS col0 FROM tab2 AS cor0
----
-15
28
71

onlyif mysql # use DIV operator for integer division
query I rowsort label-5290
SELECT tab2.col1 DIV - col1 AS col1 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5290
SELECT tab2.col1 / - col1 AS col1 FROM tab2
----
-1
-1
-1

query I rowsort
SELECT ALL - + col1 * + col2 * - 50 AS col2 FROM tab0 AS cor0
----
141900
373100
4850

query I rowsort
SELECT DISTINCT + + col0 + col2 * ( col2 * + col0 ) + col1 FROM tab0 AS cor0
----
167
26246
598616

query I rowsort
SELECT - + col2 + ( - col0 ) * col1 AS col1 FROM tab0 AS cor0
----
-2097
-3396
-8181

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5294
SELECT + 70 * col0 + + CAST( col0 AS SIGNED ) + + col0 AS col2 FROM tab2
----
504
5616
5688

skipif mysql # not compatible
query I rowsort label-5294
SELECT + 70 * col0 + + CAST ( col0 AS INTEGER ) + + col0 AS col2 FROM tab2
----
504
5616
5688

query I rowsort
SELECT - ( - cor0.col0 ) FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

query I rowsort
SELECT col2 * + col2 + tab1.col2 FROM tab1
----
2970
3306
9312

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5297
SELECT + cor0.col0 / col0 + + col1 * + cor0.col0 * + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5297
SELECT + cor0.col0 / col0 + + col1 * + cor0.col0 * + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 + - col2 * - col2 + col2 FROM tab2 cor0
----
1444
676
729

query I rowsort
SELECT 45 + + col2 * col1 * col0 + + col0 AS col1 FROM tab2
----
119775
51158
5911

query I rowsort
SELECT - col2 + + col0 + + 25 * col0 AS col0 FROM tab0
----
2232
591
909

query I rowsort
SELECT ALL + col2 + col1 + col1 * 51 FROM tab0
----
4505
4814
5045

query I rowsort
SELECT + ( tab0.col0 ) + + col2 * 93 FROM tab0
----
128
3093
7715

query I rowsort
SELECT ALL - col0 * col2 + + col2 FROM tab0 AS cor0
----
-34
-7216
-759

query I rowsort
SELECT 45 + col0 * col0 * - col1 AS col2 FROM tab2 AS cor0
----
-106052
-1474
-358911

query I rowsort
SELECT DISTINCT col0 * 15 AS col2 FROM tab2
----
105
1170
1185

query I rowsort
SELECT DISTINCT + col0 * - tab0.col0 * - 20 AS col1 FROM tab0
----
11520
158420
24500

onlyif mysql # use DIV operator for integer division
query I rowsort label-5307
SELECT + col0 DIV + ( col1 ) FROM tab1
----
0
6
6

skipif mysql # not compatible
query I rowsort label-5307
SELECT + col0 / + ( col1 ) FROM tab1
----
0
6
6

onlyif mysql # use DIV operator for integer division
query I rowsort label-5308
SELECT DISTINCT - col1 DIV - col1 + col0 col0 FROM tab1
----
4
65
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5308
SELECT DISTINCT - col1 / - col1 + col0 col0 FROM tab1
----
4
65
81

query I rowsort
SELECT - col1 * 9 AS col2 FROM tab1
----
-117
-234
-90

query I rowsort
SELECT 48 * - 13 + + col1 * - col2 FROM tab1
----
-1194
-1872
-2028

query I rowsort
SELECT 2 + ( col1 ) AS col1 FROM tab2
----
19
33
61

query I rowsort
SELECT DISTINCT + cor0.col2 FROM tab2, tab0, tab1 AS cor0
----
54
57
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-5313
SELECT - 45 DIV cor0.col0 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to ddd50927fa396c85f2c59e6367167145

skipif mysql # not compatible
query I rowsort label-5313
SELECT - 45 / cor0.col0 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to ddd50927fa396c85f2c59e6367167145

onlyif mysql # use DIV operator for integer division
query I rowsort label-5314
SELECT DISTINCT col2 DIV - 83 AS col0 FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-5314
SELECT DISTINCT col2 / - 83 AS col0 FROM tab1
----
-1
0

query I rowsort
SELECT - 96 * cor0.col2 FROM tab2 AS cor0
----
-2496
-2592
-3648

query I rowsort
SELECT + ( col1 * - col1 ) - + col1 FROM tab2
----
-306
-3540
-992

query I rowsort
SELECT 58 + tab1.col0 FROM tab1
----
122
138
61

query I rowsort
SELECT DISTINCT ( col1 ) * col2 FROM tab1
----
1248
1404
570

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5319
SELECT col0 * col0 + + CAST( NULL AS SIGNED ) * col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5319
SELECT col0 * col0 + + CAST ( NULL AS INTEGER ) * col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 * - col2 * col0 + - ( + tab2.col0 ) AS col1 FROM tab2
----
1316
158106
237079

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 * + col2 col2 FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT - col1 * - col2 - + col1 FROM tab1 AS cor0
----
1235
1378
560

query I rowsort
SELECT + col1 * cor0.col1 - + 76 * + col2 * col2 FROM tab0 AS cor0
----
-502743
-75368
9333

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + ( 12 ) col2 FROM tab0 AS cor0
----
-12
-23
-77

query I rowsort
SELECT + col1 * ( col2 ) + + col1 FROM tab0 AS cor0
----
194
2924
7553

query I rowsort
SELECT cor0.col1 * + ( col2 ) + - col2 * - col2 AS col2 FROM tab2 AS cor0
----
1566
2090
2210

onlyif mysql # use DIV operator for integer division
query I rowsort label-5327
SELECT ALL + tab1.col2 DIV col1 AS col2 FROM tab1
----
2
5
7

skipif mysql # not compatible
query I rowsort label-5327
SELECT ALL + tab1.col2 / col1 AS col2 FROM tab1
----
2
5
7

query I rowsort
SELECT col1 + - col0 * tab2.col2 AS col2 FROM tab2
----
-158
-1969
-2985

query I rowsort
SELECT ALL + tab0.col2 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8

query I rowsort
SELECT ALL + col0 * + col1 AS col0 FROM tab0
----
2064
3395
8099

query I rowsort
SELECT ALL col1 + col1 AS col2 FROM tab2 cor0
----
118
34
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-5332
SELECT + col2 * cor0.col0 DIV - col1 AS col1 FROM tab1 AS cor0
----
-364
-590
-6

skipif mysql # not compatible
query I rowsort label-5332
SELECT + col2 * cor0.col0 / - col1 AS col1 FROM tab1 AS cor0
----
-364
-590
-6

query I rowsort
SELECT DISTINCT + col2 * - col0 + col0 AS col1 FROM tab0 AS cor0
----
-7209
-768
0

query I rowsort
SELECT - - col1 * - col0 - + col0 AS col2 FROM tab1 cor0
----
-1120
-704
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * + cor0.col0 col1 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT - - cor0.col1 - col0 FROM tab1 cor0
----
-54
-67
23

onlyif mysql # use DIV operator for integer division
query I rowsort label-5337
SELECT col2 * - col2 + col0 * col1 DIV - cor0.col2 FROM tab0 AS cor0
----
-1151
-3396
-6822

skipif mysql # not compatible
query I rowsort label-5337
SELECT col2 * - col2 + col0 * col1 / - cor0.col2 FROM tab0 AS cor0
----
-1151
-3396
-6822

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col0 * - cor0.col2 + - col0 col1 FROM tab0 AS cor0
----
-70
-7387
-816

query I rowsort
SELECT ALL - - col0 * - col0 * + col2 - + col0 FROM tab0 AS cor0
----
-1260
-19032
-649611

query I rowsort
SELECT - col2 * - col0 + + cor0.col1 FROM tab2 AS cor0
----
2087
220
3019

query I rowsort
SELECT DISTINCT - - col2 * col1 AS col1 FROM tab0 cor0
----
2838
7462
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 * col0 col1 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT ALL tab0.col0 * col2 * - col0 FROM tab0
----
-1225
-19008
-649522

query I rowsort
SELECT + col1 * + cor0.col0 + + col0 - + col2 * + col0 FROM tab0 AS cor0
----
1296
3395
890

onlyif mysql # use DIV operator for integer division
query I rowsort label-5345
SELECT col2 DIV + col1 - col1 AS col2 FROM tab1 AS cor0
----
-24
-5
-6

skipif mysql # not compatible
query I rowsort label-5345
SELECT col2 / + col1 - col1 AS col2 FROM tab1 AS cor0
----
-24
-5
-6

onlyif mysql # use DIV operator for integer division
query I rowsort label-5346
SELECT + col2 DIV - cor0.col0 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-5346
SELECT + col2 / - cor0.col0 FROM tab0 AS cor0
----
-1
0
0

query I rowsort
SELECT + cor0.col1 * + cor0.col2 * + col1 AS col2 FROM tab2 cor0
----
10982
25947
90506

query I rowsort
SELECT 78 + - col0 AS col0 FROM tab2 AS cor0
----
-1
0
71

query I rowsort
SELECT DISTINCT - + col1 + + cor0.col0 * col1 FROM tab2 AS cor0
----
1326
186
4543

query I rowsort
SELECT ALL - cor0.col1 + + col1 AS col2 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT ALL ( col0 * - col0 ) FROM tab0
----
-1225
-576
-7921

query I rowsort
SELECT DISTINCT col1 * - col1 + col0 FROM tab0 AS cor0
----
-7372
-8192
-9374

query I rowsort
SELECT 56 + cor0.col0 FROM tab0 AS cor0
----
145
80
91

query I rowsort
SELECT DISTINCT 5 * + cor0.col0 AS col2 FROM tab2 AS cor0
----
35
390
395

query I rowsort
SELECT 79 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 4857f2e1b1dbd184de4827f145dd02a1

query I rowsort
SELECT ALL + cor0.col0 * 11 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 1eedf57ff58098142d86b7e4cb839f74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - ( - col0 ) col1 FROM tab1 AS cor0
----
-3
-64
-80

onlyif mysql # use DIV operator for integer division
query I rowsort label-5358
SELECT + col1 + col1 DIV 62 + col0 AS col1 FROM tab1 AS cor0
----
29
74
93

skipif mysql # not compatible
query I rowsort label-5358
SELECT + col1 + col1 / 62 + col0 AS col1 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT ALL + cor0.col2 + col0 AS col1 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT - - col0 + + col0 * col2 AS col0 FROM tab0 AS cor0
----
70
7387
816

query I rowsort
SELECT + 88 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to c46e7cf9bf516fdfde88534336a28177

query I rowsort
SELECT ALL + + 6 * + col2 FROM tab0 AS cor0
----
198
492
6

query I rowsort
SELECT col2 * cor0.col2 + + col2 AS col2 FROM tab2 AS cor0
----
1482
702
756

query I rowsort
SELECT + col0 + cor0.col0 * + col0 FROM tab0 AS cor0
----
1260
600
8010

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5365
SELECT DISTINCT + col2 - CAST( NULL AS SIGNED ) * col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5365
SELECT DISTINCT + col2 - CAST ( NULL AS INTEGER ) * col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL + col2 * - ( - col1 ) + + col2 AS col1 FROM tab2 AS cor0
----
1560
684
864

query I rowsort
SELECT col0 * col0 + + 45 FROM tab2
----
6129
6286
94

query I rowsort
SELECT ALL - ( - 10 ) FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 0fe3e45a9ecd49584c2ab442100d5176

onlyif mysql # use DIV operator for integer division
query I rowsort label-5369
SELECT + 19 + + col0 DIV + col0 AS col1 FROM tab2
----
20
20
20

skipif mysql # not compatible
query I rowsort label-5369
SELECT + 19 + + col0 / + col0 AS col1 FROM tab2
----
20
20
20

query I rowsort
SELECT + col0 * col1 + col1 AS col0 FROM tab1
----
104
1053
650

query I rowsort
SELECT - cor0.col0 + 64 AS col1 FROM tab2 AS cor0
----
-14
-15
57

query I rowsort
SELECT ALL - col2 * - col1 * + col0 FROM tab0 AS cor0
----
3395
664118
68112

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - cor0.col1 ) col2 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT ALL + col0 + - 98 + col0 * col0 * col1 FROM tab2 cor0
----
106078
1428
358936

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5375
SELECT - + CAST( + col1 AS SIGNED ) + - col0 AS col0 FROM tab2 AS cor0
----
-137
-38
-96

skipif mysql # not compatible
query I rowsort label-5375
SELECT - + CAST ( + col1 AS INTEGER ) + - col0 AS col0 FROM tab2 AS cor0
----
-137
-38
-96

query I rowsort
SELECT ALL + ( + cor0.col0 ) + + cor0.col2 FROM tab1 AS cor0
----
121
176
57

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5377
SELECT ALL CAST( NULL AS DECIMAL ) / cor0.col0 - + col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5377
SELECT ALL CAST ( NULL AS REAL ) / cor0.col0 - + col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5378
SELECT ALL CAST( NULL AS SIGNED ) * + cor0.col2 + + cor0.col1 * ( - 10 ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5378
SELECT ALL CAST ( NULL AS INTEGER ) * + cor0.col2 + + cor0.col1 * ( - 10 ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 84 + ( + col0 * + cor0.col2 ) col1 FROM tab2 AS cor0
----
2112
273
3086

onlyif mysql # use DIV operator for integer division
query I rowsort label-5380
SELECT ALL + col1 * col0 DIV + cor0.col2 FROM tab0 AS cor0
----
3395
62
98

skipif mysql # not compatible
query I rowsort label-5380
SELECT ALL + col1 * col0 / + cor0.col2 FROM tab0 AS cor0
----
3395
62
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-5381
SELECT + cor0.col2 DIV 4 - cor0.col1 AS col1 FROM tab0 AS cor0
----
-71
-78
-97

skipif mysql # not compatible
query I rowsort label-5381
SELECT + cor0.col2 / 4 - cor0.col1 AS col1 FROM tab0 AS cor0
----
-71
-78
-97

query I rowsort
SELECT DISTINCT + - 64 * - col0 FROM tab2 AS cor0
----
448
4992
5056

query I rowsort
SELECT DISTINCT + col2 * 83 + + cor0.col1 * - col1 + cor0.col1 FROM tab0 AS cor0
----
-1384
-4571
-9229

onlyif mysql # use DIV operator for integer division
query I rowsort label-5384
SELECT DISTINCT - col1 DIV 73 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-5384
SELECT DISTINCT - col1 / 73 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT - - 5 + col1 FROM tab0 AS cor0
----
102
91
96

query I rowsort
SELECT 21 * - cor0.col2 FROM tab1 AS cor0
----
-1134
-1197
-2016

onlyif mysql # use DIV operator for integer division
query I rowsort label-5387
SELECT col1 DIV + col0 + + col2 * + col0 + col1 col1 FROM tab1 AS cor0
----
196
3658
7693

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5387
SELECT col1 / + col0 + + col2 * + col0 + col1 col1 FROM tab1 AS cor0
----
196
3658
7693

query I rowsort
SELECT DISTINCT - cor0.col2 + col1 AS col0 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT DISTINCT + ( - ( + col0 ) ) * + col0 + - col0 AS col0 FROM tab0 AS cor0
----
-1260
-600
-8010

onlyif mysql # use DIV operator for integer division
query I rowsort label-5390
SELECT col0 DIV - 93 col0 FROM tab2
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5390
SELECT col0 / - 93 col0 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL + col2 + + col1 AS col1 FROM tab0
----
119
173
98

query I rowsort
SELECT + col1 * - col2 + - col0 * - col1 FROM tab0 cor0
----
-774
3298
637

query I rowsort
SELECT + 64 * col0 + cor0.col0 AS col0 FROM tab2 AS cor0
----
455
5070
5135

query I rowsort
SELECT + 98 - + col2 FROM tab1 AS cor0
----
2
41
44

query I rowsort
SELECT - 84 - col2 * + ( + col2 ) FROM tab0 cor0
----
-1173
-6808
-85

query I rowsort
SELECT + col1 - - col2 * col2 AS col2 FROM tab2 AS cor0
----
1461
735
760

query I rowsort
SELECT col1 + col1 + col1 * ( + 77 + + col1 ) AS col2 FROM tab0
----
14190
15470
17072

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5398
SELECT DISTINCT CAST( - col1 * - col1 AS SIGNED ) + tab1.col0 AS col1 FROM tab1
----
164
249
679

skipif mysql # not compatible
query I rowsort label-5398
SELECT DISTINCT CAST ( - col1 * - col1 AS INTEGER ) + tab1.col0 AS col1 FROM tab1
----
164
249
679

query I rowsort
SELECT ( + 19 ) AS col1 FROM tab2
----
19
19
19

query I rowsort
SELECT 79 + + tab0.col0 FROM tab0
----
103
114
168

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 92 col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a

onlyif mysql # use DIV operator for integer division
query I rowsort label-5402
SELECT DISTINCT + 29 DIV col2 AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5402
SELECT DISTINCT + 29 / col2 AS col2 FROM tab1
----
0

query I rowsort
SELECT + col2 + cor0.col2 * ( - ( col0 ) ) * - 69 AS col0 FROM tab2 AS cor0
----
13068
139958
207176

query I rowsort
SELECT + col0 * col0 - - col2 AS col0 FROM tab1 AS cor0
----
4153
63
6496

query I rowsort
SELECT - 96 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c89b545346f99713888a7934e4caa539

query I rowsort
SELECT ALL - col0 * col1 + cor0.col1 * + 4 AS col2 FROM tab2 AS cor0
----
-1275
-4366
-93

query I rowsort
SELECT - - cor0.col0 * col2 + + 24 * - cor0.col1 + col2 AS col1 FROM tab0 AS cor0
----
-1239
-2292
5196

query I rowsort
SELECT DISTINCT - col1 * 13 AS col1 FROM tab1 AS cor0
----
-130
-169
-338

query I rowsort
SELECT - col0 + 25 * cor0.col2 FROM tab1 AS cor0
----
1347
1361
2320

query I rowsort
SELECT DISTINCT + cor1.col2 - + 2 FROM tab0, tab0 cor0, tab0 AS cor1
----
-1
31
80

query I rowsort
SELECT DISTINCT - ( cor0.col2 ) + - col0 AS col1 FROM tab1 AS cor0
----
-121
-176
-57

query I rowsort
SELECT ALL - ( col0 ) + cor0.col0 * + 59 AS col0 FROM tab0 AS cor0
----
1392
2030
5162

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 37 col1 FROM tab2 AS cor0
----
37
37
37

query I rowsort
SELECT ALL + ( - 21 ) - col2 AS col2 FROM tab2 cor0
----
-47
-48
-59

query I rowsort
SELECT ALL + 18 + col1 FROM tab2 AS cor0
----
35
49
77

query I rowsort
SELECT + 95 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to e57d8ed879dfd04d04aae87725c970d3

onlyif mysql # use DIV operator for integer division
query I rowsort label-5417
SELECT cor0.col0 DIV cor0.col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

skipif mysql # not compatible
query I rowsort label-5417
SELECT cor0.col0 / cor0.col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

query I rowsort
SELECT DISTINCT + cor1.col2 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
54
57
96

query I rowsort
SELECT - col1 * + ( + cor0.col2 ) AS col0 FROM tab0 cor0
----
-2838
-7462
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-5420
SELECT - col0 + + ( - ( col0 ) ) DIV + 95 FROM tab1 AS cor0
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-5420
SELECT - col0 + + ( - ( col0 ) ) / + 95 FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT ALL tab0.col2 + + col2 * - 72 - col2 * - tab0.col2 AS col0 FROM tab0
----
-1254
-70
902

query I rowsort
SELECT - col0 * - cor0.col2 + + col2 AS col2 FROM tab0 AS cor0
----
36
7380
825

query I rowsort
SELECT + col2 * 75 AS col1 FROM tab1 AS cor0
----
4050
4275
7200

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5424
SELECT ALL + col2 * + CAST( NULL AS SIGNED ) + 76 / col2 + + col0 * col0 * + cor0.col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5424
SELECT ALL + col2 * + CAST ( NULL AS INTEGER ) + 76 / col2 + + col0 * col0 * + cor0.col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5425
SELECT + cor0.col1 * col2 DIV cor0.col1 FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-5425
SELECT + cor0.col1 * col2 / cor0.col1 FROM tab1 AS cor0
----
54
57
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5426
SELECT - + cor0.col1 + CAST( col1 AS SIGNED ) * col0 FROM tab0 AS cor0
----
1978
3298
8008

skipif mysql # not compatible
query I rowsort label-5426
SELECT - + cor0.col1 + CAST ( col1 AS INTEGER ) * col0 FROM tab0 AS cor0
----
1978
3298
8008

query I rowsort
SELECT DISTINCT cor1.col1 AS col2 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
10
13
26

query I rowsort
SELECT ALL - 65 + 32 AS col1 FROM tab2 cor0
----
-33
-33
-33

query I rowsort
SELECT DISTINCT - 65 + - cor0.col1 * + col2 * - col2 FROM tab2 AS cor0
----
22534
24483
39819

query I rowsort
SELECT DISTINCT ( 8 ) * + cor0.col2 FROM tab1 AS cor0
----
432
456
768

query I rowsort
SELECT + + col1 * - cor0.col2 AS col0 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT DISTINCT + col2 + col2 - 40 * - col2 FROM tab0
----
1386
3444
42

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5433
SELECT DISTINCT - col1 * col2 + CAST( NULL AS SIGNED ) * ( - col2 ) col1 FROM tab2 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5433
SELECT DISTINCT - col1 * col2 + CAST ( NULL AS INTEGER ) * ( - col2 ) col1 FROM tab2 cor0
----
NULL

query I rowsort
SELECT + - col1 * + col0 + - col0 FROM tab0 AS cor0
----
-2088
-3430
-8188

query I rowsort
SELECT DISTINCT 25 * - col2 AS col1 FROM tab0
----
-2050
-25
-825

query I rowsort
SELECT DISTINCT - 45 + tab2.col2 FROM tab2, tab2 cor0, tab1 AS cor1
----
-18
-19
-7

onlyif mysql # use DIV operator for integer division
query I rowsort label-5437
SELECT DISTINCT - col0 DIV + col1 col2 FROM tab1
----
-6
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5437
SELECT DISTINCT - col0 / + col1 col2 FROM tab1
----
-6
0

query I rowsort
SELECT DISTINCT - 59 AS col1 FROM tab2
----
-59

query I rowsort
SELECT 84 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to e8cd683fe8cea77b4326d9b80f21c74a

query I rowsort
SELECT ALL - col1 * col0 + + col0 - + col0 * + col0 * + col1 FROM tab2 AS cor0
----
-107361
-1729
-363480

query I rowsort
SELECT DISTINCT - 57 AS col1 FROM tab2, tab2 AS cor0
----
-57

query I rowsort
SELECT DISTINCT col1 * + col1 + + col2 AS col0 FROM tab0 AS cor0
----
7429
8363
9410

query I rowsort
SELECT + 37 AS col0 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to a10b03e72860b949bdff53827700a9a8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col0 col2 FROM tab2, tab1, tab2 AS cor0
----
7
78
79

query I rowsort
SELECT DISTINCT - - col1 + + 59 + 30 * - col1 FROM tab2 AS cor0
----
-1652
-434
-840

query I rowsort
SELECT ALL - cor0.col0 + 67 - 45 AS col0 FROM tab2 AS cor0
----
-56
-57
15

query I rowsort
SELECT ALL - + col2 * col1 * + cor0.col1 - col0 FROM tab0 AS cor0
----
-244092
-679131
-9444

query I rowsort
SELECT - - cor0.col1 + - col0 AS col0 FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT ALL col1 + + 35 + + col2 AS col2 FROM tab0 AS cor0
----
133
154
208

query I rowsort
SELECT 58 FROM tab2, tab2 AS cor0
----
9 values hashing to ef6e63aeed2581a168f07646d258f666

query I rowsort
SELECT DISTINCT ( - col1 * col2 ) + + col0 AS col2 FROM tab0
----
-2814
-62
-7373

query I rowsort
SELECT + 60 * + col0 AS col1 FROM tab1
----
180
3840
4800

query I rowsort
SELECT ALL + ( ( - tab1.col0 ) ) AS col0 FROM tab1
----
-3
-64
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + tab1.col0 * - col0 col1 FROM tab1
----
-12
-4160
-6480

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( col0 AS REAL ) * tab2.col1 + + col0 * - col0 * col2 AS col2 FROM tab2
----
-1106
-153582
-235815

onlyif mysql # use DIV operator for integer division
query I rowsort label-5456
SELECT + ( + col0 ) * col2 DIV + col0 FROM tab2 AS cor0
----
26
27
38

skipif mysql # not compatible
query I rowsort label-5456
SELECT + ( + col0 ) * col2 / + col0 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT 52 * col0 FROM tab1
----
156
3328
4160

query I rowsort
SELECT ( - col0 ) + col0 * 74 * + col1 FROM tab0 cor0
----
152712
251195
599237

query I rowsort
SELECT ALL cor0.col0 * col0 + + 32 FROM tab2 AS cor0
----
6116
6273
81

query I rowsort
SELECT DISTINCT - - col0 - cor0.col0 * ( + col0 ) * col1 FROM tab0 AS cor0
----
-118790
-49512
-720722

query I rowsort
SELECT + col0 * + col0 + - col1 * col2 FROM tab2 AS cor0
----
-788
4550
5595

query I rowsort
SELECT DISTINCT + ( col2 ) * col0 FROM tab0
----
35
7298
792

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5463
SELECT DISTINCT - col1 * - col2 - CAST( NULL AS DECIMAL ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5463
SELECT DISTINCT - col1 * - col2 - CAST ( NULL AS REAL ) FROM tab2 cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5464
SELECT - - 47 DIV col1 + + col2 FROM tab1 AS cor0
----
55
61
99

skipif mysql # not compatible
query I rowsort label-5464
SELECT - - 47 / col1 + + col2 FROM tab1 AS cor0
----
55
61
99

query I rowsort
SELECT ALL + - ( - col2 ) AS col0 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT DISTINCT - 68 AS col0 FROM tab0 AS cor0
----
-68

onlyif mysql # use DIV operator for integer division
query I rowsort label-5467
SELECT DISTINCT - col1 + col2 DIV + 62 AS col2 FROM tab2 AS cor0
----
-17
-31
-59

skipif mysql # not compatible
query I rowsort label-5467
SELECT DISTINCT - col1 + col2 / + 62 AS col2 FROM tab2 AS cor0
----
-17
-31
-59

skipif mysql # not compatible
query I rowsort
SELECT + col2 * col0 * tab1.col0 + - col2 + - CAST ( - col2 AS REAL ) FROM tab1
----
233472
486
614400

onlyif mysql # use DIV operator for integer division
query I rowsort label-5469
SELECT DISTINCT - col2 DIV 29 + + col2 FROM tab0
----
1
32
80

skipif mysql # not compatible
query I rowsort label-5469
SELECT DISTINCT - col2 / 29 + + col2 FROM tab0
----
1
32
80

query I rowsort
SELECT ALL col2 * - 61 AS col0 FROM tab1 AS cor0
----
-3294
-3477
-5856

query I rowsort
SELECT + col0 * 84 - + cor0.col2 FROM tab1 AS cor0
----
198
5319
6624

query I rowsort
SELECT ALL + col0 * - col0 * - tab0.col0 + + tab0.col2 * + 18 FROM tab0
----
14418
42893
706445

query I rowsort
SELECT col0 + 54 + ( - col0 ) * col0 * tab1.col1 AS col0 FROM tab1
----
-177
-40842
-83066

query I rowsort
SELECT - col1 + ( + tab1.col2 * + col0 ) AS col2 FROM tab1
----
136
3638
7667

query I rowsort
SELECT ALL - col1 + 47 * - cor0.col0 AS col2 FROM tab2 AS cor0
----
-360
-3725
-3730

query I rowsort
SELECT ALL cor0.col0 * col1 + col1 AS col2 FROM tab1 AS cor0
----
104
1053
650

query I rowsort
SELECT DISTINCT + - col2 - + col1 FROM tab1 AS cor0
----
-109
-67
-80

onlyif mysql # use DIV operator for integer division
query I rowsort label-5478
SELECT ALL col0 DIV + 98 AS col2 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5478
SELECT ALL col0 / + 98 AS col2 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT - col2 * col2 - + cor0.col1 FROM tab1 AS cor0
----
-2942
-3259
-9229

query I rowsort
SELECT ( + 10 ) * - col0 + + col1 AS col2 FROM tab1 AS cor0
----
-4
-630
-787

query I rowsort
SELECT DISTINCT - cor0.col2 * - col1 * - col2 AS col1 FROM tab0 AS cor0
----
-611884
-93654
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-5482
SELECT DISTINCT + col1 DIV col1 col0 FROM tab0 AS cor0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5482
SELECT DISTINCT + col1 / col1 col0 FROM tab0 AS cor0
----
1

query I rowsort
SELECT ALL col0 + + col2 * - col1 AS col2 FROM tab1 AS cor0
----
-1168
-1401
-506

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5484
SELECT DISTINCT + col2 - + CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5484
SELECT DISTINCT + col2 - + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query I rowsort
SELECT 77 * + cor0.col0 AS col1 FROM tab0 AS cor0
----
1848
2695
6853

query I rowsort
SELECT col0 * tab0.col0 + - col0 - + col0 * col1 FROM tab0
----
-1512
-2205
-267

query I rowsort
SELECT DISTINCT + col1 * + col1 - - cor0.col0 FROM tab1 AS cor0
----
164
249
679

query I rowsort
SELECT + ( + col1 ) * - col1 + col1 FROM tab2 AS cor0
----
-272
-3422
-930

query I rowsort
SELECT ALL - 19 + - 45 AS col1 FROM tab1 AS cor0
----
-64
-64
-64

query I rowsort
SELECT ALL + 22 * + 9 FROM tab2 cor0
----
198
198
198

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5491
SELECT DISTINCT CAST( NULL AS SIGNED ) * + cor0.col0 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5491
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + cor0.col0 AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5492
SELECT ALL - - 71 DIV + col1 AS col1 FROM tab2 AS cor0
----
1
2
4

skipif mysql # not compatible
query I rowsort label-5492
SELECT ALL - - 71 / + col1 AS col1 FROM tab2 AS cor0
----
1
2
4

query I rowsort
SELECT DISTINCT - col1 + - col1 * col2 FROM tab0 AS cor0
----
-194
-2924
-7553

query I rowsort
SELECT DISTINCT + + 23 AS col1 FROM tab1 AS cor0
----
23

query I rowsort
SELECT DISTINCT + ( - 55 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-55

query I rowsort
SELECT DISTINCT - cor0.col2 * col2 AS col0 FROM tab2 cor0
----
-1444
-676
-729

query I rowsort
SELECT ALL + - ( - col1 ) + - ( + col1 ) * col0 FROM tab0 AS cor0
----
-1978
-3298
-8008

query I rowsort
SELECT ALL - + 67 * + col2 + - col2 AS col2 FROM tab1 AS cor0
----
-3672
-3876
-6528

query I rowsort
SELECT DISTINCT 3 AS col1 FROM tab0 AS cor0
----
3

query I rowsort
SELECT ALL + + 18 + - col2 AS col0 FROM tab0 AS cor0
----
-15
-64
17

query I rowsort
SELECT DISTINCT cor0.col0 * + cor0.col0 FROM tab1 cor0
----
4096
6400
9

query I rowsort
SELECT DISTINCT - + 95 * + col2 * col1 FROM tab0 AS cor0
----
-269610
-708890
-9215

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5503
SELECT + - col1 * CAST( + col1 AS SIGNED ) FROM tab1 AS cor0
----
-100
-169
-676

skipif mysql # not compatible
query I rowsort label-5503
SELECT + - col1 * CAST ( + col1 AS INTEGER ) FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT - 72 FROM tab1, tab2 AS cor0
----
9 values hashing to ad521144c976ff25e77cdf10a84d1dc6

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5505
SELECT ALL col0 * + CAST( NULL AS SIGNED ) - - 40 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5505
SELECT ALL col0 * + CAST ( NULL AS INTEGER ) - - 40 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 + - ( cor0.col1 ) FROM tab1 cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5507
SELECT - col0 * - col1 + CAST( ( - col1 ) AS SIGNED ) * - 95 col2 FROM tab1
----
1590
2275
2548

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5507
SELECT - col0 * - col1 + CAST ( ( - col1 ) AS INTEGER ) * - 95 col2 FROM tab1
----
1590
2275
2548

query I rowsort
SELECT DISTINCT - cor1.col2 * 99 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-3267
-8118
-99

query I rowsort
SELECT 91 - + col2 FROM tab1
----
-5
34
37

query I rowsort
SELECT DISTINCT tab1.col2 * col0 * ( col1 ) FROM tab1
----
36480
4212
99840

query I rowsort
SELECT DISTINCT col2 * 65 FROM tab2 AS cor0
----
1690
1755
2470

query I rowsort
SELECT DISTINCT - - col2 + col1 * 7 FROM tab0 AS cor0
----
635
680
719

query I rowsort
SELECT - col1 * + cor0.col2 * - 4 FROM tab0 AS cor0
----
11352
29848
388

query I rowsort
SELECT + col2 * 74 + cor0.col2 FROM tab0 cor0
----
2475
6150
75

query I rowsort
SELECT + tab2.col0 - - tab2.col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 00ff93cbcc751be1393f9e1fd72170f8

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 cor0 CROSS JOIN tab0, tab0 AS cor1, tab2 AS cor2
----
972 values hashing to 1e9d01970ae508486ddabec967bb176c

query I rowsort
SELECT - 10 * cor0.col2 + 53 * + cor0.col0 * col1 AS col0 FROM tab1 cor0
----
33350
3594
54160

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + + 38 col1 FROM tab2
----
0
11
12

query I rowsort
SELECT DISTINCT + + 97 * col1 AS col0 FROM tab1 AS cor0
----
1261
2522
970

query I rowsort
SELECT ALL - 41 * - col2 + col2 * - col1 AS col1 FROM tab1 AS cor0
----
1767
2688
810

onlyif mysql # use DIV operator for integer division
query I rowsort label-5521
SELECT DISTINCT + + col0 DIV - col2 + - CAST( - col2 AS SIGNED ) DIV col2 FROM tab1 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-5521
SELECT DISTINCT + + col0 / - col2 + - CAST ( - col2 AS INTEGER ) / col2 FROM tab1 AS cor0
----
0
1

query I rowsort
SELECT - - 0 * col1 AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - 46 + cor0.col0 AS col0 FROM tab0 cor0
----
-11
-22
43

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 68 * cor0.col2 * + cor0.col2 + col0 col2 FROM tab2 AS cor0
----
46046
49579
98271

query I rowsort
SELECT + cor0.col1 FROM tab0, tab2 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab1 AS cor2
----
243 values hashing to 42b04a30acb32fcd35bf97afdee87fe6

query I rowsort
SELECT + + ( col0 ) * + col2 * col2 AS col1 FROM tab0 cor0
----
26136
35
598436

query I rowsort
SELECT - col0 * - col1 AS col0 FROM tab0 cor0
----
2064
3395
8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-5528
SELECT col0 + + ( - col1 ) DIV col2 FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-5528
SELECT col0 + + ( - col1 ) / col2 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT - ( + col2 ) * + col1 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT - col0 + - col1 * cor0.col1 + col2 AS col2 FROM tab2 AS cor0
----
-330
-3533
-941

query I rowsort
SELECT cor0.col0 + ( + cor0.col0 ) AS col1 FROM tab2 AS cor0
----
14
156
158

query I rowsort
SELECT + 73 * - cor0.col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 918ffc78af1df7445198a6a319f73fd2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 56 col0 FROM tab2, tab0 cor0, tab1 cor1
----
56

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5534
SELECT ALL col2 * + CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5534
SELECT ALL col2 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + + 79 + col1 * col2 FROM tab2 AS cor0
----
1613
725
916

query I rowsort
SELECT - - ( + col2 ) * + col0 AS col0 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT 14 + col2 * + col0 FROM tab1 AS cor0
----
176
3662
7694

query I rowsort
SELECT ALL + ( 22 ) FROM tab1 AS cor0
----
22
22
22

onlyif mysql # use DIV operator for integer division
query I rowsort label-5539
SELECT ALL - 78 DIV - cor1.col2 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 398d13b9a803c5f811a13d1553a1de36

skipif mysql # not compatible
query I rowsort label-5539
SELECT ALL - 78 / - cor1.col2 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 398d13b9a803c5f811a13d1553a1de36

query I rowsort
SELECT DISTINCT - ( - col1 ) + col1 AS col0 FROM tab1 AS cor0
----
20
26
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-5541
SELECT DISTINCT - - col0 DIV + col2 + + cor0.col1 AS col1 FROM tab1 AS cor0
----
11
13
26

skipif mysql # not compatible
query I rowsort label-5541
SELECT DISTINCT - - col0 / + col2 + + cor0.col1 AS col1 FROM tab1 AS cor0
----
11
13
26

onlyif mysql # use DIV operator for integer division
query I rowsort label-5542
SELECT ALL - 80 DIV - cor0.col1 AS col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5542
SELECT ALL - 80 / - cor0.col1 AS col0 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5543
SELECT + - 83 + - 30 DIV - col1 FROM tab2 AS cor0
----
-82
-83
-83

skipif mysql # not compatible
query I rowsort label-5543
SELECT + - 83 + - 30 / - col1 FROM tab2 AS cor0
----
-82
-83
-83

query I rowsort
SELECT ALL - 33 + 55 AS col0 FROM tab0 AS cor0
----
22
22
22

query I rowsort
SELECT ALL col2 * - col1 AS col1 FROM tab2 cor0
----
-1534
-646
-837

query I rowsort
SELECT + + ( + 69 ) + col0 AS col1 FROM tab0 AS cor0
----
104
158
93

onlyif mysql # use DIV operator for integer division
query I rowsort label-5547
SELECT ALL + 2 DIV ( col1 ) + - 73 AS col0 FROM tab0 AS cor0
----
-73
-73
-73

skipif mysql # not compatible
query I rowsort label-5547
SELECT ALL + 2 / ( col1 ) + - 73 AS col0 FROM tab0 AS cor0
----
-73
-73
-73

query I rowsort
SELECT + col0 * col1 * 21 FROM tab2
----
28203
4557
96642

query I rowsort
SELECT ALL 14 * + 66 + col2 AS col0 FROM tab2
----
950
951
962

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + col0 + + col2 col0 FROM tab0
----
1
33
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-5551
SELECT - col1 DIV + col2 + col2 * - ( + col2 ) FROM tab1
----
-2916
-3249
-9216

skipif mysql # not compatible
query I rowsort label-5551
SELECT - col1 / + col2 + col2 * - ( + col2 ) FROM tab1
----
-2916
-3249
-9216

query I rowsort
SELECT ALL - + ( col2 ) * 11 AS col1 FROM tab0 AS cor0
----
-11
-363
-902

query I rowsort
SELECT - ( col1 ) - col2 AS col1 FROM tab0
----
-119
-173
-98

query I rowsort
SELECT + 62 FROM tab1, tab2, tab0 cor0, tab0
----
81 values hashing to 0bc652564a158b9c0f7952026f90b60a

query I rowsort
SELECT col2 - - 1 FROM tab0
----
2
34
83

query I rowsort
SELECT ALL - + ( - col1 ) * - col1 + - ( col2 ) FROM tab0 AS cor0
----
-7429
-8363
-9410

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5557
SELECT - col2 + - CAST( - col0 AS SIGNED ) - col1 FROM tab1 AS cor0
----
-29
-3
-77

skipif mysql # not compatible
query I rowsort label-5557
SELECT - col2 + - CAST ( - col0 AS INTEGER ) - col1 FROM tab1 AS cor0
----
-29
-3
-77

query I rowsort
SELECT DISTINCT col2 + 42 * - col0 FROM tab2 AS cor0
----
-267
-3250
-3280

query I rowsort
SELECT DISTINCT col1 + + 65 FROM tab2 AS cor0
----
124
82
96

query I rowsort
SELECT + 8 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 33069adc3c1142d31511ec88fcfa40af

query I rowsort
SELECT ALL + ( - col1 * + col0 ) - + col1 * col2 FROM tab1
----
-1210
-1482
-2288

query I rowsort
SELECT ALL 33 - - tab0.col1 AS col2 FROM tab0
----
119
124
130

query I rowsort
SELECT - cor0.col1 + - 29 * + col2 AS col0 FROM tab2 AS cor0
----
-1119
-813
-814

query I rowsort
SELECT + cor0.col0 * col1 + + col2 * col1 FROM tab0 AS cor0
----
15561
3492
4902

query I rowsort
SELECT ALL col2 + + ( - col2 ) FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 33 col1 FROM tab2, tab2 AS cor0
----
33

query I rowsort
SELECT ALL - cor0.col0 * - col2 + col2 FROM tab1 AS cor0
----
216
3705
7776

query I rowsort
SELECT ALL + col2 + + col0 + - col2 AS col2 FROM tab2 AS cor0
----
7
78
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-5569
SELECT DISTINCT col1 DIV ( col1 ) + col1 * - ( ( col0 ) ) - - cor0.col2 * + 80 * col0 AS col1 FROM tab2 AS cor0
----
14904
157639
238818

skipif mysql # not compatible
query I rowsort label-5569
SELECT DISTINCT col1 / ( col1 ) + col1 * - ( ( col0 ) ) - - cor0.col2 * + 80 * col0 AS col1 FROM tab2 AS cor0
----
14904
157639
238818

query I rowsort
SELECT DISTINCT + col0 + ( 32 ) * - col1 FROM tab1 AS cor0
----
-256
-336
-829

query I rowsort
SELECT col2 * + col2 + col2 * + col0 AS col0 FROM tab2 AS cor0
----
2704
4446
918

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 + col2 col1 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT - - col2 * + 4 + col1 AS col2 FROM tab2 AS cor0
----
139
163
169

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col0 BETWEEN NULL AND NULL
----

query I rowsort
SELECT + col0 FROM tab2 WHERE NOT NULL <> col2
----

query I rowsort
SELECT col2 + col2 * + col2 AS col0 FROM tab1
----
2970
3306
9312

query I rowsort
SELECT tab1.col2 + - tab1.col2 * + tab1.col2 AS col1 FROM tab1
----
-2862
-3192
-9120

query I rowsort
SELECT DISTINCT col2 * + tab0.col1 * + col0 AS col2 FROM tab0
----
3395
664118
68112

query I rowsort
SELECT ALL - col1 AS col2 FROM tab0 WHERE NOT ( + col1 / col2 + - col0 ) <= ( NULL )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-5580
SELECT col0 DIV tab2.col0 + + col1 FROM tab2
----
18
32
60

skipif mysql # not compatible
query I rowsort label-5580
SELECT col0 / tab2.col0 + + col1 FROM tab2
----
18
32
60

onlyif mysql # use DIV operator for integer division
query I rowsort label-5581
SELECT + col2 * - col1 - col2 DIV col1 FROM tab2
----
-1534
-648
-837

skipif mysql # not compatible
query I rowsort label-5581
SELECT + col2 * - col1 - col2 / col1 FROM tab2
----
-1534
-648
-837

query I rowsort
SELECT DISTINCT col2 * col2 * col0 AS col2 FROM tab1
----
207936
737280
8748

query I rowsort
SELECT + col2 - - tab0.col2 AS col0 FROM tab0
----
164
2
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab1.col2 * col2 col1 FROM tab1
----
2916
3249
9216

query I rowsort
SELECT DISTINCT + col0 * col0 + - col1 FROM tab1 cor0
----
-17
4086
6387

query I rowsort
SELECT ALL - col2 + col0 * cor0.col2 * col2 AS col2 FROM tab0 AS cor0
----
26103
34
598354

onlyif mysql # use DIV operator for integer division
query I rowsort label-5587
SELECT ALL col2 + cor0.col0 * + col1 * col1 - + col2 DIV + col1 FROM tab1 AS cor0
----
13609
2080
6452

skipif mysql # not compatible
query I rowsort label-5587
SELECT ALL col2 + cor0.col0 * + col1 * col1 - + col2 / + col1 FROM tab1 AS cor0
----
13609
2080
6452

query I rowsort
SELECT DISTINCT col0 * col1 + col1 * + col0 FROM tab2
----
2686
434
9204

query I rowsort
SELECT ALL - col0 * + col0 + col0 * col0 + col0 * + col0 AS col1 FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT col2 * tab0.col2 + - col0 * col0 FROM tab0
----
-1197
-1224
513

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col0 col0 FROM tab1
----
4096
6400
9

query I rowsort
SELECT ALL tab2.col0 + - col1 * col1 AS col0 FROM tab2
----
-210
-3403
-954

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + col2 * col1 col2 FROM tab0 AS cor0
----
194
2924
7553

query I rowsort
SELECT DISTINCT - cor0.col1 * - col2 * + col0 FROM tab1 AS cor0
----
36480
4212
99840

query I rowsort
SELECT DISTINCT - - col2 * - col0 * col2 FROM tab0 AS cor0
----
-26136
-35
-598436

onlyif mysql # use DIV operator for integer division
query I rowsort label-5596
SELECT cor0.col1 * col2 + + col2 DIV + col0 FROM tab2 AS cor0
----
1534
646
840

skipif mysql # not compatible
query I rowsort label-5596
SELECT cor0.col1 * col2 + + col2 / + col0 FROM tab2 AS cor0
----
1534
646
840

query I rowsort
SELECT ALL col2 * col0 * col1 FROM tab0
----
3395
664118
68112

query I rowsort
SELECT DISTINCT + col2 * - cor0.col2 + + col0 * col1 + - col0 AS col0 FROM tab0 AS cor0
----
1286
3359
951

query I rowsort
SELECT + - col2 + col2 * - col0 FROM tab2 AS cor0
----
-2054
-216
-3040

query I rowsort
SELECT DISTINCT - cor0.col1 + - col0 + - col1 AS col1 FROM tab1 cor0
----
-106
-55
-84

query I rowsort
SELECT DISTINCT + + cor0.col0 + col2 FROM tab0 cor0
----
171
36
57

query I rowsort
SELECT ALL - col2 - - cor0.col0 FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT + + 23 + - col1 + col2 FROM tab0 AS cor0
----
-30
-73
14

query I rowsort
SELECT col2 * - col2 * + col1 FROM tab0 AS cor0
----
-611884
-93654
-97

query I rowsort
SELECT + col1 + - cor0.col1 * ( - col2 ) FROM tab0 AS cor0
----
194
2924
7553

onlyif mysql # use DIV operator for integer division
query I rowsort label-5606
SELECT DISTINCT col2 * col2 DIV + col2 FROM tab0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-5606
SELECT DISTINCT col2 * col2 / + col2 FROM tab0
----
1
33
82

query I rowsort
SELECT col1 * col0 FROM tab1 WHERE NULL IN ( col2 )
----

query I rowsort
SELECT - col2 + col1 + + col1 * col2 FROM tab0
----
193
2891
7471

query I rowsort
SELECT col0 * col1 AS col2 FROM tab2 WHERE ( NULL ) > col1
----

query I rowsort
SELECT + col2 * col2 + + tab0.col2 FROM tab0
----
1122
2
6806

query I rowsort
SELECT + col2 + tab0.col2 - + col2 AS col0 FROM tab0
----
1
33
82

query I rowsort
SELECT ALL col1 + - col2 - col0 * col2 * - col2 FROM tab2
----
114055
5107
52761

onlyif mysql # use DIV operator for integer division
query I rowsort label-5613
SELECT ALL col2 DIV + tab2.col1 AS col1 FROM tab2
----
0
0
2

skipif mysql # not compatible
query I rowsort label-5613
SELECT ALL col2 / + tab2.col1 AS col1 FROM tab2
----
0
0
2

onlyif mysql # use DIV operator for integer division
query I rowsort label-5614
SELECT ALL - tab0.col1 DIV tab0.col2 AS col0 FROM tab0
----
-1
-2
-97

skipif mysql # not compatible
query I rowsort label-5614
SELECT ALL - tab0.col1 / tab0.col2 AS col0 FROM tab0
----
-1
-2
-97

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col0 * col0 * col1 - + col1 >= ( NULL )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-5616
SELECT col0 * tab1.col1 DIV col0 AS col1 FROM tab1
----
10
13
26

skipif mysql # not compatible
query I rowsort label-5616
SELECT col0 * tab1.col1 / col0 AS col1 FROM tab1
----
10
13
26

onlyif mysql # use DIV operator for integer division
query I rowsort label-5617
SELECT DISTINCT - col2 DIV - col0 col1 FROM tab0
----
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5617
SELECT DISTINCT - col2 / - col0 col1 FROM tab0
----
0
1

query III rowsort
SELECT * FROM tab0 WHERE col1 / + col2 + col2 * + col0 > - col0
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL > ( NULL )
----

query I rowsort
SELECT + col0 + - col1 * + ( - col1 ) FROM tab0 AS cor0
----
7420
8370
9444

query I rowsort
SELECT col0 - - tab0.col2 AS col0 FROM tab0
----
171
36
57

query I rowsort
SELECT ALL - col0 + - col2 * col1 * tab1.col0 FROM tab1
----
-36544
-4215
-99920

query I rowsort
SELECT ALL - col1 + - col2 FROM tab0 WHERE NOT ( col0 ) = ( col0 )
----

query I rowsort
SELECT ALL + - col1 * - 10 + - col0 AS col1 FROM tab0 AS cor0
----
821
836
935

query I rowsort
SELECT ALL + ( tab2.col2 ) FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT + + cor0.col2 + + cor0.col1 AS col2 FROM tab1 cor0
----
109
67
80

query I rowsort
SELECT ALL - col0 + - col1 + - col0 FROM tab0 AS cor0
----
-134
-167
-269

query I rowsort
SELECT DISTINCT col0 * 11 - col0 FROM tab2 AS cor0
----
70
780
790

query I rowsort
SELECT ALL col0 + - 50 * col0 AS col1 FROM tab0 AS cor0
----
-1176
-1715
-4361

query I rowsort
SELECT DISTINCT 5 * - col1 + col0 FROM tab1
----
-127
14
15

onlyif mysql # use DIV operator for integer division
query I rowsort label-5631
SELECT 35 - col2 DIV 93 FROM tab0
----
35
35
35

skipif mysql # not compatible
query I rowsort label-5631
SELECT 35 - col2 / 93 FROM tab0
----
35
35
35

onlyif mysql # use DIV operator for integer division
query I rowsort label-5632
SELECT col0 DIV col0 + + 33 * 47 AS col0 FROM tab2
----
1552
1552
1552

skipif mysql # not compatible
query I rowsort label-5632
SELECT col0 / col0 + + 33 * 47 AS col0 FROM tab2
----
1552
1552
1552

query I rowsort
SELECT - 38 * col0 FROM tab0
----
-1330
-3382
-912

onlyif mysql # use DIV operator for integer division
query I rowsort label-5634
SELECT col0 DIV col2 + col0 * + tab0.col0 FROM tab0
----
1260
576
7922

skipif mysql # not compatible
query I rowsort label-5634
SELECT col0 / col2 + col0 * + tab0.col0 FROM tab0
----
1260
576
7922

query I rowsort
SELECT - - col2 * - cor0.col1 + + col1 AS col0 FROM tab1 AS cor0
----
-1235
-1378
-560

query I rowsort
SELECT ALL col0 * - col0 + + col0 FROM tab1 AS cor0
----
-4032
-6
-6320

onlyif mysql # use DIV operator for integer division
query I rowsort label-5637
SELECT - ( - col2 ) DIV col0 FROM tab2
----
0
0
3

skipif mysql # not compatible
query I rowsort label-5637
SELECT - ( - col2 ) / col0 FROM tab2
----
0
0
3

query I rowsort
SELECT DISTINCT col1 * + 91 * - col2 FROM tab0
----
-258258
-679042
-8827

query I rowsort
SELECT - tab1.col1 AS col2 FROM tab1, tab1 cor0, tab1 AS cor1
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5640
SELECT + CAST( NULL AS DECIMAL ) * + col1 col1 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5640
SELECT + CAST ( NULL AS REAL ) * + col1 col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + ( 24 ) + col0 * ( col0 ) * - col0 FROM tab0 AS cor0
----
-13800
-42851
-704945

query I rowsort
SELECT 75 * cor0.col1 + col1 * col2 - + col0 FROM tab2 AS cor0
----
1842
3155
5881

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5643
SELECT ALL - tab1.col1 * 30 * col1 - CAST( NULL AS DECIMAL ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5643
SELECT ALL - tab1.col1 * 30 * col1 - CAST ( NULL AS REAL ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5644
SELECT DISTINCT + ( + tab1.col0 ) DIV - ( - col0 ) + col0 FROM tab1
----
4
65
81

skipif mysql # not compatible
query I rowsort label-5644
SELECT DISTINCT + ( + tab1.col0 ) / - ( - col0 ) + col0 FROM tab1
----
4
65
81

query I rowsort
SELECT - col2 * + col2 * + col0 + + cor0.col1 FROM tab0 AS cor0
----
-26050
-598345
62

query I rowsort
SELECT ALL 75 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to e61b59795204c348103a58c0a8e4ce16

query I rowsort
SELECT ALL + 41 FROM tab2, tab1 AS cor0
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e

query I rowsort
SELECT DISTINCT col0 + col0 * - 97 FROM tab2 AS cor0
----
-672
-7488
-7584

query I rowsort
SELECT ALL - 48 + col2 AS col1 FROM tab2
----
-10
-21
-22

query I rowsort
SELECT DISTINCT + + 7 AS col0 FROM tab1 AS cor0
----
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - cor0.col0 ) col2 FROM tab1 cor0
----
-3
-64
-80

query I rowsort
SELECT - col0 + col1 * - col1 - cor0.col1 AS col2 FROM tab1 AS cor0
----
-174
-262
-705

query I rowsort
SELECT ALL col1 + cor0.col0 * col0 FROM tab2 AS cor0
----
6143
6258
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-5654
SELECT - col1 + + col1 DIV + col2 AS col2 FROM tab0 AS cor0
----
-84
-90
0

skipif mysql # not compatible
query I rowsort label-5654
SELECT - col1 + + col1 / + col2 AS col2 FROM tab0 AS cor0
----
-84
-90
0

query I rowsort
SELECT DISTINCT ( col2 ) * + col0 AS col0 FROM tab1 cor0
----
162
3648
7680

query I rowsort
SELECT ALL + + col2 * col2 + cor0.col0 AS col0 FROM tab2 AS cor0
----
1523
736
754

onlyif mysql # use DIV operator for integer division
query I rowsort label-5657
SELECT ALL - col0 DIV + cor0.col0 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5657
SELECT ALL - col0 / + cor0.col0 FROM tab2 AS cor0
----
-1
-1
-1

query I rowsort
SELECT + 55 - col1 FROM tab0
----
-31
-36
-42

query I rowsort
SELECT ALL - col2 + col0 * col0 FROM tab0 cor0
----
1224
543
7839

query I rowsort
SELECT DISTINCT + col0 - col0 * + tab1.col1 * - col0 FROM tab1
----
237
41024
83280

onlyif mysql # use DIV operator for integer division
query I rowsort label-5661
SELECT ALL + - col1 DIV 87 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5661
SELECT ALL + - col1 / 87 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT ALL cor1.col0 AS col2 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

query I rowsort
SELECT - - 86 + 14 FROM tab2 AS cor0
----
100
100
100

query I rowsort
SELECT DISTINCT + + col1 * - ( + col2 * + cor0.col1 ) FROM tab1 cor0
----
-16224
-36504
-5700

query I rowsort
SELECT DISTINCT + - 46 * + ( col0 ) AS col0 FROM tab1 AS cor0
----
-138
-2944
-3680

query I rowsort
SELECT DISTINCT 32 FROM tab0, tab0 AS cor0
----
32

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5667
SELECT CAST( NULL AS SIGNED ) * - col2 + + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5667
SELECT CAST ( NULL AS INTEGER ) * - col2 + + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5668
SELECT - + 89 DIV + cor0.col0 FROM tab1 AS cor0
----
-1
-1
-29

skipif mysql # not compatible
query I rowsort label-5668
SELECT - + 89 / + cor0.col0 FROM tab1 AS cor0
----
-1
-1
-29

query I rowsort
SELECT ALL 44 + - col1 AS col0 FROM tab1 AS cor0
----
18
31
34

query I rowsort
SELECT ALL - col0 + 41 FROM tab1 AS cor0
----
-23
-39
38

query I rowsort
SELECT ALL 96 - + 49 AS col0 FROM tab2
----
47
47
47

query I rowsort
SELECT col0 * - ( col1 ) + col2 FROM tab1
----
-24
-583
-944

query I rowsort
SELECT + 22 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9

onlyif mysql # use DIV operator for integer division
query I rowsort label-5674
SELECT DISTINCT - + col2 DIV col0 + col2 FROM tab2 AS cor0
----
24
26
38

skipif mysql # not compatible
query I rowsort label-5674
SELECT DISTINCT - + col2 / col0 + col2 FROM tab2 AS cor0
----
24
26
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-5675
SELECT + + col0 DIV col1 AS col0 FROM tab2 AS cor0
----
0
1
4

skipif mysql # not compatible
query I rowsort label-5675
SELECT + + col0 / col1 AS col0 FROM tab2 AS cor0
----
0
1
4

query I rowsort
SELECT - 92 + - col2 - + col0 * - cor0.col1 * - col1 FROM tab1 AS cor0
----
-13708
-2174
-6549

query I rowsort
SELECT ALL 4 * col0 * col2 AS col0 FROM tab0
----
140
29192
3168

query I rowsort
SELECT DISTINCT - + ( 52 ) AS col1 FROM tab1 AS cor0
----
-52

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5679
SELECT DISTINCT + CAST( - col0 AS SIGNED ) * - cor0.col2 AS col1 FROM tab1 cor0
----
162
3648
7680

skipif mysql # not compatible
query I rowsort label-5679
SELECT DISTINCT + CAST ( - col0 AS INTEGER ) * - cor0.col2 AS col1 FROM tab1 cor0
----
162
3648
7680

query I rowsort
SELECT DISTINCT + col2 + 26 AS col0 FROM tab1 AS cor0
----
122
80
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 29 col1 FROM tab2
----
29

query I rowsort
SELECT ALL - + ( + col0 ) * col2 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT ALL + col2 + + 4 * + col1 FROM tab1 AS cor0
----
148
158
97

query I rowsort
SELECT DISTINCT - col0 * col0 + - 30 AS col1 FROM tab1
----
-39
-4126
-6430

query I rowsort
SELECT + 35 * 22 FROM tab0 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab2 AS cor2
----
81 values hashing to 942c02813c58e1d86b6e83a5bccaa008

query I rowsort
SELECT DISTINCT + 50 FROM tab2, tab0 AS cor0
----
50

query I rowsort
SELECT DISTINCT + 42 * col2 + col2 AS col2 FROM tab1 cor0
----
2322
2451
4128

query I rowsort
SELECT cor2.col1 FROM tab0, tab2 cor0, tab0 AS cor1, tab2 AS cor2
----
81 values hashing to a5b6acb471910ea4ad7f31cae3b818f7

query I rowsort
SELECT ALL - 40 * col0 FROM tab2
----
-280
-3120
-3160

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 69 * + cor0.col0 col1 FROM tab1, tab2 AS cor0
----
483
5382
5451

query I rowsort
SELECT - 3 + col1 FROM tab0 AS cor0
----
83
88
94

query I rowsort
SELECT - col2 * col2 * 11 FROM tab2 AS cor0
----
-15884
-7436
-8019

onlyif mysql # use DIV operator for integer division
query I rowsort label-5693
SELECT DISTINCT - col0 DIV + 27 AS col0 FROM tab2
----
-2
0

skipif mysql # not compatible
query I rowsort label-5693
SELECT DISTINCT - col0 / + 27 AS col0 FROM tab2
----
-2
0

query I rowsort
SELECT ALL - 29 AS col0 FROM tab2
----
-29
-29
-29

query I rowsort
SELECT ALL - 39 AS col1 FROM tab1
----
-39
-39
-39

onlyif mysql # use DIV operator for integer division
query I rowsort label-5696
SELECT - col1 DIV col2 + + 90 * + col0 * - 58 FROM tab1 AS cor0
----
-15660
-334080
-417600

skipif mysql # not compatible
query I rowsort label-5696
SELECT - col1 / col2 + + 90 * + col0 * - 58 FROM tab1 AS cor0
----
-15660
-334080
-417600

query I rowsort
SELECT + col0 * + col1 * + cor0.col1 - cor0.col2 AS col1 FROM tab2 AS cor0
----
22793
271492
6700

query I rowsort
SELECT DISTINCT 6 + - col0 AS col2 FROM tab1
----
-58
-74
3

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5699
SELECT col0 + CAST( - ( col1 ) AS SIGNED ) * col1 col0 FROM tab2 cor0
----
-210
-3403
-954

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5699
SELECT col0 + CAST ( - ( col1 ) AS INTEGER ) * col1 col0 FROM tab2 cor0
----
-210
-3403
-954

query I rowsort
SELECT ALL - col1 * 52 + col0 + + col1 AS col2 FROM tab0 AS cor0
----
-4362
-4552
-4912

query I rowsort
SELECT + - cor0.col0 + - col1 + + cor0.col2 FROM tab0 cor0
----
-131
-77
-98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - col0 col1 FROM tab0
----
2
62
62

query I rowsort
SELECT - 58 + + col2 + col2 AS col1 FROM tab1
----
134
50
56

query I rowsort
SELECT DISTINCT - 0 * + col1 + 58 * + col1 * col2 FROM tab1
----
33060
72384
81432

query I rowsort
SELECT - 44 + col1 * + tab0.col0 FROM tab0
----
2020
3351
8055

query I rowsort
SELECT ALL - col2 + ( ( - cor0.col1 ) ) * ( - col2 ) FROM tab0 AS cor0
----
2805
7380
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-5707
SELECT DISTINCT + col0 DIV - col2 + + col2 AS col1 FROM tab0 AS cor0
----
-34
33
81

skipif mysql # not compatible
query I rowsort label-5707
SELECT DISTINCT + col0 / - col2 + + col2 AS col1 FROM tab0 AS cor0
----
-34
33
81

query I rowsort
SELECT col0 * + ( col0 ) * + col1 + - 86 FROM tab2 AS cor0
----
106011
1433
358870

query I rowsort
SELECT DISTINCT + cor0.col1 * col0 + - col1 - + col1 FROM tab1 AS cor0
----
1014
26
620

query I rowsort
SELECT col0 + 8 * col1 AS col0 FROM tab0
----
712
811
817

query I rowsort
SELECT DISTINCT + col1 * col2 * col0 FROM tab1 cor0
----
36480
4212
99840

query I rowsort
SELECT - - col0 * + col1 AS col0 FROM tab0 cor0
----
2064
3395
8099

query I rowsort
SELECT ALL + col0 * col2 + - 81 * + col2 FROM tab0 AS cor0
----
-1881
-46
656

query I rowsort
SELECT + ( cor0.col0 ) AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5715
SELECT + - 9 * 8 / col1 + + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5715
SELECT + - 9 * 8 / col1 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col0 * ( 40 ) + col1 AS col1 FROM tab2
----
311
3177
3179

query I rowsort
SELECT ALL tab1.col0 + - col0 AS col0 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT - col1 * ( 98 * col0 ) AS col2 FROM tab2 AS cor0
----
-131614
-21266
-450996

query I rowsort
SELECT + col2 - ( col1 ) FROM tab2 AS cor0
----
-33
-4
21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 4 col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col1 * + 19 + - col2 * + col1 col2 FROM tab0 AS cor0
----
-1204
-5733
1746

query I rowsort
SELECT - col0 * col2 + col0 * - col0 AS col2 FROM tab1 AS cor0
----
-14080
-171
-7744

query I rowsort
SELECT + - 76 + 18 * col2 FROM tab1 cor0
----
1652
896
950

query I rowsort
SELECT ( + col2 ) + + col2 * + 74 AS col2 FROM tab0 AS cor0
----
2475
6150
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 * col2 * 32 col2 FROM tab1 AS cor0
----
-116736
-245760
-5184

query I rowsort
SELECT - + 67 * + col2 * col2 FROM tab1 AS cor0
----
-195372
-217683
-617472

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5728
SELECT DISTINCT - + ( - col1 ) * CAST( col2 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
1248
1404
570

skipif mysql # not compatible
query I rowsort label-5728
SELECT DISTINCT - + ( - col1 ) * CAST ( col2 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT ALL - - col2 * col2 FROM tab1 cor0
----
2916
3249
9216

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 32 * col0 col2 FROM tab2 AS cor0
----
224
2496
2528

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col1 ) * 76 col1 FROM tab1 AS cor0
----
-1976
-760
-988

query I rowsort
SELECT + col0 * cor0.col0 FROM tab2 cor0
----
49
6084
6241

query I rowsort
SELECT DISTINCT - + cor0.col1 * - col2 AS col2 FROM tab1 cor0
----
1248
1404
570

query I rowsort
SELECT DISTINCT - ( + ( cor0.col2 ) * 24 ) AS col1 FROM tab2, tab1 AS cor0
----
-1296
-1368
-2304

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5735
SELECT - + col1 * + CAST( NULL AS SIGNED ) + col0 - cor0.col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5735
SELECT - + col1 * + CAST ( NULL AS INTEGER ) + col0 - cor0.col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col0 + + tab0.col1 AS col0 FROM tab0
----
2
62
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 + - 9 * col0 col0 FROM tab1 AS cor0
----
-633
-81
-816

onlyif mysql # use DIV operator for integer division
query I rowsort label-5738
SELECT - col1 DIV + col1 + col2 FROM tab2 AS cor0
----
25
26
37

skipif mysql # not compatible
query I rowsort label-5738
SELECT - col1 / + col1 + col2 FROM tab2 AS cor0
----
25
26
37

query I rowsort
SELECT + 96 + cor0.col1 + - ( - col2 ) FROM tab0 AS cor0
----
194
215
269

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + col0 * + col1 col1 FROM tab0 AS cor0
----
1978
3298
8008

query I rowsort
SELECT col1 + col1 + cor0.col2 FROM tab1 AS cor0
----
106
122
77

query I rowsort
SELECT ALL 62 * col2 AS col1 FROM tab0 AS cor0
----
2046
5084
62

query I rowsort
SELECT + 47 * - col1 AS col2 FROM tab2 AS cor0
----
-1457
-2773
-799

query I rowsort
SELECT + - col2 + - col1 * col0 AS col0 FROM tab0 AS cor0
----
-2097
-3396
-8181

query I rowsort
SELECT - + col1 + col0 + col2 FROM tab1 AS cor0
----
111
163
31

query I rowsort
SELECT + 1 + - cor0.col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 754aaa16d38b9d7c76fd00577d43a4e3

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5747
SELECT ALL + ( col1 * + col0 + - CAST( NULL AS SIGNED ) ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5747
SELECT ALL + ( col1 * + col0 + - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col2 * col0 * col0 FROM tab0 AS cor0
----
1225
19008
649522

onlyif mysql # use DIV operator for integer division
query I rowsort label-5749
SELECT ALL col1 + col2 + + ( + 68 ) DIV + col0 FROM tab2 AS cor0
----
55
67
85

skipif mysql # not compatible
query I rowsort label-5749
SELECT ALL col1 + col2 + + ( + 68 ) / + col0 FROM tab2 AS cor0
----
55
67
85

query I rowsort
SELECT ALL - - col1 + + col1 * - ( - 42 ) FROM tab1 cor0
----
1118
430
559

query I rowsort
SELECT cor0.col2 * + cor0.col2 - 48 FROM tab0 AS cor0
----
-47
1041
6676

query I rowsort
SELECT ALL + ( + ( col2 ) ) FROM tab1
----
54
57
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5753
SELECT DISTINCT - col2 * CAST( NULL AS SIGNED ) + - cor0.col1 AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5753
SELECT DISTINCT - col2 * CAST ( NULL AS INTEGER ) + - cor0.col1 AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - tab0.col1 - tab0.col0 FROM tab0, tab2 AS cor0
----
9 values hashing to b82361c46cc0c2ce3377dc8e27527663

query I rowsort
SELECT - 84 AS col1 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 975e2ef2a3bf1ee2622362f4e435752f

query I rowsort
SELECT - cor0.col1 * - col1 + - col0 * + col2 FROM tab1 cor0
----
-3548
-7511
514

query I rowsort
SELECT 55 * + col0 AS col1 FROM tab0 AS cor0
----
1320
1925
4895

query I rowsort
SELECT DISTINCT + ( - ( + cor0.col0 ) ) * - col2 + + col1 FROM tab2 AS cor0
----
2087
220
3019

onlyif mysql # use DIV operator for integer division
query I rowsort label-5759
SELECT ALL cor0.col2 DIV - col0 col1 FROM tab1 AS cor0
----
-1
-18
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5759
SELECT ALL cor0.col2 / - col0 col1 FROM tab1 AS cor0
----
-1
-18
0

query I rowsort
SELECT ALL - 58 + cor0.col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ab8728fdd1794290846ad52c5c40de7f

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5761
SELECT DISTINCT - tab1.col0 * + ( col2 * - CAST( col1 AS SIGNED ) ) - col1 col2 FROM tab1
----
36470
4186
99827

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5761
SELECT DISTINCT - tab1.col0 * + ( col2 * - CAST ( col1 AS INTEGER ) ) - col1 col2 FROM tab1
----
36470
4186
99827

onlyif mysql # use DIV operator for integer division
query I rowsort label-5762
SELECT ALL 76 DIV col2 - - col2 FROM tab0
----
35
77
82

skipif mysql # not compatible
query I rowsort label-5762
SELECT ALL 76 / col2 - - col2 FROM tab0
----
35
77
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-5763
SELECT tab1.col1 DIV + 19 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5763
SELECT tab1.col1 / + 19 FROM tab1
----
0
0
1

query I rowsort
SELECT DISTINCT - cor0.col0 * - 97 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
679
7566
7663

query I rowsort
SELECT ( tab0.col2 ) + + tab0.col1 FROM tab0
----
119
173
98

query I rowsort
SELECT DISTINCT + 23 AS col2 FROM tab0
----
23

query I rowsort
SELECT col1 * 18 AS col2 FROM tab2 AS cor0
----
1062
306
558

onlyif mysql # use DIV operator for integer division
query I rowsort label-5768
SELECT DISTINCT + 9 + + col1 * ( col0 ) DIV - col1 AS col2 FROM tab1
----
-55
-71
6

skipif mysql # not compatible
query I rowsort label-5768
SELECT DISTINCT + 9 + + col1 * ( col0 ) / - col1 AS col2 FROM tab1
----
-55
-71
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 29 * col2 + + ( col1 ) col1 FROM tab2 AS cor0
----
-1085
-695
-752

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5770
SELECT - col2 * cor0.col1 - CAST( col2 + - cor0.col0 AS SIGNED ) FROM tab0 AS cor0
----
-2847
-63
-7455

skipif mysql # not compatible
query I rowsort label-5770
SELECT - col2 * cor0.col1 - CAST ( col2 + - cor0.col0 AS INTEGER ) FROM tab0 AS cor0
----
-2847
-63
-7455

query I rowsort
SELECT DISTINCT + 16 + col0 FROM tab2 AS cor0
----
23
94
95

query I rowsort
SELECT + col0 * - col2 + - col2 FROM tab1
----
-216
-3705
-7776

query I rowsort
SELECT - col0 - - ( + ( + col2 ) * - col0 + + ( tab2.col2 ) ) AS col1 FROM tab2
----
-169
-2080
-3043

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col2 + col2 + col0 col2 FROM tab1 AS cor0
----
2973
3370
9392

query I rowsort
SELECT DISTINCT col1 + - ( 91 ) FROM tab1 cor0
----
-65
-78
-81

query I rowsort
SELECT DISTINCT 90 * 7 AS col0 FROM tab0, tab1 AS cor0
----
630

query I rowsort
SELECT + col2 * + col1 + cor0.col0 * col2 + cor0.col2 FROM tab1 AS cor0
----
1620
4275
9024

query I rowsort
SELECT DISTINCT + col0 + cor0.col2 * - 71 AS col1 FROM tab2 AS cor0
----
-1768
-1910
-2619

query I rowsort
SELECT DISTINCT + col2 + col0 * col0 AS col2 FROM tab2 cor0
----
6110
6279
76

query I rowsort
SELECT ALL + + col1 * col2 + + col0 AS col1 FROM tab0 AS cor0
----
132
2862
7551

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5781
SELECT DISTINCT + - CAST( NULL AS SIGNED ) - + ( col0 ) * - col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5781
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) - + ( col0 ) * - col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - + 39 AS col2 FROM tab2 AS cor0
----
-39
-39
-39

query I rowsort
SELECT DISTINCT ( 18 ) FROM tab2 cor0
----
18

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5784
SELECT CAST( + col1 AS SIGNED ) * + col2 AS col2 FROM tab1 AS cor0
----
1248
1404
570

skipif mysql # not compatible
query I rowsort label-5784
SELECT CAST ( + col1 AS INTEGER ) * + col2 AS col2 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT DISTINCT + ( - col1 ) * col1 FROM tab2 AS cor0
----
-289
-3481
-961

query I rowsort
SELECT DISTINCT + 70 - - col0 AS col1 FROM tab1 AS cor0
----
134
150
73

query I rowsort
SELECT ALL 25 + 62 * - col2 FROM tab0 AS cor0
----
-2021
-37
-5059

query I rowsort
SELECT ALL - col0 * 23 FROM tab1
----
-1472
-1840
-69

query I rowsort
SELECT DISTINCT 91 * + cor0.col1 FROM tab2, tab0 AS cor0
----
7826
8281
8827

query I rowsort
SELECT ALL + tab2.col0 * - 16 FROM tab2
----
-112
-1248
-1264

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5791
SELECT ALL - col2 + col2 * CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5791
SELECT ALL - col2 + col2 * CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 94 * col2 * col1 + col2 * + col0 AS col1 FROM tab0 AS cor0
----
-265980
-694130
-9083

query I rowsort
SELECT ALL + - 96 * - col0 AS col1 FROM tab1 AS cor0
----
288
6144
7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-5794
SELECT DISTINCT - cor0.col0 DIV + cor0.col0 AS col2 FROM tab0 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-5794
SELECT DISTINCT - cor0.col0 / + cor0.col0 AS col2 FROM tab0 cor0
----
-1

query I rowsort
SELECT - + col0 * - col0 * + ( + 96 ) FROM tab0 AS cor0
----
117600
55296
760416

query I rowsort
SELECT - 11 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 05cc989122d7724c7abefaba9625ef3d

query I rowsort
SELECT - 44 + - col2 FROM tab1 cor0
----
-101
-140
-98

query I rowsort
SELECT DISTINCT - cor0.col0 + - cor0.col1 * 38 AS col2 FROM tab0 cor0
----
-3292
-3547
-3721

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 55 * col1 - 44 col1 FROM tab0 AS cor0
----
-4774
-5049
-5379

query I rowsort
SELECT ALL col1 + + col0 * - tab0.col2 AS col0 FROM tab0
----
-706
-7207
62

query I rowsort
SELECT - - col1 * + ( + 24 ) + col2 FROM tab1 AS cor0
----
297
408
678

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5802
SELECT + col1 * + CAST( col1 AS SIGNED ) col1 FROM tab0 AS cor0
----
7396
8281
9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5802
SELECT + col1 * + CAST ( col1 AS INTEGER ) col1 FROM tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT + col2 * + col1 + - col0 * col1 FROM tab1 cor0
----
-70
1326
208

query I rowsort
SELECT - cor0.col2 + 76 - + col1 FROM tab0 AS cor0
----
-22
-43
-97

query I rowsort
SELECT DISTINCT col0 * 61 AS col2 FROM tab2 AS cor0
----
427
4758
4819

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 37 col0 FROM tab2, tab0 AS cor0
----
37

onlyif mysql # use DIV operator for integer division
query I rowsort label-5807
SELECT col1 DIV col0 - - col0 AS col2 FROM tab0 AS cor0
----
27
37
90

skipif mysql # not compatible
query I rowsort label-5807
SELECT col1 / col0 - - col0 AS col2 FROM tab0 AS cor0
----
27
37
90

query I rowsort
SELECT ALL - - col2 * - cor0.col1 + col2 * col2 AS col2 FROM tab2 AS cor0
----
-108
-858
798

query I rowsort
SELECT 33 * ( col0 ) FROM tab2 AS cor0
----
231
2574
2607

query I rowsort
SELECT DISTINCT cor0.col1 * + col2 + col1 FROM tab1 AS cor0
----
1261
1430
580

query I rowsort
SELECT col2 * 9 FROM tab2 AS cor0
----
234
243
342

query I rowsort
SELECT ALL 58 + col0 AS col0 FROM tab2
----
136
137
65

query I rowsort
SELECT ALL + 43 * 19 AS col0 FROM tab2 AS cor0
----
817
817
817

query I rowsort
SELECT - - ( - cor0.col0 ) * + col0 FROM tab0 AS cor0
----
-1225
-576
-7921

query I rowsort
SELECT col0 * col0 - cor0.col1 AS col0 FROM tab0 AS cor0
----
1128
490
7830

query I rowsort
SELECT - + col2 * col1 + col2 FROM tab2 cor0
----
-1508
-608
-810

onlyif mysql # use DIV operator for integer division
query I rowsort label-5817
SELECT - tab2.col2 DIV - col1 AS col0 FROM tab2
----
0
0
2

skipif mysql # not compatible
query I rowsort label-5817
SELECT - tab2.col2 / - col1 AS col0 FROM tab2
----
0
0
2

query I rowsort
SELECT DISTINCT 9 + - col0 * col2 AS col2 FROM tab0
----
-26
-7289
-783

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * + tab1.col2 + + col1 col2 FROM tab1
----
-2890
-3239
-9203

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5820
SELECT CAST( col0 AS SIGNED ) + - col0 + 11 AS col1 FROM tab0
----
11
11
11

skipif mysql # not compatible
query I rowsort label-5820
SELECT CAST ( col0 AS INTEGER ) + - col0 + 11 AS col1 FROM tab0
----
11
11
11

query I rowsort
SELECT col2 + col1 * - 62 FROM tab0 AS cor0
----
-5299
-5560
-6013

query I rowsort
SELECT + col2 * - col1 - ( + col2 ) AS col1 FROM tab1 cor0
----
-1344
-1458
-627

query I rowsort
SELECT 48 * col0 + col2 - + col1 FROM tab1 AS cor0
----
172
3119
3923

onlyif mysql # use DIV operator for integer division
query I rowsort label-5824
SELECT - - 80 DIV col0 AS col0 FROM tab0 AS cor0
----
0
2
3

skipif mysql # not compatible
query I rowsort label-5824
SELECT - - 80 / col0 AS col0 FROM tab0 AS cor0
----
0
2
3

query I rowsort
SELECT ALL - 32 * col0 AS col2 FROM tab2 AS cor0
----
-224
-2496
-2528

onlyif mysql # use DIV operator for integer division
query I rowsort label-5826
SELECT + col1 * 85 DIV - cor0.col2 AS col1 FROM tab1 cor0
----
-11
-14
-40

skipif mysql # not compatible
query I rowsort label-5826
SELECT + col1 * 85 / - cor0.col2 AS col1 FROM tab1 cor0
----
-11
-14
-40

query I rowsort
SELECT ALL - col2 - col2 * 66 FROM tab1
----
-3618
-3819
-6432

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5828
SELECT - CAST( col0 AS SIGNED ) * col1 * ( + 24 * - col2 ) AS col0 FROM tab1 AS cor0
----
101088
2396160
875520

skipif mysql # not compatible
query I rowsort label-5828
SELECT - CAST ( col0 AS INTEGER ) * col1 * ( + 24 * - col2 ) AS col0 FROM tab1 AS cor0
----
101088
2396160
875520

query I rowsort
SELECT ALL tab2.col1 FROM tab2, tab1, tab0 AS cor0, tab1 AS cor1
----
81 values hashing to a5b6acb471910ea4ad7f31cae3b818f7

onlyif mysql # use DIV operator for integer division
query I rowsort label-5830
SELECT + ( col2 ) + + col2 DIV + col1 AS col0 FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-5830
SELECT + ( col2 ) + + col2 / + col1 AS col0 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT DISTINCT - col0 * - col0 * col0 + cor0.col1 + cor0.col1 * col0 FROM tab1 AS cor0
----
131
262794
513053

query I rowsort
SELECT ( ( col0 ) ) * 58 FROM tab1 AS cor0
----
174
3712
4640

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 92 col0 FROM tab0 AS cor0
----
92
92
92

query I rowsort
SELECT tab2.col2 + - ( col0 ) * tab2.col1 * col2 AS col0 FROM tab2
----
-119626
-50996
-5832

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - col0 + col2 col2 FROM tab0 AS cor0
----
2097
3396
8181

query I rowsort
SELECT DISTINCT - cor0.col1 * 94 FROM tab2 AS cor0
----
-1598
-2914
-5546

query I rowsort
SELECT DISTINCT cor0.col2 * cor0.col1 + col1 FROM tab0 AS cor0
----
194
2924
7553

query I rowsort
SELECT DISTINCT 78 + - col0 AS col2 FROM tab0 AS cor0
----
-11
43
54

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5839
SELECT ALL + + CAST( NULL AS DECIMAL ) * cor0.col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5839
SELECT ALL + + CAST ( NULL AS REAL ) * cor0.col2 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col1 * + 45 + - col0 * - col0 * + col2 FROM tab1 AS cor0
----
1656
233922
614985

query I rowsort
SELECT ALL 53 * 93 - cor0.col1 FROM tab0 AS cor0
----
4832
4838
4843

query I rowsort
SELECT + cor0.col0 * 42 + - col0 AS col2 FROM tab1 AS cor0
----
123
2624
3280

query I rowsort
SELECT DISTINCT + col1 * + 99 + col2 + col0 AS col1 FROM tab2 AS cor0
----
1800
3103
5945

query I rowsort
SELECT 47 + - 69 * cor0.col0 * - ( - col0 ) FROM tab2 AS cor0
----
-3334
-419749
-430582

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 * cor0.col2 * - col1 + + 93 * 31 col1 FROM tab0 AS cor0
----
-512
-65229
-661235

query I rowsort
SELECT DISTINCT - 8 + + col0 FROM tab1 AS cor0
----
-5
56
72

query I rowsort
SELECT DISTINCT - cor0.col2 * col0 * + col0 FROM tab0 AS cor0
----
-1225
-19008
-649522

query I rowsort
SELECT 24 FROM tab1 cor0
----
24
24
24

query I rowsort
SELECT ALL + 36 FROM tab1, tab0, tab1 AS cor0, tab2 AS cor1
----
81 values hashing to e09b197365a04fabbaaf0718d2ae88c5

query I rowsort
SELECT col1 * + ( col0 ) + col2 - + col0 AS col0 FROM tab1
----
1056
129
633

query I rowsort
SELECT col0 - 55 FROM tab0
----
-20
-31
34

query I rowsort
SELECT ALL col1 - + 52 AS col0 FROM tab0
----
34
39
45

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5853
SELECT ALL - - CAST( NULL AS SIGNED ) + - col0 * - col2 * + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5853
SELECT ALL - - CAST ( NULL AS INTEGER ) + - col0 * - col2 * + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 * col1 * col0 + - cor0.col2 * + 24 AS col1 FROM tab0 AS cor0
----
-178296
-329339
-738977

query I rowsort
SELECT - ( col1 ) + col2 AS col1 FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT + col2 * - col2 + + 38 * 34 AS col1 FROM tab2 AS cor0
----
-152
563
616

onlyif mysql # use DIV operator for integer division
query I rowsort label-5857
SELECT - col2 * col2 DIV - 80 AS col1 FROM tab0 AS cor0
----
0
13
84

skipif mysql # not compatible
query I rowsort label-5857
SELECT - col2 * col2 / - 80 AS col1 FROM tab0 AS cor0
----
0
13
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( + col2 ) col2 FROM tab0 cor0
----
-1
-33
-82

query I rowsort
SELECT DISTINCT - + col2 + + col0 AS col0 FROM tab0 cor0
----
-9
34
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-5860
SELECT + col1 DIV - cor0.col1 AS col1 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5860
SELECT + col1 / - cor0.col1 AS col1 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ALL - + col1 + 97 * - col2 * cor0.col1 FROM tab2 AS cor0
----
-148857
-62679
-81220

query I rowsort
SELECT ALL + + 17 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 43298e43365fccb5146ea32003753c92

query I rowsort
SELECT DISTINCT - - col1 * cor0.col1 * - col1 FROM tab1 cor0
----
-1000
-17576
-2197

onlyif mysql # use DIV operator for integer division
query I rowsort label-5864
SELECT ALL - - cor0.col0 DIV cor0.col0 AS col0 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5864
SELECT ALL - - cor0.col0 / cor0.col0 AS col0 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT + + col2 * + 98 + 35 AS col2 FROM tab0 AS cor0
----
133
3269
8071

query I rowsort
SELECT ALL + col0 * 88 AS col2 FROM tab2 AS cor0
----
616
6864
6952

query I rowsort
SELECT DISTINCT + - col0 * + cor0.col2 + col2 AS col2 FROM tab2 AS cor0
----
-162
-2002
-2964

query I rowsort
SELECT DISTINCT + col1 * 13 FROM tab1 AS cor0
----
130
169
338

query I rowsort
SELECT + + cor0.col0 + 4 * + 71 AS col0 FROM tab2 AS cor0
----
291
362
363

query I rowsort
SELECT DISTINCT - col1 + + 47 AS col1 FROM tab2 AS cor0
----
-12
16
30

query I rowsort
SELECT ALL - col2 * 55 AS col2 FROM tab0 cor0
----
-1815
-4510
-55

query I rowsort
SELECT + 16 * col1 FROM tab2
----
272
496
944

onlyif mysql # use DIV operator for integer division
query I rowsort label-5873
SELECT DISTINCT col0 DIV tab0.col2 + 99 AS col1 FROM tab0
----
100
134
99

skipif mysql # not compatible
query I rowsort label-5873
SELECT DISTINCT col0 / tab0.col2 + 99 AS col1 FROM tab0
----
100
134
99

query I rowsort
SELECT + 93 + col0 FROM tab2
----
100
171
172

onlyif mysql # use DIV operator for integer division
query I rowsort label-5875
SELECT - col0 DIV col0 + 33 AS col1 FROM tab1
----
32
32
32

skipif mysql # not compatible
query I rowsort label-5875
SELECT - col0 / col0 + 33 AS col1 FROM tab1
----
32
32
32

query I rowsort
SELECT DISTINCT - col2 + + col1 + ( - tab2.col0 ) FROM tab2
----
-100
-3
-45

query I rowsort
SELECT ALL + 74 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to dc22979e6d261795bd3ce2990fdbbf82

query I rowsort
SELECT ALL + cor1.col2 AS col2 FROM tab0 cor0 CROSS JOIN tab0, tab1 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 + 26 * 13 col0 FROM tab0 AS cor0
----
424
429
435

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5880
SELECT ALL + - col0 * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5880
SELECT ALL + - col0 * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 * 32 * col1 FROM tab1 AS cor0
----
20480
2496
33280

query I rowsort
SELECT - col0 * - ( - col2 * - cor0.col1 + - 57 ) FROM tab2 AS cor0
----
115206
46531
5460

query I rowsort
SELECT - cor0.col0 * - 14 AS col1 FROM tab0 AS cor0
----
1246
336
490

query I rowsort
SELECT - col0 + - col2 * col0 FROM tab2
----
-196
-2106
-3081

query I rowsort
SELECT + col1 * tab1.col2 + - col0 FROM tab1
----
1168
1401
506

query I rowsort
SELECT ALL + + 25 + 12 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to a10b03e72860b949bdff53827700a9a8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( cor0.col2 ) + - col2 col1 FROM tab2 AS cor0
----
-52
-54
-76

query I rowsort
SELECT ( + col1 ) * - col0 + col1 * + col0 AS col2 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT - col1 * 31 * col0 - 42 AS col2 FROM tab2 cor0
----
-142704
-41675
-6769

onlyif mysql # use DIV operator for integer division
query I rowsort label-5890
SELECT ALL - ( 99 ) DIV - col2 + ( - tab0.col2 ) FROM tab0
----
-30
-81
98

skipif mysql # not compatible
query I rowsort label-5890
SELECT ALL - ( 99 ) / - col2 + ( - tab0.col2 ) FROM tab0
----
-30
-81
98

query I rowsort
SELECT - col0 + + col1 * - ( + 79 ) * + cor0.col2 AS col1 FROM tab0 AS cor0
----
-224226
-589587
-7698

query I rowsort
SELECT DISTINCT + 25 AS col1 FROM tab1
----
25

query I rowsort
SELECT DISTINCT + col1 * col0 * col1 FROM tab0 cor0
----
177504
329315
737009

query I rowsort
SELECT DISTINCT - + 23 FROM tab1 AS cor0
----
-23

query I rowsort
SELECT + col2 * col1 + + 12 FROM tab1 AS cor0
----
1260
1416
582

query I rowsort
SELECT DISTINCT - + 92 FROM tab1 AS cor0
----
-92

query I rowsort
SELECT col1 + 32 + - col0 AS col1 FROM tab1
----
-22
-35
55

query I rowsort
SELECT + cor0.col2 + col2 * col0 FROM tab0 AS cor0
----
36
7380
825

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5899
SELECT ALL col1 * CAST( 95 AS SIGNED ) FROM tab0
----
8170
8645
9215

skipif mysql # not compatible
query I rowsort label-5899
SELECT ALL col1 * CAST ( 95 AS INTEGER ) FROM tab0
----
8170
8645
9215

query I rowsort
SELECT + - 32 * + 3 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0, tab2 AS cor1
----
27 values hashing to a7b3e5dd01c8929180b7ffda67f79798

query I rowsort
SELECT DISTINCT - col0 + - 37 FROM tab0
----
-126
-61
-72

query I rowsort
SELECT ALL 51 * col0 FROM tab0 AS cor0
----
1224
1785
4539

query I rowsort
SELECT ( col2 ) * col0 * 70 AS col2 FROM tab1
----
11340
255360
537600

query I rowsort
SELECT DISTINCT - + col0 * 46 AS col2 FROM tab2 AS cor0
----
-322
-3588
-3634

query I rowsort
SELECT DISTINCT + + col1 + - cor0.col0 FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT col0 * col1 - + col2 AS col0 FROM tab0 AS cor0
----
2031
3394
8017

query I rowsort
SELECT + ( col2 ) + ( 91 ) * cor0.col2 * - col1 FROM tab1 AS cor0
----
-113472
-127710
-51813

query I rowsort
SELECT ALL - 91 AS col0 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 6ec4feac5c635ab8e5da71006896acab

query I rowsort
SELECT + + col1 * - col2 * col1 AS col0 FROM tab1 AS cor0
----
-16224
-36504
-5700

query I rowsort
SELECT - + cor0.col1 + + 5 FROM tab2, tab0 AS cor0
----
9 values hashing to de4584f6b76142a14f7aa31b73207ae5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col1 + - 49 col2 FROM tab1 AS cor0
----
-23
-36
-39

onlyif mysql # use DIV operator for integer division
query I rowsort label-5912
SELECT DISTINCT col2 * - col0 * col0 + col1 + - 65 DIV col0 FROM tab0 AS cor0
----
-1129
-18924
-649431

skipif mysql # not compatible
query I rowsort label-5912
SELECT DISTINCT col2 * - col0 * col0 + col1 + - 65 / col0 FROM tab0 AS cor0
----
-1129
-18924
-649431

query I rowsort
SELECT DISTINCT + col1 * + 42 FROM tab2 AS cor0
----
1302
2478
714

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5914
SELECT ALL - col1 + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5914
SELECT ALL - col1 + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 * ( + col1 ) AS col2 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT ALL - col2 * - 83 AS col1 FROM tab0 cor0
----
2739
6806
83

query I rowsort
SELECT + + col2 + ( col1 ) * col2 AS col1 FROM tab0 AS cor0
----
2871
7544
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-5918
SELECT DISTINCT + col0 + 72 DIV 85 FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-5918
SELECT DISTINCT + col0 + 72 / 85 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT ALL - col0 * - 97 FROM tab0 AS cor0
----
2328
3395
8633

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 * - cor0.col0 col2 FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT col1 * ( col1 ) AS col0 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT DISTINCT 8 FROM tab1, tab2 AS cor0, tab0 cor1
----
8

query I rowsort
SELECT + col1 * 89 FROM tab1 AS cor0
----
1157
2314
890

query I rowsort
SELECT + ( - 0 ) + + col2 AS col0 FROM tab2 cor0
----
26
27
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-5925
SELECT ALL + + ( + col1 ) DIV col0 + + col0 FROM tab2 AS cor0
----
11
78
79

skipif mysql # not compatible
query I rowsort label-5925
SELECT ALL + + ( + col1 ) / col0 + + col0 FROM tab2 AS cor0
----
11
78
79

query I rowsort
SELECT DISTINCT - col0 * - col1 + col0 - col0 AS col2 FROM tab2 AS cor0
----
1343
217
4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-5927
SELECT + col0 - + 15 DIV col0 AS col1 FROM tab2 cor0
----
5
78
79

skipif mysql # not compatible
query I rowsort label-5927
SELECT + col0 - + 15 / col0 AS col1 FROM tab2 cor0
----
5
78
79

query I rowsort
SELECT + 85 * - 87 FROM tab0 AS cor0
----
-7395
-7395
-7395

onlyif mysql # use DIV operator for integer division
query I rowsort label-5929
SELECT + - cor0.col0 DIV col2 AS col1 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-5929
SELECT + - cor0.col0 / col2 AS col1 FROM tab1 AS cor0
----
-1
0
0

query I rowsort
SELECT DISTINCT + col1 * + 60 * - col1 FROM tab1
----
-10140
-40560
-6000

query I rowsort
SELECT DISTINCT - 37 AS col1 FROM tab1, tab1 cor0
----
-37

onlyif mysql # use DIV operator for integer division
query I rowsort label-5932
SELECT - 27 DIV + col0 col2 FROM tab1 AS cor0
----
-9
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5932
SELECT - 27 / + col0 col2 FROM tab1 AS cor0
----
-9
0
0

query I rowsort
SELECT - 81 + col2 FROM tab1 AS cor0
----
-24
-27
15

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5934
SELECT ALL - CAST( + 68 AS SIGNED ) FROM tab1
----
-68
-68
-68

skipif mysql # not compatible
query I rowsort label-5934
SELECT ALL - CAST ( + 68 AS INTEGER ) FROM tab1
----
-68
-68
-68

query I rowsort
SELECT + 8 + + col0 * col0 FROM tab2 cor0
----
57
6092
6249

query I rowsort
SELECT - ( col2 ) * col2 + 41 FROM tab2
----
-1403
-635
-688

query I rowsort
SELECT + tab2.col0 * + col1 + col2 * + col0 AS col0 FROM tab2
----
406
4345
6630

query I rowsort
SELECT ALL - cor0.col0 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 3000337dd3f11e9cfd5a312b01ef3f8b

query I rowsort
SELECT DISTINCT + + 87 * + col2 FROM tab2 AS cor0
----
2262
2349
3306

query I rowsort
SELECT - cor0.col1 * + col1 + col1 FROM tab0 AS cor0
----
-7310
-8190
-9312

query I rowsort
SELECT ALL + ( col2 ) * - col1 FROM tab1
----
-1248
-1404
-570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col2 ) col1 FROM tab1
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort
SELECT + CAST ( + col2 AS REAL ) - col1 * col0 FROM tab1
----
-24
-583
-944

query I rowsort
SELECT ALL - 9 AS col0 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to 3dfe689e16ce3a87877d40f349e6c7b5

query I rowsort
SELECT DISTINCT 1 * col0 FROM tab2
----
7
78
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 57 * - 62 col2 FROM tab2
----
-3534

query I rowsort
SELECT ALL 44 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d

query I rowsort
SELECT DISTINCT + cor1.col0 AS col1 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
7
78
79

query I rowsort
SELECT ( + col2 + col2 ) FROM tab0
----
164
2
66

query I rowsort
SELECT DISTINCT + + col2 - + col2 * - ( + col0 ) FROM tab0 AS cor0
----
36
7380
825

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 * col1 * ( - col2 ) col2 FROM tab0 AS cor0
----
-611884
-93654
-97

query I rowsort
SELECT DISTINCT - + col1 + + col2 * + ( cor0.col0 * col0 ) FROM tab0 cor0
----
1128
18922
649431

query I rowsort
SELECT DISTINCT cor0.col1 * - col1 + 51 AS col0 FROM tab2 AS cor0
----
-238
-3430
-910

onlyif mysql # use DIV operator for integer division
query I rowsort label-5954
SELECT DISTINCT - - col1 + - col0 DIV - 34 AS col2 FROM tab0 cor0
----
86
93
98

skipif mysql # not compatible
query I rowsort label-5954
SELECT DISTINCT - - col1 + - col0 / - 34 AS col2 FROM tab0 cor0
----
86
93
98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5955
SELECT ALL col2 * - col0 * - CAST( NULL AS DECIMAL ) - 36 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5955
SELECT ALL col2 * - col0 * - CAST ( NULL AS REAL ) - 36 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - - 9 * cor0.col0 * col0 + col0 AS col0 FROM tab1 AS cor0
----
36928
57680
84

onlyif mysql # use DIV operator for integer division
query I rowsort label-5957
SELECT DISTINCT + col2 * col2 DIV - col0 FROM tab0 AS cor0
----
-45
-75
0

skipif mysql # not compatible
query I rowsort label-5957
SELECT DISTINCT + col2 * col2 / - col0 FROM tab0 AS cor0
----
-45
-75
0

query I rowsort
SELECT + col0 * col2 + - col1 FROM tab0 AS cor0
----
-62
706
7207

query I rowsort
SELECT col1 * ( - 21 ) + - cor0.col1 FROM tab2 AS cor0
----
-1298
-374
-682

query I rowsort
SELECT col0 - col0 * col1 FROM tab2
----
-1264
-210
-4524

query I rowsort
SELECT - col2 * - 52 * ( + col0 ) + + col0 * - col2 AS col1 FROM tab1 AS cor0
----
186048
391680
8262

onlyif mysql # use DIV operator for integer division
query I rowsort label-5962
SELECT col1 DIV + col1 + 19 * col0 AS col0 FROM tab2 AS cor0
----
134
1483
1502

skipif mysql # not compatible
query I rowsort label-5962
SELECT col1 / + col1 + 19 * col0 AS col0 FROM tab2 AS cor0
----
134
1483
1502

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + ( + col2 ) + + col1 * 25 col2 FROM tab1 AS cor0
----
297
408
678

onlyif mysql # use DIV operator for integer division
query I rowsort label-5964
SELECT + col1 DIV + col1 + - 56 DIV col1 col0 FROM tab1 AS cor0
----
-1
-3
-4

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5964
SELECT + col1 / + col1 + - 56 / col1 col0 FROM tab1 AS cor0
----
-1
-3
-4

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5965
SELECT - + col1 * CAST( col0 AS SIGNED ) + + col1 FROM tab0 AS cor0
----
-1978
-3298
-8008

skipif mysql # not compatible
query I rowsort label-5965
SELECT - + col1 * CAST ( col0 AS INTEGER ) + + col1 FROM tab0 AS cor0
----
-1978
-3298
-8008

query I rowsort
SELECT ALL ( + 6 ) * + col2 FROM tab0 AS cor0
----
198
492
6

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5967
SELECT ALL - + CAST( + col1 AS SIGNED ) * + col2 * - ( + col0 ) + cor0.col1 * + col0 AS col2 FROM tab0 AS cor0
----
672217
6790
70176

skipif mysql # not compatible
query I rowsort label-5967
SELECT ALL - + CAST ( + col1 AS INTEGER ) * + col2 * - ( + col0 ) + cor0.col1 * + col0 AS col2 FROM tab0 AS cor0
----
672217
6790
70176

query I rowsort
SELECT ALL + ( col2 ) + - col1 + - col1 * col2 FROM tab2 AS cor0
----
-1567
-625
-841

query I rowsort
SELECT tab0.col1 + 86 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 21ba6badc2e2d538b9d76ba7685c7aa3

query I rowsort
SELECT ALL + 75 + cor0.col1 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 0671e28986b54fbf40581e5632aa9124

query I rowsort
SELECT DISTINCT + col0 * + 78 - + col1 * cor0.col2 AS col0 FROM tab0 AS cor0
----
-520
-966
2633

query I rowsort
SELECT - + 78 + + 6 * col2 + cor0.col2 AS col2 FROM tab2 cor0
----
104
111
188

query I rowsort
SELECT DISTINCT - 40 + - 68 * cor0.col2 AS col1 FROM tab1 AS cor0
----
-3712
-3916
-6568

query I rowsort
SELECT + 38 * col1 + col0 FROM tab1 AS cor0
----
444
574
991

query I rowsort
SELECT ALL - 85 * - col2 + - col0 FROM tab1 AS cor0
----
4587
4781
8080

query I rowsort
SELECT ALL - ( cor0.col1 ) * - col0 + - col1 FROM tab2 cor0
----
1326
186
4543

query I rowsort
SELECT - - col2 + - 80 AS col0 FROM tab2 AS cor0
----
-42
-53
-54

query I rowsort
SELECT ALL + ( col2 ) * col0 + 55 FROM tab1 AS cor0
----
217
3703
7735

query I rowsort
SELECT DISTINCT 28 * - 25 AS col0 FROM tab1 AS cor0
----
-700

query I rowsort
SELECT ALL + col1 * + 20 FROM tab1 AS cor0
----
200
260
520

onlyif mysql # use DIV operator for integer division
query I rowsort label-5981
SELECT - col1 - + col2 DIV - tab1.col1 FROM tab1
----
-24
-5
-6

skipif mysql # not compatible
query I rowsort label-5981
SELECT - col1 - + col2 / - tab1.col1 FROM tab1
----
-24
-5
-6

onlyif mysql # use DIV operator for integer division
query I rowsort label-5982
SELECT ALL 95 DIV col0 AS col1 FROM tab2 AS cor0
----
1
1
13

skipif mysql # not compatible
query I rowsort label-5982
SELECT ALL 95 / col0 AS col1 FROM tab2 AS cor0
----
1
1
13

query I rowsort
SELECT - 60 * - 34 AS col1 FROM tab1 AS cor0
----
2040
2040
2040

query I rowsort
SELECT DISTINCT - 44 + - col0 AS col2 FROM tab1 AS cor0
----
-108
-124
-47

onlyif mysql # use DIV operator for integer division
query I rowsort label-5985
SELECT 32 + - col1 DIV col1 AS col1 FROM tab2 AS cor0
----
31
31
31

skipif mysql # not compatible
query I rowsort label-5985
SELECT 32 + - col1 / col1 AS col1 FROM tab2 AS cor0
----
31
31
31

query I rowsort
SELECT DISTINCT - 88 + col0 AS col2 FROM tab0 AS cor0
----
-53
-64
1

query I rowsort
SELECT ALL - 39 AS col1 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to a08a82dc9276c0173448e9a1c89dba93

query I rowsort
SELECT ALL + + col1 * - col0 * - 59 AS col1 FROM tab2 AS cor0
----
12803
271518
79237

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - 93 + - 28 col2 FROM tab1 AS cor0
----
-108
-111
-95

query I rowsort
SELECT DISTINCT + - col1 * col2 * - col1 FROM tab0 AS cor0
----
244068
679042
9409

query I rowsort
SELECT DISTINCT - col2 * ( col2 ) AS col2 FROM tab1 cor0
----
-2916
-3249
-9216

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5992
SELECT - 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-5992
SELECT - col2 / - CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 * + col1 * + 49 FROM tab1
----
-27930
-61152
-68796

query I rowsort
SELECT ALL + col1 - - 30 AS col0 FROM tab1 AS cor0
----
40
43
56

query I rowsort
SELECT DISTINCT - col2 + col1 * - 59 AS col1 FROM tab0 cor0
----
-5107
-5451
-5724

query I rowsort
SELECT DISTINCT + 97 * col0 * + 43 AS col0 FROM tab2
----
29197
325338
329509

query I rowsort
SELECT col1 + col0 * - col2 - col1 AS col2 FROM tab1
----
-162
-3648
-7680

query I rowsort
SELECT DISTINCT col0 * + col2 * 84 + col0 AS col2 FROM tab0
----
2975
613121
66552

query I rowsort
SELECT DISTINCT tab2.col1 + - 65 * col2 AS col0 FROM tab2
----
-1631
-1724
-2453

onlyif mysql # use DIV operator for integer division
query I rowsort label-6000
SELECT - col1 + - ( + 36 ) DIV tab1.col1 FROM tab1
----
-13
-15
-27

skipif mysql # not compatible
query I rowsort label-6000
SELECT - col1 + - ( + 36 ) / tab1.col1 FROM tab1
----
-13
-15
-27

query I rowsort
SELECT DISTINCT + col0 + ( 96 ) FROM tab0
----
120
131
185

query I rowsort
SELECT col2 + + col2 + col1 * col0 FROM tab1
----
1232
186
754

query I rowsort
SELECT tab1.col2 - ( - col2 + col2 ) * - 28 AS col0 FROM tab1
----
54
57
96

query I rowsort
SELECT - col0 * - col2 - col2 * + col1 FROM tab0 AS cor0
----
-164
-2046
-62

query I rowsort
SELECT DISTINCT - col0 + col0 * + col0 AS col0 FROM tab2 AS cor0
----
42
6006
6162

query I rowsort
SELECT DISTINCT + col2 + ( col2 ) * tab2.col1 + 12 FROM tab2
----
1572
696
876

query I rowsort
SELECT DISTINCT col1 + col0 + + col1 AS col1 FROM tab0
----
196
229
271

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6008
SELECT tab1.col2 + CAST( NULL AS SIGNED ) col2 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6008
SELECT tab1.col2 + CAST ( NULL AS INTEGER ) col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + + cor0.col2 + + ( 35 ) FROM tab1 AS cor0
----
131
89
92

query I rowsort
SELECT - col0 * 16 FROM tab0 cor0
----
-1424
-384
-560

query I rowsort
SELECT col2 * col2 + col1 AS col1 FROM tab0 cor0
----
1175
6815
98

query I rowsort
SELECT ALL - col0 * 45 FROM tab0 AS cor0
----
-1080
-1575
-4005

query I rowsort
SELECT col0 + 23 AS col0 FROM tab2 AS cor0
----
101
102
30

onlyif mysql # use DIV operator for integer division
query I rowsort label-6014
SELECT col1 * 22 DIV col1 AS col1 FROM tab0 AS cor0
----
22
22
22

skipif mysql # not compatible
query I rowsort label-6014
SELECT col1 * 22 / col1 AS col1 FROM tab0 AS cor0
----
22
22
22

query I rowsort
SELECT tab2.col1 - cor0.col0 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 64de71f07a6ba954417f781fbdd78d39

query I rowsort
SELECT + 71 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 95a6ff35b7b8f00868fb58bcaa32d0c2

query I rowsort
SELECT + col2 * - 82 FROM tab0 AS cor0
----
-2706
-6724
-82

onlyif mysql # use DIV operator for integer division
query I rowsort label-6018
SELECT + col1 + cor0.col2 DIV col1 AS col2 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-6018
SELECT + col1 + cor0.col2 / col1 AS col2 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT 2 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + cor0.col2 * col2 col2 FROM tab1 AS cor0
----
2970
3306
9312

query I rowsort
SELECT - + col2 * col1 + ( - ( col0 ) ) * col1 AS col1 FROM tab2 AS cor0
----
-1054
-1989
-6136

onlyif mysql # use DIV operator for integer division
query I rowsort label-6022
SELECT - tab1.col2 * - 40 + col1 DIV 52 AS col2 FROM tab1
----
2160
2280
3840

skipif mysql # not compatible
query I rowsort label-6022
SELECT - tab1.col2 * - 40 + col1 / 52 AS col2 FROM tab1
----
2160
2280
3840

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 34 col1 FROM tab2
----
-34

onlyif mysql # use DIV operator for integer division
query I rowsort label-6024
SELECT ALL col0 * col2 DIV + col0 AS col0 FROM tab1
----
54
57
96

skipif mysql # not compatible
query I rowsort label-6024
SELECT ALL col0 * col2 / + col0 AS col0 FROM tab1
----
54
57
96

query I rowsort
SELECT cor0.col1 FROM tab0, tab2 AS cor0 CROSS JOIN tab2
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

query I rowsort
SELECT ALL tab1.col2 FROM tab1, tab0, tab1 AS cor0, tab0 AS cor1
----
81 values hashing to 9d355f1f2edc347a359dad00d2d3f886

query I rowsort
SELECT ALL - ( col1 ) * 41 FROM tab2
----
-1271
-2419
-697

onlyif mysql # use DIV operator for integer division
query I rowsort label-6028
SELECT DISTINCT - + cor0.col0 DIV cor0.col1 FROM tab2 AS cor0
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-6028
SELECT DISTINCT - + cor0.col0 / cor0.col1 FROM tab2 AS cor0
----
-1
-4
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6029
SELECT + + 26 * + col1 DIV + col1 FROM tab2 AS cor0
----
26
26
26

skipif mysql # not compatible
query I rowsort label-6029
SELECT + + 26 * + col1 / + col1 FROM tab2 AS cor0
----
26
26
26

onlyif mysql # use DIV operator for integer division
query I rowsort label-6030
SELECT cor0.col2 DIV + col2 AS col0 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6030
SELECT cor0.col2 / + col2 AS col0 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT - + col0 + ( col2 ) AS col0 FROM tab1 cor0
----
-7
16
51

query I rowsort
SELECT ALL ( 67 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c

query I rowsort
SELECT - + col0 + cor0.col0 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 26 col1 FROM tab2
----
26

query I rowsort
SELECT + 10 FROM tab0, tab0 AS cor0, tab1 cor1
----
27 values hashing to 0fe3e45a9ecd49584c2ab442100d5176

onlyif mysql # use DIV operator for integer division
query I rowsort label-6036
SELECT + + col0 + col0 DIV 70 AS col1 FROM tab2 AS cor0
----
7
79
80

skipif mysql # not compatible
query I rowsort label-6036
SELECT + + col0 + col0 / 70 AS col1 FROM tab2 AS cor0
----
7
79
80

query I rowsort
SELECT - col0 - + col1 AS col1 FROM tab2
----
-137
-38
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-6038
SELECT col0 * col1 DIV tab0.col2 - col2 * 49 AS col2 FROM tab0
----
-1555
-3920
3346

skipif mysql # not compatible
query I rowsort label-6038
SELECT col0 * col1 / tab0.col2 - col2 * 49 AS col2 FROM tab0
----
-1555
-3920
3346

query I rowsort
SELECT ALL + cor0.col0 * + cor0.col2 AS col0 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 24e20ca2b8a28088cc71698417e1f489

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 * + 64 + 28 * + cor0.col2 col2 FROM tab1 AS cor0
----
2236
3176
3520

query I rowsort
SELECT + 93 - + cor0.col1 FROM tab2 AS cor0
----
34
62
76

query I rowsort
SELECT + col2 * - col2 - col2 AS col0 FROM tab2 cor0
----
-1482
-702
-756

query I rowsort
SELECT ALL ( - tab0.col1 + col1 * + 89 ) AS col0 FROM tab0
----
7568
8008
8536

query I rowsort
SELECT ( - 91 ) + cor0.col1 FROM tab0 AS cor0
----
-5
0
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 78 + - col2 col1 FROM tab0 AS cor0
----
-111
-160
-79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6046
SELECT + col0 * - cor0.col1 + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6046
SELECT + col0 * - cor0.col1 + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 98 * col1 AS col2 FROM tab1 AS cor0
----
-1274
-2548
-980

query I rowsort
SELECT 47 * - cor0.col0 + col0 FROM tab1 AS cor0
----
-138
-2944
-3680

query I rowsort
SELECT DISTINCT + col1 * + tab2.col0 * - col2 FROM tab2
----
-119652
-51034
-5859

query I rowsort
SELECT - col0 * col2 + - 50 AS col0 FROM tab2 AS cor0
----
-2078
-239
-3052

query I rowsort
SELECT ALL - col2 + - cor0.col2 * col0 * + col2 FROM tab2 AS cor0
----
-114114
-5130
-52754

onlyif mysql # use DIV operator for integer division
query I rowsort label-6052
SELECT 45 * + col1 DIV tab0.col1 AS col0 FROM tab0
----
45
45
45

skipif mysql # not compatible
query I rowsort label-6052
SELECT 45 * + col1 / tab0.col1 AS col0 FROM tab0
----
45
45
45

query I rowsort
SELECT + ( + 84 ) + col1 AS col2 FROM tab1
----
110
94
97

query I rowsort
SELECT ALL - 48 + - col0 AS col0 FROM tab0 AS cor0
----
-137
-72
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 * cor0.col1 col2 FROM tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT DISTINCT + + 0 + - col1 AS col0 FROM tab0 AS cor0
----
-86
-91
-97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6057
SELECT + ( ( - cor0.col1 ) ) * CAST( NULL AS SIGNED ) * + ( col1 ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6057
SELECT + ( ( - cor0.col1 ) ) * CAST ( NULL AS INTEGER ) * + ( col1 ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - ( 30 ) FROM tab0 AS cor0
----
-30

query I rowsort
SELECT ALL - col1 + + ( + tab2.col2 ) + tab2.col0 AS col1 FROM tab2
----
100
3
45

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab1 AS cor2, tab1 AS cor3
----
3645 values hashing to 4b145ce61881e246723968d1ac787ac2

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6061
SELECT col1 * CAST( NULL AS SIGNED ) + 3 * col1 - ( col2 ) * + col2 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6061
SELECT col1 * CAST ( NULL AS INTEGER ) + 3 * col1 - ( col2 ) * + col2 AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 + 0 + col2 FROM tab1
----
108
114
192

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + col1 ) * col2 col1 FROM tab0
----
2838
7462
97

query I rowsort
SELECT ALL - ( - cor0.col1 ) AS col2 FROM tab0, tab1 cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775

onlyif mysql # use DIV operator for integer division
query I rowsort label-6065
SELECT DISTINCT + col0 DIV - col1 col1 FROM tab2
----
-1
-4
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6065
SELECT DISTINCT + col0 / - col1 col1 FROM tab2
----
-1
-4
0

query I rowsort
SELECT - 66 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to cd4a3594ee8b45223ebf9f25840cd112

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + col1 * col0 - - tab0.col1 * - col0 col0 FROM tab0
----
0
656019
66048

query I rowsort
SELECT + 32 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to d30a2acbf33c88274474306936d3227b

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6069
SELECT ALL - - CAST( + 56 AS SIGNED ) FROM tab1 cor0
----
56
56
56

skipif mysql # not compatible
query I rowsort label-6069
SELECT ALL - - CAST ( + 56 AS INTEGER ) FROM tab1 cor0
----
56
56
56

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6070
SELECT CAST( - col0 AS SIGNED ) + - tab0.col2 AS col1 FROM tab0
----
-171
-36
-57

skipif mysql # not compatible
query I rowsort label-6070
SELECT CAST ( - col0 AS INTEGER ) + - tab0.col2 AS col1 FROM tab0
----
-171
-36
-57

query I rowsort
SELECT DISTINCT 19 * + cor0.col1 AS col2 FROM tab1, tab0 AS cor0
----
1634
1729
1843

query I rowsort
SELECT ALL 81 * + col1 AS col1 FROM tab2
----
1377
2511
4779

query I rowsort
SELECT - cor1.col2 FROM tab2, tab0, tab2 AS cor0, tab0 AS cor1
----
81 values hashing to 87af467938ef355540b8de24db1bf3b8

query I rowsort
SELECT ALL + col1 * 10 AS col0 FROM tab2 AS cor0
----
170
310
590

query I rowsort
SELECT DISTINCT col2 + 31 FROM tab1 AS cor0
----
127
85
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - col1 + 20 col0 FROM tab0 AS cor0
----
-2818
-7442
-77

query I rowsort
SELECT ALL - col2 * + col2 - + ( col0 ) * 3 * col0 AS col2 FROM tab1 AS cor0
----
-15537
-28416
-2943

query I rowsort
SELECT col1 + cor0.col0 AS col1 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT 47 * col0 AS col2 FROM tab1
----
141
3008
3760

query I rowsort
SELECT DISTINCT - col1 * col0 - ( 21 ) FROM tab0
----
-2085
-3416
-8120

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6081
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col0 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-6081
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col0 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6082
SELECT 82 DIV - col0 AS col2 FROM tab0
----
-2
-3
0

skipif mysql # not compatible
query I rowsort label-6082
SELECT 82 / - col0 AS col2 FROM tab0
----
-2
-3
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 18 col1 FROM tab1, tab0 AS cor0
----
9 values hashing to b95bafa733666df39c5d3f94760d010f

query I rowsort
SELECT 73 + 4 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622

onlyif mysql # use DIV operator for integer division
query I rowsort label-6085
SELECT DISTINCT + col0 DIV 2 + - col2 * + col1 FROM tab0 AS cor0
----
-2826
-7418
-80

skipif mysql # not compatible
query I rowsort label-6085
SELECT DISTINCT + col0 / 2 + - col2 * + col1 FROM tab0 AS cor0
----
-2826
-7418
-80

query I rowsort
SELECT - col0 - cor0.col0 AS col1 FROM tab2 AS cor0
----
-14
-156
-158

query I rowsort
SELECT col1 * ( cor0.col0 ) FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT DISTINCT + col1 + + cor0.col0 * col1 FROM tab2 AS cor0
----
1360
248
4661

query I rowsort
SELECT DISTINCT - col2 * 54 + + col0 FROM tab2 cor0
----
-1326
-1451
-1973

query I rowsort
SELECT - + col1 * - col0 + + 96 AS col0 FROM tab1 AS cor0
----
1136
174
736

query I rowsort
SELECT + col2 + ( ( + col0 ) ) FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT DISTINCT col2 + col1 + cor0.col2 AS col2 FROM tab0 AS cor0
----
152
255
99

query I rowsort
SELECT - col2 + - col0 + col1 * + cor0.col1 FROM tab0 AS cor0
----
7339
8110
9373

query I rowsort
SELECT ALL + cor0.col0 * ( + 45 ) AS col1 FROM tab2 AS cor0
----
315
3510
3555

onlyif mysql # use DIV operator for integer division
query I rowsort label-6095
SELECT + col1 DIV tab1.col1 AS col2 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6095
SELECT + col1 / tab1.col1 AS col2 FROM tab1
----
1
1
1

query I rowsort
SELECT ( - tab2.col1 ) AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to ccaa5dd3388d9ee0fea676fa35299fe5

query I rowsort
SELECT DISTINCT - tab2.col1 * - ( col0 * col0 ) + + ( + col0 ) * col2 AS col1 FROM tab2
----
109099
1708
360984

query I rowsort
SELECT DISTINCT + col1 * 69 - + col2 * col2 FROM tab0 AS cor0
----
-445
4845
6692

query I rowsort
SELECT - col1 * col0 - - col2 * - col1 AS col1 FROM tab0 AS cor0
----
-15561
-3492
-4902

query I rowsort
SELECT DISTINCT cor0.col0 + + col0 AS col2 FROM tab1 AS cor0
----
128
160
6

query I rowsort
SELECT ALL - col1 - - 35 AS col1 FROM tab1 AS cor0
----
22
25
9

query I rowsort
SELECT DISTINCT + cor0.col2 + + col1 * - col1 * col0 FROM tab1 cor0
----
-13424
-1974
-6343

query I rowsort
SELECT DISTINCT cor0.col0 * - 60 + - col0 AS col0 FROM tab1 AS cor0
----
-183
-3904
-4880

query I rowsort
SELECT - col2 * - col0 + col0 + + 87 AS col1 FROM tab2 AS cor0
----
2193
283
3168

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6105
SELECT ALL + CAST( + col1 AS SIGNED ) * + col2 + + col0 AS col2 FROM tab2 AS cor0
----
1612
725
844

skipif mysql # not compatible
query I rowsort label-6105
SELECT ALL + CAST ( + col1 AS INTEGER ) * + col2 + + col0 AS col2 FROM tab2 AS cor0
----
1612
725
844

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col1 + + cor0.col1 col1 FROM tab1 AS cor0
----
104
1053
650

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6107
SELECT ALL + - CAST( + col2 AS SIGNED ) * + col2 - ( ( cor0.col2 ) ) FROM tab1 AS cor0
----
-2970
-3306
-9312

skipif mysql # not compatible
query I rowsort label-6107
SELECT ALL + - CAST ( + col2 AS INTEGER ) * + col2 - ( ( cor0.col2 ) ) FROM tab1 AS cor0
----
-2970
-3306
-9312

query I rowsort
SELECT + - 60 + ( - cor0.col0 ) AS col2 FROM tab2 AS cor0
----
-138
-139
-67

query I rowsort
SELECT ALL + col0 + 34 FROM tab1 AS cor0
----
114
37
98

query I rowsort
SELECT + - ( + col2 ) * - col0 + col0 AS col0 FROM tab1 AS cor0
----
165
3712
7760

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 + - ( cor0.col2 ) col0 FROM tab0 AS cor0
----
-171
-36
-57

query I rowsort
SELECT DISTINCT - 13 + + 29 FROM tab2 AS cor0
----
16

onlyif mysql # use DIV operator for integer division
query I rowsort label-6113
SELECT - 19 DIV - 70 - - col1 col2 FROM tab2 AS cor0
----
17
31
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6113
SELECT - 19 / - 70 - - col1 col2 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT 43 * - col1 FROM tab1 AS cor0
----
-1118
-430
-559

onlyif mysql # use DIV operator for integer division
query I rowsort label-6115
SELECT DISTINCT + col1 DIV col0 + cor0.col1 DIV + col1 AS col2 FROM tab2 cor0
----
1
5

skipif mysql # not compatible
query I rowsort label-6115
SELECT DISTINCT + col1 / col0 + cor0.col1 / + col1 AS col2 FROM tab2 cor0
----
1
5

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6116
SELECT ALL + CAST( NULL AS SIGNED ) + - col1 + + col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6116
SELECT ALL + CAST ( NULL AS INTEGER ) + - col1 + + col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6117
SELECT ALL - ( - col0 ) DIV + col0 AS col0 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6117
SELECT ALL - ( - col0 ) / + col0 AS col0 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT - + ( + 11 ) + - col2 AS col1 FROM tab1 cor0
----
-107
-65
-68

query I rowsort
SELECT DISTINCT ( col2 ) + + 94 * + col0 FROM tab0 AS cor0
----
2289
3291
8448

query I rowsort
SELECT - + 24 * - col1 FROM tab2 AS cor0
----
1416
408
744

onlyif mysql # use DIV operator for integer division
query I rowsort label-6121
SELECT 5 DIV cor0.col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6121
SELECT 5 / cor0.col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL 42 + - cor0.col0 * + ( + col1 ) AS col0 FROM tab1 AS cor0
----
-36
-598
-998

query I rowsort
SELECT + col0 * - col1 * - col0 AS col1 FROM tab0 cor0
----
118825
49536
720811

query I rowsort
SELECT + 52 * - col0 AS col2 FROM tab0 AS cor0
----
-1248
-1820
-4628

query I rowsort
SELECT DISTINCT cor0.col2 * col1 + - ( - col2 ) + - col0 FROM tab1 AS cor0
----
1264
1455
563

query I rowsort
SELECT DISTINCT + + 73 * col0 FROM tab2 cor0
----
511
5694
5767

query I rowsort
SELECT DISTINCT - 45 * col2 AS col2 FROM tab0 AS cor0
----
-1485
-3690
-45

query I rowsort
SELECT 7 * col0 AS col2 FROM tab2 AS cor0
----
49
546
553

query I rowsort
SELECT 72 * + col0 FROM tab1 AS cor0
----
216
4608
5760

onlyif mysql # use DIV operator for integer division
query I rowsort label-6130
SELECT ALL 83 + + col0 DIV col0 AS col0 FROM tab1 AS cor0
----
84
84
84

skipif mysql # not compatible
query I rowsort label-6130
SELECT ALL 83 + + col0 / col0 AS col0 FROM tab1 AS cor0
----
84
84
84

query I rowsort
SELECT DISTINCT 37 + col2 AS col0 FROM tab0 AS cor0
----
119
38
70

query I rowsort
SELECT + + 10 + col0 * 27 FROM tab0 AS cor0
----
2413
658
955

onlyif mysql # use DIV operator for integer division
query I rowsort label-6133
SELECT DISTINCT + 38 DIV col1 col2 FROM tab0 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6133
SELECT DISTINCT + 38 / col1 col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT - col0 + cor0.col2 * - 65 FROM tab1 AS cor0
----
-3513
-3769
-6320

query I rowsort
SELECT - col1 * - col0 * - col1 FROM tab2 AS cor0
----
-22831
-271518
-6727

query I rowsort
SELECT ALL - col1 + 59 AS col1 FROM tab1 AS cor0
----
33
46
49

onlyif mysql # use DIV operator for integer division
query I rowsort label-6137
SELECT ( tab1.col2 ) DIV + 36 + col2 AS col0 FROM tab1
----
55
58
98

skipif mysql # not compatible
query I rowsort label-6137
SELECT ( tab1.col2 ) / + 36 + col2 AS col0 FROM tab1
----
55
58
98

query I rowsort
SELECT DISTINCT - 73 AS col1 FROM tab2
----
-73

onlyif mysql # use DIV operator for integer division
query I rowsort label-6139
SELECT DISTINCT + - cor0.col0 * col1 + col0 DIV + cor0.col1 AS col0 FROM tab2 AS cor0
----
-1339
-217
-4601

skipif mysql # not compatible
query I rowsort label-6139
SELECT DISTINCT + - cor0.col0 * col1 + col0 / + cor0.col1 AS col0 FROM tab2 AS cor0
----
-1339
-217
-4601

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6140
SELECT ALL + CAST( + col0 AS SIGNED ) AS col0 FROM tab0 cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-6140
SELECT ALL + CAST ( + col0 AS INTEGER ) AS col0 FROM tab0 cor0
----
24
35
89

query I rowsort
SELECT DISTINCT + - col2 + + col0 AS col2 FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT ALL col1 * cor0.col1 - col0 * + ( + 2 ) FROM tab1 AS cor0
----
-28
670
9

query I rowsort
SELECT ALL col2 + cor0.col2 - + col2 AS col1 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT ALL col1 * 97 AS col0 FROM tab2
----
1649
3007
5723

query I rowsort
SELECT + col2 + cor0.col1 + + cor0.col0 AS col1 FROM tab2 AS cor0
----
134
163
65

onlyif mysql # use DIV operator for integer division
query I rowsort label-6146
SELECT + 20 * 99 DIV cor0.col0 + - 81 + + 16 * col1 FROM tab2 AS cor0
----
216
697
888

skipif mysql # not compatible
query I rowsort label-6146
SELECT + 20 * 99 / cor0.col0 + - 81 + + 16 * col1 FROM tab2 AS cor0
----
216
697
888

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( - col1 ) col1 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT ALL - ( - col1 ) + col2 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT col2 * + ( - col2 + col1 ) FROM tab2 AS cor0
----
-798
108
858

query I rowsort
SELECT + + col1 * col2 * - col2 FROM tab1 AS cor0
----
-119808
-32490
-75816

query I rowsort
SELECT DISTINCT + ( + 19 ) AS col0 FROM tab2
----
19

query I rowsort
SELECT + 79 AS col0 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 4857f2e1b1dbd184de4827f145dd02a1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6153
SELECT + + col0 * + col0 + col2 + col1 * + CAST( col2 + + col1 AS SIGNED ) FROM tab1 AS cor0
----
2143
4823
7913

skipif mysql # not compatible
query I rowsort label-6153
SELECT + + col0 * + col0 + col2 + col1 * + CAST ( col2 + + col1 AS INTEGER ) FROM tab1 AS cor0
----
2143
4823
7913

query I rowsort
SELECT DISTINCT - col0 * ( + col1 ) AS col0 FROM tab2 cor0
----
-1343
-217
-4602

query I rowsort
SELECT + - col2 + 0 * col0 AS col0 FROM tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT ( + 90 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 96f7a90428db93f472e0d219bab64853

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6157
SELECT col1 * + 77 * + col2 + col1 * CAST( NULL AS SIGNED ) + 54 / col0 col1 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6157
SELECT col1 * + 77 * + col2 + col1 * CAST ( NULL AS INTEGER ) + 54 / col0 col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT col1 * ( 96 ) + col2 FROM tab0
----
8289
8818
9313

query I rowsort
SELECT ALL + - col0 * - col0 FROM tab0 cor0
----
1225
576
7921

query I rowsort
SELECT ALL - col0 + col0 * + col1 AS col2 FROM tab2 AS cor0
----
1264
210
4524

query I rowsort
SELECT tab0.col0 AS col1 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

onlyif mysql # use DIV operator for integer division
query I rowsort label-6162
SELECT DISTINCT + col0 DIV - col0 + - col1 FROM tab2 AS cor0
----
-18
-32
-60

skipif mysql # not compatible
query I rowsort label-6162
SELECT DISTINCT + col0 / - col0 + - col1 FROM tab2 AS cor0
----
-18
-32
-60

query I rowsort
SELECT DISTINCT + cor0.col2 * 1 FROM tab1 AS cor0
----
54
57
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6164
SELECT DISTINCT - CAST( NULL AS SIGNED ) + col1 * - col0 AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6164
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + col1 * - col0 AS col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6165
SELECT DISTINCT col2 * CAST( + col1 AS SIGNED ) DIV col2 AS col2 FROM tab0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-6165
SELECT DISTINCT col2 * CAST ( + col1 AS INTEGER ) / col2 AS col2 FROM tab0
----
86
91
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6166
SELECT col1 * + CAST( NULL AS SIGNED ) * + col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6166
SELECT col1 * + CAST ( NULL AS INTEGER ) * + col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6167
SELECT ALL col0 DIV 89 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6167
SELECT ALL col0 / 89 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT + ( + col1 * + col0 ) AS col0 FROM tab0
----
2064
3395
8099

query I rowsort
SELECT + + ( - tab2.col1 ) FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + + 3 col0 FROM tab0
----
36
4
85

query I rowsort
SELECT DISTINCT ( + col0 ) * col1 + col0 * + 33 + + col2 * + col2 * col0 FROM tab0
----
28992
4585
609472

query I rowsort
SELECT DISTINCT + 1 AS col2 FROM tab0
----
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-6173
SELECT DISTINCT + + col2 DIV + cor0.col0 - - ( col1 ) AS col0 FROM tab1 AS cor0
----
10
14
44

skipif mysql # not compatible
query I rowsort label-6173
SELECT DISTINCT + + col2 / + cor0.col0 - - ( col1 ) AS col0 FROM tab1 AS cor0
----
10
14
44

query I rowsort
SELECT ALL + + cor0.col1 * + col0 + col2 * col1 * + col0 FROM tab1 AS cor0
----
100880
37120
4290

query I rowsort
SELECT - - cor0.col2 * 48 FROM tab1 AS cor0
----
2592
2736
4608

query I rowsort
SELECT - + cor0.col0 * ( - 44 ) + cor0.col1 * 58 FROM tab2 AS cor0
----
2106
4462
6854

query I rowsort
SELECT - 33 FROM tab1, tab0 AS cor0
----
9 values hashing to 8035c665a75d22be5922be1a4e574e03

query I rowsort
SELECT DISTINCT + tab2.col0 - 56 FROM tab2
----
-49
22
23

query I rowsort
SELECT + cor0.col1 * + ( + col1 ) - - cor0.col0 AS col2 FROM tab0 AS cor0
----
7420
8370
9444

query I rowsort
SELECT col2 * col0 + + 83 * col0 AS col0 FROM tab1 AS cor0
----
14320
411
8960

query I rowsort
SELECT col1 + - 34 FROM tab1 AS cor0
----
-21
-24
-8

query I rowsort
SELECT ALL - col1 - col0 * - 44 FROM tab0 AS cor0
----
1443
3825
970

query I rowsort
SELECT DISTINCT + cor0.col1 + col2 * 59 FROM tab0 cor0
----
156
2033
4929

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 - + col0 col2 FROM tab2 AS cor0
----
-137
-38
-96

query I rowsort
SELECT DISTINCT 16 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
16

onlyif mysql # use DIV operator for integer division
query I rowsort label-6186
SELECT + 85 DIV col2 AS col1 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-6186
SELECT + 85 / col2 AS col1 FROM tab1
----
0
1
1

query I rowsort
SELECT DISTINCT + cor0.col2 AS col1 FROM tab2, tab1, tab2 cor0
----
26
27
38

query I rowsort
SELECT 90 * cor0.col0 FROM tab0 AS cor0
----
2160
3150
8010

onlyif mysql # use DIV operator for integer division
query I rowsort label-6189
SELECT + + 90 + - col2 DIV + ( - 70 ) FROM tab0 AS cor0
----
90
90
91

skipif mysql # not compatible
query I rowsort label-6189
SELECT + + 90 + - col2 / + ( - 70 ) FROM tab0 AS cor0
----
90
90
91

query I rowsort
SELECT ALL - col1 + + col0 * + cor0.col0 AS col1 FROM tab2 AS cor0
----
18
6025
6224

onlyif mysql # use DIV operator for integer division
query I rowsort label-6191
SELECT ALL + 38 DIV col0 FROM tab0 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-6191
SELECT ALL + 38 / col0 FROM tab0 AS cor0
----
0
1
1

query I rowsort
SELECT DISTINCT col0 + - 85 AS col0 FROM tab2 cor0
----
-6
-7
-78

query I rowsort
SELECT + col2 + col0 * col1 * + col1 + 30 AS col2 FROM tab0 cor0
----
177567
329346
737121

query I rowsort
SELECT + col1 + + 86 FROM tab0 AS cor0
----
172
177
183

query I rowsort
SELECT col0 + - cor0.col2 * - col1 AS col2 FROM tab1 cor0
----
1328
1407
634

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6196
SELECT ALL + col2 * CAST( NULL AS SIGNED ) / col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6196
SELECT ALL + col2 * CAST ( NULL AS INTEGER ) / col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + cor0.col1 + 49 FROM tab1 cor0
----
59
62
75

query I rowsort
SELECT DISTINCT - col0 + col2 + - 3 * col0 AS col1 FROM tab0
----
-139
-274
-63

query I rowsort
SELECT DISTINCT col2 * - col0 + ( col0 ) FROM tab1
----
-159
-3584
-7600

query I rowsort
SELECT DISTINCT - 88 + - col1 FROM tab2
----
-105
-119
-147

query I rowsort
SELECT ALL col0 * + col1 + - col1 AS col2 FROM tab1
----
1027
52
630

query I rowsort
SELECT DISTINCT 23 AS col1 FROM tab2 cor0
----
23

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6203
SELECT - - CAST( col2 AS SIGNED ) + - cor0.col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6203
SELECT - - CAST ( col2 AS INTEGER ) + - cor0.col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - ( 59 ) FROM tab1 AS cor0
----
-59
-59
-59

query I rowsort
SELECT + cor0.col2 * - 13 FROM tab2 AS cor0
----
-338
-351
-494

onlyif mysql # use DIV operator for integer division
query I rowsort label-6206
SELECT DISTINCT col1 DIV - col2 + - col2 + 16 FROM tab0 AS cor0
----
-19
-67
-82

skipif mysql # not compatible
query I rowsort label-6206
SELECT DISTINCT col1 / - col2 + - col2 + 16 FROM tab0 AS cor0
----
-19
-67
-82

query I rowsort
SELECT 12 * + tab0.col0 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to e86f9428bff87942ecc1cd313d1c9573

onlyif mysql # use DIV operator for integer division
query I rowsort label-6208
SELECT DISTINCT - ( + ( col1 ) ) + col0 * - 92 - col0 DIV - 80 AS col2 FROM tab1
----
-302
-5898
-7372

skipif mysql # not compatible
query I rowsort label-6208
SELECT DISTINCT - ( + ( col1 ) ) + col0 * - 92 - col0 / - 80 AS col2 FROM tab1
----
-302
-5898
-7372

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6209
SELECT ALL CAST( col0 AS SIGNED ) * + col0 AS col1 FROM tab2
----
49
6084
6241

skipif mysql # not compatible
query I rowsort label-6209
SELECT ALL CAST ( col0 AS INTEGER ) * + col0 AS col1 FROM tab2
----
49
6084
6241

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6210
SELECT + CAST( NULL AS SIGNED ) * - 84 + + col2 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-6210
SELECT + CAST ( NULL AS INTEGER ) * - 84 + + col2 col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6211
SELECT + 71 DIV - 32 FROM tab1 AS cor0
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-6211
SELECT + 71 / - 32 FROM tab1 AS cor0
----
-2
-2
-2

onlyif mysql # use DIV operator for integer division
query I rowsort label-6212
SELECT 58 DIV - col1 col2 FROM tab0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6212
SELECT 58 / - col1 col2 FROM tab0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6213
SELECT ALL - CAST( 34 AS SIGNED ) col1 FROM tab2
----
-34
-34
-34

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6213
SELECT ALL - CAST ( 34 AS INTEGER ) col1 FROM tab2
----
-34
-34
-34

onlyif mysql # use DIV operator for integer division
query I rowsort label-6214
SELECT DISTINCT + col2 DIV + cor0.col2 AS col0 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-6214
SELECT DISTINCT + col2 / + cor0.col2 AS col0 FROM tab1 AS cor0
----
1

query I rowsort
SELECT 4 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b

query I rowsort
SELECT DISTINCT - ( + 85 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-85

query I rowsort
SELECT + 65 * col1 - - ( col1 ) AS col1 FROM tab2 AS cor0
----
1122
2046
3894

query I rowsort
SELECT DISTINCT + 9 + - col1 AS col2 FROM tab2 AS cor0
----
-22
-50
-8

onlyif mysql # use DIV operator for integer division
query I rowsort label-6219
SELECT DISTINCT + - 25 * col1 + col2 * ( col1 ) DIV - 73 + - ( - col1 * + 99 ) FROM tab0 cor0
----
6326
6632
7177

skipif mysql # not compatible
query I rowsort label-6219
SELECT DISTINCT + - 25 * col1 + col2 * ( col1 ) / - 73 + - ( - col1 * + 99 ) FROM tab0 cor0
----
6326
6632
7177

onlyif mysql # use DIV operator for integer division
query I rowsort label-6220
SELECT DISTINCT - col2 DIV + col2 + + 20 * col1 * col2 col1 FROM tab1 AS cor0
----
11399
24959
28079

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6220
SELECT DISTINCT - col2 / + col2 + + 20 * col1 * col2 col1 FROM tab1 AS cor0
----
11399
24959
28079

query I rowsort
SELECT DISTINCT + - col2 * - col1 + + col1 FROM tab2 AS cor0
----
1593
663
868

query I rowsort
SELECT ALL + cor0.col1 * cor0.col2 + - 76 FROM tab0 cor0
----
21
2762
7386

query I rowsort
SELECT DISTINCT + - cor0.col1 * - col2 AS col1 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT ALL - 82 AS col1 FROM tab1 AS cor0
----
-82
-82
-82

query I rowsort
SELECT DISTINCT + - cor0.col1 * col1 + + col1 FROM tab1 AS cor0
----
-156
-650
-90

query I rowsort
SELECT + + 59 - + col1 FROM tab1 cor0
----
33
46
49

query I rowsort
SELECT 26 AS col1 FROM tab2, tab1 cor0
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT col2 + CAST ( col2 + col0 AS REAL ) FROM tab0 cor0
----
253
37
90

query I rowsort
SELECT DISTINCT + + col1 * cor0.col0 - + col1 FROM tab0 AS cor0
----
1978
3298
8008

onlyif mysql # use DIV operator for integer division
query I rowsort label-6230
SELECT DISTINCT col1 DIV 88 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6230
SELECT DISTINCT col1 / 88 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL + + col1 * ( col0 ) AS col2 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT ALL + cor0.col2 + ( - 14 ) * + col2 FROM tab0 AS cor0
----
-1066
-13
-429

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - 78 col0 FROM tab2 AS cor0
----
-71
0
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-6234
SELECT DISTINCT + col0 * col1 - 8 DIV + col0 FROM tab0 AS cor0
----
2064
3395
8099

skipif mysql # not compatible
query I rowsort label-6234
SELECT DISTINCT + col0 * col1 - 8 / + col0 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT col1 * + 19 + 26 FROM tab0 AS cor0
----
1660
1755
1869

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + cor0.col2 + col1 * col2 col0 FROM tab1 AS cor0
----
1152
1350
513

query I rowsort
SELECT cor0.col1 FROM tab1, tab2 cor0, tab2 cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

query I rowsort
SELECT + - col0 * - cor0.col0 FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT DISTINCT cor1.col1 AS col1 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
10
13
26

query I rowsort
SELECT ALL 97 + + col0 + + col1 * + col2 FROM tab1 cor0
----
1425
1504
731

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6241
SELECT ALL - CAST( + col1 AS SIGNED ) + cor0.col2 * col0 AS col1 FROM tab2 AS cor0
----
158
1969
2985

skipif mysql # not compatible
query I rowsort label-6241
SELECT ALL - CAST ( + col1 AS INTEGER ) + cor0.col2 * col0 AS col1 FROM tab2 AS cor0
----
158
1969
2985

onlyif mysql # use DIV operator for integer division
query I rowsort label-6242
SELECT DISTINCT + col2 + - col2 DIV col1 FROM tab2 cor0
----
26
27
36

skipif mysql # not compatible
query I rowsort label-6242
SELECT DISTINCT + col2 + - col2 / col1 FROM tab2 cor0
----
26
27
36

query I rowsort
SELECT ALL 33 - - col0 FROM tab0 AS cor0
----
122
57
68

query I rowsort
SELECT - + ( 90 ) FROM tab1 AS cor0
----
-90
-90
-90

query I rowsort
SELECT ALL + - col1 * - 32 + col1 AS col0 FROM tab1 AS cor0
----
330
429
858

query I rowsort
SELECT ALL + - 16 + col2 + col2 FROM tab0 AS cor0
----
-14
148
50

query I rowsort
SELECT ALL - 2 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ec11209ab257030053484fc13a1f6d17

query I rowsort
SELECT DISTINCT ( + col0 ) + col1 AS col0 FROM tab0 cor0
----
110
132
180

query I rowsort
SELECT DISTINCT cor1.col2 AS col1 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
54
57
96

query I rowsort
SELECT DISTINCT + 67 * 70 + col2 AS col2 FROM tab1 AS cor0
----
4744
4747
4786

query I rowsort
SELECT ALL + ( - col2 ) + + col1 FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT + + 30 + 61 FROM tab2 AS cor0
----
91
91
91

query I rowsort
SELECT col1 * + col1 * col2 AS col1 FROM tab0
----
244068
679042
9409

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6254
SELECT - col1 + - col2 * + CAST( - col1 AS SIGNED ) FROM tab0
----
0
2752
7371

skipif mysql # not compatible
query I rowsort label-6254
SELECT - col1 + - col2 * + CAST ( - col1 AS INTEGER ) FROM tab0
----
0
2752
7371

query I rowsort
SELECT - col2 * col2 * ( 89 ) AS col1 FROM tab0
----
-598436
-89
-96921

query I rowsort
SELECT col2 * col0 AS col0 FROM tab0 cor0
----
35
7298
792

query I rowsort
SELECT ALL + 73 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab0 cor0, tab1, tab1 cor1
----
972 values hashing to 7864aada86bf5bf5e1621c7905de8dcd

query I rowsort
SELECT - col2 * col0 * + col2 + col2 FROM tab2 AS cor0
----
-114038
-5076
-52702

query I rowsort
SELECT - col0 + 63 FROM tab0 cor0
----
-26
28
39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + cor0.col1 col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - 46 * + col0 FROM tab2
----
-322
-3588
-3634

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 92 col1 FROM tab2, tab1 cor0
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 23 col2 FROM tab1 cor0
----
-23
-23
-23

query I rowsort
SELECT ALL + - ( - col1 ) * col2 + col0 AS col1 FROM tab2 AS cor0
----
1612
725
844

query I rowsort
SELECT DISTINCT + 35 * col2 FROM tab0 AS cor0
----
1155
2870
35

onlyif mysql # use DIV operator for integer division
query I rowsort label-6267
SELECT ALL + - cor0.col2 + - 10 DIV - cor0.col1 AS col0 FROM tab1 AS cor0
----
-54
-56
-96

skipif mysql # not compatible
query I rowsort label-6267
SELECT ALL + - cor0.col2 + - 10 / - cor0.col1 AS col0 FROM tab1 AS cor0
----
-54
-56
-96

query I rowsort
SELECT + - 17 AS col2 FROM tab1 AS cor0
----
-17
-17
-17

query I rowsort
SELECT 62 - col0 AS col1 FROM tab2 AS cor0
----
-16
-17
55

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6270
SELECT ALL + CAST( NULL AS SIGNED ) * col2 + + col1 col0 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6270
SELECT ALL + CAST ( NULL AS INTEGER ) * col2 + + col1 col0 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * 37 col0 FROM tab1
----
1998
2109
3552

query I rowsort
SELECT ALL col2 * col1 + col1 AS col0 FROM tab1
----
1261
1430
580

query I rowsort
SELECT - 66 + + col2 AS col1 FROM tab1 AS cor0
----
-12
-9
30

query I rowsort
SELECT col0 + col1 * 27 AS col1 FROM tab0 AS cor0
----
2346
2546
2654

query I rowsort
SELECT + 17 + - cor0.col2 AS col0 FROM tab1 AS cor0
----
-37
-40
-79

query I rowsort
SELECT DISTINCT + ( + cor0.col0 ) FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT + - 71 + col2 FROM tab2 AS cor0
----
-33
-44
-45

query I rowsort
SELECT + + col2 + 41 FROM tab1 AS cor0
----
137
95
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 45 col1 FROM tab1, tab2 cor0
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050

query I rowsort
SELECT + cor0.col0 * col1 + + 9 FROM tab2 cor0
----
1352
226
4611

query I rowsort
SELECT ALL col2 + 83 AS col2 FROM tab2 AS cor0
----
109
110
121

onlyif mysql # use DIV operator for integer division
query I rowsort label-6282
SELECT + col1 DIV - tab0.col1 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6282
SELECT + col1 / - tab0.col1 FROM tab0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT - col0 - - tab2.col1 * col2 FROM tab2
----
1456
567
830

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6284
SELECT ALL CAST( NULL AS SIGNED ) * 39 col1 FROM tab2, tab2 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6284
SELECT ALL CAST ( NULL AS INTEGER ) * 39 col1 FROM tab2, tab2 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # use DIV operator for integer division
query I rowsort label-6285
SELECT DISTINCT + 76 DIV - col2 AS col2 FROM tab0
----
-2
-76
0

skipif mysql # not compatible
query I rowsort label-6285
SELECT DISTINCT + 76 / - col2 AS col2 FROM tab0
----
-2
-76
0

query I rowsort
SELECT DISTINCT 63 * + col1 * - col0 FROM tab2
----
-13671
-289926
-84609

query I rowsort
SELECT DISTINCT + ( 98 ) FROM tab0, tab2, tab1 cor0
----
98

query I rowsort
SELECT DISTINCT + 36 FROM tab2, tab2 AS cor0
----
36

query I rowsort
SELECT DISTINCT - 95 * col2 AS col0 FROM tab0
----
-3135
-7790
-95

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6290
SELECT ALL - CAST( NULL AS SIGNED ) + + ( tab1.col2 ) AS col1 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-6290
SELECT ALL - CAST ( NULL AS INTEGER ) + + ( tab1.col2 ) AS col1 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT ALL ( - col2 ) * tab0.col2 FROM tab0
----
-1
-1089
-6724

query I rowsort
SELECT - col2 * - 39 + + col2 * col0 FROM tab2
----
1242
3042
4484

query I rowsort
SELECT ALL col2 * + 19 FROM tab0 AS cor0
----
1558
19
627

onlyif mysql # use DIV operator for integer division
query I rowsort label-6294
SELECT DISTINCT - + col1 DIV ( 16 ) + - cor0.col2 FROM tab2 AS cor0
----
-28
-29
-39

skipif mysql # not compatible
query I rowsort label-6294
SELECT DISTINCT - + col1 / ( 16 ) + - cor0.col2 FROM tab2 AS cor0
----
-28
-29
-39

query I rowsort
SELECT + col2 - 86 FROM tab1 AS cor0
----
-29
-32
10

query I rowsort
SELECT DISTINCT + col0 * - 45 - + col1 FROM tab0 AS cor0
----
-1166
-1672
-4096

query I rowsort
SELECT DISTINCT - ( - tab1.col2 ) + - col2 AS col0 FROM tab1
----
0

query I rowsort
SELECT 41 * tab2.col0 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to ef9d6bc88cc4195c817dc603d1612be5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor1.col1 col1 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

query I rowsort
SELECT 5 * 26 * col0 + - col1 FROM tab2
----
10081
10253
879

query I rowsort
SELECT ALL - 6 + + col2 * col1 AS col2 FROM tab2 AS cor0
----
1528
640
831

query I rowsort
SELECT - - cor0.col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc

query I rowsort
SELECT ALL 14 * - 94 AS col1 FROM tab0 AS cor0
----
-1316
-1316
-1316

query I rowsort
SELECT + col2 * 59 * col1 + ( + col0 * - cor0.col1 + - col0 ) FROM tab0 AS cor0
----
165354
2293
432070

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + col0 ) * col0 - - ( col2 ) col0 FROM tab0 AS cor0
----
1226
609
8003

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6306
SELECT DISTINCT + CAST( col0 AS SIGNED ) + col2 * - col0 AS col2 FROM tab0 AS cor0
----
-7209
-768
0

skipif mysql # not compatible
query I rowsort label-6306
SELECT DISTINCT + CAST ( col0 AS INTEGER ) + col2 * - col0 AS col2 FROM tab0 AS cor0
----
-7209
-768
0

query I rowsort
SELECT - 68 * col2 FROM tab0 AS cor0
----
-2244
-5576
-68

query I rowsort
SELECT - 13 AS col2 FROM tab1, tab2 cor0
----
9 values hashing to e95f5f4bd0f480397cced5f5e8a23792

query I rowsort
SELECT DISTINCT - - 53 AS col1 FROM tab0 AS cor0
----
53

query I rowsort
SELECT + 17 + col0 AS col1 FROM tab2
----
24
95
96

query I rowsort
SELECT - - col0 * col0 * - 24 FROM tab1 AS cor0
----
-153600
-216
-98304

query I rowsort
SELECT 67 * col0 * 56 + 55 FROM tab1
----
11311
240183
300215

query I rowsort
SELECT 34 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 4e2ca147a59e0d5661c28cf3e5431caa

query I rowsort
SELECT DISTINCT col1 * + col0 + - ( + col2 ) AS col2 FROM tab1 cor0
----
24
583
944

query I rowsort
SELECT DISTINCT col2 * col2 + 63 - + cor0.col1 FROM tab0 AS cor0
----
-33
1066
6696

query I rowsort
SELECT DISTINCT col0 * + col2 * col2 + cor0.col1 FROM tab2 AS cor0
----
114093
5134
52787

query I rowsort
SELECT DISTINCT - col0 + col0 * 18 FROM tab1 AS cor0
----
1088
1360
51

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6318
SELECT ALL + col1 * - col2 + - CAST( NULL AS DECIMAL ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6318
SELECT ALL + col1 * - col2 + - CAST ( NULL AS REAL ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col1 * 86 * col1 - - col2 col0 FROM tab2 AS cor0
----
-24816
-299340
-82619

query I rowsort
SELECT DISTINCT - col0 * col0 + ( col2 ) * col2 - col2 AS col0 FROM tab2 AS cor0
----
-4835
-5434
653

query I rowsort
SELECT - - col2 * ( cor0.col2 ) AS col1 FROM tab2 cor0
----
1444
676
729

query I rowsort
SELECT ALL + + col1 * - col2 * - col0 FROM tab2 AS cor0
----
119652
51034
5859

query I rowsort
SELECT - + col0 * + col2 * ( + col0 ) FROM tab1 AS cor0
----
-233472
-486
-614400

query I rowsort
SELECT ALL - col2 * 13 + - 89 AS col0 FROM tab2 AS cor0
----
-427
-440
-583

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 ALL - - col2 - + 15 col2 FROM tab0 AS cor0
----
-14
18
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 * + 58 col1 FROM tab1 AS cor0
----
3132
3306
5568

query I rowsort
SELECT ALL - col2 * + cor0.col2 + col0 * col0 * + col1 FROM tab1 cor0
----
-2682
37711
73984

query I rowsort
SELECT col0 + 46 * - col2 FROM tab2 cor0
----
-1118
-1235
-1669

query I rowsort
SELECT ALL col0 * - col2 + - col0 AS col2 FROM tab2 AS cor0
----
-196
-2106
-3081

query I rowsort
SELECT DISTINCT + 39 FROM tab1, tab0, tab0 AS cor0
----
39

query I rowsort
SELECT DISTINCT 1 AS col0 FROM tab2
----
1

query I rowsort
SELECT ALL + - col2 * - col0 AS col0 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT DISTINCT + + cor0.col0 * + col0 + 13 FROM tab1 AS cor0
----
22
4109
6413

query I rowsort
SELECT + + col2 + - 7 * + ( col1 ) AS col0 FROM tab2 AS cor0
----
-190
-387
-81

query I rowsort
SELECT DISTINCT cor0.col0 * + 19 - 50 FROM tab0, tab2 AS cor0
----
1432
1451
83

query I rowsort
SELECT + - col0 * col0 * - cor0.col1 FROM tab1 AS cor0
----
234
40960
83200

query I rowsort
SELECT ALL col0 * + 44 AS col0 FROM tab2
----
308
3432
3476

query I rowsort
SELECT - + ( cor0.col0 ) AS col0 FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT ALL - 10 + cor0.col0 AS col0 FROM tab1 AS cor0
----
-7
54
70

query I rowsort
SELECT ALL 48 + col1 FROM tab0 AS cor0
----
134
139
145

onlyif mysql # use DIV operator for integer division
query I rowsort label-6342
SELECT ALL col0 + + col2 DIV cor0.col0 + + col0 FROM tab1 AS cor0
----
128
161
24

skipif mysql # not compatible
query I rowsort label-6342
SELECT ALL col0 + + col2 / cor0.col0 + + col0 FROM tab1 AS cor0
----
128
161
24

onlyif mysql # use DIV operator for integer division
query I rowsort label-6343
SELECT DISTINCT - ( tab2.col1 ) + col1 DIV ( - tab2.col0 ) + + col1 DIV 51 FROM tab2
----
-17
-35
-58

skipif mysql # not compatible
query I rowsort label-6343
SELECT DISTINCT - ( tab2.col1 ) + col1 / ( - tab2.col0 ) + + col1 / 51 FROM tab2
----
-17
-35
-58

query I rowsort
SELECT DISTINCT 83 + + col2 AS col0 FROM tab0
----
116
165
84

onlyif mysql # use DIV operator for integer division
query I rowsort label-6345
SELECT DISTINCT col2 DIV - col2 + + col0 + + 23 AS col0 FROM tab1
----
102
25
86

skipif mysql # not compatible
query I rowsort label-6345
SELECT DISTINCT col2 / - col2 + + col0 + + 23 AS col0 FROM tab1
----
102
25
86

onlyif mysql # use DIV operator for integer division
query I rowsort label-6346
SELECT 26 + 81 DIV + col0 + + col1 FROM tab2
----
44
68
86

skipif mysql # not compatible
query I rowsort label-6346
SELECT 26 + 81 / + col0 + + col1 FROM tab2
----
44
68
86

query I rowsort
SELECT tab1.col1 AS col0 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

onlyif mysql # use DIV operator for integer division
query I rowsort label-6348
SELECT + col2 + + ( col0 ) + + col2 DIV col0 AS col2 FROM tab0
----
171
36
58

skipif mysql # not compatible
query I rowsort label-6348
SELECT + col2 + + ( col0 ) + + col2 / col0 AS col2 FROM tab0
----
171
36
58

query I rowsort
SELECT col0 + - ( col2 ) + + 83 FROM tab1
----
32
67
90

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6350
SELECT ALL - CAST( NULL AS SIGNED ) + col2 + - col2 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6350
SELECT ALL - CAST ( NULL AS INTEGER ) + col2 + - col2 AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ( - col2 ) + col2 AS col1 FROM tab2
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6352
SELECT col0 + - col1 DIV + 76 FROM tab0
----
23
34
88

skipif mysql # not compatible
query I rowsort label-6352
SELECT col0 + - col1 / + 76 FROM tab0
----
23
34
88

query I rowsort
SELECT DISTINCT - + cor0.col0 * cor0.col0 AS col0 FROM tab1 cor0
----
-4096
-6400
-9

query I rowsort
SELECT + col0 + + cor0.col1 + ( - cor0.col0 ) FROM tab0 AS cor0
----
86
91
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-6355
SELECT DISTINCT + + col2 DIV + col2 AS col1 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-6355
SELECT DISTINCT + + col2 / + col2 AS col1 FROM tab0 AS cor0
----
1

query I rowsort
SELECT ( + cor0.col2 ) + + ( - col1 * col0 ) + col2 FROM tab2 AS cor0
----
-1267
-163
-4550

onlyif mysql # use DIV operator for integer division
query I rowsort label-6357
SELECT ALL - - ( + col2 ) DIV col2 AS col0 FROM tab1 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6357
SELECT ALL - - ( + col2 ) / col2 AS col0 FROM tab1 cor0
----
1
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-6358
SELECT + ( + col0 ) DIV col0 + cor0.col0 + - cor0.col2 * 74 FROM tab0 cor0
----
-2417
-38
-5978

skipif mysql # not compatible
query I rowsort label-6358
SELECT + ( + col0 ) / col0 + cor0.col0 + - cor0.col2 * 74 FROM tab0 cor0
----
-2417
-38
-5978

query I rowsort
SELECT ALL - + 24 * - col1 AS col2 FROM tab2 cor0
----
1416
408
744

query I rowsort
SELECT - cor0.col1 - col0 FROM tab0 AS cor0
----
-110
-132
-180

onlyif mysql # use DIV operator for integer division
query I rowsort label-6361
SELECT col1 DIV col0 + col2 AS col2 FROM tab1 AS cor0
----
57
62
96

skipif mysql # not compatible
query I rowsort label-6361
SELECT col1 / col0 + col2 AS col2 FROM tab1 AS cor0
----
57
62
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-6362
SELECT DISTINCT - col0 * col1 + tab1.col0 DIV col2 + - col2 FROM tab1
----
-1136
-132
-696

skipif mysql # not compatible
query I rowsort label-6362
SELECT DISTINCT - col0 * col1 + tab1.col0 / col2 + - col2 FROM tab1
----
-1136
-132
-696

query I rowsort
SELECT DISTINCT col0 * + col2 + + col0 + - col2 AS col2 FROM tab2
----
169
2080
3043

onlyif mysql # use DIV operator for integer division
query I rowsort label-6364
SELECT DISTINCT col1 DIV col2 + - col1 FROM tab1
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-6364
SELECT DISTINCT col1 / col2 + - col1 FROM tab1
----
-10
-13
-26

query I rowsort
SELECT + col0 + + col1 + col0 FROM tab2
----
175
215
45

onlyif mysql # use DIV operator for integer division
query I rowsort label-6366
SELECT DISTINCT + col1 DIV + tab2.col0 AS col0 FROM tab2
----
0
4

skipif mysql # not compatible
query I rowsort label-6366
SELECT DISTINCT + col1 / + tab2.col0 AS col0 FROM tab2
----
0
4

onlyif mysql # use DIV operator for integer division
query I rowsort label-6367
SELECT col2 DIV + col2 + - col2 AS col1 FROM tab1 AS cor0
----
-53
-56
-95

skipif mysql # not compatible
query I rowsort label-6367
SELECT col2 / + col2 + - col2 AS col1 FROM tab1 AS cor0
----
-53
-56
-95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + cor0.col1 * + col0 + + col2 + + col1 col2 FROM tab2 AS cor0
----
-119567
-50979
-5801

query I rowsort
SELECT + col1 + col1 * - cor0.col2 FROM tab0 AS cor0
----
-2752
-7371
0

query I rowsort
SELECT DISTINCT - + ( col0 ) * - col0 + + col1 FROM tab1 AS cor0
----
35
4106
6413

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + col1 ) - col0 col2 FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT DISTINCT - + 12 AS col2 FROM tab1 AS cor0
----
-12

query I rowsort
SELECT + 98 * cor0.col2 AS col2 FROM tab1 AS cor0
----
5292
5586
9408

onlyif mysql # use DIV operator for integer division
query I rowsort label-6374
SELECT ALL col1 + col1 + - col1 DIV col1 FROM tab2 AS cor0
----
117
33
61

skipif mysql # not compatible
query I rowsort label-6374
SELECT ALL col1 + col1 + - col1 / col1 FROM tab2 AS cor0
----
117
33
61

query I rowsort
SELECT DISTINCT col0 * + col2 - col1 FROM tab1 cor0
----
136
3638
7667

onlyif mysql # use DIV operator for integer division
query I rowsort label-6376
SELECT col0 + cor0.col0 DIV col1 AS col2 FROM tab2 AS cor0
----
7
79
83

skipif mysql # not compatible
query I rowsort label-6376
SELECT col0 + cor0.col0 / col1 AS col2 FROM tab2 AS cor0
----
7
79
83

query I rowsort
SELECT - + col1 + + col0 * cor0.col0 FROM tab2 AS cor0
----
18
6025
6224

query I rowsort
SELECT DISTINCT - col0 - - col1 * col1 FROM tab2
----
210
3403
954

query I rowsort
SELECT DISTINCT + col2 - + col0 * + col1 FROM tab0
----
-2031
-3394
-8017

query I rowsort
SELECT col0 + - col0 + col0 AS col0 FROM tab2
----
7
78
79

query III rowsort
SELECT * FROM tab0 WHERE NULL < - col1
----

query I rowsort
SELECT tab0.col2 - col1 * col1 AS col0 FROM tab0
----
-7363
-8199
-9408

onlyif mysql # use DIV operator for integer division
query I rowsort label-6383
SELECT - tab1.col0 * col0 + + col2 DIV - col0 + + col1 AS col0 FROM tab1
----
-1
-4086
-6388

skipif mysql # not compatible
query I rowsort label-6383
SELECT - tab1.col0 * col0 + + col2 / - col0 + + col1 AS col0 FROM tab1
----
-1
-4086
-6388

query I rowsort
SELECT ALL - col2 AS col2 FROM tab2 WHERE ( NULL ) IN ( + col1 )
----

query I rowsort
SELECT ALL 18 * + col0 + col1 AS col1 FROM tab0 cor0
----
1693
518
727

query I rowsort
SELECT - ( - cor1.col0 ) FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT - - ( col2 ) + + col2 AS col0 FROM tab1 AS cor0
----
108
114
192

query I rowsort
SELECT ALL col1 * tab2.col1 + tab2.col2 FROM tab2
----
327
3507
988

query I rowsort
SELECT + col0 + tab0.col0 * + col0 FROM tab0
----
1260
600
8010

query I rowsort
SELECT ALL - col2 * - col2 + col0 FROM tab0
----
1113
36
6813

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab2.col0 + + tab2.col0 col1 FROM tab2
----
14
156
158

query I rowsort
SELECT DISTINCT - - 62 * - col2 FROM tab1 AS cor0
----
-3348
-3534
-5952

query I rowsort
SELECT ALL - col0 * col1 * + 97 + col2 AS col2 FROM tab1 AS cor0
----
-100784
-62023
-7512

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + + col2 col1 FROM tab2 cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6395
SELECT DISTINCT 28 * col0 DIV col1 AS col0 FROM tab2 AS cor0
----
130
37
6

skipif mysql # not compatible
query I rowsort label-6395
SELECT DISTINCT 28 * col0 / col1 AS col0 FROM tab2 AS cor0
----
130
37
6

onlyif mysql # use DIV operator for integer division
query I rowsort label-6396
SELECT ALL col0 DIV + cor0.col1 + col0 AS col1 FROM tab1 cor0 WHERE NOT ( - col0 ) BETWEEN + col1 AND NULL
----
3
70
86

skipif mysql # not compatible
query I rowsort label-6396
SELECT ALL col0 / + cor0.col1 + col0 AS col1 FROM tab1 cor0 WHERE NOT ( - col0 ) BETWEEN + col1 AND NULL
----
3
70
86

query III rowsort
SELECT * FROM tab1 WHERE ( - col2 + col0 + col2 ) NOT IN ( col1 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

query I rowsort
SELECT ALL col0 * col0 * + tab1.col2 AS col1 FROM tab1
----
233472
486
614400

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( col0 ) BETWEEN - col2 + + col0 AND NULL
----

query I rowsort
SELECT + col0 + col2 * col2 + + col2 * col0 AS col0 FROM tab1 AS cor0
----
16976
3081
6961

query I rowsort
SELECT DISTINCT - col1 * col0 * + col1 FROM tab0 AS cor0
----
-177504
-329315
-737009

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL <= + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 - - col2 * col0 col0 FROM tab2
----
196
2106
3081

query I rowsort
SELECT - col2 + col0 * tab2.col0 AS col1 FROM tab2
----
22
6058
6203

query I rowsort
SELECT DISTINCT col2 + + col1 AS col1 FROM tab1 WHERE NOT NULL NOT IN ( tab1.col1 + col1 )
----

query I rowsort
SELECT DISTINCT col0 / + tab2.col2 AS col0 FROM tab2 WHERE NOT ( col0 * col2 ) NOT IN ( - col2 + tab2.col1 )
----

query III rowsort
SELECT * FROM tab0 WHERE col1 NOT IN ( + col1 )
----

query I rowsort
SELECT col2 * - col1 + + col2 AS col0 FROM tab1
----
-1152
-1350
-513

query I rowsort
SELECT DISTINCT - 11 + - cor0.col2 AS col2 FROM tab0 AS cor0
----
-12
-44
-93

query I rowsort
SELECT + cor1.col1 FROM tab0, tab0 AS cor0, tab1 cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

onlyif mysql # use DIV operator for integer division
query I rowsort label-6411
SELECT DISTINCT col2 * - col2 + col1 DIV 31 + - col1 col0 FROM tab2 AS cor0
----
-1461
-734
-759

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6411
SELECT DISTINCT col2 * - col2 + col1 / 31 + - col1 col0 FROM tab2 AS cor0
----
-1461
-734
-759

query I rowsort
SELECT ALL + 15 * col2 FROM tab2 cor0
----
390
405
570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 3000337dd3f11e9cfd5a312b01ef3f8b

query I rowsort
SELECT DISTINCT 64 * - col2 AS col0 FROM tab2
----
-1664
-1728
-2432

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 * - col1 + col1 col1 FROM tab1 AS cor0
----
-1027
-52
-630

query I rowsort
SELECT ALL col0 + col0 + cor0.col2 AS col1 FROM tab1 AS cor0
----
185
256
60

onlyif mysql # use DIV operator for integer division
query I rowsort label-6417
SELECT + 10 DIV cor0.col0 AS col2 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6417
SELECT + 10 / cor0.col0 AS col2 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - + col0 + col1 * + ( col1 + - col2 ) FROM tab2 AS cor0
----
-436
117
1869

onlyif mysql # use DIV operator for integer division
query I rowsort label-6419
SELECT ALL + + cor0.col2 DIV + col0 FROM tab2 cor0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-6419
SELECT ALL + + cor0.col2 / + col0 FROM tab2 cor0
----
0
0
3

query I rowsort
SELECT col2 * col2 + - 46 FROM tab1
----
2870
3203
9170

query I rowsort
SELECT - col0 + 2 * + col2 FROM tab1
----
105
112
50

onlyif mysql # use DIV operator for integer division
query I rowsort label-6422
SELECT + col0 - + ( 37 ) DIV + col1 AS col1 FROM tab1
----
2
61
78

skipif mysql # not compatible
query I rowsort label-6422
SELECT + col0 - + ( 37 ) / + col1 AS col1 FROM tab1
----
2
61
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + ( col0 ) + - tab2.col1 col0 FROM tab2
----
-17
-31
-59

query I rowsort
SELECT - col0 * 34 - + col2 AS col1 FROM tab1
----
-156
-2233
-2816

query I rowsort
SELECT DISTINCT + col0 * - col1 + col2 * col1 FROM tab2
----
-3068
-697
620

query I rowsort
SELECT ALL - col1 + 64 FROM tab2
----
33
47
5

query I rowsort
SELECT col0 * - 71 AS col1 FROM tab1 AS cor0
----
-213
-4544
-5680

query I rowsort
SELECT col1 * + ( col0 ) + + col1 AS col0 FROM tab2 AS cor0
----
1360
248
4661

onlyif mysql # use DIV operator for integer division
query I rowsort label-6429
SELECT DISTINCT + - col1 DIV cor0.col1 + + col0 FROM tab1 AS cor0
----
2
63
79

skipif mysql # not compatible
query I rowsort label-6429
SELECT DISTINCT + - col1 / cor0.col1 + + col0 FROM tab1 AS cor0
----
2
63
79

query I rowsort
SELECT + 79 * col0 + + col0 AS col0 FROM tab0 cor0
----
1920
2800
7120

query I rowsort
SELECT DISTINCT col1 * + col0 + col2 AS col0 FROM tab2 AS cor0
----
1381
244
4628

query I rowsort
SELECT DISTINCT + - col2 * 7 * - col0 - - ( - col1 * - col0 ) FROM tab2 AS cor0
----
1540
18798
22357

query I rowsort
SELECT ALL - ( + col0 ) * + col0 AS col2 FROM tab0 AS cor0
----
-1225
-576
-7921

query I rowsort
SELECT col1 * 74 AS col1 FROM tab1 AS cor0
----
1924
740
962

query I rowsort
SELECT DISTINCT col1 + - col0 * - cor0.col0 + col0 AS col0 FROM tab1 AS cor0
----
38
4170
6493

query I rowsort
SELECT - ( cor0.col1 ) + col0 * - cor0.col0 AS col1 FROM tab2 AS cor0
----
-6143
-6258
-80

query I rowsort
SELECT - 42 * col2 + col1 FROM tab2 AS cor0
----
-1033
-1103
-1579

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 + 49 * + cor0.col0 col0 FROM tab0 AS cor0
----
1143
1714
4279

query I rowsort
SELECT ALL - 50 * + ( col0 * - cor0.col0 ) + + 27 * - col0 FROM tab2 AS cor0
----
2261
302094
309917

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6440
SELECT + CAST( col0 AS SIGNED ) * + cor0.col0 AS col2 FROM tab1 AS cor0
----
4096
6400
9

skipif mysql # not compatible
query I rowsort label-6440
SELECT + CAST ( col0 AS INTEGER ) * + cor0.col0 AS col2 FROM tab1 AS cor0
----
4096
6400
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-6441
SELECT DISTINCT 92 + - col0 DIV - col2 FROM tab0 AS cor0
----
127
92
93

skipif mysql # not compatible
query I rowsort label-6441
SELECT DISTINCT 92 + - col0 / - col2 FROM tab0 AS cor0
----
127
92
93

query I rowsort
SELECT DISTINCT - col0 * 69 * col0 + + cor0.col1 * col1 FROM tab1 AS cor0
----
-282524
-441431
55

query I rowsort
SELECT ( - ( + col1 ) ) * col2 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT ALL - 63 * + ( - col0 ) AS col1 FROM tab1 AS cor0
----
189
4032
5040

query I rowsort
SELECT + + 11 + col1 AS col2 FROM tab2 AS cor0
----
28
42
70

query I rowsort
SELECT DISTINCT + 65 + col0 FROM tab2 cor0
----
143
144
72

query I rowsort
SELECT ALL - - cor0.col1 * 6 AS col2 FROM tab2 AS cor0
----
102
186
354

onlyif mysql # use DIV operator for integer division
query I rowsort label-6448
SELECT ALL + + col2 DIV col0 + - col0 * 76 AS col2 FROM tab1 AS cor0
----
-210
-4864
-6079

skipif mysql # not compatible
query I rowsort label-6448
SELECT ALL + + col2 / col0 + - col0 * 76 AS col2 FROM tab1 AS cor0
----
-210
-4864
-6079

query I rowsort
SELECT DISTINCT - 92 AS col2 FROM tab2, tab1 AS cor0
----
-92

query I rowsort
SELECT ALL - 78 * col2 FROM tab1 AS cor0
----
-4212
-4446
-7488

query I rowsort
SELECT ALL col1 * + col2 * - col2 + - col1 AS col0 FROM tab1 AS cor0
----
-119821
-32500
-75842

query I rowsort
SELECT ( 11 ) * + col0 FROM tab1
----
33
704
880

query I rowsort
SELECT ALL ( - col0 ) * col0 FROM tab0
----
-1225
-576
-7921

onlyif mysql # use DIV operator for integer division
query I rowsort label-6454
SELECT - col0 DIV + col2 + + col2 AS col1 FROM tab0 AS cor0
----
-34
33
81

skipif mysql # not compatible
query I rowsort label-6454
SELECT - col0 / + col2 + + col2 AS col1 FROM tab0 AS cor0
----
-34
33
81

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6455
SELECT ALL + CAST( NULL AS DECIMAL ) * col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6455
SELECT ALL + CAST ( NULL AS REAL ) * col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6456
SELECT col2 + + 57 DIV - cor0.col0 FROM tab1 AS cor0
----
35
57
96

skipif mysql # not compatible
query I rowsort label-6456
SELECT col2 + + 57 / - cor0.col0 FROM tab1 AS cor0
----
35
57
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-6457
SELECT DISTINCT - - col0 + + col0 DIV - col2 FROM tab0 AS cor0
----
0
24
88

skipif mysql # not compatible
query I rowsort label-6457
SELECT DISTINCT - - col0 + + col0 / - col2 FROM tab0 AS cor0
----
0
24
88

query I rowsort
SELECT ALL - 33 * col1 FROM tab0 AS cor0
----
-2838
-3003
-3201

query I rowsort
SELECT DISTINCT 9 FROM tab1, tab2 AS cor0
----
9

query I rowsort
SELECT DISTINCT - 75 * ( cor0.col2 ) + col1 * - col2 FROM tab0 cor0
----
-13612
-172
-5313

query I rowsort
SELECT - 94 + col2 * col2 * - col2 FROM tab0 AS cor0
----
-36031
-551462
-95

query I rowsort
SELECT ALL + + col0 + + col1 * + col1 + + col2 * + cor0.col0 AS col2 FROM tab1 AS cor0
----
3812
7929
841

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 43 col2 FROM tab1 AS cor0
----
43

query I rowsort
SELECT - col1 * + col1 + col0 AS col0 FROM tab1 AS cor0
----
-36
-673
-89

query I rowsort
SELECT + 85 + cor0.col2 * col1 FROM tab0 AS cor0
----
182
2923
7547

query I rowsort
SELECT ( + 0 ) - col0 FROM tab1
----
-3
-64
-80

onlyif mysql # use DIV operator for integer division
query I rowsort label-6467
SELECT col2 DIV + col0 + col2 * + cor0.col0 * + col0 AS col1 FROM tab1 cor0
----
233472
504
614401

skipif mysql # not compatible
query I rowsort label-6467
SELECT col2 / + col0 + col2 * + cor0.col0 * + col0 AS col1 FROM tab1 cor0
----
233472
504
614401

query I rowsort
SELECT - ( col1 ) + col1 * col2 AS col1 FROM tab1
----
1235
1378
560

query I rowsort
SELECT DISTINCT col0 + 3 FROM tab0
----
27
38
92

query I rowsort
SELECT DISTINCT - + col1 + - 1 AS col2 FROM tab1 AS cor0
----
-11
-14
-27

query I rowsort
SELECT col2 + + ( col0 ) FROM tab0 cor0
----
171
36
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-6472
SELECT col1 + - col0 - col0 DIV col1 FROM tab0 AS cor0
----
2
62
62

skipif mysql # not compatible
query I rowsort label-6472
SELECT col1 + - col0 - col0 / col1 FROM tab0 AS cor0
----
2
62
62

query I rowsort
SELECT DISTINCT - col2 * ( 96 ) AS col0 FROM tab0 AS cor0
----
-3168
-7872
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-6474
SELECT ALL + col0 + + col2 + 96 DIV - col1 AS col2 FROM tab0 AS cor0
----
170
36
56

skipif mysql # not compatible
query I rowsort label-6474
SELECT ALL + col0 + + col2 + 96 / - col1 AS col2 FROM tab0 AS cor0
----
170
36
56

query I rowsort
SELECT + col1 * - col1 + - 94 * + col0 FROM tab2 AS cor0
----
-10813
-1619
-7715

query I rowsort
SELECT ALL + + col1 + col2 * - col1 * + col2 FROM tab1 AS cor0
----
-119795
-32480
-75790

query I rowsort
SELECT DISTINCT + col1 + + ( col2 ) AS col0 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT - col1 + col1 - - col2 * - col1 * col0 FROM tab2 AS cor0
----
-119652
-51034
-5859

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * ( - col1 ) col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-6480
SELECT - + cor0.col2 + - col0 - + col1 DIV col0 AS col2 FROM tab2 AS cor0
----
-104
-117
-38

skipif mysql # not compatible
query I rowsort label-6480
SELECT - + cor0.col2 + - col0 - + col1 / col0 AS col2 FROM tab2 AS cor0
----
-104
-117
-38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 91 * - col1 col0 FROM tab1
----
-1183
-2366
-910

query I rowsort
SELECT ALL col0 * 56 AS col2 FROM tab1 AS cor0
----
168
3584
4480

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 - - ( col2 ) col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT col1 + col1 * col2 AS col2 FROM tab1 AS cor0
----
1261
1430
580

query I rowsort
SELECT - col0 * 34 AS col0 FROM tab0 AS cor0
----
-1190
-3026
-816

query I rowsort
SELECT ALL col0 + - ( - 60 ) + col1 FROM tab1
----
134
153
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + ( col2 ) + col2 col0 FROM tab1
----
124
134
205

query I rowsort
SELECT - tab1.col2 + - col1 + 14 AS col2 FROM tab1
----
-53
-66
-95

query I rowsort
SELECT ALL col1 + col1 * + 79 + col2 AS col2 FROM tab0
----
6913
7362
7761

query I rowsort
SELECT + - col2 * ( 67 ) * + col0 FROM tab0 AS cor0
----
-2345
-488966
-53064

query I rowsort
SELECT ALL col1 + ( + ( - col2 ) ) FROM tab0
----
53
9
96

query I rowsort
SELECT cor0.col1 + - ( 14 ) FROM tab1 AS cor0
----
-1
-4
12

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6493
SELECT + col1 + + CAST( ( - col2 ) AS SIGNED ) * + col2 FROM tab0 AS cor0
----
-1003
-6633
96

skipif mysql # not compatible
query I rowsort label-6493
SELECT + col1 + + CAST ( ( - col2 ) AS INTEGER ) * + col2 FROM tab0 AS cor0
----
-1003
-6633
96

query I rowsort
SELECT DISTINCT - col1 + 72 AS col0 FROM tab2 AS cor0
----
13
41
55

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6495
SELECT - col2 + + CAST( - col1 + col0 AS SIGNED ) AS col2 FROM tab1
----
-29
-3
-77

skipif mysql # not compatible
query I rowsort label-6495
SELECT - col2 + + CAST ( - col1 + col0 AS INTEGER ) AS col2 FROM tab1
----
-29
-3
-77

query I rowsort
SELECT 33 FROM tab0, tab0 AS cor0, tab0 cor1
----
27 values hashing to 76da8bc7cae18ecf856438f872430c80

query I rowsort
SELECT + + 32 + col2 + ( col2 ) FROM tab0 AS cor0
----
196
34
98

query I rowsort
SELECT col0 * + cor0.col1 + - 52 + + cor0.col2 FROM tab1 AS cor0
----
1084
645
80

query I rowsort
SELECT - 72 + + col2 * col0 FROM tab0 cor0
----
-37
720
7226

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 58 col0 FROM tab1, tab1 AS cor0
----
58

query I rowsort
SELECT + 31 FROM tab0, tab2 cor0
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540

query I rowsort
SELECT + tab1.col1 * + 96 FROM tab1
----
1248
2496
960

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6503
SELECT - cor0.col0 + col0 * - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6503
SELECT - cor0.col0 + col0 * - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT cor0.col2 * - 98 AS col1 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 00d5755db77283710f60bbd7d845b99a

query I rowsort
SELECT - ( + col0 * 73 ) FROM tab2
----
-511
-5694
-5767

query I rowsort
SELECT - col2 * - 40 + - 63 FROM tab0 AS cor0
----
-23
1257
3217

query I rowsort
SELECT DISTINCT col0 + + 79 * col2 AS col2 FROM tab0 AS cor0
----
114
2631
6567

query I rowsort
SELECT col1 + 15 FROM tab1 AS cor0
----
25
28
41

query I rowsort
SELECT ALL + col1 * 78 FROM tab1 AS cor0
----
1014
2028
780

query I rowsort
SELECT ALL - col0 + - col0 AS col0 FROM tab1 cor0
----
-128
-160
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - - col2 col2 FROM tab2
----
104
117
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 24 * col0 * ( col1 ) col2 FROM tab0
----
-194376
-49536
-81480

query I rowsort
SELECT - tab0.col0 - tab0.col0 AS col0 FROM tab0
----
-178
-48
-70

query I rowsort
SELECT + col2 + 87 FROM tab0 AS cor0
----
120
169
88

skipif mysql # not compatible
query I rowsort
SELECT ALL + cor0.col1 * - CAST ( col1 AS REAL ) AS col2 FROM tab0 AS cor0
----
-7396
-8281
-9409

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6516
SELECT + cor0.col0 + CAST( NULL AS SIGNED ) * col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6516
SELECT + cor0.col0 + CAST ( NULL AS INTEGER ) * col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 * 83 AS col1 FROM tab0 AS cor0
----
-2739
-6806
-83

query I rowsort
SELECT col0 + + cor0.col1 * col0 FROM tab0 AS cor0
----
2088
3430
8188

query I rowsort
SELECT - col1 * - 63 * col1 FROM tab1 AS cor0
----
10647
42588
6300

query I rowsort
SELECT ALL - 82 FROM tab0, tab0 AS cor0, tab1, tab2 AS cor1
----
81 values hashing to c7d52549709c0d1194b36919dde4afb7

query I rowsort
SELECT DISTINCT cor0.col2 + - ( + 43 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
11
14
53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - 93 col1 FROM tab2 AS cor0
----
-55
-66
-67

query I rowsort
SELECT - + col0 * col0 - + col1 FROM tab1 AS cor0
----
-35
-4106
-6413

query I rowsort
SELECT col0 + 34 FROM tab2 cor0
----
112
113
41

onlyif mysql # use DIV operator for integer division
query I rowsort label-6525
SELECT DISTINCT - 78 - - 74 DIV + col0 FROM tab0
----
-75
-76
-78

skipif mysql # not compatible
query I rowsort label-6525
SELECT DISTINCT - 78 - - 74 / + col0 FROM tab0
----
-75
-76
-78

query I rowsort
SELECT - - 44 + col1 FROM tab0 AS cor0
----
130
135
141

query I rowsort
SELECT + col0 * + cor0.col2 + - 82 AS col2 FROM tab2 cor0
----
107
1946
2920

query I rowsort
SELECT ALL + 76 + + col1 + + tab1.col2 AS col0 FROM tab1
----
143
156
185

query I rowsort
SELECT + col2 * tab2.col2 + + 32 AS col1 FROM tab2
----
1476
708
761

query I rowsort
SELECT + col0 * 31 AS col2 FROM tab1
----
1984
2480
93

query I rowsort
SELECT ALL - 64 + + col2 AS col2 FROM tab1 AS cor0
----
-10
-7
32

query I rowsort
SELECT - 32 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to ef8f93119983b962f4c81381ebf4b1e6

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6533
SELECT ALL CAST( NULL AS SIGNED ) / + col1 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-6533
SELECT ALL CAST ( NULL AS INTEGER ) / + col1 col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + cor0.col0 * col1 + col1 * col2 + + col0 * + col1 FROM tab2 AS cor0
----
10738
1271
3332

query I rowsort
SELECT ALL - col2 * + 55 FROM tab0 AS cor0
----
-1815
-4510
-55

query I rowsort
SELECT + cor0.col1 + + 70 * - col1 FROM tab0 AS cor0
----
-5934
-6279
-6693

query I rowsort
SELECT DISTINCT - 31 * + 93 FROM tab2 AS cor0
----
-2883

query I rowsort
SELECT ALL - ( + 23 ) FROM tab2 AS cor0
----
-23
-23
-23

query I rowsort
SELECT - - 82 * - col2 FROM tab1 AS cor0
----
-4428
-4674
-7872

query I rowsort
SELECT ALL - 34 * - 3 AS col2 FROM tab0 AS cor0
----
102
102
102

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6541
SELECT CAST( NULL AS DECIMAL ) * + col0 AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6541
SELECT CAST ( NULL AS REAL ) * + col0 AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - ( + col0 ) * + col1 + cor0.col2 FROM tab1 AS cor0
----
-24
-583
-944

onlyif mysql # use DIV operator for integer division
query I rowsort label-6543
SELECT DISTINCT ( col1 ) + + col1 DIV - ( col0 ) FROM tab0 cor0
----
83
90
95

skipif mysql # not compatible
query I rowsort label-6543
SELECT DISTINCT ( col1 ) + + col1 / - ( col0 ) FROM tab0 cor0
----
83
90
95

query I rowsort
SELECT DISTINCT + 6 - col2 AS col1 FROM tab1 AS cor0
----
-48
-51
-90

query I rowsort
SELECT DISTINCT ( - col2 ) * col2 FROM tab2 cor0
----
-1444
-676
-729

query I rowsort
SELECT + 84 + 66 * - col2 AS col1 FROM tab1 AS cor0
----
-3480
-3678
-6252

query I rowsort
SELECT ALL col2 * ( col1 ) AS col0 FROM tab0 AS cor0
----
2838
7462
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-6548
SELECT DISTINCT + col1 DIV col0 col1 FROM tab1 AS cor0
----
0
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6548
SELECT DISTINCT + col1 / col0 col1 FROM tab1 AS cor0
----
0
8

query I rowsort
SELECT col1 + 17 FROM tab2 cor0
----
34
48
76

query I rowsort
SELECT ALL - - ( - col0 ) * + col1 * - ( - 85 ) AS col1 FROM tab1 AS cor0
----
-54400
-6630
-88400

onlyif mysql # use DIV operator for integer division
query I rowsort label-6551
SELECT ALL cor0.col2 * cor0.col2 + col0 + col2 DIV col1 AS col2 FROM tab0 AS cor0
----
1113
36
6813

skipif mysql # not compatible
query I rowsort label-6551
SELECT ALL cor0.col2 * cor0.col2 + col0 + col2 / col1 AS col2 FROM tab0 AS cor0
----
1113
36
6813

query I rowsort
SELECT ALL col0 * - col2 * + col0 FROM tab2
----
-1323
-158184
-237158

query I rowsort
SELECT ALL col1 * col0 + col0 AS col1 FROM tab2 AS cor0
----
1422
224
4680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * col0 + - col1 * cor0.col1 * col2 - 17 * + col2 col0 FROM tab1 AS cor0
----
-11456
-2573
-37413

query I rowsort
SELECT - - ( col2 ) * + 31 * - col2 AS col0 FROM tab0 AS cor0
----
-208444
-31
-33759

query I rowsort
SELECT + 65 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805

query I rowsort
SELECT ALL - col2 + - 10 * - col0 AS col1 FROM tab1 AS cor0
----
-24
583
704

query I rowsort
SELECT + col1 * col1 * + col1 AS col2 FROM tab1 AS cor0
----
1000
17576
2197

onlyif mysql # use DIV operator for integer division
query I rowsort label-6559
SELECT ALL + - col2 DIV - CAST( cor0.col1 * col1 AS SIGNED ) FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6559
SELECT ALL + - col2 / - CAST ( cor0.col1 * col1 AS INTEGER ) FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT col0 + - tab0.col0 * col0 - + col1 FROM tab0
----
-1287
-638
-7923

query I rowsort
SELECT - col2 * + col2 * col0 + col1 FROM tab1
----
-207926
-737267
-8722

query I rowsort
SELECT DISTINCT col1 * + 3 + + col1 + + col0 FROM tab2
----
131
147
314

query I rowsort
SELECT + 88 FROM tab0, tab2 cor0, tab1 AS cor1
----
27 values hashing to c46e7cf9bf516fdfde88534336a28177

query I rowsort
SELECT + col1 * - col0 + - 75 FROM tab1
----
-1115
-153
-715

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6565
SELECT ALL col1 * - ( + col2 ) + col0 * + CAST( + col1 + + col2 AS SIGNED ) * + 70 AS col0 FROM tab2
----
27583
303504
462566

skipif mysql # not compatible
query I rowsort label-6565
SELECT ALL col1 * - ( + col2 ) + col0 * + CAST ( + col1 + + col2 AS INTEGER ) * + 70 AS col0 FROM tab2
----
27583
303504
462566

query I rowsort
SELECT DISTINCT col2 * + col2 + + col2 + + tab0.col2 AS col0 FROM tab0
----
1155
3
6888

query I rowsort
SELECT col2 + col1 * + 91 AS col1 FROM tab0
----
7859
8363
8828

query I rowsort
SELECT ALL cor0.col2 * - ( 69 * col1 ) AS col0 FROM tab1 cor0
----
-39330
-86112
-96876

query I rowsort
SELECT col1 * + cor0.col2 AS col0 FROM tab2 cor0
----
1534
646
837

query I rowsort
SELECT - col2 + col0 * col1 + col2 AS col2 FROM tab1
----
1040
640
78

query I rowsort
SELECT DISTINCT tab2.col1 + - col2 + col1 FROM tab2
----
-4
35
92

query I rowsort
SELECT - col1 + - 49 AS col0 FROM tab1
----
-59
-62
-75

onlyif mysql # use DIV operator for integer division
query I rowsort label-6573
SELECT DISTINCT col0 * + tab0.col2 * + col2 + + col0 DIV - ( ( - col2 ) + - col1 ) FROM tab0
----
26136
35
598436

skipif mysql # not compatible
query I rowsort label-6573
SELECT DISTINCT col0 * + tab0.col2 * + col2 + + col0 / - ( ( - col2 ) + - col1 ) FROM tab0
----
26136
35
598436

query I rowsort
SELECT + col2 + + col2 * + tab1.col0 + col2 * ( + col0 ) FROM tab1
----
15456
378
7353

query I rowsort
SELECT DISTINCT tab0.col2 * 98 + + 53 FROM tab0
----
151
3287
8089

query I rowsort
SELECT - + col2 * col1 - col1 FROM tab1 AS cor0
----
-1261
-1430
-580

query I rowsort
SELECT 39 AS col2 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to ed2ebd9def3e2c38aa46cb3af60fe229

query I rowsort
SELECT + tab1.col1 + + col0 + - 73 * col0 FROM tab1
----
-190
-4598
-5747

query I rowsort
SELECT - col2 * cor0.col2 + col2 + - col2 AS col1 FROM tab0 AS cor0
----
-1
-1089
-6724

query I rowsort
SELECT ALL + 69 FROM tab2 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab1 AS cor2
----
81 values hashing to dfada1ee7a4e3e5c74a063a1282769f9

query I rowsort
SELECT - col0 * + ( col0 ) * col1 - + col0 FROM tab1 AS cor0
----
-237
-41024
-83280

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6582
SELECT ALL CAST( - 60 AS SIGNED ) * - col1 FROM tab0
----
5160
5460
5820

skipif mysql # not compatible
query I rowsort label-6582
SELECT ALL CAST ( - 60 AS INTEGER ) * - col1 FROM tab0
----
5160
5460
5820

query I rowsort
SELECT DISTINCT col0 + + ( - col0 ) AS col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT + + cor0.col2 * + col0 AS col1 FROM tab2 cor0
----
189
2028
3002

query I rowsort
SELECT + col1 * col1 * col2 FROM tab1
----
16224
36504
5700

query I rowsort
SELECT - ( 42 ) AS col2 FROM tab2
----
-42
-42
-42

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6587
SELECT + - CAST( col0 AS SIGNED ) FROM tab0 AS cor0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-6587
SELECT + - CAST ( col0 AS INTEGER ) FROM tab0 AS cor0
----
-24
-35
-89

onlyif mysql # use DIV operator for integer division
query I rowsort label-6588
SELECT + - col0 + col0 * col1 + - col0 DIV col1 AS col2 FROM tab0 cor0
----
2040
3360
8010

skipif mysql # not compatible
query I rowsort label-6588
SELECT + - col0 + col0 * col1 + - col0 / col1 AS col2 FROM tab0 cor0
----
2040
3360
8010

query I rowsort
SELECT ALL + col1 * - 86 AS col1 FROM tab0 AS cor0
----
-7396
-7826
-8342

query I rowsort
SELECT DISTINCT - 99 AS col0 FROM tab0, tab1, tab0 AS cor0
----
-99

query I rowsort
SELECT - 2 * tab2.col1 * - col2 + col0 * - col0 AS col0 FROM tab2
----
-3016
-4949
1625

query I rowsort
SELECT DISTINCT cor0.col0 + + col1 * 41 + col1 * cor0.col1 AS col0 FROM tab2 AS cor0
----
1065
2239
5978

onlyif mysql # use DIV operator for integer division
query I rowsort label-6593
SELECT DISTINCT + - col0 DIV - col2 + + col2 FROM tab0 AS cor0
----
33
36
83

skipif mysql # not compatible
query I rowsort label-6593
SELECT DISTINCT + - col0 / - col2 + + col2 FROM tab0 AS cor0
----
33
36
83

query I rowsort
SELECT ALL + 10 FROM tab1 cor0
----
10
10
10

query I rowsort
SELECT DISTINCT + + ( + col0 ) AS col0 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT + 52 AS col2 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 76100d10f51995d20efdeb657e444d3c

query I rowsort
SELECT ALL + + col1 + - col2 * - col2 * - 75 FROM tab2 AS cor0
----
-108283
-50641
-54644

query I rowsort
SELECT DISTINCT col1 * + cor0.col2 + 68 FROM tab0 AS cor0
----
165
2906
7530

query I rowsort
SELECT ALL cor0.col2 + cor0.col2 AS col1 FROM tab0 AS cor0
----
164
2
66

query I rowsort
SELECT ALL - col1 + cor0.col1 AS col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + - cor0.col0 + - col1 AS col2 FROM tab2 AS cor0
----
-137
-38
-96

query I rowsort
SELECT DISTINCT + col2 + 14 * col1 * col2 AS col2 FROM tab0 cor0
----
104550
1359
39765

query I rowsort
SELECT ALL col2 + 16 AS col2 FROM tab0 AS cor0
----
17
49
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-6604
SELECT ALL + cor0.col2 + - col2 DIV 35 FROM tab0 AS cor0
----
1
33
80

skipif mysql # not compatible
query I rowsort label-6604
SELECT ALL + cor0.col2 + - col2 / 35 FROM tab0 AS cor0
----
1
33
80

query I rowsort
SELECT + - 59 + tab1.col0 AS col2 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 34a123d4f1d89ce43e3958551794132a

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6606
SELECT - cor0.col2 * CAST( 58 AS SIGNED ) FROM tab0 AS cor0
----
-1914
-4756
-58

skipif mysql # not compatible
query I rowsort label-6606
SELECT - cor0.col2 * CAST ( 58 AS INTEGER ) FROM tab0 AS cor0
----
-1914
-4756
-58

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6607
SELECT + CAST( + 37 + - col1 AS SIGNED ) col0 FROM tab1
----
11
24
27

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6607
SELECT + CAST ( + 37 + - col1 AS INTEGER ) col0 FROM tab1
----
11
24
27

query I rowsort
SELECT DISTINCT - 86 * + 4 AS col2 FROM tab0
----
-344

query I rowsort
SELECT ALL - col0 * + 35 FROM tab2
----
-245
-2730
-2765

onlyif mysql # use DIV operator for integer division
query I rowsort label-6610
SELECT ALL - col0 + 39 DIV - col1 AS col1 FROM tab1 AS cor0
----
-4
-67
-83

skipif mysql # not compatible
query I rowsort label-6610
SELECT ALL - col0 + 39 / - col1 AS col1 FROM tab1 AS cor0
----
-4
-67
-83

query I rowsort
SELECT DISTINCT cor0.col2 * col1 * col2 FROM tab1 AS cor0
----
119808
32490
75816

query I rowsort
SELECT - cor0.col1 + + ( col0 + + col0 ) FROM tab2 AS cor0
----
-17
141
97

query I rowsort
SELECT + col2 * 24 + - col2 AS col2 FROM tab1 AS cor0
----
1242
1311
2208

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - 26 col1 FROM tab0 cor0
----
60
65
71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - col0 col0 FROM tab1 cor0
----
-54
-67
23

query I rowsort
SELECT - col2 - cor0.col0 * + col0 FROM tab2 AS cor0
----
-6110
-6279
-76

query I rowsort
SELECT ( - 66 * cor0.col2 ) AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to b2d0b5987227ebcfbbdc1d4b5c380d9b

query I rowsort
SELECT ALL - 54 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 4ecdb0f1b85f0d4fdc3a826efd9f2342

onlyif mysql # use DIV operator for integer division
query I rowsort label-6619
SELECT - - col2 DIV 91 + - col1 AS col0 FROM tab1 AS cor0
----
-10
-12
-26

skipif mysql # not compatible
query I rowsort label-6619
SELECT - - col2 / 91 + - col1 AS col0 FROM tab1 AS cor0
----
-10
-12
-26

query I rowsort
SELECT + - cor0.col0 * - cor0.col0 + - 12 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to a8411c7dc2adbde7b0d7e738e4d90848

query I rowsort
SELECT tab1.col0 * + 9 FROM tab1
----
27
576
720

query I rowsort
SELECT DISTINCT - col2 * col0 + + col0 * 73 AS col1 FROM tab0 AS cor0
----
-801
2520
960

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6623
SELECT - col1 + 8 * col2 * CAST( NULL AS SIGNED ) col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6623
SELECT - col1 + 8 * col2 * CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL ( - 30 ) * - col1 FROM tab0 AS cor0
----
2580
2730
2910

query I rowsort
SELECT + 91 * + col2 * - col1 - ( col2 * col1 ) AS col2 FROM tab0 AS cor0
----
-261096
-686504
-8924

query I rowsort
SELECT + ( - col2 ) * col1 + - col2 + col0 AS col2 FROM tab2 AS cor0
----
-1482
-605
-857

query I rowsort
SELECT DISTINCT ( - 73 ) + col1 FROM tab2 AS cor0
----
-14
-42
-56

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6628
SELECT - CAST( NULL AS DECIMAL ) * + col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6628
SELECT - CAST ( NULL AS REAL ) * + col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - col1 ) * - col0 * + 9 col2 FROM tab0 AS cor0
----
-18576
-30555
-72891

query I rowsort
SELECT col2 * ( - 19 ) FROM tab1
----
-1026
-1083
-1824

query I rowsort
SELECT DISTINCT ( 18 ) AS col0 FROM tab0, tab2 AS cor0
----
18

query I rowsort
SELECT ALL + col2 + - col0 * col0 FROM tab0 AS cor0
----
-1224
-543
-7839

query I rowsort
SELECT DISTINCT - col0 * 33 + + col0 FROM tab0 AS cor0
----
-1120
-2848
-768

query I rowsort
SELECT - - ( ( - cor0.col2 ) ) FROM tab2 cor0
----
-26
-27
-38

query I rowsort
SELECT - col2 + + 84 FROM tab2 AS cor0
----
46
57
58

query I rowsort
SELECT - + 75 AS col0 FROM tab1 cor0
----
-75
-75
-75

query I rowsort
SELECT 78 AS col0 FROM tab2, tab2 cor0
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( + 57 AS REAL ) * - col2 AS col0 FROM tab0
----
-1881
-4674
-57

query I rowsort
SELECT - 68 + col1 + + col1 FROM tab0 AS cor0
----
104
114
126

query I rowsort
SELECT 73 * - ( + cor0.col0 + col2 ) * + col2 AS col1 FROM tab1 AS cor0
----
-1233408
-224694
-503481

query I rowsort
SELECT ALL cor0.col1 * 27 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 098e9cb5f58dfd24b8b1b40ed212b109

query I rowsort
SELECT ALL col1 - + 66 FROM tab1
----
-40
-53
-56

query I rowsort
SELECT 55 AS col1 FROM tab0, tab2 cor0
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0

query I rowsort
SELECT col2 * - 37 FROM tab0
----
-1221
-3034
-37

query I rowsort
SELECT - - col0 * - col1 - 76 AS col0 FROM tab2 AS cor0
----
-1419
-293
-4678

query I rowsort
SELECT + - col2 + - 11 * col2 AS col2 FROM tab0 AS cor0
----
-12
-396
-984

query I rowsort
SELECT - col0 - + col0 * 93 FROM tab2 AS cor0
----
-658
-7332
-7426

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6648
SELECT ALL CAST( NULL AS DECIMAL ) FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-6648
SELECT ALL CAST ( NULL AS REAL ) FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

onlyif mysql # use DIV operator for integer division
query I rowsort label-6649
SELECT DISTINCT - cor0.col2 DIV col1 + col0 col1 FROM tab1 cor0
----
1
59
73

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6649
SELECT DISTINCT - cor0.col2 / col1 + col0 col1 FROM tab1 cor0
----
1
59
73

query I rowsort
SELECT ALL + - 78 * - col2 * col0 + col0 FROM tab2 AS cor0
----
14749
158262
234235

query I rowsort
SELECT + - col2 * col0 - - col1 FROM tab2 cor0
----
-158
-1969
-2985

query I rowsort
SELECT DISTINCT - col2 * col0 + + col1 FROM tab1 AS cor0
----
-136
-3638
-7667

query I rowsort
SELECT + 95 + - col1 AS col0 FROM tab1 AS cor0
----
69
82
85

onlyif mysql # use DIV operator for integer division
query I rowsort label-6654
SELECT DISTINCT - 28 + col1 DIV ( 7 ) FROM tab2 AS cor0
----
-20
-24
-26

skipif mysql # not compatible
query I rowsort label-6654
SELECT DISTINCT - 28 + col1 / ( 7 ) FROM tab2 AS cor0
----
-20
-24
-26

query I rowsort
SELECT ALL col0 * + col2 - cor0.col2 * - ( col1 ) * col1 FROM tab2 AS cor0
----
13984
26136
92534

query I rowsort
SELECT ALL + col1 * cor0.col1 AS col1 FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT DISTINCT col1 + - col1 * - 62 FROM tab0 AS cor0
----
5418
5733
6111

query I rowsort
SELECT ALL - col1 + col1 * - col1 * col1 FROM tab2 AS cor0
----
-205438
-29822
-4930

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - cor0.col0 + col1 col0 FROM tab0 AS cor0
----
2
62

query I rowsort
SELECT ALL cor0.col1 * ( col1 ) FROM tab0 cor0
----
7396
8281
9409

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6661
SELECT col2 + - CAST( NULL AS DECIMAL ) * - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6661
SELECT col2 + - CAST ( NULL AS REAL ) * - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT tab0.col2 + - tab0.col0 FROM tab0
----
-34
-7
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( col0 ) - col0 * + 97 col2 FROM tab0 AS cor0
----
-2304
-3360
-8544

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6664
SELECT CAST( NULL AS SIGNED ) * - 31 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6664
SELECT CAST ( NULL AS INTEGER ) * - 31 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col2 * - 87 FROM tab1 AS cor0
----
4698
4959
8352

query I rowsort
SELECT DISTINCT + cor0.col2 * - 56 * col0 FROM tab2 AS cor0
----
-10584
-113568
-168112

query I rowsort
SELECT DISTINCT 52 + + tab2.col0 FROM tab2, tab1 AS cor0
----
130
131
59

query I rowsort
SELECT DISTINCT col0 - 0 AS col2 FROM tab0
----
24
35
89

query I rowsort
SELECT col2 * - col1 + col1 + col0 AS col1 FROM tab0
----
-2728
-7282
35

onlyif mysql # use DIV operator for integer division
query I rowsort label-6670
SELECT ALL - col2 + ( col1 ) * + col1 - col1 DIV col0 AS col0 FROM tab1
----
43
614
73

skipif mysql # not compatible
query I rowsort label-6670
SELECT ALL - col2 + ( col1 ) * + col1 - col1 / col0 AS col0 FROM tab1
----
43
614
73

query I rowsort
SELECT + cor0.col2 - col1 * col1 * col1 FROM tab2 cor0
----
-205353
-29764
-4875

query I rowsort
SELECT ALL - col1 * col2 * - 47 AS col1 FROM tab1 AS cor0
----
26790
58656
65988

query I rowsort
SELECT DISTINCT col1 + col0 * - 50 - 80 FROM tab0 cor0
----
-1194
-1733
-4439

query I rowsort
SELECT - - cor0.col1 + + col2 AS col1 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT ALL - - 82 FROM tab2 AS cor0
----
82
82
82

query I rowsort
SELECT - - ( cor0.col0 ) * col0 + + col2 FROM tab2 AS cor0
----
6110
6279
76

onlyif mysql # use DIV operator for integer division
query I rowsort label-6677
SELECT col1 DIV col2 AS col1 FROM tab0 cor0
----
1
2
97

skipif mysql # not compatible
query I rowsort label-6677
SELECT col1 / col2 AS col1 FROM tab0 cor0
----
1
2
97

query I rowsort
SELECT + ( col0 ) * - 20 AS col1 FROM tab1 AS cor0
----
-1280
-1600
-60

query I rowsort
SELECT ALL - cor1.col0 FROM tab1, tab2 AS cor0, tab2 cor1
----
27 values hashing to c82df1de3cb666224690a83f3d790d79

onlyif mysql # use DIV operator for integer division
query I rowsort label-6680
SELECT + col2 DIV - cor0.col2 col0 FROM tab0 cor0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6680
SELECT + col2 / - cor0.col2 col0 FROM tab0 cor0
----
-1
-1
-1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6681
SELECT CAST( NULL AS SIGNED ) + - ( - col0 ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6681
SELECT CAST ( NULL AS INTEGER ) + - ( - col0 ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 * + tab1.col2 * - ( + 50 * col0 ) + 8 AS col2 FROM tab1
----
-10396792
-36863992
-437392

query I rowsort
SELECT + 79 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 4857f2e1b1dbd184de4827f145dd02a1

query I rowsort
SELECT ALL + col0 + - col1 * ( + tab2.col1 ) AS col1 FROM tab2
----
-210
-3403
-954

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 74 + - col1 + - col2 col1 FROM tab0
----
-172
-193
-247

query I rowsort
SELECT col2 + col0 + ( col0 ) FROM tab0
----
260
71
81

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6687
SELECT ( + tab1.col0 ) + + CAST( col2 AS SIGNED ) * col2 FROM tab1
----
2919
3313
9296

skipif mysql # not compatible
query I rowsort label-6687
SELECT ( + tab1.col0 ) + + CAST ( col2 AS INTEGER ) * col2 FROM tab1
----
2919
3313
9296

query I rowsort
SELECT ALL - col0 + - tab2.col0 AS col0 FROM tab2
----
-14
-156
-158

query I rowsort
SELECT ALL + col2 * - col1 * col2 FROM tab0 AS cor0
----
-611884
-93654
-97

query I rowsort
SELECT - ( + 54 ) FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 71e27a12767d3a987ce05e4d6edad211

query I rowsort
SELECT DISTINCT 93 * col2 AS col1 FROM tab2
----
2418
2511
3534

onlyif mysql # use DIV operator for integer division
query I rowsort label-6692
SELECT 13 DIV - tab1.col1 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-6692
SELECT 13 / - tab1.col1 FROM tab1
----
-1
-1
0

query I rowsort
SELECT - 23 FROM tab2, tab1, tab2 cor0
----
27 values hashing to 9bd721f99d79dce21b1de2860fd51ed5

query I rowsort
SELECT DISTINCT - 16 * - 46 AS col0 FROM tab2, tab2 AS cor0
----
736

query I rowsort
SELECT - ( 47 ) + col0 AS col0 FROM tab1 AS cor0
----
-44
17
33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * col0 + ( col0 ) col1 FROM tab2
----
196
2106
3081

query I rowsort
SELECT DISTINCT 84 AS col0 FROM tab1, tab2 AS cor0
----
84

query I rowsort
SELECT col1 * ( ( - col1 ) ) FROM tab2
----
-289
-3481
-961

query I rowsort
SELECT - col2 + + col0 * + 95 AS col1 FROM tab0
----
2247
3324
8373

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT ALL - - 42 * - col2 * col2 + CAST ( + cor0.col2 AS REAL ) col2 FROM tab0 AS cor0
----
-282326
-41
-45705

query I rowsort
SELECT ( col0 + col2 ) FROM tab0
----
171
36
57

query I rowsort
SELECT ALL 65 + col2 * col0 AS col0 FROM tab2 AS cor0
----
2093
254
3067

query I rowsort
SELECT ALL + - ( + 47 ) AS col0 FROM tab1 AS cor0
----
-47
-47
-47

query I rowsort
SELECT - 50 * cor0.col1 AS col0 FROM tab1 AS cor0
----
-1300
-500
-650

onlyif mysql # use DIV operator for integer division
query I rowsort label-6705
SELECT + + col2 DIV - 65 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6705
SELECT + + col2 / - 65 AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - ( + 50 ) + col0 FROM tab1 AS cor0
----
-47
14
30

query I rowsort
SELECT ALL col2 + + 72 AS col1 FROM tab2 AS cor0
----
110
98
99

query I rowsort
SELECT + - 18 + + 33 FROM tab0 AS cor0
----
15
15
15

query I rowsort
SELECT DISTINCT + + col2 * col1 * - col2 AS col2 FROM tab0 AS cor0
----
-611884
-93654
-97

query I rowsort
SELECT DISTINCT 14 * + 67 FROM tab0 AS cor0
----
938

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 * col0 col0 FROM tab1 AS cor0
----
4096
6400
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-6712
SELECT - col0 + - col1 DIV col2 AS col0 FROM tab1 cor0
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-6712
SELECT - col0 + - col1 / col2 AS col0 FROM tab1 cor0
----
-3
-64
-80

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( col2 ) BETWEEN NULL AND NULL AND NOT col0 * - col2 NOT BETWEEN NULL AND NULL OR NOT NULL NOT BETWEEN - col2 AND - col0 * col2 + - col2
----

query I rowsort
SELECT DISTINCT col2 + col0 + col2 FROM tab0
----
253
37
90

query I rowsort
SELECT ALL + tab2.col1 * - col1 FROM tab2
----
-289
-3481
-961

query I rowsort
SELECT col1 * - col2 * + col2 AS col2 FROM tab2
----
-22599
-24548
-39884

query I rowsort
SELECT col1 + - col1 + col1 * col0 FROM tab2
----
1343
217
4602

query I rowsort
SELECT - col1 * - cor0.col0 * col1 AS col0 FROM tab2 AS cor0
----
22831
271518
6727

query I rowsort
SELECT DISTINCT tab1.col1 + - col2 * + col2 + - col2 AS col2 FROM tab1
----
-2944
-3296
-9299

query I rowsort
SELECT 40 * - col0 * col2 AS col2 FROM tab0
----
-1400
-291920
-31680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 16 col1 FROM tab1, tab0 AS cor0
----
-16

query I rowsort
SELECT ALL ( - col1 * - col1 ) + col2 * col1 * col0 FROM tab1
----
100009
36580
4888

query I rowsort
SELECT ( 2 * col1 ) AS col2 FROM tab1
----
20
26
52

query I rowsort
SELECT DISTINCT 42 * + col1 + + col1 FROM tab2
----
1333
2537
731

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6725
SELECT DISTINCT - CAST( + col2 AS SIGNED ) FROM tab0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-6725
SELECT DISTINCT - CAST ( + col2 AS INTEGER ) FROM tab0
----
-1
-33
-82

query I rowsort
SELECT + ( - col0 ) * col1 * col0 FROM tab2 AS cor0
----
-106097
-1519
-358956

query I rowsort
SELECT - 84 FROM tab1, tab0 AS cor0
----
9 values hashing to 975e2ef2a3bf1ee2622362f4e435752f

query I rowsort
SELECT + - ( - col1 ) + - col0 FROM tab2 AS cor0
----
-19
-62
24

onlyif mysql # use DIV operator for integer division
query I rowsort label-6729
SELECT DISTINCT tab2.col0 DIV col1 AS col1 FROM tab2
----
0
1
4

skipif mysql # not compatible
query I rowsort label-6729
SELECT DISTINCT tab2.col0 / col1 AS col1 FROM tab2
----
0
1
4

query I rowsort
SELECT + - col0 * - col2 + col2 FROM tab0 AS cor0
----
36
7380
825

query I rowsort
SELECT ALL - col0 * + col2 * + col0 + col2 * - col2 AS col1 FROM tab0 AS cor0
----
-1226
-20097
-656246

query I rowsort
SELECT + ( + col1 ) + - col2 AS col1 FROM tab1 cor0
----
-28
-47
-83

onlyif mysql # use DIV operator for integer division
query I rowsort label-6733
SELECT tab0.col2 DIV + col0 + - col1 FROM tab0
----
-85
-91
-97

skipif mysql # not compatible
query I rowsort label-6733
SELECT tab0.col2 / + col0 + - col1 FROM tab0
----
-85
-91
-97

query I rowsort
SELECT - col2 + + col1 * tab2.col1 AS col2 FROM tab2 WHERE NULL >= col2 * - col2
----

query I rowsort
SELECT ALL col1 + col0 * col1 + col0 AS col2 FROM tab2
----
1439
255
4739

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col1 - col0 > NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-6737
SELECT ALL - col1 * col1 DIV col0 FROM tab1
----
-1
-2
-225

skipif mysql # not compatible
query I rowsort label-6737
SELECT ALL - col1 * col1 / col0 FROM tab1
----
-1
-2
-225

query I rowsort
SELECT DISTINCT + col2 * - cor0.col1 AS col2 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT DISTINCT col0 * - cor0.col2 - col2 FROM tab1 AS cor0
----
-216
-3705
-7776

query I rowsort
SELECT - col0 + col1 * col1 AS col2 FROM tab2
----
210
3403
954

query I rowsort
SELECT col2 FROM tab2 WHERE NOT ( + col2 ) NOT IN ( col0 + tab2.col0 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-6742
SELECT DISTINCT tab0.col1 DIV col0 - col1 col2 FROM tab0
----
-83
-90
-95

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6742
SELECT DISTINCT tab0.col1 / col0 - col1 col2 FROM tab0
----
-83
-90
-95

query I rowsort
SELECT col1 * col1 + tab2.col1 FROM tab2
----
306
3540
992

query III rowsort
SELECT ALL * FROM tab2 WHERE - col2 NOT IN ( tab2.col0 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

query I rowsort
SELECT + col0 * tab0.col1 - col2 FROM tab0
----
2031
3394
8017

onlyif mysql # use DIV operator for integer division
query I rowsort label-6746
SELECT ALL col2 DIV col0 col1 FROM tab0
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6746
SELECT ALL col2 / col0 col1 FROM tab0
----
0
0
1

query I rowsort
SELECT ALL col2 + + col1 + col1 AS col1 FROM tab1
----
106
122
77

query I rowsort
SELECT + col1 + - col0 * - col0 AS col2 FROM tab1
----
35
4106
6413

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NULL ) >= - col0
----

query I rowsort
SELECT col1 + + col2 * - col1 FROM tab1
----
-1235
-1378
-560

query I rowsort
SELECT + col0 + col1 * + col0 * col1 AS col2 FROM tab2 AS cor0
----
22910
271596
6734

query I rowsort
SELECT - col0 * - col2 * + col1 + - col2 + - col2 AS col2 FROM tab1 cor0
----
36366
4104
99648

query I rowsort
SELECT + cor0.col1 * + col2 * col1 FROM tab2 AS cor0
----
10982
25947
90506

onlyif mysql # use DIV operator for integer division
query I rowsort label-6754
SELECT ALL col1 DIV - col1 AS col1 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6754
SELECT ALL col1 / - col1 AS col1 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT - cor0.col2 * + cor0.col2 + - col0 AS col1 FROM tab0 AS cor0
----
-1113
-36
-6813

query I rowsort
SELECT ALL + col0 * col2 * col2 + col1 * col1 FROM tab2 AS cor0
----
114365
56209
6064

query I rowsort
SELECT - tab2.col1 * col1 + col0 * col0 * + col2 FROM tab2
----
154703
236869
362

query I rowsort
SELECT ALL + col2 AS col0 FROM tab1 WHERE + col0 / + col1 <= NULL
----

query I rowsort
SELECT + col2 + col0 * - col1 * col1 AS col1 FROM tab1
----
-13424
-1974
-6343

query I rowsort
SELECT - 53 * col1 AS col1 FROM tab2 AS cor0
----
-1643
-3127
-901

onlyif mysql # use DIV operator for integer division
query I rowsort label-6761
SELECT - ( - col0 ) DIV col1 col1 FROM tab1 cor0
----
0
6
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6761
SELECT - ( - col0 ) / col1 col1 FROM tab1 cor0
----
0
6
6

query I rowsort
SELECT DISTINCT - 46 AS col2 FROM tab2, tab1 AS cor0
----
-46

query I rowsort
SELECT ALL + col0 + col0 * + col1 AS col2 FROM tab1
----
1120
704
81

query I rowsort
SELECT DISTINCT + + col1 * 33 + col2 AS col1 FROM tab2 AS cor0
----
1050
1973
599

query I rowsort
SELECT DISTINCT 63 AS col2 FROM tab2 AS cor0
----
63

query I rowsort
SELECT cor0.col0 + + col1 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT ALL + ( col0 ) * - col2 AS col1 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT DISTINCT + - col0 + + col2 * + col1 FROM tab2 AS cor0
----
1456
567
830

query I rowsort
SELECT - 3 * col0 AS col2 FROM tab1 cor0
----
-192
-240
-9

query I rowsort
SELECT ALL - + ( + 73 ) * + col1 AS col0 FROM tab2 AS cor0
----
-1241
-2263
-4307

query I rowsort
SELECT - - cor0.col1 * - 15 + cor0.col1 FROM tab1 AS cor0
----
-140
-182
-364

query I rowsort
SELECT 43 + + col0 * cor0.col2 FROM tab1 AS cor0
----
205
3691
7723

query I rowsort
SELECT DISTINCT col1 + + col2 * - col1 FROM tab2 cor0
----
-1475
-629
-806

query I rowsort
SELECT - 50 * - cor0.col2 + col0 FROM tab2 AS cor0
----
1357
1378
1979

query I rowsort
SELECT + 97 + ( col1 ) FROM tab1 AS cor0
----
107
110
123

query I rowsort
SELECT ALL cor0.col1 * + cor0.col1 + - cor0.col1 FROM tab2 AS cor0
----
272
3422
930

query I rowsort
SELECT ALL + 21 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 * col0 + 97 col2 FROM tab1 AS cor0
----
1137
175
737

query I rowsort
SELECT DISTINCT col2 + + cor0.col2 * + ( col0 ) FROM tab1 AS cor0
----
216
3705
7776

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + - col1 col0 FROM tab2 AS cor0
----
-118
-34
-62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6781
SELECT ALL - + cor0.col2 + + col2 + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6781
SELECT ALL - + cor0.col2 + + col2 + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 * cor0.col0 - + col1 FROM tab1 AS cor0
----
136
3638
7667

query I rowsort
SELECT DISTINCT col0 + - 96 * + cor0.col2 AS col0 FROM tab0 AS cor0
----
-3144
-61
-7783

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6784
SELECT DISTINCT - - col2 + - CAST( NULL AS DECIMAL ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6784
SELECT DISTINCT - - col2 + - CAST ( NULL AS REAL ) AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6785
SELECT ALL cor0.col2 + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6785
SELECT ALL cor0.col2 + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 + - col2 * col1 * col0 col1 FROM tab1 AS cor0
----
-36423
-4158
-99744

onlyif mysql # use DIV operator for integer division
query I rowsort label-6787
SELECT DISTINCT + col1 * cor0.col1 + + 91 DIV - cor0.col2 + col1 FROM tab0 cor0
----
7480
8371
9415

skipif mysql # not compatible
query I rowsort label-6787
SELECT DISTINCT + col1 * cor0.col1 + + 91 / - cor0.col2 + col1 FROM tab0 cor0
----
7480
8371
9415

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * col2 + col2 col2 FROM tab1 AS cor0
----
1344
1458
627

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6789
SELECT ALL - col2 + - CAST( NULL AS SIGNED ) + col1 / col1 col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6789
SELECT ALL - col2 + - CAST ( NULL AS INTEGER ) + col1 / col1 col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 + 84 FROM tab0 cor0
----
117
166
85

query I rowsort
SELECT DISTINCT col2 - col0 * + cor0.col1 FROM tab1 AS cor0
----
-24
-583
-944

query I rowsort
SELECT - - col1 * + ( col1 ) AS col1 FROM tab1 cor0
----
100
169
676

query I rowsort
SELECT DISTINCT - col1 + - 0 - 13 FROM tab0 AS cor0
----
-104
-110
-99

query I rowsort
SELECT DISTINCT - - col1 + + 0 * - cor0.col0 AS col1 FROM tab1 AS cor0
----
10
13
26

onlyif mysql # use DIV operator for integer division
query I rowsort label-6795
SELECT col2 + - ( - col2 ) DIV cor0.col0 AS col1 FROM tab0 AS cor0
----
1
34
82

skipif mysql # not compatible
query I rowsort label-6795
SELECT col2 + - ( - col2 ) / cor0.col0 AS col1 FROM tab0 AS cor0
----
1
34
82

query I rowsort
SELECT - col0 * col2 + + ( cor0.col0 ) FROM tab0 AS cor0
----
-7209
-768
0

query I rowsort
SELECT ( ( - cor0.col1 ) ) AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 58ed467a9a332e4d7bfaa9abdbbd063f

query I rowsort
SELECT - col0 + cor0.col1 * col2 AS col0 FROM tab2 AS cor0
----
1456
567
830

query I rowsort
SELECT + 46 * + col1 AS col1 FROM tab0 AS cor0
----
3956
4186
4462

query I rowsort
SELECT DISTINCT ( col1 ) * + cor0.col0 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT col0 * cor0.col1 * + col1 FROM tab0 AS cor0
----
177504
329315
737009

query I rowsort
SELECT cor0.col1 * + cor0.col1 AS col2 FROM tab0 AS cor0
----
7396
8281
9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-6803
SELECT + 98 + + cor0.col0 DIV + cor0.col2 AS col0 FROM tab1 AS cor0
----
98
98
99

skipif mysql # not compatible
query I rowsort label-6803
SELECT + 98 + + cor0.col0 / + cor0.col2 AS col0 FROM tab1 AS cor0
----
98
98
99

query I rowsort
SELECT DISTINCT ( col1 * - ( col2 ) ) FROM tab1
----
-1248
-1404
-570

query I rowsort
SELECT - col0 * col1 + 46 + - col1 FROM tab0
----
-2104
-3446
-8144

query I rowsort
SELECT - col0 * col1 + 77 FROM tab0 AS cor0
----
-1987
-3318
-8022

query I rowsort
SELECT DISTINCT 9 * + col0 * + col2 AS col0 FROM tab0
----
315
65682
7128

query I rowsort
SELECT + col1 * - col1 + col0 FROM tab2
----
-210
-3403
-954

query I rowsort
SELECT ALL - ( - col1 + - col1 ) AS col2 FROM tab2
----
118
34
62

query I rowsort
SELECT DISTINCT - 0 + + col1 AS col2 FROM tab1 AS cor0
----
10
13
26

onlyif mysql # use DIV operator for integer division
query I rowsort label-6811
SELECT DISTINCT - col1 DIV + col2 AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-6811
SELECT DISTINCT - col1 / + col2 AS col1 FROM tab1
----
0

query I rowsort
SELECT 53 * col1 AS col2 FROM tab2
----
1643
3127
901

query I rowsort
SELECT - + col1 + + col1 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT + - col1 * col1 + - col0 - cor0.col2 FROM tab2 AS cor0
----
-3585
-406
-995

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + cor0.col0 ) + col1 col0 FROM tab0 AS cor0
----
2
62
62

query I rowsort
SELECT + - ( + col0 ) + - ( - col0 ) * + col2 FROM tab1 AS cor0
----
159
3584
7600

query I rowsort
SELECT ALL - 50 * + cor0.col1 + + 64 FROM tab0 AS cor0
----
-4236
-4486
-4786

query I rowsort
SELECT DISTINCT + 1 * col0 + - col2 * col0 * col1 FROM tab2 AS cor0
----
-119574
-50955
-5852

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab1.col0 * - cor0.col1 col2 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to d09890f5ef66bc8fba3ae4a45b718168

onlyif mysql # use DIV operator for integer division
query I rowsort label-6820
SELECT cor0.col0 - + ( col1 ) DIV - col0 FROM tab2 cor0
----
11
78
79

skipif mysql # not compatible
query I rowsort label-6820
SELECT cor0.col0 - + ( col1 ) / - col0 FROM tab2 cor0
----
11
78
79

query I rowsort
SELECT ALL + col2 * col0 + 30 * col2 AS col1 FROM tab1 AS cor0
----
10560
1782
5358

query I rowsort
SELECT DISTINCT + col2 + col0 * - 17 FROM tab2 AS cor0
----
-1300
-1305
-92

query I rowsort
SELECT - - col2 + - col2 * + col0 FROM tab0 AS cor0
----
-34
-7216
-759

query I rowsort
SELECT DISTINCT + col2 - ( - col1 ) FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT ALL col0 - + col1 * col1 FROM tab2
----
-210
-3403
-954

query I rowsort
SELECT ALL - col1 * tab0.col2 - - col1 * ( + col0 ) AS col0 FROM tab0
----
-774
3298
637

onlyif mysql # use DIV operator for integer division
query I rowsort label-6827
SELECT ALL - col1 DIV tab2.col0 FROM tab2
----
-4
0
0

skipif mysql # not compatible
query I rowsort label-6827
SELECT ALL - col1 / tab2.col0 FROM tab2
----
-4
0
0

query I rowsort
SELECT + + ( cor0.col0 ) * + cor0.col1 FROM tab0 AS cor0
----
2064
3395
8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-6829
SELECT - + col0 DIV - col1 AS col1 FROM tab1 AS cor0
----
0
6
6

skipif mysql # not compatible
query I rowsort label-6829
SELECT - + col0 / - col1 AS col1 FROM tab1 AS cor0
----
0
6
6

onlyif mysql # use DIV operator for integer division
query I rowsort label-6830
SELECT - col1 DIV + 51 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6830
SELECT - col1 / + 51 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 55 col1 FROM tab2, tab1 AS cor0
----
-55

query I rowsort
SELECT ALL - tab0.col2 AS col0 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6833
SELECT CAST( NULL AS SIGNED ) FROM tab0, tab0 AS cor0 CROSS JOIN tab1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-6833
SELECT CAST ( NULL AS INTEGER ) FROM tab0, tab0 AS cor0 CROSS JOIN tab1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

onlyif mysql # use DIV operator for integer division
query I rowsort label-6834
SELECT ALL col2 DIV 4 AS col2 FROM tab2
----
6
6
9

skipif mysql # not compatible
query I rowsort label-6834
SELECT ALL col2 / 4 AS col2 FROM tab2
----
6
6
9

query I rowsort
SELECT - - 62 * - col1 * + cor0.col1 FROM tab2 cor0
----
-17918
-215822
-59582

query I rowsort
SELECT - - col0 * - col2 AS col2 FROM tab2 cor0
----
-189
-2028
-3002

query I rowsort
SELECT - - 23 * - 88 FROM tab1 AS cor0
----
-2024
-2024
-2024

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6838
SELECT - CAST( + 50 * col2 AS SIGNED ) AS col2 FROM tab0
----
-1650
-4100
-50

skipif mysql # not compatible
query I rowsort label-6838
SELECT - CAST ( + 50 * col2 AS INTEGER ) AS col2 FROM tab0
----
-1650
-4100
-50

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6839
SELECT CAST( + col2 AS SIGNED ) * tab1.col2 - - col2 AS col0 FROM tab1
----
2970
3306
9312

skipif mysql # not compatible
query I rowsort label-6839
SELECT CAST ( + col2 AS INTEGER ) * tab1.col2 - - col2 AS col0 FROM tab1
----
2970
3306
9312

query I rowsort
SELECT DISTINCT + ( col1 * - col2 + + ( ( + col1 ) ) ) FROM tab2
----
-1475
-629
-806

query I rowsort
SELECT DISTINCT - 42 FROM tab1, tab0, tab2 cor0
----
-42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 57 col0 FROM tab2
----
-57
-57
-57

query I rowsort
SELECT col2 + 3 * - col1 AS col2 FROM tab0
----
-191
-225
-290

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6844
SELECT DISTINCT CAST( ( - col1 ) AS SIGNED ) * - 73 FROM tab1
----
1898
730
949

skipif mysql # not compatible
query I rowsort label-6844
SELECT DISTINCT CAST ( ( - col1 ) AS INTEGER ) * - 73 FROM tab1
----
1898
730
949

query I rowsort
SELECT DISTINCT + col2 + col1 * - cor0.col1 AS col1 FROM tab1 AS cor0
----
-43
-622
-73

query I rowsort
SELECT 44 * + col1 + col0 * col1 * col1 FROM tab1
----
14092
3172
6840

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6847
SELECT ALL + ( col1 ) * - CAST( NULL AS SIGNED ) + col1 + - col1 * - 72 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6847
SELECT ALL + ( col1 ) * - CAST ( NULL AS INTEGER ) + col1 + - col1 * - 72 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + cor0.col0 + col2 * ( 26 * col2 ) FROM tab1 AS cor0
----
239536
75813
84410

query I rowsort
SELECT DISTINCT + 64 * col0 AS col2 FROM tab0 AS cor0
----
1536
2240
5696

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6850
SELECT DISTINCT col2 * + col0 + + CAST( NULL AS SIGNED ) * - 49 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6850
SELECT DISTINCT col2 * + col0 + + CAST ( NULL AS INTEGER ) * - 49 AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL + + cor0.col2 - - col2 * - ( + 84 ) * - col0 AS col1 FROM tab0 AS cor0
----
2941
613114
66561

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 0 * cor0.col1 col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6853
SELECT DISTINCT + + CAST( NULL AS DECIMAL ) FROM tab1, tab0 cor0, tab0, tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-6853
SELECT DISTINCT + + CAST ( NULL AS REAL ) FROM tab1, tab0 cor0, tab0, tab1 AS cor1
----
NULL

query I rowsort
SELECT - + col1 + ( 22 ) AS col2 FROM tab2 cor0
----
-37
-9
5

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6855
SELECT col1 * CAST( NULL AS SIGNED ) + col2 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6855
SELECT col1 * CAST ( NULL AS INTEGER ) + col2 AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 * + col0 + + col1 FROM tab2 cor0
----
6143
6258
80

query I rowsort
SELECT DISTINCT col0 + - 20 AS col0 FROM tab2 AS cor0
----
-13
58
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-6858
SELECT ALL col2 + col2 DIV - ( - col1 ) FROM tab2 AS cor0
----
26
27
40

skipif mysql # not compatible
query I rowsort label-6858
SELECT ALL col2 + col2 / - ( - col1 ) FROM tab2 AS cor0
----
26
27
40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - 37 col0 FROM tab2 AS cor0
----
-259
-2886
-2923

query I rowsort
SELECT col1 * cor0.col2 + col2 FROM tab2 AS cor0
----
1560
684
864

query I rowsort
SELECT DISTINCT - + col0 * - col1 + + col0 AS col0 FROM tab1 AS cor0
----
1120
704
81

query I rowsort
SELECT DISTINCT cor0.col0 + + col2 * col1 FROM tab0 AS cor0
----
132
2862
7551

query I rowsort
SELECT ALL col1 + 67 * cor0.col2 + 39 * 18 FROM tab2 AS cor0
----
2503
2542
3265

onlyif mysql # use DIV operator for integer division
query I rowsort label-6864
SELECT DISTINCT - + 18 DIV 31 + - cor0.col2 AS col0 FROM tab1 AS cor0
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-6864
SELECT DISTINCT - + 18 / 31 + - cor0.col2 AS col0 FROM tab1 AS cor0
----
-54
-57
-96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6865
SELECT - tab0.col1 * CAST( - col0 AS SIGNED ) FROM tab0
----
2064
3395
8099

skipif mysql # not compatible
query I rowsort label-6865
SELECT - tab0.col1 * CAST ( - col0 AS INTEGER ) FROM tab0
----
2064
3395
8099

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6866
SELECT ALL - CAST( 53 AS SIGNED ) * + col2 - col1 AS col0 FROM tab2 AS cor0
----
-1437
-1462
-2031

skipif mysql # not compatible
query I rowsort label-6866
SELECT ALL - CAST ( 53 AS INTEGER ) * + col2 - col1 AS col0 FROM tab2 AS cor0
----
-1437
-1462
-2031

onlyif mysql # use DIV operator for integer division
query I rowsort label-6867
SELECT - cor0.col1 DIV - cor0.col0 FROM tab0 AS cor0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-6867
SELECT - cor0.col1 / - cor0.col0 FROM tab0 AS cor0
----
1
2
3

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6868
SELECT DISTINCT + - col1 / + CAST( NULL AS DECIMAL ) col1 FROM tab2 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6868
SELECT DISTINCT + - col1 / + CAST ( NULL AS REAL ) col1 FROM tab2 cor0
----
NULL

query I rowsort
SELECT - col2 * + 71 FROM tab1 AS cor0
----
-3834
-4047
-6816

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col1 * 34 * - col0 col0 FROM tab2 AS cor0
----
-156468
-45662
-7378

query I rowsort
SELECT - col0 * - ( col1 ) AS col1 FROM tab0 AS cor0
----
2064
3395
8099

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6872
SELECT col1 * + CAST( + col2 + + col1 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
10234
15743
9506

skipif mysql # not compatible
query I rowsort label-6872
SELECT col1 * + CAST ( + col2 + + col1 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
10234
15743
9506

query I rowsort
SELECT ALL - col2 * + 48 * + 91 AS col0 FROM tab0 AS cor0
----
-144144
-358176
-4368

onlyif mysql # use DIV operator for integer division
query I rowsort label-6874
SELECT DISTINCT - + col1 DIV col1 AS col2 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-6874
SELECT DISTINCT - + col1 / col1 AS col2 FROM tab1 AS cor0
----
-1

query I rowsort
SELECT col2 + tab2.col1 AS col2 FROM tab2
----
55
58
85

onlyif mysql # use DIV operator for integer division
query I rowsort label-6876
SELECT + col1 DIV - col2 - - col1 FROM tab1
----
10
13
26

skipif mysql # not compatible
query I rowsort label-6876
SELECT + col1 / - col2 - - col1 FROM tab1
----
10
13
26

query I rowsort
SELECT col1 * + col2 + col0 AS col2 FROM tab2
----
1612
725
844

onlyif mysql # use DIV operator for integer division
query I rowsort label-6878
SELECT col1 + col0 DIV col1 FROM tab2
----
21
31
60

skipif mysql # not compatible
query I rowsort label-6878
SELECT col1 + col0 / col1 FROM tab2
----
21
31
60

query I rowsort
SELECT DISTINCT + 26 AS col1 FROM tab2, tab0 AS cor0
----
26

query I rowsort
SELECT ALL - + col2 * + 31 + - 9 AS col1 FROM tab1 AS cor0
----
-1683
-1776
-2985

onlyif mysql # use DIV operator for integer division
query I rowsort label-6881
SELECT ALL + - cor0.col0 DIV ( - 84 ) AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6881
SELECT ALL + - cor0.col0 / ( - 84 ) AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - - cor0.col1 * col1 AS col1 FROM tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT DISTINCT - 24 FROM tab0, tab0 AS cor0
----
-24

query I rowsort
SELECT - col2 * col2 + - col2 AS col2 FROM tab2
----
-1482
-702
-756

onlyif mysql # use DIV operator for integer division
query I rowsort label-6885
SELECT col0 * col0 DIV col1 AS col2 FROM tab0
----
12
6
87

skipif mysql # not compatible
query I rowsort label-6885
SELECT col0 * col0 / col1 AS col2 FROM tab0
----
12
6
87

query I rowsort
SELECT ALL + col1 * - tab0.col2 AS col0 FROM tab0
----
-2838
-7462
-97

query I rowsort
SELECT tab0.col2 - col0 AS col1 FROM tab0 WHERE NOT NULL NOT IN ( tab0.col0 * col0 )
----

query I rowsort
SELECT DISTINCT col1 + + tab1.col0 * col1 - col1 AS col2 FROM tab1
----
1040
640
78

query I rowsort
SELECT ALL col0 + tab2.col2 + + tab2.col0 AS col2 FROM tab2
----
182
196
41

query I rowsort
SELECT ALL col1 AS col1 FROM tab1 WHERE NULL IN ( + col1 )
----

query I rowsort
SELECT col2 * col2 * ( cor0.col1 ) + col2 + 66 AS col0 FROM tab0 AS cor0
----
164
612032
93753

query I rowsort
SELECT col2 + - col2 * + col0 * col2 + + col0 FROM tab0
----
-26079
-598265
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-6893
SELECT - tab0.col1 - + col1 DIV - col1 AS col0 FROM tab0
----
-85
-90
-96

skipif mysql # not compatible
query I rowsort label-6893
SELECT - tab0.col1 - + col1 / - col1 AS col0 FROM tab0
----
-85
-90
-96

query I rowsort
SELECT - col2 AS col2 FROM tab2 WHERE NOT NULL NOT IN ( col0 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-6895
SELECT DISTINCT + col2 DIV col2 + - col2 - col2 AS col1 FROM tab1
----
-107
-113
-191

skipif mysql # not compatible
query I rowsort label-6895
SELECT DISTINCT + col2 / col2 + - col2 - col2 AS col1 FROM tab1
----
-107
-113
-191

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL < ( NULL )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-6897
SELECT + col2 * + col0 DIV col0 AS col0 FROM tab1
----
54
57
96

skipif mysql # not compatible
query I rowsort label-6897
SELECT + col2 * + col0 / col0 AS col0 FROM tab1
----
54
57
96

query I rowsort
SELECT - col1 - col2 * - col1 FROM tab2
----
1475
629
806

query I rowsort
SELECT - col2 AS col1 FROM tab2 WHERE NOT NULL >= ( col0 * - col0 )
----

query I rowsort
SELECT DISTINCT + col1 * - col0 + col1 AS col1 FROM tab1 WHERE col0 + col2 * col2 + - col1 < ( NULL )
----

query I rowsort
SELECT ALL + 57 * col2 FROM tab0
----
1881
4674
57

query I rowsort
SELECT ALL + 98 * + col0 FROM tab2 AS cor0
----
686
7644
7742

query I rowsort
SELECT DISTINCT cor0.col0 AS col0 FROM tab2, tab0 cor0, tab1 AS cor1
----
24
35
89

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6904
SELECT DISTINCT - col2 + + col1 * CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6904
SELECT DISTINCT - col2 + + col1 * CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - col1 * - col2 + - 21 FROM tab2
----
1513
625
816

query I rowsort
SELECT ALL + 90 * - col1 FROM tab0
----
-7740
-8190
-8730

query I rowsort
SELECT col0 * - col0 + - col0 * col1 FROM tab1
----
-4736
-7440
-87

query I rowsort
SELECT + - 21 * col0 AS col1 FROM tab1 cor0
----
-1344
-1680
-63

query I rowsort
SELECT ALL - 4 AS col2 FROM tab1 AS cor0
----
-4
-4
-4

query I rowsort
SELECT - cor1.col2 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b5a4102107e5ebd26e341538f4fede1e

query I rowsort
SELECT ALL 45 AS col2 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 14cec871edc37b5056cda01c8331fdca

query I rowsort
SELECT - col1 * - tab0.col0 + ( 92 ) + col2 AS col1 FROM tab0
----
2189
3488
8273

query I rowsort
SELECT ALL + 35 + col2 AS col1 FROM tab1 AS cor0
----
131
89
92

query I rowsort
SELECT ALL - - col1 * col2 + col1 FROM tab2 AS cor0
----
1593
663
868

onlyif mysql # use DIV operator for integer division
query I rowsort label-6915
SELECT ALL - + col2 + col0 * col2 DIV - col0 AS col1 FROM tab0 cor0
----
-164
-2
-66

skipif mysql # not compatible
query I rowsort label-6915
SELECT ALL - + col2 + col0 * col2 / - col0 AS col1 FROM tab0 cor0
----
-164
-2
-66

onlyif mysql # use DIV operator for integer division
query I rowsort label-6916
SELECT DISTINCT + + col2 * col1 DIV ( - col2 + - col2 * + 21 ) AS col2 FROM tab0 AS cor0
----
-3
-4

skipif mysql # not compatible
query I rowsort label-6916
SELECT DISTINCT + + col2 * col1 / ( - col2 + - col2 * + 21 ) AS col2 FROM tab0 AS cor0
----
-3
-4

query I rowsort
SELECT ALL + col2 * col2 + col2 * col2 AS col2 FROM tab2 AS cor0
----
1352
1458
2888

query I rowsort
SELECT ALL - cor1.col1 AS col0 FROM tab2, tab2 AS cor0, tab1 cor1
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6

onlyif mysql # use DIV operator for integer division
query I rowsort label-6919
SELECT DISTINCT - + col2 + ( + col2 ) DIV + col0 AS col2 FROM tab0 AS cor0
----
-1
-32
-82

skipif mysql # not compatible
query I rowsort label-6919
SELECT DISTINCT - + col2 + ( + col2 ) / + col0 AS col2 FROM tab0 AS cor0
----
-1
-32
-82

query I rowsort
SELECT ALL ( - col0 ) * - cor0.col2 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT ALL + ( - 8 ) AS col0 FROM tab0 cor0
----
-8
-8
-8

query I rowsort
SELECT DISTINCT - ( + 6 ) AS col1 FROM tab0 AS cor0
----
-6

query I rowsort
SELECT - col0 * + col1 - - cor0.col0 AS col2 FROM tab2 AS cor0
----
-1264
-210
-4524

query I rowsort
SELECT 71 + col2 FROM tab2 AS cor0
----
109
97
98

query I rowsort
SELECT - + col2 + + col2 * col1 FROM tab0 AS cor0
----
2805
7380
96

query I rowsort
SELECT - ( col0 ) - + col2 AS col0 FROM tab2 AS cor0
----
-104
-117
-34

query I rowsort
SELECT ALL + col0 * + 1 * - col2 + - col1 FROM tab1
----
-188
-3658
-7693

query I rowsort
SELECT DISTINCT + col0 + 77 AS col0 FROM tab0
----
101
112
166

query I rowsort
SELECT DISTINCT - 21 + tab1.col2 FROM tab1
----
33
36
75

query I rowsort
SELECT DISTINCT tab2.col0 AS col2 FROM tab2, tab1, tab2 AS cor0
----
7
78
79

query I rowsort
SELECT DISTINCT + tab0.col0 * - col0 + col2 AS col1 FROM tab0
----
-1224
-543
-7839

query I rowsort
SELECT DISTINCT + cor1.col0 FROM tab1 cor0 CROSS JOIN tab0, tab1 AS cor1
----
3
64
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col2 col0 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
-54
-57
-96

query I rowsort
SELECT DISTINCT 77 * + col2 + col0 * + 66 AS col1 FROM tab1 AS cor0
----
12672
4356
8613

query I rowsort
SELECT ALL + 12 * col1 - + cor0.col0 FROM tab0 AS cor0
----
1003
1008
1129

query I rowsort
SELECT DISTINCT 90 + + col0 * col2 AS col0 FROM tab2 AS cor0
----
2118
279
3092

query I rowsort
SELECT + 99 * + col0 * - 86 AS col2 FROM tab0 AS cor0
----
-204336
-297990
-757746

query I rowsort
SELECT - col0 * col2 + - ( - col1 * col1 ) AS col1 FROM tab2
----
-2713
1453
772

query I rowsort
SELECT tab0.col0 * tab0.col0 AS col1 FROM tab0
----
1225
576
7921

query I rowsort
SELECT DISTINCT + 67 * - col1 + - col0 FROM tab2 AS cor0
----
-1218
-2084
-4031

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 + col1 * - 57 col0 FROM tab0 AS cor0
----
-4869
-5105
-5528

query I rowsort
SELECT ( + col0 ) * col1 * + col0 AS col1 FROM tab1 AS cor0
----
234
40960
83200

query I rowsort
SELECT DISTINCT cor0.col0 + col1 + + col2 FROM tab2 AS cor0
----
134
163
65

query I rowsort
SELECT DISTINCT + col0 - ( - 86 * - col0 ) FROM tab0 cor0
----
-2040
-2975
-7565

query I rowsort
SELECT ALL + - col0 * 91 + col0 FROM tab2 AS cor0
----
-630
-7020
-7110

query I rowsort
SELECT ALL col0 * 90 + col1 AS col1 FROM tab1 AS cor0
----
296
5770
7213

query I rowsort
SELECT DISTINCT + - col0 + + ( col0 ) * col2 * col1 + cor0.col1 * - col2 * + 78 FROM tab1 AS cor0
----
-105303
-8044
2416

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 69 * col2 col2 FROM tab2
----
1794
1863
2622

query I rowsort
SELECT DISTINCT - col2 * - col2 * - ( + 49 ) AS col0 FROM tab1
----
-142884
-159201
-451584

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 * 83 * col2 col0 FROM tab1 AS cor0
----
13446
302784
637440

query I rowsort
SELECT ALL + col1 + ( + 83 ) * cor0.col2 AS col1 FROM tab0 AS cor0
----
180
2825
6897

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6952
SELECT ALL - - cor0.col1 * CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6952
SELECT ALL - - cor0.col1 * CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col2 * + col0 + - col0 * col2 AS col0 FROM tab2 AS cor0
----
-378
-4056
-6004

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + 69 col0 FROM tab1 AS cor0
----
1794
690
897

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab2.col1 col1 FROM tab2, tab0 AS cor0
----
17
31
59

query I rowsort
SELECT DISTINCT - col2 * ( cor0.col0 ) FROM tab2 cor0
----
-189
-2028
-3002

query I rowsort
SELECT - col2 + col2 * col2 + col0 FROM tab0 AS cor0
----
1080
35
6731

onlyif mysql # use DIV operator for integer division
query I rowsort label-6958
SELECT ALL col2 + - cor0.col1 DIV 74 FROM tab0 AS cor0
----
0
32
81

skipif mysql # not compatible
query I rowsort label-6958
SELECT ALL col2 + - cor0.col1 / 74 FROM tab0 AS cor0
----
0
32
81

query I rowsort
SELECT - - col1 + - col1 * + cor0.col2 FROM tab2 AS cor0
----
-1475
-629
-806

query I rowsort
SELECT DISTINCT + col1 + ( - col1 ) * cor0.col2 AS col0 FROM tab1 AS cor0
----
-1235
-1378
-560

onlyif mysql # use DIV operator for integer division
query I rowsort label-6961
SELECT col0 DIV ( tab0.col0 ) - - col1 * + col2 * col2 AS col2 FROM tab0
----
611885
93655
98

skipif mysql # not compatible
query I rowsort label-6961
SELECT col0 / ( tab0.col0 ) - - col1 * + col2 * col2 AS col2 FROM tab0
----
611885
93655
98

query I rowsort
SELECT col0 + - 19 AS col0 FROM tab0
----
16
5
70

query I rowsort
SELECT + tab0.col0 + ( tab0.col2 ) FROM tab0
----
171
36
57

query I rowsort
SELECT ALL tab2.col2 * ( tab2.col1 * - col2 ) AS col0 FROM tab2
----
-22599
-24548
-39884

query I rowsort
SELECT ALL - ( 98 ) AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to f17b7008a7deae1eb5a2e707ec237638

query I rowsort
SELECT 29 * - 61 FROM tab2
----
-1769
-1769
-1769

query I rowsort
SELECT ALL + 78 * - 96 FROM tab1
----
-7488
-7488
-7488

query I rowsort
SELECT - 57 * + cor0.col1 + + 41 + + col0 * col1 AS col0 FROM tab2 AS cor0
----
-1509
1280
415

query I rowsort
SELECT DISTINCT - 27 * col2 * col1 AS col0 FROM tab0 AS cor0
----
-201474
-2619
-76626

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 84 * col1 col0 FROM tab2 AS cor0
----
1428
2604
4956

query I rowsort
SELECT DISTINCT + + 84 * + col2 FROM tab1 AS cor0
----
4536
4788
8064

query I rowsort
SELECT ALL 33 * - col2 - tab2.col2 AS col2 FROM tab2
----
-1292
-884
-918

query I rowsort
SELECT ALL + 69 AS col1 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 2810c3097fe4771e273cfff903357b40

query I rowsort
SELECT - 97 + col1 * cor0.col0 FROM tab0 cor0
----
1967
3298
8002

query I rowsort
SELECT ALL 85 + col1 FROM tab2
----
102
116
144

query I rowsort
SELECT DISTINCT + 2 * col1 AS col0 FROM tab1 AS cor0
----
20
26
52

query I rowsort
SELECT + + col1 + col0 * + col1 + 65 * + col1 AS col1 FROM tab2 AS cor0
----
2263
2465
8496

onlyif mysql # use DIV operator for integer division
query I rowsort label-6978
SELECT - col0 DIV cor0.col1 - col2 DIV 27 FROM tab2 AS cor0
----
-1
-1
-5

skipif mysql # not compatible
query I rowsort label-6978
SELECT - col0 / cor0.col1 - col2 / 27 FROM tab2 AS cor0
----
-1
-1
-5

query I rowsort
SELECT DISTINCT - 54 * col1 AS col2 FROM tab0 AS cor0
----
-4644
-4914
-5238

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 38 + col0 * + cor0.col1 col1 FROM tab2 AS cor0
----
1381
255
4640

query I rowsort
SELECT ALL - - 47 * + col0 FROM tab2 AS cor0
----
329
3666
3713

query I rowsort
SELECT col2 + + col0 + - col0 * - col2 AS col0 FROM tab2 AS cor0
----
2132
223
3119

query I rowsort
SELECT ALL - 20 AS col1 FROM tab1
----
-20
-20
-20

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6984
SELECT DISTINCT - col0 * col0 + - col0 + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6984
SELECT DISTINCT - col0 * col0 + - col0 + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6985
SELECT ALL CAST( - col2 AS SIGNED ) * col0 AS col2 FROM tab1 AS cor0
----
-162
-3648
-7680

skipif mysql # not compatible
query I rowsort label-6985
SELECT ALL CAST ( - col2 AS INTEGER ) * col0 AS col2 FROM tab1 AS cor0
----
-162
-3648
-7680

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1 AS cor0, tab1 cor1, tab0 cor2
----
972 values hashing to b51b4342db121ebc2d3d353dcd8ed521

query I rowsort
SELECT ALL - cor0.col0 + 64 FROM tab1 AS cor0
----
-16
0
61

query I rowsort
SELECT DISTINCT col2 + - 45 AS col1 FROM tab2 AS cor0
----
-18
-19
-7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6989
SELECT - CAST( - col0 AS SIGNED ) * col2 FROM tab1 AS cor0
----
162
3648
7680

skipif mysql # not compatible
query I rowsort label-6989
SELECT - CAST ( - col0 AS INTEGER ) * col2 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT DISTINCT - 92 * col0 * - cor0.col1 AS col1 FROM tab1 cor0
----
58880
7176
95680

query I rowsort
SELECT + 72 + col0 * - col0 AS col2 FROM tab0 AS cor0
----
-1153
-504
-7849

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 93 col1 FROM tab1 AS cor0
----
93
93
93

query I rowsort
SELECT + col2 + + col0 * - 90 FROM tab1 cor0
----
-216
-5703
-7104

onlyif mysql # use DIV operator for integer division
query I rowsort label-6994
SELECT ALL - + col0 + col2 DIV + ( + col0 + col0 ) col2 FROM tab2 AS cor0
----
-6
-78
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6994
SELECT ALL - + col0 + col2 / + ( + col0 + col0 ) col2 FROM tab2 AS cor0
----
-6
-78
-79

query I rowsort
SELECT - - ( - cor0.col2 ) * + col2 FROM tab2 AS cor0
----
-1444
-676
-729

query I rowsort
SELECT ALL - col1 * - cor0.col1 AS col0 FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT + 47 * col0 FROM tab2
----
329
3666
3713

query I rowsort
SELECT - ( col0 * col1 ) AS col0 FROM tab0
----
-2064
-3395
-8099

query I rowsort
SELECT - col1 + col1 * + cor0.col1 * col2 FROM tab1 AS cor0
----
16211
36478
5690

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7000
SELECT + col0 * + CAST( col0 AS SIGNED ) + col2 * + col2 FROM tab0 AS cor0
----
1226
14645
1665

skipif mysql # not compatible
query I rowsort label-7000
SELECT + col0 * + CAST ( col0 AS INTEGER ) + col2 * + col2 FROM tab0 AS cor0
----
1226
14645
1665

onlyif mysql # use DIV operator for integer division
query I rowsort label-7001
SELECT col1 DIV col1 + 23 FROM tab1 AS cor0
----
24
24
24

skipif mysql # not compatible
query I rowsort label-7001
SELECT col1 / col1 + 23 FROM tab1 AS cor0
----
24
24
24

query I rowsort
SELECT ALL + - col0 * + 42 AS col2 FROM tab0 AS cor0
----
-1008
-1470
-3738

query I rowsort
SELECT ALL + + cor0.col1 * - 82 + + ( col2 ) * + ( - 57 ) * - col0 FROM tab0 AS cor0
----
-5959
38092
408524

query I rowsort
SELECT - cor0.col2 * col2 + + ( + col0 * - ( col1 ) ) AS col0 FROM tab1 AS cor0
----
-10256
-2994
-3889

query I rowsort
SELECT DISTINCT cor0.col1 - 62 * + col0 AS col1 FROM tab1 AS cor0
----
-160
-3958
-4947

query I rowsort
SELECT ALL + + col2 * - 80 FROM tab1 AS cor0
----
-4320
-4560
-7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-7007
SELECT col1 * 42 - + 2 DIV col0 FROM tab0 AS cor0
----
3612
3822
4074

skipif mysql # not compatible
query I rowsort label-7007
SELECT col1 * 42 - + 2 / col0 FROM tab0 AS cor0
----
3612
3822
4074

query I rowsort
SELECT ALL - cor0.col0 + 50 FROM tab2 cor0
----
-28
-29
43

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + + col0 - col0 col1 FROM tab2
----
26
27
38

query I rowsort
SELECT ( col1 ) - + col1 AS col2 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT - col2 * + ( 90 ) AS col2 FROM tab1 AS cor0
----
-4860
-5130
-8640

query I rowsort
SELECT - cor0.col1 + - col1 * col2 FROM tab0 AS cor0
----
-194
-2924
-7553

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7013
SELECT ALL col1 * CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7013
SELECT ALL col1 * CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * + 89 + col2 * + col1 col1 FROM tab0 AS cor0
----
-99
164
8

query I rowsort
SELECT - - cor0.col1 + + col1 - - col0 AS col0 FROM tab1 AS cor0
----
106
55
84

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7016
SELECT col2 + CAST( NULL AS SIGNED ) - + col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7016
SELECT col2 + CAST ( NULL AS INTEGER ) - + col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col2 * - col1 + col1 FROM tab0
----
194
2924
7553

onlyif mysql # use DIV operator for integer division
query I rowsort label-7018
SELECT DISTINCT col2 DIV 36 + col0 * - col2 AS col0 FROM tab1
----
-161
-3647
-7678

skipif mysql # not compatible
query I rowsort label-7018
SELECT DISTINCT col2 / 36 + col0 * - col2 AS col0 FROM tab1
----
-161
-3647
-7678

onlyif mysql # use DIV operator for integer division
query I rowsort label-7019
SELECT DISTINCT + col0 DIV - ( - 76 ) + - col2 * col0 * col0 AS col2 FROM tab2
----
-1323
-158183
-237157

skipif mysql # not compatible
query I rowsort label-7019
SELECT DISTINCT + col0 / - ( - 76 ) + - col2 * col0 * col0 AS col2 FROM tab2
----
-1323
-158183
-237157

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - 23 col0 FROM tab1
----
-230
-299
-598

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 40 * - cor0.col2 - + col0 col1 FROM tab2 AS cor0
----
-1087
-1118
-1599

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7022
SELECT - - col0 * col2 - - cor0.col1 * CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7022
SELECT - - col0 * col2 - - cor0.col1 * CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7023
SELECT + CAST( col1 AS SIGNED ) * col1 FROM tab1 AS cor0
----
100
169
676

skipif mysql # not compatible
query I rowsort label-7023
SELECT + CAST ( col1 AS INTEGER ) * col1 FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT ALL 3 * + 73 FROM tab1, tab1 cor0
----
9 values hashing to 38762613230fd3895e01cb277576988c

onlyif mysql # use DIV operator for integer division
query I rowsort label-7025
SELECT DISTINCT col2 DIV col1 + col1 AS col0 FROM tab0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-7025
SELECT DISTINCT col2 / col1 + col1 AS col0 FROM tab0
----
86
91
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 19 col2 FROM tab0, tab1 cor0
----
9 values hashing to 339c9d62143bf2f7566b89a1b56eeeb4

query I rowsort
SELECT + col0 * - 23 AS col1 FROM tab2
----
-161
-1794
-1817

query I rowsort
SELECT DISTINCT col2 * ( col2 ) + - col1 + + col0 AS col1 FROM tab1
----
2893
3303
9283

onlyif mysql # use DIV operator for integer division
query I rowsort label-7029
SELECT tab0.col2 DIV - 98 AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7029
SELECT tab0.col2 / - 98 AS col0 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT - 83 FROM tab0, tab0 AS cor0
----
-83

query I rowsort
SELECT ALL 47 * - col1 FROM tab0
----
-4042
-4277
-4559

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7032
SELECT - - CAST( NULL AS SIGNED ) + 49 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-7032
SELECT - - CAST ( NULL AS INTEGER ) + 49 col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + col0 * 81 AS col1 FROM tab2 AS cor0
----
-567
-6318
-6399

query I rowsort
SELECT - cor0.col2 * col0 AS col2 FROM tab1 cor0
----
-162
-3648
-7680

query I rowsort
SELECT ALL + 82 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c

query I rowsort
SELECT - col2 + col0 * col0 AS col2 FROM tab1 cor0
----
-45
4039
6304

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * col2 col2 FROM tab0 cor0
----
1
1089
6724

onlyif mysql # use DIV operator for integer division
query I rowsort label-7038
SELECT ALL 16 DIV col1 col1 FROM tab1 AS cor0
----
0
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7038
SELECT ALL 16 / col1 col1 FROM tab1 AS cor0
----
0
1
1

query I rowsort
SELECT 92 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a

query I rowsort
SELECT - col1 * 9 AS col2 FROM tab0 AS cor0
----
-774
-819
-873

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - col1 * 3 col1 FROM tab0 AS cor0
----
-22188
-24843
-28227

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7042
SELECT DISTINCT tab1.col0 * + CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7042
SELECT DISTINCT tab1.col0 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT + 70 AS col0 FROM tab1, tab0 AS cor0
----
70

query I rowsort
SELECT cor0.col2 + 55 FROM tab1, tab0 cor0
----
9 values hashing to 6a613a62ee31a3bb943733efaa1d4d52

query I rowsort
SELECT + + ( - col1 ) * - 33 AS col2 FROM tab0 AS cor0
----
2838
3003
3201

query I rowsort
SELECT DISTINCT 87 * - col2 AS col1 FROM tab1 AS cor0
----
-4698
-4959
-8352

onlyif mysql # use DIV operator for integer division
query I rowsort label-7047
SELECT cor0.col2 + col2 DIV - col0 AS col0 FROM tab1 cor0
----
36
57
95

skipif mysql # not compatible
query I rowsort label-7047
SELECT cor0.col2 + col2 / - col0 AS col0 FROM tab1 cor0
----
36
57
95

query I rowsort
SELECT + col1 * col0 + col2 + col1 AS col0 FROM tab0 AS cor0
----
2183
3493
8272

onlyif mysql # use DIV operator for integer division
query I rowsort label-7049
SELECT - col0 + - cor0.col1 DIV + col2 AS col2 FROM tab1 AS cor0
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-7049
SELECT - col0 + - cor0.col1 / + col2 AS col2 FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT tab2.col2 * 72 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to a226719a200ccee7b2717c357073cc85

query I rowsort
SELECT + col0 * col1 + ( - col1 ) AS col1 FROM tab2
----
1326
186
4543

query I rowsort
SELECT + col1 + - cor0.col1 * 68 AS col1 FROM tab1 AS cor0
----
-1742
-670
-871

query I rowsort
SELECT 48 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b

query I rowsort
SELECT col2 - 8 FROM tab0 AS cor0
----
-7
25
74

query I rowsort
SELECT - col2 + 83 AS col1 FROM tab2 AS cor0
----
45
56
57

query I rowsort
SELECT 17 + - 67 FROM tab1 AS cor0
----
-50
-50
-50

query I rowsort
SELECT - col1 + col1 * col2 AS col1 FROM tab0 AS cor0
----
0
2752
7371

query I rowsort
SELECT + 8 AS col1 FROM tab1 AS cor0
----
8
8
8

query I rowsort
SELECT + tab1.col1 * - col1 + col0 AS col1 FROM tab1
----
-36
-673
-89

query I rowsort
SELECT ALL - ( col1 ) + col2 AS col1 FROM tab0 cor0
----
-53
-9
-96

query I rowsort
SELECT - 5 * - col2 * col2 + - 87 FROM tab1 AS cor0
----
14493
16158
45993

query I rowsort
SELECT DISTINCT - ( 99 ) - col2 * - col2 AS col1 FROM tab0 AS cor0
----
-98
6625
990

query I rowsort
SELECT ( col1 ) * tab0.col2 + ( col2 ) AS col2 FROM tab0
----
2871
7544
98

query I rowsort
SELECT - ( col1 ) + col2 + + col1 AS col1 FROM tab2
----
26
27
38

query I rowsort
SELECT + 43 + cor0.col2 AS col1 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to f4437fa42ba385cfafd294a0ddb095d6

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7066
SELECT DISTINCT ( 55 ) * cor0.col0 + - CAST( + 64 AS SIGNED ) FROM tab1 AS cor0
----
101
3456
4336

skipif mysql # not compatible
query I rowsort label-7066
SELECT DISTINCT ( 55 ) * cor0.col0 + - CAST ( + 64 AS INTEGER ) FROM tab1 AS cor0
----
101
3456
4336

query I rowsort
SELECT DISTINCT - cor0.col0 + + 52 FROM tab1 AS cor0
----
-12
-28
49

query I rowsort
SELECT + - 85 + - col1 AS col1 FROM tab2 AS cor0
----
-102
-116
-144

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + col2 * col2 col1 FROM tab0 AS cor0
----
-611884
-93654
-97

query I rowsort
SELECT DISTINCT - - col0 + + cor0.col1 AS col0 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT + 88 * col1 + + 17 FROM tab1 AS cor0
----
1161
2305
897

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7072
SELECT ALL + CAST( + col0 AS SIGNED ) + col0 * col0 FROM tab0
----
1260
600
8010

skipif mysql # not compatible
query I rowsort label-7072
SELECT ALL + CAST ( + col0 AS INTEGER ) + col0 * col0 FROM tab0
----
1260
600
8010

onlyif mysql # use DIV operator for integer division
query I rowsort label-7073
SELECT ALL + + cor0.col1 + col2 DIV - cor0.col2 AS col1 FROM tab0 AS cor0
----
85
90
96

skipif mysql # not compatible
query I rowsort label-7073
SELECT ALL + + cor0.col1 + col2 / - cor0.col2 AS col1 FROM tab0 AS cor0
----
85
90
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-7074
SELECT ALL col2 * col0 DIV + cor0.col1 AS col0 FROM tab0 cor0
----
0
80
9

skipif mysql # not compatible
query I rowsort label-7074
SELECT ALL col2 * col0 / + cor0.col1 AS col0 FROM tab0 cor0
----
0
80
9

query I rowsort
SELECT - 51 * cor0.col1 + ( col1 ) * cor0.col1 AS col2 FROM tab0 AS cor0
----
3010
3640
4462

query I rowsort
SELECT ALL cor0.col2 * col2 + col0 AS col2 FROM tab1 AS cor0
----
2919
3313
9296

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + col0 col0 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT DISTINCT col0 * - cor0.col0 - col2 AS col0 FROM tab0 AS cor0
----
-1226
-609
-8003

query I rowsort
SELECT + col0 - + col0 * - col2 AS col2 FROM tab2
----
196
2106
3081

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7080
SELECT ALL CAST( col0 AS SIGNED ) + col2 AS col2 FROM tab0
----
171
36
57

skipif mysql # not compatible
query I rowsort label-7080
SELECT ALL CAST ( col0 AS INTEGER ) + col2 AS col2 FROM tab0
----
171
36
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-7081
SELECT ALL - 37 + + col0 DIV + col0 AS col0 FROM tab1
----
-36
-36
-36

skipif mysql # not compatible
query I rowsort label-7081
SELECT ALL - 37 + + col0 / + col0 AS col0 FROM tab1
----
-36
-36
-36

query I rowsort
SELECT DISTINCT + ( tab0.col2 ) * + col1 + + 15 AS col1 FROM tab0
----
112
2853
7477

query I rowsort
SELECT - ( - col0 ) * col0 FROM tab0
----
1225
576
7921

query I rowsort
SELECT DISTINCT tab1.col2 * 81 * col2 + 99 AS col0 FROM tab1
----
236295
263268
746595

onlyif mysql # use DIV operator for integer division
query I rowsort label-7085
SELECT - - col1 DIV ( col0 ) col1 FROM tab2 AS cor0
----
0
0
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7085
SELECT - - col1 / ( col0 ) col1 FROM tab2 AS cor0
----
0
0
4

query I rowsort
SELECT DISTINCT - + col2 + col1 AS col2 FROM tab0 cor0
----
53
9
96

query I rowsort
SELECT ALL - col0 * + 19 AS col0 FROM tab2 AS cor0
----
-133
-1482
-1501

query I rowsort
SELECT col1 * + col2 AS col1 FROM tab1 cor0
----
1248
1404
570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + col0 col2 FROM tab2 AS cor0
----
-189
-2028
-3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 * + col0 + cor0.col0 col1 FROM tab1 AS cor0
----
-159
-3584
-7600

query I rowsort
SELECT - + col1 * 70 AS col0 FROM tab1 cor0
----
-1820
-700
-910

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7092
SELECT ALL + + col0 + - CAST( col2 AS SIGNED ) * col0 FROM tab1 AS cor0
----
-159
-3584
-7600

skipif mysql # not compatible
query I rowsort label-7092
SELECT ALL + + col0 + - CAST ( col2 AS INTEGER ) * col0 FROM tab1 AS cor0
----
-159
-3584
-7600

query I rowsort
SELECT - col2 * - 12 FROM tab2 AS cor0
----
312
324
456

query I rowsort
SELECT ALL col1 - + tab0.col0 FROM tab0
----
2
62
62

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2 cor0 CROSS JOIN tab2, tab1 AS cor1, tab1 AS cor2, tab0 AS cor3
----
3645 values hashing to f99537dcc805430f79ac82ef70a4bd59

query I rowsort
SELECT ALL + 97 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c

query I rowsort
SELECT tab2.col0 * 75 AS col0 FROM tab2
----
525
5850
5925

query I rowsort
SELECT DISTINCT col0 - 58 AS col2 FROM tab0
----
-23
-34
31

onlyif mysql # use DIV operator for integer division
query I rowsort label-7099
SELECT DISTINCT - col2 + - ( tab2.col2 ) DIV col1 - - 78 AS col1 FROM tab2
----
38
51
52

skipif mysql # not compatible
query I rowsort label-7099
SELECT DISTINCT - col2 + - ( tab2.col2 ) / col1 - - 78 AS col1 FROM tab2
----
38
51
52

query I rowsort
SELECT + col2 * + 88 + cor0.col1 AS col2 FROM tab2 AS cor0
----
2347
2407
3361

onlyif mysql # use DIV operator for integer division
query I rowsort label-7101
SELECT col1 + col2 * col1 DIV tab1.col1 + col1 * - col1 AS col1 FROM tab1
----
-33
-596
-60

skipif mysql # not compatible
query I rowsort label-7101
SELECT col1 + col2 * col1 / tab1.col1 + col1 * - col1 AS col1 FROM tab1
----
-33
-596
-60

query I rowsort
SELECT tab1.col0 * + col0 + + tab1.col2 * + col0 + col1 * - ( col2 ) AS col1 FROM tab1
----
-1233
12832
7174

query I rowsort
SELECT - col0 * col0 * - 2 AS col0 FROM tab2
----
12168
12482
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 7 col0 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to 82db7c0390abae7ccf4512b1302a6466

query I rowsort
SELECT DISTINCT - col0 * + col1 + - tab2.col2 FROM tab2
----
-1381
-244
-4628

query I rowsort
SELECT ALL - 2 * - col0 + - col0 + + col0 * - col1 * + tab1.col0 AS col2 FROM tab1
----
-231
-40896
-83120

query I rowsort
SELECT - col1 - col0 AS col2 FROM tab0
----
-110
-132
-180

query I rowsort
SELECT ALL - col1 * col2 + - col2 FROM tab2
----
-1560
-684
-864

query I rowsort
SELECT ALL - + col2 - col0 * + 2 * - col0 AS col2 FROM tab0 AS cor0
----
1119
15760
2449

query I rowsort
SELECT + - col1 * - col0 - col2 FROM tab1 AS cor0
----
24
583
944

query I rowsort
SELECT DISTINCT - col1 * + col2 + - col1 AS col1 FROM tab2 AS cor0
----
-1593
-663
-868

onlyif mysql # use DIV operator for integer division
query I rowsort label-7112
SELECT 23 DIV - col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7112
SELECT 23 / - col1 FROM tab0
----
0
0
0

query I rowsort
SELECT 13 * cor0.col1 * ( - cor0.col2 ) FROM tab0, tab1, tab0 cor0
----
27 values hashing to c27ed6b5eeb8b333fa4cc328b68a123b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 * + col1 col1 FROM tab1 cor0
----
100
169
676

query I rowsort
SELECT DISTINCT + cor0.col1 * + 49 AS col1 FROM tab2 AS cor0
----
1519
2891
833

query I rowsort
SELECT ALL - col2 + - col1 * col1 FROM tab1 AS cor0
----
-157
-265
-730

query I rowsort
SELECT - col2 + - 12 FROM tab2 AS cor0
----
-38
-39
-50

onlyif mysql # use DIV operator for integer division
query I rowsort label-7118
SELECT ALL - col1 DIV col1 + col2 + - col1 * ( - col1 ) DIV + col0 AS col0 FROM tab1 AS cor0
----
278
57
97

skipif mysql # not compatible
query I rowsort label-7118
SELECT ALL - col1 / col1 + col2 + - col1 * ( - col1 ) / + col0 AS col0 FROM tab1 AS cor0
----
278
57
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-7119
SELECT + col1 * 92 + - col2 DIV - col2 AS col2 FROM tab1 AS cor0
----
1197
2393
921

skipif mysql # not compatible
query I rowsort label-7119
SELECT + col1 * 92 + - col2 / - col2 AS col2 FROM tab1 AS cor0
----
1197
2393
921

query I rowsort
SELECT DISTINCT - + cor0.col2 * + col0 + 85 FROM tab2 AS cor0
----
-104
-1943
-2917

query I rowsort
SELECT - + col2 * - ( col2 ) + + col2 + 18 FROM tab1 cor0
----
2988
3324
9330

query I rowsort
SELECT + col1 * 69 AS col2 FROM tab2 AS cor0
----
1173
2139
4071

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7123
SELECT DISTINCT - col1 * CAST( NULL AS DECIMAL ) + + col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7123
SELECT DISTINCT - col1 * CAST ( NULL AS REAL ) + + col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + col1 * + 4 FROM tab1 AS cor0
----
104
40
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-7125
SELECT + col1 + cor0.col0 DIV - col0 AS col1 FROM tab0 AS cor0
----
85
90
96

skipif mysql # not compatible
query I rowsort label-7125
SELECT + col1 + cor0.col0 / - col0 AS col1 FROM tab0 AS cor0
----
85
90
96

query I rowsort
SELECT - col1 * 16 FROM tab2 AS cor0
----
-272
-496
-944

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7127
SELECT ALL + CAST( NULL AS DECIMAL ) + - col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7127
SELECT ALL + CAST ( NULL AS REAL ) + - col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 * + col2 - - col2 FROM tab0 AS cor0
----
36
7380
825

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7129
SELECT ALL + CAST( NULL AS SIGNED ) + 36 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-7129
SELECT ALL + CAST ( NULL AS INTEGER ) + 36 col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col2 * 31 AS col2 FROM tab1 AS cor0
----
-1674
-1767
-2976

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7131
SELECT CAST( col0 AS SIGNED ) FROM tab0 cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-7131
SELECT CAST ( col0 AS INTEGER ) FROM tab0 cor0
----
24
35
89

query I rowsort
SELECT ALL + col2 + col1 * col0 * + ( col2 ) AS col0 FROM tab2 cor0
----
119678
51072
5886

query I rowsort
SELECT + 0 * - 39 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - + col1 + 47 AS col0 FROM tab2 AS cor0
----
-12
16
30

query I rowsort
SELECT DISTINCT ( + 38 ) + col2 + + ( - ( + cor0.col0 ) ) AS col0 FROM tab2 AS cor0
----
-14
-3
58

query I rowsort
SELECT + ( col0 ) * cor0.col0 AS col1 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT DISTINCT + + col2 + 22 AS col2 FROM tab0 AS cor0
----
104
23
55

onlyif mysql # use DIV operator for integer division
query I rowsort label-7138
SELECT DISTINCT + col2 DIV col2 - col1 * - col1 col1 FROM tab0 AS cor0
----
7397
8282
9410

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7138
SELECT DISTINCT + col2 / col2 - col1 * - col1 col1 FROM tab0 AS cor0
----
7397
8282
9410

query I rowsort
SELECT ALL + + 86 FROM tab0 AS cor0
----
86
86
86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - col2 ) * col0 col1 FROM tab2 cor0
----
-189
-2028
-3002

query I rowsort
SELECT 61 + col0 FROM tab1 AS cor0
----
125
141
64

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7142
SELECT + col2 + + cor0.col1 / - CAST( NULL AS DECIMAL ) 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-7142
SELECT + col2 + + cor0.col1 / - CAST ( NULL AS REAL ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 38 + col0 * ( + col2 ) col0 FROM tab0 cor0
----
-3
7260
754

query I rowsort
SELECT ALL + col2 + col2 + - 60 AS col1 FROM tab1 AS cor0
----
132
48
54

query I rowsort
SELECT + 35 * col0 * + ( 6 ) FROM tab2 AS cor0
----
1470
16380
16590

query I rowsort
SELECT + 54 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to d2364c4ffc09ac2cf1f6fa4d767d8b09

query I rowsort
SELECT 70 + - col2 * 60 FROM tab0 AS cor0
----
-1910
-4850
10

onlyif mysql # use DIV operator for integer division
query I rowsort label-7148
SELECT col2 DIV - col0 AS col0 FROM tab0 cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-7148
SELECT col2 / - col0 AS col0 FROM tab0 cor0
----
-1
0
0

query I rowsort
SELECT DISTINCT 61 AS col0 FROM tab1, tab1 AS cor0
----
61

onlyif mysql # use DIV operator for integer division
query I rowsort label-7150
SELECT - + col0 DIV 71 + - col1 FROM tab2 AS cor0
----
-18
-31
-60

skipif mysql # not compatible
query I rowsort label-7150
SELECT - + col0 / 71 + - col1 FROM tab2 AS cor0
----
-18
-31
-60

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7151
SELECT + col0 * CAST( col0 AS SIGNED ) + col2 + CAST( NULL AS DECIMAL ) * - tab1.col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7151
SELECT + col0 * CAST ( col0 AS INTEGER ) + col2 + CAST ( NULL AS REAL ) * - tab1.col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-7152
SELECT ALL col2 * col2 DIV col0 AS col0 FROM tab2
----
104
18
8

skipif mysql # not compatible
query I rowsort label-7152
SELECT ALL col2 * col2 / col0 AS col0 FROM tab2
----
104
18
8

query I rowsort
SELECT ALL - 62 * col0 + + col1 FROM tab2 cor0
----
-403
-4777
-4881

query I rowsort
SELECT - + 45 FROM tab1 AS cor0
----
-45
-45
-45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 col2 FROM tab2, tab2 cor0, tab1 AS cor1
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2

query I rowsort
SELECT + cor0.col1 * - 99 * col1 + - col0 * col2 FROM tab0 AS cor0
----
-732996
-827117
-931526

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 6 col1 FROM tab0
----
6
6
6

query I rowsort
SELECT ALL - + 8 * col1 + col2 * col1 * + col2 + col2 AS col2 FROM tab1 AS cor0
----
119800
32467
75662

query I rowsort
SELECT + 43 * col1 + col0 * + col2 AS col2 FROM tab1 AS cor0
----
1280
4078
8239

query I rowsort
SELECT DISTINCT + col0 * 70 AS col0 FROM tab1 AS cor0
----
210
4480
5600

query I rowsort
SELECT ( col0 ) * col2 + col1 AS col1 FROM tab0 AS cor0
----
132
7389
878

onlyif mysql # use DIV operator for integer division
query I rowsort label-7162
SELECT + 15 * cor0.col1 DIV - col1 + - 95 FROM tab1 AS cor0
----
-110
-110
-110

skipif mysql # not compatible
query I rowsort label-7162
SELECT + 15 * cor0.col1 / - col1 + - 95 FROM tab1 AS cor0
----
-110
-110
-110

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab2.col2 * col0 col0 FROM tab2
----
189
2028
3002

query I rowsort
SELECT ALL 12 * tab1.col0 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 4d11d73bea933b26450aca686f453b51

query I rowsort
SELECT ALL ( - col1 ) + + col1 * col2 AS col1 FROM tab0 AS cor0
----
0
2752
7371

query I rowsort
SELECT ALL - col0 * - 66 FROM tab1 cor0
----
198
4224
5280

query I rowsort
SELECT + col1 * - col1 * col1 AS col0 FROM tab0 AS cor0
----
-636056
-753571
-912673

query I rowsort
SELECT - tab2.col2 * tab2.col2 * 37 - + 60 FROM tab2, tab0 AS cor0, tab1, tab2 AS cor1
----
81 values hashing to 6f31cd9e31f99c9e8f4a7ccc9c64a90f

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col1 * + col2 + - col0 col0 FROM tab2 AS cor0
----
-1612
-725
-844

query I rowsort
SELECT ALL + + col0 * + col2 + - col2 * + col1 AS col2 FROM tab0 AS cor0
----
-164
-2046
-62

query I rowsort
SELECT 8 + - cor1.col2 AS col2 FROM tab2, tab0 AS cor0 CROSS JOIN tab0, tab1, tab1 AS cor1, tab1 AS cor2
----
729 values hashing to 7c842c3d4676eceb19e911cd8e4fc06b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 91 col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 745d1c3a09d935465cad552325c5c945

query I rowsort
SELECT - ( col2 + - col0 ) * - col1 FROM tab2
----
-3068
-697
620

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7174
SELECT ALL + - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-7174
SELECT ALL + - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ( + col2 ) * - col0 - col0 AS col2 FROM tab0
----
-70
-7387
-816

query I rowsort
SELECT + 97 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7177
SELECT ALL col2 * CAST( NULL AS DECIMAL ) - col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7177
SELECT ALL col2 * CAST ( NULL AS REAL ) - col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + ( - 73 ) AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 84ab9db5468b4a1781bd8d5c8e0e77fc

query I rowsort
SELECT DISTINCT + col2 - - tab0.col2 * col0 * + col0 FROM tab0
----
1226
19041
649604

query I rowsort
SELECT ALL - tab0.col0 + - 30 - - 32 FROM tab0
----
-22
-33
-87

onlyif mysql # use DIV operator for integer division
query I rowsort label-7181
SELECT col2 DIV col2 + - ( col2 * col1 ) AS col0 FROM tab0
----
-2837
-7461
-96

skipif mysql # not compatible
query I rowsort label-7181
SELECT col2 / col2 + - ( col2 * col1 ) AS col0 FROM tab0
----
-2837
-7461
-96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7182
SELECT cor0.col2 * + CAST( NULL AS SIGNED ) + + col0 - col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7182
SELECT cor0.col2 * + CAST ( NULL AS INTEGER ) + + col0 - col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT cor0.col0 * col2 * + col1 + - col0 * 2 - + col0 AS col1 FROM tab2 cor0
----
119418
50797
5838

query I rowsort
SELECT - cor0.col2 * + cor0.col2 FROM tab1 AS cor0
----
-2916
-3249
-9216

query I rowsort
SELECT + - col0 * + col0 + + col1 AS col2 FROM tab2 AS cor0
----
-18
-6025
-6224

onlyif mysql # use DIV operator for integer division
query I rowsort label-7186
SELECT col1 DIV + CAST( - col1 AS SIGNED ) FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7186
SELECT col1 / + CAST ( - col1 AS INTEGER ) FROM tab2 AS cor0
----
-1
-1
-1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7187
SELECT col2 + + CAST( NULL AS SIGNED ) + col2 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7187
SELECT col2 + + CAST ( NULL AS INTEGER ) + col2 AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7188
SELECT DISTINCT - col0 + CAST( + col0 AS SIGNED ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7188
SELECT DISTINCT - col0 + CAST ( + col0 AS INTEGER ) FROM tab2 AS cor0
----
0

query I rowsort
SELECT - 45 * cor0.col0 FROM tab2 AS cor0
----
-315
-3510
-3555

query I rowsort
SELECT DISTINCT + 61 * col1 FROM tab0 AS cor0
----
5246
5551
5917

query I rowsort
SELECT col0 * + col0 - col1 FROM tab2 AS cor0
----
18
6025
6224

query I rowsort
SELECT ALL - 27 + + col0 + + col1 AS col1 FROM tab2
----
11
110
69

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7193
SELECT - CAST( NULL AS DECIMAL ) + + col2 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7193
SELECT - CAST ( NULL AS REAL ) + + col2 AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7194
SELECT DISTINCT + col0 + - col1 * col1 * CAST( col0 AS SIGNED ) FROM tab2 AS cor0
----
-22752
-271440
-6720

skipif mysql # not compatible
query I rowsort label-7194
SELECT DISTINCT + col0 + - col1 * col1 * CAST ( col0 AS INTEGER ) FROM tab2 AS cor0
----
-22752
-271440
-6720

query I rowsort
SELECT DISTINCT - 69 * - col1 + + col0 AS col1 FROM tab1 AS cor0
----
1797
754
977

query I rowsort
SELECT + 41 - + col2 FROM tab2
----
14
15
3

query I rowsort
SELECT ALL - - cor0.col2 * - cor0.col1 - + col2 * + col1 FROM tab2 AS cor0
----
-1292
-1674
-3068

query I rowsort
SELECT ALL - + col0 * cor0.col0 * col0 + + col1 * col2 * + 51 FROM tab0 AS cor0
----
-324407
-37928
130914

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * col0 col0 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT ALL + - cor0.col0 * col1 + + cor0.col1 * + col0 AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - 39 AS col0 FROM tab2 cor0
----
-39
-39
-39

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab2 cor0, tab1 AS cor1, tab2, tab1 AS cor2
----
3645 values hashing to db56d052e81a1ceebb4c3aea124670be

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 3 * col2 + col0 + + col0 col0 FROM tab1 AS cor0
----
-128
-156
-43

query I rowsort
SELECT DISTINCT col2 + - ( + col2 ) FROM tab2 cor0
----
0

query I rowsort
SELECT - + cor0.col1 + col0 FROM tab2 cor0
----
-24
19
62

query I rowsort
SELECT DISTINCT + - col1 * - 73 FROM tab2 AS cor0
----
1241
2263
4307

query I rowsort
SELECT ALL - col0 + + ( col2 ) + + col1 AS col2 FROM tab2 AS cor0
----
-24
51
7

query I rowsort
SELECT ALL col1 * ( col2 ) FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT ALL col0 + ( 97 * + col0 ) FROM tab2 cor0
----
686
7644
7742

query I rowsort
SELECT DISTINCT + - cor0.col0 * ( + col2 ) + - cor0.col0 + 52 FROM tab1 AS cor0
----
-113
-3660
-7708

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col2 + 51 col2 FROM tab2, tab0 AS cor0
----
9 values hashing to c2a92c206b4bd04d2d0cbfae5ef0195e

query I rowsort
SELECT col2 - - tab2.col2 AS col1 FROM tab2
----
52
54
76

query I rowsort
SELECT - ( + col0 * ( col0 ) ) + tab1.col1 AS col2 FROM tab1
----
-4086
-6387
17

query I rowsort
SELECT - cor0.col2 * + 6 AS col1 FROM tab1 AS cor0
----
-324
-342
-576

query I rowsort
SELECT - tab0.col1 + + col1 * - tab0.col2 * + col1 AS col0 FROM tab0
----
-244154
-679133
-9506

query I rowsort
SELECT ALL col0 FROM tab1 WHERE ( NULL ) IN ( tab1.col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( col2 ) col2 FROM tab2
----
-26
-27
-38

query I rowsort
SELECT - 71 AS col0 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to 3907e0aa4f29c002120742c4abb3e23a

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + tab0.col1 * + ( - ( + col0 ) ) col1 FROM tab0
----
-118825
-49536
-720811

query I rowsort
SELECT DISTINCT - ( cor0.col1 ) FROM tab1 cor0
----
-10
-13
-26

query I rowsort
SELECT - + 33 + - col0 - - 66 FROM tab0 AS cor0
----
-2
-56
9

query I rowsort
SELECT DISTINCT + col1 - - cor0.col0 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT - 8 * - col0 FROM tab1
----
24
512
640

query I rowsort
SELECT - col2 FROM tab0 WHERE col2 * - col1 = NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-7225
SELECT DISTINCT col2 + + col2 * col2 DIV col1 FROM tab0
----
1
155
45

skipif mysql # not compatible
query I rowsort label-7225
SELECT DISTINCT col2 + + col2 * col2 / col1 FROM tab0
----
1
155
45

query I rowsort
SELECT + col0 + col1 + - col1 AS col0 FROM tab1
----
3
64
80

query I rowsort
SELECT - tab0.col2 * + col1 AS col1 FROM tab0
----
-2838
-7462
-97

query I rowsort
SELECT ALL col0 AS col2 FROM tab2 WHERE NULL NOT BETWEEN col0 * - col1 + col1 * - col0 AND ( NULL )
----

query I rowsort
SELECT ALL col1 * tab1.col0 + + tab1.col1 FROM tab1
----
104
1053
650

query I rowsort
SELECT col2 * col2 + - col0 * + col2 AS col0 FROM tab0
----
-34
-574
297

query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 NOT BETWEEN ( NULL ) AND - col1
----

query I rowsort
SELECT ALL tab1.col0 - col0 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col1 col0 FROM tab0, tab2, tab2 AS cor0
----
-17
-31
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 88 col1 FROM tab0
----
88
88
88

query I rowsort
SELECT DISTINCT + cor0.col2 FROM tab1, tab0 cor0, tab2 cor1
----
1
33
82

query I rowsort
SELECT - cor1.col2 AS col1 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 44fdcd7cd603352d4d127811d164cc1e

onlyif mysql # use DIV operator for integer division
query I rowsort label-7237
SELECT cor0.col2 * col2 DIV - 93 AS col1 FROM tab1 AS cor0
----
-31
-34
-99

skipif mysql # not compatible
query I rowsort label-7237
SELECT cor0.col2 * col2 / - 93 AS col1 FROM tab1 AS cor0
----
-31
-34
-99

onlyif mysql # use DIV operator for integer division
query I rowsort label-7238
SELECT - + 1 DIV - col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7238
SELECT - + 1 / - col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-7239
SELECT + + ( - col2 ) + 38 DIV col0 AS col0 FROM tab1 AS cor0
----
-42
-57
-96

skipif mysql # not compatible
query I rowsort label-7239
SELECT + + ( - col2 ) + 38 / col0 AS col0 FROM tab1 AS cor0
----
-42
-57
-96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7240
SELECT + ( col1 ) * + CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7240
SELECT + ( col1 ) * + CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 81 col1 FROM tab0 AS cor0
----
-81
-81
-81

query I rowsort
SELECT DISTINCT - + col0 * - col2 AS col1 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT ( col1 * - tab2.col1 ) FROM tab2
----
-289
-3481
-961

query I rowsort
SELECT ALL - cor0.col1 + - col1 * col1 FROM tab2 AS cor0
----
-306
-3540
-992

query I rowsort
SELECT + col0 * col1 + col0 * - col1 AS col0 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT ALL - + 86 AS col1 FROM tab0, tab2 AS cor0, tab1, tab2 AS cor1
----
81 values hashing to 1ef7453f3d4bc7d93f06fc98b5d59841

query I rowsort
SELECT - - 25 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 525a55d5ed224a62da65df36731881a7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + 58 col0 FROM tab1 AS cor0
----
-38
1
4

query I rowsort
SELECT - col2 + + col0 * col2 - - col1 * - col1 FROM tab2 cor0
----
-1479
-799
2675

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - col0 * + 80 col2 FROM tab1 AS cor0
----
-12960
-291840
-614400

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7251
SELECT col2 * CAST( NULL AS SIGNED ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7251
SELECT col2 * CAST ( NULL AS INTEGER ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 + - 23 FROM tab0 AS cor0
----
-109
-114
-120

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7253
SELECT CAST( cor0.col2 AS SIGNED ) + + col2 AS col0 FROM tab1 AS cor0
----
108
114
192

skipif mysql # not compatible
query I rowsort label-7253
SELECT CAST ( cor0.col2 AS INTEGER ) + + col2 AS col0 FROM tab1 AS cor0
----
108
114
192

onlyif mysql # use DIV operator for integer division
query I rowsort label-7254
SELECT + cor0.col1 - 92 DIV - 10 FROM tab1, tab2 AS cor0
----
9 values hashing to a3f05c067495eccbe59a4e225a02b58b

skipif mysql # not compatible
query I rowsort label-7254
SELECT + cor0.col1 - 92 / - 10 FROM tab1, tab2 AS cor0
----
9 values hashing to a3f05c067495eccbe59a4e225a02b58b

query I rowsort
SELECT + 2 + 6 FROM tab2 AS cor0
----
8
8
8

query I rowsort
SELECT - col1 - col0 * col0 AS col1 FROM tab1 AS cor0
----
-35
-4106
-6413

query I rowsort
SELECT ALL col2 * col1 - + 24 FROM tab2
----
1510
622
813

query I rowsort
SELECT + 71 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0

query I rowsort
SELECT DISTINCT - 34 + - col2 FROM tab0 AS cor0
----
-116
-35
-67

query I rowsort
SELECT + 17 * col2 * ( - ( col1 ) * 24 ) FROM tab2 AS cor0
----
-263568
-341496
-625872

query I rowsort
SELECT + - 44 AS col0 FROM tab2 AS cor0
----
-44
-44
-44

onlyif mysql # use DIV operator for integer division
query I rowsort label-7262
SELECT ALL + col2 * col0 DIV - col0 AS col1 FROM tab2 AS cor0
----
-26
-27
-38

skipif mysql # not compatible
query I rowsort label-7262
SELECT ALL + col2 * col0 / - col0 AS col1 FROM tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT DISTINCT 43 + col1 * col0 * + col1 FROM tab1 AS cor0
----
13563
2071
6443

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 91 - + col0 col1 FROM tab1 AS cor0
----
11
27
88

onlyif mysql # use DIV operator for integer division
query I rowsort label-7265
SELECT DISTINCT + col1 DIV + cor0.col0 FROM tab1 AS cor0
----
0
8

skipif mysql # not compatible
query I rowsort label-7265
SELECT DISTINCT + col1 / + cor0.col0 FROM tab1 AS cor0
----
0
8

query I rowsort
SELECT - col0 + + col2 * ( - col0 ) * + col2 AS col2 FROM tab2 AS cor0
----
-114155
-5110
-52806

onlyif mysql # use DIV operator for integer division
query I rowsort label-7267
SELECT DISTINCT + col2 DIV col1 + + col2 col2 FROM tab1 AS cor0
----
103
56
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7267
SELECT DISTINCT + col2 / col1 + + col2 col2 FROM tab1 AS cor0
----
103
56
62

query I rowsort
SELECT - + col2 + + 21 * - 2 FROM tab1 AS cor0
----
-138
-96
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * - 9 + col1 col0 FROM tab1 AS cor0
----
100
130
260

query I rowsort
SELECT 69 * - col2 + - col1 - 90 FROM tab1
----
-3842
-4033
-6727

query I rowsort
SELECT - + 19 + - 56 * col0 AS col2 FROM tab0 AS cor0
----
-1363
-1979
-5003

query I rowsort
SELECT DISTINCT cor0.col2 * - cor0.col2 AS col1 FROM tab0, tab2 AS cor0
----
-1444
-676
-729

query I rowsort
SELECT DISTINCT tab1.col2 FROM tab1, tab0 AS cor0, tab0 cor1
----
54
57
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7274
SELECT - + CAST( NULL AS SIGNED ) * col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7274
SELECT - + CAST ( NULL AS INTEGER ) * col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7275
SELECT DISTINCT - CAST( cor0.col1 AS SIGNED ) * - col2 FROM tab0 AS cor0
----
2838
7462
97

skipif mysql # not compatible
query I rowsort label-7275
SELECT DISTINCT - CAST ( cor0.col1 AS INTEGER ) * - col2 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT ( 88 ) FROM tab0
----
88
88
88

query I rowsort
SELECT DISTINCT + 26 + tab1.col2 * + 73 FROM tab2, tab0, tab0 AS cor0, tab1
----
3968
4187
7034

query I rowsort
SELECT col2 - col0 * col1 AS col0 FROM tab0
----
-2031
-3394
-8017

query I rowsort
SELECT + + 33 FROM tab0 cor0
----
33
33
33

query I rowsort
SELECT ALL + - 11 * cor0.col1 FROM tab0 AS cor0
----
-1001
-1067
-946

onlyif mysql # use DIV operator for integer division
query I rowsort label-7281
SELECT - 48 * - tab2.col0 - + col2 * ( col0 + col0 ) DIV ( tab2.col1 + col0 ) AS col0 FROM tab2
----
327
3715
3730

skipif mysql # not compatible
query I rowsort label-7281
SELECT - 48 * - tab2.col0 - + col2 * ( col0 + col0 ) / ( tab2.col1 + col0 ) AS col0 FROM tab2
----
327
3715
3730

query I rowsort
SELECT + 98 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 30 * col0 col0 FROM tab2
----
210
2340
2370

query I rowsort
SELECT ALL + 1 * col1 * - col2 AS col2 FROM tab0
----
-2838
-7462
-97

query I rowsort
SELECT ALL + cor0.col0 + col0 - 10 FROM tab0 AS cor0
----
168
38
60

query I rowsort
SELECT DISTINCT - 3 + col2 AS col2 FROM tab0 AS cor0
----
-2
30
79

query I rowsort
SELECT ALL + col2 + + col0 * tab2.col1 FROM tab2
----
1381
244
4628

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + 1 col1 FROM tab0
----
25
36
90

query I rowsort
SELECT + - tab1.col1 AS col1 FROM tab1, tab0, tab0 cor0
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6

query I rowsort
SELECT ALL + col2 + - col1 + - col1 AS col2 FROM tab2
----
-35
-92
4

query I rowsort
SELECT - col1 + col1 * - col1 AS col2 FROM tab2
----
-306
-3540
-992

query I rowsort
SELECT DISTINCT + col0 + 87 AS col0 FROM tab0
----
111
122
176

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7293
SELECT ALL col2 + + ( 47 ) + - col0 * + CAST( NULL AS DECIMAL ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7293
SELECT ALL col2 + + ( 47 ) + - col0 * + CAST ( NULL AS REAL ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col1 + tab0.col0 * - col1 AS col1 FROM tab0
----
-1978
-3298
-8008

query I rowsort
SELECT col1 * - 38 * 8 + col1 - 17 * 67 FROM tab0
----
-27197
-28712
-30530

query I rowsort
SELECT DISTINCT col2 + 4 FROM tab2
----
30
31
42

query I rowsort
SELECT + col1 + - 45 * col0 AS col0 FROM tab0
----
-1478
-3914
-994

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7298
SELECT + CAST( NULL AS SIGNED ) / + cor0.col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7298
SELECT + CAST ( NULL AS INTEGER ) / + cor0.col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-7299
SELECT - col0 DIV - cor0.col0 AS col1 FROM tab1 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7299
SELECT - col0 / - cor0.col0 AS col1 FROM tab1 cor0
----
1
1
1

query I rowsort
SELECT DISTINCT - cor0.col2 * - 51 AS col1 FROM tab1 AS cor0
----
2754
2907
4896

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + - col0 * + col1 col0 FROM tab2 AS cor0
----
-1326
-186
-4543

onlyif mysql # use DIV operator for integer division
query I rowsort label-7302
SELECT DISTINCT + + CAST( 26 AS SIGNED ) * col0 DIV 17 FROM tab2 cor0
----
10
119
120

skipif mysql # not compatible
query I rowsort label-7302
SELECT DISTINCT + + CAST ( 26 AS INTEGER ) * col0 / 17 FROM tab2 cor0
----
10
119
120

query I rowsort
SELECT ALL - cor0.col2 * - 7 + + col2 AS col1 FROM tab0 AS cor0
----
264
656
8

query I rowsort
SELECT DISTINCT + + 40 AS col2 FROM tab1 AS cor0
----
40

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7305
SELECT CAST( col1 AS SIGNED ) col0 FROM tab2
----
17
31
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7305
SELECT CAST ( col1 AS INTEGER ) col0 FROM tab2
----
17
31
59

query I rowsort
SELECT + col2 * cor0.col0 AS col2 FROM tab0 cor0
----
35
7298
792

query I rowsort
SELECT DISTINCT + 56 * - 16 FROM tab2 AS cor0
----
-896

query I rowsort
SELECT ALL cor0.col2 * + 91 FROM tab2 AS cor0
----
2366
2457
3458

query I rowsort
SELECT DISTINCT - 75 + 16 * col1 AS col2 FROM tab2 AS cor0
----
197
421
869

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + 74 col1 FROM tab2 cor0
----
105
133
91

query I rowsort
SELECT DISTINCT + - ( col0 ) + - col1 FROM tab0 AS cor0
----
-110
-132
-180

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7312
SELECT DISTINCT - CAST( col1 AS SIGNED ) * - cor0.col0 FROM tab2 cor0
----
1343
217
4602

skipif mysql # not compatible
query I rowsort label-7312
SELECT DISTINCT - CAST ( col1 AS INTEGER ) * - cor0.col0 FROM tab2 cor0
----
1343
217
4602

query I rowsort
SELECT ALL - col2 * 63 AS col2 FROM tab2 AS cor0
----
-1638
-1701
-2394

query I rowsort
SELECT - - col1 + - 48 AS col0 FROM tab2 AS cor0
----
-17
-31
11

onlyif mysql # use DIV operator for integer division
query I rowsort label-7315
SELECT DISTINCT 75 DIV + col2 + - col0 AS col1 FROM tab0 AS cor0
----
-22
-89
40

skipif mysql # not compatible
query I rowsort label-7315
SELECT DISTINCT 75 / + col2 + - col0 AS col1 FROM tab0 AS cor0
----
-22
-89
40

query I rowsort
SELECT DISTINCT + col1 * - col0 * col2 + ( + col0 ) * col0 * + col1 FROM tab2 AS cor0
----
-4340
239304
55063

query I rowsort
SELECT ALL - - col0 * ( col0 ) + - col1 AS col0 FROM tab0 AS cor0
----
1128
490
7830

query I rowsort
SELECT ALL - - col0 + ( + 60 ) FROM tab1 cor0
----
124
140
63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 - 99 col1 FROM tab0 AS cor0
----
-100
-132
-181

query I rowsort
SELECT DISTINCT 98 AS col0 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
98

query I rowsort
SELECT ALL + + col2 * + col2 + - cor0.col2 * - col2 AS col1 FROM tab0 AS cor0
----
13448
2
2178

query I rowsort
SELECT DISTINCT col2 + + 82 * + col1 FROM tab1 AS cor0
----
1162
2186
877

onlyif mysql # use DIV operator for integer division
query I rowsort label-7323
SELECT ALL - cor0.col0 + ( + col0 ) DIV - col2 FROM tab1 AS cor0
----
-3
-65
-80

skipif mysql # not compatible
query I rowsort label-7323
SELECT ALL - cor0.col0 + ( + col0 ) / - col2 FROM tab1 AS cor0
----
-3
-65
-80

query I rowsort
SELECT ALL + cor0.col0 AS col0 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

query I rowsort
SELECT - col2 + - col1 + col1 AS col0 FROM tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT 11 + col1 AS col0 FROM tab1 AS cor0
----
21
24
37

query I rowsort
SELECT + - 28 + col2 AS col0 FROM tab0 AS cor0
----
-27
5
54

query I rowsort
SELECT ALL - ( col1 ) * + col0 + col1 * col2 AS col2 FROM tab0
----
-3298
-637
774

onlyif mysql # use DIV operator for integer division
query I rowsort label-7329
SELECT ALL + + col1 DIV + col1 - - 10 FROM tab0 AS cor0
----
11
11
11

skipif mysql # not compatible
query I rowsort label-7329
SELECT ALL + + col1 / + col1 - - 10 FROM tab0 AS cor0
----
11
11
11

query I rowsort
SELECT - - cor0.col2 * - col2 + + col1 AS col1 FROM tab2 AS cor0
----
-1427
-617
-698

onlyif mysql # use DIV operator for integer division
query I rowsort label-7331
SELECT DISTINCT + cor0.col1 DIV + col2 AS col1 FROM tab0 AS cor0
----
1
2
97

skipif mysql # not compatible
query I rowsort label-7331
SELECT DISTINCT + cor0.col1 / + col2 AS col1 FROM tab0 AS cor0
----
1
2
97

query I rowsort
SELECT - 16 + col0 FROM tab1 AS cor0
----
-13
48
64

query I rowsort
SELECT DISTINCT ( - col1 ) * - col1 + - tab0.col0 AS col2 FROM tab0
----
7372
8192
9374

query I rowsort
SELECT ALL 67 + 31 + col1 * + ( + col0 ) AS col2 FROM tab1
----
1138
176
738

query I rowsort
SELECT 66 * - 82 AS col2 FROM tab0
----
-5412
-5412
-5412

query I rowsort
SELECT + - 54 * col2 FROM tab2 cor0
----
-1404
-1458
-2052

skipif mysql # not compatible
query I rowsort
SELECT + + 76 + - col0 * CAST ( col0 AS REAL ) FROM tab0 AS cor0
----
-1149
-500
-7845

query I rowsort
SELECT DISTINCT - 7 * + col0 AS col2 FROM tab1 AS cor0
----
-21
-448
-560

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 * col0 - - ( cor0.col1 ) col0 FROM tab1 AS cor0
----
35
4106
6413

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7340
SELECT DISTINCT - 50 * col1 + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7340
SELECT DISTINCT - 50 * col1 + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - tab0.col2 + 80 FROM tab0, tab0 AS cor0
----
9 values hashing to 0e59a6b9033441e29a139d929410b258

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7342
SELECT DISTINCT - ( - col0 ) * CAST( - col2 AS SIGNED ) FROM tab1
----
-162
-3648
-7680

skipif mysql # not compatible
query I rowsort label-7342
SELECT DISTINCT - ( - col0 ) * CAST ( - col2 AS INTEGER ) FROM tab1
----
-162
-3648
-7680

query I rowsort
SELECT + + cor0.col2 + + ( 8 ) * - col2 + col2 FROM tab0 AS cor0
----
-198
-492
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 * - col1 col1 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT DISTINCT 28 * + cor0.col0 FROM tab1, tab0 AS cor0
----
2492
672
980

query I rowsort
SELECT ALL + 94 AS col2 FROM tab1, tab0 AS cor0, tab2 cor1
----
27 values hashing to a4d239626cf0546ac1b2f57bb8407089

query I rowsort
SELECT + + col0 + + col0 * col0 FROM tab0 AS cor0
----
1260
600
8010

query I rowsort
SELECT col2 * 29 + col2 + col2 FROM tab2 cor0
----
1178
806
837

query I rowsort
SELECT + col2 * col0 + cor0.col2 + + col1 FROM tab0 AS cor0
----
133
7471
911

query I rowsort
SELECT - col1 * + col0 + - col0 * + col1 + ( - col1 ) * - col1 AS col1 FROM tab2 cor0
----
-2397
-5723
527

query I rowsort
SELECT - - 54 AS col0 FROM tab2 AS cor0
----
54
54
54

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7352
SELECT + - CAST( + 72 AS SIGNED ) - col1 AS col1 FROM tab1 AS cor0
----
-82
-85
-98

skipif mysql # not compatible
query I rowsort label-7352
SELECT + - CAST ( + 72 AS INTEGER ) - col1 AS col1 FROM tab1 AS cor0
----
-82
-85
-98

query I rowsort
SELECT DISTINCT - - cor0.col0 + - 63 * - col2 AS col1 FROM tab0 AS cor0
----
2103
5255
98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7354
SELECT ALL CAST( NULL AS DECIMAL ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7354
SELECT ALL CAST ( NULL AS REAL ) FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - col2 + - cor0.col1 FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT DISTINCT 69 * col2 * col1 + - 20 FROM tab0 AS cor0
----
195802
514858
6673

query I rowsort
SELECT - + 96 * col0 FROM tab0 AS cor0
----
-2304
-3360
-8544

query I rowsort
SELECT + col0 * 85 + - col0 FROM tab0
----
2016
2940
7476

query I rowsort
SELECT col2 * - col2 * ( tab1.col1 ) + + 15 * - tab1.col1 FROM tab1
----
-120003
-32640
-76206

query I rowsort
SELECT DISTINCT col2 * + 45 AS col0 FROM tab1
----
2430
2565
4320

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7361
SELECT DISTINCT col1 * - CAST( NULL AS DECIMAL ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7361
SELECT DISTINCT col1 * - CAST ( NULL AS REAL ) AS col2 FROM tab1
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7362
SELECT CAST( - col0 AS SIGNED ) col0 FROM tab0
----
-24
-35
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7362
SELECT CAST ( - col0 AS INTEGER ) col0 FROM tab0
----
-24
-35
-89

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7363
SELECT DISTINCT CAST( 63 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-7363
SELECT DISTINCT CAST ( 63 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
63

query I rowsort
SELECT ALL - ( - col0 ) * + col2 * - col0 AS col1 FROM tab0 AS cor0
----
-1225
-19008
-649522

onlyif mysql # use DIV operator for integer division
query I rowsort label-7365
SELECT + CAST( col2 AS SIGNED ) * tab0.col0 DIV col2 AS col2 FROM tab0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-7365
SELECT + CAST ( col2 AS INTEGER ) * tab0.col0 / col2 AS col2 FROM tab0
----
24
35
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-7366
SELECT - - col2 DIV cor0.col1 AS col2 FROM tab2 AS cor0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-7366
SELECT - - col2 / cor0.col1 AS col2 FROM tab2 AS cor0
----
0
0
2

query I rowsort
SELECT ALL - 8 AS col2 FROM tab2 AS cor0
----
-8
-8
-8

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7368
SELECT DISTINCT + + CAST( NULL AS SIGNED ) * - col0 AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7368
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) * - col0 AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT col1 * - 52 + - col2 AS col1 FROM tab0 AS cor0
----
-4505
-4814
-5045

query I rowsort
SELECT ALL + ( - 67 ) * + col0 FROM tab1 cor0
----
-201
-4288
-5360

query I rowsort
SELECT + col0 + ( col2 ) AS col1 FROM tab0 AS cor0
----
171
36
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-7372
SELECT ALL - + ( - 69 ) DIV col2 FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-7372
SELECT ALL - + ( - 69 ) / col2 FROM tab1 AS cor0
----
0
1
1

query I rowsort
SELECT ALL - + 33 AS col0 FROM tab0 cor0
----
-33
-33
-33

query I rowsort
SELECT + 98 * col0 FROM tab1 AS cor0
----
294
6272
7840

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 60 + col0 col0 FROM tab0 AS cor0
----
-25
-36
29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab0.col2 col2 FROM tab0, tab1 AS cor0
----
9 values hashing to b5a4102107e5ebd26e341538f4fede1e

query I rowsort
SELECT - - cor0.col0 * - col1 AS col1 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT tab2.col2 AS col1 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

onlyif mysql # use DIV operator for integer division
query I rowsort label-7379
SELECT - cor0.col2 * col1 + col1 DIV 34 FROM tab1 AS cor0
----
-1248
-1404
-570

skipif mysql # not compatible
query I rowsort label-7379
SELECT - cor0.col2 * col1 + col1 / 34 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT ( cor0.col1 ) + col1 FROM tab2 AS cor0
----
118
34
62

query I rowsort
SELECT DISTINCT 40 + - col0 AS col0 FROM tab2 AS cor0
----
-38
-39
33

query I rowsort
SELECT DISTINCT + - col0 + cor0.col2 - + 73 FROM tab2 AS cor0
----
-114
-125
-53

query I rowsort
SELECT 50 * cor0.col0 FROM tab0 AS cor0
----
1200
1750
4450

query I rowsort
SELECT + ( col0 ) + ( - ( col0 ) * + col1 ) FROM tab2 AS cor0
----
-1264
-210
-4524

query I rowsort
SELECT ALL + + col2 + ( + col1 * - col2 ) AS col1 FROM tab1 AS cor0
----
-1152
-1350
-513

query I rowsort
SELECT - 34 AS col1 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 5b88331e40da4796cc4826c442aa45f7

onlyif mysql # use DIV operator for integer division
query I rowsort label-7387
SELECT DISTINCT - - cor0.col1 * col2 DIV col0 AS col2 FROM tab0 cor0
----
118
2
83

skipif mysql # not compatible
query I rowsort label-7387
SELECT DISTINCT - - cor0.col1 * col2 / col0 AS col2 FROM tab0 cor0
----
118
2
83

query I rowsort
SELECT DISTINCT - 13 * cor1.col1 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-1118
-1183
-1261

query I rowsort
SELECT DISTINCT - - col1 + + ( - 40 ) AS col1 FROM tab1 cor0
----
-14
-27
-30

query I rowsort
SELECT DISTINCT + - col1 + 36 * - 3 AS col0 FROM tab1 AS cor0
----
-118
-121
-134

query I rowsort
SELECT + + col1 + - 70 FROM tab2 cor0
----
-11
-39
-53

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7392
SELECT - + col1 * CAST( - col1 AS SIGNED ) FROM tab0 AS cor0
----
7396
8281
9409

skipif mysql # not compatible
query I rowsort label-7392
SELECT - + col1 * CAST ( - col1 AS INTEGER ) FROM tab0 AS cor0
----
7396
8281
9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-7393
SELECT ALL - + col0 * + col0 + - col1 DIV - cor0.col2 AS col2 FROM tab1 AS cor0
----
-4096
-6400
-9

skipif mysql # not compatible
query I rowsort label-7393
SELECT ALL - + col0 * + col0 + - col1 / - cor0.col2 AS col2 FROM tab1 AS cor0
----
-4096
-6400
-9

query I rowsort
SELECT ALL + - col0 * 73 AS col2 FROM tab0 AS cor0
----
-1752
-2555
-6497

query I rowsort
SELECT + + col2 * - 8 + 67 FROM tab2 AS cor0
----
-141
-149
-237

onlyif mysql # use DIV operator for integer division
query I rowsort label-7396
SELECT DISTINCT - col1 + + col2 + 32 DIV - cor0.col0 AS col2 FROM tab1 cor0
----
18
47
83

skipif mysql # not compatible
query I rowsort label-7396
SELECT DISTINCT - col1 + + col2 + 32 / - cor0.col0 AS col2 FROM tab1 cor0
----
18
47
83

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7397
SELECT - col0 + - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7397
SELECT - col0 + - CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col1 * - 47 FROM tab2 AS cor0
----
-1457
-2773
-799

query I rowsort
SELECT DISTINCT - col2 * - ( 8 ) + - col2 AS col1 FROM tab2 AS cor0
----
182
189
266

onlyif mysql # use DIV operator for integer division
query I rowsort label-7400
SELECT + col1 * 17 + + col0 DIV col0 FROM tab2 AS cor0
----
1004
290
528

skipif mysql # not compatible
query I rowsort label-7400
SELECT + col1 * 17 + + col0 / col0 FROM tab2 AS cor0
----
1004
290
528

query I rowsort
SELECT ALL - col2 + - col2 * 57 AS col1 FROM tab2
----
-1508
-1566
-2204

query I rowsort
SELECT + col2 + + 14 AS col0 FROM tab1 AS cor0
----
110
68
71

query I rowsort
SELECT ALL - col0 * + ( col0 ) - - col1 * + ( - col0 ) AS col1 FROM tab0 AS cor0
----
-16020
-2640
-4620

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7404
SELECT ALL + col2 * cor0.col2 + - 20 * col2 + + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7404
SELECT ALL + col2 * cor0.col2 + - 20 * col2 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - - col1 * col0 - col0 * - cor0.col0 AS col0 FROM tab0 AS cor0
----
16020
2640
4620

query I rowsort
SELECT DISTINCT - 63 + - col2 FROM tab2 AS cor0
----
-101
-89
-90

query I rowsort
SELECT DISTINCT + 72 + - col1 * col2 AS col1 FROM tab1 AS cor0
----
-1176
-1332
-498

query I rowsort
SELECT col2 * col1 * - 32 + col1 FROM tab0 AS cor0
----
-238693
-3007
-90730

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 32 col2 FROM tab2 AS cor0
----
32

onlyif mysql # use DIV operator for integer division
query I rowsort label-7410
SELECT DISTINCT 92 DIV + col0 FROM tab1 AS cor0
----
1
30

skipif mysql # not compatible
query I rowsort label-7410
SELECT DISTINCT 92 / + col0 FROM tab1 AS cor0
----
1
30

query I rowsort
SELECT ALL 63 + + col2 FROM tab1 cor0
----
117
120
159

query I rowsort
SELECT ALL + col0 * 96 + col0 - 58 AS col0 FROM tab1
----
233
6150
7702

query I rowsort
SELECT col0 * + 80 + + col1 - col1 AS col1 FROM tab0
----
1920
2800
7120

query I rowsort
SELECT ALL - 15 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 1172c9a62bdad7db0def9205c06ee1f2

query I rowsort
SELECT + 45 + col0 * - col1 FROM tab2
----
-1298
-172
-4557

query I rowsort
SELECT ALL + col1 + col2 * col2 FROM tab1
----
2942
3259
9229

query I rowsort
SELECT + + col2 * - cor0.col2 - col1 * 48 FROM tab2 AS cor0
----
-2217
-2260
-3508

query I rowsort
SELECT - 32 * col2 FROM tab1 AS cor0
----
-1728
-1824
-3072

query I rowsort
SELECT ALL + col0 * + col1 * + ( + 62 ) AS col0 FROM tab1 AS cor0
----
39680
4836
64480

query I rowsort
SELECT 59 * col1 + - col1 + col0 * - col2 AS col1 FROM tab1
----
-3068
-6926
1346

query I rowsort
SELECT + col2 + + tab1.col2 * col1 FROM tab1
----
1344
1458
627

query I rowsort
SELECT DISTINCT + col0 * 89 + - col2 FROM tab1 AS cor0
----
213
5639
7024

query I rowsort
SELECT ALL + - 10 + 27 + + col1 AS col0 FROM tab2 AS cor0
----
34
48
76

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7424
SELECT CAST( + col0 AS SIGNED ) * col2 * col0 + + col2 FROM tab1 AS cor0
----
233529
540
614496

skipif mysql # not compatible
query I rowsort label-7424
SELECT CAST ( + col0 AS INTEGER ) * col2 * col0 + + col2 FROM tab1 AS cor0
----
233529
540
614496

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7425
SELECT - + CAST( + col0 AS SIGNED ) * col2 + + 2 * + col1 FROM tab0 AS cor0
----
-620
-7116
159

skipif mysql # not compatible
query I rowsort label-7425
SELECT - + CAST ( + col0 AS INTEGER ) * col2 + + 2 * + col1 FROM tab0 AS cor0
----
-620
-7116
159

query I rowsort
SELECT ALL - + 61 FROM tab0 cor0
----
-61
-61
-61

query I rowsort
SELECT DISTINCT + - 95 + + col0 FROM tab0 AS cor0
----
-6
-60
-71

query I rowsort
SELECT - ( col1 ) + - col2 AS col1 FROM tab2 AS cor0
----
-55
-58
-85

query I rowsort
SELECT DISTINCT - tab2.col0 * + col0 AS col2 FROM tab2
----
-49
-6084
-6241

query I rowsort
SELECT DISTINCT 39 FROM tab1, tab1 AS cor0, tab1 cor1
----
39

query I rowsort
SELECT + col1 + col1 + 65 AS col2 FROM tab0 AS cor0
----
237
247
259

onlyif mysql # use DIV operator for integer division
query I rowsort label-7432
SELECT DISTINCT 41 DIV cor0.col1 FROM tab1, tab1 AS cor0, tab2, tab0 AS cor1
----
1
3
4

skipif mysql # not compatible
query I rowsort label-7432
SELECT DISTINCT 41 / cor0.col1 FROM tab1, tab1 AS cor0, tab2, tab0 AS cor1
----
1
3
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 + + col1 col0 FROM tab1 cor0
----
29
74
93

query I rowsort
SELECT - 47 + cor0.col1 + 57 FROM tab0 AS cor0
----
101
107
96

query I rowsort
SELECT - col1 * - col1 AS col2 FROM tab1 cor0
----
100
169
676

onlyif mysql # use DIV operator for integer division
query I rowsort label-7436
SELECT ALL + + cor0.col2 + cor0.col0 DIV col2 AS col2 FROM tab0 AS cor0
----
33
36
83

skipif mysql # not compatible
query I rowsort label-7436
SELECT ALL + + cor0.col2 + cor0.col0 / col2 AS col2 FROM tab0 AS cor0
----
33
36
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 col1 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

query I rowsort
SELECT + col1 * - 32 AS col1 FROM tab2 cor0
----
-1888
-544
-992

query I rowsort
SELECT ALL - cor0.col0 + col0 AS col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT cor0.col1 * - col1 AS col1 FROM tab0 cor0
----
-7396
-8281
-9409

query I rowsort
SELECT col2 * 49 + + 46 + - col1 FROM tab1
----
2666
2829
4737

query I rowsort
SELECT + tab2.col0 * - col0 * col0 FROM tab2
----
-343
-474552
-493039

query I rowsort
SELECT ALL tab1.col1 * 64 - 6 AS col0 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 92417884e5d21271588def2ff9225952

onlyif mysql # use DIV operator for integer division
query I rowsort label-7444
SELECT DISTINCT - tab0.col2 DIV + col2 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-7444
SELECT DISTINCT - tab0.col2 / + col2 FROM tab0
----
-1

query I rowsort
SELECT cor0.col0 + ( 44 ) FROM tab2 AS cor0
----
122
123
51

query I rowsort
SELECT + - col1 - col2 * - cor0.col0 * col0 FROM tab1 AS cor0
----
233462
460
614387

query I rowsort
SELECT - cor0.col0 - ( - col2 * col2 + - col2 * col2 ) AS col0 FROM tab2 cor0
----
1274
1451
2809

query I rowsort
SELECT + - 57 + + col0 FROM tab1 AS cor0
----
-54
23
7

query I rowsort
SELECT + 73 + col1 + - col1 AS col1 FROM tab2 cor0
----
73
73
73

onlyif mysql # use DIV operator for integer division
query I rowsort label-7450
SELECT - + ( col0 ) + + col2 DIV col1 + cor0.col2 FROM tab0 AS cor0
----
-34
-7
9

skipif mysql # not compatible
query I rowsort label-7450
SELECT - + ( col0 ) + + col2 / col1 + cor0.col2 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT - - cor0.col1 * col1 + - col1 + col0 FROM tab2 AS cor0
----
3500
351
937

query I rowsort
SELECT - 83 * - col1 AS col2 FROM tab0 AS cor0
----
7138
7553
8051

query I rowsort
SELECT DISTINCT col1 * + 92 * + col2 + tab0.col0 AS col2 FROM tab0
----
261120
686593
8959

query I rowsort
SELECT ALL tab0.col0 + - tab0.col2 * - col0 AS col2 FROM tab0
----
70
7387
816

query I rowsort
SELECT DISTINCT - ( 83 ) AS col2 FROM tab0, tab2 AS cor0
----
-83

query I rowsort
SELECT ALL + col1 + + 79 AS col0 FROM tab1
----
105
89
92

query I rowsort
SELECT - - 19 - col1 * col0 * col1 FROM tab2 AS cor0
----
-22812
-271499
-6708

query I rowsort
SELECT - 80 - 5 FROM tab1 AS cor0
----
-85
-85
-85

query I rowsort
SELECT ALL + ( + 76 ) * - col2 + col0 * col1 FROM tab1 AS cor0
----
-3692
-4026
-6256

query I rowsort
SELECT ALL - ( col2 ) + cor0.col1 FROM tab2 cor0
----
-21
33
4

query I rowsort
SELECT + 53 * + tab0.col2 FROM tab0
----
1749
4346
53

onlyif mysql # use DIV operator for integer division
query I rowsort label-7462
SELECT - col1 DIV col1 + + ( - col0 ) * col2 + col2 col1 FROM tab0 AS cor0
----
-35
-7217
-760

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7462
SELECT - col1 / col1 + + ( - col0 ) * col2 + col2 col1 FROM tab0 AS cor0
----
-35
-7217
-760

query I rowsort
SELECT + col0 * + col1 + col2 * - col2 AS col2 FROM tab2 AS cor0
----
-101
-512
3926

query I rowsort
SELECT DISTINCT + + ( - col1 ) + col2 AS col2 FROM tab1 AS cor0
----
28
47
83

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7465
SELECT ALL - col2 * col0 * CAST( 23 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-4347
-46644
-69046

skipif mysql # not compatible
query I rowsort label-7465
SELECT ALL - col2 * col0 * CAST ( 23 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-4347
-46644
-69046

onlyif mysql # use DIV operator for integer division
query I rowsort label-7466
SELECT + cor0.col1 * + col1 + col0 DIV + col1 FROM tab0 AS cor0
----
7396
8281
9409

skipif mysql # not compatible
query I rowsort label-7466
SELECT + cor0.col1 * + col1 + col0 / + col1 FROM tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT ( 28 + col1 ) * + 39 * - col0 FROM tab2
----
-138645
-16107
-264654

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7468
SELECT col2 + - CAST( - col0 AS SIGNED ) FROM tab1 AS cor0
----
121
176
57

skipif mysql # not compatible
query I rowsort label-7468
SELECT col2 + - CAST ( - col0 AS INTEGER ) FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT + cor0.col0 * 34 FROM tab0 AS cor0
----
1190
3026
816

onlyif mysql # use DIV operator for integer division
query I rowsort label-7470
SELECT ALL col1 DIV col0 AS col1 FROM tab1
----
0
0
8

skipif mysql # not compatible
query I rowsort label-7470
SELECT ALL col1 / col0 AS col1 FROM tab1
----
0
0
8

query I rowsort
SELECT ALL 30 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 6c98840ed134c765d56389f4150075f0

query I rowsort
SELECT ALL ( tab0.col0 ) FROM tab0, tab0 AS cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63

query I rowsort
SELECT + - cor0.col2 * + col2 * ( + col2 ) AS col0 FROM tab1 AS cor0
----
-157464
-185193
-884736

query I rowsort
SELECT col1 * 2 FROM tab1 AS cor0
----
20
26
52

query I rowsort
SELECT ALL 66 * col1 FROM tab1
----
1716
660
858

query I rowsort
SELECT DISTINCT - 53 + col1 * col1 FROM tab1 cor0
----
116
47
623

query I rowsort
SELECT DISTINCT - col0 - col2 AS col0 FROM tab1 cor0
----
-121
-176
-57

onlyif mysql # use DIV operator for integer division
query I rowsort label-7478
SELECT ALL + - col0 * - col1 DIV + col1 + - col0 - + col2 FROM tab0 AS cor0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-7478
SELECT ALL + - col0 * - col1 / + col1 + - col0 - + col2 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT DISTINCT 92 * - col0 FROM tab1 cor0
----
-276
-5888
-7360

query I rowsort
SELECT + + col2 + col1 * col1 FROM tab0 AS cor0
----
7429
8363
9410

query I rowsort
SELECT ALL - ( + col1 ) + - col2 * col1 AS col1 FROM tab1
----
-1261
-1430
-580

query I rowsort
SELECT ALL col2 + col1 + - col2 FROM tab0
----
86
91
97

query I rowsort
SELECT + - col2 * + col0 AS col1 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT ALL + 23 AS col1 FROM tab0 cor0
----
23
23
23

query I rowsort
SELECT DISTINCT - col1 * + col2 - col1 FROM tab0 AS cor0
----
-194
-2924
-7553

onlyif mysql # use DIV operator for integer division
query I rowsort label-7486
SELECT + + col0 DIV - col1 AS col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7486
SELECT + + col0 / - col1 AS col0 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 * col1 + col0 col1 FROM tab0 AS cor0
----
-2040
-3360
-8010

query I rowsort
SELECT DISTINCT + 31 * - col1 AS col0 FROM tab2
----
-1829
-527
-961

query I rowsort
SELECT 46 + col1 AS col1 FROM tab1 AS cor0
----
56
59
72

query I rowsort
SELECT + col1 * + ( - col0 * - col1 ) FROM tab0
----
177504
329315
737009

query I rowsort
SELECT - - col0 * + ( + 79 ) AS col1 FROM tab1 AS cor0
----
237
5056
6320

query I rowsort
SELECT col1 * col1 + col1 * col1 * col1 AS col1 FROM tab0 AS cor0
----
643452
761852
922082

query I rowsort
SELECT + + cor0.col1 + - 7 * col2 FROM tab2 AS cor0
----
-123
-158
-249

query I rowsort
SELECT + ( 33 ) AS col1 FROM tab2 cor0
----
33
33
33

query I rowsort
SELECT col1 + + col1 * + col2 - - col0 AS col1 FROM tab0
----
229
2948
7642

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 20 + col0 col1 FROM tab1
----
100
23
84

query I rowsort
SELECT DISTINCT 38 * - col1 + col1 * tab2.col1 AS col0 FROM tab2
----
-217
-357
1239

query I rowsort
SELECT + - col1 * col2 AS col0 FROM tab0 cor0
----
-2838
-7462
-97

query I rowsort
SELECT cor0.col0 + cor0.col0 FROM tab2 cor0
----
14
156
158

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7500
SELECT ALL + CAST( NULL AS SIGNED ) + + col0 + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7500
SELECT ALL + CAST ( NULL AS INTEGER ) + + col0 + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 + + col0 + col2 * col0 AS col0 FROM tab2 cor0
----
203
2184
3160

query I rowsort
SELECT DISTINCT - 61 + cor0.col1 AS col1 FROM tab1 AS cor0
----
-35
-48
-51

query I rowsort
SELECT DISTINCT + col1 + - col0 + tab2.col0 AS col1 FROM tab2
----
17
31
59

query I rowsort
SELECT ALL col0 + + col2 * col0 AS col2 FROM tab2
----
196
2106
3081

onlyif mysql # use DIV operator for integer division
query I rowsort label-7505
SELECT DISTINCT + cor0.col0 DIV col0 + col0 FROM tab2 AS cor0
----
79
8
80

skipif mysql # not compatible
query I rowsort label-7505
SELECT DISTINCT + cor0.col0 / col0 + col0 FROM tab2 AS cor0
----
79
8
80

query I rowsort
SELECT ALL + col2 * col2 - col1 * col1 AS col0 FROM tab2 AS cor0
----
-232
-2805
1155

query I rowsort
SELECT ALL + - cor0.col2 - col0 FROM tab1 AS cor0
----
-121
-176
-57

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL < + cor0.col0 OR NULL = - col2
----

query I rowsort
SELECT DISTINCT + col1 + - cor0.col1 + + col0 AS col0 FROM tab1 cor0
----
3
64
80

query I rowsort
SELECT DISTINCT + col0 * - col1 + - col2 AS col0 FROM tab1 cor0
----
-1136
-132
-697

query I rowsort
SELECT + - col2 - col0 * cor0.col0 FROM tab0 AS cor0
----
-1226
-609
-8003

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - cor0.col1 * col0 + col0 + - col1 col0 FROM tab2 AS cor0
----
-1281
-241
-4583

query I rowsort
SELECT DISTINCT - + col0 - col2 * col1 FROM tab2 AS cor0
----
-1612
-725
-844

onlyif mysql # use DIV operator for integer division
query I rowsort label-7514
SELECT DISTINCT col1 + cor0.col2 DIV - col0 FROM tab1 cor0
----
10
12
8

skipif mysql # not compatible
query I rowsort label-7514
SELECT DISTINCT col1 + cor0.col2 / - col0 FROM tab1 cor0
----
10
12
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 + - col0 col2 FROM tab2 cor0
----
-41
-52
20

query I rowsort
SELECT DISTINCT - col0 + + cor0.col1 / - col0 FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN col2 AND col2 - + col1 * col0
----

query I rowsort
SELECT ALL col0 + - cor0.col0 * + col0 AS col0 FROM tab2 AS cor0
----
-42
-6006
-6162

query I rowsort
SELECT - col2 * - col0 FROM tab1 AS cor0 WHERE NOT NULL >= + col2 * col2 - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 col2 FROM tab1 AS cor0 WHERE NOT NULL >= col2
----

query I rowsort
SELECT + col1 + col1 * - col0 + + col0 FROM tab2
----
-1247
-179
-4465

query I rowsort
SELECT DISTINCT col1 + col1 * - col1 AS col2 FROM tab1
----
-156
-650
-90

query I rowsort
SELECT ALL + cor0.col0 - col1 AS col0 FROM tab1 cor0
----
-23
54
67

query I rowsort
SELECT DISTINCT + col1 - + col1 * - col2 FROM tab2 AS cor0
----
1593
663
868

query I rowsort
SELECT ALL + + col2 * + col1 + col0 * + col2 AS col2 FROM tab2 AS cor0
----
1026
3562
3648

query I rowsort
SELECT ALL cor0.col2 + - col2 * col0 FROM tab2 AS cor0
----
-162
-2002
-2964

query I rowsort
SELECT DISTINCT - - col1 - col1 FROM tab2 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + col0 col0 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT ALL + col2 + + col0 * col2 * - col1 AS col2 FROM tab2 AS cor0
----
-119626
-50996
-5832

query I rowsort
SELECT DISTINCT tab1.col1 - - col1 AS col0 FROM tab1
----
20
26
52

query I rowsort
SELECT ALL col2 - + col0 * col2 AS col2 FROM tab0
----
-34
-7216
-759

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * - col0 - - col1 col0 FROM tab1
----
-1027
-52
-630

onlyif mysql # use DIV operator for integer division
query I rowsort label-7532
SELECT col0 * col0 + - col1 DIV - col0 FROM tab2
----
53
6084
6241

skipif mysql # not compatible
query I rowsort label-7532
SELECT col0 * col0 + - col1 / - col0 FROM tab2
----
53
6084
6241

query I rowsort
SELECT DISTINCT + col2 + col1 + col1 AS col1 FROM tab2 AS cor0
----
144
72
89

query I rowsort
SELECT + cor0.col2 * - cor0.col2 * col2 + - cor0.col1 * cor0.col0 FROM tab1 AS cor0
----
-157542
-185833
-885776

query I rowsort
SELECT DISTINCT + col2 - - col0 * col0 FROM tab0
----
1226
609
8003

query I rowsort
SELECT ALL + col0 - + tab2.col0 * col1 FROM tab2
----
-1264
-210
-4524

query I rowsort
SELECT - 14 * + col0 + + col0 * + 23 + col0 AS col1 FROM tab0
----
240
350
890

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7538
SELECT + col0 * CAST( NULL AS SIGNED ) * ( - col2 ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7538
SELECT + col0 * CAST ( NULL AS INTEGER ) * ( - col2 ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + tab1.col2 * + col0 AS col2 FROM tab1
----
162
3648
7680

query I rowsort
SELECT tab0.col2 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT ALL - col2 * col0 * 20 AS col1 FROM tab0
----
-145960
-15840
-700

skipif mysql # not compatible
query I rowsort
SELECT - col1 * + CAST ( 87 AS REAL ) FROM tab1
----
-1131
-2262
-870

query I rowsort
SELECT + cor0.col0 * + 78 AS col0 FROM tab0 AS cor0
----
1872
2730
6942

onlyif mysql # use DIV operator for integer division
query I rowsort label-7544
SELECT DISTINCT + cor0.col2 DIV + 9 AS col0 FROM tab1 cor0
----
10
6

skipif mysql # not compatible
query I rowsort label-7544
SELECT DISTINCT + cor0.col2 / + 9 AS col0 FROM tab1 cor0
----
10
6

query I rowsort
SELECT + col2 * 51 * + col1 FROM tab1 AS cor0
----
29070
63648
71604

onlyif mysql # use DIV operator for integer division
query I rowsort label-7546
SELECT ALL - CAST( 65 AS SIGNED ) * col1 DIV col1 FROM tab2
----
-65
-65
-65

skipif mysql # not compatible
query I rowsort label-7546
SELECT ALL - CAST ( 65 AS INTEGER ) * col1 / col1 FROM tab2
----
-65
-65
-65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( 89 * + col0 + - 44 * - ( + col0 ) ) col1 FROM tab2
----
10374
10507
931

query I rowsort
SELECT ALL - col0 + col1 + - col0 FROM tab2 AS cor0
----
-141
-97
17

onlyif mysql # use DIV operator for integer division
query I rowsort label-7549
SELECT DISTINCT + - col1 DIV + 26 - + col2 DIV + 10 AS col0 FROM tab0 AS cor0
----
-11
-3
-6

skipif mysql # not compatible
query I rowsort label-7549
SELECT DISTINCT + - col1 / + 26 - + col2 / + 10 AS col0 FROM tab0 AS cor0
----
-11
-3
-6

query I rowsort
SELECT DISTINCT + ( - col1 ) * col0 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT DISTINCT col2 * + 43 + col2 FROM tab2 AS cor0
----
1144
1188
1672

query I rowsort
SELECT + + col1 - cor0.col2 AS col2 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT - 83 + - col2 - - ( col1 ) FROM tab2 AS cor0
----
-104
-50
-79

query I rowsort
SELECT + col0 + cor0.col1 * - ( - 10 * col0 ) AS col1 FROM tab2 AS cor0
----
13509
2177
46098

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7555
SELECT 10 + col1 * + CAST( ( - col2 ) AS SIGNED ) FROM tab1 AS cor0
----
-1238
-1394
-560

skipif mysql # not compatible
query I rowsort label-7555
SELECT 10 + col1 * + CAST ( ( - col2 ) AS INTEGER ) FROM tab1 AS cor0
----
-1238
-1394
-560

query I rowsort
SELECT ALL col1 * - col2 + - 32 FROM tab0 AS cor0
----
-129
-2870
-7494

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + col2 * + ( - col2 + - col0 ) col0 FROM tab2 AS cor0
----
-2645
-4429
-887

onlyif mysql # use DIV operator for integer division
query I rowsort label-7558
SELECT DISTINCT - 28 DIV col1 AS col0 FROM tab2 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-7558
SELECT DISTINCT - 28 / col1 AS col0 FROM tab2 AS cor0
----
-1
0

query I rowsort
SELECT + ( - col1 ) - + col2 * + cor0.col2 AS col2 FROM tab0 AS cor0
----
-1175
-6815
-98

query I rowsort
SELECT col1 * + col0 * + col0 AS col0 FROM tab2 AS cor0
----
106097
1519
358956

query I rowsort
SELECT DISTINCT - 46 AS col0 FROM tab1
----
-46

query I rowsort
SELECT ALL ( col2 * col0 ) FROM tab1
----
162
3648
7680

query I rowsort
SELECT - + col2 * - col0 * col2 AS col1 FROM tab2 AS cor0
----
114076
5103
52728

onlyif mysql # use DIV operator for integer division
query I rowsort label-7564
SELECT DISTINCT - col2 + col1 DIV 6 AS col1 FROM tab2 AS cor0
----
-17
-22
-36

skipif mysql # not compatible
query I rowsort label-7564
SELECT DISTINCT - col2 + col1 / 6 AS col1 FROM tab2 AS cor0
----
-17
-22
-36

query I rowsort
SELECT DISTINCT col1 * 25 AS col2 FROM tab2 AS cor0
----
1475
425
775

onlyif mysql # use DIV operator for integer division
query I rowsort label-7566
SELECT DISTINCT + - col2 + col2 DIV 56 FROM tab2 AS cor0
----
-26
-27
-38

skipif mysql # not compatible
query I rowsort label-7566
SELECT DISTINCT + - col2 + col2 / 56 FROM tab2 AS cor0
----
-26
-27
-38

onlyif mysql # use DIV operator for integer division
query I rowsort label-7567
SELECT + col0 * cor0.col2 DIV col0 + col2 FROM tab0 AS cor0
----
164
2
66

skipif mysql # not compatible
query I rowsort label-7567
SELECT + col0 * cor0.col2 / col0 + col2 FROM tab0 AS cor0
----
164
2
66

query I rowsort
SELECT - col2 * - col1 + - col1 AS col1 FROM tab1 AS cor0
----
1235
1378
560

query I rowsort
SELECT col1 * + 52 * col1 + - cor0.col2 FROM tab2 cor0
----
14990
180986
49945

query I rowsort
SELECT - ( cor0.col2 ) AS col1 FROM tab2 cor0
----
-26
-27
-38

query I rowsort
SELECT + - 21 + col0 AS col0 FROM tab1 AS cor0
----
-18
43
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-7572
SELECT + ( cor0.col2 ) + col0 DIV ( + col1 ) FROM tab2 cor0
----
27
27
42

skipif mysql # not compatible
query I rowsort label-7572
SELECT + ( cor0.col2 ) + col0 / ( + col1 ) FROM tab2 cor0
----
27
27
42

query I rowsort
SELECT + col1 * - 16 AS col2 FROM tab1
----
-160
-208
-416

query I rowsort
SELECT + tab0.col2 * 67 + - tab0.col2 AS col0 FROM tab0
----
2178
5412
66

onlyif mysql # use DIV operator for integer division
query I rowsort label-7575
SELECT DISTINCT col2 DIV + ( + 89 ) AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7575
SELECT DISTINCT col2 / + ( + 89 ) AS col0 FROM tab0
----
0

query I rowsort
SELECT - col0 * 28 AS col0 FROM tab0
----
-2492
-672
-980

query I rowsort
SELECT + ( + col2 ) * cor0.col2 AS col1 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT DISTINCT 14 + col1 FROM tab0 AS cor0
----
100
105
111

query I rowsort
SELECT ALL - + col2 * - col1 + - col1 * - col1 FROM tab2 AS cor0
----
1798
5015
935

query I rowsort
SELECT col0 + col2 + + col0 AS col0 FROM tab1 AS cor0
----
185
256
60

query I rowsort
SELECT 17 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 43298e43365fccb5146ea32003753c92

query I rowsort
SELECT DISTINCT - - 58 AS col2 FROM tab0 cor0
----
58

query I rowsort
SELECT 1 + col2 * col0 + tab0.col1 AS col0 FROM tab0
----
133
7390
879

query I rowsort
SELECT DISTINCT ( col1 ) * col0 * col0 + + col1 FROM tab1
----
260
40970
83213

query I rowsort
SELECT DISTINCT + 0 + + col1 FROM tab2 AS cor0
----
17
31
59

query IIIIII rowsort
SELECT * FROM tab2, tab2 cor0 WHERE NOT NULL <= NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-7587
SELECT 50 DIV 3 + + cor0.col1 FROM tab0 AS cor0
----
102
107
113

skipif mysql # not compatible
query I rowsort label-7587
SELECT 50 / 3 + + cor0.col1 FROM tab0 AS cor0
----
102
107
113

query I rowsort
SELECT + + col0 + col0 * + col1 FROM tab2 AS cor0
----
1422
224
4680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * cor0.col0 + - col2 col2 FROM tab0 AS cor0
----
34
7216
759

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7590
SELECT ALL ( - col0 ) + cor0.col0 * - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7590
SELECT ALL ( - col0 ) + cor0.col0 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 * cor0.col0 + col0 AS col1 FROM tab1 cor0
----
-4032
-6
-6320

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + col1 col2 FROM tab0 AS cor0
----
172
182
194

query I rowsort
SELECT ALL + cor0.col2 + + col1 AS col0 FROM tab2 AS cor0
----
55
58
85

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7594
SELECT - CAST( - 42 AS SIGNED ) AS col0 FROM tab1, tab2, tab1 cor0
----
27 values hashing to 325aada2239b6fe1fe2d843515ae8c5e

skipif mysql # not compatible
query I rowsort label-7594
SELECT - CAST ( - 42 AS INTEGER ) AS col0 FROM tab1, tab2, tab1 cor0
----
27 values hashing to 325aada2239b6fe1fe2d843515ae8c5e

query I rowsort
SELECT ALL col1 + - col2 * + col2 FROM tab0 AS cor0
----
-1003
-6633
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-7596
SELECT DISTINCT - - col2 + + col2 * CAST( + col1 AS SIGNED ) DIV - cor0.col0 FROM tab2 cor0
----
-92
30
7

skipif mysql # not compatible
query I rowsort label-7596
SELECT DISTINCT - - col2 + + col2 * CAST ( + col1 AS INTEGER ) / - cor0.col0 FROM tab2 cor0
----
-92
30
7

query I rowsort
SELECT ALL 71 + col2 * - col0 AS col0 FROM tab1 AS cor0
----
-3577
-7609
-91

onlyif mysql # use DIV operator for integer division
query I rowsort label-7598
SELECT ALL + ( col0 ) + col0 + 1 DIV col2 FROM tab0 AS cor0
----
178
48
71

skipif mysql # not compatible
query I rowsort label-7598
SELECT ALL + ( col0 ) + col0 + 1 / col2 FROM tab0 AS cor0
----
178
48
71

query I rowsort
SELECT DISTINCT - 8 + - 34 * col0 AS col0 FROM tab1
----
-110
-2184
-2728

query I rowsort
SELECT DISTINCT 0 + ( col2 + ( col0 ) * col1 ) FROM tab1
----
1136
132
697

query I rowsort
SELECT ALL + 58 * + col2 + col1 * col1 AS col1 FROM tab0
----
13037
9310
9467

query I rowsort
SELECT ALL - col1 * - col0 * + col2 + - ( tab1.col2 ) FROM tab1
----
36423
4158
99744

query I rowsort
SELECT ALL ( + col1 ) + col1 * 11 AS col2 FROM tab0
----
1032
1092
1164

query I rowsort
SELECT DISTINCT col0 + + col1 + col1 AS col1 FROM tab0 AS cor0
----
196
229
271

query I rowsort
SELECT ALL + col2 + - cor0.col2 AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - - col1 - - col1 AS col2 FROM tab2 cor0
----
118
34
62

query I rowsort
SELECT DISTINCT - + col2 * + ( ( col1 ) ) + + col1 FROM tab0 AS cor0
----
-2752
-7371
0

query I rowsort
SELECT ALL - col0 + col2 * - col2 FROM tab1 AS cor0
----
-2919
-3313
-9296

query I rowsort
SELECT ALL + col2 - cor0.col1 AS col0 FROM tab1 cor0
----
28
47
83

query I rowsort
SELECT + - col2 * ( - col2 ) + cor0.col2 * 8 FROM tab2 AS cor0
----
1748
884
945

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7611
SELECT ALL + - col0 * - CAST( + col1 AS SIGNED ) FROM tab0 cor0
----
2064
3395
8099

skipif mysql # not compatible
query I rowsort label-7611
SELECT ALL + - col0 * - CAST ( + col1 AS INTEGER ) FROM tab0 cor0
----
2064
3395
8099

query I rowsort
SELECT DISTINCT - + cor0.col0 + + ( col2 ) FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT DISTINCT col2 * - 29 FROM tab2 AS cor0
----
-1102
-754
-783

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + cor0.col1 + + 50 col2 FROM tab2 AS cor0
----
29
54
83

query I rowsort
SELECT ALL - 71 AS col1 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 3907e0aa4f29c002120742c4abb3e23a

query I rowsort
SELECT col1 * - col1 * 99 FROM tab2
----
-28611
-344619
-95139

query I rowsort
SELECT DISTINCT 2 AS col1 FROM tab0, tab2 AS cor0
----
2

query I rowsort
SELECT col0 * - 9 + + ( + col0 ) * col0 AS col0 FROM tab0 AS cor0
----
360
7120
910

query I rowsort
SELECT col1 - 91 FROM tab0 AS cor0
----
-5
0
6

query I rowsort
SELECT DISTINCT col1 - 91 * + 2 AS col0 FROM tab0
----
-85
-91
-96

query I rowsort
SELECT ALL col0 * 94 * + col2 AS col2 FROM tab0
----
3290
686012
74448

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7622
SELECT - CAST( col2 AS SIGNED ) - cor0.col1 FROM tab2 AS cor0
----
-55
-58
-85

skipif mysql # not compatible
query I rowsort label-7622
SELECT - CAST ( col2 AS INTEGER ) - cor0.col1 FROM tab2 AS cor0
----
-55
-58
-85

query I rowsort
SELECT - + 53 * - 30 - - col2 FROM tab1 AS cor0
----
1644
1647
1686

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 57 col0 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
-57

query I rowsort
SELECT ALL - cor1.col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ccaa5dd3388d9ee0fea676fa35299fe5

query I rowsort
SELECT ALL - col1 * - col0 + + col0 * col2 - - 9 FROM tab1 AS cor0
----
249
4297
8729

query I rowsort
SELECT - col1 * - col2 + col2 AS col2 FROM tab1 AS cor0
----
1344
1458
627

skipif mysql # not compatible
query I rowsort
SELECT 18 + col0 * - col0 - ( + ( + col1 ) ) * - ( - cor0.col0 + + col1 * - CAST ( col2 AS REAL ) ) AS col0 FROM tab1 cor0
----
-10418
-23646
-36573

query I rowsort
SELECT ALL + 68 * - col2 AS col0 FROM tab2 AS cor0
----
-1768
-1836
-2584

query I rowsort
SELECT DISTINCT - 69 + - 0 AS col1 FROM tab2 cor0
----
-69

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7631
SELECT DISTINCT CAST( ( + col2 ) AS SIGNED ) AS col0 FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-7631
SELECT DISTINCT CAST ( ( + col2 ) AS INTEGER ) AS col0 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT DISTINCT - col1 * + cor0.col1 FROM tab2 AS cor0
----
-289
-3481
-961

query I rowsort
SELECT - + col0 + 70 FROM tab1 AS cor0
----
-10
6
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col1 * col1 col1 FROM tab1 AS cor0
----
13520
2028
6400

query I rowsort
SELECT ( cor0.col2 ) - + col1 FROM tab2 AS cor0
----
-33
-4
21

query I rowsort
SELECT DISTINCT - + ( - 4 ) FROM tab1 AS cor0
----
4

query I rowsort
SELECT - 49 AS col2 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 01b1fa22fee872a7ba64f90d6046ffae

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - cor0.col0 col1 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a

query I rowsort
SELECT DISTINCT + - cor0.col0 + cor0.col1 AS col2 FROM tab0 AS cor0
----
2
62

query I rowsort
SELECT ALL - + cor0.col1 * + col0 AS col0 FROM tab0 cor0
----
-2064
-3395
-8099

query I rowsort
SELECT - cor0.col0 * col0 + col2 AS col0 FROM tab2 AS cor0
----
-22
-6058
-6203

skipif mysql # not compatible
query I rowsort
SELECT ALL col0 * - col2 + CAST ( - col0 * - col0 AS REAL ) AS col1 FROM tab1 AS cor0
----
-1280
-153
448

query I rowsort
SELECT - + 81 * + col1 FROM tab0 AS cor0
----
-6966
-7371
-7857

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - ( col2 ) col0 FROM tab2 cor0
----
26
27
38

query I rowsort
SELECT DISTINCT + - col1 * col2 + + 60 AS col0 FROM tab0 AS cor0
----
-2778
-37
-7402

query I rowsort
SELECT ALL + ( col0 ) * - col0 FROM tab0
----
-1225
-576
-7921

query I rowsort
SELECT 75 + 53 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 6a9ed45ca8e49cad3cefcf18e4d680fe

onlyif mysql # use DIV operator for integer division
query I rowsort label-7648
SELECT - col2 DIV col0 AS col1 FROM tab1 cor0
----
-1
-18
0

skipif mysql # not compatible
query I rowsort label-7648
SELECT - col2 / col0 AS col1 FROM tab1 cor0
----
-1
-18
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7649
SELECT DISTINCT ( col2 ) + CAST( NULL AS DECIMAL ) * - col2 AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7649
SELECT DISTINCT ( col2 ) + CAST ( NULL AS REAL ) * - col2 AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - 25 * - col0 FROM tab1 AS cor0
----
1600
2000
75

query I rowsort
SELECT ALL + col1 + - cor0.col0 * - col0 AS col1 FROM tab1 AS cor0
----
35
4106
6413

query I rowsort
SELECT ALL - + col2 * - col2 + + cor0.col0 AS col0 FROM tab0 AS cor0
----
1113
36
6813

onlyif mysql # use DIV operator for integer division
query I rowsort label-7653
SELECT - + col2 * ( 25 ) DIV + cor0.col1 FROM tab1 AS cor0
----
-142
-184
-51

skipif mysql # not compatible
query I rowsort label-7653
SELECT - + col2 * ( 25 ) / + cor0.col1 FROM tab1 AS cor0
----
-142
-184
-51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + + 52 col1 FROM tab2 AS cor0
----
130
131
59

query I rowsort
SELECT col2 * cor0.col1 + - 55 AS col2 FROM tab0 AS cor0
----
2783
42
7407

query I rowsort
SELECT - - cor0.col0 * + cor0.col0 AS col1 FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT - 21 * col1 AS col1 FROM tab2 AS cor0
----
-1239
-357
-651

query I rowsort
SELECT + + 16 AS col0 FROM tab0 AS cor0
----
16
16
16

query I rowsort
SELECT - cor0.col2 + col0 * col2 AS col0 FROM tab0 AS cor0
----
34
7216
759

query I rowsort
SELECT col1 * cor0.col1 + - col2 AS col1 FROM tab2 AS cor0
----
251
3455
934

query I rowsort
SELECT col0 + col2 * col1 + + col2 FROM tab0
----
133
2895
7633

query I rowsort
SELECT + 81 AS col2 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 0a85639e0dddbffdab2cb16b027cb360

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 + + cor0.col1 + col2 col1 FROM tab1 AS cor0
----
29
3
77

query I rowsort
SELECT - 81 + + cor1.col0 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 321ce6c2fb2e6313533578626602c730

query I rowsort
SELECT cor0.col1 - cor1.col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 28f70a38d22725ee756ac68dbc5b6101

query I rowsort
SELECT cor1.col1 AS col0 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + col1 * - col0 col1 FROM tab1 AS cor0
----
13520
2028
6400

query I rowsort
SELECT ALL tab2.col2 * + ( 6 ) AS col1 FROM tab2
----
156
162
228

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab0, tab1 cor2
----
3645 values hashing to 9a402ad2669465fb284445c499a48f2c

query I rowsort
SELECT ALL cor0.col1 * ( cor1.col1 ) FROM tab1, tab0 AS cor0, tab0 cor1
----
27 values hashing to 85d801111b0911372f22698924c4b5ce

query I rowsort
SELECT + ( col1 + - col2 ) FROM tab1
----
-28
-47
-83

query I rowsort
SELECT ALL + 39 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( ( + col0 ) + - col0 * col2 ) col1 FROM tab2
----
182
1950
2923

query I rowsort
SELECT - + col0 * ( - col2 ) + 69 FROM tab0 cor0
----
104
7367
861

query I rowsort
SELECT ALL - ( - col0 ) AS col2 FROM tab2 cor0
----
7
78
79

query I rowsort
SELECT - ( - 77 ) FROM tab2 AS cor0
----
77
77
77

query I rowsort
SELECT ALL - 19 FROM tab1, tab0 AS cor0, tab1 AS cor1, tab1 AS cor2
----
81 values hashing to 99bbabf7eff84050cf6c6974a01eb714

query I rowsort
SELECT ALL 17 FROM tab0, tab0 AS cor0
----
9 values hashing to 43298e43365fccb5146ea32003753c92

onlyif mysql # use DIV operator for integer division
query I rowsort label-7679
SELECT DISTINCT + 12 * - col0 DIV ( col0 ) FROM tab2 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-7679
SELECT DISTINCT + 12 * - col0 / ( col0 ) FROM tab2 AS cor0
----
-12

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7680
SELECT CAST( NULL AS DECIMAL ) * - col2 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7680
SELECT CAST ( NULL AS REAL ) * - col2 AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col0 + - 35 FROM tab0
----
-11
0
54

query I rowsort
SELECT 79 * + col1 AS col1 FROM tab0 AS cor0
----
6794
7189
7663

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7683
SELECT + CAST( NULL AS SIGNED ) / 88 - + col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7683
SELECT + CAST ( NULL AS INTEGER ) / 88 - + col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + 55 + col1 FROM tab1
----
65
68
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-7685
SELECT + col2 DIV + col1 - col2 * - 9 * - col1 AS col0 FROM tab2
----
-13806
-5812
-7533

skipif mysql # not compatible
query I rowsort label-7685
SELECT + col2 / + col1 - col2 * - 9 * - col1 AS col0 FROM tab2
----
-13806
-5812
-7533

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab1.col0 col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0

query I rowsort
SELECT ALL + + 13 * + cor0.col0 FROM tab0 AS cor0
----
1157
312
455

query I rowsort
SELECT + + col0 + - col2 * - 66 AS col0 FROM tab2 AS cor0
----
1789
1794
2587

onlyif mysql # use DIV operator for integer division
query I rowsort label-7689
SELECT ALL col2 DIV + ( + col1 ) AS col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7689
SELECT ALL col2 / + ( + col1 ) AS col2 FROM tab0
----
0
0
0

query I rowsort
SELECT + col1 + ( - 79 ) * - col0 AS col0 FROM tab0 AS cor0
----
1982
2862
7122

query I rowsort
SELECT + 42 + col0 * col2 + 5 * col0 AS col2 FROM tab1 AS cor0
----
219
4010
8122

query I rowsort
SELECT ALL - col1 * col0 + + cor0.col1 FROM tab1 AS cor0
----
-1027
-52
-630

query I rowsort
SELECT DISTINCT + cor0.col1 + col1 * col1 * col0 AS col2 FROM tab1 AS cor0
----
13533
2054
6410

query I rowsort
SELECT - 8 + - col1 + - cor0.col1 * + 72 AS col0 FROM tab0 AS cor0
----
-6286
-6651
-7089

query I rowsort
SELECT - + col0 + col1 + + cor0.col1 FROM tab1 cor0
----
-44
-54
49

query I rowsort
SELECT ALL - ( ( cor0.col0 ) ) FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT DISTINCT - + 22 * - col1 AS col1 FROM tab2 AS cor0
----
1298
374
682

onlyif mysql # use DIV operator for integer division
query I rowsort label-7698
SELECT DISTINCT + - col0 DIV - ( cor0.col2 ) FROM tab0 AS cor0
----
0
1
35

skipif mysql # not compatible
query I rowsort label-7698
SELECT DISTINCT + - col0 / - ( cor0.col2 ) FROM tab0 AS cor0
----
0
1
35

query I rowsort
SELECT col2 * col0 + col1 FROM tab0
----
132
7389
878

query I rowsort
SELECT 80 + - col0 - col1 FROM tab0
----
-100
-30
-52

query I rowsort
SELECT ALL + col2 - col0 AS col0 FROM tab0
----
-34
-7
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab0.col2 * - col0 * 50 - + col1 col1 FROM tab0
----
-1847
-364991
-39686

onlyif mysql # use DIV operator for integer division
query I rowsort label-7703
SELECT ALL + + col1 + col2 DIV + cor0.col0 AS col1 FROM tab0 AS cor0
----
87
91
97

skipif mysql # not compatible
query I rowsort label-7703
SELECT ALL + + col1 + col2 / + cor0.col0 AS col1 FROM tab0 AS cor0
----
87
91
97

query I rowsort
SELECT DISTINCT + - 6 * col1 * - 59 FROM tab0 AS cor0
----
30444
32214
34338

query I rowsort
SELECT DISTINCT + col1 * col1 - + col1 * - col1 AS col2 FROM tab2 AS cor0
----
1922
578
6962

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - col2 col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + cor0.col1 - 42 FROM tab0 AS cor0
----
44
49
55

query I rowsort
SELECT ALL - col0 * + 19 FROM tab1 AS cor0
----
-1216
-1520
-57

query I rowsort
SELECT - - cor0.col0 * 21 * + ( - col2 ) AS col0 FROM tab0 AS cor0
----
-153258
-16632
-735

query I rowsort
SELECT ALL + col0 * col0 + + col2 * col1 + ( + col2 ) * col0 FROM tab2 AS cor0
----
1075
9646
9889

query I rowsort
SELECT DISTINCT + col0 * - 21 FROM tab1 cor0
----
-1344
-1680
-63

query I rowsort
SELECT DISTINCT col0 * + ( col0 ) AS col1 FROM tab1 cor0
----
4096
6400
9

query I rowsort
SELECT ALL col2 - + col0 FROM tab2
----
-41
-52
20

query I rowsort
SELECT col1 * + col2 - + 80 * + col2 FROM tab1
----
-2916
-3990
-6432

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7715
SELECT ALL - col1 + + CAST( NULL AS SIGNED ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7715
SELECT ALL - col1 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 + ( + col1 ) * + col2 + - cor0.col2 col2 FROM tab1 AS cor0
----
1056
1296
456

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - cor0.col2 - col0 col1 FROM tab1 cor0
----
-7
16
51

query I rowsort
SELECT + cor0.col2 * - 85 + ( col0 ) FROM tab0 AS cor0
----
-2781
-50
-6881

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * - 0 col1 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL - col0 + 68 AS col0 FROM tab1 AS cor0
----
-12
4
65

query I rowsort
SELECT ALL - - col2 * + 20 AS col1 FROM tab0 AS cor0
----
1640
20
660

query I rowsort
SELECT - col0 + 10 + + cor0.col2 AS col0 FROM tab0 AS cor0
----
-24
19
3

query I rowsort
SELECT ALL + col0 + ( + col1 + col2 ) AS col2 FROM tab0 AS cor0
----
133
143
262

query I rowsort
SELECT DISTINCT + col1 * + col1 + - col0 + cor0.col2 FROM tab2 AS cor0
----
248
3429
981

query I rowsort
SELECT ALL col2 + col2 + col0 * 72 * - col1 FROM tab0 AS cor0
----
-148542
-244438
-582964

query I rowsort
SELECT ALL cor0.col1 - + 95 FROM tab2 AS cor0
----
-36
-64
-78

query I rowsort
SELECT + + ( - col2 ) AS col0 FROM tab0 cor0
----
-1
-33
-82

query I rowsort
SELECT ALL - - 17 AS col2 FROM tab1 cor0
----
17
17
17

query I rowsort
SELECT DISTINCT cor0.col0 + col0 * cor0.col1 FROM tab0 AS cor0
----
2088
3430
8188

onlyif mysql # use DIV operator for integer division
query I rowsort label-7730
SELECT DISTINCT - + 76 DIV col2 + - col0 AS col1 FROM tab0 AS cor0
----
-111
-26
-89

skipif mysql # not compatible
query I rowsort label-7730
SELECT DISTINCT - + 76 / col2 + - col0 AS col1 FROM tab0 AS cor0
----
-111
-26
-89

query I rowsort
SELECT DISTINCT + col2 + + col2 * + col1 FROM tab2 AS cor0
----
1560
684
864

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 88 * + 1 col1 FROM tab0 AS cor0
----
88

query I rowsort
SELECT + ( + col2 ) * col1 AS col1 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT ALL - + cor0.col2 * col2 AS col2 FROM tab0 AS cor0
----
-1
-1089
-6724

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 97 * + col1 col0 FROM tab0 cor0
----
8342
8827
9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-7736
SELECT - 82 DIV col2 AS col1 FROM tab0 AS cor0
----
-1
-2
-82

skipif mysql # not compatible
query I rowsort label-7736
SELECT - 82 / col2 AS col1 FROM tab0 AS cor0
----
-1
-2
-82

query I rowsort
SELECT DISTINCT + ( col0 ) * ( + col1 ) AS col2 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT 25 - col1 FROM tab0
----
-61
-66
-72

query I rowsort
SELECT ALL + cor1.col1 AS col0 FROM tab0, tab0 AS cor0 CROSS JOIN tab2, tab2 AS cor1
----
81 values hashing to a5b6acb471910ea4ad7f31cae3b818f7

onlyif mysql # use DIV operator for integer division
query I rowsort label-7740
SELECT ALL + col1 DIV col0 + ( - cor0.col2 * col0 + - col2 * + 56 ) FROM tab2 AS cor0
----
-1697
-3484
-5130

skipif mysql # not compatible
query I rowsort label-7740
SELECT ALL + col1 / col0 + ( - cor0.col2 * col0 + - col2 * + 56 ) FROM tab2 AS cor0
----
-1697
-3484
-5130

query I rowsort
SELECT ALL - cor0.col2 * + cor0.col1 - 31 AS col0 FROM tab2 AS cor0
----
-1565
-677
-868

query I rowsort
SELECT + + col1 * cor0.col2 AS col2 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT - - 66 * + col2 * col0 AS col0 FROM tab0 AS cor0
----
2310
481668
52272

query I rowsort
SELECT ALL - - 14 AS col2 FROM tab2 AS cor0
----
14
14
14

query I rowsort
SELECT - + cor0.col2 * cor0.col0 + col1 FROM tab1 AS cor0
----
-136
-3638
-7667

query I rowsort
SELECT ALL - + col0 * - col0 + 44 * - col0 AS col2 FROM tab2 AS cor0
----
-259
2652
2765

query I rowsort
SELECT DISTINCT - + 84 + + col0 * + col1 AS col2 FROM tab1 cor0
----
-6
556
956

query I rowsort
SELECT DISTINCT + ( - cor0.col0 ) FROM tab0, tab1 cor0
----
-3
-64
-80

query I rowsort
SELECT - 18 * tab1.col2 + + tab1.col2 AS col2 FROM tab1
----
-1632
-918
-969

query I rowsort
SELECT ( tab1.col2 ) + - col1 AS col2 FROM tab1
----
28
47
83

query I rowsort
SELECT DISTINCT + 16 AS col2 FROM tab2
----
16

query I rowsort
SELECT - 33 * col2 FROM tab1 AS cor0
----
-1782
-1881
-3168

query I rowsort
SELECT ALL - cor0.col2 * - col1 AS col1 FROM tab2 AS cor0
----
1534
646
837

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 + - col1 * - 29 col1 FROM tab0 AS cor0
----
2408
2548
2716

query I rowsort
SELECT + 59 + - col0 * + col0 FROM tab2 AS cor0
----
-6025
-6182
10

onlyif mysql # use DIV operator for integer division
query I rowsort label-7756
SELECT DISTINCT + col2 + - 15 * - tab0.col0 * + col0 + col1 DIV - col2 FROM tab0
----
118896
18279
8671

skipif mysql # not compatible
query I rowsort label-7756
SELECT DISTINCT + col2 + - 15 * - tab0.col0 * + col0 + col1 / - col2 FROM tab0
----
118896
18279
8671

query I rowsort
SELECT cor1.col0 FROM tab1 AS cor0 CROSS JOIN tab2, tab0 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

onlyif mysql # use DIV operator for integer division
query I rowsort label-7758
SELECT + col2 + - col2 DIV - 56 FROM tab1
----
54
58
97

skipif mysql # not compatible
query I rowsort label-7758
SELECT + col2 + - col2 / - 56 FROM tab1
----
54
58
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7759
SELECT ALL + CAST( NULL AS SIGNED ) - ( + col2 ) * + ( col1 ) * col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7759
SELECT ALL + CAST ( NULL AS INTEGER ) - ( + col2 ) * + ( col1 ) * col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 63 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to c3eea92c46f2c49716f386a58b575025

query I rowsort
SELECT - 14 * tab1.col0 * col1 + + col0 AS col1 FROM tab1
----
-1089
-14480
-8896

query I rowsort
SELECT DISTINCT - + col1 * + 98 FROM tab0 AS cor0
----
-8428
-8918
-9506

query I rowsort
SELECT + - 17 * - col2 FROM tab1 AS cor0
----
1632
918
969

query I rowsort
SELECT DISTINCT - col1 + + 98 FROM tab1 AS cor0
----
72
85
88

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7765
SELECT ALL - + CAST( col2 AS SIGNED ) * col1 AS col1 FROM tab2 cor0
----
-1534
-646
-837

skipif mysql # not compatible
query I rowsort label-7765
SELECT ALL - + CAST ( col2 AS INTEGER ) * col1 AS col1 FROM tab2 cor0
----
-1534
-646
-837

query IIIIII rowsort
SELECT ALL * FROM tab0, tab0 AS cor0 WHERE NOT NULL < tab0.col2
----

query I rowsort
SELECT col0 + + col0 * + col2 FROM tab2 AS cor0
----
196
2106
3081

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7768
SELECT ALL + - CAST( 95 AS SIGNED ) AS col0 FROM tab0 cor0
----
-95
-95
-95

skipif mysql # not compatible
query I rowsort label-7768
SELECT ALL + - CAST ( 95 AS INTEGER ) AS col0 FROM tab0 cor0
----
-95
-95
-95

query I rowsort
SELECT cor0.col0 AS col2 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT + - col0 * col2 * col2 AS col0 FROM tab2 AS cor0
----
-114076
-5103
-52728

query I rowsort
SELECT DISTINCT - - col0 * - cor0.col2 * + col2 + col2 + + 16 FROM tab2 AS cor0
----
-114022
-5060
-52686

query I rowsort
SELECT ALL col1 * - 62 FROM tab2
----
-1054
-1922
-3658

query I rowsort
SELECT col2 + - col0 * - 69 AS col0 FROM tab2 AS cor0
----
510
5408
5489

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor1.col1 * + 87 col1 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
-7482
-7917
-8439

onlyif mysql # use DIV operator for integer division
query I rowsort label-7775
SELECT - col2 DIV - 75 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-7775
SELECT - col2 / - 75 FROM tab1 AS cor0
----
0
0
1

query I rowsort
SELECT - + ( + col1 ) * - col1 FROM tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT - 70 + cor0.col0 AS col1 FROM tab1 AS cor0
----
-6
-67
10

query I rowsort
SELECT 21 + col2 FROM tab1 AS cor0
----
117
75
78

query I rowsort
SELECT ALL 29 * col1 FROM tab2 cor0
----
1711
493
899

query I rowsort
SELECT DISTINCT - 77 * col2 + col2 AS col0 FROM tab0
----
-2508
-6232
-76

query I rowsort
SELECT + - col2 + - col2 AS col0 FROM tab1 cor0
----
-108
-114
-192

query I rowsort
SELECT + ( col2 ) * tab1.col0 FROM tab1
----
162
3648
7680

query I rowsort
SELECT 28 * - col2 FROM tab0
----
-2296
-28
-924

query I rowsort
SELECT ( tab1.col2 ) * + 60 AS col0 FROM tab1
----
3240
3420
5760

query I rowsort
SELECT - 72 * col1 FROM tab2
----
-1224
-2232
-4248

query I rowsort
SELECT col2 * ( cor0.col2 ) * col0 FROM tab0 cor0
----
26136
35
598436

query I rowsort
SELECT ALL - 74 FROM tab1, tab1 AS cor0, tab0 cor1
----
27 values hashing to 5a477330c946251f814fbbfd08e77c28

onlyif mysql # use DIV operator for integer division
query I rowsort label-7788
SELECT col2 DIV - col0 + - 28 * 13 FROM tab0
----
-364
-364
-365

skipif mysql # not compatible
query I rowsort label-7788
SELECT col2 / - col0 + - 28 * 13 FROM tab0
----
-364
-364
-365

query I rowsort
SELECT col2 + + tab2.col2 AS col0 FROM tab2
----
52
54
76

query I rowsort
SELECT + - 34 AS col2 FROM tab0, tab2, tab1 cor0
----
27 values hashing to 5b88331e40da4796cc4826c442aa45f7

query I rowsort
SELECT ALL 87 + - tab1.col1 AS col1 FROM tab1, tab2 cor0, tab1 cor1
----
27 values hashing to 51cf27f809d26aabbcc6937c7f09cb71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab2.col1 * - col0 col2 FROM tab2
----
-1343
-217
-4602

query I rowsort
SELECT ALL - col1 * col2 + col0 + - col1 FROM tab1 AS cor0
----
-1181
-1427
-516

query I rowsort
SELECT DISTINCT - col0 * - cor0.col2 - + col0 FROM tab1 AS cor0
----
159
3584
7600

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + ( - 82 ) col2 FROM tab2 AS cor0
----
-160
-161
-89

query I rowsort
SELECT DISTINCT - col0 - + ( col1 ) FROM tab2 AS cor0
----
-137
-38
-96

query I rowsort
SELECT ALL - - 44 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d

query I rowsort
SELECT DISTINCT tab2.col2 + col2 * - tab2.col1 FROM tab2
----
-1508
-608
-810

query I rowsort
SELECT DISTINCT col2 * - col1 + + 10 AS col0 FROM tab0
----
-2828
-7452
-87

query I rowsort
SELECT + col2 + + 90 AS col1 FROM tab1 AS cor0
----
144
147
186

onlyif mysql # use DIV operator for integer division
query I rowsort label-7801
SELECT ALL col2 * col1 + tab2.col2 DIV col1 FROM tab2
----
1534
648
837

skipif mysql # not compatible
query I rowsort label-7801
SELECT ALL col2 * col1 + tab2.col2 / col1 FROM tab2
----
1534
648
837

query I rowsort
SELECT cor0.col0 AS col0 FROM tab2, tab1 cor0, tab2 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( col2 ) * - col0 col0 FROM tab2
----
189
2028
3002

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7804
SELECT ALL - CAST( col0 AS SIGNED ) * + col1 AS col0 FROM tab1
----
-1040
-640
-78

skipif mysql # not compatible
query I rowsort label-7804
SELECT ALL - CAST ( col0 AS INTEGER ) * + col1 AS col0 FROM tab1
----
-1040
-640
-78

query I rowsort
SELECT ALL + 93 + + tab1.col1 AS col1 FROM tab1
----
103
106
119

query I rowsort
SELECT tab2.col0 - - 75 AS col1 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to ba27326907f7a1adb9967125947e55ef

onlyif mysql # use DIV operator for integer division
query I rowsort label-7807
SELECT DISTINCT col0 DIV 56 FROM tab2
----
0
1

skipif mysql # not compatible
query I rowsort label-7807
SELECT DISTINCT col0 / 56 FROM tab2
----
0
1

query I rowsort
SELECT + col1 - col1 * - col0 AS col0 FROM tab0 AS cor0
----
2150
3492
8190

query I rowsort
SELECT 90 * - col2 + 0 FROM tab1 AS cor0
----
-4860
-5130
-8640

query I rowsort
SELECT + + cor0.col1 + col2 * - col2 FROM tab2 AS cor0
----
-1427
-617
-698

onlyif mysql # use DIV operator for integer division
query I rowsort label-7811
SELECT 78 DIV - col1 FROM tab1
----
-3
-6
-7

skipif mysql # not compatible
query I rowsort label-7811
SELECT 78 / - col1 FROM tab1
----
-3
-6
-7

query I rowsort
SELECT - tab1.col2 * + col1 - - col2 FROM tab1
----
-1152
-1350
-513

onlyif mysql # use DIV operator for integer division
query I rowsort label-7813
SELECT - 79 DIV col1 FROM tab2 AS cor0
----
-1
-2
-4

skipif mysql # not compatible
query I rowsort label-7813
SELECT - 79 / col1 FROM tab2 AS cor0
----
-1
-2
-4

query I rowsort
SELECT + col2 + + col1 * - cor0.col1 FROM tab1 AS cor0
----
-43
-622
-73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 - col0 * - col2 col1 FROM tab0 AS cor0
----
70
7387
816

query I rowsort
SELECT + cor0.col0 + + col0 - - col0 FROM tab1 AS cor0
----
192
240
9

query I rowsort
SELECT DISTINCT 8 * col1 + + col1 FROM tab1 AS cor0
----
117
234
90

query I rowsort
SELECT - + col0 * - col0 + + ( - col1 ) FROM tab1 cor0
----
-17
4086
6387

onlyif mysql # use DIV operator for integer division
query I rowsort label-7819
SELECT + col1 DIV cor0.col2 + - col1 AS col2 FROM tab1 cor0
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-7819
SELECT + col1 / cor0.col2 + - col1 AS col2 FROM tab1 cor0
----
-10
-13
-26

query I rowsort
SELECT DISTINCT - 72 * - cor0.col1 AS col0 FROM tab1 AS cor0
----
1872
720
936

query I rowsort
SELECT 91 * cor0.col2 FROM tab2 AS cor0
----
2366
2457
3458

query I rowsort
SELECT ALL - col2 * + col1 + cor0.col0 FROM tab0 AS cor0
----
-2814
-62
-7373

query I rowsort
SELECT ALL col1 * + 51 AS col0 FROM tab1
----
1326
510
663

query I rowsort
SELECT DISTINCT + 5 FROM tab1, tab2 AS cor0
----
5

query I rowsort
SELECT ALL + col1 - - col2 AS col0 FROM tab2
----
55
58
85

query I rowsort
SELECT ALL 77 - 2 AS col2 FROM tab0
----
75
75
75

query I rowsort
SELECT col0 + col1 + col0 FROM tab0
----
134
167
269

query I rowsort
SELECT - 28 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to c3e7fa3d059fc708f03c60e9cef0c115

query I rowsort
SELECT ALL - + ( ( + cor0.col0 ) ) AS col1 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT DISTINCT 27 AS col1 FROM tab1, tab1 AS cor0
----
27

query I rowsort
SELECT DISTINCT - 53 - col2 * col0 * + col2 AS col0 FROM tab0 AS cor0
----
-26189
-598489
-88

query I rowsort
SELECT DISTINCT + + col0 * ( - col0 ) - col1 AS col0 FROM tab2 cor0
----
-6143
-6258
-80

query I rowsort
SELECT ALL 93 + - col0 * 19 AS col0 FROM tab0
----
-1598
-363
-572

query I rowsort
SELECT - ( - col2 ) * - col2 * cor0.col2 FROM tab2 AS cor0
----
-17576
-19683
-54872

query I rowsort
SELECT DISTINCT col1 + col0 + - col1 AS col2 FROM tab0
----
24
35
89

query I rowsort
SELECT col0 * + col2 * + ( - col2 ) FROM tab2
----
-114076
-5103
-52728

query I rowsort
SELECT DISTINCT - col0 + 55 AS col2 FROM tab2 AS cor0
----
-23
-24
48

query I rowsort
SELECT ALL + - col0 - 52 * + col1 AS col0 FROM tab0 AS cor0
----
-4496
-4821
-5079

query I rowsort
SELECT + + cor0.col1 + + col0 * - col0 * cor0.col1 AS col1 FROM tab1 AS cor0
----
-208
-40950
-83187

query I rowsort
SELECT + col0 * 55 * - col2 FROM tab0 AS cor0
----
-1925
-401390
-43560

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + - 23 col0 FROM tab2 AS cor0
----
-16
55
56

query I rowsort
SELECT ALL - + col1 * cor0.col2 AS col0 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT ALL - 17 * col0 AS col1 FROM tab2
----
-119
-1326
-1343

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT cor0.col1 + - CAST ( + col2 AS REAL ) * col1 FROM tab0 AS cor0
----
-2752
-7371
0

query I rowsort
SELECT - col1 + col0 * col2 FROM tab2 AS cor0
----
158
1969
2985

query I rowsort
SELECT ALL + - cor0.col1 + + 57 * + col0 FROM tab2 cor0
----
368
4387
4486

query I rowsort
SELECT + col1 + - col0 FROM tab2 WHERE NOT + col1 / col0 + col1 / - col1 IN ( - tab2.col1 ) AND NOT NULL = NULL
----

query I rowsort
SELECT tab1.col2 * - col0 AS col1 FROM tab1
----
-162
-3648
-7680

query I rowsort
SELECT ALL + tab1.col0 * + col2 AS col1 FROM tab1
----
162
3648
7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-7850
SELECT DISTINCT - - col1 DIV - cor0.col0 + - col1 FROM tab1 cor0
----
-10
-13
-34

skipif mysql # not compatible
query I rowsort label-7850
SELECT DISTINCT - - col1 / - cor0.col0 + - col1 FROM tab1 cor0
----
-10
-13
-34

query I rowsort
SELECT + col1 + - cor0.col2 * - col0 AS col1 FROM tab1 AS cor0
----
188
3658
7693

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + col2 * + col2 col0 FROM tab2 AS cor0
----
1365
598
722

onlyif mysql # use DIV operator for integer division
query I rowsort label-7853
SELECT ALL + - col1 DIV cor0.col0 + + col1 AS col0 FROM tab1 AS cor0
----
10
13
18

skipif mysql # not compatible
query I rowsort label-7853
SELECT ALL + - col1 / cor0.col0 + + col1 AS col0 FROM tab1 AS cor0
----
10
13
18

query I rowsort
SELECT + col2 * tab1.col2 + col2 AS col1 FROM tab1
----
2970
3306
9312

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NULL ) < - col0 * col1 AND NULL IN ( col2 )
----

query I rowsort
SELECT col2 + col2 * + col1 FROM tab1 AS cor0
----
1344
1458
627

onlyif mysql # use DIV operator for integer division
query I rowsort label-7857
SELECT - col2 DIV - col2 + - col2 AS col2 FROM tab0
----
-32
-81
0

skipif mysql # not compatible
query I rowsort label-7857
SELECT - col2 / - col2 + - col2 AS col2 FROM tab0
----
-32
-81
0

query I rowsort
SELECT ALL - col0 + col2 + col1 * col2 FROM tab0 AS cor0
----
2847
63
7455

query I rowsort
SELECT ALL + 48 + col1 + col1 * col0 AS col1 FROM tab0 AS cor0
----
2198
3540
8238

onlyif mysql # use DIV operator for integer division
query I rowsort label-7860
SELECT ALL - col2 * cor0.col0 + cor0.col2 DIV + col1 - + col2 FROM tab0 AS cor0
----
-36
-7380
-825

skipif mysql # not compatible
query I rowsort label-7860
SELECT ALL - col2 * cor0.col0 + cor0.col2 / + col1 - + col2 FROM tab0 AS cor0
----
-36
-7380
-825

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 50 col1 FROM tab1 AS cor0
----
50

query I rowsort
SELECT DISTINCT + col2 * + col2 * col2 + cor0.col0 FROM tab1 AS cor0
----
157467
185257
884816

query I rowsort
SELECT ALL - 0 - + cor0.col1 FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT - col1 * + col2 + col2 * col0 AS col0 FROM tab0 AS cor0
----
-164
-2046
-62

query I rowsort
SELECT DISTINCT col0 * col0 * cor0.col1 FROM tab1 AS cor0
----
234
40960
83200

onlyif mysql # use DIV operator for integer division
query I rowsort label-7866
SELECT + ( tab1.col0 ) * col2 + col0 - + col1 DIV - col0 col1 FROM tab1
----
173
3712
7760

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7866
SELECT + ( tab1.col0 ) * col2 + col0 - + col1 / - col0 col1 FROM tab1
----
173
3712
7760

query I rowsort
SELECT col2 * col2 - col2 FROM tab1
----
2862
3192
9120

query I rowsort
SELECT + col0 * cor0.col0 - - col2 AS col0 FROM tab0 AS cor0
----
1226
609
8003

query I rowsort
SELECT ALL + col2 * + col1 + + col0 * - col2 FROM tab1 AS cor0
----
-3078
-6432
1242

query I rowsort
SELECT - 13 + - col0 AS col2 FROM tab1 AS cor0
----
-16
-77
-93

query I rowsort
SELECT cor0.col2 - cor0.col1 AS col1 FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT 12 * - tab0.col0 AS col0 FROM tab0
----
-1068
-288
-420

onlyif mysql # use DIV operator for integer division
query I rowsort label-7873
SELECT + col0 + tab1.col1 + + col2 DIV + col0 AS col0 FROM tab1
----
47
74
94

skipif mysql # not compatible
query I rowsort label-7873
SELECT + col0 + tab1.col1 + + col2 / + col0 AS col0 FROM tab1
----
47
74
94

query I rowsort
SELECT DISTINCT + ( tab0.col1 ) + - col0 FROM tab0
----
2
62

query I rowsort
SELECT - col2 * + col2 + col1 AS col2 FROM tab1 AS cor0
----
-2890
-3239
-9203

query I rowsort
SELECT + ( col1 ) * - col2 * ( - 85 ) AS col1 FROM tab0
----
241230
634270
8245

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( 70 + col0 * 43 ) col0 FROM tab1
----
199
2822
3510

query I rowsort
SELECT + 9 * + col0 + - 45 + - 68 AS col0 FROM tab2 AS cor0
----
-50
589
598

query I rowsort
SELECT ALL - + 71 + col1 FROM tab0 AS cor0
----
15
20
26

query I rowsort
SELECT 85 * - col2 FROM tab0 AS cor0
----
-2805
-6970
-85

query I rowsort
SELECT DISTINCT ( + col1 ) * - col2 FROM tab1
----
-1248
-1404
-570

query I rowsort
SELECT ALL 47 * + tab2.col1 * col2 FROM tab2
----
30362
39339
72098

query I rowsort
SELECT DISTINCT - 99 * + 48 FROM tab2
----
-4752

query I rowsort
SELECT - col2 * col1 + - ( ( col0 ) ) * col0 FROM tab0 AS cor0
----
-1322
-15383
-3414

query I rowsort
SELECT ALL 12 + - col0 * + tab2.col2 FROM tab2
----
-177
-2016
-2990

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 27 col1 FROM tab0 AS cor0
----
27
27
27

query I rowsort
SELECT 72 * col2 FROM tab2 AS cor0
----
1872
1944
2736

query I rowsort
SELECT col2 + - cor0.col2 * col1 * 33 FROM tab1 AS cor0
----
-18753
-41088
-46278

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 34 col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 1146d159f0b9b4378a8b738b963f7039

query I rowsort
SELECT ALL - col2 * - 38 AS col1 FROM tab1
----
2052
2166
3648

onlyif mysql # use DIV operator for integer division
query I rowsort label-7891
SELECT + + col2 + + col2 DIV - 5 FROM tab1 AS cor0
----
44
46
77

skipif mysql # not compatible
query I rowsort label-7891
SELECT + + col2 + + col2 / - 5 FROM tab1 AS cor0
----
44
46
77

onlyif mysql # use DIV operator for integer division
query I rowsort label-7892
SELECT DISTINCT + cor0.col0 DIV 53 AS col0 FROM tab0 cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-7892
SELECT DISTINCT + cor0.col0 / 53 AS col0 FROM tab0 cor0
----
0
1

query I rowsort
SELECT + col1 + 40 FROM tab2 AS cor0
----
57
71
99

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7894
SELECT col1 + - CAST( - col1 + - col1 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
30
39
78

skipif mysql # not compatible
query I rowsort label-7894
SELECT col1 + - CAST ( - col1 + - col1 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
30
39
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-7895
SELECT col1 DIV - ( + col1 ) FROM tab1 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7895
SELECT col1 / - ( + col1 ) FROM tab1 cor0
----
-1
-1
-1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7896
SELECT - 13 * col2 * + col2 + CAST( NULL AS SIGNED ) + - col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7896
SELECT - 13 * col2 * + col2 + CAST ( NULL AS INTEGER ) + - col1 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 64 * + cor0.col2 AS col1 FROM tab2 AS cor0
----
1664
1728
2432

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 32 + - col1 * col2 col0 FROM tab2 AS cor0
----
-1502
-614
-805

query I rowsort
SELECT + ( + col0 ) * - col0 AS col0 FROM tab0 AS cor0
----
-1225
-576
-7921

query I rowsort
SELECT + col1 * + cor0.col0 + - col2 + col1 * + ( col1 * + col1 ) AS col0 FROM tab0 AS cor0
----
638087
761588
916067

query I rowsort
SELECT cor0.col0 * - 45 FROM tab1 AS cor0
----
-135
-2880
-3600

query I rowsort
SELECT + + col0 - col0 AS col2 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7903
SELECT CAST( + 10 AS SIGNED ) + + col0 + col1 FROM tab0
----
120
142
190

skipif mysql # not compatible
query I rowsort label-7903
SELECT CAST ( + 10 AS INTEGER ) + + col0 + col1 FROM tab0
----
120
142
190

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7904
SELECT CAST( NULL AS SIGNED ) - col2 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7904
SELECT CAST ( NULL AS INTEGER ) - col2 AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7905
SELECT - 79 * cor0.col1 - col1 * - CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7905
SELECT - 79 * cor0.col1 - col1 * - CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 41 + + col0 FROM tab1 AS cor0
----
105
121
44

query I rowsort
SELECT ALL - col1 * col1 * - col0 + col2 * - cor0.col2 FROM tab1 AS cor0
----
-888
3151
4304

query I rowsort
SELECT - + col1 * cor0.col2 + - col2 FROM tab1 AS cor0
----
-1344
-1458
-627

query I rowsort
SELECT - 15 * col0 AS col2 FROM tab1 AS cor0
----
-1200
-45
-960

query I rowsort
SELECT + 65 - - col1 AS col1 FROM tab0 AS cor0
----
151
156
162

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7911
SELECT ALL + CAST( NULL AS SIGNED ) * 5 + - col1 col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7911
SELECT ALL + CAST ( NULL AS INTEGER ) * 5 + - col1 col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col2 * + 33 + + col2 * 98 AS col0 FROM tab0 AS cor0
----
10742
131
4323

query I rowsort
SELECT ALL ( - cor0.col2 ) * + 27 AS col1 FROM tab2 AS cor0
----
-1026
-702
-729

onlyif mysql # use DIV operator for integer division
query I rowsort label-7914
SELECT DISTINCT + cor0.col1 DIV + col1 col1 FROM tab1 AS cor0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7914
SELECT DISTINCT + cor0.col1 / + col1 col1 FROM tab1 AS cor0
----
1

query I rowsort
SELECT col0 * - col2 + - 80 FROM tab2 AS cor0
----
-2108
-269
-3082

query I rowsort
SELECT ALL - - col1 * + col2 + 20 AS col0 FROM tab1 cor0
----
1268
1424
590

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7917
SELECT ALL CAST( NULL AS DECIMAL ) / + col0 col0 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7917
SELECT ALL CAST ( NULL AS REAL ) / + col0 col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7918
SELECT ALL - CAST( 32 AS SIGNED ) FROM tab0, tab1 AS cor0
----
9 values hashing to ef8f93119983b962f4c81381ebf4b1e6

skipif mysql # not compatible
query I rowsort label-7918
SELECT ALL - CAST ( 32 AS INTEGER ) FROM tab0, tab1 AS cor0
----
9 values hashing to ef8f93119983b962f4c81381ebf4b1e6

query I rowsort
SELECT DISTINCT col1 - cor0.col0 AS col1 FROM tab0 AS cor0
----
2
62

query I rowsort
SELECT + col2 * 77 AS col0 FROM tab2 AS cor0
----
2002
2079
2926

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab2 AS cor0, tab2 cor1, tab1, tab1 AS cor2
----
3645 values hashing to 6156c969b7e054b8a333fdb86aee82f2

query I rowsort
SELECT - + 39 * cor0.col2 + col1 FROM tab1 AS cor0
----
-2080
-2213
-3731

query I rowsort
SELECT + cor0.col1 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

query I rowsort
SELECT + col2 - + 30 FROM tab0
----
-29
3
52

query I rowsort
SELECT col0 + - ( - 68 ) FROM tab1
----
132
148
71

query I rowsort
SELECT DISTINCT - col2 + + col1 AS col1 FROM tab0 cor0
----
53
9
96

query I rowsort
SELECT ALL - + col1 + + 92 FROM tab0 cor0
----
-5
1
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 + - col0 * + cor0.col2 col1 FROM tab2 AS cor0
----
-158
-1969
-2985

query I rowsort
SELECT DISTINCT + col1 * 75 AS col1 FROM tab0 AS cor0
----
6450
6825
7275

query I rowsort
SELECT - col2 + ( 56 + + col0 ) AS col2 FROM tab0 AS cor0
----
47
63
90

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7931
SELECT ALL ( - col2 ) + CAST( NULL AS SIGNED ) + - 71 * + col2 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7931
SELECT ALL ( - col2 ) + CAST ( NULL AS INTEGER ) + - 71 * + col2 AS col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-7932
SELECT ALL + cor0.col0 - 22 DIV + 22 FROM tab2 AS cor0
----
6
77
78

skipif mysql # not compatible
query I rowsort label-7932
SELECT ALL + cor0.col0 - 22 / + 22 FROM tab2 AS cor0
----
6
77
78

query I rowsort
SELECT ALL - col1 * 60 - - 88 AS col2 FROM tab0 AS cor0
----
-5072
-5372
-5732

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7934
SELECT col2 + - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7934
SELECT col2 + - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - + tab1.col2 FROM tab1, tab2, tab0 AS cor0, tab0
----
81 values hashing to 2df272448a67587d4635afedff278dcc

query I rowsort
SELECT + - 60 + + 47 AS col1 FROM tab1 AS cor0
----
-13
-13
-13

query I rowsort
SELECT ALL - cor0.col0 + col0 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT 12 * - 17 AS col2 FROM tab0
----
-204
-204
-204

query I rowsort
SELECT DISTINCT ( ( col2 ) ) * + tab1.col0 FROM tab1
----
162
3648
7680

query I rowsort
SELECT col1 * - ( - tab2.col1 ) FROM tab2
----
289
3481
961

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7941
SELECT DISTINCT 45 * + 96 * col0 - - CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7941
SELECT DISTINCT 45 * + 96 * col0 - - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query I rowsort
SELECT 76 + col0 AS col1 FROM tab1 cor0
----
140
156
79

query I rowsort
SELECT - col0 * - col1 - cor0.col0 FROM tab1 AS cor0
----
576
75
960

onlyif mysql # use DIV operator for integer division
query I rowsort label-7944
SELECT col0 DIV - col1 + col2 * col0 FROM tab2 AS cor0
----
189
2027
2998

skipif mysql # not compatible
query I rowsort label-7944
SELECT col0 / - col1 + col2 * col0 FROM tab2 AS cor0
----
189
2027
2998

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 47 col1 FROM tab1 AS cor0
----
47
47
47

query I rowsort
SELECT ( col1 + col0 * 8 ) AS col2 FROM tab2
----
649
683
87

query I rowsort
SELECT ALL 36 + tab2.col2 - + col1 AS col2 FROM tab2
----
3
32
57

query I rowsort
SELECT ( + 33 ) - + col0 AS col1 FROM tab2
----
-45
-46
26

query I rowsort
SELECT DISTINCT 41 AS col2 FROM tab2, tab1 AS cor0
----
41

query I rowsort
SELECT ALL cor1.col1 AS col0 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c61d27a0022e6d022371dc58819ab272

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - cor0.col1 + col2 col1 FROM tab2 cor0
----
-33
-4
21

query I rowsort
SELECT + + cor0.col0 * - col0 - + 98 AS col0 FROM tab2 AS cor0
----
-147
-6182
-6339

query I rowsort
SELECT ALL cor0.col1 * - col0 AS col1 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT ALL + - col2 * + cor0.col1 AS col2 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT + + cor0.col1 + cor0.col0 * - 87 * 25 FROM tab0 AS cor0
----
-193484
-52114
-76028

query I rowsort
SELECT - 52 + - col2 * + col1 * col1 FROM tab2 AS cor0
----
-11034
-25999
-90558

onlyif mysql # use DIV operator for integer division
query I rowsort label-7957
SELECT ALL + + cor0.col0 * col0 DIV ( + col0 ) FROM tab2 AS cor0
----
7
78
79

skipif mysql # not compatible
query I rowsort label-7957
SELECT ALL + + cor0.col0 * col0 / ( + col0 ) FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT ALL + + 8 + col2 AS col0 FROM tab2 AS cor0
----
34
35
46

query I rowsort
SELECT DISTINCT tab1.col1 AS col2 FROM tab1, tab0 AS cor0, tab2 cor1
----
10
13
26

onlyif mysql # use DIV operator for integer division
query I rowsort label-7960
SELECT DISTINCT col1 * tab2.col2 + + 93 DIV - 17 FROM tab2
----
1529
641
832

skipif mysql # not compatible
query I rowsort label-7960
SELECT DISTINCT col1 * tab2.col2 + + 93 / - 17 FROM tab2
----
1529
641
832

query I rowsort
SELECT 25 + + col0 * - col2 + - tab1.col2 FROM tab1
----
-191
-3680
-7751

query I rowsort
SELECT DISTINCT + col2 + col0 * col1 AS col2 FROM tab2 AS cor0
----
1381
244
4628

query I rowsort
SELECT + col1 * - col1 * col0 AS col2 FROM tab1 AS cor0
----
-13520
-2028
-6400

query I rowsort
SELECT ALL + 30 + col1 AS col0 FROM tab0 cor0
----
116
121
127

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7965
SELECT DISTINCT CAST( NULL AS SIGNED ) col0 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7965
SELECT DISTINCT CAST ( NULL AS INTEGER ) col0 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
NULL

query I rowsort
SELECT DISTINCT - + 63 FROM tab1 cor0
----
-63

query I rowsort
SELECT - cor0.col1 - - col2 AS col1 FROM tab2 AS cor0
----
-33
-4
21

query I rowsort
SELECT - col2 * 21 + - ( - col0 * col0 ) FROM tab0 AS cor0
----
-117
1204
6199

query I rowsort
SELECT ALL - cor0.col2 * + col0 * + col2 AS col2 FROM tab2 AS cor0
----
-114076
-5103
-52728

query I rowsort
SELECT - + col0 * + col1 * - 11 + cor0.col2 AS col2 FROM tab2 AS cor0
----
14811
2414
50648

query I rowsort
SELECT ALL + + col2 + - col0 * col1 AS col2 FROM tab1 AS cor0
----
-24
-583
-944

query I rowsort
SELECT DISTINCT - col1 + + 38 FROM tab1 AS cor0
----
12
25
28

query I rowsort
SELECT + col2 + col1 + cor0.col0 * col2 AS col2 FROM tab0 cor0
----
133
7471
911

query I rowsort
SELECT ALL + col0 + - ( - 27 ) * col0 FROM tab2 AS cor0
----
196
2184
2212

query I rowsort
SELECT - col2 + - ( + col0 ) FROM tab0 AS cor0
----
-171
-36
-57

query I rowsort
SELECT cor0.col2 FROM tab1 AS cor0 CROSS JOIN tab2, tab2 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT + 45 * - cor0.col1 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 95c99481bf8bca4ff968ae3b9eb1e84f

query I rowsort
SELECT ALL col1 * - ( 31 ) + + col1 - + 42 FROM tab1 AS cor0
----
-342
-432
-822

query I rowsort
SELECT + col0 * - 1 + ( + col2 ) AS col0 FROM tab2 AS cor0
----
-41
-52
20

query I rowsort
SELECT DISTINCT - + col2 * ( - col2 ) AS col0 FROM tab2 cor0
----
1444
676
729

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7981
SELECT - - col2 + + CAST( - col0 AS SIGNED ) * - col2 AS col1 FROM tab0 AS cor0
----
36
7380
825

skipif mysql # not compatible
query I rowsort label-7981
SELECT - - col2 + + CAST ( - col0 AS INTEGER ) * - col2 AS col1 FROM tab0 AS cor0
----
36
7380
825

query I rowsort
SELECT cor0.col0 + - col0 * - col2 FROM tab1 cor0
----
165
3712
7760

query I rowsort
SELECT DISTINCT - 85 * 17 AS col1 FROM tab0 AS cor0
----
-1445

query I rowsort
SELECT - 54 * col0 AS col0 FROM tab1 AS cor0
----
-162
-3456
-4320

query I rowsort
SELECT DISTINCT - + 13 + - ( - col2 ) FROM tab1 AS cor0
----
41
44
83

query I rowsort
SELECT ALL col2 * 61 + + col0 FROM tab1 AS cor0
----
3297
3541
5936

onlyif mysql # use DIV operator for integer division
query I rowsort label-7987
SELECT DISTINCT 1 DIV 19 + + col1 - + cor0.col0 AS col2 FROM tab0 AS cor0
----
2
62

skipif mysql # not compatible
query I rowsort label-7987
SELECT DISTINCT 1 / 19 + + col1 - + cor0.col0 AS col2 FROM tab0 AS cor0
----
2
62

query I rowsort
SELECT - - 12 AS col0 FROM tab0 AS cor0
----
12
12
12

query I rowsort
SELECT ALL - cor0.col2 + col1 FROM tab0 cor0
----
53
9
96

query I rowsort
SELECT ALL - ( + col0 ) + col1 * 99 * 30 + + col2 * 77 FROM tab1 AS cor0
----
34025
45922
81375

query I rowsort
SELECT ALL + + ( - 74 ) + + col2 AS col2 FROM tab0 AS cor0
----
-41
-73
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + col1 * col0 col1 FROM tab1 AS cor0
----
24
583
944

query I rowsort
SELECT - - 87 + - col0 * + col0 AS col1 FROM tab2 AS cor0
----
-5997
-6154
38

query I rowsort
SELECT ALL 18 + + 22 AS col2 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to e4d10f7d6c34a281f524e45e82ebd2a0

query I rowsort
SELECT + cor0.col0 * 51 FROM tab0, tab0 AS cor0 CROSS JOIN tab2
----
27 values hashing to 3aec83df1f446131fa0aa88f77fa3f6c

query I rowsort
SELECT - col0 * - col2 AS col1 FROM tab0 WHERE col0 * col1 + - col2 <> ( + col0 * col0 )
----
35
7298
792

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col1 * - col1 + col1 * col2 BETWEEN NULL AND + tab2.col2
----
79
17
38

query I rowsort
SELECT col2 * + col2 - col0 AS col0 FROM tab1
----
2913
3185
9136

query I rowsort
SELECT DISTINCT col1 + + col1 * col2 - col2 FROM tab2
----
1567
625
841

query I rowsort
SELECT DISTINCT col0 + - col1 - col0 FROM tab0
----
-86
-91
-97

query I rowsort
SELECT ALL col2 * + col2 * col2 AS col0 FROM tab2
----
17576
19683
54872

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col2 FROM tab0 WHERE col0 + col2 BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - col1 ) NOT IN ( col1 )
----

query I rowsort
SELECT tab2.col1 * col1 + + col1 FROM tab2
----
306
3540
992

query I rowsort
SELECT col1 * + col1 + - col0 / + tab2.col2 FROM tab2 WHERE ( NULL ) BETWEEN col2 + - col1 AND - col1
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-8006
SELECT ALL + col0 DIV col1 AS col1 FROM tab2 WHERE - col1 <= col0 DIV col0
----
0
1
4

skipif mysql # not compatible
query I rowsort label-8006
SELECT ALL + col0 / col1 AS col1 FROM tab2 WHERE - col1 <= col0 / col0
----
0
1
4

query I rowsort
SELECT DISTINCT - col2 + col1 * - col2 FROM tab0
----
-2871
-7544
-98

query I rowsort
SELECT ALL col2 * col2 - - tab2.col1 FROM tab2
----
1461
735
760

query I rowsort
SELECT ALL - col0 - - col2 * tab1.col2 * + col0 AS col1 FROM tab1
----
207872
737200
8745

query I rowsort
SELECT - col0 * tab2.col1 + + col0 * - col1 AS col0 FROM tab2
----
-2686
-434
-9204

query I rowsort
SELECT DISTINCT tab2.col1 - - col1 AS col1 FROM tab2
----
118
34
62

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL NOT BETWEEN ( + col0 / col1 ) AND ( + tab0.col2 * + col1 + col1 )
----

query I rowsort
SELECT + col0 * - tab2.col2 * - col2 FROM tab2
----
114076
5103
52728

query I rowsort
SELECT ALL col2 + tab0.col1 - - col2 AS col1 FROM tab0
----
152
255
99

onlyif mysql # use DIV operator for integer division
query I rowsort label-8015
SELECT ALL col0 DIV col1 + col2 + - col2 AS col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8015
SELECT ALL col0 / col1 + col2 + - col2 AS col2 FROM tab0
----
0
0
0

query III rowsort
SELECT * FROM tab0 WHERE ( - col0 - col0 ) > NULL
----

query I rowsort
SELECT - tab1.col0 + + col0 * - col2 * tab1.col2 FROM tab1
----
-208000
-737360
-8751

query I rowsort
SELECT DISTINCT col0 * col0 * + col1 FROM tab0
----
118825
49536
720811

query I rowsort
SELECT ALL col0 * - col1 + col0 AS col1 FROM tab2 AS cor0
----
-1264
-210
-4524

query I rowsort
SELECT DISTINCT - col1 FROM tab1 WHERE NOT + col0 < ( col2 )
----
-10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 - col1 * col0 col0 FROM tab2 AS cor0
----
-1305
-190
-4576

query I rowsort
SELECT + col2 * col2 + - col2 AS col1 FROM tab2
----
1406
650
702

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NULL ) BETWEEN - col1 AND ( - col1 * col0 )
----

query I rowsort
SELECT DISTINCT tab2.col1 - - col2 * - col1 * + col1 FROM tab2
----
-10965
-25916
-90447

query I rowsort
SELECT ALL col2 * - col1 + - col0 FROM tab2
----
-1612
-725
-844

onlyif mysql # use DIV operator for integer division
query I rowsort label-8026
SELECT col2 * col0 - - col1 DIV col2 FROM tab1
----
162
3648
7680

skipif mysql # not compatible
query I rowsort label-8026
SELECT col2 * col0 - - col1 / col2 FROM tab1
----
162
3648
7680

query I rowsort
SELECT ALL - cor0.col1 * col0 / + col1 AS col2 FROM tab0 AS cor0 WHERE col0 / - col0 BETWEEN NULL AND + col0
----

query I rowsort
SELECT col1 * 46 FROM tab1 AS cor0
----
1196
460
598

query I rowsort
SELECT + + col2 * + ( + ( cor0.col0 ) ) FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT - - 61 - - col2 * - col1 AS col1 FROM tab1 AS cor0
----
-1187
-1343
-509

query I rowsort
SELECT DISTINCT 62 FROM tab0, tab0 cor0
----
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-8032
SELECT ALL - - col0 * col2 DIV - col1 AS col0 FROM tab2 AS cor0
----
-176
-34
-6

skipif mysql # not compatible
query I rowsort label-8032
SELECT ALL - - col0 * col2 / - col1 AS col0 FROM tab2 AS cor0
----
-176
-34
-6

query I rowsort
SELECT ALL + col1 * - 13 AS col0 FROM tab1 AS cor0
----
-130
-169
-338

query I rowsort
SELECT - - ( col0 ) * - col0 + - col1 AS col1 FROM tab1 AS cor0
----
-35
-4106
-6413

query I rowsort
SELECT DISTINCT - col1 + 20 FROM tab2 AS cor0
----
-11
-39
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( cor0.col2 ) col2 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT - - 64 + col0 * + col2 * - cor0.col2 FROM tab0 cor0
----
-26072
-598372
29

onlyif mysql # use DIV operator for integer division
query I rowsort label-8038
SELECT col0 DIV col2 + - 33 AS col0 FROM tab0 cor0
----
-32
-33
2

skipif mysql # not compatible
query I rowsort label-8038
SELECT col0 / col2 + - 33 AS col0 FROM tab0 cor0
----
-32
-33
2

onlyif mysql # use DIV operator for integer division
query I rowsort label-8039
SELECT - - cor0.col0 DIV col2 + CAST( 18 AS SIGNED ) * + cor0.col1 * col2 col0 FROM tab1 AS cor0
----
10261
22464
25272

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8039
SELECT - - cor0.col0 / col2 + CAST ( 18 AS INTEGER ) * + cor0.col1 * col2 col0 FROM tab1 AS cor0
----
10261
22464
25272

onlyif mysql # use DIV operator for integer division
query I rowsort label-8040
SELECT + - col1 DIV + 79 AS col0 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8040
SELECT + - col1 / + 79 AS col0 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ALL + col2 * ( 33 ) FROM tab2 AS cor0
----
1254
858
891

onlyif mysql # use DIV operator for integer division
query I rowsort label-8042
SELECT ALL - col1 + - col0 DIV col0 FROM tab0 AS cor0
----
-87
-92
-98

skipif mysql # not compatible
query I rowsort label-8042
SELECT ALL - col1 + - col0 / col0 FROM tab0 AS cor0
----
-87
-92
-98

query I rowsort
SELECT DISTINCT + col0 + - cor0.col2 AS col0 FROM tab0 cor0
----
-9
34
7

query I rowsort
SELECT cor0.col0 * 74 FROM tab2, tab0 AS cor0
----
9 values hashing to d3831550edf612ee63a444f598473667

query I rowsort
SELECT ALL - 8 + col2 FROM tab1
----
46
49
88

query I rowsort
SELECT DISTINCT - ( 82 ) AS col1 FROM tab2 AS cor0
----
-82

query I rowsort
SELECT ALL + 90 + ( - col2 ) AS col2 FROM tab1 AS cor0
----
-6
33
36

query I rowsort
SELECT - ( col1 ) * - col2 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT DISTINCT + + 18 * col0 AS col1 FROM tab1 AS cor0
----
1152
1440
54

query I rowsort
SELECT - ( 12 ) * col1 - col1 * + 5 AS col1 FROM tab2 cor0
----
-1003
-289
-527

query I rowsort
SELECT ALL + - ( - col0 ) + - col1 FROM tab1 AS cor0
----
-23
54
67

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8052
SELECT ALL + CAST( col2 AS SIGNED ) * col0 FROM tab2 cor0
----
189
2028
3002

skipif mysql # not compatible
query I rowsort label-8052
SELECT ALL + CAST ( col2 AS INTEGER ) * col0 FROM tab2 cor0
----
189
2028
3002

query I rowsort
SELECT DISTINCT ( 60 ) FROM tab1 AS cor0
----
60

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8054
SELECT - CAST( NULL AS SIGNED ) * 11 + - col2 + + 61 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8054
SELECT - CAST ( NULL AS INTEGER ) * 11 + - col2 + + 61 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8055
SELECT ALL - + CAST( NULL AS SIGNED ) + cor0.col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8055
SELECT ALL - + CAST ( NULL AS INTEGER ) + cor0.col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - col0 + - col0 * - col2 + col1 * 85 FROM tab0 AS cor0
----
14944
8078
8245

query I rowsort
SELECT - 55 + + 82 + col2 AS col2 FROM tab2 AS cor0
----
53
54
65

query I rowsort
SELECT DISTINCT - 26 + - col0 * - col1 FROM tab2 AS cor0
----
1317
191
4576

query I rowsort
SELECT - cor0.col2 + col0 * - col1 FROM tab1 AS cor0
----
-1136
-132
-697

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( + col1 ) * ( cor0.col1 ) + + cor0.col1 * + col0 + col2 col1 FROM tab1 AS cor0
----
-544
597
967

query I rowsort
SELECT ALL + 37 * col1 AS col0 FROM tab2 AS cor0
----
1147
2183
629

query I rowsort
SELECT ALL + ( col1 ) + ( + col2 ) * col1 FROM tab2 AS cor0
----
1593
663
868

query I rowsort
SELECT ALL + - col2 * - col1 + ( col1 ) AS col1 FROM tab1 cor0
----
1261
1430
580

query I rowsort
SELECT ALL + - col1 * cor0.col1 AS col1 FROM tab0 AS cor0
----
-7396
-8281
-9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-8065
SELECT DISTINCT col1 DIV col0 + + col1 + + 44 AS col2 FROM tab1
----
54
57
78

skipif mysql # not compatible
query I rowsort label-8065
SELECT DISTINCT col1 / col0 + + col1 + + 44 AS col2 FROM tab1
----
54
57
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 93 * - col1 + 43 + col1 * cor0.col2 col0 FROM tab2 AS cor0
----
2270
3763
7064

onlyif mysql # use DIV operator for integer division
query I rowsort label-8067
SELECT DISTINCT + col2 DIV + 35 + col1 * col2 FROM tab1 AS cor0
----
1250
1405
571

skipif mysql # not compatible
query I rowsort label-8067
SELECT DISTINCT + col2 / + 35 + col1 * col2 FROM tab1 AS cor0
----
1250
1405
571

query I rowsort
SELECT col2 * + ( + 99 ) FROM tab1 cor0
----
5346
5643
9504

query I rowsort
SELECT DISTINCT + cor0.col0 * col0 * - 17 AS col2 FROM tab0 AS cor0
----
-134657
-20825
-9792

query I rowsort
SELECT DISTINCT + 53 AS col1 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
53

query I rowsort
SELECT ALL col2 * + ( col2 ) + col2 FROM tab1 AS cor0
----
2970
3306
9312

query I rowsort
SELECT ALL + col2 * 16 + 90 AS col0 FROM tab0 AS cor0
----
106
1402
618

query I rowsort
SELECT ALL + col2 * + 24 * col2 FROM tab1 AS cor0
----
221184
69984
77976

query I rowsort
SELECT DISTINCT col1 * + col2 - - col1 AS col0 FROM tab1
----
1261
1430
580

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + col0 * col1 col1 FROM tab2
----
1360
248
4661

query I rowsort
SELECT ALL - cor0.col1 * + 33 AS col0 FROM tab2 AS cor0
----
-1023
-1947
-561

query I rowsort
SELECT ALL + col2 + - 45 * + col0 AS col1 FROM tab0 AS cor0
----
-1047
-1574
-3923

query I rowsort
SELECT + + col1 - col0 AS col0 FROM tab2 cor0
----
-19
-62
24

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8079
SELECT ALL - CAST( NULL AS SIGNED ) + - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8079
SELECT ALL - CAST ( NULL AS INTEGER ) + - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 * - col0 + - col1 * - col2 FROM tab2 AS cor0
----
-4550
-5595
788

query I rowsort
SELECT ALL + col1 * col2 * + col0 + col1 FROM tab1
----
36490
4238
99853

query I rowsort
SELECT ALL - col2 * + 31 + ( + col1 + col0 ) * + 44 AS col1 FROM tab2
----
3046
5222
835

onlyif mysql # use DIV operator for integer division
query I rowsort label-8083
SELECT - col2 * + col2 - col2 DIV col0 FROM tab0 AS cor0
----
-1
-1090
-6724

skipif mysql # not compatible
query I rowsort label-8083
SELECT - col2 * + col2 - col2 / col0 FROM tab0 AS cor0
----
-1
-1090
-6724

query I rowsort
SELECT DISTINCT + 13 AS col1 FROM tab1, tab1 AS cor0
----
13

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( col1 AS REAL ) * col1 + + tab2.col2 + - tab2.col1 FROM tab2
----
310
3448
957

query I rowsort
SELECT DISTINCT + 56 * - col2 AS col2 FROM tab0
----
-1848
-4592
-56

query I rowsort
SELECT - ( - 73 ) + tab0.col1 AS col0 FROM tab0
----
159
164
170

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 35 - - col1 col1 FROM tab1 AS cor0
----
45
48
61

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8089
SELECT DISTINCT - + ( - 75 ) * - col0 + CAST( ( col1 ) AS SIGNED ) + + CAST( NULL AS SIGNED ) * + col2 AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8089
SELECT DISTINCT - + ( - 75 ) * - col0 + CAST ( ( col1 ) AS INTEGER ) + + CAST ( NULL AS INTEGER ) * + col2 AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL - col0 * + col2 - + col2 * + col0 FROM tab1 AS cor0
----
-15360
-324
-7296

query I rowsort
SELECT 83 * - col1 AS col1 FROM tab0
----
-7138
-7553
-8051

query I rowsort
SELECT DISTINCT ( 86 ) FROM tab2
----
86

query I rowsort
SELECT col2 + col1 * col2 FROM tab0
----
2871
7544
98

query I rowsort
SELECT tab0.col0 * - col1 + col1 AS col1 FROM tab0
----
-1978
-3298
-8008

query I rowsort
SELECT ALL 38 * + col1 AS col2 FROM tab2
----
1178
2242
646

query I rowsort
SELECT DISTINCT + col2 * col0 * col2 FROM tab0 AS cor0
----
26136
35
598436

query I rowsort
SELECT ALL - col0 * ( col1 * col2 ) + + 42 * 74 AS col0 FROM tab0 AS cor0
----
-287
-65004
-661010

onlyif mysql # use DIV operator for integer division
query I rowsort label-8098
SELECT DISTINCT - col0 DIV 50 FROM tab2 cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-8098
SELECT DISTINCT - col0 / 50 FROM tab2 cor0
----
-1
0

query I rowsort
SELECT ALL + - col0 * 14 + col0 FROM tab2 AS cor0
----
-1014
-1027
-91

query I rowsort
SELECT 90 * - 11 AS col1 FROM tab0, tab2 cor0
----
9 values hashing to 2cf73049c6ba157d2b9e65e918d609ab

query I rowsort
SELECT - + col1 + col1 * + col0 AS col2 FROM tab0 AS cor0
----
1978
3298
8008

query I rowsort
SELECT ALL + col1 + + 77 FROM tab0 AS cor0
----
163
168
174

query I rowsort
SELECT ALL - col0 + + 52 FROM tab0 AS cor0
----
-37
17
28

query I rowsort
SELECT ALL - - col2 * - ( 59 ) * col2 FROM tab2 cor0
----
-39884
-43011
-85196

query I rowsort
SELECT DISTINCT - col0 * 59 - - 24 AS col0 FROM tab0 AS cor0
----
-1392
-2041
-5227

query I rowsort
SELECT DISTINCT - 60 AS col0 FROM tab0, tab0 cor0, tab0 AS cor1
----
-60

query I rowsort
SELECT + + 12 * col2 AS col2 FROM tab2 AS cor0
----
312
324
456

query I rowsort
SELECT 0 * col2 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT ( col1 + + 79 ) AS col0 FROM tab2
----
110
138
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab1.col2 col1 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT + col1 + col1 * + cor0.col0 FROM tab2 AS cor0
----
1360
248
4661

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 7 + col0 col1 FROM tab1 AS cor0
----
-4
57
73

onlyif mysql # use DIV operator for integer division
query I rowsort label-8113
SELECT ALL - - col0 DIV ( 93 ) FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8113
SELECT ALL - - col0 / ( 93 ) FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - col2 + ( + col0 ) FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT ALL col1 + - 75 FROM tab0 cor0
----
11
16
22

query I rowsort
SELECT col0 - ( col2 ) FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT - col0 * cor0.col1 + + col0 * col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + col2 * - 25 - + 38 AS col0 FROM tab0 AS cor0
----
-2088
-63
-863

query I rowsort
SELECT - col1 + - cor0.col1 AS col2 FROM tab2 cor0
----
-118
-34
-62

query I rowsort
SELECT DISTINCT ( - col2 ) * col1 FROM tab0
----
-2838
-7462
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 14 col2 FROM tab1, tab0, tab2 AS cor0
----
14

query I rowsort
SELECT + col1 - + ( - col1 ) FROM tab0 cor0
----
172
182
194

query I rowsort
SELECT - cor0.col1 + 87 FROM tab1 AS cor0
----
61
74
77

query I rowsort
SELECT - - ( - ( col0 ) ) + - col1 FROM tab2 AS cor0
----
-137
-38
-96

query I rowsort
SELECT col2 + 96 AS col2 FROM tab0 cor0
----
129
178
97

query I rowsort
SELECT DISTINCT + 3 * - tab2.col2 AS col1 FROM tab2
----
-114
-78
-81

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8127
SELECT ALL CAST( NULL AS DECIMAL ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8127
SELECT ALL CAST ( NULL AS REAL ) AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - - col2 + - col0 * - col1 FROM tab1 AS cor0
----
1136
132
697

query I rowsort
SELECT DISTINCT - col2 * ( col0 ) AS col1 FROM tab0
----
-35
-7298
-792

query I rowsort
SELECT 77 * - col2 FROM tab1 AS cor0
----
-4158
-4389
-7392

query I rowsort
SELECT DISTINCT + - col2 * - col2 + + 24 AS col0 FROM tab0 AS cor0
----
1113
25
6748

query I rowsort
SELECT ALL + - cor0.col0 * col1 + - col2 + - ( + col2 + - col1 ) * - col0 FROM tab2 AS cor0
----
-272
-7202
278

query I rowsort
SELECT - 38 AS col2 FROM tab0 cor0
----
-38
-38
-38

query I rowsort
SELECT DISTINCT - - 3 - cor0.col2 FROM tab1 AS cor0
----
-51
-54
-93

query I rowsort
SELECT - col0 + + col1 * col2 FROM tab1 AS cor0
----
1168
1401
506

query I rowsort
SELECT col1 + + cor0.col0 * - 15 AS col0 FROM tab2 AS cor0
----
-1111
-1168
-74

query I rowsort
SELECT col0 * 84 * + col2 + - col1 AS col1 FROM tab0
----
2843
612941
66442

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( tab0.col1 ) col1 FROM tab0
----
86
91
97

query I rowsort
SELECT ALL - col0 + + col2 - ( + col0 ) FROM tab1 AS cor0
----
-64
-71
48

query I rowsort
SELECT col1 + col1 * - ( - col1 ) FROM tab1 AS cor0
----
110
182
702

onlyif mysql # use DIV operator for integer division
query I rowsort label-8141
SELECT ALL col0 * cor0.col0 * + col2 + col2 + col2 * col0 DIV + col0 AS col2 FROM tab0 AS cor0
----
1227
19074
649686

skipif mysql # not compatible
query I rowsort label-8141
SELECT ALL col0 * cor0.col0 * + col2 + col2 + col2 * col0 / + col0 AS col2 FROM tab0 AS cor0
----
1227
19074
649686

onlyif mysql # use DIV operator for integer division
query I rowsort label-8142
SELECT DISTINCT - cor0.col1 DIV - col1 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8142
SELECT DISTINCT - cor0.col1 / - col1 FROM tab0 AS cor0
----
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-8143
SELECT DISTINCT - + ( + col0 ) DIV col1 + - col1 * - col1 FROM tab2 AS cor0
----
285
3480
961

skipif mysql # not compatible
query I rowsort label-8143
SELECT DISTINCT - + ( + col0 ) / col1 + - col1 * - col1 FROM tab2 AS cor0
----
285
3480
961

query I rowsort
SELECT ALL + col0 * - cor0.col1 + col2 FROM tab1 AS cor0
----
-24
-583
-944

query I rowsort
SELECT col2 + ( col0 ) - - col0 FROM tab2
----
182
196
41

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8146
SELECT + CAST( NULL AS SIGNED ) - tab0.col2 AS col1 FROM tab0, tab1 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-8146
SELECT + CAST ( NULL AS INTEGER ) - tab0.col2 AS col1 FROM tab0, tab1 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT - col2 + 5 * col1 AS col0 FROM tab2 AS cor0
----
128
269
47

query I rowsort
SELECT - + col1 * col1 * + col2 FROM tab0 AS cor0
----
-244068
-679042
-9409

skipif mysql # not compatible
query I rowsort
SELECT col0 * CAST ( 81 AS REAL ) - - col1 AS col1 FROM tab2 AS cor0
----
598
6377
6416

query I rowsort
SELECT - col2 + + cor0.col0 * col1 FROM tab0 AS cor0
----
2031
3394
8017

query I rowsort
SELECT - + cor0.col2 + + 55 * col1 AS col1 FROM tab2 cor0
----
1678
3219
897

query I rowsort
SELECT DISTINCT - col2 + - ( - col2 ) FROM tab1 AS cor0
----
0

query I rowsort
SELECT + - ( 40 ) * cor0.col1 * - col0 + + col1 * - col0 AS col2 FROM tab0 AS cor0
----
132405
315861
80496

query I rowsort
SELECT - - 91 * - col2 * + col2 AS col2 FROM tab1 AS cor0
----
-265356
-295659
-838656

query I rowsort
SELECT DISTINCT + ( + col0 ) * + col0 AS col0 FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT ALL col1 + - 47 * + col2 FROM tab0 AS cor0
----
-1465
-3763
50

query I rowsort
SELECT ALL + - cor0.col1 + + col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT cor0.col0 * + 37 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 03926241d49439289a83c509cb84d356

query I rowsort
SELECT col0 * - col2 * ( col1 ) AS col1 FROM tab2 AS cor0
----
-119652
-51034
-5859

query I rowsort
SELECT - + cor0.col1 * - col1 AS col1 FROM tab0 cor0
----
7396
8281
9409

query I rowsort
SELECT DISTINCT col1 * col1 + col1 + + col2 AS col0 FROM tab2 AS cor0
----
1019
344
3566

onlyif mysql # use DIV operator for integer division
query I rowsort label-8162
SELECT 5 DIV + col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8162
SELECT 5 / + col1 FROM tab1
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8163
SELECT DISTINCT - col2 * + col1 * CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8163
SELECT DISTINCT - col2 * + col1 * CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL

query I rowsort
SELECT + col1 + + col2 + col0 AS col1 FROM tab0
----
133
143
262

query I rowsort
SELECT DISTINCT 52 * + col0 AS col2 FROM tab2
----
364
4056
4108

query I rowsort
SELECT ALL + - col1 * - 12 FROM tab2 AS cor0
----
204
372
708

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + tab1.col0 + col2 + col1 col0 FROM tab1
----
131
189
83

query I rowsort
SELECT DISTINCT - ( 60 ) AS col0 FROM tab1, tab2 cor0
----
-60

onlyif mysql # use DIV operator for integer division
query I rowsort label-8169
SELECT + tab0.col0 DIV + col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8169
SELECT + tab0.col0 / + col1 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL + col0 * 53 + - col2 AS col1 FROM tab2 AS cor0
----
344
4108
4149

query I rowsort
SELECT DISTINCT - + col0 * - 50 AS col1 FROM tab1 AS cor0
----
150
3200
4000

query I rowsort
SELECT DISTINCT - cor0.col1 + + cor0.col0 FROM tab2, tab0 cor0
----
-2
-62

query I rowsort
SELECT - + col1 * col2 * col2 + cor0.col2 AS col1 FROM tab1 AS cor0
----
-119712
-32433
-75762

query I rowsort
SELECT 26 AS col0 FROM tab0, tab1 cor0, tab0 AS cor1, tab0 AS cor2
----
81 values hashing to 8b6a624eb92fb019d9664318e519f062

query I rowsort
SELECT ( + 61 + col0 ) FROM tab0
----
150
85
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8176
SELECT DISTINCT - CAST( + tab2.col1 AS SIGNED ) FROM tab2
----
-17
-31
-59

skipif mysql # not compatible
query I rowsort label-8176
SELECT DISTINCT - CAST ( + tab2.col1 AS INTEGER ) FROM tab2
----
-17
-31
-59

onlyif mysql # use DIV operator for integer division
query I rowsort label-8177
SELECT col1 * - col1 + - col0 DIV col0 AS col1 FROM tab1
----
-101
-170
-677

skipif mysql # not compatible
query I rowsort label-8177
SELECT col1 * - col1 + - col0 / col0 AS col1 FROM tab1
----
-101
-170
-677

query I rowsort
SELECT ALL 76 FROM tab1, tab1 AS cor0
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5

query I rowsort
SELECT - 27 + - col0 AS col2 FROM tab2 AS cor0
----
-105
-106
-34

query I rowsort
SELECT ALL + + 30 + col2 FROM tab1 AS cor0
----
126
84
87

query I rowsort
SELECT 34 * col1 FROM tab1 AS cor0
----
340
442
884

query I rowsort
SELECT + 32 FROM tab0, tab1 AS cor0, tab2 AS cor1, tab2 cor2
----
81 values hashing to 6bef041528d0147be26f7de162c66a5f

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8183
SELECT - col2 + col2 * CAST( NULL AS DECIMAL ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8183
SELECT - col2 + col2 * CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( + cor0.col2 ) + 90 * + 3 AS col2 FROM tab2 AS cor0
----
296
297
308

query I rowsort
SELECT DISTINCT + - 32 AS col0 FROM tab1 AS cor0
----
-32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + + col1 col0 FROM tab1 cor0
----
29
74
93

query I rowsort
SELECT + ( col1 ) * cor0.col0 AS col0 FROM tab2 cor0
----
1343
217
4602

query I rowsort
SELECT ALL - - col1 + + col0 * col0 * col0 FROM tab0 AS cor0
----
13910
42972
705060

query I rowsort
SELECT DISTINCT - col0 + col2 AS col1 FROM tab0 cor0
----
-34
-7
9

query I rowsort
SELECT ( + col2 ) * col2 * 6 - 53 AS col0 FROM tab1
----
17443
19441
55243

query I rowsort
SELECT DISTINCT tab0.col0 * ( + col2 ) AS col1 FROM tab0
----
35
7298
792

query I rowsort
SELECT + 39 AS col2 FROM tab2, tab1 AS cor0, tab1 cor1
----
27 values hashing to ed2ebd9def3e2c38aa46cb3af60fe229

query I rowsort
SELECT DISTINCT - 28 + col2 * - cor0.col2 + - col0 FROM tab1 AS cor0
----
-2947
-3341
-9324

query I rowsort
SELECT - - 51 + - col0 * + 32 FROM tab0 cor0
----
-1069
-2797
-717

query I rowsort
SELECT DISTINCT + - col2 * col1 + 36 FROM tab2 AS cor0
----
-1498
-610
-801

query I rowsort
SELECT ALL col0 - + col0 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 76 col1 FROM tab1, tab1 AS cor0, tab1 cor1
----
27 values hashing to 7b2b08dd3f1adef028d3f40ef7c716da

query IIIIIIIII rowsort
SELECT ALL * FROM tab2, tab0, tab2 AS cor0 WHERE ( NULL ) = NULL
----

query I rowsort
SELECT DISTINCT - 11 * tab1.col2 FROM tab1, tab0, tab0 cor0
----
-1056
-594
-627

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8200
SELECT - CAST( NULL AS DECIMAL ) + col0 * + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8200
SELECT - CAST ( NULL AS REAL ) + col0 * + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT cor0.col2 * + col0 + col2 AS col0 FROM tab1 cor0
----
216
3705
7776

query I rowsort
SELECT ( 54 ) * col2 + - 73 * + col2 * - col0 AS col1 FROM tab0 AS cor0
----
2609
537182
59598

query I rowsort
SELECT - col2 * 71 FROM tab1 AS cor0
----
-3834
-4047
-6816

query I rowsort
SELECT - - ( + col0 ) + col0 FROM tab2 AS cor0
----
14
156
158

query I rowsort
SELECT DISTINCT col1 + 96 FROM tab0
----
182
187
193

onlyif mysql # use DIV operator for integer division
query I rowsort label-8206
SELECT ALL col0 DIV 3 + - 32 col1 FROM tab0
----
-21
-24
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8206
SELECT ALL col0 / 3 + - 32 col1 FROM tab0
----
-21
-24
-3

query I rowsort
SELECT tab0.col1 + - ( + 5 * + col0 ) FROM tab0
----
-34
-354
-78

query I rowsort
SELECT ALL + col1 + - ( 29 ) AS col1 FROM tab1
----
-16
-19
-3

onlyif mysql # use DIV operator for integer division
query I rowsort label-8209
SELECT ALL col2 DIV - 31 + 92 FROM tab1
----
89
91
91

skipif mysql # not compatible
query I rowsort label-8209
SELECT ALL col2 / - 31 + 92 FROM tab1
----
89
91
91

query I rowsort
SELECT tab2.col1 * tab2.col1 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 4a2f25e7025075a0ce048be425c35957

query I rowsort
SELECT + tab1.col0 AS col0 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8212
SELECT DISTINCT CAST( + cor0.col2 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-8212
SELECT DISTINCT CAST ( + cor0.col2 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT ALL + col1 - + cor0.col2 FROM tab1 AS cor0
----
-28
-47
-83

onlyif mysql # use DIV operator for integer division
query I rowsort label-8214
SELECT - - col0 + - ( - col2 + - 65 ) DIV col1 FROM tab0 AS cor0
----
25
35
90

skipif mysql # not compatible
query I rowsort label-8214
SELECT - - col0 + - ( - col2 + - 65 ) / col1 FROM tab0 AS cor0
----
25
35
90

query I rowsort
SELECT ALL cor0.col0 + - ( col0 ) FROM tab0 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-8216
SELECT DISTINCT + cor0.col2 - 78 DIV col0 FROM tab0 AS cor0
----
-1
30
82

skipif mysql # not compatible
query I rowsort label-8216
SELECT DISTINCT + cor0.col2 - 78 / col0 FROM tab0 AS cor0
----
-1
30
82

query I rowsort
SELECT DISTINCT + 60 AS col2 FROM tab2
----
60

query I rowsort
SELECT DISTINCT + 57 + - col1 FROM tab1 AS cor0
----
31
44
47

query I rowsort
SELECT ALL - + col0 * + col2 + - col1 AS col2 FROM tab2 cor0
----
-2087
-220
-3019

query I rowsort
SELECT - col2 * ( 53 ) AS col0 FROM tab1
----
-2862
-3021
-5088

query I rowsort
SELECT DISTINCT + 44 * - cor0.col2 AS col2 FROM tab1, tab0 cor0
----
-1452
-3608
-44

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * 61 col2 FROM tab2
----
1037
1891
3599

query I rowsort
SELECT cor0.col1 + + 26 AS col2 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to 6b21493ff4001c8834cfa8415dbced8f

query I rowsort
SELECT DISTINCT - 23 AS col1 FROM tab2, tab1 AS cor0
----
-23

onlyif mysql # use DIV operator for integer division
query I rowsort label-8225
SELECT DISTINCT - col0 DIV - 38 + col2 * + tab2.col2 * col0 FROM tab2
----
114078
5103
52730

skipif mysql # not compatible
query I rowsort label-8225
SELECT DISTINCT - col0 / - 38 + col2 * + tab2.col2 * col0 FROM tab2
----
114078
5103
52730

query I rowsort
SELECT ALL + 74 FROM tab0, tab0 cor0, tab1 AS cor1
----
27 values hashing to dc22979e6d261795bd3ce2990fdbbf82

query I rowsort
SELECT + + col1 * ( cor0.col1 ) AS col2 FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT - ( - col2 ) * + col0 AS col2 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT - ( col0 ) * - col1 AS col2 FROM tab0 AS cor0
----
2064
3395
8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-8230
SELECT col2 DIV + 74 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8230
SELECT col2 / + 74 FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col1 * cor0.col0 col0 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT DISTINCT col2 * ( 70 + tab2.col0 ) AS col1 FROM tab2
----
2079
3848
5662

onlyif mysql # use DIV operator for integer division
query I rowsort label-8233
SELECT ALL - col2 DIV 11 AS col2 FROM tab1
----
-4
-5
-8

skipif mysql # not compatible
query I rowsort label-8233
SELECT ALL - col2 / 11 AS col2 FROM tab1
----
-4
-5
-8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 + + col1 col0 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT + col1 * 98 AS col0 FROM tab1 AS cor0
----
1274
2548
980

query I rowsort
SELECT DISTINCT - - ( + cor0.col2 ) FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT ALL - 17 + + col0 FROM tab2 AS cor0
----
-10
61
62

query I rowsort
SELECT - col1 * + col0 + + col2 FROM tab2 cor0
----
-1305
-190
-4576

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - col0 - col2 col2 FROM tab2 AS cor0
----
-182
-196
-41

query I rowsort
SELECT + col2 * col0 + - col0 * col1 FROM tab0 cor0
----
-1272
-3360
-801

query I rowsort
SELECT - 96 + col2 FROM tab2 AS cor0
----
-58
-69
-70

query I rowsort
SELECT + - 30 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 56fa25f9fb8040460fe3c894000ea8fb

query I rowsort
SELECT - col1 * 42 + col2 AS col0 FROM tab0 AS cor0
----
-3579
-3740
-4073

query I rowsort
SELECT ALL - col1 * 56 + + ( col1 ) * col2 AS col0 FROM tab0 AS cor0
----
-1978
-5335
2366

query I rowsort
SELECT ALL col2 * col2 + + col1 FROM tab0 AS cor0
----
1175
6815
98

query I rowsort
SELECT col1 + - col2 * + ( - col2 + 6 ) AS col2 FROM tab0 AS cor0
----
6323
92
977

query I rowsort
SELECT - cor0.col2 + ( + 17 ) * - col1 AS col0 FROM tab1 AS cor0
----
-227
-317
-496

query I rowsort
SELECT DISTINCT - - col1 + col2 * + 46 * col1 AS col2 FROM tab1 cor0
----
26230
57421
64610

query I rowsort
SELECT DISTINCT + col0 * + 94 FROM tab1 cor0
----
282
6016
7520

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col2 * + col0 + + 57 col1 FROM tab1 AS cor0
----
219
3705
7737

query I rowsort
SELECT DISTINCT - col0 + 8 FROM tab1 AS cor0
----
-56
-72
5

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8252
SELECT ALL + col0 + CAST( NULL AS SIGNED ) * col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8252
SELECT ALL + col0 + CAST ( NULL AS INTEGER ) * col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 * ( - 55 ) FROM tab0 cor0
----
1815
4510
55

query I rowsort
SELECT ALL - cor0.col1 * 19 + - 60 AS col1 FROM tab0 AS cor0
----
-1694
-1789
-1903

query I rowsort
SELECT DISTINCT col0 - + col2 * - col0 AS col0 FROM tab1 cor0
----
165
3712
7760

query I rowsort
SELECT - - col1 - col1 * + 21 FROM tab0 cor0
----
-1720
-1820
-1940

onlyif mysql # use DIV operator for integer division
query I rowsort label-8257
SELECT DISTINCT - + 30 DIV + col1 + col2 FROM tab2 AS cor0
----
26
27
37

skipif mysql # not compatible
query I rowsort label-8257
SELECT DISTINCT - + 30 / + col1 + col2 FROM tab2 AS cor0
----
26
27
37

query I rowsort
SELECT ALL - col2 * - col2 * - col1 + + col1 AS col1 FROM tab1 cor0
----
-119795
-32480
-75790

query I rowsort
SELECT - col0 * - col0 + + col0 AS col0 FROM tab0 cor0
----
1260
600
8010

query I rowsort
SELECT + cor0.col0 * + col2 + col0 FROM tab0 AS cor0
----
70
7387
816

query I rowsort
SELECT - 0 AS col1 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

onlyif mysql # use DIV operator for integer division
query I rowsort label-8262
SELECT ALL col2 - + col2 DIV col2 FROM tab0
----
0
32
81

skipif mysql # not compatible
query I rowsort label-8262
SELECT ALL col2 - + col2 / col2 FROM tab0
----
0
32
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-8263
SELECT col1 * col2 + + col2 DIV - col2 FROM tab1
----
1247
1403
569

skipif mysql # not compatible
query I rowsort label-8263
SELECT col1 * col2 + + col2 / - col2 FROM tab1
----
1247
1403
569

query I rowsort
SELECT - ( + col1 ) * cor0.col0 - - col0 FROM tab0 AS cor0
----
-2040
-3360
-8010

query I rowsort
SELECT col2 + cor0.col2 * col1 AS col1 FROM tab2 AS cor0
----
1560
684
864

query I rowsort
SELECT DISTINCT 62 + col1 AS col1 FROM tab2 AS cor0
----
121
79
93

query I rowsort
SELECT - - 65 FROM tab0 AS cor0
----
65
65
65

query I rowsort
SELECT DISTINCT - ( - col1 ) + 51 * + col1 * + col2 FROM tab2 cor0
----
32963
42718
78293

query I rowsort
SELECT 70 * cor0.col1 FROM tab0, tab1, tab0 AS cor0, tab0 AS cor1
----
81 values hashing to 25f39e08aaafd7aeb9926339d453af24

onlyif mysql # use DIV operator for integer division
query I rowsort label-8270
SELECT col1 DIV ( col0 ) + - tab1.col1 col1 FROM tab1
----
-10
-13
-18

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8270
SELECT col1 / ( col0 ) + - tab1.col1 col1 FROM tab1
----
-10
-13
-18

query I rowsort
SELECT + + 80 * col1 FROM tab2 AS cor0
----
1360
2480
4720

query I rowsort
SELECT + ( - 54 * col0 ) AS col1 FROM tab2
----
-378
-4212
-4266

onlyif mysql # use DIV operator for integer division
query I rowsort label-8273
SELECT - col1 + + col2 DIV col2 FROM tab1
----
-12
-25
-9

skipif mysql # not compatible
query I rowsort label-8273
SELECT - col1 + + col2 / col2 FROM tab1
----
-12
-25
-9

query I rowsort
SELECT DISTINCT - + 62 AS col1 FROM tab2 AS cor0
----
-62

query I rowsort
SELECT ALL - 58 + + col2 * 34 FROM tab1 AS cor0
----
1778
1880
3206

query I rowsort
SELECT - tab1.col0 + 91 * + ( col2 ) AS col1 FROM tab1
----
4911
5123
8656

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 15 * col2 + col0 * - col1 col0 FROM tab1 AS cor0
----
215
400
732

onlyif mysql # use DIV operator for integer division
query I rowsort label-8278
SELECT - - 37 DIV - col0 + col0 * 82 * - col1 AS col1 FROM tab0 AS cor0
----
-169249
-278391
-664118

skipif mysql # not compatible
query I rowsort label-8278
SELECT - - 37 / - col0 + col0 * 82 * - col1 AS col1 FROM tab0 AS cor0
----
-169249
-278391
-664118

query I rowsort
SELECT 82 * 87 + cor0.col2 FROM tab2 AS cor0
----
7160
7161
7172

query I rowsort
SELECT DISTINCT col1 + - ( + col2 ) FROM tab2
----
-21
33
4

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8281
SELECT + CAST( NULL AS SIGNED ) + + col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8281
SELECT + CAST ( NULL AS INTEGER ) + + col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8282
SELECT CAST( NULL AS SIGNED ) / + col0 + col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8282
SELECT CAST ( NULL AS INTEGER ) / + col0 + col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT col0 * col2 + - col0 AS col1 FROM tab2
----
182
1950
2923

query I rowsort
SELECT ALL - - 15 + - cor0.col1 AS col1 FROM tab2 AS cor0
----
-16
-2
-44

query I rowsort
SELECT - - ( col1 ) + + col0 * - col1 FROM tab0 AS cor0
----
-1978
-3298
-8008

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * + col1 + + col1 col0 FROM tab1 AS cor0
----
1261
1430
580

query I rowsort
SELECT ALL - 4 + 39 * col1 + col2 FROM tab2 AS cor0
----
1232
2323
697

query I rowsort
SELECT DISTINCT + 30 - - col1 FROM tab2 AS cor0
----
47
61
89

query I rowsort
SELECT DISTINCT - - col2 + + 76 * col2 AS col0 FROM tab0 AS cor0
----
2541
6314
77

query I rowsort
SELECT ALL - - 59 + 61 + - cor0.col1 FROM tab2 AS cor0
----
103
61
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor2.col0 col1 FROM tab2, tab2 cor0, tab2 AS cor1, tab1 AS cor2
----
81 values hashing to 08e380e50b0cb64601bc84e5254deef4

query I rowsort
SELECT ALL + ( - 53 ) * - col0 AS col1 FROM tab0 cor0
----
1272
1855
4717

onlyif mysql # use DIV operator for integer division
query I rowsort label-8293
SELECT col1 * col1 + + col1 DIV col2 FROM tab0 cor0
----
7398
8282
9506

skipif mysql # not compatible
query I rowsort label-8293
SELECT col1 * col1 + + col1 / col2 FROM tab0 cor0
----
7398
8282
9506

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab1 AS cor0 CROSS JOIN tab1, tab2, tab1 AS cor1
----
3645 values hashing to 35707ade138fec4b370f5140a4cd2963

query I rowsort
SELECT + cor0.col1 + - col1 * col1 AS col1 FROM tab1 cor0
----
-156
-650
-90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 52 col1 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 76100d10f51995d20efdeb657e444d3c

query I rowsort
SELECT - 14 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to c2bf0e2420d22cd58d7ee3b30827afcc

query I rowsort
SELECT ALL + 91 * col2 AS col2 FROM tab0
----
3003
7462
91

query I rowsort
SELECT - 50 + + col0 FROM tab0 AS cor0
----
-15
-26
39

query I rowsort
SELECT col0 * - col0 + 46 FROM tab1 AS cor0
----
-4050
-6354
37

query I rowsort
SELECT ALL + - col1 + + col2 * col2 FROM tab2 AS cor0
----
1427
617
698

query I rowsort
SELECT DISTINCT - 7 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
-7

query I rowsort
SELECT ALL + 17 * + 9 FROM tab2, tab0 AS cor0
----
9 values hashing to a445e00df74bda4e6af4f1e4258ba685

query I rowsort
SELECT + col2 * col1 * col1 FROM tab0 AS cor0
----
244068
679042
9409

query I rowsort
SELECT DISTINCT - + cor0.col0 AS col1 FROM tab0 cor0
----
-24
-35
-89

query I rowsort
SELECT ALL - col2 * - 11 FROM tab2 AS cor0
----
286
297
418

query I rowsort
SELECT - + 50 FROM tab0, tab2 AS cor0
----
9 values hashing to c7432a968c8352c12996dfa54dd4b9e8

query I rowsort
SELECT + + col2 + col2 * + col0 * 24 FROM tab0 AS cor0
----
175234
19041
841

query I rowsort
SELECT 83 - + col0 FROM tab0 AS cor0
----
-6
48
59

query I rowsort
SELECT - - col2 + 11 FROM tab2 AS cor0
----
37
38
49

query I rowsort
SELECT + col1 + - 3 + col1 * 72 AS col0 FROM tab0 AS cor0
----
6275
6640
7078

query I rowsort
SELECT - col1 * col2 + col1 * col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + col1 + col2 * + 2 AS col0 FROM tab0
----
152
255
99

query I rowsort
SELECT DISTINCT cor0.col1 + + col0 * col0 AS col2 FROM tab1 AS cor0
----
35
4106
6413

query I rowsort
SELECT ALL col1 - cor0.col2 FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT - col2 AS col0 FROM tab2 AS cor0 WHERE NULL NOT IN ( col1 * col2 + col2 )
----

query I rowsort
SELECT DISTINCT col2 + + col2 * col0 FROM tab2 AS cor0
----
2054
216
3040

query I rowsort
SELECT cor0.col2 * + col0 + + col0 AS col2 FROM tab0 AS cor0
----
70
7387
816

query I rowsort
SELECT DISTINCT cor0.col2 AS col2 FROM tab0 AS cor0 WHERE NOT NULL < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * col1 + cor0.col0 * - col1 col2 FROM tab2 cor0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col0 BETWEEN ( col0 + + col0 ) AND NULL
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

query I rowsort
SELECT + col1 * - col2 + + col2 - + col1 * col2 FROM tab0
----
-14842
-193
-5643

query I rowsort
SELECT DISTINCT + col2 AS col1 FROM tab1 WHERE NOT NULL NOT IN ( col2 * tab1.col1 * - col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL >= ( NULL )
----

query I rowsort
SELECT + col0 * tab2.col0 + tab2.col0 + + col0 * col0 AS col0 FROM tab2
----
105
12246
12561

query I rowsort
SELECT col0 * col1 * + col0 + col1 FROM tab0 WHERE NULL < ( + col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN ( cor0.col2 * col0 * col0 + col0 ) AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - cor0.col0 * col2 col2 FROM tab2 AS cor0
----
-196
-2106
-3081

query I rowsort
SELECT ALL + col1 - col1 FROM tab0 WHERE NULL NOT IN ( - tab0.col0 * tab0.col0 )
----

query I rowsort
SELECT ALL - col1 * col0 * col0 FROM tab1
----
-234
-40960
-83200

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( + col1 )
----

query III rowsort
SELECT * FROM tab2 WHERE ( + col0 ) IN ( col2 ) AND NULL <> NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-8333
SELECT col2 DIV tab1.col0 AS col0 FROM tab1
----
0
1
18

skipif mysql # not compatible
query I rowsort label-8333
SELECT col2 / tab1.col0 AS col0 FROM tab1
----
0
1
18

query I rowsort
SELECT DISTINCT + col0 * tab2.col2 AS col1 FROM tab2
----
189
2028
3002

query I rowsort
SELECT DISTINCT + col0 * + tab2.col2 * + col1 AS col0 FROM tab2
----
119652
51034
5859

query I rowsort
SELECT + col1 * col1 * + cor0.col1 AS col0 FROM tab0 AS cor0
----
636056
753571
912673

query I rowsort
SELECT col2 + - col1 * cor0.col2 AS col0 FROM tab2 AS cor0
----
-1508
-608
-810

onlyif mysql # use DIV operator for integer division
query I rowsort label-8338
SELECT DISTINCT + col0 DIV col1 + col2 AS col0 FROM tab2
----
27
42

skipif mysql # not compatible
query I rowsort label-8338
SELECT DISTINCT + col0 / col1 + col2 AS col0 FROM tab2
----
27
42

query I rowsort
SELECT + - col1 * - col1 - + col0 * + col1 FROM tab1 cor0
----
-540
-871
598

query I rowsort
SELECT - col2 + cor0.col1 * + col1 FROM tab1 AS cor0
----
43
622
73

query I rowsort
SELECT + col0 + col0 * + col1 AS col1 FROM tab2 AS cor0
----
1422
224
4680

onlyif mysql # use DIV operator for integer division
query I rowsort label-8342
SELECT - col0 DIV col2 - col0 col0 FROM tab1 cor0
----
-3
-65
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8342
SELECT - col0 / col2 - col0 col0 FROM tab1 cor0
----
-3
-65
-80

query I rowsort
SELECT ALL - 73 + col0 AS col0 FROM tab0
----
-38
-49
16

query I rowsort
SELECT col2 * col0 * - 12 + col0 + + col1 AS col1 FROM tab0
----
-288
-87396
-9394

query I rowsort
SELECT 8 * - col0 AS col0 FROM tab0 AS cor0
----
-192
-280
-712

query I rowsort
SELECT - cor0.col1 * + col2 + + col2 * - 64 - col2 AS col2 FROM tab2 cor0
----
-2592
-3116
-3224

onlyif mysql # use DIV operator for integer division
query I rowsort label-8347
SELECT - - 92 + - col0 DIV - col2 col0 FROM tab0 AS cor0
----
127
92
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8347
SELECT - - 92 + - col0 / - col2 col0 FROM tab0 AS cor0
----
127
92
93

query I rowsort
SELECT ALL ( - col1 ) * 43 * + col2 FROM tab0 AS cor0
----
-122034
-320866
-4171

onlyif mysql # use DIV operator for integer division
query I rowsort label-8349
SELECT cor0.col0 * col0 DIV col1 FROM tab1 AS cor0
----
0
409
492

skipif mysql # not compatible
query I rowsort label-8349
SELECT cor0.col0 * col0 / col1 FROM tab1 AS cor0
----
0
409
492

query I rowsort
SELECT DISTINCT - col1 * 41 FROM tab0 AS cor0
----
-3526
-3731
-3977

query I rowsort
SELECT + col0 + ( + col0 * + col1 ) + 54 FROM tab0 AS cor0
----
2142
3484
8242

query I rowsort
SELECT col0 + ( col0 ) FROM tab0 cor0
----
178
48
70

query I rowsort
SELECT ALL - col1 * col1 * cor0.col1 FROM tab1 AS cor0
----
-1000
-17576
-2197

query I rowsort
SELECT DISTINCT + col2 * + col1 + + col1 AS col0 FROM tab2 AS cor0
----
1593
663
868

query I rowsort
SELECT + + col0 * - cor0.col0 * - cor0.col2 + cor0.col0 AS col2 FROM tab0 AS cor0
----
1260
19032
649611

query I rowsort
SELECT DISTINCT tab0.col2 * col2 - + col0 FROM tab0
----
-34
1065
6635

query I rowsort
SELECT DISTINCT + col1 + + cor0.col0 + - col2 AS col0 FROM tab0 AS cor0
----
131
77
98

query I rowsort
SELECT DISTINCT col2 - + 56 FROM tab0 AS cor0
----
-23
-55
26

query I rowsort
SELECT + col1 + + cor0.col2 * - col0 FROM tab0 AS cor0
----
-706
-7207
62

query I rowsort
SELECT DISTINCT + col1 * col2 * col1 FROM tab0 cor0
----
244068
679042
9409

query I rowsort
SELECT ALL col1 - + col0 * col1 FROM tab0
----
-1978
-3298
-8008

query III rowsort
SELECT * FROM tab0 WHERE + col2 NOT BETWEEN + col2 * - col2 * col1 AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE col1 > col0 / col2
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

query I rowsort
SELECT + col2 * col2 - col0 FROM tab0 WHERE NOT ( col0 ) NOT BETWEEN col0 * + col0 AND ( + col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col1 FROM tab1 WHERE ( - col0 * + col0 * - col2 ) NOT BETWEEN ( + col1 * - col2 ) AND NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-8366
SELECT ALL - 89 DIV + col0 FROM tab0 AS cor0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-8366
SELECT ALL - 89 / + col0 FROM tab0 AS cor0
----
-1
-2
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 - - tab1.col1 col0 FROM tab1
----
29
74
93

query I rowsort
SELECT DISTINCT - col0 + col2 AS col0 FROM tab1 WHERE NOT NULL IN ( - col1 * col1 )
----

query I rowsort
SELECT ALL + cor0.col1 + ( col2 ) * col1 FROM tab2 AS cor0
----
1593
663
868

query I rowsort
SELECT DISTINCT - + col1 * col2 - + 51 FROM tab2 AS cor0
----
-1585
-697
-888

onlyif mysql # use DIV operator for integer division
query I rowsort label-8371
SELECT - + col0 DIV - ( - ( - col0 ) ) AS col2 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8371
SELECT - + col0 / - ( - ( - col0 ) ) AS col2 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT ALL + col0 + 38 AS col2 FROM tab0 AS cor0
----
127
62
73

query I rowsort
SELECT cor2.col1 FROM tab1 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab1 AS cor2
----
81 values hashing to d7d3fabcafbed14f0d6ffd37195c971c

query I rowsort
SELECT - col0 * ( col2 ) AS col0 FROM tab2 cor0
----
-189
-2028
-3002

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8375
SELECT ALL col1 + - CAST( col1 AS SIGNED ) * - col1 FROM tab1 AS cor0
----
110
182
702

skipif mysql # not compatible
query I rowsort label-8375
SELECT ALL col1 + - CAST ( col1 AS INTEGER ) * - col1 FROM tab1 AS cor0
----
110
182
702

query I rowsort
SELECT DISTINCT - + col2 + col2 * col0 AS col1 FROM tab2 AS cor0
----
162
2002
2964

query I rowsort
SELECT col0 * - cor0.col0 + + col1 AS col0 FROM tab1 AS cor0
----
-4086
-6387
17

query I rowsort
SELECT col0 + 40 * - cor0.col2 AS col2 FROM tab2 AS cor0
----
-1073
-1441
-962

query I rowsort
SELECT DISTINCT + - col2 * - cor0.col1 AS col0 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT DISTINCT col2 + 41 * + col0 FROM tab1 AS cor0
----
177
2681
3376

query I rowsort
SELECT DISTINCT - cor0.col1 * - 67 AS col2 FROM tab2, tab2 cor0, tab2 AS cor1
----
1139
2077
3953

query I rowsort
SELECT - 2 FROM tab0, tab2 AS cor0, tab2, tab1 AS cor1
----
81 values hashing to fbbdc69ed4bc9a68f44d1ba867b620b3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 69 col0 FROM tab0 AS cor0
----
69

onlyif mysql # use DIV operator for integer division
query I rowsort label-8384
SELECT DISTINCT ( + 5 ) DIV col1 - + col0 AS col2 FROM tab2
----
-7
-78
-79

skipif mysql # not compatible
query I rowsort label-8384
SELECT DISTINCT ( + 5 ) / col1 - + col0 AS col2 FROM tab2
----
-7
-78
-79

query I rowsort
SELECT DISTINCT - col2 + + ( col1 ) * col2 FROM tab0
----
2805
7380
96

query I rowsort
SELECT ALL + col1 * + col2 + - ( + tab1.col1 ) * tab1.col0 + + col1 FROM tab1
----
-60
1352
221

onlyif mysql # use DIV operator for integer division
query I rowsort label-8387
SELECT DISTINCT - 51 DIV tab2.col0 + col1 AS col2 FROM tab2
----
17
24
59

skipif mysql # not compatible
query I rowsort label-8387
SELECT DISTINCT - 51 / tab2.col0 + col1 AS col2 FROM tab2
----
17
24
59

query I rowsort
SELECT DISTINCT col0 + - col1 - - cor0.col2 * + col0 AS col0 FROM tab1 AS cor0
----
139
3702
7747

query I rowsort
SELECT 3 + - col0 FROM tab1 AS cor0
----
-61
-77
0

query I rowsort
SELECT - col0 * cor0.col2 + 84 * ( + col2 ) * - ( + col0 ) FROM tab2 AS cor0
----
-16065
-172380
-255170

query I rowsort
SELECT DISTINCT - col2 * + tab2.col2 + + ( col2 ) AS col0 FROM tab2
----
-1406
-650
-702

query I rowsort
SELECT - 51 * + col2 FROM tab0
----
-1683
-4182
-51

query I rowsort
SELECT + + col2 * ( + col0 * - col2 ) + + col2 AS col0 FROM tab1 AS cor0
----
-207879
-737184
-8694

query I rowsort
SELECT DISTINCT cor1.col1 AS col1 FROM tab1, tab0 cor0, tab1 cor1
----
10
13
26

query I rowsort
SELECT - - cor0.col1 + 53 AS col2 FROM tab1 AS cor0
----
63
66
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-8396
SELECT tab1.col0 DIV + tab1.col2 + col2 AS col2 FROM tab1
----
54
58
96

skipif mysql # not compatible
query I rowsort label-8396
SELECT tab1.col0 / + tab1.col2 + col2 AS col2 FROM tab1
----
54
58
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8397
SELECT ALL CAST( NULL AS DECIMAL ) * tab2.col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8397
SELECT ALL CAST ( NULL AS REAL ) * tab2.col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT 35 + 41 * + col1 FROM tab0
----
3561
3766
4012

onlyif mysql # use DIV operator for integer division
query I rowsort label-8399
SELECT DISTINCT - + col0 * cor0.col2 DIV cor0.col0 FROM tab0 AS cor0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-8399
SELECT DISTINCT - + col0 * cor0.col2 / cor0.col0 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT - 39 * col1 FROM tab0 AS cor0
----
-3354
-3549
-3783

onlyif mysql # use DIV operator for integer division
query I rowsort label-8401
SELECT + + col1 DIV - 33 FROM tab2 cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-8401
SELECT + + col1 / - 33 FROM tab2 cor0
----
-1
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 * + col0 * col1 + - col2 col2 FROM tab0 AS cor0
----
118824
49503
720729

query I rowsort
SELECT + col2 * - col1 + + 55 * col2 * col0 FROM tab0 cor0
----
1828
393928
40722

query I rowsort
SELECT - + 66 AS col1 FROM tab1 AS cor0
----
-66
-66
-66

onlyif mysql # use DIV operator for integer division
query I rowsort label-8405
SELECT - 72 DIV - cor0.col1 + col1 AS col0 FROM tab2 AS cor0
----
21
33
60

skipif mysql # not compatible
query I rowsort label-8405
SELECT - 72 / - cor0.col1 + col1 AS col0 FROM tab2 AS cor0
----
21
33
60

query I rowsort
SELECT ALL - col2 * - col0 * + 5 FROM tab2 AS cor0
----
10140
15010
945

query I rowsort
SELECT ALL - ( col1 ) * + 83 AS col1 FROM tab0 AS cor0
----
-7138
-7553
-8051

query I rowsort
SELECT - 66 * col0 + + ( + col2 ) FROM tab2 AS cor0
----
-435
-5122
-5176

query I rowsort
SELECT DISTINCT col0 * 60 * col0 FROM tab1
----
245760
384000
540

onlyif mysql # use DIV operator for integer division
query I rowsort label-8410
SELECT col1 + cor0.col1 * ( col2 ) DIV col1 AS col2 FROM tab0 cor0
----
119
173
98

skipif mysql # not compatible
query I rowsort label-8410
SELECT col1 + cor0.col1 * ( col2 ) / col1 AS col2 FROM tab0 cor0
----
119
173
98

query I rowsort
SELECT - col2 + col1 * ( - col0 ) FROM tab0 AS cor0
----
-2097
-3396
-8181

query I rowsort
SELECT 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-8413
SELECT - CAST( NULL AS SIGNED ) AS col0 FROM tab1, tab0 AS cor0, tab0 AS cor1, tab2 AS cor2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

skipif mysql # not compatible
query I rowsort label-8413
SELECT - CAST ( NULL AS INTEGER ) AS col0 FROM tab1, tab0 AS cor0, tab0 AS cor1, tab2 AS cor2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

query I rowsort
SELECT ALL + - ( - 19 ) FROM tab1 AS cor0
----
19
19
19

query I rowsort
SELECT - + col0 * + col0 * + col1 + - 52 AS col1 FROM tab1 AS cor0
----
-286
-41012
-83252

query I rowsort
SELECT col1 * col2 * + col1 AS col1 FROM tab1
----
16224
36504
5700

query I rowsort
SELECT DISTINCT - + 22 + col1 FROM tab0 AS cor0
----
64
69
75

query I rowsort
SELECT ALL - - ( col0 ) + + col1 * 16 AS col2 FROM tab0 cor0
----
1400
1545
1587

onlyif mysql # use DIV operator for integer division
query I rowsort label-8419
SELECT DISTINCT + - col2 DIV - col2 AS col2 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8419
SELECT DISTINCT + - col2 / - col2 AS col2 FROM tab1 AS cor0
----
1

query I rowsort
SELECT ALL 49 * col0 + 54 * + col2 AS col0 FROM tab2 AS cor0
----
1801
5226
5923

query I rowsort
SELECT 5 * - tab0.col0 AS col2 FROM tab0
----
-120
-175
-445

query I rowsort
SELECT ALL + 33 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 76da8bc7cae18ecf856438f872430c80

query I rowsort
SELECT - 70 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 35707a5d99c98b2657c084a50ff1b073

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 67 col2 FROM tab1
----
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 * + col0 col0 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT + col2 + + 43 FROM tab0 AS cor0
----
125
44
76

query I rowsort
SELECT + + 85 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b

query I rowsort
SELECT ALL col2 * - ( tab1.col0 ) * tab1.col1 FROM tab1
----
-36480
-4212
-99840

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8429
SELECT + col1 * - CAST( + col2 AS SIGNED ) FROM tab0 AS cor0
----
-2838
-7462
-97

skipif mysql # not compatible
query I rowsort label-8429
SELECT + col1 * - CAST ( + col2 AS INTEGER ) FROM tab0 AS cor0
----
-2838
-7462
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-8430
SELECT - col0 + - cor0.col1 DIV - col2 AS col2 FROM tab0 AS cor0
----
-22
-88
62

skipif mysql # not compatible
query I rowsort label-8430
SELECT - col0 + - cor0.col1 / - col2 AS col2 FROM tab0 AS cor0
----
-22
-88
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - col0 + + col0 * + col0 col0 FROM tab0 cor0
----
-1488
-178
-2170

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8432
SELECT ALL col0 * col2 + col1 + + CAST( 5 + col1 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
219
3673
7711

skipif mysql # not compatible
query I rowsort label-8432
SELECT ALL col0 * col2 + col1 + + CAST ( 5 + col1 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
219
3673
7711

query I rowsort
SELECT ALL - col1 + ( + col1 ) + ( col1 * col0 ) AS col2 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT DISTINCT - ( - col0 ) - col1 AS col2 FROM tab2 AS cor0
----
-24
19
62

query I rowsort
SELECT + 96 * col1 * col0 AS col1 FROM tab1 AS cor0
----
61440
7488
99840

query I rowsort
SELECT DISTINCT col2 * - col0 * - col1 + + 86 * - col1 FROM tab0 AS cor0
----
-4947
60716
656292

query I rowsort
SELECT DISTINCT - 26 * - 12 AS col1 FROM tab1 AS cor0
----
312

query I rowsort
SELECT + - 78 * + cor0.col0 FROM tab1 AS cor0
----
-234
-4992
-6240

query I rowsort
SELECT DISTINCT + + cor0.col0 + + 49 FROM tab1 AS cor0
----
113
129
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-8440
SELECT ALL + cor0.col1 * col2 + col0 DIV + 55 FROM tab1 AS cor0
----
1249
1404
571

skipif mysql # not compatible
query I rowsort label-8440
SELECT ALL + cor0.col1 * col2 + col0 / + 55 FROM tab1 AS cor0
----
1249
1404
571

query I rowsort
SELECT DISTINCT - col0 + - col2 * - col1 FROM tab2 cor0
----
1456
567
830

query I rowsort
SELECT DISTINCT col1 * - 50 + + col1 - - col0 FROM tab0 AS cor0
----
-4190
-4370
-4718

query I rowsort
SELECT - - col0 + - col1 * col0 FROM tab1 AS cor0
----
-576
-75
-960

query I rowsort
SELECT ALL + col2 * - col0 + - col2 FROM tab0 AS cor0
----
-36
-7380
-825

query I rowsort
SELECT ALL + col0 * - ( col0 + ( 49 ) ) FROM tab1 AS cor0
----
-10320
-156
-7232

query I rowsort
SELECT ALL - - tab0.col1 FROM tab0, tab0 AS cor0, tab2, tab0 AS cor1
----
81 values hashing to 8c9db501a604ea66e3b5e5598f3f2a91

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8447
SELECT + CAST( 67 AS SIGNED ) + cor0.col2 col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to e1fcf074d345e992f85d57a04f30cab4

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8447
SELECT + CAST ( 67 AS INTEGER ) + cor0.col2 col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to e1fcf074d345e992f85d57a04f30cab4

query I rowsort
SELECT + cor0.col2 * + col0 + ( + ( col1 ) ) * col1 + - cor0.col1 AS col0 FROM tab1 AS cor0
----
3738
7836
812

query I rowsort
SELECT ALL + 83 + + col1 AS col0 FROM tab1 AS cor0
----
109
93
96

query I rowsort
SELECT ALL - - 12 + col1 AS col0 FROM tab0 AS cor0
----
103
109
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( + col0 ) col2 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT ALL col2 + col2 * ( + 32 ) FROM tab2 AS cor0
----
1254
858
891

query I rowsort
SELECT col0 + col0 * + cor0.col2 FROM tab2 AS cor0
----
196
2106
3081

onlyif mysql # use DIV operator for integer division
query I rowsort label-8454
SELECT - 82 * col1 + 37 DIV + 3 + - col2 AS col1 FROM tab1 AS cor0
----
-1150
-2174
-865

skipif mysql # not compatible
query I rowsort label-8454
SELECT - 82 * col1 + 37 / + 3 + - col2 AS col1 FROM tab1 AS cor0
----
-1150
-2174
-865

onlyif mysql # use DIV operator for integer division
query I rowsort label-8455
SELECT + col1 + col2 + col1 DIV col0 FROM tab2 AS cor0
----
55
62
85

skipif mysql # not compatible
query I rowsort label-8455
SELECT + col1 + col2 + col1 / col0 FROM tab2 AS cor0
----
55
62
85

onlyif mysql # use DIV operator for integer division
query I rowsort label-8456
SELECT DISTINCT - col1 + 76 DIV + col2 FROM tab0 cor0
----
-21
-84
-91

skipif mysql # not compatible
query I rowsort label-8456
SELECT DISTINCT - col1 + 76 / + col2 FROM tab0 cor0
----
-21
-84
-91

query I rowsort
SELECT ALL - + col0 - - 19 FROM tab0 AS cor0
----
-16
-5
-70

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8458
SELECT DISTINCT + col2 + - CAST( NULL AS SIGNED ) * col2 * col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8458
SELECT DISTINCT + col2 + - CAST ( NULL AS INTEGER ) * col2 * col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT 49 + 37 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19

query I rowsort
SELECT ALL 5 + col1 AS col0 FROM tab1
----
15
18
31

query I rowsort
SELECT 76 * 60 FROM tab0
----
4560
4560
4560

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 30 col0 FROM tab1 AS cor0
----
-30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + ( col1 ) ) col0 FROM tab1 AS cor0
----
-10
-13
-26

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8464
SELECT ALL - - CAST( NULL AS SIGNED ) * + col2 AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8464
SELECT ALL - - CAST ( NULL AS INTEGER ) * + col2 AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 * - col1 - col0 FROM tab1 AS cor0
----
-1328
-1407
-634

query I rowsort
SELECT col0 * - 24 AS col2 FROM tab1
----
-1536
-1920
-72

query I rowsort
SELECT DISTINCT - + cor0.col0 + col0 AS col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT + - ( col1 ) + - ( col1 ) * - col0 AS col2 FROM tab1 AS cor0
----
1027
52
630

query I rowsort
SELECT + 45 * - cor0.col1 AS col0 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 1dccfbab8bc699801182492e80ca8166

query I rowsort
SELECT + ( - col2 ) + col1 AS col0 FROM tab2 AS cor0
----
-21
33
4

query I rowsort
SELECT + + col2 * col2 + 82 FROM tab1 cor0
----
2998
3331
9298

onlyif mysql # use DIV operator for integer division
query I rowsort label-8472
SELECT + col2 DIV - 97 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8472
SELECT + col2 / - 97 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + cor0.col0 * + col2 + col2 * col1 AS col0 FROM tab0 AS cor0
----
132
14760
3630

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * col1 + - col0 col2 FROM tab2 AS cor0
----
-1612
-725
-844

query I rowsort
SELECT DISTINCT + col1 * ( - 17 ) * col1 FROM tab0 AS cor0
----
-125732
-140777
-159953

query I rowsort
SELECT + + col0 * ( col1 ) FROM tab1 AS cor0
----
1040
640
78

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8477
SELECT ALL + col1 * CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8477
SELECT ALL + col1 * CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + cor0.col2 + + 89 * - col1 FROM tab2 AS cor0
----
-1475
-2732
-5225

onlyif mysql # use DIV operator for integer division
query I rowsort label-8479
SELECT - + col0 * cor0.col1 + col2 * ( + col2 ) DIV cor0.col1 AS col2 FROM tab2 AS cor0
----
-1259
-194
-4591

skipif mysql # not compatible
query I rowsort label-8479
SELECT - + col0 * cor0.col1 + col2 * ( + col2 ) / cor0.col1 AS col2 FROM tab2 AS cor0
----
-1259
-194
-4591

query I rowsort
SELECT 99 + - 95 * cor0.col0 AS col1 FROM tab2 AS cor0
----
-566
-7311
-7406

query I rowsort
SELECT ALL + - col1 + - col2 AS col1 FROM tab2 cor0
----
-55
-58
-85

query I rowsort
SELECT cor0.col1 + ( - 18 ) FROM tab0, tab0 AS cor0
----
9 values hashing to 7f7495347c6f9d6b95c627c88787bbc9

query I rowsort
SELECT ALL - ( 74 ) * - col2 FROM tab1 AS cor0
----
3996
4218
7104

query I rowsort
SELECT ( 36 ) FROM tab1 AS cor0
----
36
36
36

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8485
SELECT col1 + CAST( NULL AS SIGNED ) + - 4 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8485
SELECT col1 + CAST ( NULL AS INTEGER ) + - 4 AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + 14 FROM tab1, tab2 AS cor0
----
9 values hashing to 83e5779d2487d12495e7d816c797264f

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8487
SELECT - CAST( NULL AS SIGNED ) + + ( + cor0.col0 ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8487
SELECT - CAST ( NULL AS INTEGER ) + + ( + cor0.col0 ) FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL ( col0 ) * col1 - - col2 FROM tab0
----
2097
3396
8181

query I rowsort
SELECT col0 - ( + col1 ) * - 79 * - ( - col0 ) FROM tab0 AS cor0
----
163080
268240
639910

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * ( 17 ) + col2 col2 FROM tab2
----
1029
327
554

query I rowsort
SELECT DISTINCT + 71 AS col0 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
71

query I rowsort
SELECT - cor0.col2 * - cor0.col0 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT col2 + 81 * + col2 AS col2 FROM tab2 AS cor0
----
2132
2214
3116

query I rowsort
SELECT 60 + - cor1.col2 AS col0 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 6626a76f17cb2bd710e10446c85e4aaa

query I rowsort
SELECT + - 21 FROM tab2, tab2 AS cor0, tab2 cor1, tab0, tab2 AS cor2
----
243 values hashing to 2388aaad3e0b3269d9dd4c19c7651676

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - ( - 17 ) + col1 * - col0 col2 FROM tab2 AS cor0
----
-3276
-98
0

query I rowsort
SELECT DISTINCT + cor0.col1 AS col2 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
17
31
59

query I rowsort
SELECT + ( cor0.col0 ) FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT ALL col2 * ( + col1 ) AS col1 FROM tab0
----
2838
7462
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8500
SELECT DISTINCT + CAST( NULL AS DECIMAL ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-8500
SELECT DISTINCT + CAST ( NULL AS REAL ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

query I rowsort
SELECT 52 AS col1 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 76100d10f51995d20efdeb657e444d3c

query I rowsort
SELECT - cor0.col0 + col2 * - ( - col1 ) * cor0.col2 FROM tab1 cor0
----
119728
32426
75813

query I rowsort
SELECT 27 * col1 FROM tab2 AS cor0
----
1593
459
837

query I rowsort
SELECT + - 89 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 924a74d31360fa4301c953b423a4710e

query I rowsort
SELECT DISTINCT - col0 + - col2 * cor0.col2 AS col0 FROM tab0 AS cor0
----
-1113
-36
-6813

query I rowsort
SELECT + col2 * 20 FROM tab2 AS cor0
----
520
540
760

query I rowsort
SELECT ALL col2 + col2 + - col2 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT DISTINCT col1 + ( - cor0.col2 ) AS col1 FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT ALL - + col2 * ( cor0.col0 ) + col2 FROM tab2 AS cor0
----
-162
-2002
-2964

query I rowsort
SELECT DISTINCT 16 * - col2 + - tab2.col1 AS col1 FROM tab2
----
-463
-475
-625

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - 18 + col0 col0 FROM tab1
----
-1088
-1360
-51

query I rowsort
SELECT + cor0.col2 + - col1 * col2 FROM tab1 AS cor0
----
-1152
-1350
-513

query I rowsort
SELECT ALL + - ( - col2 ) * - col1 + 14 FROM tab0 AS cor0
----
-2824
-7448
-83

query I rowsort
SELECT 87 + 73 * cor0.col1 AS col0 FROM tab0 AS cor0
----
6365
6730
7168

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8515
SELECT - CAST( NULL AS SIGNED ) + + cor0.col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8515
SELECT - CAST ( NULL AS INTEGER ) + + cor0.col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-8516
SELECT ALL + + col0 + - cor0.col1 DIV - col0 FROM tab1 AS cor0
----
11
64
80

skipif mysql # not compatible
query I rowsort label-8516
SELECT ALL + + col0 + - cor0.col1 / - col0 FROM tab1 AS cor0
----
11
64
80

query I rowsort
SELECT DISTINCT - + 8 AS col0 FROM tab0 AS cor0
----
-8

query I rowsort
SELECT + - col0 + - col1 * ( - ( col2 ) ) FROM tab1 AS cor0
----
1168
1401
506

query I rowsort
SELECT + col2 * col0 * - col2 AS col0 FROM tab1 AS cor0
----
-207936
-737280
-8748

query I rowsort
SELECT 2 * + col0 + - col2 FROM tab0
----
15
69
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8521
SELECT ALL ( 88 ) * col1 * + col2 + col2 + + col1 * - CAST( col2 + - col2 AS SIGNED ) * - col0 FROM tab1
----
109920
123606
50217

skipif mysql # not compatible
query I rowsort label-8521
SELECT ALL ( 88 ) * col1 * + col2 + col2 + + col1 * - CAST ( col2 + - col2 AS INTEGER ) * - col0 FROM tab1
----
109920
123606
50217

query I rowsort
SELECT ALL + 24 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef

query I rowsort
SELECT DISTINCT + 7 + - col0 * cor0.col0 + + col1 AS col0 FROM tab0 AS cor0
----
-1121
-483
-7823

query I rowsort
SELECT - cor0.col1 * col2 + + 19 FROM tab0 AS cor0
----
-2819
-7443
-78

query I rowsort
SELECT DISTINCT + - cor0.col1 - col0 AS col1 FROM tab2 cor0
----
-137
-38
-96

query I rowsort
SELECT DISTINCT + col0 * - col1 * + col2 + - col2 FROM tab0 AS cor0
----
-3396
-664200
-68145

onlyif mysql # use DIV operator for integer division
query I rowsort label-8527
SELECT ALL + cor1.col0 DIV cor1.col0 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to da8a72a7967c0c73d91239275230aed9

skipif mysql # not compatible
query I rowsort label-8527
SELECT ALL + cor1.col0 / cor1.col0 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to da8a72a7967c0c73d91239275230aed9

query I rowsort
SELECT 5 - col0 AS col2 FROM tab2
----
-2
-73
-74

onlyif mysql # use DIV operator for integer division
query I rowsort label-8529
SELECT - col1 DIV - 26 FROM tab0 AS cor0
----
3
3
3

skipif mysql # not compatible
query I rowsort label-8529
SELECT - col1 / - 26 FROM tab0 AS cor0
----
3
3
3

onlyif mysql # use DIV operator for integer division
query I rowsort label-8530
SELECT + col2 + col2 DIV - col2 AS col1 FROM tab0
----
0
32
81

skipif mysql # not compatible
query I rowsort label-8530
SELECT + col2 + col2 / - col2 AS col1 FROM tab0
----
0
32
81

query I rowsort
SELECT - + ( col1 ) AS col0 FROM tab1 cor0
----
-10
-13
-26

query I rowsort
SELECT DISTINCT - 16 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
-16

query I rowsort
SELECT - 25 * col1 + col0 AS col2 FROM tab2 AS cor0
----
-1397
-346
-768

query I rowsort
SELECT ALL - - 1 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT ALL + - ( ( col2 ) ) * - ( col0 ) - cor0.col2 FROM tab0 AS cor0
----
34
7216
759

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 86 * - col2 col1 FROM tab0 AS cor0
----
2838
7052
86

query I rowsort
SELECT ALL - - ( + ( + col2 ) ) * col1 - cor0.col0 AS col2 FROM tab2 cor0
----
1456
567
830

query I rowsort
SELECT DISTINCT + ( 59 ) + col2 FROM tab0 AS cor0
----
141
60
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 80 col2 FROM tab2 AS cor0
----
80
80
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-8540
SELECT DISTINCT + col1 DIV cor0.col1 AS col2 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8540
SELECT DISTINCT + col1 / cor0.col1 AS col2 FROM tab1 AS cor0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 - + 90 col2 FROM tab1
----
-33
-36
6

onlyif mysql # use DIV operator for integer division
query I rowsort label-8542
SELECT DISTINCT - col0 - 87 DIV col0 AS col0 FROM tab0
----
-27
-37
-89

skipif mysql # not compatible
query I rowsort label-8542
SELECT DISTINCT - col0 - 87 / col0 AS col0 FROM tab0
----
-27
-37
-89

onlyif mysql # use DIV operator for integer division
query I rowsort label-8543
SELECT tab0.col0 DIV 7 AS col0 FROM tab0
----
12
3
5

skipif mysql # not compatible
query I rowsort label-8543
SELECT tab0.col0 / 7 AS col0 FROM tab0
----
12
3
5

query I rowsort
SELECT + col1 - 94 * col0 AS col1 FROM tab2
----
-627
-7273
-7409

onlyif mysql # use DIV operator for integer division
query I rowsort label-8545
SELECT ALL + tab1.col0 DIV - col0 - + col1 AS col0 FROM tab1
----
-11
-14
-27

skipif mysql # not compatible
query I rowsort label-8545
SELECT ALL + tab1.col0 / - col0 - + col1 AS col0 FROM tab1
----
-11
-14
-27

query I rowsort
SELECT - 57 + - col0 FROM tab2
----
-135
-136
-64

query I rowsort
SELECT cor0.col2 FROM tab2, tab2 AS cor0 CROSS JOIN tab0
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT DISTINCT 49 + tab1.col1 * + col1 FROM tab1
----
149
218
725

query I rowsort
SELECT + col2 * - 87 * - col2 + col1 FROM tab1 AS cor0
----
253718
282673
801805

query I rowsort
SELECT ALL - 11 + cor0.col2 FROM tab2 AS cor0
----
15
16
27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * + col0 * + col1 col2 FROM tab0 AS cor0
----
-3395
-664118
-68112

onlyif mysql # use DIV operator for integer division
query I rowsort label-8552
SELECT ALL - - cor0.col0 DIV col1 FROM tab1 AS cor0
----
0
6
6

skipif mysql # not compatible
query I rowsort label-8552
SELECT ALL - - cor0.col0 / col1 FROM tab1 AS cor0
----
0
6
6

onlyif mysql # use DIV operator for integer division
query I rowsort label-8553
SELECT ALL - col0 DIV 23 AS col1 FROM tab2 cor0
----
-3
-3
0

skipif mysql # not compatible
query I rowsort label-8553
SELECT ALL - col0 / 23 AS col1 FROM tab2 cor0
----
-3
-3
0

query I rowsort
SELECT - cor0.col2 + col0 AS col0 FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT ALL + ( col1 ) + + col1 AS col1 FROM tab2 AS cor0
----
118
34
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-8556
SELECT ALL col2 + - col0 DIV - col2 AS col0 FROM tab0 AS cor0
----
33
36
83

skipif mysql # not compatible
query I rowsort label-8556
SELECT ALL col2 + - col0 / - col2 AS col0 FROM tab0 AS cor0
----
33
36
83

query I rowsort
SELECT ALL - col2 * + 58 + - cor0.col1 AS col1 FROM tab2 AS cor0
----
-1567
-1597
-2221

onlyif mysql # use DIV operator for integer division
query I rowsort label-8558
SELECT + - cor0.col0 * + col0 - + col0 DIV + col0 AS col0 FROM tab2 AS cor0
----
-50
-6085
-6242

skipif mysql # not compatible
query I rowsort label-8558
SELECT + - cor0.col0 * + col0 - + col0 / + col0 AS col0 FROM tab2 AS cor0
----
-50
-6085
-6242

query I rowsort
SELECT col2 + - col0 + ( ( + col0 ) ) * col0 * col2 FROM tab2
----
1343
158132
237117

onlyif mysql # use DIV operator for integer division
query I rowsort label-8560
SELECT + col1 + + col1 * tab1.col1 DIV + col1 + col1 col0 FROM tab1
----
30
39
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8560
SELECT + col1 + + col1 * tab1.col1 / + col1 + col1 col0 FROM tab1
----
30
39
78

query I rowsort
SELECT col2 * - col0 + - col1 AS col0 FROM tab2
----
-2087
-220
-3019

query I rowsort
SELECT + col2 + ( col2 + col1 ) FROM tab0 AS cor0
----
152
255
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * + col1 col0 FROM tab2
----
-1343
-217
-4602

query I rowsort
SELECT + + 95 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 14faa6dda52e3dfe1f5db2579c274a7e

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 90 col2 FROM tab0
----
-90
-90
-90

query I rowsort
SELECT - tab1.col1 + - ( 83 ) + - col0 * tab1.col2 * - col1 FROM tab1
----
36387
4103
99744

query I rowsort
SELECT DISTINCT 87 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
87

query I rowsort
SELECT + col1 * - col2 + ( - col1 ) FROM tab0 AS cor0
----
-194
-2924
-7553

onlyif mysql # use DIV operator for integer division
query I rowsort label-8569
SELECT DISTINCT - col1 + col2 DIV col1 AS col0 FROM tab2 AS cor0
----
-15
-31
-59

skipif mysql # not compatible
query I rowsort label-8569
SELECT DISTINCT - col1 + col2 / col1 AS col0 FROM tab2 AS cor0
----
-15
-31
-59

query I rowsort
SELECT ALL - cor0.col0 * col0 * col0 + col2 * col1 - cor0.col2 FROM tab1 AS cor0
----
-261631
-510848
1323

query I rowsort
SELECT DISTINCT - col1 + - ( col1 ) AS col1 FROM tab1 AS cor0
----
-20
-26
-52

query I rowsort
SELECT ALL + - col2 + + 3 FROM tab1 cor0
----
-51
-54
-93

query I rowsort
SELECT col2 - ( - 53 + col1 ) * col1 FROM tab0 AS cor0
----
-2805
-3376
-4267

query I rowsort
SELECT ALL - col1 * - 21 FROM tab2 AS cor0
----
1239
357
651

onlyif mysql # use DIV operator for integer division
query I rowsort label-8575
SELECT DISTINCT col1 + ( col2 ) DIV col0 AS col2 FROM tab1 AS cor0
----
10
14
44

skipif mysql # not compatible
query I rowsort label-8575
SELECT DISTINCT col1 + ( col2 ) / col0 AS col2 FROM tab1 AS cor0
----
10
14
44

query I rowsort
SELECT DISTINCT - col1 * ( - col2 ) - col1 AS col2 FROM tab1 AS cor0
----
1235
1378
560

query I rowsort
SELECT + + 19 AS col2 FROM tab0 AS cor0
----
19
19
19

query I rowsort
SELECT DISTINCT ( + 64 ) * col1 + + cor0.col1 FROM tab0 cor0
----
5590
5915
6305

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8579
SELECT ALL + CAST( 7 AS SIGNED ) + col2 FROM tab0 AS cor0
----
40
8
89

skipif mysql # not compatible
query I rowsort label-8579
SELECT ALL + CAST ( 7 AS INTEGER ) + col2 FROM tab0 AS cor0
----
40
8
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * - ( col0 ) col1 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT ALL - + cor0.col2 * ( cor0.col2 ) * - ( 38 ) FROM tab1 AS cor0
----
110808
123462
350208

query I rowsort
SELECT - - 27 * - 33 AS col1 FROM tab1 AS cor0
----
-891
-891
-891

query I rowsort
SELECT ALL ( col1 ) * + col0 * - cor0.col2 FROM tab0 cor0
----
-3395
-664118
-68112

query I rowsort
SELECT DISTINCT - ( + col2 ) * - col0 - col2 FROM tab1 AS cor0
----
108
3591
7584

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8585
SELECT CAST( 50 AS SIGNED ) * col2 + - tab1.col2 FROM tab1
----
2646
2793
4704

skipif mysql # not compatible
query I rowsort label-8585
SELECT CAST ( 50 AS INTEGER ) * col2 + - tab1.col2 FROM tab1
----
2646
2793
4704

query I rowsort
SELECT - - ( col0 ) * + 47 FROM tab1 AS cor0
----
141
3008
3760

query I rowsort
SELECT DISTINCT - ( col2 ) - cor0.col2 AS col0 FROM tab1 AS cor0
----
-108
-114
-192

query I rowsort
SELECT ALL col1 * + col1 * + col0 FROM tab0 cor0
----
177504
329315
737009

query I rowsort
SELECT DISTINCT - - 79 * col0 + col1 FROM tab0 AS cor0
----
1982
2862
7122

query I rowsort
SELECT - col0 * col0 * col0 FROM tab2 cor0
----
-343
-474552
-493039

query I rowsort
SELECT ( col0 + - col1 ) AS col2 FROM tab0
----
-2
-62
-62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col0 col0 FROM tab0, tab0 cor0
----
24
35
89

query I rowsort
SELECT ALL + + 48 * col0 + + col1 AS col0 FROM tab1 AS cor0
----
170
3082
3853

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8594
SELECT - CAST( NULL AS SIGNED ) * 2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8594
SELECT - CAST ( NULL AS INTEGER ) * 2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - 15 * + col2 AS col0 FROM tab2 AS cor0
----
390
405
570

query I rowsort
SELECT ALL + 55 AS col0 FROM tab0
----
55
55
55

query I rowsort
SELECT col2 + + 34 AS col1 FROM tab0
----
116
35
67

query I rowsort
SELECT + col1 * 2 FROM tab0
----
172
182
194

query I rowsort
SELECT - 21 + + col1 AS col2 FROM tab2
----
-4
10
38

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8600
SELECT DISTINCT + CAST( col2 * + col0 AS SIGNED ) FROM tab1
----
162
3648
7680

skipif mysql # not compatible
query I rowsort label-8600
SELECT DISTINCT + CAST ( col2 * + col0 AS INTEGER ) FROM tab1
----
162
3648
7680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8601
SELECT DISTINCT CAST( NULL AS SIGNED ) / col2 col1 FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8601
SELECT DISTINCT CAST ( NULL AS INTEGER ) / col2 col1 FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor1.col2 col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * cor0.col1 * - col2 col2 FROM tab0 AS cor0
----
-244068
-679042
-9409

query I rowsort
SELECT DISTINCT col2 * - 29 * cor0.col1 - - col1 * 83 * cor0.col1 AS col1 FROM tab1 AS cor0
----
-22165
-8230
15392

query I rowsort
SELECT DISTINCT 90 - + col1 FROM tab2 AS cor0
----
31
59
73

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8606
SELECT + CAST( NULL AS SIGNED ) * 36 * col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8606
SELECT + CAST ( NULL AS INTEGER ) * 36 * col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-8607
SELECT + col2 + 44 DIV tab1.col2 AS col0 FROM tab1
----
54
57
96

skipif mysql # not compatible
query I rowsort label-8607
SELECT + col2 + 44 / tab1.col2 AS col0 FROM tab1
----
54
57
96

query I rowsort
SELECT col2 * col2 + col1 FROM tab2 AS cor0
----
1461
735
760

query I rowsort
SELECT ALL - 46 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 491ad1fb79fec0b5715ea54949d1aa2d

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - col2 * col2 col1 FROM tab2 cor0
----
-1523
-736
-754

query I rowsort
SELECT ALL col1 - - tab0.col0 AS col2 FROM tab0
----
110
132
180

query I rowsort
SELECT DISTINCT - col2 + - col1 + + ( tab2.col2 ) AS col0 FROM tab2
----
-17
-31
-59

query I rowsort
SELECT - col2 * col2 * - col0 FROM tab1
----
207936
737280
8748

query I rowsort
SELECT 82 * - col1 * - ( + tab1.col2 ) AS col0 FROM tab1
----
102336
115128
46740

query I rowsort
SELECT DISTINCT + 72 AS col0 FROM tab2, tab1, tab0 cor0
----
72

query I rowsort
SELECT + + col0 * col2 * 92 AS col1 FROM tab1 AS cor0
----
14904
335616
706560

query I rowsort
SELECT - - col0 + - cor0.col1 + 99 AS col2 FROM tab1 AS cor0
----
153
166
76

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8618
SELECT - col0 * CAST( NULL AS SIGNED ) / - cor0.col0 + col1 + 52 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8618
SELECT - col0 * CAST ( NULL AS INTEGER ) / - cor0.col0 + col1 + 52 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 + + 33 AS col1 FROM tab1 cor0
----
-21
-24
-63

query I rowsort
SELECT 66 * - col1 FROM tab1
----
-1716
-660
-858

query I rowsort
SELECT ALL col1 * + col2 + - 40 FROM tab2 AS cor0
----
1494
606
797

onlyif mysql # use DIV operator for integer division
query I rowsort label-8622
SELECT DISTINCT col1 + 63 DIV col1 - - col2 FROM tab0 AS cor0
----
119
173
98

skipif mysql # not compatible
query I rowsort label-8622
SELECT DISTINCT col1 + 63 / col1 - - col2 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT DISTINCT + + col0 + - cor0.col1 + 52 AS col1 FROM tab1 AS cor0
----
106
119
29

query I rowsort
SELECT ALL + - col2 - - 39 * - col2 FROM tab1 AS cor0
----
-2160
-2280
-3840

query I rowsort
SELECT + col2 * col0 + + ( col0 ) FROM tab0 AS cor0
----
70
7387
816

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * + col0 col0 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT ALL col2 + + 15 FROM tab2 cor0
----
41
42
53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * + col1 + cor0.col0 col2 FROM tab1 AS cor0
----
164
249
679

query I rowsort
SELECT + col0 * - tab0.col2 + col0 FROM tab0
----
-7209
-768
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-8630
SELECT DISTINCT - col1 DIV + 43 AS col0 FROM tab2 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-8630
SELECT DISTINCT - col1 / + 43 AS col0 FROM tab2 AS cor0
----
-1
0

query I rowsort
SELECT + col0 + col1 + + 90 * cor0.col2 FROM tab0 AS cor0
----
222
3080
7560

query I rowsort
SELECT ALL + + col0 + ( - col1 ) FROM tab0 AS cor0
----
-2
-62
-62

query I rowsort
SELECT ALL - col1 + 92 AS col1 FROM tab2 AS cor0
----
33
61
75

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8634
SELECT + col2 * + CAST( - col1 AS SIGNED ) + - col2 + col2 FROM tab0 AS cor0
----
-2838
-7462
-97

skipif mysql # not compatible
query I rowsort label-8634
SELECT + col2 * + CAST ( - col1 AS INTEGER ) + - col2 + col2 FROM tab0 AS cor0
----
-2838
-7462
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-8635
SELECT + 75 + + col2 * col2 DIV - ( + 61 ) AS col0 FROM tab0 AS cor0
----
-35
58
75

skipif mysql # not compatible
query I rowsort label-8635
SELECT + 75 + + col2 * col2 / - ( + 61 ) AS col0 FROM tab0 AS cor0
----
-35
58
75

query I rowsort
SELECT DISTINCT - col0 * - cor0.col0 + col1 AS col1 FROM tab1 AS cor0
----
35
4106
6413

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 1 + col0 col1 FROM tab2 cor0
----
6
77
78

query I rowsort
SELECT - - col2 + + col2 + + col1 FROM tab1 AS cor0
----
124
134
205

query I rowsort
SELECT DISTINCT ( 46 ) FROM tab0 cor0
----
46

query I rowsort
SELECT + + ( + col1 ) * col0 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT ALL - col0 * 57 + + col2 AS col0 FROM tab0 AS cor0
----
-1335
-1994
-4991

query I rowsort
SELECT ALL 67 * - 64 AS col0 FROM tab1 AS cor0
----
-4288
-4288
-4288

query I rowsort
SELECT DISTINCT + + cor0.col1 + col0 * + col1 * - col2 + col1 * col0 AS col2 FROM tab0 AS cor0
----
-655928
-65962
97

query I rowsort
SELECT + 60 + - cor0.col2 + - col2 FROM tab1 AS cor0
----
-132
-48
-54

query I rowsort
SELECT ALL - col1 + + 82 * - col2 * col1 FROM tab1
----
-102349
-115154
-46750

query I rowsort
SELECT ALL col2 + col2 * col1 FROM tab1 AS cor0
----
1344
1458
627

query I rowsort
SELECT DISTINCT + col1 * + col1 - col1 AS col2 FROM tab0 AS cor0
----
7310
8190
9312

onlyif mysql # use DIV operator for integer division
query I rowsort label-8648
SELECT DISTINCT + 95 DIV + col2 + + 83 AS col0 FROM tab0 AS cor0
----
178
84
85

skipif mysql # not compatible
query I rowsort label-8648
SELECT DISTINCT + 95 / + col2 + + 83 AS col0 FROM tab0 AS cor0
----
178
84
85

query I rowsort
SELECT - col1 * cor0.col2 * + col1 FROM tab2 AS cor0
----
-10982
-25947
-90506

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( col2 ) * col0 col1 FROM tab2 AS cor0
----
189
2028
3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 94 * - col0 col2 FROM tab2 AS cor0
----
-658
-7332
-7426

onlyif mysql # use DIV operator for integer division
query I rowsort label-8652
SELECT DISTINCT - col1 * - cor0.col1 - + 86 DIV col0 AS col2 FROM tab0 AS cor0
----
7393
8281
9407

skipif mysql # not compatible
query I rowsort label-8652
SELECT DISTINCT - col1 * - cor0.col1 - + 86 / col0 AS col2 FROM tab0 AS cor0
----
7393
8281
9407

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8653
SELECT ALL - ( col2 ) + CAST( col2 AS SIGNED ) * - col1 AS col1 FROM tab1 AS cor0
----
-1344
-1458
-627

skipif mysql # not compatible
query I rowsort label-8653
SELECT ALL - ( col2 ) + CAST ( col2 AS INTEGER ) * - col1 AS col1 FROM tab1 AS cor0
----
-1344
-1458
-627

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8654
SELECT DISTINCT + 53 + - col2 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8654
SELECT DISTINCT + 53 + - col2 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + col1 - + col0 * - col2 FROM tab2 AS cor0
----
2087
220
3019

query I rowsort
SELECT - + col2 * col1 - - col2 FROM tab1 cor0
----
-1152
-1350
-513

query I rowsort
SELECT ALL - 0 AS col0 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT - 71 - + 75 AS col2 FROM tab2
----
-146
-146
-146

query I rowsort
SELECT - ( - ( col0 ) ) * col2 + + col0 AS col2 FROM tab2
----
196
2106
3081

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 + - col0 * col0 col1 FROM tab0 cor0
----
-1322
-662
-8012

query I rowsort
SELECT DISTINCT col2 * col2 + ( - col0 ) * - col2 AS col0 FROM tab1 AS cor0
----
16896
3078
6897

query I rowsort
SELECT tab2.col2 * tab2.col1 + - ( - col0 ) + - col1 AS col1 FROM tab2
----
1553
708
813

query I rowsort
SELECT + col1 * - col1 * + cor0.col0 + - 65 AS col1 FROM tab0 AS cor0
----
-177569
-329380
-737074

query I rowsort
SELECT - + cor0.col2 * cor0.col2 AS col2 FROM tab2 AS cor0
----
-1444
-676
-729

query I rowsort
SELECT DISTINCT + col2 + + col2 + + col2 * col2 FROM tab1
----
3024
3363
9408

query I rowsort
SELECT col2 * col2 * tab1.col2 + col2 AS col1 FROM tab1
----
157518
185250
884832

query I rowsort
SELECT ALL 62 * + col1 + cor0.col0 * + col2 AS col1 FROM tab0 AS cor0
----
12940
6049
6124

query I rowsort
SELECT ALL + col2 + col0 * 33 AS col1 FROM tab1 cor0
----
153
2169
2736

query I rowsort
SELECT ALL - - 35 * - col0 + cor0.col0 * - 50 * - cor0.col1 + ( + 6 ) AS col2 FROM tab1 cor0
----
29766
3801
49206

query I rowsort
SELECT col2 + + col0 * 85 FROM tab0 AS cor0
----
2073
2976
7647

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 66 + 29 + cor1.col2 col1 FROM tab1, tab0 cor0, tab2 AS cor1
----
27 values hashing to 1646cfd0ecd6283ce6c2078544587794

query I rowsort
SELECT col1 + + col2 * cor0.col0 AS col0 FROM tab2 AS cor0
----
2087
220
3019

query I rowsort
SELECT - + 50 AS col2 FROM tab0 AS cor0
----
-50
-50
-50

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8674
SELECT - + col1 * - CAST( - col0 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-1040
-640
-78

skipif mysql # not compatible
query I rowsort label-8674
SELECT - + col1 * - CAST ( - col0 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT DISTINCT 18 * + col0 * 69 AS col2 FROM tab0
----
110538
29808
43470

query I rowsort
SELECT + 86 AS col0 FROM tab0, tab1, tab0 cor0
----
27 values hashing to ed1a39c2752ca3723602e4a92c54bbc4

query I rowsort
SELECT - - col1 * + cor0.col1 AS col1 FROM tab0 cor0
----
7396
8281
9409

query I rowsort
SELECT + col2 * ( - 91 ) FROM tab0 AS cor0
----
-3003
-7462
-91

query I rowsort
SELECT ALL + col0 * tab0.col1 AS col0 FROM tab0
----
2064
3395
8099

query I rowsort
SELECT DISTINCT + + 5 FROM tab2, tab1, tab2 cor0
----
5

query I rowsort
SELECT ( ( col1 ) ) * - col2 AS col1 FROM tab0 cor0
----
-2838
-7462
-97

query I rowsort
SELECT - - 50 * + ( - col2 ) + + col0 AS col2 FROM tab0 AS cor0
----
-15
-1626
-4011

query I rowsort
SELECT ALL - + col0 + + col2 * + col2 FROM tab0 AS cor0
----
-34
1065
6635

query I rowsort
SELECT DISTINCT + - col0 * col0 + col2 FROM tab1 cor0
----
-4039
-6304
45

onlyif mysql # use DIV operator for integer division
query I rowsort label-8685
SELECT ALL - col2 DIV 86 + 60 FROM tab0
----
60
60
60

skipif mysql # not compatible
query I rowsort label-8685
SELECT ALL - col2 / 86 + 60 FROM tab0
----
60
60
60

query I rowsort
SELECT 13 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to a90d0f37cec603ae1bc0a60dc7fbaeed

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8687
SELECT + col2 * + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8687
SELECT + col2 * + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - 93 + ( tab0.col2 ) FROM tab0, tab1 AS cor0
----
9 values hashing to 286aba5507ed97419700f0de49b6b757

query I rowsort
SELECT ALL - 32 AS col1 FROM tab2, tab2 AS cor0, tab0 cor1
----
27 values hashing to 7106326ae056e78044adc0aef747ef08

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 95 col1 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 14faa6dda52e3dfe1f5db2579c274a7e

query I rowsort
SELECT ALL tab0.col1 + 76 AS col0 FROM tab0
----
162
167
173

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8692
SELECT + col0 * - 50 + col1 * CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8692
SELECT + col0 * - 50 + col1 * CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - - cor0.col2 * cor0.col0 AS col2 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT - + ( 42 ) + + col0 * col1 AS col0 FROM tab0 cor0
----
2022
3353
8057

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 + - col1 * + col2 col0 FROM tab0 AS cor0
----
-2752
-7371
0

query I rowsort
SELECT DISTINCT - col2 * - col0 + + col2 FROM tab1 cor0
----
216
3705
7776

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 25 col2 FROM tab0 AS cor0
----
25
25
25

query I rowsort
SELECT ALL - 20 * col2 AS col0 FROM tab2 AS cor0
----
-520
-540
-760

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 + - col0 col0 FROM tab0 cor0
----
-178
-48
-70

query I rowsort
SELECT DISTINCT + - cor0.col1 + - col1 FROM tab1 AS cor0
----
-20
-26
-52

query I rowsort
SELECT ( - tab2.col2 ) * + col2 * col0 FROM tab2
----
-114076
-5103
-52728

query I rowsort
SELECT ( + col2 * + tab2.col2 ) FROM tab2
----
1444
676
729

query I rowsort
SELECT + col1 * - 27 AS col1 FROM tab2
----
-1593
-459
-837

query I rowsort
SELECT + 70 * col1 FROM tab2
----
1190
2170
4130

query I rowsort
SELECT DISTINCT col0 * ( col1 + + ( - 61 ) ) FROM tab1
----
-105
-3264
-3840

query I rowsort
SELECT - col1 * - col1 + + col1 * + col0 AS col1 FROM tab0 AS cor0
----
12804
16380
9460

query I rowsort
SELECT ALL + - 62 * col2 + col1 AS col0 FROM tab2 AS cor0
----
-1553
-1643
-2339

onlyif mysql # use DIV operator for integer division
query I rowsort label-8708
SELECT DISTINCT col2 * + col2 - CAST( col0 AS SIGNED ) DIV + col1 FROM tab2 cor0
----
1440
675
729

skipif mysql # not compatible
query I rowsort label-8708
SELECT DISTINCT col2 * + col2 - CAST ( col0 AS INTEGER ) / + col1 FROM tab2 cor0
----
1440
675
729

query I rowsort
SELECT DISTINCT + - col2 + + col1 + col2 AS col2 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT DISTINCT - - cor0.col1 - col1 AS col0 FROM tab0 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + cor0.col2 col2 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT + ( tab2.col2 + - col1 ) FROM tab2
----
-33
-4
21

query I rowsort
SELECT - ( + ( + col2 ) ) * + 35 FROM tab2
----
-1330
-910
-945

query I rowsort
SELECT - col0 * - col0 + col1 AS col0 FROM tab0
----
1322
662
8012

query I rowsort
SELECT + col1 - col0 * col1 AS col1 FROM tab2
----
-1326
-186
-4543

query I rowsort
SELECT DISTINCT col2 + + col2 * 11 AS col2 FROM tab2
----
312
324
456

query I rowsort
SELECT - + col0 * col1 + ( col0 ) FROM tab2 AS cor0
----
-1264
-210
-4524

query I rowsort
SELECT + + col2 + col0 * - cor0.col0 AS col2 FROM tab2 AS cor0
----
-22
-6058
-6203

query I rowsort
SELECT col0 - 3 FROM tab1 cor0
----
0
61
77

onlyif mysql # use DIV operator for integer division
query I rowsort label-8720
SELECT + + col1 * 55 - - col2 DIV - cor0.col1 AS col1 FROM tab0 AS cor0
----
4730
5005
5335

skipif mysql # not compatible
query I rowsort label-8720
SELECT + + col1 * 55 - - col2 / - cor0.col1 AS col1 FROM tab0 AS cor0
----
4730
5005
5335

query I rowsort
SELECT - col1 - + 36 * - col1 AS col0 FROM tab0 AS cor0
----
3010
3185
3395

query I rowsort
SELECT + - col2 * ( col0 ) AS col1 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT - + ( ( - col2 ) ) + - ( 54 ) * cor0.col2 AS col1 FROM tab2 AS cor0
----
-1378
-1431
-2014

onlyif mysql # use DIV operator for integer division
query I rowsort label-8724
SELECT - ( - col2 ) * col2 + - col1 DIV 34 AS col2 FROM tab2 AS cor0
----
1444
675
729

skipif mysql # not compatible
query I rowsort label-8724
SELECT - ( - col2 ) * col2 + - col1 / 34 AS col2 FROM tab2 AS cor0
----
1444
675
729

query I rowsort
SELECT - col2 * 10 FROM tab0 AS cor0
----
-10
-330
-820

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8726
SELECT ALL cor1.col1 * CAST( + cor1.col0 AS SIGNED ) AS col0 FROM tab2, tab0 cor0, tab1 AS cor1
----
27 values hashing to 2afdaba7b80c700b7635230c4f8524be

skipif mysql # not compatible
query I rowsort label-8726
SELECT ALL cor1.col1 * CAST ( + cor1.col0 AS INTEGER ) AS col0 FROM tab2, tab0 cor0, tab1 AS cor1
----
27 values hashing to 2afdaba7b80c700b7635230c4f8524be

onlyif mysql # use DIV operator for integer division
query I rowsort label-8727
SELECT DISTINCT - col2 DIV - 11 FROM tab1 cor0
----
4
5
8

skipif mysql # not compatible
query I rowsort label-8727
SELECT DISTINCT - col2 / - 11 FROM tab1 cor0
----
4
5
8

query I rowsort
SELECT DISTINCT + col2 * 96 + - col0 AS col1 FROM tab1 cor0
----
5181
5408
9136

query I rowsort
SELECT DISTINCT - col2 + + 88 AS col0 FROM tab0 AS cor0
----
55
6
87

query I rowsort
SELECT ALL col2 * - ( 74 ) FROM tab1 AS cor0
----
-3996
-4218
-7104

onlyif mysql # use DIV operator for integer division
query I rowsort label-8731
SELECT DISTINCT - + col2 DIV - cor0.col2 + col1 col0 FROM tab1 cor0
----
11
14
27

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8731
SELECT DISTINCT - + col2 / - cor0.col2 + col1 col0 FROM tab1 cor0
----
11
14
27

query I rowsort
SELECT - col2 + + col1 * - col2 + + col0 AS col0 FROM tab2 AS cor0
----
-1482
-605
-857

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + cor0.col0 * + ( + col0 ) col0 FROM tab0 cor0
----
1225
576
7921

onlyif mysql # use DIV operator for integer division
query I rowsort label-8734
SELECT DISTINCT col0 * col1 DIV - col2 AS col0 FROM tab0 AS cor0
----
-3395
-62
-98

skipif mysql # not compatible
query I rowsort label-8734
SELECT DISTINCT col0 * col1 / - col2 AS col0 FROM tab0 AS cor0
----
-3395
-62
-98

query I rowsort
SELECT ALL + cor0.col2 * - 59 * 69 + + col0 * col0 FROM tab0 AS cor0
----
-133767
-2846
-325901

onlyif mysql # use DIV operator for integer division
query I rowsort label-8736
SELECT DISTINCT - col1 * - cor0.col0 DIV col0 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-8736
SELECT DISTINCT - col1 * - cor0.col0 / col0 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT col0 + + col0 + col1 FROM tab2 AS cor0
----
175
215
45

onlyif mysql # use DIV operator for integer division
query I rowsort label-8738
SELECT - col0 + - 83 DIV col1 AS col2 FROM tab2 cor0
----
-79
-83
-9

skipif mysql # not compatible
query I rowsort label-8738
SELECT - col0 + - 83 / col1 AS col2 FROM tab2 cor0
----
-79
-83
-9

onlyif mysql # use DIV operator for integer division
query I rowsort label-8739
SELECT cor0.col1 DIV - ( cor0.col0 ) + col0 - + col2 AS col2 FROM tab2 AS cor0
----
-24
41
52

skipif mysql # not compatible
query I rowsort label-8739
SELECT cor0.col1 / - ( cor0.col0 ) + col0 - + col2 AS col2 FROM tab2 AS cor0
----
-24
41
52

query I rowsort
SELECT DISTINCT + ( + cor0.col1 ) AS col1 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT col0 + 43 FROM tab0
----
132
67
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 - 73 col0 FROM tab0
----
-106
-155
-74

query I rowsort
SELECT - 22 + - 41 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 5a7845ef6e239561caf9a17a28e274b5

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8744
SELECT DISTINCT - tab2.col1 * + CAST( NULL AS SIGNED ) + col0 * col0 AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8744
SELECT DISTINCT - tab2.col1 * + CAST ( NULL AS INTEGER ) + col0 * col0 AS col2 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT - - 59 FROM tab2, tab1 cor0, tab2 AS cor1, tab0, tab2 cor2
----
59

query I rowsort
SELECT 46 AS col2 FROM tab0, tab2 cor0
----
9 values hashing to 31818c9d4d325eb248735c97cb1dce39

query I rowsort
SELECT ALL - - cor0.col1 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775

query I rowsort
SELECT DISTINCT - col1 * tab1.col2 FROM tab1
----
-1248
-1404
-570

query I rowsort
SELECT DISTINCT - ( col2 ) + - col2 FROM tab0
----
-164
-2
-66

query I rowsort
SELECT - 76 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to d90b4aa5f03b4a149aa925c4a88acca0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 85 * col0 col0 FROM tab0
----
2040
2975
7565

query I rowsort
SELECT - + col2 * col2 + - 65 FROM tab1 AS cor0
----
-2981
-3314
-9281

query I rowsort
SELECT + - cor0.col0 * col2 + - col1 AS col2 FROM tab0 AS cor0
----
-132
-7389
-878

query I rowsort
SELECT - cor1.col1 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ccaa5dd3388d9ee0fea676fa35299fe5

onlyif mysql # use DIV operator for integer division
query I rowsort label-8755
SELECT DISTINCT col0 DIV + tab0.col1 + - ( 79 ) * tab0.col1 FROM tab0
----
-6794
-7189
-7663

skipif mysql # not compatible
query I rowsort label-8755
SELECT DISTINCT col0 / + tab0.col1 + - ( 79 ) * tab0.col1 FROM tab0
----
-6794
-7189
-7663

query I rowsort
SELECT DISTINCT + col1 + col0 - 11 FROM tab2 AS cor0
----
126
27
85

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8757
SELECT DISTINCT - 59 + + col1 + + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8757
SELECT DISTINCT - 59 + + 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 ALL - + 49 col2 FROM tab2 cor0
----
-49
-49
-49

query I rowsort
SELECT - col0 + + col0 * 20 FROM tab0 AS cor0
----
1691
456
665

query I rowsort
SELECT DISTINCT 79 + col1 * col2 AS col0 FROM tab2 AS cor0
----
1613
725
916

query I rowsort
SELECT DISTINCT col0 + + col1 + col0 AS col0 FROM tab2
----
175
215
45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 * 83 col2 FROM tab1 AS cor0
----
-249
-5312
-6640

query I rowsort
SELECT + 61 AS col2 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 8d4dfe649433a599fc4b10830cc7ce55

onlyif mysql # use DIV operator for integer division
query I rowsort label-8764
SELECT - col2 * col2 * + col2 + + col0 DIV - col1 FROM tab2
----
-17577
-19683
-54876

skipif mysql # not compatible
query I rowsort label-8764
SELECT - col2 * col2 * + col2 + + col0 / - col1 FROM tab2
----
-17577
-19683
-54876

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + col2 col2 FROM tab1 AS cor0
----
162
3648
7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-8766
SELECT ALL col0 DIV 14 AS col0 FROM tab2 AS cor0
----
0
5
5

skipif mysql # not compatible
query I rowsort label-8766
SELECT ALL col0 / 14 AS col0 FROM tab2 AS cor0
----
0
5
5

query I rowsort
SELECT ( - 58 ) AS col2 FROM tab2
----
-58
-58
-58

query I rowsort
SELECT - tab1.col2 + ( - col1 ) AS col2 FROM tab1
----
-109
-67
-80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8769
SELECT CAST( + 19 AS SIGNED ) FROM tab1
----
19
19
19

skipif mysql # not compatible
query I rowsort label-8769
SELECT CAST ( + 19 AS INTEGER ) FROM tab1
----
19
19
19

query I rowsort
SELECT + + 66 FROM tab1 AS cor0
----
66
66
66

query I rowsort
SELECT + 61 + - col2 AS col0 FROM tab1
----
-35
4
7

query I rowsort
SELECT DISTINCT - col1 + ( - col1 + ( + col1 ) ) FROM tab0 AS cor0
----
-86
-91
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-8773
SELECT - 50 * col1 DIV cor0.col0 AS col0 FROM tab2 AS cor0
----
-10
-221
-37

skipif mysql # not compatible
query I rowsort label-8773
SELECT - 50 * col1 / cor0.col0 AS col0 FROM tab2 AS cor0
----
-10
-221
-37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 + col1 col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + - col2 * + 95 + - col0 AS col0 FROM tab1 AS cor0
----
-5133
-5479
-9200

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + CAST ( - 80 AS REAL ) * - cor0.col0 * 8 FROM tab0, tab2 AS cor0, tab0 AS cor1, tab0 AS cor2
----
4480
49920
50560

query I rowsort
SELECT DISTINCT + + ( - cor0.col2 ) * - col1 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT DISTINCT + col1 * - col0 - - 42 FROM tab2 AS cor0
----
-1301
-175
-4560

query I rowsort
SELECT ALL + - ( + col1 ) * + 79 AS col2 FROM tab1 AS cor0
----
-1027
-2054
-790

query I rowsort
SELECT - 24 + - col2 FROM tab2 AS cor0
----
-50
-51
-62

query I rowsort
SELECT + 96 * cor0.col2 + cor0.col1 FROM tab2 AS cor0
----
2555
2623
3665

query I rowsort
SELECT DISTINCT - - 27 + - col2 FROM tab0 AS cor0
----
-55
-6
26

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8783
SELECT CAST( col0 AS SIGNED ) - col2 AS col1 FROM tab1
----
-16
-51
7

skipif mysql # not compatible
query I rowsort label-8783
SELECT CAST ( col0 AS INTEGER ) - col2 AS col1 FROM tab1
----
-16
-51
7

query I rowsort
SELECT + 64 + - col2 AS col1 FROM tab2
----
26
37
38

query I rowsort
SELECT ALL col0 * 66 FROM tab2
----
462
5148
5214

query I rowsort
SELECT DISTINCT + - col1 + - cor0.col0 AS col0 FROM tab0 AS cor0
----
-110
-132
-180

query I rowsort
SELECT ALL + + 1 AS col1 FROM tab2 AS cor0
----
1
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-8788
SELECT - cor0.col0 * col1 DIV col1 FROM tab2 AS cor0
----
-7
-78
-79

skipif mysql # not compatible
query I rowsort label-8788
SELECT - cor0.col0 * col1 / col1 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT - + 51 * + col2 FROM tab2 cor0
----
-1326
-1377
-1938

query I rowsort
SELECT col2 * col0 + col1 AS col2 FROM tab0 AS cor0
----
132
7389
878

query I rowsort
SELECT - col1 * + ( col1 ) * col2 FROM tab1 AS cor0
----
-16224
-36504
-5700

query I rowsort
SELECT col2 + + 78 * 13 AS col1 FROM tab1 AS cor0
----
1068
1071
1110

query I rowsort
SELECT - + 55 * - 45 AS col2 FROM tab1 AS cor0
----
2475
2475
2475

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 * col1 col2 FROM tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT DISTINCT 79 * - ( col2 ) FROM tab2 AS cor0
----
-2054
-2133
-3002

query I rowsort
SELECT DISTINCT - cor0.col1 + 5 FROM tab2 AS cor0
----
-12
-26
-54

query I rowsort
SELECT + + col0 * - col0 * col0 FROM tab1 cor0
----
-262144
-27
-512000

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 64 * 78 col2 FROM tab2 AS cor0
----
4992
4992
4992

query I rowsort
SELECT - 14 * ( - col1 ) FROM tab1 AS cor0
----
140
182
364

query I rowsort
SELECT DISTINCT - col1 * + ( col0 ) FROM tab2
----
-1343
-217
-4602

query I rowsort
SELECT ALL + 57 AS col1 FROM tab2, tab1 cor0
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a

query I rowsort
SELECT ( ( cor0.col0 ) ) + - col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + 0 - + cor0.col0 AS col2 FROM tab2 AS cor0
----
-7
-78
-79

onlyif mysql # use DIV operator for integer division
query I rowsort label-8804
SELECT DISTINCT - + cor0.col1 DIV col1 + + col0 FROM tab0 AS cor0
----
23
34
88

skipif mysql # not compatible
query I rowsort label-8804
SELECT DISTINCT - + cor0.col1 / col1 + + col0 FROM tab0 AS cor0
----
23
34
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 78 col0 FROM tab1 cor0
----
78
78
78

query I rowsort
SELECT + - 12 + cor0.col2 * - 2 AS col1 FROM tab0 AS cor0
----
-14
-176
-78

query I rowsort
SELECT - col1 + col0 * 49 * + col1 FROM tab1 AS cor0
----
31350
3796
50947

query I rowsort
SELECT DISTINCT + 66 * cor0.col1 FROM tab0 AS cor0
----
5676
6006
6402

query I rowsort
SELECT DISTINCT + 17 + + col1 + - cor0.col0 FROM tab1 AS cor0
----
-37
-50
40

query I rowsort
SELECT 41 * col2 * col0 + + ( + col1 + col0 ) FROM tab0
----
1567
299398
32582

query I rowsort
SELECT + + 70 * - col0 + col2 + + col1 FROM tab0 AS cor0
----
-1561
-2352
-6057

query I rowsort
SELECT ALL tab2.col1 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8813
SELECT DISTINCT col1 + col0 * + col2 * CAST( NULL AS SIGNED ) - + col1 AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8813
SELECT DISTINCT col1 + col0 * + col2 * CAST ( NULL AS INTEGER ) - + col1 AS col0 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT - ( + 13 ) - col1 FROM tab2
----
-30
-44
-72

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT 45 * + ( col1 ) + + CAST ( - tab0.col1 AS REAL ) + col2 col0 FROM tab0
----
3817
4086
4269

query I rowsort
SELECT - col1 - 33 AS col1 FROM tab1
----
-43
-46
-59

query I rowsort
SELECT DISTINCT - 68 * - col2 AS col0 FROM tab2 AS cor0
----
1768
1836
2584

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 - col2 * + 72 col2 FROM tab0 AS cor0
----
-2352
-37
-5815

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8819
SELECT - - 96 + cor0.col1 + CAST( cor0.col2 AS SIGNED ) FROM tab2 AS cor0
----
151
154
181

skipif mysql # not compatible
query I rowsort label-8819
SELECT - - 96 + cor0.col1 + CAST ( cor0.col2 AS INTEGER ) FROM tab2 AS cor0
----
151
154
181

query I rowsort
SELECT col1 + col1 * col2 + col2 AS col2 FROM tab1
----
1357
1484
637

query I rowsort
SELECT + + col1 + col0 + - 15 FROM tab1 AS cor0
----
14
59
78

query I rowsort
SELECT ALL ( 68 ) AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 599bee15ac4cc39b859854e07dfe7990

query I rowsort
SELECT + col1 + 51 AS col2 FROM tab0 AS cor0
----
137
142
148

query I rowsort
SELECT - col2 * + col2 - col1 AS col1 FROM tab2 AS cor0
----
-1461
-735
-760

query I rowsort
SELECT ALL + - 73 * tab2.col2 AS col2 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 2a9b523cf03b3aaa3132e807e5592fc3

query I rowsort
SELECT - + col1 * + col2 + + 45 * cor0.col2 + 13 AS col0 FROM tab0 AS cor0
----
-1340
-3759
-39

query I rowsort
SELECT - col1 + + 71 * col1 FROM tab0 AS cor0
----
6020
6370
6790

query I rowsort
SELECT 41 * col1 + col2 AS col1 FROM tab1
----
1120
467
629

onlyif mysql # use DIV operator for integer division
query I rowsort label-8829
SELECT DISTINCT + 87 DIV cor0.col2 col1 FROM tab0 AS cor0
----
1
2
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8829
SELECT DISTINCT + 87 / cor0.col2 col1 FROM tab0 AS cor0
----
1
2
87

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8830
SELECT ALL CAST( col0 AS SIGNED ) * + col1 - - col2 FROM tab1 AS cor0
----
1136
132
697

skipif mysql # not compatible
query I rowsort label-8830
SELECT ALL CAST ( col0 AS INTEGER ) * + col1 - - col2 FROM tab1 AS cor0
----
1136
132
697

query I rowsort
SELECT 49 * cor0.col1 FROM tab2 AS cor0
----
1519
2891
833

onlyif mysql # use DIV operator for integer division
query I rowsort label-8832
SELECT 50 DIV + col0 FROM tab0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-8832
SELECT 50 / + col0 FROM tab0
----
0
1
2

query I rowsort
SELECT - cor0.col0 - + col1 AS col2 FROM tab2 AS cor0
----
-137
-38
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 74 col1 FROM tab2, tab0, tab2 cor0
----
74

query I rowsort
SELECT + col1 * col1 - + cor0.col0 FROM tab1 cor0
----
36
673
89

query I rowsort
SELECT - cor0.col0 + + col0 + col2 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT + + col1 + + 9 FROM tab1 AS cor0
----
19
22
35

query I rowsort
SELECT ALL + col2 * - col2 * col0 + col1 + + col0 AS col2 FROM tab1
----
-207862
-737187
-8719

query I rowsort
SELECT DISTINCT - 60 * - col0 * - col2 FROM tab0 AS cor0
----
-2100
-437880
-47520

query I rowsort
SELECT col2 + + 78 FROM tab0 AS cor0
----
111
160
79

query I rowsort
SELECT DISTINCT - 79 FROM tab0 cor0
----
-79

query I rowsort
SELECT DISTINCT ( 79 ) AS col1 FROM tab1 AS cor0
----
79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8843
SELECT + CAST( - col1 AS SIGNED ) + + cor0.col0 * col1 * cor0.col2 FROM tab0 AS cor0
----
3298
664027
68026

skipif mysql # not compatible
query I rowsort label-8843
SELECT + CAST ( - col1 AS INTEGER ) + + cor0.col0 * col1 * cor0.col2 FROM tab0 AS cor0
----
3298
664027
68026

query I rowsort
SELECT + col1 + col2 + + ( 62 * - col1 ) FROM tab0 AS cor0
----
-5213
-5469
-5916

query I rowsort
SELECT col2 + cor0.col1 + - 13 AS col2 FROM tab1 cor0
----
54
67
96

query I rowsort
SELECT DISTINCT + - 9 AS col0 FROM tab2 AS cor0
----
-9

query I rowsort
SELECT - + col1 + - col2 + col2 AS col2 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT ALL - 14 AS col0 FROM tab1 AS cor0
----
-14
-14
-14

query I rowsort
SELECT ALL 73 + - col1 * + col2 FROM tab2 AS cor0
----
-1461
-573
-764

onlyif mysql # use DIV operator for integer division
query I rowsort label-8850
SELECT col1 + + col0 + - 38 * 86 DIV col0 AS col2 FROM tab1 AS cor0
----
-1060
23
53

skipif mysql # not compatible
query I rowsort label-8850
SELECT col1 + + col0 + - 38 * 86 / col0 AS col2 FROM tab1 AS cor0
----
-1060
23
53

query I rowsort
SELECT DISTINCT 25 * col1 + - col2 - + 58 AS col2 FROM tab2
----
1391
329
690

query I rowsort
SELECT ALL - tab2.col0 * 49 AS col0 FROM tab2
----
-343
-3822
-3871

query I rowsort
SELECT 21 + + cor1.col2 AS col2 FROM tab2, tab1 AS cor0, tab1 AS cor1, tab1, tab0 AS cor2
----
243 values hashing to ac52fee5fd278fd9924de4680277c0a7

query I rowsort
SELECT DISTINCT - 48 AS col0 FROM tab1, tab0 cor0
----
-48

query I rowsort
SELECT ALL col0 * col1 + + 71 * col2 AS col1 FROM tab0 AS cor0
----
13921
3466
4407

query I rowsort
SELECT + col0 + cor0.col1 AS col0 FROM tab0 cor0
----
110
132
180

query I rowsort
SELECT DISTINCT - cor0.col0 * ( - ( - col2 ) ) AS col2 FROM tab2 cor0
----
-189
-2028
-3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT col0 * + CAST ( - 74 AS REAL ) col1 FROM tab1 AS cor0
----
-222
-4736
-5920

onlyif mysql # use DIV operator for integer division
query I rowsort label-8859
SELECT DISTINCT - 51 DIV + 22 + + col2 AS col1 FROM tab1 AS cor0
----
52
55
94

skipif mysql # not compatible
query I rowsort label-8859
SELECT DISTINCT - 51 / + 22 + + col2 AS col1 FROM tab1 AS cor0
----
52
55
94

query I rowsort
SELECT ALL ( col1 ) * + col1 AS col0 FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT - 90 * + ( + col0 ) + - col2 - col0 AS col0 FROM tab0 cor0
----
-2217
-3186
-8181

query I rowsort
SELECT - cor0.col1 * + 31 FROM tab0 cor0
----
-2666
-2821
-3007

query I rowsort
SELECT col2 - 95 * ( col0 ) * col0 AS col2 FROM tab0
----
-116374
-54687
-752413

onlyif mysql # use DIV operator for integer division
query I rowsort label-8864
SELECT DISTINCT + col0 * - 39 + + col0 DIV - col1 FROM tab1 AS cor0
----
-117
-2502
-3126

skipif mysql # not compatible
query I rowsort label-8864
SELECT DISTINCT + col0 * - 39 + + col0 / - col1 FROM tab1 AS cor0
----
-117
-2502
-3126

query I rowsort
SELECT DISTINCT cor0.col1 * - col1 * - col0 AS col2 FROM tab0 AS cor0
----
177504
329315
737009

query I rowsort
SELECT + - 52 FROM tab2 AS cor0
----
-52
-52
-52

onlyif mysql # use DIV operator for integer division
query I rowsort label-8867
SELECT + tab1.col0 + - col0 DIV col2 FROM tab1
----
3
63
80

skipif mysql # not compatible
query I rowsort label-8867
SELECT + tab1.col0 + - col0 / col2 FROM tab1
----
3
63
80

query I rowsort
SELECT + 97 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to c73fa6978df8525c99d6bc792bb27123

query I rowsort
SELECT col0 - ( + col1 ) * + col2 FROM tab2
----
-1456
-567
-830

query I rowsort
SELECT DISTINCT ( 26 ) * col2 + + col2 AS col1 FROM tab2
----
1026
702
729

query I rowsort
SELECT - col0 + + col1 + - col2 AS col1 FROM tab0
----
-80
29
61

query I rowsort
SELECT ALL + 84 + - col1 FROM tab0
----
-13
-2
-7

query I rowsort
SELECT col1 + 39 AS col2 FROM tab1
----
49
52
65

query I rowsort
SELECT ALL - - col1 + col0 AS col1 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT ALL - - ( + 46 ) * + col0 + - ( col0 ) FROM tab0 AS cor0
----
1080
1575
4005

query I rowsort
SELECT DISTINCT + col1 + + 38 FROM tab1 AS cor0
----
48
51
64

query I rowsort
SELECT ALL 52 + col0 FROM tab2 cor0
----
130
131
59

query I rowsort
SELECT ALL - ( - col0 ) * - col1 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT col1 * ( col0 + - ( + ( + col2 ) ) ) FROM tab1 AS cor0
----
-1326
-208
70

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8880
SELECT ALL + col0 + + tab2.col2 * CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8880
SELECT ALL + col0 + + tab2.col2 * CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8881
SELECT ALL col0 + col2 * - CAST( NULL AS SIGNED ) + col0 * + col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8881
SELECT ALL col0 + col2 * - CAST ( NULL AS INTEGER ) + col0 * + col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 67 * - cor0.col0 FROM tab1 AS cor0
----
-201
-4288
-5360

query I rowsort
SELECT 54 * col2 FROM tab1
----
2916
3078
5184

query I rowsort
SELECT DISTINCT + col2 + + 11 AS col0 FROM tab2 AS cor0
----
37
38
49

query I rowsort
SELECT DISTINCT - - cor0.col0 * - ( col2 ) * + col1 FROM tab1 AS cor0
----
-36480
-4212
-99840

onlyif mysql # use DIV operator for integer division
query I rowsort label-8886
SELECT ALL + + cor0.col1 DIV - 61 col2 FROM tab0 AS cor0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8886
SELECT ALL + + cor0.col1 / - 61 col2 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT + col1 + 95 AS col2 FROM tab1 AS cor0
----
105
108
121

query I rowsort
SELECT ALL + col1 * 41 * - col0 AS col2 FROM tab0 AS cor0
----
-139195
-332059
-84624

query I rowsort
SELECT ALL + + cor0.col2 * + 62 AS col1 FROM tab2 AS cor0
----
1612
1674
2356

query I rowsort
SELECT 35 AS col1 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29

query I rowsort
SELECT DISTINCT cor0.col2 * col0 * 77 - cor0.col0 * + col0 FROM tab1 AS cor0
----
12465
276800
584960

query I rowsort
SELECT - col1 + - 15 FROM tab2 AS cor0
----
-32
-46
-74

query I rowsort
SELECT ALL - + col0 + - ( col1 ) - + col1 * col0 FROM tab1 AS cor0
----
-107
-1133
-714

query I rowsort
SELECT ALL - cor0.col2 + cor0.col2 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT + 46 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 2f97924b57b73102233df7c9ce8ad602

onlyif mysql # use DIV operator for integer division
query I rowsort label-8896
SELECT DISTINCT + - col1 DIV 23 AS col1 FROM tab2 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-8896
SELECT DISTINCT + - col1 / 23 AS col1 FROM tab2 AS cor0
----
-1
-2
0

query I rowsort
SELECT DISTINCT + col1 + + ( + col2 + col0 ) * - col1 FROM tab0 AS cor0
----
-15470
-3395
-4816

query I rowsort
SELECT ALL - - col2 + 26 * + col0 FROM tab2 cor0
----
2054
209
2092

query I rowsort
SELECT ALL - - col2 + 54 * col0 FROM tab2 AS cor0
----
405
4238
4304

query I rowsort
SELECT + 89 * tab1.col0 AS col0 FROM tab1
----
267
5696
7120

query I rowsort
SELECT + col2 * + col0 + + col0 AS col0 FROM tab0 AS cor0
----
70
7387
816

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 24 col1 FROM tab2
----
24

query I rowsort
SELECT ALL + tab0.col1 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc

query I rowsort
SELECT DISTINCT - 38 FROM tab1, tab0, tab2 AS cor0
----
-38

query I rowsort
SELECT ALL tab0.col2 * col0 AS col0 FROM tab0
----
35
7298
792

query I rowsort
SELECT DISTINCT + col2 * col2 * - 38 AS col2 FROM tab1
----
-110808
-123462
-350208

query I rowsort
SELECT - 74 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 5a567947d14593676e3825756f8e6130

query I rowsort
SELECT ALL col2 * - ( + col0 * tab2.col1 ) AS col1 FROM tab2
----
-119652
-51034
-5859

query I rowsort
SELECT DISTINCT + + col2 * - ( col1 ) AS col2 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT ALL - 91 - - ( col1 ) * 64 AS col0 FROM tab0 AS cor0
----
5413
5733
6117

query I rowsort
SELECT col1 * 78 - + col0 AS col1 FROM tab2 cor0
----
1247
2411
4524

onlyif mysql # use DIV operator for integer division
query I rowsort label-8912
SELECT - 31 DIV - col2 - col0 * ( + col1 + cor0.col1 ) * col2 AS col0 FROM tab0 AS cor0
----
-1328236
-136224
-6759

skipif mysql # not compatible
query I rowsort label-8912
SELECT - 31 / - col2 - col0 * ( + col1 + cor0.col1 ) * col2 AS col0 FROM tab0 AS cor0
----
-1328236
-136224
-6759

query I rowsort
SELECT DISTINCT + ( - ( + col1 ) ) + col0 * col2 FROM tab0 AS cor0
----
-62
706
7207

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8914
SELECT ALL + + CAST( NULL AS SIGNED ) + - 0 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-8914
SELECT ALL + + CAST ( NULL AS INTEGER ) + - 0 col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 - - col2 * - col0 AS col2 FROM tab1 AS cor0
----
-108
-3591
-7584

query I rowsort
SELECT DISTINCT - 90 + col0 FROM tab0 AS cor0
----
-1
-55
-66

query I rowsort
SELECT ALL - 34 * cor0.col0 + + col1 FROM tab0 AS cor0
----
-1093
-2935
-730

query I rowsort
SELECT + - 23 AS col2 FROM tab2 AS cor0
----
-23
-23
-23

query I rowsort
SELECT - col0 * col1 + + col1 FROM tab0 AS cor0
----
-1978
-3298
-8008

onlyif mysql # use DIV operator for integer division
query I rowsort label-8920
SELECT col0 + col1 DIV - col2 AS col2 FROM tab0
----
-62
22
88

skipif mysql # not compatible
query I rowsort label-8920
SELECT col0 + col1 / - col2 AS col2 FROM tab0
----
-62
22
88

query I rowsort
SELECT + 97 + - col2 - col2 FROM tab2 cor0
----
21
43
45

onlyif mysql # use DIV operator for integer division
query I rowsort label-8922
SELECT - ( + 14 ) * col0 + CAST( col2 AS SIGNED ) DIV cor0.col2 AS col2 FROM tab0 AS cor0
----
-1245
-335
-489

skipif mysql # not compatible
query I rowsort label-8922
SELECT - ( + 14 ) * col0 + CAST ( col2 AS INTEGER ) / cor0.col2 AS col2 FROM tab0 AS cor0
----
-1245
-335
-489

query I rowsort
SELECT 21 * + col0 FROM tab1
----
1344
1680
63

query I rowsort
SELECT + 3 + - col0 AS col2 FROM tab2
----
-4
-75
-76

query I rowsort
SELECT ALL col1 * + 23 FROM tab2
----
1357
391
713

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8926
SELECT CAST( - 72 AS SIGNED ) + + col1 FROM tab0
----
14
19
25

skipif mysql # not compatible
query I rowsort label-8926
SELECT CAST ( - 72 AS INTEGER ) + + col1 FROM tab0
----
14
19
25

query I rowsort
SELECT col1 - - 57 * - tab2.col1 AS col0 FROM tab2
----
-1736
-3304
-952

query I rowsort
SELECT DISTINCT + 50 AS col1 FROM tab1, tab0 cor0
----
50

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8929
SELECT + CAST( col2 AS SIGNED ) * - col1 AS col1 FROM tab2 AS cor0
----
-1534
-646
-837

skipif mysql # not compatible
query I rowsort label-8929
SELECT + CAST ( col2 AS INTEGER ) * - col1 AS col1 FROM tab2 AS cor0
----
-1534
-646
-837

onlyif mysql # use DIV operator for integer division
query I rowsort label-8930
SELECT + + ( + col0 ) DIV + col0 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8930
SELECT + + ( + col0 ) / + col0 FROM tab0 AS cor0
----
1
1
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8931
SELECT - CAST( NULL AS SIGNED ) / col2 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8931
SELECT - CAST ( NULL AS INTEGER ) / col2 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 + + col1 AS col0 FROM tab2 cor0
----
-21
33
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 66 * col2 col2 FROM tab0 AS cor0
----
-2178
-5412
-66

query I rowsort
SELECT - col2 * col1 * cor0.col2 + col1 AS col2 FROM tab2 AS cor0
----
-22568
-24531
-39825

query I rowsort
SELECT + + ( col1 ) - - cor0.col0 AS col2 FROM tab2 AS cor0
----
137
38
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-8936
SELECT 42 DIV + col1 FROM tab2
----
0
1
2

skipif mysql # not compatible
query I rowsort label-8936
SELECT 42 / + col1 FROM tab2
----
0
1
2

query I rowsort
SELECT ALL - ( + ( col2 ) ) FROM tab0
----
-1
-33
-82

query I rowsort
SELECT DISTINCT 95 AS col2 FROM tab0, tab1 AS cor0
----
95

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8939
SELECT + + cor0.col0 / CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8939
SELECT + + cor0.col0 / CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - cor0.col2 + - cor0.col2 AS col2 FROM tab0 AS cor0
----
-164
-2
-66

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8941
SELECT - cor0.col2 * CAST( ( - col2 ) AS SIGNED ) + - col0 * col0 FROM tab1 AS cor0
----
-847
2816
2907

skipif mysql # not compatible
query I rowsort label-8941
SELECT - cor0.col2 * CAST ( ( - col2 ) AS INTEGER ) + - col0 * col0 FROM tab1 AS cor0
----
-847
2816
2907

onlyif mysql # use DIV operator for integer division
query I rowsort label-8942
SELECT + - col0 DIV col1 AS col1 FROM tab2 cor0
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-8942
SELECT + - col0 / col1 AS col1 FROM tab2 cor0
----
-1
-4
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-8943
SELECT - col2 DIV 47 FROM tab1 AS cor0
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-8943
SELECT - col2 / 47 FROM tab1 AS cor0
----
-1
-1
-2

query I rowsort
SELECT DISTINCT - ( - col1 ) * - 93 FROM tab2
----
-1581
-2883
-5487

query I rowsort
SELECT - col2 * - col2 + 44 AS col0 FROM tab0
----
1133
45
6768

query I rowsort
SELECT ALL - 76 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f8b6589bc7503fc720ca5430e3569317

query I rowsort
SELECT 87 - - col2 FROM tab2
----
113
114
125

query I rowsort
SELECT ALL + + col1 * cor0.col2 + col2 FROM tab0 AS cor0
----
2871
7544
98

query I rowsort
SELECT ALL + col1 * col2 * 49 + - col1 AS col2 FROM tab0 AS cor0
----
138976
365547
4656

query I rowsort
SELECT ( col1 ) + - 26 * - col2 AS col2 FROM tab2
----
1005
733
735

query I rowsort
SELECT DISTINCT - tab1.col2 * col1 AS col1 FROM tab1
----
-1248
-1404
-570

query I rowsort
SELECT 85 * + ( + cor0.col1 ) - ( + 10 ) AS col0 FROM tab2, tab1 cor0, tab0 AS cor1
----
27 values hashing to 3cf5615cf03adf6db81cfbc66b1b5b4a

query I rowsort
SELECT DISTINCT + cor0.col1 * + col0 + - 34 FROM tab1 cor0
----
1006
44
606

query I rowsort
SELECT DISTINCT - col0 + cor0.col1 * + ( - col2 ) AS col0 FROM tab2 AS cor0
----
-1612
-725
-844

onlyif mysql # use DIV operator for integer division
query I rowsort label-8955
SELECT ALL + col2 DIV col1 + - col2 AS col1 FROM tab2 AS cor0
----
-26
-27
-36

skipif mysql # not compatible
query I rowsort label-8955
SELECT ALL + col2 / col1 + - col2 AS col1 FROM tab2 AS cor0
----
-26
-27
-36

query I rowsort
SELECT ALL col1 - + 98 FROM tab0 AS cor0
----
-1
-12
-7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8957
SELECT + cor0.col1 * CAST( col1 AS SIGNED ) + col1 FROM tab1 AS cor0
----
110
182
702

skipif mysql # not compatible
query I rowsort label-8957
SELECT + cor0.col1 * CAST ( col1 AS INTEGER ) + col1 FROM tab1 AS cor0
----
110
182
702

query I rowsort
SELECT col2 + 27 + col1 AS col1 FROM tab1
----
107
136
94

query I rowsort
SELECT col2 * col2 + col1 + col1 FROM tab1
----
2968
3269
9242

query I rowsort
SELECT DISTINCT tab1.col2 + tab1.col2 FROM tab1
----
108
114
192

query I rowsort
SELECT DISTINCT - col0 * + col2 + + 98 AS col1 FROM tab2 AS cor0
----
-1930
-2904
-91

query I rowsort
SELECT ALL + col0 + + col0 * 26 * col2 FROM tab1 AS cor0
----
199760
4215
94912

query I rowsort
SELECT ALL - col2 + ( - cor0.col1 ) * - col0 AS col2 FROM tab0 AS cor0
----
2031
3394
8017

query I rowsort
SELECT ALL + cor0.col0 * + col1 + col1 AS col2 FROM tab1 AS cor0
----
104
1053
650

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col0 * col1 col2 FROM tab1 cor0
----
1040
640
78

query I rowsort
SELECT ALL - col2 * - ( - col0 ) - col2 FROM tab1 AS cor0
----
-216
-3705
-7776

query I rowsort
SELECT DISTINCT col1 * 64 AS col0 FROM tab2 AS cor0
----
1088
1984
3776

onlyif mysql # use DIV operator for integer division
query I rowsort label-8968
SELECT DISTINCT - col1 + + col0 DIV + cor0.col0 + + col1 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8968
SELECT DISTINCT - col1 + + col0 / + cor0.col0 + + col1 FROM tab1 AS cor0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 - col1 col0 FROM tab0 cor0
----
-110
-132
-180

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8970
SELECT DISTINCT col2 + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8970
SELECT DISTINCT col2 + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL col0 * - ( - col1 ) - col2 * + col0 FROM tab1 AS cor0
----
-3008
-6640
-84

query I rowsort
SELECT col0 + - col1 + - col2 AS col2 FROM tab2 AS cor0
----
-51
-7
24

query I rowsort
SELECT DISTINCT + 78 - col1 * + 25 AS col1 FROM tab1 AS cor0
----
-172
-247
-572

query I rowsort
SELECT DISTINCT - + ( col0 ) - ( col0 ) * col2 FROM tab0 AS cor0
----
-70
-7387
-816

query I rowsort
SELECT DISTINCT - 9 AS col2 FROM tab1
----
-9

query I rowsort
SELECT ALL - tab2.col1 AS col2 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2

query I rowsort
SELECT DISTINCT - 51 * col0 FROM tab1 AS cor0
----
-153
-3264
-4080

query I rowsort
SELECT ALL - + col0 + + col1 * cor0.col0 FROM tab2 AS cor0
----
1264
210
4524

query I rowsort
SELECT + cor0.col1 * col0 + 62 FROM tab2 AS cor0
----
1405
279
4664

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 86 + + cor0.col2 col0 FROM tab2 AS cor0
----
-48
-59
-60

query I rowsort
SELECT ALL - col1 * + col1 + col1 AS col1 FROM tab1 AS cor0
----
-156
-650
-90

onlyif mysql # use DIV operator for integer division
query I rowsort label-8982
SELECT DISTINCT + + col0 * col1 DIV col0 FROM tab2 AS cor0
----
17
31
59

skipif mysql # not compatible
query I rowsort label-8982
SELECT DISTINCT + + col0 * col1 / col0 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT + - cor0.col1 * - col2 * - cor0.col2 FROM tab2 AS cor0
----
-22599
-24548
-39884

query I rowsort
SELECT ( 20 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4

query I rowsort
SELECT ( tab0.col2 * + col1 ) FROM tab0
----
2838
7462
97

query I rowsort
SELECT ALL + 23 * - 89 AS col0 FROM tab0 AS cor0
----
-2047
-2047
-2047

query I rowsort
SELECT + ( col2 ) * col2 + col1 * col2 FROM tab0 AS cor0
----
14186
3927
98

query I rowsort
SELECT DISTINCT - col1 * - 76 FROM tab2 AS cor0
----
1292
2356
4484

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8989
SELECT - CAST( + col2 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-26
-27
-38

skipif mysql # not compatible
query I rowsort label-8989
SELECT - CAST ( + col2 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-26
-27
-38

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8990
SELECT ALL - CAST( NULL AS SIGNED ) * col0 AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8990
SELECT ALL - CAST ( NULL AS INTEGER ) * col0 AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - cor0.col0 + + col1 * - col2 FROM tab1 cor0
----
-1328
-1407
-634

onlyif mysql # use DIV operator for integer division
query I rowsort label-8992
SELECT ALL - col0 - + CAST( tab0.col1 + col1 AS SIGNED ) DIV col2 col2 FROM tab0
----
-229
-29
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8992
SELECT ALL - col0 - + CAST ( tab0.col1 + col1 AS INTEGER ) / col2 col2 FROM tab0
----
-229
-29
-91

query I rowsort
SELECT ALL ( col2 ) + col1 AS col1 FROM tab1
----
109
67
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 58 + 82 col0 FROM tab2
----
24

query I rowsort
SELECT ALL 56 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 9c4523312174730bbc525b9977aa99fa

query I rowsort
SELECT cor0.col1 + ( col1 ) FROM tab1 AS cor0
----
20
26
52

query I rowsort
SELECT 87 * 6 FROM tab1
----
522
522
522

query I rowsort
SELECT - 71 * + tab1.col1 FROM tab1
----
-1846
-710
-923

query I rowsort
SELECT ALL - ( - col0 + col0 * + ( + col1 ) ) FROM tab2
----
-1264
-210
-4524

query I rowsort
SELECT + + col1 * col2 * col0 + + 49 FROM tab2 AS cor0
----
119701
51083
5908

query I rowsort
SELECT 74 + col0 * - col0 FROM tab1 AS cor0
----
-4022
-6326
65

query I rowsort
SELECT - 21 FROM tab0, tab0 AS cor0
----
9 values hashing to 631fbd1fd929405aba54a22c2a06c757

query I rowsort
SELECT + cor0.col0 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1, tab2 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

onlyif mysql # use DIV operator for integer division
query I rowsort label-9004
SELECT ALL 6 DIV col1 AS col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9004
SELECT ALL 6 / col1 AS col1 FROM tab0
----
0
0
0

query I rowsort
SELECT - cor0.col0 + - tab0.col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 7b5b9cceefef23d4ffdf9852fd8d61bb

query I rowsort
SELECT + 77 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to d7b027bca5d37c67e29013904def8125

skipif mysql # not compatible
query I rowsort
SELECT ALL CAST ( + col2 AS REAL ) * tab2.col1 + - 43 + col0 * tab2.col2 AS col2 FROM tab2
----
3519
3605
983

query I rowsort
SELECT + 38 * + cor0.col0 FROM tab1 AS cor0
----
114
2432
3040

query I rowsort
SELECT - col0 + 30 * + col1 AS col1 FROM tab0 AS cor0
----
2556
2641
2875

query I rowsort
SELECT 26 * col1 AS col2 FROM tab1
----
260
338
676

query I rowsort
SELECT + col1 * - 4 * col2 FROM tab0
----
-11352
-29848
-388

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 27 col0 FROM tab1
----
27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 83 col0 FROM tab2
----
83
83
83

query I rowsort
SELECT col0 * col2 + + 82 * - col1 FROM tab0
----
-164
-6260
-7919

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9015
SELECT CAST( NULL AS SIGNED ) AS col0 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-9015
SELECT CAST ( NULL AS INTEGER ) AS col0 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * col0 * 28 col2 FROM tab1
----
102144
215040
4536

query I rowsort
SELECT + 69 - + 27 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 64c29db9f1cd7ed4ddeb1735e3e0d442

onlyif mysql # use DIV operator for integer division
query I rowsort label-9018
SELECT DISTINCT - col2 + + col2 DIV col0 AS col2 FROM tab1 AS cor0
----
-36
-57
-95

skipif mysql # not compatible
query I rowsort label-9018
SELECT DISTINCT - col2 + + col2 / col0 AS col2 FROM tab1 AS cor0
----
-36
-57
-95

query I rowsort
SELECT - col1 * + col0 + col2 * col1 AS col2 FROM tab0 AS cor0
----
-3298
-637
774

query I rowsort
SELECT ALL + col2 - + 55 * col2 FROM tab2 AS cor0
----
-1404
-1458
-2052

query I rowsort
SELECT ALL + col0 * 7 + col2 AS col2 FROM tab1 AS cor0
----
505
656
75

query I rowsort
SELECT + cor0.col0 * + 0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - col2 * + 87 AS col2 FROM tab0 AS cor0
----
-2871
-7134
-87

query I rowsort
SELECT + + col1 * - 41 AS col2 FROM tab1 AS cor0
----
-1066
-410
-533

query I rowsort
SELECT + + col2 + + cor0.col2 * - col2 FROM tab0 cor0
----
-1056
-6642
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + ( - cor0.col2 ) ) + - 68 col2 FROM tab0, tab1 cor0
----
9 values hashing to f058548381a77e81494ccf217325a357

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 24 col2 FROM tab1, tab0 cor0
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + ( + cor0.col0 ) col0 FROM tab0 cor0
----
171
36
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 49 col2 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to adfccb10c9468825d9961e3613140f89

query I rowsort
SELECT ALL + - cor0.col2 - cor0.col1 FROM tab0, tab2 AS cor0
----
9 values hashing to a464155f1f6cb07f325fb0d7a4ec61f2

query I rowsort
SELECT + ( 47 ) * + col1 * col1 AS col0 FROM tab2 AS cor0
----
13583
163607
45167

query I rowsort
SELECT DISTINCT - cor0.col0 * col2 + - col0 AS col0 FROM tab2 cor0
----
-196
-2106
-3081

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9033
SELECT + - CAST( NULL AS SIGNED ) + col2 * col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9033
SELECT + - CAST ( NULL AS INTEGER ) + col2 * col2 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + + ( 36 ) + + cor0.col1 FROM tab2 cor0
----
53
67
95

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9035
SELECT - CAST( NULL AS SIGNED ) * col2 col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9035
SELECT - CAST ( NULL AS INTEGER ) * col2 col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - - 14 + col0 * col2 FROM tab0 cor0
----
49
7312
806

onlyif mysql # use DIV operator for integer division
query I rowsort label-9037
SELECT ALL cor0.col2 DIV ( - col0 ) FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-9037
SELECT ALL cor0.col2 / ( - col0 ) FROM tab0 AS cor0
----
-1
0
0

query I rowsort
SELECT ALL ( col0 ) * - cor0.col0 * col1 AS col0 FROM tab0 AS cor0
----
-118825
-49536
-720811

query I rowsort
SELECT col1 + col1 + col0 FROM tab1 AS cor0
----
106
55
84

query I rowsort
SELECT + + col0 + col1 + - cor0.col2 * col1 AS col1 FROM tab2 cor0
----
-1397
-550
-799

query I rowsort
SELECT - col1 * + cor0.col1 + 14 + + col0 AS col1 FROM tab1 AS cor0
----
-22
-659
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + col1 + col0 col1 FROM tab2 AS cor0
----
11
111
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 23 * - cor0.col1 col1 FROM tab1 AS cor0
----
-230
-299
-598

query I rowsort
SELECT + + 80 * col1 + - 42 + - col0 AS col2 FROM tab1 AS cor0
----
2035
694
918

query I rowsort
SELECT + - col1 + cor0.col2 AS col2 FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT col1 + - col2 + col1 AS col1 FROM tab1 AS cor0
----
-2
-37
-70

query I rowsort
SELECT ALL col0 * - col2 AS col1 FROM tab1 cor0
----
-162
-3648
-7680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9048
SELECT - col1 * + CAST( NULL AS DECIMAL ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9048
SELECT - col1 * + CAST ( NULL AS REAL ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 78 col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4

query I rowsort
SELECT - cor0.col0 AS col1 FROM tab2, tab2 AS cor0, tab1, tab0 cor1
----
81 values hashing to adaea38eae032c1639715f21831dd376

query I rowsort
SELECT DISTINCT - col2 + cor0.col1 + - col0 AS col0 FROM tab0 AS cor0
----
-80
29
61

query I rowsort
SELECT col0 * - col2 + - col1 AS col2 FROM tab2 AS cor0
----
-2087
-220
-3019

query I rowsort
SELECT ALL - col1 - + cor0.col2 * + col2 AS col1 FROM tab1 AS cor0
----
-2942
-3259
-9229

query I rowsort
SELECT DISTINCT col1 + col0 * col2 FROM tab1 AS cor0
----
188
3658
7693

query I rowsort
SELECT ALL + col2 * col0 * col1 + col2 FROM tab2 AS cor0
----
119678
51072
5886

query I rowsort
SELECT ALL + col0 * - col1 + col0 AS col1 FROM tab0 AS cor0
----
-2040
-3360
-8010

onlyif mysql # use DIV operator for integer division
query I rowsort label-9057
SELECT DISTINCT + - col2 DIV + col1 + - col2 FROM tab0 AS cor0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-9057
SELECT DISTINCT + - col2 / + col1 + - col2 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT ALL + - col2 * col1 + - col0 * col1 AS col1 FROM tab2 AS cor0
----
-1054
-1989
-6136

query I rowsort
SELECT ALL + tab2.col0 + tab2.col2 * - col1 FROM tab2
----
-1456
-567
-830

onlyif mysql # use DIV operator for integer division
query I rowsort label-9060
SELECT DISTINCT col2 DIV + col1 + col0 col0 FROM tab1
----
5
69
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9060
SELECT DISTINCT col2 / + col1 + col0 col0 FROM tab1
----
5
69
87

query I rowsort
SELECT DISTINCT - col0 + - cor0.col2 * + col0 * col2 + col2 AS col1 FROM tab0 AS cor0
----
-26127
-598443
-69

query I rowsort
SELECT DISTINCT + - col1 * + col2 * - col2 + col2 * - col2 FROM tab0 AS cor0
----
605160
92565
96

query I rowsort
SELECT ALL + 24 * + col1 FROM tab0
----
2064
2184
2328

query I rowsort
SELECT + cor1.col2 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col0 ) + col1 * - col1 col2 FROM tab2 AS cor0
----
-3559
-368
-968

query I rowsort
SELECT + 14 - col0 AS col0 FROM tab0 AS cor0
----
-10
-21
-75

query I rowsort
SELECT + 80 * col1 - col1 AS col1 FROM tab2
----
1343
2449
4661

onlyif mysql # use DIV operator for integer division
query I rowsort label-9068
SELECT DISTINCT + 85 DIV + col0 + col0 * - tab0.col1 FROM tab0
----
-2061
-3393
-8099

skipif mysql # not compatible
query I rowsort label-9068
SELECT DISTINCT + 85 / + col0 + col0 * - tab0.col1 FROM tab0
----
-2061
-3393
-8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-9069
SELECT ALL + col0 + col1 DIV col0 AS col1 FROM tab0
----
27
37
90

skipif mysql # not compatible
query I rowsort label-9069
SELECT ALL + col0 + col1 / col0 AS col1 FROM tab0
----
27
37
90

query I rowsort
SELECT DISTINCT - tab1.col0 * - col2 + col0 FROM tab1
----
165
3712
7760

onlyif mysql # use DIV operator for integer division
query I rowsort label-9071
SELECT DISTINCT col0 DIV - col2 + + col2 * col1 * - col2 col2 FROM tab0
----
-132
-611885
-93654

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9071
SELECT DISTINCT col0 / - col2 + + col2 * col1 * - col2 col2 FROM tab0
----
-132
-611885
-93654

query I rowsort
SELECT + + cor0.col1 * + col2 + + col1 FROM tab0 AS cor0
----
194
2924
7553

onlyif mysql # use DIV operator for integer division
query I rowsort label-9073
SELECT ALL - + col2 DIV - col0 + col2 * col2 AS col2 FROM tab1 cor0
----
2934
3249
9217

skipif mysql # not compatible
query I rowsort label-9073
SELECT ALL - + col2 / - col0 + col2 * col2 AS col2 FROM tab1 cor0
----
2934
3249
9217

query I rowsort
SELECT ALL col0 * - col0 + + col2 * + col0 AS col0 FROM tab0 AS cor0
----
-1190
-623
216

query I rowsort
SELECT - + col1 + col2 * col1 FROM tab0 AS cor0
----
0
2752
7371

query I rowsort
SELECT - - cor0.col1 * col0 + col0 FROM tab1 cor0
----
1120
704
81

query I rowsort
SELECT col2 * + col0 * - tab1.col2 AS col0 FROM tab1
----
-207936
-737280
-8748

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col2 + col2 col2 FROM tab0
----
2871
7544
98

query I rowsort
SELECT DISTINCT col0 - + col1 AS col0 FROM tab1
----
-23
54
67

query I rowsort
SELECT ALL col1 * + col2 * col2 AS col2 FROM tab0
----
611884
93654
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-9081
SELECT col2 + - col0 DIV + col1 AS col0 FROM tab1
----
51
54
90

skipif mysql # not compatible
query I rowsort label-9081
SELECT col2 + - col0 / + col1 AS col0 FROM tab1
----
51
54
90

query I rowsort
SELECT col1 * + tab0.col0 * col2 AS col0 FROM tab0
----
3395
664118
68112

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL >= col1 / - col0 + - col2
----

query I rowsort
SELECT ALL col1 * - tab1.col1 - + col1 FROM tab1
----
-110
-182
-702

query I rowsort
SELECT - 16 * col2 AS col1 FROM tab2 AS cor0
----
-416
-432
-608

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9086
SELECT DISTINCT col0 + + col2 + CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9086
SELECT DISTINCT col0 + + col2 + CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 15 + - col0 col0 FROM tab0 AS cor0
----
-104
-39
-50

query I rowsort
SELECT DISTINCT - - ( cor0.col0 ) - 21 FROM tab0 AS cor0
----
14
3
68

query I rowsort
SELECT DISTINCT - col0 AS col0 FROM tab1 WHERE NOT ( tab1.col0 + - col2 ) <= NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-9090
SELECT ALL - tab2.col2 DIV tab2.col0 + col1 AS col2 FROM tab2
----
17
28
59

skipif mysql # not compatible
query I rowsort label-9090
SELECT ALL - tab2.col2 / tab2.col0 + col1 AS col2 FROM tab2
----
17
28
59

query I rowsort
SELECT col2 + col2 AS col1 FROM tab1 WHERE ( NULL ) IN ( + col1 - - col1 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT IN ( - col0 )
----

query I rowsort
SELECT 55 * + col2 + + col0 FROM tab0 AS cor0
----
1839
4599
90

query I rowsort
SELECT DISTINCT + col2 * + col1 AS col2 FROM tab1 WHERE NOT ( NULL ) >= ( + col2 * + col1 )
----

query I rowsort
SELECT DISTINCT col0 * - cor0.col1 / col1 AS col0 FROM tab0 AS cor0 WHERE NOT + cor0.col1 - col0 * cor0.col1 NOT IN ( - col0 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-9096
SELECT DISTINCT cor0.col1 DIV col0 col2 FROM tab1 AS cor0
----
0
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9096
SELECT DISTINCT cor0.col1 / col0 col2 FROM tab1 AS cor0
----
0
8

query I rowsort
SELECT col0 * tab2.col1 + + col0 FROM tab2
----
1422
224
4680

query IIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 cor0 WHERE NOT NULL IN ( + cor0.col0 )
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col2 * + col2 BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT DISTINCT tab1.col1 * + tab1.col1 AS col2 FROM tab1
----
100
169
676

query I rowsort
SELECT DISTINCT cor0.col2 * col2 * + col0 FROM tab2 AS cor0
----
114076
5103
52728

query I rowsort
SELECT - col0 FROM tab0 AS cor0 WHERE NOT col0 + col0 BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT - col0 * - col0 + - col0 * - col1 FROM tab1 AS cor0
----
4736
7440
87

onlyif mysql # use DIV operator for integer division
query I rowsort label-9104
SELECT + col2 * + col1 DIV col1 AS col2 FROM tab2
----
26
27
38

skipif mysql # not compatible
query I rowsort label-9104
SELECT + col2 * + col1 / col1 AS col2 FROM tab2
----
26
27
38

query I rowsort
SELECT col0 + - tab0.col1 + - col1 FROM tab0
----
-148
-159
-93

query I rowsort
SELECT ALL + col0 * tab0.col0 AS col1 FROM tab0 WHERE NOT ( NULL ) IN ( col1 + - col0 )
----

query I rowsort
SELECT + col0 * col1 * - col0 + col2 + + col0 * + col1 AS col2 FROM tab0
----
-115429
-47439
-712630

query I rowsort
SELECT DISTINCT col0 FROM tab0 WHERE ( col0 * - col2 + col1 - col2 ) < col2
----
24
89

query I rowsort
SELECT + col2 + - col0 - col2 AS col0 FROM tab1
----
-3
-64
-80

query I rowsort
SELECT col1 FROM tab2 WHERE NULL NOT BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT col0 + tab0.col2 * col1 * - tab0.col1 AS col2 FROM tab0
----
-244044
-678953
-9374

query I rowsort
SELECT DISTINCT tab1.col1 FROM tab1 WHERE NULL > ( + col1 - col2 )
----

query I rowsort
SELECT DISTINCT col0 * + col2 + col2 - col0 FROM tab1
----
213
3641
7696

onlyif mysql # use DIV operator for integer division
query I rowsort label-9114
SELECT ALL - col1 * + col1 DIV + col1 AS col1 FROM tab0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-9114
SELECT ALL - col1 * + col1 / + col1 AS col1 FROM tab0
----
-86
-91
-97

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL >= ( + col0 * col1 - col2 * col2 )
----

query I rowsort
SELECT DISTINCT - ( tab1.col2 + col2 ) * - col1 AS col2 FROM tab1
----
1140
2496
2808

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - col2 col2 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT + + col0 * col2 * ( col0 * col1 ) AS col1 FROM tab0 AS cor0
----
118825
1634688
59106502

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9119
SELECT ALL - CAST( NULL AS SIGNED ) * cor0.col1 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-9119
SELECT ALL - CAST ( NULL AS INTEGER ) * cor0.col1 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 52 col1 FROM tab2, tab2 cor0
----
9 values hashing to 9500afe5646d620d5e8943351a29d082

query I rowsort
SELECT - 68 * 35 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to abd7c7597af5f1dcd4381cdc7c1ab64a

query I rowsort
SELECT - col2 + - col2 + cor0.col0 FROM tab2 AS cor0
----
-47
26
3

query I rowsort
SELECT + + ( - cor0.col1 ) + + col2 * 45 FROM tab1 AS cor0
----
2404
2555
4307

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9124
SELECT ALL col0 * + CAST( NULL AS DECIMAL ) + ( + col0 ) * - tab0.col0 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9124
SELECT ALL col0 * + CAST ( NULL AS REAL ) + ( + col0 ) * - tab0.col0 AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT 84 + + col2 + + col2 AS col1 FROM tab2 AS cor0
----
136
138
160

query I rowsort
SELECT + ( + col2 ) + col0 * 12 AS col1 FROM tab1 cor0
----
1056
825
90

query I rowsort
SELECT - 33 * - col1 FROM tab0 AS cor0
----
2838
3003
3201

query I rowsort
SELECT 98 + + 58 FROM tab2
----
156
156
156

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( ( col1 ) * - 37 ) col0 FROM tab1
----
-370
-481
-962

query I rowsort
SELECT DISTINCT + ( col0 + + tab0.col1 ) FROM tab0
----
110
132
180

query I rowsort
SELECT ALL + 63 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 38764a6e696d1a6b5095e29ef84959c0

query I rowsort
SELECT - - 3 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 3e22859a313d85a6146c6df5f23d77cf

query I rowsort
SELECT ALL 86 + col1 FROM tab0 AS cor0
----
172
177
183

query I rowsort
SELECT DISTINCT col0 + col1 * col2 FROM tab2 AS cor0
----
1612
725
844

onlyif mysql # use DIV operator for integer division
query I rowsort label-9135
SELECT - 12 * - cor0.col2 + - ( + cor0.col1 ) DIV + col2 AS col0 FROM tab1 cor0
----
1152
648
684

skipif mysql # not compatible
query I rowsort label-9135
SELECT - 12 * - cor0.col2 + - ( + cor0.col1 ) / + col2 AS col0 FROM tab1 cor0
----
1152
648
684

query I rowsort
SELECT DISTINCT - col1 * - col0 + col2 AS col0 FROM tab0 AS cor0
----
2097
3396
8181

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9137
SELECT DISTINCT - tab0.col0 * + col1 + CAST( NULL AS DECIMAL ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9137
SELECT DISTINCT - tab0.col0 * + col1 + CAST ( NULL AS REAL ) AS col1 FROM tab0
----
NULL

query I rowsort
SELECT - col1 + col2 * ( + 98 ) FROM tab2 AS cor0
----
2489
2615
3707

query I rowsort
SELECT + cor0.col1 + 77 - cor0.col1 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622

query I rowsort
SELECT ALL + 78 FROM tab2, tab0 AS cor0
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4

query I rowsort
SELECT 33 FROM tab0, tab0 cor0, tab0 AS cor1
----
27 values hashing to 76da8bc7cae18ecf856438f872430c80

query I rowsort
SELECT ALL + col1 * + ( ( + col2 ) * + tab0.col2 ) FROM tab0
----
611884
93654
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 46 * - col2 * col0 + - ( - col0 ) col2 FROM tab0 AS cor0
----
1645
335797
36456

query I rowsort
SELECT DISTINCT col0 - col0 * col1 AS col1 FROM tab2
----
-1264
-210
-4524

query I rowsort
SELECT - col0 - 25 AS col2 FROM tab0 cor0
----
-114
-49
-60

query I rowsort
SELECT 46 * + cor0.col2 - cor0.col1 AS col1 FROM tab2 AS cor0
----
1137
1211
1731

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + col1 + col0 col2 FROM tab1 AS cor0
----
1120
704
81

query I rowsort
SELECT - 50 * col2 FROM tab1 cor0
----
-2700
-2850
-4800

query I rowsort
SELECT DISTINCT col1 * - col2 + + col2 FROM tab2
----
-1508
-608
-810

query I rowsort
SELECT - cor0.col1 + col1 - col1 FROM tab1 AS cor0
----
-10
-13
-26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( 89 ) + - col1 + + ( col0 ) col1 FROM tab1 AS cor0
----
143
156
66

onlyif mysql # use DIV operator for integer division
query I rowsort label-9152
SELECT ALL + 68 DIV col1 FROM tab1 cor0
----
2
5
6

skipif mysql # not compatible
query I rowsort label-9152
SELECT ALL + 68 / col1 FROM tab1 cor0
----
2
5
6

query I rowsort
SELECT + - col1 * - col1 + - col2 FROM tab1 AS cor0
----
43
622
73

query I rowsort
SELECT - - 19 + col0 * + col0 AS col1 FROM tab0 AS cor0
----
1244
595
7940

query I rowsort
SELECT - 73 * col0 + + col0 * + col2 * - 5 AS col0 FROM tab1 cor0
----
-1029
-22912
-44240

query I rowsort
SELECT - 81 + col0 AS col2 FROM tab1 cor0
----
-1
-17
-78

query I rowsort
SELECT + - col1 + - col1 * cor0.col2 * col1 AS col2 FROM tab2 AS cor0
----
-10999
-25978
-90565

query I rowsort
SELECT DISTINCT - - cor0.col2 * ( + col2 ) FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT - 3 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 65b7e16aaa7821ace3a45a9846ffa166

query I rowsort
SELECT DISTINCT 95 FROM tab1, tab1 AS cor0
----
95

query I rowsort
SELECT DISTINCT - col2 * col1 AS col2 FROM tab0 cor0
----
-2838
-7462
-97

query I rowsort
SELECT - col0 + + 53 * col2 FROM tab0
----
1725
18
4257

query I rowsort
SELECT - col1 + tab2.col2 * + col0 * col2 FROM tab2
----
114059
5072
52669

query I rowsort
SELECT - tab2.col0 + - ( - tab2.col2 ) FROM tab2
----
-41
-52
20

onlyif mysql # use DIV operator for integer division
query I rowsort label-9165
SELECT + col1 * + col0 * col2 + col2 DIV + 47 + col2 col1 FROM tab1 AS cor0
----
36538
4267
99938

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9165
SELECT + col1 * + col0 * col2 + col2 / + 47 + col2 col1 FROM tab1 AS cor0
----
36538
4267
99938

query I rowsort
SELECT DISTINCT - cor0.col2 * col1 + + 75 * - col0 AS col2 FROM tab0 AS cor0
----
-14137
-2722
-4638

query I rowsort
SELECT + col2 * col2 * ( + col2 ) AS col1 FROM tab0 AS cor0
----
1
35937
551368

query I rowsort
SELECT DISTINCT - col0 * 4 AS col1 FROM tab1 AS cor0
----
-12
-256
-320

query I rowsort
SELECT DISTINCT - col2 - - col2 FROM tab0 cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-9170
SELECT ALL - + ( 57 ) DIV - col1 + col2 * 80 FROM tab0 AS cor0
----
2640
6560
80

skipif mysql # not compatible
query I rowsort label-9170
SELECT ALL - + ( 57 ) / - col1 + col2 * 80 FROM tab0 AS cor0
----
2640
6560
80

query I rowsort
SELECT 49 + col0 AS col0 FROM tab0 AS cor0
----
138
73
84

query I rowsort
SELECT ALL col1 * col1 * + col0 + ( - 12 * - col0 ) FROM tab0 AS cor0
----
177792
329735
738077

query I rowsort
SELECT DISTINCT - - 70 - - ( - col2 ) AS col1 FROM tab0 cor0
----
-12
37
69

query I rowsort
SELECT + cor0.col1 * - 31 FROM tab1 AS cor0
----
-310
-403
-806

query I rowsort
SELECT - col1 + - ( - col1 ) FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + 68 * col0 + + col2 - - 73 AS col0 FROM tab2 AS cor0
----
5403
5483
576

query I rowsort
SELECT ALL col1 + col0 * - col0 AS col2 FROM tab2
----
-18
-6025
-6224

query I rowsort
SELECT - col0 * 18 + 10 * tab0.col2 FROM tab0
----
-102
-620
-782

query I rowsort
SELECT ALL col2 + - col2 + col2 FROM tab0
----
1
33
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 + col0 + - ( - col2 * + col1 + 98 ) col2 FROM tab0 AS cor0
----
-1
2740
7364

query I rowsort
SELECT + + cor0.col0 - + col0 * - ( - col0 ) AS col0 FROM tab1 AS cor0
----
-4032
-6
-6320

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * - col1 + + 55 col2 FROM tab0 AS cor0
----
-7341
-8226
-9354

onlyif mysql # use DIV operator for integer division
query I rowsort label-9183
SELECT 13 DIV + col1 AS col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9183
SELECT 13 / + col1 AS col0 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-9184
SELECT DISTINCT cor0.col0 + col1 DIV - col1 AS col0 FROM tab0 AS cor0
----
23
34
88

skipif mysql # not compatible
query I rowsort label-9184
SELECT DISTINCT cor0.col0 + col1 / - col1 AS col0 FROM tab0 AS cor0
----
23
34
88

query I rowsort
SELECT + 41 - col0 FROM tab2 AS cor0
----
-37
-38
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 * col0 col0 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT + - cor0.col0 * col2 * col1 AS col0 FROM tab2 cor0
----
-119652
-51034
-5859

onlyif mysql # use DIV operator for integer division
query I rowsort label-9188
SELECT ALL - col1 DIV - col1 AS col2 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9188
SELECT ALL - col1 / - col1 AS col2 FROM tab2 AS cor0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 68 + - col1 col0 FROM tab0 AS cor0
----
-18
-23
-29

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9190
SELECT - col0 * col2 + CAST( 8 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-181
-2020
-2994

skipif mysql # not compatible
query I rowsort label-9190
SELECT - col0 * col2 + CAST ( 8 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-181
-2020
-2994

query I rowsort
SELECT 61 FROM tab2, tab0 AS cor0
----
9 values hashing to 07149905a72bd87553381f34d19ed290

query I rowsort
SELECT ALL + col2 + + col1 + col2 AS col2 FROM tab0
----
152
255
99

onlyif mysql # use DIV operator for integer division
query I rowsort label-9193
SELECT ALL - col0 DIV - 95 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9193
SELECT ALL - col0 / - 95 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT - + 50 * col0 AS col0 FROM tab2 cor0
----
-350
-3900
-3950

query I rowsort
SELECT tab2.col0 + + col2 + 72 AS col1 FROM tab2
----
106
176
189

query I rowsort
SELECT DISTINCT - - cor0.col2 FROM tab0, tab2, tab0 cor0
----
1
33
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-9197
SELECT + col1 * ( col1 ) - col2 DIV cor0.col1 FROM tab1 AS cor0
----
162
674
95

skipif mysql # not compatible
query I rowsort label-9197
SELECT + col1 * ( col1 ) - col2 / cor0.col1 FROM tab1 AS cor0
----
162
674
95

onlyif mysql # use DIV operator for integer division
query I rowsort label-9198
SELECT + 38 DIV - tab2.col0 AS col0 FROM tab2
----
-5
0
0

skipif mysql # not compatible
query I rowsort label-9198
SELECT + 38 / - tab2.col0 AS col0 FROM tab2
----
-5
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-9199
SELECT DISTINCT tab0.col1 DIV + tab0.col0 + + 83 FROM tab0
----
84
85
86

skipif mysql # not compatible
query I rowsort label-9199
SELECT DISTINCT tab0.col1 / + tab0.col0 + + 83 FROM tab0
----
84
85
86

query I rowsort
SELECT DISTINCT + 19 AS col1 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
19

query I rowsort
SELECT ALL 56 FROM tab1, tab1 cor0, tab2 AS cor1
----
27 values hashing to b5ba4b44e3deadce1edb30e76df61200

query I rowsort
SELECT DISTINCT 4 * + cor0.col2 FROM tab0, tab2 cor0
----
104
108
152

query I rowsort
SELECT - col1 * + col0 + ( + col1 ) + - 56 * col0 FROM tab0 AS cor0
----
-12992
-3322
-5258

query I rowsort
SELECT ALL + cor0.col1 * + 82 AS col1 FROM tab0 AS cor0
----
7052
7462
7954

query I rowsort
SELECT - col0 * 30 FROM tab0 AS cor0
----
-1050
-2670
-720

query I rowsort
SELECT - cor0.col0 + ( col2 ) + - col0 AS col1 FROM tab2 cor0
----
-120
-130
13

query I rowsort
SELECT ALL col0 + col0 * - cor0.col1 + + col0 FROM tab2 AS cor0
----
-1185
-203
-4446

onlyif mysql # use DIV operator for integer division
query I rowsort label-9208
SELECT col2 + ( col1 ) DIV - col1 AS col0 FROM tab1 AS cor0
----
53
56
95

skipif mysql # not compatible
query I rowsort label-9208
SELECT col2 + ( col1 ) / - col1 AS col0 FROM tab1 AS cor0
----
53
56
95

query I rowsort
SELECT ALL + - col0 + col0 * + col0 * col2 + - ( + 15 + + col1 ) AS col1 FROM tab0 AS cor0
----
1078
18883
649327

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - col2 col0 FROM tab0 AS cor0
----
-35
-7298
-792

onlyif mysql # use DIV operator for integer division
query I rowsort label-9211
SELECT ALL + - col2 * col0 + + col2 DIV - ( + col1 * - col2 ) AS col1 FROM tab1 AS cor0
----
-162
-3648
-7680

skipif mysql # not compatible
query I rowsort label-9211
SELECT ALL + - col2 * col0 + + col2 / - ( + col1 * - col2 ) AS col1 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT DISTINCT + ( col0 ) + - cor0.col0 - - col2 * col1 AS col1 FROM tab0 cor0
----
2838
7462
97

query I rowsort
SELECT ALL - 61 * 76 FROM tab1
----
-4636
-4636
-4636

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * 17 + col1 col2 FROM tab0 AS cor0
----
1604
494
692

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 89 col2 FROM tab2 cor0
----
89
89
89

query I rowsort
SELECT ALL - cor0.col1 - col1 AS col0 FROM tab1 AS cor0
----
-20
-26
-52

onlyif mysql # use DIV operator for integer division
query I rowsort label-9217
SELECT DISTINCT + 3 DIV + col1 + - 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-9217
SELECT DISTINCT + 3 / + col1 + - col1 col0 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT - 89 * col2 * + col2 FROM tab1 AS cor0
----
-259524
-289161
-820224

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - cor0.col2 * - 95 + + 80 col1 FROM tab0 AS cor0
----
-15
-3055
-7710

query I rowsort
SELECT - col2 * col2 * + 51 + + col1 FROM tab2 AS cor0
----
-34417
-37148
-73627

query I rowsort
SELECT cor0.col0 * + col1 + + col1 FROM tab0 AS cor0
----
2150
3492
8190

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9222
SELECT CAST( + col1 AS SIGNED ) * + col1 AS col2 FROM tab1 AS cor0
----
100
169
676

skipif mysql # not compatible
query I rowsort label-9222
SELECT CAST ( + col1 AS INTEGER ) * + col1 AS col2 FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT cor0.col1 + + col2 * + cor0.col1 AS col2 FROM tab1 AS cor0
----
1261
1430
580

query I rowsort
SELECT - - col2 + ( + col2 ) * col1 * - col0 + + col2 AS col2 FROM tab2 cor0
----
-119600
-50958
-5805

query I rowsort
SELECT - col0 * 74 AS col0 FROM tab0 AS cor0
----
-1776
-2590
-6586

query I rowsort
SELECT - cor0.col0 + + col2 * + col2 AS col0 FROM tab2 cor0
----
1365
598
722

query I rowsort
SELECT - - col0 * + col1 + + cor0.col1 FROM tab0 AS cor0
----
2150
3492
8190

query I rowsort
SELECT - col1 + + cor0.col0 * + 91 AS col0 FROM tab2 AS cor0
----
606
7039
7172

query I rowsort
SELECT - col0 * - 67 * - col1 + - cor0.col0 AS col2 FROM tab0 AS cor0
----
-138312
-227500
-542722

query I rowsort
SELECT cor0.col0 * - tab0.col1 * + cor0.col2 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to a298d6b5efb4c727e2841b677dc069d2

query I rowsort
SELECT DISTINCT 21 AS col2 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
21

query I rowsort
SELECT ALL 14 + col0 * 88 * 88 + col0 FROM tab0
----
185894
271089
689319

onlyif mysql # use DIV operator for integer division
query I rowsort label-9233
SELECT ALL col1 DIV - col2 + col1 DIV - col0 FROM tab0
----
-2
-5
-99

skipif mysql # not compatible
query I rowsort label-9233
SELECT ALL col1 / - col2 + col1 / - col0 FROM tab0
----
-2
-5
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + col0 + col2 col0 FROM tab1 AS cor0
----
111
178
272

onlyif mysql # use DIV operator for integer division
query I rowsort label-9235
SELECT + - col0 DIV - col1 + 27 + col2 * + col1 col2 FROM tab2 cor0
----
1562
677
864

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9235
SELECT + - col0 / - col1 + 27 + col2 * + col1 col2 FROM tab2 cor0
----
1562
677
864

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 * + col0 col0 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT - col1 * cor0.col2 * col1 FROM tab2 cor0
----
-10982
-25947
-90506

query I rowsort
SELECT DISTINCT col2 * col0 * col0 FROM tab0 AS cor0
----
1225
19008
649522

query I rowsort
SELECT col0 * + col2 * + col0 AS col0 FROM tab1 AS cor0
----
233472
486
614400

onlyif mysql # use DIV operator for integer division
query I rowsort label-9240
SELECT ALL + 73 DIV + cor0.col0 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 3d163217b05f880b2880cdf7e2139069

skipif mysql # not compatible
query I rowsort label-9240
SELECT ALL + 73 / + cor0.col0 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 3d163217b05f880b2880cdf7e2139069

query I rowsort
SELECT ALL + + col1 * ( + col2 ) AS col0 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT 48 AS col2 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 0ef571a8722ab7270aa7272c1174b88e

query I rowsort
SELECT DISTINCT - - col1 * + 86 FROM tab2 AS cor0
----
1462
2666
5074

query I rowsort
SELECT ALL - + col1 * - 88 + - ( col1 ) + - 48 FROM tab2 AS cor0
----
1431
2649
5085

query I rowsort
SELECT DISTINCT - col2 * + tab1.col0 * 6 FROM tab1
----
-21888
-46080
-972

query I rowsort
SELECT DISTINCT - ( 67 ) FROM tab1, tab1 AS cor0
----
-67

query I rowsort
SELECT + 3 + col2 * cor0.col0 AS col0 FROM tab0 AS cor0
----
38
7301
795

query I rowsort
SELECT DISTINCT - + ( + col0 ) AS col1 FROM tab0 AS cor0
----
-24
-35
-89

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9249
SELECT - CAST( + col0 AS SIGNED ) * + cor0.col2 FROM tab2 cor0
----
-189
-2028
-3002

skipif mysql # not compatible
query I rowsort label-9249
SELECT - CAST ( + col0 AS INTEGER ) * + cor0.col2 FROM tab2 cor0
----
-189
-2028
-3002

query I rowsort
SELECT col1 + col1 + - col2 * 25 AS col2 FROM tab0 AS cor0
----
-1868
-653
169

query I rowsort
SELECT ALL + ( - col1 ) * cor0.col1 AS col2 FROM tab2 AS cor0
----
-289
-3481
-961

query I rowsort
SELECT col2 * + col2 * 99 FROM tab0
----
107811
665676
99

query I rowsort
SELECT DISTINCT - col0 * col1 - col2 * tab2.col1 AS col0 FROM tab2
----
-1054
-1989
-6136

query I rowsort
SELECT - col1 + + col2 * ( + col1 ) FROM tab2
----
1475
629
806

query I rowsort
SELECT DISTINCT col1 + col0 * - ( cor0.col1 + - col1 ) FROM tab2 AS cor0
----
17
31
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-9256
SELECT ALL + col2 DIV + col2 + + CAST( - col2 + col0 AS SIGNED ) FROM tab1 AS cor0
----
-15
-50
8

skipif mysql # not compatible
query I rowsort label-9256
SELECT ALL + col2 / + col2 + + CAST ( - col2 + col0 AS INTEGER ) FROM tab1 AS cor0
----
-15
-50
8

query I rowsort
SELECT DISTINCT 75 + + col0 AS col2 FROM tab1 AS cor0
----
139
155
78

query I rowsort
SELECT - 29 * + col0 FROM tab1 AS cor0
----
-1856
-2320
-87

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9259
SELECT ALL CAST( + ( col2 ) AS SIGNED ) FROM tab1
----
54
57
96

skipif mysql # not compatible
query I rowsort label-9259
SELECT ALL CAST ( + ( col2 ) AS INTEGER ) FROM tab1
----
54
57
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-9260
SELECT - + 98 DIV 77 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b

skipif mysql # not compatible
query I rowsort label-9260
SELECT - + 98 / 77 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b

query I rowsort
SELECT 44 * + col1 FROM tab1
----
1144
440
572

onlyif mysql # use DIV operator for integer division
query I rowsort label-9262
SELECT DISTINCT - col1 DIV + col0 AS col2 FROM tab1
----
-8
0

skipif mysql # not compatible
query I rowsort label-9262
SELECT DISTINCT - col1 / + col0 AS col2 FROM tab1
----
-8
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-9263
SELECT col1 DIV col1 AS col1 FROM tab2 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9263
SELECT col1 / col1 AS col1 FROM tab2 cor0
----
1
1
1

query I rowsort
SELECT ALL - ( col0 ) + + col0 FROM tab0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-9265
SELECT DISTINCT ( - ( col1 ) ) DIV 25 + + col1 * col0 FROM tab1
----
1040
640
77

skipif mysql # not compatible
query I rowsort label-9265
SELECT DISTINCT ( - ( col1 ) ) / 25 + + col1 * col0 FROM tab1
----
1040
640
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 22 + + col0 col0 FROM tab0
----
111
46
57

query I rowsort
SELECT 50 + + 58 + + col1 AS col1 FROM tab1
----
118
121
134

query I rowsort
SELECT - 43 * + 29 FROM tab0
----
-1247
-1247
-1247

query I rowsort
SELECT + 17 + + col1 * + col1 AS col1 FROM tab1
----
117
186
693

query I rowsort
SELECT ALL - 78 FROM tab2 cor0
----
-78
-78
-78

query I rowsort
SELECT col2 - ( + col2 ) * - col1 FROM tab2 AS cor0
----
1560
684
864

query I rowsort
SELECT ALL - 35 + - ( col1 ) FROM tab2
----
-52
-66
-94

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9273
SELECT + + CAST( NULL AS DECIMAL ) - cor0.col0 * col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9273
SELECT + + CAST ( NULL AS REAL ) - cor0.col0 * col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + + 12 AS col2 FROM tab0 AS cor0
----
12
12
12

query I rowsort
SELECT DISTINCT + - cor0.col0 * + col1 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT ALL col0 + - cor0.col2 * + col2 FROM tab0 AS cor0
----
-1065
-6635
34

query I rowsort
SELECT ( + cor0.col1 ) AS col1 FROM tab1 cor0
----
10
13
26

onlyif mysql # use DIV operator for integer division
query I rowsort label-9278
SELECT DISTINCT col1 DIV col0 AS col1 FROM tab0 cor0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-9278
SELECT DISTINCT col1 / col0 AS col1 FROM tab0 cor0
----
1
2
3

query I rowsort
SELECT DISTINCT - + 56 - + col0 * + cor0.col2 AS col0 FROM tab1 AS cor0
----
-218
-3704
-7736

query I rowsort
SELECT DISTINCT + - 87 + + col1 AS col2 FROM tab0 AS cor0
----
-1
10
4

query I rowsort
SELECT DISTINCT - cor0.col1 + col0 AS col1 FROM tab1 cor0
----
-23
54
67

query I rowsort
SELECT DISTINCT + col2 * col0 * - ( col1 ) + - col2 FROM tab0 AS cor0
----
-3396
-664200
-68145

query I rowsort
SELECT - 17 + col2 FROM tab1 cor0
----
37
40
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col2 col1 FROM tab0 cor0
----
-1
-33
-82

query I rowsort
SELECT col1 + col2 - + col0 AS col2 FROM tab0
----
63
84
95

query I rowsort
SELECT DISTINCT - col0 + col1 * cor0.col2 FROM tab0 cor0
----
2814
62
7373

query I rowsort
SELECT + col1 + + col1 * col1 * ( - col2 ) AS col1 FROM tab2 AS cor0
----
-10965
-25916
-90447

query I rowsort
SELECT ALL - 89 * col0 AS col2 FROM tab0 AS cor0
----
-2136
-3115
-7921

query I rowsort
SELECT - 48 - col1 AS col2 FROM tab1 cor0
----
-58
-61
-74

onlyif mysql # use DIV operator for integer division
query I rowsort label-9290
SELECT + cor0.col1 * + cor0.col0 DIV CAST( col0 AS SIGNED ) + col2 DIV - ( 94 + col2 ) AS col0 FROM tab2 cor0
----
17
31
59

skipif mysql # not compatible
query I rowsort label-9290
SELECT + cor0.col1 * + cor0.col0 / CAST ( col0 AS INTEGER ) + col2 / - ( 94 + col2 ) AS col0 FROM tab2 cor0
----
17
31
59

query I rowsort
SELECT DISTINCT 44 + + col2 AS col0 FROM tab0 AS cor0
----
126
45
77

query I rowsort
SELECT ALL - col1 * - 76 AS col2 FROM tab1 cor0
----
1976
760
988

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * + ( + 67 ) * cor0.col2 col1 FROM tab0 AS cor0
----
190146
499954
6499

query I rowsort
SELECT + col0 + + 68 AS col1 FROM tab2 AS cor0
----
146
147
75

query I rowsort
SELECT DISTINCT 10 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
10

query I rowsort
SELECT DISTINCT - + col2 + + 85 * + col2 FROM tab1 AS cor0
----
4536
4788
8064

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * col0 + + col0 col1 FROM tab0 AS cor0
----
2088
3430
8188

query I rowsort
SELECT ALL col0 + + 4 * col2 FROM tab1 AS cor0
----
219
292
464

onlyif mysql # use DIV operator for integer division
query I rowsort label-9299
SELECT ALL + col2 DIV + col0 AS col1 FROM tab1 AS cor0
----
0
1
18

skipif mysql # not compatible
query I rowsort label-9299
SELECT ALL + col2 / + col0 AS col1 FROM tab1 AS cor0
----
0
1
18

query I rowsort
SELECT DISTINCT + col1 * col2 + + cor0.col2 AS col0 FROM tab2 AS cor0
----
1560
684
864

query I rowsort
SELECT ALL + - col2 + col1 FROM tab2 cor0
----
-21
33
4

query I rowsort
SELECT DISTINCT col2 + + 92 AS col2 FROM tab0 AS cor0
----
125
174
93

query I rowsort
SELECT DISTINCT - - col1 * ( col0 ) FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT ALL + col1 + 3 * col0 FROM tab2 AS cor0
----
254
293
52

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9305
SELECT ALL col0 * + CAST( col2 * + col0 AS SIGNED ) FROM tab2 cor0
----
1323
158184
237158

skipif mysql # not compatible
query I rowsort label-9305
SELECT ALL col0 * + CAST ( col2 * + col0 AS INTEGER ) FROM tab2 cor0
----
1323
158184
237158

query I rowsort
SELECT + cor1.col1 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

query I rowsort
SELECT ALL cor1.col2 * - cor0.col2 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to b7b7b59ffe8969a28b6ae005f7e79060

query I rowsort
SELECT DISTINCT ( - 96 ) + cor0.col1 * cor0.col1 * - cor0.col0 FROM tab2 AS cor0
----
-22927
-271614
-6823

query I rowsort
SELECT ALL - col0 * col0 + cor0.col1 AS col1 FROM tab0 cor0
----
-1128
-490
-7830

query I rowsort
SELECT DISTINCT + col2 * 75 AS col0 FROM tab2 AS cor0
----
1950
2025
2850

query I rowsort
SELECT col1 + - 64 FROM tab0
----
22
27
33

query I rowsort
SELECT - - 41 AS col2 FROM tab2 AS cor0
----
41
41
41

onlyif mysql # use DIV operator for integer division
query I rowsort label-9313
SELECT + 81 DIV + col0 AS col2 FROM tab2 AS cor0
----
1
1
11

skipif mysql # not compatible
query I rowsort label-9313
SELECT + 81 / + col0 AS col2 FROM tab2 AS cor0
----
1
1
11

query I rowsort
SELECT - - 61 AS col2 FROM tab1 AS cor0
----
61
61
61

onlyif mysql # use DIV operator for integer division
query I rowsort label-9315
SELECT ALL + ( cor0.col0 ) * col2 DIV 52 + + col1 * cor0.col1 + - col0 FROM tab1 cor0
----
106
236
676

skipif mysql # not compatible
query I rowsort label-9315
SELECT ALL + ( cor0.col0 ) * col2 / 52 + + col1 * cor0.col1 + - col0 FROM tab1 cor0
----
106
236
676

skipif mysql # not compatible
query I rowsort
SELECT ALL + CAST ( 98 AS REAL ) FROM tab0 cor0
----
98
98
98

query I rowsort
SELECT col2 * + col1 + - col2 * - col0 AS col1 FROM tab1
----
1566
4218
8928

onlyif mysql # use DIV operator for integer division
query I rowsort label-9318
SELECT + col2 * + 73 - + col1 DIV col1 col2 FROM tab1
----
3941
4160
7007

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9318
SELECT + col2 * + 73 - + col1 / col1 col2 FROM tab1
----
3941
4160
7007

query I rowsort
SELECT ALL - 77 + - col1 + + col0 FROM tab2
----
-101
-15
-58

onlyif mysql # use DIV operator for integer division
query I rowsort label-9320
SELECT - 27 * 66 DIV + col1 FROM tab2 AS cor0
----
-104
-30
-57

skipif mysql # not compatible
query I rowsort label-9320
SELECT - 27 * 66 / + col1 FROM tab2 AS cor0
----
-104
-30
-57

query I rowsort
SELECT ALL - 50 FROM tab2 cor0
----
-50
-50
-50

query I rowsort
SELECT + + col1 * - ( col1 * col0 ) AS col1 FROM tab0 AS cor0
----
-177504
-329315
-737009

query I rowsort
SELECT DISTINCT + col2 + - ( + col0 ) * col1 FROM tab2 AS cor0
----
-1305
-190
-4576

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9324
SELECT DISTINCT col2 + col2 * - CAST( - col0 AS SIGNED ) col1 FROM tab0
----
36
7380
825

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9324
SELECT DISTINCT col2 + col2 * - CAST ( - col0 AS INTEGER ) col1 FROM tab0
----
36
7380
825

query I rowsort
SELECT - col0 * + col1 + ( col1 ) AS col0 FROM tab1 AS cor0
----
-1027
-52
-630

query I rowsort
SELECT col2 * 23 + - col0 AS col2 FROM tab1 AS cor0
----
1239
1247
2128

query I rowsort
SELECT DISTINCT + 52 AS col2 FROM tab0, tab0 AS cor0, tab2 cor1
----
52

query I rowsort
SELECT col1 + col1 * - col1 * - tab2.col0 AS col0 FROM tab2
----
22848
271577
6758

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9329
SELECT ALL - - col1 + + CAST( NULL AS SIGNED ) + col0 col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9329
SELECT ALL - - col1 + + CAST ( NULL AS INTEGER ) + col0 col2 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col2 * ( - col1 ) * col2 FROM tab0
----
611884
93654
97

query I rowsort
SELECT DISTINCT 14 AS col0 FROM tab0, tab2 cor0
----
14

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9332
SELECT - - col2 + + CAST( + col1 AS SIGNED ) AS col1 FROM tab2 cor0
----
55
58
85

skipif mysql # not compatible
query I rowsort label-9332
SELECT - - col2 + + CAST ( + col1 AS INTEGER ) AS col1 FROM tab2 cor0
----
55
58
85

query I rowsort
SELECT DISTINCT col0 * col2 + - cor0.col1 FROM tab1 cor0
----
136
3638
7667

onlyif mysql # use DIV operator for integer division
query I rowsort label-9334
SELECT ALL + - col1 * + col1 + + 19 * col0 DIV ( 50 ) col1 FROM tab1 AS cor0
----
-139
-675
-76

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9334
SELECT ALL + - col1 * + col1 + + 19 * col0 / ( 50 ) col1 FROM tab1 AS cor0
----
-139
-675
-76

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT ALL - col2 + + CAST ( col1 * + col0 AS REAL ) col2 FROM tab2 cor0
----
1305
190
4576

query I rowsort
SELECT ALL - 69 FROM tab0, tab2 AS cor0
----
9 values hashing to 3bd7460efa48c66c072ad5f3c2def7e9

query I rowsort
SELECT DISTINCT - col0 + - ( 22 ) AS col0 FROM tab0 AS cor0
----
-111
-46
-57

query I rowsort
SELECT DISTINCT - - col0 + col0 + 66 AS col0 FROM tab1 AS cor0
----
194
226
72

query I rowsort
SELECT - col0 * - ( cor0.col0 ) + cor0.col1 + - ( 97 ) FROM tab2 cor0
----
-17
6046
6161

query I rowsort
SELECT + col0 + + col1 + cor0.col1 FROM tab0 AS cor0
----
196
229
271

query I rowsort
SELECT - col1 + 36 + + cor0.col2 * + col1 AS col1 FROM tab0 cor0
----
2788
36
7407

query I rowsort
SELECT DISTINCT col2 * 64 FROM tab1 AS cor0
----
3456
3648
6144

query I rowsort
SELECT cor0.col1 + cor0.col2 + - col1 * cor0.col1 AS col0 FROM tab2 AS cor0
----
-234
-3396
-903

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9344
SELECT + col0 + 22 + cor0.col1 * col0 * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9344
SELECT + col0 + 22 + cor0.col1 * col0 * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - col1 - - col1 * - col2 * + col0 AS col1 FROM tab0 AS cor0
----
-3298
-664027
-68026

query I rowsort
SELECT - - col0 * - col2 * col0 + col2 * - col1 FROM tab2 AS cor0
----
-159718
-2160
-237804

query I rowsort
SELECT col2 + + ( - tab0.col2 ) FROM tab0
----
0
0
0

query I rowsort
SELECT ALL col1 * col2 + col1 AS col0 FROM tab2
----
1593
663
868

query I rowsort
SELECT ALL col1 * col2 + col0 FROM tab1 WHERE - col2 NOT IN ( - col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - col2 * col2 col1 FROM tab2 WHERE NOT col1 NOT IN ( col2 )
----

query I rowsort
SELECT col0 * + col1 * col1 AS col2 FROM tab2 AS cor0
----
22831
271518
6727

query I rowsort
SELECT ALL - tab0.col2 FROM tab0 WHERE col0 NOT IN ( col1 )
----
-1
-33
-82

query I rowsort
SELECT - tab1.col2 FROM tab1 WHERE NOT - col1 BETWEEN NULL AND - col1
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-9354
SELECT - col2 + tab0.col0 * col2 DIV - tab0.col1 FROM tab0
----
-1
-162
-42

skipif mysql # not compatible
query I rowsort label-9354
SELECT - col2 + tab0.col0 * col2 / - tab0.col1 FROM tab0
----
-1
-162
-42

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL BETWEEN col0 + - col0 AND NULL
----

query I rowsort
SELECT DISTINCT - col0 * - col0 - col0 AS col1 FROM tab2
----
42
6006
6162

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) = col2
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-9358
SELECT ALL + col2 DIV tab0.col2 - - col1 AS col2 FROM tab0
----
87
92
98

skipif mysql # not compatible
query I rowsort label-9358
SELECT ALL + col2 / tab0.col2 - - col1 AS col2 FROM tab0
----
87
92
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-9359
SELECT ALL - tab0.col1 - col0 DIV col1 AS col2 FROM tab0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-9359
SELECT ALL - tab0.col1 - col0 / col1 AS col2 FROM tab0
----
-86
-91
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-9360
SELECT + col2 DIV col0 - col2 DIV - col2 AS col0 FROM tab0 AS cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-9360
SELECT + col2 / col0 - col2 / - col2 AS col0 FROM tab0 AS cor0
----
1
1
2

query I rowsort
SELECT DISTINCT - + 97 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 99 * col1 col1 FROM tab1 AS cor0
----
-1287
-2574
-990

query I rowsort
SELECT - + cor0.col0 * - col1 - - cor0.col0 FROM tab2 AS cor0
----
1422
224
4680

query I rowsort
SELECT DISTINCT + - cor0.col0 * + cor0.col0 AS col0 FROM tab2 cor0
----
-49
-6084
-6241

query I rowsort
SELECT - + col0 * + ( col0 ) + - col0 FROM tab1 cor0
----
-12
-4160
-6480

query I rowsort
SELECT ALL + - col0 + - ( - 16 ) FROM tab0 AS cor0
----
-19
-73
-8

query I rowsort
SELECT DISTINCT + + col2 + + 54 FROM tab2 AS cor0
----
80
81
92

query I rowsort
SELECT DISTINCT col2 + + 42 FROM tab1 AS cor0
----
138
96
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + cor0.col0 col0 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT + - 83 + - col2 AS col0 FROM tab0 AS cor0
----
-116
-165
-84

onlyif mysql # use DIV operator for integer division
query I rowsort label-9371
SELECT - + cor0.col2 DIV col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9371
SELECT - + cor0.col2 / col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL cor0.col2 * - cor0.col2 AS col1 FROM tab0, tab2 AS cor0, tab0 cor1
----
27 values hashing to 34c958561bd6b2ab014ab6e0643406fa

query I rowsort
SELECT + ( - col1 ) + - col0 * + col2 + col2 FROM tab2 AS cor0
----
-193
-2061
-2981

query I rowsort
SELECT ALL + col2 - ( col1 ) * - 32 AS col2 FROM tab0 AS cor0
----
2785
2994
3105

query I rowsort
SELECT - cor1.col1 AS col0 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6

query I rowsort
SELECT ALL + 6 * cor0.col1 + - col1 AS col1 FROM tab1 AS cor0
----
130
50
65

query I rowsort
SELECT ALL + - ( col1 ) AS col2 FROM tab0 cor0
----
-86
-91
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-9378
SELECT ALL + - col2 + - col1 DIV cor0.col2 + + col0 FROM tab1 AS cor0
----
-16
-51
7

skipif mysql # not compatible
query I rowsort label-9378
SELECT ALL + - col2 + - col1 / cor0.col2 + + col0 FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT DISTINCT - 36 * + col2 FROM tab1 AS cor0
----
-1944
-2052
-3456

query I rowsort
SELECT DISTINCT cor0.col1 * col2 - 60 AS col2 FROM tab0 AS cor0
----
2778
37
7402

query I rowsort
SELECT - - cor0.col2 * cor0.col0 AS col1 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT ALL + ( col2 ) * + col2 AS col2 FROM tab0
----
1
1089
6724

query I rowsort
SELECT 24 + - col0 FROM tab2
----
-54
-55
17

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9384
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + col0 * col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9384
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + col0 * col1 FROM tab2
----
NULL

query I rowsort
SELECT 7 FROM tab0, tab2 cor0
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76

query I rowsort
SELECT 72 - col0 * col1 FROM tab0
----
-1992
-3323
-8027

query I rowsort
SELECT - 30 + + col2 AS col1 FROM tab0
----
-29
3
52

query I rowsort
SELECT col0 + tab0.col2 + tab0.col2 FROM tab0
----
253
37
90

query I rowsort
SELECT ALL + col1 + - col0 + - col1 AS col0 FROM tab0
----
-24
-35
-89

onlyif mysql # use DIV operator for integer division
query I rowsort label-9390
SELECT ALL col0 * tab1.col0 + - col0 DIV col0 AS col0 FROM tab1
----
4095
6399
8

skipif mysql # not compatible
query I rowsort label-9390
SELECT ALL col0 * tab1.col0 + - col0 / col0 AS col0 FROM tab1
----
4095
6399
8

query I rowsort
SELECT ALL col1 + + col2 + - col0 FROM tab2
----
-24
51
7

query I rowsort
SELECT col1 + - col0 - + col2 * tab1.col2 AS col2 FROM tab1
----
-2893
-3303
-9283

query I rowsort
SELECT ALL - col1 + col0 + - col2 * col0 AS col2 FROM tab2
----
-2009
-213
-2940

query I rowsort
SELECT DISTINCT - tab1.col2 + col2 + col1 * + col1 AS col1 FROM tab1
----
100
169
676

query I rowsort
SELECT - col2 * - col0 + col2 * + tab0.col0 AS col1 FROM tab0
----
14596
1584
70

onlyif mysql # use DIV operator for integer division
query I rowsort label-9396
SELECT col0 DIV - tab1.col2 AS col2 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-9396
SELECT col0 / - tab1.col2 AS col2 FROM tab1
----
-1
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 * - cor0.col1 + cor0.col1 col2 FROM tab1 AS cor0
----
-1027
-52
-630

query I rowsort
SELECT DISTINCT - cor0.col1 * + col2 AS col1 FROM tab2 AS cor0
----
-1534
-646
-837

onlyif mysql # use DIV operator for integer division
query I rowsort label-9399
SELECT DISTINCT + col2 DIV + cor0.col2 AS col0 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-9399
SELECT DISTINCT + col2 / + cor0.col2 AS col0 FROM tab0 AS cor0
----
1

query I rowsort
SELECT DISTINCT + cor0.col2 * - col0 + col0 AS col0 FROM tab2 cor0
----
-182
-1950
-2923

query I rowsort
SELECT ALL 55 + col0 AS col2 FROM tab1
----
119
135
58

onlyif mysql # use DIV operator for integer division
query I rowsort label-9402
SELECT - ( col1 ) + - tab0.col1 DIV - tab0.col2 FROM tab0
----
-84
-90
0

skipif mysql # not compatible
query I rowsort label-9402
SELECT - ( col1 ) + - tab0.col1 / - tab0.col2 FROM tab0
----
-84
-90
0

query I rowsort
SELECT + + col0 * 48 AS col2 FROM tab2 AS cor0
----
336
3744
3792

query I rowsort
SELECT DISTINCT - col2 * + ( + cor0.col0 ) AS col1 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT - 77 * col0 + cor0.col1 FROM tab0 AS cor0
----
-1762
-2598
-6762

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab2.col2 * col0 col1 FROM tab2
----
189
2028
3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-9407
SELECT - col2 * col1 DIV + col1 + + col0 * col0 FROM tab1
----
-45
4039
6304

skipif mysql # not compatible
query I rowsort label-9407
SELECT - col2 * col1 / + col1 + + col0 * col0 FROM tab1
----
-45
4039
6304

query I rowsort
SELECT ALL - + 82 + - col0 AS col2 FROM tab2 cor0
----
-160
-161
-89

query I rowsort
SELECT DISTINCT + - 92 * cor0.col1 FROM tab2 AS cor0
----
-1564
-2852
-5428

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * - col1 * col0 + + col1 col2 FROM tab2 cor0
----
-22814
-271459
-6696

query I rowsort
SELECT ALL - col1 + - col1 + cor0.col0 FROM tab2 AS cor0
----
-40
-55
45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * col0 col0 FROM tab2
----
1343
217
4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-9413
SELECT DISTINCT + - ( col1 ) DIV col1 + col0 + col1 AS col1 FROM tab2 AS cor0
----
136
37
95

skipif mysql # not compatible
query I rowsort label-9413
SELECT DISTINCT + - ( col1 ) / col1 + col0 + col1 AS col1 FROM tab2 AS cor0
----
136
37
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 33 * - col1 - + cor0.col0 col2 FROM tab2 AS cor0
----
-1030
-2025
-640

query I rowsort
SELECT ALL - 91 * + col1 AS col2 FROM tab2 AS cor0
----
-1547
-2821
-5369

query I rowsort
SELECT ALL - ( - col0 ) * col0 + col0 FROM tab1 AS cor0
----
12
4160
6480

query I rowsort
SELECT + + 44 * col1 FROM tab2 AS cor0
----
1364
2596
748

query I rowsort
SELECT DISTINCT - 94 + col0 FROM tab1 AS cor0
----
-14
-30
-91

query I rowsort
SELECT DISTINCT - + ( col2 ) - col2 AS col2 FROM tab0 AS cor0
----
-164
-2
-66

query I rowsort
SELECT DISTINCT + col2 + col1 * cor0.col2 AS col1 FROM tab2 AS cor0
----
1560
684
864

query I rowsort
SELECT DISTINCT - cor0.col0 * col2 AS col0 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT ALL + + col1 * col0 + + col2 AS col1 FROM tab1 AS cor0
----
1136
132
697

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col2 = ( NULL )
----

query I rowsort
SELECT + col0 * col1 * col1 + col0 * - col2 AS col1 FROM tab2
----
19829
269490
6538

query III rowsort
SELECT * FROM tab0 WHERE ( col2 ) <= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( - col0 + - col0 - - col2 )
----

query I rowsort
SELECT col0 + col2 + + col1 FROM tab1 AS cor0
----
131
189
83

query I rowsort
SELECT ALL col1 FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( - col1 )
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL IN ( col1 + + col2 * cor0.col0 )
----

query I rowsort
SELECT cor0.col2 FROM tab2 AS cor0 WHERE NOT NULL > NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-9431
SELECT col2 + tab2.col0 + + col0 DIV col1 AS col0 FROM tab2
----
105
121
34

skipif mysql # not compatible
query I rowsort label-9431
SELECT col2 + tab2.col0 + + col0 / col1 AS col0 FROM tab2
----
105
121
34

query I rowsort
SELECT DISTINCT tab1.col2 + col0 + + col1 AS col0 FROM tab1 WHERE - col1 NOT IN ( col1 * col2 )
----
131
189
83

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT BETWEEN col0 AND ( col2 + col1 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-9434
SELECT + col1 * tab2.col2 + + tab2.col1 * col0 DIV tab2.col0 + col1 AS col2 FROM tab2
----
1652
680
899

skipif mysql # not compatible
query I rowsort label-9434
SELECT + col1 * tab2.col2 + + tab2.col1 * col0 / tab2.col0 + col1 AS col2 FROM tab2
----
1652
680
899

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 - col1 * - tab0.col2 col2 FROM tab0
----
132
2862
7551

query I rowsort
SELECT + tab0.col0 + col0 AS col2 FROM tab0
----
178
48
70

query III rowsort
SELECT ALL * FROM tab2 WHERE - col2 = ( NULL )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-9438
SELECT + col2 DIV col1 + col1 + + col2 FROM tab2
----
57
58
85

skipif mysql # not compatible
query I rowsort label-9438
SELECT + col2 / col1 + col1 + + col2 FROM tab2
----
57
58
85

query I rowsort
SELECT ALL + - col2 * - col0 * col1 FROM tab2 AS cor0
----
119652
51034
5859

onlyif mysql # use DIV operator for integer division
query I rowsort label-9440
SELECT DISTINCT - col0 DIV col0 AS col2 FROM tab2 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-9440
SELECT DISTINCT - col0 / col0 AS col2 FROM tab2 cor0
----
-1

query I rowsort
SELECT ALL col2 * - col0 + - col2 AS col1 FROM tab1 AS cor0
----
-216
-3705
-7776

query I rowsort
SELECT ALL - col2 + + cor0.col1 * col2 AS col0 FROM tab0 AS cor0
----
2805
7380
96

query I rowsort
SELECT col1 + col0 * - tab0.col2 FROM tab0
----
-706
-7207
62

query I rowsort
SELECT DISTINCT - tab2.col1 + tab2.col1 FROM tab2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + col1 + - col1 col0 FROM tab2
----
17
31
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-9446
SELECT + col0 DIV + col0 + - col0 AS col0 FROM tab0 AS cor0
----
-23
-34
-88

skipif mysql # not compatible
query I rowsort label-9446
SELECT + col0 / + col0 + - col0 AS col0 FROM tab0 AS cor0
----
-23
-34
-88

query I rowsort
SELECT col1 + - col1 * - col1 FROM tab1 cor0
----
110
182
702

query I rowsort
SELECT DISTINCT col2 + col2 * - col1 FROM tab2
----
-1508
-608
-810

query I rowsort
SELECT ALL col2 * - tab2.col2 AS col0 FROM tab2 WHERE ( NULL ) > NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-9450
SELECT + ( - col0 ) DIV col2 + 33 FROM tab0 AS cor0
----
-2
32
33

skipif mysql # not compatible
query I rowsort label-9450
SELECT + ( - col0 ) / col2 + 33 FROM tab0 AS cor0
----
-2
32
33

query I rowsort
SELECT + + 34 AS col1 FROM tab0 AS cor0
----
34
34
34

query I rowsort
SELECT - col2 * 33 + cor0.col1 * 18 AS col2 FROM tab0 AS cor0
----
-1068
1713
459

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9453
SELECT + CAST( NULL AS SIGNED ) / + cor0.col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9453
SELECT + CAST ( NULL AS INTEGER ) / + cor0.col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + + cor1.col0 * 26 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
1664
2080
78

query I rowsort
SELECT 21 * - col0 AS col1 FROM tab1
----
-1344
-1680
-63

query I rowsort
SELECT DISTINCT - - col0 * col2 - - ( - 82 ) FROM tab2 AS cor0
----
107
1946
2920

query I rowsort
SELECT col2 * + col0 + col0 * + col1 AS col0 FROM tab0 AS cor0
----
15397
2856
3430

query I rowsort
SELECT 85 * - cor0.col1 + col2 AS col1 FROM tab0 AS cor0
----
-7277
-7653
-8244

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9459
SELECT DISTINCT - 4 * cor0.col1 + + CAST( NULL AS SIGNED ) * col2 * - col2 + + col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9459
SELECT DISTINCT - 4 * cor0.col1 + + CAST ( NULL AS INTEGER ) * col2 * - col2 + + col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-9460
SELECT ALL ( col1 ) DIV + col2 AS col1 FROM tab0
----
1
2
97

skipif mysql # not compatible
query I rowsort label-9460
SELECT ALL ( col1 ) / + col2 AS col1 FROM tab0
----
1
2
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-9461
SELECT - ( col0 ) DIV + col1 FROM tab2
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-9461
SELECT - ( col0 ) / + col1 FROM tab2
----
-1
-4
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-9462
SELECT - + col0 DIV ( 92 ) FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9462
SELECT - + col0 / ( 92 ) FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL tab2.col0 AS col1 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9464
SELECT ALL tab2.col2 * - CAST( NULL AS SIGNED ) / col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9464
SELECT ALL tab2.col2 * - CAST ( NULL AS INTEGER ) / col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col1 + + 41 AS col1 FROM tab0 AS cor0
----
-45
-50
-56

onlyif mysql # use DIV operator for integer division
query I rowsort label-9466
SELECT + 60 * + col2 DIV + col2 FROM tab1 AS cor0
----
60
60
60

skipif mysql # not compatible
query I rowsort label-9466
SELECT + 60 * + col2 / + col2 FROM tab1 AS cor0
----
60
60
60

query I rowsort
SELECT DISTINCT ( col1 ) * cor0.col2 + + 83 AS col2 FROM tab1 AS cor0
----
1331
1487
653

query I rowsort
SELECT ALL + cor0.col1 * - 38 FROM tab1 AS cor0
----
-380
-494
-988

query I rowsort
SELECT DISTINCT col0 + 46 FROM tab0
----
135
70
81

query I rowsort
SELECT col0 + ( - col1 * - col2 ) AS col0 FROM tab1
----
1328
1407
634

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 86 col0 FROM tab2 AS cor0
----
86
86
86

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9472
SELECT DISTINCT CAST( NULL AS SIGNED ) / - cor0.col2 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9472
SELECT DISTINCT CAST ( NULL AS INTEGER ) / - cor0.col2 FROM tab1 cor0
----
NULL

query I rowsort
SELECT DISTINCT - 72 + - 10 AS col0 FROM tab2 AS cor0
----
-82

query I rowsort
SELECT DISTINCT + cor0.col0 AS col0 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
7
78
79

query I rowsort
SELECT DISTINCT + col2 + - col1 * col2 - - ( col1 ) AS col2 FROM tab2 AS cor0
----
-1449
-591
-779

query I rowsort
SELECT + cor0.col0 FROM tab0, tab1, tab1 cor0
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

onlyif mysql # use DIV operator for integer division
query I rowsort label-9477
SELECT col0 + + col1 DIV - 49 AS col0 FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-9477
SELECT col0 + + col1 / - 49 AS col0 FROM tab1 AS cor0
----
3
64
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 * ( col2 ) + col1 col1 FROM tab2 AS cor0
----
1461
735
760

query I rowsort
SELECT - 72 * + col1 AS col2 FROM tab1
----
-1872
-720
-936

query I rowsort
SELECT ALL - + col2 * + col1 + cor0.col1 AS col2 FROM tab0 AS cor0
----
-2752
-7371
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-9481
SELECT DISTINCT cor0.col0 - + col2 DIV col2 FROM tab1 AS cor0
----
2
63
79

skipif mysql # not compatible
query I rowsort label-9481
SELECT DISTINCT cor0.col0 - + col2 / col2 FROM tab1 AS cor0
----
2
63
79

query I rowsort
SELECT - - col0 + + 47 FROM tab0 AS cor0
----
136
71
82

query I rowsort
SELECT col0 * - col0 + col2 + col0 * 22 AS col0 FROM tab1 cor0
----
-2631
-4544
111

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9484
SELECT + col0 + CAST( - cor0.col2 AS SIGNED ) FROM tab1 AS cor0
----
-16
-51
7

skipif mysql # not compatible
query I rowsort label-9484
SELECT + col0 + CAST ( - cor0.col2 AS INTEGER ) FROM tab1 AS cor0
----
-16
-51
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-9485
SELECT ALL col2 * col2 DIV 72 FROM tab2 cor0
----
10
20
9

skipif mysql # not compatible
query I rowsort label-9485
SELECT ALL col2 * col2 / 72 FROM tab2 cor0
----
10
20
9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9486
SELECT + ( - col1 ) + CAST( NULL AS DECIMAL ) * - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9486
SELECT + ( - col1 ) + CAST ( NULL AS REAL ) * - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - cor1.col2 - - 14 AS col1 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
-19
-68
13

query I rowsort
SELECT DISTINCT ( - cor0.col2 ) AS col2 FROM tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT + ( - col2 ) * col0 - 88 * col1 AS col2 FROM tab0
----
-15306
-8360
-8571

onlyif mysql # use DIV operator for integer division
query I rowsort label-9490
SELECT DISTINCT - 25 * - col0 + col0 DIV col0 AS col1 FROM tab1
----
1601
2001
76

skipif mysql # not compatible
query I rowsort label-9490
SELECT DISTINCT - 25 * - col0 + col0 / col0 AS col1 FROM tab1
----
1601
2001
76

query I rowsort
SELECT DISTINCT - tab2.col2 * col0 + - col2 * col0 AS col1 FROM tab2
----
-378
-4056
-6004

query I rowsort
SELECT DISTINCT col1 + col1 * col0 * 40 AS col1 FROM tab1 AS cor0
----
25610
3146
41613

query I rowsort
SELECT - + col1 * - ( - col1 ) AS col2 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT DISTINCT - cor0.col2 * 87 AS col2 FROM tab0, tab0 AS cor0
----
-2871
-7134
-87

onlyif mysql # use DIV operator for integer division
query I rowsort label-9495
SELECT DISTINCT - - cor0.col1 + + col2 DIV + 9 FROM tab0 AS cor0
----
100
89
97

skipif mysql # not compatible
query I rowsort label-9495
SELECT DISTINCT - - cor0.col1 + + col2 / + 9 FROM tab0 AS cor0
----
100
89
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-9496
SELECT DISTINCT tab1.col2 DIV col1 AS col2 FROM tab1
----
2
5
7

skipif mysql # not compatible
query I rowsort label-9496
SELECT DISTINCT tab1.col2 / col1 AS col2 FROM tab1
----
2
5
7

query I rowsort
SELECT ALL - col1 * col1 * - col2 + - col0 * - col0 AS col0 FROM tab1 AS cor0
----
22624
36513
9796

query I rowsort
SELECT - ( - 15 ) AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9499
SELECT col2 * - CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9499
SELECT col2 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-9500
SELECT DISTINCT col1 DIV - col0 - + ( col0 ) AS col1 FROM tab0
----
-27
-37
-90

skipif mysql # not compatible
query I rowsort label-9500
SELECT DISTINCT col1 / - col0 - + ( col0 ) AS col1 FROM tab0
----
-27
-37
-90

query I rowsort
SELECT DISTINCT col1 - - 0 FROM tab0
----
86
91
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - cor0.col2 * - col0 col1 FROM tab1 AS cor0
----
165
3712
7760

query I rowsort
SELECT ALL - 74 * - col0 + - col0 + - ( 49 * cor0.col0 ) AS col0 FROM tab1 AS cor0
----
1536
1920
72

onlyif mysql # use DIV operator for integer division
query I rowsort label-9504
SELECT - col0 DIV + 39 FROM tab0 AS cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-9504
SELECT - col0 / + 39 FROM tab0 AS cor0
----
-2
0
0

query I rowsort
SELECT - + 30 * - 56 AS col1 FROM tab1 cor0
----
1680
1680
1680

query I rowsort
SELECT DISTINCT - + 55 AS col1 FROM tab2 AS cor0
----
-55

query I rowsort
SELECT ALL - col1 * - col2 * col1 + col0 FROM tab0
----
244092
679131
9444

query I rowsort
SELECT DISTINCT - cor0.col1 AS col0 FROM tab1, tab2, tab1 AS cor0
----
-10
-13
-26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + col0 col1 FROM tab1
----
128
160
6

query I rowsort
SELECT col2 + + ( + col2 ) + - col0 * + ( 98 ) FROM tab2
----
-632
-7592
-7666

query I rowsort
SELECT - col0 * - 58 + col1 * + col0 AS col2 FROM tab1
----
252
4352
5680

onlyif mysql # use DIV operator for integer division
query I rowsort label-9512
SELECT DISTINCT col2 DIV 50 + col1 FROM tab1
----
11
14
27

skipif mysql # not compatible
query I rowsort label-9512
SELECT DISTINCT col2 / 50 + col1 FROM tab1
----
11
14
27

query I rowsort
SELECT - tab0.col2 - tab0.col0 * - col1 * tab0.col2 FROM tab0
----
3394
664036
68079

query I rowsort
SELECT DISTINCT + - ( 31 ) * - col0 + - ( - cor0.col0 ) AS col0 FROM tab0 AS cor0
----
1120
2848
768

query I rowsort
SELECT ALL - ( - cor0.col1 ) + col2 FROM tab1 AS cor0
----
109
67
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9516
SELECT - + ( + ( - col0 ) ) + - CAST( col0 + + col2 AS SIGNED ) * - ( - col1 ) AS col0 FROM tab2 AS cor0
----
-1047
-1910
-6058

skipif mysql # not compatible
query I rowsort label-9516
SELECT - + ( + ( - col0 ) ) + - CAST ( col0 + + col2 AS INTEGER ) * - ( - col1 ) AS col0 FROM tab2 AS cor0
----
-1047
-1910
-6058

query I rowsort
SELECT DISTINCT + - col1 + + col1 * cor0.col2 AS col0 FROM tab2 AS cor0
----
1475
629
806

query I rowsort
SELECT ALL + col0 + + 40 AS col0 FROM tab2 AS cor0
----
118
119
47

query I rowsort
SELECT ALL + 8 * col0 AS col1 FROM tab2 cor0
----
56
624
632

query I rowsort
SELECT DISTINCT col1 * + 48 * + col1 + col0 FROM tab2 AS cor0
----
13951
167166
46135

query I rowsort
SELECT - - col0 + ( + col2 ) AS col0 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT - + 94 AS col0 FROM tab1 AS cor0
----
-94
-94
-94

query I rowsort
SELECT 3 * 90 AS col1 FROM tab0
----
270
270
270

query I rowsort
SELECT ALL 57 FROM tab2, tab1, tab1 AS cor0, tab0
----
81 values hashing to 23b62d6905061dab566f3a9e15667302

onlyif mysql # use DIV operator for integer division
query I rowsort label-9525
SELECT ALL + tab1.col0 + col0 DIV tab1.col2 FROM tab1
----
3
65
80

skipif mysql # not compatible
query I rowsort label-9525
SELECT ALL + tab1.col0 + col0 / tab1.col2 FROM tab1
----
3
65
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( ( col1 ) ) * - tab2.col2 + col0 col2 FROM tab2
----
1612
725
844

query I rowsort
SELECT DISTINCT + ( col2 ) * + col2 AS col0 FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT DISTINCT 90 AS col2 FROM tab1, tab2 AS cor0
----
90

query I rowsort
SELECT - col0 * - 10 FROM tab1 AS cor0
----
30
640
800

query I rowsort
SELECT ALL + 42 + col2 FROM tab0 AS cor0
----
124
43
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( col2 ) * + col2 + col0 * + 0 col0 FROM tab2 AS cor0
----
-1444
-676
-729

query I rowsort
SELECT DISTINCT tab1.col2 + 86 + 31 AS col1 FROM tab1, tab0 AS cor0, tab1 cor1
----
171
174
213

query I rowsort
SELECT ALL + cor0.col1 + + col1 AS col2 FROM tab1 cor0
----
20
26
52

query I rowsort
SELECT DISTINCT + + col2 * col0 * + ( ( - cor0.col2 ) * + 17 ) FROM tab1 AS cor0
----
-12533760
-148716
-3534912

query I rowsort
SELECT ALL col0 + - col2 * ( ( cor0.col1 ) ) FROM tab2 cor0
----
-1456
-567
-830

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9536
SELECT ALL + + 32 + + col1 * CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9536
SELECT ALL + + 32 + + col1 * CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - col2 ) * - col1 col0 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT ( col2 ) * - col2 + + col2 * - col0 AS col2 FROM tab1 AS cor0
----
-16896
-3078
-6897

query I rowsort
SELECT 97 + - col2 AS col0 FROM tab1 AS cor0
----
1
40
43

query I rowsort
SELECT - col2 + col2 * 69 FROM tab2 AS cor0
----
1768
1836
2584

onlyif mysql # use DIV operator for integer division
query I rowsort label-9541
SELECT - col1 + + col1 DIV 32 AS col2 FROM tab1 AS cor0
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-9541
SELECT - col1 + + col1 / 32 AS col2 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT - col2 + 41 AS col1 FROM tab1
----
-13
-16
-55

query I rowsort
SELECT ALL + col1 * 29 AS col1 FROM tab2 AS cor0
----
1711
493
899

onlyif mysql # use DIV operator for integer division
query I rowsort label-9544
SELECT DISTINCT col2 + ( + tab2.col1 ) DIV col0 FROM tab2
----
26
31
38

skipif mysql # not compatible
query I rowsort label-9544
SELECT DISTINCT col2 + ( + tab2.col1 ) / col0 FROM tab2
----
26
31
38

query I rowsort
SELECT + col1 * col0 * 21 FROM tab1 cor0
----
13440
1638
21840

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col1 * + col1 col1 FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT + col2 * + col2 * col2 FROM tab0 AS cor0
----
1
35937
551368

query I rowsort
SELECT ALL + col2 * + 81 FROM tab0 AS cor0
----
2673
6642
81

query I rowsort
SELECT - col1 * 24 AS col0 FROM tab0 AS cor0
----
-2064
-2184
-2328

query I rowsort
SELECT ALL + cor0.col1 * + 25 FROM tab0 AS cor0
----
2150
2275
2425

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 * col1 + col1 col2 FROM tab1 cor0
----
-1027
-52
-630

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9552
SELECT DISTINCT CAST( col0 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-9552
SELECT DISTINCT CAST ( col0 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT col1 + + 93 + col2 FROM tab0
----
191
212
266

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col1 ) + - col1 col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9555
SELECT 18 * col2 + + CAST( col0 AS SIGNED ) FROM tab1 AS cor0
----
1090
1808
975

skipif mysql # not compatible
query I rowsort label-9555
SELECT 18 * col2 + + CAST ( col0 AS INTEGER ) FROM tab1 AS cor0
----
1090
1808
975

query I rowsort
SELECT - 66 AS col2 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to cd4a3594ee8b45223ebf9f25840cd112

query I rowsort
SELECT ALL - 31 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab0 AS cor2
----
81 values hashing to cb21a77465f6a7c6b5c4c99bafc9df52

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9558
SELECT DISTINCT col1 * cor0.col2 - ( col2 + CAST( NULL AS DECIMAL ) ) col2 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9558
SELECT DISTINCT col1 * cor0.col2 - ( col2 + CAST ( NULL AS REAL ) ) col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - col1 + - col1 * - col1 AS col0 FROM tab1 cor0
----
156
650
90

query I rowsort
SELECT DISTINCT + - col2 - - col2 AS col1 FROM tab1 cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-9561
SELECT DISTINCT - + col1 - - 58 DIV + 27 AS col0 FROM tab2 AS cor0
----
-15
-29
-57

skipif mysql # not compatible
query I rowsort label-9561
SELECT DISTINCT - + col1 - - 58 / + 27 AS col0 FROM tab2 AS cor0
----
-15
-29
-57

query I rowsort
SELECT ALL - col1 * ( + 2 ) + col2 FROM tab0 AS cor0
----
-100
-139
-193

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + cor0.col1 * + cor0.col2 col0 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT - 66 + 23 * + col1 FROM tab1 AS cor0
----
164
233
532

query I rowsort
SELECT cor0.col0 + + col1 * + col0 FROM tab2 AS cor0
----
1422
224
4680

query I rowsort
SELECT DISTINCT + 3 AS col0 FROM tab1, tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
3

query I rowsort
SELECT + ( col2 ) * + cor0.col0 AS col2 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT - 47 * - col2 AS col1 FROM tab2 AS cor0
----
1222
1269
1786

query I rowsort
SELECT col2 * col0 + ( - 98 ) * - col2 AS col2 FROM tab2 AS cor0
----
2835
4576
6726

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9570
SELECT ALL - col0 + col2 - - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9570
SELECT ALL - col0 + col2 - - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9571
SELECT ALL 82 * - col1 + + CAST( NULL AS SIGNED ) * cor0.col1 + - col2 col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9571
SELECT ALL 82 * - col1 + + CAST ( NULL AS INTEGER ) * cor0.col1 + - col2 col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-9572
SELECT - col1 DIV + col0 + col0 * col0 FROM tab1 AS cor0
----
1
4096
6400

skipif mysql # not compatible
query I rowsort label-9572
SELECT - col1 / + col0 + col0 * col0 FROM tab1 AS cor0
----
1
4096
6400

query I rowsort
SELECT col1 + + col0 + - col0 * - col2 FROM tab0 AS cor0
----
167
7478
902

onlyif mysql # use DIV operator for integer division
query I rowsort label-9574
SELECT ALL col0 DIV cor0.col0 AS col1 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9574
SELECT ALL col0 / cor0.col0 AS col1 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT + + col2 * col0 + 84 * col2 AS col0 FROM tab1 AS cor0
----
15744
4698
8436

query I rowsort
SELECT DISTINCT + col2 + - col0 * 51 FROM tab0 AS cor0
----
-1191
-1784
-4457

onlyif mysql # use DIV operator for integer division
query I rowsort label-9577
SELECT DISTINCT - ( col2 ) DIV - col1 AS col2 FROM tab1 AS cor0
----
2
5
7

skipif mysql # not compatible
query I rowsort label-9577
SELECT DISTINCT - ( col2 ) / - col1 AS col2 FROM tab1 AS cor0
----
2
5
7

query I rowsort
SELECT + - ( - cor0.col2 ) * - col0 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT - col1 * - 2 FROM tab2
----
118
34
62

query I rowsort
SELECT ALL - - col1 * col1 AS col2 FROM tab1 cor0
----
100
169
676

query I rowsort
SELECT col2 + - cor0.col0 AS col1 FROM tab0 cor0
----
-34
-7
9

query I rowsort
SELECT DISTINCT - col0 * cor0.col0 + - col2 AS col0 FROM tab1 cor0
----
-4153
-63
-6496

query I rowsort
SELECT 81 FROM tab2, tab1 cor0, tab2 AS cor1
----
27 values hashing to 0a85639e0dddbffdab2cb16b027cb360

query I rowsort
SELECT DISTINCT - - col0 * + 2 FROM tab2 AS cor0
----
14
156
158

query I rowsort
SELECT + ( + col1 ) + 95 * + col1 FROM tab0
----
8256
8736
9312

query I rowsort
SELECT 83 * col1 + cor0.col1 * col2 + cor0.col0 * + col2 FROM tab0 AS cor0
----
10768
22313
8183

query I rowsort
SELECT - col2 * col0 * col0 FROM tab2
----
-1323
-158184
-237158

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9588
SELECT DISTINCT + + CAST( 87 AS SIGNED ) * + col1 AS col0 FROM tab0 AS cor0
----
7482
7917
8439

skipif mysql # not compatible
query I rowsort label-9588
SELECT DISTINCT + + CAST ( 87 AS INTEGER ) * + col1 AS col0 FROM tab0 AS cor0
----
7482
7917
8439

query I rowsort
SELECT + - ( col0 ) * col0 + - col1 FROM tab0 AS cor0
----
-1322
-662
-8012

query I rowsort
SELECT ALL 62 AS col2 FROM tab1 AS cor0
----
62
62
62

query I rowsort
SELECT 71 AS col2 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 95a6ff35b7b8f00868fb58bcaa32d0c2

query I rowsort
SELECT DISTINCT col0 + 33 + - col1 FROM tab2
----
52
9
95

query I rowsort
SELECT DISTINCT 21 * - col2 * col2 + 7 + + 36 * + tab0.col1 * col0 AS col1 FROM tab0
----
122206
150367
51442

query I rowsort
SELECT ALL col1 * col2 + col0 FROM tab2
----
1612
725
844

query I rowsort
SELECT tab1.col0 * - tab1.col0 FROM tab1, tab1 AS cor0
----
9 values hashing to b1a10d0ce1bd78a97a3f25900325a81f

query I rowsort
SELECT ALL - 76 * col2 + col1 + - col2 * + col2 FROM tab0
----
-12865
-3511
20

query I rowsort
SELECT ( + col2 ) * + col1 - + col1 AS col2 FROM tab1
----
1235
1378
560

query I rowsort
SELECT - ( 0 ) + col2 - - col1 AS col1 FROM tab1
----
109
67
80

query I rowsort
SELECT ALL - 11 * - ( col1 ) FROM tab0 AS cor0
----
1001
1067
946

query I rowsort
SELECT DISTINCT col0 + 88 * - col0 + + tab0.col0 * 4 AS col0 FROM tab0
----
-1992
-2905
-7387

query I rowsort
SELECT - - cor0.col1 * + col0 + col2 * col2 AS col0 FROM tab0 AS cor0
----
14823
3153
3396

query I rowsort
SELECT DISTINCT - col0 - + 76 FROM tab2 AS cor0
----
-154
-155
-83

query I rowsort
SELECT - - cor0.col2 * - col1 + + cor0.col0 * - col2 FROM tab2 AS cor0
----
-1026
-3562
-3648

query I rowsort
SELECT ALL - col1 + ( - 19 ) FROM tab1 AS cor0
----
-29
-32
-45

query I rowsort
SELECT DISTINCT - col1 * col0 - - 34 FROM tab1 AS cor0
----
-1006
-44
-606

query I rowsort
SELECT - cor0.col0 * ( col0 ) + col0 FROM tab0 AS cor0
----
-1190
-552
-7832

query I rowsort
SELECT DISTINCT - - cor0.col0 - col2 FROM tab2 AS cor0
----
-20
41
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-9608
SELECT ALL - 49 + ( - col1 ) DIV 78 AS col0 FROM tab2 AS cor0
----
-49
-49
-49

skipif mysql # not compatible
query I rowsort label-9608
SELECT ALL - 49 + ( - col1 ) / 78 AS col0 FROM tab2 AS cor0
----
-49
-49
-49

onlyif mysql # use DIV operator for integer division
query I rowsort label-9609
SELECT - - col0 DIV ( col0 ) + ( col1 ) col2 FROM tab2 AS cor0
----
18
32
60

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9609
SELECT - - col0 / ( col0 ) + ( col1 ) col2 FROM tab2 AS cor0
----
18
32
60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - cor0.col0 * + col0 + col1 * - cor0.col2 col1 FROM tab2 AS cor0
----
-6887
-7618
-886

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9611
SELECT tab2.col0 * CAST( NULL AS SIGNED ) * - 32 + col1 + + ( - col0 + + col0 ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9611
SELECT tab2.col0 * CAST ( NULL AS INTEGER ) * - 32 + col1 + + ( - col0 + + col0 ) AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - cor0.col0 * cor0.col0 FROM tab2, tab1 cor0
----
-4096
-6400
-9

query I rowsort
SELECT - col2 * 19 + + col1 AS col1 FROM tab0 AS cor0
----
-1467
-541
78

query I rowsort
SELECT + + col1 * col2 AS col2 FROM tab1 cor0
----
1248
1404
570

query I rowsort
SELECT ALL - col0 * cor0.col2 - + col0 FROM tab2 AS cor0
----
-196
-2106
-3081

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + col0 col2 FROM tab1 cor0
----
4096
6400
9

query I rowsort
SELECT 2 * + col1 FROM tab1 AS cor0
----
20
26
52

query I rowsort
SELECT ALL - 66 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to cd4a3594ee8b45223ebf9f25840cd112

onlyif mysql # use DIV operator for integer division
query I rowsort label-9619
SELECT + col0 DIV col0 + - col0 DIV col1 AS col2 FROM tab1 cor0
----
-5
-5
1

skipif mysql # not compatible
query I rowsort label-9619
SELECT + col0 / col0 + - col0 / col1 AS col2 FROM tab1 cor0
----
-5
-5
1

query I rowsort
SELECT + 59 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to e29fef8cdec1ee45a71d213f16d2f1d3

onlyif mysql # use DIV operator for integer division
query I rowsort label-9621
SELECT DISTINCT col1 - + col1 DIV tab0.col0 FROM tab0
----
83
90
95

skipif mysql # not compatible
query I rowsort label-9621
SELECT DISTINCT col1 - + col1 / tab0.col0 FROM tab0
----
83
90
95

query I rowsort
SELECT 99 - + col2 * tab2.col2 AS col0 FROM tab2
----
-1345
-577
-630

query I rowsort
SELECT - 11 * + tab2.col0 FROM tab2
----
-77
-858
-869

query I rowsort
SELECT + col0 + col2 + 95 FROM tab1
----
152
216
271

query I rowsort
SELECT cor0.col0 * + col1 + cor0.col1 FROM tab2 AS cor0
----
1360
248
4661

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + col0 col1 FROM tab2 AS cor0
----
1343
217
4602

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9627
SELECT DISTINCT - col2 + + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9627
SELECT DISTINCT - col2 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - col0 * - col2 + + col1 FROM tab2 AS cor0
----
2087
220
3019

query I rowsort
SELECT ALL tab2.col2 AS col0 FROM tab2, tab0 cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3

query I rowsort
SELECT DISTINCT + col0 + + col1 + col0 AS col2 FROM tab0
----
134
167
269

query I rowsort
SELECT ALL + col1 + tab1.col0 AS col2 FROM tab1
----
29
74
93

onlyif mysql # use DIV operator for integer division
query I rowsort label-9632
SELECT + 76 DIV col1 + - col1 + 57 AS col2 FROM tab1
----
33
49
54

skipif mysql # not compatible
query I rowsort label-9632
SELECT + 76 / col1 + - col1 + 57 AS col2 FROM tab1
----
33
49
54

query I rowsort
SELECT cor0.col0 + + col0 * - col2 * col1 FROM tab1 AS cor0
----
-36416
-4209
-99760

query I rowsort
SELECT - ( - col2 * + tab0.col0 ) + - col2 AS col2 FROM tab0
----
34
7216
759

onlyif mysql # use DIV operator for integer division
query I rowsort label-9635
SELECT - col1 DIV + 75 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9635
SELECT - col1 / + 75 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - col0 * - col0 + - col2 FROM tab0
----
1224
543
7839

query I rowsort
SELECT + col1 + col0 + col0 * + ( cor0.col1 * + col2 ) FROM tab1 AS cor0
----
36554
4241
99933

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9638
SELECT DISTINCT col2 + CAST( NULL AS SIGNED ) col0 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9638
SELECT DISTINCT col2 + CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT cor0.col2 AS col1 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT DISTINCT 73 AS col2 FROM tab1, tab2 AS cor0
----
73

query I rowsort
SELECT + 35 AS col2 FROM tab0, tab2, tab0 AS cor0, tab1
----
81 values hashing to ca814400b6361c20866ff8fe01717430

query I rowsort
SELECT ALL + - ( - cor0.col0 ) + cor0.col1 * - 38 FROM tab2 AS cor0
----
-1171
-2164
-567

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9643
SELECT + ( + col1 * - col0 + CAST( col1 AS SIGNED ) ) FROM tab2
----
-1326
-186
-4543

skipif mysql # not compatible
query I rowsort label-9643
SELECT + ( + col1 * - col0 + CAST ( col1 AS INTEGER ) ) FROM tab2
----
-1326
-186
-4543

query I rowsort
SELECT ALL + cor0.col0 + + col0 AS col1 FROM tab2 AS cor0
----
14
156
158

query I rowsort
SELECT ALL - - cor0.col2 * - col0 + col0 + - 3 FROM tab1 AS cor0
----
-162
-3587
-7603

onlyif mysql # use DIV operator for integer division
query I rowsort label-9646
SELECT 30 + col1 DIV cor0.col1 FROM tab0 AS cor0
----
31
31
31

skipif mysql # not compatible
query I rowsort label-9646
SELECT 30 + col1 / cor0.col1 FROM tab0 AS cor0
----
31
31
31

query I rowsort
SELECT DISTINCT - 11 * - col1 + col2 FROM tab1 cor0
----
167
239
340

onlyif mysql # use DIV operator for integer division
query I rowsort label-9648
SELECT ALL - 38 * col0 + - col1 DIV 83 FROM tab0 AS cor0
----
-1331
-3383
-913

skipif mysql # not compatible
query I rowsort label-9648
SELECT ALL - 38 * col0 + - col1 / 83 FROM tab0 AS cor0
----
-1331
-3383
-913

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - 91 ) col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 745d1c3a09d935465cad552325c5c945

query I rowsort
SELECT DISTINCT - + col1 + col0 * - col1 AS col0 FROM tab0 AS cor0
----
-2150
-3492
-8190

onlyif mysql # use DIV operator for integer division
query I rowsort label-9651
SELECT - col1 DIV + col1 AS col2 FROM tab2 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9651
SELECT - col1 / + col1 AS col2 FROM tab2 cor0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * + 5 col0 FROM tab2 AS cor0
----
130
135
190

query I rowsort
SELECT ALL - + ( - col0 ) * col1 + col0 AS col0 FROM tab0 AS cor0
----
2088
3430
8188

query I rowsort
SELECT ( + ( cor0.col0 ) ) * 3 FROM tab2, tab1 AS cor0
----
9 values hashing to 5b7ab77c4282e0e2c74b780a822f0b5e

query I rowsort
SELECT col2 * - ( col2 ) * + 64 FROM tab0 cor0
----
-430336
-64
-69696

query I rowsort
SELECT 27 AS col1 FROM tab2
----
27
27
27

query I rowsort
SELECT - 25 FROM tab1, tab0 cor0 CROSS JOIN tab2, tab2 AS cor1
----
81 values hashing to 6f83d63ca9889b3b99826987c718bda8

query I rowsort
SELECT 98 AS col1 FROM tab0 cor0
----
98
98
98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9659
SELECT - + CAST( NULL AS SIGNED ) * 5 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9659
SELECT - + CAST ( NULL AS INTEGER ) * 5 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ( 19 ) AS col1 FROM tab2 AS cor0
----
19
19
19

query I rowsort
SELECT - + ( col1 ) + + col2 FROM tab1 AS cor0
----
28
47
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-9662
SELECT - col2 * col0 DIV 48 AS col2 FROM tab2
----
-3
-42
-62

skipif mysql # not compatible
query I rowsort label-9662
SELECT - col2 * col0 / 48 AS col2 FROM tab2
----
-3
-42
-62

query I rowsort
SELECT + - cor0.col1 * - col1 + - col0 AS col0 FROM tab1 AS cor0
----
36
673
89

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9664
SELECT + - col2 * col2 + + CAST( + col0 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-2913
-3185
-9136

skipif mysql # not compatible
query I rowsort label-9664
SELECT + - col2 * col2 + + CAST ( + col0 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-2913
-3185
-9136

query I rowsort
SELECT + cor0.col2 * - col1 - - cor0.col0 * + col1 FROM tab2 AS cor0
----
-620
3068
697

query I rowsort
SELECT - col1 + 29 AS col2 FROM tab0 AS cor0
----
-57
-62
-68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + + 72 col2 FROM tab1
----
82
85
98

query I rowsort
SELECT - col2 * col2 + col1 * - col0 * col1 AS col2 FROM tab2 cor0
----
-24275
-272194
-7456

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * ( cor0.col2 ) col0 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT + + col0 + ( - col2 ) * + cor0.col2 AS col0 FROM tab1 AS cor0
----
-2913
-3185
-9136

query I rowsort
SELECT - + cor0.col1 * + cor0.col0 + + col1 * col0 * + cor0.col0 FROM tab2 AS cor0
----
104754
1302
354354

query I rowsort
SELECT col0 + - 97 * col2 FROM tab1 AS cor0
----
-5235
-5465
-9232

onlyif mysql # use DIV operator for integer division
query I rowsort label-9673
SELECT ALL - col2 DIV - 57 FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-9673
SELECT ALL - col2 / - 57 FROM tab1 AS cor0
----
0
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 * ( - 8 ) col0 FROM tab2 AS cor0
----
-208
-216
-304

query I rowsort
SELECT - col2 * + ( col0 ) - col2 AS col0 FROM tab1 AS cor0
----
-216
-3705
-7776

query I rowsort
SELECT ALL col0 * col1 * + col2 + col0 FROM tab1 AS cor0
----
36544
4215
99920

query I rowsort
SELECT DISTINCT + - 56 + + 25 + + col1 * col2 FROM tab2 AS cor0
----
1503
615
806

onlyif mysql # use DIV operator for integer division
query I rowsort label-9678
SELECT ALL - + ( + col1 ) DIV col2 + - col1 AS col2 FROM tab1 AS cor0
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-9678
SELECT ALL - + ( + col1 ) / col2 + - col1 AS col2 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT ALL - + 91 * - cor0.col2 FROM tab2 AS cor0
----
2366
2457
3458

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col2 * col1 + + col2 col1 FROM tab2 cor0
----
1560
684
864

onlyif mysql # use DIV operator for integer division
query I rowsort label-9681
SELECT cor0.col0 DIV 27 + - col2 col0 FROM tab0 AS cor0
----
-33
-79
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9681
SELECT cor0.col0 / 27 + - col2 col0 FROM tab0 AS cor0
----
-33
-79
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-9682
SELECT DISTINCT 11 * col2 * cor0.col1 + col0 * col2 DIV + col0 + + col2 AS col0 FROM tab1 AS cor0
----
13920
15552
6384

skipif mysql # not compatible
query I rowsort label-9682
SELECT DISTINCT 11 * col2 * cor0.col1 + col0 * col2 / + col0 + + col2 AS col0 FROM tab1 AS cor0
----
13920
15552
6384

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 57 * - col1 col0 FROM tab0 AS cor0
----
-4902
-5187
-5529

query I rowsort
SELECT DISTINCT + ( - ( tab2.col2 ) ) * tab2.col2 FROM tab2, tab2 AS cor0
----
-1444
-676
-729

query I rowsort
SELECT DISTINCT - + col1 * - 10 - col1 * col0 FROM tab1 AS cor0
----
-540
-910
182

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9686
SELECT - col1 * - col1 * + CAST( + ( col1 ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
636056
753571
912673

skipif mysql # not compatible
query I rowsort label-9686
SELECT - col1 * - col1 * + CAST ( + ( col1 ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
636056
753571
912673

query I rowsort
SELECT DISTINCT 85 AS col0 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
85

query I rowsort
SELECT DISTINCT - tab1.col1 AS col1 FROM tab2, tab2 AS cor0 CROSS JOIN tab1
----
-10
-13
-26

query I rowsort
SELECT DISTINCT + col0 + - 11 AS col2 FROM tab1 AS cor0
----
-8
53
69

query I rowsort
SELECT - col1 - ( + col1 ) FROM tab0 AS cor0
----
-172
-182
-194

onlyif mysql # use DIV operator for integer division
query I rowsort label-9691
SELECT col0 + + col2 DIV ( col2 * + col0 + col2 ) AS col0 FROM tab0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-9691
SELECT col0 + + col2 / ( col2 * + col0 + col2 ) AS col0 FROM tab0
----
24
35
89

query I rowsort
SELECT - 56 + + col2 AS col0 FROM tab0
----
-23
-55
26

query I rowsort
SELECT DISTINCT 58 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
58

onlyif mysql # use DIV operator for integer division
query I rowsort label-9694
SELECT ALL + 85 DIV + col2 FROM tab0
----
1
2
85

skipif mysql # not compatible
query I rowsort label-9694
SELECT ALL + 85 / + col2 FROM tab0
----
1
2
85

query I rowsort
SELECT - col1 - col2 * 7 FROM tab0
----
-104
-317
-665

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - tab2.col0 col0 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

onlyif mysql # use DIV operator for integer division
query I rowsort label-9697
SELECT + 26 DIV - col1 FROM tab1
----
-1
-2
-2

skipif mysql # not compatible
query I rowsort label-9697
SELECT + 26 / - col1 FROM tab1
----
-1
-2
-2

query I rowsort
SELECT DISTINCT 75 + 90 AS col1 FROM tab0
----
165

query I rowsort
SELECT DISTINCT - cor0.col2 * + tab0.col2 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 6e831ce95b59398818a720c8e9b6e293

query I rowsort
SELECT col2 * tab2.col0 + col1 * col2 * col1 FROM tab2
----
13984
26136
92534

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 ALL - col0 + + 50 * col2 AS col1 FROM tab0 AS cor0
----
15
1626
4011

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9703
SELECT DISTINCT + CAST( NULL AS SIGNED ) / + col2 - + col0 * 53 AS col0 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9703
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / + col2 - + col0 * 53 AS col0 FROM tab1 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col1 * col1 col0 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT 88 - + 46 AS col2 FROM tab1 AS cor0
----
42
42
42

query I rowsort
SELECT + col1 * 93 - col2 FROM tab0 AS cor0
----
7965
8381
9020

query I rowsort
SELECT ALL + col1 + col1 + - col2 * + 53 AS col0 FROM tab2 AS cor0
----
-1260
-1369
-1980

query I rowsort
SELECT + 38 * + tab2.col1 + - tab2.col1 + 38 AS col2 FROM tab2
----
1185
2221
667

onlyif mysql # use DIV operator for integer division
query I rowsort label-9709
SELECT ALL 59 + - col0 DIV col1 FROM tab2
----
55
58
59

skipif mysql # not compatible
query I rowsort label-9709
SELECT ALL 59 + - col0 / col1 FROM tab2
----
55
58
59

query I rowsort
SELECT DISTINCT - 73 + col2 FROM tab2 AS cor0
----
-35
-46
-47

query I rowsort
SELECT ALL 57 * - col1 AS col1 FROM tab0 AS cor0
----
-4902
-5187
-5529

query I rowsort
SELECT ALL ( col2 * - 78 ) AS col0 FROM tab0
----
-2574
-6396
-78

query I rowsort
SELECT ALL + ( col1 ) * 60 + col2 AS col0 FROM tab2 AS cor0
----
1058
1887
3566

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( cor0.col0 ) + - col1 col0 FROM tab0 AS cor0
----
-110
-132
-180

query I rowsort
SELECT DISTINCT - 20 AS col2 FROM tab0 AS cor0
----
-20

query I rowsort
SELECT DISTINCT + col1 + 14 * cor0.col2 AS col1 FROM tab0 AS cor0
----
111
1239
548

query I rowsort
SELECT - + col1 * + 82 AS col2 FROM tab2 AS cor0
----
-1394
-2542
-4838

query I rowsort
SELECT col1 * ( col2 * - col0 ) + col0 AS col0 FROM tab2
----
-119574
-50955
-5852

query I rowsort
SELECT col1 * col0 * 19 FROM tab1 AS cor0
----
12160
1482
19760

query I rowsort
SELECT ALL + 2 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

query I rowsort
SELECT DISTINCT + - col1 * 36 + col1 FROM tab0 AS cor0
----
-3010
-3185
-3395

query I rowsort
SELECT ( - 36 ) * col0 AS col0 FROM tab2 AS cor0
----
-252
-2808
-2844

query I rowsort
SELECT ALL - 45 * ( - col1 ) AS col1 FROM tab1 AS cor0
----
1170
450
585

onlyif mysql # use DIV operator for integer division
query I rowsort label-9724
SELECT DISTINCT + 47 + + col2 DIV - col0 FROM tab2 AS cor0
----
44
47

skipif mysql # not compatible
query I rowsort label-9724
SELECT DISTINCT + 47 + + col2 / - col0 FROM tab2 AS cor0
----
44
47

query I rowsort
SELECT ALL col1 - + cor0.col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - col0 + + 74 AS col2 FROM tab0 AS cor0
----
-15
39
50

query I rowsort
SELECT DISTINCT + cor0.col2 * + 7 * - col0 AS col0 FROM tab2 cor0
----
-1323
-14196
-21014

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 28 * col2 + col0 col0 FROM tab2 AS cor0
----
1143
763
806

query I rowsort
SELECT ALL + + 45 + col2 FROM tab0 AS cor0
----
127
46
78

query I rowsort
SELECT DISTINCT + + ( + 37 ) FROM tab1 AS cor0
----
37

query I rowsort
SELECT ALL - 24 * + col0 + col0 AS col2 FROM tab1 AS cor0
----
-1472
-1840
-69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 66 col1 FROM tab0 cor0
----
-66
-66
-66

query I rowsort
SELECT DISTINCT - col0 + ( + cor0.col0 + col2 ) * + 67 FROM tab2 AS cor0
----
2271
6890
7760

query I rowsort
SELECT DISTINCT - ( - 65 ) AS col0 FROM tab1, tab0 AS cor0
----
65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 70 col2 FROM tab2, tab2 AS cor0
----
70

query I rowsort
SELECT ALL col0 + - col1 * col1 FROM tab0 AS cor0
----
-7372
-8192
-9374

query I rowsort
SELECT - - 61 * col1 AS col2 FROM tab1 AS cor0
----
1586
610
793

query I rowsort
SELECT ALL ( - col0 ) - + col0 FROM tab0 AS cor0
----
-178
-48
-70

onlyif mysql # use DIV operator for integer division
query I rowsort label-9739
SELECT ALL - col0 DIV 71 + + col0 * + col1 AS col1 FROM tab1 AS cor0
----
1039
640
78

skipif mysql # not compatible
query I rowsort label-9739
SELECT ALL - col0 / 71 + + col0 * + col1 AS col1 FROM tab1 AS cor0
----
1039
640
78

query I rowsort
SELECT DISTINCT cor0.col2 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
1
33
82

query I rowsort
SELECT DISTINCT + 14 - col1 AS col2 FROM tab1 AS cor0
----
-12
1
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 7 * + 56 col2 FROM tab0 AS cor0
----
-392
-392
-392

query I rowsort
SELECT - ( col0 ) * col0 + col1 * + col2 FROM tab2 AS cor0
----
-4550
-5595
788

query I rowsort
SELECT - col0 * - col1 + 11 FROM tab1 AS cor0
----
1051
651
89

query I rowsort
SELECT ALL + ( - col0 ) * + col0 AS col2 FROM tab2
----
-49
-6084
-6241

query I rowsort
SELECT DISTINCT + col2 * + col2 * + col0 FROM tab2
----
114076
5103
52728

onlyif mysql # use DIV operator for integer division
query I rowsort label-9747
SELECT - col2 * + cor0.col1 + col2 DIV + cor0.col1 AS col0 FROM tab0 cor0
----
-2838
-7462
-97

skipif mysql # not compatible
query I rowsort label-9747
SELECT - col2 * + cor0.col1 + col2 / + cor0.col1 AS col0 FROM tab0 cor0
----
-2838
-7462
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-9748
SELECT + col1 + col0 + + col2 DIV col0 AS col1 FROM tab0 AS cor0
----
111
132
180

skipif mysql # not compatible
query I rowsort label-9748
SELECT + col1 + col0 + + col2 / col0 AS col1 FROM tab0 AS cor0
----
111
132
180

query I rowsort
SELECT - - col2 * ( + cor0.col0 ) + col0 * + 75 FROM tab1 AS cor0
----
13680
387
8448

query I rowsort
SELECT + col0 * col0 + col0 * col1 + ( + col2 ) * col1 FROM tab0 cor0
----
23482
4717
5478

query I rowsort
SELECT ALL + cor0.col2 * ( 25 ) AS col0 FROM tab0 AS cor0
----
2050
25
825

query I rowsort
SELECT - - col1 * - ( + col1 ) FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT col1 + + 77 * - col0 FROM tab1 cor0
----
-205
-4918
-6147

onlyif mysql # use DIV operator for integer division
query I rowsort label-9754
SELECT + col0 DIV + ( col1 * col1 ) FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9754
SELECT + col0 / + ( col1 * col1 ) FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL col0 * - col2 + col1 FROM tab0
----
-706
-7207
62

query I rowsort
SELECT ALL 83 + - cor0.col1 FROM tab2, tab2 cor0, tab2 AS cor1
----
27 values hashing to 28995ea5d812809bfa059b11042958b1

query I rowsort
SELECT ALL - col1 + + col2 * ( 1 * - tab0.col0 + + col0 ) AS col0 FROM tab0
----
-86
-91
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 77 col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 3a24155cb91ceff1e67bb51c07b72107

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * col0 * + col2 col2 FROM tab0 AS cor0
----
3395
664118
68112

query I rowsort
SELECT - cor0.col2 + 64 * col2 AS col0 FROM tab2 AS cor0
----
1638
1701
2394

query I rowsort
SELECT - + col1 * - ( col0 ) + col0 AS col0 FROM tab1 AS cor0
----
1120
704
81

query I rowsort
SELECT ALL + cor0.col0 * 88 + col2 FROM tab0 AS cor0
----
2145
3081
7914

query I rowsort
SELECT DISTINCT + col2 * 65 AS col0 FROM tab1
----
3510
3705
6240

query I rowsort
SELECT DISTINCT - - cor1.col0 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
24
35
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-9765
SELECT + - col2 * cor0.col1 DIV ( - col1 ) FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-9765
SELECT + - col2 * cor0.col1 / ( - col1 ) FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT col2 * - ( - col2 ) * col1 AS col1 FROM tab2 AS cor0
----
22599
24548
39884

query I rowsort
SELECT + + col2 + col0 * + col2 AS col2 FROM tab1 AS cor0
----
216
3705
7776

query I rowsort
SELECT - col1 * + col0 * + 38 FROM tab0 AS cor0
----
-129010
-307762
-78432

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 + + cor0.col0 * + 86 FROM tab2 AS cor0
----
602
6708
6794

onlyif mysql # use DIV operator for integer division
query I rowsort label-9771
SELECT + cor0.col0 + col1 DIV + col1 AS col2 FROM tab1 AS cor0
----
4
65
81

skipif mysql # not compatible
query I rowsort label-9771
SELECT + cor0.col0 + col1 / + col1 AS col2 FROM tab1 AS cor0
----
4
65
81

query I rowsort
SELECT ALL col1 + + col2 * - 20 FROM tab2 AS cor0
----
-461
-509
-743

query I rowsort
SELECT ALL + - 32 FROM tab2 AS cor0
----
-32
-32
-32

query I rowsort
SELECT + col0 * ( - col0 * + col1 + 56 ) FROM tab1
----
-37376
-66
-78720

query I rowsort
SELECT - + ( col1 ) * cor0.col1 + col2 FROM tab1 AS cor0
----
-43
-622
-73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 * col0 col0 FROM tab2 AS cor0
----
1343
217
4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-9777
SELECT ALL - 47 DIV col2 AS col0 FROM tab0 cor0
----
-1
-47
0

skipif mysql # not compatible
query I rowsort label-9777
SELECT ALL - 47 / col2 AS col0 FROM tab0 cor0
----
-1
-47
0

query I rowsort
SELECT DISTINCT col1 * 63 + col1 * col1 + 6 AS col2 FROM tab1 AS cor0
----
2320
736
994

query I rowsort
SELECT - 67 * + col0 AS col0 FROM tab0 AS cor0
----
-1608
-2345
-5963

onlyif mysql # use DIV operator for integer division
query I rowsort label-9780
SELECT + col1 + ( col1 ) DIV col0 + - CAST( + ( - col0 ) AS SIGNED ) FROM tab2
----
137
42
96

skipif mysql # not compatible
query I rowsort label-9780
SELECT + col1 + ( col1 ) / col0 + - CAST ( + ( - col0 ) AS INTEGER ) FROM tab2
----
137
42
96

query I rowsort
SELECT col0 * - tab0.col1 + + col2 AS col1 FROM tab0
----
-2031
-3394
-8017

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + col2 col1 FROM tab2
----
-1534
-646
-837

query I rowsort
SELECT col0 + - ( ( col1 ) ) * ( - col1 * col1 ) FROM tab2
----
205457
29798
4992

query I rowsort
SELECT DISTINCT - - 58 AS col0 FROM tab2 AS cor0
----
58

onlyif mysql # use DIV operator for integer division
query I rowsort label-9785
SELECT DISTINCT col1 * col2 DIV - col2 FROM tab0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-9785
SELECT DISTINCT col1 * col2 / - col2 FROM tab0
----
-86
-91
-97

query I rowsort
SELECT DISTINCT + col0 * + col1 * cor0.col2 AS col1 FROM tab1 AS cor0
----
36480
4212
99840

onlyif mysql # use DIV operator for integer division
query I rowsort label-9787
SELECT ALL + col0 DIV - col0 col1 FROM tab1 AS cor0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9787
SELECT ALL + col0 / - col0 col1 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT 16 AS col2 FROM tab2, tab0, tab0 cor0
----
27 values hashing to ee5bde9f68ee828e8cd86b0d590090bc

query I rowsort
SELECT + ( 71 ) AS col0 FROM tab1
----
71
71
71

query I rowsort
SELECT ALL - ( col0 + 13 ) FROM tab1
----
-16
-77
-93

query I rowsort
SELECT - 48 * col0 AS col0 FROM tab2
----
-336
-3744
-3792

query I rowsort
SELECT + 17 * col0 AS col0 FROM tab1 AS cor0
----
1088
1360
51

query I rowsort
SELECT ALL + tab1.col2 + col0 - - ( + tab1.col2 ) AS col0 FROM tab1
----
111
178
272

query I rowsort
SELECT col0 + - col2 - - col2 FROM tab1
----
3
64
80

query I rowsort
SELECT col1 + col0 - + ( - ( - col1 ) ) * ( 18 ) * col2 FROM tab2 AS cor0
----
-11532
-15028
-27475

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9796
SELECT ALL cor0.col0 / CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9796
SELECT ALL cor0.col0 / CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col0 + + 29 AS col2 FROM tab0 cor0
----
118
53
64

query I rowsort
SELECT DISTINCT + cor0.col2 * 4 + + 38 FROM tab1 AS cor0
----
254
266
422

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 60 col0 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
60

onlyif mysql # use DIV operator for integer division
query I rowsort label-9800
SELECT 59 + + col0 DIV + ( 28 ) FROM tab2
----
59
61
61

skipif mysql # not compatible
query I rowsort label-9800
SELECT 59 + + col0 / + ( 28 ) FROM tab2
----
59
61
61

query I rowsort
SELECT + col2 * + ( - 68 * - col1 ) + col1 + - col1 FROM tab0 AS cor0
----
192984
507416
6596

onlyif mysql # use DIV operator for integer division
query I rowsort label-9802
SELECT DISTINCT - col1 DIV ( col1 ) FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-9802
SELECT DISTINCT - col1 / ( col1 ) FROM tab1 AS cor0
----
-1

query I rowsort
SELECT DISTINCT col2 + + ( tab0.col0 + - col1 ) AS col1 FROM tab0
----
-29
-61
80

query I rowsort
SELECT DISTINCT - col1 * col1 + + 87 AS col0 FROM tab1 AS cor0
----
-13
-589
-82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9805
SELECT - col0 * CAST( col2 AS SIGNED ) * - col1 + + col1 FROM tab1 AS cor0
----
36490
4238
99853

skipif mysql # not compatible
query I rowsort label-9805
SELECT - col0 * CAST ( col2 AS INTEGER ) * - col1 + + col1 FROM tab1 AS cor0
----
36490
4238
99853

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9806
SELECT - + col0 + + CAST( - col2 AS SIGNED ) FROM tab1 AS cor0
----
-121
-176
-57

skipif mysql # not compatible
query I rowsort label-9806
SELECT - + col0 + + CAST ( - col2 AS INTEGER ) FROM tab1 AS cor0
----
-121
-176
-57

query I rowsort
SELECT + col0 - - 39 FROM tab0 AS cor0
----
128
63
74

onlyif mysql # use DIV operator for integer division
query I rowsort label-9808
SELECT ALL - col1 + - ( 40 ) DIV col2 AS col0 FROM tab1 cor0
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-9808
SELECT ALL - col1 + - ( 40 ) / col2 AS col0 FROM tab1 cor0
----
-10
-13
-26

query I rowsort
SELECT DISTINCT - cor0.col1 + 66 AS col0 FROM tab1 AS cor0
----
40
53
56

query I rowsort
SELECT + col0 * + 91 AS col0 FROM tab0 AS cor0
----
2184
3185
8099

query I rowsort
SELECT ALL - col2 * - 14 + col0 FROM tab0 AS cor0
----
1237
486
49

query I rowsort
SELECT DISTINCT - col0 + - 65 AS col0 FROM tab1 AS cor0
----
-129
-145
-68

query I rowsort
SELECT + col1 * - 23 AS col0 FROM tab0 cor0
----
-1978
-2093
-2231

query I rowsort
SELECT + col1 + + cor0.col0 + + 16 AS col2 FROM tab0 AS cor0
----
126
148
196

onlyif mysql # use DIV operator for integer division
query I rowsort label-9815
SELECT ALL - cor0.col1 DIV - ( + col1 ) AS col0 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9815
SELECT ALL - cor0.col1 / - ( + col1 ) AS col0 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT ALL + col2 + + 32 * ( col2 ) AS col2 FROM tab0 AS cor0
----
1089
2706
33

query I rowsort
SELECT col1 * ( + col0 ) - - col0 FROM tab0 AS cor0
----
2088
3430
8188

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab1 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab0 AS cor2
----
3645 values hashing to 53ea9df66efbebef5063fb0b15c25baa

onlyif mysql # use DIV operator for integer division
query I rowsort label-9819
SELECT DISTINCT col0 + cor0.col1 - + col1 DIV - col0 AS col0 FROM tab2 AS cor0
----
137
42
96

skipif mysql # not compatible
query I rowsort label-9819
SELECT DISTINCT col0 + cor0.col1 - + col1 / - col0 AS col0 FROM tab2 AS cor0
----
137
42
96

query I rowsort
SELECT DISTINCT 76 * 18 AS col2 FROM tab0 AS cor0
----
1368

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9821
SELECT + CAST( NULL AS SIGNED ) * col1 + col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9821
SELECT + CAST ( NULL AS INTEGER ) * col1 + col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9822
SELECT DISTINCT - col1 * col0 + CAST( NULL AS SIGNED ) * col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9822
SELECT DISTINCT - col1 * col0 + CAST ( NULL AS INTEGER ) * col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-9823
SELECT ALL - + col2 DIV - col0 AS col0 FROM tab2 AS cor0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-9823
SELECT ALL - + col2 / - col0 AS col0 FROM tab2 AS cor0
----
0
0
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( - col1 ) col1 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT ALL - 76 - - col2 FROM tab2 AS cor0
----
-38
-49
-50

query I rowsort
SELECT DISTINCT cor0.col0 * - col1 + - col0 FROM tab1 AS cor0
----
-1120
-704
-81

onlyif mysql # use DIV operator for integer division
query I rowsort label-9827
SELECT DISTINCT - col1 + + col2 DIV col1 FROM tab0 AS cor0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-9827
SELECT DISTINCT - col1 + + col2 / col1 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT ALL + + col2 + col0 * + ( col0 ) AS col1 FROM tab2 AS cor0
----
6110
6279
76

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9829
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + col1 + col1 AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9829
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + col1 + col1 AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + col1 * + 95 FROM tab0 AS cor0
----
8170
8645
9215

query I rowsort
SELECT + col0 + + col0 * - col1 FROM tab2 AS cor0
----
-1264
-210
-4524

query I rowsort
SELECT DISTINCT - ( 40 ) AS col1 FROM tab2 AS cor0
----
-40

query I rowsort
SELECT ALL + + cor0.col0 * ( - col1 ) FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT ( - 32 ) AS col2 FROM tab0 cor0
----
-32
-32
-32

query I rowsort
SELECT ALL - + 23 * + col0 AS col1 FROM tab2 AS cor0
----
-161
-1794
-1817

onlyif mysql # use DIV operator for integer division
query I rowsort label-9836
SELECT DISTINCT + col0 * + ( col1 ) + + ( col0 ) * + col2 + col0 * + col1 DIV col1 AS col0 FROM tab2 AS cor0
----
413
4424
6708

skipif mysql # not compatible
query I rowsort label-9836
SELECT DISTINCT + col0 * + ( col1 ) + + ( col0 ) * + col2 + col0 * + col1 / col1 AS col0 FROM tab2 AS cor0
----
413
4424
6708

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9837
SELECT - CAST( 36 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-36
-36
-36

skipif mysql # not compatible
query I rowsort label-9837
SELECT - CAST ( 36 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-36
-36
-36

query IIIIIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab2 AS cor0 CROSS JOIN tab0, tab1 cor1, tab0 AS cor2, tab0 AS cor3
----
13122 values hashing to 8718ce71186c0fb3b188ed4f5cf992d1

query I rowsort
SELECT ALL + col1 + 2 AS col2 FROM tab0
----
88
93
99

query I rowsort
SELECT ALL - + col2 * 31 AS col1 FROM tab0 cor0
----
-1023
-2542
-31

query I rowsort
SELECT ALL 97 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c

query I rowsort
SELECT DISTINCT + cor0.col1 + 52 * col1 * + col1 AS col1 FROM tab2 AS cor0
----
15045
181071
50003

query I rowsort
SELECT + - cor0.col2 * 77 + 33 AS col2 FROM tab1 AS cor0
----
-4125
-4356
-7359

query I rowsort
SELECT DISTINCT tab1.col1 * + col2 + 29 * + col0 FROM tab1
----
1491
2426
3568

query I rowsort
SELECT DISTINCT - 61 + - 86 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-147

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + + ( 3 ) * + tab2.col1 col2 FROM tab2
----
118
34
62

query I rowsort
SELECT DISTINCT col0 * 18 * - 62 AS col0 FROM tab0
----
-26784
-39060
-99324

query I rowsort
SELECT ALL + 94 * 4 FROM tab2, tab2 cor0
----
9 values hashing to 7880585803018c08f646180008320e30

query I rowsort
SELECT DISTINCT col2 * + col2 * - tab1.col1 AS col2 FROM tab1
----
-119808
-32490
-75816

query I rowsort
SELECT ALL ( 45 ) FROM tab2, tab0, tab1 AS cor0, tab2 AS cor1
----
81 values hashing to 8a6d20810140ea088e8e0fd74ffb8339

query I rowsort
SELECT ALL col0 + 41 FROM tab1 AS cor0
----
105
121
44

query I rowsort
SELECT ALL - col0 * + ( + col0 ) * + col0 FROM tab1 AS cor0
----
-262144
-27
-512000

onlyif mysql # use DIV operator for integer division
query I rowsort label-9853
SELECT DISTINCT - + col1 DIV + col2 AS col2 FROM tab0 AS cor0
----
-1
-2
-97

skipif mysql # not compatible
query I rowsort label-9853
SELECT DISTINCT - + col1 / + col2 AS col2 FROM tab0 AS cor0
----
-1
-2
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-9854
SELECT + col0 DIV - ( 18 ) col0 FROM tab1 AS cor0
----
-3
-4
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9854
SELECT + col0 / - ( 18 ) col0 FROM tab1 AS cor0
----
-3
-4
0

query I rowsort
SELECT ALL - col2 + + cor0.col2 * + col0 AS col1 FROM tab1 AS cor0
----
108
3591
7584

query I rowsort
SELECT - + col0 + + 68 FROM tab2 cor0
----
-10
-11
61

onlyif mysql # use DIV operator for integer division
query I rowsort label-9857
SELECT col0 + - 42 DIV + col1 FROM tab1 cor0
----
2
60
77

skipif mysql # not compatible
query I rowsort label-9857
SELECT col0 + - 42 / + col1 FROM tab1 cor0
----
2
60
77

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9858
SELECT ALL - col2 - CAST( + 42 AS SIGNED ) AS col1 FROM tab0 cor0
----
-124
-43
-75

skipif mysql # not compatible
query I rowsort label-9858
SELECT ALL - col2 - CAST ( + 42 AS INTEGER ) AS col1 FROM tab0 cor0
----
-124
-43
-75

query I rowsort
SELECT + cor0.col0 FROM tab0 AS cor0 CROSS JOIN tab1, tab1 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT DISTINCT 0 * 12 FROM tab1, tab1 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - col2 ) * col2 * - col1 col1 FROM tab1 AS cor0
----
-119808
-32490
-75816

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 55 col1 FROM tab2, tab0 cor0
----
-55

query I rowsort
SELECT ALL + + ( col1 ) - col0 FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT - cor0.col0 AS col1 FROM tab0, tab2 AS cor0, tab1 cor1
----
27 values hashing to c82df1de3cb666224690a83f3d790d79

query I rowsort
SELECT 11 AS col0 FROM tab2 AS cor0
----
11
11
11

query I rowsort
SELECT DISTINCT 13 + col0 FROM tab0 AS cor0
----
102
37
48

query I rowsort
SELECT DISTINCT - - ( cor0.col1 ) AS col0 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT + 74 * - col1 AS col1 FROM tab2
----
-1258
-2294
-4366

query I rowsort
SELECT + 96 * cor0.col0 + 91 FROM tab0 AS cor0
----
2395
3451
8635

query I rowsort
SELECT col2 * 48 + 99 AS col1 FROM tab1 AS cor0
----
2691
2835
4707

query I rowsort
SELECT + col0 * 19 + - cor0.col2 AS col2 FROM tab2 AS cor0
----
106
1456
1463

query I rowsort
SELECT ALL ( - col0 ) + col1 FROM tab0
----
2
62
62

query I rowsort
SELECT ALL col2 + + col2 * + tab0.col1 AS col1 FROM tab0
----
2871
7544
98

query I rowsort
SELECT - cor0.col2 AS col2 FROM tab1, tab1 cor0
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba

query I rowsort
SELECT col0 + + col2 + col2 FROM tab2
----
130
155
61

query I rowsort
SELECT 65 + - col1 AS col2 FROM tab2
----
34
48
6

query I rowsort
SELECT cor1.col1 AS col1 FROM tab0, tab1 cor0, tab1 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

onlyif mysql # use DIV operator for integer division
query I rowsort label-9878
SELECT ALL - - 92 DIV col2 + col1 AS col0 FROM tab0 AS cor0
----
189
88
92

skipif mysql # not compatible
query I rowsort label-9878
SELECT ALL - - 92 / col2 + col1 AS col0 FROM tab0 AS cor0
----
189
88
92

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + - col0 + + col0 * CAST ( - col1 * col1 AS REAL ) AS col1 FROM tab1 AS cor0
----
-13600
-2031
-6464

query I rowsort
SELECT ALL col2 * col2 * col1 + - cor0.col0 + - cor0.col2 FROM tab2 AS cor0
----
22565
24431
39780

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 24 + + col2 col1 FROM tab0 AS cor0
----
106
25
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 18 col2 FROM tab2
----
18
18
18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * ( - col0 * - ( col0 ) ) col1 FROM tab1
----
234
40960
83200

query I rowsort
SELECT - 80 * - col1 AS col0 FROM tab2
----
1360
2480
4720

query I rowsort
SELECT DISTINCT - + 69 - col0 AS col0 FROM tab2 AS cor0
----
-147
-148
-76

onlyif mysql # use DIV operator for integer division
query I rowsort label-9886
SELECT cor0.col2 DIV - col1 - col2 FROM tab0 AS cor0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-9886
SELECT cor0.col2 / - col1 - col2 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT ALL - 37 * + 58 AS col2 FROM tab2
----
-2146
-2146
-2146

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9888
SELECT - CAST( NULL AS SIGNED ) * col2 col1 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9888
SELECT - CAST ( NULL AS INTEGER ) * col2 col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 * + col1 * + col2 FROM tab2 AS cor0
----
-10982
-25947
-90506

query I rowsort
SELECT + col0 * - col1 * - col0 + col2 FROM tab2 AS cor0
----
106135
1546
358982

query I rowsort
SELECT - cor0.col2 + + 17 AS col0 FROM tab2 cor0
----
-10
-21
-9

query I rowsort
SELECT - col1 * 52 AS col1 FROM tab1 AS cor0
----
-1352
-520
-676

query I rowsort
SELECT DISTINCT 36 AS col1 FROM tab1, tab0, tab1 AS cor0
----
36

query I rowsort
SELECT DISTINCT + col1 * - col1 * cor0.col1 AS col2 FROM tab1 AS cor0
----
-1000
-17576
-2197

query I rowsort
SELECT DISTINCT + col2 + col2 AS col1 FROM tab0 cor0
----
164
2
66

onlyif mysql # use DIV operator for integer division
query I rowsort label-9896
SELECT ALL - - col0 DIV + col1 FROM tab1 AS cor0
----
0
6
6

skipif mysql # not compatible
query I rowsort label-9896
SELECT ALL - - col0 / + col1 FROM tab1 AS cor0
----
0
6
6

query I rowsort
SELECT + 73 * col0 AS col0 FROM tab0 AS cor0
----
1752
2555
6497

query I rowsort
SELECT DISTINCT - + ( 89 ) * col1 * 94 FROM tab1 AS cor0
----
-108758
-217516
-83660

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9899
SELECT - CAST( - ( + col1 ) AS SIGNED ) * 20 AS col0 FROM tab1 AS cor0
----
200
260
520

skipif mysql # not compatible
query I rowsort label-9899
SELECT - CAST ( - ( + col1 ) AS INTEGER ) * 20 AS col0 FROM tab1 AS cor0
----
200
260
520

query I rowsort
SELECT ALL - + col1 + - 65 * col0 FROM tab1 cor0
----
-221
-4170
-5213

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col1 * 42 col1 FROM tab0 AS cor0
----
3612
3822
4074

query I rowsort
SELECT ALL - 15 + col1 AS col0 FROM tab1 AS cor0
----
-2
-5
11

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9903
SELECT ALL + CAST( 12 AS SIGNED ) + cor0.col1 FROM tab0 AS cor0
----
103
109
98

skipif mysql # not compatible
query I rowsort label-9903
SELECT ALL + CAST ( 12 AS INTEGER ) + cor0.col1 FROM tab0 AS cor0
----
103
109
98

query I rowsort
SELECT ALL - col0 + ( - col2 ) * col2 FROM tab0
----
-1113
-36
-6813

onlyif mysql # use DIV operator for integer division
query I rowsort label-9905
SELECT ALL - tab1.col2 * - col2 + + col2 DIV + col1 AS col2 FROM tab1
----
2918
3254
9223

skipif mysql # not compatible
query I rowsort label-9905
SELECT ALL - tab1.col2 * - col2 + + col2 / + col1 AS col2 FROM tab1
----
2918
3254
9223

onlyif mysql # use DIV operator for integer division
query I rowsort label-9906
SELECT ALL - col1 DIV + 34 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9906
SELECT ALL - col1 / + 34 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * 36 - - col1 col2 FROM tab0
----
3182
3367
3589

query I rowsort
SELECT ALL - tab0.col0 * - tab0.col2 * - tab0.col1 AS col1 FROM tab0
----
-3395
-664118
-68112

query I rowsort
SELECT ( + col1 ) + - tab1.col1 AS col1 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL col1 * 37 * - col1 AS col0 FROM tab1
----
-25012
-3700
-6253

query I rowsort
SELECT ALL + col0 * + col1 + + col2 * + col2 FROM tab0 AS cor0
----
14823
3153
3396

query I rowsort
SELECT DISTINCT + 9 * col2 FROM tab2 AS cor0
----
234
243
342

query I rowsort
SELECT DISTINCT 71 * cor0.col2 FROM tab1 AS cor0
----
3834
4047
6816

query I rowsort
SELECT DISTINCT + - col0 * + 5 FROM tab0 AS cor0
----
-120
-175
-445

onlyif mysql # use DIV operator for integer division
query I rowsort label-9915
SELECT + col2 DIV ( 63 ) FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-9915
SELECT + col2 / ( 63 ) FROM tab0 AS cor0
----
0
0
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-9916
SELECT DISTINCT + col2 + + col2 DIV - 26 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-9916
SELECT DISTINCT + col2 + + col2 / - 26 col0 FROM tab2 AS cor0
----
25
26
37

query I rowsort
SELECT ALL - col1 + 67 AS col0 FROM tab1 cor0
----
41
54
57

query I rowsort
SELECT ALL - + cor0.col0 - - 98 AS col0 FROM tab0 AS cor0
----
63
74
9

query I rowsort
SELECT ALL - col2 * + 36 + col1 * cor0.col0 * - 21 FROM tab0 AS cor0
----
-173031
-44532
-71331

query I rowsort
SELECT ALL + cor0.col1 + - 26 * col1 FROM tab1 cor0
----
-250
-325
-650

query IIIIII rowsort
SELECT * FROM tab0, tab1 AS cor0 WHERE ( NULL ) IN ( + cor0.col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * 15 + + col1 * cor0.col1 * cor0.col0 col2 FROM tab0 AS cor0
----
177999
329330
738239

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9923
SELECT DISTINCT col2 * col0 - - CAST( - col2 AS SIGNED ) * col2 FROM tab2 AS cor0
----
-540
1352
1558

skipif mysql # not compatible
query I rowsort label-9923
SELECT DISTINCT col2 * col0 - - CAST ( - col2 AS INTEGER ) * col2 FROM tab2 AS cor0
----
-540
1352
1558

query I rowsort
SELECT ALL + ( cor0.col1 ) * col1 AS col0 FROM tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT DISTINCT 62 + + col1 FROM tab2 AS cor0
----
121
79
93

onlyif mysql # use DIV operator for integer division
query I rowsort label-9926
SELECT DISTINCT - - col1 DIV col1 - col1 FROM tab2 AS cor0
----
-16
-30
-58

skipif mysql # not compatible
query I rowsort label-9926
SELECT DISTINCT - - col1 / col1 - col1 FROM tab2 AS cor0
----
-16
-30
-58

query I rowsort
SELECT - ( + 85 ) AS col0 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 91e44ead5e72fa22f87a57243e232ede

query I rowsort
SELECT + ( col2 ) * cor0.col0 * - col0 + - col2 + - col1 * col0 * col0 AS col1 FROM tab2 AS cor0
----
-2869
-343293
-517166

query I rowsort
SELECT - col0 + - col1 * col2 AS col2 FROM tab2 AS cor0
----
-1612
-725
-844

query I rowsort
SELECT ALL + col0 + + col0 * + 26 AS col1 FROM tab1 cor0
----
1728
2160
81

query I rowsort
SELECT DISTINCT col2 * cor0.col1 AS col2 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT 37 + - col0 * + ( + col0 ) AS col1 FROM tab1 AS cor0
----
-4059
-6363
28

query I rowsort
SELECT + ( - col2 ) * 36 AS col0 FROM tab2 AS cor0
----
-1368
-936
-972

query I rowsort
SELECT DISTINCT - + ( 17 ) + col2 FROM tab1 AS cor0
----
37
40
79

query I rowsort
SELECT + col2 + 96 * col2 + + ( col0 ) AS col0 FROM tab2 cor0
----
2600
2626
3765

query I rowsort
SELECT DISTINCT col2 * col1 * cor0.col2 AS col2 FROM tab1 cor0
----
119808
32490
75816

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 66 + col0 + col0 col1 FROM tab1 AS cor0
----
194
226
72

query I rowsort
SELECT - col0 + col1 * cor0.col0 AS col0 FROM tab0 cor0
----
2040
3360
8010

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9939
SELECT ALL + - CAST( NULL AS SIGNED ) col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9939
SELECT ALL + - CAST ( NULL AS INTEGER ) col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 13 * col0 AS col2 FROM tab2 AS cor0
----
1014
1027
91

query I rowsort
SELECT ( + 96 ) * col0 + 33 + - col0 FROM tab1 AS cor0
----
318
6113
7633

query I rowsort
SELECT 35 + ( col1 ) + - 59 AS col1 FROM tab1 AS cor0
----
-11
-14
2

onlyif mysql # use DIV operator for integer division
query I rowsort label-9943
SELECT DISTINCT - col1 DIV 45 + - 75 * col1 - col2 * col2 AS col1 FROM tab0
----
-13551
-7278
-7540

skipif mysql # not compatible
query I rowsort label-9943
SELECT DISTINCT - col1 / 45 + - 75 * col1 - col2 * col2 AS col1 FROM tab0
----
-13551
-7278
-7540

query I rowsort
SELECT ALL - col0 + col1 - + 40 FROM tab1
----
-107
-17
-94

query I rowsort
SELECT ALL 4 * 11 + + col0 * col2 AS col1 FROM tab1
----
206
3692
7724

query I rowsort
SELECT ALL - 23 + ( tab1.col1 ) * 81 * - col2 AS col2 FROM tab1
----
-101111
-113747
-46193

query I rowsort
SELECT ALL + ( + tab2.col1 * col2 ) + col2 * col0 + - col0 AS col0 FROM tab2
----
1019
3484
3569

query I rowsort
SELECT ALL + 13 * - col0 AS col2 FROM tab2 AS cor0
----
-1014
-1027
-91

query I rowsort
SELECT + ( - col2 ) + col2 + + col1 * + col1 * col1 AS col0 FROM tab2 AS cor0
----
205379
29791
4913

query I rowsort
SELECT DISTINCT col0 * 91 AS col1 FROM tab2
----
637
7098
7189

query I rowsort
SELECT ALL 10 * ( + col0 ) * col0 AS col1 FROM tab2
----
490
60840
62410

query I rowsort
SELECT DISTINCT 77 FROM tab0, tab1 cor0
----
77

query I rowsort
SELECT DISTINCT col2 * col1 + col2 + 21 FROM tab2
----
1581
705
885

onlyif mysql # use DIV operator for integer division
query I rowsort label-9954
SELECT - col0 * + col1 + col2 * col1 DIV col0 FROM tab1 AS cor0
----
-1025
-632
390

skipif mysql # not compatible
query I rowsort label-9954
SELECT - col0 * + col1 + col2 * col1 / col0 FROM tab1 AS cor0
----
-1025
-632
390

onlyif mysql # use DIV operator for integer division
query I rowsort label-9955
SELECT + 11 DIV 31 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

skipif mysql # not compatible
query I rowsort label-9955
SELECT + 11 / 31 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9956
SELECT DISTINCT CAST( col0 * col1 + col2 AS SIGNED ) AS col0 FROM tab1
----
1136
132
697

skipif mysql # not compatible
query I rowsort label-9956
SELECT DISTINCT CAST ( col0 * col1 + col2 AS INTEGER ) AS col0 FROM tab1
----
1136
132
697

query I rowsort
SELECT 55 * tab1.col2 AS col1 FROM tab1
----
2970
3135
5280

query I rowsort
SELECT 65 * + col1 AS col1 FROM tab2
----
1105
2015
3835

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9959
SELECT col1 + col0 * - CAST( 95 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-2194
-3228
-8364

skipif mysql # not compatible
query I rowsort label-9959
SELECT col1 + col0 * - CAST ( 95 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-2194
-3228
-8364

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9960
SELECT col2 * - CAST( NULL AS SIGNED ) col1 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9960
SELECT col2 * - CAST ( NULL AS INTEGER ) col1 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 48 col1 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 0ef571a8722ab7270aa7272c1174b88e

query I rowsort
SELECT DISTINCT + col1 * + cor0.col1 * col1 FROM tab0 AS cor0
----
636056
753571
912673

query I rowsort
SELECT DISTINCT + + cor0.col1 AS col0 FROM tab2, tab1, tab0 AS cor0
----
86
91
97

query I rowsort
SELECT ALL + + col2 + ( - col0 + col2 ) AS col0 FROM tab1 AS cor0
----
105
112
50

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9965
SELECT col2 + + col1 * - col2 - - CAST( + 38 * col1 + - CAST( NULL AS SIGNED ) AS DECIMAL ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9965
SELECT col2 + + col1 * - col2 - - CAST ( + 38 * col1 + - CAST ( NULL AS INTEGER ) AS REAL ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + cor0.col2 * cor0.col2 + col1 FROM tab0 cor0
----
-1003
-6633
96

query I rowsort
SELECT + col0 - + col1 AS col2 FROM tab0 AS cor0
----
-2
-62
-62

query I rowsort
SELECT - col0 + 41 AS col0 FROM tab2 AS cor0
----
-37
-38
34

query I rowsort
SELECT ALL col0 * + ( - col2 ) AS col0 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT DISTINCT - tab1.col2 * - 22 + col1 * - col0 AS col1 FROM tab1
----
1072
1110
614

query I rowsort
SELECT - tab1.col1 * + 33 * - col2 AS col2 FROM tab1
----
18810
41184
46332

query I rowsort
SELECT + col1 + ( - 59 ) + + col0 FROM tab0
----
121
51
73

query I rowsort
SELECT DISTINCT cor1.col1 * cor0.col1 * + cor1.col2 AS col2 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
9 values hashing to 5d260c4136a066bd15a9f3a380621bb4

query I rowsort
SELECT + col0 + col1 * + col2 FROM tab0 cor0
----
132
2862
7551

query I rowsort
SELECT col0 * + col1 + col0 * col0 AS col1 FROM tab0 AS cor0
----
16020
2640
4620

query I rowsort
SELECT - col2 + + 42 AS col0 FROM tab2 AS cor0
----
15
16
4

query I rowsort
SELECT DISTINCT + col0 * 89 + + ( col2 ) AS col2 FROM tab0 cor0
----
2169
3116
8003

query I rowsort
SELECT - tab1.col1 * + col0 - 81 AS col2 FROM tab1
----
-1121
-159
-721

query I rowsort
SELECT DISTINCT 60 * col0 FROM tab2
----
420
4680
4740

query I rowsort
SELECT + col1 * + tab2.col1 + - 24 AS col1 FROM tab2
----
265
3457
937

onlyif mysql # use DIV operator for integer division
query I rowsort label-9981
SELECT - tab1.col1 DIV col2 + - col2 FROM tab1
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-9981
SELECT - tab1.col1 / col2 + - col2 FROM tab1
----
-54
-57
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-9982
SELECT ALL col1 DIV ( - 74 ) FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9982
SELECT ALL col1 / ( - 74 ) FROM tab2
----
0
0
0

query I rowsort
SELECT ALL col2 + + 75 AS col2 FROM tab2 AS cor0
----
101
102
113

query I rowsort
SELECT ALL cor0.col0 + 44 * + col2 AS col1 FROM tab2 AS cor0
----
1195
1222
1751

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9985
SELECT + cor0.col1 * - CAST( NULL AS SIGNED ) / 69 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9985
SELECT + cor0.col1 * - CAST ( NULL AS INTEGER ) / 69 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 84 FROM tab1, tab2 cor0, tab2 AS cor1
----
27 values hashing to e8cd683fe8cea77b4326d9b80f21c74a

query I rowsort
SELECT col1 + 25 * cor0.col1 FROM tab2 cor0
----
1534
442
806

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9988
SELECT col0 / CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9988
SELECT col0 / CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - col0 * + ( - col0 ) AS col0 FROM tab2 AS cor0
----
-49
-6084
-6241

query I rowsort
SELECT ALL 93 + + 49 * + col0 FROM tab0
----
1269
1808
4454

onlyif mysql # use DIV operator for integer division
query I rowsort label-9991
SELECT DISTINCT col2 * col1 + + col1 DIV + 50 FROM tab2
----
1535
646
837

skipif mysql # not compatible
query I rowsort label-9991
SELECT DISTINCT col2 * col1 + + col1 / + 50 FROM tab2
----
1535
646
837

query I rowsort
SELECT - col0 * + col1 - tab0.col2 AS col0 FROM tab0
----
-2097
-3396
-8181

query I rowsort
SELECT + col2 * - col1 + col1 - col0 FROM tab1
----
-1315
-1381
-624

query I rowsort
SELECT DISTINCT - tab0.col2 + + col1 AS col2 FROM tab0
----
53
9
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9995
SELECT CAST( + col1 AS SIGNED ) * col1 AS col1 FROM tab1
----
100
169
676

skipif mysql # not compatible
query I rowsort label-9995
SELECT CAST ( + col1 AS INTEGER ) * col1 AS col1 FROM tab1
----
100
169
676

query I rowsort
SELECT DISTINCT + cor1.col0 AS col1 FROM tab0, tab2 cor0, tab1 cor1, tab0 AS cor2
----
3
64
80

query I rowsort
SELECT ALL 34 + tab2.col2 FROM tab2
----
60
61
72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 * col1 col1 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT + + ( 88 ) + - col2 * col0 AS col1 FROM tab1 AS cor0
----
-3560
-74
-7592

