sqllogictest

Artifact [efd5f30e56]
Login

Artifact efd5f30e566a837d3072e3b30ce3b1585ce9df43:


hash-threshold 8

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

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

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

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

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

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

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

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

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

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

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-0
SELECT DISTINCT - CAST( 50 AS SIGNED ) + col2 FROM tab1
----
4
46
7

skipif mysql # not compatible
query I rowsort label-0
SELECT DISTINCT - CAST ( 50 AS INTEGER ) + col2 FROM tab1
----
4
46
7

query I rowsort
SELECT col0 * ( tab1.col1 + ( - col2 ) ) FROM tab1
----
-3008
-6640
-84

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-3
SELECT - - ( col2 ) DIV col1 AS col2 FROM tab1 AS cor0
----
2
5
7

skipif mysql # not compatible
query I rowsort label-3
SELECT - - ( col2 ) / col1 AS col2 FROM tab1 AS cor0
----
2
5
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - col2 + col2 * ( - col1 ) col1 FROM tab1 AS cor0
----
-1140
-2496
-2808

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

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

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

query I rowsort
SELECT + 90 * + col0 * - col2 + - col0 FROM tab1 AS cor0
----
-14583
-328384
-691280

query I rowsort
SELECT + col2 + + 88 * col1 AS col2 FROM tab2
----
1534
2755
5218

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col2 + 41 + tab0.col0 col0 FROM tab0
----
212
77
98

query I rowsort
SELECT ALL - + cor0.col0 * - col1 + + col0 * - col2 AS col2 FROM tab1 AS cor0
----
-3008
-6640
-84

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

query I rowsort
SELECT ALL + col0 * 47 + ( + col2 ) + + col1 AS col0 FROM tab0 cor0
----
1247
1743
4356

query I rowsort
SELECT ALL - col0 * ( - 63 ) + cor0.col0 FROM tab1 AS cor0
----
192
4096
5120

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 * cor0.col0 col2 FROM tab1 AS cor0
----
4096
6400
9

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

query I rowsort
SELECT DISTINCT + col1 + 74 AS col0 FROM tab0 AS cor0
----
160
165
171

query I rowsort
SELECT col0 * - 13 + col0 FROM tab0
----
-1068
-288
-420

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 54 * col0 col0 FROM tab0
----
-1296
-1890
-4806

query I rowsort
SELECT DISTINCT + 88 + + col1 * col2 AS col1 FROM tab0
----
185
2926
7550

onlyif mysql # use DIV operator for integer division
query I rowsort label-23
SELECT cor0.col2 DIV - ( - 49 ) AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 14fcfa6c11198893073049d94262832c

skipif mysql # not compatible
query I rowsort label-23
SELECT cor0.col2 / - ( - 49 ) AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 14fcfa6c11198893073049d94262832c

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

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

query I rowsort
SELECT DISTINCT - 39 * tab1.col0 FROM tab1
----
-117
-2496
-3120

query I rowsort
SELECT + + 56 * + tab2.col2 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to e9396190df4c4c6d05a46eb270e304f3

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

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

query I rowsort
SELECT + - col0 * col1 + - col0 * + col2 FROM tab1 cor0
----
-240
-4288
-8720

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

skipif mysql # not compatible
query I rowsort label-31
SELECT + col1 / + col0 + + col2 AS col2 FROM tab2 AS cor0
----
26
31
38

query I rowsort
SELECT DISTINCT - col1 * 44 FROM tab2 AS cor0
----
-1364
-2596
-748

query I rowsort
SELECT ALL - col1 * - col2 + col2 * + col2 FROM tab2 AS cor0
----
1566
2090
2210

query I rowsort
SELECT + - col1 + + 17 FROM tab0 AS cor0
----
-69
-74
-80

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 55 * + col2 col1 FROM tab2 AS cor0
----
1430
1485
2090

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

query I rowsort
SELECT + 81 + 40 AS col1 FROM tab0 AS cor0
----
121
121
121

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

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

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

query I rowsort
SELECT ALL - col2 * + 64 + col1 FROM tab2 AS cor0
----
-1605
-1697
-2415

query I rowsort
SELECT ALL 96 * col0 + - col0 + col0 FROM tab0 AS cor0
----
2304
3360
8544

query I rowsort
SELECT cor1.col0 FROM tab1, tab2 AS cor0, tab0 AS cor1, tab2 AS cor2
----
81 values hashing to 2304fcc140e955eb2d1ee28ab1eea994

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col2 * + cor0.col2 col0 FROM tab2 AS cor0
----
114076
5103
52728

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-46
SELECT - col2 DIV + cor0.col2 + + cor0.col1 FROM tab0 AS cor0
----
85
90
96

skipif mysql # not compatible
query I rowsort label-46
SELECT - col2 / + cor0.col2 + + cor0.col1 FROM tab0 AS cor0
----
85
90
96

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-50
SELECT ALL col1 DIV + col1 + + 55 FROM tab1 AS cor0
----
56
56
56

skipif mysql # not compatible
query I rowsort label-50
SELECT ALL col1 / + col1 + + 55 FROM tab1 AS cor0
----
56
56
56

query I rowsort
SELECT DISTINCT + 11 + - cor0.col2 * + col1 FROM tab1 AS cor0
----
-1237
-1393
-559

query I rowsort
SELECT - col0 * 62 * - col1 FROM tab2 AS cor0
----
13454
285324
83266

query I rowsort
SELECT DISTINCT + - cor0.col2 * - 61 FROM tab2 AS cor0
----
1586
1647
2318

query I rowsort
SELECT DISTINCT - ( 42 ) * - cor0.col1 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
3612
3822
4074

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

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

query I rowsort
SELECT - col1 * ( + col2 + col2 ) FROM tab2
----
-1292
-1674
-3068

query I rowsort
SELECT DISTINCT 9 * tab1.col2 * - tab1.col0 - - 88 AS col1 FROM tab1, tab1 AS cor0
----
-1370
-32744
-69032

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 66 * col2 * - col1 col2 FROM tab0
----
-187308
-492492
-6402

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

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

query I rowsort
SELECT - cor0.col2 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc

query I rowsort
SELECT DISTINCT + col1 * 52 - + col0 FROM tab2 AS cor0
----
1605
2990
805

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

query I rowsort
SELECT + col1 * - 64 - col1 FROM tab0 AS cor0
----
-5590
-5915
-6305

query I rowsort
SELECT + - col0 + 15 AS col1 FROM tab2 AS cor0
----
-63
-64
8

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

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

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

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

query I rowsort
SELECT + col2 * ( + 13 ) + - col0 * + ( col0 ) AS col1 FROM tab2
----
-5746
-5747
302

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

query I rowsort
SELECT DISTINCT - col1 * - col1 + col2 FROM tab1
----
157
265
730

query I rowsort
SELECT col2 * + 6 + col0 AS col2 FROM tab0
----
222
41
581

query I rowsort
SELECT - 61 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 51f53697966a79d306a4570537cd91a1

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

query I rowsort
SELECT + col0 * + 50 - - col2 FROM tab0 AS cor0
----
1233
1751
4532

query I rowsort
SELECT ALL + 40 * + col0 FROM tab1
----
120
2560
3200

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

query I rowsort
SELECT DISTINCT + col0 + col1 * 62 FROM tab2 AS cor0
----
1133
1929
3736

query I rowsort
SELECT DISTINCT + 26 * tab2.col0 FROM tab2, tab0 AS cor0
----
182
2028
2054

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

skipif mysql # not compatible
query I rowsort
SELECT ALL CAST ( - 16 AS REAL ) FROM tab2
----
-16
-16
-16

query I rowsort
SELECT 34 * col0 - col1 FROM tab0
----
1093
2935
730

query I rowsort
SELECT - 26 + 68 * - col0 FROM tab2
----
-502
-5330
-5398

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

query I rowsort
SELECT DISTINCT cor0.col2 * - col0 * + 78 AS col2 FROM tab2 AS cor0
----
-14742
-158184
-234156

query I rowsort
SELECT ALL + col0 * col1 + 82 FROM tab0 cor0
----
2146
3477
8181

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

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

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

query I rowsort
SELECT DISTINCT + 9 + + col0 FROM tab1 AS cor0
----
12
73
89

query I rowsort
SELECT 88 * 77 * - cor1.col2 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 4214507ef84cedbb48b8e7686e8ae23e

query I rowsort
SELECT DISTINCT - col2 + 46 FROM tab1 AS cor0
----
-11
-50
-8

query I rowsort
SELECT ALL cor0.col1 + - 65 * 96 FROM tab2 AS cor0
----
-6181
-6209
-6223

query I rowsort
SELECT DISTINCT - col1 + 57 AS col2 FROM tab1 AS cor0
----
31
44
47

onlyif mysql # use DIV operator for integer division
query I rowsort label-94
SELECT + + col2 DIV CAST( + col0 AS SIGNED ) + col0 AS col1 FROM tab1 AS cor0
----
21
64
81

skipif mysql # not compatible
query I rowsort label-94
SELECT + + col2 / CAST ( + col0 AS INTEGER ) + col0 AS col1 FROM tab1 AS cor0
----
21
64
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 * - ( + col1 ) * - cor0.col1 col0 FROM tab1 AS cor0
----
-13520
-2028
-6400

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

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

query I rowsort
SELECT 62 * + col2 + + col1 * - 94 FROM tab0 AS cor0
----
-3470
-6038
-9056

query I rowsort
SELECT DISTINCT - col2 * col0 + + col2 AS col1 FROM tab2 AS cor0
----
-162
-2002
-2964

onlyif mysql # use DIV operator for integer division
query I rowsort label-100
SELECT DISTINCT - - CAST( - col0 AS SIGNED ) DIV - col1 + - ( col1 + + cor0.col0 ) DIV col2 AS col1 FROM tab1 cor0
----
0
5
6

skipif mysql # not compatible
query I rowsort label-100
SELECT DISTINCT - - CAST ( - col0 AS INTEGER ) / - col1 + - ( col1 + + cor0.col0 ) / col2 AS col1 FROM tab1 cor0
----
0
5
6

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

skipif mysql # not compatible
query I rowsort label-101
SELECT DISTINCT - col2 + - col2 / + col1 AS col0 FROM tab2 AS cor0
----
-26
-27
-40

query I rowsort
SELECT ALL - 15 + - col1 FROM tab0 cor0
----
-101
-106
-112

query I rowsort
SELECT + ( - col2 ) + col0 * - 89 AS col0 FROM tab1 AS cor0
----
-321
-5753
-7216

query I rowsort
SELECT DISTINCT cor0.col0 * - col0 + - col0 * 87 + 88 * col2 AS col1 FROM tab2 AS cor0
----
-10582
-9770
1718

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

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

query I rowsort
SELECT 84 * - col2 AS col1 FROM tab0 cor0
----
-2772
-6888
-84

onlyif mysql # use DIV operator for integer division
query I rowsort label-107
SELECT - col0 * - cor0.col1 + col2 + - cor0.col2 DIV + col2 AS col0 FROM tab0 AS cor0
----
2096
3395
8180

skipif mysql # not compatible
query I rowsort label-107
SELECT - col0 * - cor0.col1 + col2 + - cor0.col2 / + col2 AS col0 FROM tab0 AS cor0
----
2096
3395
8180

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

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

query I rowsort
SELECT DISTINCT 82 * - 37 AS col1 FROM tab1, tab0 AS cor0
----
-3034

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

query I rowsort
SELECT DISTINCT col2 + - 14 * col0 + col2 AS col0 FROM tab1 AS cor0
----
-782
-928
66

query I rowsort
SELECT + 53 + col0 * col0 AS col1 FROM tab0 AS cor0
----
1278
629
7974

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * 50 + col1 * col2 col0 FROM tab0 cor0
----
11912
1847
4038

query I rowsort
SELECT col1 * 19 + - col0 FROM tab1 cor0
----
126
167
491

query I rowsort
SELECT col0 * + 4 * col0 + 36 + + ( col2 ) AS col1 FROM tab1 AS cor0
----
126
16477
25732

query I rowsort
SELECT 35 * cor0.col2 * - col1 + ( - col2 ) FROM tab1 AS cor0
----
-20007
-43776
-49194

query I rowsort
SELECT ALL + 14 * col0 AS col2 FROM tab1 cor0
----
1120
42
896

query I rowsort
SELECT 39 * + col2 + + col2 + - col0 * col0 AS col0 FROM tab0 AS cor0
----
-1185
-4641
744

query I rowsort
SELECT DISTINCT - col1 + + cor0.col0 * - col0 * 3 AS col0 FROM tab1 AS cor0
----
-12298
-19213
-53

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - col1 * + col1 col1 FROM tab1
----
-43
-622
-73

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

query I rowsort
SELECT ALL - col1 * + col1 * + col2 FROM tab2
----
-10982
-25947
-90506

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

query I rowsort
SELECT ALL - col1 * + 29 FROM tab0
----
-2494
-2639
-2813

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

query I rowsort
SELECT + 48 FROM tab2, tab0 cor0, tab1, tab0 AS cor1
----
81 values hashing to df6d12001a34fdcf5cfb2ca3a4a22108

query I rowsort
SELECT ( tab2.col2 ) + 60 FROM tab2, tab0 AS cor0
----
9 values hashing to 27d4b97dac8eff4a971d8a35d9c8411f

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 37 + ( - col2 ) col0 FROM tab2 cor0
----
-1
10
11

query I rowsort
SELECT ALL 51 * ( + cor0.col2 ) + - col1 FROM tab0 AS cor0
----
-46
1597
4091

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

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

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

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

query I rowsort
SELECT DISTINCT ( ( + cor0.col1 ) ) * 47 AS col2 FROM tab2 AS cor0
----
1457
2773
799

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

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

query I rowsort
SELECT ALL + col1 - - col2 * + 2 AS col0 FROM tab2 AS cor0
----
111
85
93

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

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

query I rowsort
SELECT + - 9 * col0 + ( col1 ) FROM tab2 AS cor0
----
-32
-643
-694

query I rowsort
SELECT ALL - 9 + - col0 AS col1 FROM tab0 cor0
----
-33
-44
-98

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

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

query I rowsort
SELECT + - col0 + col0 * 87 FROM tab0 AS cor0
----
2064
3010
7654

query I rowsort
SELECT ALL col2 * col2 * ( + col2 ) FROM tab1 cor0
----
157464
185193
884736

onlyif mysql # use DIV operator for integer division
query I rowsort label-149
SELECT DISTINCT ( col1 ) + + 78 * col1 DIV + col1 AS col0 FROM tab2 AS cor0
----
109
137
95

skipif mysql # not compatible
query I rowsort label-149
SELECT DISTINCT ( col1 ) + + 78 * col1 / + col1 AS col0 FROM tab2 AS cor0
----
109
137
95

query I rowsort
SELECT DISTINCT + 53 * cor0.col0 AS col1 FROM tab0, tab1 AS cor0
----
159
3392
4240

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

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

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

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

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

query I rowsort
SELECT + col0 * cor0.col0 * 67 FROM tab0 AS cor0
----
38592
530707
82075

query I rowsort
SELECT + col1 * ( col1 + + col0 ) AS col2 FROM tab1 AS cor0
----
1209
740
754

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

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

query I rowsort
SELECT col1 + ( col1 ) + + col0 AS col2 FROM tab1 AS cor0
----
106
55
84

query I rowsort
SELECT - 6 * + col1 FROM tab1 AS cor0
----
-156
-60
-78

query I rowsort
SELECT DISTINCT ( - col1 ) * - col1 * - 62 AS col1 FROM tab1 cor0
----
-10478
-41912
-6200

query I rowsort
SELECT DISTINCT - 46 * + col2 FROM tab2 AS cor0
----
-1196
-1242
-1748

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-162
SELECT CAST ( col2 AS INTEGER ) * - col2 col1 FROM tab1 AS cor0
----
-2916
-3249
-9216

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 * - col0 + + col1 + - 16 * col0 col0 FROM tab2 cor0
----
-130
-7273
-7488

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 59 col1 FROM tab2, tab1 AS cor0
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc

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

query I rowsort
SELECT col2 * 68 AS col2 FROM tab1 AS cor0
----
3672
3876
6528

query I rowsort
SELECT - - 75 * col2 + col2 * col2 * + cor0.col1 AS col2 FROM tab1 AS cor0
----
127008
36765
79866

query I rowsort
SELECT + col1 * - col1 - + 47 AS col2 FROM tab0 AS cor0
----
-7443
-8328
-9456

query I rowsort
SELECT ( - col2 ) + + col2 AS col2 FROM tab0
----
0
0
0

query I rowsort
SELECT - col0 * col2 - - 31 FROM tab1 cor0
----
-131
-3617
-7649

query I rowsort
SELECT DISTINCT 14 FROM tab0, tab1 AS cor0 CROSS JOIN tab2
----
14

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

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

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

query I rowsort
SELECT - 28 FROM tab0, tab1 AS cor0, tab0 cor1
----
27 values hashing to eac00a95d734c7071360ed392c3f39bc

query I rowsort
SELECT + col1 + col0 * - col2 - - 5 FROM tab0 AS cor0
----
-701
-7202
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + col0 col1 FROM tab2
----
-49
-6084
-6241

query I rowsort
SELECT 15 * + col1 FROM tab2 AS cor0
----
255
465
885

query I rowsort
SELECT DISTINCT - - col0 + - cor0.col1 * + ( + cor0.col2 + col1 * col2 ) AS col2 FROM tab2 AS cor0
----
-11549
-26777
-91962

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * col0 + - cor0.col1 col2 FROM tab1 AS cor0
----
-17
4086
6387

query I rowsort
SELECT DISTINCT 59 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
59

query I rowsort
SELECT - + 48 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 31c94943c073954e4ca20b170ab61f8c

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - col2 * + col1 col0 FROM tab2 AS cor0
----
-10982
-25947
-90506

onlyif mysql # use DIV operator for integer division
query I rowsort label-183
SELECT ALL ( col0 ) DIV - 42 FROM tab2 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-183
SELECT ALL ( col0 ) / - 42 FROM tab2 AS cor0
----
-1
-1
0

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 63 * col0 col0 FROM tab2 AS cor0
----
-441
-4914
-4977

query I rowsort
SELECT DISTINCT - 10 + + col0 FROM tab2 AS cor0
----
-3
68
69

onlyif mysql # use DIV operator for integer division
query I rowsort label-187
SELECT - + col2 + col2 * col1 DIV + col0 AS col1 FROM tab1 AS cor0
----
-49
-81
414

skipif mysql # not compatible
query I rowsort label-187
SELECT - + col2 + col2 * col1 / + col0 AS col1 FROM tab1 AS cor0
----
-49
-81
414

query I rowsort
SELECT - ( - col2 ) * - 80 AS col2 FROM tab0 AS cor0
----
-2640
-6560
-80

query I rowsort
SELECT DISTINCT cor0.col0 * col2 * + col2 + col1 FROM tab2 AS cor0
----
114093
5134
52787

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

query I rowsort
SELECT 76 * - tab2.col1 + - 1 AS col0 FROM tab2
----
-1293
-2357
-4485

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

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

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

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

query I rowsort
SELECT ALL - + 63 * + col2 FROM tab2 AS cor0
----
-1638
-1701
-2394

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

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

query I rowsort
SELECT DISTINCT + col2 * + col2 + col2 + + 13 FROM tab1 AS cor0
----
2983
3319
9325

query I rowsort
SELECT - col1 * col1 * col1 + col1 AS col2 FROM tab0 AS cor0
----
-635970
-753480
-912576

query I rowsort
SELECT - 94 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to a95bfa539191d3f72f6548147d7efb9e

onlyif mysql # use DIV operator for integer division
query I rowsort label-202
SELECT DISTINCT ( col0 + - col2 ) DIV + 29 FROM tab0
----
0
1

skipif mysql # not compatible
query I rowsort label-202
SELECT DISTINCT ( col0 + - col2 ) / + 29 FROM tab0
----
0
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-203
SELECT DISTINCT 83 DIV - col2 FROM tab0
----
-1
-2
-83

skipif mysql # not compatible
query I rowsort label-203
SELECT DISTINCT 83 / - col2 FROM tab0
----
-1
-2
-83

query I rowsort
SELECT DISTINCT + 2 * col1 FROM tab0
----
172
182
194

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

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

query I rowsort
SELECT + col2 + - 45 AS col0 FROM tab1
----
12
51
9

query I rowsort
SELECT + 93 - tab0.col1 AS col1 FROM tab0
----
-4
2
7

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

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

query I rowsort
SELECT - 99 + col0 FROM tab1 cor0
----
-19
-35
-96

query I rowsort
SELECT + 50 + col1 AS col1 FROM tab2 AS cor0
----
109
67
81

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

query I rowsort
SELECT 23 * 48 AS col1 FROM tab0
----
1104
1104
1104

query I rowsort
SELECT ALL - 75 FROM tab0, tab1, tab1 cor0
----
27 values hashing to c0722b1d77ac0ed13c0f2691a5751c59

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

query I rowsort
SELECT ALL + - col1 * - col0 * + col1 + - col2 AS col2 FROM tab1 AS cor0
----
13424
1974
6343

query I rowsort
SELECT DISTINCT + col1 + col1 * - 62 AS col2 FROM tab1 AS cor0
----
-1586
-610
-793

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-218
SELECT ALL - tab0.col0 + CAST ( NULL AS REAL ) col2 FROM tab0
----
NULL
NULL
NULL

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

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

query I rowsort
SELECT DISTINCT + col0 + - col2 * - 30 - + col2 FROM tab2 AS cor0
----
1181
790
832

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

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

query I rowsort
SELECT + cor0.col0 + + col2 AS col2 FROM tab1 AS cor0
----
121
176
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT ALL + CAST ( + 8 AS REAL ) * + col2 * + ( + col0 ) + - cor0.col0 * - 56 col2 FROM tab0 AS cor0
----
2240
63368
7680

query I rowsort
SELECT + ( + col1 ) + col0 * + 49 FROM tab0 AS cor0
----
1262
1812
4452

query I rowsort
SELECT DISTINCT - col1 + + 51 * col2 AS col1 FROM tab2 AS cor0
----
1267
1346
1921

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

query I rowsort
SELECT DISTINCT 43 + + ( col0 ) * - ( + 63 ) FROM tab1 AS cor0
----
-146
-3989
-4997

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

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

query I rowsort
SELECT ALL + 21 * + col1 + + col2 * col2 AS col1 FROM tab0 AS cor0
----
2038
2895
8635

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

query I rowsort
SELECT ALL 42 * - ( col2 ) - - 48 * col2 FROM tab2 AS cor0
----
156
162
228

query I rowsort
SELECT - col2 + + 66 * - col1 AS col1 FROM tab0 AS cor0
----
-5709
-6088
-6403

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

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

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

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

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

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

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

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

query I rowsort
SELECT + + col0 * + 10 FROM tab2 AS cor0
----
70
780
790

query I rowsort
SELECT - col2 * 81 AS col2 FROM tab0 cor0
----
-2673
-6642
-81

query I rowsort
SELECT ALL - 43 * col1 * - ( - col1 ) FROM tab1
----
-29068
-4300
-7267

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

query I rowsort
SELECT - col1 * - 96 FROM tab2 AS cor0
----
1632
2976
5664

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

query I rowsort
SELECT 77 * - ( col0 ) FROM tab2 AS cor0
----
-539
-6006
-6083

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

query I rowsort
SELECT ALL col0 * col2 * 81 AS col1 FROM tab0
----
2835
591138
64152

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-251
SELECT - col1 DIV col1 - cor0.col2 * col2 AS col0 FROM tab0 AS cor0
----
-1090
-2
-6725

skipif mysql # not compatible
query I rowsort label-251
SELECT - col1 / col1 - cor0.col2 * col2 AS col0 FROM tab0 AS cor0
----
-1090
-2
-6725

onlyif mysql # use DIV operator for integer division
query I rowsort label-252
SELECT ALL col0 DIV + 19 + + col1 FROM tab1
----
13
17
26

skipif mysql # not compatible
query I rowsort label-252
SELECT ALL col0 / + 19 + + col1 FROM tab1
----
13
17
26

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-255
SELECT + col1 * col1 DIV col1 + 84 * col0 FROM tab1 AS cor0
----
278
5386
6733

skipif mysql # not compatible
query I rowsort label-255
SELECT + col1 * col1 / col1 + 84 * col0 FROM tab1 AS cor0
----
278
5386
6733

query I rowsort
SELECT - + col2 + col2 * ( + 95 + - col2 ) * cor0.col1 FROM tab1 AS cor0
----
-1344
21603
57510

query I rowsort
SELECT + col0 + col1 + - ( - 32 ) AS col0 FROM tab1 AS cor0
----
106
125
61

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

query I rowsort
SELECT ALL + 58 * col1 + + col0 * col0 AS col0 FROM tab1 AS cor0
----
1517
4676
7154

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

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

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

skipif mysql # not compatible
query I rowsort label-261
SELECT ALL + col2 * CAST ( - ( + col0 ) AS INTEGER ) + - col2 FROM tab1 AS cor0
----
-216
-3705
-7776

query I rowsort
SELECT ALL col2 + 43 * + col1 + col2 FROM tab1 AS cor0
----
1226
544
751

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

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

query I rowsort
SELECT ALL + col1 * col1 + 89 FROM tab1
----
189
258
765

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

query I rowsort
SELECT DISTINCT + col1 + + col1 + + col0 FROM tab0 AS cor0
----
196
229
271

query I rowsort
SELECT + + col1 * - 93 * - cor0.col2 + + col2 * 81 FROM tab0 AS cor0
----
266607
700608
9102

query I rowsort
SELECT col1 * ( col1 * cor0.col0 ) + col0 FROM tab1 AS cor0
----
13600
2031
6464

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-270
SELECT + CAST( + col2 AS SIGNED ) DIV col2 FROM tab0 AS cor0
----
1
1
1

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

query I rowsort
SELECT 38 * cor0.col2 AS col1 FROM tab0 AS cor0
----
1254
3116
38

query I rowsort
SELECT + cor0.col0 * - 47 FROM tab0, tab2 AS cor0
----
9 values hashing to 05f835b6367f55a95f39eaa02209bd6e

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

query I rowsort
SELECT - tab1.col1 FROM tab0, 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-275
SELECT ALL col2 * col1 + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

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

query I rowsort
SELECT ALL - + col0 * + 89 FROM tab2 AS cor0
----
-623
-6942
-7031

query I rowsort
SELECT DISTINCT + 12 FROM tab1, tab1 cor0
----
12

query I rowsort
SELECT DISTINCT + col1 - ( col0 * + 47 ) AS col0 FROM tab2 AS cor0
----
-298
-3607
-3696

query I rowsort
SELECT - 88 * - 48 AS col1 FROM tab2 AS cor0
----
4224
4224
4224

query I rowsort
SELECT DISTINCT + + 91 * col2 FROM tab1 AS cor0
----
4914
5187
8736

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

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

query I rowsort
SELECT DISTINCT ( cor0.col1 ) * cor0.col2 * - col1 - + col1 FROM tab2 AS cor0
----
-10999
-25978
-90565

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 78 + cor0.col1 * col2 col0 FROM tab0 AS cor0
----
175
2916
7540

onlyif mysql # use DIV operator for integer division
query I rowsort label-285
SELECT DISTINCT 84 DIV - col2 FROM tab0 AS cor0
----
-1
-2
-84

skipif mysql # not compatible
query I rowsort label-285
SELECT DISTINCT 84 / - col2 FROM tab0 AS cor0
----
-1
-2
-84

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-287
SELECT DISTINCT cor0.col0 DIV col0 AS col0 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-287
SELECT DISTINCT cor0.col0 / col0 AS col0 FROM tab2 AS cor0
----
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-288
SELECT - col2 + - col0 + col1 * 84 DIV - col0 AS col2 FROM tab1 AS cor0
----
-134
-189
-785

skipif mysql # not compatible
query I rowsort label-288
SELECT - col2 + - col0 + col1 * 84 / - col0 AS col2 FROM tab1 AS cor0
----
-134
-189
-785

query I rowsort
SELECT ALL + + 58 * + col2 + + cor0.col2 FROM tab1 AS cor0
----
3186
3363
5664

query I rowsort
SELECT ALL 25 * tab1.col1 FROM tab1
----
250
325
650

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

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

query I rowsort
SELECT + - col0 * ( + col0 ) + + cor0.col2 + 35 FROM tab2 AS cor0
----
-6023
-6168
13

onlyif mysql # use DIV operator for integer division
query I rowsort label-293
SELECT DISTINCT + cor0.col1 DIV 89 FROM tab0, tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-293
SELECT DISTINCT + cor0.col1 / 89 FROM tab0, tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort
SELECT - col1 + + CAST ( 93 AS REAL ) FROM tab1 AS cor0
----
67
80
83

query I rowsort
SELECT DISTINCT - col2 * + ( + 87 ) AS col1 FROM tab2 AS cor0
----
-2262
-2349
-3306

query I rowsort
SELECT - col0 + + col2 + cor0.col1 * - col0 AS col0 FROM tab0 AS cor0
----
-2055
-3429
-8106

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

query I rowsort
SELECT + cor0.col1 + tab1.col2 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 1897f50f7cf9347194b630d1613bd20b

query I rowsort
SELECT - 48 + + col0 * col2 FROM tab1
----
114
3600
7632

query I rowsort
SELECT - 73 AS col1 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 2931474b870c05694e446771031a6949

onlyif mysql # use DIV operator for integer division
query I rowsort label-301
SELECT ALL tab2.col2 DIV col0 + col2 * + tab2.col0 * + col2 AS col0 FROM tab2
----
114076
5106
52728

skipif mysql # not compatible
query I rowsort label-301
SELECT ALL tab2.col2 / col0 + col2 * + tab2.col0 * + col2 AS col0 FROM tab2
----
114076
5106
52728

query I rowsort
SELECT DISTINCT + + col1 * - ( 87 ) + + col1 AS col1 FROM tab1 cor0
----
-1118
-2236
-860

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-303
SELECT DISTINCT - cor0.col1 * + CAST( + col1 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-289
-3481
-961

skipif mysql # not compatible
query I rowsort label-303
SELECT DISTINCT - cor0.col1 * + CAST ( + col1 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-289
-3481
-961

query I rowsort
SELECT 97 AS col2 FROM tab1 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c

query I rowsort
SELECT ALL - 92 + + col1 FROM tab1
----
-66
-79
-82

query I rowsort
SELECT + - col1 * ( - col1 ) + col1 FROM tab2 AS cor0
----
306
3540
992

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-308
SELECT DISTINCT - col2 + + col2 DIV + col0 AS col2 FROM tab0
----
-1
-32
-82

skipif mysql # not compatible
query I rowsort label-308
SELECT DISTINCT - col2 + + col2 / + col0 AS col2 FROM tab0
----
-1
-32
-82

query I rowsort
SELECT col2 * col1 + tab2.col1 + + tab2.col1 AS col1 FROM tab2
----
1652
680
899

query I rowsort
SELECT DISTINCT col2 * col1 + + col1 + - col2 FROM tab0
----
193
2891
7471

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

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

query I rowsort
SELECT col1 + - ( - 42 ) AS col1 FROM tab1
----
52
55
68

query I rowsort
SELECT DISTINCT col1 * - 20 FROM tab2
----
-1180
-340
-620

query I rowsort
SELECT ALL + 46 + col2 FROM tab1 AS cor0
----
100
103
142

query I rowsort
SELECT DISTINCT 63 - col2 * col1 AS col2 FROM tab0 cor0
----
-2775
-34
-7399

query I rowsort
SELECT - col0 + - 59 * + col0 AS col2 FROM tab2
----
-420
-4680
-4740

query I rowsort
SELECT ALL col2 + + tab0.col0 * col0 * + col2 AS col2 FROM tab0
----
1226
19041
649604

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 30 * col1 - col0 col2 FROM tab0 AS cor0
----
2556
2641
2875

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

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

query I rowsort
SELECT col1 * col2 + ( + ( col0 ) ) FROM tab0 AS cor0
----
132
2862
7551

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT col2 * 89 AS col1 FROM tab1
----
4806
5073
8544

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-330
SELECT - CAST( + 32 AS SIGNED ) * - cor0.col0 AS col0 FROM tab1 AS cor0
----
2048
2560
96

skipif mysql # not compatible
query I rowsort label-330
SELECT - CAST ( + 32 AS INTEGER ) * - cor0.col0 AS col0 FROM tab1 AS cor0
----
2048
2560
96

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 71 + col0 * - cor0.col2 * - col0 col2 FROM tab0 AS cor0
----
1154
18937
649451

query I rowsort
SELECT 80 + + ( + col2 ) FROM tab2
----
106
107
118

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

query I rowsort
SELECT + 68 + col0 * - col2 * - 71 AS col0 FROM tab0 AS cor0
----
2553
518226
56300

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-336
SELECT DISTINCT col1 * CAST( + 83 AS SIGNED ) col2 FROM tab1 AS cor0
----
1079
2158
830

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-336
SELECT DISTINCT col1 * CAST ( + 83 AS INTEGER ) col2 FROM tab1 AS cor0
----
1079
2158
830

query I rowsort
SELECT col2 + 14 * 32 FROM tab1 AS cor0
----
502
505
544

query I rowsort
SELECT ALL + cor0.col1 * ( - 4 ) FROM tab2 cor0
----
-124
-236
-68

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

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT + col1 + ( 33 ) FROM tab1
----
43
46
59

query I rowsort
SELECT - col2 + 46 FROM tab0 AS cor0
----
-36
13
45

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-349
SELECT ALL + + ( 75 ) + cor0.col1 DIV - ( - ( col1 ) ) col2 FROM tab2 AS cor0
----
76
76
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-349
SELECT ALL + + ( 75 ) + cor0.col1 / - ( - ( col1 ) ) col2 FROM tab2 AS cor0
----
76
76
76

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

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

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

query I rowsort
SELECT ALL + 8 * 10 + col1 FROM tab0 AS cor0
----
166
171
177

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-353
SELECT + ( + col2 ) / col1 col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + + 12 * cor0.col2 AS col0 FROM tab2 AS cor0
----
312
324
456

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

query I rowsort
SELECT col1 + - tab0.col0 + col0 AS col0 FROM tab0
----
86
91
97

query I rowsort
SELECT + 32 * + col2 + tab2.col0 - 21 AS col2 FROM tab2
----
1274
850
889

onlyif mysql # use DIV operator for integer division
query I rowsort label-358
SELECT - + col0 * + cor0.col1 DIV col1 AS col2 FROM tab1 AS cor0
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-358
SELECT - + col0 * + cor0.col1 / col1 AS col2 FROM tab1 AS cor0
----
-3
-64
-80

onlyif mysql # use DIV operator for integer division
query I rowsort label-359
SELECT - col1 + 96 * - tab1.col1 + ( col2 ) DIV col0 FROM tab1
----
-1260
-2504
-970

skipif mysql # not compatible
query I rowsort label-359
SELECT - col1 + 96 * - tab1.col1 + ( col2 ) / col0 FROM tab1
----
-1260
-2504
-970

query I rowsort
SELECT DISTINCT - - col2 * 74 + - ( cor0.col0 + col1 ) FROM tab0 AS cor0
----
-58
2332
5888

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

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

query I rowsort
SELECT + - 66 + - col2 AS col1 FROM tab0 AS cor0
----
-148
-67
-99

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

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

query I rowsort
SELECT - + col0 + + col1 * col2 * col2 AS col0 FROM tab2 AS cor0
----
22592
24469
39806

query I rowsort
SELECT DISTINCT 39 + - cor0.col1 + col2 AS col1 FROM tab0 AS cor0
----
-14
-57
30

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

query I rowsort
SELECT 37 + + col2 * col1 AS col1 FROM tab1 AS cor0
----
1285
1441
607

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

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

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

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

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

query I rowsort
SELECT DISTINCT col0 * + 27 + col1 + - ( col2 ) FROM tab0
----
1041
2412
701

query I rowsort
SELECT ALL col2 + - col0 * tab1.col2 AS col0 FROM tab1
----
-108
-3591
-7584

query I rowsort
SELECT - 34 FROM tab2, tab2 AS cor0
----
9 values hashing to 40442a74794ded4c78101eefe525a5bb

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

query I rowsort
SELECT ALL - - 57 - + col1 * col0 FROM tab2 AS cor0
----
-1286
-160
-4545

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

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

query I rowsort
SELECT + 67 * col1 * + cor0.col2 AS col2 FROM tab2 AS cor0
----
102778
43282
56079

query I rowsort
SELECT ALL + 35 * col0 FROM tab1 AS cor0
----
105
2240
2800

query I rowsort
SELECT ALL + cor0.col0 * + col1 + 27 * 50 + col2 FROM tab0 AS cor0
----
3447
4746
9531

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

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

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

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

skipif mysql # not compatible
query I rowsort label-386
SELECT + col1 * - CAST ( col1 AS INTEGER ) * - col2 AS col0 FROM tab1 AS cor0
----
16224
36504
5700

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + + ( + ( col1 ) ) col2 FROM tab1 AS cor0
----
-54
-67
23

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

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

query I rowsort
SELECT DISTINCT + ( + 24 ) + - col2 FROM tab2 cor0
----
-14
-2
-3

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

query I rowsort
SELECT ALL + col0 - - 43 * + col0 FROM tab2 AS cor0
----
308
3432
3476

query I rowsort
SELECT ALL - 89 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 924a74d31360fa4301c953b423a4710e

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

query I rowsort
SELECT DISTINCT 75 + + 13 FROM tab0 AS cor0
----
88

query I rowsort
SELECT DISTINCT 44 + - col1 AS col1 FROM tab1
----
18
31
34

query I rowsort
SELECT ALL - col2 * 49 AS col2 FROM tab0 AS cor0
----
-1617
-4018
-49

onlyif mysql # use DIV operator for integer division
query I rowsort label-399
SELECT DISTINCT - 6 DIV - 34 AS col0 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-399
SELECT DISTINCT - 6 / - 34 AS col0 FROM tab2 cor0
----
0

query I rowsort
SELECT ALL - 26 + - 74 * + col1 AS col1 FROM tab2 AS cor0
----
-1284
-2320
-4392

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

query I rowsort
SELECT - - 72 * + 17 FROM tab1 AS cor0
----
1224
1224
1224

query I rowsort
SELECT ALL 4 * col1 FROM tab0 AS cor0
----
344
364
388

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

query I rowsort
SELECT ( - 60 ) * - col0 FROM tab0 AS cor0
----
1440
2100
5340

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

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

query I rowsort
SELECT ALL - col1 * + 28 * col2 FROM tab0 AS cor0
----
-208936
-2716
-79464

query I rowsort
SELECT ALL col1 * 21 + + col2 FROM tab1 cor0
----
267
369
600

query I rowsort
SELECT ( - 75 ) * col0 FROM tab0 AS cor0
----
-1800
-2625
-6675

query I rowsort
SELECT - - 74 + col1 FROM tab1 AS cor0
----
100
84
87

query I rowsort
SELECT - 10 AS col1 FROM tab2, tab2 cor0
----
9 values hashing to f68f33032846e21ee6b2c668fc10355e

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

query I rowsort
SELECT + col2 + col0 + col1 FROM tab1
----
131
189
83

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

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

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

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

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

query I rowsort
SELECT ALL - col0 * + ( + 35 + col0 ) FROM tab2
----
-294
-8814
-9006

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-423
SELECT DISTINCT col1 + ( col0 ) DIV - col2 AS col1 FROM tab1 AS cor0
----
13
26
9

skipif mysql # not compatible
query I rowsort label-423
SELECT DISTINCT col1 + ( col0 ) / - col2 AS col1 FROM tab1 AS cor0
----
13
26
9

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

query I rowsort
SELECT ALL - + 8 + - 52 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 067a4b5daf8747042e3b07ca8459859f

query I rowsort
SELECT ALL - col1 * - col0 - col2 * col2 FROM tab2
----
-101
-512
3926

query I rowsort
SELECT ALL - 50 - cor0.col1 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 245dc3632f1e3bda2c2112683ddc072a

query I rowsort
SELECT + - col2 + - ( - 51 ) * cor0.col2 * 52 AS col1 FROM tab1 AS cor0
----
143154
151107
254496

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

query I rowsort
SELECT ALL + ( - ( - tab1.col0 ) ) FROM tab1
----
3
64
80

query I rowsort
SELECT 70 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 9758da65ae4711e3e8c8def2fe026911

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

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

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

query I rowsort
SELECT - 39 + col0 FROM tab2 AS cor0
----
-32
39
40

query I rowsort
SELECT - + 81 * + cor0.col1 AS col1 FROM tab1 AS cor0
----
-1053
-2106
-810

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

query I rowsort
SELECT - 97 * cor0.col0 AS col1 FROM tab0 AS cor0
----
-2328
-3395
-8633

query I rowsort
SELECT 36 - tab2.col0 FROM tab2
----
-42
-43
29

query I rowsort
SELECT DISTINCT + col1 + col2 + + 36 FROM tab2 AS cor0
----
121
91
94

query I rowsort
SELECT + + 50 + + col1 * - ( - col0 ) + - col0 FROM tab1 AS cor0
----
1010
125
626

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

query I rowsort
SELECT DISTINCT col1 * cor0.col0 - - 60 AS col0 FROM tab1 cor0
----
1100
138
700

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

skipif mysql # not compatible
query I rowsort label-444
SELECT ALL - - col2 + - ( col2 ) / + col1 FROM tab2 AS cor0
----
26
27
36

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

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

skipif mysql # not compatible
query I rowsort label-446
SELECT ALL - col2 + + CAST ( col0 AS INTEGER ) * col0 AS col2 FROM tab1 AS cor0
----
-45
4039
6304

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col2 * + 31 col1 FROM tab0 cor0
----
208444
31
33759

query I rowsort
SELECT - - col2 * 53 AS col0 FROM tab2 cor0
----
1378
1431
2014

query I rowsort
SELECT ( + col2 ) * + col2 * 11 FROM tab2 AS cor0
----
15884
7436
8019

query I rowsort
SELECT col2 * - col0 * col0 + col0 * col2 FROM tab2 AS cor0
----
-1134
-156156
-234156

query I rowsort
SELECT ALL ( - col2 ) * - col0 + ( col2 ) * + col0 FROM tab2 AS cor0
----
378
4056
6004

query I rowsort
SELECT + + col0 + - col1 + col2 * col0 FROM tab0 AS cor0
----
-27
7296
730

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

query I rowsort
SELECT - ( - col0 ) * col0 * - 4 + ( + col0 ) AS col0 FROM tab0 AS cor0
----
-2280
-31595
-4865

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

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

query I rowsort
SELECT col0 * 81 * - col0 AS col0 FROM tab2
----
-3969
-492804
-505521

query I rowsort
SELECT ALL - ( 56 ) FROM tab1, tab1 AS cor0
----
9 values hashing to 3d3dab400eef93c098acbbba3fc9bdc6

query I rowsort
SELECT ALL + 69 + + 83 * col1 FROM tab0 AS cor0
----
7207
7622
8120

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

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

query I rowsort
SELECT ALL - col1 + - 21 AS col2 FROM tab0 AS cor0
----
-107
-112
-118

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

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

query I rowsort
SELECT ALL + 17 + col2 FROM tab2
----
43
44
55

query I rowsort
SELECT DISTINCT 65 + + col1 + col0 * col1 * col0 AS col0 FROM tab2
----
106179
1615
359080

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-470
SELECT - col1 DIV - tab2.col0 + - col1 FROM tab2 WHERE - col0 + col0 <= col1
----
-17
-27
-59

skipif mysql # not compatible
query I rowsort label-470
SELECT - col1 / - tab2.col0 + - col1 FROM tab2 WHERE - col0 + col0 <= col1
----
-17
-27
-59

query I rowsort
SELECT + tab2.col1 * col2 + + col1 + - col0 FROM tab2
----
1515
584
861

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

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

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

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

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

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

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

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

query I rowsort
SELECT ALL - col1 + + col0 * - col0 - + col0 * + col2 * col2 AS col1 FROM tab0
----
-1357
-26798
-606448

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-480
SELECT - col2 DIV col0 - col0 FROM tab1
----
-21
-64
-81

skipif mysql # not compatible
query I rowsort label-480
SELECT - col2 / col0 - col0 FROM tab1
----
-21
-64
-81

query I rowsort
SELECT ALL tab2.col0 * + tab2.col0 AS col2 FROM tab2
----
49
6084
6241

onlyif mysql # use DIV operator for integer division
query I rowsort label-482
SELECT + col2 DIV + col2 + - col0 * col2 AS col2 FROM tab0
----
-34
-7297
-791

skipif mysql # not compatible
query I rowsort label-482
SELECT + col2 / + col2 + - col0 * col2 AS col2 FROM tab0
----
-34
-7297
-791

onlyif mysql # use DIV operator for integer division
query I rowsort label-483
SELECT col2 DIV + col0 + - col1 + - col1 AS col2 FROM tab2
----
-118
-34
-59

skipif mysql # not compatible
query I rowsort label-483
SELECT col2 / + col0 + - col1 + - col1 AS col2 FROM tab2
----
-118
-34
-59

query I rowsort
SELECT DISTINCT + col0 * - tab0.col2 + tab0.col0 - tab0.col2 FROM tab0
----
-1
-7291
-801

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL NOT IN ( - col0 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col1 * col1 > col0 * col0
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

query I rowsort
SELECT + cor0.col2 FROM tab2, tab1 AS cor0 CROSS JOIN tab1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

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

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

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

query I rowsort
SELECT - tab1.col2 + + col2 * col0 * + tab1.col2 AS col2 FROM tab1
----
207879
737184
8694

query I rowsort
SELECT DISTINCT + col1 * col1 + col2 * col1 FROM tab0
----
10234
15743
9506

onlyif mysql # use DIV operator for integer division
query I rowsort label-493
SELECT col1 + - col0 * - col2 + - col1 DIV - col1 AS col2 FROM tab1
----
189
3659
7694

skipif mysql # not compatible
query I rowsort label-493
SELECT col1 + - col0 * - col2 + - col1 / - col1 AS col2 FROM tab1
----
189
3659
7694

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + - col1 * + col2 + - col0 col1 FROM tab1 AS cor0
----
-1424
-1461
-691

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

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

query I rowsort
SELECT ALL - - cor0.col0 + + col0 - + 68 AS col2 FROM tab1 AS cor0
----
-62
60
92

query I rowsort
SELECT ALL + + col1 * cor0.col0 + + col2 + col2 FROM tab2 AS cor0
----
1419
271
4654

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

query I rowsort
SELECT - 69 FROM tab1, tab0 cor0
----
9 values hashing to 3bd7460efa48c66c072ad5f3c2def7e9

query I rowsort
SELECT DISTINCT - 82 FROM tab0, tab0 cor0, tab2 AS cor1, tab0 AS cor2
----
-82

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

query I rowsort
SELECT ALL + - col2 * + col2 - col2 FROM tab0 cor0
----
-1122
-2
-6806

query I rowsort
SELECT + 20 + col0 * - col2 AS col0 FROM tab1 AS cor0
----
-142
-3628
-7660

query I rowsort
SELECT ALL cor0.col0 * col0 * - col0 FROM tab1 AS cor0
----
-262144
-27
-512000

query I rowsort
SELECT DISTINCT 6 + + col1 AS col2 FROM tab1 AS cor0
----
16
19
32

query I rowsort
SELECT DISTINCT + 39 + tab2.col1 + - tab2.col0 AS col2 FROM tab2, tab0 AS cor0
----
-23
20
63

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

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

query I rowsort
SELECT + + 14 * 85 FROM tab0 AS cor0
----
1190
1190
1190

query I rowsort
SELECT ALL + + col0 * + 48 - - col2 FROM tab0 AS cor0
----
1185
1681
4354

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

query I rowsort
SELECT col0 + + col1 * 18 AS col2 FROM tab1 AS cor0
----
244
314
471

query I rowsort
SELECT DISTINCT + 73 + cor0.col0 AS col2 FROM tab0 AS cor0
----
108
162
97

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 * - cor0.col2 + col2 * cor0.col0 col2 FROM tab2 AS cor0
----
-540
1352
1558

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-519
SELECT ALL + col0 + col2 / + col2 col1 FROM tab1 AS cor0
----
4
65
81

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

query I rowsort
SELECT + + col0 * 58 AS col2 FROM tab0 cor0
----
1392
2030
5162

onlyif mysql # use DIV operator for integer division
query I rowsort label-522
SELECT - col1 - + col1 * col2 DIV + col1 FROM tab0
----
-119
-173
-98

skipif mysql # not compatible
query I rowsort label-522
SELECT - col1 - + col1 * col2 / + col1 FROM tab0
----
-119
-173
-98

onlyif mysql # use DIV operator for integer division
query I rowsort label-523
SELECT DISTINCT - tab0.col2 + - col2 DIV 65 + col2 FROM tab0
----
-1
0

skipif mysql # not compatible
query I rowsort label-523
SELECT DISTINCT - tab0.col2 + - col2 / 65 + col2 FROM tab0
----
-1
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-524
SELECT DISTINCT 52 + + col1 DIV - tab2.col0 FROM tab2
----
48
52

skipif mysql # not compatible
query I rowsort label-524
SELECT DISTINCT 52 + + col1 / - tab2.col0 FROM tab2
----
48
52

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

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

query I rowsort
SELECT + 94 + + cor0.col0 AS col2 FROM tab2, tab1 cor0
----
9 values hashing to 7beaac63b2b0d5e3c2df409531e6410f

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

skipif mysql # not compatible
query I rowsort label-527
SELECT - CAST ( + 46 AS INTEGER ) / + col0 AS col0 FROM tab2 AS cor0
----
-6
0
0

query I rowsort
SELECT DISTINCT + 25 * + 72 FROM tab1, tab1 cor0
----
1800

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

query I rowsort
SELECT ( 44 ) AS col1 FROM tab0
----
44
44
44

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-533
SELECT - ( 8 ) + - col2 DIV - col1 FROM tab2 AS cor0
----
-6
-8
-8

skipif mysql # not compatible
query I rowsort label-533
SELECT - ( 8 ) + - col2 / - col1 FROM tab2 AS cor0
----
-6
-8
-8

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

query I rowsort
SELECT 97 + + col2 AS col0 FROM tab1
----
151
154
193

onlyif mysql # use DIV operator for integer division
query I rowsort label-536
SELECT - + col2 DIV + col1 + + col1 * col0 col1 FROM tab1 AS cor0
----
1033
635
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-536
SELECT - + col2 / + col1 + + col1 * col0 col1 FROM tab1 AS cor0
----
1033
635
76

query I rowsort
SELECT ALL + tab1.col1 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775

query I rowsort
SELECT + 59 * - col0 AS col2 FROM tab2
----
-413
-4602
-4661

query I rowsort
SELECT - col1 * - 48 + col2 FROM tab1 AS cor0
----
1302
537
720

query I rowsort
SELECT ALL + col0 * - col1 + 20 * col2 FROM tab2 cor0
----
-4082
-583
323

query I rowsort
SELECT + col1 + col1 * 66 AS col0 FROM tab2 AS cor0
----
1139
2077
3953

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

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

query I rowsort
SELECT col1 * 85 + col1 + - col1 AS col1 FROM tab2 AS cor0
----
1445
2635
5015

query I rowsort
SELECT - - col0 + ( - 52 ) AS col0 FROM tab1 AS cor0
----
-49
12
28

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * col2 + col1 * + col0 col1 FROM tab0
----
15397
2856
3430

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col1 * + col2 * cor0.col0 col0 FROM tab1 cor0
----
36480
4212
99840

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

query I rowsort
SELECT ALL col2 + - col1 + col1 * col0 FROM tab2 AS cor0
----
1364
213
4569

onlyif mysql # use DIV operator for integer division
query I rowsort label-554
SELECT DISTINCT - col1 DIV - col1 - + col1 AS col2 FROM tab0 AS cor0
----
-85
-90
-96

skipif mysql # not compatible
query I rowsort label-554
SELECT DISTINCT - col1 / - col1 - + col1 AS col2 FROM tab0 AS cor0
----
-85
-90
-96

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 * col2 + - cor0.col1 col0 FROM tab0 cor0
----
-1175
-6815
-98

query I rowsort
SELECT ALL + col0 + cor0.col0 * col0 FROM tab2 AS cor0
----
56
6162
6320

onlyif mysql # use DIV operator for integer division
query I rowsort label-559
SELECT DISTINCT + cor0.col2 DIV cor0.col1 + - cor0.col0 AS col0 FROM tab2 AS cor0
----
-7
-77
-78

skipif mysql # not compatible
query I rowsort label-559
SELECT DISTINCT + cor0.col2 / cor0.col1 + - cor0.col0 AS col0 FROM tab2 AS cor0
----
-7
-77
-78

query I rowsort
SELECT DISTINCT + + 40 * + cor0.col0 AS col1 FROM tab0 AS cor0
----
1400
3560
960

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-562
SELECT - - 47 DIV col0 FROM tab1 AS cor0
----
0
0
15

skipif mysql # not compatible
query I rowsort label-562
SELECT - - 47 / col0 FROM tab1 AS cor0
----
0
0
15

query I rowsort
SELECT col1 + + col2 * col0 - + cor0.col0 AS col2 FROM tab2 AS cor0
----
2009
213
2940

query I rowsort
SELECT + 57 * + cor0.col2 AS col2 FROM tab0 AS cor0
----
1881
4674
57

query I rowsort
SELECT + 85 * + col1 FROM tab0
----
7310
7735
8245

query I rowsort
SELECT ( col2 ) + + col0 * + col2 * - col1 - + col0 FROM tab2
----
-119704
-51075
-5839

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

query I rowsort
SELECT ALL + cor0.col2 AS col0 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT DISTINCT + + col2 * 40 FROM tab2 AS cor0
----
1040
1080
1520

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

query I rowsort
SELECT ALL + col1 + - col2 + - col0 AS col0 FROM tab0 AS cor0
----
-80
29
61

onlyif mysql # use DIV operator for integer division
query I rowsort label-572
SELECT DISTINCT - col1 * 69 + + col1 DIV - col0 AS col2 FROM tab2 AS cor0
----
-1173
-2143
-4071

skipif mysql # not compatible
query I rowsort label-572
SELECT DISTINCT - col1 * 69 + + col1 / - col0 AS col2 FROM tab2 AS cor0
----
-1173
-2143
-4071

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

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

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

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

query I rowsort
SELECT DISTINCT + col1 * - ( 34 ) FROM tab2 AS cor0
----
-1054
-2006
-578

query I rowsort
SELECT DISTINCT - - cor0.col0 + 77 AS col0 FROM tab2 AS cor0
----
155
156
84

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-580
SELECT ALL CAST( + cor0.col1 AS SIGNED ) FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-580
SELECT ALL CAST ( + cor0.col1 AS INTEGER ) FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT col0 * - 50 + col1 AS col2 FROM tab1 AS cor0
----
-124
-3190
-3987

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

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

query I rowsort
SELECT + col1 + cor0.col1 * + col1 * + col2 + 82 * col1 AS col0 FROM tab0 AS cor0
----
17460
251206
686595

query I rowsort
SELECT ALL + + ( + 21 ) + + col1 AS col1 FROM tab0 AS cor0
----
107
112
118

query I rowsort
SELECT ALL + col0 + 80 AS col2 FROM tab0 AS cor0
----
104
115
169

query I rowsort
SELECT ALL + ( 67 ) + + col1 * + 40 FROM tab0 AS cor0
----
3507
3707
3947

query I rowsort
SELECT + col1 * col2 + col1 * 90 + col1 * col0 FROM tab0 AS cor0
----
12222
12642
23751

query I rowsort
SELECT ALL - 55 FROM tab1 cor0
----
-55
-55
-55

query I rowsort
SELECT DISTINCT cor0.col1 + 2 FROM tab0 cor0
----
88
93
99

query I rowsort
SELECT - col1 * 16 FROM tab0 AS cor0
----
-1376
-1456
-1552

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 32 * + 5 col2 FROM tab0 AS cor0
----
160

query I rowsort
SELECT ALL - col1 * ( col2 + + 87 ) AS col1 FROM tab0 AS cor0
----
-10320
-15379
-8536

query I rowsort
SELECT - ( 23 ) * + col1 FROM tab1 AS cor0
----
-230
-299
-598

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

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

query I rowsort
SELECT DISTINCT + cor0.col1 * + col0 + 77 - col1 * col2 AS col2 FROM tab2 AS cor0
----
-543
3145
774

query I rowsort
SELECT - col0 + - col2 * + 30 FROM tab2 cor0
----
-1219
-817
-858

query I rowsort
SELECT col0 + + col1 + col1 FROM tab2 AS cor0
----
113
196
69

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

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

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

skipif mysql # not compatible
query I rowsort label-602
SELECT DISTINCT CAST ( 36 AS INTEGER ) AS col1 FROM tab1
----
36

query I rowsort
SELECT 26 * cor0.col1 FROM tab2, tab0 AS cor0
----
9 values hashing to be6822a5beb60dd05700c5edd2c682b6

query I rowsort
SELECT - 85 * col0 AS col2 FROM tab0 cor0
----
-2040
-2975
-7565

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

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

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

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

query I rowsort
SELECT + ( + 45 ) + - col0 * col2 FROM tab2
----
-144
-1983
-2957

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col0 + col1 col0 FROM tab2
----
1360
248
4661

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

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

query I rowsort
SELECT - - cor0.col0 * - col0 + 51 * + col2 FROM tab0 AS cor0
----
-1174
-3739
1107

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - 22 col1 FROM tab2 AS cor0
----
572
594
836

query I rowsort
SELECT + col0 + + 31 AS col2 FROM tab2
----
109
110
38

query I rowsort
SELECT ALL - - col1 + - ( 12 ) AS col1 FROM tab2 AS cor0
----
19
47
5

query I rowsort
SELECT + 95 * - cor0.col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 9f36e36a322a1b8f2872b1110f428817

query I rowsort
SELECT DISTINCT col1 + - tab1.col1 AS col1 FROM tab1
----
0

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

skipif mysql # not compatible
query I rowsort label-618
SELECT DISTINCT + CAST ( + col0 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT DISTINCT + col0 * 82 AS col0 FROM tab1
----
246
5248
6560

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

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

query I rowsort
SELECT + cor0.col1 AS col2 FROM tab2, tab2 AS cor0, tab2 AS cor1, tab2 AS cor2
----
81 values hashing to a5b6acb471910ea4ad7f31cae3b818f7

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

query I rowsort
SELECT + col0 + + 35 AS col0 FROM tab2 cor0
----
113
114
42

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

query I rowsort
SELECT col1 + ( 26 + col0 ) FROM tab1 AS cor0
----
100
119
55

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-627
SELECT DISTINCT + CAST( - 38 AS SIGNED ) * - col1 + col2 * + 68 AS col0 FROM tab1 cor0
----
4256
4660
7022

skipif mysql # not compatible
query I rowsort label-627
SELECT DISTINCT + CAST ( - 38 AS INTEGER ) * - col1 + col2 * + 68 AS col0 FROM tab1 cor0
----
4256
4660
7022

skipif mysql # not compatible
query I rowsort
SELECT - CAST ( - col2 AS REAL ) + - col2 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 - 97 col2 FROM tab1 AS cor0
----
-1
-40
-43

query I rowsort
SELECT - 83 * - 63 FROM tab2 cor0
----
5229
5229
5229

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

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

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

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

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

query I rowsort
SELECT + 98 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809

onlyif mysql # use DIV operator for integer division
query I rowsort label-637
SELECT - cor0.col0 * cor0.col2 DIV 78 FROM tab1 AS cor0
----
-2
-46
-98

skipif mysql # not compatible
query I rowsort label-637
SELECT - cor0.col0 * cor0.col2 / 78 FROM tab1 AS cor0
----
-2
-46
-98

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

query I rowsort
SELECT DISTINCT - + col0 * + col0 - - ( - col0 + ( col2 ) ) AS col1 FROM tab1 AS cor0
----
-4103
-6384
42

query I rowsort
SELECT + col1 * + 85 + - cor0.col1 AS col2 FROM tab0 AS cor0
----
7224
7644
8148

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

query I rowsort
SELECT ALL col0 * ( 58 ) + col1 FROM tab2 AS cor0
----
437
4583
4599

query I rowsort
SELECT + + col2 + 97 FROM tab1 AS cor0
----
151
154
193

query I rowsort
SELECT col1 * - 0 * + col0 + + col1 AS col0 FROM tab1 AS cor0
----
10
13
26

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

query I rowsort
SELECT ( col0 ) * 23 AS col0 FROM tab1
----
1472
1840
69

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + ( 12 ) col1 FROM tab0 AS cor0
----
-12
-23
-77

onlyif mysql # use DIV operator for integer division
query I rowsort label-649
SELECT + col2 + 80 DIV + 22 FROM tab1 AS cor0
----
57
60
99

skipif mysql # not compatible
query I rowsort label-649
SELECT + col2 + 80 / + 22 FROM tab1 AS cor0
----
57
60
99

query I rowsort
SELECT - 41 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 47b9ef972839428f4f71d9f5b0944edf

query I rowsort
SELECT DISTINCT col2 * col2 + col0 * col0 FROM tab1 AS cor0
----
15616
2925
7345

query I rowsort
SELECT ALL - col1 * 20 FROM tab0 AS cor0
----
-1720
-1820
-1940

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 42 - + tab0.col1 * + ( col0 ) col2 FROM tab0
----
-2022
-3353
-8057

query I rowsort
SELECT + col0 - + 87 * + col0 FROM tab2
----
-602
-6708
-6794

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

query I rowsort
SELECT DISTINCT col0 + - 44 + - col2 AS col1 FROM tab2
----
-3
-64
8

query I rowsort
SELECT - cor0.col1 * col1 * - col2 + cor0.col0 FROM tab0 AS cor0
----
244092
679131
9444

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( + tab1.col0 * col0 + col1 AS REAL ) FROM tab1
----
35
4106
6413

query I rowsort
SELECT DISTINCT + 72 * - tab0.col2 FROM tab0
----
-2376
-5904
-72

query I rowsort
SELECT + 90 + tab0.col2 FROM tab0
----
123
172
91

query I rowsort
SELECT col2 + + 74 AS col0 FROM tab0 AS cor0
----
107
156
75

query I rowsort
SELECT DISTINCT ( - 1 * col2 ) AS col1 FROM tab0
----
-1
-33
-82

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

query I rowsort
SELECT + 2 * + col1 AS col2 FROM tab1 AS cor0
----
20
26
52

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 47 col2 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 3f991632e9c7c5142e1d80857cd10a2d

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

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

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

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

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

query I rowsort
SELECT DISTINCT + 99 * col2 - 71 * col2 AS col1 FROM tab2 AS cor0
----
1064
728
756

query I rowsort
SELECT ALL 68 * col1 + col2 FROM tab1 AS cor0
----
1822
737
980

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

skipif mysql # not compatible
query I rowsort label-672
SELECT DISTINCT 58 / col0 AS col1 FROM tab0 AS cor0
----
0
1
2

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab1.col1 + - ( col1 ) * - col2 * - ( 19 + + col1 ) col0 FROM tab1
----
-16540
-39949
-63206

onlyif mysql # use DIV operator for integer division
query I rowsort label-675
SELECT 61 DIV cor0.col1 + col0 AS col1 FROM tab2 AS cor0
----
79
8
82

skipif mysql # not compatible
query I rowsort label-675
SELECT 61 / cor0.col1 + col0 AS col1 FROM tab2 AS cor0
----
79
8
82

query I rowsort
SELECT tab1.col2 - + 77 AS col2 FROM tab1
----
-20
-23
19

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + 49 col1 FROM tab2 AS cor0
----
1274
1323
1862

query I rowsort
SELECT ALL - col0 + col2 * - col1 * - cor0.col0 FROM tab1 AS cor0
----
36416
4209
99760

query I rowsort
SELECT ALL + col0 * + ( 67 + + col1 ) AS col1 FROM tab0
----
14062
3672
5740

query I rowsort
SELECT tab2.col2 + + ( + 19 ) AS col0 FROM tab2
----
45
46
57

query I rowsort
SELECT DISTINCT - + 44 + col1 * + col0 FROM tab2 AS cor0
----
1299
173
4558

query I rowsort
SELECT ALL + - cor0.col0 * + 77 + col0 AS col0 FROM tab2 cor0
----
-532
-5928
-6004

query I rowsort
SELECT ALL + + 71 + col1 * - col1 FROM tab1 AS cor0
----
-29
-605
-98

query I rowsort
SELECT ALL + 38 + - ( + col1 ) FROM tab0 AS cor0
----
-48
-53
-59

onlyif mysql # use DIV operator for integer division
query I rowsort label-687
SELECT ALL - 82 + - col0 DIV col0 + - col1 FROM tab2 AS cor0
----
-100
-114
-142

skipif mysql # not compatible
query I rowsort label-687
SELECT ALL - 82 + - col0 / col0 + - col1 FROM tab2 AS cor0
----
-100
-114
-142

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

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

query I rowsort
SELECT DISTINCT 28 + - ( - cor0.col2 ) FROM tab1 AS cor0
----
124
82
85

query I rowsort
SELECT ALL + - 81 * col2 AS col0 FROM tab0 AS cor0
----
-2673
-6642
-81

query I rowsort
SELECT + ( + 96 ) FROM tab2 AS cor0
----
96
96
96

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

query I rowsort
SELECT ALL + 73 * - cor0.col1 * cor0.col2 FROM tab0 AS cor0
----
-207174
-544726
-7081

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 21 + col1 col1 FROM tab1
----
31
34
47

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + col1 ) col0 FROM tab0 AS cor0
----
-86
-91
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-698
SELECT + col0 + col0 DIV ( + 60 ) FROM tab1 AS cor0
----
3
65
81

skipif mysql # not compatible
query I rowsort label-698
SELECT + col0 + col0 / ( + 60 ) FROM tab1 AS cor0
----
3
65
81

query I rowsort
SELECT DISTINCT + col0 + - col1 * - col0 * + col0 AS col1 FROM tab2 AS cor0
----
106176
1526
359034

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

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

skipif mysql # not compatible
query I rowsort label-701
SELECT ALL - col1 + col1 * + CAST ( col2 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
0
2752
7371

query I rowsort
SELECT - col1 + + cor0.col2 * 51 FROM tab1 AS cor0
----
2728
2897
4883

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

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

query I rowsort
SELECT DISTINCT + col2 + 80 * - col1 FROM tab0 AS cor0
----
-6847
-7198
-7759

onlyif mysql # use DIV operator for integer division
query I rowsort label-706
SELECT + cor0.col2 + 5 DIV - col0 AS col0 FROM tab2 AS cor0
----
26
27
38

skipif mysql # not compatible
query I rowsort label-706
SELECT + cor0.col2 + 5 / - col0 AS col0 FROM tab2 AS cor0
----
26
27
38

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

skipif mysql # not compatible
query I rowsort label-707
SELECT DISTINCT col2 * CAST ( col1 AS INTEGER ) * - cor0.col0 AS col2 FROM tab1 AS cor0
----
-36480
-4212
-99840

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-710
SELECT - col1 / - 64 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT cor0.col1 * - 49 FROM tab0 cor0
----
-4214
-4459
-4753

query I rowsort
SELECT - col0 * + 53 + - col1 * col2 * col1 AS col2 FROM tab1 AS cor0
----
-20464
-36663
-9092

query I rowsort
SELECT - 39 + cor0.col0 * + col0 FROM tab2 AS cor0
----
10
6045
6202

query I rowsort
SELECT cor0.col2 * - 3 + - col0 + + 17 FROM tab1 AS cor0
----
-148
-218
-351

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + 1 col2 FROM tab2 AS cor0
----
26
27
38

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-718
SELECT DISTINCT + col1 DIV ( tab1.col2 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-718
SELECT DISTINCT + col1 / ( tab1.col2 ) FROM tab1
----
0

query I rowsort
SELECT 57 * + cor1.col1 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 7d974cbd4c4c8278e23c10806fd2cd56

query I rowsort
SELECT 52 * + col0 FROM tab2 AS cor0
----
364
4056
4108

onlyif mysql # use DIV operator for integer division
query I rowsort label-721
SELECT - 36 DIV col0 FROM tab0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-721
SELECT - 36 / col0 FROM tab0
----
-1
-1
0

query I rowsort
SELECT + 80 + tab0.col1 FROM tab0
----
166
171
177

query I rowsort
SELECT DISTINCT col2 + col0 + 25 FROM tab1
----
146
201
82

query I rowsort
SELECT ALL tab0.col0 + col0 * + col2 * col0 FROM tab0
----
1260
19032
649611

query I rowsort
SELECT ( col1 * - col1 + col0 ) AS col0 FROM tab2
----
-210
-3403
-954

query I rowsort
SELECT ALL 92 * + col2 + - col1 AS col2 FROM tab2
----
2333
2453
3479

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-728
SELECT DISTINCT 72 DIV col2 + ( col1 ) * col0 AS col2 FROM tab0 cor0
----
2066
3467
8099

skipif mysql # not compatible
query I rowsort label-728
SELECT DISTINCT 72 / col2 + ( col1 ) * col0 AS col2 FROM tab0 cor0
----
2066
3467
8099

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-730
SELECT - col1 DIV + col0 + col2 * col2 * - col0 + - 97 DIV col1 FROM tab2
----
-114081
-5110
-52729

skipif mysql # not compatible
query I rowsort label-730
SELECT - col1 / + col0 + col2 * col2 * - col0 + - 97 / col1 FROM tab2
----
-114081
-5110
-52729

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

query I rowsort
SELECT + 6 * 4 AS col1 FROM tab0
----
24
24
24

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-733
SELECT DISTINCT - CAST( col0 AS SIGNED ) AS col2 FROM tab0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-733
SELECT DISTINCT - CAST ( col0 AS INTEGER ) AS col2 FROM tab0
----
-24
-35
-89

query I rowsort
SELECT 86 + - col1 * col2 AS col1 FROM tab1 AS cor0
----
-1162
-1318
-484

query I rowsort
SELECT + ( 32 ) * col0 + + col0 AS col2 FROM tab0 AS cor0
----
1155
2937
792

query I rowsort
SELECT ( 78 ) + col2 - + col0 FROM tab2
----
26
37
98

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

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

query I rowsort
SELECT col0 * + cor0.col0 * 57 + - 58 FROM tab1 AS cor0
----
233414
364742
455

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

query I rowsort
SELECT col2 * cor0.col2 - col1 * 48 FROM tab0 AS cor0
----
-3039
-4655
2356

query I rowsort
SELECT + col2 * 5 + col2 * - 43 AS col0 FROM tab1 AS cor0
----
-2052
-2166
-3648

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

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

query I rowsort
SELECT + 67 * cor0.col1 AS col0 FROM tab2 AS cor0
----
1139
2077
3953

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

query I rowsort
SELECT - col0 + + 46 AS col2 FROM tab1
----
-18
-34
43

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-748
SELECT + col0 + col0 DIV cor0.col1 FROM tab1 AS cor0
----
3
70
86

skipif mysql # not compatible
query I rowsort label-748
SELECT + col0 + col0 / cor0.col1 FROM tab1 AS cor0
----
3
70
86

query I rowsort
SELECT - 35 + + cor0.col0 FROM tab2 AS cor0
----
-28
43
44

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

query I rowsort
SELECT DISTINCT + 74 + + 83 AS col0 FROM tab2 AS cor0
----
157

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

query I rowsort
SELECT - 61 AS col1 FROM tab2, tab2 cor0
----
9 values hashing to 51f53697966a79d306a4570537cd91a1

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

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

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

query I rowsort
SELECT DISTINCT + ( + col2 ) + col1 + col2 FROM tab0 AS cor0
----
152
255
99

query I rowsort
SELECT DISTINCT - - col1 * col1 * col1 - + 22 FROM tab2 AS cor0
----
205357
29769
4891

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 83 - - col2 col2 FROM tab0 AS cor0
----
116
165
84

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 74 * col1 col2 FROM tab0 AS cor0
----
-6364
-6734
-7178

onlyif mysql # use DIV operator for integer division
query I rowsort label-761
SELECT + ( - tab1.col0 * col1 ) + col1 + + 59 DIV - col0 AS col1 FROM tab1
----
-1027
-630
-71

skipif mysql # not compatible
query I rowsort label-761
SELECT + ( - tab1.col0 * col1 ) + col1 + + 59 / - col0 AS col1 FROM tab1
----
-1027
-630
-71

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

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

skipif mysql # not compatible
query I rowsort label-763
SELECT ALL col2 + + CAST ( - col0 AS INTEGER ) * col1 AS col2 FROM tab2 AS cor0
----
-1305
-190
-4576

onlyif mysql # use DIV operator for integer division
query I rowsort label-764
SELECT ALL col0 DIV cor0.col1 + col1 FROM tab2 AS cor0
----
21
31
60

skipif mysql # not compatible
query I rowsort label-764
SELECT ALL col0 / cor0.col1 + col1 FROM tab2 AS cor0
----
21
31
60

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

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

query I rowsort
SELECT DISTINCT col0 * ( 70 ) FROM tab2 cor0
----
490
5460
5530

onlyif mysql # use DIV operator for integer division
query I rowsort label-767
SELECT - cor0.col1 * col2 DIV + 12 AS col1 FROM tab0 cor0
----
-236
-621
-8

skipif mysql # not compatible
query I rowsort label-767
SELECT - cor0.col1 * col2 / + 12 AS col1 FROM tab0 cor0
----
-236
-621
-8

query I rowsort
SELECT - 18 AS col0 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 2dbe09d9295cfd52d854fefabf2cec4e

query I rowsort
SELECT 78 + col2 FROM tab1
----
132
135
174

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

query I rowsort
SELECT DISTINCT - col1 + col1 * col2 + + 26 AS col0 FROM tab1
----
1261
1404
586

onlyif mysql # use DIV operator for integer division
query I rowsort label-772
SELECT + - cor0.col2 DIV CAST( col1 * col1 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
0
0
0

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

query I rowsort
SELECT ALL + - cor0.col1 + col2 * col2 AS col2 FROM tab2 AS cor0
----
1427
617
698

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

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

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

query III rowsort
SELECT * FROM tab2 cor0 WHERE - cor0.col2 NOT BETWEEN NULL AND + col1
----

query I rowsort
SELECT ALL - col0 * col0 AS col2 FROM tab2 AS cor0 WHERE NULL = ( - col2 )
----

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

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

query I rowsort
SELECT DISTINCT col1 + col1 * tab0.col2 + - col2 FROM tab0
----
193
2891
7471

query III rowsort
SELECT ALL * FROM tab1 WHERE col0 NOT BETWEEN - col2 / col1 + + col1 AND + col1
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col2 NOT IN ( col1 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) = - col1 * - col2
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col1 - col0 col2 FROM tab2
----
1456
567
830

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-788
SELECT DISTINCT + col2 + col1 / + col1 col2 FROM tab2
----
27
28
39

query I rowsort
SELECT - col1 + col2 * - col2 FROM tab0
----
-1175
-6815
-98

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

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

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

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

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

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

query I rowsort
SELECT cor0.col0 - - tab0.col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 13a45e994f0549dd29e84599a57026d0

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-797
SELECT ALL - tab1.col1 * col0 DIV col2 + - col1 + col0 * + col0 FROM tab1
----
-18
4075
6377

skipif mysql # not compatible
query I rowsort label-797
SELECT ALL - tab1.col1 * col0 / col2 + - col1 + col0 * + col0 FROM tab1
----
-18
4075
6377

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + + col0 col2 FROM tab0
----
171
36
57

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

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

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

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

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

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

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

query I rowsort
SELECT - - col0 * + col1 + + col1 * col0 AS col0 FROM tab0 AS cor0
----
16198
4128
6790

onlyif mysql # use DIV operator for integer division
query I rowsort label-807
SELECT ALL col1 + + col2 DIV + col2 AS col1 FROM tab1 AS cor0
----
11
14
27

skipif mysql # not compatible
query I rowsort label-807
SELECT ALL col1 + + col2 / + col2 AS col1 FROM tab1 AS cor0
----
11
14
27

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

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

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + col0 * + col0 IN ( col1 + col1 * col2 ) OR NOT NULL < ( NULL )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

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

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

query I rowsort
SELECT ALL + col1 + col0 * + col0 AS col1 FROM tab2 AS cor0
----
6143
6258
80

query I rowsort
SELECT ALL col2 * + col1 + + 43 AS col1 FROM tab1
----
1291
1447
613

onlyif mysql # use DIV operator for integer division
query I rowsort label-814
SELECT ALL col1 DIV - tab2.col0 + - col0 FROM tab2
----
-11
-78
-79

skipif mysql # not compatible
query I rowsort label-814
SELECT ALL col1 / - tab2.col0 + - col0 FROM tab2
----
-11
-78
-79

onlyif mysql # use DIV operator for integer division
query I rowsort label-815
SELECT DISTINCT - col1 DIV col1 + col2 AS col1 FROM tab2
----
25
26
37

skipif mysql # not compatible
query I rowsort label-815
SELECT DISTINCT - col1 / col1 + col2 AS col1 FROM tab2
----
25
26
37

onlyif mysql # use DIV operator for integer division
query I rowsort label-816
SELECT 27 DIV - col1 AS col0 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-816
SELECT 27 / - col1 AS col0 FROM tab2
----
-1
0
0

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-819
SELECT - 29 DIV col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-819
SELECT - 29 / col2 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL + col1 * cor0.col0 + cor0.col2 * col2 FROM tab0 AS cor0
----
14823
3153
3396

query I rowsort
SELECT DISTINCT - col1 * cor0.col1 - 34 FROM tab1 AS cor0
----
-134
-203
-710

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

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

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

query I rowsort
SELECT + col2 + col2 + - col0 AS col0 FROM tab2 AS cor0
----
-26
-3
47

onlyif mysql # use DIV operator for integer division
query I rowsort label-826
SELECT - col1 + + CAST( 92 AS SIGNED ) DIV + col0 AS col2 FROM tab0 AS cor0
----
-83
-90
-95

skipif mysql # not compatible
query I rowsort label-826
SELECT - col1 + + CAST ( 92 AS INTEGER ) / + col0 AS col2 FROM tab0 AS cor0
----
-83
-90
-95

query I rowsort
SELECT + cor0.col1 FROM tab2 cor0 CROSS JOIN tab2, tab0 cor1, tab1, tab1 AS cor2
----
243 values hashing to 42b04a30acb32fcd35bf97afdee87fe6

query I rowsort
SELECT - col1 - 12 AS col2 FROM tab1 AS cor0
----
-22
-25
-38

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

query I rowsort
SELECT + col1 + tab0.col0 + col2 * col0 FROM tab0
----
167
7478
902

onlyif mysql # use DIV operator for integer division
query I rowsort label-831
SELECT tab2.col1 DIV col0 col2 FROM tab2
----
0
0
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-831
SELECT tab2.col1 / col0 col2 FROM tab2
----
0
0
4

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

query I rowsort
SELECT - col2 + col0 + + col1 * col0 FROM tab0
----
2055
3429
8106

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL IN ( col2 - - col2 )
----

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

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

query I rowsort
SELECT tab0.col0 + + col0 * - col1 + col0 AS col0 FROM tab0
----
-2016
-3325
-7921

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + col0 * - col2 * col2 col0 FROM tab2
----
-114059
-5072
-52669

query I rowsort
SELECT DISTINCT + col1 + - tab1.col1 AS col2 FROM tab1
----
0

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

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

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

query I rowsort
SELECT + col1 * - 25 AS col0 FROM tab1 cor0
----
-250
-325
-650

onlyif mysql # use DIV operator for integer division
query I rowsort label-844
SELECT DISTINCT 44 * tab1.col1 DIV col0 FROM tab1
----
381
6
7

skipif mysql # not compatible
query I rowsort label-844
SELECT DISTINCT 44 * tab1.col1 / col0 FROM tab1
----
381
6
7

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

query I rowsort
SELECT - col1 * - 31 FROM tab0
----
2666
2821
3007

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

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

query I rowsort
SELECT col0 * ( + 62 ) + col2 AS col1 FROM tab1 cor0
----
240
4025
5056

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

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

query I rowsort
SELECT DISTINCT - 37 * - col0 FROM tab0 AS cor0
----
1295
3293
888

query I rowsort
SELECT ALL + col1 - - col0 * 73 * col1 FROM tab1 AS cor0
----
46730
5720
75933

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

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

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

query I rowsort
SELECT ( + col1 ) - col0 FROM tab1
----
-54
-67
23

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

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

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

query I rowsort
SELECT DISTINCT - + col1 * - col1 + - 36 + col2 AS col2 FROM tab1 AS cor0
----
121
229
694

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

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

query I rowsort
SELECT + + 53 * col2 FROM tab1 AS cor0
----
2862
3021
5088

onlyif mysql # use DIV operator for integer division
query I rowsort label-865
SELECT - col0 * col1 + - col0 DIV + col2 AS col0 FROM tab0 AS cor0
----
-2064
-3430
-8100

skipif mysql # not compatible
query I rowsort label-865
SELECT - col0 * col1 + - col0 / + col2 AS col0 FROM tab0 AS cor0
----
-2064
-3430
-8100

query I rowsort
SELECT + 8 * - col2 * col2 FROM tab2 AS cor0
----
-11552
-5408
-5832

query I rowsort
SELECT DISTINCT + 5 * col2 FROM tab0 AS cor0
----
165
410
5

query I rowsort
SELECT - 34 + - tab2.col2 * col1 AS col0 FROM tab2
----
-1568
-680
-871

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-873
SELECT + col2 + col0 DIV + col2 AS col0 FROM tab0 AS cor0
----
33
36
83

skipif mysql # not compatible
query I rowsort label-873
SELECT + col2 + col0 / + col2 AS col0 FROM tab0 AS cor0
----
33
36
83

query I rowsort
SELECT DISTINCT + + cor0.col2 + col0 + col0 AS col2 FROM tab2 AS cor0
----
182
196
41

query I rowsort
SELECT ALL col0 + cor0.col1 + + cor0.col1 FROM tab2 AS cor0
----
113
196
69

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

query I rowsort
SELECT DISTINCT col1 * col0 + col2 - - col2 * - col1 FROM tab2 AS cor0
----
-593
3094
735

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 87 * ( cor0.col0 * col1 ) col2 FROM tab2 cor0
----
116841
18879
400374

query I rowsort
SELECT - ( + 52 ) * - col1 FROM tab2 cor0
----
1612
3068
884

query I rowsort
SELECT DISTINCT + col1 + 17 * - col2 FROM tab1 cor0
----
-1619
-892
-959

onlyif mysql # use DIV operator for integer division
query I rowsort label-881
SELECT 27 + - col1 DIV + col1 FROM tab1 AS cor0
----
26
26
26

skipif mysql # not compatible
query I rowsort label-881
SELECT 27 + - col1 / + col1 FROM tab1 AS cor0
----
26
26
26

query I rowsort
SELECT ALL - col0 * + 65 FROM tab2 AS cor0
----
-455
-5070
-5135

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

query I rowsort
SELECT DISTINCT - col2 + - col2 + col1 * col2 * + col2 AS col2 FROM tab0 cor0
----
611720
93588
95

onlyif mysql # use DIV operator for integer division
query I rowsort label-885
SELECT ALL - cor0.col1 + cor0.col2 * col1 DIV col0 AS col1 FROM tab0 AS cor0
----
-8
-95
32

skipif mysql # not compatible
query I rowsort label-885
SELECT ALL - cor0.col1 + cor0.col2 * col1 / col0 AS col1 FROM tab0 AS cor0
----
-8
-95
32

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

query I rowsort
SELECT DISTINCT 45 + col0 + col0 AS col0 FROM tab0 cor0
----
115
223
93

query I rowsort
SELECT 77 + cor0.col0 AS col0 FROM tab1 AS cor0
----
141
157
80

query I rowsort
SELECT DISTINCT - 17 + - col2 FROM tab0
----
-18
-50
-99

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

query I rowsort
SELECT ALL + col0 * - col0 * - tab0.col2 + + col2 + col0 FROM tab0
----
1261
19065
649693

onlyif mysql # use DIV operator for integer division
query I rowsort label-892
SELECT + col1 * + 86 + + col2 DIV + col2 FROM tab1
----
1119
2237
861

skipif mysql # not compatible
query I rowsort label-892
SELECT + col1 * + 86 + + col2 / + col2 FROM tab1
----
1119
2237
861

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

query I rowsort
SELECT 49 + + 72 AS col2 FROM tab1
----
121
121
121

query I rowsort
SELECT ALL + ( + col2 ) + col2 AS col0 FROM tab2
----
52
54
76

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

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

skipif mysql # not compatible
query I rowsort label-897
SELECT - col0 / + 98 + - col0 * CAST ( NULL AS INTEGER ) - 13 * col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + col1 * + 32 FROM tab0 AS cor0
----
-2752
-2912
-3104

query I rowsort
SELECT col1 * 1 + col1 * + ( + 54 ) - col1 * - 57 AS col2 FROM tab2 cor0
----
1904
3472
6608

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

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

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

query I rowsort
SELECT ALL - 12 + - col1 * cor0.col2 FROM tab0 AS cor0
----
-109
-2850
-7474

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + col2 * + cor0.col0 * + CAST ( + 56 AS REAL ) + col2 * + 65 col1 FROM tab1 AS cor0
----
12582
207993
436320

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

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

query I rowsort
SELECT - tab2.col1 + 40 * + col0 AS col2 FROM tab2
----
249
3061
3143

query I rowsort
SELECT 15 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 71dda9a71fc978ea7b0ac5d8cd2ef1f0

query I rowsort
SELECT - + cor0.col1 + + 81 * cor0.col1 FROM tab0 AS cor0
----
6880
7280
7760

query I rowsort
SELECT DISTINCT + col0 + + 41 AS col0 FROM tab0 AS cor0
----
130
65
76

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

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

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

query I rowsort
SELECT tab0.col1 * col0 - - 67 FROM tab0
----
2131
3462
8166

query I rowsort
SELECT ALL col0 * col0 * - 98 FROM tab2 AS cor0
----
-4802
-596232
-611618

query I rowsort
SELECT col2 * + col0 - + 4 FROM tab0
----
31
7294
788

query I rowsort
SELECT 78 AS col1 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to d8e5ef4db3419fc251e82c50ba04e048

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

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

query I rowsort
SELECT 70 + 92 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 480af13fa97bed507a41d8a44cc231af

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + col1 * - 65 col1 FROM tab1 AS cor0
----
-1693
-714
-925

onlyif mysql # use DIV operator for integer division
query I rowsort label-919
SELECT ALL + col0 * col2 + - ( cor0.col1 + - 12 ) DIV - cor0.col2 FROM tab1 AS cor0
----
162
3648
7680

skipif mysql # not compatible
query I rowsort label-919
SELECT ALL + col0 * col2 + - ( cor0.col1 + - 12 ) / - cor0.col2 FROM tab1 AS cor0
----
162
3648
7680

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

query I rowsort
SELECT DISTINCT + - col2 + + ( - 48 ) AS col1 FROM tab0 cor0
----
-130
-49
-81

query I rowsort
SELECT + col2 + + 59 FROM tab0
----
141
60
92

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

skipif mysql # not compatible
query I rowsort label-923
SELECT ( + col1 ) + + col0 / - ( + cor0.col0 ) FROM tab0 AS cor0
----
85
90
96

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

query I rowsort
SELECT ( col2 ) + - col0 * - col0 * col1 FROM tab2 AS cor0
----
106135
1546
358982

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

query I rowsort
SELECT DISTINCT - + cor0.col0 + 61 FROM tab0 AS cor0
----
-28
26
37

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

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

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

query I rowsort
SELECT DISTINCT 70 AS col2 FROM tab1 AS cor0
----
70

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + - 66 col1 FROM tab1 AS cor0
----
-12
-9
30

query I rowsort
SELECT DISTINCT + col1 * - 31 + ( + col2 ) * col2 FROM tab1 AS cor0
----
2110
2939
8813

query I rowsort
SELECT col2 + col2 * 47 FROM tab1 AS cor0
----
2592
2736
4608

query I rowsort
SELECT 1 FROM tab0, tab2 cor0, tab2 AS cor1
----
27 values hashing to da8a72a7967c0c73d91239275230aed9

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

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

query I rowsort
SELECT DISTINCT 63 + + col2 * 41 FROM tab2 AS cor0
----
1129
1170
1621

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 21 * + tab1.col0 col1 FROM tab1
----
1344
1680
63

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

query I rowsort
SELECT ALL 92 * - col2 FROM tab0 AS cor0
----
-3036
-7544
-92

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-944
SELECT DISTINCT + cor0.col2 / cor0.col1 col0 FROM tab1 AS cor0
----
2
5
7

query I rowsort
SELECT DISTINCT cor0.col1 * ( + col1 * + col1 ) AS col0 FROM tab1 AS cor0
----
1000
17576
2197

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

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

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

query I rowsort
SELECT - - 70 * col2 AS col1 FROM tab1 AS cor0
----
3780
3990
6720

query I rowsort
SELECT - col2 * 70 FROM tab0
----
-2310
-5740
-70

query I rowsort
SELECT ALL + ( 90 + tab0.col0 ) AS col0 FROM tab0
----
114
125
179

query I rowsort
SELECT ALL 48 * col2 * - tab1.col0 AS col0 FROM tab1
----
-175104
-368640
-7776

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

query I rowsort
SELECT col0 + ( - col0 + col0 ) FROM tab1
----
3
64
80

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

query I rowsort
SELECT DISTINCT col1 * 64 + + tab1.col0 AS col1 FROM tab1
----
1667
704
912

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

query I rowsort
SELECT ALL 36 * col1 AS col0 FROM tab0 AS cor0
----
3096
3276
3492

query I rowsort
SELECT ALL + col0 + 47 FROM tab2
----
125
126
54

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

skipif mysql # not compatible
query I rowsort label-960
SELECT - CAST ( NULL AS REAL ) * tab2.col0 + col0 + col1 FROM tab2
----
NULL
NULL
NULL

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

query I rowsort
SELECT DISTINCT - 4 + col2 - col0 * - 20 FROM tab2 AS cor0
----
1582
1614
163

query I rowsort
SELECT DISTINCT + - col0 + - col2 * - ( - 88 ) AS col0 FROM tab0 AS cor0
----
-123
-2928
-7305

query I rowsort
SELECT ALL - col1 - + 70 FROM tab2
----
-101
-129
-87

query I rowsort
SELECT DISTINCT + col2 * ( + tab0.col1 ) - - col2 * + ( - col0 ) AS col2 FROM tab0
----
164
2046
62

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-967
SELECT DISTINCT + 63 DIV 19 + cor0.col0 + - col2 AS col2 FROM tab2 AS cor0
----
-17
44
55

skipif mysql # not compatible
query I rowsort label-967
SELECT DISTINCT + 63 / 19 + cor0.col0 + - col2 AS col2 FROM tab2 AS cor0
----
-17
44
55

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-969
SELECT + col0 DIV 69 - - col2 col2 FROM tab2 cor0
----
27
27
39

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-969
SELECT + col0 / 69 - - col2 col2 FROM tab2 cor0
----
27
27
39

onlyif mysql # use DIV operator for integer division
query I rowsort label-970
SELECT DISTINCT + col2 DIV col0 + col1 AS col1 FROM tab1 AS cor0
----
10
14
44

skipif mysql # not compatible
query I rowsort label-970
SELECT DISTINCT + col2 / col0 + col1 AS col1 FROM tab1 AS cor0
----
10
14
44

query I rowsort
SELECT ALL ( 15 ) AS col2 FROM tab0 AS cor0
----
15
15
15

query I rowsort
SELECT + + 22 * + 12 + + cor0.col2 FROM tab0 cor0
----
265
297
346

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

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

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

skipif mysql # not compatible
query I rowsort label-975
SELECT ALL CAST ( NULL AS INTEGER ) / 83 + col2 / + 19 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col1 - 22 AS col2 FROM tab2 AS cor0
----
-5
37
9

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

skipif mysql # not compatible
query I rowsort label-977
SELECT - CAST ( + col1 AS INTEGER ) + + cor0.col2 AS col1 FROM tab0 AS cor0
----
-53
-9
-96

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

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

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

query I rowsort
SELECT + ( - col2 ) * col0 * col1 + col0 FROM tab2 cor0
----
-119574
-50955
-5852

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

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

query I rowsort
SELECT ALL - 10 - - ( - col2 ) AS col0 FROM tab2 AS cor0
----
-36
-37
-48

query I rowsort
SELECT ALL + - col1 - cor0.col0 * + 16 FROM tab2 AS cor0
----
-1281
-1307
-143

query I rowsort
SELECT DISTINCT + col0 * col1 + - 5 + col1 * + col0 * col0 AS col2 FROM tab0 AS cor0
----
122215
51595
728905

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

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - ( + col0 ) col1 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT DISTINCT + 61 * - cor0.col0 AS col1 FROM tab2 AS cor0
----
-427
-4758
-4819

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-992
SELECT - CAST( - 43 AS SIGNED ) + cor0.col2 FROM tab1 AS cor0
----
100
139
97

skipif mysql # not compatible
query I rowsort label-992
SELECT - CAST ( - 43 AS INTEGER ) + cor0.col2 FROM tab1 AS cor0
----
100
139
97

query I rowsort
SELECT + 22 * 98 AS col0 FROM tab0 cor0
----
2156
2156
2156

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-994
SELECT DISTINCT - ( - col2 ) * - col0 * - CAST( - col0 * col2 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-35721
-4112784
-9012004

skipif mysql # not compatible
query I rowsort label-994
SELECT DISTINCT - ( - col2 ) * - col0 * - CAST ( - col0 * col2 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-35721
-4112784
-9012004

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

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

query I rowsort
SELECT ALL - 68 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 5febf382d36d6e0191889c41b928786f

onlyif mysql # use DIV operator for integer division
query I rowsort label-997
SELECT ALL - 60 DIV col1 + + col1 AS col0 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-997
SELECT ALL - 60 / col1 + + col1 AS col0 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT DISTINCT + col2 * col1 + + col2 + 68 FROM tab1 AS cor0
----
1412
1526
695

query I rowsort
SELECT DISTINCT + 10 + col1 AS col1 FROM tab1 AS cor0
----
20
23
36

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

query I rowsort
SELECT ALL - - 64 * - col2 - + ( + col0 * col2 ) FROM tab0 AS cor0
----
-12546
-2904
-99

query I rowsort
SELECT ALL col1 + col1 * 94 + - cor0.col2 AS col2 FROM tab1 AS cor0
----
1139
2416
893

query I rowsort
SELECT 29 + + col2 * + col1 AS col1 FROM tab1
----
1277
1433
599

query I rowsort
SELECT + 68 - + 97 AS col1 FROM tab1
----
-29
-29
-29

query I rowsort
SELECT 50 + - tab0.col2 AS col1 FROM tab0
----
-32
17
49

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1009
SELECT DISTINCT + cor0.col0 * + col1 + col0 DIV col1 FROM tab2 AS cor0
----
1347
217
4603

skipif mysql # not compatible
query I rowsort label-1009
SELECT DISTINCT + cor0.col0 * + col1 + col0 / col1 FROM tab2 AS cor0
----
1347
217
4603

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

query I rowsort
SELECT ALL - 15 * - col0 AS col1 FROM tab0
----
1335
360
525

query I rowsort
SELECT - col2 * + col2 * - col2 FROM tab1 AS cor0
----
157464
185193
884736

query I rowsort
SELECT + + ( 43 ) * col2 AS col2 FROM tab1 AS cor0
----
2322
2451
4128

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

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

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

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

query I rowsort
SELECT + - 10 + col2 AS col0 FROM tab0 AS cor0
----
-9
23
72

query I rowsort
SELECT ALL col1 + + 62 + 94 AS col0 FROM tab1
----
166
169
182

query I rowsort
SELECT col0 * - col2 + - 51 + - col1 FROM tab1
----
-239
-3709
-7744

query I rowsort
SELECT DISTINCT - tab2.col2 * col2 * - col0 + tab2.col2 * 76 FROM tab2
----
116964
54704
7155

query I rowsort
SELECT DISTINCT col0 + - 77 AS col0 FROM tab2
----
-70
1
2

query I rowsort
SELECT ALL col0 + + col1 + 74 AS col2 FROM tab2
----
112
170
211

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

query I rowsort
SELECT ALL + 81 FROM tab0, tab0 cor0
----
9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267

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

query I rowsort
SELECT 25 + - col0 AS col1 FROM tab1 AS cor0
----
-39
-55
22

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 * - col2 + col2 col2 FROM tab2 AS cor0
----
1560
684
864

onlyif mysql # use DIV operator for integer division
query I rowsort label-1028
SELECT + 90 DIV - tab1.col1 FROM tab2, tab1 cor0 CROSS JOIN tab1
----
27 values hashing to 39d3eaa5e6ea8ac298c8be28bd8d7506

skipif mysql # not compatible
query I rowsort label-1028
SELECT + 90 / - tab1.col1 FROM tab2, tab1 cor0 CROSS JOIN tab1
----
27 values hashing to 39d3eaa5e6ea8ac298c8be28bd8d7506

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

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

query I rowsort
SELECT - - col2 * - ( 39 + col2 ) FROM tab1 AS cor0
----
-12960
-5022
-5472

query I rowsort
SELECT + col2 + - 52 FROM tab2 AS cor0
----
-14
-25
-26

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

query I rowsort
SELECT + + col1 * 80 + col1 AS col0 FROM tab2 AS cor0
----
1377
2511
4779

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 18 * col2 * col2 col2 FROM tab2 AS cor0
----
-12168
-13122
-25992

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

query I rowsort
SELECT ALL + 77 * + cor0.col0 * col2 + + 52 FROM tab0 AS cor0
----
2747
561998
61036

query I rowsort
SELECT - + col0 + 91 AS col1 FROM tab2 AS cor0
----
12
13
84

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

query I rowsort
SELECT DISTINCT + 93 + 27 FROM tab1 AS cor0
----
120

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

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

query I rowsort
SELECT ALL - col1 * 42 + + col1 FROM tab0 AS cor0
----
-3526
-3731
-3977

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col2 ) * + col2 * col2 + col0 * + col1 * - 61 col1 FROM tab1 AS cor0
----
-162222
-224233
-948176

query I rowsort
SELECT DISTINCT - 96 + col0 * col2 AS col0 FROM tab0 AS cor0
----
-61
696
7202

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

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

query I rowsort
SELECT DISTINCT - + 89 * - col0 AS col1 FROM tab2 cor0
----
623
6942
7031

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col0 - - 56 * col1 col0 FROM tab0 cor0
----
13195
6880
8827

query I rowsort
SELECT ALL cor0.col1 + 41 FROM tab0 AS cor0
----
127
132
138

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

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

query I rowsort
SELECT DISTINCT col1 * - 56 + - col1 * cor0.col0 * + col1 AS col1 FROM tab1 AS cor0
----
-14248
-3484
-6960

query I rowsort
SELECT ALL - - cor0.col2 - col2 * - ( col1 + cor0.col0 * - col1 ) FROM tab2 AS cor0
----
-118092
-4995
-50350

onlyif mysql # use DIV operator for integer division
query I rowsort label-1054
SELECT DISTINCT col0 + 92 DIV 15 col2 FROM tab0 AS cor0
----
30
41
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1054
SELECT DISTINCT col0 + 92 / 15 col2 FROM tab0 AS cor0
----
30
41
95

query I rowsort
SELECT + col0 * 10 AS col0 FROM tab2 AS cor0
----
70
780
790

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

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

skipif mysql # not compatible
query I rowsort label-1057
SELECT + ( col2 * + CAST ( + col1 AS INTEGER ) ) + - col2 AS col0 FROM tab2
----
1508
608
810

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

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

query I rowsort
SELECT - col1 * col2 - 95 AS col0 FROM tab1 AS cor0
----
-1343
-1499
-665

query I rowsort
SELECT + - col2 * 49 + + col0 - + cor0.col2 * ( + 96 + col2 ) AS col0 FROM tab2 AS cor0
----
-4368
-4637
-6875

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

query I rowsort
SELECT DISTINCT + - col0 * - 87 FROM tab0 AS cor0
----
2088
3045
7743

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

query I rowsort
SELECT DISTINCT + col1 * - 61 + - col1 * + tab0.col0 FROM tab0
----
-13650
-7310
-9312

query I rowsort
SELECT - cor0.col0 FROM tab1 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab0, tab0 AS cor2
----
243 values hashing to f74ca4a9760ae5a015b067d560a14502

query I rowsort
SELECT + cor0.col2 * + 53 + + col0 FROM tab2 AS cor0
----
1438
1456
2093

query I rowsort
SELECT col1 * - ( + 35 ) FROM tab1
----
-350
-455
-910

query I rowsort
SELECT ALL - 99 + col1 * - col2 FROM tab0 AS cor0
----
-196
-2937
-7561

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

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1074
SELECT ALL 74 DIV col1 AS col0 FROM tab2
----
1
2
4

skipif mysql # not compatible
query I rowsort label-1074
SELECT ALL 74 / col1 AS col0 FROM tab2
----
1
2
4

query I rowsort
SELECT DISTINCT - + 24 AS col2 FROM tab1, tab2, tab1 AS cor0
----
-24

query I rowsort
SELECT ALL 52 + + col1 FROM tab2 AS cor0
----
111
69
83

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

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

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1081
SELECT DISTINCT col0 DIV - col2 + + col1 AS col2 FROM tab0
----
62
86
90

skipif mysql # not compatible
query I rowsort label-1081
SELECT DISTINCT col0 / - col2 + + col1 AS col2 FROM tab0
----
62
86
90

query I rowsort
SELECT tab1.col0 * - tab1.col2 + col0 * + col1 FROM tab1
----
-3008
-6640
-84

query I rowsort
SELECT DISTINCT + 50 FROM tab0, tab0 cor0
----
50

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

query I rowsort
SELECT DISTINCT ( + col0 + col2 ) * 79 FROM tab0
----
13509
2844
4503

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * 25 col2 FROM tab0
----
2225
600
875

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

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

query I rowsort
SELECT ALL + ( col1 ) + + col2 * 45 AS col2 FROM tab1 AS cor0
----
2456
2575
4333

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

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

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

query I rowsort
SELECT ALL - col1 + - tab0.col1 * - col0 * 56 FROM tab0
----
115498
190023
453453

query I rowsort
SELECT ALL tab1.col2 * + col2 + - 5 * 65 FROM tab1
----
2591
2924
8891

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

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1096
SELECT ALL CAST( + 43 AS SIGNED ) AS col0 FROM tab2, tab1 AS cor0, tab2 cor1
----
27 values hashing to ee5108f6248be48c54e069545f81c5d9

skipif mysql # not compatible
query I rowsort label-1096
SELECT ALL CAST ( + 43 AS INTEGER ) AS col0 FROM tab2, tab1 AS cor0, tab2 cor1
----
27 values hashing to ee5108f6248be48c54e069545f81c5d9

query I rowsort
SELECT + + 57 - - col2 AS col2 FROM tab2 AS cor0
----
83
84
95

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

query I rowsort
SELECT - cor0.col0 + 15 + - col2 FROM tab0 AS cor0
----
-156
-21
-42

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1101
SELECT DISTINCT cor0.col0 * 42 + + 9 DIV + cor0.col2 FROM tab1 AS cor0
----
126
2688
3360

skipif mysql # not compatible
query I rowsort label-1101
SELECT DISTINCT cor0.col0 * 42 + + 9 / + cor0.col2 FROM tab1 AS cor0
----
126
2688
3360

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1103
SELECT - col2 + + ( col0 ) DIV col2 AS col0 FROM tab1 cor0
----
-54
-56
-96

skipif mysql # not compatible
query I rowsort label-1103
SELECT - col2 + + ( col0 ) / col2 AS col0 FROM tab1 cor0
----
-54
-56
-96

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

query I rowsort
SELECT DISTINCT - col2 * ( - 32 ) AS col0 FROM tab0 cor0
----
1056
2624
32

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

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

query I rowsort
SELECT ALL - col2 * 21 AS col1 FROM tab2 AS cor0
----
-546
-567
-798

query I rowsort
SELECT ALL + 63 + - col0 FROM tab1
----
-1
-17
60

query I rowsort
SELECT col1 * 96 + col1 FROM tab0 AS cor0
----
8342
8827
9409

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

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1112
SELECT - col1 * CAST( + col1 AS SIGNED ) FROM tab2
----
-289
-3481
-961

skipif mysql # not compatible
query I rowsort label-1112
SELECT - col1 * CAST ( + col1 AS INTEGER ) FROM tab2
----
-289
-3481
-961

query I rowsort
SELECT ALL 0 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

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

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

query I rowsort
SELECT + 20 + cor0.col2 AS col1 FROM tab2 AS cor0
----
46
47
58

query I rowsort
SELECT 73 + col2 AS col2 FROM tab0 AS cor0
----
106
155
74

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1118
SELECT - - 98 DIV cor0.col1 + cor0.col1 FROM tab0 AS cor0
----
87
92
98

skipif mysql # not compatible
query I rowsort label-1118
SELECT - - 98 / cor0.col1 + cor0.col1 FROM tab0 AS cor0
----
87
92
98

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

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

query I rowsort
SELECT - 75 AS col0 FROM tab1, tab2 cor0
----
9 values hashing to 258bc565c64924d905a55eaaa6e57547

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

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

query I rowsort
SELECT ALL + 96 - cor0.col0 AS col1 FROM tab1 AS cor0
----
16
32
93

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

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

query I rowsort
SELECT DISTINCT - cor0.col0 + - col2 * 6 FROM tab2 AS cor0
----
-169
-234
-307

query I rowsort
SELECT - 36 + + col2 AS col0 FROM tab1 AS cor0
----
18
21
60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * + col1 - 48 col0 FROM tab2 AS cor0
----
241
3433
913

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1129
SELECT ALL CAST( - col1 + + col0 AS SIGNED ) * col2 * ( - col0 * + col2 ) AS col0 FROM tab0
----
1196872
1620432
2170

skipif mysql # not compatible
query I rowsort label-1129
SELECT ALL CAST ( - col1 + + col0 AS INTEGER ) * col2 * ( - col0 * + col2 ) AS col0 FROM tab0
----
1196872
1620432
2170

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

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

skipif mysql # not compatible
query I rowsort label-1131
SELECT 0 * col1 / ( + cor0.col2 * - col0 ) FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + col0 * tab2.col2 * 9 AS col1 FROM tab2
----
1701
18252
27018

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

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

query I rowsort
SELECT DISTINCT ( - 0 ) * - col1 AS col2 FROM tab2
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-1135
SELECT ALL - 95 DIV col0 AS col0 FROM tab0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-1135
SELECT ALL - 95 / col0 AS col0 FROM tab0
----
-1
-2
-3

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

query I rowsort
SELECT DISTINCT - col2 + - cor0.col0 * ( - 24 ) FROM tab2 AS cor0
----
141
1846
1858

onlyif mysql # use DIV operator for integer division
query I rowsort label-1138
SELECT DISTINCT col1 * + cor0.col2 + 1 + + ( cor0.col2 ) DIV 15 FROM tab0 AS cor0
----
2841
7468
98

skipif mysql # not compatible
query I rowsort label-1138
SELECT DISTINCT col1 * + cor0.col2 + 1 + + ( cor0.col2 ) / 15 FROM tab0 AS cor0
----
2841
7468
98

query I rowsort
SELECT DISTINCT 74 * + col0 FROM tab1
----
222
4736
5920

query I rowsort
SELECT ALL col0 - + 95 AS col2 FROM tab0
----
-6
-60
-71

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

skipif mysql # not compatible
query I rowsort label-1141
SELECT ALL - ( + tab1.col2 ) * - col2 - CAST ( + col1 * - col0 AS INTEGER ) AS col1 FROM tab1
----
10256
2994
3889

onlyif mysql # use DIV operator for integer division
query I rowsort label-1142
SELECT - tab0.col0 DIV - col0 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1142
SELECT - tab0.col0 / - col0 FROM tab0
----
1
1
1

query I rowsort
SELECT col2 + col2 * col0 * + tab1.col2 + col1 AS col2 FROM tab1
----
208003
737389
8828

query I rowsort
SELECT + - 17 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 490d008f3fb5b70d3971cfc6d84503f4

query I rowsort
SELECT DISTINCT + - 93 * + cor0.col2 + + 64 FROM tab0 AS cor0
----
-29
-3005
-7562

query I rowsort
SELECT DISTINCT + cor0.col0 + col1 + 97 FROM tab1 AS cor0
----
126
171
190

query I rowsort
SELECT - ( 5 ) FROM tab1, tab0 AS cor0
----
9 values hashing to 74665fbb47d5b17da011bca567195b21

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

query I rowsort
SELECT - col2 * + 46 FROM tab1 cor0
----
-2484
-2622
-4416

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

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

query I rowsort
SELECT + 21 - - cor0.col0 FROM tab2 cor0
----
100
28
99

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

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

query I rowsort
SELECT ALL + col1 * ( + cor0.col2 ) + + 2 + + cor0.col2 FROM tab0 AS cor0
----
100
2873
7546

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

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

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

skipif mysql # not compatible
query I rowsort
SELECT ALL CAST ( 2 AS REAL ) * + col0 AS col1 FROM tab0 cor0
----
178
48
70

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

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

query I rowsort
SELECT ALL + 59 + + col1 AS col2 FROM tab2 AS cor0
----
118
76
90

query I rowsort
SELECT DISTINCT col1 + 78 * + col2 * cor0.col1 FROM tab2 AS cor0
----
119711
50405
65317

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

query I rowsort
SELECT DISTINCT - + col2 * col1 * col1 AS col2 FROM tab2 AS cor0
----
-10982
-25947
-90506

query I rowsort
SELECT DISTINCT + - 25 AS col2 FROM tab2 cor0
----
-25

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

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

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

query I rowsort
SELECT DISTINCT - 86 * - col0 + + col0 AS col2 FROM tab0 AS cor0
----
2088
3045
7743

query I rowsort
SELECT DISTINCT + + 9 - - ( + col0 ) AS col0 FROM tab1 AS cor0
----
12
73
89

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

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

query I rowsort
SELECT 33 * - 2 AS col2 FROM tab1 AS cor0
----
-66
-66
-66

onlyif mysql # use DIV operator for integer division
query I rowsort label-1172
SELECT ALL col1 DIV 49 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-1172
SELECT ALL col1 / 49 FROM tab2 AS cor0
----
0
0
1

query I rowsort
SELECT ALL 15 + cor0.col0 FROM tab0 AS cor0
----
104
39
50

query I rowsort
SELECT - + col1 * 84 FROM tab2 AS cor0
----
-1428
-2604
-4956

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

query I rowsort
SELECT DISTINCT 16 * col1 + ( col0 ) * cor0.col2 FROM tab1 AS cor0
----
3808
578
7888

query I rowsort
SELECT ALL + 56 AS col2 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to b5ba4b44e3deadce1edb30e76df61200

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

query I rowsort
SELECT + 19 AS col2 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 86c53e8567a17c8d91fc5aff119e0498

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

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

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

query I rowsort
SELECT DISTINCT col1 * 69 * + 53 AS col1 FROM tab2 AS cor0
----
113367
215763
62169

query I rowsort
SELECT ALL + col2 * 46 AS col2 FROM tab0 AS cor0
----
1518
3772
46

onlyif mysql # use DIV operator for integer division
query I rowsort label-1184
SELECT DISTINCT col0 * col1 DIV + ( - col2 ) FROM tab0
----
-3395
-62
-98

skipif mysql # not compatible
query I rowsort label-1184
SELECT DISTINCT col0 * col1 / + ( - col2 ) FROM tab0
----
-3395
-62
-98

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

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

query I rowsort
SELECT + col1 * ( ( + col1 ) ) * + col2 FROM tab0 AS cor0
----
244068
679042
9409

query I rowsort
SELECT - 0 * col2 * - col2 AS col0 FROM tab1
----
0
0
0

query I rowsort
SELECT - col2 * - 28 - - tab1.col0 FROM tab1
----
1515
1660
2768

query I rowsort
SELECT + ( + 80 ) FROM tab2 AS cor0
----
80
80
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-1191
SELECT ALL 86 DIV tab0.col0 AS col2 FROM tab0, tab1 cor0
----
9 values hashing to 3294894d5691618c467f11d859a940f4

skipif mysql # not compatible
query I rowsort label-1191
SELECT ALL 86 / tab0.col0 AS col2 FROM tab0, tab1 cor0
----
9 values hashing to 3294894d5691618c467f11d859a940f4

onlyif mysql # use DIV operator for integer division
query I rowsort label-1192
SELECT DISTINCT tab1.col1 DIV + 8 AS col2 FROM tab1
----
1
3

skipif mysql # not compatible
query I rowsort label-1192
SELECT DISTINCT tab1.col1 / + 8 AS col2 FROM tab1
----
1
3

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

query I rowsort
SELECT + col1 * cor0.col2 * + 92 - col2 AS col1 FROM tab1 AS cor0
----
114720
129114
52383

query I rowsort
SELECT - + col1 * ( + 47 ) + col0 FROM tab0 cor0
----
-4018
-4188
-4524

query I rowsort
SELECT ALL col0 + col0 * 82 FROM tab2 AS cor0
----
581
6474
6557

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

skipif mysql # not compatible
query I rowsort label-1197
SELECT ALL + col0 + - CAST ( - 35 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
124
59
70

query I rowsort
SELECT - - cor0.col1 + + 3 FROM tab0 cor0
----
100
89
94

query I rowsort
SELECT + col0 + ( - 11 ) AS col2 FROM tab0 AS cor0
----
13
24
78

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 62 + + 49 col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 0085b5b605f50e9a12a763af4b7ec627

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

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

query I rowsort
SELECT DISTINCT - + 76 FROM tab2 AS cor0
----
-76

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

skipif mysql # not compatible
query I rowsort label-1208
SELECT - CAST ( - col1 AS INTEGER ) + col1 FROM tab2
----
118
34
62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1209
SELECT ( + col1 ) * + 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-1209
SELECT ( + col1 ) * + CAST ( NULL AS INTEGER ) col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 88 + col0 AS col2 FROM tab2
----
166
167
95

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

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

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

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

query I rowsort
SELECT DISTINCT tab0.col2 + + 22 FROM tab2, tab1, tab2 AS cor0, tab0
----
104
23
55

query I rowsort
SELECT tab2.col2 + 84 FROM tab2, tab0 AS cor0
----
9 values hashing to 33760a2c7842fb7d54759f082448ff8b

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

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

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

query I rowsort
SELECT + col2 * + 30 AS col2 FROM tab2
----
1140
780
810

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1218
SELECT ALL col0 - - CAST( col1 AS SIGNED ) * + col2 AS col0 FROM tab2
----
1612
725
844

skipif mysql # not compatible
query I rowsort label-1218
SELECT ALL col0 - - CAST ( col1 AS INTEGER ) * + col2 AS col0 FROM tab2
----
1612
725
844

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

query I rowsort
SELECT + col1 * 20 AS col0 FROM tab1 AS cor0
----
200
260
520

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

query I rowsort
SELECT col1 - col1 * col2 * col1 FROM tab0 cor0
----
-243982
-678951
-9312

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

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

query I rowsort
SELECT ALL - ( + 49 ) * - col1 * + 94 FROM tab0 AS cor0
----
396116
419146
446782

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

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

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

skipif mysql # not compatible
query I rowsort label-1228
SELECT DISTINCT CAST ( - 58 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-58

query I rowsort
SELECT DISTINCT + 20 - + 45 AS col1 FROM tab0 AS cor0
----
-25

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

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

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

query I rowsort
SELECT ALL col1 - + 46 AS col0 FROM tab1 cor0
----
-20
-33
-36

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

skipif mysql # not compatible
query I rowsort label-1233
SELECT ALL CAST ( + 77 AS INTEGER ) * + cor0.col1 AS col1 FROM tab2 AS cor0
----
1309
2387
4543

query I rowsort
SELECT + ( col2 ) + col0 * ( 50 ) AS col0 FROM tab1 AS cor0
----
204
3257
4096

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

query I rowsort
SELECT DISTINCT - 41 - + 84 AS col1 FROM tab1
----
-125

query I rowsort
SELECT ALL - ( + col2 ) * 64 + 4 AS col2 FROM tab1 AS cor0
----
-3452
-3644
-6140

onlyif mysql # use DIV operator for integer division
query I rowsort label-1238
SELECT DISTINCT + cor0.col1 + col0 * ( - col1 ) DIV col1 FROM tab1 cor0
----
-54
-67
23

skipif mysql # not compatible
query I rowsort label-1238
SELECT DISTINCT + cor0.col1 + col0 * ( - col1 ) / col1 FROM tab1 cor0
----
-54
-67
23

query I rowsort
SELECT + 34 - col1 FROM tab1 AS cor0
----
21
24
8

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

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

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

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

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

query I rowsort
SELECT tab1.col1 * ( - col0 ) * col2 AS col0 FROM tab1
----
-36480
-4212
-99840

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1246
SELECT + CAST( - 92 AS SIGNED ) + col0 FROM tab1
----
-12
-28
-89

skipif mysql # not compatible
query I rowsort label-1246
SELECT + CAST ( - 92 AS INTEGER ) + col0 FROM tab1
----
-12
-28
-89

query I rowsort
SELECT 86 + + 10 FROM tab0
----
96
96
96

query I rowsort
SELECT col2 + ( col2 ) * - col2 FROM tab2
----
-1406
-650
-702

query I rowsort
SELECT ALL col0 * 34 FROM tab2 AS cor0
----
238
2652
2686

query I rowsort
SELECT + col1 * 76 * + col1 + col2 AS col1 FROM tab0 cor0
----
562129
629438
715085

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

query I rowsort
SELECT DISTINCT cor0.col1 * - col1 * - cor0.col1 AS col1 FROM tab0 AS cor0
----
636056
753571
912673

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

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

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

skipif mysql # not compatible
query I rowsort label-1254
SELECT - cor0.col2 + + CAST ( NULL AS REAL ) + 25 * + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1256
SELECT ALL ( + col0 ) * + tab2.col2 + col0 DIV + col0 AS col1 FROM tab2
----
190
2029
3003

skipif mysql # not compatible
query I rowsort label-1256
SELECT ALL ( + col0 ) * + tab2.col2 + col0 / + col0 AS col1 FROM tab2
----
190
2029
3003

onlyif mysql # use DIV operator for integer division
query I rowsort label-1257
SELECT ALL + 53 + col0 DIV + 70 AS col0 FROM tab0
----
53
53
54

skipif mysql # not compatible
query I rowsort label-1257
SELECT ALL + 53 + col0 / + 70 AS col0 FROM tab0
----
53
53
54

query I rowsort
SELECT - ( + col0 * - col0 ) FROM tab2
----
49
6084
6241

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

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

skipif mysql # not compatible
query I rowsort label-1260
SELECT - cor0.col1 / - 26 FROM tab1 AS cor0
----
0
0
1

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

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

query I rowsort
SELECT + col1 - - 75 * col0 FROM tab1
----
251
4810
6013

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

query I rowsort
SELECT col2 * - col2 + - 71 AS col0 FROM tab1
----
-2987
-3320
-9287

query I rowsort
SELECT ALL col2 * 53 FROM tab0
----
1749
4346
53

query I rowsort
SELECT DISTINCT col0 * - 35 FROM tab2
----
-245
-2730
-2765

query I rowsort
SELECT ALL - cor0.col0 * 79 AS col1 FROM tab2 cor0
----
-553
-6162
-6241

query I rowsort
SELECT + 25 + - col0 * + col1 FROM tab0 cor0
----
-2039
-3370
-8074

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1270
SELECT DISTINCT CAST( col1 AS SIGNED ) 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-1270
SELECT DISTINCT CAST ( col1 AS INTEGER ) col2 FROM tab2 AS cor0
----
17
31
59

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

query I rowsort
SELECT - cor0.col0 + 36 FROM tab2 AS cor0
----
-42
-43
29

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

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

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

skipif mysql # not compatible
query I rowsort label-1275
SELECT + col0 / + 78 AS col0 FROM tab2 AS cor0
----
0
1
1

query I rowsort
SELECT DISTINCT - ( - cor0.col0 ) + col2 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT ALL + col2 + - cor0.col0 * col2 + 42 FROM tab0 AS cor0
----
-717
-7174
8

query I rowsort
SELECT + col1 * + col1 + ( 8 ) * - col0 FROM tab1 AS cor0
----
-412
-471
652

query I rowsort
SELECT ALL + 66 + col1 AS col1 FROM tab1 AS cor0
----
76
79
92

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

query I rowsort
SELECT DISTINCT + 56 + - cor0.col0 + - ( col0 ) FROM tab1 AS cor0
----
-104
-72
50

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

query I rowsort
SELECT + + 11 + col0 FROM tab0 AS cor0
----
100
35
46

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1285
SELECT ALL + col1 * + 4 + cor0.col2 DIV col2 FROM tab1 AS cor0
----
105
41
53

skipif mysql # not compatible
query I rowsort label-1285
SELECT ALL + col1 * + 4 + cor0.col2 / col2 FROM tab1 AS cor0
----
105
41
53

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - col0 + col2 * - cor0.col1 col2 FROM tab2 AS cor0
----
-620
3068
697

query I rowsort
SELECT col1 + - col0 + col1 FROM tab1
----
-44
-54
49

query I rowsort
SELECT DISTINCT 78 * + col1 * ( + 16 ) + - col0 FROM tab0
----
107304
113479
121021

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1292
SELECT - col0 DIV col0 + col1 * + col0 AS col1 FROM tab1 AS cor0
----
1039
639
77

skipif mysql # not compatible
query I rowsort label-1292
SELECT - col0 / col0 + col1 * + col0 AS col1 FROM tab1 AS cor0
----
1039
639
77

query I rowsort
SELECT ALL ( 5 ) + col0 * ( 58 ) + - col2 * col0 AS col0 FROM tab1 AS cor0
----
-3035
17
69

query I rowsort
SELECT - 22 + col2 AS col1 FROM tab0 cor0
----
-21
11
60

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

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

query I rowsort
SELECT - col0 + - 97 FROM tab0 cor0
----
-121
-132
-186

query I rowsort
SELECT + cor0.col2 * + ( - col0 * - col0 ) + - 39 FROM tab0 AS cor0
----
1186
18969
649483

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * + 31 col0 FROM tab1 AS cor0
----
1984
2480
93

query I rowsort
SELECT cor0.col2 * + col1 - col2 * - cor0.col1 AS col2 FROM tab1 AS cor0
----
1140
2496
2808

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

query I rowsort
SELECT - 10 * col2 * col0 FROM tab0
----
-350
-72980
-7920

query I rowsort
SELECT - 93 + + col2 FROM tab0 AS cor0
----
-11
-60
-92

query I rowsort
SELECT DISTINCT - 82 - cor1.col2 AS col0 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
-115
-164
-83

query I rowsort
SELECT DISTINCT - cor0.col1 * + col2 * 11 + col0 AS col1 FROM tab2 AS cor0
----
-16796
-7027
-9200

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

query I rowsort
SELECT ALL - 51 FROM tab2, tab2 cor0
----
9 values hashing to 08d3853e39924d3c636260a6dd856837

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 4 + - col2 * + col2 col0 FROM tab0 cor0
----
-1093
-5
-6728

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

query I rowsort
SELECT - ( 15 ) + - col2 FROM tab1 AS cor0
----
-111
-69
-72

query I rowsort
SELECT 91 AS col0 FROM tab1, tab1 cor0
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277

onlyif mysql # use DIV operator for integer division
query I rowsort label-1314
SELECT - col1 DIV CAST( ( + col1 ) AS SIGNED ) + + col2 * col1 * col2 FROM tab1
----
119807
32489
75815

skipif mysql # not compatible
query I rowsort label-1314
SELECT - col1 / CAST ( ( + col1 ) AS INTEGER ) + + col2 * col1 * col2 FROM tab1
----
119807
32489
75815

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

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

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

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

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

query I rowsort
SELECT ALL + 51 AS col2 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to 02a7de94365b8cb5b5cb92c4b1d1e7c5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 29 + - col2 * - col1 * col0 col0 FROM tab2
----
119681
51063
5888

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

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

skipif mysql # not compatible
query I rowsort label-1322
SELECT + + col2 / col0 + + col0 FROM tab0 AS cor0
----
25
35
89

query I rowsort
SELECT col1 * 21 + col2 AS col1 FROM tab1 AS cor0
----
267
369
600

query I rowsort
SELECT 0 * col0 * col1 FROM tab1
----
0
0
0

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

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

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

query I rowsort
SELECT + cor0.col2 * - 7 + col0 * + col1 FROM tab2 AS cor0
----
1077
28
4420

query I rowsort
SELECT + col0 + - 6 * + col0 AS col1 FROM tab2 AS cor0
----
-35
-390
-395

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

query I rowsort
SELECT 40 + col0 FROM tab2 AS cor0
----
118
119
47

query I rowsort
SELECT - + 12 * col0 FROM tab1 AS cor0
----
-36
-768
-960

query I rowsort
SELECT DISTINCT - - col2 * col0 + - col1 * col2 - col1 AS col0 FROM tab0 AS cor0
----
-159
-2132
-255

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

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

query I rowsort
SELECT DISTINCT + - ( + cor0.col1 ) * 64 FROM tab0 AS cor0
----
-5504
-5824
-6208

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

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

query I rowsort
SELECT ALL - col1 * + 77 AS col0 FROM tab1 AS cor0
----
-1001
-2002
-770

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

query I rowsort
SELECT DISTINCT - col0 + 24 AS col1 FROM tab0 AS cor0
----
-11
-65
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-1341
SELECT ALL - col0 DIV CAST( 77 AS SIGNED ) - col0 FROM tab1 AS cor0
----
-3
-64
-81

skipif mysql # not compatible
query I rowsort label-1341
SELECT ALL - col0 / CAST ( 77 AS INTEGER ) - col0 FROM tab1 AS cor0
----
-3
-64
-81

query I rowsort
SELECT DISTINCT col0 + - 10 * cor0.col0 * - col0 AS col0 FROM tab1 cor0
----
41024
64080
93

onlyif mysql # use DIV operator for integer division
query I rowsort label-1343
SELECT ALL - - col1 DIV ( + col2 ) + col2 - 64 FROM tab0 AS cor0
----
-29
19
34

skipif mysql # not compatible
query I rowsort label-1343
SELECT ALL - - col1 / ( + col2 ) + col2 - 64 FROM tab0 AS cor0
----
-29
19
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + ( 98 ) * col1 col2 FROM tab2 AS cor0
----
1587
3031
5704

query I rowsort
SELECT DISTINCT col0 * - col1 * - 55 FROM tab1
----
35200
4290
57200

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

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

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

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

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

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

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

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

query I rowsort
SELECT ALL + col0 * + 89 AS col0 FROM tab2
----
623
6942
7031

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

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

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

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

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

query I rowsort
SELECT col2 * 72 AS col1 FROM tab0
----
2376
5904
72

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

query I rowsort
SELECT col0 + - 62 FROM tab2 AS cor0
----
-55
16
17

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

query I rowsort
SELECT DISTINCT + col2 + - 9 FROM tab2
----
17
18
29

query I rowsort
SELECT + 90 + col2 AS col0 FROM tab2 AS cor0
----
116
117
128

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1364
SELECT col0 * + col1 * + CAST( - col0 * + col2 AS SIGNED ) + + 65 FROM tab2 AS cor0
----
-4031621
-40948
-9332791

skipif mysql # not compatible
query I rowsort label-1364
SELECT col0 * + col1 * + CAST ( - col0 * + col2 AS INTEGER ) + + 65 FROM tab2 AS cor0
----
-4031621
-40948
-9332791

onlyif mysql # use DIV operator for integer division
query I rowsort label-1365
SELECT - col0 + col1 DIV + col0 + - col0 AS col1 FROM tab2 AS cor0
----
-10
-156
-158

skipif mysql # not compatible
query I rowsort label-1365
SELECT - col0 + col1 / + col0 + - col0 AS col1 FROM tab2 AS cor0
----
-10
-156
-158

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

query I rowsort
SELECT - - col0 * col1 * - 54 FROM tab1 AS cor0
----
-34560
-4212
-56160

query I rowsort
SELECT - + cor0.col2 * + col1 + col0 * col1 + + col2 AS col2 FROM tab2 AS cor0
----
-593
3094
735

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

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

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

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

query I rowsort
SELECT + 80 + - col2 * col2 FROM tab0 AS cor0
----
-1009
-6644
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 79 + + 74 + + col1 col1 FROM tab2
----
170
184
212

query I rowsort
SELECT ALL ( + 37 ) + - col0 FROM tab0
----
-52
13
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + 96 col0 FROM tab0
----
61
7
72

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

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

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

query I rowsort
SELECT ALL + + 94 FROM tab1 AS cor0
----
94
94
94

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1381
SELECT ( col0 ) * - col0 + - 50 DIV col1 + + col0 FROM tab0 AS cor0
----
-1190
-552
-7832

skipif mysql # not compatible
query I rowsort label-1381
SELECT ( col0 ) * - col0 + - 50 / col1 + + col0 FROM tab0 AS cor0
----
-1190
-552
-7832

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

query I rowsort
SELECT - - 81 + - col2 FROM tab2 AS cor0
----
43
54
55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + + cor0.col0 * ( + col1 ) col2 FROM tab1 AS cor0
----
104
1053
650

query I rowsort
SELECT DISTINCT - - 63 FROM tab1 AS cor0
----
63

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

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

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

skipif mysql # not compatible
query I rowsort label-1388
SELECT DISTINCT col2 / col0 AS col2 FROM tab0
----
0
1

query I rowsort
SELECT cor0.col2 + cor0.col0 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 8733ba2dd568938e338b27ad757d3e3b

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT col0 * + ( - col1 ) + + 70 AS col1 FROM tab1
----
-570
-8
-970

query I rowsort
SELECT 95 * col1 FROM tab2
----
1615
2945
5605

query I rowsort
SELECT ALL + - col1 - + col2 * col1 AS col0 FROM tab1 AS cor0
----
-1261
-1430
-580

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

query I rowsort
SELECT DISTINCT col0 + 38 AS col2 FROM tab1 AS cor0
----
102
118
41

onlyif mysql # use DIV operator for integer division
query I rowsort label-1402
SELECT ( 28 ) DIV - col1 AS col1 FROM tab1 cor0
----
-1
-2
-2

skipif mysql # not compatible
query I rowsort label-1402
SELECT ( 28 ) / - col1 AS col1 FROM tab1 cor0
----
-1
-2
-2

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

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

query I rowsort
SELECT + col2 * - col0 + col0 + - cor0.col2 * + cor0.col1 FROM tab2 AS cor0
----
-1019
-3484
-3569

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

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

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

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

query I rowsort
SELECT + tab2.col2 * tab2.col0 + - col2 FROM tab2
----
162
2002
2964

query I rowsort
SELECT + col0 + - 72 AS col2 FROM tab1 cor0
----
-69
-8
8

onlyif mysql # use DIV operator for integer division
query I rowsort label-1411
SELECT + col1 * 99 DIV col1 FROM tab0 AS cor0
----
99
99
99

skipif mysql # not compatible
query I rowsort label-1411
SELECT + col1 * 99 / col1 FROM tab0 AS cor0
----
99
99
99

query I rowsort
SELECT ALL - 1 * col1 FROM tab2
----
-17
-31
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 18 col0 FROM tab2, tab1, tab1 cor0
----
27 values hashing to 903ac227935c1532300db45a8537c595

query I rowsort
SELECT DISTINCT + col1 * + col2 * + col1 AS col2 FROM tab2
----
10982
25947
90506

query I rowsort
SELECT - col2 * 84 * - col1 FROM tab0
----
238392
626808
8148

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

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

query I rowsort
SELECT + - col0 * - 27 FROM tab0 AS cor0
----
2403
648
945

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

query I rowsort
SELECT + col1 * 25 FROM tab2 AS cor0
----
1475
425
775

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1422
SELECT ALL - CAST( 44 AS SIGNED ) FROM tab0
----
-44
-44
-44

skipif mysql # not compatible
query I rowsort label-1422
SELECT ALL - CAST ( 44 AS INTEGER ) FROM tab0
----
-44
-44
-44

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

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

query I rowsort
SELECT ALL + - col0 + - 15 * + col1 FROM tab0 cor0
----
-1314
-1454
-1490

query I rowsort
SELECT ALL + + col1 + + 81 * - col2 + + col0 AS col2 FROM tab1 AS cor0
----
-4345
-4543
-7683

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1429
SELECT DISTINCT + + 90 DIV 51 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-1429
SELECT DISTINCT + + 90 / 51 FROM tab2 AS cor0
----
1

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

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

query I rowsort
SELECT DISTINCT 15 + + col2 AS col0 FROM tab0 cor0
----
16
48
97

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

query I rowsort
SELECT DISTINCT + col2 + col0 * 83 FROM tab2 AS cor0
----
608
6500
6595

query I rowsort
SELECT col2 * + 47 FROM tab0
----
1551
3854
47

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

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

query I rowsort
SELECT col0 * col0 + 74 * - col0 FROM tab1
----
-213
-640
480

query I rowsort
SELECT + 38 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7

query I rowsort
SELECT DISTINCT col1 * col2 + - 87 * col2 AS col1 FROM tab1
----
-3294
-4389
-7104

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 60 * + cor0.col2 * - 73 + col2 * col1 col0 FROM tab2 AS cor0
----
-112346
-117423
-165794

query I rowsort
SELECT + + 93 + col0 AS col1 FROM tab1 AS cor0
----
157
173
96

query I rowsort
SELECT DISTINCT + col2 * col0 - 38 AS col1 FROM tab1 cor0
----
124
3610
7642

query I rowsort
SELECT - col0 * - cor0.col2 + 14 AS col2 FROM tab0 AS cor0
----
49
7312
806

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

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

query I rowsort
SELECT DISTINCT + col1 * + col2 + + 40 FROM tab2 AS cor0
----
1574
686
877

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1447
SELECT - col2 * + col1 + + col0 DIV col0 - - cor0.col0 * - col2 FROM tab1 AS cor0
----
-1565
-4217
-8927

skipif mysql # not compatible
query I rowsort label-1447
SELECT - col2 * + col1 + + col0 / col0 - - cor0.col0 * - col2 FROM tab1 AS cor0
----
-1565
-4217
-8927

query I rowsort
SELECT - ( - col0 ) * col0 + cor0.col2 * col0 AS col0 FROM tab2 AS cor0
----
238
8112
9243

skipif mysql # not compatible
query I rowsort
SELECT CAST ( 30 AS REAL ) AS col1 FROM tab0
----
30
30
30

query I rowsort
SELECT 94 FROM tab1, tab2 AS cor0
----
9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24

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

query I rowsort
SELECT DISTINCT - + 18 + col1 * 13 FROM tab0 AS cor0
----
1100
1165
1243

query I rowsort
SELECT col0 + col2 * + ( 81 ) FROM tab1 AS cor0
----
4377
4681
7856

query I rowsort
SELECT ALL + + 99 * col0 - 83 * + col0 FROM tab0 cor0
----
1424
384
560

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 12 * col0 col0 FROM tab1 AS cor0
----
-36
-768
-960

query I rowsort
SELECT 16 * - col1 + col0 FROM tab0 AS cor0
----
-1352
-1367
-1517

query I rowsort
SELECT ALL + 66 * + cor0.col0 AS col2 FROM tab1 AS cor0
----
198
4224
5280

query I rowsort
SELECT DISTINCT col0 + - 37 FROM tab1
----
-34
27
43

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

skipif mysql # not compatible
query I rowsort label-1459
SELECT DISTINCT CAST ( 86 AS INTEGER ) + col2 AS col2 FROM tab2 AS cor0
----
112
113
124

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

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

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

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

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

query I rowsort
SELECT DISTINCT ( 10 ) + - col0 * - cor0.col1 * + col2 AS col2 FROM tab1 AS cor0
----
36490
4222
99850

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1467
SELECT ALL + 13 DIV - col2 FROM tab0
----
-13
0
0

skipif mysql # not compatible
query I rowsort label-1467
SELECT ALL + 13 / - col2 FROM tab0
----
-13
0
0

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col0 ) + - col0 + ( 9 + col0 ) * + 83 col0 FROM tab1 AS cor0
----
5931
7227
990

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

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

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

query I rowsort
SELECT ALL col1 * + col2 - col2 * - 58 AS col1 FROM tab1
----
3876
4536
6816

query I rowsort
SELECT + 9 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to ebef7303942834ca1e6ca8604ec18a07

query I rowsort
SELECT ALL col0 * col2 - - col1 * ( + col0 ) AS col0 FROM tab2
----
406
4345
6630

onlyif mysql # use DIV operator for integer division
query I rowsort label-1477
SELECT col0 * col1 + col1 DIV 77 - col0 FROM tab0
----
2041
3361
8011

skipif mysql # not compatible
query I rowsort label-1477
SELECT col0 * col1 + col1 / 77 - col0 FROM tab0
----
2041
3361
8011

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

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

query I rowsort
SELECT - 40 * col1 FROM tab2
----
-1240
-2360
-680

onlyif mysql # use DIV operator for integer division
query I rowsort label-1480
SELECT - cor0.col2 DIV 80 FROM tab0, tab1 AS cor0
----
9 values hashing to 721682d0719de924079c33bd72eef789

skipif mysql # not compatible
query I rowsort label-1480
SELECT - cor0.col2 / 80 FROM tab0, tab1 AS cor0
----
9 values hashing to 721682d0719de924079c33bd72eef789

query I rowsort
SELECT DISTINCT - col0 + cor0.col2 * 43 AS col1 FROM tab2 AS cor0
----
1040
1154
1555

query I rowsort
SELECT 59 + col0 FROM tab2 AS cor0
----
137
138
66

query I rowsort
SELECT ALL - + 42 FROM tab2, tab0 cor0
----
9 values hashing to 9894093f29c0defae91347934f060329

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

query I rowsort
SELECT ALL + col0 * + col0 * + 69 - col2 AS col1 FROM tab1 AS cor0
----
282567
441504
567

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

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

query I rowsort
SELECT DISTINCT + col2 + - 1 AS col1 FROM tab0 AS cor0
----
0
32
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-1488
SELECT ALL col0 DIV ( 41 ) + + col1 FROM tab0 AS cor0
----
86
93
97

skipif mysql # not compatible
query I rowsort label-1488
SELECT ALL col0 / ( 41 ) + + col1 FROM tab0 AS cor0
----
86
93
97

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

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

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

query I rowsort
SELECT ALL col1 * col0 - + 19 FROM tab1 AS cor0
----
1021
59
621

query I rowsort
SELECT + col0 * + 72 + cor0.col1 * + cor0.col1 FROM tab2 cor0
----
1465
5977
9097

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + tab1.col0 ) - + tab1.col0 col0 FROM tab1
----
-128
-160
-6

query I rowsort
SELECT ALL - - cor0.col0 + 99 AS col1 FROM tab0 AS cor0
----
123
134
188

query I rowsort
SELECT - col1 * col2 + 7 + cor0.col1 AS col2 FROM tab2 cor0
----
-1468
-622
-799

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

query I rowsort
SELECT + - col0 * - 52 * - col2 AS col0 FROM tab0 AS cor0
----
-1820
-379496
-41184

query I rowsort
SELECT ALL - col2 * col0 * + 14 + - cor0.col2 * - ( + col2 ) AS col0 FROM tab0 AS cor0
----
-489
-95448
-9999

onlyif mysql # use DIV operator for integer division
query I rowsort label-1500
SELECT col1 DIV + 63 - + cor0.col2 FROM tab2 cor0
----
-26
-27
-38

skipif mysql # not compatible
query I rowsort label-1500
SELECT col1 / + 63 - + cor0.col2 FROM tab2 cor0
----
-26
-27
-38

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

query I rowsort
SELECT + col2 * 21 FROM tab2
----
546
567
798

query I rowsort
SELECT DISTINCT - col2 * + 18 AS col2 FROM tab0
----
-1476
-18
-594

query I rowsort
SELECT DISTINCT + col0 + - 12 * + col0 FROM tab2 AS cor0
----
-77
-858
-869

query I rowsort
SELECT ALL + col1 + - col1 * col1 FROM tab2 AS cor0
----
-272
-3422
-930

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

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

query I rowsort
SELECT - col0 + + col1 * col1 * ( 41 ) FROM tab2 AS cor0
----
11770
142643
39394

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

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

query I rowsort
SELECT ALL - + 22 * cor0.col0 + cor0.col1 AS col2 FROM tab0 cor0
----
-1867
-442
-673

query I rowsort
SELECT + - 28 + + col0 * col2 FROM tab0 AS cor0
----
7
7270
764

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - col0 ) * col0 * 97 + 86 col0 FROM tab2 AS cor0
----
-4667
-590062
-605291

query I rowsort
SELECT + 3 - cor0.col2 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 685d5c3f69a1e66b9e12c38ff9ca0d3a

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

query I rowsort
SELECT ALL 96 + cor0.col1 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 7aea66a026ca6117f48a84e11ba23cd0

query I rowsort
SELECT col1 * 48 + + col1 AS col0 FROM tab1
----
1274
490
637

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

skipif mysql # not compatible
query I rowsort label-1516
SELECT ALL col1 + - col0 / + col2 AS col2 FROM tab1 AS cor0
----
13
26
9

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

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

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

query I rowsort
SELECT DISTINCT - + 52 * + col2 - 9 AS col0 FROM tab0 AS cor0
----
-1725
-4273
-61

query I rowsort
SELECT ALL - 32 * col2 AS col2 FROM tab0 AS cor0
----
-1056
-2624
-32

query I rowsort
SELECT ALL - + 87 FROM tab0 cor0
----
-87
-87
-87

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

query I rowsort
SELECT DISTINCT - ( 7 + + col0 ) FROM tab2
----
-14
-85
-86

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

query I rowsort
SELECT + ( 24 ) * - col1 + + 56 * + ( col0 ) AS col2 FROM tab0
----
-368
-720
2800

query I rowsort
SELECT ALL - 50 AS col1 FROM tab0
----
-50
-50
-50

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1530
SELECT + col1 * col1 + col0 + col0 DIV + cor0.col0 FROM tab0 AS cor0
----
7421
8371
9445

skipif mysql # not compatible
query I rowsort label-1530
SELECT + col1 * col1 + col0 + col0 / + cor0.col0 FROM tab0 AS cor0
----
7421
8371
9445

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

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

query I rowsort
SELECT ALL + col2 + col0 + tab2.col0 * col0 AS col0 FROM tab2
----
6188
6358
83

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

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

query I rowsort
SELECT DISTINCT - tab0.col1 * + col1 * col1 FROM tab0
----
-636056
-753571
-912673

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

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

query I rowsort
SELECT DISTINCT tab1.col1 FROM tab1 WHERE NOT NULL = NULL
----

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1541
SELECT ALL - col2 * - col1 * + col0 - col0 DIV - col0 AS col1 FROM tab2
----
119653
51035
5860

skipif mysql # not compatible
query I rowsort label-1541
SELECT ALL - col2 * - col1 * + col0 - col0 / - col0 AS col1 FROM tab2
----
119653
51035
5860

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

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

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

query I rowsort
SELECT col0 * - tab1.col1 + + tab1.col1 + col1 FROM tab1
----
-1014
-26
-620

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

query I rowsort
SELECT + col0 * col2 * + col1 + - col0 * col2 + col1 FROM tab1
----
32842
4076
92173

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 92 + - col0 col1 FROM tab1 AS cor0
----
12
28
89

query I rowsort
SELECT ALL + ( col2 ) * col2 + - col1 FROM tab2 AS cor0
----
1427
617
698

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * tab1.col1 + col0 col1 FROM tab1
----
1120
704
81

query I rowsort
SELECT - col1 + tab1.col2 * - col2 * - col2 FROM tab1
----
157438
185183
884723

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

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

query I rowsort
SELECT col1 * + col1 AS col2 FROM tab0 cor0 WHERE NOT col0 + + col0 BETWEEN col1 AND ( + col0 * + col0 )
----
7396
9409

query I rowsort
SELECT ALL + col1 + col1 - col0 FROM tab2
----
-45
40
55

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 / - col2 + + col2 col2 FROM tab1 WHERE NOT NULL BETWEEN ( col1 ) AND NULL
----

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

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

query I rowsort
SELECT - col0 * col0 * - col1 + + col2 AS col0 FROM tab0
----
118826
49569
720893

query III rowsort
SELECT * FROM tab2 WHERE NULL > ( col1 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-1566
SELECT col1 DIV tab0.col2 + + col2 FROM tab0
----
35
83
98

skipif mysql # not compatible
query I rowsort label-1566
SELECT col1 / tab0.col2 + + col2 FROM tab0
----
35
83
98

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

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

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

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

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1572
SELECT DISTINCT + ( col1 ) * - col2 + col2 DIV + col0 - - tab1.col0 * + col2 AS col0 FROM tab1
----
-1224
3078
6433

skipif mysql # not compatible
query I rowsort label-1572
SELECT DISTINCT + ( col1 ) * - col2 + col2 / + col0 - - tab1.col0 * + col2 AS col0 FROM tab1
----
-1224
3078
6433

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1574
SELECT ALL 17 / col1 + tab0.col1 col2 FROM tab0
----
86
91
97

query I rowsort
SELECT ALL - col0 * + col0 + + 63 FROM tab0
----
-1162
-513
-7858

query I rowsort
SELECT ALL - 99 + - col2 * - 77 AS col0 FROM tab2
----
1903
1980
2827

query I rowsort
SELECT ALL col2 + tab0.col0 + - col0 * - col0 FROM tab0
----
1261
633
8092

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

query I rowsort
SELECT ALL 5 + col2 FROM tab2 AS cor0
----
31
32
43

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - col0 + ( col0 ) * col1 col0 FROM tab0
----
2126
3457
8101

onlyif mysql # use DIV operator for integer division
query I rowsort label-1581
SELECT - col2 + - col1 DIV + col0 AS col0 FROM tab0 AS cor0
----
-3
-36
-83

skipif mysql # not compatible
query I rowsort label-1581
SELECT - col2 + - col1 / + col0 AS col0 FROM tab0 AS cor0
----
-3
-36
-83

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

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

query I rowsort
SELECT col1 * col2 * - col2 - col1 AS col2 FROM tab0
----
-194
-611975
-93740

query I rowsort
SELECT DISTINCT + ( - 36 ) * - col2 AS col2 FROM tab2 AS cor0
----
1368
936
972

query I rowsort
SELECT - + 52 + - col1 FROM tab0 AS cor0
----
-138
-143
-149

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

query I rowsort
SELECT ( - 25 ) FROM tab0, tab1 AS cor0
----
9 values hashing to 40ac8fd000b2e49317aed2411077839e

query I rowsort
SELECT tab0.col0 * - 36 FROM tab0, tab2 AS cor0
----
9 values hashing to a3a301637e6b093aa15c6212559d7add

query I rowsort
SELECT col1 + col0 * col2 * + col2 FROM tab0
----
132
26222
598527

query I rowsort
SELECT 26 FROM tab0, tab0 cor0
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584

query I rowsort
SELECT + col0 * + 46 - 63 AS col2 FROM tab2
----
259
3525
3571

query I rowsort
SELECT + col0 + ( 45 * col0 ) FROM tab0
----
1104
1610
4094

query I rowsort
SELECT DISTINCT - col2 * + ( 46 ) FROM tab0
----
-1518
-3772
-46

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

query I rowsort
SELECT tab0.col1 + 78 FROM tab0
----
164
169
175

onlyif mysql # use DIV operator for integer division
query I rowsort label-1596
SELECT ALL col2 DIV 29 AS col0 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-1596
SELECT ALL col2 / 29 AS col0 FROM tab2
----
0
0
1

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

skipif mysql # not compatible
query I rowsort label-1597
SELECT - + CAST ( ( + col0 ) AS INTEGER ) * ( + col1 ) + cor0.col0 AS col0 FROM tab2 AS cor0
----
-1264
-210
-4524

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

skipif mysql # not compatible
query I rowsort label-1598
SELECT - CAST ( NULL AS INTEGER ) + col0 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col0 * + col0 + - col0 * 46 * col0 - col2 FROM tab0
----
-25953
-356527
-55126

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1600
SELECT DISTINCT - CAST( 35 AS SIGNED ) * - col0 FROM tab0 AS cor0
----
1225
3115
840

skipif mysql # not compatible
query I rowsort label-1600
SELECT DISTINCT - CAST ( 35 AS INTEGER ) * - col0 FROM tab0 AS cor0
----
1225
3115
840

query I rowsort
SELECT - 27 * col0 * - col0 AS col1 FROM tab2 AS cor0
----
1323
164268
168507

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 88 * + cor0.col2 col0 FROM tab2 cor0
----
2288
2376
3344

query I rowsort
SELECT DISTINCT ( col2 ) * col0 AS col2 FROM tab1 cor0
----
162
3648
7680

query I rowsort
SELECT 35 * + 94 * + col0 FROM tab1 cor0
----
210560
263200
9870

query I rowsort
SELECT ALL + 87 + - 84 * col1 AS col0 FROM tab0 AS cor0
----
-7137
-7557
-8061

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 87 * col2 col0 FROM tab0 AS cor0
----
2871
7134
87

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1607
SELECT DISTINCT CAST( NULL AS SIGNED ) * 1 AS col1 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1607
SELECT DISTINCT CAST ( NULL AS INTEGER ) * 1 AS col1 FROM tab2 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 42 col2 FROM tab2 AS cor0
----
42

query I rowsort
SELECT ALL cor0.col2 * + ( + cor0.col2 * 28 ) AS col2 FROM tab2 AS cor0
----
18928
20412
40432

onlyif mysql # use DIV operator for integer division
query I rowsort label-1610
SELECT ALL ( col0 ) DIV col1 FROM tab1
----
0
6
6

skipif mysql # not compatible
query I rowsort label-1610
SELECT ALL ( col0 ) / col1 FROM tab1
----
0
6
6

query I rowsort
SELECT ALL - ( col0 ) + cor0.col1 AS col1 FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT DISTINCT - ( ( cor0.col2 ) ) + col2 AS col1 FROM tab0 AS cor0
----
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1613
SELECT DISTINCT CAST( NULL AS SIGNED ) + - col1 * col2 AS col1 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1613
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - col1 * col2 AS col1 FROM tab1 cor0
----
NULL

query I rowsort
SELECT DISTINCT - 31 * - 89 + + cor0.col1 + + col2 * - cor0.col1 FROM tab0 AS cor0
----
-4612
2759
7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1615
SELECT ALL + + CAST( NULL AS DECIMAL ) + + ( col0 ) * col1 - + col2 * - col1 col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1615
SELECT ALL + + CAST ( NULL AS REAL ) + + ( col0 ) * col1 - + col2 * - col1 col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - ( - col1 ) + - col2 FROM tab0
----
53
9
96

query I rowsort
SELECT ALL 99 * - 98 + - col0 * cor0.col1 FROM tab2 AS cor0
----
-11045
-14304
-9919

query I rowsort
SELECT ALL col1 + 76 + + col1 AS col0 FROM tab1 AS cor0
----
102
128
96

query I rowsort
SELECT ALL - + col2 + col0 * - cor0.col1 * + col0 FROM tab0 cor0
----
-118826
-49569
-720893

onlyif mysql # use DIV operator for integer division
query I rowsort label-1620
SELECT ALL - col1 DIV - col1 + - col1 FROM tab2 AS cor0
----
-16
-30
-58

skipif mysql # not compatible
query I rowsort label-1620
SELECT ALL - col1 / - col1 + - col1 FROM tab2 AS cor0
----
-16
-30
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 74 col1 FROM tab0 AS cor0
----
74
74
74

query I rowsort
SELECT ALL col0 * - col2 + - cor0.col1 * - cor0.col1 AS col0 FROM tab1 AS cor0
----
-3548
-7511
514

query I rowsort
SELECT 77 + cor0.col0 FROM tab1 cor0
----
141
157
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + + col0 * - col1 col0 FROM tab2 AS cor0
----
-1360
-248
-4661

query I rowsort
SELECT ALL + 24 * - col1 * col1 + col0 FROM tab2 AS cor0
----
-23057
-6857
-83466

query I rowsort
SELECT - 38 * 60 + + col0 AS col1 FROM tab2
----
-2201
-2202
-2273

onlyif mysql # use DIV operator for integer division
query I rowsort label-1627
SELECT + cor0.col2 * col0 DIV + col2 AS col2 FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-1627
SELECT + cor0.col2 * col0 / + col2 AS col2 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT DISTINCT + col0 * + 11 AS col1 FROM tab0 AS cor0
----
264
385
979

query I rowsort
SELECT col0 + 81 * 62 AS col0 FROM tab1 AS cor0
----
5025
5086
5102

query I rowsort
SELECT + - col0 * col1 + cor0.col1 FROM tab0 AS cor0
----
-1978
-3298
-8008

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 * + ( 98 ) col1 FROM tab1 AS cor0
----
5292
5586
9408

query I rowsort
SELECT ALL + col1 + + ( 46 ) * col2 AS col2 FROM tab1 cor0
----
2510
2632
4429

query I rowsort
SELECT DISTINCT + - cor0.col1 AS col0 FROM tab1 cor0
----
-10
-13
-26

query I rowsort
SELECT DISTINCT - col2 * - 70 FROM tab1 AS cor0
----
3780
3990
6720

query I rowsort
SELECT ALL - cor0.col2 * - 17 AS col0 FROM tab1 AS cor0
----
1632
918
969

onlyif mysql # use DIV operator for integer division
query I rowsort label-1636
SELECT ALL - col2 + col2 DIV + col1 AS col1 FROM tab1 cor0
----
-52
-52
-89

skipif mysql # not compatible
query I rowsort label-1636
SELECT ALL - col2 + col2 / + col1 AS col1 FROM tab1 cor0
----
-52
-52
-89

query I rowsort
SELECT + col1 + 83 FROM tab2 AS cor0
----
100
114
142

query I rowsort
SELECT ALL col2 * 39 FROM tab2 AS cor0
----
1014
1053
1482

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1639
SELECT col1 * - CAST( NULL AS SIGNED ) + + 29 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1639
SELECT col1 * - CAST ( NULL AS INTEGER ) + + 29 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col0 * ( + col2 + col1 * col2 ) AS col0 FROM tab2 AS cor0
----
121680
54036
6048

query I rowsort
SELECT ALL - + col0 * - col0 AS col0 FROM tab0 AS cor0
----
1225
576
7921

onlyif mysql # use DIV operator for integer division
query I rowsort label-1642
SELECT - col0 + - 47 + 91 DIV - col1 AS col0 FROM tab2 AS cor0
----
-126
-131
-56

skipif mysql # not compatible
query I rowsort label-1642
SELECT - col0 + - 47 + 91 / - col1 AS col0 FROM tab2 AS cor0
----
-126
-131
-56

query I rowsort
SELECT ALL + col2 + + tab0.col2 + + tab0.col0 FROM tab0
----
253
37
90

query I rowsort
SELECT ALL - col2 - - col0 AS col2 FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT ALL + col1 + - ( col1 ) FROM tab2 AS cor0
----
0
0
0

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-1647
SELECT ALL + col2 + col1 DIV + col1 + + col1 FROM tab1 cor0
----
110
68
81

skipif mysql # not compatible
query I rowsort label-1647
SELECT ALL + col2 + col1 / + col1 + + col1 FROM tab1 cor0
----
110
68
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-1648
SELECT DISTINCT col2 DIV 55 - + col1 col0 FROM tab1 AS cor0
----
-12
-26
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1648
SELECT DISTINCT col2 / 55 - + col1 col0 FROM tab1 AS cor0
----
-12
-26
-9

query I rowsort
SELECT DISTINCT col2 + ( + col2 ) * col2 FROM tab0 AS cor0
----
1122
2
6806

query I rowsort
SELECT ALL ( col1 ) - col2 * + col1 FROM tab1 AS cor0
----
-1235
-1378
-560

query I rowsort
SELECT + 93 + - 96 FROM tab1, tab1 AS cor0
----
9 values hashing to 95b6b9b4aae5cc2d9545db9f8940b2dc

query I rowsort
SELECT - 74 FROM tab0, tab1 cor0
----
9 values hashing to 5a567947d14593676e3825756f8e6130

query I rowsort
SELECT - col2 + - ( - col2 ) FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT 43 * col2 AS col0 FROM tab2 AS cor0
----
1118
1161
1634

query I rowsort
SELECT + col2 * + 87 + + col0 * + cor0.col2 FROM tab2 cor0
----
2538
4290
6308

onlyif mysql # use DIV operator for integer division
query I rowsort label-1656
SELECT col0 DIV 28 FROM tab1 AS cor0
----
0
2
2

skipif mysql # not compatible
query I rowsort label-1656
SELECT col0 / 28 FROM tab1 AS cor0
----
0
2
2

query I rowsort
SELECT + 59 + + cor0.col1 AS col0 FROM tab0 AS cor0
----
145
150
156

query I rowsort
SELECT col0 * - 6 * tab2.col0 AS col1 FROM tab2
----
-294
-36504
-37446

query I rowsort
SELECT - 6 + + cor0.col2 * col2 + 10 FROM tab0 AS cor0
----
1093
5
6728

query I rowsort
SELECT ALL - + 41 * + col2 AS col0 FROM tab0 cor0
----
-1353
-3362
-41

query I rowsort
SELECT DISTINCT 99 - col1 FROM tab1 AS cor0
----
73
86
89

query I rowsort
SELECT + 91 + col2 * col2 FROM tab0 AS cor0
----
1180
6815
92

query I rowsort
SELECT ALL + col2 * + cor0.col1 * col0 AS col0 FROM tab2 cor0
----
119652
51034
5859

query I rowsort
SELECT DISTINCT + 56 + - col2 + col0 AS col0 FROM tab2 AS cor0
----
108
36
97

query I rowsort
SELECT + - cor0.col1 + - col1 * col2 AS col1 FROM tab2 AS cor0
----
-1593
-663
-868

query I rowsort
SELECT - col1 + + col2 * + col0 FROM tab0 AS cor0
----
-62
706
7207

query I rowsort
SELECT + cor1.col0 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870

onlyif mysql # use DIV operator for integer division
query I rowsort label-1668
SELECT 65 DIV col0 + + col0 * col0 AS col0 FROM tab1
----
30
4097
6400

skipif mysql # not compatible
query I rowsort label-1668
SELECT 65 / col0 + + col0 * col0 AS col0 FROM tab1
----
30
4097
6400

onlyif mysql # use DIV operator for integer division
query I rowsort label-1669
SELECT cor0.col0 DIV 67 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-1669
SELECT cor0.col0 / 67 FROM tab1 AS cor0
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col2 * col2 col1 FROM tab2 cor0
----
1444
676
729

query I rowsort
SELECT - col0 * ( col2 ) AS col1 FROM tab2 AS cor0
----
-189
-2028
-3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-1672
SELECT - - cor0.col1 DIV - 17 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-1672
SELECT - - cor0.col1 / - 17 FROM tab1 AS cor0
----
-1
0
0

query I rowsort
SELECT ALL + col2 * + 16 FROM tab0 AS cor0
----
1312
16
528

query I rowsort
SELECT DISTINCT col1 * + ( - 10 ) AS col2 FROM tab1 AS cor0
----
-100
-130
-260

query I rowsort
SELECT + - col2 + - col2 * + col2 - + col1 FROM tab2 AS cor0
----
-1499
-761
-787

query I rowsort
SELECT + tab1.col2 + - 51 FROM tab1, tab2 AS cor0
----
9 values hashing to cdc7781f436fbc64d6528cd623438182

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1677
SELECT ALL - col0 * + CAST( + 57 AS SIGNED ) FROM tab2
----
-399
-4446
-4503

skipif mysql # not compatible
query I rowsort label-1677
SELECT ALL - col0 * + CAST ( + 57 AS INTEGER ) FROM tab2
----
-399
-4446
-4503

query I rowsort
SELECT ALL 85 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b

query I rowsort
SELECT + col2 * ( cor0.col0 ) + - col1 * - col2 * col2 FROM tab1 AS cor0
----
127488
36138
75978

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1680
SELECT + col1 + CAST( NULL AS DECIMAL ) / col1 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-1680
SELECT + col1 + CAST ( NULL AS REAL ) / col1 col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col1 - tab1.col0 AS col1 FROM tab1
----
-29
-74
-93

query I rowsort
SELECT DISTINCT + cor1.col1 AS col0 FROM tab2, tab0 AS cor0, tab0, tab2 cor1
----
17
31
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 42 * col1 col1 FROM tab0 cor0
----
3612
3822
4074

onlyif mysql # use DIV operator for integer division
query I rowsort label-1684
SELECT + + ( col2 ) DIV + col0 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-1684
SELECT + + ( col2 ) / + col0 FROM tab0 AS cor0
----
0
0
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-1685
SELECT - tab0.col2 DIV tab0.col1 - - ( col2 ) AS col0 FROM tab0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-1685
SELECT - tab0.col2 / tab0.col1 - - ( col2 ) AS col0 FROM tab0
----
1
33
82

query I rowsort
SELECT ALL col1 + 60 AS col2 FROM tab2 cor0
----
119
77
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 17 * 17 col0 FROM tab0 cor0
----
-289
-289
-289

query I rowsort
SELECT DISTINCT + + col2 * + col2 + col1 - + ( - col0 ) FROM tab2 AS cor0
----
1540
767
813

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1689
SELECT DISTINCT + CAST( - ( col1 ) AS SIGNED ) FROM tab2 cor0
----
-17
-31
-59

skipif mysql # not compatible
query I rowsort label-1689
SELECT DISTINCT + CAST ( - ( col1 ) AS INTEGER ) FROM tab2 cor0
----
-17
-31
-59

query I rowsort
SELECT ALL - ( col2 ) * cor0.col0 * + col2 + - col1 * + col2 FROM tab0 AS cor0
----
-132
-28974
-605898

query I rowsort
SELECT - + col0 * col2 * col0 FROM tab2 AS cor0
----
-1323
-158184
-237158

query I rowsort
SELECT ALL 2 * - 26 - col2 FROM tab0 AS cor0
----
-134
-53
-85

query I rowsort
SELECT DISTINCT + 28 + 1 FROM tab2 AS cor0
----
29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( 0 ) col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - + col2 * + col0 * cor0.col0 - col0 FROM tab0 AS cor0
----
-1260
-19032
-649611

query I rowsort
SELECT DISTINCT - + 48 FROM tab0 cor0
----
-48

query I rowsort
SELECT - ( 56 ) FROM tab2 cor0
----
-56
-56
-56

query I rowsort
SELECT ALL + - 10 * 45 + - col1 FROM tab2 AS cor0
----
-467
-481
-509

query I rowsort
SELECT DISTINCT - 25 * col0 AS col2 FROM tab0 cor0
----
-2225
-600
-875

query I rowsort
SELECT DISTINCT + + 19 * col1 FROM tab0 AS cor0
----
1634
1729
1843

query I rowsort
SELECT + - 26 + + col1 FROM tab2 AS cor0
----
-9
33
5

query I rowsort
SELECT DISTINCT col0 + ( col0 ) * col2 AS col2 FROM tab1 AS cor0
----
165
3712
7760

query I rowsort
SELECT cor0.col2 * col2 * cor0.col1 FROM tab1 AS cor0
----
119808
32490
75816

query I rowsort
SELECT DISTINCT - - col2 + ( 4 ) AS col1 FROM tab2 cor0
----
30
31
42

query I rowsort
SELECT ALL cor0.col2 + col2 * cor0.col2 FROM tab0 AS cor0
----
1122
2
6806

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + col2 + + col1 col0 FROM tab1
----
106
122
77

query I rowsort
SELECT ALL + 97 AS col1 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to c73fa6978df8525c99d6bc792bb27123

query I rowsort
SELECT ALL + + cor0.col2 + col2 - col1 * col0 FROM tab0 AS cor0
----
-1998
-3393
-7935

query I rowsort
SELECT ALL col2 + - col0 + - col2 AS col1 FROM tab1 cor0
----
-3
-64
-80

query I rowsort
SELECT col2 * - col2 + + 93 FROM tab2 AS cor0
----
-1351
-583
-636

query I rowsort
SELECT col0 * + 95 + + ( - col1 + - ( tab2.col1 ) ) FROM tab2
----
603
7292
7471

query I rowsort
SELECT col2 - + 47 FROM tab2
----
-20
-21
-9

query I rowsort
SELECT - 30 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to a96370a8187089b6b83ce9bfbade5142

query I rowsort
SELECT DISTINCT + tab2.col1 * tab2.col0 AS col0 FROM tab2
----
1343
217
4602

query I rowsort
SELECT DISTINCT + 83 AS col0 FROM tab1, tab2 AS cor0
----
83

query I rowsort
SELECT - col0 + + 45 * col1 AS col1 FROM tab0
----
3846
4006
4330

query I rowsort
SELECT - col1 + col2 * + col2 AS col0 FROM tab2
----
1427
617
698

query IIIIII rowsort
SELECT * FROM tab0, tab2 AS cor0 WHERE NOT NULL = ( NULL )
----

query I rowsort
SELECT DISTINCT - cor1.col0 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-7
-78
-79

query I rowsort
SELECT col1 * + ( col2 * ( col0 ) + - col1 ) FROM tab1 cor0
----
3536
36380
99671

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1721
SELECT - CAST( NULL AS SIGNED ) * 21 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1721
SELECT - CAST ( NULL AS INTEGER ) * 21 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 24 col1 FROM tab2, tab0 AS cor0
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef

query I rowsort
SELECT col2 * ( tab1.col0 * - tab1.col0 ) + - col2 FROM tab1
----
-233529
-540
-614496

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + - col0 * - col1 col2 FROM tab1 AS cor0
----
104
1053
650

query I rowsort
SELECT ( + 64 ) * + cor0.col0 FROM tab1 AS cor0
----
192
4096
5120

query I rowsort
SELECT ALL - col2 + col1 + + 92 AS col1 FROM tab2
----
125
71
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1727
SELECT ALL tab2.col0 + col2 * ( col1 * - col1 + - CAST( 19 AS SIGNED ) ) FROM tab2
----
-11625
-26453
-90922

skipif mysql # not compatible
query I rowsort label-1727
SELECT ALL tab2.col0 + col2 * ( col1 * - col1 + - CAST ( 19 AS INTEGER ) ) FROM tab2
----
-11625
-26453
-90922

query I rowsort
SELECT - col1 + cor0.col1 * col2 AS col2 FROM tab1 AS cor0
----
1235
1378
560

query I rowsort
SELECT DISTINCT col2 + + col1 * 42 AS col1 FROM tab0 AS cor0
----
3645
3904
4075

query I rowsort
SELECT - + col0 - col1 FROM tab2 AS cor0
----
-137
-38
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 33 * + col0 * - ( + col2 * col0 ) col2 FROM tab2 AS cor0
----
-43659
-5220072
-7826214

query I rowsort
SELECT DISTINCT - - 72 + - col0 * col1 AS col2 FROM tab2 AS cor0
----
-1271
-145
-4530

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + - col2 * col2 + col1 col2 FROM tab1
----
-2893
-3303
-9283

query I rowsort
SELECT ALL - col0 + + ( - col0 ) FROM tab0 AS cor0
----
-178
-48
-70

query I rowsort
SELECT ALL - - col0 * - col0 + col0 FROM tab1 AS cor0
----
-4032
-6
-6320

query I rowsort
SELECT ALL + + col0 * + col2 * col1 AS col1 FROM tab1 cor0
----
36480
4212
99840

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + 49 col0 FROM tab1 AS cor0
----
113
129
52

query I rowsort
SELECT DISTINCT + + col0 * + 68 AS col1 FROM tab0 AS cor0
----
1632
2380
6052

query I rowsort
SELECT + col0 * - col1 + + col2 AS col2 FROM tab0 AS cor0
----
-2031
-3394
-8017

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * 74 col0 FROM tab1
----
222
4736
5920

onlyif mysql # use DIV operator for integer division
query I rowsort label-1741
SELECT ALL + tab2.col2 * col2 DIV col0 AS col1 FROM tab2
----
104
18
8

skipif mysql # not compatible
query I rowsort label-1741
SELECT ALL + tab2.col2 * col2 / col0 AS col1 FROM tab2
----
104
18
8

query I rowsort
SELECT ALL + 74 + + col1 AS col1 FROM tab1
----
100
84
87

query I rowsort
SELECT + 69 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 85d9b90a03b9def161891b13085271f7

query I rowsort
SELECT + ( - 34 ) AS col1 FROM tab2 AS cor0
----
-34
-34
-34

query I rowsort
SELECT DISTINCT - ( col2 ) + col1 AS col1 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT - ( ( + cor0.col1 ) ) * 8 FROM tab2 cor0
----
-136
-248
-472

query I rowsort
SELECT DISTINCT 27 AS col2 FROM tab0, tab2 AS cor0
----
27

query I rowsort
SELECT - + col0 * + col2 - col2 FROM tab0 AS cor0
----
-36
-7380
-825

query I rowsort
SELECT + col1 * col0 + + cor0.col0 + - 79 * col2 * - cor0.col2 FROM tab0 AS cor0
----
3509
539384
88119

query I rowsort
SELECT col0 * col1 + col0 AS col2 FROM tab2 AS cor0
----
1422
224
4680

query I rowsort
SELECT col1 * - col0 + + 62 AS col2 FROM tab0
----
-2002
-3333
-8037

onlyif mysql # use DIV operator for integer division
query I rowsort label-1752
SELECT + - col1 DIV col0 - + 43 AS col1 FROM tab0 AS cor0
----
-44
-45
-46

skipif mysql # not compatible
query I rowsort label-1752
SELECT + - col1 / col0 - + 43 AS col1 FROM tab0 AS cor0
----
-44
-45
-46

query I rowsort
SELECT - col0 * + cor0.col0 + + 4 * cor0.col0 * - col1 FROM tab0 AS cor0
----
-14805
-40317
-8832

query I rowsort
SELECT - col0 * + col2 * - col0 FROM tab2 AS cor0
----
1323
158184
237158

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * col2 - - col0 col2 FROM tab0 AS cor0
----
-7209
-768
0

query I rowsort
SELECT - col0 + - cor0.col0 * 68 FROM tab2 AS cor0
----
-483
-5382
-5451

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 + - col0 * col1 col1 FROM tab2 cor0
----
-1326
-186
-4543

query I rowsort
SELECT - col0 + + cor0.col0 * - cor0.col1 AS col2 FROM tab1 AS cor0
----
-1120
-704
-81

query I rowsort
SELECT ALL + - col2 + - 77 * col1 AS col1 FROM tab2 AS cor0
----
-1347
-2414
-4569

onlyif mysql # use DIV operator for integer division
query I rowsort label-1760
SELECT ALL - col0 DIV - col0 + col1 * col0 AS col1 FROM tab1 AS cor0
----
1041
641
79

skipif mysql # not compatible
query I rowsort label-1760
SELECT ALL - col0 / - col0 + col1 * col0 AS col1 FROM tab1 AS cor0
----
1041
641
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-1761
SELECT - col2 DIV - col0 + - 74 FROM tab2 AS cor0
----
-71
-74
-74

skipif mysql # not compatible
query I rowsort label-1761
SELECT - col2 / - col0 + - 74 FROM tab2 AS cor0
----
-71
-74
-74

query I rowsort
SELECT + ( 67 ) FROM tab0 AS cor0
----
67
67
67

query I rowsort
SELECT + 35 + col1 AS col2 FROM tab0 AS cor0
----
121
126
132

query I rowsort
SELECT - 89 AS col1 FROM tab0 AS cor0
----
-89
-89
-89

query I rowsort
SELECT DISTINCT - - col1 + col2 * col2 AS col0 FROM tab1 cor0
----
2942
3259
9229

query I rowsort
SELECT ALL + 11 * col0 - + col2 FROM tab2 AS cor0
----
50
831
832

onlyif mysql # use DIV operator for integer division
query I rowsort label-1767
SELECT ALL col0 * col1 DIV col1 FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-1767
SELECT ALL col0 * col1 / col1 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT DISTINCT - + col0 + 48 FROM tab1 cor0
----
-16
-32
45

query I rowsort
SELECT ALL col0 + 23 * col2 FROM tab0 AS cor0
----
1975
58
783

query I rowsort
SELECT - col2 + + col1 * col0 FROM tab1 AS cor0
----
24
583
944

query I rowsort
SELECT ALL + 20 - 29 FROM tab2 AS cor0
----
-9
-9
-9

query I rowsort
SELECT DISTINCT - + cor0.col1 - - 84 * + cor0.col0 AS col0 FROM tab1 AS cor0
----
226
5366
6707

query I rowsort
SELECT - 56 * cor0.col1 AS col1 FROM tab1 AS cor0
----
-1456
-560
-728

query I rowsort
SELECT ALL - cor0.col2 + col1 - 67 * col2 AS col0 FROM tab2 AS cor0
----
-1709
-1805
-2567

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col0 col0 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT DISTINCT - 33 * col2 + col2 - + col0 * - col0 AS col0 FROM tab1 AS cor0
----
-1719
2272
3328

query I rowsort
SELECT ALL - 64 * - col0 FROM tab2 AS cor0
----
448
4992
5056

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 + - 16 col2 FROM tab0, tab1 AS cor0, tab2 cor1
----
27 values hashing to 854121b20df213f274161fe56b2afe10

onlyif mysql # use DIV operator for integer division
query I rowsort label-1779
SELECT DISTINCT + 69 DIV col0 AS col0 FROM tab2 AS cor0
----
0
9

skipif mysql # not compatible
query I rowsort label-1779
SELECT DISTINCT + 69 / col0 AS col0 FROM tab2 AS cor0
----
0
9

query I rowsort
SELECT ALL + col2 * - col2 * ( - 24 ) FROM tab1 cor0
----
221184
69984
77976

query I rowsort
SELECT - col2 * + col1 + 53 FROM tab0 AS cor0
----
-2785
-44
-7409

query I rowsort
SELECT - + cor0.col1 * - ( + col1 ) FROM tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT - col1 * + 98 FROM tab1 cor0
----
-1274
-2548
-980

query I rowsort
SELECT + 92 * col2 FROM tab2
----
2392
2484
3496

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + + tab2.col2 * - 43 col0 FROM tab2
----
-1168
-1196
-1713

query I rowsort
SELECT ALL col0 * + 3 AS col1 FROM tab0
----
105
267
72

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1787
SELECT ALL + col0 * CAST( - col1 AS SIGNED ) * + col1 FROM tab1
----
-13520
-2028
-6400

skipif mysql # not compatible
query I rowsort label-1787
SELECT ALL + col0 * CAST ( - col1 AS INTEGER ) * + col1 FROM tab1
----
-13520
-2028
-6400

query I rowsort
SELECT - col2 + ( 36 ) * + col0 FROM tab2 cor0
----
225
2782
2806

query I rowsort
SELECT col1 * 70 AS col2 FROM tab0 AS cor0
----
6020
6370
6790

query I rowsort
SELECT - col2 + - 48 AS col0 FROM tab1
----
-102
-105
-144

query I rowsort
SELECT 68 AS col2 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 10aa25f1c6b97582c34521ac6452e0b4

query I rowsort
SELECT ALL - + col1 + - col0 AS col2 FROM tab0 AS cor0
----
-110
-132
-180

query I rowsort
SELECT - - col0 + - col0 AS col2 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + col1 * + col2 AS col2 FROM tab0 cor0
----
2838
7462
97

query I rowsort
SELECT ALL - 90 * - col2 + + col2 * - col1 AS col0 FROM tab1 AS cor0
----
3456
4560
7392

query I rowsort
SELECT + 26 + + col1 AS col1 FROM tab1 AS cor0
----
36
39
52

query I rowsort
SELECT ALL + + col1 * - col0 + - cor0.col1 FROM tab0 AS cor0
----
-2150
-3492
-8190

query I rowsort
SELECT ALL + 52 * + col2 AS col1 FROM tab1 AS cor0
----
2808
2964
4992

query I rowsort
SELECT DISTINCT - + col0 + - cor0.col1 * 14 * + col0 AS col1 FROM tab0 AS cor0
----
-113475
-28920
-47565

query I rowsort
SELECT DISTINCT + 22 AS col2 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
22

query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab0 cor0, tab2 cor1, tab2 cor2
----
972 values hashing to 617c9545df26d6d983e3967864e8e9e4

query I rowsort
SELECT DISTINCT - cor0.col0 + 30 AS col0 FROM tab1 AS cor0
----
-34
-50
27

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1803
SELECT ALL + - cor0.col0 + - CAST( + 99 AS SIGNED ) AS col2 FROM tab0 cor0
----
-123
-134
-188

skipif mysql # not compatible
query I rowsort label-1803
SELECT ALL + - cor0.col0 + - CAST ( + 99 AS INTEGER ) AS col2 FROM tab0 cor0
----
-123
-134
-188

onlyif mysql # use DIV operator for integer division
query I rowsort label-1804
SELECT DISTINCT cor0.col1 DIV col1 + - col2 FROM tab0 AS cor0
----
-32
-81
0

skipif mysql # not compatible
query I rowsort label-1804
SELECT DISTINCT cor0.col1 / col1 + - col2 FROM tab0 AS cor0
----
-32
-81
0

query I rowsort
SELECT DISTINCT + cor0.col1 * - 35 FROM tab2 AS cor0
----
-1085
-2065
-595

query I rowsort
SELECT DISTINCT col0 * ( cor0.col1 ) + col2 * - col1 FROM tab1 AS cor0
----
-1326
-208
70

query I rowsort
SELECT DISTINCT cor0.col2 * + 93 AS col1 FROM tab1 cor0
----
5022
5301
8928

query I rowsort
SELECT DISTINCT - - 14 * col1 FROM tab1 AS cor0
----
140
182
364

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 82 col2 FROM tab2, tab1 cor0
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c

query I rowsort
SELECT ALL - - col0 + + col2 * + col2 FROM tab0 AS cor0
----
1113
36
6813

query I rowsort
SELECT ALL - col0 * - ( + col2 ) + + col0 AS col1 FROM tab1
----
165
3712
7760

query I rowsort
SELECT - col0 * - 42 AS col0 FROM tab1 cor0
----
126
2688
3360

query I rowsort
SELECT DISTINCT - col2 * - 79 + cor0.col1 AS col0 FROM tab2 AS cor0
----
2113
2164
3019

query I rowsort
SELECT - - 72 + 15 AS col2 FROM tab1 AS cor0
----
87
87
87

query I rowsort
SELECT DISTINCT 54 * col2 + - cor0.col1 FROM tab2 AS cor0
----
1345
1427
2035

query I rowsort
SELECT 21 * - col0 + - col1 AS col1 FROM tab1 AS cor0
----
-1354
-1693
-89

query I rowsort
SELECT DISTINCT 52 + cor0.col0 * + 25 AS col0 FROM tab2 AS cor0
----
2002
2027
227

onlyif mysql # use DIV operator for integer division
query I rowsort label-1818
SELECT ALL cor0.col1 DIV + col2 + - CAST( + col2 AS SIGNED ) * + col1 AS col2 FROM tab1 AS cor0
----
-1248
-1404
-570

skipif mysql # not compatible
query I rowsort label-1818
SELECT ALL cor0.col1 / + col2 + - CAST ( + col2 AS INTEGER ) * + col1 AS col2 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT + col2 * + col2 + col0 AS col2 FROM tab2 AS cor0
----
1523
736
754

query I rowsort
SELECT DISTINCT 23 - + col0 FROM tab2 AS cor0
----
-55
-56
16

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1821
SELECT + + cor0.col0 * cor0.col1 + + CAST( NULL AS SIGNED ) * - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1821
SELECT + + cor0.col0 * cor0.col1 + + CAST ( NULL AS INTEGER ) * - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 * - cor0.col1 + 5 * col0 FROM tab2 AS cor0
----
-182
-4212
-948

query I rowsort
SELECT ALL + + 55 * + cor0.col2 FROM tab2 AS cor0
----
1430
1485
2090

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + - col2 * + ( col2 ) col1 FROM tab0 AS cor0
----
-1056
-6642
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 7 + + col0 col0 FROM tab2 AS cor0
----
14
85
86

query I rowsort
SELECT ALL - + col1 * col2 + - col0 AS col0 FROM tab1 AS cor0
----
-1328
-1407
-634

onlyif mysql # use DIV operator for integer division
query I rowsort label-1827
SELECT DISTINCT - cor0.col1 + col1 DIV + col0 FROM tab0 AS cor0
----
-83
-90
-95

skipif mysql # not compatible
query I rowsort label-1827
SELECT DISTINCT - cor0.col1 + col1 / + col0 FROM tab0 AS cor0
----
-83
-90
-95

query I rowsort
SELECT DISTINCT + 25 * + col0 - + col1 * + 49 AS col2 FROM tab2 AS cor0
----
-1344
-941
1142

query I rowsort
SELECT ALL col0 * + ( - tab2.col0 ) + tab2.col0 FROM tab2
----
-42
-6006
-6162

query I rowsort
SELECT - + 15 + - col0 * + 31 * - 11 FROM tab0 AS cor0
----
11920
30334
8169

query I rowsort
SELECT ALL - - 73 * - col0 FROM tab2 AS cor0
----
-511
-5694
-5767

query I rowsort
SELECT + + col1 + - col2 * + col0 AS col1 FROM tab1 AS cor0
----
-136
-3638
-7667

query I rowsort
SELECT DISTINCT - 42 * + col2 AS col2 FROM tab1 AS cor0
----
-2268
-2394
-4032

query I rowsort
SELECT ALL ( - col2 ) * col0 * - 98 FROM tab0
----
3430
715204
77616

query I rowsort
SELECT DISTINCT - 13 FROM tab2, tab0, tab1 AS cor0
----
-13

query I rowsort
SELECT ALL - - cor0.col0 + + ( 33 + - cor0.col0 ) AS col0 FROM tab1, tab0, tab1 AS cor0, tab2
----
81 values hashing to 5b9acd68f8a2078394b8b32da4e0a18f

onlyif mysql # use DIV operator for integer division
query I rowsort label-1837
SELECT col0 + ( - col0 ) DIV + col2 FROM tab0
----
0
24
88

skipif mysql # not compatible
query I rowsort label-1837
SELECT col0 + ( - col0 ) / + col2 FROM tab0
----
0
24
88

onlyif mysql # use DIV operator for integer division
query I rowsort label-1838
SELECT - col0 DIV 35 AS col1 FROM tab0 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-1838
SELECT - col0 / 35 AS col1 FROM tab0 AS cor0
----
-1
-2
0

query I rowsort
SELECT - + 87 + 58 - col1 * + 13 * + col1 FROM tab0 AS cor0
----
-107682
-122346
-96177

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1840
SELECT ALL col1 * + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1840
SELECT ALL col1 * + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 27 col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8

onlyif mysql # use DIV operator for integer division
query I rowsort label-1842
SELECT - tab2.col0 * col1 DIV - col1 FROM tab2
----
7
78
79

skipif mysql # not compatible
query I rowsort label-1842
SELECT - tab2.col0 * col1 / - col1 FROM tab2
----
7
78
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-1843
SELECT col2 DIV + 65 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-1843
SELECT col2 / + 65 FROM tab1
----
0
0
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-1844
SELECT + 92 DIV - col0 FROM tab0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-1844
SELECT + 92 / - col0 FROM tab0
----
-1
-2
-3

query I rowsort
SELECT ALL + 97 FROM tab1, tab1 AS cor0
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c

query I rowsort
SELECT + col0 + + 44 AS col0 FROM tab0 AS cor0
----
133
68
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-1847
SELECT ALL + + cor0.col0 DIV col2 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-1847
SELECT ALL + + cor0.col0 / col2 FROM tab1 AS cor0
----
0
0
1

query I rowsort
SELECT ALL ( ( + col1 ) ) AS col1 FROM tab0 cor0
----
86
91
97

query I rowsort
SELECT DISTINCT + - col2 * + ( - col1 ) AS col2 FROM tab1 AS cor0
----
1248
1404
570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + ( + 81 ) - col1 col1 FROM tab2 AS cor0
----
22
50
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 40 * - cor0.col2 col0 FROM tab2 AS cor0
----
1040
1080
1520

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1852
SELECT ALL CAST( NULL AS SIGNED ) * + cor0.col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1852
SELECT ALL CAST ( NULL AS INTEGER ) * + cor0.col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + 43 - 33 * - col2 FROM tab0 AS cor0
----
1132
2749
76

query I rowsort
SELECT - 37 * 45 * col2 AS col1 FROM tab2 AS cor0
----
-43290
-44955
-63270

query I rowsort
SELECT DISTINCT + 92 * + 87 FROM tab1 AS cor0
----
8004

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * - ( + col2 ) col0 FROM tab0 AS cor0
----
-35
-7298
-792

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1857
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * - col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1857
SELECT DISTINCT - CAST ( NULL AS REAL ) * - col0 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT ( col1 + - col0 ) * - col1 FROM tab1
----
-598
540
871

onlyif mysql # use DIV operator for integer division
query I rowsort label-1859
SELECT col1 + - 19 * + col0 + - col1 * + col1 DIV + col1 AS col1 FROM tab1
----
-1216
-1520
-57

skipif mysql # not compatible
query I rowsort label-1859
SELECT col1 + - 19 * + col0 + - col1 * + col1 / + col1 AS col1 FROM tab1
----
-1216
-1520
-57

query I rowsort
SELECT + col2 * - cor0.col1 + col1 AS col0 FROM tab1 AS cor0
----
-1235
-1378
-560

query I rowsort
SELECT - + 34 * + col1 AS col2 FROM tab2 AS cor0
----
-1054
-2006
-578

query I rowsort
SELECT col0 + col0 * - cor0.col1 + - col1 * cor0.col1 * - col1 AS col0 FROM tab0 AS cor0
----
634016
745561
909313

query I rowsort
SELECT ALL - 9 * 99 FROM tab1
----
-891
-891
-891

query I rowsort
SELECT DISTINCT col0 * - 45 * col1 FROM tab0
----
-152775
-364455
-92880

query I rowsort
SELECT + 37 * + col1 AS col1 FROM tab1
----
370
481
962

query I rowsort
SELECT ALL col0 * 22 FROM tab0
----
1958
528
770

query I rowsort
SELECT ALL - 94 * + col1 FROM tab0
----
-8084
-8554
-9118

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-1869
SELECT - col2 + col1 DIV + col0 FROM tab1 AS cor0
----
-46
-57
-96

skipif mysql # not compatible
query I rowsort label-1869
SELECT - col2 + col1 / + col0 FROM tab1 AS cor0
----
-46
-57
-96

query I rowsort
SELECT - 29 AS col0 FROM tab1 cor0
----
-29
-29
-29

query I rowsort
SELECT - cor0.col1 + col1 + col2 * col1 AS col2 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT - col1 * col1 + - col0 FROM tab2 AS cor0
----
-3559
-368
-968

query I rowsort
SELECT col0 + col0 * col1 - + col1 FROM tab2
----
1405
193
4621

query I rowsort
SELECT DISTINCT col1 * col2 * col1 AS col0 FROM tab0
----
244068
679042
9409

query I rowsort
SELECT ALL - col1 * col0 AS col1 FROM tab0 WHERE NOT NULL IN ( col2 )
----

query I rowsort
SELECT ALL col0 * - tab2.col0 * col2 AS col0 FROM tab2
----
-1323
-158184
-237158

query I rowsort
SELECT col1 + col0 * + col1 FROM tab2
----
1360
248
4661

query I rowsort
SELECT ALL - col2 + - col0 * col0 AS col1 FROM tab1
----
-4153
-63
-6496

query I rowsort
SELECT DISTINCT - col1 FROM tab2 WHERE NOT NULL IN ( col0 * col2 )
----

query I rowsort
SELECT ALL col2 * col2 * col2 AS col1 FROM tab0
----
1
35937
551368

query I rowsort
SELECT DISTINCT col1 * + col2 * - col2 FROM tab2
----
-22599
-24548
-39884

query I rowsort
SELECT DISTINCT col1 + col0 * tab1.col2 FROM tab1
----
188
3658
7693

query I rowsort
SELECT ALL - tab0.col1 FROM tab0 WHERE NOT NULL BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT col1 - + col2 * col1 * + col1 FROM tab0
----
-243982
-678951
-9312

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - tab2.col1 col1 FROM tab2
----
-289
-3481
-961

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col0 BETWEEN ( col0 ) AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab1.col1 + col2 * col1 * tab1.col2 col0 FROM tab1
----
119795
32480
75790

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( col1 * col0 ) <> NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-1889
SELECT + col1 DIV col0 + col0 * col0 + + tab0.col1 DIV + tab0.col2 AS col1 FROM tab0
----
1324
581
7923

skipif mysql # not compatible
query I rowsort label-1889
SELECT + col1 / col0 + col0 * col0 + + tab0.col1 / + tab0.col2 AS col1 FROM tab0
----
1324
581
7923

query I rowsort
SELECT ALL + + col2 * + col0 + + cor0.col1 + - col1 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT - col0 * + cor0.col0 AS col1 FROM tab2 AS cor0
----
-49
-6084
-6241

onlyif mysql # use DIV operator for integer division
query I rowsort label-1892
SELECT ALL + col0 DIV col0 + col1 * col0 col1 FROM tab0 AS cor0
----
2065
3396
8100

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1892
SELECT ALL + col0 / col0 + col1 * col0 col1 FROM tab0 AS cor0
----
2065
3396
8100

query I rowsort
SELECT DISTINCT - + col1 * cor0.col1 FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT ALL + col1 + + col0 * - col0 AS col1 FROM tab2 AS cor0
----
-18
-6025
-6224

query I rowsort
SELECT - col2 - cor0.col0 FROM tab2 AS cor0
----
-104
-117
-34

onlyif mysql # use DIV operator for integer division
query I rowsort label-1896
SELECT col2 * col0 DIV col1 + - col1 FROM tab1 cor0
----
-20
354
577

skipif mysql # not compatible
query I rowsort label-1896
SELECT col2 * col0 / col1 + - col1 FROM tab1 cor0
----
-20
354
577

onlyif mysql # use DIV operator for integer division
query I rowsort label-1897
SELECT ALL - col2 DIV col2 + col0 * col2 + col1 FROM tab0 AS cor0
----
131
7388
877

skipif mysql # not compatible
query I rowsort label-1897
SELECT ALL - col2 / col2 + col0 * col2 + col1 FROM tab0 AS cor0
----
131
7388
877

query I rowsort
SELECT - col2 * - col1 + + col2 FROM tab1 AS cor0
----
1344
1458
627

query I rowsort
SELECT DISTINCT col1 * + col2 AS col0 FROM tab1 WHERE - col1 + col0 - col1 IN ( col0 )
----

query I rowsort
SELECT - col1 * 91 FROM tab2 AS cor0
----
-1547
-2821
-5369

query I rowsort
SELECT - - 58 FROM tab1 cor0
----
58
58
58

onlyif mysql # use DIV operator for integer division
query I rowsort label-1902
SELECT DISTINCT - - CAST( ( + col2 ) AS SIGNED ) DIV - 12 AS col2 FROM tab2 cor0
----
-2
-3

skipif mysql # not compatible
query I rowsort label-1902
SELECT DISTINCT - - CAST ( ( + col2 ) AS INTEGER ) / - 12 AS col2 FROM tab2 cor0
----
-2
-3

query I rowsort
SELECT ALL + + ( cor0.col1 ) * + col0 AS col2 FROM tab2 AS cor0
----
1343
217
4602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - col0 col1 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT - - col1 * - 16 FROM tab2 AS cor0
----
-272
-496
-944

query I rowsort
SELECT ALL - col2 + col2 + 54 FROM tab2
----
54
54
54

query I rowsort
SELECT ALL col2 + ( 97 ) FROM tab1
----
151
154
193

query I rowsort
SELECT ALL col1 * + col2 + + ( + col0 ) + + col0 AS col1 FROM tab2
----
1690
804
851

query I rowsort
SELECT ALL col0 + 19 FROM tab1
----
22
83
99

query I rowsort
SELECT DISTINCT - ( 5 ) + - col0 FROM tab1 AS cor0
----
-69
-8
-85

query I rowsort
SELECT ALL - col0 * - 42 + col0 * 3 + - ( col1 ) AS col0 FROM tab0 AS cor0
----
1478
3914
994

query I rowsort
SELECT ALL col0 * + col2 + col1 * + col0 FROM tab2 AS cor0
----
406
4345
6630

query I rowsort
SELECT DISTINCT - + ( - 62 ) - col1 FROM tab2 cor0
----
3
31
45

query I rowsort
SELECT ALL - ( 32 ) + col1 FROM tab0 AS cor0
----
54
59
65

query I rowsort
SELECT - + 44 * + col0 FROM tab2 AS cor0
----
-308
-3432
-3476

query I rowsort
SELECT DISTINCT 62 * cor0.col0 - - col2 AS col1 FROM tab1 AS cor0
----
240
4025
5056

query I rowsort
SELECT ( cor0.col0 ) + col1 AS col0 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT DISTINCT - 90 * col1 - col0 FROM tab2 cor0
----
-1609
-2797
-5388

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1919
SELECT 90 * - col1 + + CAST( NULL AS SIGNED ) + - col0 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1919
SELECT 90 * - col1 + + CAST ( NULL AS INTEGER ) + - col0 AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ( col0 ) + + ( 12 ) * - cor0.col0 FROM tab0 AS cor0
----
-264
-385
-979

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1921
SELECT - col1 + + col1 * CAST( col0 AS SIGNED ) + tab1.col1 AS col2 FROM tab1
----
1040
640
78

skipif mysql # not compatible
query I rowsort label-1921
SELECT - col1 + + col1 * CAST ( col0 AS INTEGER ) + tab1.col1 AS col2 FROM tab1
----
1040
640
78

query I rowsort
SELECT DISTINCT + 68 * - col2 AS col1 FROM tab0
----
-2244
-5576
-68

query I rowsort
SELECT ALL - - col1 * cor0.col2 AS col0 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT col1 * 83 AS col2 FROM tab1
----
1079
2158
830

query I rowsort
SELECT col2 * - col2 * + 72 FROM tab2
----
-103968
-48672
-52488

query I rowsort
SELECT ALL - 27 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 90b76caf54a4e48ee4a9784f52997a6a

query I rowsort
SELECT ALL + col2 + + 79 * col2 + col1 AS col0 FROM tab1
----
4346
4570
7693

onlyif mysql # use DIV operator for integer division
query I rowsort label-1928
SELECT DISTINCT - col0 * 8 + - col0 * + col0 + - col0 DIV - col2 AS col1 FROM tab1
----
-33
-4607
-7040

skipif mysql # not compatible
query I rowsort label-1928
SELECT DISTINCT - col0 * 8 + - col0 * + col0 + - col0 / - col2 AS col1 FROM tab1
----
-33
-4607
-7040

onlyif mysql # use DIV operator for integer division
query I rowsort label-1929
SELECT ALL col0 DIV + 11 FROM tab2 AS cor0
----
0
7
7

skipif mysql # not compatible
query I rowsort label-1929
SELECT ALL col0 / + 11 FROM tab2 AS cor0
----
0
7
7

query I rowsort
SELECT DISTINCT - col0 + + ( col1 ) * + col1 FROM tab1 AS cor0
----
36
673
89

query I rowsort
SELECT DISTINCT col2 + ( tab1.col1 ) * + col2 + - col2 AS col0 FROM tab1
----
1248
1404
570

query I rowsort
SELECT ( tab2.col0 ) FROM tab2, tab0 AS cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a

query I rowsort
SELECT ALL - 21 AS col2 FROM tab2, tab0 AS cor0, tab0 cor1
----
27 values hashing to cdcb40c9e1bb9a33ce9167a0d2bac0b1

query I rowsort
SELECT DISTINCT + col2 + - 81 AS col0 FROM tab1 AS cor0
----
-24
-27
15

onlyif mysql # use DIV operator for integer division
query I rowsort label-1935
SELECT - + col2 DIV col2 - col0 FROM tab0 AS cor0
----
-25
-36
-90

skipif mysql # not compatible
query I rowsort label-1935
SELECT - + col2 / col2 - col0 FROM tab0 AS cor0
----
-25
-36
-90

onlyif mysql # use DIV operator for integer division
query I rowsort label-1936
SELECT DISTINCT col0 DIV cor0.col2 - 59 * cor0.col1 FROM tab1 cor0
----
-1534
-589
-767

skipif mysql # not compatible
query I rowsort label-1936
SELECT DISTINCT col0 / cor0.col2 - 59 * cor0.col1 FROM tab1 cor0
----
-1534
-589
-767

query I rowsort
SELECT - - col0 * 20 AS col1 FROM tab1 AS cor0
----
1280
1600
60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * 54 col2 FROM tab2 AS cor0
----
1404
1458
2052

query I rowsort
SELECT + ( col2 ) * - col2 AS col0 FROM tab1 AS cor0
----
-2916
-3249
-9216

onlyif mysql # use DIV operator for integer division
query I rowsort label-1940
SELECT col0 DIV - 15 FROM tab0 AS cor0
----
-1
-2
-5

skipif mysql # not compatible
query I rowsort label-1940
SELECT col0 / - 15 FROM tab0 AS cor0
----
-1
-2
-5

query I rowsort
SELECT DISTINCT tab2.col2 + - 78 + 9 FROM tab2
----
-31
-42
-43

query I rowsort
SELECT - col0 + + col1 + + tab1.col2 FROM tab1
----
29
3
77

query I rowsort
SELECT ( - ( + tab0.col0 ) ) FROM tab0, tab1 cor0
----
9 values hashing to 09d8a912de1b8ab762e5ffbe028ce99e

onlyif mysql # use DIV operator for integer division
query I rowsort label-1944
SELECT + col1 DIV col2 + 62 * col2 * col2 AS col0 FROM tab0
----
159
416889
67520

skipif mysql # not compatible
query I rowsort label-1944
SELECT + col1 / col2 + 62 * col2 * col2 AS col0 FROM tab0
----
159
416889
67520

onlyif mysql # use DIV operator for integer division
query I rowsort label-1945
SELECT col2 * + 2 + + col2 DIV + tab1.col2 + + tab1.col1 * + col2 * + col1 FROM tab1
----
16417
36613
5815

skipif mysql # not compatible
query I rowsort label-1945
SELECT col2 * + 2 + + col2 / + tab1.col2 + + tab1.col1 * + col2 * + col1 FROM tab1
----
16417
36613
5815

query I rowsort
SELECT + - 93 * - 78 FROM tab1 AS cor0
----
7254
7254
7254

onlyif mysql # use DIV operator for integer division
query I rowsort label-1947
SELECT ALL col0 DIV + col0 + ( + col0 + - cor0.col1 ) AS col0 FROM tab2 cor0
----
-23
20
63

skipif mysql # not compatible
query I rowsort label-1947
SELECT ALL col0 / + col0 + ( + col0 + - cor0.col1 ) AS col0 FROM tab2 cor0
----
-23
20
63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * + col2 - + ( col2 ) * cor0.col0 col2 FROM tab0 AS cor0
----
164
2046
62

query I rowsort
SELECT ALL + col1 + col2 + 56 * - col1 FROM tab2 cor0
----
-1678
-3219
-897

query I rowsort
SELECT + col2 + col1 * + col0 * col1 FROM tab2 AS cor0
----
22869
271544
6754

query I rowsort
SELECT - + cor0.col0 * cor0.col2 FROM tab0 cor0
----
-35
-7298
-792

query I rowsort
SELECT col0 * tab0.col0 + - col2 * + col0 AS col2 FROM tab0
----
-216
1190
623

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor1.col0 col1 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT - col2 * - cor0.col2 + - 94 FROM tab2 AS cor0
----
1350
582
635

query I rowsort
SELECT cor0.col1 + + col0 AS col1 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT ALL - col2 + - 16 AS col2 FROM tab0 AS cor0
----
-17
-49
-98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1957
SELECT DISTINCT - col0 * - ( - col0 * col0 ) - - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1957
SELECT DISTINCT - col0 * - ( - col0 * col0 ) - - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT col1 * + ( 98 ) AS col1 FROM tab0 AS cor0
----
8428
8918
9506

query I rowsort
SELECT + + col1 * ( 0 ) AS col1 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + - 40 col0 FROM tab1 AS cor0
----
-50
-53
-66

query I rowsort
SELECT ALL + col1 + col1 + - col2 AS col2 FROM tab2 AS cor0
----
-4
35
92

query I rowsort
SELECT + + 74 AS col0 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to dc22979e6d261795bd3ce2990fdbbf82

query I rowsort
SELECT - + 68 * col2 FROM tab1 AS cor0
----
-3672
-3876
-6528

query I rowsort
SELECT 51 * + col1 AS col1 FROM tab2 AS cor0
----
1581
3009
867

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT - CAST ( - col1 AS REAL ) + cor0.col0 col2 FROM tab1 cor0
----
29
74
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * col0 + - col0 * col2 col2 FROM tab2
----
-406
-4345
-6630

query I rowsort
SELECT ALL + col2 * + ( + col1 ) AS col0 FROM tab1
----
1248
1404
570

query I rowsort
SELECT ALL + col2 + - col2 + col2 FROM tab2
----
26
27
38

query I rowsort
SELECT ALL + tab2.col1 + 22 FROM tab2
----
39
53
81

query I rowsort
SELECT ALL + ( 67 ) * + col0 AS col1 FROM tab2
----
469
5226
5293

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col0 ) * - col1 col0 FROM tab0
----
-2064
-3395
-8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-1972
SELECT + + col1 + + 61 DIV col1 FROM tab2 AS cor0
----
20
32
60

skipif mysql # not compatible
query I rowsort label-1972
SELECT + + col1 + + 61 / col1 FROM tab2 AS cor0
----
20
32
60

onlyif mysql # use DIV operator for integer division
query I rowsort label-1973
SELECT + col2 * cor0.col2 + - col2 DIV col1 FROM tab2 AS cor0
----
1442
676
729

skipif mysql # not compatible
query I rowsort label-1973
SELECT + col2 * cor0.col2 + - col2 / col1 FROM tab2 AS cor0
----
1442
676
729

onlyif mysql # use DIV operator for integer division
query I rowsort label-1974
SELECT - col2 + col0 DIV - col0 AS col0 FROM tab1 AS cor0
----
-55
-58
-97

skipif mysql # not compatible
query I rowsort label-1974
SELECT - col2 + col0 / - col0 AS col0 FROM tab1 AS cor0
----
-55
-58
-97

query I rowsort
SELECT ALL ( + col1 ) * col0 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT + col2 * - col1 + cor0.col2 + cor0.col2 FROM tab1 AS cor0
----
-1056
-1296
-456

query I rowsort
SELECT DISTINCT + col1 + + col1 * + col0 AS col0 FROM tab0 AS cor0
----
2150
3492
8190

query I rowsort
SELECT - - ( + col1 ) * - 24 AS col2 FROM tab0 AS cor0
----
-2064
-2184
-2328

onlyif mysql # use DIV operator for integer division
query I rowsort label-1979
SELECT DISTINCT ( - col1 ) DIV cor0.col0 FROM tab1 AS cor0
----
-8
0

skipif mysql # not compatible
query I rowsort label-1979
SELECT DISTINCT ( - col1 ) / cor0.col0 FROM tab1 AS cor0
----
-8
0

query I rowsort
SELECT DISTINCT - ( + col2 ) + + col1 AS col0 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT DISTINCT 9 + + col2 - - col2 AS col2 FROM tab2
----
61
63
85

query I rowsort
SELECT 31 * - tab1.col1 FROM tab1
----
-310
-403
-806

query I rowsort
SELECT DISTINCT + col0 * tab0.col2 * + col1 - - ( + col2 ) * col0 * + 29 AS col0 FROM tab0
----
4410
875760
91080

onlyif mysql # use DIV operator for integer division
query I rowsort label-1984
SELECT col0 DIV + 21 AS col1 FROM tab0
----
1
1
4

skipif mysql # not compatible
query I rowsort label-1984
SELECT col0 / + 21 AS col1 FROM tab0
----
1
1
4

query I rowsort
SELECT + + 35 + col2 FROM tab2 AS cor0
----
61
62
73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col2 * + 60 col1 FROM tab0 AS cor0
----
2100
437880
47520

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 59 + col2 + col0 col1 FROM tab2 AS cor0
----
-25
45
58

query I rowsort
SELECT col1 * col1 * col1 AS col0 FROM tab2 cor0
----
205379
29791
4913

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + + col0 * + col1 - + col2 col1 FROM tab1
----
1024
27
647

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col2 col2 FROM tab1, tab2 AS cor0
----
26
27
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-1991
SELECT + 40 DIV 67 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1991
SELECT + 40 / 67 AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT cor0.col1 FROM tab1, tab1 AS cor0, tab1 AS cor1, tab0 AS cor2
----
10
13
26

onlyif mysql # use DIV operator for integer division
query I rowsort label-1993
SELECT DISTINCT - + 56 DIV 16 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1993
SELECT DISTINCT - + 56 / 16 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT ALL + - 2 AS col1 FROM tab1 AS cor0
----
-2
-2
-2

onlyif mysql # use DIV operator for integer division
query I rowsort label-1995
SELECT col0 DIV - 88 AS col1 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-1995
SELECT col0 / - 88 AS col1 FROM tab0 AS cor0
----
-1
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-1996
SELECT + col1 * + ( - 52 ) - col2 DIV + cor0.col0 FROM tab0 cor0
----
-4473
-4732
-5044

skipif mysql # not compatible
query I rowsort label-1996
SELECT + col1 * + ( - 52 ) - col2 / + cor0.col0 FROM tab0 cor0
----
-4473
-4732
-5044

query I rowsort
SELECT ALL col1 * col1 + 71 FROM tab2 cor0
----
1032
3552
360

query I rowsort
SELECT col2 + + col2 * col0 FROM tab2 AS cor0
----
2054
216
3040

query I rowsort
SELECT ALL col0 + + 67 FROM tab1 AS cor0
----
131
147
70

query I rowsort
SELECT col2 * ( + col1 ) + col2 AS col1 FROM tab1 AS cor0
----
1344
1458
627

query I rowsort
SELECT DISTINCT col2 + - 27 * + col2 AS col1 FROM tab2 AS cor0
----
-676
-702
-988

onlyif mysql # use DIV operator for integer division
query I rowsort label-2002
SELECT ALL + cor0.col1 DIV + 89 + - cor0.col0 FROM tab0 AS cor0
----
-24
-34
-88

skipif mysql # not compatible
query I rowsort label-2002
SELECT ALL + cor0.col1 / + 89 + - cor0.col0 FROM tab0 AS cor0
----
-24
-34
-88

query I rowsort
SELECT DISTINCT col2 + - col0 * col0 FROM tab2 cor0
----
-22
-6058
-6203

query I rowsort
SELECT col2 + - ( col0 ) AS col2 FROM tab1 AS cor0
----
-7
16
51

query I rowsort
SELECT DISTINCT - + col1 + + ( - 89 ) FROM tab0 AS cor0
----
-175
-180
-186

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * 69 col0 FROM tab1 AS cor0
----
-1794
-690
-897

query I rowsort
SELECT ALL - cor0.col2 - + cor0.col1 FROM tab0 AS cor0
----
-119
-173
-98

query I rowsort
SELECT + + cor0.col1 * - col1 + - col2 * + col0 FROM tab2 AS cor0
----
-1150
-3291
-5509

query I rowsort
SELECT col2 * + 62 + col0 FROM tab0 AS cor0
----
2070
5173
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2010
SELECT - - col0 - + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2010
SELECT - - col0 - + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 * - ( - 58 ) * col2 FROM tab1
----
-169128
-188442
-534528

query I rowsort
SELECT ALL col1 + - 39 AS col0 FROM tab1
----
-13
-26
-29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 73 col0 FROM tab0, tab0 AS cor0
----
73

query I rowsort
SELECT DISTINCT 56 * 7 AS col0 FROM tab2, tab1 cor0
----
392

query I rowsort
SELECT ALL - - col1 + + col0 * + col2 AS col2 FROM tab1 AS cor0
----
188
3658
7693

query I rowsort
SELECT col1 FROM tab2 WHERE NOT NULL NOT IN ( - col1 + - col0 )
----

query I rowsort
SELECT ALL 38 * + col2 - + 23 FROM tab1
----
2029
2143
3625

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2018
SELECT + 30 + tab0.col1 * - CAST( + ( - col0 ) AS SIGNED ) * + col1 AS col2 FROM tab0
----
177534
329345
737039

skipif mysql # not compatible
query I rowsort label-2018
SELECT + 30 + tab0.col1 * - CAST ( + ( - col0 ) AS INTEGER ) * + col1 AS col2 FROM tab0
----
177534
329345
737039

query I rowsort
SELECT ALL 65 * col1 - col1 AS col0 FROM tab2
----
1088
1984
3776

query I rowsort
SELECT col0 * - col0 * col1 + tab0.col0 * - col0 - 89 AS col2 FROM tab0
----
-120139
-50201
-728821

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 3 + col1 - col2 col2 FROM tab0
----
50
6
93

query I rowsort
SELECT ALL - ( col0 ) * - 36 - 43 AS col1 FROM tab1 cor0
----
2261
2837
65

query I rowsort
SELECT DISTINCT - - ( col1 ) * - col1 FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT ALL + 73 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 3933a906d17a820ccf95467e2206df8f

query I rowsort
SELECT + 58 * cor0.col2 FROM tab0 AS cor0
----
1914
4756
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + col1 - - col2 * - col1 col2 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT DISTINCT + col0 * ( cor0.col0 ) FROM tab1 AS cor0
----
4096
6400
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-2028
SELECT + + col0 DIV ( 91 * + col2 ) FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2028
SELECT + + col0 / ( 91 * + col2 ) FROM tab0 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2029
SELECT col2 * + col0 DIV col0 FROM tab1
----
54
57
96

skipif mysql # not compatible
query I rowsort label-2029
SELECT col2 * + col0 / col0 FROM tab1
----
54
57
96

query I rowsort
SELECT DISTINCT col1 * ( + 55 ) AS col2 FROM tab0
----
4730
5005
5335

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 26 col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584

onlyif mysql # use DIV operator for integer division
query I rowsort label-2032
SELECT + col1 DIV ( + 2 + - col1 ) AS col1 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2032
SELECT + col1 / ( + 2 + - col1 ) AS col1 FROM tab1
----
-1
-1
-1

query I rowsort
SELECT DISTINCT col1 + - 70 AS col0 FROM tab0 AS cor0
----
16
21
27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 62 col2 FROM tab2
----
62
62
62

query I rowsort
SELECT ALL - 33 + col1 FROM tab0 cor0
----
53
58
64

query I rowsort
SELECT + 86 + + col2 FROM tab0 AS cor0
----
119
168
87

query I rowsort
SELECT col2 + - cor0.col1 * - col0 AS col0 FROM tab2 AS cor0
----
1381
244
4628

query I rowsort
SELECT - + col1 * + cor0.col1 + 5 * + 20 FROM tab1 AS cor0
----
-576
-69
0

query I rowsort
SELECT DISTINCT + cor0.col1 * + col1 + + col2 FROM tab1 AS cor0
----
157
265
730

query I rowsort
SELECT ALL - 18 * - cor0.col1 * + col1 FROM tab1 AS cor0
----
12168
1800
3042

query I rowsort
SELECT ALL + + col2 + col2 * + ( 39 ) AS col0 FROM tab0 cor0
----
1320
3280
40

query I rowsort
SELECT - col0 + - col2 * col2 AS col0 FROM tab2
----
-1523
-736
-754

onlyif mysql # use DIV operator for integer division
query I rowsort label-2043
SELECT ALL col2 DIV 99 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2043
SELECT ALL col2 / 99 FROM tab2
----
0
0
0

query I rowsort
SELECT - - col2 * col2 + col2 FROM tab1 AS cor0
----
2970
3306
9312

query I rowsort
SELECT col2 - col2 * + col2 FROM tab2 AS cor0
----
-1406
-650
-702

query I rowsort
SELECT - col1 + - ( col2 ) AS col0 FROM tab2
----
-55
-58
-85

query I rowsort
SELECT DISTINCT col2 + + col1 * - col0 * + col2 - col1 AS col0 FROM tab2
----
-119685
-51013
-5863

query I rowsort
SELECT ALL - cor0.col2 FROM tab2, tab1 cor0, tab1 cor1
----
27 values hashing to 44fdcd7cd603352d4d127811d164cc1e

onlyif mysql # use DIV operator for integer division
query I rowsort label-2049
SELECT DISTINCT 61 + - ( col2 ) DIV tab1.col0 + + 64 AS col2 FROM tab1
----
107
124
125

skipif mysql # not compatible
query I rowsort label-2049
SELECT DISTINCT 61 + - ( col2 ) / tab1.col0 + + 64 AS col2 FROM tab1
----
107
124
125

query I rowsort
SELECT + col1 * col0 * tab1.col1 AS col2 FROM tab1
----
13520
2028
6400

query I rowsort
SELECT DISTINCT - 95 + cor0.col1 AS col1 FROM tab2, tab0 AS cor0
----
-4
-9
2

query I rowsort
SELECT ALL + 49 * - col0 AS col2 FROM tab1 AS cor0
----
-147
-3136
-3920

query I rowsort
SELECT col2 + + col0 + col1 AS col1 FROM tab1 AS cor0
----
131
189
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-2054
SELECT DISTINCT + col1 + - 50 DIV - col0 AS col2 FROM tab2 AS cor0
----
17
38
59

skipif mysql # not compatible
query I rowsort label-2054
SELECT DISTINCT + col1 + - 50 / - col0 AS col2 FROM tab2 AS cor0
----
17
38
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-2055
SELECT - ( + col0 ) DIV + cor0.col0 + cor0.col1 + - 31 FROM tab1 AS cor0
----
-19
-22
-6

skipif mysql # not compatible
query I rowsort label-2055
SELECT - ( + col0 ) / + cor0.col0 + cor0.col1 + - 31 FROM tab1 AS cor0
----
-19
-22
-6

query I rowsort
SELECT DISTINCT + + 96 * - cor0.col1 FROM tab2 AS cor0
----
-1632
-2976
-5664

query I rowsort
SELECT DISTINCT - 95 * ( col2 ) FROM tab0 cor0
----
-3135
-7790
-95

query I rowsort
SELECT ALL + - 75 FROM tab2 cor0
----
-75
-75
-75

query I rowsort
SELECT - + cor0.col2 AS col0 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 83 col2 FROM tab2
----
-83

onlyif mysql # use DIV operator for integer division
query I rowsort label-2061
SELECT + col2 * + col1 DIV - col1 FROM tab1 AS cor0
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-2061
SELECT + col2 * + col1 / - col1 FROM tab1 AS cor0
----
-54
-57
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 85 col2 FROM tab1 AS cor0
----
-85
-85
-85

onlyif mysql # use DIV operator for integer division
query I rowsort label-2063
SELECT ALL - + col1 + - 49 DIV - col0 FROM tab2 AS cor0
----
-17
-24
-59

skipif mysql # not compatible
query I rowsort label-2063
SELECT ALL - + col1 + - 49 / - col0 FROM tab2 AS cor0
----
-17
-24
-59

query I rowsort
SELECT DISTINCT - cor0.col1 * col1 * + col2 + - col1 FROM tab1 AS cor0
----
-16237
-36530
-5710

query I rowsort
SELECT + + cor0.col1 + 73 AS col2 FROM tab1 AS cor0
----
83
86
99

onlyif mysql # use DIV operator for integer division
query I rowsort label-2066
SELECT - - col1 + - col1 DIV col0 FROM tab2 AS cor0
----
17
27
59

skipif mysql # not compatible
query I rowsort label-2066
SELECT - - col1 + - col1 / col0 FROM tab2 AS cor0
----
17
27
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - col2 + col1 col2 FROM tab1 cor0
----
-2
-37
-70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab1.col0 col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0

query I rowsort
SELECT 92 AS col2 FROM tab1, tab2 AS cor0, tab2 cor1
----
27 values hashing to c64cb7a81da51f4be0b6906a223e8817

query I rowsort
SELECT ALL 36 * col1 AS col1 FROM tab2
----
1116
2124
612

onlyif mysql # use DIV operator for integer division
query I rowsort label-2071
SELECT ALL + col2 * + CAST( 71 AS SIGNED ) - col2 DIV - CAST( - col0 * - col0 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
2343
5822
71

skipif mysql # not compatible
query I rowsort label-2071
SELECT ALL + col2 * + CAST ( 71 AS INTEGER ) - col2 / - CAST ( - col0 * - col0 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
2343
5822
71

query I rowsort
SELECT DISTINCT + - cor0.col1 * - col2 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT DISTINCT - col1 + - ( - col0 ) AS col2 FROM tab2
----
-24
19
62

query I rowsort
SELECT - + cor0.col0 + cor0.col2 AS col0 FROM tab0 AS cor0
----
-34
-7
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-2075
SELECT ALL col1 DIV - ( col1 ) FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2075
SELECT ALL col1 / - ( col1 ) FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT + + cor0.col1 * - 41 FROM tab0 AS cor0
----
-3526
-3731
-3977

query I rowsort
SELECT DISTINCT + + col1 + - cor0.col0 AS col0 FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT - - col2 + - 90 FROM tab0 AS cor0
----
-57
-8
-89

onlyif mysql # use DIV operator for integer division
query I rowsort label-2079
SELECT ALL - col1 DIV 86 AS col0 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2079
SELECT ALL - col1 / 86 AS col0 FROM tab0 AS cor0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 98 col2 FROM tab1, tab2 AS cor0
----
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-2081
SELECT DISTINCT + tab2.col0 - 45 DIV + 43 FROM tab2
----
6
77
78

skipif mysql # not compatible
query I rowsort label-2081
SELECT DISTINCT + tab2.col0 - 45 / + 43 FROM tab2
----
6
77
78

query I rowsort
SELECT DISTINCT tab0.col1 - + col0 AS col0 FROM tab0
----
2
62

query I rowsort
SELECT DISTINCT col2 * + col2 + col2 FROM tab0 AS cor0
----
1122
2
6806

onlyif mysql # use DIV operator for integer division
query I rowsort label-2084
SELECT DISTINCT col0 + + col1 DIV + col1 FROM tab1 AS cor0
----
4
65
81

skipif mysql # not compatible
query I rowsort label-2084
SELECT DISTINCT col0 + + col1 / + col1 FROM tab1 AS cor0
----
4
65
81

query I rowsort
SELECT - + 44 * - col0 + + col1 AS col1 FROM tab0 AS cor0
----
1142
1637
4007

query I rowsort
SELECT DISTINCT + col1 * 14 + - col1 + - 39 FROM tab0 AS cor0
----
1079
1144
1222

onlyif mysql # use DIV operator for integer division
query I rowsort label-2087
SELECT ALL - - 0 * col2 + - col0 * col2 DIV + 13 AS col2 FROM tab0 AS cor0
----
-2
-561
-60

skipif mysql # not compatible
query I rowsort label-2087
SELECT ALL - - 0 * col2 + - col0 * col2 / + 13 AS col2 FROM tab0 AS cor0
----
-2
-561
-60

query I rowsort
SELECT col0 * col1 * + 95 AS col0 FROM tab0
----
196080
322525
769405

query I rowsort
SELECT ALL col2 - + 53 AS col0 FROM tab2
----
-15
-26
-27

query I rowsort
SELECT - 58 AS col2 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to a38440572743ed8a3d8af7b49a5388c9

query I rowsort
SELECT - tab0.col1 * col2 + col2 FROM tab0
----
-2805
-7380
-96

query I rowsort
SELECT ALL col1 * - col0 - 68 AS col1 FROM tab2
----
-1411
-285
-4670

query I rowsort
SELECT col1 * + 52 * col0 + tab0.col0 + col2 * - col0 FROM tab0
----
106560
176540
413939

onlyif mysql # use DIV operator for integer division
query I rowsort label-2094
SELECT ALL + cor0.col2 DIV - col0 AS col0 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2094
SELECT ALL + cor0.col2 / - col0 AS col0 FROM tab0 AS cor0
----
-1
0
0

query I rowsort
SELECT DISTINCT 39 * - col0 FROM tab2 AS cor0
----
-273
-3042
-3081

query I rowsort
SELECT DISTINCT + 40 FROM tab1, tab0 cor0
----
40

query I rowsort
SELECT ALL + - col2 + - col0 * + col1 * - col2 FROM tab2 cor0
----
119626
50996
5832

query I rowsort
SELECT ALL - - 32 * col1 FROM tab2 AS cor0
----
1888
544
992

query I rowsort
SELECT ALL - + col0 + - col0 * 16 FROM tab0 AS cor0
----
-1513
-408
-595

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2100
SELECT ALL CAST( + col2 AS SIGNED ) + col1 FROM tab2
----
55
58
85

skipif mysql # not compatible
query I rowsort label-2100
SELECT ALL CAST ( + col2 AS INTEGER ) + col1 FROM tab2
----
55
58
85

query I rowsort
SELECT ALL col1 + 17 AS col0 FROM tab0
----
103
108
114

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2102
SELECT cor0.col2 + + CAST( NULL AS DECIMAL ) FROM tab1, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2102
SELECT cor0.col2 + + CAST ( NULL AS REAL ) FROM tab1, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT - col1 - + col1 * - col0 * + col0 AS col1 FROM tab0
----
118728
49450
720720

query I rowsort
SELECT - + 64 FROM tab1 cor0
----
-64
-64
-64

query I rowsort
SELECT DISTINCT + + col2 * - col1 - 9 * col0 FROM tab2 cor0
----
-1357
-2236
-900

onlyif mysql # use DIV operator for integer division
query I rowsort label-2106
SELECT ALL - + col2 DIV + col0 AS col1 FROM tab2 AS cor0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-2106
SELECT ALL - + col2 / + col0 AS col1 FROM tab2 AS cor0
----
-3
0
0

query I rowsort
SELECT + + 39 + col0 * - col0 * cor0.col0 AS col2 FROM tab0 cor0
----
-13785
-42836
-704930

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * 13 col1 FROM tab2
----
221
403
767

query I rowsort
SELECT ALL - - col1 + + col1 * + col0 FROM tab1 AS cor0
----
104
1053
650

query I rowsort
SELECT + + cor0.col2 * cor0.col2 FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT ALL + + ( 86 ) FROM tab2 AS cor0
----
86
86
86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + 8 ) * col1 * - col2 + col2 col2 FROM tab1 AS cor0
----
-11178
-4503
-9888

onlyif mysql # use DIV operator for integer division
query I rowsort label-2113
SELECT DISTINCT 60 + col2 DIV + col0 FROM tab2 AS cor0
----
60
63

skipif mysql # not compatible
query I rowsort label-2113
SELECT DISTINCT 60 + col2 / + col0 FROM tab2 AS cor0
----
60
63

onlyif mysql # use DIV operator for integer division
query I rowsort label-2114
SELECT 36 DIV - col0 FROM tab2 cor0
----
-5
0
0

skipif mysql # not compatible
query I rowsort label-2114
SELECT 36 / - col0 FROM tab2 cor0
----
-5
0
0

query I rowsort
SELECT col1 + col1 - ( + col2 ) FROM tab0 AS cor0
----
100
139
193

query I rowsort
SELECT DISTINCT + 59 + cor0.col1 FROM tab2 cor0
----
118
76
90

query I rowsort
SELECT + col0 * col0 + - col0 AS col1 FROM tab1 AS cor0
----
4032
6
6320

query I rowsort
SELECT ALL + 64 + cor0.col1 AS col1 FROM tab2 AS cor0
----
123
81
95

query I rowsort
SELECT DISTINCT - - 47 AS col1 FROM tab1 cor0
----
47

query I rowsort
SELECT + 44 + + col1 * - 3 * + cor0.col1 FROM tab2 AS cor0
----
-10399
-2839
-823

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2121
SELECT DISTINCT - CAST( NULL AS SIGNED ) * tab2.col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2121
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * tab2.col0 FROM tab2
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-2122
SELECT - cor0.col1 DIV + cor0.col0 + col1 - col0 AS col0 FROM tab2 cor0
----
-19
-62
20

skipif mysql # not compatible
query I rowsort label-2122
SELECT - cor0.col1 / + cor0.col0 + col1 - col0 AS col0 FROM tab2 cor0
----
-19
-62
20

query I rowsort
SELECT + - col0 * col1 + 27 AS col2 FROM tab1 AS cor0
----
-1013
-51
-613

query I rowsort
SELECT + - col0 * + col2 + col2 FROM tab2 cor0
----
-162
-2002
-2964

query I rowsort
SELECT ALL col0 * ( + cor0.col1 ) * - col1 FROM tab0 AS cor0
----
-177504
-329315
-737009

query I rowsort
SELECT + + col0 * + 32 + 81 FROM tab1 AS cor0
----
177
2129
2641

onlyif mysql # use DIV operator for integer division
query I rowsort label-2127
SELECT col0 DIV 21 + + 67 * + col0 FROM tab0 AS cor0
----
1609
2346
5967

skipif mysql # not compatible
query I rowsort label-2127
SELECT col0 / 21 + + 67 * + col0 FROM tab0 AS cor0
----
1609
2346
5967

query I rowsort
SELECT ALL col2 + 97 AS col2 FROM tab1 cor0
----
151
154
193

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2129
SELECT DISTINCT - col1 * + CAST( NULL AS SIGNED ) + - 85 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2129
SELECT DISTINCT - col1 * + CAST ( NULL AS INTEGER ) + - 85 FROM tab1 cor0
----
NULL

query I rowsort
SELECT - - col2 * - cor0.col0 * 58 AS col1 FROM tab0 AS cor0
----
-2030
-423284
-45936

query I rowsort
SELECT DISTINCT col0 + ( - col1 ) AS col0 FROM tab0 AS cor0
----
-2
-62

query I rowsort
SELECT ALL + cor0.col2 * ( - 53 ) + col2 * 26 AS col0 FROM tab2 cor0
----
-1026
-702
-729

query I rowsort
SELECT - col0 * 83 + col0 * + cor0.col0 AS col0 FROM tab1 AS cor0
----
-1216
-240
-240

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2134
SELECT DISTINCT col0 + CAST( - 36 AS SIGNED ) * + col2 * + col1 AS col0 FROM tab0 AS cor0
----
-102144
-268543
-3457

skipif mysql # not compatible
query I rowsort label-2134
SELECT DISTINCT col0 + CAST ( - 36 AS INTEGER ) * + col2 * + col1 AS col0 FROM tab0 AS cor0
----
-102144
-268543
-3457

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2135
SELECT ALL - 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-2135
SELECT ALL - col2 - CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - - col0 * col1 - + col1 AS col2 FROM tab0 AS cor0
----
1978
3298
8008

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 * - 21 col1 FROM tab2 AS cor0
----
-1239
-357
-651

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2138
SELECT + CAST( 87 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
87
87
87

skipif mysql # not compatible
query I rowsort label-2138
SELECT + CAST ( 87 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
87
87
87

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2139
SELECT col0 * - CAST( - 1 AS SIGNED ) col0 FROM tab2
----
7
78
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2139
SELECT col0 * - CAST ( - 1 AS INTEGER ) col0 FROM tab2
----
7
78
79

query I rowsort
SELECT + 37 * + col0 FROM tab0 AS cor0
----
1295
3293
888

query I rowsort
SELECT - col1 + + 50 + cor0.col1 FROM tab1 AS cor0
----
50
50
50

query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab2 cor0 CROSS JOIN tab0 cor1
----
243 values hashing to b3323704f6873113d863f8e27386b356

query I rowsort
SELECT DISTINCT 38 + + 47 + col2 AS col2 FROM tab0 AS cor0
----
118
167
86

query I rowsort
SELECT ALL ( col0 ) + col2 AS col1 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT + 25 + 6 FROM tab2 AS cor0
----
31
31
31

query I rowsort
SELECT ALL + cor0.col2 AS col0 FROM tab2, tab2 cor0, tab1 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT - col0 + col0 * - 71 FROM tab0 cor0
----
-1728
-2520
-6408

query I rowsort
SELECT DISTINCT - col0 * col1 + ( + 99 ) + - col1 AS col2 FROM tab1
----
-5
-551
-954

query I rowsort
SELECT + + col2 * - ( - ( + cor0.col0 ) ) AS col0 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT ALL - 48 * cor0.col1 FROM tab0, tab2 AS cor0, tab1 cor1, tab1, tab2 AS cor2
----
243 values hashing to daea12b86e72a41bca7df695d70b5635

query I rowsort
SELECT DISTINCT col2 * 3 * - col1 FROM tab0 cor0
----
-22386
-291
-8514

query I rowsort
SELECT ALL col2 + - ( col2 ) FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - col2 * + ( 43 ) AS col1 FROM tab2 AS cor0
----
-1118
-1161
-1634

query I rowsort
SELECT col0 * + 46 AS col0 FROM tab0
----
1104
1610
4094

query I rowsort
SELECT ALL - 69 FROM tab2, tab0 cor0
----
9 values hashing to 3bd7460efa48c66c072ad5f3c2def7e9

onlyif mysql # use DIV operator for integer division
query I rowsort label-2156
SELECT 79 DIV col2 AS col2 FROM tab0
----
0
2
79

skipif mysql # not compatible
query I rowsort label-2156
SELECT 79 / col2 AS col2 FROM tab0
----
0
2
79

query I rowsort
SELECT ALL col0 * + col0 * ( - col2 ) - col2 * col1 * col0 AS col1 FROM tab0
----
-1313640
-4620
-87120

query I rowsort
SELECT + col1 + + col0 * + 78 FROM tab0 AS cor0
----
1958
2827
7033

query I rowsort
SELECT + cor0.col0 * col2 * + col1 AS col2 FROM tab0 AS cor0
----
3395
664118
68112

onlyif mysql # use DIV operator for integer division
query I rowsort label-2160
SELECT + col1 DIV 50 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2160
SELECT + col1 / 50 FROM tab2 AS cor0
----
0
0
1

query I rowsort
SELECT DISTINCT + col1 + 99 AS col0 FROM tab1 AS cor0
----
109
112
125

query I rowsort
SELECT DISTINCT - 34 AS col1 FROM tab0, tab2 cor0
----
-34

query I rowsort
SELECT + ( + 76 ) FROM tab2 AS cor0
----
76
76
76

query I rowsort
SELECT + + ( - col1 ) * + col1 FROM tab2 AS cor0
----
-289
-3481
-961

query I rowsort
SELECT col2 - + col1 * + col2 FROM tab1
----
-1152
-1350
-513

onlyif mysql # use DIV operator for integer division
query I rowsort label-2166
SELECT col1 DIV - 82 AS col2 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2166
SELECT col1 / - 82 AS col2 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT - - col1 + + 74 AS col1 FROM tab0 AS cor0
----
160
165
171

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2168
SELECT + CAST( - col2 AS SIGNED ) * - col1 + - 72 AS col1 FROM tab0 AS cor0
----
25
2766
7390

skipif mysql # not compatible
query I rowsort label-2168
SELECT + CAST ( - col2 AS INTEGER ) * - col1 + - 72 AS col1 FROM tab0 AS cor0
----
25
2766
7390

query I rowsort
SELECT DISTINCT - ( col1 ) * col0 + ( + 1 ) * col2 + ( - col0 * col2 ) FROM tab2 cor0
----
-379
-4307
-6604

query I rowsort
SELECT ALL - - cor0.col0 * - col2 * + col2 + cor0.col0 * col2 FROM tab0 AS cor0
----
-25344
-591138
0

query I rowsort
SELECT DISTINCT - col0 + col0 + - 27 AS col0 FROM tab1 cor0
----
-27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 + - col2 col2 FROM tab1 AS cor0
----
-121
-176
-57

query I rowsort
SELECT ALL 33 * - col0 + + 77 FROM tab0 AS cor0
----
-1078
-2860
-715

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 13 * col0 + 40 col1 FROM tab0 AS cor0
----
1197
352
495

query I rowsort
SELECT ALL - col2 * - cor0.col1 * 10 + + col1 + col0 FROM tab0 AS cor0
----
1102
28490
74800

query I rowsort
SELECT DISTINCT ( + 19 ) * col1 FROM tab1
----
190
247
494

query I rowsort
SELECT ALL - cor1.col1 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2

query I rowsort
SELECT 33 - + col1 * + col2 FROM tab0
----
-2805
-64
-7429

query I rowsort
SELECT ALL + - 16 AS col0 FROM tab1 cor0
----
-16
-16
-16

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2180
SELECT - CAST( - 76 AS SIGNED ) AS col1 FROM tab0
----
76
76
76

skipif mysql # not compatible
query I rowsort label-2180
SELECT - CAST ( - 76 AS INTEGER ) AS col1 FROM tab0
----
76
76
76

query I rowsort
SELECT - + col2 * 62 + - ( col1 ) * col2 AS col2 FROM tab0 AS cor0
----
-12546
-159
-4884

query I rowsort
SELECT col2 + 90 AS col1 FROM tab2 AS cor0
----
116
117
128

query I rowsort
SELECT - col2 + - ( - col0 ) AS col2 FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT - cor0.col2 + 25 AS col1 FROM tab2 AS cor0
----
-1
-13
-2

query I rowsort
SELECT DISTINCT col2 - col1 * col0 AS col2 FROM tab2 AS cor0
----
-1305
-190
-4576

query I rowsort
SELECT + col0 * 84 FROM tab1
----
252
5376
6720

query I rowsort
SELECT ALL - - col0 + ( col1 ) + - 57 AS col1 FROM tab0 AS cor0
----
123
53
75

onlyif mysql # use DIV operator for integer division
query I rowsort label-2188
SELECT ALL cor0.col2 DIV + cor0.col1 + col2 * 64 * - 18 FROM tab0 AS cor0
----
-1152
-38016
-94464

skipif mysql # not compatible
query I rowsort label-2188
SELECT ALL cor0.col2 / + cor0.col1 + col2 * 64 * - 18 FROM tab0 AS cor0
----
-1152
-38016
-94464

onlyif mysql # use DIV operator for integer division
query I rowsort label-2189
SELECT ALL + 28 + col2 DIV - cor0.col1 FROM tab1 AS cor0
----
21
23
26

skipif mysql # not compatible
query I rowsort label-2189
SELECT ALL + 28 + col2 / - cor0.col1 FROM tab1 AS cor0
----
21
23
26

query I rowsort
SELECT - 86 + + 65 * + col2 FROM tab0 AS cor0
----
-21
2059
5244

query I rowsort
SELECT col0 * + 81 FROM tab2
----
567
6318
6399

query I rowsort
SELECT DISTINCT cor0.col2 FROM tab2 AS cor0 CROSS JOIN tab0, tab0 AS cor1
----
26
27
38

query I rowsort
SELECT - col0 * 0 + - 95 FROM tab1
----
-95
-95
-95

query I rowsort
SELECT + 94 * col0 - col1 FROM tab1
----
256
6006
7507

query I rowsort
SELECT 4 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 730dff78e83112374961ea711f98ebaa

query I rowsort
SELECT DISTINCT col2 + - ( col2 ) * - col1 AS col0 FROM tab2 AS cor0
----
1560
684
864

query I rowsort
SELECT col1 * + 71 FROM tab2 AS cor0
----
1207
2201
4189

query I rowsort
SELECT DISTINCT - col1 * + col1 * col2 FROM tab1 AS cor0
----
-16224
-36504
-5700

query I rowsort
SELECT ALL - col2 - - col2 * col0 AS col0 FROM tab2 AS cor0
----
162
2002
2964

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col2 * col0 col2 FROM tab2 cor0
----
-189
-2028
-3002

query I rowsort
SELECT col2 + - col0 * - col0 AS col2 FROM tab1 AS cor0
----
4153
63
6496

query I rowsort
SELECT + + col2 + - ( + col0 ) * col1 AS col0 FROM tab2 AS cor0
----
-1305
-190
-4576

onlyif mysql # use DIV operator for integer division
query I rowsort label-2203
SELECT - col0 DIV + col2 col1 FROM tab0 AS cor0
----
-1
-35
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2203
SELECT - col0 / + col2 col1 FROM tab0 AS cor0
----
-1
-35
0

query I rowsort
SELECT DISTINCT + + cor0.col2 * ( col0 ) + - col0 FROM tab1 AS cor0
----
159
3584
7600

query I rowsort
SELECT col0 * ( 65 * col1 ) AS col0 FROM tab2 AS cor0
----
14105
299130
87295

onlyif mysql # use DIV operator for integer division
query I rowsort label-2206
SELECT ALL - - col0 - + cor0.col1 DIV - col0 AS col2 FROM tab1 AS cor0
----
11
64
80

skipif mysql # not compatible
query I rowsort label-2206
SELECT ALL - - col0 - + cor0.col1 / - col0 AS col2 FROM tab1 AS cor0
----
11
64
80

query I rowsort
SELECT ALL + ( col2 ) * - col1 * + col0 FROM tab1 AS cor0
----
-36480
-4212
-99840

query I rowsort
SELECT + ( + col2 ) * - col0 * ( - col2 ) FROM tab1
----
207936
737280
8748

query I rowsort
SELECT ALL - tab1.col1 + ( col2 ) AS col1 FROM tab1
----
28
47
83

query I rowsort
SELECT + - col2 * + cor0.col0 AS col2 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT ALL 2 + + cor0.col2 AS col2 FROM tab0 AS cor0
----
3
35
84

query I rowsort
SELECT DISTINCT + - col1 * + col0 AS col1 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT - 87 - col1 * + col1 AS col0 FROM tab2 AS cor0
----
-1048
-3568
-376

query I rowsort
SELECT DISTINCT + + col2 + cor0.col1 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT DISTINCT ( - 32 ) + - col0 + + 81 FROM tab2 AS cor0
----
-29
-30
42

query I rowsort
SELECT ALL cor0.col2 + col1 + col0 FROM tab1 cor0
----
131
189
83

query I rowsort
SELECT - col2 * + cor0.col2 + col2 * + col2 AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL 56 + cor0.col2 * - col2 AS col1 FROM tab0 AS cor0
----
-1033
-6668
55

query I rowsort
SELECT DISTINCT + 64 + - col1 FROM tab1 AS cor0
----
38
51
54

query I rowsort
SELECT DISTINCT - 63 - 36 AS col1 FROM tab1 AS cor0
----
-99

onlyif mysql # use DIV operator for integer division
query I rowsort label-2221
SELECT + col0 DIV + col0 + - col0 * - col0 + - col2 FROM tab1 AS cor0
----
-44
4040
6305

skipif mysql # not compatible
query I rowsort label-2221
SELECT + col0 / + col0 + - col0 * - col0 + - col2 FROM tab1 AS cor0
----
-44
4040
6305

query I rowsort
SELECT - 71 + col1 AS col2 FROM tab0 cor0
----
15
20
26

query I rowsort
SELECT ALL + col2 * - col0 * + col2 + col2 * col0 FROM tab1 AS cor0
----
-204288
-729600
-8586

onlyif mysql # use DIV operator for integer division
query I rowsort label-2224
SELECT - - ( + col1 ) + - 56 DIV col0 FROM tab1 AS cor0
----
10
13
8

skipif mysql # not compatible
query I rowsort label-2224
SELECT - - ( + col1 ) + - 56 / col0 FROM tab1 AS cor0
----
10
13
8

query I rowsort
SELECT ALL - cor0.col1 + col0 * + col1 AS col2 FROM tab2 AS cor0
----
1326
186
4543

query I rowsort
SELECT ALL - 22 AS col0 FROM tab1 AS cor0
----
-22
-22
-22

query I rowsort
SELECT DISTINCT 13 + cor0.col1 FROM tab1 cor0
----
23
26
39

query I rowsort
SELECT DISTINCT col2 * - col2 + + 80 FROM tab0 AS cor0
----
-1009
-6644
79

query I rowsort
SELECT DISTINCT ( + cor0.col2 ) * 35 + col1 + col0 * - col1 AS col2 FROM tab0 AS cor0
----
-3263
-5138
-823

onlyif mysql # use DIV operator for integer division
query I rowsort label-2230
SELECT ALL 23 DIV col2 AS col0 FROM tab0 AS cor0
----
0
0
23

skipif mysql # not compatible
query I rowsort label-2230
SELECT ALL 23 / col2 AS col0 FROM tab0 AS cor0
----
0
0
23

query I rowsort
SELECT - 86 * col2 + 12 * 51 FROM tab0 AS cor0
----
-2226
-6440
526

query I rowsort
SELECT + cor0.col0 * - col1 + - col1 AS col0 FROM tab1 AS cor0
----
-104
-1053
-650

query I rowsort
SELECT - 54 + cor0.col0 AS col2 FROM tab0 AS cor0
----
-19
-30
35

onlyif mysql # use DIV operator for integer division
query I rowsort label-2234
SELECT col1 DIV col1 + col1 * col1 FROM tab2 cor0
----
290
3482
962

skipif mysql # not compatible
query I rowsort label-2234
SELECT col1 / col1 + col1 * col1 FROM tab2 cor0
----
290
3482
962

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 98 - 41 * col1 col0 FROM tab2 AS cor0
----
-1369
-2517
-795

query I rowsort
SELECT + col1 * + col1 - - col1 FROM tab1 AS cor0
----
110
182
702

query I rowsort
SELECT - col2 * - 30 AS col0 FROM tab0 AS cor0
----
2460
30
990

onlyif mysql # use DIV operator for integer division
query I rowsort label-2238
SELECT ( - 26 ) DIV col0 FROM tab2
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-2238
SELECT ( - 26 ) / col0 FROM tab2
----
-3
0
0

query I rowsort
SELECT DISTINCT 84 FROM tab0, tab0 AS cor0
----
84

onlyif mysql # use DIV operator for integer division
query I rowsort label-2240
SELECT ALL 11 DIV 49 + - col0 * - col1 AS col0 FROM tab0
----
2064
3395
8099

skipif mysql # not compatible
query I rowsort label-2240
SELECT ALL 11 / 49 + - col0 * - col1 AS col0 FROM tab0
----
2064
3395
8099

query I rowsort
SELECT ALL col1 * + 95 + col2 FROM tab0
----
8203
8727
9216

query I rowsort
SELECT ALL - 11 + + col1 * col1 AS col2 FROM tab1
----
158
665
89

query I rowsort
SELECT ALL + 90 * cor0.col2 + - col2 FROM tab1 AS cor0
----
4806
5073
8544

query I rowsort
SELECT ALL cor0.col1 - - col1 AS col2 FROM tab0 AS cor0
----
172
182
194

query I rowsort
SELECT ( 77 ) * - cor0.col1 - col2 * 96 AS col1 FROM tab2 AS cor0
----
-4957
-4979
-7039

onlyif mysql # use DIV operator for integer division
query I rowsort label-2246
SELECT + tab2.col1 DIV ( tab2.col0 ) AS col0 FROM tab2
----
0
0
4

skipif mysql # not compatible
query I rowsort label-2246
SELECT + tab2.col1 / ( tab2.col0 ) AS col0 FROM tab2
----
0
0
4

query I rowsort
SELECT + 61 FROM tab2, tab0 AS cor0
----
9 values hashing to 07149905a72bd87553381f34d19ed290

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2248
SELECT CAST( NULL AS SIGNED ) * - col1 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2248
SELECT CAST ( NULL AS INTEGER ) * - col1 AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - ( + 18 ) AS col0 FROM tab2
----
-18
-18
-18

query I rowsort
SELECT ALL + + 52 - + col2 * - col2 AS col0 FROM tab0 cor0
----
1141
53
6776

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2251
SELECT ALL - CAST( col0 AS SIGNED ) col1 FROM tab2 AS cor0
----
-7
-78
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2251
SELECT ALL - CAST ( col0 AS INTEGER ) col1 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT DISTINCT ( + 72 ) + - col0 FROM tab2 AS cor0
----
-6
-7
65

query I rowsort
SELECT DISTINCT - - col2 + col2 * + col2 AS col1 FROM tab1 AS cor0
----
2970
3306
9312

query I rowsort
SELECT DISTINCT col1 * ( cor0.col1 ) + col1 * col0 * + col2 FROM tab2 AS cor0
----
123133
51323
6820

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2255
SELECT ALL CAST( col2 AS SIGNED ) * col2 + col2 - col0 * col2 AS col0 FROM tab0 cor0
----
-33
-492
330

skipif mysql # not compatible
query I rowsort label-2255
SELECT ALL CAST ( col2 AS INTEGER ) * col2 + col2 - col0 * col2 AS col0 FROM tab0 cor0
----
-33
-492
330

query I rowsort
SELECT - + ( col2 ) * + cor0.col0 AS col1 FROM tab0 AS cor0
----
-35
-7298
-792

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 ALL + 92 AS col0 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to c64cb7a81da51f4be0b6906a223e8817

query I rowsort
SELECT ALL 35 + + col1 * col0 * + col0 FROM tab1 cor0
----
269
40995
83235

query I rowsort
SELECT ALL - tab0.col2 * - 1 AS col2 FROM tab0
----
1
33
82

query I rowsort
SELECT ALL ( tab0.col1 + col2 ) AS col0 FROM tab0
----
119
173
98

query I rowsort
SELECT ALL + + cor0.col2 + col1 + - 39 FROM tab1 AS cor0
----
28
41
70

query I rowsort
SELECT ALL + cor0.col2 - cor0.col1 FROM tab1 AS cor0
----
28
47
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + cor0.col0 * - col2 + + col0 * col2 col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col0 * - ( + ( + col2 ) ) - cor0.col1 FROM tab0 AS cor0
----
-132
-7389
-878

query I rowsort
SELECT - col2 * + ( - col1 ) + col1 FROM tab0 AS cor0
----
194
2924
7553

onlyif mysql # use DIV operator for integer division
query I rowsort label-2267
SELECT ALL + 65 DIV col1 AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2267
SELECT ALL + 65 / col1 AS col0 FROM tab0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2268
SELECT + - col1 * CAST( NULL AS SIGNED ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2268
SELECT + - col1 * CAST ( NULL AS INTEGER ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 + ( - col1 ) AS col0 FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT col1 + col2 * - 59 AS col1 FROM tab1
----
-3160
-3353
-5651

query I rowsort
SELECT + col0 * ( + col1 ) * + col2 FROM tab0 AS cor0
----
3395
664118
68112

query I rowsort
SELECT col0 - - 73 FROM tab2
----
151
152
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2273
SELECT ALL col1 * CAST( col1 AS SIGNED ) * col0 + tab0.col2 * - col0 FROM tab0
----
176712
329280
729711

skipif mysql # not compatible
query I rowsort label-2273
SELECT ALL col1 * CAST ( col1 AS INTEGER ) * col0 + tab0.col2 * - col0 FROM tab0
----
176712
329280
729711

query I rowsort
SELECT ALL 49 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cb40783c0fff72e8802cdf0682e7cb55

query I rowsort
SELECT - 84 AS col1 FROM tab2, tab1 AS cor0, tab0 AS cor1, tab2 AS cor2
----
81 values hashing to aaabc1266a1bb4f477091ffbc243c849

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2276
SELECT CAST( + ( + col1 ) AS SIGNED ) col2 FROM tab1
----
10
13
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2276
SELECT CAST ( + ( + col1 ) AS INTEGER ) col2 FROM tab1
----
10
13
26

query I rowsort
SELECT - ( + 20 * - col1 ) FROM tab1
----
200
260
520

query I rowsort
SELECT ALL - 14 AS col0 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to c2bf0e2420d22cd58d7ee3b30827afcc

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2279
SELECT ALL + + ( + col1 ) + - col0 * CAST( NULL AS SIGNED ) + - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2279
SELECT ALL + + ( + col1 ) + - col0 * CAST ( NULL AS INTEGER ) + - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - - 61 - 90 FROM tab2 cor0
----
-29

query I rowsort
SELECT + col0 * col1 + col1 * - col2 AS col0 FROM tab0 cor0
----
-774
3298
637

query I rowsort
SELECT ALL + + 0 + - ( - col2 * + col0 ) FROM tab2 AS cor0
----
189
2028
3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-2283
SELECT DISTINCT - + 0 * + col1 - col0 DIV - col1 AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2283
SELECT DISTINCT - + 0 * + col1 - col0 / - col1 AS col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL + + 96 * - 36 + col1 AS col1 FROM tab0 AS cor0
----
-3359
-3365
-3370

query I rowsort
SELECT ALL + ( col0 ) AS col2 FROM tab0 cor0
----
24
35
89

query I rowsort
SELECT DISTINCT + + col0 + - 12 * + cor0.col0 AS col0 FROM tab1 AS cor0
----
-33
-704
-880

query I rowsort
SELECT DISTINCT col1 * ( - col2 ) AS col2 FROM tab0 AS cor0
----
-2838
-7462
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-2288
SELECT ALL 12 DIV - col0 + col0 AS col2 FROM tab1
----
-1
64
80

skipif mysql # not compatible
query I rowsort label-2288
SELECT ALL 12 / - col0 + col0 AS col2 FROM tab1
----
-1
64
80

query I rowsort
SELECT - 76 * col0 + 72 * - col0 + col1 FROM tab0
----
-13081
-3466
-5083

query I rowsort
SELECT + col2 + + col1 * tab2.col1 + + col1 FROM tab2
----
1019
344
3566

query I rowsort
SELECT DISTINCT - 63 - col0 AS col1 FROM tab2
----
-141
-142
-70

query I rowsort
SELECT + tab0.col2 + - col2 - + col2 FROM tab0
----
-1
-33
-82

query I rowsort
SELECT + col0 * + tab1.col1 + ( col0 ) FROM tab1
----
1120
704
81

query I rowsort
SELECT + 94 + + col0 * - 16 - + col1 AS col2 FROM tab0 cor0
----
-1421
-376
-563

query I rowsort
SELECT col0 + tab0.col1 * - col0 AS col0 FROM tab0
----
-2040
-3360
-8010

query I rowsort
SELECT col0 - - col0 * col1 FROM tab2 AS cor0
----
1422
224
4680

query I rowsort
SELECT DISTINCT + cor0.col1 * 58 FROM tab0 AS cor0
----
4988
5278
5626

onlyif mysql # use DIV operator for integer division
query I rowsort label-2298
SELECT DISTINCT col1 * col1 DIV col1 FROM tab0 cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-2298
SELECT DISTINCT col1 * col1 / col1 FROM tab0 cor0
----
86
91
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2299
SELECT - col2 * + CAST( NULL AS SIGNED ) AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2299
SELECT - col2 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2300
SELECT ALL + col1 + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2300
SELECT ALL + col1 + CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 * - ( 86 ) AS col0 FROM tab1 AS cor0
----
-258
-5504
-6880

query I rowsort
SELECT + + col0 * col1 + - col2 AS col0 FROM tab2 cor0
----
1305
190
4576

query I rowsort
SELECT - + cor0.col1 * ( col1 ) FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT - col1 * + ( col2 ) * - col2 + col0 + cor0.col0 * + col2 AS col0 FROM tab0 AS cor0
----
167
619271
94470

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2305
SELECT DISTINCT + col0 * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2305
SELECT DISTINCT + col0 * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + 0 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2307
SELECT DISTINCT 49 * + tab0.col1 - CAST( 1 AS SIGNED ) * col0 * col1 FROM tab0
----
-3640
1358
2150

skipif mysql # not compatible
query I rowsort label-2307
SELECT DISTINCT 49 * + tab0.col1 - CAST ( 1 AS INTEGER ) * col0 * col1 FROM tab0
----
-3640
1358
2150

query I rowsort
SELECT - col2 * 2 + - col1 AS col0 FROM tab2 AS cor0
----
-111
-85
-93

query I rowsort
SELECT + - col1 + col0 * + col1 AS col2 FROM tab0 AS cor0
----
1978
3298
8008

query I rowsort
SELECT ALL - + cor0.col1 * 97 FROM tab2 AS cor0
----
-1649
-3007
-5723

query I rowsort
SELECT 98 FROM tab1 cor0
----
98
98
98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2312
SELECT ALL + col1 + + col2 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2312
SELECT ALL + col1 + + col2 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-2313
SELECT + col1 + + col0 DIV tab2.col0 + col1 DIV col0 AS col1 FROM tab2
----
18
36
60

skipif mysql # not compatible
query I rowsort label-2313
SELECT + col1 + + col0 / tab2.col0 + col1 / col0 AS col1 FROM tab2
----
18
36
60

query I rowsort
SELECT ALL col2 + col2 * - tab2.col0 / + col1 FROM tab2 WHERE ( NULL ) IN ( + col1 + - col2 / + tab2.col1 )
----

query I rowsort
SELECT ALL col0 * + tab0.col1 * col1 FROM tab0
----
177504
329315
737009

query I rowsort
SELECT tab0.col1 + - col1 * tab0.col0 AS col2 FROM tab0
----
-1978
-3298
-8008

onlyif mysql # use DIV operator for integer division
query I rowsort label-2317
SELECT - - col1 DIV - 31 col2 FROM tab0 AS cor0
----
-2
-2
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2317
SELECT - - col1 / - 31 col2 FROM tab0 AS cor0
----
-2
-2
-3

query I rowsort
SELECT + col1 * + 50 * col2 FROM tab1 AS cor0
----
28500
62400
70200

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * col0 col2 FROM tab1
----
-1040
-640
-78

query I rowsort
SELECT ( tab0.col2 + 99 ) AS col1 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 6d53eda6139d4113ce6bb8462cfc0c5e

query I rowsort
SELECT + cor1.col1 AS col2 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

query I rowsort
SELECT + col1 + - tab2.col0 + col0 FROM tab2
----
17
31
59

query I rowsort
SELECT + col0 * + col0 * + col2 + tab2.col2 * - col1 FROM tab2 WHERE ( - col0 ) NOT BETWEEN + col2 AND col1 + col2
----
156650
236512
486

query I rowsort
SELECT col2 FROM tab2 WHERE NOT ( col2 ) > NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-2325
SELECT + col2 * + col2 DIV col2 + + col1 FROM tab1
----
109
67
80

skipif mysql # not compatible
query I rowsort label-2325
SELECT + col2 * + col2 / col2 + + col1 FROM tab1
----
109
67
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-2326
SELECT ALL + tab0.col2 DIV - col1 AS col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2326
SELECT ALL + tab0.col2 / - col1 AS col2 FROM tab0
----
0
0
0

query I rowsort
SELECT - tab0.col0 * + tab0.col2 AS col1 FROM tab0
----
-35
-7298
-792

onlyif mysql # use DIV operator for integer division
query I rowsort label-2328
SELECT DISTINCT col1 DIV tab1.col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2328
SELECT DISTINCT col1 / tab1.col2 FROM tab1
----
0

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL IN ( col1 + - col0 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-2330
SELECT DISTINCT col0 * col0 DIV tab0.col1 AS col1 FROM tab0
----
12
6
87

skipif mysql # not compatible
query I rowsort label-2330
SELECT DISTINCT col0 * col0 / tab0.col1 AS col1 FROM tab0
----
12
6
87

query I rowsort
SELECT ALL tab2.col1 * col0 + - col0 FROM tab2
----
1264
210
4524

query I rowsort
SELECT + col1 * tab0.col0 + col0 AS col0 FROM tab0
----
2088
3430
8188

onlyif mysql # use DIV operator for integer division
query I rowsort label-2333
SELECT ALL col2 * tab1.col0 DIV - col0 + + col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2333
SELECT ALL col2 * tab1.col0 / - col0 + + col2 FROM tab1
----
0
0
0

query I rowsort
SELECT + col0 FROM tab2 WHERE NOT ( NULL ) NOT IN ( - col0 )
----

query I rowsort
SELECT - col1 * col0 - - col1 AS col1 FROM tab2
----
-1326
-186
-4543

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) >= col2
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-2337
SELECT col1 * - col2 + - col1 * col1 DIV - col0 FROM tab2
----
-1490
-643
-700

skipif mysql # not compatible
query I rowsort label-2337
SELECT col1 * - col2 + - col1 * col1 / - col0 FROM tab2
----
-1490
-643
-700

query I rowsort
SELECT - col1 * + col2 - col0 FROM tab0
----
-132
-2862
-7551

query I rowsort
SELECT col0 + col0 * + tab0.col0 / col2 AS col0 FROM tab0 WHERE NULL BETWEEN + col0 AND ( NULL )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-2340
SELECT DISTINCT - col0 - col1 DIV col1 AS col2 FROM tab0
----
-25
-36
-90

skipif mysql # not compatible
query I rowsort label-2340
SELECT DISTINCT - col0 - col1 / col1 AS col2 FROM tab0
----
-25
-36
-90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 45 + col1 col2 FROM tab1 cor0
----
55
58
71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * col1 + - ( col2 ) col1 FROM tab0 AS cor0
----
-7429
-8363
-9410

query I rowsort
SELECT ALL - 45 * col0 AS col1 FROM tab2 AS cor0
----
-315
-3510
-3555

query I rowsort
SELECT + col0 * ( cor0.col0 * - col2 ) FROM tab2 AS cor0
----
-1323
-158184
-237158

onlyif mysql # use DIV operator for integer division
query I rowsort label-2345
SELECT DISTINCT - col0 DIV + 16 FROM tab1
----
-4
-5
0

skipif mysql # not compatible
query I rowsort label-2345
SELECT DISTINCT - col0 / + 16 FROM tab1
----
-4
-5
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2346
SELECT CAST( 14 AS SIGNED ) * - tab0.col0 AS col2 FROM tab0
----
-1246
-336
-490

skipif mysql # not compatible
query I rowsort label-2346
SELECT CAST ( 14 AS INTEGER ) * - tab0.col0 AS col2 FROM tab0
----
-1246
-336
-490

query I rowsort
SELECT DISTINCT 32 * + 23 FROM tab0
----
736

query I rowsort
SELECT - 94 + + col1 AS col0 FROM tab0 AS cor0
----
-3
-8
3

query I rowsort
SELECT col1 * + col2 + + cor0.col0 * + col2 FROM tab0 AS cor0
----
132
14760
3630

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( + col1 ) + + col0 col0 FROM tab0 AS cor0
----
-2
-62
-62

onlyif mysql # use DIV operator for integer division
query I rowsort label-2351
SELECT - 52 + + cor0.col1 DIV 90 FROM tab2 AS cor0
----
-52
-52
-52

skipif mysql # not compatible
query I rowsort label-2351
SELECT - 52 + + cor0.col1 / 90 FROM tab2 AS cor0
----
-52
-52
-52

query I rowsort
SELECT - col0 + col2 * col0 AS col1 FROM tab2 cor0
----
182
1950
2923

skipif mysql # not compatible
query I rowsort
SELECT + - col0 + cor0.col2 * CAST ( + 76 + + col2 AS REAL ) AS col2 FROM tab0 AS cor0
----
12867
3573
42

query I rowsort
SELECT 4 AS col0 FROM tab2 cor0
----
4
4
4

query I rowsort
SELECT DISTINCT - col1 * 0 AS col1 FROM tab0
----
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2356
SELECT ALL CAST( NULL AS DECIMAL ) * cor0.col0 FROM tab2, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2356
SELECT ALL CAST ( NULL AS REAL ) * cor0.col0 FROM tab2, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT - cor0.col0 * col0 AS col2 FROM tab2 cor0
----
-49
-6084
-6241

query I rowsort
SELECT DISTINCT col1 + 48 + col2 FROM tab2 AS cor0
----
103
106
133

query I rowsort
SELECT DISTINCT col0 + + 82 FROM tab2 AS cor0
----
160
161
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col0 col0 FROM tab1 AS cor0 CROSS JOIN tab2, tab1 cor1
----
3
64
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2361
SELECT col1 * - CAST( NULL AS SIGNED ) * - col0 + - cor0.col2 * - 7 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2361
SELECT col1 * - CAST ( NULL AS INTEGER ) * - col0 + - cor0.col2 * - 7 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2362
SELECT cor0.col1 + CAST( col2 AS SIGNED ) FROM tab0 AS cor0
----
119
173
98

skipif mysql # not compatible
query I rowsort label-2362
SELECT cor0.col1 + CAST ( col2 AS INTEGER ) FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT ALL + + col0 + 99 AS col0 FROM tab0 AS cor0
----
123
134
188

query I rowsort
SELECT DISTINCT - - col2 + col0 * + col1 AS col0 FROM tab1 AS cor0
----
1136
132
697

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2365
SELECT + CAST( NULL AS SIGNED ) / 44 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2365
SELECT + CAST ( NULL AS INTEGER ) / 44 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col0 + - col1 * + tab2.col0 FROM tab2
----
-1422
-224
-4680

query I rowsort
SELECT 10 * col0 AS col1 FROM tab2 AS cor0
----
70
780
790

query I rowsort
SELECT + col0 + - col1 + 11 AS col1 FROM tab1 AS cor0
----
-12
65
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-2369
SELECT - - col1 DIV - col1 AS col0 FROM tab1 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2369
SELECT - - col1 / - col1 AS col0 FROM tab1 cor0
----
-1
-1
-1

query I rowsort
SELECT ALL - col0 + - cor0.col2 + 51 AS col1 FROM tab2 AS cor0
----
-53
-66
17

onlyif mysql # use DIV operator for integer division
query I rowsort label-2371
SELECT col0 DIV - col1 + col1 FROM tab1 AS cor0
----
26
4
7

skipif mysql # not compatible
query I rowsort label-2371
SELECT col0 / - col1 + col1 FROM tab1 AS cor0
----
26
4
7

query I rowsort
SELECT - + col2 + + col1 * + col1 FROM tab2 AS cor0
----
251
3455
934

query I rowsort
SELECT ALL - col1 * ( cor0.col0 ) * cor0.col1 + - ( ( col2 ) ) FROM tab1 AS cor0
----
-13616
-2082
-6457

query I rowsort
SELECT ALL 96 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to f1d978c2d5bfc6f26e0907ac777be83e

query I rowsort
SELECT ALL cor0.col2 + - ( col2 ) * col2 FROM tab2 AS cor0
----
-1406
-650
-702

query I rowsort
SELECT + - ( col0 ) - col2 * 68 AS col2 FROM tab1 AS cor0
----
-3675
-3940
-6608

query I rowsort
SELECT DISTINCT - 64 FROM tab1, tab0 AS cor0
----
-64

query I rowsort
SELECT ALL - 42 AS col1 FROM tab2 AS cor0
----
-42
-42
-42

query I rowsort
SELECT ALL + col2 + col0 * - col1 FROM tab1 AS cor0
----
-24
-583
-944

query I rowsort
SELECT + cor0.col1 * 2 AS col2 FROM tab0 AS cor0
----
172
182
194

query I rowsort
SELECT DISTINCT - + col0 + - col2 * col2 FROM tab1 AS cor0
----
-2919
-3313
-9296

query I rowsort
SELECT DISTINCT + - 97 * col2 + + col2 FROM tab2 AS cor0
----
-2496
-2592
-3648

query I rowsort
SELECT DISTINCT - ( - col1 ) * col2 AS col0 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT DISTINCT 96 * - 76 AS col0 FROM tab2
----
-7296

query I rowsort
SELECT ALL - ( col1 ) - col0 * + 18 AS col0 FROM tab0
----
-1693
-518
-727

query I rowsort
SELECT col1 * - col2 * col1 AS col2 FROM tab2
----
-10982
-25947
-90506

query I rowsort
SELECT - ( + ( + col2 ) ) - - col0 FROM tab1
----
-16
-51
7

query I rowsort
SELECT DISTINCT col2 - - tab2.col2 AS col2 FROM tab2
----
52
54
76

query I rowsort
SELECT 84 * col1 * col1 FROM tab1
----
14196
56784
8400

onlyif mysql # use DIV operator for integer division
query I rowsort label-2390
SELECT 29 DIV + col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2390
SELECT 29 / + col2 FROM tab1
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2391
SELECT - col1 * + col1 + CAST( 36 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-7360
-8245
-9373

skipif mysql # not compatible
query I rowsort label-2391
SELECT - col1 * + col1 + CAST ( 36 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-7360
-8245
-9373

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 25 col2 FROM tab1 AS cor0
----
25
25
25

query I rowsort
SELECT 49 * col1 + - col1 * col1 AS col2 FROM tab1 AS cor0
----
390
468
598

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 0 + - col0 col2 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT - 36 + col0 FROM tab0 AS cor0
----
-1
-12
53

onlyif mysql # use DIV operator for integer division
query I rowsort label-2396
SELECT DISTINCT + + ( col1 ) DIV col0 AS col0 FROM tab0 AS cor0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-2396
SELECT DISTINCT + + ( col1 ) / col0 AS col0 FROM tab0 AS cor0
----
1
2
3

onlyif mysql # use DIV operator for integer division
query I rowsort label-2397
SELECT - 32 DIV tab2.col0 col0 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 5dfda9abbd009b9f42913cb1893ed11f

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2397
SELECT - 32 / tab2.col0 col0 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 5dfda9abbd009b9f42913cb1893ed11f

onlyif mysql # use DIV operator for integer division
query I rowsort label-2398
SELECT ALL + ( + col1 ) + ( - 7 ) DIV col0 FROM tab1
----
10
13
24

skipif mysql # not compatible
query I rowsort label-2398
SELECT ALL + ( + col1 ) + ( - 7 ) / col0 FROM tab1
----
10
13
24

query I rowsort
SELECT ALL col1 * col2 + 83 * - 53 FROM tab1
----
-2995
-3151
-3829

query I rowsort
SELECT ALL col0 * tab0.col1 + + 63 FROM tab0
----
2127
3458
8162

onlyif mysql # use DIV operator for integer division
query I rowsort label-2401
SELECT ALL col2 DIV col0 - + 62 FROM tab2 AS cor0
----
-59
-62
-62

skipif mysql # not compatible
query I rowsort label-2401
SELECT ALL col2 / col0 - + 62 FROM tab2 AS cor0
----
-59
-62
-62

onlyif mysql # use DIV operator for integer division
query I rowsort label-2402
SELECT DISTINCT - - ( - col2 ) DIV 46 AS col2 FROM tab1 AS cor0
----
-1
-2

skipif mysql # not compatible
query I rowsort label-2402
SELECT DISTINCT - - ( - col2 ) / 46 AS col2 FROM tab1 AS cor0
----
-1
-2

onlyif mysql # use DIV operator for integer division
query I rowsort label-2403
SELECT col0 + - col2 + - col1 DIV + col1 FROM tab1
----
-17
-52
6

skipif mysql # not compatible
query I rowsort label-2403
SELECT col0 + - col2 + - col1 / + col1 FROM tab1
----
-17
-52
6

query I rowsort
SELECT ALL 22 * - col0 * col0 FROM tab2 AS cor0
----
-1078
-133848
-137302

query I rowsort
SELECT col2 + + col2 * - col0 FROM tab2
----
-162
-2002
-2964

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2406
SELECT + cor0.col0 * + CAST( NULL AS DECIMAL ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2406
SELECT + cor0.col0 * + CAST ( NULL AS REAL ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 + 25 AS col2 FROM tab2
----
-53
-54
18

query I rowsort
SELECT + 77 + - 70 * - cor0.col1 - 28 FROM tab2 AS cor0
----
1239
2219
4179

query I rowsort
SELECT ALL + ( 72 ) AS col2 FROM tab2 AS cor0
----
72
72
72

query I rowsort
SELECT - - col2 + - col1 * + col0 AS col2 FROM tab0 cor0
----
-2031
-3394
-8017

query I rowsort
SELECT DISTINCT + + col2 * cor0.col1 + col0 + col0 FROM tab0 AS cor0
----
167
2886
7640

query I rowsort
SELECT ALL - col1 * - 96 * col1 - + col1 AS col0 FROM tab0 AS cor0
----
709930
794885
903167

query I rowsort
SELECT DISTINCT - col2 + ( + col2 ) * + 31 AS col2 FROM tab1 AS cor0
----
1620
1710
2880

query I rowsort
SELECT ALL + col1 + - col2 * - col0 AS col2 FROM tab0 AS cor0
----
132
7389
878

query I rowsort
SELECT - col2 * col2 + + col1 + - col1 FROM tab2 cor0
----
-1444
-676
-729

query I rowsort
SELECT DISTINCT - ( col0 ) + col1 FROM tab0 cor0
----
2
62

query I rowsort
SELECT ALL + 94 * col2 FROM tab2 AS cor0
----
2444
2538
3572

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 97 * col2 col0 FROM tab0 AS cor0
----
3201
7954
97

query I rowsort
SELECT DISTINCT - cor1.col0 AS col1 FROM tab0, tab2 AS cor0, tab0 cor1
----
-24
-35
-89

query I rowsort
SELECT ALL + col2 + cor0.col2 AS col0 FROM tab0 AS cor0
----
164
2
66

query I rowsort
SELECT DISTINCT col1 * + ( cor0.col2 * col1 ) + 3 AS col1 FROM tab0 AS cor0
----
244071
679045
9412

onlyif mysql # use DIV operator for integer division
query I rowsort label-2422
SELECT ALL col1 DIV 57 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2422
SELECT ALL col1 / 57 FROM tab2
----
0
0
1

query I rowsort
SELECT ALL - 97 + 5 FROM tab0, tab0 AS cor0
----
9 values hashing to 1af709a79a3e56281ffdce4d931d5965

query I rowsort
SELECT + - col2 * + 70 * + col2 FROM tab2 AS cor0
----
-101080
-47320
-51030

query I rowsort
SELECT - cor0.col0 - + ( col1 ) AS col0 FROM tab2 cor0
----
-137
-38
-96

query I rowsort
SELECT DISTINCT - + col1 - 81 FROM tab1 AS cor0
----
-107
-91
-94

query I rowsort
SELECT + - ( col2 ) * + col2 * - col1 FROM tab2 cor0
----
22599
24548
39884

query I rowsort
SELECT - cor0.col2 + - ( + col1 ) AS col1 FROM tab1 AS cor0
----
-109
-67
-80

query I rowsort
SELECT - - col2 + + ( col2 ) FROM tab1 AS cor0
----
108
114
192

query I rowsort
SELECT DISTINCT + col2 * - 56 AS col0 FROM tab2 AS cor0
----
-1456
-1512
-2128

query I rowsort
SELECT - cor0.col2 + - ( col1 ) + - ( 20 ) * - col0 FROM tab2 cor0
----
1475
1525
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-2432
SELECT + ( - col1 ) + col1 + - 24 DIV - col1 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2432
SELECT + ( - col1 ) + col1 + - 24 / - col1 FROM tab2 AS cor0
----
0
0
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2433
SELECT - CAST( NULL AS SIGNED ) + col1 + - cor0.col2 * col2 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2433
SELECT - CAST ( NULL AS INTEGER ) + col1 + - cor0.col2 * col2 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT tab1.col0 * + tab1.col1 * tab1.col1 FROM tab1
----
13520
2028
6400

query I rowsort
SELECT tab0.col2 AS col1 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT DISTINCT tab0.col0 + col2 * col1 FROM tab0
----
132
2862
7551

query I rowsort
SELECT 84 AS col0 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to e8cd683fe8cea77b4326d9b80f21c74a

query I rowsort
SELECT ALL + ( col1 ) * - 56 + - col1 AS col0 FROM tab1 AS cor0
----
-1482
-570
-741

query I rowsort
SELECT ALL + 12 * + col2 - 71 * col0 FROM tab1 AS cor0
----
-3860
-4528
435

query I rowsort
SELECT + col2 + - col0 * - ( col2 ) FROM tab1 AS cor0
----
216
3705
7776

query I rowsort
SELECT ALL + 0 + + col1 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT ALL ( + col2 ) - 57 * - col2 * - col0 AS col1 FROM tab0 AS cor0
----
-1994
-415904
-45111

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2443
SELECT ALL col2 + - cor0.col0 - CAST( - 4 * + cor0.col1 AS SIGNED ) col1 FROM tab0 AS cor0
----
353
354
357

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2443
SELECT ALL col2 + - cor0.col0 - CAST ( - 4 * + cor0.col1 AS INTEGER ) col1 FROM tab0 AS cor0
----
353
354
357

query I rowsort
SELECT DISTINCT + ( + col2 + - col2 ) AS col0 FROM tab1
----
0

query I rowsort
SELECT 16 + - col2 AS col1 FROM tab1
----
-38
-41
-80

query I rowsort
SELECT DISTINCT - 4 * col2 + col1 FROM tab2 AS cor0
----
-135
-45
-77

query I rowsort
SELECT DISTINCT + 82 * col1 FROM tab0 AS cor0
----
7052
7462
7954

query I rowsort
SELECT + col1 + col2 * - 73 FROM tab1 AS cor0
----
-3916
-4151
-6995

query I rowsort
SELECT + 5 * cor0.col1 FROM tab0 AS cor0
----
430
455
485

query I rowsort
SELECT DISTINCT 59 * + col0 + + ( 30 ) FROM tab2 AS cor0
----
443
4632
4691

query I rowsort
SELECT DISTINCT + col1 + - col2 * - col0 FROM tab1 AS cor0
----
188
3658
7693

query I rowsort
SELECT DISTINCT cor1.col1 + cor1.col1 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
172
182
194

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2453
SELECT - col0 + - col2 * - CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2453
SELECT - col0 + - col2 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 80 * col0 AS col1 FROM tab1
----
240
5120
6400

query I rowsort
SELECT ALL - col2 * col2 * col0 AS col0 FROM tab1
----
-207936
-737280
-8748

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 * col0 col0 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT + col2 + + ( col0 ) AS col1 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT + + ( - col2 ) * col1 + col1 + col0 AS col2 FROM tab0 cor0
----
-2728
-7282
35

query I rowsort
SELECT - cor0.col0 + col2 * - col1 AS col0 FROM tab1 AS cor0
----
-1328
-1407
-634

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2460
SELECT ALL CAST( NULL AS DECIMAL ) * + col2 + col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2460
SELECT ALL CAST ( NULL AS REAL ) * + col2 + col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 53 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
53

query I rowsort
SELECT + 24 * col1 FROM tab0 AS cor0
----
2064
2184
2328

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 + + col1 * - ( ( cor0.col1 ) ) + col1 col2 FROM tab2 AS cor0
----
-234
-3396
-903

query I rowsort
SELECT DISTINCT + + ( + col0 ) * - col2 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT DISTINCT - - col2 + + ( col1 ) * cor0.col1 FROM tab1 AS cor0
----
157
265
730

query I rowsort
SELECT ALL - + 8 * - cor0.col1 * cor0.col1 + col0 * - col2 FROM tab0 cor0
----
58376
58950
75237

query I rowsort
SELECT DISTINCT - 53 * 41 FROM tab1 AS cor0
----
-2173

query I rowsort
SELECT ALL - + cor0.col1 * + col0 + col0 AS col1 FROM tab1 AS cor0
----
-576
-75
-960

query I rowsort
SELECT - col1 * + tab1.col0 + 38 FROM tab1
----
-1002
-40
-602

onlyif mysql # use DIV operator for integer division
query I rowsort label-2470
SELECT ALL + col2 + - 20 DIV + 16 AS col1 FROM tab0
----
0
32
81

skipif mysql # not compatible
query I rowsort label-2470
SELECT ALL + col2 + - 20 / + 16 AS col1 FROM tab0
----
0
32
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + - 42 - col0 col2 FROM tab1
----
-42

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2472
SELECT col0 - - CAST( col2 AS SIGNED ) * col1 FROM tab0
----
132
2862
7551

skipif mysql # not compatible
query I rowsort label-2472
SELECT col0 - - CAST ( col2 AS INTEGER ) * col1 FROM tab0
----
132
2862
7551

query I rowsort
SELECT ALL col1 + ( ( + col1 ) ) * + tab1.col0 - + col1 FROM tab1
----
1040
640
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-2474
SELECT col1 DIV 76 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2474
SELECT col1 / 76 AS col2 FROM tab1
----
0
0
0

query I rowsort
SELECT - cor0.col0 + 60 FROM tab0, tab1 AS cor0 CROSS JOIN tab2, tab0 AS cor1
----
81 values hashing to b6a95c3a4715671fe5d61c52ce1509c8

query I rowsort
SELECT + col1 * col0 + - col0 FROM tab2
----
1264
210
4524

query I rowsort
SELECT DISTINCT - + 81 + - col2 * cor0.col0 AS col2 FROM tab0 AS cor0
----
-116
-7379
-873

query I rowsort
SELECT - 38 + cor0.col1 AS col1 FROM tab1 AS cor0
----
-12
-25
-28

query I rowsort
SELECT ALL 40 AS col1 FROM tab2 cor0
----
40
40
40

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2480
SELECT ALL - CAST( 73 AS SIGNED ) FROM tab1 AS cor0
----
-73
-73
-73

skipif mysql # not compatible
query I rowsort label-2480
SELECT ALL - CAST ( 73 AS INTEGER ) FROM tab1 AS cor0
----
-73
-73
-73

query I rowsort
SELECT DISTINCT 48 + + col2 * cor0.col0 FROM tab0 AS cor0
----
7346
83
840

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2482
SELECT ALL - CAST( NULL AS SIGNED ) + - 88 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2482
SELECT ALL - CAST ( NULL AS INTEGER ) + - 88 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col2 ) * + col2 col1 FROM tab2 AS cor0
----
1444
676
729

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2484
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + 81 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-2484
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + 81 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

query I rowsort
SELECT ALL 64 * - 59 AS col0 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to ec4ddea1afd36812988e2bd6c2c6df5f

query I rowsort
SELECT + 84 * + col1 AS col2 FROM tab0 AS cor0
----
7224
7644
8148

query I rowsort
SELECT + cor0.col1 - col0 AS col2 FROM tab1 cor0
----
-54
-67
23

query I rowsort
SELECT ALL col1 * + 48 * + col0 FROM tab0 AS cor0
----
162960
388752
99072

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2489
SELECT ALL + - col0 * + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2489
SELECT ALL + - col0 * + CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - col2 * col1 * col2 AS col1 FROM tab0 AS cor0
----
-611884
-93654
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 * + ( col2 ) col0 FROM tab2 AS cor0
----
1534
646
837

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2492
SELECT DISTINCT - col0 * CAST( NULL AS DECIMAL ) * - cor0.col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2492
SELECT DISTINCT - col0 * CAST ( NULL AS REAL ) * - cor0.col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL - cor0.col2 + col0 + + col1 AS col2 FROM tab2 AS cor0
----
11
111
58

query I rowsort
SELECT - cor0.col1 + 26 AS col2 FROM tab1 cor0
----
0
13
16

query I rowsort
SELECT + col0 * + 83 AS col1 FROM tab2 AS cor0
----
581
6474
6557

query I rowsort
SELECT ALL + col0 * col0 - - 18 * col1 AS col2 FROM tab1 AS cor0
----
4276
477
6634

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2497
SELECT ALL + cor0.col2 + CAST( NULL AS SIGNED ) + cor0.col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2497
SELECT ALL + cor0.col2 + CAST ( NULL AS INTEGER ) + cor0.col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + + col1 * - 18 + + col1 + col2 FROM tab1 AS cor0
----
-113
-125
-388

query I rowsort
SELECT DISTINCT - col2 + - cor0.col2 * - cor0.col2 AS col1 FROM tab2 AS cor0
----
1406
650
702

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2500
SELECT ALL + col2 * CAST( 36 AS SIGNED ) FROM tab2 AS cor0
----
1368
936
972

skipif mysql # not compatible
query I rowsort label-2500
SELECT ALL + col2 * CAST ( 36 AS INTEGER ) FROM tab2 AS cor0
----
1368
936
972

query I rowsort
SELECT + - col1 + - ( 35 ) AS col1 FROM tab2 AS cor0
----
-52
-66
-94

query I rowsort
SELECT DISTINCT col2 * + 79 + col2 FROM tab0 AS cor0
----
2640
6560
80

query I rowsort
SELECT DISTINCT + col0 * + 49 AS col2 FROM tab2 AS cor0
----
343
3822
3871

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col0 + - 86 + cor0.col1 col0 FROM tab1, tab2 AS cor0, tab0 cor1
----
27 values hashing to cf6d33399b73ac88340ba1f341a6b1a3

onlyif mysql # use DIV operator for integer division
query I rowsort label-2505
SELECT + cor0.col1 + cor0.col2 DIV col0 FROM tab2 cor0
----
17
34
59

skipif mysql # not compatible
query I rowsort label-2505
SELECT + cor0.col1 + cor0.col2 / col0 FROM tab2 cor0
----
17
34
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-2506
SELECT + - 76 DIV col1 FROM tab2 cor0
----
-1
-2
-4

skipif mysql # not compatible
query I rowsort label-2506
SELECT + - 76 / col1 FROM tab2 cor0
----
-1
-2
-4

onlyif mysql # use DIV operator for integer division
query I rowsort label-2507
SELECT - tab2.col0 DIV - col0 AS col1 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2507
SELECT - tab2.col0 / - col0 AS col1 FROM tab2
----
1
1
1

query I rowsort
SELECT ALL ( + col1 ) + 93 FROM tab1 AS cor0
----
103
106
119

query I rowsort
SELECT DISTINCT + col0 * - col0 * + col2 - col0 FROM tab2 AS cor0
----
-1330
-158262
-237237

query I rowsort
SELECT ALL + + col0 * + cor0.col0 + + 23 AS col1 FROM tab2 AS cor0
----
6107
6264
72

query I rowsort
SELECT DISTINCT - - col1 * + col2 + - ( col2 * + col2 ) + + col0 * + col1 AS col1 FROM tab1 AS cor0
----
-1434
-2039
-6928

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2512
SELECT DISTINCT + + ( + col2 ) + CAST( 99 AS SIGNED ) * col1 AS col2 FROM tab0 AS cor0
----
8547
9091
9604

skipif mysql # not compatible
query I rowsort label-2512
SELECT DISTINCT + + ( + col2 ) + CAST ( 99 AS INTEGER ) * col1 AS col2 FROM tab0 AS cor0
----
8547
9091
9604

query I rowsort
SELECT ( col0 ) + + ( 27 ) * - col2 AS col1 FROM tab1 AS cor0
----
-1455
-1475
-2512

onlyif mysql # use DIV operator for integer division
query I rowsort label-2514
SELECT - col1 DIV + col2 + col0 FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-2514
SELECT - col1 / + col2 + col0 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT ALL 43 * - 7 FROM tab1, tab2 AS cor0, tab0 cor1
----
27 values hashing to 8836f50e06146bd9d3edd2d3bf5e0549

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2516
SELECT ALL + + col2 + CAST( - 6 AS SIGNED ) FROM tab2 AS cor0
----
20
21
32

skipif mysql # not compatible
query I rowsort label-2516
SELECT ALL + + col2 + CAST ( - 6 AS INTEGER ) FROM tab2 AS cor0
----
20
21
32

query I rowsort
SELECT + col1 * - col2 + + 54 FROM tab0
----
-2784
-43
-7408

query I rowsort
SELECT - tab0.col0 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8

onlyif mysql # use DIV operator for integer division
query I rowsort label-2519
SELECT ALL - - 19 DIV 79 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2519
SELECT ALL - - 19 / 79 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - ( 91 ) AS col2 FROM tab0 AS cor0
----
-91

query I rowsort
SELECT - + col2 * - col1 + - col2 FROM tab2 AS cor0
----
1508
608
810

query I rowsort
SELECT DISTINCT + 55 AS col1 FROM tab0
----
55

query I rowsort
SELECT - + cor0.col2 + + cor0.col0 AS col2 FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT DISTINCT col0 * + 12 AS col2 FROM tab1
----
36
768
960

query I rowsort
SELECT - ( - 55 + cor0.col1 ) * ( - ( - tab2.col0 ) ) AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 6674506fa75bad01bcad458a3a2087f0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + 43 * - col2 * col2 col1 FROM tab0 AS cor0
----
-289214
-44
-46860

onlyif mysql # use DIV operator for integer division
query I rowsort label-2527
SELECT DISTINCT col1 * 89 DIV col2 col2 FROM tab0 AS cor0
----
231
8633
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2527
SELECT DISTINCT col1 * 89 / col2 col2 FROM tab0 AS cor0
----
231
8633
98

query I rowsort
SELECT cor0.col0 * 30 * - col1 FROM tab0 AS cor0
----
-101850
-242970
-61920

onlyif mysql # use DIV operator for integer division
query I rowsort label-2529
SELECT ALL - col2 DIV col2 AS col0 FROM tab0 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2529
SELECT ALL - col2 / col2 AS col0 FROM tab0 cor0
----
-1
-1
-1

query I rowsort
SELECT ALL + ( 13 ) - + col2 * col1 FROM tab2 AS cor0
----
-1521
-633
-824

query I rowsort
SELECT DISTINCT + col2 + - cor0.col2 * + col1 FROM tab0 AS cor0
----
-2805
-7380
-96

query I rowsort
SELECT DISTINCT + + col0 + 34 AS col0 FROM tab1 AS cor0
----
114
37
98

query I rowsort
SELECT ALL 87 * col0 AS col1 FROM tab2 AS cor0
----
609
6786
6873

onlyif mysql # use DIV operator for integer division
query I rowsort label-2534
SELECT DISTINCT col1 DIV + 85 col0 FROM tab2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2534
SELECT DISTINCT col1 / + 85 col0 FROM tab2
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2535
SELECT cor0.col0 + col0 DIV col1 AS col2 FROM tab1 AS cor0
----
3
70
86

skipif mysql # not compatible
query I rowsort label-2535
SELECT cor0.col0 + col0 / col1 AS col2 FROM tab1 AS cor0
----
3
70
86

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2536
SELECT - + ( - col1 ) + - col2 * CAST( NULL AS DECIMAL ) * - cor0.col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2536
SELECT - + ( - col1 ) + - col2 * CAST ( NULL AS REAL ) * - cor0.col0 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL tab2.col0 * - 95 AS col1 FROM tab2
----
-665
-7410
-7505

query I rowsort
SELECT ALL + 64 + - col1 AS col2 FROM tab0
----
-22
-27
-33

query I rowsort
SELECT ALL ( col2 ) + tab1.col1 * 23 FROM tab1
----
287
395
652

skipif mysql # not compatible
query I rowsort
SELECT + 75 - - ( col0 ) * + CAST ( - col0 AS REAL ) FROM tab2
----
-6009
-6166
26

query I rowsort
SELECT DISTINCT col0 * - col1 + col2 FROM tab1
----
-24
-583
-944

query I rowsort
SELECT + cor0.col0 AS col1 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT + cor0.col0 + - 27 * + col2 FROM tab0 AS cor0
----
-2125
-867
8

query I rowsort
SELECT 67 * 47 + col2 FROM tab0 cor0
----
3150
3182
3231

onlyif mysql # use DIV operator for integer division
query I rowsort label-2545
SELECT DISTINCT - - 66 + + col2 DIV + col0 FROM tab0 AS cor0
----
66
67

skipif mysql # not compatible
query I rowsort label-2545
SELECT DISTINCT - - 66 + + col2 / + col0 FROM tab0 AS cor0
----
66
67

query I rowsort
SELECT ALL + 16 * col0 AS col1 FROM tab0 cor0
----
1424
384
560

query I rowsort
SELECT + - col0 * - cor0.col1 AS col2 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT + + 60 * - cor0.col0 AS col1 FROM tab2 AS cor0
----
-420
-4680
-4740

query I rowsort
SELECT ALL - ( + 85 ) AS col1 FROM tab2
----
-85
-85
-85

query I rowsort
SELECT - + tab1.col1 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6

query I rowsort
SELECT ALL - col1 * + 39 FROM tab2
----
-1209
-2301
-663

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + col0 col0 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT + + col1 + 55 AS col2 FROM tab2 AS cor0
----
114
72
86

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2554
SELECT - col1 + + CAST( NULL AS DECIMAL ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2554
SELECT - col1 + + CAST ( NULL AS REAL ) FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-2555
SELECT + col1 * + cor0.col1 + + col0 DIV col2 FROM tab1 cor0
----
101
169
676

skipif mysql # not compatible
query I rowsort label-2555
SELECT + col1 * + cor0.col1 + + col0 / col2 FROM tab1 cor0
----
101
169
676

query I rowsort
SELECT col0 + - ( - col0 ) * - col2 FROM tab2 AS cor0
----
-182
-1950
-2923

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2557
SELECT - col1 - - CAST( + col0 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-24
19
62

skipif mysql # not compatible
query I rowsort label-2557
SELECT - col1 - - CAST ( + col0 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-24
19
62

query I rowsort
SELECT - col2 + 32 FROM tab1 cor0
----
-22
-25
-64

query I rowsort
SELECT ALL tab1.col0 + col2 * - 36 AS col2 FROM tab1
----
-1941
-1988
-3376

query I rowsort
SELECT 7 AS col1 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 4e72e9e33dacac757f48d0ce46094607

query I rowsort
SELECT + col2 * col1 * + 90 + + col2 FROM tab1 AS cor0
----
112416
126414
51357

query I rowsort
SELECT - col1 + ( - col1 ) AS col0 FROM tab1 AS cor0
----
-20
-26
-52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col2 * - col1 col1 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT - col0 * col2 - + col0 AS col0 FROM tab2 cor0
----
-196
-2106
-3081

onlyif mysql # use DIV operator for integer division
query I rowsort label-2565
SELECT + col0 + + col0 * col0 DIV - col0 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2565
SELECT + col0 + + col0 * col0 / - col0 AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + col2 * - col2 + - cor0.col2 FROM tab0 cor0
----
-1122
-2
-6806

query I rowsort
SELECT ALL col1 - + col2 * col0 AS col2 FROM tab1 AS cor0
----
-136
-3638
-7667

query I rowsort
SELECT DISTINCT 5 * - col0 * col2 FROM tab1 AS cor0
----
-18240
-38400
-810

query I rowsort
SELECT - + 24 - + col2 AS col1 FROM tab1 AS cor0
----
-120
-78
-81

onlyif mysql # use DIV operator for integer division
query I rowsort label-2570
SELECT - col0 DIV cor0.col1 - col2 AS col0 FROM tab2 cor0
----
-27
-27
-42

skipif mysql # not compatible
query I rowsort label-2570
SELECT - col0 / cor0.col1 - col2 AS col0 FROM tab2 cor0
----
-27
-27
-42

query I rowsort
SELECT ALL + - col2 - - col1 FROM tab2 AS cor0
----
-21
33
4

query I rowsort
SELECT ALL + col1 + col0 * cor0.col2 * - col0 AS col0 FROM tab2 AS cor0
----
-1292
-158125
-237141

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2573
SELECT ALL + CAST( col0 AS SIGNED ) AS col2 FROM tab1
----
3
64
80

skipif mysql # not compatible
query I rowsort label-2573
SELECT ALL + CAST ( col0 AS INTEGER ) AS col2 FROM tab1
----
3
64
80

query I rowsort
SELECT ALL 71 * col1 + cor0.col2 FROM tab0 cor0
----
6139
6543
6888

query I rowsort
SELECT ALL - ( col0 ) - - col0 AS col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL 84 * tab2.col1 - col0 FROM tab2
----
1349
2597
4878

query I rowsort
SELECT col1 + + col0 * - col0 + col0 * - col1 FROM tab2
----
-10627
-235
-7567

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 * col2 + col0 col1 FROM tab2 AS cor0
----
-1365
-598
-722

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 * 61 col2 FROM tab1, tab1 cor0
----
9 values hashing to 549898816cae2e868cfcf2407ea21c95

query I rowsort
SELECT - 3 + + col1 * col2 AS col2 FROM tab2 AS cor0
----
1531
643
834

query I rowsort
SELECT DISTINCT - 50 - - col2 AS col2 FROM tab0 AS cor0
----
-17
-49
32

query I rowsort
SELECT ALL col2 + - 6 AS col2 FROM tab2
----
20
21
32

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2583
SELECT + col0 - - CAST( col0 + + col1 AS SIGNED ) col0 FROM tab2
----
175
215
45

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2583
SELECT + col0 - - CAST ( col0 + + col1 AS INTEGER ) col0 FROM tab2
----
175
215
45

onlyif mysql # use DIV operator for integer division
query I rowsort label-2584
SELECT 93 DIV col2 - - col2 * + col0 FROM tab0
----
128
7299
794

skipif mysql # not compatible
query I rowsort label-2584
SELECT 93 / col2 - - col2 * + col0 FROM tab0
----
128
7299
794

query I rowsort
SELECT 78 + + ( col1 ) FROM tab1
----
104
88
91

query I rowsort
SELECT - 50 - + col0 FROM tab1
----
-114
-130
-53

query I rowsort
SELECT + ( 26 ) AS col0 FROM tab0
----
26
26
26

query I rowsort
SELECT DISTINCT + 89 AS col1 FROM tab2
----
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + - cor0.col2 * cor0.col0 col1 FROM tab0 AS cor0
----
-7209
-768
0

query I rowsort
SELECT - - 34 * col0 FROM tab1 cor0
----
102
2176
2720

query I rowsort
SELECT ALL - col1 * - tab2.col2 * - col1 AS col1 FROM tab2
----
-10982
-25947
-90506

query I rowsort
SELECT col2 * + tab1.col2 * - col2 - col1 FROM tab1
----
-157490
-185203
-884749

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 * - col2 + cor0.col1 col0 FROM tab1 AS cor0
----
-1235
-1378
-560

query I rowsort
SELECT ALL col0 * - col0 * - col1 FROM tab0
----
118825
49536
720811

query I rowsort
SELECT col1 + + col0 FROM tab1 WHERE + col1 NOT BETWEEN col2 AND - col1
----
29
74
93

query IIIIII rowsort
SELECT ALL * FROM tab2, tab0 AS cor0 WHERE NOT NULL < ( NULL )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col2 * col2 BETWEEN ( + col0 * + cor0.col0 ) AND ( NULL )
----
78
59
26
79
17
38

query I rowsort
SELECT + col1 * cor0.col1 * + col1 AS col1 FROM tab2 AS cor0
----
205379
29791
4913

query I rowsort
SELECT DISTINCT + col0 + + col1 * + col0 FROM tab2 AS cor0
----
1422
224
4680

query I rowsort
SELECT ALL col1 * col1 + col0 + - col2 FROM tab2
----
330
3533
941

query I rowsort
SELECT DISTINCT col2 + col1 * + col2 FROM tab0
----
2871
7544
98

query I rowsort
SELECT ALL + tab0.col1 * - col2 + + col0 + - col2 FROM tab0
----
-2847
-63
-7455

onlyif mysql # use DIV operator for integer division
query I rowsort label-2603
SELECT col2 DIV - tab2.col1 + - col1 * col0 AS col1 FROM tab2
----
-1345
-217
-4602

skipif mysql # not compatible
query I rowsort label-2603
SELECT col2 / - tab2.col1 + - col1 * col0 AS col1 FROM tab2
----
-1345
-217
-4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-2604
SELECT ALL col2 DIV + col2 + col2 * - col0 col1 FROM tab0 cor0
----
-34
-7297
-791

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2604
SELECT ALL col2 / + col2 + col2 * - col0 col1 FROM tab0 cor0
----
-34
-7297
-791

query I rowsort
SELECT cor0.col1 * col1 + - col0 AS col2 FROM tab0 AS cor0
----
7372
8192
9374

onlyif mysql # use DIV operator for integer division
query I rowsort label-2606
SELECT ALL - - col0 * + cor0.col2 + + col0 DIV + col0 col0 FROM tab0 cor0
----
36
7299
793

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2606
SELECT ALL - - col0 * + cor0.col2 + + col0 / + col0 col0 FROM tab0 cor0
----
36
7299
793

onlyif mysql # use DIV operator for integer division
query I rowsort label-2607
SELECT ALL - - cor0.col0 DIV cor0.col1 AS col1 FROM tab1 AS cor0
----
0
6
6

skipif mysql # not compatible
query I rowsort label-2607
SELECT ALL - - cor0.col0 / cor0.col1 AS col1 FROM tab1 AS cor0
----
0
6
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * col1 col0 FROM tab0 cor0
----
2838
7462
97

query I rowsort
SELECT col1 + col1 + col0 * - col0 * - cor0.col0 AS col1 FROM tab2 AS cor0
----
405
474670
493073

query I rowsort
SELECT DISTINCT col0 * - col1 + col2 * col0 AS col2 FROM tab2
----
-2574
-28
1659

onlyif mysql # use DIV operator for integer division
query I rowsort label-2611
SELECT ALL col2 DIV - tab1.col2 + col2 * + tab1.col1 FROM tab1
----
1247
1403
569

skipif mysql # not compatible
query I rowsort label-2611
SELECT ALL col2 / - tab1.col2 + col2 * + tab1.col1 FROM tab1
----
1247
1403
569

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + col1 col1 FROM tab1
----
20
26
52

query I rowsort
SELECT ALL col1 * + col0 + + col1 AS col0 FROM tab2
----
1360
248
4661

query I rowsort
SELECT ALL - col2 + + col1 * - tab2.col2 AS col0 FROM tab2
----
-1560
-684
-864

query I rowsort
SELECT + 51 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to d8bf0a05c9c4d2a93812d106baae4752

query I rowsort
SELECT DISTINCT + col0 * ( + 19 ) FROM tab1 AS cor0
----
1216
1520
57

query I rowsort
SELECT DISTINCT + 5 AS col0 FROM tab0, tab2 AS cor0
----
5

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2618
SELECT DISTINCT - + col0 * CAST( NULL AS DECIMAL ) col0 FROM tab2 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2618
SELECT DISTINCT - + col0 * CAST ( NULL AS REAL ) col0 FROM tab2 cor0
----
NULL

query I rowsort
SELECT - tab0.col0 - col2 AS col1 FROM tab0
----
-171
-36
-57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * + col1 * col1 col1 FROM tab2 AS cor0
----
205379
29791
4913

query I rowsort
SELECT ALL - cor1.col1 + cor1.col0 FROM tab1, tab1 AS cor0, tab0 AS cor1, tab0 cor2
----
81 values hashing to 7b2d4907ae07163b1b986134454d018d

query I rowsort
SELECT ALL + - 65 + ( - col2 ) AS col0 FROM tab1 AS cor0
----
-119
-122
-161

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2623
SELECT ALL CAST( - col1 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-2623
SELECT ALL CAST ( - col1 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT ( - col1 * - col1 ) + col0 + + col0 FROM tab2
----
3637
447
975

onlyif mysql # use DIV operator for integer division
query I rowsort label-2625
SELECT 10 DIV 61 col1 FROM tab2
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2625
SELECT 10 / 61 col1 FROM tab2
----
0
0
0

query I rowsort
SELECT + col2 + ( - col2 ) FROM tab0
----
0
0
0

query I rowsort
SELECT ALL - - 40 AS col2 FROM tab0 cor0
----
40
40
40

query I rowsort
SELECT - 25 + col2 FROM tab0 AS cor0
----
-24
57
8

query I rowsort
SELECT ALL - ( col1 ) * col1 AS col2 FROM tab1 AS cor0
----
-100
-169
-676

onlyif mysql # use DIV operator for integer division
query I rowsort label-2630
SELECT ALL 28 + col2 DIV + ( + col2 * col2 ) AS col1 FROM tab0 AS cor0
----
28
28
29

skipif mysql # not compatible
query I rowsort label-2630
SELECT ALL 28 + col2 / + ( + col2 * col2 ) AS col1 FROM tab0 AS cor0
----
28
28
29

query I rowsort
SELECT - - col2 + - col1 * + col2 * - col2 AS col0 FROM tab1 AS cor0
----
119904
32547
75870

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 + col0 * - col2 * - 54 + + col0 col2 FROM tab1 AS cor0
----
196999
414704
8697

query I rowsort
SELECT - ( cor0.col2 ) + + 59 FROM tab0 AS cor0
----
-23
26
58

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2634
SELECT ( + cor0.col2 ) * CAST( + ( col2 ) AS SIGNED ) col1 FROM tab1 AS cor0
----
2916
3249
9216

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2634
SELECT ( + cor0.col2 ) * CAST ( + ( col2 ) AS INTEGER ) col1 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT cor0.col2 * - cor0.col1 + + cor0.col0 AS col1 FROM tab0 AS cor0
----
-2814
-62
-7373

query I rowsort
SELECT - col2 + + col2 + 61 AS col2 FROM tab0 AS cor0
----
61
61
61

query I rowsort
SELECT DISTINCT + - cor0.col2 * + col0 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT - col1 * - col1 * 43 FROM tab1 AS cor0
----
29068
4300
7267

query I rowsort
SELECT col0 + col0 * 6 * + col2 AS col0 FROM tab1 AS cor0
----
21952
46160
975

onlyif mysql # use DIV operator for integer division
query I rowsort label-2640
SELECT - 74 * col2 + col1 + - col0 DIV col1 AS col0 FROM tab0 AS cor0
----
-2356
-5977
23

skipif mysql # not compatible
query I rowsort label-2640
SELECT - 74 * col2 + col1 + - col0 / col1 AS col0 FROM tab0 AS cor0
----
-2356
-5977
23

query I rowsort
SELECT DISTINCT + 15 * + cor0.col0 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
1335
360
525

query I rowsort
SELECT ALL col2 * - col1 * + ( + col0 ) FROM tab1
----
-36480
-4212
-99840

query I rowsort
SELECT ALL ( + col1 ) * ( col2 ) AS col2 FROM tab2
----
1534
646
837

query I rowsort
SELECT col1 + - col2 * 54 + - col2 * col0 FROM tab0
----
-11635
-2488
8

query I rowsort
SELECT DISTINCT ( + tab1.col0 + - ( col2 ) ) * - col2 AS col0 FROM tab1
----
-399
1536
2754

query I rowsort
SELECT ALL ( 75 ) + + cor0.col2 FROM tab0, tab0 AS cor0
----
9 values hashing to ddd6114454f91cb18dceaa2d0ab20718

query I rowsort
SELECT - - cor0.col0 + + 84 AS col0 FROM tab2 AS cor0
----
162
163
91

query I rowsort
SELECT - cor0.col2 + + 96 * col1 AS col2 FROM tab1 AS cor0
----
1152
2442
903

query I rowsort
SELECT + cor0.col1 + cor0.col1 * - col1 AS col1 FROM tab0 AS cor0
----
-7310
-8190
-9312

query I rowsort
SELECT - col2 * - col0 * ( col2 ) AS col0 FROM tab2
----
114076
5103
52728

query I rowsort
SELECT - col1 * ( - ( + col2 ) * + col1 ) + col1 + + col0 AS col0 FROM tab0 AS cor0
----
244178
679222
9541

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + col0 * CAST ( + col1 AS REAL ) FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT ( 43 ) AS col2 FROM tab2 cor0
----
43
43
43

query I rowsort
SELECT col1 * + col2 + - col0 * col1 FROM tab1 AS cor0
----
-70
1326
208

query I rowsort
SELECT cor0.col1 + - col2 + - ( col0 ) FROM tab0 AS cor0
----
-80
29
61

query I rowsort
SELECT ( - col0 ) * - col1 AS col2 FROM tab1
----
1040
640
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-2657
SELECT ALL col2 DIV col1 col1 FROM tab2
----
0
0
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2657
SELECT ALL col2 / col1 col1 FROM tab2
----
0
0
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 88 * - cor0.col0 - ( ( cor0.col1 ) ) col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 53d044319b3f170170ea44f092761cc7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2659
SELECT CAST( + col2 AS SIGNED ) + col0 * col1 AS col0 FROM tab2 AS cor0
----
1381
244
4628

skipif mysql # not compatible
query I rowsort label-2659
SELECT CAST ( + col2 AS INTEGER ) + col0 * col1 AS col0 FROM tab2 AS cor0
----
1381
244
4628

query I rowsort
SELECT ( + 70 ) * + col0 FROM tab1 AS cor0
----
210
4480
5600

query I rowsort
SELECT ALL cor0.col1 * + tab2.col1 FROM tab2, tab2 AS cor0
----
9 values hashing to a499c3357b32340ea4100b46ab6f11f6

query I rowsort
SELECT + col1 - + col2 AS col2 FROM tab1
----
-28
-47
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col1 * col2 + col0 * ( 81 ) col0 FROM tab0
----
14671
2932
4782

query I rowsort
SELECT + col0 + col0 * + col1 AS col2 FROM tab2
----
1422
224
4680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2665
SELECT CAST( NULL AS DECIMAL ) + 57 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2665
SELECT CAST ( NULL AS REAL ) + 57 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-2666
SELECT - ( col2 ) DIV + col2 FROM tab0 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2666
SELECT - ( col2 ) / + col2 FROM tab0 cor0
----
-1
-1
-1

query I rowsort
SELECT ALL + ( col1 ) + col1 FROM tab0 AS cor0
----
172
182
194

query I rowsort
SELECT ALL - col1 * + col2 + - col2 * col1 AS col1 FROM tab1 AS cor0
----
-1140
-2496
-2808

query I rowsort
SELECT + col1 + - col1 * col0 FROM tab1 AS cor0
----
-1027
-52
-630

query I rowsort
SELECT ALL + 18 * + col2 AS col1 FROM tab2 AS cor0
----
468
486
684

query I rowsort
SELECT 73 * col1 * - 69 FROM tab0 AS cor0
----
-433182
-458367
-488589

query I rowsort
SELECT DISTINCT - + col2 * + cor0.col1 AS col0 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT 89 * + tab2.col0 - + col2 AS col1 FROM tab2
----
596
6916
6993

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - ( col0 ) ) col0 FROM tab1
----
3
64
80

query I rowsort
SELECT + + cor0.col2 * - col1 AS col2 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT ALL cor0.col0 * + col2 AS col1 FROM tab2 cor0
----
189
2028
3002

query I rowsort
SELECT - - col0 * + 38 FROM tab0 cor0
----
1330
3382
912

onlyif mysql # use DIV operator for integer division
query I rowsort label-2678
SELECT col0 DIV + 87 AS col0 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2678
SELECT col0 / + 87 AS col0 FROM tab0 AS cor0
----
0
0
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-2679
SELECT + col1 DIV + col1 + + col1 FROM tab2 AS cor0
----
18
32
60

skipif mysql # not compatible
query I rowsort label-2679
SELECT + col1 / + col1 + + col1 FROM tab2 AS cor0
----
18
32
60

query I rowsort
SELECT + 91 * - col2 AS col1 FROM tab2
----
-2366
-2457
-3458

query I rowsort
SELECT DISTINCT + cor0.col2 * + 84 AS col2 FROM tab0 AS cor0
----
2772
6888
84

onlyif mysql # use DIV operator for integer division
query I rowsort label-2682
SELECT DISTINCT - col0 DIV col1 - 27 DIV col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2682
SELECT DISTINCT - col0 / col1 - 27 / col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT + cor0.col1 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0, tab0 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 52 * + 63 * col1 col2 FROM tab1 AS cor0
----
32760
42588
85176

query I rowsort
SELECT DISTINCT - col2 * 40 AS col1 FROM tab2 AS cor0
----
-1040
-1080
-1520

query I rowsort
SELECT - - cor1.col0 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a

query I rowsort
SELECT ALL 7 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab0, tab1 AS cor1, tab1, tab0 AS cor2
----
3645 values hashing to ab1725cc571093d8268326e5b556cfaf

query I rowsort
SELECT + + col0 + + 30 FROM tab1 cor0
----
110
33
94

query I rowsort
SELECT + 88 + + col2 FROM tab2 AS cor0
----
114
115
126

query I rowsort
SELECT - 38 + + cor0.col2 FROM tab1 AS cor0
----
16
19
58

query I rowsort
SELECT DISTINCT + col1 * col0 + col1 FROM tab2 cor0
----
1360
248
4661

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2693
SELECT ALL + CAST( - 77 AS SIGNED ) * - col0 FROM tab2 AS cor0
----
539
6006
6083

skipif mysql # not compatible
query I rowsort label-2693
SELECT ALL + CAST ( - 77 AS INTEGER ) * - col0 FROM tab2 AS cor0
----
539
6006
6083

query I rowsort
SELECT DISTINCT + ( col2 ) * col2 AS col2 FROM tab0 AS cor0
----
1
1089
6724

onlyif mysql # use DIV operator for integer division
query I rowsort label-2695
SELECT ALL 92 DIV - 24 FROM tab1 AS cor0
----
-3
-3
-3

skipif mysql # not compatible
query I rowsort label-2695
SELECT ALL 92 / - 24 FROM tab1 AS cor0
----
-3
-3
-3

query I rowsort
SELECT ALL col0 * 6 + - col0 + + col1 AS col1 FROM tab2
----
412
449
66

query I rowsort
SELECT DISTINCT - tab0.col0 + + ( col1 * col0 ) + col1 FROM tab0
----
2126
3457
8101

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - ( - col2 ) * col1 + col0 col2 FROM tab1
----
119888
32554
75819

query I rowsort
SELECT + tab2.col2 AS col2 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-2700
SELECT - col1 + col0 DIV - col0 AS col0 FROM tab2
----
-18
-32
-60

skipif mysql # not compatible
query I rowsort label-2700
SELECT - col1 + col0 / - col0 AS col0 FROM tab2
----
-18
-32
-60

query I rowsort
SELECT cor1.col1 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775

query I rowsort
SELECT ALL - 98 FROM tab2, tab1 AS cor0
----
9 values hashing to f17b7008a7deae1eb5a2e707ec237638

query I rowsort
SELECT DISTINCT col1 * 80 AS col0 FROM tab1 AS cor0
----
1040
2080
800

query I rowsort
SELECT ALL + + col2 * 91 + col1 * col2 FROM tab2 AS cor0
----
3294
3900
4104

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2705
SELECT DISTINCT - - CAST( 83 AS SIGNED ) * - col0 FROM tab2 AS cor0
----
-581
-6474
-6557

skipif mysql # not compatible
query I rowsort label-2705
SELECT DISTINCT - - CAST ( 83 AS INTEGER ) * - col0 FROM tab2 AS cor0
----
-581
-6474
-6557

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2706
SELECT DISTINCT - ( - cor0.col1 ) * - col0 - + CAST( col1 AS SIGNED ) * col2 AS col0 FROM tab0 AS cor0
----
-15561
-3492
-4902

skipif mysql # not compatible
query I rowsort label-2706
SELECT DISTINCT - ( - cor0.col1 ) * - col0 - + CAST ( col1 AS INTEGER ) * col2 AS col0 FROM tab0 AS cor0
----
-15561
-3492
-4902

query I rowsort
SELECT DISTINCT 46 * - ( + col2 ) FROM tab1 AS cor0
----
-2484
-2622
-4416

query I rowsort
SELECT - 11 + + 75 AS col0 FROM tab2 AS cor0
----
64
64
64

onlyif mysql # use DIV operator for integer division
query I rowsort label-2709
SELECT ALL - + ( col1 ) DIV col0 + 92 * - col0 FROM tab0 AS cor0
----
-2211
-3222
-8189

skipif mysql # not compatible
query I rowsort label-2709
SELECT ALL - + ( col1 ) / col0 + 92 * - col0 FROM tab0 AS cor0
----
-2211
-3222
-8189

query I rowsort
SELECT + 51 * col2 AS col1 FROM tab2 AS cor0
----
1326
1377
1938

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 + - col1 * - col2 + - col2 * col1 * - col2 col0 FROM tab0 AS cor0
----
229
619435
96516

query I rowsort
SELECT ALL col0 * col0 + col0 AS col2 FROM tab2
----
56
6162
6320

query I rowsort
SELECT - col2 * col0 + + col1 - + cor0.col1 AS col0 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT ALL + cor0.col0 + - col1 * + 44 AS col0 FROM tab0 AS cor0
----
-3760
-3915
-4233

query I rowsort
SELECT 96 * col1 AS col1 FROM tab2 cor0
----
1632
2976
5664

query I rowsort
SELECT DISTINCT - 92 * col1 + 47 AS col1 FROM tab1 AS cor0
----
-1149
-2345
-873

onlyif mysql # use DIV operator for integer division
query I rowsort label-2717
SELECT DISTINCT col2 + + col2 + - col1 DIV col1 col2 FROM tab2
----
51
53
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2717
SELECT DISTINCT col2 + + col2 + - col1 / col1 col2 FROM tab2
----
51
53
75

query I rowsort
SELECT + col0 + col0 + col1 AS col1 FROM tab0
----
134
167
269

query I rowsort
SELECT + col1 * + ( - col2 ) AS col0 FROM tab1
----
-1248
-1404
-570

query I rowsort
SELECT - - 29 AS col1 FROM tab0, tab2 AS cor0, tab2 AS cor1, tab2, tab2 AS cor2
----
243 values hashing to 4ffdaaf27fe62f3aa6cc6bee2d5812a8

query I rowsort
SELECT DISTINCT + col1 + + ( col0 ) AS col2 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT + 72 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49

onlyif mysql # use DIV operator for integer division
query I rowsort label-2723
SELECT DISTINCT col0 * col1 DIV + 17 AS col1 FROM tab1 AS cor0
----
37
4
61

skipif mysql # not compatible
query I rowsort label-2723
SELECT DISTINCT col0 * col1 / + 17 AS col1 FROM tab1 AS cor0
----
37
4
61

query I rowsort
SELECT DISTINCT - + col0 + - col0 AS col0 FROM tab1 AS cor0
----
-128
-160
-6

query I rowsort
SELECT - col2 * - col0 AS col0 FROM tab0 cor0
----
35
7298
792

query I rowsort
SELECT + ( col0 ) * + ( + col1 ) FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT DISTINCT - col2 + col1 * - col0 * col2 FROM tab0 AS cor0
----
-3396
-664200
-68145

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col1 + ( - cor0.col2 * - col1 ) col0 FROM tab0 AS cor0
----
14924
194
5676

query I rowsort
SELECT 63 * col1 + - col2 * - cor0.col1 AS col0 FROM tab1 AS cor0
----
1200
2067
3042

onlyif mysql # use DIV operator for integer division
query I rowsort label-2730
SELECT + 85 DIV cor0.col0 + col0 FROM tab0 AS cor0
----
27
37
89

skipif mysql # not compatible
query I rowsort label-2730
SELECT + 85 / cor0.col0 + col0 FROM tab0 AS cor0
----
27
37
89

query I rowsort
SELECT 2 * - 91 AS col2 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 902c4065b465290434a24471c35cbc4b

query I rowsort
SELECT col0 + + ( col1 * - 10 ) FROM tab2 AS cor0
----
-303
-512
-91

query I rowsort
SELECT - cor0.col1 * col1 + col2 FROM tab0 cor0
----
-7363
-8199
-9408

query I rowsort
SELECT + + col2 * - 31 FROM tab0 AS cor0
----
-1023
-2542
-31

query I rowsort
SELECT ALL + col1 + ( + col0 ) + - col2 * col2 AS col0 FROM tab0
----
-6544
-979
131

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2736
SELECT ALL CAST( + col2 AS SIGNED ) * - col1 - + col1 AS col1 FROM tab0 AS cor0
----
-194
-2924
-7553

skipif mysql # not compatible
query I rowsort label-2736
SELECT ALL CAST ( + col2 AS INTEGER ) * - col1 - + col1 AS col1 FROM tab0 AS cor0
----
-194
-2924
-7553

query I rowsort
SELECT 71 * + col2 * - col0 FROM tab2
----
-13419
-143988
-213142

query I rowsort
SELECT - + col2 + + cor0.col1 * col1 AS col2 FROM tab2 AS cor0
----
251
3455
934

query I rowsort
SELECT DISTINCT + - cor0.col1 * 57 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-1482
-570
-741

query I rowsort
SELECT ( - 69 ) + tab2.col1 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 3bf6013ff866b3ef4d8bc00372c2640a

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * tab1.col0 col0 FROM tab1
----
-162
-3648
-7680

query I rowsort
SELECT ALL - 93 + col2 FROM tab2
----
-55
-66
-67

onlyif mysql # use DIV operator for integer division
query I rowsort label-2743
SELECT ALL + cor0.col1 DIV - 54 FROM tab1, tab2 cor0
----
9 values hashing to 721682d0719de924079c33bd72eef789

skipif mysql # not compatible
query I rowsort label-2743
SELECT ALL + cor0.col1 / - 54 FROM tab1, tab2 cor0
----
9 values hashing to 721682d0719de924079c33bd72eef789

query I rowsort
SELECT - - col0 * - 88 FROM tab0 cor0
----
-2112
-3080
-7832

query I rowsort
SELECT + + 85 * col0 FROM tab1 cor0
----
255
5440
6800

query I rowsort
SELECT 6 * + col1 FROM tab2 AS cor0
----
102
186
354

query I rowsort
SELECT + ( + col1 ) + + col1 AS col1 FROM tab2 AS cor0
----
118
34
62

query I rowsort
SELECT ALL + + 42 AS col1 FROM tab1 cor0
----
42
42
42

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2749
SELECT + - CAST( NULL AS SIGNED ) col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2749
SELECT + - CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - - ( - 75 ) * - col1 FROM tab2 AS cor0
----
1275
2325
4425

query I rowsort
SELECT ALL - cor0.col0 FROM tab1, tab0 AS cor0, tab0 cor1
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8

query I rowsort
SELECT + - ( + col0 ) * col1 AS col0 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT ALL 46 + + col0 * 32 + 74 AS col2 FROM tab2
----
2616
2648
344

query I rowsort
SELECT col1 + tab2.col1 * 99 FROM tab2
----
1700
3100
5900

query I rowsort
SELECT DISTINCT 55 + - col0 FROM tab2
----
-23
-24
48

query I rowsort
SELECT ALL - 87 + + col2 + ( - ( col2 ) ) AS col0 FROM tab2
----
-87
-87
-87

query I rowsort
SELECT ALL + 77 AS col2 FROM tab0, tab0 cor0, tab1 AS cor1
----
27 values hashing to d7b027bca5d37c67e29013904def8125

query I rowsort
SELECT ALL - 21 + col1 * col2 FROM tab0
----
2817
7441
76

onlyif mysql # use DIV operator for integer division
query I rowsort label-2759
SELECT ALL + col2 - - 40 DIV - col1 FROM tab1 AS cor0
----
53
53
93

skipif mysql # not compatible
query I rowsort label-2759
SELECT ALL + col2 - - 40 / - col1 FROM tab1 AS cor0
----
53
53
93

query I rowsort
SELECT + + col2 * + ( col0 * + col0 ) FROM tab1 AS cor0
----
233472
486
614400

query I rowsort
SELECT ALL - col2 + 81 FROM tab1 AS cor0
----
-15
24
27

query I rowsort
SELECT + col2 + + 91 * 19 * + col1 AS col2 FROM tab1 AS cor0
----
17347
22573
45008

query I rowsort
SELECT DISTINCT - cor0.col0 * + col0 AS col0 FROM tab1 AS cor0
----
-4096
-6400
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 * + 92 col1 FROM tab2 AS cor0
----
1564
2852
5428

onlyif mysql # use DIV operator for integer division
query I rowsort label-2765
SELECT ALL + col2 DIV 83 AS col0 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2765
SELECT ALL + col2 / 83 AS col0 FROM tab1 AS cor0
----
0
0
1

query I rowsort
SELECT DISTINCT - 37 + - col0 AS col2 FROM tab1
----
-101
-117
-40

query I rowsort
SELECT - 5 + - col0 * col0 FROM tab2 AS cor0
----
-54
-6089
-6246

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2768
SELECT + + CAST( - col1 AS SIGNED ) * - col0 FROM tab2 AS cor0
----
1343
217
4602

skipif mysql # not compatible
query I rowsort label-2768
SELECT + + CAST ( - col1 AS INTEGER ) * - col0 FROM tab2 AS cor0
----
1343
217
4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-2769
SELECT + cor0.col0 + col1 DIV - col0 FROM tab1 AS cor0
----
-5
64
80

skipif mysql # not compatible
query I rowsort label-2769
SELECT + cor0.col0 + col1 / - col0 FROM tab1 AS cor0
----
-5
64
80

query I rowsort
SELECT DISTINCT - col2 + col1 + - col1 AS col2 FROM tab0
----
-1
-33
-82

query I rowsort
SELECT DISTINCT ( col0 ) + + col1 * + col2 * + col0 FROM tab0 AS cor0
----
3430
664207
68136

query I rowsort
SELECT + - ( col0 ) * + col0 + + 81 * + cor0.col0 AS col2 FROM tab2 AS cor0
----
158
234
518

query I rowsort
SELECT - - 71 - col0 AS col2 FROM tab2 AS cor0
----
-7
-8
64

onlyif mysql # use DIV operator for integer division
query I rowsort label-2774
SELECT DISTINCT ( + col0 ) DIV col1 AS col1 FROM tab1 AS cor0
----
0
6

skipif mysql # not compatible
query I rowsort label-2774
SELECT DISTINCT ( + col0 ) / col1 AS col1 FROM tab1 AS cor0
----
0
6

query I rowsort
SELECT + - col1 * - 14 + cor0.col0 FROM tab0 AS cor0
----
1228
1363
1393

query I rowsort
SELECT DISTINCT - col0 + - ( - col0 ) * col0 AS col0 FROM tab1 cor0
----
4032
6
6320

query I rowsort
SELECT ALL 0 * - col1 * - col1 + + 28 AS col0 FROM tab2 AS cor0
----
28
28
28

skipif mysql # not compatible
query I rowsort
SELECT ALL CAST ( col2 AS REAL ) + col1 AS col2 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT + cor0.col2 * 44 - col2 * cor0.col0 FROM tab0 AS cor0
----
-3690
660
9

query I rowsort
SELECT + 81 * - cor0.col1 + col0 * ( - col2 ) AS col2 FROM tab0 cor0
----
-14669
-7758
-7892

query I rowsort
SELECT + col0 * + col2 - col1 FROM tab2 AS cor0
----
158
1969
2985

onlyif mysql # use DIV operator for integer division
query I rowsort label-2782
SELECT ALL - col2 + 42 DIV col0 AS col1 FROM tab2 AS cor0
----
-21
-26
-38

skipif mysql # not compatible
query I rowsort label-2782
SELECT ALL - col2 + 42 / col0 AS col1 FROM tab2 AS cor0
----
-21
-26
-38

query I rowsort
SELECT + ( cor0.col2 ) + col2 FROM tab0 cor0
----
164
2
66

query I rowsort
SELECT ALL - col0 + 25 * + cor0.col0 FROM tab2 cor0
----
168
1872
1896

query I rowsort
SELECT DISTINCT + 96 AS col2 FROM tab0 AS cor0
----
96

query I rowsort
SELECT - + 4 + + col0 * col1 FROM tab1 cor0
----
1036
636
74

query I rowsort
SELECT + + col0 + col2 + ( 82 ) AS col2 FROM tab0 AS cor0
----
118
139
253

query I rowsort
SELECT - tab2.col0 * tab2.col0 FROM tab0, tab2 AS cor0 CROSS JOIN tab2
----
27 values hashing to bfa29ac72730a1b8452f6f2702fbe6b9

query I rowsort
SELECT ALL 62 * + col1 AS col2 FROM tab0
----
5332
5642
6014

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 68 col1 FROM tab0 AS cor0
----
68

query I rowsort
SELECT + - col1 * - col0 + col2 * col1 FROM tab0 AS cor0
----
15561
3492
4902

query I rowsort
SELECT ALL + cor0.col2 + + col1 AS col0 FROM tab0 cor0
----
119
173
98

query I rowsort
SELECT - col1 * + col2 * col1 + col2 FROM tab2 AS cor0
----
-10944
-25920
-90480

query I rowsort
SELECT + col2 + + col0 + - col1 AS col0 FROM tab2 cor0
----
100
3
45

query I rowsort
SELECT - - 30 - col0 FROM tab2 AS cor0
----
-48
-49
23

query I rowsort
SELECT DISTINCT col0 + col2 * + col0 FROM tab0 AS cor0
----
70
7387
816

query I rowsort
SELECT - col2 + col2 + + cor0.col0 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT - col2 * col1 * - 20 + + col2 * cor0.col0 AS col1 FROM tab1 AS cor0
----
15048
28242
32640

query I rowsort
SELECT DISTINCT + 60 - + 57 AS col0 FROM tab0
----
3

query I rowsort
SELECT + ( - 46 ) + col1 AS col2 FROM tab2
----
-15
-29
13

query I rowsort
SELECT + ( + tab0.col0 ) FROM tab1, tab2, tab0 AS cor0, tab0
----
81 values hashing to 2304fcc140e955eb2d1ee28ab1eea994

query I rowsort
SELECT col2 * col0 - - col0 FROM tab1
----
165
3712
7760

onlyif mysql # use DIV operator for integer division
query I rowsort label-2803
SELECT ALL - ( + cor0.col2 ) DIV - col0 + - col2 FROM tab2 AS cor0
----
-24
-26
-38

skipif mysql # not compatible
query I rowsort label-2803
SELECT ALL - ( + cor0.col2 ) / - col0 + - col2 FROM tab2 AS cor0
----
-24
-26
-38

query I rowsort
SELECT ALL cor0.col2 + cor0.col1 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT cor0.col1 - + col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + - col2 * col2 + col0 + col2 * + col2 AS col1 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT DISTINCT + + 0 * + col0 - ( + col2 + + col2 ) * + col2 AS col1 FROM tab0 AS cor0
----
-13448
-2
-2178

onlyif mysql # use DIV operator for integer division
query I rowsort label-2808
SELECT ALL col2 DIV col1 + 94 + col0 * col0 FROM tab2
----
143
6178
6337

skipif mysql # not compatible
query I rowsort label-2808
SELECT ALL col2 / col1 + 94 + col0 * col0 FROM tab2
----
143
6178
6337

query I rowsort
SELECT ALL - cor0.col2 AS col2 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2810
SELECT 64 + + col0 * CAST( NULL AS SIGNED ) + + col0 * col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2810
SELECT 64 + + col0 * CAST ( NULL AS INTEGER ) + + col0 * col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2811
SELECT - cor0.col0 * + CAST( - col0 AS SIGNED ) + + cor0.col1 + 96 * - col2 AS col2 FROM tab0 AS cor0
----
-2506
1226
140

skipif mysql # not compatible
query I rowsort label-2811
SELECT - cor0.col0 * + CAST ( - col0 AS INTEGER ) + + cor0.col1 + 96 * - col2 AS col2 FROM tab0 AS cor0
----
-2506
1226
140

onlyif mysql # use DIV operator for integer division
query I rowsort label-2812
SELECT - - col2 * + 22 + col2 DIV - col0 AS col0 FROM tab0 AS cor0
----
1804
22
725

skipif mysql # not compatible
query I rowsort label-2812
SELECT - - col2 * + 22 + col2 / - col0 AS col0 FROM tab0 AS cor0
----
1804
22
725

query I rowsort
SELECT DISTINCT 58 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 33 + + col0 col2 FROM tab2
----
111
112
40

query I rowsort
SELECT DISTINCT col0 + col1 * col0 * tab0.col2 AS col0 FROM tab0
----
3430
664207
68136

query I rowsort
SELECT - 22 * cor1.col0 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 95f993406bbdfe40a39b50518a3d65bc

query I rowsort
SELECT ALL - 59 + - cor0.col0 FROM tab0 AS cor0
----
-148
-83
-94

query I rowsort
SELECT ALL - 44 FROM tab0, tab2 AS cor0
----
9 values hashing to 07457d9e571e036a9a3a0f5a5a2e1ef2

query I rowsort
SELECT DISTINCT + cor0.col2 * col0 + col0 AS col0 FROM tab1 AS cor0
----
165
3712
7760

query I rowsort
SELECT DISTINCT + - col2 - + 25 AS col1 FROM tab2 AS cor0
----
-51
-52
-63

query I rowsort
SELECT + - col1 * ( col0 ) AS col0 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT ALL ( - col0 ) + + col2 * - col2 AS col2 FROM tab1 AS cor0
----
-2919
-3313
-9296

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab2 cor2, tab2 AS cor3
----
3645 values hashing to 677ef6b86493a7e48d2f6a3cfd7eea4c

query I rowsort
SELECT + col2 + col2 * tab1.col0 AS col1 FROM tab1
----
216
3705
7776

query I rowsort
SELECT tab1.col0 + ( + col1 + col2 * - 77 ) FROM tab1
----
-4129
-4315
-7299

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 52 + + col2 col0 FROM tab1
----
106
109
148

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab0.col0 col1 FROM tab0, tab2, tab1 AS cor0
----
24
35
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-2828
SELECT ( - col2 + col0 ) DIV - 1 col0 FROM tab2
----
-41
-52
20

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2828
SELECT ( - col2 + col0 ) / - 1 col0 FROM tab2
----
-41
-52
20

onlyif mysql # use DIV operator for integer division
query I rowsort label-2829
SELECT DISTINCT col0 * col0 + col1 * 20 DIV - col0 FROM tab1
----
-164
4093
6397

skipif mysql # not compatible
query I rowsort label-2829
SELECT DISTINCT col0 * col0 + col1 * 20 / - col0 FROM tab1
----
-164
4093
6397

query I rowsort
SELECT DISTINCT cor0.col2 + 7 FROM tab2 AS cor0
----
33
34
45

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2831
SELECT tab0.col0 * - ( - tab0.col2 ) + CAST( NULL AS DECIMAL ) * 71 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2831
SELECT tab0.col0 * - ( - tab0.col2 ) + CAST ( NULL AS REAL ) * 71 AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 87 - - col0 FROM tab2 AS cor0
----
165
166
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + col1 * 51 * + col0 col2 FROM tab0 AS cor0
----
105297
173146
413131

onlyif mysql # use DIV operator for integer division
query I rowsort label-2834
SELECT + + cor0.col2 DIV 36 AS col1 FROM tab0 cor0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-2834
SELECT + + cor0.col2 / 36 AS col1 FROM tab0 cor0
----
0
0
2

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2835
SELECT + cor0.col2 - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2835
SELECT + cor0.col2 - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col1 * + ( ( - col2 ) ) AS col0 FROM tab0 AS cor0
----
-2838
-7462
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-2837
SELECT DISTINCT + + col1 DIV cor0.col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2837
SELECT DISTINCT + + col1 / cor0.col2 FROM tab1 AS cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2838
SELECT ALL + col2 DIV + ( col1 + col0 * + 76 ) FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2838
SELECT ALL + col2 / + ( col1 + col0 * + 76 ) FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT - + 81 * + col0 FROM tab0 AS cor0
----
-1944
-2835
-7209

query I rowsort
SELECT ALL + 1 FROM tab2, tab0 cor0, tab2 AS cor1, tab2 AS cor2
----
81 values hashing to 2a004dce2d308bae163576f54ee1a3fc

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2841
SELECT - + CAST( NULL AS SIGNED ) + 45 + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2841
SELECT - + CAST ( NULL AS INTEGER ) + 45 + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-2842
SELECT col2 DIV 56 AS col2 FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-2842
SELECT col2 / 56 AS col2 FROM tab1 AS cor0
----
0
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-2843
SELECT + - 38 DIV - col0 AS col0 FROM tab2 AS cor0
----
0
0
5

skipif mysql # not compatible
query I rowsort label-2843
SELECT + - 38 / - col0 AS col0 FROM tab2 AS cor0
----
0
0
5

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2844
SELECT DISTINCT - + col0 * col2 + + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2844
SELECT DISTINCT - + col0 * col2 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT col0 + col1 * col1 AS col0 FROM tab0 AS cor0
----
7420
8370
9444

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 15 + col1 col2 FROM tab2 cor0
----
16
2
44

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 73 col2 FROM tab1 AS cor0
----
-73
-73
-73

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2848
SELECT + col2 * - CAST( NULL AS DECIMAL ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2848
SELECT + col2 * - CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-2849
SELECT + - col0 * ( - col0 ) DIV - col2 FROM tab1 AS cor0
----
-66
-71
0

skipif mysql # not compatible
query I rowsort label-2849
SELECT + - col0 * ( - col0 ) / - col2 FROM tab1 AS cor0
----
-66
-71
0

query I rowsort
SELECT + + col0 + col0 * + col0 AS col0 FROM tab0 AS cor0
----
1260
600
8010

query I rowsort
SELECT + col1 * + col0 * + cor0.col2 FROM tab0 AS cor0
----
3395
664118
68112

query I rowsort
SELECT + col2 + col0 * cor0.col2 FROM tab0 AS cor0
----
36
7380
825

query I rowsort
SELECT DISTINCT cor0.col2 * cor0.col1 - - col2 AS col1 FROM tab2 AS cor0
----
1560
684
864

query I rowsort
SELECT - col0 * col0 * col0 AS col0 FROM tab2 cor0
----
-343
-474552
-493039

query I rowsort
SELECT 86 * 43 AS col1 FROM tab1, tab1 cor0, tab0 AS cor1
----
27 values hashing to 4d8eeedecaac5efee5d605df5367ee04

query I rowsort
SELECT DISTINCT + - col1 * - ( col1 ) FROM tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT + 92 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a

query I rowsort
SELECT 60 + - tab2.col1 FROM tab2, tab2 AS cor0
----
9 values hashing to c98ddd8b4f1bf8360789fa4fdf705605

query I rowsort
SELECT - 45 * 66 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to c7185cd0ab274a507b65229d6f23fb79

query I rowsort
SELECT ALL 4 * - 47 FROM tab0 cor0
----
-188
-188
-188

query I rowsort
SELECT DISTINCT + 32 AS col0 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
32

query I rowsort
SELECT ALL - col0 * 99 FROM tab2
----
-693
-7722
-7821

query I rowsort
SELECT tab0.col0 * - 16 * - col2 + + col0 FROM tab0
----
116857
12696
595

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2864
SELECT - col2 * - CAST( col2 AS SIGNED ) FROM tab0 AS cor0
----
1
1089
6724

skipif mysql # not compatible
query I rowsort label-2864
SELECT - col2 * - CAST ( col2 AS INTEGER ) FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT col1 + 42 * - col2 FROM tab0
----
-1300
-3353
55

query I rowsort
SELECT ( 86 ) * col0 AS col2 FROM tab2
----
602
6708
6794

query I rowsort
SELECT + ( + col0 ) + cor0.col1 * + col0 AS col2 FROM tab0 AS cor0
----
2088
3430
8188

query I rowsort
SELECT - 6 * - tab0.col1 FROM tab0
----
516
546
582

query I rowsort
SELECT - 44 * + col1 AS col0 FROM tab0
----
-3784
-4004
-4268

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col1 * col0 * col1 col2 FROM tab2
----
22831
271518
6727

query I rowsort
SELECT - - 27 * col0 FROM tab0 AS cor0
----
2403
648
945

query I rowsort
SELECT ( cor0.col0 ) * 46 + col0 * + cor0.col1 FROM tab1 cor0
----
216
3584
4720

query I rowsort
SELECT - col2 * - col0 * + 40 FROM tab2 AS cor0
----
120080
7560
81120

query I rowsort
SELECT - cor0.col0 + + cor0.col1 AS col0 FROM tab1 AS cor0
----
-54
-67
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 + - 27 col0 FROM tab0 AS cor0
----
59
64
70

query I rowsort
SELECT DISTINCT + + col0 + - col0 + + col1 * col2 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT ALL + + 92 + 23 * col0 + col0 AS col0 FROM tab0 AS cor0
----
2228
668
932

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2878
SELECT DISTINCT + + CAST( NULL AS SIGNED ) + 38 AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2878
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) + 38 AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + - ( 33 ) AS col0 FROM tab0 AS cor0
----
-33
-33
-33

query I rowsort
SELECT ALL + + col0 + - 21 FROM tab2 cor0
----
-14
57
58

query I rowsort
SELECT DISTINCT - 35 + - cor1.col0 * cor1.col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-6119
-6276
-84

query I rowsort
SELECT ALL + col2 * + col1 - + col0 FROM tab0
----
2814
62
7373

query I rowsort
SELECT - + 20 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f1cccb95c90889319e7a51e4ae9475bb

query I rowsort
SELECT 52 + col0 AS col1 FROM tab0
----
141
76
87

onlyif mysql # use DIV operator for integer division
query I rowsort label-2885
SELECT ALL col0 DIV col2 + col1 + + col2 AS col0 FROM tab0
----
119
133
174

skipif mysql # not compatible
query I rowsort label-2885
SELECT ALL col0 / col2 + col1 + + col2 AS col0 FROM tab0
----
119
133
174

query I rowsort
SELECT ALL - ( tab1.col1 * col1 ) + + col2 FROM tab1
----
-43
-622
-73

query I rowsort
SELECT DISTINCT + 25 AS col2 FROM tab0, tab1 AS cor0
----
25

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2888
SELECT ALL CAST( 82 AS SIGNED ) + - tab0.col1 + col0 * - col0 * + col2 AS col0 FROM tab0
----
-1240
-19012
-649531

skipif mysql # not compatible
query I rowsort label-2888
SELECT ALL CAST ( 82 AS INTEGER ) + - tab0.col1 + col0 * - col0 * + col2 AS col0 FROM tab0
----
-1240
-19012
-649531

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2889
SELECT DISTINCT + CAST( 92 AS SIGNED ) FROM tab0 AS cor0
----
92

skipif mysql # not compatible
query I rowsort label-2889
SELECT DISTINCT + CAST ( 92 AS INTEGER ) FROM tab0 AS cor0
----
92

query I rowsort
SELECT ALL - ( + 88 ) * col0 FROM tab2 AS cor0
----
-616
-6864
-6952

query I rowsort
SELECT ALL + col2 * 66 * tab2.col2 + - col0 FROM tab2
----
44538
48107
95225

query I rowsort
SELECT ALL + 42 AS col2 FROM tab2
----
42
42
42

query I rowsort
SELECT + tab1.col0 - - col1 AS col0 FROM tab1
----
29
74
93

query I rowsort
SELECT DISTINCT + tab1.col1 * - tab1.col0 AS col2 FROM tab1
----
-1040
-640
-78

onlyif mysql # use DIV operator for integer division
query I rowsort label-2895
SELECT - col2 * col2 DIV ( 33 ) + + col1 * - col2 FROM tab1
----
-1492
-1527
-668

skipif mysql # not compatible
query I rowsort label-2895
SELECT - col2 * col2 / ( 33 ) + + col1 * - col2 FROM tab1
----
-1492
-1527
-668

query I rowsort
SELECT DISTINCT - 29 * col1 AS col1 FROM tab1
----
-290
-377
-754

query I rowsort
SELECT + col0 * ( col2 * + col1 ) + + col0 + + col1 FROM tab2
----
119789
51130
5897

query I rowsort
SELECT + - col2 + cor0.col2 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT + cor0.col0 - cor0.col0 AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + col0 * - 27 + - col1 AS col0 FROM tab1 AS cor0
----
-107
-1738
-2173

query I rowsort
SELECT - cor0.col2 + ( - cor0.col0 ) AS col0 FROM tab2 AS cor0
----
-104
-117
-34

query I rowsort
SELECT - - col0 - - col0 AS col0 FROM tab2 cor0
----
14
156
158

query I rowsort
SELECT col1 + col2 * - col2 AS col2 FROM tab0 AS cor0
----
-1003
-6633
96

query I rowsort
SELECT ALL + + col2 * - ( col2 * col0 ) FROM tab2 AS cor0
----
-114076
-5103
-52728

query I rowsort
SELECT - + col2 * - col2 AS col0 FROM tab2 cor0
----
1444
676
729

query I rowsort
SELECT ALL - col2 + - ( - 15 + - cor0.col2 * col1 ) FROM tab2 AS cor0
----
1523
623
825

query I rowsort
SELECT ALL - col1 * col0 - - col1 FROM tab1 cor0
----
-1027
-52
-630

query I rowsort
SELECT + col1 + + ( - col0 + col0 ) FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT ALL - col2 - 94 AS col1 FROM tab1 cor0
----
-148
-151
-190

query I rowsort
SELECT + col1 - + 31 * + col1 * col1 AS col1 FROM tab0 AS cor0
----
-229190
-256620
-291582

query I rowsort
SELECT ALL + col1 + ( cor0.col1 + - col1 ) FROM tab2 AS cor0
----
17
31
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 + - col2 col1 FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT ALL col0 + col1 * + cor0.col1 FROM tab1 cor0
----
164
249
679

query I rowsort
SELECT DISTINCT - col2 * + col2 + - col1 FROM tab1 AS cor0
----
-2942
-3259
-9229

onlyif mysql # use DIV operator for integer division
query I rowsort label-2915
SELECT - cor0.col0 DIV - col2 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2915
SELECT - cor0.col0 / - col2 FROM tab1 AS cor0
----
0
0
1

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL = col1 AND NOT + col1 * col2 - col1 IN ( col1 * + tab1.col2 )
----

query I rowsort
SELECT ALL - col2 * - col1 * + col1 AS col2 FROM tab0
----
244068
679042
9409

query I rowsort
SELECT + - col2 - col1 * - col0 AS col1 FROM tab0 cor0
----
2031
3394
8017

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 - - col0 col1 FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT + cor0.col1 + + col0 AS col0 FROM tab2 cor0
----
137
38
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-2921
SELECT col2 * + col2 + + cor0.col1 * col0 - col2 * col1 DIV cor0.col1 FROM tab1 AS cor0
----
10160
2940
3832

skipif mysql # not compatible
query I rowsort label-2921
SELECT col2 * + col2 + + cor0.col1 * col0 - col2 * col1 / cor0.col1 FROM tab1 AS cor0
----
10160
2940
3832

query I rowsort
SELECT DISTINCT col2 * col1 * + cor0.col1 FROM tab2 AS cor0
----
10982
25947
90506

onlyif mysql # use DIV operator for integer division
query I rowsort label-2923
SELECT col1 - - col2 DIV cor0.col1 FROM tab0 cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-2923
SELECT col1 - - col2 / cor0.col1 FROM tab0 cor0
----
86
91
97

query I rowsort
SELECT DISTINCT col0 * col1 + cor0.col0 - cor0.col2 AS col0 FROM tab2 AS cor0
----
1384
197
4654

query I rowsort
SELECT DISTINCT + - cor0.col0 + - col2 + col2 * - cor0.col0 AS col1 FROM tab1 AS cor0
----
-219
-3769
-7856

query I rowsort
SELECT + col2 + - tab2.col0 - + tab2.col0 FROM tab2
----
-120
-130
13

query I rowsort
SELECT DISTINCT - col1 + + col2 + col2 * col2 FROM tab0
----
-95
1036
6715

query I rowsort
SELECT col0 * - col2 + + col0 AS col2 FROM tab2 cor0
----
-182
-1950
-2923

query I rowsort
SELECT - col0 - + col1 * col1 AS col1 FROM tab2 cor0
----
-3559
-368
-968

onlyif mysql # use DIV operator for integer division
query I rowsort label-2930
SELECT ALL - cor0.col1 DIV col1 AS col2 FROM tab1 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2930
SELECT ALL - cor0.col1 / col1 AS col2 FROM tab1 cor0
----
-1
-1
-1

onlyif mysql # use DIV operator for integer division
query I rowsort label-2931
SELECT - col2 * col1 + col2 DIV - col2 FROM tab0 cor0
----
-2839
-7463
-98

skipif mysql # not compatible
query I rowsort label-2931
SELECT - col2 * col1 + col2 / - col2 FROM tab0 cor0
----
-2839
-7463
-98

query I rowsort
SELECT DISTINCT 7 + col1 * - col1 FROM tab1 AS cor0
----
-162
-669
-93

query I rowsort
SELECT DISTINCT - col2 * cor0.col2 * - col0 AS col2 FROM tab0 AS cor0
----
26136
35
598436

query I rowsort
SELECT ALL + 54 AS col1 FROM tab1 cor0
----
54
54
54

query I rowsort
SELECT DISTINCT ( col2 ) * col1 + col1 FROM tab1 AS cor0
----
1261
1430
580

onlyif mysql # use DIV operator for integer division
query I rowsort label-2936
SELECT ALL 29 DIV - col0 col2 FROM tab1 cor0
----
-9
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2936
SELECT ALL 29 / - col0 col2 FROM tab1 cor0
----
-9
0
0

query I rowsort
SELECT + 55 * col2 + - col1 AS col2 FROM tab1 AS cor0
----
2944
3125
5267

query I rowsort
SELECT ALL - + col2 * - col0 + - col2 FROM tab0 AS cor0
----
34
7216
759

query I rowsort
SELECT DISTINCT + + 10 + col2 * col2 AS col1 FROM tab1 AS cor0
----
2926
3259
9226

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 47 col0 FROM tab2 AS cor0
----
-47

query I rowsort
SELECT DISTINCT - 94 * - col1 FROM tab0 AS cor0
----
8084
8554
9118

query I rowsort
SELECT + col1 * - tab1.col2 + tab1.col2 AS col2 FROM tab1
----
-1152
-1350
-513

onlyif mysql # use DIV operator for integer division
query I rowsort label-2943
SELECT DISTINCT col1 DIV - cor0.col2 + cor0.col2 FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-2943
SELECT DISTINCT col1 / - cor0.col2 + cor0.col2 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT ALL - tab0.col2 * col2 AS col2 FROM tab0
----
-1
-1089
-6724

query I rowsort
SELECT + cor0.col2 * cor1.col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e15c44d5a431966f2851e6bf4041b374

query I rowsort
SELECT col2 + + col2 * col2 AS col2 FROM tab2
----
1482
702
756

query I rowsort
SELECT + ( col2 * tab0.col0 + tab0.col1 ) AS col0 FROM tab0
----
132
7389
878

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2948
SELECT - CAST( NULL AS SIGNED ) FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-2948
SELECT - CAST ( NULL AS INTEGER ) FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT ( + col2 * col0 ) AS col1 FROM tab1
----
162
3648
7680

query I rowsort
SELECT ALL ( col1 ) * + col1 FROM tab0
----
7396
8281
9409

query I rowsort
SELECT 10 * - col1 AS col1 FROM tab2 AS cor0
----
-170
-310
-590

query I rowsort
SELECT 12 * - cor0.col0 - - ( - col2 ) AS col2 FROM tab1 AS cor0
----
-1056
-825
-90

query I rowsort
SELECT ALL + 32 - col2 AS col1 FROM tab0
----
-1
-50
31

query I rowsort
SELECT DISTINCT - col0 * 5 AS col1 FROM tab2 AS cor0
----
-35
-390
-395

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2955
SELECT DISTINCT col0 * + CAST( col0 AS SIGNED ) FROM tab0 cor0
----
1225
576
7921

skipif mysql # not compatible
query I rowsort label-2955
SELECT DISTINCT col0 * + CAST ( col0 AS INTEGER ) FROM tab0 cor0
----
1225
576
7921

query I rowsort
SELECT DISTINCT + col1 * 90 FROM tab1 cor0
----
1170
2340
900

query I rowsort
SELECT - col0 + - 29 * ( + cor0.col2 ) FROM tab0 AS cor0
----
-2467
-64
-981

query I rowsort
SELECT + col0 * 95 AS col2 FROM tab0 cor0
----
2280
3325
8455

query I rowsort
SELECT - + col2 + col2 * cor0.col2 FROM tab2 AS cor0
----
1406
650
702

query I rowsort
SELECT col2 * - ( col2 * + 98 ) AS col2 FROM tab1 AS cor0
----
-285768
-318402
-903168

query I rowsort
SELECT - + 88 * + col1 FROM tab2 cor0
----
-1496
-2728
-5192

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( col1 ) * col1 col0 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT DISTINCT col1 + 69 * - col2 * - col2 FROM tab0
----
166
464047
75227

query I rowsort
SELECT 5 - col0 FROM tab2
----
-2
-73
-74

query I rowsort
SELECT - 93 + col0 + col2 * - col0 * 61 FROM tab2 cor0
----
-11615
-123723
-183136

query I rowsort
SELECT ALL - col2 + col1 + col2 FROM tab1 AS cor0
----
10
13
26

onlyif mysql # use DIV operator for integer division
query I rowsort label-2967
SELECT DISTINCT - cor0.col0 * + col2 + + 68 DIV + 65 AS col0 FROM tab2 AS cor0
----
-188
-2027
-3001

skipif mysql # not compatible
query I rowsort label-2967
SELECT DISTINCT - cor0.col0 * + col2 + + 68 / + 65 AS col0 FROM tab2 AS cor0
----
-188
-2027
-3001

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 87 col0 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
87

query I rowsort
SELECT ALL + col0 * col1 - + col0 * col0 * col2 FROM tab1 AS cor0
----
-232832
-408
-613360

query I rowsort
SELECT + - cor0.col2 + - col0 AS col0 FROM tab0 AS cor0
----
-171
-36
-57

query I rowsort
SELECT DISTINCT - 5 AS col0 FROM tab2, tab0 cor0, tab1 AS cor1
----
-5

query I rowsort
SELECT col2 * + col2 * 68 AS col0 FROM tab0 cor0
----
457232
68
74052

query I rowsort
SELECT col0 * - 72 AS col0 FROM tab0 cor0
----
-1728
-2520
-6408

query I rowsort
SELECT DISTINCT + cor0.col2 AS col0 FROM tab0, tab0 AS cor0, tab1 AS cor1, tab1, tab0 AS cor2
----
1
33
82

query I rowsort
SELECT + + col2 + 51 AS col1 FROM tab0 AS cor0
----
133
52
84

query I rowsort
SELECT DISTINCT 15 AS col0 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + cor0.col1 * + col1 + 15 * + col0 * - col1 col0 FROM tab1 AS cor0
----
-15769
-1846
-9700

query I rowsort
SELECT ALL - - col2 + + 25 AS col2 FROM tab1 AS cor0
----
121
79
82

query I rowsort
SELECT - tab2.col2 * + 81 AS col0 FROM tab2
----
-2106
-2187
-3078

query I rowsort
SELECT DISTINCT - ( ( - tab2.col2 ) + + 72 ) * 96 AS col0 FROM tab2, tab1 AS cor0
----
-3264
-4320
-4416

query I rowsort
SELECT + + ( - col1 ) AS col0 FROM tab0 AS cor0
----
-86
-91
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + col1 ) + col1 col2 FROM tab1 cor0
----
20
26
52

query I rowsort
SELECT DISTINCT 11 + 7 FROM tab2 AS cor0
----
18

query I rowsort
SELECT + - ( + col1 ) + + col1 * - col1 AS col1 FROM tab1 AS cor0
----
-110
-182
-702

query I rowsort
SELECT ALL + 22 + - 7 FROM tab0 cor0
----
15
15
15

query I rowsort
SELECT DISTINCT - 94 FROM tab0, tab1 AS cor0
----
-94

query I rowsort
SELECT - col0 * - 75 * col1 + col1 * + col0 FROM tab0
----
156864
258020
615524

query I rowsort
SELECT ALL - col1 + - 48 AS col0 FROM tab1
----
-58
-61
-74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + 29 * col1 col1 FROM tab1
----
-16530
-36192
-40716

query I rowsort
SELECT DISTINCT + col1 * 24 FROM tab0
----
2064
2184
2328

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2991
SELECT + col2 * CAST( 24 AS SIGNED ) col0 FROM tab1
----
1296
1368
2304

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2991
SELECT + col2 * CAST ( 24 AS INTEGER ) col0 FROM tab1
----
1296
1368
2304

query I rowsort
SELECT ALL + 78 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to d8e5ef4db3419fc251e82c50ba04e048

query I rowsort
SELECT + - 23 FROM tab0, tab0 AS cor0, tab2 AS cor1, tab2, tab2 AS cor2
----
243 values hashing to ef919ea6037591a6f09aab2a0b91bc31

onlyif mysql # use DIV operator for integer division
query I rowsort label-2994
SELECT - col1 DIV cor0.col2 FROM tab0 cor0
----
-1
-2
-97

skipif mysql # not compatible
query I rowsort label-2994
SELECT - col1 / cor0.col2 FROM tab0 cor0
----
-1
-2
-97

query I rowsort
SELECT DISTINCT - - col1 * 47 AS col2 FROM tab1 AS cor0
----
1222
470
611

query I rowsort
SELECT ALL - 35 FROM tab0, tab2 cor0
----
9 values hashing to c12e8bdd687c9040a5600dab3b6adf5b

query I rowsort
SELECT cor1.col1 * + cor1.col1 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 11afcae511dc5af9fcc80b9c18958911

query I rowsort
SELECT - col0 * + 90 + col1 * col0 - + col1 * col1 FROM tab1 AS cor0
----
-5220
-6329
-868

query I rowsort
SELECT ALL + col2 * - ( + 55 ) AS col0 FROM tab1 AS cor0
----
-2970
-3135
-5280

query I rowsort
SELECT DISTINCT - cor0.col2 + - cor0.col1 AS col0 FROM tab2 cor0
----
-55
-58
-85

query I rowsort
SELECT DISTINCT - col2 + col0 + col0 AS col2 FROM tab1 cor0
----
-48
64
71

query I rowsort
SELECT + + col2 * + 90 FROM tab0 AS cor0
----
2970
7380
90

query I rowsort
SELECT - + 62 * col0 * - col2 FROM tab2 AS cor0
----
11718
125736
186124

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 - + 25 col1 FROM tab2
----
-8
34
6

query I rowsort
SELECT ALL - col1 * col1 + col1 FROM tab1 cor0
----
-156
-650
-90

query I rowsort
SELECT - 11 * col0 FROM tab0 AS cor0
----
-264
-385
-979

onlyif mysql # use DIV operator for integer division
query I rowsort label-3007
SELECT - col1 * - ( col2 ) + + ( - col1 ) DIV - col1 + - 19 * col1 FROM tab2 AS cor0
----
249
324
414

skipif mysql # not compatible
query I rowsort label-3007
SELECT - col1 * - ( col2 ) + + ( - col1 ) / - col1 + - 19 * col1 FROM tab2 AS cor0
----
249
324
414

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * col2 col0 FROM tab1 AS cor0
----
-162
-3648
-7680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3009
SELECT ALL + CAST( col1 AS SIGNED ) col1 FROM tab2 AS cor0
----
17
31
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3009
SELECT ALL + CAST ( col1 AS INTEGER ) col1 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT ALL col0 + - 11 AS col2 FROM tab0
----
13
24
78

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3011
SELECT col2 * CAST( 51 * col0 AS SIGNED ) FROM tab1
----
186048
391680
8262

skipif mysql # not compatible
query I rowsort label-3011
SELECT col2 * CAST ( 51 * col0 AS INTEGER ) FROM tab1
----
186048
391680
8262

query I rowsort
SELECT DISTINCT + col2 + + col2 * - col1 * col2 FROM tab1
----
-119712
-32433
-75762

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 + - col1 col1 FROM tab0 AS cor0
----
-110
-132
-180

query I rowsort
SELECT DISTINCT + ( + col1 ) + 91 AS col2 FROM tab1 AS cor0
----
101
104
117

onlyif mysql # use DIV operator for integer division
query I rowsort label-3015
SELECT DISTINCT col0 DIV - col0 - - col1 DIV - 21 FROM tab2 AS cor0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-3015
SELECT DISTINCT col0 / - col0 - - col1 / - 21 FROM tab2 AS cor0
----
-1
-2
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 42 * col2 col0 FROM tab2 AS cor0
----
1092
1134
1596

query I rowsort
SELECT ALL - ( col1 ) + + col0 * + col1 AS col2 FROM tab0 AS cor0
----
1978
3298
8008

query I rowsort
SELECT ALL - 23 + cor0.col0 - - col1 AS col1 FROM tab0 AS cor0
----
109
157
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * cor0.col1 + - col0 + + cor0.col1 col1 FROM tab0 AS cor0
----
159
2900
7464

query I rowsort
SELECT ALL + - col0 + + col2 + col0 * - col0 FROM tab2 cor0
----
-29
-6136
-6282

query I rowsort
SELECT ALL + 22 FROM tab2, tab0, tab1 AS cor0, tab1
----
81 values hashing to c6f049334398e3533dd6996714479a2f

query I rowsort
SELECT tab2.col2 * + ( - tab2.col0 ) FROM tab2
----
-189
-2028
-3002

query I rowsort
SELECT ALL - 83 + col2 AS col1 FROM tab0 AS cor0
----
-1
-50
-82

query I rowsort
SELECT + - 2 FROM tab2 cor0
----
-2
-2
-2

onlyif mysql # use DIV operator for integer division
query I rowsort label-3025
SELECT ALL + 49 DIV cor0.col1 - + ( + col2 ) FROM tab2 AS cor0
----
-26
-26
-36

skipif mysql # not compatible
query I rowsort label-3025
SELECT ALL + 49 / cor0.col1 - + ( + col2 ) FROM tab2 AS cor0
----
-26
-26
-36

query I rowsort
SELECT - 58 - col0 FROM tab1
----
-122
-138
-61

query I rowsort
SELECT - 10 + - col1 FROM tab2
----
-27
-41
-69

query I rowsort
SELECT + ( col0 * col1 ) + - 15 FROM tab0
----
2049
3380
8084

onlyif mysql # use DIV operator for integer division
query I rowsort label-3029
SELECT DISTINCT + col2 * col2 DIV col2 AS col0 FROM tab1
----
54
57
96

skipif mysql # not compatible
query I rowsort label-3029
SELECT DISTINCT + col2 * col2 / col2 AS col0 FROM tab1
----
54
57
96

query I rowsort
SELECT ALL tab0.col0 AS col0 FROM tab0, tab2 cor0, tab2 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

onlyif mysql # use DIV operator for integer division
query I rowsort label-3031
SELECT ALL - col1 + col0 DIV 55 FROM tab2 AS cor0
----
-16
-31
-58

skipif mysql # not compatible
query I rowsort label-3031
SELECT ALL - col1 + col0 / 55 FROM tab2 AS cor0
----
-16
-31
-58

query I rowsort
SELECT col0 + 25 AS col0 FROM tab0 cor0
----
114
49
60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + col2 - col2 col2 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT ALL + + col0 + + 70 FROM tab0 AS cor0
----
105
159
94

query I rowsort
SELECT ALL col2 * 11 + - col2 AS col1 FROM tab2 AS cor0
----
260
270
380

query I rowsort
SELECT DISTINCT - col0 * col2 - col0 * + col0 * + col2 FROM tab2 AS cor0
----
-1512
-160212
-240160

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3037
SELECT DISTINCT - col2 / + CAST( NULL AS SIGNED ) + ( col2 ) - ( col2 ) col0 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3037
SELECT DISTINCT - col2 / + CAST ( NULL AS INTEGER ) + ( col2 ) - ( col2 ) col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3038
SELECT ALL + + col1 * ( cor0.col0 ) + - col1 DIV cor0.col2 FROM tab0 AS cor0
----
2062
3298
8098

skipif mysql # not compatible
query I rowsort label-3038
SELECT ALL + + col1 * ( cor0.col0 ) + - col1 / cor0.col2 FROM tab0 AS cor0
----
2062
3298
8098

query I rowsort
SELECT + ( col1 ) + - col1 + ( col0 ) FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT DISTINCT + col0 * col0 * - col0 FROM tab1 AS cor0
----
-262144
-27
-512000

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + cor0.col0 * + 30 col0 FROM tab0 AS cor0
----
-1050
-2670
-720

query I rowsort
SELECT - col2 * + col2 * + col2 AS col2 FROM tab2 AS cor0
----
-17576
-19683
-54872

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * ( + col0 ) + + cor0.col1 col1 FROM tab1 cor0
----
35
4106
6413

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3044
SELECT + CAST( NULL AS SIGNED ) + col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3044
SELECT + CAST ( NULL AS INTEGER ) + col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 57 * cor0.col1 * - col2 FROM tab0 AS cor0
----
-161766
-425334
-5529

onlyif mysql # use DIV operator for integer division
query I rowsort label-3046
SELECT ALL + col2 + + col1 DIV - col1 AS col1 FROM tab2 AS cor0
----
25
26
37

skipif mysql # not compatible
query I rowsort label-3046
SELECT ALL + col2 + + col1 / - col1 AS col1 FROM tab2 AS cor0
----
25
26
37

query I rowsort
SELECT DISTINCT + - 59 FROM tab2 AS cor0
----
-59

query I rowsort
SELECT + - col2 * 37 + col0 * - col1 + col1 AS col2 FROM tab1 AS cor0
----
-2050
-2739
-4579

query I rowsort
SELECT ALL + 19 - col1 FROM tab2 cor0
----
-12
-40
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 23 * col2 col1 FROM tab1 AS cor0
----
-1242
-1311
-2208

query I rowsort
SELECT ALL - - col1 * - col1 AS col0 FROM tab2 cor0
----
-289
-3481
-961

query I rowsort
SELECT DISTINCT col2 * cor0.col0 + col1 * 22 AS col2 FROM tab1 AS cor0
----
3868
734
7966

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab2 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab1 AS cor2
----
3645 values hashing to fc7c00509fb9d4b8a5290fa6926cc518

onlyif mysql # use DIV operator for integer division
query I rowsort label-3054
SELECT tab0.col2 DIV 93 + col0 FROM tab0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-3054
SELECT tab0.col2 / 93 + col0 FROM tab0
----
24
35
89

query I rowsort
SELECT + - ( col0 ) * + col1 + 49 * - col2 + 32 FROM tab1 AS cor0
----
-2692
-3401
-5712

query III rowsort
SELECT ALL * FROM tab0 WHERE + col0 <> - col0
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

query I rowsort
SELECT tab2.col2 + - tab2.col2 AS col0 FROM tab2
----
0
0
0

query I rowsort
SELECT + + cor0.col0 + + cor0.col0 AS col2 FROM tab1 AS cor0
----
128
160
6

query I rowsort
SELECT DISTINCT 45 + - col1 AS col0 FROM tab1 AS cor0
----
19
32
35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + col0 * col1 * - col0 col1 FROM tab2
----
-106018
-1512
-358878

query I rowsort
SELECT ALL col0 + + tab0.col1 AS col1 FROM tab0 WHERE NOT NULL < NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-3062
SELECT + col0 - col2 DIV + col0 FROM tab0
----
23
35
89

skipif mysql # not compatible
query I rowsort label-3062
SELECT + col0 - col2 / + col0 FROM tab0
----
23
35
89

query I rowsort
SELECT DISTINCT col2 * col2 AS col0 FROM tab1 WHERE NOT ( NULL ) >= NULL
----

query I rowsort
SELECT ALL col2 - - tab1.col2 * - col2 AS col1 FROM tab1
----
-2862
-3192
-9120

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col1 + - col0 + + tab2.col1 col1 FROM tab2
----
-45
40
55

query III rowsort
SELECT * FROM tab0 WHERE ( col0 ) NOT IN ( - tab0.col0 + - col2 * col2 - col1 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

query I rowsort
SELECT DISTINCT col0 - tab1.col0 FROM tab1
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3068
SELECT col0 + col0 DIV col0 + col1 FROM tab2
----
138
39
97

skipif mysql # not compatible
query I rowsort label-3068
SELECT col0 + col0 / col0 + col1 FROM tab2
----
138
39
97

query I rowsort
SELECT col1 + col1 * cor0.col2 AS col2 FROM tab0 AS cor0
----
194
2924
7553

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN + col2 * - col1 AND col2 + col1
----

query I rowsort
SELECT ALL - col1 * col1 * + col0 AS col2 FROM tab1
----
-13520
-2028
-6400

onlyif mysql # use DIV operator for integer division
query I rowsort label-3072
SELECT - col0 * col2 DIV + col1 FROM tab2
----
-176
-34
-6

skipif mysql # not compatible
query I rowsort label-3072
SELECT - col0 * col2 / + col1 FROM tab2
----
-176
-34
-6

query I rowsort
SELECT + col2 + + tab2.col1 * col1 AS col2 FROM tab2
----
327
3507
988

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL IN ( - col1 + col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NULL ) NOT BETWEEN - col1 + col2 + - col1 AND ( NULL )
----

query I rowsort
SELECT ALL - col2 + - col0 * - col1 FROM tab1
----
24
583
944

query I rowsort
SELECT cor0.col0 FROM tab0 AS cor0 WHERE ( col0 ) IN ( cor0.col2 )
----

query I rowsort
SELECT DISTINCT col0 + col2 * + col0 AS col1 FROM tab2 AS cor0
----
196
2106
3081

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col2 * - col2 col2 FROM tab0 AS cor0
----
-26136
-35
-598436

query I rowsort
SELECT ALL - col1 * col1 + + tab1.col2 AS col2 FROM tab1
----
-43
-622
-73

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3081
SELECT 81 + col1 * - col0 * CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3081
SELECT 81 + col1 * - col0 * CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - - 51 * - 0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT - 14 * col2 * + col1 AS col1 FROM tab1 AS cor0
----
-17472
-19656
-7980

query I rowsort
SELECT DISTINCT - 30 * + col0 * - 65 AS col1 FROM tab2
----
13650
152100
154050

query I rowsort
SELECT + 4 + col1 FROM tab2 cor0
----
21
35
63

query I rowsort
SELECT + cor0.col2 - - col2 AS col2 FROM tab1 AS cor0
----
108
114
192

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3087
SELECT + col0 * CAST( col2 * col0 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
233472
486
614400

skipif mysql # not compatible
query I rowsort label-3087
SELECT + col0 * CAST ( col2 * col0 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
233472
486
614400

query I rowsort
SELECT DISTINCT - cor0.col2 * col1 + 92 AS col2 FROM tab2 cor0
----
-1442
-554
-745

query I rowsort
SELECT ALL col1 + col1 * 7 * + col2 AS col1 FROM tab0 AS cor0
----
19952
52325
776

query I rowsort
SELECT col1 - ( + 4 ) AS col1 FROM tab1 AS cor0
----
22
6
9

query I rowsort
SELECT cor0.col0 - ( cor0.col1 ) * - cor0.col1 FROM tab1 AS cor0
----
164
249
679

query I rowsort
SELECT + + cor0.col2 * - col1 * - cor0.col1 AS col2 FROM tab2 AS cor0
----
10982
25947
90506

query I rowsort
SELECT - col0 + 27 AS col2 FROM tab2 AS cor0
----
-51
-52
20

query I rowsort
SELECT DISTINCT - col1 + + col1 * cor0.col0 AS col0 FROM tab1 cor0
----
1027
52
630

onlyif mysql # use DIV operator for integer division
query I rowsort label-3095
SELECT ALL + - col0 DIV + 67 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3095
SELECT ALL + - col0 / + 67 FROM tab1 AS cor0
----
-1
0
0

query I rowsort
SELECT ALL 26 * - col1 AS col0 FROM tab0
----
-2236
-2366
-2522

query I rowsort
SELECT - 47 + 69 FROM tab0
----
22
22
22

onlyif mysql # use DIV operator for integer division
query I rowsort label-3098
SELECT ( 92 ) DIV col1 + - ( + 64 ) AS col0 FROM tab1
----
-55
-57
-61

skipif mysql # not compatible
query I rowsort label-3098
SELECT ( 92 ) / col1 + - ( + 64 ) AS col0 FROM tab1
----
-55
-57
-61

query I rowsort
SELECT DISTINCT - 34 AS col2 FROM tab1
----
-34

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3100
SELECT CAST( 75 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
75
75
75

skipif mysql # not compatible
query I rowsort label-3100
SELECT CAST ( 75 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
75
75
75

query I rowsort
SELECT + 68 * - col0 FROM tab2 AS cor0
----
-476
-5304
-5372

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + 94 * + col2 col2 FROM tab1 AS cor0
----
5102
5368
9037

query I rowsort
SELECT DISTINCT - col0 * - cor0.col0 * + col2 AS col2 FROM tab2 AS cor0
----
1323
158184
237158

query I rowsort
SELECT col1 * 23 * - cor0.col2 FROM tab0 AS cor0
----
-171626
-2231
-65274

query I rowsort
SELECT DISTINCT col0 * col0 * col2 + col0 * col2 FROM tab2 AS cor0
----
1512
160212
240160

query I rowsort
SELECT ALL col1 - cor0.col0 AS col0 FROM tab2 AS cor0
----
-19
-62
24

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3107
SELECT ALL + CAST( 97 AS SIGNED ) FROM tab0, tab2 AS cor0, tab0 AS cor1, tab1, tab1 cor2
----
243 values hashing to 611d3670a56910ef3403752a59daf048

skipif mysql # not compatible
query I rowsort label-3107
SELECT ALL + CAST ( 97 AS INTEGER ) FROM tab0, tab2 AS cor0, tab0 AS cor1, tab1, tab1 cor2
----
243 values hashing to 611d3670a56910ef3403752a59daf048

onlyif mysql # use DIV operator for integer division
query I rowsort label-3108
SELECT DISTINCT 35 DIV + cor0.col0 FROM tab2, tab2 cor0
----
0
5

skipif mysql # not compatible
query I rowsort label-3108
SELECT DISTINCT 35 / + cor0.col0 FROM tab2, tab2 cor0
----
0
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * tab0.col2 + + col2 col1 FROM tab0
----
1122
2
6806

query I rowsort
SELECT DISTINCT - col0 * col0 + col2 FROM tab0 cor0
----
-1224
-543
-7839

query I rowsort
SELECT DISTINCT col1 * col2 - ( col2 ) FROM tab0 cor0
----
2805
7380
96

query I rowsort
SELECT ALL - col2 * - 21 + col2 + - tab0.col2 AS col2 FROM tab0
----
1722
21
693

query I rowsort
SELECT ALL col0 + + ( - col0 ) * col1 * - col2 AS col1 FROM tab1
----
36544
4215
99920

query I rowsort
SELECT DISTINCT 2 * - 25 FROM tab0, tab1, tab0 AS cor0, tab2 AS cor1
----
-50

query I rowsort
SELECT - col2 * + tab2.col1 + col0 * col2 AS col2 FROM tab2
----
-648
2356
494

query I rowsort
SELECT col0 + col2 + - 56 AS col1 FROM tab2 AS cor0
----
-22
48
61

query I rowsort
SELECT - col0 * + col0 * - col0 AS col2 FROM tab1 AS cor0
----
262144
27
512000

query I rowsort
SELECT ALL - + col2 * - 93 FROM tab0 AS cor0
----
3069
7626
93

query I rowsort
SELECT DISTINCT + col0 + + col2 * - 23 AS col2 FROM tab1 AS cor0
----
-1239
-1247
-2128

query I rowsort
SELECT DISTINCT - 81 + - col1 * col0 * col1 AS col2 FROM tab1 AS cor0
----
-13601
-2109
-6481

onlyif mysql # use DIV operator for integer division
query I rowsort label-3121
SELECT DISTINCT col1 DIV col0 + + cor0.col2 AS col1 FROM tab0 AS cor0
----
3
36
83

skipif mysql # not compatible
query I rowsort label-3121
SELECT DISTINCT col1 / col0 + + cor0.col2 AS col1 FROM tab0 AS cor0
----
3
36
83

query I rowsort
SELECT ALL ( 57 ) * col2 FROM tab0 cor0
----
1881
4674
57

skipif mysql # not compatible
query I rowsort
SELECT ALL CAST ( - col0 AS REAL ) AS col1 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT DISTINCT + 83 + cor0.col2 FROM tab2 AS cor0
----
109
110
121

query I rowsort
SELECT DISTINCT - - 40 AS col1 FROM tab0 AS cor0
----
40

query I rowsort
SELECT ALL - 87 * - 6 AS col2 FROM tab0 cor0
----
522
522
522

onlyif mysql # use DIV operator for integer division
query I rowsort label-3127
SELECT - 9 DIV - col1 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3127
SELECT - 9 / - col1 AS col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - ( - col1 ) * - col0 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT DISTINCT + - 3 + - col0 FROM tab0 AS cor0
----
-27
-38
-92

query I rowsort
SELECT ALL - - cor0.col0 * 94 AS col1 FROM tab0 AS cor0
----
2256
3290
8366

query I rowsort
SELECT DISTINCT + + col2 + + col1 * - col2 AS col2 FROM tab1 AS cor0
----
-1152
-1350
-513

query I rowsort
SELECT ALL - tab0.col2 * 61 + col2 FROM tab0
----
-1980
-4920
-60

query I rowsort
SELECT ALL - 2 FROM tab0, tab0 cor0
----
9 values hashing to ec11209ab257030053484fc13a1f6d17

query I rowsort
SELECT ALL col2 + 48 * + col1 FROM tab1
----
1302
537
720

query I rowsort
SELECT DISTINCT + col2 + tab1.col0 * col1 + col1 AS col1 FROM tab1
----
1149
158
707

query I rowsort
SELECT col0 + - col2 * cor0.col0 AS col2 FROM tab1 AS cor0
----
-159
-3584
-7600

query I rowsort
SELECT - 71 + + ( col1 ) AS col0 FROM tab2 AS cor0
----
-12
-40
-54

query I rowsort
SELECT DISTINCT - col2 * + ( col1 ) + + ( + col0 * - col1 ) FROM tab2 AS cor0
----
-1054
-1989
-6136

onlyif mysql # use DIV operator for integer division
query I rowsort label-3139
SELECT DISTINCT col1 DIV - cor0.col2 FROM tab0 cor0
----
-1
-2
-97

skipif mysql # not compatible
query I rowsort label-3139
SELECT DISTINCT col1 / - cor0.col2 FROM tab0 cor0
----
-1
-2
-97

query I rowsort
SELECT + - ( 1 ) + col2 * - 27 AS col0 FROM tab0 AS cor0
----
-2215
-28
-892

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab1.col2 + + col1 col2 FROM tab1
----
109
67
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3142
SELECT + 7 + cor0.col0 * CAST( 34 AS SIGNED ) FROM tab1 cor0
----
109
2183
2727

skipif mysql # not compatible
query I rowsort label-3142
SELECT + 7 + cor0.col0 * CAST ( 34 AS INTEGER ) FROM tab1 cor0
----
109
2183
2727

query I rowsort
SELECT ALL + 7 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 96 col2 FROM tab1, tab1 cor0
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303

query I rowsort
SELECT col2 * + 0 AS col1 FROM tab1
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3146
SELECT ALL + tab1.col2 + CAST( NULL AS SIGNED ) - 74 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-3146
SELECT ALL + tab1.col2 + CAST ( NULL AS INTEGER ) - 74 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

onlyif mysql # use DIV operator for integer division
query I rowsort label-3147
SELECT DISTINCT 21 DIV col1 FROM tab2
----
0
1

skipif mysql # not compatible
query I rowsort label-3147
SELECT DISTINCT 21 / col1 FROM tab2
----
0
1

query I rowsort
SELECT DISTINCT 64 * col2 - col1 AS col1 FROM tab1
----
3430
3638
6131

query I rowsort
SELECT DISTINCT - 62 - col0 * col1 AS col2 FROM tab2
----
-1405
-279
-4664

query I rowsort
SELECT 83 AS col0 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 002a717a3d902d97220759065fb107c3

query I rowsort
SELECT ALL + cor0.col2 * 36 FROM tab2, tab1 AS cor0
----
9 values hashing to bda7d419049fa2a603aa5be7870e857e

onlyif mysql # use DIV operator for integer division
query I rowsort label-3152
SELECT - tab2.col2 DIV - col1 AS col1 FROM tab2
----
0
0
2

skipif mysql # not compatible
query I rowsort label-3152
SELECT - tab2.col2 / - col1 AS col1 FROM tab2
----
0
0
2

query I rowsort
SELECT - 25 + col2 + - col2 FROM tab0
----
-25
-25
-25

query I rowsort
SELECT - col1 + - col0 * col2 AS col2 FROM tab0 AS cor0
----
-132
-7389
-878

query I rowsort
SELECT - + col2 * ( + col0 ) + - col2 FROM tab2 AS cor0
----
-2054
-216
-3040

query I rowsort
SELECT DISTINCT 83 * col2 * 28 + - col0 FROM tab0
----
190479
2289
76668

query I rowsort
SELECT ( + tab1.col2 ) + - 11 + ( col2 ) AS col1 FROM tab1
----
103
181
97

query I rowsort
SELECT DISTINCT col1 * col0 + ( 25 * - col2 ) AS col1 FROM tab2
----
-458
393
3952

query I rowsort
SELECT DISTINCT ( cor0.col0 ) AS col2 FROM tab0, tab2, tab2 cor0
----
7
78
79

query I rowsort
SELECT tab0.col1 * - col2 * + 63 FROM tab0
----
-178794
-470106
-6111

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 49 col1 FROM tab2, tab0 AS cor0
----
9 values hashing to cb40783c0fff72e8802cdf0682e7cb55

query I rowsort
SELECT - col1 + - 83 * + col2 + - col0 AS col2 FROM tab0
----
-215
-2849
-6986

query I rowsort
SELECT - + col2 * 75 + + col1 AS col0 FROM tab1 AS cor0
----
-4024
-4265
-7187

query I rowsort
SELECT DISTINCT + + cor0.col2 + + col1 * - col2 AS col1 FROM tab0 AS cor0
----
-2805
-7380
-96

query I rowsort
SELECT ALL - col1 * - col2 + col0 AS col1 FROM tab0 AS cor0
----
132
2862
7551

query I rowsort
SELECT + cor0.col1 + - 71 FROM tab1 AS cor0
----
-45
-58
-61

query I rowsort
SELECT DISTINCT + col1 * + col1 AS col0 FROM tab1 cor0
----
100
169
676

onlyif mysql # use DIV operator for integer division
query I rowsort label-3168
SELECT - col1 * col0 DIV col0 - col2 FROM tab0 AS cor0
----
-119
-173
-98

skipif mysql # not compatible
query I rowsort label-3168
SELECT - col1 * col0 / col0 - col2 FROM tab0 AS cor0
----
-119
-173
-98

query I rowsort
SELECT ALL + + cor0.col0 * - 28 + col2 FROM tab1 AS cor0
----
-1735
-2144
-30

query I rowsort
SELECT col1 * - tab0.col1 * - col1 FROM tab0
----
636056
753571
912673

query I rowsort
SELECT ALL + 5 * col1 + + 31 FROM tab2
----
116
186
326

query I rowsort
SELECT 77 * - tab2.col2 AS col2 FROM tab2
----
-2002
-2079
-2926

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 99 * col2 + col2 * 96 col1 FROM tab0 AS cor0
----
-246
-3
-99

query I rowsort
SELECT + - col2 * - 14 + + 97 FROM tab1 AS cor0
----
1441
853
895

query I rowsort
SELECT + col2 * + cor0.col1 + - col1 * col1 + + col0 AS col1 FROM tab2 AS cor0
----
-117
-1869
436

query I rowsort
SELECT col0 * - col1 * + 44 AS col1 FROM tab2
----
-202488
-59092
-9548

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3177
SELECT DISTINCT col1 - - CAST( + 50 AS SIGNED ) FROM tab2 AS cor0
----
109
67
81

skipif mysql # not compatible
query I rowsort label-3177
SELECT DISTINCT col1 - - CAST ( + 50 AS INTEGER ) FROM tab2 AS cor0
----
109
67
81

query I rowsort
SELECT DISTINCT - col2 * col0 * + ( col0 ) FROM tab0 AS cor0
----
-1225
-19008
-649522

query I rowsort
SELECT DISTINCT + - col2 * col0 - - col0 FROM tab0 AS cor0
----
-7209
-768
0

query I rowsort
SELECT - - col2 + col1 + + cor0.col1 AS col1 FROM tab0 AS cor0
----
195
205
264

query I rowsort
SELECT - ( 60 ) * col1 + + 58 AS col2 FROM tab2 AS cor0
----
-1802
-3482
-962

query I rowsort
SELECT 7 * - col1 - - col1 AS col2 FROM tab2 cor0
----
-102
-186
-354

query I rowsort
SELECT - + col1 * + 22 - - col1 AS col1 FROM tab2 AS cor0
----
-1239
-357
-651

skipif mysql # not compatible
query I rowsort
SELECT + CAST ( - cor0.col1 AS REAL ) * col0 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT - 74 * col2 FROM tab1 AS cor0
----
-3996
-4218
-7104

query I rowsort
SELECT - col2 * 13 FROM tab2 AS cor0
----
-338
-351
-494

query I rowsort
SELECT ALL - - 89 AS col2 FROM tab2 AS cor0
----
89
89
89

query I rowsort
SELECT - 99 * col2 AS col1 FROM tab2
----
-2574
-2673
-3762

query I rowsort
SELECT 10 * col1 AS col2 FROM tab2
----
170
310
590

query I rowsort
SELECT ALL - 92 AS col1 FROM tab0, tab0 AS cor0 CROSS JOIN tab1 cor1
----
27 values hashing to a0e6b76227d870d10c4d9f46545a7c83

query I rowsort
SELECT DISTINCT + 84 * col0 FROM tab0
----
2016
2940
7476

query I rowsort
SELECT DISTINCT + 32 * ( - col2 ) AS col0 FROM tab1
----
-1728
-1824
-3072

query I rowsort
SELECT - - 91 * col2 AS col0 FROM tab0 AS cor0
----
3003
7462
91

query I rowsort
SELECT cor0.col1 + + cor0.col1 * - ( + col2 ) + + col1 AS col2 FROM tab2 AS cor0
----
-1416
-612
-775

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 40 * cor0.col0 col2 FROM tab1 cor0
----
120
2560
3200

onlyif mysql # use DIV operator for integer division
query I rowsort label-3196
SELECT DISTINCT 96 DIV cor0.col0 FROM tab1 AS cor0
----
1
32

skipif mysql # not compatible
query I rowsort label-3196
SELECT DISTINCT 96 / cor0.col0 FROM tab1 AS cor0
----
1
32

onlyif mysql # use DIV operator for integer division
query I rowsort label-3197
SELECT + + 92 DIV + col0 FROM tab1 AS cor0
----
1
1
30

skipif mysql # not compatible
query I rowsort label-3197
SELECT + + 92 / + col0 FROM tab1 AS cor0
----
1
1
30

query I rowsort
SELECT ALL 66 + col2 AS col2 FROM tab1 AS cor0
----
120
123
162

query I rowsort
SELECT + - 36 AS col2 FROM tab2 AS cor0
----
-36
-36
-36

onlyif mysql # use DIV operator for integer division
query I rowsort label-3200
SELECT + - col0 DIV + col1 - - cor0.col0 AS col1 FROM tab1 AS cor0
----
3
58
74

skipif mysql # not compatible
query I rowsort label-3200
SELECT + - col0 / + col1 - - cor0.col0 AS col1 FROM tab1 AS cor0
----
3
58
74

onlyif mysql # use DIV operator for integer division
query I rowsort label-3201
SELECT ALL 22 DIV - col1 + + col2 FROM tab2 cor0
----
26
27
37

skipif mysql # not compatible
query I rowsort label-3201
SELECT ALL 22 / - col1 + + col2 FROM tab2 cor0
----
26
27
37

query I rowsort
SELECT ALL + col0 * col1 * col1 AS col1 FROM tab1 AS cor0
----
13520
2028
6400

query I rowsort
SELECT DISTINCT + + col0 * - col0 + col0 FROM tab1 AS cor0
----
-4032
-6
-6320

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3204
SELECT + cor0.col1 + + col0 * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3204
SELECT + cor0.col1 + + col0 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 - - col2 * - ( col0 ) FROM tab1 AS cor0
----
-216
-3705
-7776

query I rowsort
SELECT DISTINCT ( col2 ) * - col1 * col0 + col1 FROM tab2 AS cor0
----
-119593
-51017
-5828

query I rowsort
SELECT ALL + col0 + col2 + - col0 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT ( - cor1.col0 ) AS col0 FROM tab0, tab0 AS cor0, tab0 cor1
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8

query I rowsort
SELECT - + col2 * - col1 + 94 FROM tab0 AS cor0
----
191
2932
7556

query I rowsort
SELECT col0 + col1 * - 28 AS col2 FROM tab1 AS cor0
----
-216
-284
-725

query I rowsort
SELECT + ( - cor0.col2 ) * col2 FROM tab1 cor0
----
-2916
-3249
-9216

onlyif mysql # use DIV operator for integer division
query I rowsort label-3212
SELECT DISTINCT col2 DIV cor0.col0 AS col2 FROM tab1 AS cor0
----
0
1
18

skipif mysql # not compatible
query I rowsort label-3212
SELECT DISTINCT col2 / cor0.col0 AS col2 FROM tab1 AS cor0
----
0
1
18

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3213
SELECT CAST( - col2 * col0 AS SIGNED ) + col0 FROM tab1
----
-159
-3584
-7600

skipif mysql # not compatible
query I rowsort label-3213
SELECT CAST ( - col2 * col0 AS INTEGER ) + col0 FROM tab1
----
-159
-3584
-7600

query I rowsort
SELECT ALL + + 87 - - col0 * + col2 FROM tab1 AS cor0
----
249
3735
7767

query I rowsort
SELECT ALL - 46 - col2 * col1 AS col2 FROM tab0 AS cor0
----
-143
-2884
-7508

query I rowsort
SELECT 60 AS col2 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 1d2ab302ae60f95b15e68cf89083b162

query I rowsort
SELECT ALL 66 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 29794915b585eea848ad670075452c88

onlyif mysql # use DIV operator for integer division
query I rowsort label-3218
SELECT DISTINCT - + col2 + ( col0 ) DIV + col1 FROM tab0 AS cor0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-3218
SELECT DISTINCT - + col2 + ( col0 ) / + col1 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT cor0.col2 * cor0.col2 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 8a9dbff4c424879f0bb94abfbb1a134b

query I rowsort
SELECT col1 + + 88 FROM tab0
----
174
179
185

query I rowsort
SELECT - col2 + 91 FROM tab1
----
-5
34
37

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab2 AS cor0, tab2 AS cor1, tab0, tab1 cor2
----
3645 values hashing to d865c68b86e66898eeac28f450e48e70

onlyif mysql # use DIV operator for integer division
query I rowsort label-3223
SELECT - col0 DIV + col1 + col0 FROM tab2
----
7
75
77

skipif mysql # not compatible
query I rowsort label-3223
SELECT - col0 / + col1 + col0 FROM tab2
----
7
75
77

query I rowsort
SELECT DISTINCT - col0 + 3 AS col1 FROM tab0 AS cor0
----
-21
-32
-86

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3225
SELECT ALL + - col1 * CAST( NULL AS DECIMAL ) * 72 + col0 * col1 + 99 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3225
SELECT ALL + - col1 * CAST ( NULL AS REAL ) * 72 + col0 * col1 + 99 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3226
SELECT DISTINCT col1 + CAST( NULL AS SIGNED ) + - col2 * - col2 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3226
SELECT DISTINCT col1 + CAST ( NULL AS INTEGER ) + - col2 * - col2 AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL - col2 * 0 * 84 AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - + col0 * col1 + col1 AS col0 FROM tab1 cor0
----
-1027
-52
-630

query I rowsort
SELECT ALL + + cor0.col0 - col2 AS col0 FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT 82 + - col0 + col2 FROM tab0
----
48
75
91

query I rowsort
SELECT 96 + - col2 + col1 FROM tab0
----
105
149
192

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 26 + + 74 * - col1 - + col0 * + 8 col0 FROM tab2
----
-1864
-2324
-4964

query I rowsort
SELECT - col0 + + col0 * tab0.col2 AS col2 FROM tab0
----
0
7209
768

onlyif mysql # use DIV operator for integer division
query I rowsort label-3234
SELECT ( - col1 ) DIV col0 + tab2.col1 AS col2 FROM tab2
----
17
27
59

skipif mysql # not compatible
query I rowsort label-3234
SELECT ( - col1 ) / col0 + tab2.col1 AS col2 FROM tab2
----
17
27
59

query I rowsort
SELECT 50 * 8 AS col2 FROM tab1 AS cor0
----
400
400
400

query I rowsort
SELECT DISTINCT - + cor0.col1 * + 14 AS col0 FROM tab2 AS cor0
----
-238
-434
-826

query I rowsort
SELECT DISTINCT - + col1 + 27 AS col0 FROM tab2 AS cor0
----
-32
-4
10

onlyif mysql # use DIV operator for integer division
query I rowsort label-3238
SELECT - + ( col1 ) DIV - col1 + 78 * 18 - col0 FROM tab1 AS cor0
----
1325
1341
1402

skipif mysql # not compatible
query I rowsort label-3238
SELECT - + ( col1 ) / - col1 + 78 * 18 - col0 FROM tab1 AS cor0
----
1325
1341
1402

query I rowsort
SELECT DISTINCT - - col2 - - cor0.col1 AS col0 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT - 78 * cor0.col2 + - col2 AS col0 FROM tab2 AS cor0
----
-2054
-2133
-3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-3241
SELECT ALL cor0.col1 DIV col2 + ( col0 ) AS col0 FROM tab0 AS cor0
----
132
26
90

skipif mysql # not compatible
query I rowsort label-3241
SELECT ALL cor0.col1 / col2 + ( col0 ) AS col0 FROM tab0 AS cor0
----
132
26
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 * - col2 - - 60 col1 FROM tab2 AS cor0
----
-1474
-586
-777

query I rowsort
SELECT - col1 + col0 * 41 * - 26 FROM tab1 cor0
----
-3224
-68234
-85293

onlyif mysql # use DIV operator for integer division
query I rowsort label-3244
SELECT ALL + 9 + col0 DIV - col2 FROM tab0 AS cor0
----
-26
8
9

skipif mysql # not compatible
query I rowsort label-3244
SELECT ALL + 9 + col0 / - col2 FROM tab0 AS cor0
----
-26
8
9

query I rowsort
SELECT DISTINCT + + 42 * col0 FROM tab0 cor0
----
1008
1470
3738

onlyif mysql # use DIV operator for integer division
query I rowsort label-3246
SELECT + + cor0.col0 DIV col0 + - ( - col0 ) * col2 FROM tab0 AS cor0
----
36
7299
793

skipif mysql # not compatible
query I rowsort label-3246
SELECT + + cor0.col0 / col0 + - ( - col0 ) * col2 FROM tab0 AS cor0
----
36
7299
793

query I rowsort
SELECT + 66 + + cor0.col2 FROM tab0 AS cor0
----
148
67
99

onlyif mysql # use DIV operator for integer division
query I rowsort label-3248
SELECT DISTINCT + 1 + - 13 DIV col0 - - col2 DIV - col0 AS col1 FROM tab0
----
0
1

skipif mysql # not compatible
query I rowsort label-3248
SELECT DISTINCT + 1 + - 13 / col0 - - col2 / - col0 AS col1 FROM tab0
----
0
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-3249
SELECT tab0.col2 - 0 DIV col2 FROM tab0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-3249
SELECT tab0.col2 - 0 / col2 FROM tab0
----
1
33
82

query I rowsort
SELECT DISTINCT - col0 + - col1 * 50 * - col0 AS col2 FROM tab0 AS cor0
----
103176
169715
404861

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col2 ) + - col0 col0 FROM tab1 AS cor0
----
-121
-176
-57

query I rowsort
SELECT DISTINCT col0 + cor0.col0 * col2 AS col2 FROM tab2 AS cor0
----
196
2106
3081

query I rowsort
SELECT col2 * col0 + - cor0.col1 AS col0 FROM tab2 AS cor0
----
158
1969
2985

query I rowsort
SELECT 76 * cor0.col0 FROM tab1 AS cor0
----
228
4864
6080

query I rowsort
SELECT + cor0.col0 * 86 - cor0.col2 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 6251cf421e72cfd414dc5032e0e745d0

query I rowsort
SELECT ALL - + 99 FROM tab2, tab2 AS cor0
----
9 values hashing to 64d06513850a26495bc6c2fddeb254b7

query I rowsort
SELECT 41 + - col0 * 47 AS col2 FROM tab2 AS cor0
----
-288
-3625
-3672

query I rowsort
SELECT - col1 - + col1 * + 87 FROM tab1 AS cor0
----
-1144
-2288
-880

onlyif mysql # use DIV operator for integer division
query I rowsort label-3259
SELECT ALL - ( + col0 ) DIV col0 AS col1 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3259
SELECT ALL - ( + col0 ) / col0 AS col1 FROM tab2 AS cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT + 24 * col1 + + col0 FROM tab1 AS cor0
----
304
392
627

query I rowsort
SELECT ALL 69 + - col0 * - col0 FROM tab1 cor0
----
4165
6469
78

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3262
SELECT - col0 * - CAST( + col2 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
189
2028
3002

skipif mysql # not compatible
query I rowsort label-3262
SELECT - col0 * - CAST ( + col2 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT - col0 * + col0 + + 48 AS col1 FROM tab1 AS cor0
----
-4048
-6352
39

query I rowsort
SELECT col1 + ( + col1 ) FROM tab2 AS cor0
----
118
34
62

query I rowsort
SELECT - col2 + + cor0.col2 AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT col0 * col1 + - 81 FROM tab0
----
1983
3314
8018

query I rowsort
SELECT ALL + 44 * - col2 + ( - col2 ) AS col1 FROM tab0
----
-1485
-3690
-45

query I rowsort
SELECT col0 + - 94 * col1 AS col2 FROM tab1 AS cor0
----
-1142
-2441
-876

query I rowsort
SELECT DISTINCT + col2 * ( cor0.col1 ) FROM tab0 AS cor0
----
2838
7462
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + col1 ) col2 FROM tab1 cor0
----
-10
-13
-26

query I rowsort
SELECT ALL col0 * - ( - col1 ) * - ( col0 ) FROM tab1 AS cor0
----
-234
-40960
-83200

query I rowsort
SELECT - 21 + ( + col0 ) FROM tab1 AS cor0
----
-18
43
59

query I rowsort
SELECT ALL - col0 * col0 * + col2 + col2 AS col1 FROM tab0 cor0
----
-1224
-18975
-649440

query I rowsort
SELECT DISTINCT - + ( col0 ) * col1 + - 57 - - col0 AS col2 FROM tab2 AS cor0
----
-1321
-267
-4581

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3275
SELECT DISTINCT - CAST( cor0.col1 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-3275
SELECT DISTINCT - CAST ( cor0.col1 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT DISTINCT col0 * - 51 + - col2 * col0 * col1 AS col2 FROM tab1 AS cor0
----
-103920
-39744
-4365

onlyif mysql # use DIV operator for integer division
query I rowsort label-3277
SELECT 97 * col2 DIV col2 FROM tab0 AS cor0
----
97
97
97

skipif mysql # not compatible
query I rowsort label-3277
SELECT 97 * col2 / col2 FROM tab0 AS cor0
----
97
97
97

query I rowsort
SELECT ALL - 15 * ( col1 ) + + col2 AS col1 FROM tab1 AS cor0
----
-336
-93
-99

query I rowsort
SELECT DISTINCT + 83 * + cor0.col1 AS col1 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
1411
2573
4897

query I rowsort
SELECT DISTINCT + tab2.col1 + - 72 * col1 FROM tab2
----
-1207
-2201
-4189

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3281
SELECT - + CAST( NULL AS SIGNED ) + cor0.col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3281
SELECT - + CAST ( NULL AS INTEGER ) + cor0.col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3282
SELECT ALL + ( - cor0.col1 ) DIV col0 + col0 * 95 FROM tab1 AS cor0
----
277
6080
7600

skipif mysql # not compatible
query I rowsort label-3282
SELECT ALL + ( - cor0.col1 ) / col0 + col0 * 95 FROM tab1 AS cor0
----
277
6080
7600

query I rowsort
SELECT ALL - 80 * - col2 + + col2 + - 6 FROM tab1 AS cor0
----
4368
4611
7770

query I rowsort
SELECT ALL - 75 * cor0.col0 FROM tab0, tab2 cor0 CROSS JOIN tab2 cor1
----
27 values hashing to 03bd0c8b75b2abea67db5614c3183fce

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab0.col0 col1 FROM tab0, tab1 AS cor0
----
-24
-35
-89

query I rowsort
SELECT DISTINCT - 92 AS col2 FROM tab2, tab2 AS cor0, tab2 cor1
----
-92

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3287
SELECT + col2 * - CAST( + col1 AS SIGNED ) col2 FROM tab0
----
-2838
-7462
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3287
SELECT + col2 * - CAST ( + col1 AS INTEGER ) col2 FROM tab0
----
-2838
-7462
-97

query I rowsort
SELECT ALL + col0 * - 39 * + col1 FROM tab1
----
-24960
-3042
-40560

query I rowsort
SELECT col1 * + 70 + col2 FROM tab0 AS cor0
----
6053
6452
6791

query I rowsort
SELECT + 39 * col0 + + col2 * + 35 FROM tab0 AS cor0
----
1400
2091
6341

query I rowsort
SELECT - 9 * + 56 FROM tab2 AS cor0
----
-504
-504
-504

query I rowsort
SELECT 80 * 12 AS col0 FROM tab2 AS cor0
----
960
960
960

onlyif mysql # use DIV operator for integer division
query I rowsort label-3293
SELECT DISTINCT + + col1 + + col0 DIV 23 FROM tab1 AS cor0
----
12
16
26

skipif mysql # not compatible
query I rowsort label-3293
SELECT DISTINCT + + col1 + + col0 / 23 FROM tab1 AS cor0
----
12
16
26

query I rowsort
SELECT DISTINCT col0 * - col0 * - 31 FROM tab2
----
1519
188604
193471

query I rowsort
SELECT col1 + col0 * ( + col0 ) * col0 FROM tab2 cor0
----
374
474611
493056

query I rowsort
SELECT + cor0.col0 - - col2 FROM tab2 AS cor0
----
104
117
34

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab0 cor0, tab2 AS cor1, tab1 AS cor2
----
972 values hashing to 9364ef7545b07c67767dceb70f02c643

onlyif mysql # use DIV operator for integer division
query I rowsort label-3298
SELECT col2 + col2 DIV + col0 AS col0 FROM tab1 AS cor0
----
57
72
97

skipif mysql # not compatible
query I rowsort label-3298
SELECT col2 + col2 / + col0 AS col0 FROM tab1 AS cor0
----
57
72
97

query I rowsort
SELECT ALL - - col2 * + 57 AS col0 FROM tab2 AS cor0
----
1482
1539
2166

query I rowsort
SELECT DISTINCT + cor0.col0 * - col0 AS col2 FROM tab1 cor0
----
-4096
-6400
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col1 * col0 + 96 + col0 col0 FROM tab1 AS cor0
----
-480
-864
21

query I rowsort
SELECT ALL - col2 * - cor0.col2 + cor0.col2 FROM tab1 AS cor0
----
2970
3306
9312

query I rowsort
SELECT - col2 + col0 * + 12 FROM tab2 cor0
----
57
910
910

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col0 * col0 + + cor0.col0 col0 FROM tab1 AS cor0
----
-4032
-6
-6320

query I rowsort
SELECT ALL - - col1 * cor0.col1 AS col0 FROM tab1 cor0
----
100
169
676

query I rowsort
SELECT + cor0.col2 + + 55 FROM tab1, tab1 AS cor0
----
9 values hashing to dee7ca537b135e22d352d7387826edbe

query I rowsort
SELECT ALL col0 * + ( - col1 ) AS col1 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT DISTINCT 2 * 5 + - cor0.col0 AS col0 FROM tab0, tab0 AS cor0
----
-14
-25
-79

query I rowsort
SELECT - 69 + col1 * col2 FROM tab2 AS cor0
----
1465
577
768

query I rowsort
SELECT DISTINCT - 39 + + col1 AS col0 FROM tab1 AS cor0
----
-13
-26
-29

query I rowsort
SELECT 92 * cor0.col1 + cor0.col2 AS col0 FROM tab1 AS cor0
----
1292
2446
977

query I rowsort
SELECT ALL - 42 + + col1 AS col2 FROM tab0 AS cor0
----
44
49
55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 + + col1 col2 FROM tab1 cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3314
SELECT + CAST( NULL AS SIGNED ) * - tab1.col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3314
SELECT + CAST ( NULL AS INTEGER ) * - tab1.col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 73 + - col2 FROM tab1
----
-127
-130
-169

query I rowsort
SELECT col0 * col2 - col2 * + ( col0 ) FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + + ( + col1 ) * col1 + - col2 FROM tab2 AS cor0
----
251
3455
934

query I rowsort
SELECT - 28 + + col2 AS col1 FROM tab1 AS cor0
----
26
29
68

query I rowsort
SELECT 95 + col1 * 51 AS col0 FROM tab0 AS cor0
----
4481
4736
5042

query I rowsort
SELECT ALL + + col2 * - col1 AS col1 FROM tab1 cor0
----
-1248
-1404
-570

query I rowsort
SELECT ALL + 79 * col0 + 83 * col2 * col1 AS col2 FROM tab0 AS cor0
----
10816
237450
626377

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3322
SELECT ALL + col2 * + col2 + CAST( NULL AS SIGNED ) + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3322
SELECT ALL + col2 * + col2 + CAST ( NULL AS INTEGER ) + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 95 + + col0 AS col1 FROM tab1 AS cor0
----
159
175
98

query I rowsort
SELECT + 61 + col2 + col1 AS col2 FROM tab1
----
128
141
170

query I rowsort
SELECT DISTINCT - 83 + + col0 + col0 * col0 AS col1 FROM tab0
----
1177
517
7927

query I rowsort
SELECT - col0 + + col0 * 46 AS col1 FROM tab0 cor0
----
1080
1575
4005

onlyif mysql # use DIV operator for integer division
query I rowsort label-3327
SELECT ALL - - 59 DIV col1 FROM tab1 AS cor0
----
2
4
5

skipif mysql # not compatible
query I rowsort label-3327
SELECT ALL - - 59 / col1 FROM tab1 AS cor0
----
2
4
5

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3328
SELECT - CAST( - 82 AS SIGNED ) * cor0.col0 FROM tab1 AS cor0
----
246
5248
6560

skipif mysql # not compatible
query I rowsort label-3328
SELECT - CAST ( - 82 AS INTEGER ) * cor0.col0 FROM tab1 AS cor0
----
246
5248
6560

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3329
SELECT DISTINCT CAST( 39 AS SIGNED ) FROM tab1 AS cor0
----
39

skipif mysql # not compatible
query I rowsort label-3329
SELECT DISTINCT CAST ( 39 AS INTEGER ) FROM tab1 AS cor0
----
39

query I rowsort
SELECT ALL - cor0.col0 * 93 AS col2 FROM tab2 AS cor0
----
-651
-7254
-7347

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + 82 col0 FROM tab2
----
108
109
120

query I rowsort
SELECT - 92 * - col1 + col2 * col0 AS col1 FROM tab2
----
3041
4566
7456

query I rowsort
SELECT DISTINCT - col0 * - col2 + col1 + ( - 46 ) AS col2 FROM tab1
----
142
3612
7647

query I rowsort
SELECT DISTINCT col0 - col0 * col1 FROM tab2
----
-1264
-210
-4524

onlyif mysql # use DIV operator for integer division
query I rowsort label-3335
SELECT 92 + col1 + col0 DIV col0 AS col1 FROM tab2
----
110
124
152

skipif mysql # not compatible
query I rowsort label-3335
SELECT 92 + col1 + col0 / col0 AS col1 FROM tab2
----
110
124
152

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3336
SELECT CAST( 20 AS SIGNED ) + - tab1.col2 AS col0 FROM tab1
----
-34
-37
-76

skipif mysql # not compatible
query I rowsort label-3336
SELECT CAST ( 20 AS INTEGER ) + - tab1.col2 AS col0 FROM tab1
----
-34
-37
-76

onlyif mysql # use DIV operator for integer division
query I rowsort label-3337
SELECT DISTINCT + ( col1 ) * col0 DIV - tab0.col2 + + 66 AS col2 FROM tab0
----
-32
-3329
4

skipif mysql # not compatible
query I rowsort label-3337
SELECT DISTINCT + ( col1 ) * col0 / - tab0.col2 + + 66 AS col2 FROM tab0
----
-32
-3329
4

query I rowsort
SELECT ALL - ( 61 ) * - col0 + - 81 FROM tab0 AS cor0
----
1383
2054
5348

query I rowsort
SELECT ( col0 ) * col2 AS col0 FROM tab1
----
162
3648
7680

query I rowsort
SELECT - 83 * + col0 - - col1 FROM tab2 AS cor0
----
-550
-6415
-6540

query I rowsort
SELECT cor0.col0 + cor0.col1 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to d994d266bacb99d3939b70b2c7903ce8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 43 * - col2 + + col2 col0 FROM tab2 AS cor0
----
-1092
-1134
-1596

query I rowsort
SELECT + 10 * + 51 AS col1 FROM tab0 AS cor0
----
510
510
510

query I rowsort
SELECT DISTINCT - + col1 - - col2 * col1 FROM tab1 AS cor0
----
1235
1378
560

query I rowsort
SELECT DISTINCT 95 * col2 AS col2 FROM tab0 AS cor0
----
3135
7790
95

query I rowsort
SELECT DISTINCT + tab0.col1 FROM tab0, tab1 cor0, tab1 AS cor1
----
86
91
97

query I rowsort
SELECT DISTINCT 27 AS col0 FROM tab1, tab0 AS cor0, tab2 AS cor1, tab0 AS cor2
----
27

query I rowsort
SELECT + 40 + + cor0.col1 * ( col1 ) AS col1 FROM tab1 AS cor0
----
140
209
716

query I rowsort
SELECT ALL + ( tab2.col1 ) FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

query I rowsort
SELECT col2 * cor0.col1 - col1 FROM tab1 AS cor0
----
1235
1378
560

query I rowsort
SELECT ALL - ( 30 ) + + cor0.col0 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 4fe1dc21ef0af4598f52e0c594ab5f4a

query I rowsort
SELECT DISTINCT tab1.col2 * 90 AS col2 FROM tab1
----
4860
5130
8640

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3353
SELECT ALL cor0.col1 * CAST( NULL AS SIGNED ) + - col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3353
SELECT ALL cor0.col1 * CAST ( NULL AS INTEGER ) + - col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3354
SELECT ALL col1 DIV col1 col2 FROM tab0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3354
SELECT ALL col1 / col1 col2 FROM tab0
----
1
1
1

query I rowsort
SELECT - col1 * col2 + + col1 + cor0.col1 FROM tab2 AS cor0
----
-1416
-612
-775

query I rowsort
SELECT ALL col2 + - col2 * - cor0.col1 AS col0 FROM tab0 AS cor0
----
2871
7544
98

query I rowsort
SELECT ALL - col2 + - 46 AS col1 FROM tab2 AS cor0
----
-72
-73
-84

query I rowsort
SELECT DISTINCT - col2 + col1 * 77 * - col1 FROM tab1 AS cor0
----
-13109
-52106
-7757

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3359
SELECT + CAST( - 11 AS SIGNED ) * col0 AS col1 FROM tab0 AS cor0
----
-264
-385
-979

skipif mysql # not compatible
query I rowsort label-3359
SELECT + CAST ( - 11 AS INTEGER ) * col0 AS col1 FROM tab0 AS cor0
----
-264
-385
-979

query I rowsort
SELECT - 87 * 71 AS col2 FROM tab0 AS cor0
----
-6177
-6177
-6177

onlyif mysql # use DIV operator for integer division
query I rowsort label-3361
SELECT DISTINCT + col1 DIV ( col2 ) col0 FROM tab1 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3361
SELECT DISTINCT + col1 / ( col2 ) col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT 70 * + 60 FROM tab1 AS cor0
----
4200
4200
4200

query I rowsort
SELECT + col2 * col1 * col1 AS col0 FROM tab2 AS cor0
----
10982
25947
90506

query I rowsort
SELECT DISTINCT col1 + + col2 * col0 AS col0 FROM tab0 AS cor0
----
132
7389
878

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3365
SELECT - 47 + + ( - cor0.col2 ) * + CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3365
SELECT - 47 + + ( - cor0.col2 ) * + CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 8 + 95 FROM tab1, tab2, tab0 AS cor0, tab0
----
81 values hashing to ecf8639d8d45f60ceb1f0b2da4453a21

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 * - col0 IN ( - col2 )
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE + col0 * - col1 IN ( - cor0.col1 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-3369
SELECT - tab1.col2 DIV + tab1.col0 + tab1.col2 AS col2 FROM tab1
----
36
57
95

skipif mysql # not compatible
query I rowsort label-3369
SELECT - tab1.col2 / + tab1.col0 + tab1.col2 AS col2 FROM tab1
----
36
57
95

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL NOT BETWEEN col2 + col1 * col2 AND + col0 + + col1 + - col1
----

query I rowsort
SELECT + col0 * - col2 + + col2 * col0 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL col1 - col0 * + col0 FROM tab2
----
-18
-6025
-6224

onlyif mysql # use DIV operator for integer division
query I rowsort label-3373
SELECT - col2 DIV col2 + col0 FROM tab0
----
23
34
88

skipif mysql # not compatible
query I rowsort label-3373
SELECT - col2 / col2 + col0 FROM tab0
----
23
34
88

onlyif mysql # use DIV operator for integer division
query I rowsort label-3374
SELECT + col2 DIV - col0 + col2 * col1 DIV - col0 AS col1 FROM tab1
----
-16
-486
-8

skipif mysql # not compatible
query I rowsort label-3374
SELECT + col2 / - col0 + col2 * col1 / - col0 AS col1 FROM tab1
----
-16
-486
-8

onlyif mysql # use DIV operator for integer division
query I rowsort label-3375
SELECT col0 * col2 DIV - col1 AS col1 FROM tab1
----
-364
-590
-6

skipif mysql # not compatible
query I rowsort label-3375
SELECT col0 * col2 / - col1 AS col1 FROM tab1
----
-364
-590
-6

query I rowsort
SELECT DISTINCT - col2 + col0 * col1 AS col2 FROM tab1
----
24
583
944

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + + col2 + col1 * col1 col0 FROM tab2
----
3585
406
995

query I rowsort
SELECT ALL col2 AS col0 FROM tab0 WHERE ( NULL ) IN ( + col2 * tab0.col0 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL NOT IN ( - tab1.col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col0 IN ( col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - col0 * col2 + col2 col2 FROM tab1
----
-3534
-54
-7488

query I rowsort
SELECT DISTINCT - + col0 + + col2 * + col0 FROM tab2 cor0
----
182
1950
2923

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * tab1.col2 col2 FROM tab1
----
1248
1404
570

query I rowsort
SELECT + tab0.col1 * - col0 - - col2 FROM tab0
----
-2031
-3394
-8017

query I rowsort
SELECT cor0.col0 FROM tab1 AS cor0 CROSS JOIN tab2
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - cor0.col1 + col2 col0 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT ALL ( + tab1.col2 ) + ( - tab1.col1 ) + - col1 FROM tab1
----
2
37
70

query I rowsort
SELECT ALL + col2 * + col0 + + col0 * col1 FROM tab1
----
240
4288
8720

query I rowsort
SELECT DISTINCT col0 * col0 + + ( col1 ) AS col1 FROM tab2
----
6143
6258
80

query I rowsort
SELECT ALL - 95 * col1 FROM tab0
----
-8170
-8645
-9215

query I rowsort
SELECT ALL col1 + col0 * cor0.col1 + - col1 AS col0 FROM tab1 AS cor0
----
1040
640
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + 4 col0 FROM tab1 cor0
----
216
228
384

query I rowsort
SELECT DISTINCT - 53 AS col2 FROM tab2, tab0 AS cor0
----
-53

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - col1 + CAST ( - col0 + + col1 AS REAL ) * - 9 FROM tab0 cor0
----
-109
-644
-655

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 + + col0 * col2 - + col1 col0 FROM tab1 AS cor0
----
190
3695
7763

query I rowsort
SELECT ALL + col1 + 44 FROM tab1 AS cor0
----
54
57
70

query I rowsort
SELECT DISTINCT - col1 + - ( + cor0.col2 ) * + col1 FROM tab1 AS cor0
----
-1261
-1430
-580

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 * 6 col0 FROM tab1 cor0
----
324
342
576

query I rowsort
SELECT DISTINCT + - cor0.col0 * 6 AS col2 FROM tab1 AS cor0
----
-18
-384
-480

query I rowsort
SELECT DISTINCT - - col1 + - col2 + - col1 FROM tab0 cor0
----
-1
-33
-82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3401
SELECT DISTINCT col1 * + CAST( NULL AS SIGNED ) + 88 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3401
SELECT DISTINCT col1 * + CAST ( NULL AS INTEGER ) + 88 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL col1 * + cor0.col0 * + col2 - cor0.col1 FROM tab1 AS cor0
----
36470
4186
99827

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - col2 * col0 col1 FROM tab1
----
-159
-3584
-7600

query I rowsort
SELECT DISTINCT - tab2.col0 * col1 AS col2 FROM tab2
----
-1343
-217
-4602

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL > ( - col0 + col0 * + col2 )
----

query I rowsort
SELECT ALL col2 * + col0 * col0 AS col2 FROM tab1
----
233472
486
614400

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) = ( NULL )
----

query I rowsort
SELECT + col2 * col1 * - col1 FROM tab2
----
-10982
-25947
-90506

query I rowsort
SELECT col2 / tab0.col0 AS col0 FROM tab0 WHERE ( NULL ) BETWEEN ( NULL ) AND + col1
----

query I rowsort
SELECT ALL - col2 + + col0 - - col1 AS col1 FROM tab2
----
11
111
58

query I rowsort
SELECT ALL + col1 + + col0 - col0 * col0 AS col1 FROM tab0
----
-1093
-466
-7741

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + col1 col1 FROM tab2
----
1343
217
4602

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab2 WHERE NOT NULL >= ( col1 * col2 + col1 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT IN ( col2 / col0 )
----

query I rowsort
SELECT tab2.col1 * col2 - + col2 AS col0 FROM tab2
----
1508
608
810

query I rowsort
SELECT DISTINCT - col1 - + col1 FROM tab0
----
-172
-182
-194

query I rowsort
SELECT + col0 * - tab1.col1 - + col2 * col1 AS col1 FROM tab1
----
-1210
-1482
-2288

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab1.col0 * col2 col1 FROM tab1
----
162
3648
7680

query III rowsort
SELECT ALL * FROM tab1 WHERE ( + col1 * col0 + - col2 * col2 ) IN ( col0 / col2 )
----

query I rowsort
SELECT col2 * tab0.col1 * - col2 AS col1 FROM tab0
----
-611884
-93654
-97

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col0 + col0 / + col0 + + col2 < ( + col1 * col1 * col1 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

query I rowsort
SELECT - col0 * col2 + + col1 AS col1 FROM tab2
----
-158
-1969
-2985

onlyif mysql # use DIV operator for integer division
query I rowsort label-3423
SELECT - - 60 + - col1 * - col0 DIV ( cor0.col2 * + ( cor0.col2 ) ) + col0 AS col0 FROM tab1 AS cor0
----
124
140
63

skipif mysql # not compatible
query I rowsort label-3423
SELECT - - 60 + - col1 * - col0 / ( cor0.col2 * + ( cor0.col2 ) ) + col0 AS col0 FROM tab1 AS cor0
----
124
140
63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 12 col2 FROM tab0, tab2 AS cor0, tab0 cor1
----
27 values hashing to 3983bffe2adf88cb2efc3be93ee620c0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3425
SELECT ALL - + ( - col1 ) * + col1 + - col1 DIV col2 FROM tab0 AS cor0
----
7394
8280
9312

skipif mysql # not compatible
query I rowsort label-3425
SELECT ALL - + ( - col1 ) * + col1 + - col1 / col2 FROM tab0 AS cor0
----
7394
8280
9312

onlyif mysql # use DIV operator for integer division
query I rowsort label-3426
SELECT ALL - col0 + col2 DIV - 18 FROM tab0 cor0
----
-25
-35
-93

skipif mysql # not compatible
query I rowsort label-3426
SELECT ALL - col0 + col2 / - 18 FROM tab0 cor0
----
-25
-35
-93

onlyif mysql # use DIV operator for integer division
query I rowsort label-3427
SELECT - + col2 DIV + col1 + + col1 * - col0 FROM tab2 AS cor0
----
-1345
-217
-4602

skipif mysql # not compatible
query I rowsort label-3427
SELECT - + col2 / + col1 + + col1 * - col0 FROM tab2 AS cor0
----
-1345
-217
-4602

query I rowsort
SELECT DISTINCT + col1 * + col2 - + col0 FROM tab1 AS cor0
----
1168
1401
506

query I rowsort
SELECT cor0.col0 + col1 * col1 FROM tab0 AS cor0
----
7420
8370
9444

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3430
SELECT ALL + + col2 + col1 + - 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-3430
SELECT ALL + + col2 + col1 + - CAST ( NULL AS INTEGER ) * - 36 col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 * col2 + - col1 FROM tab1
----
1235
1378
560

query I rowsort
SELECT ALL col2 FROM tab2 WHERE NOT + tab2.col2 * - col2 IN ( + tab2.col0 + tab2.col1 / + col1 )
----
26
27
38

query I rowsort
SELECT DISTINCT - col0 * col2 * - tab0.col0 + + col0 AS col0 FROM tab0
----
1260
19032
649611

query I rowsort
SELECT col0 * col0 + col1 AS col0 FROM tab1
----
35
4106
6413

query I rowsort
SELECT ALL + col1 + + col0 * col2 FROM tab0
----
132
7389
878

query I rowsort
SELECT - - cor0.col2 + col2 * col2 FROM tab2 cor0
----
1482
702
756

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3437
SELECT DISTINCT + + cor0.col2 * CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3437
SELECT DISTINCT + + cor0.col2 * CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT cor0.col1 * ( - 94 + + col2 ) AS col2 FROM tab0 AS cor0
----
-1092
-5246
-9021

query I rowsort
SELECT DISTINCT + cor0.col1 * - ( - col2 ) * - col1 AS col1 FROM tab2 AS cor0
----
-10982
-25947
-90506

query I rowsort
SELECT DISTINCT + col1 + - ( - tab0.col0 ) * + col0 + 90 AS col1 FROM tab0
----
1412
752
8102

query I rowsort
SELECT + col0 * col0 + col0 + col1 * ( col1 ) AS col0 FROM tab2
----
1017
6609
9643

query I rowsort
SELECT - col0 + 90 FROM tab2 AS cor0
----
11
12
83

query I rowsort
SELECT DISTINCT col2 + + ( - 78 ) FROM tab2 AS cor0
----
-40
-51
-52

query I rowsort
SELECT ALL col0 * - ( + 91 ) FROM tab2 AS cor0
----
-637
-7098
-7189

query I rowsort
SELECT DISTINCT - col2 + 99 * + 67 FROM tab0 cor0
----
6551
6600
6632

query I rowsort
SELECT DISTINCT col0 * ( 86 ) * col1 FROM tab0 AS cor0
----
177504
291970
696514

query I rowsort
SELECT ( + col0 ) + cor0.col0 AS col0 FROM tab1 AS cor0
----
128
160
6

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3448
SELECT ALL + CAST( NULL AS SIGNED ) / - cor0.col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3448
SELECT ALL + CAST ( NULL AS INTEGER ) / - cor0.col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 58 * cor1.col1 AS col0 FROM tab1, tab0 cor0, tab2 AS cor1
----
-1798
-3422
-986

query I rowsort
SELECT - col2 + ( col2 ) * + col2 AS col1 FROM tab0 AS cor0
----
0
1056
6642

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + col2 * 68 col2 FROM tab2 cor0
----
1794
1863
2622

onlyif mysql # use DIV operator for integer division
query I rowsort label-3452
SELECT ALL + col0 + - col1 DIV col2 AS col0 FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-3452
SELECT ALL + col0 + - col1 / col2 AS col0 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT ALL - - 75 + col0 FROM tab1 AS cor0
----
139
155
78

query I rowsort
SELECT - 40 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 01aad4539198a6509248e086869f90a6

query I rowsort
SELECT - col1 * col2 + - col0 FROM tab2
----
-1612
-725
-844

query I rowsort
SELECT ALL - 91 * + col0 AS col2 FROM tab0
----
-2184
-3185
-8099

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3457
SELECT + - cor0.col2 / - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3457
SELECT + - cor0.col2 / - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + col0 + + ( - 17 ) AS col2 FROM tab1 cor0
----
-20
-81
-97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3459
SELECT + ( tab1.col2 ) + CAST( 67 AS SIGNED ) * col2 FROM tab1
----
3672
3876
6528

skipif mysql # not compatible
query I rowsort label-3459
SELECT + ( tab1.col2 ) + CAST ( 67 AS INTEGER ) * col2 FROM tab1
----
3672
3876
6528

query I rowsort
SELECT 45 + tab2.col0 * + col1 AS col2 FROM tab2
----
1388
262
4647

query I rowsort
SELECT ALL - ( - 51 ) FROM tab1, tab1 AS cor0
----
9 values hashing to d8bf0a05c9c4d2a93812d106baae4752

query I rowsort
SELECT ALL - col2 + - col2 + + col0 FROM tab2 AS cor0
----
-47
26
3

query I rowsort
SELECT ALL - + col1 + col1 AS col1 FROM tab1 cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * cor0.col0 + col2 col2 FROM tab1 AS cor0
----
-4039
-6304
45

query I rowsort
SELECT DISTINCT - 59 * - col0 + - col0 AS col0 FROM tab2
----
406
4524
4582

onlyif mysql # use DIV operator for integer division
query I rowsort label-3466
SELECT DISTINCT + 16 DIV col1 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-3466
SELECT DISTINCT + 16 / col1 FROM tab0 cor0
----
0

query I rowsort
SELECT + ( + col1 ) * - cor0.col2 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT + + 69 * + col0 FROM tab0 AS cor0
----
1656
2415
6141

query I rowsort
SELECT DISTINCT - col0 + - ( + col0 ) FROM tab1 AS cor0
----
-128
-160
-6

query I rowsort
SELECT - - 10 * - cor0.col1 AS col0 FROM tab1 AS cor0
----
-100
-130
-260

query I rowsort
SELECT ALL + 60 * col1 FROM tab0 cor0
----
5160
5460
5820

onlyif mysql # use DIV operator for integer division
query I rowsort label-3472
SELECT ALL - - col2 + col1 DIV + col1 col1 FROM tab0 AS cor0
----
2
34
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3472
SELECT ALL - - col2 + col1 / + col1 col1 FROM tab0 AS cor0
----
2
34
83

query I rowsort
SELECT 97 + - col1 AS col1 FROM tab2 cor0
----
38
66
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-3474
SELECT DISTINCT col0 + + col0 DIV + cor0.col0 FROM tab2 AS cor0
----
79
8
80

skipif mysql # not compatible
query I rowsort label-3474
SELECT DISTINCT col0 + + col0 / + cor0.col0 FROM tab2 AS cor0
----
79
8
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-3475
SELECT DISTINCT - col1 + col1 DIV col0 col0 FROM tab1 cor0
----
-10
-13
-18

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3475
SELECT DISTINCT - col1 + col1 / col0 col0 FROM tab1 cor0
----
-10
-13
-18

query I rowsort
SELECT cor0.col0 * + col2 + - 11 * + cor0.col0 FROM tab0 AS cor0
----
-350
528
6319

query I rowsort
SELECT DISTINCT + 16 + col1 FROM tab2 AS cor0
----
33
47
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 57 col2 FROM tab1 AS cor0
----
-57
-57
-57

onlyif mysql # use DIV operator for integer division
query I rowsort label-3479
SELECT + col0 DIV col2 + cor0.col2 FROM tab1 AS cor0
----
54
58
96

skipif mysql # not compatible
query I rowsort label-3479
SELECT + col0 / col2 + cor0.col2 FROM tab1 AS cor0
----
54
58
96

query I rowsort
SELECT ALL + col2 * col1 + - 87 FROM tab0 AS cor0
----
10
2751
7375

query I rowsort
SELECT DISTINCT - col2 * + col1 + cor0.col0 * 61 AS col0 FROM tab1 AS cor0
----
-1221
3334
3632

query I rowsort
SELECT - - ( 15 ) AS col0 FROM tab2 cor0
----
15
15
15

query I rowsort
SELECT DISTINCT + 49 FROM tab0, tab0 cor0
----
49

query I rowsort
SELECT DISTINCT - ( + 46 ) FROM tab1
----
-46

query I rowsort
SELECT col0 * col0 + col2 + - ( - cor0.col2 * - col0 ) FROM tab1 AS cor0
----
-1184
-99
505

query I rowsort
SELECT + + col2 * 35 + col2 * col0 FROM tab2 AS cor0
----
1134
2938
4332

query I rowsort
SELECT + col1 + - 47 + + col0 AS col1 FROM tab1 cor0
----
-18
27
46

query I rowsort
SELECT DISTINCT 82 FROM tab0, tab2 cor0
----
82

query I rowsort
SELECT DISTINCT - 79 + col2 AS col1 FROM tab2 AS cor0
----
-41
-52
-53

query I rowsort
SELECT col0 + cor0.col0 * - cor0.col1 * col0 FROM tab1 AS cor0
----
-231
-40896
-83120

query I rowsort
SELECT DISTINCT - col2 * + col2 * + 18 - + col1 FROM tab1 cor0
----
-165901
-52514
-58492

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 + col0 col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT - cor0.col2 AS col1 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 44fdcd7cd603352d4d127811d164cc1e

query I rowsort
SELECT col1 + col2 * 93 FROM tab2 AS cor0
----
2477
2542
3551

query I rowsort
SELECT ALL + + cor0.col2 * - col1 AS col0 FROM tab0 AS cor0
----
-2838
-7462
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-3496
SELECT 21 DIV + col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3496
SELECT 21 / + col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT 23 AS col0 FROM tab2 cor0
----
23

query I rowsort
SELECT - 39 * - col1 AS col0 FROM tab0 AS cor0
----
3354
3549
3783

query I rowsort
SELECT DISTINCT 52 * - 43 FROM tab2
----
-2236

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 94 col0 FROM tab1, tab0 cor0
----
9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24

query I rowsort
SELECT 77 AS col1 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to d7b027bca5d37c67e29013904def8125

query I rowsort
SELECT ALL col1 * - 26 FROM tab2
----
-1534
-442
-806

query I rowsort
SELECT DISTINCT 34 * tab1.col1 FROM tab1
----
340
442
884

query I rowsort
SELECT + + col0 * - 65 FROM tab1 AS cor0
----
-195
-4160
-5200

query I rowsort
SELECT col0 + + 49 FROM tab0 cor0
----
138
73
84

query I rowsort
SELECT + col0 * - col1 + + col0 * - col0 FROM tab1 AS cor0
----
-4736
-7440
-87

query I rowsort
SELECT DISTINCT + - 77 FROM tab1, tab2, tab2 AS cor0
----
-77

query I rowsort
SELECT col2 - - ( col2 ) AS col2 FROM tab1 AS cor0
----
108
114
192

query I rowsort
SELECT DISTINCT col1 * col2 + + 76 + - 13 * col0 AS col1 FROM tab1
----
-186
1441
284

query I rowsort
SELECT ALL + 22 * + 19 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to d2b2d679c362219c19b1ef989fe43ffb

query I rowsort
SELECT col0 * - col2 + 78 * col0 AS col0 FROM tab2 AS cor0
----
3160
357
4056

query I rowsort
SELECT ALL ( + 28 ) - + col1 FROM tab0 AS cor0
----
-58
-63
-69

query I rowsort
SELECT 59 AS col0 FROM tab1 cor0
----
59
59
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-3514
SELECT ALL - - 12 DIV col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3514
SELECT ALL - - 12 / col1 FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + col0 + col0 col2 FROM tab1 cor0
----
165
3712
7760

query I rowsort
SELECT DISTINCT + 48 * col0 + - col2 FROM tab0 AS cor0
----
1119
1679
4190

onlyif mysql # use DIV operator for integer division
query I rowsort label-3517
SELECT ALL + col1 DIV col2 + col2 - col1 FROM tab0 AS cor0
----
-51
-8
1

skipif mysql # not compatible
query I rowsort label-3517
SELECT ALL + col1 / col2 + col2 - col1 FROM tab0 AS cor0
----
-51
-8
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3518
SELECT DISTINCT - CAST( ( - col2 ) AS SIGNED ) + + col2 * + 29 FROM tab1 AS cor0
----
1620
1710
2880

skipif mysql # not compatible
query I rowsort label-3518
SELECT DISTINCT - CAST ( ( - col2 ) AS INTEGER ) + + col2 * + 29 FROM tab1 AS cor0
----
1620
1710
2880

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3519
SELECT - CAST( cor0.col2 AS SIGNED ) + + col0 AS col0 FROM tab2 AS cor0
----
-20
41
52

skipif mysql # not compatible
query I rowsort label-3519
SELECT - CAST ( cor0.col2 AS INTEGER ) + + col0 AS col0 FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT DISTINCT - - col0 + col0 * - col1 FROM tab2 AS cor0
----
-1264
-210
-4524

query I rowsort
SELECT - col0 * - 85 FROM tab1
----
255
5440
6800

onlyif mysql # use DIV operator for integer division
query I rowsort label-3522
SELECT DISTINCT col1 + col0 DIV col1 AS col2 FROM tab1
----
16
19
26

skipif mysql # not compatible
query I rowsort label-3522
SELECT DISTINCT col1 + col0 / col1 AS col2 FROM tab1
----
16
19
26

query I rowsort
SELECT ALL - col0 + - col1 * col2 AS col2 FROM tab0
----
-132
-2862
-7551

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + tab2.col0 col0 FROM tab2
----
14
156
158

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 - + col1 * col0 col0 FROM tab0
----
-2097
-3396
-8181

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * - 52 - col0 col1 FROM tab1
----
-2811
-3028
-5072

query I rowsort
SELECT col0 - - col2 * + col2 FROM tab1
----
2919
3313
9296

query I rowsort
SELECT ALL + 15 FROM tab2, tab0 AS cor0
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd

query I rowsort
SELECT DISTINCT col2 * tab0.col0 + col0 FROM tab0
----
70
7387
816

query I rowsort
SELECT + tab0.col1 + col2 * + col0 AS col2 FROM tab0
----
132
7389
878

onlyif mysql # use DIV operator for integer division
query I rowsort label-3531
SELECT DISTINCT + + 75 DIV col2 AS col1 FROM tab1 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-3531
SELECT DISTINCT + + 75 / col2 AS col1 FROM tab1 AS cor0
----
0
1

query I rowsort
SELECT + col0 + - 70 * - col2 * 3 FROM tab2 AS cor0
----
5538
5677
8059

query I rowsort
SELECT ALL 36 * 15 + - cor0.col2 AS col2 FROM tab1 AS cor0
----
444
483
486

query I rowsort
SELECT ALL - col0 + + col0 * cor0.col2 AS col2 FROM tab1 AS cor0
----
159
3584
7600

query I rowsort
SELECT - ( - col2 ) + + col0 * cor0.col2 AS col0 FROM tab2 AS cor0
----
2054
216
3040

onlyif mysql # use DIV operator for integer division
query I rowsort label-3536
SELECT ALL - col0 + - 35 DIV cor0.col1 FROM tab0 AS cor0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-3536
SELECT ALL - col0 + - 35 / cor0.col1 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT - + 58 * col0 AS col1 FROM tab2 AS cor0
----
-406
-4524
-4582

query I rowsort
SELECT - + 75 * - col1 + col0 AS col2 FROM tab0 AS cor0
----
6474
6914
7310

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3539
SELECT col2 + - CAST( NULL AS SIGNED ) * + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3539
SELECT col2 + - CAST ( NULL AS INTEGER ) * + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3540
SELECT ALL - + col1 + CAST( col2 AS SIGNED ) col2 FROM tab0 cor0
----
-53
-9
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3540
SELECT ALL - + col1 + CAST ( col2 AS INTEGER ) col2 FROM tab0 cor0
----
-53
-9
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - col1 + col2 col1 FROM tab0 AS cor0
----
7429
8363
9410

query I rowsort
SELECT DISTINCT + col2 * col1 + + col0 AS col2 FROM tab0 AS cor0
----
132
2862
7551

query I rowsort
SELECT - tab1.col0 * col2 + + col0 AS col2 FROM tab1
----
-159
-3584
-7600

query I rowsort
SELECT DISTINCT - 78 AS col2 FROM tab1
----
-78

query I rowsort
SELECT col2 + + 45 FROM tab2
----
71
72
83

query I rowsort
SELECT ALL + + 56 * + col1 + col0 - + col1 * col1 AS col2 FROM tab0 AS cor0
----
-2556
-3096
-3942

query I rowsort
SELECT ALL + + 36 FROM tab2 cor0
----
36
36
36

query I rowsort
SELECT DISTINCT col1 * + cor0.col1 + cor0.col0 AS col0 FROM tab2 AS cor0
----
3559
368
968

query I rowsort
SELECT - - 0 + + col1 * col2 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT ALL - ( col1 ) * + col1 AS col2 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT ALL - 2 AS col0 FROM tab2 cor0
----
-2
-2
-2

query I rowsort
SELECT DISTINCT + ( col1 ) + + 46 FROM tab2 AS cor0
----
105
63
77

onlyif mysql # use DIV operator for integer division
query I rowsort label-3553
SELECT ALL + cor0.col0 DIV + col2 + - col0 AS col0 FROM tab1 AS cor0
----
-3
-63
-80

skipif mysql # not compatible
query I rowsort label-3553
SELECT ALL + cor0.col0 / + col2 + - col0 AS col0 FROM tab1 AS cor0
----
-3
-63
-80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3554
SELECT + col1 + ( 51 * + col1 + + CAST( NULL AS SIGNED ) ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3554
SELECT + col1 + ( 51 * + col1 + + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + + col2 * 31 - - col0 * + cor0.col0 AS col2 FROM tab1 AS cor0
----
1683
5863
9376

query I rowsort
SELECT ALL + col0 + + 43 AS col1 FROM tab1 AS cor0
----
107
123
46

query I rowsort
SELECT - col2 * - 92 FROM tab1 AS cor0
----
4968
5244
8832

query I rowsort
SELECT + col2 - ( col2 * col2 + - ( + col2 ) ) AS col1 FROM tab2 AS cor0
----
-1368
-624
-675

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 * 34 col1 FROM tab0 cor0
----
1190
3026
816

query I rowsort
SELECT + col0 + - ( col0 ) * col1 AS col1 FROM tab0 AS cor0
----
-2040
-3360
-8010

query I rowsort
SELECT DISTINCT - col0 + ( col0 ) + cor0.col0 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT DISTINCT col2 - - cor0.col1 AS col1 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT DISTINCT + col0 * + col0 + col2 * + col2 AS col1 FROM tab2 cor0
----
6760
7685
778

query I rowsort
SELECT DISTINCT + col1 * + 18 + - col1 * col1 AS col0 FROM tab1 AS cor0
----
-208
65
80

query I rowsort
SELECT 57 * + col1 FROM tab1 AS cor0
----
1482
570
741

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col2 * col0 * - cor0.col1 col1 FROM tab2 AS cor0
----
119652
51034
5859

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3567
SELECT ALL + - CAST( col1 AS SIGNED ) * col2 + - CAST( NULL AS SIGNED ) * + col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3567
SELECT ALL + - CAST ( col1 AS INTEGER ) * col2 + - CAST ( NULL AS INTEGER ) * + col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + ( + col1 ) + - col0 * - 67 AS col0 FROM tab2 AS cor0
----
438
5167
5276

query I rowsort
SELECT DISTINCT + 20 + 31 FROM tab1 cor0
----
51

query I rowsort
SELECT ( col2 ) + col1 AS col2 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT DISTINCT - + col0 * + cor0.col1 * - col0 AS col2 FROM tab1 cor0
----
234
40960
83200

onlyif mysql # use DIV operator for integer division
query I rowsort label-3572
SELECT + 58 + + col1 DIV col1 + + col1 * - 61 AS col2 FROM tab0 AS cor0
----
-5187
-5492
-5858

skipif mysql # not compatible
query I rowsort label-3572
SELECT + 58 + + col1 / col1 + + col1 * - 61 AS col2 FROM tab0 AS cor0
----
-5187
-5492
-5858

query I rowsort
SELECT ALL - + 89 * + 76 FROM tab2 cor0
----
-6764
-6764
-6764

query I rowsort
SELECT - col2 + - ( + col1 ) * 80 + - col2 AS col1 FROM tab2 AS cor0
----
-1436
-2534
-4772

query I rowsort
SELECT - 25 + col2 FROM tab1 AS cor0
----
29
32
71

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3576
SELECT - CAST( + col2 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-26
-27
-38

skipif mysql # not compatible
query I rowsort label-3576
SELECT - CAST ( + col2 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT col1 + - col2 * - col1 + cor0.col1 AS col1 FROM tab1 cor0
----
1274
1456
590

query I rowsort
SELECT + col1 * col0 * col1 AS col0 FROM tab0 AS cor0
----
177504
329315
737009

query I rowsort
SELECT - - col0 + + col0 + col0 AS col0 FROM tab1 AS cor0
----
192
240
9

query I rowsort
SELECT + ( col0 ) * cor0.col0 + 77 + + col1 FROM tab1 AS cor0
----
112
4183
6490

query I rowsort
SELECT - + col0 * - col1 + col0 + col1 AS col2 FROM tab2 cor0
----
1439
255
4739

query I rowsort
SELECT - 30 * tab0.col2 * - col0 FROM tab0
----
1050
218940
23760

query I rowsort
SELECT + col0 * - ( col2 ) * col1 AS col2 FROM tab0 AS cor0
----
-3395
-664118
-68112

query I rowsort
SELECT col0 * 79 * - col2 AS col2 FROM tab0 AS cor0
----
-2765
-576542
-62568

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 45 + cor0.col2 col0 FROM tab2, tab0 AS cor0
----
127
46
78

query I rowsort
SELECT - 12 FROM tab2, tab1 cor0
----
9 values hashing to e698dd57d3aac30af14ce35da434bb45

query I rowsort
SELECT ALL 95 * - col1 AS col0 FROM tab0
----
-8170
-8645
-9215

query I rowsort
SELECT + + 72 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49

query I rowsort
SELECT ALL tab2.col0 * - 85 AS col2 FROM tab2
----
-595
-6630
-6715

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 64 + tab2.col0 col0 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to f79524cd1eb949d20db419d52c3f1831

query I rowsort
SELECT DISTINCT col2 * col0 + tab0.col2 AS col0 FROM tab0
----
36
7380
825

query I rowsort
SELECT ALL - col2 + + 9 * + tab2.col1 + col2 * + col2 * 5 FROM tab2
----
3885
3897
7335

query I rowsort
SELECT ALL col0 * + 74 AS col2 FROM tab0
----
1776
2590
6586

query I rowsort
SELECT cor0.col0 AS col2 FROM tab1, tab2 AS cor0, tab2 cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

query I rowsort
SELECT - + col1 - - col2 AS col2 FROM tab2 AS cor0
----
-33
-4
21

query I rowsort
SELECT + col1 * 68 FROM tab0 AS cor0
----
5848
6188
6596

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3597
SELECT col2 + CAST( NULL AS SIGNED ) * - tab1.col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3597
SELECT col2 + CAST ( NULL AS INTEGER ) * - tab1.col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - tab0.col2 FROM tab0, tab2 AS cor0, tab0 cor1
----
-1
-33
-82

query I rowsort
SELECT DISTINCT - col0 * + 19 AS col0 FROM tab2 AS cor0
----
-133
-1482
-1501

query I rowsort
SELECT col0 * - col0 + - ( + col1 ) FROM tab2 AS cor0
----
-6143
-6258
-80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3601
SELECT ALL - - col1 * - CAST( - col1 AS SIGNED ) + + col1 FROM tab2 AS cor0
----
306
3540
992

skipif mysql # not compatible
query I rowsort label-3601
SELECT ALL - - col1 * - CAST ( - col1 AS INTEGER ) + + col1 FROM tab2 AS cor0
----
306
3540
992

query I rowsort
SELECT col1 + - ( col0 ) * + col1 FROM tab0 cor0
----
-1978
-3298
-8008

onlyif mysql # use DIV operator for integer division
query I rowsort label-3603
SELECT DISTINCT - cor0.col2 + - 88 DIV + 90 FROM tab2 cor0
----
-26
-27
-38

skipif mysql # not compatible
query I rowsort label-3603
SELECT DISTINCT - cor0.col2 + - 88 / + 90 FROM tab2 cor0
----
-26
-27
-38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 + + col0 col2 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT + - col2 + + cor0.col1 AS col0 FROM tab2 AS cor0
----
-21
33
4

onlyif mysql # use DIV operator for integer division
query I rowsort label-3606
SELECT - col2 - + tab1.col0 DIV + col0 AS col2 FROM tab1
----
-55
-58
-97

skipif mysql # not compatible
query I rowsort label-3606
SELECT - col2 - + tab1.col0 / + col0 AS col2 FROM tab1
----
-55
-58
-97

query I rowsort
SELECT ALL - 9 * - 26 + - col0 - 30 AS col1 FROM tab2
----
125
126
197

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * 90 - + col1 col0 FROM tab1
----
-1183
-2366
-910

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 80 col1 FROM tab0 cor0
----
80
80
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3610
SELECT col2 + col0 * col0 * - CAST( NULL AS DECIMAL ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3610
SELECT col2 + col0 * col0 * - CAST ( NULL AS REAL ) AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - + col0 * cor0.col1 AS col2 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT DISTINCT - + 97 FROM tab1 cor0
----
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + col2 * col0 col2 FROM tab1 AS cor0
----
216
3705
7776

query I rowsort
SELECT - 43 * + col2 AS col2 FROM tab1 AS cor0
----
-2322
-2451
-4128

query I rowsort
SELECT - + 56 AS col2 FROM tab1 AS cor0
----
-56
-56
-56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 - cor0.col2 col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + 67 + col2 FROM tab2 AS cor0
----
105
93
94

query I rowsort
SELECT col0 * col1 + - 41 * - col2 * col2 AS col1 FROM tab2 cor0
----
30106
32318
60547

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab2.col0 col2 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

query I rowsort
SELECT ALL 66 + col1 + + col2 AS col0 FROM tab2 AS cor0
----
121
124
151

query I rowsort
SELECT + + col0 * - col1 + ( - 9 ) * + col0 AS col0 FROM tab1 AS cor0
----
-105
-1216
-1760

query I rowsort
SELECT DISTINCT - 89 * col1 + - col0 FROM tab1 AS cor0
----
-1237
-2317
-954

query I rowsort
SELECT DISTINCT + tab1.col1 AS col2 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
10
13
26

query I rowsort
SELECT DISTINCT + 80 + + col2 * + ( - col1 ) * col1 FROM tab1 AS cor0
----
-16144
-36424
-5620

query I rowsort
SELECT ALL + col2 + col2 * - ( cor0.col0 ) + col0 AS col2 FROM tab0 AS cor0
----
-7127
-735
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-3626
SELECT 11 DIV col0 AS col0 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3626
SELECT 11 / col0 AS col0 FROM tab2 AS cor0
----
0
0
1

query I rowsort
SELECT ALL 20 * cor0.col1 FROM tab0 AS cor0
----
1720
1820
1940

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3628
SELECT DISTINCT - col0 * - col0 * - CAST( NULL AS DECIMAL ) + - 78 - col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3628
SELECT DISTINCT - col0 * - col0 * - CAST ( NULL AS REAL ) + - 78 - col0 FROM tab2
----
NULL

query I rowsort
SELECT + cor0.col1 * col0 + - col2 AS col2 FROM tab1 AS cor0
----
24
583
944

onlyif mysql # use DIV operator for integer division
query I rowsort label-3630
SELECT ALL - cor0.col0 DIV + ( 54 ) FROM tab2 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-3630
SELECT ALL - cor0.col0 / + ( 54 ) FROM tab2 AS cor0
----
-1
-1
0

query I rowsort
SELECT + cor0.col1 * col0 * col1 + - col0 * + col1 FROM tab1 AS cor0
----
12480
1950
5760

query I rowsort
SELECT + + col0 * col2 - cor0.col0 AS col1 FROM tab1 AS cor0
----
159
3584
7600

query I rowsort
SELECT - + 11 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to 7120875811e4d19a19b69cd34b6bc202

query I rowsort
SELECT DISTINCT + ( - col1 ) + - tab1.col0 AS col0 FROM tab1
----
-29
-74
-93

query I rowsort
SELECT - ( col1 ) * + col1 AS col2 FROM tab1
----
-100
-169
-676

query I rowsort
SELECT DISTINCT col1 * + col1 + 84 AS col1 FROM tab2
----
1045
3565
373

query I rowsort
SELECT DISTINCT + col1 + col0 + col2 FROM tab1 AS cor0
----
131
189
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-3638
SELECT DISTINCT - ( col0 ) + + col1 + 47 DIV 22 FROM tab0 AS cor0
----
4
64

skipif mysql # not compatible
query I rowsort label-3638
SELECT DISTINCT - ( col0 ) + + col1 + 47 / 22 FROM tab0 AS cor0
----
4
64

query I rowsort
SELECT ALL - ( + col1 ) + + col1 AS col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + 55 - 55 AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - 57 + col2 AS col0 FROM tab0 AS cor0
----
-24
-56
25

query I rowsort
SELECT 65 * col2 FROM tab2 AS cor0
----
1690
1755
2470

query I rowsort
SELECT ALL + - col2 + - cor0.col2 * col2 FROM tab2 cor0
----
-1482
-702
-756

query I rowsort
SELECT + col0 * 63 FROM tab2 AS cor0
----
441
4914
4977

query I rowsort
SELECT col1 - - ( 89 ) AS col1 FROM tab2
----
106
120
148

query I rowsort
SELECT ALL col2 + ( - col0 + - col0 ) AS col1 FROM tab2
----
-120
-130
13

query I rowsort
SELECT - col0 - 26 AS col1 FROM tab2
----
-104
-105
-33

onlyif mysql # use DIV operator for integer division
query I rowsort label-3648
SELECT tab2.col1 + tab2.col1 DIV 93 + + 36 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 81b3499a3dda7a75ea5189459985bbd9

skipif mysql # not compatible
query I rowsort label-3648
SELECT tab2.col1 + tab2.col1 / 93 + + 36 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 81b3499a3dda7a75ea5189459985bbd9

query I rowsort
SELECT ALL col1 * 95 + 26 + + col1 * col0 FROM tab2
----
10233
2984
3188

query I rowsort
SELECT DISTINCT 72 * col0 AS col1 FROM tab1
----
216
4608
5760

query I rowsort
SELECT col1 * - col0 + col0 FROM tab2
----
-1264
-210
-4524

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3652
SELECT + CAST( - 22 AS SIGNED ) FROM tab2 AS cor0
----
-22
-22
-22

skipif mysql # not compatible
query I rowsort label-3652
SELECT + CAST ( - 22 AS INTEGER ) FROM tab2 AS cor0
----
-22
-22
-22

query I rowsort
SELECT DISTINCT col0 + ( col0 ) + col2 FROM tab1 AS cor0
----
185
256
60

query I rowsort
SELECT ALL 13 * col2 FROM tab0
----
1066
13
429

query I rowsort
SELECT + + col1 + ( cor0.col1 ) FROM tab2 AS cor0
----
118
34
62

query I rowsort
SELECT - col0 * - 61 + ( col1 ) AS col1 FROM tab2 AS cor0
----
458
4817
4836

query I rowsort
SELECT ALL + col1 + + 93 AS col0 FROM tab2 AS cor0
----
110
124
152

query I rowsort
SELECT DISTINCT - col2 + 47 FROM tab2 cor0
----
20
21
9

query I rowsort
SELECT ALL - - col0 + 18 AS col0 FROM tab2 AS cor0
----
25
96
97

query I rowsort
SELECT ALL - col1 + + col0 * + col2 * - col1 AS col2 FROM tab1 AS cor0
----
-36490
-4238
-99853

query I rowsort
SELECT DISTINCT + col0 + + cor0.col1 AS col2 FROM tab1 AS cor0
----
29
74
93

onlyif mysql # use DIV operator for integer division
query I rowsort label-3662
SELECT DISTINCT 72 DIV col2 + - col2 FROM tab0
----
-31
-82
71

skipif mysql # not compatible
query I rowsort label-3662
SELECT DISTINCT 72 / col2 + - col2 FROM tab0
----
-31
-82
71

query I rowsort
SELECT ALL - col0 + - col1 + col1 AS col2 FROM tab2
----
-7
-78
-79

query I rowsort
SELECT DISTINCT - 9 * + 13 FROM tab0, tab0 AS cor0
----
-117

skipif mysql # not compatible
query I rowsort
SELECT tab0.col2 * + CAST ( col0 AS REAL ) + + col0 AS col2 FROM tab0
----
70
7387
816

query I rowsort
SELECT col0 + - ( 62 ) * - col2 FROM tab2 AS cor0
----
1681
1690
2435

query I rowsort
SELECT DISTINCT col0 * + ( - col1 ) * + cor0.col1 FROM tab2 AS cor0
----
-22831
-271518
-6727

query I rowsort
SELECT - col0 + ( + col1 ) * col0 FROM tab2 AS cor0
----
1264
210
4524

onlyif mysql # use DIV operator for integer division
query I rowsort label-3669
SELECT DISTINCT + col2 DIV ( cor0.col1 ) FROM tab2 AS cor0
----
0
2

skipif mysql # not compatible
query I rowsort label-3669
SELECT DISTINCT + col2 / ( cor0.col1 ) FROM tab2 AS cor0
----
0
2

query I rowsort
SELECT ALL 34 * col2 - tab1.col0 * col1 * - col2 AS col2 FROM tab1
----
103104
38418
6048

query I rowsort
SELECT ALL + col1 * cor0.col0 + + col2 AS col1 FROM tab1 AS cor0
----
1136
132
697

query I rowsort
SELECT + 88 * - col2 - col0 AS col0 FROM tab0 AS cor0
----
-123
-2928
-7305

query I rowsort
SELECT ALL - col2 * + ( - col1 ) + 79 AS col2 FROM tab1 AS cor0
----
1327
1483
649

query I rowsort
SELECT DISTINCT col1 - col1 * + col1 FROM tab2 cor0
----
-272
-3422
-930

query I rowsort
SELECT - ( + ( + col1 ) ) + col1 FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 51 + + col2 * col2 col0 FROM tab2
----
1495
727
780

query I rowsort
SELECT - col1 + cor0.col1 * - col0 FROM tab1 AS cor0
----
-104
-1053
-650

query I rowsort
SELECT ALL + 19 * tab0.col2 + col2 FROM tab0
----
1640
20
660

onlyif mysql # use DIV operator for integer division
query I rowsort label-3679
SELECT ALL - - ( + col0 ) DIV + ( - cor0.col0 ) + col0 * + col2 AS col0 FROM tab2 AS cor0
----
188
2027
3001

skipif mysql # not compatible
query I rowsort label-3679
SELECT ALL - - ( + col0 ) / + ( - cor0.col0 ) + col0 * + col2 AS col0 FROM tab2 AS cor0
----
188
2027
3001

query I rowsort
SELECT DISTINCT 16 + col1 AS col2 FROM tab1 AS cor0
----
26
29
42

query I rowsort
SELECT DISTINCT - 16 * col1 FROM tab1 AS cor0
----
-160
-208
-416

query I rowsort
SELECT - col0 * - col2 - - cor0.col2 FROM tab0 AS cor0
----
36
7380
825

query I rowsort
SELECT ALL - 11 * - tab1.col1 FROM tab1
----
110
143
286

onlyif mysql # use DIV operator for integer division
query I rowsort label-3684
SELECT ALL cor0.col2 DIV + col1 AS col0 FROM tab1 AS cor0
----
2
5
7

skipif mysql # not compatible
query I rowsort label-3684
SELECT ALL cor0.col2 / + col1 AS col0 FROM tab1 AS cor0
----
2
5
7

query I rowsort
SELECT DISTINCT + + 63 AS col2 FROM tab0 AS cor0
----
63

query I rowsort
SELECT - col0 * + cor0.col0 AS col1 FROM tab1 cor0
----
-4096
-6400
-9

query I rowsort
SELECT + col2 * cor0.col1 + + col1 * col2 FROM tab1 AS cor0
----
1140
2496
2808

query I rowsort
SELECT ALL + ( cor0.col2 ) * - col0 + col0 * col1 + + cor0.col2 FROM tab2 cor0
----
-1621
2600
55

query I rowsort
SELECT - ( cor0.col0 ) * - col2 AS col2 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT DISTINCT 14 + - 12 * - col2 FROM tab0 AS cor0
----
26
410
998

query I rowsort
SELECT DISTINCT - - col2 + 28 * col0 FROM tab2 AS cor0
----
2210
223
2250

query I rowsort
SELECT + - 42 + - col2 * - col2 FROM tab1 AS cor0
----
2874
3207
9174

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 + 37 col2 FROM tab0 cor0
----
126
61
72

query I rowsort
SELECT 49 * + 25 + tab2.col1 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 379674ce2e71342689bc78cd72fe6b46

query I rowsort
SELECT ALL 29 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 + cor0.col0 col2 FROM tab1 AS cor0
----
29
74
93

onlyif mysql # use DIV operator for integer division
query I rowsort label-3697
SELECT + col0 + - col2 DIV + col2 - col2 AS col2 FROM tab1 AS cor0
----
-17
-52
6

skipif mysql # not compatible
query I rowsort label-3697
SELECT + col0 + - col2 / + col2 - col2 AS col2 FROM tab1 AS cor0
----
-17
-52
6

query I rowsort
SELECT - - 52 + col1 AS col0 FROM tab0 AS cor0
----
138
143
149

query I rowsort
SELECT DISTINCT ( 26 ) * - col0 FROM tab1
----
-1664
-2080
-78

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3700
SELECT DISTINCT CAST( NULL AS SIGNED ) * - col2 * + col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3700
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - col2 * + col0 FROM tab1
----
NULL

query I rowsort
SELECT + 15 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col0 col0 FROM tab2 AS cor0 CROSS JOIN tab0, tab2 AS cor1
----
7
78
79

query I rowsort
SELECT col0 * - 0 + col1 FROM tab1 AS cor0
----
10
13
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + ( col2 + ( + col2 ) ) col0 FROM tab0 AS cor0
----
-20
-95
73

query I rowsort
SELECT - ( 78 ) AS col2 FROM tab2 AS cor0
----
-78
-78
-78

query I rowsort
SELECT DISTINCT + col2 * + col1 + col1 * + col0 AS col0 FROM tab2 AS cor0
----
1054
1989
6136

query I rowsort
SELECT - - 72 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3708
SELECT CAST( + col0 AS SIGNED ) + tab2.col2 * 62 AS col0 FROM tab2
----
1681
1690
2435

skipif mysql # not compatible
query I rowsort label-3708
SELECT CAST ( + col0 AS INTEGER ) + tab2.col2 * 62 AS col0 FROM tab2
----
1681
1690
2435

query I rowsort
SELECT + 3 + + col1 AS col1 FROM tab0
----
100
89
94

query I rowsort
SELECT + 15 * - ( col1 ) * - 44 AS col1 FROM tab1
----
17160
6600
8580

query I rowsort
SELECT - ( - 65 ) * - col0 FROM tab2
----
-455
-5070
-5135

onlyif mysql # use DIV operator for integer division
query I rowsort label-3712
SELECT col0 + - 10 DIV col2 AS col2 FROM tab0
----
24
25
89

skipif mysql # not compatible
query I rowsort label-3712
SELECT col0 + - 10 / col2 AS col2 FROM tab0
----
24
25
89

query I rowsort
SELECT ALL + tab1.col0 - cor0.col2 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to 5e52e24329c96ca96802109e5c7c8bdf

query I rowsort
SELECT - - 76 AS col1 FROM tab1 AS cor0
----
76
76
76

query I rowsort
SELECT - col0 * + 9 FROM tab1 AS cor0
----
-27
-576
-720

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3716
SELECT - + col1 * CAST( 69 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-1794
-690
-897

skipif mysql # not compatible
query I rowsort label-3716
SELECT - + col1 * CAST ( 69 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-1794
-690
-897

query I rowsort
SELECT ALL - + cor0.col2 - - col1 * + cor0.col1 AS col0 FROM tab1 AS cor0
----
43
622
73

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3718
SELECT ALL - col0 + CAST( NULL AS SIGNED ) * col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3718
SELECT ALL - col0 + CAST ( NULL AS INTEGER ) * col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3719
SELECT DISTINCT col2 DIV CAST( col0 * col0 AS SIGNED ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3719
SELECT DISTINCT col2 / CAST ( col0 * col0 AS INTEGER ) FROM tab2
----
0

query I rowsort
SELECT col0 + 65 FROM tab1
----
129
145
68

query I rowsort
SELECT DISTINCT + col1 * - ( col2 ) AS col1 FROM tab2 cor0
----
-1534
-646
-837

query I rowsort
SELECT ALL + + col0 + 38 * col0 FROM tab1 AS cor0
----
117
2496
3120

query I rowsort
SELECT - + 72 * 91 FROM tab1 AS cor0
----
-6552
-6552
-6552

query I rowsort
SELECT col2 * - 61 AS col2 FROM tab1 AS cor0
----
-3294
-3477
-5856

onlyif mysql # use DIV operator for integer division
query I rowsort label-3725
SELECT DISTINCT - ( + 25 ) + - col1 + - ( - ( + col1 ) ) DIV - col2 FROM tab1 AS cor0
----
-35
-38
-51

skipif mysql # not compatible
query I rowsort label-3725
SELECT DISTINCT - ( + 25 ) + - col1 + - ( - ( + col1 ) ) / - col2 FROM tab1 AS cor0
----
-35
-38
-51

query I rowsort
SELECT DISTINCT 83 * - col2 FROM tab1 AS cor0
----
-4482
-4731
-7968

query I rowsort
SELECT - - ( - col1 ) - - col1 AS col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + col1 + - col2 * col1 - + col1 AS col2 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT - ( - col1 ) + col0 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT ALL - ( - col2 ) + cor0.col0 FROM tab2 AS cor0
----
104
117
34

onlyif mysql # use DIV operator for integer division
query I rowsort label-3731
SELECT + col1 + 65 DIV col0 FROM tab1 AS cor0
----
11
13
47

skipif mysql # not compatible
query I rowsort label-3731
SELECT + col1 + 65 / col0 FROM tab1 AS cor0
----
11
13
47

query I rowsort
SELECT col1 - ( col0 ) FROM tab1
----
-54
-67
23

query I rowsort
SELECT ALL - - 11 - - 44 FROM tab2 AS cor0
----
55
55
55

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3734
SELECT DISTINCT + + ( col2 ) * - col1 + + CAST( NULL AS SIGNED ) AS col0 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3734
SELECT DISTINCT + + ( col2 ) * - col1 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort
SELECT - CAST ( + col2 AS REAL ) FROM tab2 AS cor0
----
-26
-27
-38

onlyif mysql # use DIV operator for integer division
query I rowsort label-3736
SELECT ALL - 34 DIV 55 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-3736
SELECT ALL - 34 / 55 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 39 col0 FROM tab2 AS cor0
----
39
39
39

query I rowsort
SELECT DISTINCT - 82 + + cor0.col1 AS col2 FROM tab0 AS cor0
----
15
4
9

query I rowsort
SELECT + + col2 + cor0.col2 * 84 AS col1 FROM tab2 AS cor0
----
2210
2295
3230

query I rowsort
SELECT DISTINCT ( 49 ) FROM tab1, tab0, tab1 AS cor0
----
49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * cor0.col2 col2 FROM tab1 cor0
----
-1248
-1404
-570

query I rowsort
SELECT DISTINCT + ( col1 * 78 ) + - col0 * col1 FROM tab1
----
-26
140
1950

query I rowsort
SELECT - - 56 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 9c4523312174730bbc525b9977aa99fa

onlyif mysql # use DIV operator for integer division
query I rowsort label-3744
SELECT col2 * - col0 DIV col0 - - 43 DIV - tab0.col2 col0 FROM tab0
----
-34
-44
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3744
SELECT col2 * - col0 / col0 - - 43 / - tab0.col2 col0 FROM tab0
----
-34
-44
-82

onlyif mysql # use DIV operator for integer division
query I rowsort label-3745
SELECT ALL - 9 DIV + col1 AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3745
SELECT ALL - 9 / + col1 AS col0 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL + 75 AS col1 FROM tab1
----
75
75
75

onlyif mysql # use DIV operator for integer division
query I rowsort label-3747
SELECT DISTINCT 67 DIV - col2 FROM tab0 AS cor0
----
-2
-67
0

skipif mysql # not compatible
query I rowsort label-3747
SELECT DISTINCT 67 / - col2 FROM tab0 AS cor0
----
-2
-67
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + cor0.col1 * + cor0.col2 col0 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT + col2 * ( - 85 + + col0 ) AS col2 FROM tab2 cor0
----
-182
-2106
-228

query I rowsort
SELECT col1 + + 41 AS col1 FROM tab1 AS cor0
----
51
54
67

query I rowsort
SELECT - col1 * + 17 AS col0 FROM tab2 AS cor0
----
-1003
-289
-527

query I rowsort
SELECT + col0 + 61 FROM tab1 AS cor0
----
125
141
64

query I rowsort
SELECT col1 * + 56 AS col0 FROM tab0 AS cor0
----
4816
5096
5432

query I rowsort
SELECT + col2 + col0 * + cor0.col1 FROM tab2 AS cor0
----
1381
244
4628

query I rowsort
SELECT + cor0.col1 * - 73 + col2 * + cor0.col0 AS col0 FROM tab1 AS cor0
----
-1736
2918
6731

query I rowsort
SELECT ALL tab1.col1 + + tab1.col1 FROM tab1
----
20
26
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 53 + + col0 col0 FROM tab2
----
131
132
60

query I rowsort
SELECT ALL ( 41 ) FROM tab0 AS cor0
----
41
41
41

query I rowsort
SELECT ALL + ( - ( + col0 ) ) * col1 + + 85 FROM tab1 AS cor0
----
-555
-955
7

query I rowsort
SELECT DISTINCT - 5 + - 94 * cor0.col1 AS col2 FROM tab0 AS cor0
----
-8089
-8559
-9123

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 35 + 69 * + col0 * 57 col0 FROM tab2 AS cor0
----
27566
306809
310742

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + col2 * col0 col1 FROM tab1 AS cor0
----
188
3658
7693

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3763
SELECT ALL 7 * + cor0.col2 + + col0 * - CAST( col1 AS SIGNED ) FROM tab0 AS cor0
----
-1833
-3388
-7525

skipif mysql # not compatible
query I rowsort label-3763
SELECT ALL 7 * + cor0.col2 + + col0 * - CAST ( col1 AS INTEGER ) FROM tab0 AS cor0
----
-1833
-3388
-7525

onlyif mysql # use DIV operator for integer division
query I rowsort label-3764
SELECT - CAST( + col1 AS SIGNED ) DIV col2 FROM tab0 cor0
----
-1
-2
-97

skipif mysql # not compatible
query I rowsort label-3764
SELECT - CAST ( + col1 AS INTEGER ) / col2 FROM tab0 cor0
----
-1
-2
-97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3765
SELECT DISTINCT + CAST( col0 AS SIGNED ) * - col1 FROM tab1 cor0
----
-1040
-640
-78

skipif mysql # not compatible
query I rowsort label-3765
SELECT DISTINCT + CAST ( col0 AS INTEGER ) * - col1 FROM tab1 cor0
----
-1040
-640
-78

query I rowsort
SELECT ALL + + 17 + + col2 AS col2 FROM tab2 AS cor0
----
43
44
55

query I rowsort
SELECT - + 66 * + 27 FROM tab2 AS cor0
----
-1782
-1782
-1782

query I rowsort
SELECT ALL - col2 * - col2 * 56 AS col0 FROM tab1
----
163296
181944
516096

query I rowsort
SELECT DISTINCT - - 80 + - col2 AS col1 FROM tab1 AS cor0
----
-16
23
26

query I rowsort
SELECT ALL - 97 AS col1 FROM tab1 cor0
----
-97
-97
-97

query I rowsort
SELECT ALL + 31 + + 34 * col2 FROM tab0
----
1153
2819
65

query I rowsort
SELECT ALL + 51 FROM tab2, tab2 AS cor0
----
9 values hashing to d8bf0a05c9c4d2a93812d106baae4752

query I rowsort
SELECT DISTINCT col1 * col0 * - 31 + - 65 FROM tab0 AS cor0
----
-105310
-251134
-64049

onlyif mysql # use DIV operator for integer division
query I rowsort label-3774
SELECT 33 DIV + col0 AS col1 FROM tab2
----
0
0
4

skipif mysql # not compatible
query I rowsort label-3774
SELECT 33 / + col0 AS col1 FROM tab2
----
0
0
4

query I rowsort
SELECT 99 - cor0.col0 * + 54 FROM tab0 cor0
----
-1197
-1791
-4707

query I rowsort
SELECT - - ( col0 ) + - 99 FROM tab0 AS cor0
----
-10
-64
-75

query I rowsort
SELECT DISTINCT - ( + cor1.col0 ) FROM tab1, tab2 AS cor0, tab0 AS cor1
----
-24
-35
-89

query I rowsort
SELECT DISTINCT - col1 * 81 * col2 AS col2 FROM tab1 AS cor0
----
-101088
-113724
-46170

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 + 67 + col1 col2 FROM tab2 AS cor0
----
122
125
152

query I rowsort
SELECT ALL + + col1 * col2 - col0 * col1 AS col2 FROM tab2 AS cor0
----
-3068
-697
620

query I rowsort
SELECT - col0 + - 4 FROM tab2 AS cor0
----
-11
-82
-83

query I rowsort
SELECT + + 75 * - col0 AS col1 FROM tab0 cor0
----
-1800
-2625
-6675

query I rowsort
SELECT DISTINCT - cor0.col1 AS col1 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
-17
-31
-59

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3784
SELECT DISTINCT + col0 + cor0.col1 * - col0 + - CAST( + 71 AS SIGNED ) * + cor0.col1 * + col2 AS col1 FROM tab0 AS cor0
----
-10247
-203538
-537812

skipif mysql # not compatible
query I rowsort label-3784
SELECT DISTINCT + col0 + cor0.col1 * - col0 + - CAST ( + 71 AS INTEGER ) * + cor0.col1 * + col2 AS col1 FROM tab0 AS cor0
----
-10247
-203538
-537812

query I rowsort
SELECT - - 50 + col2 * col2 FROM tab2 AS cor0
----
1494
726
779

query I rowsort
SELECT ALL + cor0.col0 * 15 AS col2 FROM tab2 AS cor0
----
105
1170
1185

query I rowsort
SELECT DISTINCT - - cor0.col2 + - 65 FROM tab1 AS cor0
----
-11
-8
31

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3788
SELECT ALL col0 - + ( + ( col1 ) * + CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3788
SELECT ALL col0 - + ( + ( col1 ) * + CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col0 * - 72 FROM tab1 AS cor0
----
-216
-4608
-5760

query I rowsort
SELECT ALL + cor0.col1 * + 73 * col0 FROM tab1 AS cor0
----
46720
5694
75920

query I rowsort
SELECT DISTINCT col1 * 86 AS col0 FROM tab0 AS cor0
----
7396
7826
8342

query I rowsort
SELECT - - ( - col2 ) + - cor0.col2 FROM tab1 AS cor0
----
-108
-114
-192

query I rowsort
SELECT - col2 * 86 AS col0 FROM tab2
----
-2236
-2322
-3268

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3794
SELECT ALL ( col2 ) * col2 + + CAST( NULL AS SIGNED ) * + col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3794
SELECT ALL ( col2 ) * col2 + + CAST ( NULL AS INTEGER ) * + col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col1 * - 85 AS col1 FROM tab2 AS cor0
----
-1445
-2635
-5015

query I rowsort
SELECT ALL + tab1.col1 * col0 * 28 AS col0 FROM tab1
----
17920
2184
29120

query I rowsort
SELECT - + 16 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to be22ac76b42c6f7212ecc0ba7c89eb34

onlyif mysql # use DIV operator for integer division
query I rowsort label-3798
SELECT ALL col2 * col2 + col1 DIV cor0.col0 AS col1 FROM tab1 cor0
----
2924
3249
9216

skipif mysql # not compatible
query I rowsort label-3798
SELECT ALL col2 * col2 + col1 / cor0.col0 AS col1 FROM tab1 cor0
----
2924
3249
9216

query I rowsort
SELECT DISTINCT - col1 + col2 * col1 AS col2 FROM tab0 cor0
----
0
2752
7371

query I rowsort
SELECT - col0 * + col0 + col1 * + col2 AS col2 FROM tab2 cor0
----
-4550
-5595
788

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 66 * + col0 + ( - ( - col2 ) ) * 48 + + col2 col1 FROM tab1 AS cor0
----
2844
7017
9984

query I rowsort
SELECT ALL - - ( col2 ) * - col1 + - 5 AS col1 FROM tab1 AS cor0
----
-1253
-1409
-575

query I rowsort
SELECT ( ( + tab1.col2 ) ) AS col1 FROM tab1
----
54
57
96

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1 cor0, tab2 AS cor1, tab0, tab2 AS cor2
----
3645 values hashing to 6a08afba67ce3272fad6d766e76c67f0

query I rowsort
SELECT DISTINCT col0 * 23 + col0 AS col2 FROM tab2 AS cor0
----
168
1872
1896

query I rowsort
SELECT DISTINCT + col2 + 65 * cor0.col1 FROM tab1 AS cor0
----
1744
707
941

query I rowsort
SELECT col2 * 95 * ( col1 ) + col1 * col2 FROM tab2
----
147264
62016
80352

query I rowsort
SELECT - 31 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to f4b05206ee2fc0cf8007d9c3514885fa

query I rowsort
SELECT ALL col0 * col0 + cor0.col1 AS col2 FROM tab2 AS cor0
----
6143
6258
80

query I rowsort
SELECT tab0.col0 * tab0.col0 * tab0.col2 + - tab0.col0 FROM tab0
----
1190
18984
649433

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * col0 + col2 col2 FROM tab2 AS cor0
----
-162
-2002
-2964

query I rowsort
SELECT ALL - 13 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 1c6aaa07ba8d3dc01ee616e16bef60f2

query I rowsort
SELECT - - col2 * col2 + - ( + col0 ) AS col2 FROM tab1 AS cor0
----
2913
3185
9136

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + + col2 + col1 col2 FROM tab0 AS cor0
----
195
205
264

query I rowsort
SELECT - ( + 24 ) FROM tab0, tab2 cor0
----
9 values hashing to 797d0f7c145f8ac623924448c714bbcc

query I rowsort
SELECT ALL + col1 + - ( + 34 ) AS col0 FROM tab0 AS cor0
----
52
57
63

onlyif mysql # use DIV operator for integer division
query I rowsort label-3817
SELECT + col1 + col2 * ( col0 + 12 ) DIV 30 AS col2 FROM tab2 AS cor0
----
132
137
48

skipif mysql # not compatible
query I rowsort label-3817
SELECT + col1 + col2 * ( col0 + 12 ) / 30 AS col2 FROM tab2 AS cor0
----
132
137
48

query I rowsort
SELECT 90 * tab0.col2 + - tab0.col1 AS col1 FROM tab0
----
-7
2884
7289

query I rowsort
SELECT DISTINCT 19 + 97 FROM tab1
----
116

query I rowsort
SELECT ( - 55 ) * col0 + - ( + col0 ) + - col1 * - tab1.col1 * + col1 FROM tab1
----
-2283
-2584
17408

onlyif mysql # use DIV operator for integer division
query I rowsort label-3821
SELECT col1 DIV + 3 + + col1 + 8 AS col2 FROM tab2
----
30
49
86

skipif mysql # not compatible
query I rowsort label-3821
SELECT col1 / + 3 + + col1 + 8 AS col2 FROM tab2
----
30
49
86

query I rowsort
SELECT DISTINCT + 73 - - col0 FROM tab2 AS cor0
----
151
152
80

query I rowsort
SELECT + - 22 - col0 * col2 FROM tab0 AS cor0
----
-57
-7320
-814

query I rowsort
SELECT 11 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00

query I rowsort
SELECT DISTINCT ( - col0 * col0 ) + col0 FROM tab0
----
-1190
-552
-7832

query I rowsort
SELECT + - cor0.col1 + col0 AS col0 FROM tab2 AS cor0
----
-24
19
62

query I rowsort
SELECT - 75 * + col0 FROM tab0 AS cor0
----
-1800
-2625
-6675

query I rowsort
SELECT ALL - col0 + - col0 * 99 FROM tab2 AS cor0
----
-700
-7800
-7900

query I rowsort
SELECT + + col1 * + col2 + - ( 20 ) FROM tab0 AS cor0
----
2818
7442
77

query I rowsort
SELECT ALL - + col0 + cor0.col2 FROM tab2 AS cor0
----
-41
-52
20

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3831
SELECT - - col0 * - col1 + CAST( col1 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-1326
-186
-4543

skipif mysql # not compatible
query I rowsort label-3831
SELECT - - col0 * - col1 + CAST ( col1 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-1326
-186
-4543

query I rowsort
SELECT DISTINCT - - col0 * - col0 + - 74 AS col1 FROM tab0 cor0
----
-1299
-650
-7995

query I rowsort
SELECT ALL + col0 - col2 AS col2 FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT - 5 * - col1 + - ( - col0 ) * - col1 AS col1 FROM tab0 AS cor0
----
-1634
-2910
-7644

query I rowsort
SELECT DISTINCT + + 8 + cor0.col2 FROM tab0 AS cor0
----
41
9
90

onlyif mysql # use DIV operator for integer division
query I rowsort label-3836
SELECT DISTINCT 35 * + col0 DIV + col0 AS col2 FROM tab2 AS cor0
----
35

skipif mysql # not compatible
query I rowsort label-3836
SELECT DISTINCT 35 * + col0 / + col0 AS col2 FROM tab2 AS cor0
----
35

query I rowsort
SELECT ALL - cor0.col0 AS col1 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to 729c1edda9332398299f39cd174ed840

onlyif mysql # use DIV operator for integer division
query I rowsort label-3838
SELECT - tab1.col2 * 44 DIV + col2 + col0 AS col0 FROM tab1
----
-41
20
36

skipif mysql # not compatible
query I rowsort label-3838
SELECT - tab1.col2 * 44 / + col2 + col0 AS col0 FROM tab1
----
-41
20
36

query I rowsort
SELECT DISTINCT + col0 * + col1 - col2 FROM tab1 AS cor0
----
24
583
944

query I rowsort
SELECT DISTINCT 39 AS col0 FROM tab0, tab0 AS cor0, tab0 cor1
----
39

query I rowsort
SELECT 61 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 07149905a72bd87553381f34d19ed290

query I rowsort
SELECT ALL col1 * 64 + + col2 AS col1 FROM tab2 AS cor0
----
1126
2011
3802

query I rowsort
SELECT ALL + col2 + col2 - + col0 AS col0 FROM tab2 AS cor0
----
-26
-3
47

query I rowsort
SELECT - 84 + cor0.col0 * col0 AS col2 FROM tab0 AS cor0
----
1141
492
7837

query I rowsort
SELECT ALL - - 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-3846
SELECT + CAST( col2 AS SIGNED ) * col2 - + 27 col0 FROM tab2 cor0
----
1417
649
702

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3846
SELECT + CAST ( col2 AS INTEGER ) * col2 - + 27 col0 FROM tab2 cor0
----
1417
649
702

query I rowsort
SELECT - - col1 * + col1 * + col1 + col2 * 83 AS col1 FROM tab0 AS cor0
----
638795
760377
912756

query I rowsort
SELECT ALL - + col2 - - col1 * - col0 AS col1 FROM tab2 AS cor0
----
-1381
-244
-4628

query I rowsort
SELECT ALL - cor0.col2 * + 79 + col2 FROM tab0 AS cor0
----
-2574
-6396
-78

query I rowsort
SELECT DISTINCT + 22 + cor0.col0 FROM tab1 cor0
----
102
25
86

query I rowsort
SELECT - + 70 * 4 + col2 FROM tab2 AS cor0
----
-242
-253
-254

query I rowsort
SELECT col1 + + 47 FROM tab1
----
57
60
73

query I rowsort
SELECT cor0.col0 - 55 AS col1 FROM tab1 AS cor0
----
-52
25
9

query I rowsort
SELECT DISTINCT + + 66 * col2 FROM tab2 AS cor0
----
1716
1782
2508

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3855
SELECT DISTINCT + + col1 * col0 + CAST( col1 AS SIGNED ) FROM tab2 AS cor0
----
1360
248
4661

skipif mysql # not compatible
query I rowsort label-3855
SELECT DISTINCT + + col1 * col0 + CAST ( col1 AS INTEGER ) FROM tab2 AS cor0
----
1360
248
4661

query I rowsort
SELECT DISTINCT - - ( - col2 ) * - col2 AS col0 FROM tab1 AS cor0
----
2916
3249
9216

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 80 * - col0 col1 FROM tab1 AS cor0
----
240
5120
6400

query I rowsort
SELECT ALL + - 12 AS col0 FROM tab0 AS cor0
----
-12
-12
-12

query I rowsort
SELECT - + ( col2 ) * + col1 + + col2 FROM tab1 cor0
----
-1152
-1350
-513

query I rowsort
SELECT + + cor0.col0 * col1 + - col1 AS col2 FROM tab2 cor0
----
1326
186
4543

query I rowsort
SELECT - 2 * + col2 + + col1 FROM tab1 cor0
----
-104
-179
-82

query I rowsort
SELECT DISTINCT - col1 * - col2 * + col0 AS col2 FROM tab1 cor0
----
36480
4212
99840

query I rowsort
SELECT col1 * ( + col0 + col1 ) FROM tab0 AS cor0
----
12804
16380
9460

query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab1 cor0, tab2 cor1, tab2 AS cor2
----
972 values hashing to 64ce0e736818e884f0a9ecd075da5eb7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + ( + col1 ) col2 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT + - col0 * - ( col1 ) AS col0 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT + 89 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743

onlyif mysql # use DIV operator for integer division
query I rowsort label-3868
SELECT col0 * col1 DIV + 24 + + col1 AS col1 FROM tab1
----
29
36
56

skipif mysql # not compatible
query I rowsort label-3868
SELECT col0 * col1 / + 24 + + col1 AS col1 FROM tab1
----
29
36
56

query I rowsort
SELECT - col0 + - 28 AS col1 FROM tab2 AS cor0
----
-106
-107
-35

onlyif mysql # use DIV operator for integer division
query I rowsort label-3870
SELECT + col1 DIV 84 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3870
SELECT + col1 / 84 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - col1 * - 60 AS col0 FROM tab0 AS cor0
----
5160
5460
5820

onlyif mysql # use DIV operator for integer division
query I rowsort label-3872
SELECT col2 DIV col0 AS col2 FROM tab0 cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3872
SELECT col2 / col0 AS col2 FROM tab0 cor0
----
0
0
1

query I rowsort
SELECT ALL 86 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19

query I rowsort
SELECT DISTINCT 5 AS col0 FROM tab2, tab2 AS cor0
----
5

query I rowsort
SELECT ( + tab1.col2 ) + - col2 * col0 FROM tab1
----
-108
-3591
-7584

onlyif mysql # use DIV operator for integer division
query I rowsort label-3876
SELECT ALL 52 DIV 59 + - col0 DIV col0 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3876
SELECT ALL 52 / 59 + - col0 / col0 FROM tab0
----
-1
-1
-1

query I rowsort
SELECT - col2 * col0 + col1 * ( + col2 ) FROM tab2 AS cor0
----
-2356
-494
648

query I rowsort
SELECT - ( - col2 * col2 ) FROM tab2
----
1444
676
729

query I rowsort
SELECT ALL + 76 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3880
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col1 FROM tab1, tab1 AS cor0 CROSS JOIN tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3880
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col1 FROM tab1, tab1 AS cor0 CROSS JOIN tab0
----
NULL

query I rowsort
SELECT + 24 + - col2 * cor0.col1 * - 26 FROM tab0 cor0
----
194036
2546
73812

query I rowsort
SELECT col0 * - col1 + col2 * tab1.col1 AS col0 FROM tab1
----
-70
1326
208

query I rowsort
SELECT - + col2 + - 29 AS col0 FROM tab1 AS cor0
----
-125
-83
-86

query I rowsort
SELECT DISTINCT col2 * + 65 AS col0 FROM tab1 cor0
----
3510
3705
6240

query I rowsort
SELECT ALL cor0.col2 * + ( + col1 ) FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT + col0 + 28 * col0 FROM tab2 AS cor0
----
203
2262
2291

query I rowsort
SELECT - + ( - 91 ) + col1 * - col1 * - 88 AS col0 FROM tab1 AS cor0
----
14963
59579
8891

query I rowsort
SELECT DISTINCT + 12 * + col1 FROM tab0 AS cor0
----
1032
1092
1164

query I rowsort
SELECT - 94 * - col2 FROM tab2 AS cor0
----
2444
2538
3572

query I rowsort
SELECT + 93 + + col1 * col0 AS col2 FROM tab2 AS cor0
----
1436
310
4695

query I rowsort
SELECT DISTINCT col0 * + cor0.col2 - - col0 AS col1 FROM tab2 AS cor0
----
196
2106
3081

query I rowsort
SELECT + 31 AS col1 FROM tab2, tab0 AS cor0, tab0 AS cor1, tab0 AS cor2
----
81 values hashing to 0bb6d1445d82a11417f7bb2ec248ca9c

query I rowsort
SELECT DISTINCT - 45 * col0 + + col1 FROM tab0 AS cor0
----
-1478
-3914
-994

query I rowsort
SELECT - 40 + col2 AS col0 FROM tab2 AS cor0
----
-13
-14
-2

query I rowsort
SELECT DISTINCT - col0 * + col1 * + col1 AS col1 FROM tab2 AS cor0
----
-22831
-271518
-6727

query I rowsort
SELECT - col2 * 69 AS col0 FROM tab1 AS cor0
----
-3726
-3933
-6624

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 + - col2 col1 FROM tab2 AS cor0
----
-20
41
52

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3898
SELECT + CAST( NULL AS SIGNED ) AS col2 FROM tab1, tab1 cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-3898
SELECT + CAST ( NULL AS INTEGER ) AS col2 FROM tab1, tab1 cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT + col0 * col0 + + col1 + + col1 * - 19 AS col0 FROM tab0 AS cor0
----
-521
-972
6283

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3900
SELECT CAST( NULL AS SIGNED ) * 97 + + col2 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3900
SELECT CAST ( NULL AS INTEGER ) * 97 + + col2 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 74 col1 FROM tab2, tab0 cor0
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31

query I rowsort
SELECT ALL col0 * - col2 * ( + col2 + col2 ) AS col2 FROM tab1
----
-1474560
-17496
-415872

query I rowsort
SELECT - - 88 FROM tab2 cor0
----
88
88
88

onlyif mysql # use DIV operator for integer division
query I rowsort label-3904
SELECT 36 DIV - cor0.col2 + - col2 + - col0 FROM tab1 AS cor0
----
-121
-176
-57

skipif mysql # not compatible
query I rowsort label-3904
SELECT 36 / - cor0.col2 + - col2 + - col0 FROM tab1 AS cor0
----
-121
-176
-57

query I rowsort
SELECT ALL - + col2 + - cor0.col2 * cor0.col0 AS col2 FROM tab0 AS cor0
----
-36
-7380
-825

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 * col2 col0 FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT DISTINCT - - 50 * + col2 FROM tab2 AS cor0
----
1300
1350
1900

query I rowsort
SELECT DISTINCT col1 * col1 + 58 * - tab2.col1 + col1 * - 56 * - tab2.col1 FROM tab2
----
15487
194995
52979

query I rowsort
SELECT + col1 + + col2 * ( - col2 ) - col0 * - 65 AS col0 FROM tab0
----
-848
2371
557

query I rowsort
SELECT + col0 * col2 * - col0 - + tab1.col1 * + 71 FROM tab1
----
-2332
-234182
-615323

query I rowsort
SELECT DISTINCT - col2 * + tab0.col1 AS col0 FROM tab0
----
-2838
-7462
-97

query I rowsort
SELECT DISTINCT 29 AS col1 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
29

query I rowsort
SELECT DISTINCT col2 + + col1 * col2 FROM tab1
----
1344
1458
627

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + col1 ) + + col0 * - col0 col1 FROM tab0 AS cor0
----
-1128
-490
-7830

query I rowsort
SELECT ALL + 56 + + col1 AS col1 FROM tab2 AS cor0
----
115
73
87

query I rowsort
SELECT + + 8 + col1 * + col2 FROM tab1 AS cor0
----
1256
1412
578

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 + + 76 * col2 + col2 + col1 * col1 * - col2 AS col1 FROM tab0 cor0
----
-241527
-672728
-9332

query I rowsort
SELECT + ( cor0.col0 ) + - col2 * - cor0.col0 + + col0 FROM tab0 AS cor0
----
105
7476
840

query I rowsort
SELECT ALL 74 FROM tab1, tab2, tab0 cor0
----
27 values hashing to dc22979e6d261795bd3ce2990fdbbf82

query I rowsort
SELECT - 7 + col2 * - col1 AS col2 FROM tab2
----
-1541
-653
-844

query I rowsort
SELECT DISTINCT - ( col1 ) * - col2 + 90 AS col1 FROM tab0
----
187
2928
7552

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + - col2 col0 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT + col2 * - col1 + col1 FROM tab2
----
-1475
-629
-806

query I rowsort
SELECT ALL 41 * cor0.col2 FROM tab0 AS cor0
----
1353
3362
41

query I rowsort
SELECT ALL - col0 + col1 * 59 AS col0 FROM tab0 AS cor0
----
5050
5280
5688

query I rowsort
SELECT cor0.col0 * col2 + - col0 AS col0 FROM tab2 AS cor0
----
182
1950
2923

query I rowsort
SELECT DISTINCT + col2 * - cor0.col2 * 35 AS col2 FROM tab1 AS cor0
----
-102060
-113715
-322560

query I rowsort
SELECT ALL - col0 * + 58 - + 15 FROM tab2 AS cor0
----
-421
-4539
-4597

onlyif mysql # use DIV operator for integer division
query I rowsort label-3930
SELECT ALL + col0 + + col2 DIV - col0 AS col1 FROM tab2 cor0
----
4
78
79

skipif mysql # not compatible
query I rowsort label-3930
SELECT ALL + col0 + + col2 / - col0 AS col1 FROM tab2 cor0
----
4
78
79

query I rowsort
SELECT cor0.col2 * + 9 FROM tab0 AS cor0
----
297
738
9

query I rowsort
SELECT + - col0 - + 19 * col1 * col0 AS col1 FROM tab1 AS cor0
----
-12224
-1485
-19840

query I rowsort
SELECT col2 - - 56 * - 56 FROM tab0 AS cor0
----
-3054
-3103
-3135

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3934
SELECT DISTINCT + col1 + CAST( col0 * col1 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
1360
248
4661

skipif mysql # not compatible
query I rowsort label-3934
SELECT DISTINCT + col1 + CAST ( col0 * col1 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
1360
248
4661

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3935
SELECT ALL - col1 - + CAST( col1 AS SIGNED ) * + col0 AS col1 FROM tab2 AS cor0
----
-1360
-248
-4661

skipif mysql # not compatible
query I rowsort label-3935
SELECT ALL - col1 - + CAST ( col1 AS INTEGER ) * + col0 AS col1 FROM tab2 AS cor0
----
-1360
-248
-4661

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3936
SELECT CAST( + 5 * cor0.col1 AS SIGNED ) FROM tab1, tab0 AS cor0
----
9 values hashing to a3cd0c0b28963a2380d707bcd6aedc1a

skipif mysql # not compatible
query I rowsort label-3936
SELECT CAST ( + 5 * cor0.col1 AS INTEGER ) FROM tab1, tab0 AS cor0
----
9 values hashing to a3cd0c0b28963a2380d707bcd6aedc1a

query I rowsort
SELECT + tab0.col2 + tab0.col2 + + col0 AS col2 FROM tab0
----
253
37
90

query I rowsort
SELECT ALL col0 * - 41 * + col1 FROM tab2 cor0
----
-188682
-55063
-8897

query I rowsort
SELECT col2 * 13 - - 94 AS col2 FROM tab1 AS cor0
----
1342
796
835

onlyif mysql # use DIV operator for integer division
query I rowsort label-3940
SELECT DISTINCT - col0 + col2 DIV - col1 FROM tab0 AS cor0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-3940
SELECT DISTINCT - col0 + col2 / - col1 FROM tab0 AS cor0
----
-24
-35
-89

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3941
SELECT - col0 * + CAST( - cor0.col2 AS SIGNED ) + col0 AS col0 FROM tab2 AS cor0
----
196
2106
3081

skipif mysql # not compatible
query I rowsort label-3941
SELECT - col0 * + CAST ( - cor0.col2 AS INTEGER ) + col0 AS col0 FROM tab2 AS cor0
----
196
2106
3081

query I rowsort
SELECT - + col0 * - 81 + 85 * - col0 * ( col0 ) AS col2 FROM tab1 AS cor0
----
-342976
-522
-537520

query I rowsort
SELECT DISTINCT - col0 * - ( 18 ) FROM tab2 AS cor0
----
126
1404
1422

onlyif mysql # use DIV operator for integer division
query I rowsort label-3944
SELECT ALL col0 + 44 DIV - col0 FROM tab2 cor0
----
1
78
79

skipif mysql # not compatible
query I rowsort label-3944
SELECT ALL col0 + 44 / - col0 FROM tab2 cor0
----
1
78
79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3945
SELECT + - col2 / + CAST( NULL AS SIGNED ) - col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3945
SELECT + - col2 / + CAST ( NULL AS INTEGER ) - col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col2 + - 19 AS col0 FROM tab1 AS cor0
----
-115
-73
-76

query I rowsort
SELECT col2 + + col1 * col1 FROM tab1 AS cor0
----
157
265
730

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3948
SELECT DISTINCT + col2 + - CAST( NULL AS SIGNED ) * col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3948
SELECT DISTINCT + col2 + - CAST ( NULL AS INTEGER ) * col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3949
SELECT + cor0.col1 + + col2 * col2 DIV ( + col0 ) FROM tab2 AS cor0
----
135
35
67

skipif mysql # not compatible
query I rowsort label-3949
SELECT + cor0.col1 + + col2 * col2 / ( + col0 ) FROM tab2 AS cor0
----
135
35
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + 70 ) col0 FROM tab1
----
70
70
70

query I rowsort
SELECT DISTINCT - 64 + - cor0.col0 + - 39 AS col0 FROM tab2, tab2 cor0
----
-110
-181
-182

query I rowsort
SELECT DISTINCT 36 * + tab1.col0 * col2 FROM tab1
----
131328
276480
5832

query I rowsort
SELECT 71 + + tab1.col0 FROM tab1
----
135
151
74

query I rowsort
SELECT ALL - 13 * + col2 AS col2 FROM tab0 AS cor0
----
-1066
-13
-429

query I rowsort
SELECT ALL col2 + ( col1 * - col0 ) FROM tab2
----
-1305
-190
-4576

query I rowsort
SELECT DISTINCT - col0 + - 83 FROM tab1
----
-147
-163
-86

query I rowsort
SELECT tab1.col1 + + ( - col2 ) FROM tab1
----
-28
-47
-83

query I rowsort
SELECT col1 + + ( + col2 ) FROM tab1
----
109
67
80

query I rowsort
SELECT col2 * col0 + + 27 FROM tab0
----
62
7325
819

query I rowsort
SELECT ALL - 22 FROM tab2, tab1 AS cor0
----
9 values hashing to fae46f8148b02964f7145eb6ed5819f9

query I rowsort
SELECT DISTINCT cor0.col2 * col2 + - col0 FROM tab0 cor0
----
-34
1065
6635

query I rowsort
SELECT col2 * + 28 AS col1 FROM tab0
----
2296
28
924

query I rowsort
SELECT + - ( - col2 ) * col0 + + cor0.col2 FROM tab1 AS cor0
----
216
3705
7776

query I rowsort
SELECT DISTINCT ( cor0.col2 ) * + col2 AS col2 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT - + col2 * + ( + col0 ) FROM tab2 cor0
----
-189
-2028
-3002

query I rowsort
SELECT ALL - col1 * + 20 + cor0.col2 * col0 FROM tab1 AS cor0
----
-358
3448
7420

query I rowsort
SELECT ALL col1 * col2 + cor0.col0 * - col2 AS col1 FROM tab0 AS cor0
----
164
2046
62

query I rowsort
SELECT + - ( - 18 ) AS col0 FROM tab0 AS cor0
----
18
18
18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( + col1 ) + cor0.col0 col2 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT + + ( col2 ) * + col1 FROM tab0 AS cor0
----
2838
7462
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor1.col0 * - cor0.col1 * + tab2.col0 col1 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 1e69fc6984b850a5b14bd62ff80cce94

query I rowsort
SELECT - col0 - col1 * tab0.col1 AS col1 FROM tab0
----
-7420
-8370
-9444

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3973
SELECT + CAST( NULL AS SIGNED ) * col1 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3973
SELECT + CAST ( NULL AS INTEGER ) * col1 AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - + 11 + + col1 * - col2 AS col1 FROM tab2 AS cor0
----
-1545
-657
-848

query I rowsort
SELECT - ( + 50 ) FROM tab1 AS cor0
----
-50
-50
-50

query I rowsort
SELECT + cor0.col0 * + cor0.col2 * col0 FROM tab0 AS cor0
----
1225
19008
649522

query I rowsort
SELECT - cor0.col0 * + cor0.col0 * - col2 + - col0 AS col0 FROM tab0 AS cor0
----
1190
18984
649433

query I rowsort
SELECT + + 65 AS col2 FROM tab2 AS cor0
----
65
65
65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + col1 ) col1 FROM tab0
----
86
91
97

query I rowsort
SELECT ALL 41 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + col1 * - cor0.col0 + - col0 col2 FROM tab1 AS cor0
----
-1200
-768
-84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col0 * + col1 * + col0 - + col1 * - col0 col2 FROM tab2 AS cor0
----
107440
1736
363558

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - cor0.col0 + col2 col2 FROM tab1 AS cor0
----
-24
-583
-944

query I rowsort
SELECT + col1 + col1 * - 79 FROM tab0 AS cor0
----
-6708
-7098
-7566

query I rowsort
SELECT cor0.col0 + 64 FROM tab2 cor0
----
142
143
71

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3986
SELECT + - col2 * CAST( col2 AS SIGNED ) * col1 FROM tab1 AS cor0
----
-119808
-32490
-75816

skipif mysql # not compatible
query I rowsort label-3986
SELECT + - col2 * CAST ( col2 AS INTEGER ) * col1 FROM tab1 AS cor0
----
-119808
-32490
-75816

query I rowsort
SELECT - cor0.col0 + + col2 - col2 AS col1 FROM tab2 AS cor0
----
-7
-78
-79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3988
SELECT + col1 / CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3988
SELECT + col1 / CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + cor0.col2 * - col2 + - 32 FROM tab1 AS cor0
----
-2948
-3281
-9248

query I rowsort
SELECT + col0 * cor0.col1 + + cor0.col0 AS col0 FROM tab0 AS cor0
----
2088
3430
8188

query I rowsort
SELECT DISTINCT + 8 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
8

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3992
SELECT + col0 * CAST( NULL AS DECIMAL ) / - ( - col2 * - col2 ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3992
SELECT + col0 * CAST ( NULL AS REAL ) / - ( - col2 * - col2 ) AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 * - tab0.col1 * + tab0.col2 - - col2 AS col1 FROM tab0
----
-3394
-664036
-68079

query I rowsort
SELECT ALL - - col0 + - 82 * - col2 FROM tab2 AS cor0
----
2210
2221
3195

query I rowsort
SELECT + + col0 * col1 + + col2 AS col0 FROM tab1 AS cor0
----
1136
132
697

query I rowsort
SELECT DISTINCT col1 + - col2 * - 96 + col2 * - col2 AS col2 FROM tab2
----
1879
1894
2221

query I rowsort
SELECT ALL ( tab2.col2 ) * + 2 + 87 + + col0 AS col1 FROM tab2
----
148
217
242

query I rowsort
SELECT ALL col1 + col0 * 66 AS col1 FROM tab2
----
493
5207
5231

query I rowsort
SELECT 16 + - col2 FROM tab0
----
-17
-66
15

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4000
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0, tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-4000
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0, tab2 AS cor1
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4001
SELECT DISTINCT + col0 * 19 + - col1 DIV col1 col1 FROM tab0
----
1690
455
664

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4001
SELECT DISTINCT + col0 * 19 + - col1 / col1 col1 FROM tab0
----
1690
455
664

query I rowsort
SELECT DISTINCT - 53 AS col1 FROM tab2, tab2 AS cor0, tab0, tab1 AS cor1
----
-53

query I rowsort
SELECT ALL + col2 * 17 AS col2 FROM tab2 AS cor0
----
442
459
646

query I rowsort
SELECT + + col2 * 81 AS col0 FROM tab2 AS cor0
----
2106
2187
3078

query I rowsort
SELECT - col0 * col0 + + cor0.col2 AS col1 FROM tab2 cor0
----
-22
-6058
-6203

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4006
SELECT ALL - - col1 * + CAST( NULL AS DECIMAL ) * ( + col1 * 50 ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4006
SELECT ALL - - col1 * + CAST ( NULL AS REAL ) * ( + col1 * 50 ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - cor0.col2 + - col0 * 94 + col0 FROM tab1 AS cor0
----
-333
-6009
-7536

query I rowsort
SELECT col2 + col1 * - 5 FROM tab1 cor0
----
-76
31
7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4009
SELECT DISTINCT + col2 + CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4009
SELECT DISTINCT + col2 + CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL

query I rowsort
SELECT - cor0.col0 + - col0 * - col0 AS col1 FROM tab2 AS cor0
----
42
6006
6162

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4011
SELECT DISTINCT + col1 * CAST( NULL AS SIGNED ) AS col1 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4011
SELECT DISTINCT + col1 * CAST ( NULL AS INTEGER ) AS col1 FROM tab1 cor0
----
NULL

query I rowsort
SELECT tab1.col0 * col2 * - col1 AS col0 FROM tab1
----
-36480
-4212
-99840

query I rowsort
SELECT - cor0.col1 + + 52 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 79f2a80d09cc407c4397aed6402206f2

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4014
SELECT DISTINCT + CAST( NULL AS DECIMAL ) * - 46 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4014
SELECT DISTINCT + CAST ( NULL AS REAL ) * - 46 FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + cor0.col0 - col1 * 67 col1 FROM tab1 cor0
----
-1733
3426
5529

query I rowsort
SELECT DISTINCT 46 * col1 + col0 * - col1 * col0 FROM tab0
----
-114363
-45580
-716625

query I rowsort
SELECT ALL - 72 * col2 AS col2 FROM tab0 AS cor0
----
-2376
-5904
-72

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4018
SELECT DISTINCT + ( + col0 ) + - CAST( NULL AS SIGNED ) * col2 + col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4018
SELECT DISTINCT + ( + col0 ) + - CAST ( NULL AS INTEGER ) * col2 + col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL 51 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to d8bf0a05c9c4d2a93812d106baae4752

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 * + col2 col2 FROM tab0 cor0
----
-1
-1089
-6724

query I rowsort
SELECT ALL - cor0.col0 + + col1 * + ( - 49 ) * + cor0.col2 AS col2 FROM tab2 AS cor0
----
-31733
-41020
-75244

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( col2 ) col1 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT - col0 * col2 + + col1 * col2 - col2 AS col1 FROM tab1 cor0
----
-3135
-6528
1188

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4024
SELECT DISTINCT - CAST( NULL AS SIGNED ) FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-4024
SELECT DISTINCT - CAST ( NULL AS INTEGER ) FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 1 * - col0 col0 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT - 60 + col0 FROM tab2 AS cor0
----
-53
18
19

query I rowsort
SELECT DISTINCT + 40 - col0 FROM tab0 AS cor0
----
-49
16
5

query I rowsort
SELECT ALL + 44 * - col0 AS col1 FROM tab2 AS cor0
----
-308
-3432
-3476

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4029
SELECT DISTINCT - col2 + col0 + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4029
SELECT DISTINCT - col2 + col0 + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL 55 + + cor0.col0 AS col2 FROM tab1 AS cor0
----
119
135
58

query I rowsort
SELECT ALL + + ( - col2 ) AS col2 FROM tab0 cor0
----
-1
-33
-82

onlyif mysql # use DIV operator for integer division
query I rowsort label-4032
SELECT - col1 DIV - col1 + - 58 * col2 * col0 - + col2 FROM tab1 AS cor0
----
-211640
-445535
-9449

skipif mysql # not compatible
query I rowsort label-4032
SELECT - col1 / - col1 + - 58 * col2 * col0 - + col2 FROM tab1 AS cor0
----
-211640
-445535
-9449

query I rowsort
SELECT ALL - col0 * col0 * + col1 AS col0 FROM tab0 AS cor0
----
-118825
-49536
-720811

query I rowsort
SELECT + - ( col0 ) * col2 FROM tab1 cor0
----
-162
-3648
-7680

query I rowsort
SELECT - 9 * - col0 AS col2 FROM tab1 AS cor0
----
27
576
720

query I rowsort
SELECT - - col2 * + 70 + col2 AS col2 FROM tab0 AS cor0
----
2343
5822
71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 + + 33 col0 FROM tab2 AS cor0
----
50
64
92

query I rowsort
SELECT ALL - col2 * 89 AS col2 FROM tab0 AS cor0
----
-2937
-7298
-89

query I rowsort
SELECT ALL - cor0.col0 * 1 AS col1 FROM tab2 AS cor0
----
-7
-78
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 24 * + col2 + - 99 col2 FROM tab2
----
525
549
813

query I rowsort
SELECT - + cor1.col1 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to b234798d4706314ba14eaad539d0aa88

query I rowsort
SELECT - + cor0.col1 * 58 + col0 FROM tab1 cor0
----
-1505
-516
-674

query I rowsort
SELECT DISTINCT + 40 FROM tab1, tab2 cor0, tab1 AS cor1
----
40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - col2 * + 67 * col0 col1 FROM tab2
----
-12656
-135798
-201055

onlyif mysql # use DIV operator for integer division
query I rowsort label-4045
SELECT ALL + cor0.col0 DIV - 62 + - 2 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to c8cf2967265ba43c27d1c37a5856eb4f

skipif mysql # not compatible
query I rowsort label-4045
SELECT ALL + cor0.col0 / - 62 + - 2 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to c8cf2967265ba43c27d1c37a5856eb4f

query I rowsort
SELECT ALL col1 + + 53 AS col1 FROM tab0 AS cor0
----
139
144
150

query I rowsort
SELECT + - col2 * 10 FROM tab2 AS cor0
----
-260
-270
-380

query I rowsort
SELECT DISTINCT col0 * 86 AS col0 FROM tab2 AS cor0
----
602
6708
6794

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - col0 * - col2 col1 FROM tab0 AS cor0
----
-62
706
7207

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + 53 * - cor0.col2 col1 FROM tab2 AS cor0
----
-1352
-1404
-1976

query I rowsort
SELECT DISTINCT cor0.col2 AS col2 FROM tab1, tab2 AS cor0, tab0 cor1
----
26
27
38

query I rowsort
SELECT - tab0.col2 * - ( tab0.col2 ) - col1 * - 30 AS col1 FROM tab0
----
2911
3669
9454

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - CAST ( col2 AS REAL ) + col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT - + col2 * 66 FROM tab0 cor0
----
-2178
-5412
-66

query I rowsort
SELECT DISTINCT - 41 * + cor0.col1 FROM tab2, tab2 AS cor0
----
-1271
-2419
-697

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4056
SELECT ALL - CAST( NULL AS SIGNED ) * - 52 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-4056
SELECT ALL - CAST ( NULL AS INTEGER ) * - 52 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT + col1 * + col1 * 53 FROM tab0 AS cor0
----
391988
438893
498677

query I rowsort
SELECT ( - col1 ) + + col1 FROM tab2
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4059
SELECT DISTINCT CAST( + 90 AS SIGNED ) * col0 FROM tab1
----
270
5760
7200

skipif mysql # not compatible
query I rowsort label-4059
SELECT DISTINCT CAST ( + 90 AS INTEGER ) * col0 FROM tab1
----
270
5760
7200

query I rowsort
SELECT ALL + ( + 68 ) AS col1 FROM tab0, tab1 AS cor0, tab0 AS cor1, tab0 AS cor2
----
81 values hashing to 7ff6433dda3248dce73040b2c590f3da

query I rowsort
SELECT + + col0 + 91 + + cor0.col0 FROM tab1 AS cor0
----
219
251
97

query I rowsort
SELECT ALL - 5 * col1 + col0 AS col0 FROM tab2 AS cor0
----
-148
-217
-6

query I rowsort
SELECT ALL + + 89 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743

query I rowsort
SELECT DISTINCT tab1.col1 + + col2 + ( col1 ) FROM tab1
----
106
122
77

query I rowsort
SELECT - col2 + - col1 * col0 AS col2 FROM tab1 AS cor0
----
-1136
-132
-697

query I rowsort
SELECT DISTINCT 16 AS col1 FROM tab2, tab1 AS cor0
----
16

query I rowsort
SELECT ALL 40 * 65 FROM tab0, tab1 AS cor0, tab0 AS cor1, tab0 AS cor2
----
81 values hashing to b72f11e8b0fdf2f79d79b14716975d14

onlyif mysql # use DIV operator for integer division
query I rowsort label-4068
SELECT - cor0.col0 + col1 DIV + cor0.col2 AS col1 FROM tab1 AS cor0
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-4068
SELECT - cor0.col0 + col1 / + cor0.col2 AS col1 FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT DISTINCT + ( 63 ) FROM tab0, tab1, tab2 cor0
----
63

query I rowsort
SELECT DISTINCT ( 88 ) * - col0 AS col2 FROM tab2
----
-616
-6864
-6952

query I rowsort
SELECT col0 * 89 AS col0 FROM tab2
----
623
6942
7031

query I rowsort
SELECT DISTINCT + ( + ( col2 ) ) FROM tab2
----
26
27
38

query I rowsort
SELECT - tab2.col0 * tab2.col2 * col1 AS col2 FROM tab2
----
-119652
-51034
-5859

query I rowsort
SELECT ALL 28 * col2 * - col2 FROM tab0
----
-188272
-28
-30492

query I rowsort
SELECT + cor0.col2 * + col1 * - col1 - - col2 AS col1 FROM tab1 AS cor0
----
-16128
-36450
-5643

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4076
SELECT DISTINCT col2 * col0 + - CAST( + tab2.col2 AS SIGNED ) * tab2.col1 AS col0 FROM tab2
----
-648
2356
494

skipif mysql # not compatible
query I rowsort label-4076
SELECT DISTINCT col2 * col0 + - CAST ( + tab2.col2 AS INTEGER ) * tab2.col1 AS col0 FROM tab2
----
-648
2356
494

query I rowsort
SELECT col1 * col1 * - col0 AS col2 FROM tab1
----
-13520
-2028
-6400

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col1 col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775

query I rowsort
SELECT - col0 * + col1 + 21 + tab0.col0 FROM tab0
----
-2019
-3339
-7989

query I rowsort
SELECT DISTINCT + tab0.col2 * - col1 + - ( + col1 ) AS col1 FROM tab0
----
-194
-2924
-7553

query I rowsort
SELECT col0 * col1 * col0 + - col1 FROM tab0
----
118728
49450
720720

query I rowsort
SELECT - col1 * 63 AS col2 FROM tab2
----
-1071
-1953
-3717

query I rowsort
SELECT DISTINCT + - col0 + - col1 * - col1 FROM tab2 AS cor0
----
210
3403
954

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4084
SELECT ALL - - col2 + + CAST( + cor0.col0 AS SIGNED ) col1 FROM tab1 AS cor0
----
121
176
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4084
SELECT ALL - - col2 + + CAST ( + cor0.col0 AS INTEGER ) col1 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT col2 * + 22 FROM tab1 AS cor0
----
1188
1254
2112

query I rowsort
SELECT - col0 + + col1 + cor0.col0 FROM tab1 AS cor0
----
10
13
26

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4087
SELECT ALL + col0 * CAST( + 26 AS SIGNED ) FROM tab0 AS cor0
----
2314
624
910

skipif mysql # not compatible
query I rowsort label-4087
SELECT ALL + col0 * CAST ( + 26 AS INTEGER ) FROM tab0 AS cor0
----
2314
624
910

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col0 * - col1 + 6 * + col0 col0 FROM tab2 AS cor0
----
-175
-4134
-869

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 + 88 + col1 col2 FROM tab0 cor0
----
186
207
261

query I rowsort
SELECT ALL - ( 83 ) AS col1 FROM tab1 AS cor0
----
-83
-83
-83

onlyif mysql # use DIV operator for integer division
query I rowsort label-4091
SELECT - col2 * 7 DIV + tab0.col2 FROM tab0
----
-7
-7
-7

skipif mysql # not compatible
query I rowsort label-4091
SELECT - col2 * 7 / + tab0.col2 FROM tab0
----
-7
-7
-7

query I rowsort
SELECT ALL cor0.col0 + - cor0.col0 * + col1 + + ( - col2 * col1 ) FROM tab2 AS cor0
----
-1047
-1910
-6058

query I rowsort
SELECT col2 + - 93 * 98 - col2 FROM tab2
----
-9114
-9114
-9114

query I rowsort
SELECT - 27 + - col1 FROM tab2 AS cor0
----
-44
-58
-86

query I rowsort
SELECT 60 * + col1 FROM tab1 AS cor0
----
1560
600
780

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4096
SELECT + CAST( NULL AS SIGNED ) * col2 + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4096
SELECT + CAST ( NULL AS INTEGER ) * col2 + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 80 + col2 FROM tab0
----
113
162
81

query I rowsort
SELECT DISTINCT col0 * + col2 + tab1.col2 AS col1 FROM tab1
----
216
3705
7776

onlyif mysql # use DIV operator for integer division
query I rowsort label-4099
SELECT - ( 36 ) DIV col0 + col0 * col0 * - col1 + col0 FROM tab1 AS cor0
----
-243
-40896
-83120

skipif mysql # not compatible
query I rowsort label-4099
SELECT - ( 36 ) / col0 + col0 * col0 * - col1 + col0 FROM tab1 AS cor0
----
-243
-40896
-83120

query I rowsort
SELECT ( - 43 ) * - col2 - - cor0.col0 FROM tab0 cor0
----
1443
3615
78

query I rowsort
SELECT ALL 39 + - 41 FROM tab0 AS cor0
----
-2
-2
-2

query I rowsort
SELECT 26 + col0 FROM tab1 AS cor0
----
106
29
90

query I rowsort
SELECT ALL + ( 55 ) * col2 FROM tab0 AS cor0
----
1815
4510
55

query I rowsort
SELECT 86 * col1 + + col0 FROM tab2 AS cor0
----
1541
2673
5152

query I rowsort
SELECT ALL + + 80 * 31 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 50a4aa55475010dee5619e03a286767d

query I rowsort
SELECT DISTINCT cor0.col2 FROM tab2, tab2 AS cor0, tab2 AS cor1, tab2 AS cor2
----
26
27
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-4107
SELECT - col0 DIV + col1 + col0 FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-4107
SELECT - col0 / + col1 + col0 FROM tab0 AS cor0
----
24
35
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-4108
SELECT col0 * - cor0.col2 - col1 DIV col0 FROM tab2 AS cor0
----
-193
-2028
-3002

skipif mysql # not compatible
query I rowsort label-4108
SELECT col0 * - cor0.col2 - col1 / col0 FROM tab2 AS cor0
----
-193
-2028
-3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-4109
SELECT ALL + col2 DIV col0 + - col0 AS col1 FROM tab0 AS cor0
----
-23
-35
-89

skipif mysql # not compatible
query I rowsort label-4109
SELECT ALL + col2 / col0 + - col0 AS col1 FROM tab0 AS cor0
----
-23
-35
-89

query I rowsort
SELECT ALL + col1 * - col1 + col0 * cor0.col0 FROM tab1 AS cor0
----
-667
3996
6231

query I rowsort
SELECT + + col2 + + col1 * col2 AS col0 FROM tab2 AS cor0
----
1560
684
864

onlyif mysql # use DIV operator for integer division
query I rowsort label-4112
SELECT DISTINCT + col0 + col0 DIV + col2 col2 FROM tab1 cor0
----
3
65
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4112
SELECT DISTINCT + col0 + col0 / + col2 col2 FROM tab1 cor0
----
3
65
80

query I rowsort
SELECT ALL col1 + - col1 * + col2 AS col2 FROM tab1 AS cor0
----
-1235
-1378
-560

query I rowsort
SELECT col2 - - col2 * + col2 AS col2 FROM tab2 cor0
----
1482
702
756

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + cor0.col1 + col1 * col2 col2 FROM tab1 AS cor0
----
1261
1430
580

query I rowsort
SELECT DISTINCT col2 * col2 * - cor0.col1 FROM tab1 AS cor0
----
-119808
-32490
-75816

onlyif mysql # use DIV operator for integer division
query I rowsort label-4117
SELECT + col0 DIV + tab2.col1 AS col2 FROM tab2
----
0
1
4

skipif mysql # not compatible
query I rowsort label-4117
SELECT + col0 / + tab2.col1 AS col2 FROM tab2
----
0
1
4

query I rowsort
SELECT ALL - col0 * + tab2.col1 + - col0 FROM tab2
----
-1422
-224
-4680

query I rowsort
SELECT ALL col1 + col2 + col0 * + tab1.col1 AS col0 FROM tab1
----
1149
158
707

onlyif mysql # use DIV operator for integer division
query I rowsort label-4120
SELECT DISTINCT - col0 + + col1 DIV col2 - col0 FROM tab0
----
-177
-46
27

skipif mysql # not compatible
query I rowsort label-4120
SELECT DISTINCT - col0 + + col1 / col2 - col0 FROM tab0
----
-177
-46
27

query I rowsort
SELECT tab1.col0 + col0 * - col2 * col0 FROM tab1
----
-233408
-483
-614320

query I rowsort
SELECT cor0.col2 + - col1 + - col2 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT DISTINCT - col0 * + cor0.col0 + - col2 FROM tab0 AS cor0
----
-1226
-609
-8003

query I rowsort
SELECT ALL col1 + col1 * - cor0.col0 AS col2 FROM tab0 cor0
----
-1978
-3298
-8008

query I rowsort
SELECT + col1 - col1 * + col2 FROM tab2
----
-1475
-629
-806

query I rowsort
SELECT - col2 * - col0 * col1 + col0 FROM tab1
----
36544
4215
99920

query I rowsort
SELECT ALL col0 * col0 * + col1 FROM tab0 AS cor0
----
118825
49536
720811

query I rowsort
SELECT ALL + col0 * + col2 * + cor0.col1 + col1 FROM tab1 AS cor0
----
36490
4238
99853

query III rowsort
SELECT ALL * FROM tab2 WHERE col0 >= - col0 + tab2.col1
----
78
59
26
79
17
38

query I rowsort
SELECT ALL tab1.col0 * - col0 - col2 FROM tab1
----
-4153
-63
-6496

onlyif mysql # use DIV operator for integer division
query I rowsort label-4131
SELECT DISTINCT col0 DIV + col0 + col0 AS col1 FROM tab0
----
25
36
90

skipif mysql # not compatible
query I rowsort label-4131
SELECT DISTINCT col0 / + col0 + col0 AS col1 FROM tab0
----
25
36
90

query I rowsort
SELECT ALL - col1 + tab2.col1 * tab2.col1 FROM tab2
----
272
3422
930

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col1 IN ( col1 )
----

query I rowsort
SELECT DISTINCT - + col0 + col0 * - cor0.col1 * - 58 FROM tab0 cor0
----
119688
196875
469653

onlyif mysql # use DIV operator for integer division
query I rowsort label-4135
SELECT ALL + col0 + - col1 DIV - ( 47 ) - + col0 AS col0 FROM tab0 AS cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-4135
SELECT ALL + col0 + - col1 / - ( 47 ) - + col0 AS col0 FROM tab0 AS cor0
----
1
1
2

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4136
SELECT ALL col0 * col0 + + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4136
SELECT ALL col0 * col0 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4137
SELECT DISTINCT col1 + col1 - - 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-4137
SELECT DISTINCT col1 + col1 - - CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + 68 AS col2 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 10aa25f1c6b97582c34521ac6452e0b4

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + col2 + - col2 * + col1 col0 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT col1 * - col2 + - col0 * col1 AS col1 FROM tab0
----
-15561
-3492
-4902

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - tab0.col2 + col0 col2 FROM tab0 WHERE NOT col0 * col0 NOT BETWEEN col2 AND ( NULL )
----

query I rowsort
SELECT DISTINCT + col1 + col0 * col2 FROM tab0 cor0
----
132
7389
878

query I rowsort
SELECT ALL col1 * - col2 - col2 AS col0 FROM tab1 AS cor0
----
-1344
-1458
-627

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL IN ( cor0.col0 * + cor0.col2 + - cor0.col2 )
----

query I rowsort
SELECT cor0.col0 * + col1 AS col1 FROM tab2 cor0
----
1343
217
4602

query I rowsort
SELECT DISTINCT col0 + - col0 + col1 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT DISTINCT cor0.col1 - col1 FROM tab1 AS cor0 WHERE cor0.col2 / - col0 + col0 / - col0 NOT BETWEEN ( + col1 + col0 ) AND - col2
----
0

query I rowsort
SELECT + col2 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT DISTINCT col0 + col2 + col0 * col0 AS col2 FROM tab2 AS cor0
----
6188
6358
83

query I rowsort
SELECT DISTINCT - col1 - + tab1.col0 FROM tab1
----
-29
-74
-93

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NULL ) NOT IN ( col2 + col1 + col0 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE - col0 NOT BETWEEN + col0 AND + col1
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

query I rowsort
SELECT tab1.col0 AS col2 FROM tab1 WHERE ( + col1 ) < col2
----
3
64
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-4155
SELECT - col2 + - tab0.col2 DIV + col1 AS col0 FROM tab0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-4155
SELECT - col2 + - tab0.col2 / + col1 AS col0 FROM tab0
----
-1
-33
-82

query I rowsort
SELECT ALL - tab1.col0 * col2 - - tab1.col0 AS col1 FROM tab1
----
-159
-3584
-7600

onlyif mysql # use DIV operator for integer division
query I rowsort label-4157
SELECT DISTINCT col0 * col1 + col1 * col0 DIV tab0.col2 FROM tab0
----
2126
6790
8197

skipif mysql # not compatible
query I rowsort label-4157
SELECT DISTINCT col0 * col1 + col1 * col0 / tab0.col2 FROM tab0
----
2126
6790
8197

onlyif mysql # use DIV operator for integer division
query I rowsort label-4158
SELECT - col1 DIV - col1 AS col0 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4158
SELECT - col1 / - col1 AS col0 FROM tab0
----
1
1
1

query I rowsort
SELECT ALL + tab1.col2 * col1 * + col2 FROM tab1
----
119808
32490
75816

query I rowsort
SELECT ALL col1 * col1 + col2 * - col1 * col1 AS col1 FROM tab0
----
-236672
-670761
0

query I rowsort
SELECT - col1 * - col2 + + col1 * col1 + + col0 FROM tab0
----
10258
15832
9541

query I rowsort
SELECT col2 * - col1 + col1 + col0 FROM tab1
----
-1155
-1375
-496

query I rowsort
SELECT ALL - cor0.col1 + 18 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 88fdd580c8c59a67576e8e0a0835df25

query I rowsort
SELECT + - 97 + + cor0.col1 FROM tab0 AS cor0
----
-11
-6
0

query I rowsort
SELECT col2 * - col0 + ( - col2 ) * + col0 FROM tab0 AS cor0
----
-14596
-1584
-70

query I rowsort
SELECT - + ( + col2 ) + 88 FROM tab1 AS cor0
----
-8
31
34

query I rowsort
SELECT + + col1 + - ( cor0.col0 ) FROM tab0 cor0
----
2
62
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-4168
SELECT ALL - 47 DIV cor0.col0 FROM tab0 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-4168
SELECT ALL - 47 / cor0.col0 FROM tab0 AS cor0
----
-1
-1
0

query I rowsort
SELECT - + 3 + col1 AS col0 FROM tab2 AS cor0
----
14
28
56

query I rowsort
SELECT - col0 * - col1 + col2 + col0 FROM tab0
----
2121
3431
8270

query I rowsort
SELECT DISTINCT + col0 * col0 + col0 FROM tab1
----
12
4160
6480

query I rowsort
SELECT DISTINCT 36 + - col2 FROM tab1
----
-18
-21
-60

query I rowsort
SELECT 91 + col2 AS col0 FROM tab0 AS cor0
----
124
173
92

query I rowsort
SELECT DISTINCT + 91 AS col1 FROM tab1, tab0 AS cor0
----
91

query I rowsort
SELECT DISTINCT 28 + 23 * col0 AS col0 FROM tab0
----
2075
580
833

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * + col2 * col2 col2 FROM tab2
----
-22599
-24548
-39884

query I rowsort
SELECT - - 18 + col0 * - cor0.col0 FROM tab2 cor0
----
-31
-6066
-6223

query I rowsort
SELECT 75 AS col2 FROM tab0, tab1 AS cor0, tab0 cor1, tab0 cor2
----
81 values hashing to 3384246e49f3e69ba32c165b88111fee

query I rowsort
SELECT col2 + + col1 * 18 AS col0 FROM tab2 AS cor0
----
1088
344
585

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab1 cor0, tab0 AS cor1, tab2 cor2
----
972 values hashing to 591a9a93560839231c038a1e10bd240a

query I rowsort
SELECT + 33 * - col1 AS col2 FROM tab1
----
-330
-429
-858

query I rowsort
SELECT + 29 AS col0 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 4c56285992bcb76e1aac22e6d23d1318

query I rowsort
SELECT + + col1 - - ( 17 ) * cor0.col2 AS col1 FROM tab0 AS cor0
----
114
1485
647

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * + col1 - col1 col1 FROM tab2 AS cor0
----
272
3422
930

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 * + 39 * 24 col0 FROM tab0 cor0
----
80496
85176
90792

query I rowsort
SELECT col2 * + 34 + col1 * - col0 FROM tab1 AS cor0
----
1298
1758
2224

query I rowsort
SELECT ALL col2 - col1 * - col2 AS col1 FROM tab0
----
2871
7544
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-4188
SELECT - col0 DIV - col0 + 7 FROM tab1
----
8
8
8

skipif mysql # not compatible
query I rowsort label-4188
SELECT - col0 / - col0 + 7 FROM tab1
----
8
8
8

query I rowsort
SELECT - + col2 + - cor0.col1 AS col0 FROM tab0 AS cor0
----
-119
-173
-98

onlyif mysql # use DIV operator for integer division
query I rowsort label-4190
SELECT ALL - col0 + - tab0.col0 DIV tab0.col0 - + col2 * - col0 FROM tab0
----
-1
7208
767

skipif mysql # not compatible
query I rowsort label-4190
SELECT ALL - col0 + - tab0.col0 / tab0.col0 - + col2 * - col0 FROM tab0
----
-1
7208
767

query I rowsort
SELECT + col0 * col2 + + col1 - col0 FROM tab1
----
185
3594
7613

query I rowsort
SELECT 86 - col1 FROM tab1
----
60
73
76

onlyif mysql # use DIV operator for integer division
query I rowsort label-4193
SELECT + - col2 DIV + col1 AS col2 FROM tab1 cor0
----
-2
-5
-7

skipif mysql # not compatible
query I rowsort label-4193
SELECT + - col2 / + col1 AS col2 FROM tab1 cor0
----
-2
-5
-7

query I rowsort
SELECT DISTINCT - - ( + 99 ) + + col2 * col0 FROM tab2 cor0
----
2127
288
3101

query I rowsort
SELECT - col2 * ( 30 * + col1 ) AS col0 FROM tab2
----
-19380
-25110
-46020

query I rowsort
SELECT cor0.col0 + 92 FROM tab0, tab0 AS cor0
----
9 values hashing to 147e757ceb9575e13e0d8753ee260213

query I rowsort
SELECT - cor0.col0 FROM tab1, tab0 AS cor0 CROSS JOIN tab2, tab0 AS cor1
----
81 values hashing to 26e45cd9fe71a2b90a8bdef20c88e70d

query I rowsort
SELECT DISTINCT 42 * + col0 * col0 AS col1 FROM tab2
----
2058
255528
262122

query I rowsort
SELECT + 88 + - col2 * + col2 FROM tab2 AS cor0
----
-1356
-588
-641

query I rowsort
SELECT + + 37 + - col1 FROM tab0 AS cor0
----
-49
-54
-60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 25 col1 FROM tab2 AS cor0
----
-25
-25
-25

query I rowsort
SELECT + - ( - col1 ) * + cor0.col0 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT - tab2.col0 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to c82df1de3cb666224690a83f3d790d79

query I rowsort
SELECT + col2 + 10 FROM tab0
----
11
43
92

query I rowsort
SELECT DISTINCT cor0.col0 * - col0 + - 14 FROM tab1 AS cor0
----
-23
-4110
-6414

onlyif mysql # use DIV operator for integer division
query I rowsort label-4206
SELECT DISTINCT - col2 + col1 DIV cor0.col1 FROM tab2 cor0
----
-25
-26
-37

skipif mysql # not compatible
query I rowsort label-4206
SELECT DISTINCT - col2 + col1 / cor0.col1 FROM tab2 cor0
----
-25
-26
-37

query I rowsort
SELECT + 1 - + ( - cor0.col0 ) FROM tab2, tab2 AS cor0
----
9 values hashing to 1ca475dd801892032f9a97a37a4b9d12

query I rowsort
SELECT ALL + col2 * - ( 33 ) FROM tab0 AS cor0
----
-1089
-2706
-33

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4209
SELECT DISTINCT col1 * + CAST( 14 AS SIGNED ) FROM tab0 AS cor0
----
1204
1274
1358

skipif mysql # not compatible
query I rowsort label-4209
SELECT DISTINCT col1 * + CAST ( 14 AS INTEGER ) FROM tab0 AS cor0
----
1204
1274
1358

query I rowsort
SELECT ALL - + col0 + cor0.col0 * col2 FROM tab1 AS cor0
----
159
3584
7600

query I rowsort
SELECT DISTINCT - col1 * 4 AS col2 FROM tab1 AS cor0
----
-104
-40
-52

query I rowsort
SELECT DISTINCT + + cor0.col1 * + 67 * - col1 + 40 FROM tab0 cor0
----
-495492
-554787
-630363

query I rowsort
SELECT - + 31 - 96 FROM tab2 AS cor0
----
-127
-127
-127

query I rowsort
SELECT ALL + 84 * - col0 AS col1 FROM tab2 AS cor0
----
-588
-6552
-6636

query I rowsort
SELECT DISTINCT 60 AS col1 FROM tab1 AS cor0
----
60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * cor0.col2 + - col2 col1 FROM tab1 AS cor0
----
108
3591
7584

query I rowsort
SELECT + col1 * + 66 + col1 AS col0 FROM tab0 AS cor0
----
5762
6097
6499

query I rowsort
SELECT 8 + - col2 FROM tab1 cor0
----
-46
-49
-88

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4219
SELECT ALL - CAST( NULL AS SIGNED ) * + col2 + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4219
SELECT ALL - CAST ( NULL AS INTEGER ) * + col2 + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - 45 * col1 FROM tab0 AS cor0
----
-3870
-4095
-4365

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4221
SELECT ALL + + CAST( NULL AS SIGNED ) + 39 * - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4221
SELECT ALL + + CAST ( NULL AS INTEGER ) + 39 * - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 28 + + 90 * col0 FROM tab1 AS cor0
----
298
5788
7228

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4223
SELECT ALL + CAST( NULL AS SIGNED ) / - 22 + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4223
SELECT ALL + CAST ( NULL AS INTEGER ) / - 22 + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - cor0.col1 - - col0 FROM tab0 AS cor0
----
-2
-62
-62

query I rowsort
SELECT DISTINCT ( + col2 ) * - col1 - + col2 FROM tab1 cor0
----
-1344
-1458
-627

query I rowsort
SELECT DISTINCT - 65 * - col0 * col0 + - 12 FROM tab1 AS cor0
----
266228
415988
573

query I rowsort
SELECT DISTINCT - - col0 * col2 * - col1 FROM tab1 AS cor0
----
-36480
-4212
-99840

query I rowsort
SELECT + ( + col2 ) + col2 + col2 FROM tab0 AS cor0
----
246
3
99

query I rowsort
SELECT ALL col1 + + col2 * - 96 FROM tab2 AS cor0
----
-2437
-2561
-3631

query I rowsort
SELECT ALL col1 * - col2 + + 71 AS col0 FROM tab0 AS cor0
----
-26
-2767
-7391

query I rowsort
SELECT DISTINCT + + cor0.col0 + + col2 AS col1 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT + col2 * col0 + + 45 * col2 + + cor0.col2 * - col2 FROM tab0 AS cor0
----
1188
4264
79

query I rowsort
SELECT - tab1.col0 * - col0 * col2 AS col0 FROM tab1
----
233472
486
614400

query I rowsort
SELECT DISTINCT + 47 * + cor0.col0 AS col0 FROM tab1 AS cor0
----
141
3008
3760

query I rowsort
SELECT ALL col0 + cor0.col1 * col1 FROM tab0 cor0
----
7420
8370
9444

onlyif mysql # use DIV operator for integer division
query I rowsort label-4236
SELECT ALL + col0 - + 44 DIV + col2 FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-4236
SELECT ALL + col0 - + 44 / + col2 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT - 98 * cor1.col1 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 58eea4e1d9c1e92723c4c0cbf337ba2a

query I rowsort
SELECT + - col0 * col1 + col0 * + col0 + - cor0.col2 FROM tab0 cor0
----
-1521
-2171
-260

onlyif mysql # use DIV operator for integer division
query I rowsort label-4239
SELECT - col1 DIV ( 28 ) FROM tab2 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-4239
SELECT - col1 / ( 28 ) FROM tab2 AS cor0
----
-1
-2
0

query I rowsort
SELECT + col1 + col0 + col0 AS col2 FROM tab0 AS cor0
----
134
167
269

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4241
SELECT ALL - - col1 * - CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4241
SELECT ALL - - col1 * - CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + - col0 * 66 FROM tab2 AS cor0
----
-462
-5148
-5214

onlyif mysql # use DIV operator for integer division
query I rowsort label-4243
SELECT - + cor0.col1 DIV - 58 AS col2 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4243
SELECT - + cor0.col1 / - 58 AS col2 FROM tab2 AS cor0
----
0
0
1

query I rowsort
SELECT DISTINCT 35 + - col1 * + 86 + + col1 AS col2 FROM tab0
----
-7275
-7700
-8210

query I rowsort
SELECT 72 AS col1 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 92cc3d5daa550304e96c1542787691c7

onlyif mysql # use DIV operator for integer division
query I rowsort label-4246
SELECT ALL + tab2.col0 DIV 62 + - 28 FROM tab2, tab2 AS cor0
----
9 values hashing to 991dab406852c1285c83cb8b2d7ebc51

skipif mysql # not compatible
query I rowsort label-4246
SELECT ALL + tab2.col0 / 62 + - 28 FROM tab2, tab2 AS cor0
----
9 values hashing to 991dab406852c1285c83cb8b2d7ebc51

query I rowsort
SELECT DISTINCT - tab1.col1 + cor0.col0 AS col0 FROM tab1, tab0, tab1 AS cor0
----
-10
-23
-7
38
51
54
67
70

query I rowsort
SELECT 9 * + col2 + - ( - col1 ) * col2 FROM tab2
----
1080
1768
988

query I rowsort
SELECT DISTINCT 87 * - col2 * - col0 + + 13 FROM tab0
----
3058
634939
68917

onlyif mysql # use DIV operator for integer division
query I rowsort label-4250
SELECT DISTINCT col0 DIV - col0 + + ( col2 ) FROM tab0
----
0
32
81

skipif mysql # not compatible
query I rowsort label-4250
SELECT DISTINCT col0 / - col0 + + ( col2 ) FROM tab0
----
0
32
81

query I rowsort
SELECT DISTINCT tab1.col0 + + tab1.col2 AS col1 FROM tab1
----
121
176
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - 21 col1 FROM tab1
----
-210
-273
-546

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4253
SELECT tab2.col1 * - CAST( col2 AS SIGNED ) + col1 FROM tab2
----
-1475
-629
-806

skipif mysql # not compatible
query I rowsort label-4253
SELECT tab2.col1 * - CAST ( col2 AS INTEGER ) + col1 FROM tab2
----
-1475
-629
-806

query I rowsort
SELECT - col0 * - ( + col2 ) FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT col1 + 11 FROM tab0 AS cor0
----
102
108
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4256
SELECT + cor0.col2 / CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4256
SELECT + cor0.col2 / CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col0 + col2 + - col2 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT col1 + - col0 + + col0 FROM tab2
----
17
31
59

query I rowsort
SELECT + + col2 + col2 + col2 * + ( col1 ) FROM tab1 cor0
----
1440
1512
684

query I rowsort
SELECT DISTINCT + 9 AS col2 FROM tab0, tab0 cor0, tab1, tab1 AS cor1
----
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-4261
SELECT - ( + col0 ) DIV col2 + col1 + + 60 AS col1 FROM tab0 AS cor0
----
122
146
150

skipif mysql # not compatible
query I rowsort label-4261
SELECT - ( + col0 ) / col2 + col1 + + 60 AS col1 FROM tab0 AS cor0
----
122
146
150

query I rowsort
SELECT ALL - + 8 * cor0.col1 AS col1 FROM tab1 AS cor0
----
-104
-208
-80

query I rowsort
SELECT + - col2 * + col1 + col0 AS col2 FROM tab1 cor0
----
-1168
-1401
-506

query I rowsort
SELECT ALL + col1 * col1 * - col1 AS col1 FROM tab0 AS cor0
----
-636056
-753571
-912673

onlyif mysql # use DIV operator for integer division
query I rowsort label-4265
SELECT 8 DIV col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4265
SELECT 8 / col2 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL + col2 + col2 * + col1 * col2 FROM tab1 AS cor0
----
119904
32547
75870

query I rowsort
SELECT col1 * - col0 + + col0 FROM tab1 AS cor0
----
-576
-75
-960

query I rowsort
SELECT - col0 + - col1 + col1 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT + 78 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 28 + col1 + 58 * 65 col1 FROM tab2 AS cor0
----
3815
3829
3857

query I rowsort
SELECT DISTINCT - 38 + 8 AS col2 FROM tab0, tab2 cor0, tab0 AS cor1, tab2, tab0 cor2
----
-30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col0 * + col0 + - ( col2 ) col1 FROM tab1 AS cor0
----
-45
4039
6304

query I rowsort
SELECT - 76 + + col1 * col0 + + 98 * - 94 FROM tab1 AS cor0
----
-8248
-8648
-9210

query I rowsort
SELECT - 38 * + col1 + - col2 + - 29 * - col1 AS col2 FROM tab2 AS cor0
----
-191
-306
-557

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4275
SELECT ALL CAST( NULL AS SIGNED ) AS col0 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-4275
SELECT ALL CAST ( NULL AS INTEGER ) AS col0 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

onlyif mysql # use DIV operator for integer division
query I rowsort label-4276
SELECT DISTINCT + - 36 * col2 + col0 DIV col0 FROM tab0 AS cor0
----
-1187
-2951
-35

skipif mysql # not compatible
query I rowsort label-4276
SELECT DISTINCT + - 36 * col2 + col0 / col0 FROM tab0 AS cor0
----
-1187
-2951
-35

query I rowsort
SELECT + col0 + cor0.col0 * col2 AS col2 FROM tab1 AS cor0
----
165
3712
7760

query I rowsort
SELECT + - col2 * 73 AS col0 FROM tab0 AS cor0
----
-2409
-5986
-73

query I rowsort
SELECT col1 + ( - col0 ) FROM tab0 AS cor0
----
2
62
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 + col0 col1 FROM tab0 AS cor0
----
178
48
70

query I rowsort
SELECT + col0 + - ( 84 ) AS col0 FROM tab1 cor0
----
-20
-4
-81

query I rowsort
SELECT ALL + 26 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to ede8226bb7e602e221f9d98345b4da37

query I rowsort
SELECT ALL 15 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 71dda9a71fc978ea7b0ac5d8cd2ef1f0

query I rowsort
SELECT - col1 * 20 FROM tab0 AS cor0
----
-1720
-1820
-1940

query I rowsort
SELECT DISTINCT - cor1.col0 AS col0 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
-7
-78
-79

query I rowsort
SELECT col2 + col2 * 8 AS col2 FROM tab2 AS cor0
----
234
243
342

query I rowsort
SELECT ALL col2 + + cor0.col1 * - col2 FROM tab2 AS cor0
----
-1508
-608
-810

query I rowsort
SELECT 25 * col1 FROM tab0 AS cor0
----
2150
2275
2425

onlyif mysql # use DIV operator for integer division
query I rowsort label-4289
SELECT DISTINCT + col0 DIV + 63 - + col1 FROM tab2 AS cor0
----
-16
-31
-58

skipif mysql # not compatible
query I rowsort label-4289
SELECT DISTINCT + col0 / + 63 - + col1 FROM tab2 AS cor0
----
-16
-31
-58

query I rowsort
SELECT ( 65 ) * - col1 FROM tab2 AS cor0
----
-1105
-2015
-3835

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4291
SELECT DISTINCT - CAST( col0 AS SIGNED ) * col1 * col1 FROM tab0 AS cor0
----
-177504
-329315
-737009

skipif mysql # not compatible
query I rowsort label-4291
SELECT DISTINCT - CAST ( col0 AS INTEGER ) * col1 * col1 FROM tab0 AS cor0
----
-177504
-329315
-737009

onlyif mysql # use DIV operator for integer division
query I rowsort label-4292
SELECT ALL + + col0 + col1 DIV - cor0.col2 AS col2 FROM tab0 cor0
----
-62
22
88

skipif mysql # not compatible
query I rowsort label-4292
SELECT ALL + + col0 + col1 / - cor0.col2 AS col2 FROM tab0 cor0
----
-62
22
88

query I rowsort
SELECT - cor0.col0 + + cor0.col2 AS col0 FROM tab0, tab2 cor0
----
9 values hashing to 5b9ded363f55d1d4bbc85491d2b84046

query I rowsort
SELECT - ( - 69 ) AS col1 FROM tab2 cor0
----
69
69
69

query I rowsort
SELECT ALL 42 * 48 * col2 AS col1 FROM tab2 AS cor0
----
52416
54432
76608

query I rowsort
SELECT ALL + ( - col0 ) * - col2 + + col1 * - col1 AS col2 FROM tab2 AS cor0
----
-1453
-772
2713

query I rowsort
SELECT DISTINCT + ( + col2 ) + col2 AS col1 FROM tab0 cor0
----
164
2
66

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4298
SELECT ALL + + CAST( NULL AS SIGNED ) - col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4298
SELECT ALL + + CAST ( NULL AS INTEGER ) - col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 79 col1 FROM tab0 AS cor0
----
-79
-79
-79

query I rowsort
SELECT + + 1 + col2 + col0 * 37 * col0 AS col1 FROM tab1 cor0
----
151610
236897
388

query I rowsort
SELECT + 33 * col1 + - col0 FROM tab0 AS cor0
----
2814
2914
3166

query I rowsort
SELECT 73 * col1 FROM tab2 AS cor0
----
1241
2263
4307

query I rowsort
SELECT + + cor0.col0 + + col2 FROM tab1 cor0
----
121
176
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - col2 * col1 col1 FROM tab1
----
-119808
-32490
-75816

query I rowsort
SELECT 77 AS col0 FROM tab1, tab0 cor0
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622

query I rowsort
SELECT - col1 * 72 FROM tab2
----
-1224
-2232
-4248

query I rowsort
SELECT ALL + tab1.col1 * col0 * col0 FROM tab1
----
234
40960
83200

query I rowsort
SELECT + 98 * - col0 + col1 * col2 AS col0 FROM tab2 AS cor0
----
-6110
-7096
151

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 23 ) * col0 - 74 col1 FROM tab2
----
1720
1743
87

query I rowsort
SELECT 39 AS col0 FROM tab2, tab1 cor0, tab1 AS cor1, tab2 AS cor2
----
81 values hashing to 9c9fbbb9cf0068f5900dff6ceb1046eb

query I rowsort
SELECT ALL + ( - 69 ) FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to ca5f4bc365dc2c6b14187d6ffc83a01d

query I rowsort
SELECT ALL - cor0.col1 + - col1 + + col2 FROM tab2 AS cor0
----
-35
-92
4

query I rowsort
SELECT ALL col2 * + col0 + + ( cor0.col2 ) FROM tab1 AS cor0
----
216
3705
7776

onlyif mysql # use DIV operator for integer division
query I rowsort label-4314
SELECT ALL + 54 DIV - col1 AS col2 FROM tab1
----
-2
-4
-5

skipif mysql # not compatible
query I rowsort label-4314
SELECT ALL + 54 / - col1 AS col2 FROM tab1
----
-2
-4
-5

query I rowsort
SELECT DISTINCT + + cor0.col2 + + col2 FROM tab2 cor0
----
52
54
76

query I rowsort
SELECT ALL + ( col1 ) * + col2 AS col0 FROM tab1 AS cor0
----
1248
1404
570

onlyif mysql # use DIV operator for integer division
query I rowsort label-4317
SELECT ALL - col0 DIV - cor0.col2 + - 98 FROM tab1 cor0
----
-97
-98
-98

skipif mysql # not compatible
query I rowsort label-4317
SELECT ALL - col0 / - cor0.col2 + - 98 FROM tab1 cor0
----
-97
-98
-98

query I rowsort
SELECT DISTINCT - 77 + + cor0.col2 FROM tab1 AS cor0
----
-20
-23
19

query I rowsort
SELECT DISTINCT 33 + - col0 FROM tab1 AS cor0
----
-31
-47
30

onlyif mysql # use DIV operator for integer division
query I rowsort label-4320
SELECT ALL - + col2 * col1 DIV + col0 + cor0.col2 FROM tab1 AS cor0
----
-414
49
81

skipif mysql # not compatible
query I rowsort label-4320
SELECT ALL - + col2 * col1 / + col0 + cor0.col2 FROM tab1 AS cor0
----
-414
49
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-4321
SELECT DISTINCT - col1 + col2 DIV + col2 - col2 * col2 FROM tab1 AS cor0
----
-2941
-3258
-9228

skipif mysql # not compatible
query I rowsort label-4321
SELECT DISTINCT - col1 + col2 / + col2 - col2 * col2 FROM tab1 AS cor0
----
-2941
-3258
-9228

query I rowsort
SELECT DISTINCT + col1 * - col1 + + col2 AS col0 FROM tab1
----
-43
-622
-73

query I rowsort
SELECT + + col2 * - ( + ( - col2 ) ) AS col0 FROM tab0 AS cor0
----
1
1089
6724

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - 40 col2 FROM tab1 AS cor0
----
-2160
-2280
-3840

query I rowsort
SELECT DISTINCT col2 * + 8 + - cor0.col2 FROM tab1 AS cor0
----
378
399
672

query I rowsort
SELECT - cor0.col2 - col0 * - ( col1 ) AS col1 FROM tab1 AS cor0
----
24
583
944

query I rowsort
SELECT ALL col1 + + col1 * + col0 AS col2 FROM tab0 AS cor0
----
2150
3492
8190

query I rowsort
SELECT DISTINCT cor0.col1 * cor0.col2 + col0 - cor0.col1 * - 69 AS col0 FROM tab0 AS cor0
----
13830
6825
8796

onlyif mysql # use DIV operator for integer division
query I rowsort label-4329
SELECT DISTINCT - col1 DIV - cor0.col0 FROM tab0 cor0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-4329
SELECT DISTINCT - col1 / - cor0.col0 FROM tab0 cor0
----
1
2
3

query I rowsort
SELECT - col2 * 11 AS col1 FROM tab0 AS cor0
----
-11
-363
-902

query I rowsort
SELECT - col2 - + col1 * - col1 AS col1 FROM tab2 AS cor0
----
251
3455
934

query I rowsort
SELECT - - col0 + 20 AS col2 FROM tab0 AS cor0
----
109
44
55

query I rowsort
SELECT DISTINCT cor0.col2 + col1 * col2 FROM tab2 AS cor0
----
1560
684
864

query I rowsort
SELECT DISTINCT - 65 * - col1 + + col0 FROM tab2 AS cor0
----
1184
2022
3913

query I rowsort
SELECT ALL 88 + - col1 AS col0 FROM tab0 AS cor0
----
-3
-9
2

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4336
SELECT DISTINCT + CAST( - 17 AS SIGNED ) + - col1 FROM tab2 AS cor0
----
-34
-48
-76

skipif mysql # not compatible
query I rowsort label-4336
SELECT DISTINCT + CAST ( - 17 AS INTEGER ) + - col1 FROM tab2 AS cor0
----
-34
-48
-76

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4337
SELECT + - CAST( NULL AS SIGNED ) + 9 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4337
SELECT + - CAST ( NULL AS INTEGER ) + 9 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * 86 + col2 col1 FROM tab0 AS cor0
----
7429
7908
8343

query I rowsort
SELECT col1 + - col2 * - col2 FROM tab2 AS cor0
----
1461
735
760

query I rowsort
SELECT ALL ( + ( + col1 ) ) * 22 - 92 FROM tab0 AS cor0
----
1800
1910
2042

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * 65 col1 FROM tab0
----
5590
5915
6305

query I rowsort
SELECT ( cor0.col1 + - cor0.col1 ) FROM tab1, tab2 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 75 + - 91 col1 FROM tab1 AS cor0
----
-166

query I rowsort
SELECT ALL + 45 * + col1 FROM tab0 cor0
----
3870
4095
4365

query I rowsort
SELECT + - 95 + - col1 * - col1 * 99 FROM tab2 AS cor0
----
28516
344524
95044

onlyif mysql # use DIV operator for integer division
query I rowsort label-4346
SELECT ALL col0 DIV ( - cor0.col0 + + col2 ) col0 FROM tab2 AS cor0
----
-1
-1
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4346
SELECT ALL col0 / ( - cor0.col0 + + col2 ) col0 FROM tab2 AS cor0
----
-1
-1
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 19 ) * - col0 col1 FROM tab1 cor0
----
-1216
-1520
-57

query I rowsort
SELECT - cor0.col1 + cor0.col2 * col2 + - col0 FROM tab2 AS cor0
----
1348
539
691

onlyif mysql # use DIV operator for integer division
query I rowsort label-4349
SELECT ALL - ( - 33 ) DIV - col2 FROM tab0 AS cor0
----
-1
-33
0

skipif mysql # not compatible
query I rowsort label-4349
SELECT ALL - ( - 33 ) / - col2 FROM tab0 AS cor0
----
-1
-33
0

query I rowsort
SELECT ALL - 42 * 72 FROM tab2 AS cor0
----
-3024
-3024
-3024

query I rowsort
SELECT 64 * - col0 + col2 AS col0 FROM tab1 AS cor0
----
-138
-4039
-5024

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4352
SELECT ALL col1 * + CAST( NULL AS SIGNED ) / 73 - - col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4352
SELECT ALL col1 * + CAST ( NULL AS INTEGER ) / 73 - - col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 + + col0 + col0 AS col2 FROM tab1
----
185
256
60

query I rowsort
SELECT DISTINCT 21 * - cor0.col0 AS col1 FROM tab2, tab1 cor0
----
-1344
-1680
-63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 * 92 col1 FROM tab2 AS cor0
----
-2392
-2484
-3496

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4356
SELECT + - CAST( NULL AS DECIMAL ) * col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4356
SELECT + - CAST ( NULL AS REAL ) * col1 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4357
SELECT + + ( + 48 ) + col0 / CAST( NULL AS DECIMAL ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4357
SELECT + + ( + 48 ) + col0 / CAST ( NULL AS REAL ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 76 + - col1 col0 FROM tab2 AS cor0
----
17
45
59

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4359
SELECT + 40 * - col2 * + CAST( col1 * - col0 AS SIGNED ) + ( + col0 ) * - col2 FROM tab0 AS cor0
----
135765
26557422
2723688

skipif mysql # not compatible
query I rowsort label-4359
SELECT + 40 * - col2 * + CAST ( col1 * - col0 AS INTEGER ) + ( + col0 ) * - col2 FROM tab0 AS cor0
----
135765
26557422
2723688

query I rowsort
SELECT + col1 * 76 FROM tab0
----
6536
6916
7372

query I rowsort
SELECT DISTINCT 87 AS col2 FROM tab0, tab2 AS cor0
----
87

query I rowsort
SELECT ALL 25 AS col2 FROM tab1, tab1 AS cor0 CROSS JOIN tab2
----
27 values hashing to 2c77240b60ac01c717a5ed5d0165f450

query I rowsort
SELECT - + col1 * ( col0 ) AS col1 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT + col1 * + col1 * 45 AS col0 FROM tab0 AS cor0
----
332820
372645
423405

query I rowsort
SELECT DISTINCT + + col1 * + col0 AS col0 FROM tab2 cor0
----
1343
217
4602

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4366
SELECT ALL + col1 * + CAST( NULL AS SIGNED ) / col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4366
SELECT ALL + col1 * + CAST ( NULL AS INTEGER ) / col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + ( col1 ) - + col1 AS col0 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT - col2 + - ( - col1 ) * + col0 AS col1 FROM tab0
----
2031
3394
8017

query I rowsort
SELECT DISTINCT col1 + ( + tab0.col2 ) * + col2 AS col1 FROM tab0
----
1175
6815
98

query I rowsort
SELECT - col2 + - col0 - - ( col1 ) AS col1 FROM tab0
----
-80
29
61

onlyif mysql # use DIV operator for integer division
query I rowsort label-4371
SELECT ALL tab0.col2 DIV + ( + tab0.col2 ) + - col0 + + tab0.col0 DIV col2 FROM tab0
----
-23
-87
1

skipif mysql # not compatible
query I rowsort label-4371
SELECT ALL tab0.col2 / + ( + tab0.col2 ) + - col0 + + tab0.col0 / col2 FROM tab0
----
-23
-87
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - cor0.col2 * ( + col1 * col1 ) col0 FROM tab1 AS cor0
----
-16224
-36504
-5700

query I rowsort
SELECT DISTINCT + 63 * cor0.col1 AS col2 FROM tab2, tab1 AS cor0
----
1638
630
819

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4374
SELECT ALL col0 + - CAST( - 39 AS SIGNED ) FROM tab2
----
117
118
46

skipif mysql # not compatible
query I rowsort label-4374
SELECT ALL col0 + - CAST ( - 39 AS INTEGER ) FROM tab2
----
117
118
46

query I rowsort
SELECT - - col0 * ( + col1 ) AS col1 FROM tab1 AS cor0
----
1040
640
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - cor0.col2 * + col1 col2 FROM tab0 cor0
----
2838
7462
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4377
SELECT - col1 + CAST( col2 AS SIGNED ) * col2 AS col0 FROM tab1 AS cor0
----
2890
3239
9203

skipif mysql # not compatible
query I rowsort label-4377
SELECT - col1 + CAST ( col2 AS INTEGER ) * col2 AS col0 FROM tab1 AS cor0
----
2890
3239
9203

skipif mysql # not compatible
query I rowsort
SELECT - cor0.col2 * + CAST ( col1 AS REAL ) FROM tab0 cor0
----
-2838
-7462
-97

query I rowsort
SELECT ALL cor0.col1 * 77 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 873ffa6e98dbd95a51305b9fa7a3331f

query I rowsort
SELECT ALL + col2 * ( col2 ) FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT DISTINCT - 74 FROM tab2, tab1 AS cor0
----
-74

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4382
SELECT - CAST( 71 AS SIGNED ) FROM tab0, tab0 cor0
----
9 values hashing to e72f95c346714d3065a96d67a6fd5062

skipif mysql # not compatible
query I rowsort label-4382
SELECT - CAST ( 71 AS INTEGER ) FROM tab0, tab0 cor0
----
9 values hashing to e72f95c346714d3065a96d67a6fd5062

onlyif mysql # use DIV operator for integer division
query I rowsort label-4383
SELECT tab1.col2 - - col0 DIV col0 AS col2 FROM tab1
----
55
58
97

skipif mysql # not compatible
query I rowsort label-4383
SELECT tab1.col2 - - col0 / col0 AS col2 FROM tab1
----
55
58
97

query I rowsort
SELECT ALL + col0 * - ( + 15 ) AS col2 FROM tab0
----
-1335
-360
-525

query I rowsort
SELECT - - cor0.col2 + - col0 * col2 + col2 * col2 * - col0 AS col2 FROM tab2 AS cor0
----
-117040
-5265
-54730

query I rowsort
SELECT - tab0.col2 * - col1 AS col2 FROM tab0
----
2838
7462
97

query I rowsort
SELECT ALL col1 * col1 * col0 AS col1 FROM tab1
----
13520
2028
6400

query I rowsort
SELECT - col0 * col2 * + col0 + + tab0.col0 FROM tab0
----
-1190
-18984
-649433

query I rowsort
SELECT + col0 * + col1 + col2 AS col1 FROM tab2
----
1381
244
4628

query III rowsort
SELECT * FROM tab0 WHERE col2 BETWEEN NULL AND + col2 * + col0 + col0
----

query I rowsort
SELECT DISTINCT - col0 - col2 * col0 * col1 FROM tab2
----
-119730
-51113
-5866

onlyif mysql # use DIV operator for integer division
query I rowsort label-4392
SELECT - col2 * col0 + + col2 * col0 DIV + col0 col1 FROM tab1
----
-108
-3591
-7584

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4392
SELECT - col2 * col0 + + col2 * col0 / + col0 col1 FROM tab1
----
-108
-3591
-7584

query I rowsort
SELECT + col1 * - tab2.col1 + col1 FROM tab2
----
-272
-3422
-930

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab2.col0 - col1 * tab2.col0 col2 FROM tab2
----
-1264
-210
-4524

query I rowsort
SELECT ALL + tab2.col2 + col1 * tab2.col0 AS col2 FROM tab2
----
1381
244
4628

query I rowsort
SELECT ( col1 ) * + 73 AS col1 FROM tab2
----
1241
2263
4307

query I rowsort
SELECT - 8 + col0 AS col1 FROM tab2 AS cor0
----
-1
70
71

query I rowsort
SELECT DISTINCT col2 * col1 * + 75 FROM tab2 cor0
----
115050
48450
62775

query I rowsort
SELECT ALL + col0 + col2 * ( + col2 + - col1 ) AS col0 FROM tab2
----
-101
-780
877

onlyif mysql # use DIV operator for integer division
query I rowsort label-4400
SELECT - - col2 * - col2 + + ( - col2 * + col2 ) + 7 DIV + col0 AS col0 FROM tab2 AS cor0
----
-1352
-1457
-2888

skipif mysql # not compatible
query I rowsort label-4400
SELECT - - col2 * - col2 + + ( - col2 * + col2 ) + 7 / + col0 AS col0 FROM tab2 AS cor0
----
-1352
-1457
-2888

query I rowsort
SELECT + + cor0.col1 + - col0 + - ( + col1 ) * - cor0.col0 AS col2 FROM tab1 AS cor0
----
101
586
973

onlyif mysql # use DIV operator for integer division
query I rowsort label-4402
SELECT + col1 DIV - 13 AS col2 FROM tab2 AS cor0
----
-1
-2
-4

skipif mysql # not compatible
query I rowsort label-4402
SELECT + col1 / - 13 AS col2 FROM tab2 AS cor0
----
-1
-2
-4

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4403
SELECT DISTINCT col2 + + CAST( - cor0.col0 + - col0 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-15
-69
-96

skipif mysql # not compatible
query I rowsort label-4403
SELECT DISTINCT col2 + + CAST ( - cor0.col0 + - col0 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-15
-69
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-4404
SELECT ALL col1 DIV 92 + + col1 FROM tab1 cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-4404
SELECT ALL col1 / 92 + + col1 FROM tab1 cor0
----
10
13
26

query I rowsort
SELECT DISTINCT - col2 * - cor0.col0 AS col0 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT DISTINCT col0 + + 7 AS col2 FROM tab0 AS cor0
----
31
42
96

query I rowsort
SELECT - col1 * + 95 * 55 FROM tab2 AS cor0
----
-161975
-308275
-88825

query I rowsort
SELECT DISTINCT + - col0 * col1 AS col2 FROM tab2 cor0
----
-1343
-217
-4602

skipif mysql # not compatible
query I rowsort
SELECT + col1 * CAST ( + col2 AS REAL ) + col0 AS col2 FROM tab2 AS cor0
----
1612
725
844

skipif mysql # not compatible
query I rowsort
SELECT + col0 + - CAST ( - cor0.col0 AS REAL ) FROM tab1 AS cor0
----
128
160
6

query I rowsort
SELECT DISTINCT - col0 * + 59 + + col1 AS col1 FROM tab2 AS cor0
----
-382
-4543
-4644

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + col0 ) - - col0 * col2 col0 FROM tab1 AS cor0
----
159
3584
7600

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 80 - - col0 col0 FROM tab0
----
104
115
169

query I rowsort
SELECT cor0.col1 FROM tab0, tab2 AS cor0, tab1 AS cor1, tab0 AS cor2
----
81 values hashing to a5b6acb471910ea4ad7f31cae3b818f7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + 16 ) * col2 col2 FROM tab1 AS cor0
----
-1536
-864
-912

query I rowsort
SELECT - cor1.col2 AS col2 FROM tab2, tab2 AS cor0, tab2 cor1
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6

onlyif mysql # use DIV operator for integer division
query I rowsort label-4417
SELECT + - col2 DIV cor0.col2 - col1 AS col2 FROM tab1 AS cor0
----
-11
-14
-27

skipif mysql # not compatible
query I rowsort label-4417
SELECT + - col2 / cor0.col2 - col1 AS col2 FROM tab1 AS cor0
----
-11
-14
-27

query I rowsort
SELECT DISTINCT cor0.col2 + - col1 AS col0 FROM tab2 AS cor0
----
-33
-4
21

onlyif mysql # use DIV operator for integer division
query I rowsort label-4419
SELECT ALL + col0 + + col1 DIV - 28 AS col0 FROM tab0 AS cor0
----
21
32
86

skipif mysql # not compatible
query I rowsort label-4419
SELECT ALL + col0 + + col1 / - 28 AS col0 FROM tab0 AS cor0
----
21
32
86

onlyif mysql # use DIV operator for integer division
query I rowsort label-4420
SELECT ALL + 29 DIV + col0 + + ( - col0 ) + - col2 AS col1 FROM tab2 cor0
----
-104
-117
-30

skipif mysql # not compatible
query I rowsort label-4420
SELECT ALL + 29 / + col0 + + ( - col0 ) + - col2 AS col1 FROM tab2 cor0
----
-104
-117
-30

query I rowsort
SELECT - + col2 * + col0 AS col0 FROM tab0 cor0
----
-35
-7298
-792

onlyif mysql # use DIV operator for integer division
query I rowsort label-4422
SELECT DISTINCT + 29 DIV - cor0.col1 + col1 FROM tab2 AS cor0
----
16
31
59

skipif mysql # not compatible
query I rowsort label-4422
SELECT DISTINCT + 29 / - cor0.col1 + col1 FROM tab2 AS cor0
----
16
31
59

query I rowsort
SELECT col0 * - col0 + - ( 79 ) FROM tab2 AS cor0
----
-128
-6163
-6320

query I rowsort
SELECT + + 74 AS col0 FROM tab0 AS cor0
----
74
74
74

query I rowsort
SELECT + col2 * col0 * cor0.col1 + + cor0.col1 AS col1 FROM tab1 AS cor0
----
36490
4238
99853

skipif mysql # not compatible
query I rowsort
SELECT col0 + col2 * - CAST ( + 11 AS REAL ) AS col2 FROM tab2 AS cor0
----
-208
-290
-339

query I rowsort
SELECT DISTINCT + + col0 + col2 - - 3 FROM tab1 AS cor0
----
124
179
60

query I rowsort
SELECT ALL + 0 * + col1 + + col2 AS col0 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT 99 - col2 AS col2 FROM tab0 AS cor0
----
17
66
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-4430
SELECT DISTINCT + 25 DIV col0 + 18 AS col2 FROM tab1 cor0
----
18
26

skipif mysql # not compatible
query I rowsort label-4430
SELECT DISTINCT + 25 / col0 + 18 AS col2 FROM tab1 cor0
----
18
26

query I rowsort
SELECT DISTINCT ( + 67 ) FROM tab2
----
67

query I rowsort
SELECT DISTINCT - - cor0.col2 * cor0.col1 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT - col2 + - cor0.col1 + - col2 FROM tab0 AS cor0
----
-152
-255
-99

query I rowsort
SELECT DISTINCT + col0 + col1 * cor0.col2 AS col1 FROM tab0 AS cor0
----
132
2862
7551

query I rowsort
SELECT + + col2 * + col0 * - col1 FROM tab1 AS cor0
----
-36480
-4212
-99840

query I rowsort
SELECT ALL + + col2 + col2 AS col1 FROM tab1 cor0
----
108
114
192

onlyif mysql # use DIV operator for integer division
query I rowsort label-4437
SELECT ALL - + col2 DIV - col0 AS col1 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4437
SELECT ALL - + col2 / - col0 AS col1 FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT + + cor0.col1 + cor0.col2 + + cor0.col1 FROM tab0 AS cor0
----
195
205
264

query I rowsort
SELECT DISTINCT - col1 + + col1 + - col0 * col1 * col1 AS col0 FROM tab2
----
-22831
-271518
-6727

query I rowsort
SELECT DISTINCT col2 + col1 * + col1 AS col2 FROM tab2
----
327
3507
988

query I rowsort
SELECT - col1 - col1 * col1 FROM tab2
----
-306
-3540
-992

query I rowsort
SELECT ALL col1 * col0 FROM tab0 WHERE NULL NOT IN ( - col0 * col0 / + col0 + col2 - - col0 ) AND NOT - col0 = NULL
----

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4443
SELECT DISTINCT - CAST( NULL AS SIGNED ) + 77 - col1 AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4443
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + 77 - col1 AS col0 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT - cor0.col2 AS col1 FROM tab0, tab2, tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT ALL + 97 + col0 * col2 AS col1 FROM tab2 cor0
----
2125
286
3099

query I rowsort
SELECT - cor0.col0 * + col0 * col0 AS col1 FROM tab0 cor0
----
-13824
-42875
-704969

query I rowsort
SELECT ALL + ( - 43 + col2 ) AS col0 FROM tab2
----
-16
-17
-5

query I rowsort
SELECT - col2 * col1 * col2 + + col2 AS col2 FROM tab1 AS cor0
----
-119712
-32433
-75762

query I rowsort
SELECT - 26 + col0 + - col1 AS col0 FROM tab1 AS cor0
----
-49
28
41

query I rowsort
SELECT ALL col2 * col0 * - col0 + col1 FROM tab1 AS cor0
----
-233462
-460
-614387

query I rowsort
SELECT ALL col1 + col0 * - col1 AS col0 FROM tab2
----
-1326
-186
-4543

query I rowsort
SELECT - + 84 * col0 - col1 * + col0 AS col2 FROM tab2 AS cor0
----
-11154
-7979
-805

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + col2 ) + col2 col0 FROM tab0 cor0
----
164
2
66

query I rowsort
SELECT DISTINCT - 15 * col0 AS col0 FROM tab2 AS cor0
----
-105
-1170
-1185

query I rowsort
SELECT + + col2 * col1 * - col1 + col0 AS col2 FROM tab0 AS cor0
----
-244044
-678953
-9374

query I rowsort
SELECT - col1 + col2 * + col0 * col2 + col1 FROM tab2 AS cor0
----
114076
5103
52728

query I rowsort
SELECT DISTINCT - col2 + col2 * + col1 AS col0 FROM tab2 AS cor0
----
1508
608
810

onlyif mysql # use DIV operator for integer division
query I rowsort label-4458
SELECT DISTINCT - ( col2 ) DIV - col0 AS col2 FROM tab0 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-4458
SELECT DISTINCT - ( col2 ) / - col0 AS col2 FROM tab0 AS cor0
----
0
1

query I rowsort
SELECT ALL col0 + + col2 * - col2 AS col2 FROM tab0 cor0
----
-1065
-6635
34

query I rowsort
SELECT ALL + - col1 * col1 + col2 FROM tab2 AS cor0
----
-251
-3455
-934

query I rowsort
SELECT DISTINCT tab1.col1 * + col0 AS col1 FROM tab1
----
1040
640
78

query I rowsort
SELECT DISTINCT + col2 * tab2.col1 FROM tab2
----
1534
646
837

onlyif mysql # use DIV operator for integer division
query I rowsort label-4463
SELECT col2 DIV + col2 + col2 FROM tab1
----
55
58
97

skipif mysql # not compatible
query I rowsort label-4463
SELECT col2 / + col2 + col2 FROM tab1
----
55
58
97

query I rowsort
SELECT DISTINCT - tab2.col2 * col0 * + col1 FROM tab2
----
-119652
-51034
-5859

query I rowsort
SELECT col1 + - tab1.col0 * - col0 AS col1 FROM tab1
----
35
4106
6413

query I rowsort
SELECT col0 * tab2.col1 + tab2.col2 + + col2 FROM tab2 WHERE NOT ( NULL ) NOT IN ( col0 * col1 )
----

query I rowsort
SELECT ALL cor0.col1 + cor0.col1 AS col0 FROM tab0 AS cor0 WHERE col0 * - col1 BETWEEN NULL AND col1 + cor0.col2
----

query I rowsort
SELECT ALL + col0 * + col2 - - col0 AS col1 FROM tab1 cor0
----
165
3712
7760

query I rowsort
SELECT tab1.col1 + tab1.col0 * - col2 AS col1 FROM tab1
----
-136
-3638
-7667

query I rowsort
SELECT - col2 * - tab1.col1 * - col1 FROM tab1
----
-16224
-36504
-5700

query I rowsort
SELECT col0 * - col2 * + col1 AS col1 FROM tab2
----
-119652
-51034
-5859

onlyif mysql # use DIV operator for integer division
query I rowsort label-4472
SELECT DISTINCT - col0 DIV col2 + + col2 * + col0 - col2 * - tab1.col0 FROM tab1
----
15360
324
7295

skipif mysql # not compatible
query I rowsort label-4472
SELECT DISTINCT - col0 / col2 + + col2 * + col0 - col2 * - tab1.col0 FROM tab1
----
15360
324
7295

query I rowsort
SELECT + tab1.col1 * col2 + col2 AS col2 FROM tab1
----
1344
1458
627

query I rowsort
SELECT ALL - col2 AS col1 FROM tab2 WHERE NOT col0 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT tab0.col1 + - col0 * + col1 FROM tab0
----
-1978
-3298
-8008

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * col1 * tab2.col2 col2 FROM tab2
----
-119652
-51034
-5859

query I rowsort
SELECT ALL + col2 * + col2 * - col2 AS col2 FROM tab1
----
-157464
-185193
-884736

onlyif mysql # use DIV operator for integer division
query I rowsort label-4478
SELECT ALL col2 DIV - tab1.col1 FROM tab1
----
-2
-5
-7

skipif mysql # not compatible
query I rowsort label-4478
SELECT ALL col2 / - tab1.col1 FROM tab1
----
-2
-5
-7

query I rowsort
SELECT DISTINCT - col0 + col2 - + col1 FROM tab0
----
-131
-77
-98

query I rowsort
SELECT col0 + col0 + col0 AS col0 FROM tab0
----
105
267
72

query I rowsort
SELECT col1 * + col2 + - col1 - col2 FROM tab1
----
1139
1324
503

query I rowsort
SELECT DISTINCT - col0 * + col0 - col1 AS col0 FROM tab1 AS cor0
----
-35
-4106
-6413

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab1.col2 + col0 col1 FROM tab1
----
-16
-51
7

query I rowsort
SELECT - - col2 + - col1 + - col1 FROM tab0 AS cor0
----
-100
-139
-193

query I rowsort
SELECT + col1 AS col1 FROM tab0 WHERE ( NULL ) <> - col0 + col1
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL IN ( - col0 * + tab2.col0 )
----

query I rowsort
SELECT ALL tab2.col1 FROM tab2 AS cor0 CROSS JOIN tab2
----
9 values hashing to c61d27a0022e6d022371dc58819ab272

query I rowsort
SELECT col0 FROM tab1 WHERE NOT ( NULL ) IN ( + tab1.col2 * - col1 * - col2 )
----

query I rowsort
SELECT + ( + 80 ) * + col1 AS col1 FROM tab0 AS cor0
----
6880
7280
7760

query I rowsort
SELECT DISTINCT + + cor1.col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
10
13
26

query I rowsort
SELECT + col1 + - col2 * - 57 FROM tab2 AS cor0
----
1541
1570
2183

query I rowsort
SELECT col1 * - cor0.col1 + - col1 FROM tab0 AS cor0
----
-7482
-8372
-9506

query I rowsort
SELECT - col2 * + 62 FROM tab2 AS cor0
----
-1612
-1674
-2356

query I rowsort
SELECT + - cor0.col1 + + ( 35 ) * col2 AS col0 FROM tab0 AS cor0
----
-62
1069
2779

query I rowsort
SELECT col1 + + col2 * + 90 AS col1 FROM tab1
----
4886
5140
8653

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4496
SELECT ALL + CAST( NULL AS DECIMAL ) FROM tab1, tab0, tab1 cor0, tab2 AS cor1
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

skipif mysql # not compatible
query I rowsort label-4496
SELECT ALL + CAST ( NULL AS REAL ) FROM tab1, tab0, tab1 cor0, tab2 AS cor1
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

query I rowsort
SELECT - ( + ( col1 ) ) * col0 FROM tab1 AS cor0
----
-1040
-640
-78

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4498
SELECT + CAST( NULL AS DECIMAL ) AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-4498
SELECT + CAST ( NULL AS REAL ) AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ALL - ( cor0.col0 * - cor0.col1 ) AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to bc669a3cc969c7619ebcffb5400ba0ba

query I rowsort
SELECT tab0.col0 * 34 AS col2 FROM tab0
----
1190
3026
816

query I rowsort
SELECT DISTINCT + 32 + tab2.col2 AS col2 FROM tab2, tab0 cor0
----
58
59
70

query I rowsort
SELECT ALL col0 * - 89 AS col2 FROM tab0
----
-2136
-3115
-7921

query I rowsort
SELECT - 35 * + 53 * col1 FROM tab1 cor0
----
-18550
-24115
-48230

query I rowsort
SELECT DISTINCT 43 * cor0.col1 FROM tab0 AS cor0
----
3698
3913
4171

query I rowsort
SELECT + + col0 + col2 * - col0 AS col1 FROM tab0 AS cor0
----
-7209
-768
0

query I rowsort
SELECT + col0 - - 74 * col2 FROM tab2
----
2002
2005
2891

query I rowsort
SELECT DISTINCT + 13 + 20 AS col2 FROM tab1
----
33

query I rowsort
SELECT 66 + + col1 * col1 FROM tab0
----
7462
8347
9475

query I rowsort
SELECT ( - 13 ) * - col0 * + 65 FROM tab2
----
5915
65910
66755

query I rowsort
SELECT col2 + - col0 + - tab2.col0 AS col2 FROM tab2
----
-120
-130
13

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 - 44 + col0 + - col2 FROM tab0
----
-10
-37
-53

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4513
SELECT CAST( - col2 AS SIGNED ) * - col1 FROM tab1 cor0
----
1248
1404
570

skipif mysql # not compatible
query I rowsort label-4513
SELECT CAST ( - col2 AS INTEGER ) * - col1 FROM tab1 cor0
----
1248
1404
570

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4514
SELECT ALL ( - 9 ) * + col2 + CAST( + col1 AS SIGNED ) + col2 * ( col2 ) * col2 AS col2 FROM tab2
----
17401
19471
54547

skipif mysql # not compatible
query I rowsort label-4514
SELECT ALL ( - 9 ) * + col2 + CAST ( + col1 AS INTEGER ) + col2 * ( col2 ) * col2 AS col2 FROM tab2
----
17401
19471
54547

query I rowsort
SELECT 45 * col2 FROM tab0 AS cor0
----
1485
3690
45

query I rowsort
SELECT - cor0.col1 + tab2.col1 AS col2 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 14ba2031bc9d3391a60f7163593933fc

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4517
SELECT DISTINCT + tab1.col2 * CAST( NULL AS SIGNED ) AS col2 FROM tab1, tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4517
SELECT DISTINCT + tab1.col2 * CAST ( NULL AS INTEGER ) AS col2 FROM tab1, tab1 AS cor0
----
NULL

query I rowsort
SELECT + ( 37 ) FROM tab2, tab1 AS cor0, tab1 cor1
----
27 values hashing to c023509f63faa044d654943e6df55ca2

skipif mysql # not compatible
query I rowsort
SELECT - col2 * + CAST ( col0 AS REAL ) + - col1 AS col2 FROM tab2 AS cor0
----
-2087
-220
-3019

query I rowsort
SELECT + col0 * 96 + - col1 FROM tab2 AS cor0
----
641
7429
7567

onlyif mysql # use DIV operator for integer division
query I rowsort label-4521
SELECT ALL - col1 - ( col2 ) DIV col1 AS col1 FROM tab2
----
-19
-31
-59

skipif mysql # not compatible
query I rowsort label-4521
SELECT ALL - col1 - ( col2 ) / col1 AS col1 FROM tab2
----
-19
-31
-59

query I rowsort
SELECT + col1 * + col2 * + col0 - - col2 * - col0 FROM tab1 cor0
----
32832
4050
92160

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * 38 col2 FROM tab2 cor0
----
1178
2242
646

onlyif mysql # use DIV operator for integer division
query I rowsort label-4524
SELECT ALL cor0.col0 * col2 DIV - 96 AS col1 FROM tab0 AS cor0
----
-76
-8
0

skipif mysql # not compatible
query I rowsort label-4524
SELECT ALL cor0.col0 * col2 / - 96 AS col1 FROM tab0 AS cor0
----
-76
-8
0

query I rowsort
SELECT ALL - col2 * 2 * col1 + + col1 AS col1 FROM tab1 AS cor0
----
-1130
-2483
-2782

onlyif mysql # use DIV operator for integer division
query I rowsort label-4526
SELECT ALL + tab0.col0 DIV - col0 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4526
SELECT ALL + tab0.col0 / - col0 FROM tab0
----
-1
-1
-1

query I rowsort
SELECT ALL - col1 + + 29 FROM tab2 AS cor0
----
-2
-30
12

query I rowsort
SELECT col1 + 57 FROM tab1 AS cor0
----
67
70
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-4529
SELECT DISTINCT + col1 DIV 36 AS col1 FROM tab2 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-4529
SELECT DISTINCT + col1 / 36 AS col1 FROM tab2 AS cor0
----
0
1

query I rowsort
SELECT - ( - col2 ) + cor0.col1 AS col1 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT - tab0.col0 FROM tab1, tab2, tab2 AS cor0, tab0
----
81 values hashing to 26e45cd9fe71a2b90a8bdef20c88e70d

query I rowsort
SELECT ALL - 26 * col1 + - col2 * + col1 FROM tab1
----
-1586
-2080
-830

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 + col2 * + col0 * - col2 col0 FROM tab1 AS cor0
----
-208000
-737360
-8751

onlyif mysql # use DIV operator for integer division
query I rowsort label-4534
SELECT DISTINCT + col2 DIV col2 + 16 * col0 AS col1 FROM tab1 AS cor0
----
1025
1281
49

skipif mysql # not compatible
query I rowsort label-4534
SELECT DISTINCT + col2 / col2 + 16 * col0 AS col1 FROM tab1 AS cor0
----
1025
1281
49

query I rowsort
SELECT ALL - col1 - 36 FROM tab1 AS cor0
----
-46
-49
-62

query I rowsort
SELECT 10 * col0 AS col1 FROM tab0
----
240
350
890

query I rowsort
SELECT + 52 * + col1 FROM tab1
----
1352
520
676

query I rowsort
SELECT + 89 + - col0 * col2 + col0 * col2 FROM tab1
----
89
89
89

query I rowsort
SELECT - 99 * col0 * col0 FROM tab2 AS cor0
----
-4851
-602316
-617859

query I rowsort
SELECT ALL + cor0.col1 * col0 + - col2 AS col1 FROM tab0 AS cor0
----
2031
3394
8017

onlyif mysql # use DIV operator for integer division
query I rowsort label-4541
SELECT ( - col1 ) DIV col0 FROM tab2 AS cor0
----
-4
0
0

skipif mysql # not compatible
query I rowsort label-4541
SELECT ( - col1 ) / col0 FROM tab2 AS cor0
----
-4
0
0

query I rowsort
SELECT DISTINCT 85 + 71 AS col0 FROM tab2 AS cor0
----
156

query I rowsort
SELECT DISTINCT - col1 * 37 FROM tab2 cor0
----
-1147
-2183
-629

onlyif mysql # use DIV operator for integer division
query I rowsort label-4544
SELECT ALL + ( - ( - col2 ) ) DIV col1 FROM tab2 cor0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-4544
SELECT ALL + ( - ( - col2 ) ) / col1 FROM tab2 cor0
----
0
0
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 12 col2 FROM tab2 cor0
----
-12

query I rowsort
SELECT + ( - 5 ) AS col0 FROM tab1 cor0
----
-5
-5
-5

query I rowsort
SELECT - 90 * + ( + col0 + + 97 ) FROM tab0 AS cor0
----
-10890
-11880
-16740

query I rowsort
SELECT - 23 - col0 FROM tab0
----
-112
-47
-58

query I rowsort
SELECT ALL - ( 82 ) + + col0 - ( - col0 ) AS col0 FROM tab1 AS cor0
----
-76
46
78

query I rowsort
SELECT ALL - 93 * - ( col0 ) FROM tab2 cor0
----
651
7254
7347

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 * col1 col1 FROM tab0 AS cor0
----
-7396
-8281
-9409

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4552
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - col1 * tab1.col0 AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4552
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - col1 * tab1.col0 AS col2 FROM tab1
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4553
SELECT - 63 DIV - 79 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4553
SELECT - 63 / - 79 FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 57 + col0 col2 FROM tab1 AS cor0
----
-54
23
7

query I rowsort
SELECT DISTINCT 36 AS col1 FROM tab0, tab0 cor0
----
36

query I rowsort
SELECT - ( 1 ) FROM tab1
----
-1
-1
-1

query I rowsort
SELECT DISTINCT + 60 AS col1 FROM tab2 AS cor0
----
60

query I rowsort
SELECT - - 63 AS col0 FROM tab2 AS cor0
----
63
63
63

query I rowsort
SELECT ALL 54 * tab0.col1 FROM tab0
----
4644
4914
5238

query I rowsort
SELECT ALL col2 + col1 + - col0 FROM tab2 cor0
----
-24
51
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 66 + col0 col0 FROM tab0 AS cor0
----
101
155
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - ( + cor0.col2 ) col1 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT + + 43 AS col0 FROM tab0 AS cor0
----
43
43
43

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab2, tab0 AS cor1, tab1, tab2 AS cor2
----
3645 values hashing to 9aea36b1adc82580fae09bf05c24fd77

query I rowsort
SELECT ALL + cor0.col1 * + col1 + + col0 * col0 FROM tab1 AS cor0
----
4196
6569
685

query I rowsort
SELECT DISTINCT - col0 * + col1 + + col1 FROM tab0 AS cor0
----
-1978
-3298
-8008

query I rowsort
SELECT col2 + - 58 AS col2 FROM tab1 cor0
----
-1
-4
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-4568
SELECT ALL col2 DIV + cor0.col0 + + col0 FROM tab0 cor0
----
25
35
89

skipif mysql # not compatible
query I rowsort label-4568
SELECT ALL col2 / + cor0.col0 + + col0 FROM tab0 cor0
----
25
35
89

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4569
SELECT + col1 * ( + col1 ) * + col1 + + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4569
SELECT + col1 * ( + col1 ) * + col1 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 + col1 * 83 FROM tab0 AS cor0
----
7052
7462
7954

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4571
SELECT DISTINCT col0 * + CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4571
SELECT DISTINCT col0 * + CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4572
SELECT - col2 DIV - 60 + - col2 FROM tab0 AS cor0
----
-1
-33
-81

skipif mysql # not compatible
query I rowsort label-4572
SELECT - col2 / - 60 + - col2 FROM tab0 AS cor0
----
-1
-33
-81

query I rowsort
SELECT DISTINCT + + col2 + cor0.col2 * - 66 FROM tab0 AS cor0
----
-2145
-5330
-65

query I rowsort
SELECT DISTINCT + col0 - + cor0.col1 FROM tab2 cor0
----
-24
19
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-4575
SELECT ALL col2 DIV ( - cor0.col0 ) AS col0 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4575
SELECT ALL col2 / ( - cor0.col0 ) AS col0 FROM tab0 AS cor0
----
-1
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col2 + cor0.col0 col0 FROM tab1 AS cor0
----
-2913
-3185
-9136

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col2 + 75 col2 FROM tab1 cor0
----
129
132
171

query I rowsort
SELECT + col2 * - col1 + + 62 FROM tab0 AS cor0
----
-2776
-35
-7400

query I rowsort
SELECT DISTINCT + cor0.col2 * cor0.col2 AS col2 FROM tab1, tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT DISTINCT - - 99 + col2 AS col1 FROM tab1 AS cor0
----
153
156
195

query I rowsort
SELECT + + ( - col2 ) + + col2 AS col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4582
SELECT ALL - 53 DIV col1 + cor0.col0 * col2 AS col0 FROM tab1 AS cor0
----
160
3643
7676

skipif mysql # not compatible
query I rowsort label-4582
SELECT ALL - 53 / col1 + cor0.col0 * col2 AS col0 FROM tab1 AS cor0
----
160
3643
7676

query I rowsort
SELECT - col0 * + 46 FROM tab1 AS cor0
----
-138
-2944
-3680

query I rowsort
SELECT tab0.col1 + ( - 25 ) FROM tab0, tab2 AS cor0
----
9 values hashing to b74fa6245fd6f2da85ef4c5db16cff86

query I rowsort
SELECT DISTINCT + + col1 * col2 + + ( cor0.col1 ) * col2 AS col1 FROM tab2 cor0
----
1292
1674
3068

query I rowsort
SELECT - col0 * ( col2 ) + - col2 + + 32 AS col2 FROM tab0 AS cor0
----
-4
-7348
-793

query I rowsort
SELECT - col0 * col0 * - col1 AS col1 FROM tab2
----
106097
1519
358956

query I rowsort
SELECT col0 * col0 * - col2 + 52 * col0 - - ( ( - col2 ) ) FROM tab0
----
-17793
-644976
594

query I rowsort
SELECT DISTINCT 34 AS col2 FROM tab1, tab0, tab1 AS cor0
----
34

query I rowsort
SELECT col1 + col1 + cor0.col1 * + col1 AS col2 FROM tab2 AS cor0
----
1023
323
3599

query I rowsort
SELECT - col1 * - cor0.col0 * col2 AS col2 FROM tab0 AS cor0
----
3395
664118
68112

query I rowsort
SELECT ALL tab1.col1 + 32 FROM tab1
----
42
45
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - col0 - cor0.col2 col2 FROM tab1 AS cor0
----
-1136
-132
-697

query I rowsort
SELECT ALL + col1 * - ( - cor0.col1 ) + - col0 AS col2 FROM tab0 AS cor0
----
7372
8192
9374

query I rowsort
SELECT DISTINCT + + col2 + col1 * + col2 * col0 FROM tab0 AS cor0
----
3396
664200
68145

onlyif mysql # use DIV operator for integer division
query I rowsort label-4596
SELECT col0 * cor0.col1 + + cor0.col1 DIV - col0 + col1 AS col1 FROM tab0 AS cor0
----
2147
3490
8189

skipif mysql # not compatible
query I rowsort label-4596
SELECT col0 * cor0.col1 + + cor0.col1 / - col0 + col1 AS col1 FROM tab0 AS cor0
----
2147
3490
8189

query I rowsort
SELECT - col2 + 73 * - cor0.col2 + + col1 FROM tab2 AS cor0
----
-1865
-1967
-2795

query I rowsort
SELECT col1 * 12 AS col2 FROM tab0 AS cor0
----
1032
1092
1164

query I rowsort
SELECT DISTINCT + - 80 + 72 FROM tab1 AS cor0
----
-8

query I rowsort
SELECT ALL + + col1 * col2 FROM tab1 cor0
----
1248
1404
570

query I rowsort
SELECT ALL - 74 AS col2 FROM tab1, tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
27 values hashing to 5a477330c946251f814fbbfd08e77c28

query I rowsort
SELECT - ( + col0 ) * col2 AS col1 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT + + 11 + col1 AS col2 FROM tab2 cor0
----
28
42
70

query I rowsort
SELECT ( cor0.col0 ) * + col1 AS col1 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT DISTINCT + cor0.col2 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
1
33
82

query I rowsort
SELECT DISTINCT + + col2 - - col2 AS col0 FROM tab1 AS cor0
----
108
114
192

onlyif mysql # use DIV operator for integer division
query I rowsort label-4607
SELECT DISTINCT - ( col0 ) DIV 54 FROM tab1 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-4607
SELECT DISTINCT - ( col0 ) / 54 FROM tab1 AS cor0
----
-1
0

query I rowsort
SELECT + 66 * + col2 AS col0 FROM tab1 AS cor0
----
3564
3762
6336

query I rowsort
SELECT ALL + 46 * col2 FROM tab0 AS cor0
----
1518
3772
46

query I rowsort
SELECT DISTINCT - 99 * + col1 * 2 AS col1 FROM tab1 AS cor0
----
-1980
-2574
-5148

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 98 - - col1 col0 FROM tab2 cor0
----
115
129
157

query I rowsort
SELECT ALL col1 + col2 + - col0 AS col1 FROM tab2 AS cor0
----
-24
51
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-4613
SELECT DISTINCT col2 * + col2 - 34 DIV + ( - col0 ) FROM tab0 AS cor0
----
1
1090
6724

skipif mysql # not compatible
query I rowsort label-4613
SELECT DISTINCT col2 * + col2 - 34 / + ( - col0 ) FROM tab0 AS cor0
----
1
1090
6724

query I rowsort
SELECT DISTINCT col0 + cor0.col0 * col1 AS col0 FROM tab1 AS cor0
----
1120
704
81

query I rowsort
SELECT DISTINCT + + 31 FROM tab0 AS cor0
----
31

query I rowsort
SELECT cor0.col1 * + cor0.col1 AS col2 FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT DISTINCT + col0 * - col2 * - col0 AS col2 FROM tab2 cor0
----
1323
158184
237158

onlyif mysql # use DIV operator for integer division
query I rowsort label-4618
SELECT - col1 DIV - col1 + - cor0.col2 AS col2 FROM tab2 cor0
----
-25
-26
-37

skipif mysql # not compatible
query I rowsort label-4618
SELECT - col1 / - col1 + - cor0.col2 AS col2 FROM tab2 cor0
----
-25
-26
-37

query I rowsort
SELECT DISTINCT - cor0.col0 * - cor0.col1 FROM tab1 AS cor0
----
1040
640
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-4620
SELECT - + col1 DIV - cor0.col1 + col0 + - col0 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4620
SELECT - + col1 / - cor0.col1 + col0 + - col0 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT ALL - + ( col0 ) + - col1 FROM tab1 cor0
----
-29
-74
-93

query I rowsort
SELECT + ( - cor0.col1 + cor0.col1 ) FROM tab0, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab0.col1 * - ( col0 ) * col2 col1 FROM tab0
----
-3395
-664118
-68112

skipif mysql # not compatible
query I rowsort
SELECT CAST ( - 3 AS REAL ) AS col1 FROM tab1
----
-3
-3
-3

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4625
SELECT CAST( 39 AS SIGNED ) AS col1 FROM tab2
----
39
39
39

skipif mysql # not compatible
query I rowsort label-4625
SELECT CAST ( 39 AS INTEGER ) AS col1 FROM tab2
----
39
39
39

query I rowsort
SELECT DISTINCT - - 67 FROM tab2, tab0, tab0 AS cor0
----
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( tab2.col2 ) col0 FROM tab2
----
26
27
38

query I rowsort
SELECT DISTINCT - col2 + col1 - - 98 AS col1 FROM tab0 AS cor0
----
107
151
194

query I rowsort
SELECT ALL cor0.col2 + + cor0.col2 AS col1 FROM tab0 cor0
----
164
2
66

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4630
SELECT ALL + col2 / CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4630
SELECT ALL + col2 / CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 * 18 - col0 AS col2 FROM tab0 AS cor0
----
1524
1549
1711

query I rowsort
SELECT ALL + 68 * col1 FROM tab2 AS cor0
----
1156
2108
4012

query I rowsort
SELECT DISTINCT + 71 * col0 AS col0 FROM tab0 AS cor0
----
1704
2485
6319

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4634
SELECT - CAST( col1 AS SIGNED ) * - tab1.col0 FROM tab1
----
1040
640
78

skipif mysql # not compatible
query I rowsort label-4634
SELECT - CAST ( col1 AS INTEGER ) * - tab1.col0 FROM tab1
----
1040
640
78

query I rowsort
SELECT - col2 - - col2 * + col2 AS col0 FROM tab1 AS cor0
----
2862
3192
9120

query I rowsort
SELECT + 40 + + 14 AS col2 FROM tab0 AS cor0
----
54
54
54

onlyif mysql # use DIV operator for integer division
query I rowsort label-4637
SELECT DISTINCT - col1 DIV 50 FROM tab2 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-4637
SELECT DISTINCT - col1 / 50 FROM tab2 AS cor0
----
-1
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + col0 * + col0 col1 FROM tab2 AS cor0
----
6143
6258
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - cor0.col2 + - col2 * + col2 col1 FROM tab1 cor0
----
-2970
-3306
-9312

query I rowsort
SELECT DISTINCT col1 * col1 + - 44 AS col0 FROM tab0 cor0
----
7352
8237
9365

query I rowsort
SELECT 58 AS col0 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 9ee363c6ac19cfdb8a50c7dfd5cc2b8a

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4642
SELECT - 63 * col1 + + CAST( NULL AS SIGNED ) AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4642
SELECT - 63 * col1 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - + 13 FROM tab0 AS cor0
----
-13

query I rowsort
SELECT - col2 + col0 * + col2 FROM tab2 AS cor0
----
162
2002
2964

query I rowsort
SELECT DISTINCT - col2 * - col1 + ( - col1 * col2 ) FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL ( col1 ) + col2 * 27 FROM tab2 AS cor0
----
1043
760
761

query I rowsort
SELECT + 47 AS col0 FROM tab0, tab2 AS cor0, tab1 cor1, tab2 cor2
----
81 values hashing to 5c7a6f591fb2a38893dafe56c4b9b97f

query I rowsort
SELECT ALL - - 93 + col1 * cor0.col0 FROM tab2 AS cor0
----
1436
310
4695

onlyif mysql # use DIV operator for integer division
query I rowsort label-4649
SELECT - col1 * - ( - col0 ) DIV col0 AS col2 FROM tab2 AS cor0
----
-17
-31
-59

skipif mysql # not compatible
query I rowsort label-4649
SELECT - col1 * - ( - col0 ) / col0 AS col2 FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT ALL - col2 * - 18 FROM tab1 AS cor0
----
1026
1728
972

onlyif mysql # use DIV operator for integer division
query I rowsort label-4651
SELECT DISTINCT col0 * + col2 + col1 DIV col2 AS col0 FROM tab0 AS cor0
----
132
7299
794

skipif mysql # not compatible
query I rowsort label-4651
SELECT DISTINCT col0 * + col2 + col1 / col2 AS col0 FROM tab0 AS cor0
----
132
7299
794

query I rowsort
SELECT DISTINCT + col1 * ( 56 ) + - col2 * col0 * col1 FROM tab2 cor0
----
-116348
-4123
-50082

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + - 84 col0 FROM tab2 AS cor0
----
-5
-6
-77

onlyif mysql # use DIV operator for integer division
query I rowsort label-4654
SELECT col2 DIV col0 + - col0 * col0 AS col0 FROM tab2
----
-46
-6084
-6241

skipif mysql # not compatible
query I rowsort label-4654
SELECT col2 / col0 + - col0 * col0 AS col0 FROM tab2
----
-46
-6084
-6241

query I rowsort
SELECT col2 * col1 * 48 + col0 * col0 AS col2 FROM tab2
----
37249
40225
79716

query I rowsort
SELECT + ( - col1 ) - - col2 AS col0 FROM tab2
----
-33
-4
21

query I rowsort
SELECT - col0 * 4 AS col0 FROM tab1 AS cor0
----
-12
-256
-320

query I rowsort
SELECT col1 + col1 * 33 FROM tab2 cor0
----
1054
2006
578

query I rowsort
SELECT - col2 + cor0.col0 * + col1 AS col1 FROM tab1 AS cor0
----
24
583
944

query I rowsort
SELECT ALL + + cor0.col0 * 71 + cor0.col2 + + col1 FROM tab1 AS cor0
----
293
4611
5789

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4661
SELECT ALL col2 * - CAST( NULL AS DECIMAL ) + col2 * + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4661
SELECT ALL col2 * - CAST ( NULL AS REAL ) + col2 * + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + col0 * - 11 AS col1 FROM tab2 cor0
----
-77
-858
-869

query I rowsort
SELECT ALL - 45 + cor0.col0 FROM tab0, tab2 cor0, tab2 AS cor1
----
27 values hashing to c3c11eaeba10c02eac26ac3fadcc1047

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 97 col1 FROM tab1 AS cor0
----
-97
-97
-97

query I rowsort
SELECT + cor0.col2 * - col2 - col2 FROM tab0 AS cor0
----
-1122
-2
-6806

onlyif mysql # use DIV operator for integer division
query I rowsort label-4666
SELECT - - col1 DIV col2 + + col0 FROM tab0 AS cor0
----
132
26
90

skipif mysql # not compatible
query I rowsort label-4666
SELECT - - col1 / col2 + + col0 FROM tab0 AS cor0
----
132
26
90

query I rowsort
SELECT - + col0 + + col1 * + 9 AS col1 FROM tab1 AS cor0
----
231
26
37

query I rowsort
SELECT + - col2 * col0 - + col2 FROM tab1 AS cor0
----
-216
-3705
-7776

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4669
SELECT + CAST( NULL AS SIGNED ) + col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4669
SELECT + CAST ( NULL AS INTEGER ) + col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 + + tab0.col2 + col2 FROM tab0
----
-33
42
75

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4671
SELECT DISTINCT - CAST( col0 AS SIGNED ) + - col2 AS col1 FROM tab2
----
-104
-117
-34

skipif mysql # not compatible
query I rowsort label-4671
SELECT DISTINCT - CAST ( col0 AS INTEGER ) + - col2 AS col1 FROM tab2
----
-104
-117
-34

query I rowsort
SELECT DISTINCT - col1 + 73 AS col1 FROM tab2
----
14
42
56

query I rowsort
SELECT + col0 + + 87 FROM tab2
----
165
166
94

query I rowsort
SELECT ALL + col0 + col1 + - col0 AS col0 FROM tab0
----
86
91
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-4675
SELECT DISTINCT col1 + - col1 * + col0 DIV + col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4675
SELECT DISTINCT col1 + - col1 * + col0 / + col0 FROM tab1
----
0

query I rowsort
SELECT DISTINCT cor0.col1 AS col1 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
17
31
59

query I rowsort
SELECT 38 * col2 FROM tab1 cor0
----
2052
2166
3648

query I rowsort
SELECT 67 * col0 + col0 * col1 AS col0 FROM tab0 AS cor0
----
14062
3672
5740

query I rowsort
SELECT - - col0 * - col2 + + 35 + - col2 * col0 FROM tab1 AS cor0
----
-15325
-289
-7261

onlyif mysql # use DIV operator for integer division
query I rowsort label-4680
SELECT col2 - col0 DIV - col0 FROM tab1 cor0
----
55
58
97

skipif mysql # not compatible
query I rowsort label-4680
SELECT col2 - col0 / - col0 FROM tab1 cor0
----
55
58
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4681
SELECT - + ( - col1 ) * ( - 44 + + col1 * CAST( col1 AS SIGNED ) ) FROM tab1 AS cor0
----
1625
16432
560

skipif mysql # not compatible
query I rowsort label-4681
SELECT - + ( - col1 ) * ( - 44 + + col1 * CAST ( col1 AS INTEGER ) ) FROM tab1 AS cor0
----
1625
16432
560

query I rowsort
SELECT DISTINCT - - col1 * col2 * + col1 AS col2 FROM tab1 cor0
----
16224
36504
5700

query I rowsort
SELECT + + ( - cor0.col1 ) * col1 AS col0 FROM tab1 AS cor0
----
-100
-169
-676

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4684
SELECT - col1 + - CAST( NULL AS SIGNED ) * 3 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4684
SELECT - col1 + - CAST ( NULL AS INTEGER ) * 3 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + ( col1 ) * cor0.col2 AS col2 FROM tab0 cor0
----
2838
7462
97

query I rowsort
SELECT 22 * 10 FROM tab0 AS cor0
----
220
220
220

query I rowsort
SELECT ALL - col1 * - col2 * col2 AS col0 FROM tab1
----
119808
32490
75816

query I rowsort
SELECT DISTINCT col0 * + 86 * + col0 FROM tab2
----
4214
523224
536726

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 14 col0 FROM tab2, tab2 AS cor0 CROSS JOIN tab1
----
27 values hashing to 409c1790b702540dd9dc067c1965b7c0

query I rowsort
SELECT + col1 - 16 FROM tab0
----
70
75
81

query I rowsort
SELECT - - col0 * col1 + - col0 * col0 - col2 FROM tab0 AS cor0
----
1455
2169
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4692
SELECT - CAST( NULL AS SIGNED ) * 71 + - cor0.col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4692
SELECT - CAST ( NULL AS INTEGER ) * 71 + - cor0.col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4693
SELECT - + 73 DIV col0 col1 FROM tab2 AS cor0
----
-10
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4693
SELECT - + 73 / col0 col1 FROM tab2 AS cor0
----
-10
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4694
SELECT 75 + - 13 DIV col2 AS col0 FROM tab0 AS cor0
----
62
75
75

skipif mysql # not compatible
query I rowsort label-4694
SELECT 75 + - 13 / col2 AS col0 FROM tab0 AS cor0
----
62
75
75

query I rowsort
SELECT DISTINCT - 75 * col1 + ( + col2 ) AS col2 FROM tab2 AS cor0
----
-1237
-2298
-4399

query I rowsort
SELECT ALL + cor0.col0 + col1 * cor0.col2 FROM tab0 AS cor0
----
132
2862
7551

query I rowsort
SELECT - + col1 + - cor0.col1 * 7 * col0 FROM tab2 AS cor0
----
-1550
-32273
-9418

query I rowsort
SELECT cor0.col0 * 19 AS col2 FROM tab1, tab0 cor0, tab0, tab1 cor1
----
81 values hashing to a1a7b969ea96e44f49c2c343f2e81729

query I rowsort
SELECT - col0 + - 37 * col1 FROM tab0 AS cor0
----
-3206
-3456
-3624

query I rowsort
SELECT - cor0.col0 + col2 * cor0.col0 * + col2 FROM tab0 AS cor0
----
0
26112
598347

query I rowsort
SELECT + col0 + col0 * 98 AS col2 FROM tab0 AS cor0
----
2376
3465
8811

query I rowsort
SELECT + + cor0.col1 + col0 + 66 * col2 AS col0 FROM tab2 cor0
----
1820
1853
2604

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4703
SELECT ALL - - col2 * + CAST( col0 AS SIGNED ) + - col0 FROM tab1 AS cor0
----
159
3584
7600

skipif mysql # not compatible
query I rowsort label-4703
SELECT ALL - - col2 * + CAST ( col0 AS INTEGER ) + - col0 FROM tab1 AS cor0
----
159
3584
7600

query I rowsort
SELECT + col0 + - 45 AS col1 FROM tab0 AS cor0
----
-10
-21
44

onlyif mysql # use DIV operator for integer division
query I rowsort label-4705
SELECT DISTINCT + - ( + col0 ) + + col0 DIV cor0.col1 col2 FROM tab1 AS cor0
----
-3
-58
-74

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4705
SELECT DISTINCT + - ( + col0 ) + + col0 / cor0.col1 col2 FROM tab1 AS cor0
----
-3
-58
-74

query I rowsort
SELECT ALL - + col1 + - cor0.col2 * - col0 FROM tab1 AS cor0
----
136
3638
7667

query I rowsort
SELECT ALL 69 + + col1 + + cor0.col1 AS col1 FROM tab2 AS cor0
----
103
131
187

onlyif mysql # use DIV operator for integer division
query I rowsort label-4708
SELECT - + 12 DIV col0 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4708
SELECT - + 12 / col0 FROM tab2 AS cor0
----
-1
0
0

query I rowsort
SELECT + col1 * + 45 AS col1 FROM tab1 cor0
----
1170
450
585

query I rowsort
SELECT DISTINCT + 20 + + col1 * col2 + - col0 FROM tab1 AS cor0
----
1188
1421
526

onlyif mysql # use DIV operator for integer division
query I rowsort label-4711
SELECT ALL - 81 * - 74 - - col0 DIV + col0 FROM tab1 AS cor0
----
5995
5995
5995

skipif mysql # not compatible
query I rowsort label-4711
SELECT ALL - 81 * - 74 - - col0 / + col0 FROM tab1 AS cor0
----
5995
5995
5995

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4712
SELECT DISTINCT + + CAST( col1 AS SIGNED ) * - col1 AS col0 FROM tab0 AS cor0
----
-7396
-8281
-9409

skipif mysql # not compatible
query I rowsort label-4712
SELECT DISTINCT + + CAST ( col1 AS INTEGER ) * - col1 AS col0 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT + 53 + col0 * cor0.col0 * - 60 FROM tab0 AS cor0
----
-34507
-475207
-73447

query I rowsort
SELECT cor0.col2 * col2 + + col2 AS col1 FROM tab0 AS cor0
----
1122
2
6806

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + - 32 + + col2 col0 FROM tab1 AS cor0
----
-4
15
51

query I rowsort
SELECT ALL col2 * - 16 + + 44 * col2 + + col1 FROM tab2 cor0
----
1081
787
787

query I rowsort
SELECT - cor0.col0 + 39 AS col0 FROM tab1 AS cor0
----
-25
-41
36

query I rowsort
SELECT DISTINCT + - col0 + - col1 + + col1 FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT DISTINCT col0 * col2 * cor0.col0 + col1 * + col2 FROM tab2 AS cor0
----
159718
2160
237804

onlyif mysql # use DIV operator for integer division
query I rowsort label-4720
SELECT DISTINCT + ( col0 ) DIV ( 70 ) + col1 AS col2 FROM tab2
----
18
31
60

skipif mysql # not compatible
query I rowsort label-4720
SELECT DISTINCT + ( col0 ) / ( 70 ) + col1 AS col2 FROM tab2
----
18
31
60

query I rowsort
SELECT DISTINCT - col2 * - tab2.col0 + - col2 * + col0 AS col0 FROM tab2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - col1 + 72 * - 86 * + tab1.col2 col2 FROM tab1
----
-335044
-353044
-594601

query I rowsort
SELECT - col2 + + col0 * - ( col1 + + tab0.col2 ) FROM tab0
----
-15479
-2889
-3431

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 * 20 col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 39aa8ee8d93475b24dace78bf39d2c42

query I rowsort
SELECT DISTINCT - col0 + col0 * col1 AS col0 FROM tab0
----
2040
3360
8010

query I rowsort
SELECT DISTINCT cor1.col2 + 67 AS col0 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
105
93
94

onlyif mysql # use DIV operator for integer division
query I rowsort label-4727
SELECT ALL cor0.col2 DIV 78 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 14fcfa6c11198893073049d94262832c

skipif mysql # not compatible
query I rowsort label-4727
SELECT ALL cor0.col2 / 78 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 14fcfa6c11198893073049d94262832c

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col1 ) + col2 col1 FROM tab0
----
119
173
98

query I rowsort
SELECT + 11 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00

query I rowsort
SELECT DISTINCT + - 8 FROM tab0, tab1, tab1 AS cor0
----
-8

query I rowsort
SELECT ALL 58 + cor0.col1 FROM tab0 AS cor0
----
144
149
155

query I rowsort
SELECT ALL + col0 * + col2 + 54 * - col2 * + col1 FROM tab1 AS cor0
----
-27132
-59712
-75654

query I rowsort
SELECT - ( + cor1.col1 ) FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6

query I rowsort
SELECT DISTINCT + ( - col2 ) + ( - col0 ) FROM tab1 AS cor0
----
-121
-176
-57

query I rowsort
SELECT + col1 * col1 + - cor0.col0 * + col0 FROM tab0 AS cor0
----
360
6820
8184

query I rowsort
SELECT 16 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3

onlyif mysql # use DIV operator for integer division
query I rowsort label-4737
SELECT ALL - tab0.col0 + - col0 DIV + col1 + + col1 FROM tab0
----
2
62
62

skipif mysql # not compatible
query I rowsort label-4737
SELECT ALL - tab0.col0 + - col0 / + col1 + + col1 FROM tab0
----
2
62
62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4738
SELECT DISTINCT col2 * col0 * 92 + col0 * + ( ( - col0 ) ) + - CAST( 61 * - col1 + col2 * col0 AS SIGNED ) FROM tab1
----
16319
328482
693273

skipif mysql # not compatible
query I rowsort label-4738
SELECT DISTINCT col2 * col0 * 92 + col0 * + ( ( - col0 ) ) + - CAST ( 61 * - col1 + col2 * col0 AS INTEGER ) FROM tab1
----
16319
328482
693273

query I rowsort
SELECT col1 + 32 + col0 AS col0 FROM tab1
----
106
125
61

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4740
SELECT DISTINCT - tab0.col0 + CAST( 0 AS SIGNED ) * - col0 + ( col1 ) * - col2 AS col2 FROM tab0
----
-132
-2862
-7551

skipif mysql # not compatible
query I rowsort label-4740
SELECT DISTINCT - tab0.col0 + CAST ( 0 AS INTEGER ) * - col0 + ( col1 ) * - col2 AS col2 FROM tab0
----
-132
-2862
-7551

query I rowsort
SELECT + col2 + + 49 FROM tab0 AS cor0
----
131
50
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-4742
SELECT DISTINCT tab1.col2 DIV + cor1.col2 AS col1 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
0
1

skipif mysql # not compatible
query I rowsort label-4742
SELECT DISTINCT tab1.col2 / + cor1.col2 AS col1 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
0
1

skipif mysql # not compatible
query I rowsort
SELECT - col0 + CAST ( - 82 AS REAL ) * + col2 + + ( + col0 ) FROM tab2
----
-2132
-2214
-3116

query I rowsort
SELECT ALL ( cor0.col2 ) * + col1 + + col1 FROM tab2 AS cor0
----
1593
663
868

query I rowsort
SELECT DISTINCT - - ( - 83 ) * cor0.col1 FROM tab0 AS cor0
----
-7138
-7553
-8051

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4746
SELECT DISTINCT - CAST( cor0.col2 AS SIGNED ) + + col1 + - 62 AS col2 FROM tab1 AS cor0
----
-109
-145
-90

skipif mysql # not compatible
query I rowsort label-4746
SELECT DISTINCT - CAST ( cor0.col2 AS INTEGER ) + + col1 + - 62 AS col2 FROM tab1 AS cor0
----
-109
-145
-90

onlyif mysql # use DIV operator for integer division
query I rowsort label-4747
SELECT + col2 DIV 97 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4747
SELECT + col2 / 97 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - 73 * + col2 FROM tab2 cor0
----
-1898
-1971
-2774

query I rowsort
SELECT col1 * + col1 + - cor0.col2 AS col0 FROM tab0 AS cor0
----
7363
8199
9408

query I rowsort
SELECT cor0.col0 * + ( col2 ) FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT ALL + + 54 * 24 FROM tab2 AS cor0
----
1296
1296
1296

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * 30 * - col0 col2 FROM tab0 AS cor0
----
-101850
-242970
-61920

query I rowsort
SELECT ALL - - col2 - col0 * - cor0.col2 FROM tab2 AS cor0
----
2054
216
3040

query I rowsort
SELECT - col2 + + col1 * col2 AS col2 FROM tab2 AS cor0
----
1508
608
810

query I rowsort
SELECT DISTINCT 67 * col1 + col0 FROM tab1 AS cor0
----
1745
734
951

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4756
SELECT ALL + CAST( ( - col1 ) AS SIGNED ) * + col2 + col1 * cor0.col1 col2 FROM tab2 AS cor0
----
-357
124
1947

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4756
SELECT ALL + CAST ( ( - col1 ) AS INTEGER ) * + col2 + col1 * cor0.col1 col2 FROM tab2 AS cor0
----
-357
124
1947

query I rowsort
SELECT DISTINCT 33 + col1 * col2 + col1 * + ( - cor0.col0 ) FROM tab0 AS cor0
----
-3265
-604
807

query I rowsort
SELECT - + 44 * + col1 + - col1 * + 59 FROM tab2 AS cor0
----
-1751
-3193
-6077

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * 42 col1 FROM tab0
----
3612
3822
4074

query I rowsort
SELECT + 5 + col2 * col2 FROM tab1 AS cor0
----
2921
3254
9221

query I rowsort
SELECT DISTINCT + 74 AS col1 FROM tab1, tab0 AS cor0
----
74

query I rowsort
SELECT ALL + col0 + ( - col1 ) AS col0 FROM tab1 cor0
----
-23
54
67

query I rowsort
SELECT + + ( + 72 ) * + cor0.col0 AS col1 FROM tab2 AS cor0
----
504
5616
5688

query I rowsort
SELECT + col2 * 4 + + col2 FROM tab1 AS cor0
----
270
285
480

query I rowsort
SELECT + + 4 * col0 FROM tab2 AS cor0
----
28
312
316

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( cor0.col2 ) * ( col1 ) + - cor0.col0 col1 FROM tab0 AS cor0
----
2814
62
7373

query I rowsort
SELECT - 45 + - col0 FROM tab1 AS cor0
----
-109
-125
-48

query I rowsort
SELECT 99 * - 69 + col2 AS col2 FROM tab2
----
-6793
-6804
-6805

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4769
SELECT ALL + cor0.col1 + CAST( NULL AS DECIMAL ) * + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4769
SELECT ALL + cor0.col1 + CAST ( NULL AS REAL ) * + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 * - 30 * col2 FROM tab0 AS cor0
----
-1050
-218940
-23760

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4771
SELECT DISTINCT + col0 - CAST( NULL AS SIGNED ) * cor0.col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4771
SELECT DISTINCT + col0 - CAST ( NULL AS INTEGER ) * cor0.col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + + col0 + cor0.col1 * cor0.col0 AS col2 FROM tab0 AS cor0
----
2088
3430
8188

query I rowsort
SELECT ALL col2 * - col1 - - ( + col2 + 19 ) FROM tab1 AS cor0
----
-1133
-1331
-494

query I rowsort
SELECT DISTINCT + 97 * cor1.col0 FROM tab2, tab0 cor0, tab0 cor1
----
2328
3395
8633

onlyif mysql # use DIV operator for integer division
query I rowsort label-4775
SELECT - cor0.col1 DIV 73 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4775
SELECT - cor0.col1 / 73 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + 94 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4777
SELECT - CAST( col1 AS SIGNED ) + cor0.col0 FROM tab0 AS cor0
----
-2
-62
-62

skipif mysql # not compatible
query I rowsort label-4777
SELECT - CAST ( col1 AS INTEGER ) + cor0.col0 FROM tab0 AS cor0
----
-2
-62
-62

query I rowsort
SELECT DISTINCT - col2 * + 20 - + 99 FROM tab2 AS cor0
----
-619
-639
-859

onlyif mysql # use DIV operator for integer division
query I rowsort label-4779
SELECT - col1 DIV 40 col0 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4779
SELECT - col1 / 40 col0 FROM tab1
----
0
0
0

query I rowsort
SELECT + col1 + + 29 FROM tab0 AS cor0
----
115
120
126

query I rowsort
SELECT + col0 + 10 FROM tab0
----
34
45
99

query I rowsort
SELECT DISTINCT - + col2 - col1 FROM tab2 AS cor0
----
-55
-58
-85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 - col0 col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col1 + + 72 * + col0 FROM tab1 AS cor0
----
242
4618
5773

query I rowsort
SELECT - + col1 * + 12 + + col2 + + col2 AS col2 FROM tab0 cor0
----
-1162
-928
-966

query I rowsort
SELECT DISTINCT + 85 AS col1 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
85

query I rowsort
SELECT + col2 + 18 * cor0.col1 AS col0 FROM tab2 AS cor0
----
1088
344
585

query I rowsort
SELECT DISTINCT 2 + + 27 AS col2 FROM tab2 AS cor0
----
29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - cor0.col1 * col0 * + col0 + 31 col1 FROM tab0 cor0
----
118856
49567
720842

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 66 col1 FROM tab1 cor0
----
66
66
66

query I rowsort
SELECT DISTINCT - + 21 FROM tab0 cor0
----
-21

query I rowsort
SELECT ALL ( + 11 ) + col2 AS col1 FROM tab1 AS cor0
----
107
65
68

onlyif mysql # use DIV operator for integer division
query I rowsort label-4793
SELECT + - 64 + col1 * col0 DIV col0 FROM tab0 AS cor0
----
22
27
33

skipif mysql # not compatible
query I rowsort label-4793
SELECT + - 64 + col1 * col0 / col0 FROM tab0 AS cor0
----
22
27
33

query I rowsort
SELECT ALL col2 * col0 + + col2 * - col2 AS col1 FROM tab2 AS cor0
----
-540
1352
1558

query I rowsort
SELECT - + col2 * - cor0.col1 AS col1 FROM tab1 cor0
----
1248
1404
570

query I rowsort
SELECT DISTINCT - + col1 * + col2 * - col1 + + col0 AS col0 FROM tab0 cor0
----
244092
679131
9444

query I rowsort
SELECT DISTINCT 92 * col2 FROM tab0 AS cor0
----
3036
7544
92

onlyif mysql # use DIV operator for integer division
query I rowsort label-4798
SELECT - col2 DIV col0 + col2 * - col2 AS col0 FROM tab0
----
-1
-1090
-6724

skipif mysql # not compatible
query I rowsort label-4798
SELECT - col2 / col0 + col2 * - col2 AS col0 FROM tab0
----
-1
-1090
-6724

query I rowsort
SELECT + col2 * + ( - 87 ) - + tab1.col1 * - col1 AS col1 FROM tab1
----
-4022
-4859
-8183

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + cor0.col0 + + 64 * + col1 col0 FROM tab2 AS cor0
----
1205
2018
3880

query I rowsort
SELECT - + col2 + col0 * + col2 * col0 AS col0 FROM tab0 AS cor0
----
1224
18975
649440

query I rowsort
SELECT + col2 * col2 + - 60 FROM tab1 AS cor0
----
2856
3189
9156

query I rowsort
SELECT ( + col2 * + col1 ) AS col1 FROM tab1
----
1248
1404
570

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4804
SELECT ALL CAST( NULL AS SIGNED ) * 87 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4804
SELECT ALL CAST ( NULL AS INTEGER ) * 87 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4805
SELECT DISTINCT - CAST( 28 AS SIGNED ) * col2 FROM tab1
----
-1512
-1596
-2688

skipif mysql # not compatible
query I rowsort label-4805
SELECT DISTINCT - CAST ( 28 AS INTEGER ) * col2 FROM tab1
----
-1512
-1596
-2688

onlyif mysql # use DIV operator for integer division
query I rowsort label-4806
SELECT ALL - tab2.col2 DIV col0 AS col1 FROM tab2
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-4806
SELECT ALL - tab2.col2 / col0 AS col1 FROM tab2
----
-3
0
0

query I rowsort
SELECT ALL - - 97 * + col1 FROM tab2 AS cor0
----
1649
3007
5723

query I rowsort
SELECT ALL - 59 FROM tab2, tab0 AS cor0
----
9 values hashing to 1e6537c922fa953e0fd2f59430803703

query I rowsort
SELECT + col2 * 9 FROM tab1
----
486
513
864

query I rowsort
SELECT + + col1 * col2 + ( + 43 * col0 ) + - 19 * - col2 * + col0 AS col2 FROM tab0 cor0
----
149951
18918
2267

query I rowsort
SELECT + - col0 * col0 * col0 + col2 FROM tab1 AS cor0
----
-262087
-511904
27

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4812
SELECT DISTINCT col0 * CAST( + col0 AS SIGNED ) col2 FROM tab1 AS cor0
----
4096
6400
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4812
SELECT DISTINCT col0 * CAST ( + col0 AS INTEGER ) col2 FROM tab1 AS cor0
----
4096
6400
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col2 * 36 col2 FROM tab1 AS cor0
----
-1944
-2052
-3456

onlyif mysql # use DIV operator for integer division
query I rowsort label-4814
SELECT ALL + col2 * col0 * col1 - - col2 DIV 98 FROM tab1 cor0
----
36480
4212
99840

skipif mysql # not compatible
query I rowsort label-4814
SELECT ALL + col2 * col0 * col1 - - col2 / 98 FROM tab1 cor0
----
36480
4212
99840

query I rowsort
SELECT DISTINCT + col2 + ( col1 ) * - col0 FROM tab1 AS cor0
----
-24
-583
-944

query I rowsort
SELECT - 2 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 20c9213316527d507e26425041e08387

query I rowsort
SELECT DISTINCT + col2 + col0 * col2 AS col1 FROM tab0
----
36
7380
825

query I rowsort
SELECT ALL + - 69 FROM tab0, tab2, tab0 cor0
----
27 values hashing to ca5f4bc365dc2c6b14187d6ffc83a01d

query I rowsort
SELECT DISTINCT col2 + - col1 + 24 * 78 FROM tab1
----
1900
1919
1955

query I rowsort
SELECT - + col2 * - col2 AS col2 FROM tab1 cor0
----
2916
3249
9216

query I rowsort
SELECT ALL - col1 + + col2 * - col2 FROM tab2 AS cor0
----
-1461
-735
-760

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - ( col0 ) * - cor0.col0 + col1 col1 FROM tab2 AS cor0
----
107
6169
6296

query I rowsort
SELECT ALL + col1 * - 34 FROM tab1 AS cor0
----
-340
-442
-884

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4824
SELECT DISTINCT - cor0.col2 + CAST( NULL AS SIGNED ) * col2 + + col0 * - ( col2 ) * + col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4824
SELECT DISTINCT - cor0.col2 + CAST ( NULL AS INTEGER ) * col2 + + col0 * - ( col2 ) * + col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - - col1 * - 67 AS col0 FROM tab1 cor0
----
-1742
-670
-871

query I rowsort
SELECT - + col2 * + 8 FROM tab2 AS cor0
----
-208
-216
-304

query I rowsort
SELECT ALL col2 * col0 + col0 * - col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL cor0.col2 + ( col2 ) * - col2 FROM tab2 AS cor0
----
-1406
-650
-702

query I rowsort
SELECT + 2 * 42 + + tab0.col1 - col1 FROM tab0
----
84
84
84

query I rowsort
SELECT + col2 * + col1 * col0 AS col2 FROM tab0
----
3395
664118
68112

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * 67 col2 FROM tab0
----
2211
5494
67

onlyif mysql # use DIV operator for integer division
query I rowsort label-4832
SELECT + col0 DIV col1 + col0 * col1 + col1 AS col0 FROM tab1 AS cor0
----
104
1059
656

skipif mysql # not compatible
query I rowsort label-4832
SELECT + col0 / col1 + col0 * col1 + col1 AS col0 FROM tab1 AS cor0
----
104
1059
656

query I rowsort
SELECT 81 + + tab0.col2 + 13 AS col0 FROM tab0
----
127
176
95

query I rowsort
SELECT DISTINCT + col2 + cor0.col1 * + col2 AS col0 FROM tab0 AS cor0
----
2871
7544
98

query I rowsort
SELECT DISTINCT - 51 + - col0 * cor0.col2 FROM tab1 AS cor0
----
-213
-3699
-7731

query I rowsort
SELECT + + 28 * col2 + col2 AS col2 FROM tab2 cor0
----
1102
754
783

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4837
SELECT DISTINCT + CAST( NULL AS SIGNED ) + col1 AS col2 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4837
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + col1 AS col2 FROM tab0 cor0
----
NULL

query I rowsort
SELECT - + col2 * 2 FROM tab2 AS cor0
----
-52
-54
-76

query I rowsort
SELECT 16 + col0 FROM tab2 cor0
----
23
94
95

query I rowsort
SELECT DISTINCT + - ( - col0 ) * + col2 * col0 AS col0 FROM tab0 AS cor0
----
1225
19008
649522

query I rowsort
SELECT 45 FROM tab2, tab0 AS cor0 CROSS JOIN tab0, tab2 cor1
----
81 values hashing to 8a6d20810140ea088e8e0fd74ffb8339

query I rowsort
SELECT DISTINCT + cor0.col1 + + col1 FROM tab1 cor0
----
20
26
52

query I rowsort
SELECT ALL ( - cor0.col0 ) AS col0 FROM tab0 cor0
----
-24
-35
-89

onlyif mysql # use DIV operator for integer division
query I rowsort label-4844
SELECT + 1 DIV - col1 + col1 FROM tab2 AS cor0
----
17
31
59

skipif mysql # not compatible
query I rowsort label-4844
SELECT + 1 / - col1 + col1 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT ALL ( + col1 ) * col2 AS col2 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT ALL + + col0 * cor0.col2 * + col0 AS col1 FROM tab2 AS cor0
----
1323
158184
237158

query I rowsort
SELECT col2 - - 4 AS col2 FROM tab2 AS cor0
----
30
31
42

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4848
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col0 FROM tab0, tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4848
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0 FROM tab0, tab1 cor0
----
NULL

query I rowsort
SELECT ALL - 9 - + col1 FROM tab1 AS cor0
----
-19
-22
-35

query I rowsort
SELECT + ( + 13 ) * col0 FROM tab1 cor0
----
1040
39
832

query I rowsort
SELECT + 5 + + col2 AS col0 FROM tab0 AS cor0
----
38
6
87

query I rowsort
SELECT + 88 AS col2 FROM tab2
----
88
88
88

onlyif mysql # use DIV operator for integer division
query I rowsort label-4853
SELECT ALL + - col0 * - ( + col1 ) + cor0.col0 DIV 2 AS col0 FROM tab2 AS cor0
----
1382
220
4641

skipif mysql # not compatible
query I rowsort label-4853
SELECT ALL + - col0 * - ( + col1 ) + cor0.col0 / 2 AS col0 FROM tab2 AS cor0
----
1382
220
4641

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4854
SELECT - col2 * + CAST( NULL AS SIGNED ) + - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4854
SELECT - col2 * + CAST ( NULL AS INTEGER ) + - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - cor0.col1 * 0 col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - col2 + col0 * + col0 * + col0 FROM tab1 AS cor0
----
-27
262087
511904

query I rowsort
SELECT - 62 * - col2 + col1 FROM tab1
----
3374
3544
5965

query I rowsort
SELECT ALL - 62 * 87 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ff6abe126d74d63a664e5a2af346bdd0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4859
SELECT + tab2.col2 - + col0 DIV 46 col2 FROM tab2
----
25
27
37

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4859
SELECT + tab2.col2 - + col0 / 46 col2 FROM tab2
----
25
27
37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * ( + col1 ) col1 FROM tab1
----
100
169
676

query I rowsort
SELECT DISTINCT - col1 * 6 + 75 * - col2 AS col2 FROM tab0
----
-2991
-657
-6696

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4862
SELECT col1 + ( + tab2.col0 ) * - col0 + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4862
SELECT col1 + ( + tab2.col0 ) * - col0 + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT col1 + + ( + 12 ) FROM tab2
----
29
43
71

query I rowsort
SELECT ALL - col2 * + 46 AS col1 FROM tab2 cor0
----
-1196
-1242
-1748

query I rowsort
SELECT + + cor0.col2 + col2 - col1 * col1 FROM tab1 cor0
----
-568
14
23

query I rowsort
SELECT - 93 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 38f445d95788c7dc754ff688a62df03b

query I rowsort
SELECT DISTINCT + 52 FROM tab1, tab2 AS cor0
----
52

query I rowsort
SELECT ALL - ( cor0.col2 ) FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 44fdcd7cd603352d4d127811d164cc1e

query I rowsort
SELECT + col2 * + col1 - + col2 FROM tab1 AS cor0
----
1152
1350
513

query I rowsort
SELECT + 74 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to dc22979e6d261795bd3ce2990fdbbf82

onlyif mysql # use DIV operator for integer division
query I rowsort label-4871
SELECT + - col1 DIV - col1 + ( col1 ) AS col0 FROM tab2 AS cor0
----
18
32
60

skipif mysql # not compatible
query I rowsort label-4871
SELECT + - col1 / - col1 + ( col1 ) AS col0 FROM tab2 AS cor0
----
18
32
60

query I rowsort
SELECT ALL 65 * - col1 + + 87 FROM tab0 cor0
----
-5503
-5828
-6218

query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab2 cor0, tab0 cor1, tab2 cor2
----
972 values hashing to 42e69ecdafb3c81046bc5cb4c98b1666

query I rowsort
SELECT ALL - 4 + + cor0.col1 + + ( + cor0.col0 ) AS col1 FROM tab0 AS cor0
----
106
128
176

onlyif mysql # use DIV operator for integer division
query I rowsort label-4875
SELECT ALL - + 24 * + col0 + cor0.col2 + col2 DIV - col1 AS col1 FROM tab1 AS cor0
----
-1484
-1831
-20

skipif mysql # not compatible
query I rowsort label-4875
SELECT ALL - + 24 * + col0 + cor0.col2 + col2 / - col1 AS col1 FROM tab1 AS cor0
----
-1484
-1831
-20

query I rowsort
SELECT DISTINCT - col1 * col0 + - 6 AS col1 FROM tab0 AS cor0
----
-2070
-3401
-8105

query I rowsort
SELECT - - col1 * ( 92 * - col0 ) AS col1 FROM tab0 AS cor0
----
-189888
-312340
-745108

query I rowsort
SELECT col2 * 25 AS col1 FROM tab1 cor0
----
1350
1425
2400

onlyif mysql # use DIV operator for integer division
query I rowsort label-4879
SELECT DISTINCT + col1 + col2 DIV col0 + col0 FROM tab0 AS cor0
----
111
132
180

skipif mysql # not compatible
query I rowsort label-4879
SELECT DISTINCT + col1 + col2 / col0 + col0 FROM tab0 AS cor0
----
111
132
180

onlyif mysql # use DIV operator for integer division
query I rowsort label-4880
SELECT - col0 DIV ( + col0 * col1 ) AS col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4880
SELECT - col0 / ( + col0 * col1 ) AS col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT - col1 * - col0 * cor0.col1 AS col0 FROM tab0 AS cor0
----
177504
329315
737009

query I rowsort
SELECT + 69 * - col2 FROM tab0
----
-2277
-5658
-69

query I rowsort
SELECT DISTINCT ( + 87 ) * col2 + + col2 FROM tab1
----
4752
5016
8448

query I rowsort
SELECT DISTINCT - ( + tab2.col0 ) * + col1 * - tab2.col0 + col1 * - col0 AS col1 FROM tab2
----
104754
1302
354354

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 45 col1 FROM tab2
----
45
45
45

query I rowsort
SELECT cor0.col0 * + col2 * col2 + - 92 FROM tab2 AS cor0
----
113984
5011
52636

query I rowsort
SELECT 38 * col2 AS col2 FROM tab2
----
1026
1444
988

onlyif mysql # use DIV operator for integer division
query I rowsort label-4888
SELECT cor0.col2 * col1 DIV col0 + col2 FROM tab1 AS cor0
----
111
522
65

skipif mysql # not compatible
query I rowsort label-4888
SELECT cor0.col2 * col1 / col0 + col2 FROM tab1 AS cor0
----
111
522
65

query I rowsort
SELECT col0 * col2 * - col2 AS col0 FROM tab2 AS cor0
----
-114076
-5103
-52728

query I rowsort
SELECT + - 12 * + col0 FROM tab2 cor0
----
-84
-936
-948

onlyif mysql # use DIV operator for integer division
query I rowsort label-4891
SELECT ALL + + col1 * col1 + col1 DIV + 65 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-4891
SELECT ALL + + col1 * col1 + col1 / + 65 col1 FROM tab0 AS cor0
----
7397
8282
9410

query I rowsort
SELECT - - cor0.col1 * + col1 + cor0.col0 FROM tab0 AS cor0
----
7420
8370
9444

onlyif mysql # use DIV operator for integer division
query I rowsort label-4893
SELECT + ( col1 ) DIV ( col2 ) AS col0 FROM tab0 AS cor0
----
1
2
97

skipif mysql # not compatible
query I rowsort label-4893
SELECT + ( col1 ) / ( col2 ) AS col0 FROM tab0 AS cor0
----
1
2
97

query I rowsort
SELECT DISTINCT - - 54 + - col0 FROM tab2 AS cor0
----
-24
-25
47

query I rowsort
SELECT DISTINCT + cor0.col1 * 13 AS col0 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
1118
1183
1261

onlyif mysql # use DIV operator for integer division
query I rowsort label-4896
SELECT + col0 DIV col2 + + 85 * + col0 col2 FROM tab0 AS cor0
----
2040
3010
7566

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4896
SELECT + col0 / col2 + + 85 * + col0 col2 FROM tab0 AS cor0
----
2040
3010
7566

query I rowsort
SELECT ALL 55 * - col2 AS col1 FROM tab0 AS cor0
----
-1815
-4510
-55

query I rowsort
SELECT + col0 * + col0 + 25 FROM tab0 AS cor0
----
1250
601
7946

query I rowsort
SELECT ALL - + 35 AS col0 FROM tab2 AS cor0
----
-35
-35
-35

query I rowsort
SELECT - + col0 * + 38 - - 63 * cor0.col0 FROM tab1 AS cor0
----
1600
2000
75

query I rowsort
SELECT + col0 * + col0 + - col0 AS col0 FROM tab2 AS cor0
----
42
6006
6162

onlyif mysql # use DIV operator for integer division
query I rowsort label-4902
SELECT + cor0.col2 - - col0 DIV + cor0.col0 FROM tab2 AS cor0
----
27
28
39

skipif mysql # not compatible
query I rowsort label-4902
SELECT + cor0.col2 - - col0 / + cor0.col0 FROM tab2 AS cor0
----
27
28
39

query I rowsort
SELECT + col1 + - col0 * - col0 FROM tab2 AS cor0
----
6143
6258
80

query I rowsort
SELECT - + col2 + 50 AS col2 FROM tab0 AS cor0
----
-32
17
49

query I rowsort
SELECT col0 * - col1 + col1 AS col0 FROM tab2 AS cor0
----
-1326
-186
-4543

onlyif mysql # use DIV operator for integer division
query I rowsort label-4906
SELECT col0 DIV + CAST( 48 AS SIGNED ) AS col1 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4906
SELECT col0 / + CAST ( 48 AS INTEGER ) AS col1 FROM tab0
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 33 col0 FROM tab2, tab1 AS cor0
----
33

query I rowsort
SELECT DISTINCT - ( 16 ) + + cor0.col1 AS col1 FROM tab1, tab1 AS cor0
----
-3
-6
10

query I rowsort
SELECT DISTINCT + - 11 * col1 * - col2 + - 2 * 18 FROM tab2 AS cor0
----
16838
7070
9171

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 * - cor0.col2 + - cor0.col0 col0 FROM tab2 AS cor0
----
1365
598
722

onlyif mysql # use DIV operator for integer division
query I rowsort label-4911
SELECT ALL col0 + col2 DIV col0 AS col2 FROM tab1 cor0
----
21
64
81

skipif mysql # not compatible
query I rowsort label-4911
SELECT ALL col0 + col2 / col0 AS col2 FROM tab1 cor0
----
21
64
81

query I rowsort
SELECT + col0 + - 55 FROM tab2 AS cor0
----
-48
23
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 3 * - col0 col2 FROM tab0 AS cor0
----
105
267
72

query I rowsort
SELECT DISTINCT + col0 * - cor0.col0 * + col1 + - col1 AS col2 FROM tab1 AS cor0
----
-260
-40970
-83213

query I rowsort
SELECT DISTINCT + + ( - col1 ) + col0 - - ( - col2 ) FROM tab0 AS cor0
----
-63
-84
-95

query I rowsort
SELECT ALL + - 90 + + cor0.col0 FROM tab2 AS cor0
----
-11
-12
-83

query I rowsort
SELECT DISTINCT - cor0.col0 + 0 * + col2 FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT - 22 + col0 FROM tab2 AS cor0
----
-15
56
57

query I rowsort
SELECT ALL - - 0 * col0 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT tab0.col2 - 31 AS col1 FROM tab0
----
-30
2
51

query I rowsort
SELECT 56 + 83 * col0 AS col0 FROM tab0 AS cor0
----
2048
2961
7443

query I rowsort
SELECT - + col0 - + cor0.col2 * cor0.col0 FROM tab1 AS cor0
----
-165
-3712
-7760

onlyif mysql # use DIV operator for integer division
query I rowsort label-4923
SELECT ALL + col0 * ( 95 ) DIV - col1 FROM tab0
----
-26
-34
-92

skipif mysql # not compatible
query I rowsort label-4923
SELECT ALL + col0 * ( 95 ) / - col1 FROM tab0
----
-26
-34
-92

query I rowsort
SELECT DISTINCT + 3 + col0 AS col2 FROM tab1 cor0
----
6
67
83

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4925
SELECT ALL + CAST( NULL AS SIGNED ) * col0 + col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4925
SELECT ALL + CAST ( NULL AS INTEGER ) * col0 + col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ( - col2 ) * col0 * 11 - col0 AS col2 FROM tab0
----
-420
-80367
-8736

query I rowsort
SELECT ALL 5 AS col1 FROM tab2, tab0 cor0
----
9 values hashing to 6035628694bdea36f584f3649088551d

query I rowsort
SELECT ALL col2 - col0 * - col0 AS col0 FROM tab1
----
4153
63
6496

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4929
SELECT ALL + col0 - CAST( col1 AS SIGNED ) * - col0 FROM tab0
----
2088
3430
8188

skipif mysql # not compatible
query I rowsort label-4929
SELECT ALL + col0 - CAST ( col1 AS INTEGER ) * - col0 FROM tab0
----
2088
3430
8188

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4930
SELECT DISTINCT + col1 * + CAST( NULL AS SIGNED ) + col1 * col2 + 41 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4930
SELECT DISTINCT + col1 * + CAST ( NULL AS INTEGER ) + col1 * col2 + 41 FROM tab1 AS cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4931
SELECT ALL - col1 + - CAST( - cor0.col2 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
28
47
83

skipif mysql # not compatible
query I rowsort label-4931
SELECT ALL - col1 + - CAST ( - cor0.col2 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT - col1 + ( 83 ) FROM tab0 AS cor0
----
-14
-3
-8

onlyif mysql # use DIV operator for integer division
query I rowsort label-4933
SELECT - - col1 DIV - ( + ( + col2 ) ) FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4933
SELECT - - col1 / - ( + ( + col2 ) ) FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - col1 * col0 + 87 + 50 FROM tab0 AS cor0
----
-1927
-3258
-7962

query I rowsort
SELECT 84 * + col2 - col2 FROM tab0 AS cor0
----
2739
6806
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 13 + + col0 col0 FROM tab0 AS cor0
----
102
37
48

query I rowsort
SELECT + - 54 * col0 + col2 FROM tab2 AS cor0
----
-351
-4186
-4228

query I rowsort
SELECT ALL + ( col2 ) + col0 * - col2 AS col2 FROM tab2 AS cor0
----
-162
-2002
-2964

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 * - cor0.col0 col0 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT ALL - + col0 - col2 FROM tab2 cor0
----
-104
-117
-34

query I rowsort
SELECT - - col0 + cor0.col0 * col2 * 21 FROM tab0 AS cor0
----
153347
16656
770

query I rowsort
SELECT ALL + 61 * - col0 - - ( 85 ) AS col0 FROM tab1 AS cor0
----
-3819
-4795
-98

query I rowsort
SELECT ( col0 ) * col1 AS col1 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT ALL + 37 * col1 AS col2 FROM tab0 cor0
----
3182
3367
3589

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4945
SELECT + col2 * col0 - + CAST( col0 + + col2 AS SIGNED ) FROM tab2 AS cor0
----
155
1924
2885

skipif mysql # not compatible
query I rowsort label-4945
SELECT + col2 * col0 - + CAST ( col0 + + col2 AS INTEGER ) FROM tab2 AS cor0
----
155
1924
2885

query I rowsort
SELECT DISTINCT + + 99 * + cor0.col1 * col0 + + col1 FROM tab0 AS cor0
----
204422
336202
801892

query I rowsort
SELECT DISTINCT - 21 + col2 * 32 FROM tab2 AS cor0
----
1195
811
843

query I rowsort
SELECT DISTINCT - col1 + col1 * cor0.col0 AS col0 FROM tab2 AS cor0
----
1326
186
4543

onlyif mysql # use DIV operator for integer division
query I rowsort label-4949
SELECT + 28 + col0 DIV ( - cor0.col0 ) AS col1 FROM tab1 AS cor0
----
27
27
27

skipif mysql # not compatible
query I rowsort label-4949
SELECT + 28 + col0 / ( - cor0.col0 ) AS col1 FROM tab1 AS cor0
----
27
27
27

query I rowsort
SELECT ALL 11 * - cor0.col0 * + col1 FROM tab2 AS cor0
----
-14773
-2387
-50622

query I rowsort
SELECT ALL + cor0.col2 * col1 * - col0 + col0 FROM tab0 AS cor0
----
-3360
-664029
-68088

query I rowsort
SELECT 4 * - col1 + + col1 + col2 FROM tab1
----
-24
27
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-4953
SELECT - - col2 DIV ( - col2 ) + + col0 AS col0 FROM tab1 AS cor0
----
2
63
79

skipif mysql # not compatible
query I rowsort label-4953
SELECT - - col2 / ( - col2 ) + + col0 AS col0 FROM tab1 AS cor0
----
2
63
79

query I rowsort
SELECT ( col1 ) * - col1 AS col0 FROM tab1 AS cor0
----
-100
-169
-676

onlyif mysql # use DIV operator for integer division
query I rowsort label-4955
SELECT DISTINCT - col0 DIV col0 - + col0 AS col0 FROM tab1 cor0
----
-4
-65
-81

skipif mysql # not compatible
query I rowsort label-4955
SELECT DISTINCT - col0 / col0 - + col0 AS col0 FROM tab1 cor0
----
-4
-65
-81

query I rowsort
SELECT DISTINCT - - col1 * + col2 + col1 AS col2 FROM tab2 AS cor0
----
1593
663
868

query I rowsort
SELECT - 94 * - cor0.col0 FROM tab1 AS cor0
----
282
6016
7520

query I rowsort
SELECT DISTINCT - cor0.col2 * col0 + col2 FROM tab2 AS cor0
----
-162
-2002
-2964

onlyif mysql # use DIV operator for integer division
query I rowsort label-4959
SELECT ALL - - col2 * col2 DIV col0 - + col1 FROM tab2 AS cor0
----
-51
1
73

skipif mysql # not compatible
query I rowsort label-4959
SELECT ALL - - col2 * col2 / col0 - + col1 FROM tab2 AS cor0
----
-51
1
73

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4960
SELECT ALL - CAST( - ( col1 ) AS SIGNED ) + ( + col2 ) FROM tab0 AS cor0
----
119
173
98

skipif mysql # not compatible
query I rowsort label-4960
SELECT ALL - CAST ( - ( col1 ) AS INTEGER ) + ( + col2 ) FROM tab0 AS cor0
----
119
173
98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4961
SELECT ALL + CAST( col1 AS SIGNED ) - + col2 col1 FROM tab2 AS cor0
----
-21
33
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4961
SELECT ALL + CAST ( col1 AS INTEGER ) - + col2 col1 FROM tab2 AS cor0
----
-21
33
4

query I rowsort
SELECT DISTINCT - - col0 - - col0 FROM tab1 AS cor0
----
128
160
6

query I rowsort
SELECT ALL + 10 * - col1 AS col2 FROM tab2 AS cor0
----
-170
-310
-590

query I rowsort
SELECT DISTINCT ( - 92 ) + cor2.col1 FROM tab1, tab2 AS cor0, tab0 AS cor1, tab0 AS cor2
----
-1
-6
5

query I rowsort
SELECT DISTINCT - 52 FROM tab0, tab1 cor0
----
-52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - ( cor0.col1 ) col1 FROM tab2 cor0
----
-17
-31
-59

query I rowsort
SELECT + ( + col0 + tab2.col2 ) FROM tab2
----
104
117
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 92 * cor0.col0 col0 FROM tab1 AS cor0
----
-276
-5888
-7360

query I rowsort
SELECT + 62 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to 4911b1417a3797d23dd8f38b6ed05c1b

query I rowsort
SELECT - - cor0.col0 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT DISTINCT + + 11 FROM tab1, tab0, tab0 cor0
----
11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + col0 + - col2 col2 FROM tab2 AS cor0
----
-2054
-216
-3040

query I rowsort
SELECT col2 + 8 * - col2 AS col2 FROM tab0
----
-231
-574
-7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4974
SELECT - col2 * 0 + ( col0 * CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4974
SELECT - col2 * 0 + ( col0 * CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - tab2.col0 + - ( - col0 * col2 ) AS col0 FROM tab2
----
182
1950
2923

query I rowsort
SELECT ALL + 13 AS col0 FROM tab1, tab0 cor0, tab0 AS cor1
----
27 values hashing to a90d0f37cec603ae1bc0a60dc7fbaeed

query I rowsort
SELECT ALL 75 * + col2 FROM tab1 AS cor0
----
4050
4275
7200

query I rowsort
SELECT 23 + col2 * + col0 AS col0 FROM tab1 cor0
----
185
3671
7703

query I rowsort
SELECT - col2 + ( col2 ) FROM tab0 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4980
SELECT DISTINCT - CAST( + 96 AS SIGNED ) * + col0 * 47 FROM tab0 AS cor0
----
-108288
-157920
-401568

skipif mysql # not compatible
query I rowsort label-4980
SELECT DISTINCT - CAST ( + 96 AS INTEGER ) * + col0 * 47 FROM tab0 AS cor0
----
-108288
-157920
-401568

query I rowsort
SELECT - col2 + - cor0.col0 * - col2 FROM tab0 AS cor0
----
34
7216
759

query I rowsort
SELECT DISTINCT - - col1 + ( cor0.col2 * - col1 ) AS col0 FROM tab2 cor0
----
-1475
-629
-806

query I rowsort
SELECT DISTINCT + + col2 - - ( col2 ) * - col0 FROM tab2 AS cor0
----
-162
-2002
-2964

query I rowsort
SELECT DISTINCT + 88 AS col2 FROM tab1, tab1 cor0
----
88

onlyif mysql # use DIV operator for integer division
query I rowsort label-4985
SELECT DISTINCT + col2 DIV - col0 AS col2 FROM tab2 cor0
----
-3
0

skipif mysql # not compatible
query I rowsort label-4985
SELECT DISTINCT + col2 / - col0 AS col2 FROM tab2 cor0
----
-3
0

query I rowsort
SELECT - cor0.col2 * 51 * - col2 FROM tab2 AS cor0
----
34476
37179
73644

query I rowsort
SELECT DISTINCT 0 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
0

query I rowsort
SELECT + col0 * + col2 + 46 FROM tab2 AS cor0
----
2074
235
3048

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4989
SELECT 18 * col1 + CAST( col1 * - col1 AS SIGNED ) + col0 AS col1 FROM tab1
----
-205
144
145

skipif mysql # not compatible
query I rowsort label-4989
SELECT 18 * col1 + CAST ( col1 * - col1 AS INTEGER ) + col0 AS col1 FROM tab1
----
-205
144
145

query I rowsort
SELECT DISTINCT cor0.col1 AS col2 FROM tab0, tab0 AS cor0, tab0 cor1
----
86
91
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + 93 col1 FROM tab0
----
11
60
92

onlyif mysql # use DIV operator for integer division
query I rowsort label-4992
SELECT - col1 DIV + ( - 47 ) + col2 * - 11 FROM tab2
----
-285
-297
-418

skipif mysql # not compatible
query I rowsort label-4992
SELECT - col1 / + ( - 47 ) + col2 * - 11 FROM tab2
----
-285
-297
-418

query I rowsort
SELECT tab0.col2 * ( 44 * col2 ) FROM tab0
----
295856
44
47916

query I rowsort
SELECT - ( - cor0.col1 ) + - 80 FROM tab1, tab2 cor0
----
9 values hashing to a7730d4c03ae4043a756d27ad85dcb2d

query I rowsort
SELECT DISTINCT col0 * tab1.col0 * col0 FROM tab1
----
262144
27
512000

onlyif mysql # use DIV operator for integer division
query I rowsort label-4996
SELECT ALL + ( col2 ) DIV col2 AS col2 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4996
SELECT ALL + ( col2 ) / col2 AS col2 FROM tab0
----
1
1
1

query I rowsort
SELECT + 71 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0

query I rowsort
SELECT + ( ( col1 ) ) FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT 67 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to eea8a0738728ea55e4e7ba1506c9905a

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 5 col2 FROM tab0
----
5
5
5

query I rowsort
SELECT DISTINCT + col1 - + tab0.col0 FROM tab0
----
2
62

query I rowsort
SELECT cor0.col2 + - cor0.col0 AS col1 FROM tab1 AS cor0
----
-7
16
51

query I rowsort
SELECT + - col2 * + cor0.col1 AS col1 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT ALL - + 8 AS col2 FROM tab0 AS cor0
----
-8
-8
-8

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5005
SELECT ( col2 + + tab1.col1 * - CAST( NULL AS SIGNED ) ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5005
SELECT ( col2 + + tab1.col1 * - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 48 col0 FROM tab1 AS cor0
----
48

onlyif mysql # use DIV operator for integer division
query I rowsort label-5007
SELECT - + ( + col1 ) DIV col0 AS col1 FROM tab0 AS cor0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-5007
SELECT - + ( + col1 ) / col0 AS col1 FROM tab0 AS cor0
----
-1
-2
-3

query I rowsort
SELECT ( + col1 ) + + ( col1 ) AS col1 FROM tab1
----
20
26
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-5009
SELECT ALL 46 DIV - col0 AS col2 FROM tab1
----
-15
0
0

skipif mysql # not compatible
query I rowsort label-5009
SELECT ALL 46 / - col0 AS col2 FROM tab1
----
-15
0
0

query I rowsort
SELECT ALL + 35 FROM tab0
----
35
35
35

query I rowsort
SELECT + + 62 AS col1 FROM tab0 AS cor0
----
62
62
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-5012
SELECT ALL col2 * - col1 * ( col1 ) + + col2 DIV - col1 AS col0 FROM tab2 cor0
----
-10984
-25947
-90506

skipif mysql # not compatible
query I rowsort label-5012
SELECT ALL col2 * - col1 * ( col1 ) + + col2 / - col1 AS col0 FROM tab2 cor0
----
-10984
-25947
-90506

query I rowsort
SELECT DISTINCT col1 + col1 - + 37 * col0 * - col2 FROM tab0 AS cor0
----
1489
270208
29476

query I rowsort
SELECT ALL col0 * col0 + col1 FROM tab0 cor0
----
1322
662
8012

query I rowsort
SELECT + cor0.col1 + cor0.col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 5484e660e65aa37f29a1eca3fc30f5cc

query I rowsort
SELECT ALL + col0 + + col2 + - 56 FROM tab2 AS cor0
----
-22
48
61

query I rowsort
SELECT ALL + ( - col0 ) + + col1 AS col2 FROM tab0 AS cor0
----
2
62
62

query I rowsort
SELECT - cor0.col1 * - 53 FROM tab0 AS cor0
----
4558
4823
5141

query I rowsort
SELECT ALL + - col0 * cor0.col2 * - cor0.col1 AS col0 FROM tab2 AS cor0
----
119652
51034
5859

query I rowsort
SELECT - col0 - + col0 * + col0 AS col0 FROM tab1 AS cor0
----
-12
-4160
-6480

query I rowsort
SELECT DISTINCT + col1 + + ( col0 ) FROM tab0 cor0
----
110
132
180

query I rowsort
SELECT col0 * - ( + 89 ) + col1 AS col1 FROM tab2 AS cor0
----
-592
-6883
-7014

onlyif mysql # use DIV operator for integer division
query I rowsort label-5023
SELECT ALL + col2 DIV + cor0.col2 AS col1 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5023
SELECT ALL + col2 / + cor0.col2 AS col1 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT ALL - cor0.col1 * 13 AS col0 FROM tab1 AS cor0
----
-130
-169
-338

query I rowsort
SELECT - col2 * cor0.col0 - + col1 AS col2 FROM tab0 cor0
----
-132
-7389
-878

onlyif mysql # use DIV operator for integer division
query I rowsort label-5026
SELECT ALL cor0.col2 DIV + ( + col1 ) FROM tab1 AS cor0
----
2
5
7

skipif mysql # not compatible
query I rowsort label-5026
SELECT ALL cor0.col2 / + ( + col1 ) FROM tab1 AS cor0
----
2
5
7

query I rowsort
SELECT + col1 * - 49 * - 30 + col0 AS col1 FROM tab1 cor0
----
14764
19190
38223

query I rowsort
SELECT DISTINCT col1 + - ( 87 ) AS col1 FROM tab0 AS cor0
----
-1
10
4

query I rowsort
SELECT 45 + col0 * + 59 AS col2 FROM tab1
----
222
3821
4765

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 * - col0 * col0 - - col2 col2 FROM tab1 AS cor0
----
-262087
-511904
27

query I rowsort
SELECT + col0 + - col0 * + col2 + + col0 AS col1 FROM tab1 AS cor0
----
-156
-3520
-7520

query I rowsort
SELECT ALL - ( + 22 ) AS col0 FROM tab0 AS cor0
----
-22
-22
-22

query I rowsort
SELECT + 88 * + col2 + col2 AS col1 FROM tab2 AS cor0
----
2314
2403
3382

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5034
SELECT DISTINCT - - col0 * - col1 * cor0.col1 + CAST( NULL AS SIGNED ) + col1 * + col2 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5034
SELECT DISTINCT - - col0 * - col1 * cor0.col1 + CAST ( NULL AS INTEGER ) + col1 * + col2 FROM tab0 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 91 + - 63 col2 FROM tab2 AS cor0
----
-154
-154
-154

query I rowsort
SELECT DISTINCT + ( col0 ) * + col2 + cor0.col0 * cor0.col0 + col1 FROM tab0 AS cor0
----
1357
1454
15310

query I rowsort
SELECT ALL - 94 + + col1 AS col2 FROM tab0 AS cor0
----
-3
-8
3

query I rowsort
SELECT 28 + - col2 FROM tab2 AS cor0
----
-10
1
2

query I rowsort
SELECT 63 AS col1 FROM tab0 AS cor0
----
63
63
63

query I rowsort
SELECT ALL + ( - cor0.col2 ) * + col2 * col0 FROM tab2 AS cor0
----
-114076
-5103
-52728

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 + col2 + - col0 col2 FROM tab0 AS cor0
----
-33
42
75

query I rowsort
SELECT ALL + col1 * - 59 FROM tab0
----
-5074
-5369
-5723

query I rowsort
SELECT ALL - col2 * + col1 + + col0 + - ( col1 ) FROM tab2 AS cor0
----
-1515
-584
-861

query I rowsort
SELECT DISTINCT + 71 + + col1 * + cor0.col1 * col0 FROM tab2 AS cor0
----
22902
271589
6798

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5045
SELECT DISTINCT - + CAST( NULL AS SIGNED ) + - cor0.col1 + - col2 * + ( col2 ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5045
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) + - cor0.col1 + - col2 * + ( col2 ) AS col0 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + - col0 * + col0 col2 FROM tab0 AS cor0
----
-1322
-662
-8012

query I rowsort
SELECT - ( - col1 ) + col1 FROM tab2 cor0
----
118
34
62

query I rowsort
SELECT ALL 71 - + col0 AS col2 FROM tab0 AS cor0
----
-18
36
47

query I rowsort
SELECT DISTINCT + + ( 36 ) AS col1 FROM tab1 AS cor0
----
36

query I rowsort
SELECT ( col2 ) * - col2 + 65 FROM tab0 AS cor0
----
-1024
-6659
64

query I rowsort
SELECT ALL - ( - 97 ) * + col1 + cor0.col0 + - 68 AS col2 FROM tab2 AS cor0
----
1660
2946
5733

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * col0 col1 FROM tab1 cor0
----
1040
640
78

query I rowsort
SELECT + ( col2 * - col1 ) AS col2 FROM tab0
----
-2838
-7462
-97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5054
SELECT - CAST( 44 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-44
-44
-44

skipif mysql # not compatible
query I rowsort label-5054
SELECT - CAST ( 44 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-44
-44
-44

query I rowsort
SELECT + col0 * 85 FROM tab2 AS cor0
----
595
6630
6715

query I rowsort
SELECT + - col0 * col1 * + col0 FROM tab1 AS cor0
----
-234
-40960
-83200

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * col0 * + tab1.col0 col1 FROM tab1
----
234
40960
83200

query I rowsort
SELECT 38 FROM tab0, tab0 AS cor0 CROSS JOIN tab2
----
27 values hashing to a7827a79248ee7bf2cee915a631d02cb

query I rowsort
SELECT DISTINCT tab1.col1 * - tab1.col2 * tab1.col0 AS col0 FROM tab1
----
-36480
-4212
-99840

query I rowsort
SELECT ALL + 46 + + col2 * col2 + col2 FROM tab2
----
1528
748
802

query I rowsort
SELECT + ( 83 ) * col0 AS col2 FROM tab2 AS cor0
----
581
6474
6557

query I rowsort
SELECT + - col2 * ( + col1 ) FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT ALL + - ( - col0 ) + + col2 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT ALL ( - 70 ) AS col1 FROM tab2 cor0
----
-70
-70
-70

query I rowsort
SELECT DISTINCT 62 * - 27 * + col0 AS col2 FROM tab2 AS cor0
----
-11718
-130572
-132246

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 96 col0 FROM tab2 cor0
----
96
96
96

query I rowsort
SELECT - + ( 6 ) * col0 FROM tab2 AS cor0
----
-42
-468
-474

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 63 col0 FROM tab0 AS cor0
----
63
63
63

query I rowsort
SELECT ALL + - col2 + col2 * + col1 AS col0 FROM tab1 AS cor0
----
1152
1350
513

query I rowsort
SELECT DISTINCT - 74 AS col2 FROM tab1 cor0
----
-74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col0 + col1 col2 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT ALL col0 + col0 + + 29 FROM tab2 AS cor0
----
185
187
43

query I rowsort
SELECT 78 + col2 * col1 FROM tab1 AS cor0
----
1326
1482
648

query I rowsort
SELECT ALL - - col1 * cor0.col2 + + col0 AS col1 FROM tab1 AS cor0
----
1328
1407
634

query I rowsort
SELECT DISTINCT col2 * + col2 + - ( col1 ) + col2 * 80 FROM tab1 AS cor0
----
16883
7210
7799

query I rowsort
SELECT col0 * col0 + - 80 FROM tab2 AS cor0
----
-31
6004
6161

query I rowsort
SELECT + - col0 * - cor0.col2 + 59 + col0 FROM tab0 AS cor0
----
129
7446
875

query I rowsort
SELECT - 16 * - col2 + col2 FROM tab1 AS cor0
----
1632
918
969

query I rowsort
SELECT ALL - col0 * - ( - col0 ) FROM tab2 AS cor0
----
-49
-6084
-6241

query I rowsort
SELECT ALL col2 * ( + col2 ) + col1 AS col0 FROM tab1 AS cor0
----
2942
3259
9229

query I rowsort
SELECT ALL - col1 * + ( - col0 ) FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT DISTINCT 26 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + 73 * col0 col1 FROM tab1 cor0
----
273
4729
5936

query I rowsort
SELECT cor0.col0 * + col1 + col1 * + col1 AS col1 FROM tab0 AS cor0
----
12804
16380
9460

query I rowsort
SELECT - col2 + - col0 * 33 AS col1 FROM tab1 AS cor0
----
-153
-2169
-2736

query I rowsort
SELECT + + col1 + - 40 FROM tab0 cor0
----
46
51
57

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5087
SELECT + cor0.col0 * CAST( 96 AS SIGNED ) + col1 * + col1 * cor0.col2 col0 FROM tab0 cor0
----
12769
246372
687586

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5087
SELECT + cor0.col0 * CAST ( 96 AS INTEGER ) + col1 * + col1 * cor0.col2 col0 FROM tab0 cor0
----
12769
246372
687586

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5088
SELECT DISTINCT CAST( 81 AS SIGNED ) FROM tab0, tab0 AS cor0, tab0 AS cor1, tab2 AS cor2
----
81

skipif mysql # not compatible
query I rowsort label-5088
SELECT DISTINCT CAST ( 81 AS INTEGER ) FROM tab0, tab0 AS cor0, tab0 AS cor1, tab2 AS cor2
----
81

query I rowsort
SELECT + ( - tab2.col2 ) FROM tab2, tab0 AS cor0
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75

query I rowsort
SELECT - 98 + - col1 * 84 AS col2 FROM tab2 AS cor0
----
-1526
-2702
-5054

query I rowsort
SELECT DISTINCT - - 68 FROM tab2, tab1 AS cor0, tab1, tab2 AS cor1
----
68

onlyif mysql # use DIV operator for integer division
query I rowsort label-5092
SELECT + col2 * - col2 - - col2 DIV - col1 FROM tab0 AS cor0
----
-1
-1089
-6724

skipif mysql # not compatible
query I rowsort label-5092
SELECT + col2 * - col2 - - col2 / - col1 FROM tab0 AS cor0
----
-1
-1089
-6724

query I rowsort
SELECT ALL - 95 AS col0 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to cf302b83f15b730fe35c19bdd9363c13

query I rowsort
SELECT - 74 * - 3 AS col0 FROM tab1, tab2 cor0, tab0 AS cor1
----
27 values hashing to 63af8bd502ce5fd67de4f8508627d1f4

onlyif mysql # use DIV operator for integer division
query I rowsort label-5095
SELECT ALL - - col1 + - col2 DIV col2 col2 FROM tab1 AS cor0
----
12
25
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5095
SELECT ALL - - col1 + - col2 / col2 col2 FROM tab1 AS cor0
----
12
25
9

query I rowsort
SELECT 26 * - cor0.col0 FROM tab0, tab1 AS cor0, tab1 cor1
----
27 values hashing to d1d7bc2c919f8e1955c9f7d60efaf1bb

query I rowsort
SELECT + + 57 * - tab1.col2 + + 49 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to d86249797b743c4e6338123eb392534c

query I rowsort
SELECT DISTINCT - 12 AS col1 FROM tab1, tab1 AS cor0, tab1 AS cor1, tab0 AS cor2
----
-12

query I rowsort
SELECT DISTINCT - - ( - cor0.col0 ) - col0 FROM tab0 AS cor0
----
-178
-48
-70

query I rowsort
SELECT - col0 + col0 * col0 AS col0 FROM tab2 AS cor0
----
42
6006
6162

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col0 + + col0 col0 FROM tab2
----
14
156
158

query I rowsort
SELECT ALL - col1 - - col0 * - col1 FROM tab0
----
-2150
-3492
-8190

query I rowsort
SELECT ALL + 60 + col1 * + col0 + - col2 * - col0 FROM tab2 AS cor0
----
4405
466
6690

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5104
SELECT DISTINCT - + col1 + - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5104
SELECT DISTINCT - + col1 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5105
SELECT - CAST( NULL AS SIGNED ) AS col1 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-5105
SELECT - CAST ( NULL AS INTEGER ) AS col1 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT - - col1 + - 43 AS col1 FROM tab1 cor0
----
-17
-30
-33

query I rowsort
SELECT DISTINCT + tab1.col2 + col2 AS col2 FROM tab1
----
108
114
192

query I rowsort
SELECT - col2 * col1 + + col0 AS col2 FROM tab2
----
-1456
-567
-830

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col0 * + col1 NOT IN ( - col0 + col1 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

query I rowsort
SELECT ALL + tab2.col1 - col0 FROM tab2
----
-19
-62
24

query I rowsort
SELECT col1 + tab1.col2 FROM tab1 WHERE NOT - col0 IN ( + col2 * + tab1.col0 + - col0 )
----
109
67
80

query I rowsort
SELECT col1 - tab2.col0 * col1 * col2 FROM tab2
----
-119593
-51017
-5828

onlyif mysql # use DIV operator for integer division
query I rowsort label-5113
SELECT - col0 * - col2 + col1 DIV col0 FROM tab2
----
193
2028
3002

skipif mysql # not compatible
query I rowsort label-5113
SELECT - col0 * - col2 + col1 / col0 FROM tab2
----
193
2028
3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 col2 FROM tab0 WHERE col2 >= NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL >= col0 + col2 * - col2
----

query I rowsort
SELECT + tab0.col2 + + col1 * - col0 FROM tab0
----
-2031
-3394
-8017

query I rowsort
SELECT col2 * tab2.col1 - col2 FROM tab2 WHERE NOT NULL IN ( col0 / - col2 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-5118
SELECT DISTINCT col2 * - col1 - + col2 * col0 DIV - col1 FROM tab1
----
-1398
-206
-658

skipif mysql # not compatible
query I rowsort label-5118
SELECT DISTINCT col2 * - col1 - + col2 * col0 / - col1 FROM tab1
----
-1398
-206
-658

query I rowsort
SELECT DISTINCT col2 * + tab0.col0 FROM tab0 WHERE + col1 IN ( + col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 97 * + 55 col1 FROM tab0
----
-5335
-5335
-5335

query I rowsort
SELECT + 59 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc

query I rowsort
SELECT DISTINCT - 15 AS col1 FROM tab2
----
-15

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5123
SELECT 10 * tab1.col2 + col1 * + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5123
SELECT 10 * tab1.col2 + col1 * + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 82 col1 FROM tab2, tab2 AS cor0
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c

query I rowsort
SELECT DISTINCT - 7 * + cor0.col2 * cor0.col0 + 23 FROM tab0 AS cor0
----
-222
-51063
-5521

query I rowsort
SELECT ALL + col2 * cor0.col1 AS col2 FROM tab2 AS cor0
----
1534
646
837

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 91 * col1 * - ( + col1 ) col2 FROM tab2 AS cor0
----
26299
316771
87451

query I rowsort
SELECT ALL - cor0.col0 + + cor0.col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5129
SELECT DISTINCT ( col1 ) * ( - col2 + col1 ) DIV + 35 AS col0 FROM tab2
----
-10
3
55

skipif mysql # not compatible
query I rowsort label-5129
SELECT DISTINCT ( col1 ) * ( - col2 + col1 ) / + 35 AS col0 FROM tab2
----
-10
3
55

onlyif mysql # use DIV operator for integer division
query I rowsort label-5130
SELECT + col1 * - col0 DIV - col0 AS col1 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-5130
SELECT + col1 * - col0 / - col0 AS col1 FROM tab0 AS cor0
----
86
91
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-5131
SELECT DISTINCT + + 96 DIV col1 FROM tab0 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-5131
SELECT DISTINCT + + 96 / col1 FROM tab0 AS cor0
----
0
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-5132
SELECT DISTINCT + col2 + col1 DIV - col0 FROM tab1 AS cor0
----
46
57
96

skipif mysql # not compatible
query I rowsort label-5132
SELECT DISTINCT + col2 + col1 / - col0 FROM tab1 AS cor0
----
46
57
96

query I rowsort
SELECT DISTINCT + + col2 * col2 + 34 * + col0 AS col1 FROM tab1 AS cor0
----
11936
3018
5425

query I rowsort
SELECT ALL - cor0.col0 + col0 AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + col2 + ( + col1 ) AS col0 FROM tab1
----
109
67
80

query I rowsort
SELECT ALL - ( cor0.col2 ) AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to b5a4102107e5ebd26e341538f4fede1e

query I rowsort
SELECT DISTINCT - col0 + col2 * - tab0.col2 * col2 AS col2 FROM tab0
----
-35961
-36
-551457

query I rowsort
SELECT ALL - col0 * col0 + - tab2.col1 AS col0 FROM tab2
----
-6143
-6258
-80

query I rowsort
SELECT DISTINCT + col0 + ( + ( cor0.col1 ) ) FROM tab1 AS cor0
----
29
74
93

onlyif mysql # use DIV operator for integer division
query I rowsort label-5140
SELECT + col1 * - col2 DIV col2 + col1 AS col0 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5140
SELECT + col1 * - col2 / col2 + col1 AS col0 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - col1 * col1 + + col2 * col2 AS col2 FROM tab0 AS cor0
----
-1557
-6307
-9408

query I rowsort
SELECT DISTINCT + - col2 * + cor0.col1 + 48 FROM tab2 AS cor0
----
-1486
-598
-789

query I rowsort
SELECT ALL + col1 - 67 FROM tab0 AS cor0
----
19
24
30

query I rowsort
SELECT col0 * 76 + + col2 * col2 AS col1 FROM tab2 AS cor0
----
1261
6604
7448

query I rowsort
SELECT ALL + - col1 + col2 - - col2 AS col2 FROM tab2 AS cor0
----
-7
23
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-5146
SELECT ALL + col1 + col1 DIV + col0 - col1 FROM tab0 AS cor0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-5146
SELECT ALL + col1 + col1 / + col0 - col1 FROM tab0 AS cor0
----
1
2
3

query I rowsort
SELECT - col2 + 85 AS col2 FROM tab2 AS cor0
----
47
58
59

query I rowsort
SELECT ALL col0 * 4 AS col2 FROM tab1 AS cor0
----
12
256
320

query I rowsort
SELECT ALL - - cor0.col1 + - col0 FROM tab0 cor0
----
2
62
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-5150
SELECT DISTINCT ( - 21 ) DIV + col2 AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5150
SELECT DISTINCT ( - 21 ) / + col2 AS col0 FROM tab1 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + col1 ) + - col1 col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort
SELECT - col1 * CAST ( 72 AS REAL ) + - col0 - - ( - col1 ) * + col0 * CAST ( - 45 AS REAL ) FROM tab0
----
145756
357814
86664

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - 27 * + cor0.col0 col1 FROM tab1 AS cor0
----
-107
-1738
-2173

query I rowsort
SELECT ALL - - 66 * - col2 + + col0 FROM tab0 AS cor0
----
-2154
-31
-5323

query I rowsort
SELECT + col1 + 98 AS col0 FROM tab0 AS cor0
----
184
189
195

query I rowsort
SELECT ALL - ( 13 ) AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to e95f5f4bd0f480397cced5f5e8a23792

query I rowsort
SELECT DISTINCT 34 AS col0 FROM tab2 AS cor0
----
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col0 ) * col2 col0 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT col1 * - col1 + + cor0.col1 FROM tab2 AS cor0
----
-272
-3422
-930

query I rowsort
SELECT DISTINCT + col2 + tab1.col1 + + col2 * + col1 AS col2 FROM tab1
----
1357
1484
637

query I rowsort
SELECT - col2 + col1 * + tab2.col0 FROM tab2
----
1305
190
4576

query I rowsort
SELECT DISTINCT + + cor1.col1 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
10
13
26

query I rowsort
SELECT ALL + cor1.col2 AS col1 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8

query I rowsort
SELECT ALL - 6 * col1 AS col1 FROM tab0 AS cor0
----
-516
-546
-582

query I rowsort
SELECT + ( cor0.col2 ) * col1 FROM tab1 AS cor0
----
1248
1404
570

onlyif mysql # use DIV operator for integer division
query I rowsort label-5166
SELECT DISTINCT + - cor0.col1 + - col0 DIV col1 FROM tab2 AS cor0
----
-21
-31
-60

skipif mysql # not compatible
query I rowsort label-5166
SELECT DISTINCT + - cor0.col1 + - col0 / col1 FROM tab2 AS cor0
----
-21
-31
-60

query I rowsort
SELECT + ( + col2 ) + + cor0.col1 AS col0 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT DISTINCT - col1 + col1 * col2 FROM tab0
----
0
2752
7371

query I rowsort
SELECT ALL - - col2 * + 19 FROM tab0 AS cor0
----
1558
19
627

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 66 col1 FROM tab2 AS cor0
----
66
66
66

query I rowsort
SELECT ALL col2 * + ( + col1 ) FROM tab1
----
1248
1404
570

query I rowsort
SELECT - + 28 * - col1 FROM tab0 cor0
----
2408
2548
2716

query I rowsort
SELECT ALL - 78 * col1 FROM tab2 AS cor0
----
-1326
-2418
-4602

query I rowsort
SELECT col2 * 23 + col1 AS col1 FROM tab2 AS cor0
----
652
657
891

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5175
SELECT + + CAST( NULL AS SIGNED ) * col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5175
SELECT + + CAST ( NULL AS INTEGER ) * col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5176
SELECT DISTINCT + CAST( + cor0.col1 AS SIGNED ) * col0 AS col2 FROM tab1 AS cor0
----
1040
640
78

skipif mysql # not compatible
query I rowsort label-5176
SELECT DISTINCT + CAST ( + cor0.col1 AS INTEGER ) * col0 AS col2 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT DISTINCT - ( - 94 ) * col1 FROM tab2 cor0
----
1598
2914
5546

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5178
SELECT DISTINCT + - CAST( + col0 AS SIGNED ) + - col1 FROM tab1 AS cor0
----
-29
-74
-93

skipif mysql # not compatible
query I rowsort label-5178
SELECT DISTINCT + - CAST ( + col0 AS INTEGER ) + - col1 FROM tab1 AS cor0
----
-29
-74
-93

query I rowsort
SELECT ALL 40 * + cor0.col2 * col1 AS col1 FROM tab1 AS cor0
----
22800
49920
56160

query I rowsort
SELECT DISTINCT cor0.col0 FROM tab0, tab0 AS cor0 CROSS JOIN tab2
----
24
35
89

query I rowsort
SELECT - col1 + + col0 + col2 * col0 FROM tab1
----
139
3702
7747

query I rowsort
SELECT DISTINCT col2 * + col0 / col0 FROM tab0 WHERE NOT - col2 + col1 + col2 <= NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-5183
SELECT ALL tab1.col0 * col1 DIV col0 AS col0 FROM tab1
----
10
13
26

skipif mysql # not compatible
query I rowsort label-5183
SELECT ALL tab1.col0 * col1 / col0 AS col0 FROM tab1
----
10
13
26

query I rowsort
SELECT cor0.col2 - + col0 * col0 FROM tab0 AS cor0
----
-1224
-543
-7839

onlyif mysql # use DIV operator for integer division
query I rowsort label-5185
SELECT col2 + - cor0.col1 DIV + col0 FROM tab2 AS cor0
----
23
26
38

skipif mysql # not compatible
query I rowsort label-5185
SELECT col2 + - cor0.col1 / + col0 FROM tab2 AS cor0
----
23
26
38

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) <> ( NULL )
----

query I rowsort
SELECT col1 + col0 + col0 * col1 FROM tab2 AS cor0
----
1439
255
4739

query I rowsort
SELECT col1 + col1 + + col0 * col0 * col0 FROM tab2 AS cor0
----
405
474670
493073

onlyif mysql # use DIV operator for integer division
query I rowsort label-5189
SELECT ALL col0 DIV - col2 + col0 FROM tab0 cor0
----
0
24
88

skipif mysql # not compatible
query I rowsort label-5189
SELECT ALL col0 / - col2 + col0 FROM tab0 cor0
----
0
24
88

query I rowsort
SELECT DISTINCT + col0 * cor0.col0 + + col0 * cor0.col0 FROM tab1 AS cor0
----
12800
18
8192

query I rowsort
SELECT - cor0.col1 - + cor0.col1 FROM tab0 AS cor0
----
-172
-182
-194

query I rowsort
SELECT + cor0.col1 * col1 + - col0 * + col0 + - col2 AS col2 FROM tab1 AS cor0
----
-4053
-6327
613

query I rowsort
SELECT DISTINCT tab0.col2 + - col0 * col1 AS col1 FROM tab0
----
-2031
-3394
-8017

query I rowsort
SELECT DISTINCT tab1.col2 AS col2 FROM tab1, tab2, tab2 AS cor0
----
54
57
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab0.col2 + col1 col2 FROM tab0
----
53
9
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col2 * + col1 * ( + col2 * ( cor0.col1 ) ) col2 FROM tab2 AS cor0
----
-2353156
-417316
-700569

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col2 * - 86 + col0 col0 FROM tab1 AS cor0
----
4647
4966
8336

query I rowsort
SELECT ALL col1 * col0 AS col1 FROM tab1 cor0
----
1040
640
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + cor0.col1 + cor0.col0 col0 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT cor0.col1 * 81 FROM tab2 AS cor0
----
1377
2511
4779

query I rowsort
SELECT - - col0 * + 41 * col2 + + col1 FROM tab2 AS cor0
----
123099
7780
83207

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + 93 * col2 col2 FROM tab1 AS cor0
----
5048
5311
8941

query I rowsort
SELECT ALL 90 * cor1.col2 FROM tab0, tab0 AS cor0, tab0 AS cor1, tab1 AS cor2
----
81 values hashing to 39871c23a72102c9b752b9777112e5d6

query I rowsort
SELECT DISTINCT + cor1.col2 AS col2 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
1
33
82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5205
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + 58 * + col0 + ( - col0 * col1 ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5205
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + 58 * + col0 + ( - col0 * col1 ) FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 0 col1 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

query I rowsort
SELECT cor1.col0 AS col1 FROM tab1, tab0 AS cor0, tab0 cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT - 7 * col0 AS col0 FROM tab1 AS cor0
----
-21
-448
-560

query I rowsort
SELECT cor0.col1 + col2 AS col0 FROM tab0 cor0
----
119
173
98

query I rowsort
SELECT ALL + - ( - 90 ) + + cor0.col2 * 79 FROM tab2, tab1 AS cor0
----
9 values hashing to b95002f897b183afb5afc920deb0fe90

query I rowsort
SELECT ALL - cor0.col2 + - cor0.col2 FROM tab1 AS cor0
----
-108
-114
-192

query I rowsort
SELECT ALL + col0 * + ( col1 ) AS col0 FROM tab0
----
2064
3395
8099

query I rowsort
SELECT ALL - 87 + - col1 AS col2 FROM tab2 AS cor0
----
-104
-118
-146

onlyif mysql # use DIV operator for integer division
query I rowsort label-5214
SELECT ALL col0 DIV col1 + ( - cor0.col0 ) FROM tab0 AS cor0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-5214
SELECT ALL col0 / col1 + ( - cor0.col0 ) FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT ALL - + 87 + - col2 * + col1 AS col1 FROM tab1 AS cor0
----
-1335
-1491
-657

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT col1 * + CAST ( - col2 AS REAL ) FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT ALL - - col0 * 69 + col2 AS col1 FROM tab1 AS cor0
----
261
4473
5616

query I rowsort
SELECT DISTINCT col2 * ( + 24 * + col0 ) AS col0 FROM tab1 AS cor0
----
184320
3888
87552

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + - col0 * - 72 col0 FROM tab2 AS cor0
----
535
5675
5705

query I rowsort
SELECT DISTINCT - col1 - - col1 FROM tab1 cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5221
SELECT ALL + cor0.col0 DIV + col1 - 75 AS col1 FROM tab0 AS cor0
----
-75
-75
-75

skipif mysql # not compatible
query I rowsort label-5221
SELECT ALL + cor0.col0 / + col1 - 75 AS col1 FROM tab0 AS cor0
----
-75
-75
-75

query I rowsort
SELECT DISTINCT + 26 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
26

query I rowsort
SELECT ALL tab1.col1 + + tab1.col2 AS col0 FROM tab1
----
109
67
80

query I rowsort
SELECT DISTINCT 30 + col1 * col0 FROM tab2
----
1373
247
4632

query I rowsort
SELECT DISTINCT + col0 * + col2 + col0 FROM tab2
----
196
2106
3081

query I rowsort
SELECT 14 * - col0 FROM tab1
----
-1120
-42
-896

onlyif mysql # use DIV operator for integer division
query I rowsort label-5227
SELECT tab2.col0 DIV col0 - col1 FROM tab2
----
-16
-30
-58

skipif mysql # not compatible
query I rowsort label-5227
SELECT tab2.col0 / col0 - col1 FROM tab2
----
-16
-30
-58

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5228
SELECT 70 + col1 * CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5228
SELECT 70 + col1 * CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - cor0.col2 * 68 FROM tab2, tab2 AS cor0
----
9 values hashing to 2967487085e5d6a41720ab2781b8a251

query I rowsort
SELECT DISTINCT + col2 * + cor0.col0 + + ( + col1 * - 78 ) + col1 * - cor0.col0 FROM tab2 AS cor0
----
-2446
-7176
333

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5231
SELECT + + col2 + CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5231
SELECT + + col2 + CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + + col2 * + col1 + col0 * col0 AS col2 FROM tab1 AS cor0
----
1413
4666
7648

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5233
SELECT DISTINCT col1 * col2 + + col0 * col0 * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5233
SELECT DISTINCT col1 * col2 + + col0 * col0 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + col2 + col1 * - col2 * col2 FROM tab2 AS cor0
----
-22572
-24510
-39858

query I rowsort
SELECT DISTINCT + col1 + - 48 FROM tab0 AS cor0
----
38
43
49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 99 + + col1 + + 50 * col2 col0 FROM tab0
----
1637
4092
48

query I rowsort
SELECT DISTINCT + cor0.col2 + - 97 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-59
-70
-71

query I rowsort
SELECT tab1.col2 + + col0 - col2 * + col2 FROM tab1
----
-2859
-3128
-9040

query I rowsort
SELECT DISTINCT ( 13 * tab2.col1 ) AS col0 FROM tab2, tab2 AS cor0
----
221
403
767

query I rowsort
SELECT + tab0.col2 + ( + col2 ) FROM tab0
----
164
2
66

onlyif mysql # use DIV operator for integer division
query I rowsort label-5241
SELECT - col0 DIV + col2 + - tab1.col0 AS col2 FROM tab1
----
-3
-65
-80

skipif mysql # not compatible
query I rowsort label-5241
SELECT - col0 / + col2 + - tab1.col0 AS col2 FROM tab1
----
-3
-65
-80

onlyif mysql # use DIV operator for integer division
query I rowsort label-5242
SELECT + col0 DIV - 49 + tab0.col0 FROM tab0
----
24
35
88

skipif mysql # not compatible
query I rowsort label-5242
SELECT + col0 / - 49 + tab0.col0 FROM tab0
----
24
35
88

query I rowsort
SELECT ALL cor0.col0 + + col2 * col0 + - col2 FROM tab2 cor0
----
169
2080
3043

query I rowsort
SELECT ALL - cor0.col1 + + col2 + + 99 FROM tab0 AS cor0
----
3
46
90

query I rowsort
SELECT + col2 * ( + 21 ) * col0 AS col1 FROM tab0
----
153258
16632
735

onlyif mysql # use DIV operator for integer division
query I rowsort label-5246
SELECT - 39 DIV 56 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-5246
SELECT - 39 / 56 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT ALL col0 - - tab1.col2 * - col0 * tab1.col0 AS col0 FROM tab1
----
-233408
-483
-614320

query I rowsort
SELECT - ( + cor0.col2 ) + 97 * + ( col0 ) * + col1 AS col1 FROM tab2 AS cor0
----
130233
21022
446368

onlyif mysql # use DIV operator for integer division
query I rowsort label-5249
SELECT ALL - col2 DIV + col0 AS col1 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-5249
SELECT ALL - col2 / + col0 AS col1 FROM tab0 AS cor0
----
-1
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5250
SELECT ALL + 8 * - col2 + - CAST( col2 * col0 AS SIGNED ) FROM tab2 AS cor0
----
-2236
-3306
-405

skipif mysql # not compatible
query I rowsort label-5250
SELECT ALL + 8 * - col2 + - CAST ( col2 * col0 AS INTEGER ) FROM tab2 AS cor0
----
-2236
-3306
-405

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5251
SELECT + CAST( + 30 AS SIGNED ) AS col2 FROM tab1
----
30
30
30

skipif mysql # not compatible
query I rowsort label-5251
SELECT + CAST ( + 30 AS INTEGER ) AS col2 FROM tab1
----
30
30
30

onlyif mysql # use DIV operator for integer division
query I rowsort label-5252
SELECT 66 DIV ( + col1 ) FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5252
SELECT 66 / ( + col1 ) FROM tab0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 9 * + col1 col0 FROM tab2 cor0
----
-153
-279
-531

query I rowsort
SELECT DISTINCT + 53 + - col0 FROM tab2 cor0
----
-25
-26
46

query I rowsort
SELECT ALL + 55 - cor0.col1 AS col0 FROM tab0 AS cor0
----
-31
-36
-42

query I rowsort
SELECT + col2 * col2 - - 18 AS col0 FROM tab0 cor0
----
1107
19
6742

query I rowsort
SELECT + - col2 * col1 + + ( col1 ) * - col2 FROM tab2 AS cor0
----
-1292
-1674
-3068

onlyif mysql # use DIV operator for integer division
query I rowsort label-5258
SELECT - 64 * col0 DIV - 78 + - col0 * + col1 FROM tab0 AS cor0
----
-2045
-3367
-8026

skipif mysql # not compatible
query I rowsort label-5258
SELECT - 64 * col0 / - 78 + - col0 * + col1 FROM tab0 AS cor0
----
-2045
-3367
-8026

query I rowsort
SELECT ALL + ( col2 ) + - col0 * 86 FROM tab2 AS cor0
----
-575
-6682
-6756

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5260
SELECT col0 * - col1 - + CAST( 66 + + col2 AS SIGNED ) AS col2 FROM tab0 cor0
----
-2163
-3462
-8247

skipif mysql # not compatible
query I rowsort label-5260
SELECT col0 * - col1 - + CAST ( 66 + + col2 AS INTEGER ) AS col2 FROM tab0 cor0
----
-2163
-3462
-8247

query I rowsort
SELECT DISTINCT ( col1 ) + col2 * - 44 FROM tab2 AS cor0
----
-1085
-1157
-1655

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 44 * col2 col1 FROM tab0 AS cor0
----
1452
3608
44

query I rowsort
SELECT DISTINCT - 25 + + col1 * ( - col0 * col1 ) FROM tab0 AS cor0
----
-177529
-329340
-737034

query I rowsort
SELECT - cor0.col1 * - col2 - - 87 * 32 FROM tab2 AS cor0
----
3430
3621
4318

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5265
SELECT DISTINCT 66 * col0 * CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5265
SELECT DISTINCT 66 * col0 * CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL + 97 + - 80 AS col0 FROM tab2 AS cor0
----
17
17
17

query I rowsort
SELECT - 11 + - cor0.col0 FROM tab0 cor0
----
-100
-35
-46

query I rowsort
SELECT col0 * - cor0.col1 * - ( col1 * - col2 ) FROM tab1 AS cor0
----
-109512
-1297920
-364800

query I rowsort
SELECT - 67 * - col1 + col1 FROM tab2 AS cor0
----
1156
2108
4012

query I rowsort
SELECT - col1 * + cor0.col2 AS col2 FROM tab1 cor0
----
-1248
-1404
-570

query I rowsort
SELECT col2 * + col2 * col1 + col1 FROM tab2 AS cor0
----
22630
24565
39943

query I rowsort
SELECT ALL - 47 FROM tab1, tab2 cor0
----
9 values hashing to 6942a0d9558277afd0d00408d65cf5aa

query I rowsort
SELECT ALL + ( 32 ) AS col2 FROM tab1
----
32
32
32

query I rowsort
SELECT - col2 * 20 AS col2 FROM tab0
----
-1640
-20
-660

query I rowsort
SELECT + + 66 + col1 AS col2 FROM tab2 AS cor0
----
125
83
97

query I rowsort
SELECT 78 * tab1.col2 * col2 AS col2 FROM tab1
----
227448
253422
718848

query I rowsort
SELECT - col0 + 22 * col0 FROM tab1 AS cor0
----
1344
1680
63

query I rowsort
SELECT DISTINCT col1 * 4 * col2 AS col2 FROM tab0 AS cor0
----
11352
29848
388

query I rowsort
SELECT col1 * 98 - col2 AS col2 FROM tab0 cor0
----
8395
8836
9505

query I rowsort
SELECT ALL col0 * col0 + + col0 AS col0 FROM tab1 AS cor0
----
12
4160
6480

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 * col0 - - 71 * col1 col1 FROM tab0 AS cor0
----
-1638
3492
4042

query I rowsort
SELECT DISTINCT col1 + 87 AS col1 FROM tab2 AS cor0
----
104
118
146

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5283
SELECT CAST( NULL AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab1 AS cor2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

skipif mysql # not compatible
query I rowsort label-5283
SELECT CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab1 AS cor2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

query I rowsort
SELECT DISTINCT col1 * 5 + - col2 * col0 + col0 FROM tab0
----
-338
-6754
485

query I rowsort
SELECT DISTINCT - col2 * 19 AS col1 FROM tab1 AS cor0
----
-1026
-1083
-1824

query I rowsort
SELECT ALL + 41 + col0 + cor0.col1 FROM tab0 AS cor0
----
151
173
221

query I rowsort
SELECT ( cor0.col1 ) + col0 AS col2 FROM tab1 AS cor0
----
29
74
93

onlyif mysql # use DIV operator for integer division
query I rowsort label-5288
SELECT DISTINCT + 90 DIV - col2 + - col1 DIV - 32 FROM tab0 AS cor0
----
-87
0
1

skipif mysql # not compatible
query I rowsort label-5288
SELECT DISTINCT + 90 / - col2 + - col1 / - 32 FROM tab0 AS cor0
----
-87
0
1

query I rowsort
SELECT ALL + 37 * + cor0.col2 + + cor0.col2 FROM tab2 AS cor0
----
1026
1444
988

query I rowsort
SELECT DISTINCT + ( + 53 ) AS col1 FROM tab1, tab1 AS cor0
----
53

query I rowsort
SELECT - - ( ( - cor0.col2 ) ) AS col1 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT + col1 + 53 * - col1 FROM tab2 AS cor0
----
-1612
-3068
-884

query I rowsort
SELECT 0 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT ( - 91 ) AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 745d1c3a09d935465cad552325c5c945

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col1 col0 FROM tab0, tab1 cor0
----
9 values hashing to b234798d4706314ba14eaad539d0aa88

query I rowsort
SELECT DISTINCT - 75 - + col1 AS col2 FROM tab0
----
-161
-166
-172

onlyif mysql # use DIV operator for integer division
query I rowsort label-5297
SELECT - ( - col2 ) * col1 DIV 42 FROM tab1
----
13
29
33

skipif mysql # not compatible
query I rowsort label-5297
SELECT - ( - col2 ) * col1 / 42 FROM tab1
----
13
29
33

query I rowsort
SELECT DISTINCT + ( col1 ) * - tab0.col2 AS col2 FROM tab0
----
-2838
-7462
-97

query I rowsort
SELECT + + ( 88 ) + col1 AS col0 FROM tab0 cor0
----
174
179
185

query I rowsort
SELECT col1 * + col2 - - col1 AS col1 FROM tab2 AS cor0
----
1593
663
868

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5301
SELECT - - CAST( NULL AS DECIMAL ) * cor0.col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5301
SELECT - - CAST ( NULL AS REAL ) * cor0.col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5302
SELECT + ( cor0.col2 ) + - 58 DIV col0 FROM tab0 AS cor0
----
0
31
82

skipif mysql # not compatible
query I rowsort label-5302
SELECT + ( cor0.col2 ) + - 58 / col0 FROM tab0 AS cor0
----
0
31
82

query I rowsort
SELECT + 35 AS col0 FROM tab2
----
35
35
35

query I rowsort
SELECT - col2 * - 13 * col2 FROM tab0 AS cor0
----
13
14157
87412

query I rowsort
SELECT ALL + 18 AS col1 FROM tab2, tab0 AS cor0, tab1, tab1 AS cor1
----
81 values hashing to a13db73ec93475d2821cb4a6d0eff298

onlyif mysql # use DIV operator for integer division
query I rowsort label-5306
SELECT DISTINCT + col1 + - col1 DIV col0 AS col0 FROM tab1
----
10
13
18

skipif mysql # not compatible
query I rowsort label-5306
SELECT DISTINCT + col1 + - col1 / col0 AS col0 FROM tab1
----
10
13
18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col2 + - cor0.col2 col1 FROM tab1 cor0
----
0

query I rowsort
SELECT - col1 + col1 + - ( - ( - col0 ) ) AS col1 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT ( + cor0.col2 ) * + cor0.col2 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 8a9dbff4c424879f0bb94abfbb1a134b

query I rowsort
SELECT DISTINCT - 65 FROM tab2, tab0, tab1 AS cor0
----
-65

query I rowsort
SELECT DISTINCT - - 78 * + col1 FROM tab2 AS cor0
----
1326
2418
4602

query I rowsort
SELECT ALL 44 + col0 * + col2 AS col0 FROM tab1 AS cor0
----
206
3692
7724

onlyif mysql # use DIV operator for integer division
query I rowsort label-5313
SELECT + + col1 * + col0 DIV col0 FROM tab1 AS cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-5313
SELECT + + col1 * + col0 / col0 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT - 63 * cor0.col0 AS col1 FROM tab2 AS cor0
----
-441
-4914
-4977

query I rowsort
SELECT DISTINCT 48 * - col0 AS col1 FROM tab2 cor0
----
-336
-3744
-3792

query I rowsort
SELECT + cor0.col1 + - col0 * col0 AS col2 FROM tab2 AS cor0
----
-18
-6025
-6224

query I rowsort
SELECT - - cor0.col2 FROM tab2, tab1 AS cor0, tab0 AS cor1, tab1, tab1 cor2
----
243 values hashing to 39c7e653e7a493eb9c9e3dad9ba3b8c2

query I rowsort
SELECT + col2 + + col2 * + col0 * tab1.col0 AS col0 FROM tab1
----
233529
540
614496

query I rowsort
SELECT ALL col0 * + col1 * col0 - col1 FROM tab2
----
106080
1488
358897

query I rowsort
SELECT - col1 * - col0 + col2 * + col1 AS col1 FROM tab1 AS cor0
----
1210
1482
2288

onlyif mysql # use DIV operator for integer division
query I rowsort label-5321
SELECT - 63 DIV - col2 + - col2 col0 FROM tab0 AS cor0
----
-32
-82
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5321
SELECT - 63 / - col2 + - col2 col0 FROM tab0 AS cor0
----
-32
-82
62

query I rowsort
SELECT ALL - ( col2 ) + - col2 FROM tab0 cor0
----
-164
-2
-66

query I rowsort
SELECT ALL + col2 * + 3 * col0 FROM tab2 AS cor0
----
567
6084
9006

onlyif mysql # use DIV operator for integer division
query I rowsort label-5324
SELECT DISTINCT col1 DIV - 95 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5324
SELECT DISTINCT col1 / - 95 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL - ( 52 ) FROM tab1 AS cor0
----
-52
-52
-52

query I rowsort
SELECT DISTINCT - col0 + + col0 * - col0 AS col0 FROM tab2 AS cor0
----
-56
-6162
-6320

query I rowsort
SELECT + + 66 + cor0.col2 + col2 FROM tab0 AS cor0
----
132
230
68

onlyif mysql # use DIV operator for integer division
query I rowsort label-5328
SELECT + col0 * cor0.col0 DIV col0 + col0 * + 81 AS col2 FROM tab0 cor0
----
1968
2870
7298

skipif mysql # not compatible
query I rowsort label-5328
SELECT + col0 * cor0.col0 / col0 + col0 * + 81 AS col2 FROM tab0 cor0
----
1968
2870
7298

query I rowsort
SELECT + col2 * - col2 + col0 FROM tab2 cor0
----
-1365
-598
-722

query I rowsort
SELECT + 0 * col1 - col2 FROM tab1 AS cor0
----
-54
-57
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-5331
SELECT - - col0 * col2 + + col1 + + col1 DIV - col0 AS col2 FROM tab1 AS cor0
----
180
3658
7693

skipif mysql # not compatible
query I rowsort label-5331
SELECT - - col0 * col2 + + col1 + + col1 / - col0 AS col2 FROM tab1 AS cor0
----
180
3658
7693

query I rowsort
SELECT ALL + + cor0.col2 + col2 AS col2 FROM tab1 AS cor0
----
108
114
192

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5333
SELECT + - col1 * + col2 + col0 + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5333
SELECT + - col1 * + col2 + col0 + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - - 14 * col0 FROM tab1 AS cor0
----
1120
42
896

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 51 col1 FROM tab0 AS cor0
----
-51

query I rowsort
SELECT + ( 20 ) * + col2 FROM tab1 AS cor0
----
1080
1140
1920

query I rowsort
SELECT DISTINCT 19 + - 90 AS col0 FROM tab2
----
-71

query I rowsort
SELECT ALL + ( col2 ) + col1 FROM tab0
----
119
173
98

query I rowsort
SELECT DISTINCT - ( col1 ) + - col1 * 56 FROM tab0 AS cor0
----
-4902
-5187
-5529

query I rowsort
SELECT ALL col2 + - col2 * cor0.col2 AS col0 FROM tab2 AS cor0
----
-1406
-650
-702

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5341
SELECT ALL - col0 - CAST( col2 + + col0 AS SIGNED ) FROM tab1
----
-185
-256
-60

skipif mysql # not compatible
query I rowsort label-5341
SELECT ALL - col0 - CAST ( col2 + + col0 AS INTEGER ) FROM tab1
----
-185
-256
-60

query I rowsort
SELECT DISTINCT - - 79 * + col0 * col1 AS col2 FROM tab1 AS cor0
----
50560
6162
82160

query I rowsort
SELECT ALL col0 + col0 + col2 AS col2 FROM tab0
----
260
71
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 48 col2 FROM tab1 AS cor0
----
48
48
48

onlyif mysql # use DIV operator for integer division
query I rowsort label-5345
SELECT ALL + - col2 DIV + col0 + + col1 * - 44 FROM tab1 AS cor0
----
-1162
-440
-573

skipif mysql # not compatible
query I rowsort label-5345
SELECT ALL + - col2 / + col0 + + col1 * - 44 FROM tab1 AS cor0
----
-1162
-440
-573

query I rowsort
SELECT DISTINCT - 0 + - col0 - + 17 * col0 FROM tab1 cor0
----
-1152
-1440
-54

onlyif mysql # use DIV operator for integer division
query I rowsort label-5347
SELECT + 12 + col1 DIV col1 FROM tab0 cor0
----
13
13
13

skipif mysql # not compatible
query I rowsort label-5347
SELECT + 12 + col1 / col1 FROM tab0 cor0
----
13
13
13

query I rowsort
SELECT + + cor0.col0 + col1 * - 92 FROM tab2 AS cor0
----
-1485
-2845
-5350

onlyif mysql # use DIV operator for integer division
query I rowsort label-5349
SELECT DISTINCT col0 + + col1 DIV col2 col0 FROM tab0
----
132
26
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5349
SELECT DISTINCT col0 + + col1 / col2 col0 FROM tab0
----
132
26
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( tab2.col2 ) + - col0 * + col1 col2 FROM tab2
----
-1305
-190
-4576

query I rowsort
SELECT 4 + col2 * + col1 AS col1 FROM tab1
----
1252
1408
574

query I rowsort
SELECT tab0.col1 + + col0 + col0 FROM tab0
----
134
167
269

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 46 col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 31818c9d4d325eb248735c97cb1dce39

onlyif mysql # use DIV operator for integer division
query I rowsort label-5354
SELECT ( + col0 ) + - col0 + tab2.col1 DIV 69 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5354
SELECT ( + col0 ) + - col0 + tab2.col1 / 69 AS col2 FROM tab2
----
0
0
0

query I rowsort
SELECT - col2 * - 39 AS col1 FROM tab1
----
2106
2223
3744

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - - col2 col0 FROM tab0
----
171
36
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + + col0 col1 FROM tab2
----
14
156
158

query I rowsort
SELECT DISTINCT - col0 + col1 * col1 AS col2 FROM tab2 cor0
----
210
3403
954

query I rowsort
SELECT ALL + col1 + + col0 * + col0 + - cor0.col0 FROM tab2 AS cor0
----
6065
6179
73

query I rowsort
SELECT DISTINCT - col2 * - ( col0 ) * - cor0.col2 AS col2 FROM tab0 AS cor0
----
-26136
-35
-598436

query I rowsort
SELECT DISTINCT - - cor0.col1 - + 16 FROM tab0 AS cor0
----
70
75
81

query I rowsort
SELECT DISTINCT + - col0 * 41 AS col1 FROM tab2 AS cor0
----
-287
-3198
-3239

onlyif mysql # use DIV operator for integer division
query I rowsort label-5363
SELECT ALL - col1 DIV ( + 31 ) FROM tab2 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-5363
SELECT ALL - col1 / ( + 31 ) FROM tab2 AS cor0
----
-1
-1
0

query I rowsort
SELECT + col1 * col0 + + 83 AS col2 FROM tab0
----
2147
3478
8182

query I rowsort
SELECT ALL + 76 * col0 FROM tab2
----
532
5928
6004

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 68 * col1 * + 95 + col2 col2 FROM tab2
----
109858
200287
381166

query I rowsort
SELECT ALL col1 - 67 AS col0 FROM tab0
----
19
24
30

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab1, tab1 AS cor2
----
3645 values hashing to fb3687512d3714969d7c6afc5561ed79

query I rowsort
SELECT DISTINCT col1 * 68 - col1 FROM tab1
----
1742
670
871

query I rowsort
SELECT DISTINCT + - cor0.col0 * 50 FROM tab2 AS cor0
----
-350
-3900
-3950

query I rowsort
SELECT DISTINCT - col1 * 9 * - ( cor0.col2 + ( ( col1 ) ) * - 92 ) AS col1 FROM tab0 AS cor0
----
-6098346
-6789510
-7789779

onlyif mysql # use DIV operator for integer division
query I rowsort label-5372
SELECT DISTINCT - col1 DIV 89 FROM tab0 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-5372
SELECT DISTINCT - col1 / 89 FROM tab0 AS cor0
----
-1
0

query I rowsort
SELECT ALL - + col2 + - col0 * - 28 FROM tab1 AS cor0
----
1735
2144
30

query I rowsort
SELECT col2 * + col0 * 27 FROM tab1 AS cor0
----
207360
4374
98496

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 52 * col0 col2 FROM tab0
----
1248
1820
4628

query I rowsort
SELECT DISTINCT + col2 + + col1 * + col1 * col2 FROM tab1
----
16320
36558
5757

query I rowsort
SELECT col2 * col2 + ( tab2.col0 ) AS col2 FROM tab2
----
1523
736
754

query I rowsort
SELECT DISTINCT - ( - cor0.col0 ) + 90 * cor0.col0 FROM tab1 AS cor0
----
273
5824
7280

query I rowsort
SELECT DISTINCT + col0 * col0 * - ( + col2 ) AS col1 FROM tab0 AS cor0
----
-1225
-19008
-649522

query I rowsort
SELECT cor0.col0 * - cor0.col2 AS col1 FROM tab2 AS cor0
----
-189
-2028
-3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-5381
SELECT + 22 DIV + col0 FROM tab2 AS cor0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-5381
SELECT + 22 / + col0 FROM tab2 AS cor0
----
0
0
3

query I rowsort
SELECT + - 90 + col1 AS col1 FROM tab1 cor0
----
-64
-77
-80

query I rowsort
SELECT + 62 AS col1 FROM tab2, tab2 AS cor0, tab2 AS cor1, tab1, tab1 AS cor2
----
243 values hashing to b3af72ed520765fbff8032f1498e19b7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5384
SELECT ALL ( col0 ) * + CAST( cor0.col2 AS SIGNED ) col1 FROM tab2 AS cor0
----
189
2028
3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5384
SELECT ALL ( col0 ) * + CAST ( cor0.col2 AS INTEGER ) col1 FROM tab2 AS cor0
----
189
2028
3002

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5385
SELECT - cor0.col2 + + CAST( NULL AS SIGNED ) * - col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5385
SELECT - cor0.col2 + + CAST ( NULL AS INTEGER ) * - col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col0 + ( col2 ) * col2 AS col2 FROM tab0 AS cor0
----
-34
1065
6635

query I rowsort
SELECT + col1 - col1 AS col0 FROM tab0 cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5388
SELECT - + col1 * col0 + - cor0.col1 DIV col2 + 2 AS col2 FROM tab1 AS cor0
----
-1038
-638
-76

skipif mysql # not compatible
query I rowsort label-5388
SELECT - + col1 * col0 + - cor0.col1 / col2 + 2 AS col2 FROM tab1 AS cor0
----
-1038
-638
-76

query I rowsort
SELECT + cor0.col1 * col2 * + ( - col1 ) AS col2 FROM tab2 AS cor0
----
-10982
-25947
-90506

query I rowsort
SELECT - - col2 * - ( - cor0.col1 * col2 ) + col0 * col0 FROM tab2 AS cor0
----
22648
30789
45968

onlyif mysql # use DIV operator for integer division
query I rowsort label-5391
SELECT + col1 DIV + 19 AS col0 FROM tab2 AS cor0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-5391
SELECT + col1 / + 19 AS col0 FROM tab2 AS cor0
----
0
1
3

query I rowsort
SELECT DISTINCT + col1 * - ( + col1 ) AS col0 FROM tab2 AS cor0
----
-289
-3481
-961

query I rowsort
SELECT + + col0 + - col1 * - col2 FROM tab2 AS cor0
----
1612
725
844

query I rowsort
SELECT DISTINCT - col2 * - ( + col1 ) AS col0 FROM tab1 cor0
----
1248
1404
570

query I rowsort
SELECT ALL ( col1 * col1 ) + - col1 + - col1 * - ( col0 ) FROM tab2
----
1147
1615
8024

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * ( col1 * - cor0.col0 ) col1 FROM tab2 AS cor0
----
22831
271518
6727

onlyif mysql # use DIV operator for integer division
query I rowsort label-5397
SELECT + - cor0.col2 DIV 41 - + col1 AS col1 FROM tab1 AS cor0
----
-11
-15
-27

skipif mysql # not compatible
query I rowsort label-5397
SELECT + - cor0.col2 / 41 - + col1 AS col1 FROM tab1 AS cor0
----
-11
-15
-27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 23 ) * + col1 * + ( col0 * col1 ) col1 FROM tab1 AS cor0
----
147200
310960
46644

query I rowsort
SELECT ALL + + 95 + col2 FROM tab0 cor0
----
128
177
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-5400
SELECT + col0 DIV ( + col1 ) col1 FROM tab1 AS cor0
----
0
6
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5400
SELECT + col0 / ( + col1 ) col1 FROM tab1 AS cor0
----
0
6
6

query I rowsort
SELECT - + 43 * 41 FROM tab0 AS cor0
----
-1763
-1763
-1763

query I rowsort
SELECT DISTINCT 62 * - col1 AS col1 FROM tab1 AS cor0
----
-1612
-620
-806

onlyif mysql # use DIV operator for integer division
query I rowsort label-5403
SELECT DISTINCT - col2 * col0 + col2 + - 73 DIV col1 AS col2 FROM tab2 AS cor0
----
-164
-2003
-2968

skipif mysql # not compatible
query I rowsort label-5403
SELECT DISTINCT - col2 * col0 + col2 + - 73 / col1 AS col2 FROM tab2 AS cor0
----
-164
-2003
-2968

query I rowsort
SELECT + col1 * - col1 + + col1 AS col1 FROM tab2 cor0
----
-272
-3422
-930

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 14 col0 FROM tab0 cor0
----
14
14
14

onlyif mysql # use DIV operator for integer division
query I rowsort label-5406
SELECT ALL - CAST( + col1 AS SIGNED ) DIV + col2 + + col1 FROM tab1 AS cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-5406
SELECT ALL - CAST ( + col1 AS INTEGER ) / + col2 + + col1 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT + ( - col0 ) * col0 AS col1 FROM tab2 AS cor0
----
-49
-6084
-6241

query I rowsort
SELECT DISTINCT - + col2 * cor0.col1 AS col2 FROM tab1 cor0
----
-1248
-1404
-570

query I rowsort
SELECT ALL + col0 * + col1 * col0 AS col0 FROM tab2 AS cor0
----
106097
1519
358956

query I rowsort
SELECT ( + 72 ) + + col1 * - 27 * - 29 FROM tab0
----
67410
71325
76023

onlyif mysql # use DIV operator for integer division
query I rowsort label-5411
SELECT ( col1 ) * + col1 + col0 DIV col0 col0 FROM tab2
----
290
3482
962

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5411
SELECT ( col1 ) * + col1 + col0 / col0 col0 FROM tab2
----
290
3482
962

query I rowsort
SELECT DISTINCT - + 56 FROM tab1, tab0 AS cor0, tab2, tab0 cor1
----
-56

query I rowsort
SELECT 37 * + cor0.col2 FROM tab1 AS cor0
----
1998
2109
3552

query I rowsort
SELECT - - 36 + col1 FROM tab1 AS cor0
----
46
49
62

query I rowsort
SELECT ALL col0 - + col1 AS col0 FROM tab0 AS cor0
----
-2
-62
-62

query I rowsort
SELECT ALL - col0 + ( + cor0.col0 ) * + col0 FROM tab0 AS cor0
----
1190
552
7832

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5417
SELECT ALL col2 * + CAST( NULL AS DECIMAL ) + - col2 * - col1 + cor0.col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5417
SELECT ALL col2 * + CAST ( NULL AS REAL ) + - col2 * - col1 + cor0.col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - cor0.col1 * - 61 AS col0 FROM tab1 AS cor0
----
1586
610
793

query I rowsort
SELECT - - ( + 6 ) * col2 * + 52 AS col1 FROM tab0 AS cor0
----
10296
25584
312

query I rowsort
SELECT - 28 * 78 + col2 AS col0 FROM tab0 AS cor0
----
-2102
-2151
-2183

query I rowsort
SELECT - 54 FROM tab0, tab2 cor0
----
9 values hashing to 4ecdb0f1b85f0d4fdc3a826efd9f2342

query I rowsort
SELECT DISTINCT + col1 - + col1 AS col2 FROM tab1
----
0

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT + col1 AS col2 FROM tab1 WHERE - col0 NOT IN ( - col2 + + col2 )
----
10
13
26

query I rowsort
SELECT DISTINCT - col2 * + col1 * - col0 AS col0 FROM tab2
----
119652
51034
5859

onlyif mysql # use DIV operator for integer division
query I rowsort label-5426
SELECT - col1 * + col1 - - col1 * col1 DIV col2 AS col2 FROM tab0
----
-7172
-8181
0

skipif mysql # not compatible
query I rowsort label-5426
SELECT - col1 * + col1 - - col1 * col1 / col2 AS col2 FROM tab0
----
-7172
-8181
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5427
SELECT ALL col0 * + col2 DIV - col2 - col0 FROM tab1
----
-128
-160
-6

skipif mysql # not compatible
query I rowsort label-5427
SELECT ALL col0 * + col2 / - col2 - col0 FROM tab1
----
-128
-160
-6

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 * + col2 - col0 <> NULL
----

query I rowsort
SELECT ALL + col1 * - tab2.col1 + + col2 + col2 FROM tab2
----
-213
-3429
-907

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( - col1 ) <= col0
----

query I rowsort
SELECT col1 AS col0 FROM tab1 WHERE NOT + col2 <> NULL
----

query I rowsort
SELECT - col0 - col0 * + col0 FROM tab0
----
-1260
-600
-8010

query I rowsort
SELECT col1 * col2 - col0 AS col0 FROM tab2 WHERE NOT NULL > ( NULL )
----

query I rowsort
SELECT DISTINCT - col0 + col0 + col1 AS col0 FROM tab0
----
86
91
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col2 * + col2 col1 FROM tab1
----
2916
3249
9216

query I rowsort
SELECT DISTINCT + col2 * + col2 * + col2 FROM tab2
----
17576
19683
54872

query I rowsort
SELECT ALL - tab0.col2 * col0 AS col0 FROM tab0
----
-35
-7298
-792

onlyif mysql # use DIV operator for integer division
query I rowsort label-5438
SELECT col2 + tab1.col2 DIV col2 + col1 FROM tab1
----
110
68
81

skipif mysql # not compatible
query I rowsort label-5438
SELECT col2 + tab1.col2 / col2 + col1 FROM tab1
----
110
68
81

query I rowsort
SELECT ALL + - cor0.col2 + col2 * col2 * col0 FROM tab2 AS cor0
----
114038
5076
52702

query I rowsort
SELECT ALL - col2 * + tab2.col0 AS col1 FROM tab2
----
-189
-2028
-3002

query I rowsort
SELECT DISTINCT col2 FROM tab2 WHERE NOT NULL NOT IN ( + col1 )
----

query I rowsort
SELECT ALL - col2 + col2 - + tab2.col2 FROM tab2
----
-26
-27
-38

query I rowsort
SELECT - col0 * col2 + + col0 FROM tab1
----
-159
-3584
-7600

query I rowsort
SELECT + tab2.col1 FROM tab2 WHERE col2 + col2 IN ( - col0 + tab2.col2 * - col2 )
----

query I rowsort
SELECT ALL col0 * + tab0.col1 AS col1 FROM tab0
----
2064
3395
8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-5446
SELECT - col2 + col2 DIV col1 FROM tab0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-5446
SELECT - col2 + col2 / col1 FROM tab0
----
-1
-33
-82

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col0 IN ( - col1 * col0 + col2 + - col2 * col2 / tab1.col1 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + cor0.col0 col2 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT ALL - tab2.col2 FROM tab1, tab0 AS cor0 CROSS JOIN tab2
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6

onlyif mysql # use DIV operator for integer division
query I rowsort label-5450
SELECT DISTINCT tab1.col0 DIV + col2 AS col1 FROM tab1
----
0
1

skipif mysql # not compatible
query I rowsort label-5450
SELECT DISTINCT tab1.col0 / + col2 AS col1 FROM tab1
----
0
1

query I rowsort
SELECT ALL col2 + - col1 + col0 FROM tab0
----
-29
-61
80

query I rowsort
SELECT col2 + - col2 * - col1 AS col0 FROM tab2
----
1560
684
864

query I rowsort
SELECT col1 FROM tab1 WHERE NULL IN ( + col2 + tab1.col2 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-5454
SELECT ALL - col0 DIV col2 col0 FROM tab0
----
-1
-35
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5454
SELECT ALL - col0 / col2 col0 FROM tab0
----
-1
-35
0

query I rowsort
SELECT ALL col1 + tab0.col1 - col1 AS col0 FROM tab0
----
86
91
97

query I rowsort
SELECT col1 * tab1.col2 - col0 AS col0 FROM tab1
----
1168
1401
506

query I rowsort
SELECT ALL col0 - - col0 * + col2 * - col1 FROM tab2 AS cor0
----
-119574
-50955
-5852

query I rowsort
SELECT col2 AS col1 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT - tab2.col1 + ( + col2 ) * col1 FROM tab2
----
1475
629
806

onlyif mysql # use DIV operator for integer division
query I rowsort label-5460
SELECT + - col2 DIV 63 FROM tab0 cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-5460
SELECT + - col2 / 63 FROM tab0 cor0
----
-1
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5461
SELECT + cor0.col0 * - CAST( - col2 * + col1 AS SIGNED ) FROM tab1 AS cor0
----
36480
4212
99840

skipif mysql # not compatible
query I rowsort label-5461
SELECT + cor0.col0 * - CAST ( - col2 * + col1 AS INTEGER ) FROM tab1 AS cor0
----
36480
4212
99840

query I rowsort
SELECT DISTINCT + - col0 + + ( - cor0.col0 ) * col1 FROM tab2 AS cor0
----
-1422
-224
-4680

onlyif mysql # use DIV operator for integer division
query I rowsort label-5463
SELECT + col0 DIV ( 28 ) col0 FROM tab0 AS cor0
----
0
1
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5463
SELECT + col0 / ( 28 ) col0 FROM tab0 AS cor0
----
0
1
3

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5464
SELECT DISTINCT - CAST( NULL AS SIGNED ) + col2 * + col2 col1 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5464
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + col2 * + col2 col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5465
SELECT CAST( NULL AS SIGNED ) + col1 - - col2 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5465
SELECT CAST ( NULL AS INTEGER ) + col1 - - col2 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - ( 74 ) + - col2 FROM tab2 AS cor0
----
36
47
48

query I rowsort
SELECT DISTINCT - - 27 * - cor0.col1 FROM tab1 AS cor0
----
-270
-351
-702

query I rowsort
SELECT - ( - cor0.col2 ) * col2 * col2 AS col0 FROM tab1 AS cor0
----
157464
185193
884736

query I rowsort
SELECT - + 6 * col0 + col2 AS col1 FROM tab0 AS cor0
----
-111
-209
-452

query I rowsort
SELECT DISTINCT - 31 * + 55 AS col2 FROM tab2 AS cor0
----
-1705

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 14 col1 FROM tab1 AS cor0
----
-14
-14
-14

onlyif mysql # use DIV operator for integer division
query I rowsort label-5472
SELECT + 19 DIV col0 AS col1 FROM tab2 AS cor0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-5472
SELECT + 19 / col0 AS col1 FROM tab2 AS cor0
----
0
0
2

query I rowsort
SELECT 43 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to ee5108f6248be48c54e069545f81c5d9

query I rowsort
SELECT DISTINCT 46 + - col0 * - col1 FROM tab1 AS cor0
----
1086
124
686

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5475
SELECT + 52 * - col1 + CAST( col0 AS SIGNED ) FROM tab1 AS cor0
----
-1349
-456
-596

skipif mysql # not compatible
query I rowsort label-5475
SELECT + 52 * - col1 + CAST ( col0 AS INTEGER ) FROM tab1 AS cor0
----
-1349
-456
-596

query I rowsort
SELECT DISTINCT - - col1 * + col2 + + col2 FROM tab2 AS cor0
----
1560
684
864

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col1 + col0 col0 FROM tab2 AS cor0
----
137
38
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-5478
SELECT + + 23 DIV cor0.col2 + + col2 FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-5478
SELECT + + 23 / cor0.col2 + + col2 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT ALL cor0.col2 * col0 + 60 + col1 FROM tab1 AS cor0
----
248
3718
7753

query I rowsort
SELECT DISTINCT - cor0.col1 * ( col0 ) + + cor0.col2 FROM tab2 AS cor0
----
-1305
-190
-4576

query I rowsort
SELECT + - col2 * + ( + col2 ) AS col1 FROM tab0 cor0
----
-1
-1089
-6724

onlyif mysql # use DIV operator for integer division
query I rowsort label-5482
SELECT DISTINCT - - col2 DIV col0 AS col2 FROM tab0 cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-5482
SELECT DISTINCT - - col2 / col0 AS col2 FROM tab0 cor0
----
0
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5483
SELECT + col1 * CAST( ( col1 ) AS SIGNED ) AS col1 FROM tab2 AS cor0
----
289
3481
961

skipif mysql # not compatible
query I rowsort label-5483
SELECT + col1 * CAST ( ( col1 ) AS INTEGER ) AS col1 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT ALL + + cor0.col1 + col0 AS col1 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT DISTINCT + + col1 + - 11 FROM tab0 AS cor0
----
75
80
86

query I rowsort
SELECT ALL 44 * tab1.col1 AS col0 FROM tab1
----
1144
440
572

onlyif mysql # use DIV operator for integer division
query I rowsort label-5487
SELECT DISTINCT - ( + col2 ) DIV col0 FROM tab1
----
-1
-18
0

skipif mysql # not compatible
query I rowsort label-5487
SELECT DISTINCT - ( + col2 ) / col0 FROM tab1
----
-1
-18
0

query I rowsort
SELECT 18 * - col2 * + 44 + - col2 FROM tab2
----
-20618
-21411
-30134

query I rowsort
SELECT ALL 64 * col1 * col0 AS col1 FROM tab2
----
13888
294528
85952

query I rowsort
SELECT + col0 * 96 FROM tab2 AS cor0
----
672
7488
7584

query I rowsort
SELECT 37 + col2 FROM tab2
----
63
64
75

query I rowsort
SELECT col1 * 30 AS col2 FROM tab1 AS cor0
----
300
390
780

query I rowsort
SELECT col1 + - 19 * col1 FROM tab0
----
-1548
-1638
-1746

query I rowsort
SELECT DISTINCT ( - col0 + + col2 * col0 ) FROM tab0
----
0
7209
768

query I rowsort
SELECT + 60 * + 83 AS col0 FROM tab1
----
4980
4980
4980

onlyif mysql # use DIV operator for integer division
query I rowsort label-5496
SELECT ALL CAST( col1 AS SIGNED ) DIV col1 + + col0 AS col1 FROM tab2
----
79
8
80

skipif mysql # not compatible
query I rowsort label-5496
SELECT ALL CAST ( col1 AS INTEGER ) / col1 + + col0 AS col1 FROM tab2
----
79
8
80

query I rowsort
SELECT DISTINCT 83 * - col0 AS col0 FROM tab1
----
-249
-5312
-6640

onlyif mysql # use DIV operator for integer division
query I rowsort label-5498
SELECT 97 DIV + tab1.col0 AS col1 FROM tab1
----
1
1
32

skipif mysql # not compatible
query I rowsort label-5498
SELECT 97 / + tab1.col0 AS col1 FROM tab1
----
1
1
32

query I rowsort
SELECT ALL - 69 + - 99 * - col0 * + col2 FROM tab1 AS cor0
----
15969
361083
760251

onlyif mysql # use DIV operator for integer division
query I rowsort label-5500
SELECT col2 DIV col0 + CAST( 4 AS SIGNED ) AS col2 FROM tab1
----
22
4
5

skipif mysql # not compatible
query I rowsort label-5500
SELECT col2 / col0 + CAST ( 4 AS INTEGER ) AS col2 FROM tab1
----
22
4
5

query I rowsort
SELECT - ( - col1 ) + - 95 FROM tab0
----
-4
-9
2

query I rowsort
SELECT col1 * - col1 * + tab2.col0 AS col1 FROM tab2
----
-22831
-271518
-6727

query I rowsort
SELECT cor1.col2 FROM tab2, tab0, tab2 AS cor0, tab0 AS cor1
----
81 values hashing to e938777ebffc2e3e9c0cdfaa4f732c05

query I rowsort
SELECT col2 + + col1 * + 62 AS col1 FROM tab1
----
1666
677
902

query I rowsort
SELECT ALL + col2 + - col2 * 54 FROM tab2 AS cor0
----
-1378
-1431
-2014

query I rowsort
SELECT ALL - cor0.col0 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8

query I rowsort
SELECT DISTINCT tab2.col2 FROM tab2, tab0 AS cor0, tab0 cor1
----
26
27
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col1 ) * tab0.col2 col2 FROM tab0
----
-2838
-7462
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-5509
SELECT ALL - + col1 * ( - col1 ) DIV - col0 AS col1 FROM tab0 AS cor0
----
-268
-308
-93

skipif mysql # not compatible
query I rowsort label-5509
SELECT ALL - + col1 * ( - col1 ) / - col0 AS col1 FROM tab0 AS cor0
----
-268
-308
-93

query I rowsort
SELECT DISTINCT - - col2 * - col2 + - col2 * + col1 * - col0 FROM tab1 AS cor0
----
1296
33231
90624

query I rowsort
SELECT - - cor0.col0 + - cor0.col1 AS col1 FROM tab0 AS cor0
----
-2
-62
-62

query I rowsort
SELECT col1 * + cor0.col1 + + col0 + col1 AS col0 FROM tab2 cor0
----
3618
385
999

onlyif mysql # use DIV operator for integer division
query I rowsort label-5513
SELECT DISTINCT col1 + col2 + col2 * col2 DIV + col2 col1 FROM tab1
----
124
134
205

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5513
SELECT DISTINCT col1 + col2 + col2 * col2 / + col2 col1 FROM tab1
----
124
134
205

onlyif mysql # use DIV operator for integer division
query I rowsort label-5514
SELECT ALL col2 DIV + col1 AS col0 FROM tab2
----
0
0
2

skipif mysql # not compatible
query I rowsort label-5514
SELECT ALL col2 / + col1 AS col0 FROM tab2
----
0
0
2

query I rowsort
SELECT - - col1 * col0 + col2 AS col0 FROM tab0 AS cor0
----
2097
3396
8181

query I rowsort
SELECT - - col1 + + col1 * - col0 FROM tab0 AS cor0
----
-1978
-3298
-8008

query I rowsort
SELECT ALL + + col1 * - col0 AS col1 FROM tab1 cor0
----
-1040
-640
-78

onlyif mysql # use DIV operator for integer division
query I rowsort label-5518
SELECT ALL col2 + col2 * col2 DIV col1 FROM tab1 AS cor0
----
166
381
804

skipif mysql # not compatible
query I rowsort label-5518
SELECT ALL col2 + col2 * col2 / col1 FROM tab1 AS cor0
----
166
381
804

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL <> NULL OR NULL >= col1
----

query I rowsort
SELECT + - col1 * - col2 * col2 + - col0 AS col2 FROM tab2 AS cor0
----
22592
24469
39806

onlyif mysql # use DIV operator for integer division
query I rowsort label-5521
SELECT - col0 * col2 * col2 - + col0 * cor0.col2 DIV col0 AS col2 FROM tab0 AS cor0
----
-26169
-36
-598518

skipif mysql # not compatible
query I rowsort label-5521
SELECT - col0 * col2 * col2 - + col0 * cor0.col2 / col0 AS col2 FROM tab0 AS cor0
----
-26169
-36
-598518

query I rowsort
SELECT + 22 * - col0 - - col0 AS col2 FROM tab2 AS cor0
----
-147
-1638
-1659

query I rowsort
SELECT DISTINCT col1 - col1 * - col1 * + col0 FROM tab1
----
13533
2054
6410

query I rowsort
SELECT - col2 * cor0.col1 + cor0.col0 FROM tab2 cor0
----
-1456
-567
-830

query I rowsort
SELECT + - 38 + + col0 AS col0 FROM tab1 AS cor0
----
-35
26
42

query I rowsort
SELECT DISTINCT ( col0 ) + + col2 AS col0 FROM tab0
----
171
36
57

query I rowsort
SELECT + - cor0.col0 + col1 * - col0 + col1 FROM tab1 AS cor0
----
-1107
-55
-694

query I rowsort
SELECT - 99 - col0 AS col2 FROM tab0 AS cor0
----
-123
-134
-188

query I rowsort
SELECT DISTINCT - col0 * col2 + - col0 * col2 FROM tab2 AS cor0
----
-378
-4056
-6004

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + col2 * col0 col0 FROM tab2 AS cor0
----
2054
216
3040

query I rowsort
SELECT DISTINCT - cor0.col0 * cor0.col1 AS col1 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT ALL col2 + col2 * + col1 AS col1 FROM tab1 AS cor0
----
1344
1458
627

query I rowsort
SELECT - col2 + col2 * - tab1.col2 FROM tab1
----
-2970
-3306
-9312

onlyif mysql # use DIV operator for integer division
query I rowsort label-5534
SELECT DISTINCT tab2.col2 DIV 64 col2 FROM tab2, tab0 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5534
SELECT DISTINCT tab2.col2 / 64 col2 FROM tab2, tab0 AS cor0
----
0

query I rowsort
SELECT col2 + + cor0.col1 FROM tab2 cor0
----
55
58
85

query I rowsort
SELECT ALL + col2 + + col0 * + col0 AS col2 FROM tab0 AS cor0
----
1226
609
8003

query I rowsort
SELECT ALL - - cor0.col2 * cor0.col1 FROM tab2 AS cor0
----
1534
646
837

onlyif mysql # use DIV operator for integer division
query I rowsort label-5538
SELECT ALL 64 + + col1 DIV - 64 AS col0 FROM tab0 AS cor0
----
63
63
63

skipif mysql # not compatible
query I rowsort label-5538
SELECT ALL 64 + + col1 / - 64 AS col0 FROM tab0 AS cor0
----
63
63
63

query I rowsort
SELECT ALL - 91 + - col1 FROM tab1 AS cor0
----
-101
-104
-117

query I rowsort
SELECT DISTINCT + 92 * col0 FROM tab1 AS cor0
----
276
5888
7360

query I rowsort
SELECT + - col0 + 1 * 44 AS col2 FROM tab2 AS cor0
----
-34
-35
37

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5542
SELECT DISTINCT + - cor0.col0 * CAST( col0 * - col1 AS SIGNED ) FROM tab1 AS cor0
----
234
40960
83200

skipif mysql # not compatible
query I rowsort label-5542
SELECT DISTINCT + - cor0.col0 * CAST ( col0 * - col1 AS INTEGER ) FROM tab1 AS cor0
----
234
40960
83200

query I rowsort
SELECT ALL - + col2 * 39 AS col2 FROM tab2 AS cor0
----
-1014
-1053
-1482

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - cor0.col0 * col1 col2 FROM tab1 AS cor0
----
-36480
-4212
-99840

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 * col0 + - ( cor0.col2 * ( col2 ) ) col1 FROM tab2 AS cor0
----
-101
-512
3926

query I rowsort
SELECT + col0 + - col1 - col2 * - col1 FROM tab1
----
1315
1381
624

query I rowsort
SELECT DISTINCT - 14 + col1 - + 46 FROM tab1
----
-34
-47
-50

query I rowsort
SELECT ALL - cor0.col2 * cor0.col2 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 34c958561bd6b2ab014ab6e0643406fa

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5549
SELECT DISTINCT CAST( col0 AS SIGNED ) - + cor0.col1 FROM tab1 cor0
----
-23
54
67

skipif mysql # not compatible
query I rowsort label-5549
SELECT DISTINCT CAST ( col0 AS INTEGER ) - + cor0.col1 FROM tab1 cor0
----
-23
54
67

query I rowsort
SELECT - + col1 * - col0 + + cor0.col1 * - col1 FROM tab0 cor0
----
-182
-5332
-6014

onlyif mysql # use DIV operator for integer division
query I rowsort label-5551
SELECT DISTINCT col2 DIV + col1 + col0 AS col1 FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-5551
SELECT DISTINCT col2 / + col1 + col0 AS col1 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT 42 * cor0.col1 * col1 AS col2 FROM tab1 AS cor0
----
28392
4200
7098

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5553
SELECT ALL CAST( col1 AS SIGNED ) + col0 * + cor0.col2 AS col1 FROM tab1 cor0
----
188
3658
7693

skipif mysql # not compatible
query I rowsort label-5553
SELECT ALL CAST ( col1 AS INTEGER ) + col0 * + cor0.col2 AS col1 FROM tab1 cor0
----
188
3658
7693

query I rowsort
SELECT ALL + ( + col0 ) * + col0 + - col1 AS col1 FROM tab0 AS cor0
----
1128
490
7830

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5555
SELECT col1 * + col2 * + col1 - - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5555
SELECT col1 * + col2 * + col1 - - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 17 + cor0.col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 9a4ed432b406a0b64ece0ce34fc4bb92

query I rowsort
SELECT - ( + 50 + col0 ) FROM tab2
----
-128
-129
-57

query I rowsort
SELECT + ( 80 ) AS col1 FROM tab1
----
80
80
80

query I rowsort
SELECT + cor0.col1 AS col2 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

query I rowsort
SELECT DISTINCT 75 * tab0.col1 AS col2 FROM tab0
----
6450
6825
7275

query I rowsort
SELECT - 99 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 64d06513850a26495bc6c2fddeb254b7

onlyif mysql # use DIV operator for integer division
query I rowsort label-5562
SELECT - col0 DIV - col0 - tab2.col1 * - col0 * - col1 col1 FROM tab2
----
-22830
-271517
-6726

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5562
SELECT - col0 / - col0 - tab2.col1 * - col0 * - col1 col1 FROM tab2
----
-22830
-271517
-6726

query I rowsort
SELECT DISTINCT 12 * + col0 * col1 FROM tab0 AS cor0
----
24768
40740
97188

query I rowsort
SELECT + col1 + 48 FROM tab0
----
134
139
145

query I rowsort
SELECT DISTINCT - 60 - - cor0.col2 FROM tab1 AS cor0
----
-3
-6
36

query I rowsort
SELECT DISTINCT - col1 * + col2 + + col0 AS col0 FROM tab0 AS cor0
----
-2814
-62
-7373

onlyif mysql # use DIV operator for integer division
query I rowsort label-5567
SELECT + col2 * 57 + col1 DIV - tab0.col2 AS col0 FROM tab0
----
-40
1879
4673

skipif mysql # not compatible
query I rowsort label-5567
SELECT + col2 * 57 + col1 / - tab0.col2 AS col0 FROM tab0
----
-40
1879
4673

query I rowsort
SELECT 35 * tab0.col2 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 96acc0d42ad4b82ea927b8cc773be1c3

query I rowsort
SELECT DISTINCT tab1.col2 + - col1 + 21 AS col2 FROM tab1
----
104
49
68

onlyif mysql # use DIV operator for integer division
query I rowsort label-5570
SELECT DISTINCT - col0 DIV 44 + - 95 AS col2 FROM tab0
----
-95
-97

skipif mysql # not compatible
query I rowsort label-5570
SELECT DISTINCT - col0 / 44 + - 95 AS col2 FROM tab0
----
-95
-97

query I rowsort
SELECT ALL + ( - tab1.col1 ) FROM tab1, tab2 AS cor0
----
9 values hashing to b234798d4706314ba14eaad539d0aa88

query I rowsort
SELECT col1 + ( - col0 ) * col1 FROM tab1
----
-1027
-52
-630

query I rowsort
SELECT ALL - col2 + + col1 * col2 AS col0 FROM tab0
----
2805
7380
96

query I rowsort
SELECT - + col2 * 11 AS col2 FROM tab0 cor0
----
-11
-363
-902

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5575
SELECT - col1 + + CAST( - ( col1 ) AS SIGNED ) + ( + col1 * col0 + col0 ) col0 FROM tab0 AS cor0
----
1916
3236
8006

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5575
SELECT - col1 + + CAST ( - ( col1 ) AS INTEGER ) + ( + col1 * col0 + col0 ) col0 FROM tab0 AS cor0
----
1916
3236
8006

query I rowsort
SELECT - - cor0.col1 * + col2 AS col1 FROM tab2 cor0
----
1534
646
837

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col1 + col0 + col1 col2 FROM tab0
----
229
2948
7642

query I rowsort
SELECT col0 * 28 FROM tab2
----
196
2184
2212

query I rowsort
SELECT DISTINCT col1 + col1 * - col0 * col2 FROM tab1 cor0
----
-36470
-4186
-99827

query I rowsort
SELECT - col1 * col0 * + col0 FROM tab2 AS cor0
----
-106097
-1519
-358956

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5581
SELECT ALL CAST( 49 AS SIGNED ) FROM tab2 AS cor0
----
49
49
49

skipif mysql # not compatible
query I rowsort label-5581
SELECT ALL CAST ( 49 AS INTEGER ) FROM tab2 AS cor0
----
49
49
49

query I rowsort
SELECT DISTINCT - - cor0.col1 + 46 AS col0 FROM tab2 cor0
----
105
63
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 + - 94 col2 FROM tab0 AS cor0
----
-180
-185
-191

query I rowsort
SELECT ALL ( - col0 ) * + col0 FROM tab2 AS cor0
----
-49
-6084
-6241

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5585
SELECT - CAST( col2 AS SIGNED ) * cor0.col0 + col0 AS col2 FROM tab2 AS cor0
----
-182
-1950
-2923

skipif mysql # not compatible
query I rowsort label-5585
SELECT - CAST ( col2 AS INTEGER ) * cor0.col0 + col0 AS col2 FROM tab2 AS cor0
----
-182
-1950
-2923

query I rowsort
SELECT ALL - ( 5 ) * - col1 AS col0 FROM tab1 AS cor0
----
130
50
65

query I rowsort
SELECT DISTINCT - ( - col0 ) * col2 FROM tab0 AS cor0
----
35
7298
792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 77 * col2 col0 FROM tab2 AS cor0
----
2002
2079
2926

query I rowsort
SELECT DISTINCT - col0 * - 73 + col2 + - col0 * - 64 AS col1 FROM tab0 AS cor0
----
12275
3321
4796

query I rowsort
SELECT + 46 * col2 AS col1 FROM tab2 AS cor0
----
1196
1242
1748

query I rowsort
SELECT - col0 * - col2 + cor0.col2 * 40 + - col2 FROM tab1 AS cor0
----
11424
2268
5871

query I rowsort
SELECT DISTINCT + ( 50 ) AS col2 FROM tab0 AS cor0
----
50

query I rowsort
SELECT DISTINCT 39 * cor0.col0 * col1 FROM tab2 AS cor0
----
179478
52377
8463

query I rowsort
SELECT ALL + 78 + col2 * col2 FROM tab0 AS cor0
----
1167
6802
79

query I rowsort
SELECT 79 * - col1 + col1 FROM tab0 cor0
----
-6708
-7098
-7566

query I rowsort
SELECT DISTINCT + 32 * + col1 FROM tab0 AS cor0
----
2752
2912
3104

query I rowsort
SELECT ( 46 ) + - col0 FROM tab2 AS cor0
----
-32
-33
39

query I rowsort
SELECT DISTINCT 22 * - col1 + col2 FROM tab0 AS cor0
----
-1859
-1920
-2133

onlyif mysql # use DIV operator for integer division
query I rowsort label-5599
SELECT col0 * col1 DIV col2 AS col0 FROM tab1 AS cor0
----
1
10
11

skipif mysql # not compatible
query I rowsort label-5599
SELECT col0 * col1 / col2 AS col0 FROM tab1 AS cor0
----
1
10
11

query I rowsort
SELECT ALL - col1 * - col0 + cor0.col2 + + col0 * 35 AS col0 FROM tab2 AS cor0
----
4146
489
7358

query I rowsort
SELECT + col1 + + 28 AS col2 FROM tab0 cor0
----
114
119
125

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5602
SELECT - col2 + CAST( NULL AS SIGNED ) * - 52 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5602
SELECT - col2 + CAST ( NULL AS INTEGER ) * - 52 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 13 col2 FROM tab0, tab0 AS cor0
----
9 values hashing to e95f5f4bd0f480397cced5f5e8a23792

query I rowsort
SELECT - - col2 * + col1 - - cor0.col0 * - col2 FROM tab0 AS cor0
----
164
2046
62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5605
SELECT + col2 + col1 * + CAST( + col2 + col0 AS SIGNED ) FROM tab1 AS cor0
----
1267
1536
2384

skipif mysql # not compatible
query I rowsort label-5605
SELECT + col2 + col1 * + CAST ( + col2 + col0 AS INTEGER ) FROM tab1 AS cor0
----
1267
1536
2384

query I rowsort
SELECT DISTINCT 47 * col0 + col2 * 45 AS col2 FROM tab1
----
2571
5573
8080

query I rowsort
SELECT + 33 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 620d384286e82d1c6c8b1b2b109a7da5

query I rowsort
SELECT ALL col1 + ( col0 ) FROM tab1
----
29
74
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * col1 + - col1 col2 FROM tab2
----
272
3422
930

onlyif mysql # use DIV operator for integer division
query I rowsort label-5610
SELECT - col0 + + tab0.col2 DIV col2 FROM tab0
----
-23
-34
-88

skipif mysql # not compatible
query I rowsort label-5610
SELECT - col0 + + tab0.col2 / col2 FROM tab0
----
-23
-34
-88

query I rowsort
SELECT + col2 + cor0.col2 * - ( col2 ) AS col0 FROM tab0 AS cor0
----
-1056
-6642
0

query I rowsort
SELECT col2 * - col0 + + ( + col1 ) * col0 AS col0 FROM tab1 AS cor0
----
-3008
-6640
-84

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5613
SELECT ALL - col2 / + col1 + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5613
SELECT ALL - col2 / + col1 + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 79 + col0 AS col0 FROM tab0 cor0
----
103
114
168

query I rowsort
SELECT DISTINCT + cor0.col1 - cor0.col2 FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT + 27 + cor0.col2 AS col1 FROM tab1 AS cor0
----
123
81
84

query I rowsort
SELECT ALL 59 * + cor0.col0 + + ( - col1 ) FROM tab0 AS cor0
----
1330
1968
5160

query I rowsort
SELECT DISTINCT - col1 - + col2 AS col0 FROM tab2 AS cor0
----
-55
-58
-85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 62 + cor0.col0 * col1 col1 FROM tab0 AS cor0
----
2126
3457
8161

query I rowsort
SELECT DISTINCT + - col1 - cor0.col2 * cor0.col2 AS col0 FROM tab1 AS cor0
----
-2942
-3259
-9229

query I rowsort
SELECT ALL ( + 57 ) + + cor0.col2 AS col1 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 44dc496aab6c7bc91c5af4967ffe3591

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5622
SELECT ALL + + col0 * - CAST( col1 AS SIGNED ) * - cor0.col0 FROM tab1 AS cor0
----
234
40960
83200

skipif mysql # not compatible
query I rowsort label-5622
SELECT ALL + + col0 * - CAST ( col1 AS INTEGER ) * - cor0.col0 FROM tab1 AS cor0
----
234
40960
83200

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + 81 col1 FROM tab0 AS cor0
----
-8
46
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-5624
SELECT ALL + ( + col0 ) DIV + 38 - - ( - col0 ) * - col2 AS col2 FROM tab0
----
35
7300
792

skipif mysql # not compatible
query I rowsort label-5624
SELECT ALL + ( + col0 ) / + 38 - - ( - col0 ) * - col2 AS col2 FROM tab0
----
35
7300
792

query I rowsort
SELECT 85 + tab2.col1 FROM tab2
----
102
116
144

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + col1 * col2 col0 FROM tab1 AS cor0
----
1344
1458
627

query I rowsort
SELECT - cor0.col0 * 76 * + 56 + + col2 FROM tab0 AS cor0
----
-102111
-148959
-378702

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col0 * ( + col0 ) col2 FROM tab2 AS cor0
----
-49
-6084
-6241

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5629
SELECT ALL + cor0.col2 * + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5629
SELECT ALL + cor0.col2 * + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 + col0 * ( col2 ) FROM tab0 AS cor0
----
36
7380
825

query I rowsort
SELECT ALL + cor0.col1 + + cor1.col0 AS col2 FROM tab2, tab2 cor0 CROSS JOIN tab1, tab0 cor1, tab1 AS cor2, tab0 AS cor3
----
729 values hashing to 8c5ff645c410040352a9a0562a761a2b

query I rowsort
SELECT + + ( col2 ) * cor0.col1 AS col1 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT ( 60 ) AS col2 FROM tab0 AS cor0
----
60
60
60

query I rowsort
SELECT + + col2 + - cor0.col2 AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - col1 * col0 + cor0.col1 AS col0 FROM tab0 AS cor0
----
-1978
-3298
-8008

query I rowsort
SELECT + col1 * - col0 + - 92 * - 18 FROM tab2 AS cor0
----
-2946
1439
313

onlyif mysql # use DIV operator for integer division
query I rowsort label-5637
SELECT - 72 DIV + col2 FROM tab0 AS cor0
----
-2
-72
0

skipif mysql # not compatible
query I rowsort label-5637
SELECT - 72 / + col2 FROM tab0 AS cor0
----
-2
-72
0

query I rowsort
SELECT DISTINCT tab0.col0 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
24
35
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * 3 - ( col2 ) col0 FROM tab0
----
164
2
66

query I rowsort
SELECT col1 - 22 FROM tab1
----
-12
-9
4

query I rowsort
SELECT + 16 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to ee5bde9f68ee828e8cd86b0d590090bc

query I rowsort
SELECT ALL - col2 + + ( col0 ) AS col2 FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT DISTINCT - ( + cor0.col0 ) + - col0 FROM tab2 AS cor0
----
-14
-156
-158

query I rowsort
SELECT - col0 * 0 AS col2 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - 64 * - cor0.col2 FROM tab1 AS cor0
----
3456
3648
6144

onlyif mysql # use DIV operator for integer division
query I rowsort label-5646
SELECT - - 17 DIV - 35 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5646
SELECT - - 17 / - 35 AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT 61 * col2 AS col0 FROM tab0
----
2013
5002
61

query I rowsort
SELECT ALL 53 * tab0.col1 FROM tab0
----
4558
4823
5141

query I rowsort
SELECT DISTINCT + ( + ( col2 ) ) AS col2 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT + 76 * + ( - col1 ) FROM tab1 AS cor0
----
-1976
-760
-988

query I rowsort
SELECT - - cor0.col2 * ( col0 ) AS col0 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT ALL - 37 * 3 FROM tab1 AS cor0
----
-111
-111
-111

query I rowsort
SELECT ALL + col2 * col2 * col1 AS col1 FROM tab1 AS cor0
----
119808
32490
75816

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col1 * 95 col1 FROM tab2 AS cor0
----
-1615
-2945
-5605

query I rowsort
SELECT DISTINCT + + col2 - + col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT col2 + cor0.col0 * col2 + - 4 FROM tab2 AS cor0
----
2050
212
3036

query I rowsort
SELECT ALL + 50 * - col1 - col1 * 8 FROM tab0 cor0
----
-4988
-5278
-5626

onlyif mysql # use DIV operator for integer division
query I rowsort label-5658
SELECT - + col1 * col1 + + ( + col1 ) DIV col2 AS col1 FROM tab0 AS cor0
----
-7394
-8280
-9312

skipif mysql # not compatible
query I rowsort label-5658
SELECT - + col1 * col1 + + ( + col1 ) / col2 AS col1 FROM tab0 AS cor0
----
-7394
-8280
-9312

onlyif mysql # use DIV operator for integer division
query I rowsort label-5659
SELECT - - 72 DIV 96 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-5659
SELECT - - 72 / 96 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT col2 + col2 * + col0 * + col0 AS col0 FROM tab2 cor0
----
1350
158210
237196

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 7 col1 FROM tab0 AS cor0
----
-7
-7
-7

onlyif mysql # use DIV operator for integer division
query I rowsort label-5662
SELECT ALL - + col0 + - col2 DIV + col1 + col2 DIV cor0.col0 AS col1 FROM tab2 AS cor0
----
-4
-78
-81

skipif mysql # not compatible
query I rowsort label-5662
SELECT ALL - + col0 + - col2 / + col1 + col2 / cor0.col0 AS col1 FROM tab2 AS cor0
----
-4
-78
-81

query I rowsort
SELECT - - col1 + - col1 * col0 + col2 * col0 FROM tab0 AS cor0
----
-1186
-3263
-710

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 12 col1 FROM tab0 AS cor0
----
12
12
12

query I rowsort
SELECT ALL 70 * col1 + + col1 AS col1 FROM tab0 cor0
----
6106
6461
6887

query I rowsort
SELECT + col1 + cor0.col2 + col2 FROM tab0 AS cor0
----
152
255
99

query I rowsort
SELECT + - cor0.col2 + + col1 + ( + col0 + cor0.col0 ) AS col1 FROM tab2 AS cor0
----
137
18
189

onlyif mysql # use DIV operator for integer division
query I rowsort label-5668
SELECT DISTINCT + + 67 DIV - col0 AS col1 FROM tab0 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-5668
SELECT DISTINCT + + 67 / - col0 AS col1 FROM tab0 AS cor0
----
-1
-2
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5669
SELECT - 65 * col1 + - 83 + 91 DIV - col2 FROM tab0 AS cor0
----
-5675
-5999
-6479

skipif mysql # not compatible
query I rowsort label-5669
SELECT - 65 * col1 + - 83 + 91 / - col2 FROM tab0 AS cor0
----
-5675
-5999
-6479

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5670
SELECT DISTINCT + + col0 * - CAST( cor0.col0 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-49
-6084
-6241

skipif mysql # not compatible
query I rowsort label-5670
SELECT DISTINCT + + col0 * - CAST ( cor0.col0 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-49
-6084
-6241

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5671
SELECT col2 * CAST( + col1 * col2 AS SIGNED ) FROM tab0 AS cor0
----
611884
93654
97

skipif mysql # not compatible
query I rowsort label-5671
SELECT col2 * CAST ( + col1 * col2 AS INTEGER ) FROM tab0 AS cor0
----
611884
93654
97

query I rowsort
SELECT + col0 + col0 * col2 * col2 + col1 AS col1 FROM tab1 AS cor0
----
208010
737373
8777

onlyif mysql # use DIV operator for integer division
query I rowsort label-5673
SELECT DISTINCT - col1 DIV col1 + - col2 DIV + col0 FROM tab0 AS cor0
----
-1
-2

skipif mysql # not compatible
query I rowsort label-5673
SELECT DISTINCT - col1 / col1 + - col2 / + col0 FROM tab0 AS cor0
----
-1
-2

query I rowsort
SELECT - col2 * - col2 + col2 * - col1 AS col2 FROM tab0 AS cor0
----
-1749
-738
-96

query I rowsort
SELECT + - col1 * - 27 + col0 + col2 FROM tab1 AS cor0
----
391
527
759

onlyif mysql # use DIV operator for integer division
query I rowsort label-5676
SELECT DISTINCT + col0 * + col2 + col2 DIV col1 FROM tab0 AS cor0
----
35
7298
792

skipif mysql # not compatible
query I rowsort label-5676
SELECT DISTINCT + col0 * + col2 + col2 / col1 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT ALL + 27 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8

onlyif mysql # use DIV operator for integer division
query I rowsort label-5678
SELECT col2 DIV 51 + 0 AS col2 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5678
SELECT col2 / 51 + 0 AS col2 FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT col0 * col1 + ( col2 ) FROM tab0 AS cor0
----
2097
3396
8181

onlyif mysql # use DIV operator for integer division
query I rowsort label-5680
SELECT DISTINCT + col0 DIV col1 + col0 DIV + col0 - col2 * + col1 * - col1 AS col1 FROM tab0 AS cor0
----
244069
679043
9410

skipif mysql # not compatible
query I rowsort label-5680
SELECT DISTINCT + col0 / col1 + col0 / + col0 - col2 * + col1 * - col1 AS col1 FROM tab0 AS cor0
----
244069
679043
9410

query I rowsort
SELECT + col0 + - 74 AS col2 FROM tab2 AS cor0
----
-67
4
5

query I rowsort
SELECT DISTINCT + col0 + - cor0.col1 AS col2 FROM tab2 AS cor0
----
-24
19
62

query I rowsort
SELECT + - cor0.col0 * col1 * - col2 + - col2 AS col2 FROM tab1 AS cor0
----
36423
4158
99744

onlyif mysql # use DIV operator for integer division
query I rowsort label-5684
SELECT - cor0.col2 DIV - 24 + - 33 FROM tab1 AS cor0
----
-29
-31
-31

skipif mysql # not compatible
query I rowsort label-5684
SELECT - cor0.col2 / - 24 + - 33 FROM tab1 AS cor0
----
-29
-31
-31

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5685
SELECT DISTINCT + col1 * + CAST( NULL AS DECIMAL ) + 86 AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5685
SELECT DISTINCT + col1 * + CAST ( NULL AS REAL ) + 86 AS col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5686
SELECT DISTINCT + + col1 + - 38 DIV ( col0 ) FROM tab2 AS cor0
----
17
26
59

skipif mysql # not compatible
query I rowsort label-5686
SELECT DISTINCT + + col1 + - 38 / ( col0 ) FROM tab2 AS cor0
----
17
26
59

query I rowsort
SELECT DISTINCT col1 * - ( 56 ) + col1 AS col2 FROM tab2 AS cor0
----
-1705
-3245
-935

query I rowsort
SELECT DISTINCT - cor0.col0 + col0 * + col1 AS col1 FROM tab2 cor0
----
1264
210
4524

query I rowsort
SELECT ALL tab2.col1 + tab2.col1 * ( col1 ) FROM tab2
----
306
3540
992

query I rowsort
SELECT DISTINCT + col1 * col1 + + col0 AS col2 FROM tab0
----
7420
8370
9444

query I rowsort
SELECT - col2 * - col2 + + col0 * col1 + + cor0.col0 AS col1 FROM tab2 cor0
----
2866
5356
953

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5692
SELECT cor0.col1 + - CAST( + cor0.col1 + cor0.col2 AS SIGNED ) FROM tab0 AS cor0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-5692
SELECT cor0.col1 + - CAST ( + cor0.col1 + cor0.col2 AS INTEGER ) FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT + + cor0.col0 + 14 AS col2 FROM tab1 AS cor0
----
17
78
94

query I rowsort
SELECT - cor1.col2 - - 91 * cor0.col2 AS col1 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 97d99b31d00d043c44ef1172cbff39ed

query I rowsort
SELECT col2 * col1 + - col0 * + cor0.col1 AS col0 FROM tab1 AS cor0
----
-70
1326
208

query I rowsort
SELECT + + 17 AS col1 FROM tab0 AS cor0
----
17
17
17

query I rowsort
SELECT DISTINCT - 49 + 41 FROM tab2 AS cor0 CROSS JOIN tab0, tab2 AS cor1
----
-8

query I rowsort
SELECT 46 AS col0 FROM tab1 cor0
----
46
46
46

query I rowsort
SELECT DISTINCT + ( col1 ) + - col2 AS col2 FROM tab0
----
53
9
96

query I rowsort
SELECT 98 * - col1 AS col2 FROM tab2
----
-1666
-3038
-5782

query I rowsort
SELECT col1 * col0 + col0 + + col1 FROM tab2
----
1439
255
4739

query I rowsort
SELECT ALL - cor0.col1 * + col1 - + col2 AS col0 FROM tab2 AS cor0
----
-327
-3507
-988

query I rowsort
SELECT cor0.col0 + + 79 * + 6 - cor0.col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 44685bceb1cade8b7f023ed435064c81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 84 col0 FROM tab2 AS cor0
----
-84

query I rowsort
SELECT DISTINCT - ( + col0 ) * col1 + + col1 AS col2 FROM tab2
----
-1326
-186
-4543

query I rowsort
SELECT 15 * + col1 AS col2 FROM tab1
----
150
195
390

query I rowsort
SELECT - col0 * col0 - - 11 FROM tab2 AS cor0
----
-38
-6073
-6230

onlyif mysql # use DIV operator for integer division
query I rowsort label-5708
SELECT col1 * 10 - col2 DIV 67 AS col2 FROM tab1 cor0
----
100
129
260

skipif mysql # not compatible
query I rowsort label-5708
SELECT col1 * 10 - col2 / 67 AS col2 FROM tab1 cor0
----
100
129
260

query I rowsort
SELECT - + 59 + col0 AS col1 FROM tab1 cor0
----
-56
21
5

query I rowsort
SELECT - ( col2 + col1 ) FROM tab1
----
-109
-67
-80

query I rowsort
SELECT + - ( + col2 ) * col0 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT + col2 * col0 * - 63 AS col1 FROM tab1
----
-10206
-229824
-483840

query I rowsort
SELECT DISTINCT 98 + - col1 + col0 * + tab0.col2 FROM tab0
----
36
7305
804

query I rowsort
SELECT DISTINCT + 22 + col0 AS col0 FROM tab1
----
102
25
86

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5715
SELECT ALL col1 * - col0 + + col0 * - col1 + CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5715
SELECT ALL col1 * - col0 + + col0 * - col1 + CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 82 * - ( cor0.col0 ) AS col1 FROM tab1, tab2 AS cor0
----
574
6396
6478

query I rowsort
SELECT ALL col2 * col2 + + col2 * col2 FROM tab2 AS cor0
----
1352
1458
2888

query I rowsort
SELECT - 24 * cor0.col0 + + col1 AS col0 FROM tab1 AS cor0
----
-1526
-1907
-46

query I rowsort
SELECT cor0.col1 + cor0.col1 * + cor0.col2 AS col0 FROM tab2 AS cor0
----
1593
663
868

query I rowsort
SELECT - - ( cor0.col1 ) + col2 + col1 FROM tab0 AS cor0
----
195
205
264

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col0 + col0 * col2 col0 FROM tab1 AS cor0
----
14080
171
7744

query I rowsort
SELECT + ( + col1 ) * col0 + col0 + + col1 FROM tab0 AS cor0
----
2174
3527
8279

query I rowsort
SELECT DISTINCT + col1 * 6 * - tab2.col1 FROM tab2
----
-1734
-20886
-5766

query I rowsort
SELECT ALL - col1 * ( 88 ) + col1 * - 99 + - 19 FROM tab0
----
-16101
-17036
-18158

onlyif mysql # use DIV operator for integer division
query I rowsort label-5725
SELECT + col1 DIV CAST( - col2 + col0 AS SIGNED ) AS col2 FROM tab2
----
-1
0
1

skipif mysql # not compatible
query I rowsort label-5725
SELECT + col1 / CAST ( - col2 + col0 AS INTEGER ) AS col2 FROM tab2
----
-1
0
1

query I rowsort
SELECT ALL - col0 + col0 + col0 FROM tab1
----
3
64
80

query I rowsort
SELECT col1 * 51 FROM tab0
----
4386
4641
4947

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5728
SELECT DISTINCT - CAST( NULL AS DECIMAL ) col0 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5728
SELECT DISTINCT - CAST ( NULL AS REAL ) col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - cor0.col0 * - col1 * col0 - col1 FROM tab0 AS cor0
----
118728
49450
720720

query I rowsort
SELECT ALL - 49 * + 27 FROM tab0 cor0
----
-1323
-1323
-1323

query I rowsort
SELECT DISTINCT + 53 * + col0 AS col1 FROM tab2 AS cor0
----
371
4134
4187

query I rowsort
SELECT + cor0.col1 + tab2.col1 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 92e3b258bb05c688aeabd5d16aba9daf

query I rowsort
SELECT DISTINCT + col2 - - col1 * - col0 * - ( + col0 ) FROM tab1
----
288
41017
83296

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5734
SELECT ALL col1 - ( + col1 * CAST( NULL AS SIGNED ) ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5734
SELECT ALL col1 - ( + col1 * CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 95 + col2 AS col0 FROM tab1 AS cor0
----
149
152
191

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 - col0 col0 FROM tab0 AS cor0
----
2
62
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-5737
SELECT ALL + ( + col0 ) DIV - col1 + 60 AS col2 FROM tab2 AS cor0
----
56
59
60

skipif mysql # not compatible
query I rowsort label-5737
SELECT ALL + ( + col0 ) / - col1 + 60 AS col2 FROM tab2 AS cor0
----
56
59
60

query I rowsort
SELECT DISTINCT + col1 * col0 + + col2 + - col1 * + col1 FROM tab0 cor0
----
-100
-5299
-6013

query I rowsort
SELECT - + 48 + col1 AS col0 FROM tab1 cor0
----
-22
-35
-38

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5740
SELECT DISTINCT CAST( + 53 AS SIGNED ) FROM tab1
----
53

skipif mysql # not compatible
query I rowsort label-5740
SELECT DISTINCT CAST ( + 53 AS INTEGER ) FROM tab1
----
53

query I rowsort
SELECT ALL - ( col2 ) - - col1 FROM tab0
----
53
9
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5742
SELECT ALL - CAST( NULL AS SIGNED ) * col2 - - col1 * col1 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5742
SELECT ALL - CAST ( NULL AS INTEGER ) * col2 - - col1 * col1 AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col2 - tab1.col1 * col0 FROM tab1
----
-24
-583
-944

query I rowsort
SELECT ALL + 41 - + col1 * + col0 AS col1 FROM tab2
----
-1302
-176
-4561

query I rowsort
SELECT ALL col0 - + col2 * col2 * col1 AS col2 FROM tab2
----
-22592
-24469
-39806

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 49 * + col2 * - col2 col0 FROM tab0
----
329476
49
53361

query I rowsort
SELECT DISTINCT + + cor0.col0 * - 10 * - col0 - col1 FROM tab2 AS cor0
----
459
60781
62393

query I rowsort
SELECT ALL - - col1 * 54 AS col0 FROM tab2 cor0
----
1674
3186
918

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5749
SELECT DISTINCT cor0.col1 * CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5749
SELECT DISTINCT cor0.col1 * CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - 94 * col0 * col2 AS col2 FROM tab2
----
-17766
-190632
-282188

query I rowsort
SELECT - col0 + + 43 FROM tab2 AS cor0
----
-35
-36
36

query I rowsort
SELECT col2 + 79 AS col1 FROM tab2 cor0
----
105
106
117

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - col1 ) col1 FROM tab0 cor0
----
-86
-91
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-5754
SELECT ALL - 90 DIV ( - tab0.col1 ) AS col1 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5754
SELECT ALL - 90 / ( - tab0.col1 ) AS col1 FROM tab0
----
0
0
1

query I rowsort
SELECT - 85 - - col2 AS col1 FROM tab0
----
-3
-52
-84

query I rowsort
SELECT + 69 + - col0 AS col1 FROM tab2 AS cor0
----
-10
-9
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 67 * + col2 col2 FROM tab1 AS cor0
----
-3618
-3819
-6432

query I rowsort
SELECT DISTINCT + cor0.col0 + - cor0.col1 * col2 * col0 AS col0 FROM tab0 AS cor0
----
-3360
-664029
-68088

query I rowsort
SELECT col0 * + col0 + - col0 * - col0 FROM tab0
----
1152
15842
2450

query I rowsort
SELECT - 26 + + col0 AS col2 FROM tab1
----
-23
38
54

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5761
SELECT ( 10 ) * col2 + CAST( col1 AS SIGNED ) AS col2 FROM tab0
----
107
416
911

skipif mysql # not compatible
query I rowsort label-5761
SELECT ( 10 ) * col2 + CAST ( col1 AS INTEGER ) AS col2 FROM tab0
----
107
416
911

onlyif mysql # use DIV operator for integer division
query I rowsort label-5762
SELECT ALL + ( tab1.col1 ) DIV + col0 + + col0 + - col2 AS col1 FROM tab1
----
-16
-43
7

skipif mysql # not compatible
query I rowsort label-5762
SELECT ALL + ( tab1.col1 ) / + col0 + + col0 + - col2 AS col1 FROM tab1
----
-16
-43
7

query I rowsort
SELECT DISTINCT ( - 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 - ( - 97 ) + col1 + 14 * 83 col1 FROM tab2
----
1276
1290
1318

onlyif mysql # use DIV operator for integer division
query I rowsort label-5765
SELECT DISTINCT + 43 * 7 + col0 * 75 DIV 64 AS col2 FROM tab2
----
309
392
393

skipif mysql # not compatible
query I rowsort label-5765
SELECT DISTINCT + 43 * 7 + col0 * 75 / 64 AS col2 FROM tab2
----
309
392
393

query I rowsort
SELECT - tab0.col0 * col1 - + col1 AS col2 FROM tab0
----
-2150
-3492
-8190

query I rowsort
SELECT col1 + + col0 + col2 AS col0 FROM tab1
----
131
189
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-5768
SELECT DISTINCT col1 DIV + col0 + col2 FROM tab1
----
57
62
96

skipif mysql # not compatible
query I rowsort label-5768
SELECT DISTINCT col1 / + col0 + col2 FROM tab1
----
57
62
96

query I rowsort
SELECT col0 + - col2 * + 9 AS col2 FROM tab2
----
-156
-236
-263

query I rowsort
SELECT DISTINCT ( + col1 + + 48 ) FROM tab0
----
134
139
145

query I rowsort
SELECT DISTINCT col0 * - col1 - col2 FROM tab0 AS cor0
----
-2097
-3396
-8181

query I rowsort
SELECT 8 + cor0.col2 FROM tab1 AS cor0
----
104
62
65

query I rowsort
SELECT ALL col0 * col1 + 7 * - col2 AS col2 FROM tab2 AS cor0
----
1077
28
4420

query I rowsort
SELECT ALL + 60 * + col1 AS col0 FROM tab1 AS cor0
----
1560
600
780

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + col1 + + col1 * - 80 col0 FROM tab2 AS cor0
----
-1326
-2418
-4602

query I rowsort
SELECT ALL 92 + col0 * + col0 FROM tab2 AS cor0
----
141
6176
6333

query I rowsort
SELECT ALL cor0.col1 + + col1 + cor0.col1 FROM tab1 AS cor0
----
30
39
78

query I rowsort
SELECT ALL + col0 * + col1 + - col1 * ( + col1 ) - col1 * - col0 AS col0 FROM tab1 AS cor0
----
-520
1180
1911

query I rowsort
SELECT DISTINCT + col2 + + col0 - col0 AS col2 FROM tab0
----
1
33
82

query I rowsort
SELECT DISTINCT - col1 - + 42 AS col2 FROM tab1
----
-52
-55
-68

query I rowsort
SELECT DISTINCT cor0.col0 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2, tab2 cor1, tab0 AS cor2
----
24
35
89

query I rowsort
SELECT DISTINCT + col1 * - ( col2 ) + + col1 * col2 * ( col2 ) - col0 * - col1 FROM tab1
----
119600
32560
74490

query I rowsort
SELECT + - col0 * ( + col1 + col1 ) FROM tab0 AS cor0
----
-16198
-4128
-6790

query I rowsort
SELECT col1 * - ( - 66 ) FROM tab1 cor0
----
1716
660
858

onlyif mysql # use DIV operator for integer division
query I rowsort label-5785
SELECT tab0.col0 DIV + ( + col2 * col1 ) FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5785
SELECT tab0.col0 / + ( + col2 * col1 ) FROM tab0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 * - 11 col2 FROM tab1 AS cor0
----
1056
594
627

query I rowsort
SELECT DISTINCT + cor0.col2 + - col2 * - col1 * 96 FROM tab1 AS cor0
----
119904
134838
54777

query I rowsort
SELECT 13 + + col0 * col1 FROM tab0 AS cor0
----
2077
3408
8112

query I rowsort
SELECT + ( 91 ) * + col1 + col1 FROM tab0 cor0
----
7912
8372
8924

query I rowsort
SELECT DISTINCT - col1 * tab0.col0 * + tab0.col2 + ( tab0.col1 ) FROM tab0
----
-3298
-664027
-68026

query I rowsort
SELECT - 67 * col1 FROM tab0
----
-5762
-6097
-6499

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5792
SELECT - CAST( NULL AS SIGNED ) * 45 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5792
SELECT - CAST ( NULL AS INTEGER ) * 45 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + ( + 56 ) + - col1 FROM tab2
----
-3
25
39

query I rowsort
SELECT ALL + ( 2 ) * + col1 AS col2 FROM tab1 AS cor0
----
20
26
52

query I rowsort
SELECT + 27 * col2 + + col1 AS col2 FROM tab2 AS cor0
----
1043
760
761

query I rowsort
SELECT DISTINCT + tab2.col0 * + 10 AS col0 FROM tab2
----
70
780
790

onlyif mysql # use DIV operator for integer division
query I rowsort label-5797
SELECT + 35 DIV 83 FROM tab1, tab2 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-5797
SELECT + 35 / 83 FROM tab1, tab2 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 * col2 + - cor0.col1 col1 FROM tab2 AS cor0
----
-1461
-735
-760

query I rowsort
SELECT DISTINCT - - ( 34 ) FROM tab0 cor0
----
34

query I rowsort
SELECT - 76 * tab1.col1 FROM tab1, tab2 AS cor0
----
9 values hashing to cf54b8ad2780dcc5b5c8c3b684197214

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5801
SELECT ALL CAST( - col0 * + col2 AS SIGNED ) + - tab2.col0 FROM tab2
----
-196
-2106
-3081

skipif mysql # not compatible
query I rowsort label-5801
SELECT ALL CAST ( - col0 * + col2 AS INTEGER ) + - tab2.col0 FROM tab2
----
-196
-2106
-3081

query I rowsort
SELECT DISTINCT 47 * col1 AS col1 FROM tab0 cor0
----
4042
4277
4559

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5803
SELECT + CAST( NULL AS SIGNED ) / col2 col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5803
SELECT + CAST ( NULL AS INTEGER ) / col2 col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col1 * + col0 + - col2 col0 FROM tab2 AS cor0
----
-1381
-244
-4628

query I rowsort
SELECT + col2 * col1 * + col1 - col1 AS col0 FROM tab0 AS cor0
----
243982
678951
9312

query I rowsort
SELECT - - 70 * col2 - + col0 AS col1 FROM tab2 AS cor0
----
1742
1883
2581

query I rowsort
SELECT ALL 7 + + col1 * + col1 FROM tab2 AS cor0
----
296
3488
968

query I rowsort
SELECT - 76 + col2 * + col2 + - col2 AS col0 FROM tab0 cor0
----
-76
6566
980

onlyif mysql # use DIV operator for integer division
query I rowsort label-5809
SELECT DISTINCT - CAST( - col2 AS SIGNED ) + col1 DIV + col0 FROM tab0 AS cor0
----
3
36
83

skipif mysql # not compatible
query I rowsort label-5809
SELECT DISTINCT - CAST ( - col2 AS INTEGER ) + col1 / + col0 FROM tab0 AS cor0
----
3
36
83

query I rowsort
SELECT ALL - col2 + - col2 AS col1 FROM tab0 cor0
----
-164
-2
-66

onlyif mysql # use DIV operator for integer division
query I rowsort label-5811
SELECT + 11 DIV 39 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5811
SELECT + 11 / 39 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT + + 79 * 79 * col2 FROM tab0 AS cor0
----
205953
511762
6241

query I rowsort
SELECT + 80 * + col1 + + col0 * col2 AS col0 FROM tab0 AS cor0
----
14578
7672
7795

query I rowsort
SELECT - - col1 + - col0 + + col2 AS col2 FROM tab0 AS cor0
----
63
84
95

query I rowsort
SELECT ALL - 80 + + 96 + + tab0.col0 AS col0 FROM tab0
----
105
40
51

query I rowsort
SELECT - + col1 + - col2 * - col0 FROM tab0 AS cor0
----
-62
706
7207

onlyif mysql # use DIV operator for integer division
query I rowsort label-5817
SELECT - + col1 + - col2 DIV + col2 col2 FROM tab0 AS cor0
----
-87
-92
-98

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5817
SELECT - + col1 + - col2 / + col2 col2 FROM tab0 AS cor0
----
-87
-92
-98

query I rowsort
SELECT + ( + 94 ) + - col1 + col0 * col1 FROM tab2
----
1420
280
4637

onlyif mysql # use DIV operator for integer division
query I rowsort label-5819
SELECT ALL + col0 * col1 DIV col2 - - col1 * col2 AS col1 FROM tab0 AS cor0
----
2900
3492
7560

skipif mysql # not compatible
query I rowsort label-5819
SELECT ALL + col0 * col1 / col2 - - col1 * col2 AS col1 FROM tab0 AS cor0
----
2900
3492
7560

query I rowsort
SELECT ALL + - cor0.col1 * ( - ( + cor0.col2 ) ) + + col2 * 49 * col1 - + cor0.col2 FROM tab2 AS cor0
----
32262
41823
76674

onlyif mysql # use DIV operator for integer division
query I rowsort label-5821
SELECT DISTINCT + col2 DIV - col1 + - col2 * - cor0.col2 + col1 FROM tab2 AS cor0
----
1459
735
760

skipif mysql # not compatible
query I rowsort label-5821
SELECT DISTINCT + col2 / - col1 + - col2 * - cor0.col2 + col1 FROM tab2 AS cor0
----
1459
735
760

onlyif mysql # use DIV operator for integer division
query I rowsort label-5822
SELECT ALL cor0.col2 DIV + col0 col1 FROM tab2 AS cor0
----
0
0
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5822
SELECT ALL cor0.col2 / + col0 col1 FROM tab2 AS cor0
----
0
0
3

query I rowsort
SELECT - col1 * + 87 AS col1 FROM tab1 AS cor0
----
-1131
-2262
-870

onlyif mysql # use DIV operator for integer division
query I rowsort label-5824
SELECT ALL + col2 + col1 * cor0.col1 DIV col0 FROM tab0 AS cor0
----
175
269
341

skipif mysql # not compatible
query I rowsort label-5824
SELECT ALL + col2 + col1 * cor0.col1 / col0 FROM tab0 AS cor0
----
175
269
341

query I rowsort
SELECT DISTINCT - + col2 + ( + col0 ) AS col0 FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT ALL + col2 + cor0.col0 AS col2 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT ALL col2 * + ( col2 ) AS col2 FROM tab2
----
1444
676
729

query I rowsort
SELECT DISTINCT ( - cor0.col1 * cor0.col2 ) AS col2 FROM tab1, tab1 AS cor0
----
-1248
-1404
-570

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5829
SELECT DISTINCT - tab1.col0 - + CAST( NULL AS DECIMAL ) / + 31 AS col2 FROM tab1, tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5829
SELECT DISTINCT - tab1.col0 - + CAST ( NULL AS REAL ) / + 31 AS col2 FROM tab1, tab0 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5830
SELECT ALL + 36 DIV + cor0.col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5830
SELECT ALL + 36 / + cor0.col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT col1 * 94 * ( - col0 ) AS col1 FROM tab0 AS cor0
----
-194016
-319130
-761306

query I rowsort
SELECT 3 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba

query I rowsort
SELECT ( - col0 + col0 ) FROM tab0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5834
SELECT DISTINCT - CAST( NULL AS SIGNED ) * col0 AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5834
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * col0 AS col2 FROM tab2
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5835
SELECT 42 * - col0 DIV col0 + 34 DIV tab2.col1 FROM tab2
----
-40
-41
-42

skipif mysql # not compatible
query I rowsort label-5835
SELECT 42 * - col0 / col0 + 34 / tab2.col1 FROM tab2
----
-40
-41
-42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * 95 col2 FROM tab0
----
2280
3325
8455

onlyif mysql # use DIV operator for integer division
query I rowsort label-5837
SELECT DISTINCT col0 DIV - col1 col1 FROM tab0 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5837
SELECT DISTINCT col0 / - col1 col1 FROM tab0 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 55 + 57 col0 FROM tab0 AS cor0
----
112
112
112

query I rowsort
SELECT ALL - cor0.col0 + + cor0.col0 AS col2 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5840
SELECT - + cor0.col2 DIV col0 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-5840
SELECT - + cor0.col2 / col0 FROM tab0 AS cor0
----
-1
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5841
SELECT - - col1 + + col0 DIV + 8 FROM tab1 AS cor0
----
18
23
26

skipif mysql # not compatible
query I rowsort label-5841
SELECT - - col1 + + col0 / + 8 FROM tab1 AS cor0
----
18
23
26

query I rowsort
SELECT - - 55 + - col1 AS col2 FROM tab1 AS cor0
----
29
42
45

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5843
SELECT DISTINCT - cor0.col0 * - col0 + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5843
SELECT DISTINCT - cor0.col0 * - col0 + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * 67 * col0 col1 FROM tab0
----
-38592
-530707
-82075

query I rowsort
SELECT ALL 19 * 72 AS col2 FROM tab1
----
1368
1368
1368

query I rowsort
SELECT 11 + + col1 FROM tab0
----
102
108
97

query I rowsort
SELECT ALL 6 * - col2 AS col2 FROM tab0 cor0
----
-198
-492
-6

onlyif mysql # use DIV operator for integer division
query I rowsort label-5848
SELECT ALL cor0.col0 DIV - ( - col2 * - cor0.col0 ) + col1 * col2 DIV col1 AS col0 FROM tab0 AS cor0
----
0
33
82

skipif mysql # not compatible
query I rowsort label-5848
SELECT ALL cor0.col0 / - ( - col2 * - cor0.col0 ) + col1 * col2 / col1 AS col0 FROM tab0 AS cor0
----
0
33
82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5849
SELECT ALL - col0 * CAST( + col0 AS SIGNED ) + col0 AS col1 FROM tab0 AS cor0
----
-1190
-552
-7832

skipif mysql # not compatible
query I rowsort label-5849
SELECT ALL - col0 * CAST ( + col0 AS INTEGER ) + col0 AS col1 FROM tab0 AS cor0
----
-1190
-552
-7832

query I rowsort
SELECT DISTINCT + 85 AS col0 FROM tab2, tab1, tab0 AS cor0
----
85

query I rowsort
SELECT DISTINCT ( col0 ) * + col2 * - col1 AS col1 FROM tab2
----
-119652
-51034
-5859

query I rowsort
SELECT + col1 * + col0 + col0 * col0 * - col1 FROM tab2
----
-104754
-1302
-354354

query I rowsort
SELECT 32 + + col1 FROM tab2
----
49
63
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - col0 * - col2 + col1 col0 FROM tab0
----
-1128
-18922
-649431

query I rowsort
SELECT - + col1 + + col1 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 89 * + cor0.col0 * col2 col2 FROM tab2 AS cor0
----
16821
180492
267178

query I rowsort
SELECT col1 * 48 AS col2 FROM tab1
----
1248
480
624

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 42 * - col1 col1 FROM tab1 AS cor0
----
1092
420
546

query I rowsort
SELECT ALL - + 81 + - col0 AS col0 FROM tab1 AS cor0
----
-145
-161
-84

query I rowsort
SELECT ALL col1 + - 0 FROM tab2 AS cor0
----
17
31
59

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5861
SELECT CAST( cor0.col1 AS SIGNED ) AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775

skipif mysql # not compatible
query I rowsort label-5861
SELECT CAST ( cor0.col1 AS INTEGER ) AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 94 + col0 col0 FROM tab2 AS cor0
----
101
172
173

query I rowsort
SELECT DISTINCT + 76 AS col2 FROM tab0, tab1 cor0, tab1, tab0 AS cor1
----
76

query I rowsort
SELECT ALL + 45 AS col1 FROM tab0, tab2 AS cor0 CROSS JOIN tab2
----
27 values hashing to 14cec871edc37b5056cda01c8331fdca

query I rowsort
SELECT - - 4 AS col2 FROM tab0 AS cor0
----
4
4
4

query I rowsort
SELECT - col1 * - col0 * col1 + - col0 FROM tab1 AS cor0
----
13440
2025
6336

query I rowsort
SELECT ALL + + ( cor0.col0 ) AS col1 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT DISTINCT + ( 44 ) FROM tab0, tab0 AS cor0, tab0 AS cor1, tab2 AS cor2
----
44

query I rowsort
SELECT DISTINCT - col1 * - 31 FROM tab1 AS cor0
----
310
403
806

query I rowsort
SELECT + ( col2 ) + + cor0.col1 AS col0 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT ( - 39 ) * + col0 + tab1.col1 FROM tab1
----
-2486
-3107
-91

query I rowsort
SELECT DISTINCT ( - ( + col0 ) ) + col2 + - tab1.col0 FROM tab1
----
-64
-71
48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab2.col2 * col2 + - col1 * + col2 col0 FROM tab2
----
-1566
-2090
-2210

query I rowsort
SELECT ALL - - ( cor0.col1 ) + col2 AS col2 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT DISTINCT - ( col0 ) * + col1 AS col0 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT - col2 * ( - col2 ) + 16 + col1 AS col2 FROM tab0 AS cor0
----
114
1191
6831

query I rowsort
SELECT DISTINCT - 58 * col1 AS col2 FROM tab0 AS cor0
----
-4988
-5278
-5626

query I rowsort
SELECT + - col1 + - 82 + col1 FROM tab0 AS cor0
----
-82
-82
-82

query I rowsort
SELECT col0 * + col2 + - col2 AS col2 FROM tab0 AS cor0
----
34
7216
759

query I rowsort
SELECT + tab1.col2 - 11 AS col1 FROM tab1
----
43
46
85

query I rowsort
SELECT 62 * cor0.col1 + - col0 * col1 + col1 * ( - 22 ) FROM tab1 AS cor0
----
-240
-520
962

query I rowsort
SELECT ALL + 90 AS col0 FROM tab2 cor0
----
90
90
90

query I rowsort
SELECT + + col0 + col1 + + cor0.col0 * - col1 AS col2 FROM tab2 AS cor0
----
-1247
-179
-4465

query I rowsort
SELECT - - 58 + - col2 * + 59 + + col1 * col0 AS col1 FROM tab0 cor0
----
175
3319
3394

query I rowsort
SELECT DISTINCT + col1 * col0 + + col1 + col1 * 20 FROM tab1
----
1313
624
850

query I rowsort
SELECT ALL + 14 - tab2.col1 FROM tab2, tab1 cor0
----
9 values hashing to f75af496461f540b1f25322fec95319f

query I rowsort
SELECT + 16 * col1 AS col1 FROM tab0
----
1376
1456
1552

query I rowsort
SELECT ALL - tab2.col2 + 46 AS col1 FROM tab2
----
19
20
8

query I rowsort
SELECT ALL ( - 55 ) + col1 * col1 * + 61 AS col2 FROM tab0
----
451101
505086
573894

onlyif mysql # use DIV operator for integer division
query I rowsort label-5890
SELECT DISTINCT ( - col0 ) * col1 DIV 1 + - col1 FROM tab2
----
-1360
-248
-4661

skipif mysql # not compatible
query I rowsort label-5890
SELECT DISTINCT ( - col0 ) * col1 / 1 + - col1 FROM tab2
----
-1360
-248
-4661

query I rowsort
SELECT + 26 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to ede8226bb7e602e221f9d98345b4da37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 25 col1 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 2c77240b60ac01c717a5ed5d0165f450

query I rowsort
SELECT DISTINCT + col1 * ( - col0 ) + - col2 AS col2 FROM tab0 AS cor0
----
-2097
-3396
-8181

query I rowsort
SELECT DISTINCT col2 * ( col0 ) + - col0 AS col0 FROM tab2 cor0
----
182
1950
2923

query I rowsort
SELECT ALL + + col1 - col0 AS col1 FROM tab0 AS cor0
----
2
62
62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5896
SELECT DISTINCT - col2 * + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5896
SELECT DISTINCT - col2 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + col2 * - col0 + + 45 AS col2 FROM tab2 cor0
----
-144
-1983
-2957

query I rowsort
SELECT DISTINCT + col2 * - col0 - - col0 FROM tab1 cor0
----
-159
-3584
-7600

query I rowsort
SELECT ALL - cor0.col1 * ( - 6 ) FROM tab2 AS cor0
----
102
186
354

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + + col1 * 82 col1 FROM tab2 AS cor0
----
1411
2573
4897

query I rowsort
SELECT + ( - col2 ) + + col1 FROM tab0
----
53
9
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5902
SELECT - col2 - col0 * CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5902
SELECT - col2 - col0 * CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col1 * - 99 AS col1 FROM tab0 AS cor0
----
8514
9009
9603

query I rowsort
SELECT 60 AS col1 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to 1d2ab302ae60f95b15e68cf89083b162

query I rowsort
SELECT col0 * - 36 AS col2 FROM tab2
----
-252
-2808
-2844

query I rowsort
SELECT ALL col0 * - col2 * col0 + - cor0.col1 AS col2 FROM tab0 AS cor0
----
-1322
-19094
-649613

query I rowsort
SELECT DISTINCT - col1 * - 29 AS col2 FROM tab0 AS cor0
----
2494
2639
2813

query I rowsort
SELECT + col1 * 50 AS col0 FROM tab0 cor0
----
4300
4550
4850

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5909
SELECT col0 + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5909
SELECT col0 + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col2 + ( col1 + + col2 ) * + cor0.col0 FROM tab0 cor0
----
15315
2823
3429

query I rowsort
SELECT tab0.col1 * col2 + col1 * tab0.col1 AS col1 FROM tab0
----
10234
15743
9506

query I rowsort
SELECT - 9 * - 38 AS col1 FROM tab1 AS cor0
----
342
342
342

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5913
SELECT ALL - CAST( col2 AS SIGNED ) * col1 FROM tab2
----
-1534
-646
-837

skipif mysql # not compatible
query I rowsort label-5913
SELECT ALL - CAST ( col2 AS INTEGER ) * col1 FROM tab2
----
-1534
-646
-837

query I rowsort
SELECT ALL + + ( col2 ) * + cor0.col0 AS col0 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT DISTINCT col0 * + 47 AS col1 FROM tab1 AS cor0
----
141
3008
3760

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 26 + + col1 col1 FROM tab1 AS cor0
----
-13
-16
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5917
SELECT CAST( 84 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
84
84
84

skipif mysql # not compatible
query I rowsort label-5917
SELECT CAST ( 84 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
84
84
84

query I rowsort
SELECT ALL - - 52 * col0 * col2 AS col0 FROM tab2 AS cor0
----
105456
156104
9828

query I rowsort
SELECT + - ( + cor0.col0 ) FROM tab2 AS cor0
----
-7
-78
-79

onlyif mysql # use DIV operator for integer division
query I rowsort label-5920
SELECT col2 + - col2 + + col1 DIV + cor0.col1 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5920
SELECT col2 + - col2 + + col1 / + cor0.col1 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT ALL - + 70 * + col2 FROM tab1 AS cor0
----
-3780
-3990
-6720

query I rowsort
SELECT + + col0 + + col1 * - 63 AS col2 FROM tab0 AS cor0
----
-5394
-5644
-6076

query I rowsort
SELECT ALL cor0.col1 * + col2 * col2 FROM tab2 cor0
----
22599
24548
39884

query I rowsort
SELECT DISTINCT - col2 * 28 AS col2 FROM tab1 AS cor0
----
-1512
-1596
-2688

query I rowsort
SELECT ALL 74 FROM tab0, tab0 cor0, tab2 AS cor1
----
27 values hashing to dc22979e6d261795bd3ce2990fdbbf82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + cor0.col0 col0 FROM tab0 AS cor0
----
178
48
70

query I rowsort
SELECT + - col0 * + cor0.col1 + + 59 AS col0 FROM tab1 AS cor0
----
-19
-581
-981

query I rowsort
SELECT + - 27 * + col1 AS col2 FROM tab1 AS cor0
----
-270
-351
-702

query I rowsort
SELECT - ( + col1 ) * + col1 AS col0 FROM tab1 AS cor0
----
-100
-169
-676

onlyif mysql # use DIV operator for integer division
query I rowsort label-5930
SELECT 69 DIV + col1 col2 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5930
SELECT 69 / + col1 col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + - 37 + col0 + + cor0.col0 * - col1 FROM tab1 AS cor0
----
-112
-613
-997

query I rowsort
SELECT ALL col2 * - col2 * col0 AS col1 FROM tab2 AS cor0
----
-114076
-5103
-52728

query I rowsort
SELECT + col1 * col0 + 85 FROM tab1
----
1125
163
725

query I rowsort
SELECT DISTINCT 26 FROM tab0, tab2 AS cor0, tab0 cor1
----
26

query I rowsort
SELECT ALL 80 AS col2 FROM tab0, tab1 cor0
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94

query I rowsort
SELECT + 72 * cor0.col2 + + col1 AS col0 FROM tab0 AS cor0
----
169
2462
5995

query I rowsort
SELECT ALL - 38 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to e571541ae40cb0ddaca16e11f4359507

query I rowsort
SELECT DISTINCT 7 + + col1 FROM tab2
----
24
38
66

onlyif mysql # use DIV operator for integer division
query I rowsort label-5939
SELECT DISTINCT + col0 * col1 + col0 DIV - 36 FROM tab0
----
2064
3395
8097

skipif mysql # not compatible
query I rowsort label-5939
SELECT DISTINCT + col0 * col1 + col0 / - 36 FROM tab0
----
2064
3395
8097

query I rowsort
SELECT ( col1 ) - col1 AS col0 FROM tab2
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5941
SELECT DISTINCT 33 DIV + col0 + col0 - + ( col2 ) * - CAST( ( + col1 ) AS SIGNED ) * 34 AS col2 FROM tab2 AS cor0
----
22043
28469
52234

skipif mysql # not compatible
query I rowsort label-5941
SELECT DISTINCT 33 / + col0 + col0 - + ( col2 ) * - CAST ( ( + col1 ) AS INTEGER ) * 34 AS col2 FROM tab2 AS cor0
----
22043
28469
52234

query I rowsort
SELECT + ( + col1 ) * + ( col2 ) + col2 FROM tab2 AS cor0
----
1560
684
864

query I rowsort
SELECT + ( 63 ) AS col2 FROM tab2 AS cor0
----
63
63
63

query I rowsort
SELECT - 25 * + col0 * - col2 - - ( col1 ) FROM tab0
----
182541
19886
972

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 55 * tab2.col0 col1 FROM tab2
----
385
4290
4345

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 97 * col1 + + 16 col1 FROM tab0 cor0
----
8358
8843
9425

query I rowsort
SELECT ALL - col1 * + col2 + 65 * + col1 FROM tab2 cor0
----
1178
2301
459

query I rowsort
SELECT ALL 23 + col1 AS col1 FROM tab1 AS cor0
----
33
36
49

query I rowsort
SELECT DISTINCT - - cor0.col1 * cor0.col2 AS col1 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT + 8 + col2 * + col0 FROM tab0 AS cor0
----
43
7306
800

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5951
SELECT ALL + col2 * col2 + + CAST( NULL AS SIGNED ) * - col2 - + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5951
SELECT ALL + col2 * col2 + + CAST ( NULL AS INTEGER ) * - col2 - + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 * col1 * + 4 FROM tab1
----
2280
4992
5616

query I rowsort
SELECT ALL col2 - - ( + ( col2 ) ) AS col1 FROM tab0
----
164
2
66

query I rowsort
SELECT + 95 AS col2 FROM tab2, tab2 AS cor0, tab2 cor1
----
27 values hashing to 14faa6dda52e3dfe1f5db2579c274a7e

query I rowsort
SELECT col0 * + col1 - - col0 AS col0 FROM tab1 AS cor0
----
1120
704
81

query I rowsort
SELECT DISTINCT col2 - + col0 * - col0 FROM tab1
----
4153
63
6496

query I rowsort
SELECT col1 * - 66 AS col2 FROM tab2
----
-1122
-2046
-3894

query I rowsort
SELECT col0 * ( - 86 ) FROM tab1 AS cor0
----
-258
-5504
-6880

query I rowsort
SELECT - 89 FROM tab2, tab1 cor0, tab0 cor1
----
27 values hashing to c36e597b7bc5727536f5bb580e6cebbc

query I rowsort
SELECT ALL - - col2 * cor0.col1 AS col2 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT - + cor0.col0 * - col2 * 93 AS col0 FROM tab1 cor0
----
15066
339264
714240

query I rowsort
SELECT - 28 * + col1 AS col1 FROM tab1 AS cor0
----
-280
-364
-728

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5963
SELECT DISTINCT + CAST( NULL AS DECIMAL ) + 6 AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5963
SELECT DISTINCT + CAST ( NULL AS REAL ) + 6 AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - col0 * 98 * cor0.col1 AS col1 FROM tab1 AS cor0
----
-101920
-62720
-7644

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5965
SELECT ALL - CAST( NULL AS SIGNED ) / + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5965
SELECT ALL - CAST ( NULL AS INTEGER ) / + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 97 * + 73 AS col2 FROM tab1 AS cor0
----
7081
7081
7081

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5967
SELECT - - CAST( NULL AS SIGNED ) + - 7 + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5967
SELECT - - CAST ( NULL AS INTEGER ) + - 7 + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5968
SELECT DISTINCT - - cor0.col0 + + ( col1 ) / CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5968
SELECT DISTINCT - - cor0.col0 + + ( col1 ) / CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort
SELECT + CAST ( 70 AS INTEGER ) + col0 + CAST ( - cor0.col0 AS REAL ) * col1 FROM tab2 AS cor0
----
-1194
-140
-4454

query I rowsort
SELECT DISTINCT ( - 81 ) FROM tab2, tab1 AS cor0
----
-81

query I rowsort
SELECT ALL - col1 + 9 FROM tab1 AS cor0
----
-1
-17
-4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + col2 - col0 col1 FROM tab2 AS cor0
----
-1612
-725
-844

query I rowsort
SELECT + col0 + col1 * + 90 FROM tab0
----
7764
8279
8765

onlyif mysql # use DIV operator for integer division
query I rowsort label-5974
SELECT + - col0 DIV - col0 AS col0 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5974
SELECT + - col0 / - col0 AS col0 FROM tab0 AS cor0
----
1
1
1

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-5976
SELECT cor0.col1 DIV + 92 - cor0.col2 AS col2 FROM tab1 AS cor0
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-5976
SELECT cor0.col1 / + 92 - cor0.col2 AS col2 FROM tab1 AS cor0
----
-54
-57
-96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5977
SELECT - + cor0.col0 / CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5977
SELECT - + cor0.col0 / CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - col0 * 78 + col0 * col0 FROM tab1 AS cor0
----
-225
-896
160

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5979
SELECT DISTINCT - col0 + + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5979
SELECT DISTINCT - col0 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - - cor0.col0 + + 12 FROM tab2 AS cor0
----
19
90
91

query I rowsort
SELECT DISTINCT + col1 + ( + col0 ) AS col0 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT ALL 35 AS col2 FROM tab0, tab1 AS cor0, tab0 cor1
----
27 values hashing to 0d13dfd4c4a9d51ace3582c31cadcdbc

query I rowsort
SELECT ALL col2 * + col0 + + col0 - col0 AS col2 FROM tab1
----
162
3648
7680

query I rowsort
SELECT DISTINCT 97 - + col0 AS col2 FROM tab2
----
18
19
90

query I rowsort
SELECT ALL - col2 * - col0 - col1 AS col2 FROM tab1 AS cor0
----
136
3638
7667

query I rowsort
SELECT - col0 + col1 - 6 FROM tab1 AS cor0
----
-60
-73
17

onlyif mysql # use DIV operator for integer division
query I rowsort label-5987
SELECT DISTINCT + col2 * col1 + - col1 DIV + col0 FROM tab1 AS cor0
----
1248
1396
570

skipif mysql # not compatible
query I rowsort label-5987
SELECT DISTINCT + col2 * col1 + - col1 / + col0 FROM tab1 AS cor0
----
1248
1396
570

query I rowsort
SELECT col1 + ( cor0.col1 ) AS col0 FROM tab1 AS cor0
----
20
26
52

query I rowsort
SELECT DISTINCT + cor0.col2 + 84 FROM tab1 AS cor0
----
138
141
180

skipif mysql # not compatible
query I rowsort
SELECT - CAST ( + col1 AS REAL ) * + col2 AS col2 FROM tab2 AS cor0
----
-1534
-646
-837

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( 64 AS REAL ) * - col0 FROM tab2 cor0
----
-448
-4992
-5056

query I rowsort
SELECT col2 * col1 + cor0.col2 AS col2 FROM tab0 AS cor0
----
2871
7544
98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5993
SELECT ALL - CAST( - col0 AS SIGNED ) * col2 + col1 col1 FROM tab2 AS cor0
----
2087
220
3019

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5993
SELECT ALL - CAST ( - col0 AS INTEGER ) * col2 + col1 col1 FROM tab2 AS cor0
----
2087
220
3019

query I rowsort
SELECT - col0 * + ( col2 ) + - ( cor0.col0 ) AS col0 FROM tab2 AS cor0
----
-196
-2106
-3081

query I rowsort
SELECT DISTINCT + ( - 22 ) + + cor0.col0 FROM tab1 AS cor0
----
-19
42
58

query I rowsort
SELECT + - 35 + col2 FROM tab2 AS cor0
----
-8
-9
3

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5997
SELECT ALL CAST( NULL AS SIGNED ) * + col1 + + cor0.col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5997
SELECT ALL CAST ( NULL AS INTEGER ) * + col1 + + cor0.col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 11 * col1 * col2 FROM tab0 AS cor0
----
1067
31218
82082

query I rowsort
SELECT ( col1 ) * col0 + col0 AS col0 FROM tab0 AS cor0
----
2088
3430
8188

query I rowsort
SELECT ALL col1 * 47 + col2 + col0 AS col0 FROM tab2 AS cor0
----
1491
2877
916

query I rowsort
SELECT ALL - 54 + col0 FROM tab2 AS cor0
----
-47
24
25

query I rowsort
SELECT ALL ( - 31 ) * col0 AS col0 FROM tab2 AS cor0
----
-217
-2418
-2449

query I rowsort
SELECT + col0 * + col0 * + col1 AS col2 FROM tab0 AS cor0
----
118825
49536
720811

query I rowsort
SELECT DISTINCT - - ( cor0.col0 ) * cor0.col0 AS col0 FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT 63 + + col2 AS col0 FROM tab2 AS cor0
----
101
89
90

onlyif mysql # use DIV operator for integer division
query I rowsort label-6006
SELECT ALL - ( 76 ) * col1 DIV - col0 AS col1 FROM tab0 cor0
----
210
272
77

skipif mysql # not compatible
query I rowsort label-6006
SELECT ALL - ( 76 ) * col1 / - col0 AS col1 FROM tab0 cor0
----
210
272
77

query I rowsort
SELECT - + col2 + col1 * col0 FROM tab0 AS cor0
----
2031
3394
8017

query I rowsort
SELECT DISTINCT - 59 * col2 + col1 * + col1 FROM tab0 AS cor0
----
3443
5449
9350

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + col0 col2 FROM tab1 cor0
----
-16
-51
7

query I rowsort
SELECT ALL - - 89 AS col1 FROM tab1 AS cor0
----
89
89
89

query I rowsort
SELECT ALL - ( - cor0.col1 ) AS col0 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT ALL + col2 * - col0 + 55 AS col1 FROM tab1 AS cor0
----
-107
-3593
-7625

query I rowsort
SELECT tab2.col0 * 76 - - col2 FROM tab2
----
559
5954
6042

query I rowsort
SELECT 78 + cor0.col1 FROM tab2 AS cor0
----
109
137
95

query I rowsort
SELECT DISTINCT + 68 + - col0 * ( cor0.col0 ) AS col0 FROM tab0 AS cor0
----
-1157
-508
-7853

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 94 col0 FROM tab1 AS cor0
----
-94
-94
-94

query I rowsort
SELECT DISTINCT ( 91 + + col1 ) AS col2 FROM tab2
----
108
122
150

onlyif mysql # use DIV operator for integer division
query I rowsort label-6018
SELECT col1 + tab1.col2 DIV + col2 FROM tab1
----
11
14
27

skipif mysql # not compatible
query I rowsort label-6018
SELECT col1 + tab1.col2 / + col2 FROM tab1
----
11
14
27

query I rowsort
SELECT + col0 + 44 FROM tab2
----
122
123
51

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6020
SELECT DISTINCT col0 + + col1 + CAST( col1 + - col1 AS SIGNED ) FROM tab0 AS cor0
----
110
132
180

skipif mysql # not compatible
query I rowsort label-6020
SELECT DISTINCT col0 + + col1 + CAST ( col1 + - col1 AS INTEGER ) FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT + col1 + + col2 * 19 FROM tab0 AS cor0
----
116
1649
713

query I rowsort
SELECT 54 * - 4 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to eddcc0c9734a653acd90a56d71c73d70

query I rowsort
SELECT DISTINCT col1 * col2 * tab1.col0 + col2 AS col2 FROM tab1
----
36537
4266
99936

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 25 col1 FROM tab0, tab0 cor0
----
-25

query I rowsort
SELECT - 24 AS col1 FROM tab1, tab2 cor0
----
9 values hashing to 797d0f7c145f8ac623924448c714bbcc

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6026
SELECT DISTINCT col1 + + CAST( NULL AS SIGNED ) + - 38 AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6026
SELECT DISTINCT col1 + + CAST ( NULL AS INTEGER ) + - 38 AS col1 FROM tab1
----
NULL

query I rowsort
SELECT col2 - ( 43 * - col0 ) AS col0 FROM tab0 AS cor0
----
1065
1506
3909

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - ( col0 ) * - col2 col0 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT DISTINCT + 68 * cor0.col1 FROM tab2 cor0
----
1156
2108
4012

onlyif mysql # use DIV operator for integer division
query I rowsort label-6030
SELECT + col1 DIV + tab2.col1 + + col1 FROM tab2
----
18
32
60

skipif mysql # not compatible
query I rowsort label-6030
SELECT + col1 / + tab2.col1 + + col1 FROM tab2
----
18
32
60

query I rowsort
SELECT + cor0.col0 FROM tab0, tab2 cor0, tab2 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

query I rowsort
SELECT + + ( col2 ) * - cor0.col2 + 24 FROM tab1 cor0
----
-2892
-3225
-9192

query I rowsort
SELECT + ( col0 ) * col2 + - 29 * col0 FROM tab0 AS cor0
----
-980
4717
96

query I rowsort
SELECT DISTINCT - cor0.col1 * col2 + + col2 * ( 28 ) AS col0 FROM tab1 AS cor0
----
1026
108
1440

query I rowsort
SELECT + 97 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c

skipif mysql # not compatible
query I rowsort
SELECT + + col1 + - CAST ( 17 AS REAL ) * col2 AS col2 FROM tab0 AS cor0
----
-1303
-475
80

query I rowsort
SELECT col2 * - 29 + + col1 FROM tab1 AS cor0
----
-1540
-1643
-2771

query I rowsort
SELECT col2 * - col1 + - 45 AS col2 FROM tab0 AS cor0
----
-142
-2883
-7507

query I rowsort
SELECT + + col0 * 58 + 87 FROM tab1 AS cor0
----
261
3799
4727

query I rowsort
SELECT col2 + 84 FROM tab1 cor0
----
138
141
180

query I rowsort
SELECT ALL - - col1 + - cor0.col2 AS col1 FROM tab1 cor0
----
-28
-47
-83

query I rowsort
SELECT ALL - 29 AS col2 FROM tab0, tab0 cor0
----
9 values hashing to 0cc9ddad93fc783055518ae4b6be054b

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6043
SELECT + 3 * col1 + ( - col1 + col2 ) * - CAST( - col1 * - col1 AS SIGNED ) FROM tab1 AS cor0
----
-13988
-18850
-4670

skipif mysql # not compatible
query I rowsort label-6043
SELECT + 3 * col1 + ( - col1 + col2 ) * - CAST ( - col1 * - col1 AS INTEGER ) FROM tab1 AS cor0
----
-13988
-18850
-4670

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 34 + - tab1.col2 col2 FROM tab1
----
-20
-23
-62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab1.col0 * + col0 col0 FROM tab1
----
4096
6400
9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6046
SELECT col1 + - CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6046
SELECT col1 + - CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 + + 72 FROM tab2 AS cor0
----
13
41
55

query I rowsort
SELECT ALL - cor0.col0 + + col2 AS col2 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT - 50 * + tab2.col1 FROM tab2
----
-1550
-2950
-850

query I rowsort
SELECT ALL + col0 + + ( - col2 ) * col2 * + 43 FROM tab1 AS cor0
----
-125385
-139643
-396208

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6051
SELECT ALL col0 + CAST( col2 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
104
117
34

skipif mysql # not compatible
query I rowsort label-6051
SELECT ALL col0 + CAST ( col2 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
104
117
34

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6052
SELECT DISTINCT col0 - + col1 * CAST( - ( col2 ) AS SIGNED ) AS col1 FROM tab0
----
132
2862
7551

skipif mysql # not compatible
query I rowsort label-6052
SELECT DISTINCT col0 - + col1 * CAST ( - ( col2 ) AS INTEGER ) AS col1 FROM tab0
----
132
2862
7551

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 41 - - tab2.col1 col1 FROM tab2
----
100
58
72

query I rowsort
SELECT - 2 + + cor1.col0 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 40b553b1c84d766843d6eaaf09676877

onlyif mysql # use DIV operator for integer division
query I rowsort label-6055
SELECT - col1 * col0 DIV + col0 AS col2 FROM tab1
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-6055
SELECT - col1 * col0 / + col0 AS col2 FROM tab1
----
-10
-13
-26

query I rowsort
SELECT DISTINCT col0 * 28 + - tab0.col0 AS col0 FROM tab0
----
2403
648
945

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6057
SELECT col2 * CAST( col2 AS SIGNED ) FROM tab0
----
1
1089
6724

skipif mysql # not compatible
query I rowsort label-6057
SELECT col2 * CAST ( col2 AS INTEGER ) FROM tab0
----
1
1089
6724

query I rowsort
SELECT DISTINCT - + col1 * col1 + + col0 FROM tab0 AS cor0
----
-7372
-8192
-9374

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6059
SELECT DISTINCT CAST( NULL AS SIGNED ) * 24 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6059
SELECT DISTINCT CAST ( NULL AS INTEGER ) * 24 FROM tab0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6060
SELECT DISTINCT - col2 DIV - col0 AS col0 FROM tab1
----
0
1
18

skipif mysql # not compatible
query I rowsort label-6060
SELECT DISTINCT - col2 / - col0 AS col0 FROM tab1
----
0
1
18

query I rowsort
SELECT - 76 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to d90b4aa5f03b4a149aa925c4a88acca0

query I rowsort
SELECT - ( - col0 * + tab1.col2 ) FROM tab1
----
162
3648
7680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6063
SELECT - + CAST( - 79 AS SIGNED ) * + col1 AS col1 FROM tab1 cor0
----
1027
2054
790

skipif mysql # not compatible
query I rowsort label-6063
SELECT - + CAST ( - 79 AS INTEGER ) * + col1 AS col1 FROM tab1 cor0
----
1027
2054
790

query I rowsort
SELECT DISTINCT - ( - col2 * - col0 ) FROM tab2
----
-189
-2028
-3002

query I rowsort
SELECT ALL 89 * + 28 FROM tab0
----
2492
2492
2492

query I rowsort
SELECT col2 + + col1 * + 9 * cor0.col0 - cor0.col1 FROM tab2 AS cor0
----
12108
1949
41385

query I rowsort
SELECT - col2 + col0 - + 95 FROM tab2 AS cor0
----
-115
-43
-54

onlyif mysql # use DIV operator for integer division
query I rowsort label-6068
SELECT DISTINCT col2 * - col0 + + 26 + 26 DIV + col0 FROM tab2 AS cor0
----
-160
-2002
-2976

skipif mysql # not compatible
query I rowsort label-6068
SELECT DISTINCT col2 * - col0 + + 26 + 26 / + col0 FROM tab2 AS cor0
----
-160
-2002
-2976

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 + - col0 * + col1 - - 81 AS col1 FROM tab1 AS cor0
----
-559
-959
3

onlyif mysql # use DIV operator for integer division
query I rowsort label-6071
SELECT DISTINCT - cor0.col2 + col2 DIV + col2 - 38 AS col0 FROM tab1 AS cor0
----
-133
-91
-94

skipif mysql # not compatible
query I rowsort label-6071
SELECT DISTINCT - cor0.col2 + col2 / + col2 - 38 AS col0 FROM tab1 AS cor0
----
-133
-91
-94

query I rowsort
SELECT ALL + 17 + - col0 * col2 FROM tab1 AS cor0
----
-145
-3631
-7663

query I rowsort
SELECT - 66 FROM tab2, tab2 AS cor0
----
9 values hashing to a408108d423d7784b7d610cb779e515a

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 62 col1 FROM tab1, tab1 AS cor0
----
62

query I rowsort
SELECT ALL - - col1 * col1 + - cor0.col1 AS col2 FROM tab2 AS cor0
----
272
3422
930

query I rowsort
SELECT ALL 39 * cor0.col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 4b70e57583cb555cbe186753e1351ffb

query I rowsort
SELECT DISTINCT 9 + 36 * col2 AS col2 FROM tab0 AS cor0
----
1197
2961
45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + + cor0.col0 * col2 + cor0.col1 col2 FROM tab0 AS cor0
----
133
7471
911

query I rowsort
SELECT - ( - col1 ) + + col2 AS col2 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT DISTINCT - 17 * 9 + + col2 AS col0 FROM tab2 cor0
----
-115
-126
-127

query I rowsort
SELECT col0 * col2 * col1 AS col1 FROM tab1
----
36480
4212
99840

query I rowsort
SELECT DISTINCT + 94 + col1 AS col2 FROM tab2
----
111
125
153

query I rowsort
SELECT + col2 + + col2 + + 57 * 75 AS col0 FROM tab2
----
4327
4329
4351

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - col1 + tab0.col1 col1 FROM tab0
----
-7310
-8190
-9312

query I rowsort
SELECT DISTINCT + ( + col2 ) * + col1 + col2 * col2 AS col1 FROM tab1
----
10464
3819
4320

query I rowsort
SELECT DISTINCT + col1 + - col1 + 71 FROM tab1
----
71

query I rowsort
SELECT ALL + col0 + + col0 + 94 AS col1 FROM tab0
----
142
164
272

query I rowsort
SELECT ALL 4 + tab0.col1 FROM tab0
----
101
90
95

query I rowsort
SELECT ALL - + col0 * col1 + - 67 + col0 AS col2 FROM tab0 AS cor0
----
-2107
-3427
-8077

query I rowsort
SELECT - col0 * col1 + col0 + 61 FROM tab1
----
-14
-515
-899

query I rowsort
SELECT - ( + col1 ) * - ( col1 ) * - col0 FROM tab0
----
-177504
-329315
-737009

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 * - col0 + + 57 * - col2 col2 FROM tab0 cor0
----
-1305
1168
3247

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 18 * + cor0.col1 col2 FROM tab2 AS cor0
----
-1062
-306
-558

query I rowsort
SELECT DISTINCT - 4 + col1 + - 59 FROM tab2 AS cor0
----
-32
-4
-46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 * + col2 col1 FROM tab0 cor0
----
2838
7462
97

query I rowsort
SELECT - col1 * + ( - col2 ) + - col0 AS col2 FROM tab0 AS cor0
----
2814
62
7373

query I rowsort
SELECT DISTINCT - col2 * - 69 + - col1 * cor0.col0 FROM tab2 cor0
----
-2808
1279
1646

query I rowsort
SELECT DISTINCT - - col1 + cor0.col2 * col2 - + col0 * - cor0.col1 FROM tab2 AS cor0
----
2804
5337
977

query I rowsort
SELECT ALL - col2 - - col1 * col0 AS col0 FROM tab1 AS cor0
----
24
583
944

query I rowsort
SELECT - col1 + col0 * + cor0.col2 AS col1 FROM tab2 AS cor0
----
158
1969
2985

query I rowsort
SELECT + cor0.col2 * + ( + ( col1 ) ) + + ( cor0.col2 ) + - cor0.col2 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT ALL + - col1 + + 6 * col1 AS col1 FROM tab2 AS cor0
----
155
295
85

query I rowsort
SELECT ALL cor0.col0 - 47 * - 72 FROM tab2 cor0
----
3391
3462
3463

query I rowsort
SELECT ALL - col1 * col1 + + col2 AS col1 FROM tab2 AS cor0
----
-251
-3455
-934

query I rowsort
SELECT 6 FROM tab0, tab0 cor0
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821

query I rowsort
SELECT ALL - col0 * - col2 * col0 AS col2 FROM tab2
----
1323
158184
237158

query I rowsort
SELECT DISTINCT + col1 + 47 AS col1 FROM tab1 cor0
----
57
60
73

query I rowsort
SELECT DISTINCT - - col2 + - col1 * - col1 AS col1 FROM tab1 cor0
----
157
265
730

query I rowsort
SELECT ALL col0 * + 46 FROM tab2
----
322
3588
3634

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 + - 77 * col1 col0 FROM tab2 cor0
----
-1292
-2356
-4484

query I rowsort
SELECT - 47 + ( col1 ) AS col2 FROM tab2 AS cor0
----
-16
-30
12

query I rowsort
SELECT ( - 71 ) * col0 AS col2 FROM tab2 AS cor0
----
-497
-5538
-5609

query I rowsort
SELECT col0 * 35 FROM tab0
----
1225
3115
840

onlyif mysql # use DIV operator for integer division
query I rowsort label-6114
SELECT + - cor0.col2 DIV 44 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6114
SELECT + - cor0.col2 / 44 AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - col0 * + 12 * col1 AS col2 FROM tab1
----
-12480
-7680
-936

query I rowsort
SELECT + - col1 + - cor0.col2 * col0 FROM tab1 AS cor0
----
-188
-3658
-7693

query I rowsort
SELECT + col1 * col2 + col0 AS col1 FROM tab2 AS cor0
----
1612
725
844

onlyif mysql # use DIV operator for integer division
query I rowsort label-6118
SELECT ALL + col2 DIV + col0 FROM tab1 cor0
----
0
1
18

skipif mysql # not compatible
query I rowsort label-6118
SELECT ALL + col2 / + col0 FROM tab1 cor0
----
0
1
18

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6119
SELECT col2 * + cor0.col2 - CAST( NULL AS SIGNED ) * 13 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6119
SELECT col2 * + cor0.col2 - CAST ( NULL AS INTEGER ) * 13 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL cor0.col1 + cor0.col2 AS col1 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT - cor0.col0 * col0 + col0 AS col2 FROM tab0 AS cor0
----
-1190
-552
-7832

query I rowsort
SELECT ALL col0 * + cor0.col1 FROM tab1 cor0
----
1040
640
78

query I rowsort
SELECT ALL 9 + col1 AS col2 FROM tab1 AS cor0
----
19
22
35

onlyif mysql # use DIV operator for integer division
query I rowsort label-6124
SELECT DISTINCT + 82 DIV col0 AS col0 FROM tab2
----
1
11

skipif mysql # not compatible
query I rowsort label-6124
SELECT DISTINCT + 82 / col0 AS col0 FROM tab2
----
1
11

onlyif mysql # use DIV operator for integer division
query I rowsort label-6125
SELECT col0 + 48 DIV col2 AS col1 FROM tab0
----
25
83
89

skipif mysql # not compatible
query I rowsort label-6125
SELECT col0 + 48 / col2 AS col1 FROM tab0
----
25
83
89

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6126
SELECT DISTINCT CAST( 5 * - col0 AS SIGNED ) AS col1 FROM tab0
----
-120
-175
-445

skipif mysql # not compatible
query I rowsort label-6126
SELECT DISTINCT CAST ( 5 * - col0 AS INTEGER ) AS col1 FROM tab0
----
-120
-175
-445

query I rowsort
SELECT ALL 83 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 1 col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b

query I rowsort
SELECT + 35 + col0 AS col0 FROM tab2 AS cor0
----
113
114
42

query I rowsort
SELECT - 38 * 73 + col1 FROM tab1
----
-2748
-2761
-2764

query I rowsort
SELECT col2 + + col1 * 23 + 56 FROM tab1
----
343
451
708

query I rowsort
SELECT + col2 - cor0.col1 AS col0 FROM tab1 AS cor0
----
28
47
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-6133
SELECT ALL - 58 DIV col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6133
SELECT ALL - 58 / col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - 42 + col0 * col0 AS col1 FROM tab0 AS cor0
----
1183
534
7879

onlyif mysql # use DIV operator for integer division
query I rowsort label-6135
SELECT - ( ( - col2 ) ) DIV col0 FROM tab1
----
0
1
18

skipif mysql # not compatible
query I rowsort label-6135
SELECT - ( ( - col2 ) ) / col0 FROM tab1
----
0
1
18

query I rowsort
SELECT ALL col2 * + col2 + col0 * + col1 FROM tab0 AS cor0
----
14823
3153
3396

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6137
SELECT - + col0 + + col1 * + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6137
SELECT - + col0 + + col1 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - col2 * - col0 + - cor0.col0 FROM tab0 AS cor0
----
0
7209
768

query I rowsort
SELECT + + col1 * - cor0.col1 + + col0 FROM tab0 AS cor0
----
-7372
-8192
-9374

query I rowsort
SELECT DISTINCT 65 + col2 FROM tab2 AS cor0
----
103
91
92

query I rowsort
SELECT ALL - - cor0.col2 - - col0 FROM tab1 AS cor0
----
121
176
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( 50 + - col1 ) * + col1 col0 FROM tab0
----
3096
3731
4559

query I rowsort
SELECT ALL + ( + 90 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 96f7a90428db93f472e0d219bab64853

query I rowsort
SELECT - 9 + col0 * 33 FROM tab0 cor0
----
1146
2928
783

query I rowsort
SELECT - + ( + col0 ) + ( 80 + + col1 ) AS col0 FROM tab1 AS cor0
----
103
13
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col1 * + col2 col0 FROM tab1 cor0
----
1248
1404
570

onlyif mysql # use DIV operator for integer division
query I rowsort label-6147
SELECT DISTINCT col1 DIV col1 + col1 FROM tab2 AS cor0
----
18
32
60

skipif mysql # not compatible
query I rowsort label-6147
SELECT DISTINCT col1 / col1 + col1 FROM tab2 AS cor0
----
18
32
60

onlyif mysql # use DIV operator for integer division
query I rowsort label-6148
SELECT + col0 * col0 DIV 80 + 40 * + col0 FROM tab0 AS cor0
----
1415
3659
967

skipif mysql # not compatible
query I rowsort label-6148
SELECT + col0 * col0 / 80 + 40 * + col0 FROM tab0 AS cor0
----
1415
3659
967

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6149
SELECT + + col1 * CAST( col0 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
1040
640
78

skipif mysql # not compatible
query I rowsort label-6149
SELECT + + col1 * CAST ( col0 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT col2 * col2 * col1 AS col2 FROM tab2 AS cor0
----
22599
24548
39884

query I rowsort
SELECT ( + ( - col2 ) ) * col2 FROM tab0 AS cor0
----
-1
-1089
-6724

query I rowsort
SELECT + 79 * + 79 AS col2 FROM tab2 AS cor0
----
6241
6241
6241

query I rowsort
SELECT DISTINCT col1 + - cor0.col2 FROM tab2 AS cor0
----
-21
33
4

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6154
SELECT - CAST( NULL AS SIGNED ) * + 73 + col1 * + ( + col2 ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6154
SELECT - CAST ( NULL AS INTEGER ) * + 73 + col1 * + ( + col2 ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 51 * col2 + + cor0.col2 AS col2 FROM tab2 cor0
----
1352
1404
1976

query I rowsort
SELECT - ( col0 ) * - col1 + col1 AS col0 FROM tab2 AS cor0
----
1360
248
4661

onlyif mysql # use DIV operator for integer division
query I rowsort label-6157
SELECT - + ( ( + col2 ) ) DIV + col0 AS col2 FROM tab2 AS cor0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-6157
SELECT - + ( ( + col2 ) ) / + col0 AS col2 FROM tab2 AS cor0
----
-3
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6158
SELECT - 56 DIV 39 AS col1 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6158
SELECT - 56 / 39 AS col1 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT + 86 * + 80 AS col2 FROM tab0 AS cor0
----
6880

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6160
SELECT ALL CAST( NULL AS SIGNED ) * - col2 + col0 AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6160
SELECT ALL CAST ( NULL AS INTEGER ) * - col2 + col0 AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 10 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to f68f33032846e21ee6b2c668fc10355e

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6162
SELECT col2 * + 29 + col0 * CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6162
SELECT col2 * + 29 + col0 * CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6163
SELECT - + ( + col2 ) DIV + col2 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6163
SELECT - + ( + col2 ) / + col2 FROM tab1 AS cor0
----
-1
-1
-1

onlyif mysql # use DIV operator for integer division
query I rowsort label-6164
SELECT ( col1 ) + - cor0.col1 DIV 99 AS col0 FROM tab2 AS cor0
----
17
31
59

skipif mysql # not compatible
query I rowsort label-6164
SELECT ( col1 ) + - cor0.col1 / 99 AS col0 FROM tab2 AS cor0
----
17
31
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 96 * - col0 col1 FROM tab1 AS cor0
----
-288
-6144
-7680

query I rowsort
SELECT ALL + ( col2 ) + - col2 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT + - col1 * - 73 FROM tab0 AS cor0
----
6278
6643
7081

query I rowsort
SELECT ALL col0 * ( - col0 ) AS col0 FROM tab1 AS cor0
----
-4096
-6400
-9

skipif mysql # not compatible
query I rowsort
SELECT ALL + - CAST ( - 68 AS REAL ) FROM tab0 AS cor0
----
68
68
68

onlyif mysql # use DIV operator for integer division
query I rowsort label-6170
SELECT col0 * - ( - col0 ) DIV col0 col2 FROM tab1 AS cor0
----
3
64
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6170
SELECT col0 * - ( - col0 ) / col0 col2 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT ALL + + ( 76 ) FROM tab2 AS cor0
----
76
76
76

query I rowsort
SELECT ALL - - 96 * col2 FROM tab1 AS cor0
----
5184
5472
9216

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col2 * col1 col0 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT + col2 + col2 + tab2.col0 AS col1 FROM tab2
----
130
155
61

query I rowsort
SELECT col0 + - col2 * col2 + tab2.col2 AS col1 FROM tab2
----
-1327
-572
-695

query I rowsort
SELECT ALL + + cor0.col1 * + cor0.col1 + col1 AS col0 FROM tab2 AS cor0
----
306
3540
992

query I rowsort
SELECT DISTINCT col0 + - 64 * - 72 FROM tab1 AS cor0
----
4611
4672
4688

query I rowsort
SELECT col0 * - col2 + + col0 * - cor0.col0 AS col0 FROM tab1 AS cor0
----
-14080
-171
-7744

query I rowsort
SELECT DISTINCT + 65 - cor0.col0 FROM tab0, tab0 cor0
----
-24
30
41

query I rowsort
SELECT ALL - col1 + - 28 AS col1 FROM tab1 cor0
----
-38
-41
-54

query I rowsort
SELECT ALL - col0 * + 29 + cor0.col0 * - col2 FROM tab1 AS cor0
----
-10000
-249
-5504

query I rowsort
SELECT - 88 AS col1 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to eb8cbefa7d831e1a0183e919e2caef32

query I rowsort
SELECT + col1 + col2 * 20 AS col0 FROM tab0
----
117
1731
746

query I rowsort
SELECT ALL 44 FROM tab2, tab1 cor0, tab0 AS cor1
----
27 values hashing to 0cc3e52e781e46962291c3060c6ae73b

query I rowsort
SELECT - col1 * + col2 * col0 + - tab0.col0 FROM tab0
----
-3430
-664207
-68136

query I rowsort
SELECT ALL - col2 * - col1 + - col2 AS col2 FROM tab0 AS cor0
----
2805
7380
96

query I rowsort
SELECT DISTINCT + col1 + col1 * cor0.col1 * cor0.col2 AS col0 FROM tab2 AS cor0
----
10999
25978
90565

query I rowsort
SELECT DISTINCT + col0 * col0 AS col0 FROM tab0 AS cor0 WHERE NULL NOT IN ( col1 )
----

query I rowsort
SELECT DISTINCT col1 * col0 + col0 * col1 AS col2 FROM tab2 AS cor0
----
2686
434
9204

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col2 + + col2 * - col0 + - col0 col2 FROM tab2
----
-169
-2080
-3043

query I rowsort
SELECT DISTINCT - col0 * col0 + - col1 * + col0 AS col1 FROM tab0
----
-16020
-2640
-4620

onlyif mysql # use DIV operator for integer division
query I rowsort label-6192
SELECT col1 + - col0 DIV - col0 + - col2 AS col0 FROM tab1
----
-27
-46
-82

skipif mysql # not compatible
query I rowsort label-6192
SELECT col1 + - col0 / - col0 + - col2 AS col0 FROM tab1
----
-27
-46
-82

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) < - col0 - + col1
----

query I rowsort
SELECT col2 * col0 * col1 AS col1 FROM tab0
----
3395
664118
68112

query I rowsort
SELECT - tab2.col0 - tab2.col2 AS col2 FROM tab2
----
-104
-117
-34

query I rowsort
SELECT + col2 * + col0 + col1 FROM tab1
----
188
3658
7693

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col1 col0 FROM tab2 WHERE NULL IN ( - col0 * col0 )
----

query I rowsort
SELECT DISTINCT + col1 FROM tab0 WHERE + col0 / + col2 <> ( NULL )
----

query I rowsort
SELECT + col2 - col1 * + col0 FROM tab0
----
-2031
-3394
-8017

query I rowsort
SELECT ALL col2 * - col1 - + col2 AS col0 FROM tab1
----
-1344
-1458
-627

query I rowsort
SELECT DISTINCT col0 + + tab1.col0 * - col1 * - col0 - + col0 AS col1 FROM tab1
----
234
40960
83200

query I rowsort
SELECT DISTINCT col0 + - col1 * col2 AS col2 FROM tab2 cor0
----
-1456
-567
-830

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT BETWEEN - col2 * - col2 AND ( + col1 * col2 ) AND NULL IN ( tab2.col2 + col2 )
----

query I rowsort
SELECT - col0 * col0 + col0 * + col2 FROM tab2
----
-3239
-4056
140

query I rowsort
SELECT col2 * - col2 + + col2 * + tab2.col2 AS col1 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT - col0 + + col2 - - col2 FROM tab1
----
105
112
50

query I rowsort
SELECT ALL - col2 * - col1 - col1 AS col1 FROM tab2
----
1475
629
806

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 - col0 col1 FROM tab0
----
2
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab0.col2 * - tab0.col2 + col2 col1 FROM tab0
----
-1056
-6642
0

query I rowsort
SELECT DISTINCT col0 + - col2 * - col2 FROM tab0 AS cor0
----
1113
36
6813

query I rowsort
SELECT ALL + + col2 + + col1 * col0 FROM tab0 AS cor0
----
2097
3396
8181

query I rowsort
SELECT DISTINCT col1 + cor0.col0 * - col1 AS col2 FROM tab0 AS cor0
----
-1978
-3298
-8008

query I rowsort
SELECT DISTINCT col1 * tab1.col0 + col1 FROM tab1
----
104
1053
650

query I rowsort
SELECT ALL tab1.col2 * + col0 * - col2 + + col0 FROM tab1
----
-207872
-737200
-8745

onlyif mysql # use DIV operator for integer division
query I rowsort label-6215
SELECT - col2 DIV + col1 + tab1.col1 FROM tab1
----
24
5
6

skipif mysql # not compatible
query I rowsort label-6215
SELECT - col2 / + col1 + tab1.col1 FROM tab1
----
24
5
6

query I rowsort
SELECT ALL + + col0 - - col1 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT DISTINCT col0 + col0 * + col1 * col0 FROM tab0 AS cor0
----
118860
49560
720900

query I rowsort
SELECT ALL col0 + col0 - cor0.col1 * col2 FROM tab2 AS cor0
----
-1378
-488
-823

query I rowsort
SELECT col2 * cor0.col0 + + cor0.col2 FROM tab0 AS cor0
----
36
7380
825

query I rowsort
SELECT DISTINCT - col1 * cor0.col2 * + col0 + cor0.col0 FROM tab1 cor0
----
-36416
-4209
-99760

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + col1 col1 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT - - cor0.col0 + - cor0.col2 * col2 AS col0 FROM tab0 cor0
----
-1065
-6635
34

query I rowsort
SELECT + col0 * col0 - col2 * col1 AS col1 FROM tab2 AS cor0
----
-788
4550
5595

query I rowsort
SELECT DISTINCT - - col1 + col2 + col2 * + col2 FROM tab0 AS cor0
----
1208
6897
99

query I rowsort
SELECT ALL + col2 + + col2 * - col0 FROM tab0
----
-34
-7216
-759

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab0.col2 * + col2 col2 FROM tab0
----
1
1089
6724

onlyif mysql # use DIV operator for integer division
query I rowsort label-6227
SELECT 59 * col1 DIV - ( col2 ) AS col0 FROM tab1
----
-10
-28
-7

skipif mysql # not compatible
query I rowsort label-6227
SELECT 59 * col1 / - ( col2 ) AS col0 FROM tab1
----
-10
-28
-7

query I rowsort
SELECT - tab1.col1 + + col0 AS col1 FROM tab1
----
-23
54
67

query I rowsort
SELECT ALL + tab2.col1 + col0 * 19 FROM tab2
----
1518
1541
164

query I rowsort
SELECT - 3 * col2 FROM tab1
----
-162
-171
-288

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 - col2 * + ( - col1 ) col1 FROM tab2 AS cor0
----
1475
629
806

query I rowsort
SELECT DISTINCT + + 85 FROM tab2, tab0, tab2 cor0
----
85

onlyif mysql # use DIV operator for integer division
query I rowsort label-6233
SELECT - 19 DIV + col1 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-6233
SELECT - 19 / + col1 FROM tab1
----
-1
-1
0

query I rowsort
SELECT DISTINCT 67 * col1 AS col0 FROM tab0
----
5762
6097
6499

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - col0 - + col1 col2 FROM tab1 cor0
----
1027
52
630

query I rowsort
SELECT - + col2 + 3 * col2 FROM tab0 AS cor0
----
164
2
66

query I rowsort
SELECT ALL - + col2 - 28 FROM tab2 cor0
----
-54
-55
-66

query I rowsort
SELECT col1 + col2 * + 33 FROM tab0 AS cor0
----
1175
130
2797

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6239
SELECT - cor0.col0 * - CAST( NULL AS DECIMAL ) * 46 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6239
SELECT - cor0.col0 * - CAST ( NULL AS REAL ) * 46 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + tab2.col1 + col1 + - tab2.col2 * - col2 * - col0 FROM tab2
----
-114042
-5041
-52610

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + ( - cor0.col2 ) col1 FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 - col2 col0 FROM tab2 AS cor0
----
-55
-58
-85

query I rowsort
SELECT DISTINCT tab2.col1 + + col2 * - tab2.col2 * col0 AS col1 FROM tab2
----
-114059
-5072
-52669

query III rowsort
SELECT * FROM tab2 WHERE NULL IN ( + col0 * col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( - col1 ) <> + col0
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

query I rowsort
SELECT col2 + - tab2.col1 + col0 FROM tab2
----
100
3
45

query III rowsort
SELECT * FROM tab0 WHERE ( col0 ) BETWEEN + col1 AND ( col1 + + col0 )
----

query I rowsort
SELECT DISTINCT col1 * col0 - - col1 FROM tab2
----
1360
248
4661

query I rowsort
SELECT - col1 + - col1 / + col0 FROM tab0 WHERE NOT NULL NOT BETWEEN + col0 AND NULL
----

query I rowsort
SELECT ALL - tab1.col2 * - col1 + - col1 FROM tab1
----
1235
1378
560

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + col2 * col2 ) = NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NULL ) <= col1
----

query I rowsort
SELECT DISTINCT + col1 * - col2 + - col2 AS col1 FROM tab0 AS cor0
----
-2871
-7544
-98

query I rowsort
SELECT ALL + col0 + 44 * col2 AS col2 FROM tab0 AS cor0
----
1476
3697
79

query I rowsort
SELECT ALL col2 + ( - cor0.col2 ) FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT col0 + - 30 AS col2 FROM tab0 cor0
----
-6
5
59

query I rowsort
SELECT col0 - - col1 AS col0 FROM tab0 AS cor0
----
110
132
180

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * 1 - - 91 * - col2 col1 FROM tab2 AS cor0
----
-2288
-2450
-3379

query I rowsort
SELECT + - col1 + - col2 * cor0.col0 AS col1 FROM tab1 AS cor0
----
-188
-3658
-7693

query I rowsort
SELECT col2 - - ( col1 ) FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT col2 * ( 97 ) FROM tab2 AS cor0
----
2522
2619
3686

query I rowsort
SELECT DISTINCT tab2.col2 - col0 FROM tab2
----
-41
-52
20

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6263
SELECT - col2 + - CAST( NULL AS DECIMAL ) + 61 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6263
SELECT - col2 + - CAST ( NULL AS REAL ) + 61 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col1 - + 52 FROM tab1
----
-26
-39
-42

query I rowsort
SELECT - col1 + col0 + + col1 AS col0 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT ALL - tab1.col2 * + ( - col2 * col0 ) AS col0 FROM tab1
----
207936
737280
8748

query I rowsort
SELECT ( 51 ) AS col1 FROM tab0
----
51
51
51

query I rowsort
SELECT DISTINCT + - 52 AS col2 FROM tab1 AS cor0
----
-52

query I rowsort
SELECT - col1 + - 72 * col1 AS col2 FROM tab0 AS cor0
----
-6278
-6643
-7081

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6270
SELECT + ( col2 ) + CAST( 73 AS SIGNED ) FROM tab1 AS cor0
----
127
130
169

skipif mysql # not compatible
query I rowsort label-6270
SELECT + ( col2 ) + CAST ( 73 AS INTEGER ) FROM tab1 AS cor0
----
127
130
169

query I rowsort
SELECT - ( - col2 ) + + ( - col2 ) FROM tab0
----
0
0
0

query I rowsort
SELECT ALL col0 * col0 * - col1 FROM tab1
----
-234
-40960
-83200

onlyif mysql # use DIV operator for integer division
query I rowsort label-6273
SELECT DISTINCT - - col2 DIV + col1 FROM tab1 AS cor0
----
2
5
7

skipif mysql # not compatible
query I rowsort label-6273
SELECT DISTINCT - - col2 / + col1 FROM tab1 AS cor0
----
2
5
7

query I rowsort
SELECT DISTINCT 0 * - col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT 34 * + col1 AS col0 FROM tab1 AS cor0
----
340
442
884

query I rowsort
SELECT col1 + + col2 * col2 * - col2 AS col1 FROM tab2 cor0
----
-17517
-19652
-54855

onlyif mysql # use DIV operator for integer division
query I rowsort label-6277
SELECT col0 DIV cor0.col2 + - col0 AS col1 FROM tab1 AS cor0
----
-3
-63
-80

skipif mysql # not compatible
query I rowsort label-6277
SELECT col0 / cor0.col2 + - col0 AS col1 FROM tab1 AS cor0
----
-3
-63
-80

query I rowsort
SELECT ALL - + col2 * + cor0.col2 + col1 FROM tab1 AS cor0
----
-2890
-3239
-9203

query I rowsort
SELECT DISTINCT - - col2 * - col0 AS col0 FROM tab2 AS cor0
----
-189
-2028
-3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-6280
SELECT DISTINCT + + col0 DIV - cor0.col0 AS col0 FROM tab2 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-6280
SELECT DISTINCT + + col0 / - cor0.col0 AS col0 FROM tab2 cor0
----
-1

query I rowsort
SELECT + col0 * col1 * col1 AS col2 FROM tab0 AS cor0
----
177504
329315
737009

query I rowsort
SELECT ALL - - 43 * col2 FROM tab2 AS cor0
----
1118
1161
1634

onlyif mysql # use DIV operator for integer division
query I rowsort label-6283
SELECT col1 * - col0 DIV + cor0.col0 FROM tab0 cor0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-6283
SELECT col1 * - col0 / + cor0.col0 FROM tab0 cor0
----
-86
-91
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - col1 ) * cor0.col2 + col0 col0 FROM tab2 AS cor0
----
1612
725
844

query I rowsort
SELECT DISTINCT ( - tab0.col2 ) * - col1 + col1 FROM tab0
----
194
2924
7553

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col0 + - col1 col1 FROM tab0
----
1128
490
7830

query I rowsort
SELECT + ( col0 ) * - tab0.col2 + - col1 FROM tab0
----
-132
-7389
-878

query I rowsort
SELECT - 43 - 75 AS col2 FROM tab2
----
-118
-118
-118

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6289
SELECT DISTINCT + CAST( NULL AS SIGNED ) / col1 + col0 * - col0 + col1 col0 FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6289
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / col1 + col0 * - col0 + col1 col0 FROM tab0
----
NULL

query I rowsort
SELECT 18 + - col0 FROM tab1
----
-46
-62
15

query I rowsort
SELECT ALL + ( 59 ) * tab0.col1 + - col0 FROM tab0
----
5050
5280
5688

onlyif mysql # use DIV operator for integer division
query I rowsort label-6292
SELECT DISTINCT - 14 DIV - tab0.col0 FROM tab0, tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6292
SELECT DISTINCT - 14 / - tab0.col0 FROM tab0, tab1 AS cor0
----
0

query I rowsort
SELECT ( - col0 ) * - col1 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT - col1 - cor0.col2 * col1 FROM tab0 AS cor0
----
-194
-2924
-7553

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6295
SELECT CAST( NULL AS SIGNED ) * + 88 - + col0 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6295
SELECT CAST ( NULL AS INTEGER ) * + 88 - + col0 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6296
SELECT + col2 DIV ( + col2 ) + 86 AS col2 FROM tab0 AS cor0
----
87
87
87

skipif mysql # not compatible
query I rowsort label-6296
SELECT + col2 / ( + col2 ) + 86 AS col2 FROM tab0 AS cor0
----
87
87
87

query I rowsort
SELECT 2 * 74 FROM tab0 AS cor0
----
148
148
148

query I rowsort
SELECT DISTINCT + + 84 AS col1 FROM tab2 AS cor0
----
84

query I rowsort
SELECT + ( + col2 ) + - col0 FROM tab2 AS cor0
----
-41
-52
20

query I rowsort
SELECT - 96 * - ( + col2 ) - col1 * 21 AS col0 FROM tab2 cor0
----
1257
1941
3291

query I rowsort
SELECT DISTINCT - + ( col0 ) AS col1 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT DISTINCT col2 + - col1 + cor0.col1 FROM tab0 AS cor0
----
1
33
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-6303
SELECT cor0.col1 DIV + ( - 14 ) AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to cf9002ffc94efb2d63003062beca780a

skipif mysql # not compatible
query I rowsort label-6303
SELECT cor0.col1 / + ( - 14 ) AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to cf9002ffc94efb2d63003062beca780a

query I rowsort
SELECT ALL - + ( - col2 ) * - ( - col0 ) FROM tab0 AS cor0
----
35
7298
792

onlyif mysql # use DIV operator for integer division
query I rowsort label-6305
SELECT + + 97 * cor0.col2 + + col1 DIV col0 FROM tab0 AS cor0
----
3204
7955
99

skipif mysql # not compatible
query I rowsort label-6305
SELECT + + 97 * cor0.col2 + + col1 / col0 FROM tab0 AS cor0
----
3204
7955
99

query I rowsort
SELECT 93 * col1 + + col0 * col0 + + cor0.col1 FROM tab2 AS cor0
----
11630
2963
7839

query I rowsort
SELECT col0 + - col2 * - col2 - ( col2 ) AS col0 FROM tab0
----
1080
35
6731

query I rowsort
SELECT DISTINCT - - col0 + + ( + 44 ) * col1 FROM tab2 AS cor0
----
1371
2674
827

query I rowsort
SELECT + - col1 * + 75 FROM tab1 AS cor0
----
-1950
-750
-975

query I rowsort
SELECT ALL - - col0 * col1 + col2 + col1 * - 0 * cor0.col1 FROM tab2 AS cor0
----
1381
244
4628

query I rowsort
SELECT DISTINCT - col2 * + 15 + col0 + cor0.col0 AS col1 FROM tab0 AS cor0
----
-1052
-447
55

query I rowsort
SELECT ALL + 42 AS col0 FROM tab1, tab2, tab2 AS cor0, tab1 AS cor1
----
81 values hashing to 4d49d5ffe533e92cf06d98cb59a19b10

query I rowsort
SELECT col0 - col2 * - cor0.col2 FROM tab2 AS cor0
----
1523
736
754

query I rowsort
SELECT - - ( 47 ) + + cor0.col2 FROM tab2 cor0
----
73
74
85

query I rowsort
SELECT - col0 * col0 * - col0 + + ( col0 ) FROM tab0 AS cor0
----
13848
42910
705058

query I rowsort
SELECT DISTINCT - col1 * 61 AS col0 FROM tab1
----
-1586
-610
-793

onlyif mysql # use DIV operator for integer division
query I rowsort label-6317
SELECT 19 DIV + col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6317
SELECT 19 / + col2 FROM tab1
----
0
0
0

query I rowsort
SELECT - col2 * - 29 * - col1 FROM tab2
----
-18734
-24273
-44486

query I rowsort
SELECT ALL + 99 FROM tab1, tab1 cor0
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db

onlyif mysql # use DIV operator for integer division
query I rowsort label-6320
SELECT ALL col0 DIV col0 col2 FROM tab2
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6320
SELECT ALL col0 / col0 col2 FROM tab2
----
1
1
1

query I rowsort
SELECT + 71 + + 59 * + col0 FROM tab2 cor0
----
4673
4732
484

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 52 col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 7f4ae30893ab330784829711032ae599

query I rowsort
SELECT - - col0 + cor0.col0 * col2 * col0 FROM tab2 AS cor0
----
1330
158262
237237

query I rowsort
SELECT + ( + 11 ) AS col0 FROM tab2
----
11
11
11

query I rowsort
SELECT DISTINCT 8 * col2 AS col1 FROM tab0
----
264
656
8

query I rowsort
SELECT - col1 + + ( 3 * col1 ) FROM tab0 AS cor0
----
172
182
194

query I rowsort
SELECT + col0 * col1 * - ( 87 ) FROM tab0
----
-179568
-295365
-704613

query I rowsort
SELECT + col2 * - tab1.col1 * + 57 + + 80 FROM tab1
----
-32410
-71056
-79948

query I rowsort
SELECT ALL + tab2.col1 AS col1 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 50 * + col0 * 6 col0 FROM tab0
----
10500
26700
7200

query I rowsort
SELECT - 57 * + col2 AS col2 FROM tab0
----
-1881
-4674
-57

query I rowsort
SELECT DISTINCT - tab0.col0 * - 15 AS col0 FROM tab0, tab2 AS cor0
----
1335
360
525

query I rowsort
SELECT ALL - col2 - 6 * col1 AS col2 FROM tab0 cor0
----
-549
-583
-628

query I rowsort
SELECT ( - col2 ) * 69 FROM tab1 AS cor0
----
-3726
-3933
-6624

onlyif mysql # use DIV operator for integer division
query I rowsort label-6335
SELECT + col1 + + col1 DIV 92 FROM tab1 AS cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-6335
SELECT + col1 + + col1 / 92 FROM tab1 AS cor0
----
10
13
26

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 cor0, tab2 cor1, tab2 AS cor2
----
972 values hashing to 163d7732097d78f1cda7f65c2cea5a08

onlyif mysql # use DIV operator for integer division
query I rowsort label-6337
SELECT col1 DIV + 23 FROM tab0 AS cor0
----
3
3
4

skipif mysql # not compatible
query I rowsort label-6337
SELECT col1 / + 23 FROM tab0 AS cor0
----
3
3
4

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6338
SELECT DISTINCT + col0 * CAST( NULL AS SIGNED ) + - 88 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6338
SELECT DISTINCT + col0 * CAST ( NULL AS INTEGER ) + - 88 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL col0 - 95 FROM tab0 AS cor0
----
-6
-60
-71

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6340
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-6340
SELECT ALL - cor0.col1 * CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 * 78 AS col2 FROM tab1 cor0
----
1014
2028
780

query I rowsort
SELECT ALL - + cor0.col1 * ( + 10 + - cor0.col1 * col2 ) FROM tab0 AS cor0
----
243208
678132
8439

query I rowsort
SELECT 59 + col1 AS col1 FROM tab2
----
118
76
90

query I rowsort
SELECT ALL + 5 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 6797d40099023779b89feb627d94a3e7

query I rowsort
SELECT - 6 + - col1 * - col1 FROM tab0
----
7390
8275
9403

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6346
SELECT + + ( + col0 ) * col1 + - CAST( 26 AS SIGNED ) FROM tab1 cor0
----
1014
52
614

skipif mysql # not compatible
query I rowsort label-6346
SELECT + + ( + col0 ) * col1 + - CAST ( 26 AS INTEGER ) FROM tab1 cor0
----
1014
52
614

query I rowsort
SELECT ALL - + col1 * col2 + col0 FROM tab1 AS cor0
----
-1168
-1401
-506

query I rowsort
SELECT + 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-6349
SELECT ALL + CAST( - col1 AS SIGNED ) * col2 FROM tab1 AS cor0
----
-1248
-1404
-570

skipif mysql # not compatible
query I rowsort label-6349
SELECT ALL + CAST ( - col1 AS INTEGER ) * col2 FROM tab1 AS cor0
----
-1248
-1404
-570

onlyif mysql # use DIV operator for integer division
query I rowsort label-6350
SELECT - + col2 DIV 41 AS col1 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6350
SELECT - + col2 / 41 AS col1 FROM tab2 cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6351
SELECT + ( - col0 ) DIV + cor0.col0 + ( col1 ) FROM tab2 AS cor0
----
16
30
58

skipif mysql # not compatible
query I rowsort label-6351
SELECT + ( - col0 ) / + cor0.col0 + ( col1 ) FROM tab2 AS cor0
----
16
30
58

query I rowsort
SELECT - 45 * + 25 FROM tab1 AS cor0
----
-1125
-1125
-1125

query I rowsort
SELECT 79 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f

query I rowsort
SELECT ALL + col1 * + 90 FROM tab2 AS cor0
----
1530
2790
5310

query I rowsort
SELECT DISTINCT + ( col1 ) + col0 AS col1 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT - 43 + col2 * col0 FROM tab1 AS cor0
----
119
3605
7637

query I rowsort
SELECT DISTINCT - 31 - col1 AS col1 FROM tab2 AS cor0
----
-48
-62
-90

query I rowsort
SELECT ALL - col0 + col1 * - col1 FROM tab0 AS cor0
----
-7420
-8370
-9444

query I rowsort
SELECT DISTINCT + + 72 * + col0 + + col2 + + col1 * col1 FROM tab1 cor0
----
4765
6025
946

query I rowsort
SELECT 58 + + col0 AS col0 FROM tab2 cor0
----
136
137
65

query I rowsort
SELECT DISTINCT + 22 * - col2 AS col1 FROM tab1 AS cor0
----
-1188
-1254
-2112

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * col0 * + col1 col1 FROM tab2 AS cor0
----
22831
271518
6727

query I rowsort
SELECT DISTINCT - 26 + - col0 AS col0 FROM tab2 AS cor0
----
-104
-105
-33

query I rowsort
SELECT ALL ( cor0.col0 ) FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

query I rowsort
SELECT col0 + + 48 AS col2 FROM tab1
----
112
128
51

query I rowsort
SELECT DISTINCT col2 + + ( + col0 ) FROM tab2
----
104
117
34

query I rowsort
SELECT - col0 * col1 * col1 + 11 FROM tab0
----
-177493
-329304
-736998

query I rowsort
SELECT DISTINCT 67 * col1 + - col1 * tab0.col2 AS col2 FROM tab0
----
-1365
2924
6402

query I rowsort
SELECT - ( tab0.col2 ) + col1 AS col1 FROM tab0
----
53
9
96

query I rowsort
SELECT ALL + 30 + 24 AS col1 FROM tab2
----
54
54
54

query I rowsort
SELECT DISTINCT - - 77 * + col1 AS col2 FROM tab0 cor0
----
6622
7007
7469

query I rowsort
SELECT + 87 * - col1 + col0 AS col2 FROM tab2 cor0
----
-1400
-2690
-5055

query I rowsort
SELECT DISTINCT + col2 + - col0 * col0 AS col2 FROM tab1 cor0
----
-4039
-6304
45

query I rowsort
SELECT ( + col0 * col0 ) FROM tab1
----
4096
6400
9

query I rowsort
SELECT - 56 + + cor0.col0 FROM tab0 AS cor0
----
-21
-32
33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 50 + + cor0.col1 col1 FROM tab1 AS cor0
----
-24
-37
-40

query I rowsort
SELECT ALL + + col1 - col2 * 4 FROM tab2 AS cor0
----
-135
-45
-77

query I rowsort
SELECT + col2 + - col2 + - col1 AS col1 FROM tab2
----
-17
-31
-59

query I rowsort
SELECT ALL + 37 FROM tab0, tab1 cor0, tab2 AS cor1
----
27 values hashing to c023509f63faa044d654943e6df55ca2

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6380
SELECT col0 - - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6380
SELECT col0 - - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - col0 + col1 * + 26 * col1 AS col2 FROM tab2 AS cor0
----
24993
7593
90584

query I rowsort
SELECT DISTINCT + + col2 + cor0.col0 * col1 * col1 + ( - col0 ) AS col2 FROM tab1 AS cor0
----
13536
2079
6393

query I rowsort
SELECT ALL - col0 - + ( - col2 ) * - col1 AS col2 FROM tab2 AS cor0
----
-1612
-725
-844

query I rowsort
SELECT col2 * - col0 + - 80 + col0 FROM tab1
----
-239
-3664
-7680

query I rowsort
SELECT + cor0.col0 * - cor1.col2 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0, tab0 AS cor1
----
27 values hashing to 730403255d59bd0bae6b3991e182991d

query I rowsort
SELECT - col0 * cor0.col2 * col1 AS col0 FROM tab0 AS cor0
----
-3395
-664118
-68112

query I rowsort
SELECT - - cor0.col1 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775

query I rowsort
SELECT ALL 7 * col2 AS col2 FROM tab0 cor0
----
231
574
7

query I rowsort
SELECT DISTINCT ( + tab2.col2 ) + + col1 FROM tab2
----
55
58
85

query I rowsort
SELECT DISTINCT - 86 * - cor0.col2 AS col2 FROM tab1, tab1 AS cor0
----
4644
4902
8256

query I rowsort
SELECT cor1.col2 FROM tab1, tab2 AS cor0, tab0 AS cor1, tab2 AS cor2
----
81 values hashing to e938777ebffc2e3e9c0cdfaa4f732c05

query I rowsort
SELECT + col1 * col0 * col1 + ( - 71 * cor0.col1 ) AS col2 FROM tab0 AS cor0
----
171398
322428
730548

query I rowsort
SELECT DISTINCT + - col0 + - 29 FROM tab2 AS cor0
----
-107
-108
-36

query I rowsort
SELECT + col2 + 48 * col2 AS col0 FROM tab0 AS cor0
----
1617
4018
49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + col0 ) * col1 + col2 col1 FROM tab0 AS cor0
----
2097
3396
8181

query I rowsort
SELECT DISTINCT + 44 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
44

query I rowsort
SELECT DISTINCT - 19 * col2 AS col1 FROM tab1
----
-1026
-1083
-1824

query I rowsort
SELECT DISTINCT + col2 * col0 - col2 FROM tab0 AS cor0
----
34
7216
759

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - + col2 * - col1 * - CAST ( col0 AS REAL ) + - col1 AS col1 FROM tab0 AS cor0
----
-3492
-664209
-68198

query I rowsort
SELECT DISTINCT + col0 + cor0.col2 * + cor0.col2 + + col2 AS col1 FROM tab2 AS cor0
----
1561
763
780

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6401
SELECT ALL 82 * col1 - + CAST( NULL AS SIGNED ) * - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6401
SELECT ALL 82 * col1 - + CAST ( NULL AS INTEGER ) * - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 82 * - cor0.col1 AS col2 FROM tab0 AS cor0
----
-7052
-7462
-7954

query I rowsort
SELECT DISTINCT + 61 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
61

query I rowsort
SELECT DISTINCT col2 * - col2 + col2 * + col0 - col1 FROM tab0 AS cor0
----
-383
-63
483

query I rowsort
SELECT ALL col1 + + 78 FROM tab0 cor0
----
164
169
175

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6406
SELECT + - cor0.col0 * CAST( NULL AS SIGNED ) - ( + col1 + col0 ) * - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6406
SELECT + - cor0.col0 * CAST ( NULL AS INTEGER ) - ( + col1 + col0 ) * - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6407
SELECT col2 DIV - 6 AS col0 FROM tab2
----
-4
-4
-6

skipif mysql # not compatible
query I rowsort label-6407
SELECT col2 / - 6 AS col0 FROM tab2
----
-4
-4
-6

query I rowsort
SELECT DISTINCT + col1 * - 35 AS col1 FROM tab0
----
-3010
-3185
-3395

query I rowsort
SELECT + 38 * col1 AS col2 FROM tab2 AS cor0
----
1178
2242
646

query I rowsort
SELECT ALL - col2 * col1 + + col2 AS col0 FROM tab2 AS cor0
----
-1508
-608
-810

query I rowsort
SELECT ALL col1 * - col2 * - col0 AS col0 FROM tab2 AS cor0
----
119652
51034
5859

query I rowsort
SELECT ALL + cor0.col0 + - 32 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to a3e6ddf42977e7dd4346970401b92ce3

query I rowsort
SELECT DISTINCT - + 90 AS col2 FROM tab2 AS cor0
----
-90

query I rowsort
SELECT ALL - + 11 * col0 FROM tab2 AS cor0
----
-77
-858
-869

query I rowsort
SELECT ALL 93 * + cor0.col0 FROM tab2 AS cor0
----
651
7254
7347

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - col2 * ( - col0 ) col1 FROM tab0 AS cor0
----
36
7380
825

query I rowsort
SELECT ALL + 93 * - col1 AS col0 FROM tab0 AS cor0
----
-7998
-8463
-9021

query I rowsort
SELECT 18 * col2 FROM tab2 cor0
----
468
486
684

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6419
SELECT ALL ( cor0.col2 ) + CAST( col0 AS SIGNED ) * col1 AS col2 FROM tab2 AS cor0
----
1381
244
4628

skipif mysql # not compatible
query I rowsort label-6419
SELECT ALL ( cor0.col2 ) + CAST ( col0 AS INTEGER ) * col1 AS col2 FROM tab2 AS cor0
----
1381
244
4628

query I rowsort
SELECT ( + tab2.col0 ) + + col0 FROM tab2
----
14
156
158

query I rowsort
SELECT + 96 * + col0 + col0 * + ( + col0 + + col2 ) FROM tab1
----
13888
21760
459

query I rowsort
SELECT DISTINCT + 65 FROM tab1, tab1 AS cor0
----
65

query I rowsort
SELECT ALL 45 + + 86 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 46e8ec4e12e8730d53095dacdfa17e73

query I rowsort
SELECT + ( tab2.col1 ) AS col2 FROM tab2
----
17
31
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-6425
SELECT DISTINCT 16 DIV + col2 AS col2 FROM tab0
----
0
16

skipif mysql # not compatible
query I rowsort label-6425
SELECT DISTINCT 16 / + col2 AS col2 FROM tab0
----
0
16

query I rowsort
SELECT DISTINCT 97 AS col0 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 86 + + col2 col2 FROM tab1 AS cor0
----
140
143
182

query I rowsort
SELECT ALL - - 88 + + cor0.col0 * col2 FROM tab2 AS cor0
----
2116
277
3090

onlyif mysql # use DIV operator for integer division
query I rowsort label-6429
SELECT col2 DIV col0 + col1 AS col2 FROM tab1 AS cor0
----
10
14
44

skipif mysql # not compatible
query I rowsort label-6429
SELECT col2 / col0 + col1 AS col2 FROM tab1 AS cor0
----
10
14
44

query I rowsort
SELECT + - col2 + - ( col2 ) AS col0 FROM tab1 AS cor0
----
-108
-114
-192

query I rowsort
SELECT col0 * - col1 * + col2 AS col0 FROM tab1 AS cor0
----
-36480
-4212
-99840

query I rowsort
SELECT DISTINCT - col0 * tab2.col2 * - col1 FROM tab2
----
119652
51034
5859

query I rowsort
SELECT ALL 93 AS col0 FROM tab2, tab1 cor0, tab2 AS cor1
----
27 values hashing to 85ef191bf1b307f300b3fd49992fcae7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6434
SELECT - ( cor0.col1 ) * col1 + - CAST( NULL AS SIGNED ) col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6434
SELECT - ( cor0.col1 ) * col1 + - CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col1 + - 43 AS col2 FROM tab0
----
-129
-134
-140

query I rowsort
SELECT col1 + ( 42 ) * - tab0.col0 AS col1 FROM tab0
----
-1373
-3647
-922

query I rowsort
SELECT + col1 * ( tab1.col0 + - tab1.col1 ) AS col1 FROM tab1
----
-598
540
871

query I rowsort
SELECT DISTINCT + 44 FROM tab2, tab1 AS cor0
----
44

query I rowsort
SELECT ALL - ( - 51 ) * col2 AS col2 FROM tab1 cor0
----
2754
2907
4896

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - ( - 90 ) col2 FROM tab1 AS cor0
----
90
90
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + 54 * col0 col2 FROM tab1 AS cor0
----
216
3513
4416

query I rowsort
SELECT + + ( cor0.col0 ) * + cor0.col1 + col2 FROM tab0 AS cor0
----
2097
3396
8181

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6443
SELECT CAST( NULL AS SIGNED ) * col2 + + col0 AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6443
SELECT CAST ( NULL AS INTEGER ) * col2 + + col0 AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6444
SELECT + + ( - 30 ) + col0 * 95 DIV cor0.col1 + col2 AS col2 FROM tab1 AS cor0
----
34
635
650

skipif mysql # not compatible
query I rowsort label-6444
SELECT + + ( - 30 ) + col0 * 95 / cor0.col1 + col2 AS col2 FROM tab1 AS cor0
----
34
635
650

onlyif mysql # use DIV operator for integer division
query I rowsort label-6445
SELECT DISTINCT + col2 DIV - col2 col0 FROM tab1 AS cor0
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6445
SELECT DISTINCT + col2 / - col2 col0 FROM tab1 AS cor0
----
-1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6446
SELECT col0 + CAST( NULL AS SIGNED ) * + col0 * col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6446
SELECT col0 + CAST ( NULL AS INTEGER ) * + col0 * col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col1 * ( col0 ) * - col1 AS col2 FROM tab0
----
177504
329315
737009

query I rowsort
SELECT + col0 - - col1 * - col0 AS col0 FROM tab2
----
-1264
-210
-4524

query I rowsort
SELECT + tab0.col1 * 7 + 71 FROM tab0
----
673
708
750

query I rowsort
SELECT ALL cor0.col2 + - col1 * - cor0.col2 FROM tab1 AS cor0
----
1344
1458
627

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 13 col0 FROM tab0 AS cor0
----
-13
-13
-13

query I rowsort
SELECT ALL + ( ( - col2 ) ) AS col2 FROM tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT - + 71 * 79 AS col2 FROM tab1 cor0
----
-5609
-5609
-5609

query I rowsort
SELECT - + col0 * 6 AS col0 FROM tab2 cor0
----
-42
-468
-474

query I rowsort
SELECT - - 9 AS col1 FROM tab0 AS cor0
----
9
9
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-6456
SELECT DISTINCT - - ( + cor0.col1 ) DIV col0 FROM tab0 AS cor0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-6456
SELECT DISTINCT - - ( + cor0.col1 ) / col0 FROM tab0 AS cor0
----
1
2
3

query I rowsort
SELECT DISTINCT - 25 * col0 AS col0 FROM tab2 AS cor0
----
-175
-1950
-1975

query I rowsort
SELECT + - 74 * 24 AS col1 FROM tab0 AS cor0
----
-1776
-1776
-1776

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * cor0.col1 col0 FROM tab1 cor0
----
1248
1404
570

query I rowsort
SELECT ALL + 28 * ( - col1 ) FROM tab0 AS cor0
----
-2408
-2548
-2716

query I rowsort
SELECT ALL + 44 * col0 * - col0 + + col0 AS col0 FROM tab0 AS cor0
----
-25320
-348435
-53865

query I rowsort
SELECT + col1 + + col0 * col0 + - cor0.col1 AS col2 FROM tab2 cor0
----
49
6084
6241

query I rowsort
SELECT + 87 * col2 AS col0 FROM tab0 AS cor0
----
2871
7134
87

onlyif mysql # use DIV operator for integer division
query I rowsort label-6464
SELECT - col1 - tab2.col1 DIV + ( + col2 + col1 ) FROM tab2
----
-17
-31
-59

skipif mysql # not compatible
query I rowsort label-6464
SELECT - col1 - tab2.col1 / + ( + col2 + col1 ) FROM tab2
----
-17
-31
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + col1 + - col2 col0 FROM tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT + 24 * + col2 AS col1 FROM tab1 AS cor0
----
1296
1368
2304

query I rowsort
SELECT + col2 - + cor0.col0 * + 83 FROM tab1 AS cor0
----
-195
-5255
-6544

query I rowsort
SELECT col1 + + col0 * + ( col1 + col0 ) FROM tab2 AS cor0
----
10745
297
7601

query I rowsort
SELECT + col1 + col0 + cor0.col0 AS col0 FROM tab0 AS cor0
----
134
167
269

query I rowsort
SELECT DISTINCT - 96 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-96

query I rowsort
SELECT + col1 * 88 + col1 FROM tab2 AS cor0
----
1513
2759
5251

query I rowsort
SELECT + cor0.col0 * + cor0.col1 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to f2938bee011b8d49dd931b1f9235e7f5

query I rowsort
SELECT - col1 + col2 * 96 + + col0 FROM tab0 AS cor0
----
3106
34
7870

query I rowsort
SELECT + - col2 * 84 AS col0 FROM tab2 AS cor0
----
-2184
-2268
-3192

query I rowsort
SELECT - - cor1.col1 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c61d27a0022e6d022371dc58819ab272

query I rowsort
SELECT cor1.col0 * 79 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ae47f7ae16388914102fbcf1be500efe

query I rowsort
SELECT - cor0.col2 * - col2 + col0 FROM tab1 AS cor0
----
2919
3313
9296

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 * 55 + - ( + col2 ) + col0 col2 FROM tab0 AS cor0
----
4721
5012
5369

query I rowsort
SELECT DISTINCT col0 * 7 + + 70 FROM tab1 AS cor0
----
518
630
91

query I rowsort
SELECT col1 * + col0 + cor0.col1 AS col0 FROM tab2 AS cor0
----
1360
248
4661

query I rowsort
SELECT DISTINCT - + col2 * + cor0.col1 AS col0 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT DISTINCT cor0.col2 + + 96 AS col0 FROM tab0 AS cor0
----
129
178
97

query I rowsort
SELECT - col1 * 16 AS col0 FROM tab1 AS cor0
----
-160
-208
-416

query I rowsort
SELECT ALL col0 + - 46 + col2 * col2 * + ( 70 + + col1 ) AS col0 FROM tab1 AS cor0
----
259938
279893
764962

onlyif mysql # use DIV operator for integer division
query I rowsort label-6485
SELECT - col2 + col1 DIV + cor0.col2 - col2 FROM tab1 AS cor0
----
-108
-114
-192

skipif mysql # not compatible
query I rowsort label-6485
SELECT - col2 + col1 / + cor0.col2 - col2 FROM tab1 AS cor0
----
-108
-114
-192

query I rowsort
SELECT DISTINCT + col0 * cor0.col2 + col0 FROM tab1 AS cor0
----
165
3712
7760

query I rowsort
SELECT 65 * + col2 AS col1 FROM tab1
----
3510
3705
6240

query I rowsort
SELECT 86 FROM tab1, tab0, tab2 cor0
----
27 values hashing to ed1a39c2752ca3723602e4a92c54bbc4

query I rowsort
SELECT ALL 25 - - tab2.col2 FROM tab2
----
51
52
63

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6490
SELECT ALL + cor0.col0 * CAST( NULL AS SIGNED ) + + col1 + - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6490
SELECT ALL + cor0.col0 * CAST ( NULL AS INTEGER ) + + col1 + - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * 33 - - col2 col1 FROM tab1 AS cor0
----
387
525
912

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 - + 47 col1 FROM tab0 cor0
----
-129
-48
-80

query I rowsort
SELECT ALL - ( + cor0.col1 ) * col0 * - col1 FROM tab1 cor0
----
13520
2028
6400

query I rowsort
SELECT ALL - cor0.col0 * col1 * 89 FROM tab1 cor0
----
-56960
-6942
-92560

query I rowsort
SELECT ALL - tab1.col2 + + col0 AS col0 FROM tab1
----
-16
-51
7

query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab0 cor0, tab0 AS cor1, tab0 cor2
----
972 values hashing to 04d825fa29899c3ee2704c26a542267d

query I rowsort
SELECT DISTINCT - + 16 FROM tab0 AS cor0
----
-16

query I rowsort
SELECT - 47 + col0 * col0 * - col2 AS col2 FROM tab1
----
-233519
-533
-614447

onlyif mysql # use DIV operator for integer division
query I rowsort label-6499
SELECT ALL tab2.col2 + + col0 DIV tab2.col1 AS col2 FROM tab2
----
27
27
42

skipif mysql # not compatible
query I rowsort label-6499
SELECT ALL tab2.col2 + + col0 / tab2.col1 AS col2 FROM tab2
----
27
27
42

query I rowsort
SELECT 44 + col0 * col0 AS col0 FROM tab2
----
6128
6285
93

query I rowsort
SELECT ALL ( tab1.col0 ) - 24 AS col2 FROM tab1
----
-21
40
56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * - col0 col1 FROM tab0 AS cor0
----
35
7298
792

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6503
SELECT ALL + - 44 * col0 + CAST( NULL AS DECIMAL ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6503
SELECT ALL + - 44 * col0 + CAST ( NULL AS REAL ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6504
SELECT col1 + - col2 DIV col0 AS col1 FROM tab2
----
17
28
59

skipif mysql # not compatible
query I rowsort label-6504
SELECT col1 + - col2 / col0 AS col1 FROM tab2
----
17
28
59

query I rowsort
SELECT col1 * col2 * col2 + - col1 * col2 FROM tab0
----
0
604422
90816

query I rowsort
SELECT - col2 * + col0 + col1 FROM tab0 cor0
----
-706
-7207
62

query I rowsort
SELECT col2 + - col2 * col2 FROM tab0 WHERE NOT NULL IN ( col1 * col0 )
----

query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) BETWEEN + col0 AND + col1 * col1 * - col1 + col1
----

query I rowsort
SELECT - col2 * + col0 * col0 AS col0 FROM tab2 AS cor0
----
-1323
-158184
-237158

query I rowsort
SELECT col0 + - col0 + - col2 FROM tab2
----
-26
-27
-38

query I rowsort
SELECT - 7 + col2 + col0 * col1 FROM tab2
----
1374
237
4621

query I rowsort
SELECT DISTINCT + - ( col1 ) + col0 FROM tab1 cor0
----
-23
54
67

query I rowsort
SELECT ALL col0 * col2 + + tab1.col2 AS col2 FROM tab1
----
216
3705
7776

query I rowsort
SELECT ALL - + cor0.col0 + col0 AS col1 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6515
SELECT - + col1 + col1 DIV col1 FROM tab0 cor0
----
-85
-90
-96

skipif mysql # not compatible
query I rowsort label-6515
SELECT - + col1 + col1 / col1 FROM tab0 cor0
----
-85
-90
-96

query I rowsort
SELECT DISTINCT + - cor0.col0 * col0 * + col0 + + col0 AS col1 FROM tab1 AS cor0
----
-24
-262080
-511920

query I rowsort
SELECT col0 * - col2 * + col1 AS col2 FROM tab0 cor0
----
-3395
-664118
-68112

query I rowsort
SELECT - col0 FROM tab1 WHERE NOT + col1 < + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col2 FROM tab0 WHERE NOT - col2 IN ( col1 + - col2 )
----
24
35
89

query I rowsort
SELECT DISTINCT + col1 FROM tab0 WHERE NOT col0 BETWEEN NULL AND ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col2 <= ( + col1 )
----
7
31
27
78
59
26

query I rowsort
SELECT ALL - col1 - - col0 FROM tab0 WHERE NOT + col1 <> ( + col1 * + col1 )
----

query I rowsort
SELECT DISTINCT + tab0.col1 + tab0.col1 * col1 FROM tab0
----
7482
8372
9506

query I rowsort
SELECT DISTINCT tab1.col1 + col2 * + col2 AS col2 FROM tab1 WHERE NULL NOT IN ( col0 )
----

query I rowsort
SELECT ALL col1 FROM tab2 WHERE NULL IN ( - col1 + - col1 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-6526
SELECT DISTINCT - col2 DIV col1 + - col1 DIV col2 - - col2 AS col0 FROM tab1
----
52
89

skipif mysql # not compatible
query I rowsort label-6526
SELECT DISTINCT - col2 / col1 + - col1 / col2 - - col2 AS col0 FROM tab1
----
52
89

query I rowsort
SELECT ALL + col1 * - tab1.col1 AS col1 FROM tab1
----
-100
-169
-676

onlyif mysql # use DIV operator for integer division
query I rowsort label-6528
SELECT col0 * tab1.col1 DIV col1 AS col2 FROM tab1
----
3
64
80

skipif mysql # not compatible
query I rowsort label-6528
SELECT col0 * tab1.col1 / col1 AS col2 FROM tab1
----
3
64
80

query I rowsort
SELECT ALL + col2 + col1 - col1 FROM tab0
----
1
33
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 72 * - col2 col2 FROM tab1 AS cor0
----
3888
4104
6912

query I rowsort
SELECT - col0 FROM tab2 WHERE - col0 NOT BETWEEN ( NULL ) AND col0
----

query I rowsort
SELECT col1 * col1 + 62 FROM tab2 AS cor0
----
1023
351
3543

query I rowsort
SELECT - - 81 * col2 + 83 AS col0 FROM tab1 cor0
----
4457
4700
7859

query I rowsort
SELECT col0 * + cor0.col0 + + col1 * col1 FROM tab1 cor0
----
4196
6569
685

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 * + col0 * col0 - col0 IN ( col2 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

query I rowsort
SELECT + col2 * col1 + + tab2.col2 FROM tab2
----
1560
684
864

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE + col1 * col2 + col2 + col2 IN ( + col2 )
----

query I rowsort
SELECT ALL - col2 * tab1.col2 AS col2 FROM tab1
----
-2916
-3249
-9216

query III rowsort
SELECT * FROM tab2 WHERE - col0 * col1 + col0 NOT IN ( + col2 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT IN ( + col1 + col2 * col1 )
----

query I rowsort
SELECT + col2 * col2 + tab2.col1 AS col1 FROM tab2
----
1461
735
760

query I rowsort
SELECT - col1 * col1 AS col2 FROM tab2 WHERE NULL IN ( col1 * tab2.col0 )
----

query I rowsort
SELECT ALL col2 * - col0 FROM tab0 WHERE NULL = ( + col2 * col0 + col2 )
----

query I rowsort
SELECT + tab1.col2 * + col2 + col1 * + col1 * - col1 FROM tab1
----
-14660
2249
7019

query I rowsort
SELECT + col2 * - col0 + - col1 AS col1 FROM tab1 WHERE ( NULL ) < col0 + col0
----

query I rowsort
SELECT - col2 * col2 - col1 AS col0 FROM tab2
----
-1461
-735
-760

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - col2 * - col1 col0 FROM tab0
----
244068
679042
9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * tab0.col2 + + col2 col2 FROM tab0
----
-1056
-6642
0

query I rowsort
SELECT DISTINCT + - col0 + + col0 + - cor0.col2 FROM tab0 AS cor0
----
-1
-33
-82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6551
SELECT DISTINCT + CAST( NULL AS SIGNED ) FROM tab0, tab2 AS cor0, tab1 cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-6551
SELECT DISTINCT + CAST ( NULL AS INTEGER ) FROM tab0, tab2 AS cor0, tab1 cor1
----
NULL

query I rowsort
SELECT col2 + col0 * + col1 * - 79 FROM tab2 AS cor0
----
-106059
-17116
-363532

query I rowsort
SELECT ALL + col2 * col0 + + col1 AS col2 FROM tab2 AS cor0
----
2087
220
3019

query I rowsort
SELECT DISTINCT - - col1 * col2 + - 91 AS col1 FROM tab1 AS cor0
----
1157
1313
479

query I rowsort
SELECT DISTINCT - 57 + tab1.col1 * + col0 - - col2 AS col0 FROM tab1
----
1079
640
75

onlyif mysql # use DIV operator for integer division
query I rowsort label-6556
SELECT 62 DIV + col2 AS col1 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-6556
SELECT 62 / + col2 AS col1 FROM tab1
----
0
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-6557
SELECT - 24 DIV col2 - - 23 FROM tab1
----
23
23
23

skipif mysql # not compatible
query I rowsort label-6557
SELECT - 24 / col2 - - 23 FROM tab1
----
23
23
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab1.col1 * + col0 + + ( col0 + col1 ) col2 FROM tab1
----
107
1133
714

onlyif mysql # use DIV operator for integer division
query I rowsort label-6559
SELECT ALL + col2 * - col0 + 77 * col0 + - col2 DIV - col1 FROM tab2
----
3083
350
3978

skipif mysql # not compatible
query I rowsort label-6559
SELECT ALL + col2 * - col0 + 77 * col0 + - col2 / - col1 FROM tab2
----
3083
350
3978

query I rowsort
SELECT ALL - 54 * - col1 FROM tab2 AS cor0
----
1674
3186
918

query I rowsort
SELECT 19 + tab2.col2 AS col0 FROM tab2
----
45
46
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-6562
SELECT DISTINCT + col0 DIV - col1 + col2 AS col0 FROM tab1
----
51
54
90

skipif mysql # not compatible
query I rowsort label-6562
SELECT DISTINCT + col0 / - col1 + col2 AS col0 FROM tab1
----
51
54
90

query I rowsort
SELECT DISTINCT col2 * ( col0 ) AS col0 FROM tab2
----
189
2028
3002

query I rowsort
SELECT + 17 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 43298e43365fccb5146ea32003753c92

query I rowsort
SELECT - col0 + 7 AS col0 FROM tab2
----
-71
-72
0

query I rowsort
SELECT + 73 - + col0 * col0 FROM tab1 cor0
----
-4023
-6327
64

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6567
SELECT - col0 * 67 + cor0.col2 * CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6567
SELECT - col0 * 67 + cor0.col2 * CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6568
SELECT - - 59 + col1 DIV col2 AS col1 FROM tab0 AS cor0
----
156
60
61

skipif mysql # not compatible
query I rowsort label-6568
SELECT - - 59 + col1 / col2 AS col1 FROM tab0 AS cor0
----
156
60
61

onlyif mysql # use DIV operator for integer division
query I rowsort label-6569
SELECT - cor0.col2 DIV col1 - - col1 FROM tab1 cor0
----
24
5
6

skipif mysql # not compatible
query I rowsort label-6569
SELECT - cor0.col2 / col1 - - col1 FROM tab1 cor0
----
24
5
6

query I rowsort
SELECT DISTINCT + tab1.col2 + col1 AS col2 FROM tab1
----
109
67
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6571
SELECT + + CAST( col2 AS SIGNED ) - - col1 AS col2 FROM tab1 AS cor0
----
109
67
80

skipif mysql # not compatible
query I rowsort label-6571
SELECT + + CAST ( col2 AS INTEGER ) - - col1 AS col2 FROM tab1 AS cor0
----
109
67
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6572
SELECT ALL - cor0.col2 * + ( - col1 ) + - CAST( NULL AS SIGNED ) + 10 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6572
SELECT ALL - cor0.col2 * + ( - col1 ) + - CAST ( NULL AS INTEGER ) + 10 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 54 + col0 * + cor0.col1 FROM tab2 AS cor0
----
1397
271
4656

onlyif mysql # use DIV operator for integer division
query I rowsort label-6574
SELECT ALL + - col2 DIV col0 - cor0.col0 AS col1 FROM tab2 AS cor0
----
-10
-78
-79

skipif mysql # not compatible
query I rowsort label-6574
SELECT ALL + - col2 / col0 - cor0.col0 AS col1 FROM tab2 AS cor0
----
-10
-78
-79

onlyif mysql # use DIV operator for integer division
query I rowsort label-6575
SELECT - + 84 DIV 13 + col0 AS col1 FROM tab2 AS cor0
----
1
72
73

skipif mysql # not compatible
query I rowsort label-6575
SELECT - + 84 / 13 + col0 AS col1 FROM tab2 AS cor0
----
1
72
73

query I rowsort
SELECT DISTINCT ( col1 ) * + col2 * + col1 FROM tab2
----
10982
25947
90506

query I rowsort
SELECT ALL col0 * + 30 FROM tab1
----
1920
2400
90

query I rowsort
SELECT ALL 69 - tab1.col2 FROM tab1
----
-27
12
15

query I rowsort
SELECT ALL - ( col2 * + col0 ) + tab0.col2 * col1 AS col1 FROM tab0
----
164
2046
62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6580
SELECT ALL CAST( - col2 * + col0 AS SIGNED ) AS col2 FROM tab1
----
-162
-3648
-7680

skipif mysql # not compatible
query I rowsort label-6580
SELECT ALL CAST ( - col2 * + col0 AS INTEGER ) AS col2 FROM tab1
----
-162
-3648
-7680

query I rowsort
SELECT ALL col0 + col1 * cor0.col2 FROM tab1 cor0
----
1328
1407
634

query I rowsort
SELECT cor0.col1 * cor0.col0 FROM tab0, tab0 AS cor0
----
9 values hashing to f2938bee011b8d49dd931b1f9235e7f5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 37 col0 FROM tab2 AS cor0
----
-37

query I rowsort
SELECT + ( ( - cor0.col2 ) ) AS col1 FROM tab1 cor0
----
-54
-57
-96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6585
SELECT - CAST( NULL AS SIGNED ) * + col2 AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6585
SELECT - CAST ( NULL AS INTEGER ) * + col2 AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 96 * col0 + - col2 FROM tab1 AS cor0
----
234
6087
7584

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 90 col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 96f7a90428db93f472e0d219bab64853

onlyif mysql # use DIV operator for integer division
query I rowsort label-6588
SELECT DISTINCT + ( - cor0.col2 ) DIV - col1 - + col2 FROM tab1 AS cor0
----
-52
-89

skipif mysql # not compatible
query I rowsort label-6588
SELECT DISTINCT + ( - cor0.col2 ) / - col1 - + col2 FROM tab1 AS cor0
----
-52
-89

query I rowsort
SELECT DISTINCT - 7 * - col1 * col0 AS col1 FROM tab1 AS cor0
----
4480
546
7280

onlyif mysql # use DIV operator for integer division
query I rowsort label-6590
SELECT DISTINCT + col2 * + col0 + - col1 - col2 DIV - col1 AS col0 FROM tab0 AS cor0
----
-62
706
7207

skipif mysql # not compatible
query I rowsort label-6590
SELECT DISTINCT + col2 * + col0 + - col1 - col2 / - col1 AS col0 FROM tab0 AS cor0
----
-62
706
7207

query I rowsort
SELECT + col1 - + cor0.col0 FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT ALL + - 86 + cor0.col2 FROM tab2 AS cor0
----
-48
-59
-60

query I rowsort
SELECT + + col1 * col0 - - cor0.col1 * - col0 * - col1 FROM tab2 AS cor0
----
24174
276120
6944

query I rowsort
SELECT ALL - col2 + col0 * - col0 * + col0 FROM tab2 cor0
----
-370
-474578
-493077

query I rowsort
SELECT ALL 26 + col2 * + col2 AS col1 FROM tab1 AS cor0
----
2942
3275
9242

query I rowsort
SELECT ALL + + col2 + + cor0.col2 - + col2 * + col0 AS col0 FROM tab1 AS cor0
----
-3534
-54
-7488

query I rowsort
SELECT DISTINCT - - 36 AS col1 FROM tab0 AS cor0
----
36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col0 + col2 col1 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT ALL col1 - - 86 AS col1 FROM tab0
----
172
177
183

query I rowsort
SELECT + ( - col2 ) * tab0.col0 AS col0 FROM tab0
----
-35
-7298
-792

query I rowsort
SELECT ALL - + 13 + col0 * col1 AS col2 FROM tab1 AS cor0
----
1027
627
65

query I rowsort
SELECT ALL col1 * ( cor0.col1 ) AS col2 FROM tab0 cor0
----
7396
8281
9409

query I rowsort
SELECT DISTINCT - col1 + ( + col0 ) AS col1 FROM tab0 AS cor0
----
-2
-62

query I rowsort
SELECT DISTINCT + col2 * ( 87 ) AS col1 FROM tab1 AS cor0
----
4698
4959
8352

query I rowsort
SELECT ALL - col0 * - 14 FROM tab2 AS cor0
----
1092
1106
98

query I rowsort
SELECT + col2 + col1 * col1 * - col0 AS col1 FROM tab0 AS cor0
----
-177471
-329314
-736927

query I rowsort
SELECT col0 + - ( col2 ) FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT ALL + + col1 * + ( col2 ) FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT DISTINCT col2 * ( + ( - col2 ) ) * + col0 FROM tab1
----
-207936
-737280
-8748

query I rowsort
SELECT ALL col0 + col1 * - cor0.col1 FROM tab0 AS cor0
----
-7372
-8192
-9374

query I rowsort
SELECT DISTINCT + 39 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
39

query I rowsort
SELECT - + 39 AS col0 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to a08a82dc9276c0173448e9a1c89dba93

query I rowsort
SELECT ALL - col2 + + 23 AS col2 FROM tab1 AS cor0
----
-31
-34
-73

onlyif mysql # use DIV operator for integer division
query I rowsort label-6614
SELECT + - col2 + - cor0.col2 DIV col1 AS col1 FROM tab0 cor0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-6614
SELECT + - col2 + - cor0.col2 / col1 AS col1 FROM tab0 cor0
----
-1
-33
-82

query I rowsort
SELECT ALL col1 * + cor0.col0 + col2 * col1 FROM tab0 AS cor0
----
15561
3492
4902

query I rowsort
SELECT DISTINCT + col1 * - ( col0 ) FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT + col2 + 41 FROM tab0 cor0
----
123
42
74

query I rowsort
SELECT DISTINCT - - col1 * + ( col0 + col1 ) FROM tab2 cor0
----
1178
1632
8083

onlyif mysql # use DIV operator for integer division
query I rowsort label-6619
SELECT ALL + col2 * + col1 * - col1 + - cor0.col0 DIV col1 FROM tab1 AS cor0
----
-16230
-36504
-5706

skipif mysql # not compatible
query I rowsort label-6619
SELECT ALL + col2 * + col1 * - col1 + - cor0.col0 / col1 FROM tab1 AS cor0
----
-16230
-36504
-5706

query I rowsort
SELECT ALL col0 * ( + col1 ) * + col2 FROM tab0
----
3395
664118
68112

query I rowsort
SELECT DISTINCT 13 * col2 + col0 FROM tab1 AS cor0
----
1328
705
805

query I rowsort
SELECT DISTINCT cor0.col0 + cor0.col2 FROM tab1, tab2 AS cor0
----
104
117
34

query I rowsort
SELECT ALL + col0 * 36 AS col0 FROM tab2
----
252
2808
2844

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6624
SELECT - col0 * CAST( NULL AS SIGNED ) + col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6624
SELECT - col0 * CAST ( NULL AS INTEGER ) + col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - + cor0.col0 * col0 AS col2 FROM tab1 AS cor0
----
-4096
-6400
-9

query I rowsort
SELECT DISTINCT + col2 + 25 AS col1 FROM tab0 cor0
----
107
26
58

query I rowsort
SELECT - col2 + col2 + ( cor0.col0 ) AS col2 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT ALL col0 * + 77 + 88 FROM tab2 AS cor0
----
6094
6171
627

query I rowsort
SELECT DISTINCT - col2 * 14 * - col0 FROM tab0 cor0
----
102172
11088
490

query I rowsort
SELECT - col1 + + 26 FROM tab1 cor0
----
0
13
16

onlyif mysql # use DIV operator for integer division
query I rowsort label-6631
SELECT - cor0.col2 * cor0.col0 + - col2 DIV - col0 + - col0 FROM tab0 AS cor0
----
-70
-7387
-815

skipif mysql # not compatible
query I rowsort label-6631
SELECT - cor0.col2 * cor0.col0 + - col2 / - col0 + - col0 FROM tab0 AS cor0
----
-70
-7387
-815

query I rowsort
SELECT ( ( - col0 ) ) * - 54 + col2 * col2 AS col1 FROM tab0 AS cor0
----
11530
1891
2385

query I rowsort
SELECT + ( - col1 ) * col2 AS col0 FROM tab2 cor0
----
-1534
-646
-837

query I rowsort
SELECT - cor0.col0 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 09d8a912de1b8ab762e5ffbe028ce99e

query I rowsort
SELECT - + cor0.col1 * col2 + + ( - col0 ) AS col1 FROM tab1 AS cor0
----
-1328
-1407
-634

query I rowsort
SELECT ALL - col1 * + col0 AS col0 FROM tab1 cor0
----
-1040
-640
-78

onlyif mysql # use DIV operator for integer division
query I rowsort label-6637
SELECT - col0 + + col0 + - col2 DIV tab0.col0 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-6637
SELECT - col0 + + col0 + - col2 / tab0.col0 FROM tab0
----
-1
0
0

query I rowsort
SELECT + col0 * - col1 * col2 AS col1 FROM tab1
----
-36480
-4212
-99840

query I rowsort
SELECT DISTINCT + col1 - cor0.col0 * cor0.col1 FROM tab2 cor0
----
-1326
-186
-4543

query I rowsort
SELECT DISTINCT col1 * col1 + col0 * - col0 AS col1 FROM tab1 AS cor0
----
-3996
-6231
667

query I rowsort
SELECT ALL 83 AS col2 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 002a717a3d902d97220759065fb107c3

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6642
SELECT DISTINCT - ( col2 + + CAST( NULL AS DECIMAL ) ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6642
SELECT DISTINCT - ( col2 + + CAST ( NULL AS REAL ) ) AS col0 FROM tab1
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6643
SELECT - col1 * - col2 - CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6643
SELECT - col1 * - col2 - CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6644
SELECT col1 * col2 DIV + 81 FROM tab1
----
15
17
7

skipif mysql # not compatible
query I rowsort label-6644
SELECT col1 * col2 / + 81 FROM tab1
----
15
17
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-6645
SELECT DISTINCT - 69 DIV 45 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-1

skipif mysql # not compatible
query I rowsort label-6645
SELECT DISTINCT - 69 / 45 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-1

query I rowsort
SELECT + col0 + col1 * + ( col2 ) AS col1 FROM tab2 AS cor0
----
1612
725
844

query I rowsort
SELECT + col2 * col1 * + col1 FROM tab1
----
16224
36504
5700

query I rowsort
SELECT - 49 * 49 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 1416cafc96dde66a11f4a07377fd1219

query I rowsort
SELECT + tab1.col1 AS col1 FROM tab1, tab2, tab0 AS cor0, tab1 AS cor1
----
81 values hashing to d7d3fabcafbed14f0d6ffd37195c971c

query I rowsort
SELECT 73 * - tab1.col0 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to b8ed8ab0baacb8f3308669db8c62d323

query I rowsort
SELECT + col0 + + 53 AS col0 FROM tab0 AS cor0
----
142
77
88

query I rowsort
SELECT + - 32 * cor0.col1 + col2 FROM tab1 cor0
----
-263
-320
-778

query I rowsort
SELECT col1 * + 73 + col0 FROM tab0
----
6302
6732
7116

query I rowsort
SELECT + 85 FROM tab2, tab1 AS cor0, tab2 AS cor1, tab0 AS cor2
----
81 values hashing to 5e8deeabad7bbbaf313fcdcb4adc75eb

query I rowsort
SELECT ( + 56 ) + - col1 FROM tab2 AS cor0
----
-3
25
39

query I rowsort
SELECT DISTINCT - col2 * 24 AS col1 FROM tab0 AS cor0
----
-1968
-24
-792

query I rowsort
SELECT col2 - + col1 * + col0 FROM tab2 AS cor0
----
-1305
-190
-4576

query I rowsort
SELECT DISTINCT 12 * - col0 FROM tab2 AS cor0
----
-84
-936
-948

query I rowsort
SELECT ALL + ( 66 ) FROM tab2 AS cor0
----
66
66
66

query I rowsort
SELECT 20 AS col0 FROM tab0 cor0
----
20
20
20

query I rowsort
SELECT ALL + 88 * col2 * col2 AS col2 FROM tab2 cor0
----
127072
59488
64152

query I rowsort
SELECT ( - 11 ) * + col2 FROM tab1
----
-1056
-594
-627

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col2 * col1 col2 FROM tab0
----
244068
679042
9409

query I rowsort
SELECT - cor0.col2 * + col0 + col1 + + 42 FROM tab0 AS cor0
----
-664
-7165
104

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col0 + + cor0.col2 col2 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT ALL + - 69 * + col0 AS col1 FROM tab0 cor0
----
-1656
-2415
-6141

query I rowsort
SELECT + col2 * - col1 + - 13 AS col0 FROM tab2 AS cor0
----
-1547
-659
-850

onlyif mysql # use DIV operator for integer division
query I rowsort label-6668
SELECT ALL - 45 DIV + tab0.col0 + - col2 FROM tab0
----
-2
-34
-82

skipif mysql # not compatible
query I rowsort label-6668
SELECT ALL - 45 / + tab0.col0 + - col2 FROM tab0
----
-2
-34
-82

query I rowsort
SELECT ALL + tab1.col0 + - ( col1 ) AS col2 FROM tab1
----
-23
54
67

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6670
SELECT - col2 + - CAST( + col1 AS SIGNED ) * col1 AS col1 FROM tab1 AS cor0
----
-157
-265
-730

skipif mysql # not compatible
query I rowsort label-6670
SELECT - col2 + - CAST ( + col1 AS INTEGER ) * col1 AS col1 FROM tab1 AS cor0
----
-157
-265
-730

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col1 col2 FROM tab1, tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT DISTINCT col2 + ( - col0 ) FROM tab1 AS cor0
----
-7
16
51

query I rowsort
SELECT DISTINCT col2 + - col1 * + col2 * + col2 FROM tab2 AS cor0
----
-22572
-24510
-39858

query I rowsort
SELECT ALL cor0.col0 * + ( + col0 ) + col1 * + col1 + - col1 * + col2 FROM tab2 AS cor0
----
173
5884
8031

query I rowsort
SELECT - cor0.col2 * - 68 FROM tab2 cor0
----
1768
1836
2584

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6676
SELECT DISTINCT + col1 * - col0 + - col0 * col1 / CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6676
SELECT DISTINCT + col1 * - col0 + - col0 * col1 / CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL ( - col0 ) * + ( col2 ) + col2 AS col0 FROM tab1
----
-108
-3591
-7584

query I rowsort
SELECT ( + col2 ) + - col2 AS col0 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL ( - col0 ) + ( - col2 ) * + col2 FROM tab2
----
-1523
-736
-754

query I rowsort
SELECT ALL 92 FROM tab0 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab0 AS cor2
----
81 values hashing to cfcf012ce1a8dd60a7428b4ef6b95843

query I rowsort
SELECT - 42 FROM tab1 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab0 AS cor2
----
81 values hashing to 9fa3c02ecae23525dd0e284c4751c1df

query I rowsort
SELECT + cor0.col1 + + 34 AS col2 FROM tab2 AS cor0
----
51
65
93

query I rowsort
SELECT DISTINCT col2 * ( - 99 * + col1 ) AS col2 FROM tab2
----
-151866
-63954
-82863

query I rowsort
SELECT ALL + + col0 * 64 * + col1 + col1 * col2 FROM tab1 AS cor0
----
41530
6396
67808

query I rowsort
SELECT col1 + - col0 * col0 AS col2 FROM tab1
----
-4086
-6387
17

query I rowsort
SELECT ALL tab2.col0 * ( 50 ) * col0 AS col1 FROM tab2
----
2450
304200
312050

query I rowsort
SELECT DISTINCT + - 79 * + cor0.col1 + + col0 FROM tab2 AS cor0
----
-1264
-2442
-4583

query I rowsort
SELECT ALL - + col2 * - cor0.col2 AS col0 FROM tab2 cor0
----
1444
676
729

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 + col1 col0 FROM tab1 AS cor0
----
29
74
93

onlyif mysql # use DIV operator for integer division
query I rowsort label-6690
SELECT DISTINCT - col2 + + cor0.col2 DIV - col1 FROM tab1 AS cor0
----
-103
-56
-62

skipif mysql # not compatible
query I rowsort label-6690
SELECT DISTINCT - col2 + + cor0.col2 / - col1 FROM tab1 AS cor0
----
-103
-56
-62

query I rowsort
SELECT ALL + col2 - + 46 AS col2 FROM tab1 AS cor0
----
11
50
8

query I rowsort
SELECT ALL col2 * + col2 + + col0 FROM tab2 AS cor0
----
1523
736
754

query I rowsort
SELECT ALL + 45 * + col0 - - col0 * 41 AS col1 FROM tab2 cor0
----
602
6708
6794

onlyif mysql # use DIV operator for integer division
query I rowsort label-6694
SELECT 23 DIV + cor0.col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 14fcfa6c11198893073049d94262832c

skipif mysql # not compatible
query I rowsort label-6694
SELECT 23 / + cor0.col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 14fcfa6c11198893073049d94262832c

onlyif mysql # use DIV operator for integer division
query I rowsort label-6695
SELECT ALL - 36 DIV + col0 FROM tab2 cor0
----
-5
0
0

skipif mysql # not compatible
query I rowsort label-6695
SELECT ALL - 36 / + col0 FROM tab2 cor0
----
-5
0
0

query I rowsort
SELECT + + 86 * col0 AS col1 FROM tab1 AS cor0
----
258
5504
6880

query I rowsort
SELECT DISTINCT - + col0 + - col2 AS col0 FROM tab2 AS cor0
----
-104
-117
-34

query I rowsort
SELECT ALL - - 1 + 84 * - col0 FROM tab1 AS cor0
----
-251
-5375
-6719

query I rowsort
SELECT ALL 39 + + col0 FROM tab2 cor0
----
117
118
46

onlyif mysql # use DIV operator for integer division
query I rowsort label-6700
SELECT ALL col2 + col0 DIV + tab0.col2 AS col0 FROM tab0
----
33
36
83

skipif mysql # not compatible
query I rowsort label-6700
SELECT ALL col2 + col0 / + tab0.col2 AS col0 FROM tab0
----
33
36
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 68 * col2 col2 FROM tab0 AS cor0
----
2244
5576
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + col1 * col1 col1 FROM tab0
----
7420
8370
9444

query I rowsort
SELECT DISTINCT + + 96 + + col1 * col2 * cor0.col2 FROM tab1 AS cor0
----
119904
32586
75912

query I rowsort
SELECT ALL + + 76 AS col2 FROM tab2 AS cor0
----
76
76
76

query I rowsort
SELECT - - 46 * col2 + - col1 * - col2 AS col1 FROM tab0 cor0
----
11234
143
4356

query I rowsort
SELECT cor0.col2 * + col0 + + 58 FROM tab0 AS cor0
----
7356
850
93

query I rowsort
SELECT - 6 - + col2 FROM tab2 AS cor0
----
-32
-33
-44

query I rowsort
SELECT ALL 59 + - col2 * col1 FROM tab0 cor0
----
-2779
-38
-7403

query I rowsort
SELECT ALL - ( + cor0.col2 ) * - 42 AS col0 FROM tab0 AS cor0
----
1386
3444
42

query I rowsort
SELECT + col2 * + col0 + 93 AS col1 FROM tab0 AS cor0
----
128
7391
885

onlyif mysql # use DIV operator for integer division
query I rowsort label-6711
SELECT ALL + + 47 DIV col1 AS col1 FROM tab2 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-6711
SELECT ALL + + 47 / col1 AS col1 FROM tab2 AS cor0
----
0
1
2

query I rowsort
SELECT DISTINCT col2 * + 83 + ( col0 ) FROM tab0 cor0
----
118
2763
6895

query I rowsort
SELECT 41 AS col0 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to f6a440b478f0d00f8326a8c51fe094b8

query I rowsort
SELECT ALL - col0 * 78 FROM tab0 AS cor0
----
-1872
-2730
-6942

query I rowsort
SELECT ALL - col0 + + ( col1 ) AS col2 FROM tab0 AS cor0
----
2
62
62

query I rowsort
SELECT DISTINCT + col1 - + col1 * 73 AS col2 FROM tab0 cor0
----
-6192
-6552
-6984

onlyif mysql # use DIV operator for integer division
query I rowsort label-6717
SELECT DISTINCT - col0 DIV - col1 + col2 - col1 AS col1 FROM tab1 AS cor0
----
28
53
89

skipif mysql # not compatible
query I rowsort label-6717
SELECT DISTINCT - col0 / - col1 + col2 - col1 AS col1 FROM tab1 AS cor0
----
28
53
89

query I rowsort
SELECT + cor0.col0 + col2 * + 44 + col2 FROM tab0 AS cor0
----
1509
3779
80

query I rowsort
SELECT DISTINCT + col2 + col1 * - col0 AS col2 FROM tab0 AS cor0
----
-2031
-3394
-8017

query I rowsort
SELECT col1 * - 59 AS col1 FROM tab2
----
-1003
-1829
-3481

query I rowsort
SELECT - 70 AS col0 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to c2a2994a4e94583683ccda2cc098c58f

query I rowsort
SELECT + ( col2 * col1 ) + col1 AS col2 FROM tab1
----
1261
1430
580

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( col1 ) + - col0 col2 FROM tab0
----
2
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-6724
SELECT col0 DIV 34 FROM tab1
----
0
1
2

skipif mysql # not compatible
query I rowsort label-6724
SELECT col0 / 34 FROM tab1
----
0
1
2

query I rowsort
SELECT DISTINCT - ( - col0 ) + + col0 FROM tab2 AS cor0
----
14
156
158

query I rowsort
SELECT + col2 + + col1 - + col2 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT 65 FROM tab2 cor0
----
65
65
65

query I rowsort
SELECT - - 80 * cor0.col1 + cor0.col2 * ( col2 ) FROM tab0 cor0
----
14004
7761
7969

query I rowsort
SELECT + + col2 + cor0.col0 * - col1 FROM tab2 AS cor0
----
-1305
-190
-4576

query I rowsort
SELECT - - col2 * + cor0.col0 AS col1 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT - - 10 * - col2 - + cor0.col1 FROM tab0 AS cor0
----
-107
-416
-911

query I rowsort
SELECT 92 * col1 FROM tab2 AS cor0
----
1564
2852
5428

query I rowsort
SELECT + + col1 * col2 + col1 AS col1 FROM tab1 AS cor0
----
1261
1430
580

query I rowsort
SELECT - col1 * - 69 FROM tab1 AS cor0
----
1794
690
897

query I rowsort
SELECT cor0.col0 * 38 FROM tab2 AS cor0
----
266
2964
3002

query I rowsort
SELECT ALL 39 + cor0.col1 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to f14be5e697614f746ca275504e06217a

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 27 col0 FROM tab2, tab2 AS cor0
----
-27

onlyif mysql # use DIV operator for integer division
query I rowsort label-6738
SELECT + ( + col1 ) DIV + col2 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6738
SELECT + ( + col1 ) / + col2 AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - col1 + ( + col1 ) * col1 FROM tab0 AS cor0
----
7310
8190
9312

query I rowsort
SELECT - 27 * + col0 AS col1 FROM tab1 AS cor0
----
-1728
-2160
-81

query I rowsort
SELECT ALL + 26 + - col1 + + cor0.col1 * - cor0.col0 AS col0 FROM tab0 AS cor0
----
-2124
-3466
-8164

onlyif mysql # use DIV operator for integer division
query I rowsort label-6742
SELECT 96 * 90 DIV col2 AS col0 FROM tab1 AS cor0
----
151
160
90

skipif mysql # not compatible
query I rowsort label-6742
SELECT 96 * 90 / col2 AS col0 FROM tab1 AS cor0
----
151
160
90

query I rowsort
SELECT + + 98 * 35 FROM tab0 cor0
----
3430
3430
3430

query I rowsort
SELECT DISTINCT + 49 * ( - col2 + + col0 * ( + col0 ) ) FROM tab2 AS cor0
----
1078
296842
303947

query I rowsort
SELECT ALL 46 * + col1 + - col1 FROM tab0 AS cor0
----
3870
4095
4365

onlyif mysql # use DIV operator for integer division
query I rowsort label-6746
SELECT ALL 63 + - col0 + col0 DIV col1 AS col0 FROM tab2 AS cor0
----
-12
-14
56

skipif mysql # not compatible
query I rowsort label-6746
SELECT ALL 63 + - col0 + col0 / col1 AS col0 FROM tab2 AS cor0
----
-12
-14
56

query I rowsort
SELECT col1 * - col1 + col2 * col0 AS col0 FROM tab1 AS cor0
----
-514
3548
7511

query I rowsort
SELECT DISTINCT + 95 * tab2.col1 AS col1 FROM tab2, tab1 AS cor0
----
1615
2945
5605

query I rowsort
SELECT ALL + 29 + tab1.col0 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to f7ec0a15261bc91e76365477e4c3822d

onlyif mysql # use DIV operator for integer division
query I rowsort label-6750
SELECT DISTINCT - 39 DIV - tab1.col2 FROM tab1, tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-6750
SELECT DISTINCT - 39 / - tab1.col2 FROM tab1, tab0 cor0
----
0

query I rowsort
SELECT ALL 55 FROM tab0, tab2 AS cor0
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0

query I rowsort
SELECT - cor0.col2 * - ( 55 ) + col2 FROM tab2 AS cor0
----
1456
1512
2128

query I rowsort
SELECT ALL tab1.col1 + + ( - col1 ) AS col0 FROM tab1
----
0
0
0

query I rowsort
SELECT - - 35 * cor0.col0 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 041bd8a38e4a8610d022df2fab72a685

query I rowsort
SELECT DISTINCT 49 * - col1 * ( + 59 ) AS col1 FROM tab1 AS cor0
----
-28910
-37583
-75166

onlyif mysql # use DIV operator for integer division
query I rowsort label-6756
SELECT ALL - - 15 DIV cor0.col2 AS col1 FROM tab0 AS cor0
----
0
0
15

skipif mysql # not compatible
query I rowsort label-6756
SELECT ALL - - 15 / cor0.col2 AS col1 FROM tab0 AS cor0
----
0
0
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 * - cor0.col0 col0 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT DISTINCT - ( col2 ) * - ( - col1 ) AS col2 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT col1 * col2 * 58 FROM tab1 AS cor0
----
33060
72384
81432

query I rowsort
SELECT ( col1 ) * - col0 AS col1 FROM tab2 AS cor0
----
-1343
-217
-4602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * cor0.col1 col2 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT DISTINCT - col0 + + ( - col2 ) * + col1 FROM tab1 AS cor0
----
-1328
-1407
-634

query I rowsort
SELECT DISTINCT + col0 * col0 * col1 + col2 * - col1 AS col1 FROM tab2 AS cor0
----
105451
357422
682

query I rowsort
SELECT ALL cor0.col1 + col2 AS col2 FROM tab2 cor0
----
55
58
85

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6765
SELECT ALL - cor0.col0 - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6765
SELECT ALL - cor0.col0 - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col1 * 48 + + col1 + col1 * col2 FROM tab0 AS cor0
----
-1204
-4462
3185

query I rowsort
SELECT DISTINCT + col0 * + 68 AS col0 FROM tab2 AS cor0
----
476
5304
5372

query I rowsort
SELECT DISTINCT col0 * 22 AS col2 FROM tab1 AS cor0
----
1408
1760
66

query I rowsort
SELECT ALL col2 * ( 32 ) + col0 AS col2 FROM tab2 cor0
----
1295
871
910

query I rowsort
SELECT + - ( - col0 ) + - col2 AS col2 FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT + + ( - ( col0 ) ) FROM tab2 cor0
----
-7
-78
-79

query I rowsort
SELECT 52 * - col2 FROM tab1
----
-2808
-2964
-4992

query I rowsort
SELECT - cor0.col2 + - col1 * cor0.col0 FROM tab0 AS cor0
----
-2097
-3396
-8181

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + ( cor0.col2 * - col2 ) + - col0 col2 FROM tab1 AS cor0
----
-2922
-3377
-9376

query I rowsort
SELECT DISTINCT col1 + cor0.col2 AS col0 FROM tab1 cor0
----
109
67
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-6776
SELECT DISTINCT + + col2 DIV + ( + col2 ) FROM tab1 cor0
----
1

skipif mysql # not compatible
query I rowsort label-6776
SELECT DISTINCT + + col2 / + ( + col2 ) FROM tab1 cor0
----
1

query I rowsort
SELECT DISTINCT + 49 + + cor0.col1 * col0 AS col0 FROM tab2 cor0
----
1392
266
4651

query I rowsort
SELECT ALL - + col1 * col2 - col2 FROM tab2 AS cor0
----
-1560
-684
-864

query I rowsort
SELECT + + 0 + - col0 FROM tab1 cor0
----
-3
-64
-80

onlyif mysql # use DIV operator for integer division
query I rowsort label-6780
SELECT ALL col1 * col1 DIV - 3 FROM tab1 AS cor0
----
-225
-33
-56

skipif mysql # not compatible
query I rowsort label-6780
SELECT ALL col1 * col1 / - 3 FROM tab1 AS cor0
----
-225
-33
-56

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6781
SELECT ALL - ( - tab2.col2 ) * + tab2.col1 + ( col2 ) * - tab2.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-6781
SELECT ALL - ( - tab2.col2 ) * + tab2.col1 + ( col2 ) * - tab2.col2 + - CAST ( NULL AS INTEGER ) col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 + + tab1.col2 * col0 AS col1 FROM tab1
----
136
3638
7667

query I rowsort
SELECT DISTINCT col0 * cor0.col2 + cor0.col2 FROM tab0 AS cor0
----
36
7380
825

query I rowsort
SELECT DISTINCT + - cor0.col0 + col2 FROM tab1 AS cor0
----
-7
16
51

query I rowsort
SELECT + col0 + col2 * 94 FROM tab1 cor0
----
5079
5422
9104

query I rowsort
SELECT ALL + cor0.col2 * - ( + cor0.col1 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 315ab91f9844de122b0c28cd16e982e4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - col1 ) * + col1 - col1 col2 FROM tab0
----
7310
8190
9312

query I rowsort
SELECT col2 + + col1 * - tab2.col2 FROM tab2
----
-1508
-608
-810

skipif mysql # not compatible
query I rowsort
SELECT + - cor0.col1 + - CAST ( + col0 AS REAL ) * col0 AS col0 FROM tab1 cor0
----
-35
-4106
-6413

query I rowsort
SELECT + + tab0.col0 AS col0 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

onlyif mysql # use DIV operator for integer division
query I rowsort label-6791
SELECT DISTINCT col1 - 9 DIV 30 AS col2 FROM tab2
----
17
31
59

skipif mysql # not compatible
query I rowsort label-6791
SELECT DISTINCT col1 - 9 / 30 AS col2 FROM tab2
----
17
31
59

query I rowsort
SELECT ALL - col1 - 9 FROM tab0
----
-100
-106
-95

query I rowsort
SELECT DISTINCT + 84 + - col0 FROM tab2 cor0
----
5
6
77

query I rowsort
SELECT ALL 88 * - col0 FROM tab0 AS cor0
----
-2112
-3080
-7832

query I rowsort
SELECT + 16 * - col1 + + col2 AS col0 FROM tab0 AS cor0
----
-1343
-1374
-1551

query I rowsort
SELECT - col1 * + ( col2 ) + col1 FROM tab0 AS cor0
----
-2752
-7371
0

query I rowsort
SELECT ALL col2 * 62 + col2 * - col1 AS col0 FROM tab2
----
1710
78
837

query I rowsort
SELECT ALL - tab0.col1 * + col2 + 59 * + tab0.col1 * col2 AS col0 FROM tab0
----
164604
432796
5626

query I rowsort
SELECT + ( col0 ) * cor0.col2 + + 39 FROM tab1 AS cor0
----
201
3687
7719

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * - 11 + col2 col0 FROM tab2 AS cor0
----
-260
-270
-380

query I rowsort
SELECT DISTINCT - col0 + + ( + col2 * - col2 ) - ( cor0.col1 ) AS col1 FROM tab1 cor0
----
-2945
-3323
-9309

query I rowsort
SELECT + 0 * + col2 - col1 FROM tab0 cor0
----
-86
-91
-97

query I rowsort
SELECT - + col1 * - col2 + col2 * col0 AS col2 FROM tab2 AS cor0
----
1026
3562
3648

query I rowsort
SELECT DISTINCT + + 96 + + col1 FROM tab1 AS cor0
----
106
109
122

query I rowsort
SELECT 94 - - ( - cor0.col2 ) * - 50 FROM tab0 AS cor0
----
144
1744
4194

query I rowsort
SELECT ALL col1 * - 87 + col0 * + col0 AS col2 FROM tab2 AS cor0
----
-2648
4762
951

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6807
SELECT + + CAST( 88 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
88
88
88

skipif mysql # not compatible
query I rowsort label-6807
SELECT + + CAST ( 88 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
88
88
88

onlyif mysql # use DIV operator for integer division
query I rowsort label-6808
SELECT ALL - col0 DIV + col2 + - cor0.col1 AS col2 FROM tab0 AS cor0
----
-132
-86
-92

skipif mysql # not compatible
query I rowsort label-6808
SELECT ALL - col0 / + col2 + - cor0.col1 AS col2 FROM tab0 AS cor0
----
-132
-86
-92

query I rowsort
SELECT ALL + col0 + col1 + cor0.col1 * cor0.col1 FROM tab1 AS cor0
----
174
262
705

query I rowsort
SELECT ALL - 71 AS col1 FROM tab2
----
-71
-71
-71

onlyif mysql # use DIV operator for integer division
query I rowsort label-6811
SELECT tab1.col0 DIV cor0.col1 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 77af841bd7e2b33b412ea429368249fa

skipif mysql # not compatible
query I rowsort label-6811
SELECT tab1.col0 / cor0.col1 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 77af841bd7e2b33b412ea429368249fa

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + 70 col1 FROM tab1 AS cor0
----
124
127
166

query I rowsort
SELECT ALL - 61 AS col0 FROM tab1
----
-61
-61
-61

onlyif mysql # use DIV operator for integer division
query I rowsort label-6814
SELECT DISTINCT + col0 DIV ( + ( + col0 ) ) FROM tab2 cor0
----
1

skipif mysql # not compatible
query I rowsort label-6814
SELECT DISTINCT + col0 / ( + ( + col0 ) ) FROM tab2 cor0
----
1

query I rowsort
SELECT + col1 * - 85 * - col1 FROM tab1 AS cor0
----
14365
57460
8500

query I rowsort
SELECT + col0 * - 18 - - col2 FROM tab1 AS cor0
----
-1095
-1344
0

query I rowsort
SELECT 8 * cor0.col2 AS col1 FROM tab2 AS cor0
----
208
216
304

query I rowsort
SELECT + + col0 + + cor0.col0 + + col2 * ( col2 ) FROM tab0 AS cor0
----
1137
6902
71

query I rowsort
SELECT DISTINCT + col2 + - col1 * col2 * col2 AS col2 FROM tab1 cor0
----
-119712
-32433
-75762

query I rowsort
SELECT DISTINCT - + 78 + - col2 * col0 FROM tab1 AS cor0
----
-240
-3726
-7758

query I rowsort
SELECT DISTINCT + ( - cor0.col1 ) + col2 + - 3 AS col0 FROM tab0 AS cor0
----
-12
-56
-99

query I rowsort
SELECT ALL + col0 + - 68 * col2 AS col1 FROM tab2 cor0
----
-1690
-1829
-2505

query I rowsort
SELECT - 42 + col0 AS col2 FROM tab0 AS cor0
----
-18
-7
47

query I rowsort
SELECT DISTINCT ( + cor0.col2 ) AS col1 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT + + 37 + 4 * col1 + - col1 FROM tab1 AS cor0
----
115
67
76

query I rowsort
SELECT DISTINCT cor0.col2 + col1 * - col1 FROM tab1 AS cor0
----
-43
-622
-73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 * col2 + - 73 col2 FROM tab2 AS cor0
----
1371
603
656

query I rowsort
SELECT - + 55 * col0 FROM tab2 AS cor0
----
-385
-4290
-4345

query I rowsort
SELECT ALL ( - col1 ) * ( col2 ) + col0 AS col2 FROM tab0
----
-2814
-62
-7373

query I rowsort
SELECT + - 39 * col1 * ( cor0.col1 ) AS col2 FROM tab1 AS cor0
----
-26364
-3900
-6591

query I rowsort
SELECT ALL - + 47 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 6942a0d9558277afd0d00408d65cf5aa

query I rowsort
SELECT - cor0.col0 * + col0 * + 2 FROM tab1 cor0
----
-12800
-18
-8192

query I rowsort
SELECT - 76 + col1 * col1 + ( col2 ) FROM tab2 AS cor0
----
251
3431
912

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6834
SELECT + + CAST( col2 AS SIGNED ) * - col1 * col1 FROM tab0 AS cor0
----
-244068
-679042
-9409

skipif mysql # not compatible
query I rowsort label-6834
SELECT + + CAST ( col2 AS INTEGER ) * - col1 * col1 FROM tab0 AS cor0
----
-244068
-679042
-9409

query I rowsort
SELECT + - 9 * + 53 + - col1 + col0 * - col1 * col1 FROM tab2 AS cor0
----
-23325
-272054
-7235

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6836
SELECT + - col1 + col2 * - CAST( col1 AS SIGNED ) FROM tab0 AS cor0
----
-194
-2924
-7553

skipif mysql # not compatible
query I rowsort label-6836
SELECT + - col1 + col2 * - CAST ( col1 AS INTEGER ) FROM tab0 AS cor0
----
-194
-2924
-7553

query I rowsort
SELECT - ( col0 ) * + 75 + - col1 FROM tab2 AS cor0
----
-556
-5909
-5942

query I rowsort
SELECT - 32 + - col2 + - cor0.col2 AS col1 FROM tab1 AS cor0
----
-140
-146
-224

query I rowsort
SELECT 92 * - tab0.col0 * - col2 + tab0.col1 FROM tab0
----
3317
671507
72950

query I rowsort
SELECT ALL - - ( col0 ) AS col1 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT DISTINCT col1 * + 38 AS col2 FROM tab1
----
380
494
988

query I rowsort
SELECT ALL + ( col1 ) * col1 AS col0 FROM tab0
----
7396
8281
9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-6843
SELECT DISTINCT - 82 DIV 36 AS col0 FROM tab0
----
-2

skipif mysql # not compatible
query I rowsort label-6843
SELECT DISTINCT - 82 / 36 AS col0 FROM tab0
----
-2

query I rowsort
SELECT col1 - + col1 AS col1 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT + col0 * - col0 + 82 * col1 AS col0 FROM tab0
----
-459
6476
6729

query I rowsort
SELECT + 18 * + 53 + col0 * + col2 * + cor0.col2 FROM tab1 cor0
----
208890
738234
9702

query I rowsort
SELECT - col0 * ( col1 ) FROM tab0
----
-2064
-3395
-8099

query I rowsort
SELECT - col2 * ( - col2 ) FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT + col0 + + ( col0 ) AS col2 FROM tab1 AS cor0
----
128
160
6

query I rowsort
SELECT ALL - 48 FROM tab1, tab0 AS cor0, tab1 cor1, tab1 AS cor2
----
81 values hashing to 70b0cff913cec85654af0aaf3f5f6d85

query I rowsort
SELECT 64 + 82 FROM tab2
----
146
146
146

query I rowsort
SELECT ALL + - cor0.col2 - col1 FROM tab2 AS cor0
----
-55
-58
-85

query I rowsort
SELECT ALL + 14 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 83e5779d2487d12495e7d816c797264f

query I rowsort
SELECT DISTINCT + cor0.col2 AS col2 FROM tab1, tab2, tab2 AS cor0
----
26
27
38

query I rowsort
SELECT ALL col2 - - col0 * tab0.col1 * tab0.col2 FROM tab0
----
3396
664200
68145

query I rowsort
SELECT + 96 * + col2 FROM tab1
----
5184
5472
9216

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 - tab2.col0 col1 FROM tab2
----
-104
-117
-34

query I rowsort
SELECT ALL + col0 * - ( + col0 ) - + col1 AS col2 FROM tab1 AS cor0
----
-35
-4106
-6413

query I rowsort
SELECT ALL - + col2 + 27 + ( col1 ) AS col0 FROM tab2 AS cor0
----
31
6
60

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6860
SELECT DISTINCT - cor0.col2 - + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6860
SELECT DISTINCT - cor0.col2 - + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + + col0 + - 5 FROM tab2 AS cor0
----
2
73
74

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6862
SELECT ALL - col2 + CAST( - 45 + - col2 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-153
-159
-237

skipif mysql # not compatible
query I rowsort label-6862
SELECT ALL - col2 + CAST ( - 45 + - col2 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-153
-159
-237

query I rowsort
SELECT - col2 + - col1 * - 30 FROM tab2 AS cor0
----
1744
472
903

query I rowsort
SELECT DISTINCT + cor0.col2 + + col2 * + cor0.col2 FROM tab2 cor0
----
1482
702
756

query I rowsort
SELECT DISTINCT + 37 AS col0 FROM tab0
----
37

onlyif mysql # use DIV operator for integer division
query I rowsort label-6866
SELECT DISTINCT col2 DIV col1 - - cor0.col1 col1 FROM tab2 cor0
----
19
31
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6866
SELECT DISTINCT col2 / col1 - - cor0.col1 col1 FROM tab2 cor0
----
19
31
59

query I rowsort
SELECT col0 + - 58 * col1 FROM tab1 AS cor0
----
-1505
-516
-674

query I rowsort
SELECT DISTINCT col2 * - 28 AS col0 FROM tab1 AS cor0
----
-1512
-1596
-2688

query I rowsort
SELECT - col2 * + ( col1 ) AS col1 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT ALL 74 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31

onlyif mysql # use DIV operator for integer division
query I rowsort label-6871
SELECT 2 DIV 90 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-6871
SELECT 2 / 90 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT - cor0.col0 + - ( col2 ) * - cor0.col0 AS col1 FROM tab1 AS cor0
----
159
3584
7600

query I rowsort
SELECT tab1.col2 * - 52 * tab1.col2 FROM tab1
----
-151632
-168948
-479232

onlyif mysql # use DIV operator for integer division
query I rowsort label-6874
SELECT col1 DIV - tab1.col0 AS col1 FROM tab1
----
-8
0
0

skipif mysql # not compatible
query I rowsort label-6874
SELECT col1 / - tab1.col0 AS col1 FROM tab1
----
-8
0
0

query I rowsort
SELECT DISTINCT - 93 FROM tab0, tab1 cor0
----
-93

query I rowsort
SELECT - cor0.col0 + - 78 * col0 + col0 AS col1 FROM tab1 AS cor0
----
-234
-4992
-6240

query I rowsort
SELECT - - col0 + col1 * + col2 * + col1 FROM tab0 AS cor0
----
244092
679131
9444

query I rowsort
SELECT col0 * - ( 56 * - col2 ) AS col2 FROM tab0 cor0
----
1960
408688
44352

query I rowsort
SELECT DISTINCT + - col0 * + 4 AS col2 FROM tab1 AS cor0
----
-12
-256
-320

query I rowsort
SELECT ALL - col2 * ( col1 + col0 ) AS col0 FROM tab0 AS cor0
----
-132
-14760
-3630

query I rowsort
SELECT ALL + col1 + 29 * tab0.col0 AS col2 FROM tab0
----
1112
2672
782

query I rowsort
SELECT - col2 * + 94 + col1 FROM tab2 AS cor0
----
-2385
-2507
-3555

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + 69 col0 FROM tab2 AS cor0
----
107
95
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-6884
SELECT ALL + + 1 + col1 DIV - col0 FROM tab1 AS cor0
----
-7
1
1

skipif mysql # not compatible
query I rowsort label-6884
SELECT ALL + + 1 + col1 / - col0 FROM tab1 AS cor0
----
-7
1
1

query I rowsort
SELECT - col2 * col1 + - col2 FROM tab1 cor0
----
-1344
-1458
-627

onlyif mysql # use DIV operator for integer division
query I rowsort label-6886
SELECT - col1 + + ( col0 ) DIV col0 AS col0 FROM tab2 AS cor0
----
-16
-30
-58

skipif mysql # not compatible
query I rowsort label-6886
SELECT - col1 + + ( col0 ) / col0 AS col0 FROM tab2 AS cor0
----
-16
-30
-58

onlyif mysql # use DIV operator for integer division
query I rowsort label-6887
SELECT DISTINCT col2 * 31 + col0 DIV + col0 + - 68 * col2 AS col0 FROM tab2
----
-1405
-961
-998

skipif mysql # not compatible
query I rowsort label-6887
SELECT DISTINCT col2 * 31 + col0 / + col0 + - 68 * col2 AS col0 FROM tab2
----
-1405
-961
-998

query I rowsort
SELECT DISTINCT - col2 * col2 + col1 AS col1 FROM tab2
----
-1427
-617
-698

query I rowsort
SELECT ALL - tab2.col1 + col0 + 11 FROM tab2
----
-13
30
73

query I rowsort
SELECT - 15 AS col2 FROM tab0 AS cor0
----
-15
-15
-15

query I rowsort
SELECT + + cor0.col0 + + col2 AS col2 FROM tab2 AS cor0
----
104
117
34

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6892
SELECT DISTINCT - col0 + + col0 * CAST( NULL AS DECIMAL ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6892
SELECT DISTINCT - col0 + + col0 * CAST ( NULL AS REAL ) AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6893
SELECT ALL - 11 DIV - col1 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6893
SELECT ALL - 11 / - col1 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT ( col0 ) * + col2 AS col2 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT + ( col2 ) - + col1 FROM tab2
----
-33
-4
21

query I rowsort
SELECT + 74 + col2 * col2 AS col0 FROM tab2
----
1518
750
803

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6897
SELECT - CAST( NULL AS SIGNED ) col0 FROM tab1, tab2, tab2 cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6897
SELECT - CAST ( NULL AS INTEGER ) col0 FROM tab1, tab2, tab2 cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT - 41 * - 97 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 048010f9ef2a3f593bd14d2e6c5c794d

query I rowsort
SELECT DISTINCT 79 * + col0 + + col2 FROM tab2 AS cor0
----
580
6188
6279

onlyif mysql # use DIV operator for integer division
query I rowsort label-6900
SELECT ALL 84 DIV - col0 FROM tab0 AS cor0
----
-2
-3
0

skipif mysql # not compatible
query I rowsort label-6900
SELECT ALL 84 / - col0 FROM tab0 AS cor0
----
-2
-3
0

query I rowsort
SELECT + col1 * tab2.col0 * + col2 + 36 + col1 FROM tab2
----
119747
51087
5926

skipif mysql # not compatible
query I rowsort
SELECT ALL ( - col0 ) - CAST ( - col2 * + col2 AS REAL ) FROM tab1 AS cor0
----
2913
3185
9136

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 6 * - tab2.col2 col2 FROM tab2
----
156
162
228

onlyif mysql # use DIV operator for integer division
query I rowsort label-6904
SELECT ALL cor0.col0 * + cor0.col1 + - 2 DIV + col2 + + col0 DIV - cor0.col2 AS col1 FROM tab1 AS cor0
----
1040
639
78

skipif mysql # not compatible
query I rowsort label-6904
SELECT ALL cor0.col0 * + cor0.col1 + - 2 / + col2 + + col0 / - cor0.col2 AS col1 FROM tab1 AS cor0
----
1040
639
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-6905
SELECT - + ( + cor0.col1 ) + col0 + 92 DIV + col1 AS col0 FROM tab2 AS cor0
----
-22
20
67

skipif mysql # not compatible
query I rowsort label-6905
SELECT - + ( + cor0.col1 ) + col0 + 92 / + col1 AS col0 FROM tab2 AS cor0
----
-22
20
67

query I rowsort
SELECT - 43 AS col2 FROM tab1 AS cor0
----
-43
-43
-43

onlyif mysql # use DIV operator for integer division
query I rowsort label-6907
SELECT - col1 DIV CAST( col1 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6907
SELECT - col1 / CAST ( col1 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-1
-1
-1

query I rowsort
SELECT tab2.col0 + cor0.col1 AS col2 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to e8a110a574ce9d6da24c6814b3fe3d2f

query I rowsort
SELECT 46 + - col0 + - col1 FROM tab2 AS cor0
----
-50
-91
8

query I rowsort
SELECT + col2 * cor0.col1 + + col1 * - cor0.col1 + col1 * + col1 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT - + 6 AS col1 FROM tab0 AS cor0
----
-6
-6
-6

onlyif mysql # use DIV operator for integer division
query I rowsort label-6912
SELECT 91 DIV - col1 AS col1 FROM tab1 cor0
----
-3
-7
-9

skipif mysql # not compatible
query I rowsort label-6912
SELECT 91 / - col1 AS col1 FROM tab1 cor0
----
-3
-7
-9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6913
SELECT - col2 * - col0 + - col0 * CAST( 91 AS SIGNED ) + col1 FROM tab2 AS cor0
----
-417
-4170
-5011

skipif mysql # not compatible
query I rowsort label-6913
SELECT - col2 * - col0 + - col0 * CAST ( 91 AS INTEGER ) + col1 FROM tab2 AS cor0
----
-417
-4170
-5011

query I rowsort
SELECT 53 * + col2 + + col0 + col0 AS col0 FROM tab2 AS cor0
----
1445
1534
2172

query I rowsort
SELECT DISTINCT tab1.col2 + - ( ( col0 ) ) AS col1 FROM tab1
----
-7
16
51

onlyif mysql # use DIV operator for integer division
query I rowsort label-6916
SELECT 77 + + col2 DIV + col0 FROM tab0 AS cor0
----
77
77
78

skipif mysql # not compatible
query I rowsort label-6916
SELECT 77 + + col2 / + col0 FROM tab0 AS cor0
----
77
77
78

query I rowsort
SELECT ALL + col2 + + ( - col1 ) FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT + + col1 + + 40 AS col2 FROM tab1 AS cor0
----
50
53
66

query I rowsort
SELECT - cor0.col2 + cor0.col1 * - col1 FROM tab0 AS cor0
----
-7429
-8363
-9410

query I rowsort
SELECT DISTINCT + 26 * col2 AS col1 FROM tab1 AS cor0
----
1404
1482
2496

query I rowsort
SELECT DISTINCT col2 * - 38 + - col0 AS col2 FROM tab0 AS cor0
----
-1278
-3205
-73

query I rowsort
SELECT + cor0.col2 * 92 AS col1 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 4de6c17fcc1a0cccbdf6fdcb6625efbe

query I rowsort
SELECT - cor0.col0 + cor0.col1 * + 82 AS col2 FROM tab0 AS cor0
----
7028
7373
7919

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * col0 + + col1 col2 FROM tab1 AS cor0
----
188
3658
7693

query I rowsort
SELECT DISTINCT - col0 * + col0 * col1 AS col0 FROM tab0 AS cor0
----
-118825
-49536
-720811

query I rowsort
SELECT DISTINCT + col0 * + col0 * 82 + 34 + col0 AS col1 FROM tab1 AS cor0
----
335970
524914
775

query I rowsort
SELECT + col0 * - 84 + + col0 + 58 AS col0 FROM tab1
----
-191
-5254
-6582

query I rowsort
SELECT ALL + col2 - 3 * tab2.col2 AS col2 FROM tab2
----
-52
-54
-76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + col2 * + cor0.col0 col0 FROM tab0 AS cor0
----
132
7389
878

query I rowsort
SELECT 96 * col2 + - tab0.col1 FROM tab0
----
-1
3082
7781

query I rowsort
SELECT ALL + 89 * ( cor1.col2 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5974e541b41aea5f542ba94c62e331b6

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6932
SELECT ALL col2 + col0 * - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6932
SELECT ALL col2 + col0 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 14 + + col0 FROM tab0 AS cor0
----
10
21
75

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6934
SELECT ALL + col0 + col1 * - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6934
SELECT ALL + col0 + col1 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col2 * col0 + - col2 FROM tab0 cor0
----
-36
-7380
-825

query I rowsort
SELECT 8 + col0 * + 27 AS col0 FROM tab0 AS cor0
----
2411
656
953

onlyif mysql # use DIV operator for integer division
query I rowsort label-6937
SELECT col1 + - col1 DIV col1 FROM tab2 AS cor0
----
16
30
58

skipif mysql # not compatible
query I rowsort label-6937
SELECT col1 + - col1 / col1 FROM tab2 AS cor0
----
16
30
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * + 8 col1 FROM tab1
----
-432
-456
-768

onlyif mysql # use DIV operator for integer division
query I rowsort label-6939
SELECT ALL - 90 DIV + 64 FROM tab0, tab2 cor0
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b

skipif mysql # not compatible
query I rowsort label-6939
SELECT ALL - 90 / + 64 FROM tab0, tab2 cor0
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b

query I rowsort
SELECT + - col0 * + 79 AS col2 FROM tab2 AS cor0
----
-553
-6162
-6241

query I rowsort
SELECT cor0.col1 * cor0.col0 * - ( cor0.col0 ) + ( 66 ) FROM tab2, tab0 AS cor0
----
9 values hashing to 93aec41bec3a5cce3d2cd390262211ce

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6942
SELECT CAST( NULL AS SIGNED ) * 34 + col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6942
SELECT CAST ( NULL AS INTEGER ) * 34 + col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - 12 * - col0 AS col0 FROM tab0 AS cor0
----
-1068
-288
-420

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + 46 ) * cor0.col0 col0 FROM tab2 AS cor0
----
322
3588
3634

query I rowsort
SELECT + ( + col0 ) + col1 * col1 FROM tab2 AS cor0
----
3559
368
968

query I rowsort
SELECT ALL - ( + col0 ) * col2 - - col1 AS col2 FROM tab0 AS cor0
----
-706
-7207
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + ( + col1 ) col0 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT - + col2 * col0 * + col2 + col0 * col1 AS col0 FROM tab1 AS cor0
----
-207296
-736240
-8670

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * cor0.col1 col2 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT DISTINCT col1 * - 33 AS col1 FROM tab2 AS cor0
----
-1023
-1947
-561

query I rowsort
SELECT ALL + - col1 + - ( col1 ) * + cor0.col0 AS col2 FROM tab1 AS cor0
----
-104
-1053
-650

query I rowsort
SELECT DISTINCT col0 * - ( 60 * - col1 ) FROM tab2 AS cor0
----
13020
276120
80580

query I rowsort
SELECT DISTINCT + + col2 * ( col2 ) * - col1 FROM tab2 AS cor0
----
-22599
-24548
-39884

query I rowsort
SELECT ALL + - col2 * 36 * col0 + col2 AS col1 FROM tab2 AS cor0
----
-108034
-6777
-72982

query I rowsort
SELECT + col1 + col2 * - col2 + - col1 AS col0 FROM tab1 AS cor0
----
-2916
-3249
-9216

query I rowsort
SELECT col1 + 71 FROM tab1 cor0
----
81
84
97

query I rowsort
SELECT - - col0 + + col0 + cor0.col1 FROM tab2 cor0
----
175
215
45

query I rowsort
SELECT DISTINCT - col1 * 91 FROM tab1 AS cor0
----
-1183
-2366
-910

onlyif mysql # use DIV operator for integer division
query I rowsort label-6959
SELECT DISTINCT - col0 * 47 DIV - col1 FROM tab1 cor0
----
289
300
5

skipif mysql # not compatible
query I rowsort label-6959
SELECT DISTINCT - col0 * 47 / - col1 FROM tab1 cor0
----
289
300
5

query I rowsort
SELECT ALL - cor0.col2 + cor0.col2 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

onlyif mysql # use DIV operator for integer division
query I rowsort label-6961
SELECT DISTINCT + col0 DIV - col0 - col2 FROM tab2
----
-27
-28
-39

skipif mysql # not compatible
query I rowsort label-6961
SELECT DISTINCT + col0 / - col0 - col2 FROM tab2
----
-27
-28
-39

query I rowsort
SELECT DISTINCT col0 - + tab0.col2 * + col2 FROM tab0
----
-1065
-6635
34

query I rowsort
SELECT col1 * - 79 * + cor0.col2 AS col0 FROM tab0 cor0
----
-224202
-589498
-7663

query I rowsort
SELECT - + col2 - + col1 AS col2 FROM tab1 AS cor0
----
-109
-67
-80

query I rowsort
SELECT DISTINCT col0 * - col2 + + col2 AS col1 FROM tab2 AS cor0
----
-162
-2002
-2964

query I rowsort
SELECT 92 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a

onlyif mysql # use DIV operator for integer division
query I rowsort label-6967
SELECT DISTINCT col1 + + tab0.col2 DIV - col0 FROM tab0
----
85
91
97

skipif mysql # not compatible
query I rowsort label-6967
SELECT DISTINCT col1 + + tab0.col2 / - col0 FROM tab0
----
85
91
97

query I rowsort
SELECT tab1.col2 - 31 FROM tab1
----
23
26
65

query I rowsort
SELECT ALL - - 30 * col2 AS col2 FROM tab1 cor0
----
1620
1710
2880

query I rowsort
SELECT col2 * cor0.col2 + + col2 + col1 FROM tab2 AS cor0
----
1499
761
787

query I rowsort
SELECT ALL tab0.col0 + ( tab0.col2 ) FROM tab0
----
171
36
57

query I rowsort
SELECT DISTINCT + col2 + 36 AS col0 FROM tab1
----
132
90
93

onlyif mysql # use DIV operator for integer division
query I rowsort label-6973
SELECT DISTINCT - col0 * - col2 + - col2 DIV + col2 FROM tab1
----
161
3647
7679

skipif mysql # not compatible
query I rowsort label-6973
SELECT DISTINCT - col0 * - col2 + - col2 / + col2 FROM tab1
----
161
3647
7679

query I rowsort
SELECT + col1 FROM tab2 WHERE NULL < NULL
----

query I rowsort
SELECT ALL col2 * + col0 - - col2 / + col0 AS col0 FROM tab2 WHERE NOT NULL NOT IN ( + col1 * + col1 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 BETWEEN NULL AND ( NULL )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - col2 NOT IN ( col2 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-6978
SELECT col1 DIV tab2.col0 AS col1 FROM tab2
----
0
0
4

skipif mysql # not compatible
query I rowsort label-6978
SELECT col1 / tab2.col0 AS col1 FROM tab2
----
0
0
4

query I rowsort
SELECT ALL + col1 * col2 * - col2 + col0 AS col1 FROM tab1
----
-119728
-32426
-75813

query I rowsort
SELECT DISTINCT col1 * - col1 - col2 FROM tab2
----
-327
-3507
-988

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 42 + col2 + + 48 * 17 * + col0 col1 FROM tab2
----
5781
63716
64544

query I rowsort
SELECT ALL + ( + col2 ) - col1 AS col0 FROM tab1
----
28
47
83

query I rowsort
SELECT ALL + tab0.col0 + + col1 * + 97 AS col2 FROM tab0
----
8366
8916
9444

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( col0 ) + - col0 col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT col0 * - col1 - col0 * - cor0.col2 AS col1 FROM tab1 AS cor0
----
3008
6640
84

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6986
SELECT ALL - CAST( 43 AS SIGNED ) FROM tab1, tab1 AS cor0
----
9 values hashing to ab0c314d2b589ccedb9a875beeb1f86a

skipif mysql # not compatible
query I rowsort label-6986
SELECT ALL - CAST ( 43 AS INTEGER ) FROM tab1, tab1 AS cor0
----
9 values hashing to ab0c314d2b589ccedb9a875beeb1f86a

onlyif mysql # use DIV operator for integer division
query I rowsort label-6987
SELECT DISTINCT + + col2 + col1 DIV col0 FROM tab0 cor0
----
3
36
83

skipif mysql # not compatible
query I rowsort label-6987
SELECT DISTINCT + + col2 + col1 / col0 FROM tab0 cor0
----
3
36
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-6988
SELECT + - cor0.col2 * - col0 - - cor0.col2 DIV + col1 FROM tab0 cor0
----
35
7298
792

skipif mysql # not compatible
query I rowsort label-6988
SELECT + - cor0.col2 * - col0 - - cor0.col2 / + col1 FROM tab0 cor0
----
35
7298
792

query I rowsort
SELECT + 12 * + 8 AS col2 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6990
SELECT + + col1 * - col0 + CAST( - col0 AS SIGNED ) col0 FROM tab0 AS cor0
----
-2088
-3430
-8188

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6990
SELECT + + col1 * - col0 + CAST ( - col0 AS INTEGER ) col0 FROM tab0 AS cor0
----
-2088
-3430
-8188

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6991
SELECT ALL - col0 * col0 * CAST( NULL AS SIGNED ) + cor0.col0 / col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6991
SELECT ALL - col0 * col0 * CAST ( NULL AS INTEGER ) + cor0.col0 / col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - + 91 - + col1 AS col2 FROM tab2 AS cor0
----
-108
-122
-150

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6993
SELECT ALL + col1 + - col0 * - CAST( col2 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
2087
220
3019

skipif mysql # not compatible
query I rowsort label-6993
SELECT ALL + col1 + - col0 * - CAST ( col2 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
2087
220
3019

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col0 * cor0.col2 col2 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT + ( col2 ) * col2 FROM tab2 cor0
----
1444
676
729

query I rowsort
SELECT DISTINCT - cor0.col1 + + col1 AS col2 FROM tab0 cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6997
SELECT DISTINCT 1 * - col1 DIV + col2 AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6997
SELECT DISTINCT 1 * - col1 / + col2 AS col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT - cor0.col0 + col1 * col2 AS col2 FROM tab1 cor0
----
1168
1401
506

query I rowsort
SELECT - col1 * col2 * - ( + tab1.col0 ) FROM tab1
----
36480
4212
99840

query I rowsort
SELECT + + col2 + 62 FROM tab2 AS cor0
----
100
88
89

query I rowsort
SELECT col1 + + ( - col1 ) * - col0 AS col2 FROM tab0 cor0
----
2150
3492
8190

query I rowsort
SELECT col0 * ( + col2 ) + - col0 FROM tab2 AS cor0
----
182
1950
2923

query I rowsort
SELECT - ( + col1 ) + col0 AS col2 FROM tab0 AS cor0
----
-2
-62
-62

query I rowsort
SELECT DISTINCT + 82 * + col0 + col0 * 85 FROM tab2 AS cor0
----
1169
13026
13193

query I rowsort
SELECT DISTINCT + col1 * + cor0.col1 + col1 AS col2 FROM tab1 AS cor0
----
110
182
702

query I rowsort
SELECT ALL - + cor0.col2 - 9 AS col0 FROM tab0 AS cor0
----
-10
-42
-91

query I rowsort
SELECT DISTINCT - col2 * + 29 FROM tab1
----
-1566
-1653
-2784

query I rowsort
SELECT col0 + 71 + + col0 * col2 FROM tab2 AS cor0
----
2177
267
3152

query I rowsort
SELECT DISTINCT - + ( - col0 ) * col1 * col1 AS col0 FROM tab0 AS cor0
----
177504
329315
737009

query I rowsort
SELECT DISTINCT + + ( - ( col1 ) ) AS col0 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT ALL + 26 + 20 * col1 FROM tab2 AS cor0
----
1206
366
646

query I rowsort
SELECT ALL + 52 * - col2 AS col0 FROM tab0 cor0
----
-1716
-4264
-52

query I rowsort
SELECT DISTINCT + col0 * col1 + cor0.col0 * ( - col1 ) AS col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT - + 8 + + col1 FROM tab1 AS cor0
----
18
2
5

query I rowsort
SELECT + ( col1 ) * col1 + - ( - 31 + + col2 ) FROM tab0
----
7394
8230
9439

query I rowsort
SELECT col0 * col2 - col1 AS col1 FROM tab0
----
-62
706
7207

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * col2 * col0 col1 FROM tab0
----
26136
35
598436

onlyif mysql # use DIV operator for integer division
query I rowsort label-7018
SELECT col1 + col2 DIV cor0.col0 + col0 * - 49 AS col2 FROM tab0 cor0
----
-1089
-1618
-4270

skipif mysql # not compatible
query I rowsort label-7018
SELECT col1 + col2 / cor0.col0 + col0 * - 49 AS col2 FROM tab0 cor0
----
-1089
-1618
-4270

query I rowsort
SELECT - - 67 AS col1 FROM tab1 AS cor0
----
67
67
67

query I rowsort
SELECT + col0 + - 10 * - col1 * + col2 FROM tab2 AS cor0
----
15418
6539
8377

query I rowsort
SELECT DISTINCT tab0.col1 * + col2 * - col0 AS col0 FROM tab0
----
-3395
-664118
-68112

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab2.col0 - 5 col1 FROM tab2, tab0 AS cor0
----
9 values hashing to fe0beb7924d117dd1f63e8ac65e15047

query I rowsort
SELECT + tab1.col2 * + 63 * 20 AS col0 FROM tab1
----
120960
68040
71820

query I rowsort
SELECT col0 + - ( - col0 ) AS col2 FROM tab1
----
128
160
6

query I rowsort
SELECT + + 88 * + cor0.col2 * col2 AS col0 FROM tab1 AS cor0
----
256608
285912
811008

query I rowsort
SELECT + col1 * col1 * + 49 + col2 * - col1 * ( 39 ) FROM tab1 cor0
----
-17330
-21632
-40391

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 84 * col0 - 92 col2 FROM tab0 AS cor0
----
1924
2848
7384

onlyif mysql # use DIV operator for integer division
query I rowsort label-7028
SELECT - col0 * + col1 - - cor0.col0 DIV + col1 AS col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

skipif mysql # not compatible
query I rowsort label-7028
SELECT - col0 * + col1 - - cor0.col0 / + col1 AS col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT DISTINCT - col1 + - col2 * - cor0.col2 FROM tab1 AS cor0
----
2890
3239
9203

query I rowsort
SELECT + - 70 + cor0.col2 AS col1 FROM tab1 AS cor0
----
-13
-16
26

query I rowsort
SELECT tab2.col1 - - tab2.col0 FROM tab2
----
137
38
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 21 col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 631fbd1fd929405aba54a22c2a06c757

query I rowsort
SELECT + ( + col0 ) * col0 - 47 * + col1 * - col1 AS col1 FROM tab1 AS cor0
----
14343
31781
8796

query I rowsort
SELECT - 5 * col0 * cor0.col0 AS col0 FROM tab2 AS cor0
----
-245
-30420
-31205

onlyif mysql # use DIV operator for integer division
query I rowsort label-7035
SELECT + col1 DIV + col2 - 16 FROM tab0 AS cor0
----
-14
-15
81

skipif mysql # not compatible
query I rowsort label-7035
SELECT + col1 / + col2 - 16 FROM tab0 AS cor0
----
-14
-15
81

query I rowsort
SELECT col0 * + 51 + col2 FROM tab1 AS cor0
----
207
3321
4176

query I rowsort
SELECT - - cor0.col1 * col2 + + 6 AS col1 FROM tab0 AS cor0
----
103
2844
7468

query I rowsort
SELECT + 12 * col2 AS col0 FROM tab2
----
312
324
456

query I rowsort
SELECT ALL + col0 * ( - 15 + - col1 ) FROM tab0 AS cor0
----
-2424
-3920
-9434

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7040
SELECT DISTINCT - - col1 + + CAST( NULL AS SIGNED ) / + col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7040
SELECT DISTINCT - - col1 + + CAST ( NULL AS INTEGER ) / + col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + col0 + + cor0.col0 + + col0 * - col2 FROM tab0 AS cor0
----
-7120
-744
35

query I rowsort
SELECT ALL + col0 * - col2 + col1 AS col0 FROM tab1 cor0
----
-136
-3638
-7667

query I rowsort
SELECT + col2 * 55 * 36 - col1 FROM tab0 AS cor0
----
162269
1883
65254

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7044
SELECT + col0 * CAST( NULL AS SIGNED ) - col0 col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7044
SELECT + col0 * CAST ( NULL AS INTEGER ) - col0 col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 + - col0 + col1 FROM tab1 AS cor0
----
29
3
77

query I rowsort
SELECT - - 13 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to a90d0f37cec603ae1bc0a60dc7fbaeed

query I rowsort
SELECT DISTINCT - col1 - - tab1.col0 FROM tab1
----
-23
54
67

query I rowsort
SELECT DISTINCT - col0 - + 13 * ( col2 ) AS col0 FROM tab2
----
-358
-416
-573

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab1 AS cor2, tab0 AS cor3
----
3645 values hashing to ac17da4547aa356439ff11568174588c

query I rowsort
SELECT 0 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT col2 - 7 AS col1 FROM tab0 AS cor0
----
-6
26
75

query I rowsort
SELECT - col0 * cor0.col2 + + cor0.col0 AS col0 FROM tab0 AS cor0
----
-7209
-768
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 + - ( - cor0.col2 ) col2 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT + col0 * - 0 + + 23 FROM tab2 AS cor0
----
23
23
23

query I rowsort
SELECT - ( 82 * col2 ) FROM tab2
----
-2132
-2214
-3116

query I rowsort
SELECT DISTINCT tab2.col1 AS col0 FROM tab0, tab1, tab1 cor0, tab2
----
17
31
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab0.col0 col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63

query I rowsort
SELECT - ( - cor0.col1 ) - col2 FROM tab2 AS cor0
----
-21
33
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( ( + col2 ) ) col2 FROM tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT DISTINCT - 79 * - ( + col2 + col2 ) * 74 AS col1 FROM tab1 AS cor0
----
1122432
631368
666444

onlyif mysql # use DIV operator for integer division
query I rowsort label-7061
SELECT DISTINCT + 26 * col1 DIV - col2 AS col0 FROM tab0 AS cor0
----
-2522
-28
-67

skipif mysql # not compatible
query I rowsort label-7061
SELECT DISTINCT + 26 * col1 / - col2 AS col0 FROM tab0 AS cor0
----
-2522
-28
-67

query I rowsort
SELECT ALL 3 + - col1 * col0 FROM tab2 AS cor0
----
-1340
-214
-4599

query I rowsort
SELECT + col2 * + 80 FROM tab2 AS cor0
----
2080
2160
3040

onlyif mysql # use DIV operator for integer division
query I rowsort label-7064
SELECT DISTINCT + 32 + ( + col1 ) DIV CAST( 25 AS SIGNED ) AS col2 FROM tab1
----
32
33

skipif mysql # not compatible
query I rowsort label-7064
SELECT DISTINCT + 32 + ( + col1 ) / CAST ( 25 AS INTEGER ) AS col2 FROM tab1
----
32
33

query I rowsort
SELECT + 12 * col2 AS col1 FROM tab1 AS cor0
----
1152
648
684

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 47 + 6 col2 FROM tab2 AS cor0
----
53

onlyif mysql # use DIV operator for integer division
query I rowsort label-7067
SELECT col2 + cor0.col2 DIV col2 AS col2 FROM tab1 AS cor0
----
55
58
97

skipif mysql # not compatible
query I rowsort label-7067
SELECT col2 + cor0.col2 / col2 AS col2 FROM tab1 AS cor0
----
55
58
97

query I rowsort
SELECT ALL ( 88 ) * + col2 * col1 FROM tab0 AS cor0
----
249744
656656
8536

query I rowsort
SELECT DISTINCT 97 + ( col2 ) AS col2 FROM tab1 AS cor0
----
151
154
193

query I rowsort
SELECT ( - col2 ) * cor0.col0 FROM tab1 AS cor0
----
-162
-3648
-7680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 17 * + col2 * - cor0.col2 col0 FROM tab1 cor0
----
-156672
-49572
-55233

query I rowsort
SELECT + ( - 21 ) FROM tab0 AS cor0
----
-21
-21
-21

query I rowsort
SELECT + col1 * 18 FROM tab2 AS cor0
----
1062
306
558

query I rowsort
SELECT ALL + 51 * + 60 AS col1 FROM tab1 AS cor0
----
3060
3060
3060

query I rowsort
SELECT DISTINCT + 47 AS col1 FROM tab2 AS cor0
----
47

query I rowsort
SELECT ALL - + col1 * - col1 + + ( + 30 ) AS col0 FROM tab1 AS cor0
----
130
199
706

query I rowsort
SELECT ALL - col0 * col0 - - cor0.col2 AS col2 FROM tab1 AS cor0
----
-4039
-6304
45

onlyif mysql # use DIV operator for integer division
query I rowsort label-7078
SELECT ALL - cor0.col1 DIV cor0.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-7078
SELECT ALL - cor0.col1 / cor0.col0 col0 FROM tab2 AS cor0
----
-4
0
0

query I rowsort
SELECT col2 * + col0 + + 6 AS col1 FROM tab1 AS cor0
----
168
3654
7686

query I rowsort
SELECT 35 * - cor1.col0 AS col2 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to b92df373a33b589aa8d3933ecf32178c

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7081
SELECT DISTINCT - - 36 * - col0 + + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7081
SELECT DISTINCT - - 36 * - col0 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( 74 ) col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31

onlyif mysql # use DIV operator for integer division
query I rowsort label-7083
SELECT DISTINCT tab1.col1 DIV + tab1.col0 AS col0 FROM tab1, tab0 AS cor0
----
0
8

skipif mysql # not compatible
query I rowsort label-7083
SELECT DISTINCT tab1.col1 / + tab1.col0 AS col0 FROM tab1, tab0 AS cor0
----
0
8

query I rowsort
SELECT col0 + - 27 FROM tab0
----
-3
62
8

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7085
SELECT + + CAST( + 25 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
25
25
25

skipif mysql # not compatible
query I rowsort label-7085
SELECT + + CAST ( + 25 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
25
25
25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * tab1.col0 * + col0 col2 FROM tab1
----
-262144
-27
-512000

query I rowsort
SELECT tab2.col2 + + col0 AS col1 FROM tab2
----
104
117
34

query I rowsort
SELECT ALL + cor1.col1 FROM tab0 AS cor0 CROSS JOIN tab2, tab2 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

query I rowsort
SELECT ALL - - cor1.col0 + 12 AS col1 FROM tab0, tab0 AS cor0, tab2 AS cor1, tab1, tab0 cor2
----
243 values hashing to 36f810aeeee414ade3ed320716abbd24

query I rowsort
SELECT DISTINCT + 38 AS col2 FROM tab2, tab2 AS cor0
----
38

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7091
SELECT CAST( 34 AS SIGNED ) FROM tab2, tab1, tab2 cor0
----
27 values hashing to 4e2ca147a59e0d5661c28cf3e5431caa

skipif mysql # not compatible
query I rowsort label-7091
SELECT CAST ( 34 AS INTEGER ) FROM tab2, tab1, tab2 cor0
----
27 values hashing to 4e2ca147a59e0d5661c28cf3e5431caa

onlyif mysql # use DIV operator for integer division
query I rowsort label-7092
SELECT ALL + col2 DIV col0 + cor0.col2 FROM tab0 AS cor0
----
1
34
82

skipif mysql # not compatible
query I rowsort label-7092
SELECT ALL + col2 / col0 + cor0.col2 FROM tab0 AS cor0
----
1
34
82

query I rowsort
SELECT + col1 + + 56 AS col0 FROM tab0 AS cor0
----
142
147
153

query I rowsort
SELECT ALL - 79 + col0 + - cor0.col1 FROM tab1 AS cor0
----
-102
-12
-25

query I rowsort
SELECT + ( - 47 ) AS col1 FROM tab1
----
-47
-47
-47

query I rowsort
SELECT DISTINCT + 19 + 46 FROM tab1 AS cor0
----
65

query I rowsort
SELECT DISTINCT - + 79 * + 96 + + col2 + - col2 FROM tab0 AS cor0
----
-7584

query I rowsort
SELECT - cor0.col2 AS col0 FROM tab0, tab2, tab0 AS cor0, tab1
----
81 values hashing to 87af467938ef355540b8de24db1bf3b8

query I rowsort
SELECT DISTINCT 92 * col0 + + tab1.col1 AS col0 FROM tab1
----
302
5898
7373

query I rowsort
SELECT 12 AS col2 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 702478c53caf2f7ebb9fff96d800f5a6

query I rowsort
SELECT ALL - tab0.col0 AS col0 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8

query I rowsort
SELECT + ( - col1 ) * + col2 AS col0 FROM tab1 AS cor0
----
-1248
-1404
-570

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7103
SELECT + col0 * + cor0.col0 + ( + col1 + 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-7103
SELECT + col0 * + cor0.col0 + ( + col1 + 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 DISTINCT ( col2 ) * 21 col2 FROM tab1 AS cor0
----
1134
1197
2016

query I rowsort
SELECT tab1.col2 + col2 * - ( 98 + col2 ) AS col1 FROM tab1
----
-18528
-8154
-8778

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - col1 col0 FROM tab2
----
-137
-38
-96

query I rowsort
SELECT 56 AS col1 FROM tab2, tab0 AS cor0, tab0 cor1
----
27 values hashing to b5ba4b44e3deadce1edb30e76df61200

onlyif mysql # use DIV operator for integer division
query I rowsort label-7108
SELECT DISTINCT + col0 + col0 DIV + 32 FROM tab1 cor0
----
3
66
82

skipif mysql # not compatible
query I rowsort label-7108
SELECT DISTINCT + col0 + col0 / + 32 FROM tab1 cor0
----
3
66
82

query I rowsort
SELECT ALL + + col0 * - col2 + col0 * col1 + 62 AS col2 FROM tab0 AS cor0
----
1334
3422
863

query I rowsort
SELECT + - col1 + 80 AS col0 FROM tab2 AS cor0
----
21
49
63

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7111
SELECT ALL - col0 * CAST( NULL AS SIGNED ) * - col0 + + col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7111
SELECT ALL - col0 * CAST ( NULL AS INTEGER ) * - col0 + + col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-7112
SELECT ALL + col2 * - col0 + - 64 DIV - col0 AS col1 FROM tab1 AS cor0
----
-141
-3647
-7680

skipif mysql # not compatible
query I rowsort label-7112
SELECT ALL + col2 * - col0 + - 64 / - col0 AS col1 FROM tab1 AS cor0
----
-141
-3647
-7680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7113
SELECT col1 * - CAST( NULL AS DECIMAL ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7113
SELECT col1 * - CAST ( NULL AS REAL ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 64 AS col2 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 100c625e45715c20368551989514ba64

query I rowsort
SELECT DISTINCT + + col2 + col2 * - col2 + col0 FROM tab2 AS cor0
----
-1327
-572
-695

query I rowsort
SELECT DISTINCT - col1 * 44 - - 58 FROM tab2 AS cor0
----
-1306
-2538
-690

query I rowsort
SELECT col1 + 90 FROM tab0 AS cor0
----
176
181
187

query I rowsort
SELECT ALL - cor0.col2 * 88 AS col0 FROM tab0 AS cor0
----
-2904
-7216
-88

query I rowsort
SELECT - col2 + + 91 FROM tab2 AS cor0
----
53
64
65

onlyif mysql # use DIV operator for integer division
query I rowsort label-7120
SELECT ALL - col1 DIV ( 51 ) + + col0 * + col1 * col2 FROM tab0 AS cor0
----
3394
664117
68111

skipif mysql # not compatible
query I rowsort label-7120
SELECT ALL - col1 / ( 51 ) + + col0 * + col1 * col2 FROM tab0 AS cor0
----
3394
664117
68111

query I rowsort
SELECT DISTINCT - - cor0.col2 - + 23 * + cor0.col1 FROM tab2 AS cor0
----
-1331
-353
-686

query I rowsort
SELECT - - col1 + ( col0 ) AS col2 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT DISTINCT - col1 * ( col2 ) + col0 AS col2 FROM tab2 AS cor0
----
-1456
-567
-830

onlyif mysql # use DIV operator for integer division
query I rowsort label-7124
SELECT + col0 DIV 99 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7124
SELECT + col0 / 99 FROM tab2
----
0
0
0

query I rowsort
SELECT - + 61 + col1 AS col2 FROM tab0 AS cor0
----
25
30
36

onlyif mysql # use DIV operator for integer division
query I rowsort label-7126
SELECT + + col0 DIV cor0.col2 + col1 FROM tab1 AS cor0
----
11
13
26

skipif mysql # not compatible
query I rowsort label-7126
SELECT + + col0 / cor0.col2 + col1 FROM tab1 AS cor0
----
11
13
26

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7127
SELECT DISTINCT + col2 + ( col0 ) * + CAST( + 99 AS SIGNED ) + tab2.col0 FROM tab2
----
727
7826
7938

skipif mysql # not compatible
query I rowsort label-7127
SELECT DISTINCT + col2 + ( col0 ) * + CAST ( + 99 AS INTEGER ) + tab2.col0 FROM tab2
----
727
7826
7938

query I rowsort
SELECT 17 + col1 + 91 FROM tab1 AS cor0
----
118
121
134

query I rowsort
SELECT - ( tab1.col2 ) * col1 FROM tab1
----
-1248
-1404
-570

query I rowsort
SELECT DISTINCT - - 74 AS col1 FROM tab2, tab2 AS cor0
----
74

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7131
SELECT ALL CAST( NULL AS SIGNED ) AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-7131
SELECT ALL CAST ( NULL AS INTEGER ) AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 4 * + 16 col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 60ab040e931c5c85db7ba19364eacc8e

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 60 col2 FROM tab2, tab2 AS cor0
----
60

query I rowsort
SELECT ALL + 90 + cor0.col0 FROM tab2, tab1, tab2 AS cor0, tab1 AS cor1
----
81 values hashing to 211601bfffeccd350d4f2bbe1c348e8f

query I rowsort
SELECT DISTINCT + col1 * + 40 - - col2 FROM tab1 AS cor0
----
1094
457
616

query I rowsort
SELECT + - ( - cor0.col2 ) * - col0 AS col2 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT + 59 + + 99 * col2 FROM tab1 AS cor0
----
5405
5702
9563

query I rowsort
SELECT ( - col2 ) * + cor0.col2 FROM tab0 AS cor0
----
-1
-1089
-6724

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7139
SELECT tab1.col0 + CAST( 6 AS SIGNED ) col1 FROM tab1
----
70
86
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7139
SELECT tab1.col0 + CAST ( 6 AS INTEGER ) col1 FROM tab1
----
70
86
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 20 * + col0 col1 FROM tab1 AS cor0
----
1280
1600
60

query I rowsort
SELECT + 12 + col1 * tab0.col2 * 88 AS col0 FROM tab0
----
249756
656668
8548

query I rowsort
SELECT ( col1 ) * col1 AS col2 FROM tab0 cor0
----
7396
8281
9409

query I rowsort
SELECT + 72 * + col0 AS col2 FROM tab1 AS cor0
----
216
4608
5760

query I rowsort
SELECT + 22 - col1 * tab0.col2 FROM tab0
----
-2816
-7440
-75

onlyif mysql # use DIV operator for integer division
query I rowsort label-7145
SELECT DISTINCT + 7 DIV tab1.col0 AS col0 FROM tab1
----
0
2

skipif mysql # not compatible
query I rowsort label-7145
SELECT DISTINCT + 7 / tab1.col0 AS col0 FROM tab1
----
0
2

query I rowsort
SELECT DISTINCT + + 97 * - 1 AS col2 FROM tab2 AS cor0
----
-97

query I rowsort
SELECT DISTINCT ( col0 ) * cor0.col1 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT + cor0.col0 - + cor0.col2 * 41 FROM tab2 AS cor0
----
-1100
-1479
-988

query I rowsort
SELECT DISTINCT - 41 + col1 + 46 FROM tab2 AS cor0
----
22
36
64

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7150
SELECT DISTINCT - 49 * col2 / - CAST( NULL AS SIGNED ) + 63 AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7150
SELECT DISTINCT - 49 * col2 / - CAST ( NULL AS INTEGER ) + 63 AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL + col2 * col1 - + col1 AS col2 FROM tab0 cor0
----
0
2752
7371

query I rowsort
SELECT - cor0.col1 * - col2 + - ( col2 ) FROM tab2 AS cor0
----
1508
608
810

onlyif mysql # use DIV operator for integer division
query I rowsort label-7153
SELECT DISTINCT - - col1 DIV col1 FROM tab0 cor0
----
1

skipif mysql # not compatible
query I rowsort label-7153
SELECT DISTINCT - - col1 / col1 FROM tab0 cor0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 51 col1 FROM tab0 AS cor0
----
51

query I rowsort
SELECT col0 * + col1 + col0 - 76 FROM tab0 AS cor0
----
2012
3354
8112

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 55 col2 FROM tab2 AS cor0
----
55

query I rowsort
SELECT DISTINCT 24 * - cor0.col0 + + col2 FROM tab2 AS cor0
----
-141
-1846
-1858

query I rowsort
SELECT DISTINCT - + col1 + + cor0.col2 FROM tab1 cor0
----
28
47
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-7159
SELECT + cor0.col2 - col2 DIV + col0 FROM tab0 AS cor0
----
1
32
82

skipif mysql # not compatible
query I rowsort label-7159
SELECT + cor0.col2 - col2 / + col0 FROM tab0 AS cor0
----
1
32
82

query I rowsort
SELECT + - cor0.col2 * col0 FROM tab0 cor0
----
-35
-7298
-792

query I rowsort
SELECT DISTINCT + tab1.col0 FROM tab1, tab2, tab1 cor0
----
3
64
80

query I rowsort
SELECT DISTINCT - 78 * tab0.col2 + 3 AS col0 FROM tab0, tab2 AS cor0
----
-2571
-6393
-75

query I rowsort
SELECT col1 * + 82 + + col1 * col0 FROM tab1 AS cor0
----
1460
2106
2210

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7164
SELECT col2 * + col1 * + CAST( NULL AS DECIMAL ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7164
SELECT col2 * + col1 * + CAST ( NULL AS REAL ) AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7165
SELECT - col2 * col1 * - CAST( - col0 AS SIGNED ) AS col0 FROM tab2
----
-119652
-51034
-5859

skipif mysql # not compatible
query I rowsort label-7165
SELECT - col2 * col1 * - CAST ( - col0 AS INTEGER ) AS col0 FROM tab2
----
-119652
-51034
-5859

query I rowsort
SELECT cor0.col0 + 81 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to ea42afdc887557ff2686f65be4fdfcf1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7167
SELECT ALL + col0 + - CAST( - col1 AS SIGNED ) * col1 AS col2 FROM tab1 AS cor0
----
164
249
679

skipif mysql # not compatible
query I rowsort label-7167
SELECT ALL + col0 + - CAST ( - col1 AS INTEGER ) * col1 AS col2 FROM tab1 AS cor0
----
164
249
679

onlyif mysql # use DIV operator for integer division
query I rowsort label-7168
SELECT - col1 DIV + 61 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7168
SELECT - col1 / + 61 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - col1 * ( - col1 * + col0 ) AS col2 FROM tab0 AS cor0
----
177504
329315
737009

query I rowsort
SELECT ALL 37 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to a10b03e72860b949bdff53827700a9a8

query I rowsort
SELECT ALL - 60 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 067a4b5daf8747042e3b07ca8459859f

query I rowsort
SELECT ALL ( ( + col1 ) ) * ( 97 ) AS col1 FROM tab2 AS cor0
----
1649
3007
5723

query I rowsort
SELECT ALL + col2 * + 7 FROM tab2
----
182
189
266

query I rowsort
SELECT + cor1.col1 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7175
SELECT ALL - col2 + - CAST( NULL AS SIGNED ) * - col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7175
SELECT ALL - col2 + - CAST ( NULL AS INTEGER ) * - col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 * + ( + ( col2 ) ) + col0 * + 81 AS col1 FROM tab0 AS cor0
----
-253
-894
2738

onlyif mysql # use DIV operator for integer division
query I rowsort label-7177
SELECT ALL 39 DIV col2 - ( col0 + col0 ) * + 55 FROM tab0 AS cor0
----
-2639
-3811
-9790

skipif mysql # not compatible
query I rowsort label-7177
SELECT ALL 39 / col2 - ( col0 + col0 ) * + 55 FROM tab0 AS cor0
----
-2639
-3811
-9790

onlyif mysql # use DIV operator for integer division
query I rowsort label-7178
SELECT DISTINCT + col1 + col2 DIV col0 FROM tab1 AS cor0
----
10
14
44

skipif mysql # not compatible
query I rowsort label-7178
SELECT DISTINCT + col1 + col2 / col0 FROM tab1 AS cor0
----
10
14
44

query I rowsort
SELECT ALL + 13 AS col2 FROM tab1
----
13
13
13

query I rowsort
SELECT DISTINCT cor0.col1 AS col1 FROM tab0, tab1, tab1 AS cor0, tab2
----
10
13
26

query I rowsort
SELECT - cor0.col1 AS col1 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6

query I rowsort
SELECT DISTINCT - col0 + - 60 FROM tab2 AS cor0
----
-138
-139
-67

onlyif mysql # use DIV operator for integer division
query I rowsort label-7183
SELECT - cor0.col1 * col2 DIV col0 FROM tab1 AS cor0
----
-15
-468
-8

skipif mysql # not compatible
query I rowsort label-7183
SELECT - cor0.col1 * col2 / col0 FROM tab1 AS cor0
----
-15
-468
-8

query I rowsort
SELECT DISTINCT + + cor0.col2 + col2 AS col2 FROM tab1 AS cor0
----
108
114
192

onlyif mysql # use DIV operator for integer division
query I rowsort label-7185
SELECT DISTINCT col0 DIV ( + 28 ) FROM tab1
----
0
2

skipif mysql # not compatible
query I rowsort label-7185
SELECT DISTINCT col0 / ( + 28 ) FROM tab1
----
0
2

query I rowsort
SELECT DISTINCT - + col1 * + col0 + + col1 FROM tab1 AS cor0
----
-1027
-52
-630

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7187
SELECT - + col1 * + CAST( + 75 AS SIGNED ) FROM tab1 AS cor0
----
-1950
-750
-975

skipif mysql # not compatible
query I rowsort label-7187
SELECT - + col1 * + CAST ( + 75 AS INTEGER ) FROM tab1 AS cor0
----
-1950
-750
-975

query I rowsort
SELECT - col1 * - 16 AS col0 FROM tab1 AS cor0
----
160
208
416

query I rowsort
SELECT DISTINCT + col0 + 46 * - cor0.col1 FROM tab0 cor0
----
-3932
-4097
-4427

query I rowsort
SELECT ALL + cor0.col0 * 28 AS col0 FROM tab2 AS cor0
----
196
2184
2212

query I rowsort
SELECT ALL col0 * + 3 + col1 AS col1 FROM tab0
----
158
202
358

skipif mysql # not compatible
query I rowsort
SELECT - - CAST ( - col1 AS REAL ) * + col1 + + col2 FROM tab2 AS cor0
----
-251
-3455
-934

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7193
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - col0 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7193
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - col0 AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL - 20 AS col1 FROM tab0 cor0
----
-20
-20
-20

query I rowsort
SELECT ALL - col1 + + cor0.col2 AS col0 FROM tab1 AS cor0
----
28
47
83

skipif mysql # not compatible
query I rowsort
SELECT + CAST ( - col2 AS REAL ) * + col1 + col0 * col1 AS col0 FROM tab0 AS cor0
----
-774
3298
637

onlyif mysql # use DIV operator for integer division
query I rowsort label-7197
SELECT DISTINCT - - 8 * ( col2 ) DIV - col2 AS col2 FROM tab1 AS cor0
----
-8

skipif mysql # not compatible
query I rowsort label-7197
SELECT DISTINCT - - 8 * ( col2 ) / - col2 AS col2 FROM tab1 AS cor0
----
-8

query I rowsort
SELECT DISTINCT - + 51 * - col0 FROM tab0 AS cor0
----
1224
1785
4539

onlyif mysql # use DIV operator for integer division
query I rowsort label-7199
SELECT ALL - - 42 + col0 * + col0 + - col0 DIV ( col1 ) FROM tab2 AS cor0
----
6125
6279
91

skipif mysql # not compatible
query I rowsort label-7199
SELECT ALL - - 42 + col0 * + col0 + - col0 / ( col1 ) FROM tab2 AS cor0
----
6125
6279
91

query I rowsort
SELECT DISTINCT col0 * - 69 * col0 - 37 AS col0 FROM tab0 AS cor0
----
-39781
-546586
-84562

query I rowsort
SELECT DISTINCT + - 14 + col0 AS col1 FROM tab1 AS cor0
----
-11
50
66

query I rowsort
SELECT ALL - - col1 + col2 + - col0 AS col2 FROM tab1 cor0
----
29
3
77

query I rowsort
SELECT - col0 * col2 + col2 FROM tab2 cor0
----
-162
-2002
-2964

query I rowsort
SELECT ALL - 83 + + cor0.col0 FROM tab0 AS cor0
----
-48
-59
6

query I rowsort
SELECT ( col0 * tab1.col2 ) + col2 FROM tab1
----
216
3705
7776

query I rowsort
SELECT DISTINCT ( col0 ) * col1 + 0 AS col0 FROM tab0
----
2064
3395
8099

query I rowsort
SELECT col0 + - 14 AS col1 FROM tab0
----
10
21
75

query I rowsort
SELECT DISTINCT - cor0.col2 + + col0 + 22 * cor0.col1 * cor0.col2 AS col0 FROM tab0 cor0
----
164171
2168
62427

query I rowsort
SELECT + - 37 * col1 + col2 FROM tab0 AS cor0
----
-3149
-3285
-3588

onlyif mysql # use DIV operator for integer division
query I rowsort label-7210
SELECT DISTINCT - col0 * col0 + col1 DIV + col1 AS col2 FROM tab2 AS cor0
----
-48
-6083
-6240

skipif mysql # not compatible
query I rowsort label-7210
SELECT DISTINCT - col0 * col0 + col1 / + col1 AS col2 FROM tab2 AS cor0
----
-48
-6083
-6240

query I rowsort
SELECT ALL 50 FROM tab0 cor0
----
50
50
50

query I rowsort
SELECT ALL - - 62 + col1 - col1 AS col1 FROM tab1 AS cor0
----
62
62
62

query I rowsort
SELECT ALL - col0 - + col1 * col1 AS col1 FROM tab1 AS cor0
----
-164
-249
-679

onlyif mysql # use DIV operator for integer division
query I rowsort label-7214
SELECT cor0.col1 DIV + col1 + cor0.col0 AS col2 FROM tab2 AS cor0
----
79
8
80

skipif mysql # not compatible
query I rowsort label-7214
SELECT cor0.col1 / + col1 + cor0.col0 AS col2 FROM tab2 AS cor0
----
79
8
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-7215
SELECT DISTINCT - col0 DIV col0 + col1 FROM tab0 cor0
----
85
90
96

skipif mysql # not compatible
query I rowsort label-7215
SELECT DISTINCT - col0 / col0 + col1 FROM tab0 cor0
----
85
90
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-7216
SELECT + 73 + + col0 + 17 DIV col0 FROM tab0 AS cor0
----
108
162
97

skipif mysql # not compatible
query I rowsort label-7216
SELECT + 73 + + col0 + 17 / col0 FROM tab0 AS cor0
----
108
162
97

query I rowsort
SELECT - - 13 + - col0 * col0 + - 88 FROM tab2 AS cor0
----
-124
-6159
-6316

query I rowsort
SELECT + 97 * + cor0.col0 + - col2 FROM tab2 cor0
----
652
7540
7625

query I rowsort
SELECT + cor0.col0 * + cor0.col1 AS col0 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT cor0.col1 + - col2 * - col0 * + col0 + + col2 AS col0 FROM tab2 AS cor0
----
1381
158269
237213

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 93 col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-93

query I rowsort
SELECT col0 * 51 * col2 AS col1 FROM tab2 AS cor0
----
103428
153102
9639

onlyif mysql # use DIV operator for integer division
query I rowsort label-7223
SELECT - ( col1 ) * col1 + - cor0.col2 + col2 DIV col0 col2 FROM tab1 AS cor0
----
-157
-264
-712

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7223
SELECT - ( col1 ) * col1 + - cor0.col2 + col2 / col0 col2 FROM tab1 AS cor0
----
-157
-264
-712

query I rowsort
SELECT 6 + + 93 AS col2 FROM tab0 AS cor0
----
99
99
99

query I rowsort
SELECT - 14 * col2 + + col2 + col2 AS col0 FROM tab1 AS cor0
----
-1152
-648
-684

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7226
SELECT + + CAST( NULL AS SIGNED ) FROM tab2, tab2 AS cor0, tab1, tab2 AS cor1
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

skipif mysql # not compatible
query I rowsort label-7226
SELECT + + CAST ( NULL AS INTEGER ) FROM tab2, tab2 AS cor0, tab1, tab2 AS cor1
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 85 col0 FROM tab0, tab1 cor0
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b

query I rowsort
SELECT ALL col2 + + col0 * + col2 + col2 FROM tab1
----
270
3762
7872

query I rowsort
SELECT ALL + 55 FROM tab1, tab1 AS cor0
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0

onlyif mysql # use DIV operator for integer division
query I rowsort label-7230
SELECT 23 DIV 31 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7230
SELECT 23 / 31 AS col2 FROM tab2
----
0
0
0

query I rowsort
SELECT - + 41 + col1 * col1 + 16 AS col0 FROM tab2 AS cor0
----
264
3456
936

query I rowsort
SELECT ALL + ( + col1 ) * - col0 FROM tab0 cor0
----
-2064
-3395
-8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-7233
SELECT DISTINCT 86 DIV cor0.col1 AS col2 FROM tab1 AS cor0
----
3
6
8

skipif mysql # not compatible
query I rowsort label-7233
SELECT DISTINCT 86 / cor0.col1 AS col2 FROM tab1 AS cor0
----
3
6
8

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab0 cor0, tab0 AS cor1, tab0, tab2 cor2
----
3645 values hashing to 61a671f1b5048e339ad9838f68ebbba4

query I rowsort
SELECT 74 * col2 * + cor0.col2 AS col2 FROM tab1 cor0
----
215784
240426
681984

query I rowsort
SELECT DISTINCT 5 * 95 AS col1 FROM tab1
----
475

query I rowsort
SELECT DISTINCT - + ( - ( + col1 ) ) FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT ALL ( - col2 ) * + tab2.col0 AS col2 FROM tab2
----
-189
-2028
-3002

query III rowsort
SELECT * FROM tab1 WHERE NOT ( col0 ) = NULL AND NOT NULL NOT IN ( - col1 / + col2 )
----

query I rowsort
SELECT + col1 * + col1 + + cor0.col0 FROM tab1 AS cor0
----
164
249
679

query I rowsort
SELECT DISTINCT + tab1.col2 * - col2 FROM tab1
----
-2916
-3249
-9216

onlyif mysql # use DIV operator for integer division
query I rowsort label-7242
SELECT tab0.col1 DIV - col0 FROM tab0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-7242
SELECT tab0.col1 / - col0 FROM tab0
----
-1
-2
-3

query I rowsort
SELECT ALL - col1 * - tab1.col2 - + col0 * - col1 AS col0 FROM tab1
----
1210
1482
2288

query I rowsort
SELECT ALL col2 * + tab2.col1 * - col0 AS col2 FROM tab2
----
-119652
-51034
-5859

query I rowsort
SELECT - ( - tab0.col1 ) + + col1 * - col0 AS col1 FROM tab0
----
-1978
-3298
-8008

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 13 * ( col0 ) col2 FROM tab0
----
1157
312
455

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col2 + + col1 col2 FROM tab0 AS cor0
----
132
7389
878

query I rowsort
SELECT - - 74 AS col1 FROM tab1 AS cor0
----
74
74
74

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7249
SELECT CAST( 37 + col2 AS SIGNED ) AS col0 FROM tab0
----
119
38
70

skipif mysql # not compatible
query I rowsort label-7249
SELECT CAST ( 37 + col2 AS INTEGER ) AS col0 FROM tab0
----
119
38
70

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7250
SELECT CAST( ( col0 ) * - col2 AS SIGNED ) FROM tab1
----
-162
-3648
-7680

skipif mysql # not compatible
query I rowsort label-7250
SELECT CAST ( ( col0 ) * - col2 AS INTEGER ) FROM tab1
----
-162
-3648
-7680

query I rowsort
SELECT - col1 * 65 FROM tab1
----
-1690
-650
-845

query I rowsort
SELECT DISTINCT - + col0 * - col2 + cor0.col0 FROM tab2 AS cor0
----
196
2106
3081

onlyif mysql # use DIV operator for integer division
query I rowsort label-7253
SELECT - + col0 DIV + col0 AS col0 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7253
SELECT - + col0 / + col0 AS col0 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ( col0 ) + col0 AS col2 FROM tab1 AS cor0
----
128
160
6

query I rowsort
SELECT ALL - col1 * col1 * - col1 FROM tab2
----
205379
29791
4913

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col2 + col1 < ( NULL )
----

query I rowsort
SELECT col0 AS col2 FROM tab1 WHERE ( col2 + col0 * col0 ) NOT IN ( - col0 / col2 + - col1 + + col1 )
----
3
64
80

query I rowsort
SELECT ALL + col1 * + col1 * col1 AS col0 FROM tab2
----
205379
29791
4913

query I rowsort
SELECT col2 FROM tab0 WHERE NOT NULL = NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-7260
SELECT + col0 + tab1.col2 * col1 DIV + col2 FROM tab1
----
29
74
93

skipif mysql # not compatible
query I rowsort label-7260
SELECT + col0 + tab1.col2 * col1 / + col2 FROM tab1
----
29
74
93

query I rowsort
SELECT ALL + col1 FROM tab0 WHERE NOT NULL = + col0 * col2
----

query I rowsort
SELECT ALL - col2 * + col1 + col2 * col0 FROM tab1
----
-1242
3078
6432

query I rowsort
SELECT - col0 * col2 + - col0 * col2 FROM tab1 AS cor0
----
-15360
-324
-7296

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN ( col0 - + col1 ) AND ( NULL )
----

query I rowsort
SELECT DISTINCT - col1 FROM tab0 WHERE NOT col0 NOT IN ( col2 )
----

query I rowsort
SELECT ALL + col0 AS col2 FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND + col2
----

query I rowsort
SELECT - col1 AS col0 FROM tab2 WHERE NOT ( NULL ) NOT IN ( + col0 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( col2 ) BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col1 FROM tab1 WHERE ( NULL ) = NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NULL = - col2
----

query I rowsort
SELECT col0 * - col2 * col2 + - col2 AS col1 FROM tab0
----
-26169
-36
-598518

query I rowsort
SELECT ALL + tab1.col1 * - tab1.col0 - tab1.col0 AS col1 FROM tab1
----
-1120
-704
-81

query I rowsort
SELECT DISTINCT + tab2.col0 * col0 - col2 AS col2 FROM tab2
----
22
6058
6203

query I rowsort
SELECT DISTINCT col0 * - col1 + + col0 FROM tab2 WHERE col1 <> col2 + + col0
----
-1264
-210
-4524

query I rowsort
SELECT + + cor0.col0 * col1 AS col0 FROM tab2 cor0
----
1343
217
4602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 - + col1 col2 FROM tab0
----
-53
-9
-96

query I rowsort
SELECT - col0 + + col0 + col0 * col0 * - col2 FROM tab1 AS cor0
----
-233472
-486
-614400

query I rowsort
SELECT col2 + + col0 * cor0.col2 FROM tab2 cor0
----
2054
216
3040

query I rowsort
SELECT col1 * + col1 * col0 + col2 FROM tab1 AS cor0
----
13616
2082
6457

query I rowsort
SELECT DISTINCT - col2 * col1 + col2 FROM tab0 AS cor0
----
-2805
-7380
-96

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL <> ( col0 * col1 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-7282
SELECT ALL + col1 + + col1 * - col1 + col0 DIV col1 AS col2 FROM tab2 AS cor0
----
-268
-3421
-930

skipif mysql # not compatible
query I rowsort label-7282
SELECT ALL + col1 + + col1 * - col1 + col0 / col1 AS col2 FROM tab2 AS cor0
----
-268
-3421
-930

query I rowsort
SELECT tab2.col2 * - col1 AS col1 FROM tab2 WHERE col0 * col1 + col1 / col2 <> NULL
----

query I rowsort
SELECT ALL col1 * col2 * col0 + + col2 AS col0 FROM tab2 AS cor0
----
119678
51072
5886

query I rowsort
SELECT DISTINCT 49 * + col1 * + col0 FROM tab1 cor0
----
31360
3822
50960

onlyif mysql # use DIV operator for integer division
query I rowsort label-7286
SELECT ALL - col2 DIV cor0.col2 AS col2 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7286
SELECT ALL - col2 / cor0.col2 AS col2 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT - col0 * col0 + + col2 * - col0 * - cor0.col2 AS col0 FROM tab0 cor0
----
-1190
25560
590515

onlyif mysql # use DIV operator for integer division
query I rowsort label-7288
SELECT col0 DIV - col1 - + ( - col0 * col1 ) FROM tab1
----
1034
634
78

skipif mysql # not compatible
query I rowsort label-7288
SELECT col0 / - col1 - + ( - col0 * col1 ) FROM tab1
----
1034
634
78

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7289
SELECT col1 * - 50 + col0 * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7289
SELECT col1 * - 50 + col0 * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7290
SELECT - CAST( NULL AS SIGNED ) + 50 * + col0 * ( col2 ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7290
SELECT - CAST ( NULL AS INTEGER ) + 50 * + col0 * ( col2 ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 28 * col0 FROM tab2 cor0
----
-196
-2184
-2212

query I rowsort
SELECT DISTINCT - col1 + - 22 * + col0 FROM tab2 AS cor0
----
-1755
-1775
-185

query I rowsort
SELECT DISTINCT + + 94 + 20 * + col1 FROM tab2 AS cor0
----
1274
434
714

query I rowsort
SELECT DISTINCT - col1 + + ( + ( + col0 ) ) * col1 FROM tab1
----
1027
52
630

query I rowsort
SELECT ALL col2 * 70 + col0 + col0 FROM tab1
----
3786
4118
6880

query I rowsort
SELECT ALL - tab2.col1 * - col1 + + col2 FROM tab2
----
327
3507
988

query I rowsort
SELECT ALL 39 * + tab1.col2 FROM tab1
----
2106
2223
3744

query I rowsort
SELECT ALL - ( - 64 ) FROM tab2 AS cor0
----
64
64
64

query I rowsort
SELECT ALL + col1 * col2 * col2 FROM tab1 cor0
----
119808
32490
75816

query I rowsort
SELECT DISTINCT col0 * - 92 * - cor0.col1 AS col1 FROM tab0 AS cor0
----
189888
312340
745108

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * - col1 + col0 col0 FROM tab1 AS cor0
----
-1168
-1401
-506

query I rowsort
SELECT DISTINCT + 23 + col2 * col0 FROM tab2 AS cor0
----
2051
212
3025

query I rowsort
SELECT - - 7 * + col2 + + col0 * col0 AS col2 FROM tab1 AS cor0
----
387
4495
7072

onlyif mysql # use DIV operator for integer division
query I rowsort label-7304
SELECT - col1 DIV + 14 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-7304
SELECT - col1 / + 14 FROM tab1 AS cor0
----
-1
0
0

query I rowsort
SELECT - 70 + - ( col2 ) * col1 AS col0 FROM tab2 AS cor0
----
-1604
-716
-907

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7306
SELECT ALL + CAST( - 73 AS SIGNED ) * - cor0.col1 * CAST( NULL AS SIGNED ) + 13 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7306
SELECT ALL + CAST ( - 73 AS INTEGER ) * - cor0.col1 * CAST ( NULL AS INTEGER ) + 13 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-7307
SELECT cor0.col0 DIV cor0.col1 FROM tab2 cor0
----
0
1
4

skipif mysql # not compatible
query I rowsort label-7307
SELECT cor0.col0 / cor0.col1 FROM tab2 cor0
----
0
1
4

query I rowsort
SELECT - ( tab0.col1 + - col2 ) AS col2 FROM tab0
----
-53
-9
-96

query I rowsort
SELECT DISTINCT 23 * + col2 FROM tab1
----
1242
1311
2208

query I rowsort
SELECT DISTINCT + + 85 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
85

query I rowsort
SELECT - + 30 - col0 * col0 * col0 FROM tab0 AS cor0
----
-13854
-42905
-704999

query I rowsort
SELECT ALL - col1 + + col1 + - 62 AS col0 FROM tab2 AS cor0
----
-62
-62
-62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor1.col1 col2 FROM tab1, tab0 AS cor0, tab0, tab1 AS cor1
----
10
13
26

query I rowsort
SELECT ALL - col1 * 32 AS col2 FROM tab1 AS cor0
----
-320
-416
-832

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + cor0.col2 col1 FROM tab0 cor0
----
171
36
57

query I rowsort
SELECT ALL - + col2 * - col0 * 25 FROM tab1 AS cor0
----
192000
4050
91200

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7317
SELECT ALL col2 + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7317
SELECT ALL col2 + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + cor0.col0 * cor0.col0 + 74 FROM tab1 AS cor0
----
4170
6474
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 + col1 col2 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT + col1 + 29 FROM tab1 AS cor0
----
39
42
55

query I rowsort
SELECT DISTINCT - col2 - + col2 AS col1 FROM tab0 cor0
----
-164
-2
-66

query I rowsort
SELECT ALL col0 * 1 * - col1 + col0 * col1 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT - - cor0.col2 AS col1 FROM tab0 cor0
----
1
33
82

query I rowsort
SELECT + col0 * + col2 + - 21 FROM tab1 AS cor0
----
141
3627
7659

query I rowsort
SELECT ALL - + col0 * + col1 AS col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT + col0 + + ( - col2 ) * col0 FROM tab0 AS cor0
----
-7209
-768
0

query I rowsort
SELECT DISTINCT + col0 + ( - col1 ) * col0 FROM tab2 AS cor0
----
-1264
-210
-4524

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + col1 * + col2 + + col0 - col0 col2 FROM tab2 AS cor0
----
119652
51034
5859

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7329
SELECT + col0 + - CAST( col1 AS SIGNED ) FROM tab1 AS cor0
----
-23
54
67

skipif mysql # not compatible
query I rowsort label-7329
SELECT + col0 + - CAST ( col1 AS INTEGER ) FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT DISTINCT + + col1 * 34 + 55 AS col0 FROM tab0 cor0
----
2979
3149
3353

query I rowsort
SELECT col2 + col1 + col1 * - col1 AS col2 FROM tab2
----
-234
-3396
-903

query I rowsort
SELECT DISTINCT + 14 * - cor0.col2 + col1 FROM tab2 AS cor0
----
-305
-347
-515

query I rowsort
SELECT ALL - 46 AS col1 FROM tab1 cor0
----
-46
-46
-46

onlyif mysql # use DIV operator for integer division
query I rowsort label-7334
SELECT tab1.col0 DIV col2 + + col2 AS col0 FROM tab1
----
54
58
96

skipif mysql # not compatible
query I rowsort label-7334
SELECT tab1.col0 / col2 + + col2 AS col0 FROM tab1
----
54
58
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7335
SELECT ALL col1 * col2 * CAST( NULL AS SIGNED ) - col1 / - col0 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7335
SELECT ALL col1 * col2 * CAST ( NULL AS INTEGER ) - col1 / - col0 AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT 92 * col1 AS col0 FROM tab2
----
1564
2852
5428

query I rowsort
SELECT - col2 * col1 + - col0 * col2 - cor0.col0 FROM tab0 AS cor0
----
-14849
-167
-3654

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 + 62 col0 FROM tab0 AS cor0
----
-24
-29
-35

query I rowsort
SELECT ALL - col1 * col0 * + col1 FROM tab0
----
-177504
-329315
-737009

query I rowsort
SELECT DISTINCT col0 * + col0 * col2 AS col2 FROM tab2
----
1323
158184
237158

query I rowsort
SELECT 82 + col2 * - 85 FROM tab0
----
-2723
-3
-6888

query I rowsort
SELECT DISTINCT 84 * col1 AS col2 FROM tab0
----
7224
7644
8148

onlyif mysql # use DIV operator for integer division
query I rowsort label-7343
SELECT - 55 + col2 DIV - ( cor0.col2 ) FROM tab1 AS cor0
----
-56
-56
-56

skipif mysql # not compatible
query I rowsort label-7343
SELECT - 55 + col2 / - ( cor0.col2 ) FROM tab1 AS cor0
----
-56
-56
-56

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7344
SELECT ( + col2 ) * CAST( - cor0.col1 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-1248
-1404
-570

skipif mysql # not compatible
query I rowsort label-7344
SELECT ( + col2 ) * CAST ( - cor0.col1 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT + 39 * col1 + - cor0.col1 * + col1 FROM tab0 AS cor0
----
-4042
-4732
-5626

query I rowsort
SELECT - cor0.col0 - - cor1.col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b35213e9a51dcfaaad8504c443dca527

onlyif mysql # use DIV operator for integer division
query I rowsort label-7347
SELECT DISTINCT - col2 + - col2 DIV 83 AS col0 FROM tab2 AS cor0
----
-26
-27
-38

skipif mysql # not compatible
query I rowsort label-7347
SELECT DISTINCT - col2 + - col2 / 83 AS col0 FROM tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT DISTINCT - 46 AS col1 FROM tab1, tab0 AS cor0, tab1 AS cor1, tab1 AS cor2
----
-46

onlyif mysql # use DIV operator for integer division
query I rowsort label-7349
SELECT 49 DIV - cor0.col1 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to ccd77e2770d5a834e59c1674defa88fa

skipif mysql # not compatible
query I rowsort label-7349
SELECT 49 / - cor0.col1 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to ccd77e2770d5a834e59c1674defa88fa

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 * 48 col0 FROM tab0 AS cor0
----
-4128
-4368
-4656

query I rowsort
SELECT - 75 * + col2 FROM tab2 AS cor0
----
-1950
-2025
-2850

query I rowsort
SELECT DISTINCT + 58 * + cor0.col2 AS col2 FROM tab0, tab0 AS cor0
----
1914
4756
58

query I rowsort
SELECT - cor0.col0 + + col0 AS col2 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT ALL - - col1 + col2 * + cor0.col2 FROM tab0 AS cor0
----
1175
6815
98

query I rowsort
SELECT 1 * col1 * - col1 FROM tab0
----
-7396
-8281
-9409

query I rowsort
SELECT DISTINCT ( ( + col2 ) * 43 ) AS col0 FROM tab1
----
2322
2451
4128

query I rowsort
SELECT DISTINCT + ( 44 ) * col0 AS col1 FROM tab1
----
132
2816
3520

query I rowsort
SELECT DISTINCT - 52 AS col0 FROM tab2, tab2 AS cor0
----
-52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col0 * + col1 ) col0 FROM tab0
----
2064
3395
8099

query I rowsort
SELECT ALL + 23 + col1 AS col2 FROM tab2 cor0
----
40
54
82

query I rowsort
SELECT col2 * col2 * + col2 + + 41 * col1 AS col0 FROM tab0 AS cor0
----
39463
3978
555099

query I rowsort
SELECT + col2 + cor0.col2 * - cor0.col1 AS col2 FROM tab2 AS cor0
----
-1508
-608
-810

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 * col2 * + col0 col2 FROM tab2 AS cor0
----
1323
158184
237158

query I rowsort
SELECT ALL - + col2 * + col2 * col2 + + cor0.col2 FROM tab0 AS cor0
----
-35904
-551286
0

skipif mysql # not compatible
query I rowsort
SELECT col0 + - 59 + + col0 * ( ( tab1.col0 ) * CAST ( + col2 AS REAL ) ) AS col1 FROM tab1
----
233477
430
614421

query I rowsort
SELECT DISTINCT - 17 + + col1 AS col0 FROM tab0
----
69
74
80

query I rowsort
SELECT + 11 + + col1 + 6 * - col0 * col2 FROM tab1 AS cor0
----
-21867
-46056
-935

query I rowsort
SELECT 7 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 4e72e9e33dacac757f48d0ce46094607

query I rowsort
SELECT - + 53 * cor0.col0 FROM tab0 AS cor0
----
-1272
-1855
-4717

onlyif mysql # use DIV operator for integer division
query I rowsort label-7370
SELECT DISTINCT - col2 DIV 76 col1 FROM tab0
----
-1
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7370
SELECT DISTINCT - col2 / 76 col1 FROM tab0
----
-1
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-7371
SELECT + col0 + col1 DIV col0 FROM tab1 cor0
----
11
64
80

skipif mysql # not compatible
query I rowsort label-7371
SELECT + col0 + col1 / col0 FROM tab1 cor0
----
11
64
80

query I rowsort
SELECT + tab1.col1 * ( 86 ) + - col0 AS col1 FROM tab1
----
1038
2233
796

query I rowsort
SELECT col1 - 36 * ( tab1.col0 + - col2 ) AS col1 FROM tab1
----
-242
1862
589

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - - col2 col1 FROM tab1
----
109
67
80

query I rowsort
SELECT col0 * 32 + 17 FROM tab2
----
241
2513
2545

query I rowsort
SELECT - - cor0.col2 + + col2 + col2 AS col2 FROM tab1 AS cor0
----
162
171
288

query I rowsort
SELECT col0 + col0 + + col0 FROM tab2 cor0
----
21
234
237

query I rowsort
SELECT - + 26 - + 83 AS col0 FROM tab2 AS cor0
----
-109
-109
-109

onlyif mysql # use DIV operator for integer division
query I rowsort label-7379
SELECT ALL - 76 DIV + cor0.col1 AS col2 FROM tab1 AS cor0
----
-2
-5
-7

skipif mysql # not compatible
query I rowsort label-7379
SELECT ALL - 76 / + cor0.col1 AS col2 FROM tab1 AS cor0
----
-2
-5
-7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7380
SELECT ALL CAST( - col1 AS SIGNED ) * - col0 + col2 AS col0 FROM tab2 AS cor0
----
1381
244
4628

skipif mysql # not compatible
query I rowsort label-7380
SELECT ALL CAST ( - col1 AS INTEGER ) * - col0 + col2 AS col0 FROM tab2 AS cor0
----
1381
244
4628

query I rowsort
SELECT DISTINCT - - ( col1 ) + - col2 * - col0 AS col0 FROM tab2 cor0
----
2087
220
3019

query I rowsort
SELECT 67 + - cor0.col0 FROM tab1 AS cor0
----
-13
3
64

query I rowsort
SELECT DISTINCT - col2 + ( col1 ) * col2 FROM tab0 AS cor0
----
2805
7380
96

query I rowsort
SELECT - + col2 * 66 * - col0 AS col0 FROM tab2 AS cor0
----
12474
133848
198132

query I rowsort
SELECT ALL + + 85 + col0 AS col1 FROM tab1 AS cor0
----
149
165
88

query I rowsort
SELECT DISTINCT + ( + col2 ) + - col1 AS col0 FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT - 28 * 98 FROM tab1 cor0
----
-2744
-2744
-2744

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7388
SELECT DISTINCT CAST( col1 AS SIGNED ) * col0 + + ( + col2 * col2 ) col2 FROM tab0 AS cor0
----
14823
3153
3396

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7388
SELECT DISTINCT CAST ( col1 AS INTEGER ) * col0 + + ( + col2 * col2 ) col2 FROM tab0 AS cor0
----
14823
3153
3396

query I rowsort
SELECT + col1 * cor0.col0 * 86 + col0 AS col0 FROM tab0 AS cor0
----
177528
292005
696603

query I rowsort
SELECT ALL - col0 + 0 AS col1 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT DISTINCT - col2 * - ( 5 ) + col1 * + 51 * cor0.col0 FROM tab1 AS cor0
----
32925
4248
53520

query I rowsort
SELECT cor0.col2 * - col1 + + col2 * + col0 AS col0 FROM tab0 AS cor0
----
-164
-2046
-62

query I rowsort
SELECT ALL col0 * ( 90 * col1 + 60 ) FROM tab1 AS cor0
----
61440
7200
98400

query I rowsort
SELECT + col1 + - 15 FROM tab1 AS cor0
----
-2
-5
11

onlyif mysql # use DIV operator for integer division
query I rowsort label-7395
SELECT DISTINCT - col1 DIV + col2 - cor0.col0 FROM tab0 AS cor0
----
-132
-26
-90

skipif mysql # not compatible
query I rowsort label-7395
SELECT DISTINCT - col1 / + col2 - cor0.col0 FROM tab0 AS cor0
----
-132
-26
-90

query I rowsort
SELECT ALL ( col2 ) - + col1 FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT DISTINCT - col1 + + 81 * cor0.col1 AS col1 FROM tab1 AS cor0
----
1040
2080
800

query I rowsort
SELECT + col1 + + col1 + + col2 FROM tab0 AS cor0
----
195
205
264

query I rowsort
SELECT ALL - col2 * - ( col0 ) * - col0 + - col1 AS col2 FROM tab2
----
-1354
-158243
-237175

query I rowsort
SELECT ALL - col0 + 33 FROM tab2
----
-45
-46
26

query I rowsort
SELECT DISTINCT - 76 + col1 FROM tab1 AS cor0
----
-50
-63
-66

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7402
SELECT - col0 * col1 * CAST( col1 AS SIGNED ) FROM tab0 AS cor0
----
-177504
-329315
-737009

skipif mysql # not compatible
query I rowsort label-7402
SELECT - col0 * col1 * CAST ( col1 AS INTEGER ) FROM tab0 AS cor0
----
-177504
-329315
-737009

query I rowsort
SELECT ALL + - col0 * - col1 FROM tab0 cor0
----
2064
3395
8099

query I rowsort
SELECT DISTINCT ( + col2 ) * + cor0.col0 + + 35 FROM tab0 AS cor0
----
70
7333
827

query I rowsort
SELECT ALL + col1 * - col1 AS col2 FROM tab2 cor0
----
-289
-3481
-961

query I rowsort
SELECT DISTINCT + ( col2 ) * 67 AS col2 FROM tab1 cor0
----
3618
3819
6432

query I rowsort
SELECT DISTINCT + ( col2 ) + - ( + col0 ) * - cor0.col2 AS col1 FROM tab0 AS cor0
----
36
7380
825

query I rowsort
SELECT ALL - + 9 FROM tab0 AS cor0
----
-9
-9
-9

query I rowsort
SELECT ALL + 96 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303

query I rowsort
SELECT col2 * + 48 + - col2 * col0 FROM tab2
----
-1178
-780
1107

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7411
SELECT ALL - CAST( - col2 AS SIGNED ) * col2 * + 67 AS col1 FROM tab2
----
45292
48843
96748

skipif mysql # not compatible
query I rowsort label-7411
SELECT ALL - CAST ( - col2 AS INTEGER ) * col2 * + 67 AS col1 FROM tab2
----
45292
48843
96748

query I rowsort
SELECT ALL - col2 + + col1 - ( + col2 ) FROM tab1
----
-104
-179
-82

query I rowsort
SELECT - - 57 + col0 FROM tab1 AS cor0
----
121
137
60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + - col1 * col2 col1 FROM tab0 AS cor0
----
-132
-2862
-7551

onlyif mysql # use DIV operator for integer division
query I rowsort label-7415
SELECT + - cor0.col1 DIV cor0.col2 AS col2 FROM tab0 cor0
----
-1
-2
-97

skipif mysql # not compatible
query I rowsort label-7415
SELECT + - cor0.col1 / cor0.col2 AS col2 FROM tab0 cor0
----
-1
-2
-97

query I rowsort
SELECT DISTINCT 68 + cor0.col2 FROM tab1 cor0
----
122
125
164

query I rowsort
SELECT ALL 13 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to a90d0f37cec603ae1bc0a60dc7fbaeed

query I rowsort
SELECT ALL + col1 * + 29 FROM tab2
----
1711
493
899

query I rowsort
SELECT - col1 * + cor0.col0 + - col0 * col2 * - 95 + col1 AS col2 FROM tab2 AS cor0
----
17769
188117
283864

onlyif mysql # use DIV operator for integer division
query I rowsort label-7420
SELECT col2 * - 4 + ( col2 ) DIV col0 FROM tab1 cor0
----
-198
-228
-383

skipif mysql # not compatible
query I rowsort label-7420
SELECT col2 * - 4 + ( col2 ) / col0 FROM tab1 cor0
----
-198
-228
-383

query I rowsort
SELECT - col2 * - col0 - - col2 AS col0 FROM tab1 cor0
----
216
3705
7776

query I rowsort
SELECT - col2 - + 46 FROM tab1 AS cor0
----
-100
-103
-142

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col1 + cor0.col1 col1 FROM tab1 cor0
----
1261
1430
580

query I rowsort
SELECT + ( - col1 + - tab0.col1 ) FROM tab0
----
-172
-182
-194

query I rowsort
SELECT DISTINCT + ( tab0.col0 ) AS col1 FROM tab2, tab1 cor0 CROSS JOIN tab0
----
24
35
89

query I rowsort
SELECT + tab2.col1 FROM tab1, tab1 AS cor0 CROSS JOIN tab2, tab0 AS cor1
----
81 values hashing to a5b6acb471910ea4ad7f31cae3b818f7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7427
SELECT - ( + col0 ) * + cor0.col1 + - CAST( NULL AS SIGNED ) * col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7427
SELECT - ( + col0 ) * + cor0.col1 + - CAST ( NULL AS INTEGER ) * col1 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col2 + ( + cor0.col1 ) * + cor0.col0 AS col2 FROM tab0 AS cor0
----
2031
3394
8017

query I rowsort
SELECT DISTINCT + col2 * - 36 + - col0 FROM tab1 AS cor0
----
-1947
-2116
-3536

query I rowsort
SELECT ALL + - 83 - 56 AS col1 FROM tab1 AS cor0
----
-139
-139
-139

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7431
SELECT ALL + CAST( + cor0.col1 AS SIGNED ) + + col1 * col0 AS col0 FROM tab2 cor0
----
1360
248
4661

skipif mysql # not compatible
query I rowsort label-7431
SELECT ALL + CAST ( + cor0.col1 AS INTEGER ) + + col1 * col0 AS col0 FROM tab2 cor0
----
1360
248
4661

query I rowsort
SELECT DISTINCT + - 10 * + col0 FROM tab0 AS cor0
----
-240
-350
-890

query I rowsort
SELECT 74 AS col2 FROM tab2, tab1 AS cor0 CROSS JOIN tab1, tab1 AS cor1
----
81 values hashing to 22fe261d6995563c0767a5087aea05b1

query I rowsort
SELECT 95 * 58 + col2 AS col2 FROM tab0 AS cor0
----
5511
5543
5592

query I rowsort
SELECT ALL - 48 * col1 * col2 AS col0 FROM tab1 AS cor0
----
-27360
-59904
-67392

query I rowsort
SELECT DISTINCT 17 + col2 + col1 * + 5 AS col1 FROM tab2 cor0
----
140
199
338

query I rowsort
SELECT + - 44 + cor0.col0 * - col2 FROM tab2 AS cor0
----
-2072
-233
-3046

query I rowsort
SELECT DISTINCT - + 84 + col2 AS col1 FROM tab1 AS cor0
----
-27
-30
12

query I rowsort
SELECT DISTINCT + cor0.col0 + + col1 + col0 AS col0 FROM tab1 AS cor0
----
138
173
32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * col2 + + col1 col0 FROM tab2 cor0
----
1593
663
868

query I rowsort
SELECT DISTINCT - 55 AS col2 FROM tab2, tab2 AS cor0
----
-55

query I rowsort
SELECT - col0 + cor0.col1 * 60 FROM tab1 AS cor0
----
1557
536
700

onlyif mysql # use DIV operator for integer division
query I rowsort label-7443
SELECT DISTINCT + tab1.col1 DIV col2 + 76 AS col0 FROM tab1
----
76

skipif mysql # not compatible
query I rowsort label-7443
SELECT DISTINCT + tab1.col1 / col2 + 76 AS col0 FROM tab1
----
76

query I rowsort
SELECT + col0 * 85 + col2 FROM tab0 AS cor0
----
2073
2976
7647

query I rowsort
SELECT + col0 + 91 * col1 FROM tab1 AS cor0
----
1263
2369
974

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7446
SELECT + CAST( NULL AS SIGNED ) + cor0.col1 FROM tab0, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-7446
SELECT + CAST ( NULL AS INTEGER ) + cor0.col1 FROM tab0, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 17 * col0 col1 FROM tab1 AS cor0
----
1088
1360
51

query I rowsort
SELECT - col2 * + col2 - 94 * - 57 FROM tab0 AS cor0
----
-1366
4269
5357

query I rowsort
SELECT 18 * + col2 AS col0 FROM tab1
----
1026
1728
972

query I rowsort
SELECT 7 * + col0 FROM tab1
----
21
448
560

onlyif mysql # use DIV operator for integer division
query I rowsort label-7451
SELECT + 41 DIV + tab1.col0 FROM tab1
----
0
0
13

skipif mysql # not compatible
query I rowsort label-7451
SELECT + 41 / + tab1.col0 FROM tab1
----
0
0
13

onlyif mysql # use DIV operator for integer division
query I rowsort label-7452
SELECT ALL col1 * tab0.col0 + tab0.col1 DIV col0 AS col0 FROM tab0
----
2067
3397
8100

skipif mysql # not compatible
query I rowsort label-7452
SELECT ALL col1 * tab0.col0 + tab0.col1 / col0 AS col0 FROM tab0
----
2067
3397
8100

query I rowsort
SELECT ALL - col2 + - cor0.col2 AS col1 FROM tab0 AS cor0
----
-164
-2
-66

query I rowsort
SELECT - + col0 - + cor0.col2 AS col0 FROM tab0 AS cor0
----
-171
-36
-57

onlyif mysql # use DIV operator for integer division
query I rowsort label-7455
SELECT + - col1 + + 39 DIV + col1 FROM tab1 AS cor0
----
-10
-25
-7

skipif mysql # not compatible
query I rowsort label-7455
SELECT + - col1 + + 39 / + col1 FROM tab1 AS cor0
----
-10
-25
-7

query I rowsort
SELECT ALL - 58 * + col2 * col0 AS col0 FROM tab0
----
-2030
-423284
-45936

query I rowsort
SELECT + col1 * 51 AS col0 FROM tab0 AS cor0
----
4386
4641
4947

query I rowsort
SELECT col1 * ( + col0 * + cor0.col0 ) FROM tab2 cor0
----
106097
1519
358956

query I rowsort
SELECT DISTINCT - - col1 * - ( - col0 ) * - col2 FROM tab0 cor0
----
-3395
-664118
-68112

query I rowsort
SELECT col2 + col0 - - cor0.col1 FROM tab0 AS cor0
----
133
143
262

query I rowsort
SELECT - ( - col2 * 48 ) FROM tab2
----
1248
1296
1824

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + cor0.col1 + col2 col1 FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT ALL cor0.col0 * - 82 * col2 FROM tab2 AS cor0
----
-15498
-166296
-246164

query I rowsort
SELECT + cor0.col2 + ( 44 ) FROM tab2 AS cor0
----
70
71
82

query I rowsort
SELECT col0 + - col1 + col1 * col1 FROM tab2
----
3500
351
937

query I rowsort
SELECT col2 * - col0 + col2 - - col2 AS col2 FROM tab1
----
-3534
-54
-7488

query I rowsort
SELECT - 5 * 37 FROM tab0 AS cor0
----
-185
-185
-185

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - cor0.col2 ) + + col0 * - col2 col0 FROM tab1 AS cor0
----
-216
-3705
-7776

query I rowsort
SELECT + ( - col1 ) * col2 * - ( ( col1 ) ) + col2 FROM tab2 AS cor0
----
11020
25974
90532

onlyif mysql # use DIV operator for integer division
query I rowsort label-7470
SELECT - col0 * col1 + + col1 * - col1 DIV - col1 FROM tab0 AS cor0
----
-1978
-3298
-8008

skipif mysql # not compatible
query I rowsort label-7470
SELECT - col0 * col1 + + col1 * - col1 / - col1 FROM tab0 AS cor0
----
-1978
-3298
-8008

query I rowsort
SELECT ALL - 61 * + col0 AS col0 FROM tab1 AS cor0
----
-183
-3904
-4880

query I rowsort
SELECT col2 * + tab0.col1 + col2 FROM tab0
----
2871
7544
98

query I rowsort
SELECT ALL - col2 - 57 FROM tab0
----
-139
-58
-90

query I rowsort
SELECT ALL 4 + col0 * - 60 FROM tab1 cor0
----
-176
-3836
-4796

query I rowsort
SELECT + ( - cor0.col0 ) + col1 FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT DISTINCT + 14 + cor0.col2 FROM tab2 AS cor0
----
40
41
52

query I rowsort
SELECT ALL col0 + col0 * + 16 * cor0.col1 AS col1 FROM tab1 AS cor0
----
10304
1251
16720

query I rowsort
SELECT ALL - col1 + 18 FROM tab2
----
-13
-41
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7479
SELECT ALL - ( + col1 ) * CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7479
SELECT ALL - ( + col1 ) * CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - - col2 + col1 * 52 AS col2 FROM tab2 AS cor0
----
1639
3094
922

query I rowsort
SELECT - 90 * col2 AS col0 FROM tab2 AS cor0
----
-2340
-2430
-3420

query I rowsort
SELECT - ( + tab1.col0 ) FROM tab1, tab0, tab0 cor0
----
27 values hashing to 729c1edda9332398299f39cd174ed840

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab0.col0 + - col2 col0 FROM tab0
----
-9
34
7

query I rowsort
SELECT ALL 6 * col0 + col2 * 94 AS col2 FROM tab2
----
2580
2912
4046

query I rowsort
SELECT + ( cor0.col2 * - cor0.col0 ) FROM tab1, tab1 AS cor0
----
9 values hashing to f7e57a354e4e5925116b9650d1011609

query I rowsort
SELECT DISTINCT 56 * + col2 - + col2 FROM tab2 AS cor0
----
1430
1485
2090

query I rowsort
SELECT ALL + - col2 * + cor0.col1 - - col0 AS col2 FROM tab0 AS cor0
----
-2814
-62
-7373

query I rowsort
SELECT DISTINCT - - cor0.col0 + - col0 * - 96 FROM tab0 AS cor0
----
2328
3395
8633

query I rowsort
SELECT ALL col0 * col2 + col2 * - col2 AS col0 FROM tab0 cor0
----
-297
34
574

query I rowsort
SELECT + 70 * + col2 + + 36 + col2 AS col1 FROM tab1 AS cor0
----
3870
4083
6852

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7491
SELECT ALL + col2 + col1 * CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7491
SELECT ALL + col2 + col1 * CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col0 * col1 + cor0.col1 FROM tab0 cor0
----
-1978
-3298
-8008

query I rowsort
SELECT ALL col2 + cor0.col1 - + ( col2 ) AS col1 FROM tab2 cor0
----
17
31
59

query I rowsort
SELECT - - 41 + - col2 FROM tab1 AS cor0
----
-13
-16
-55

query I rowsort
SELECT DISTINCT - 40 - col0 FROM tab2
----
-118
-119
-47

onlyif mysql # use DIV operator for integer division
query I rowsort label-7496
SELECT + col0 DIV 51 AS col0 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-7496
SELECT + col0 / 51 AS col0 FROM tab2
----
0
1
1

query I rowsort
SELECT + 85 + + col0 FROM tab1
----
149
165
88

query I rowsort
SELECT - - col1 * + 43 AS col1 FROM tab2 AS cor0
----
1333
2537
731

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7499
SELECT - col0 * CAST( col1 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-1343
-217
-4602

skipif mysql # not compatible
query I rowsort label-7499
SELECT - col0 * CAST ( col1 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT DISTINCT - - cor0.col0 - - cor0.col1 FROM tab0 AS cor0
----
110
132
180

onlyif mysql # use DIV operator for integer division
query I rowsort label-7501
SELECT DISTINCT - cor0.col1 DIV 74 + + cor0.col1 AS col1 FROM tab1 AS cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-7501
SELECT DISTINCT - cor0.col1 / 74 + + cor0.col1 AS col1 FROM tab1 AS cor0
----
10
13
26

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7502
SELECT - col2 + + CAST( NULL AS SIGNED ) * - col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7502
SELECT - col2 + + CAST ( NULL AS INTEGER ) * - col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - - cor0.col2 * + 66 + + col1 FROM tab0 AS cor0
----
163
2264
5503

query I rowsort
SELECT ALL col1 * - 55 AS col1 FROM tab1
----
-1430
-550
-715

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * col0 + col0 col0 FROM tab0 AS cor0
----
70
7387
816

query I rowsort
SELECT DISTINCT - col0 + cor0.col1 * + col0 FROM tab1 cor0
----
576
75
960

onlyif mysql # use DIV operator for integer division
query I rowsort label-7507
SELECT + cor0.col0 DIV - 2 FROM tab0 cor0
----
-12
-17
-44

skipif mysql # not compatible
query I rowsort label-7507
SELECT + cor0.col0 / - 2 FROM tab0 cor0
----
-12
-17
-44

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7508
SELECT DISTINCT + - col1 * + CAST( + col0 AS SIGNED ) FROM tab0 AS cor0
----
-2064
-3395
-8099

skipif mysql # not compatible
query I rowsort label-7508
SELECT DISTINCT + - col1 * + CAST ( + col0 AS INTEGER ) FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT DISTINCT col1 + ( - col1 ) AS col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT col2 * + ( 40 ) AS col1 FROM tab0 AS cor0
----
1320
3280
40

onlyif mysql # use DIV operator for integer division
query I rowsort label-7511
SELECT - + cor0.col2 + - ( col2 ) DIV + col0 AS col0 FROM tab1 AS cor0
----
-57
-72
-97

skipif mysql # not compatible
query I rowsort label-7511
SELECT - + cor0.col2 + - ( col2 ) / + col0 AS col0 FROM tab1 AS cor0
----
-57
-72
-97

query I rowsort
SELECT ALL - col1 * + 55 AS col0 FROM tab0 AS cor0
----
-4730
-5005
-5335

query I rowsort
SELECT ALL col1 * 49 * + col1 - - col0 * + col2 FROM tab0 cor0
----
363196
413067
461076

query I rowsort
SELECT ALL - col1 + - 22 * col2 FROM tab0 AS cor0
----
-119
-1895
-812

query I rowsort
SELECT - - cor0.col2 * cor0.col0 FROM tab0 AS cor0
----
35
7298
792

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7516
SELECT ALL col0 * + CAST( col1 AS SIGNED ) FROM tab2 AS cor0
----
1343
217
4602

skipif mysql # not compatible
query I rowsort label-7516
SELECT ALL col0 * + CAST ( col1 AS INTEGER ) FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT DISTINCT + + cor0.col0 * - 37 FROM tab2 AS cor0
----
-259
-2886
-2923

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 * col1 + col0 * + col1 col1 FROM tab1 AS cor0
----
1210
1482
2288

onlyif mysql # use DIV operator for integer division
query I rowsort label-7519
SELECT - col1 DIV col0 + 88 FROM tab1
----
80
88
88

skipif mysql # not compatible
query I rowsort label-7519
SELECT - col1 / col0 + 88 FROM tab1
----
80
88
88

query I rowsort
SELECT + 97 * cor0.col2 FROM tab0 cor0
----
3201
7954
97

query I rowsort
SELECT ALL cor1.col2 + 5 FROM tab2, tab0 AS cor0, tab0, tab2 AS cor1
----
81 values hashing to c03ed783c8ad41380c4b1fa0abcf2296

query I rowsort
SELECT ALL - tab0.col2 * tab0.col1 FROM tab0
----
-2838
-7462
-97

query I rowsort
SELECT + ( - ( col1 ) ) FROM tab2 AS cor0
----
-17
-31
-59

skipif mysql # not compatible
query I rowsort
SELECT CAST ( + 98 AS REAL ) FROM tab2 AS cor0
----
98
98
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-7525
SELECT - + 81 DIV + cor0.col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7525
SELECT - + 81 / + cor0.col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-7526
SELECT - - 8 * 38 DIV + col1 FROM tab2 AS cor0
----
17
5
9

skipif mysql # not compatible
query I rowsort label-7526
SELECT - - 8 * 38 / + col1 FROM tab2 AS cor0
----
17
5
9

query I rowsort
SELECT + col1 + 56 AS col0 FROM tab2
----
115
73
87

onlyif mysql # use DIV operator for integer division
query I rowsort label-7528
SELECT DISTINCT col0 DIV 62 FROM tab1
----
0
1

skipif mysql # not compatible
query I rowsort label-7528
SELECT DISTINCT col0 / 62 FROM tab1
----
0
1

query I rowsort
SELECT DISTINCT + col1 * ( tab1.col2 * col1 ) AS col1 FROM tab1
----
16224
36504
5700

query I rowsort
SELECT + cor0.col0 * - 15 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5634842565415245a4c0562187f4b1d5

query I rowsort
SELECT DISTINCT - cor1.col0 AS col2 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
-7
-78
-79

query I rowsort
SELECT DISTINCT - col0 * 6 FROM tab0 AS cor0
----
-144
-210
-534

query I rowsort
SELECT ALL - ( - col2 ) * col0 AS col1 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT ALL col2 * - col1 + - cor0.col1 FROM tab2 AS cor0
----
-1593
-663
-868

query I rowsort
SELECT DISTINCT + - 96 * ( - col1 ) + col1 AS col1 FROM tab2 cor0
----
1649
3007
5723

query I rowsort
SELECT DISTINCT col0 + col2 + - 6 FROM tab0
----
165
30
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col1 col1 FROM tab1, tab2 cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272

query I rowsort
SELECT ( tab0.col2 * col2 ) FROM tab0
----
1
1089
6724

query I rowsort
SELECT DISTINCT + col2 * col2 * 93 + - col1 * col1 FROM tab0
----
-9316
617051
93881

query I rowsort
SELECT col1 * + col2 + + cor0.col1 FROM tab1 AS cor0
----
1261
1430
580

query I rowsort
SELECT DISTINCT - 24 + col0 AS col2 FROM tab0
----
0
11
65

query I rowsort
SELECT - 72 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ad521144c976ff25e77cdf10a84d1dc6

query I rowsort
SELECT DISTINCT + - 37 + - col2 FROM tab2 AS cor0
----
-63
-64
-75

query I rowsort
SELECT + ( + 4 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b

onlyif mysql # use DIV operator for integer division
query I rowsort label-7545
SELECT ALL + cor0.col1 DIV + cor0.col0 FROM tab1 AS cor0
----
0
0
8

skipif mysql # not compatible
query I rowsort label-7545
SELECT ALL + cor0.col1 / + cor0.col0 FROM tab1 AS cor0
----
0
0
8

query I rowsort
SELECT - col2 * cor0.col1 + - col1 FROM tab2 AS cor0
----
-1593
-663
-868

onlyif mysql # use DIV operator for integer division
query I rowsort label-7547
SELECT col0 * col0 DIV col0 AS col2 FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-7547
SELECT col0 * col0 / col0 AS col2 FROM tab0 AS cor0
----
24
35
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 - + col0 col1 FROM tab0 AS cor0
----
-171
-36
-57

query I rowsort
SELECT ALL col2 * + col2 * col1 FROM tab0 AS cor0
----
611884
93654
97

query I rowsort
SELECT - cor0.col0 + col0 + - col2 FROM tab0 AS cor0
----
-1
-33
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 * + col2 col2 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT + + 5 + col1 * - cor0.col0 AS col2 FROM tab1 AS cor0
----
-1035
-635
-73

query I rowsort
SELECT col0 * + col0 - - cor0.col2 FROM tab0 AS cor0
----
1226
609
8003

query I rowsort
SELECT 90 * + tab2.col1 AS col0 FROM tab2
----
1530
2790
5310

query I rowsort
SELECT - col0 * 65 FROM tab2
----
-455
-5070
-5135

onlyif mysql # use DIV operator for integer division
query I rowsort label-7556
SELECT DISTINCT + tab0.col1 DIV col2 AS col1 FROM tab0
----
1
2
97

skipif mysql # not compatible
query I rowsort label-7556
SELECT DISTINCT + tab0.col1 / col2 AS col1 FROM tab0
----
1
2
97

query I rowsort
SELECT DISTINCT ( col1 + col1 ) * + col1 AS col0 FROM tab2
----
1922
578
6962

query I rowsort
SELECT DISTINCT + 86 AS col1 FROM tab2, tab1 AS cor0
----
86

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7559
SELECT DISTINCT + CAST( - 54 AS SIGNED ) * - col1 AS col1 FROM tab1
----
1404
540
702

skipif mysql # not compatible
query I rowsort label-7559
SELECT DISTINCT + CAST ( - 54 AS INTEGER ) * - col1 AS col1 FROM tab1
----
1404
540
702

query I rowsort
SELECT ALL 89 - + tab1.col0 * col0 AS col2 FROM tab1
----
-4007
-6311
80

query I rowsort
SELECT col0 * col0 + col2 * cor0.col2 + - col1 AS col2 FROM tab1 AS cor0
----
15603
2899
7335

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 93 + + col0 * col2 col0 FROM tab0 AS cor0
----
128
7391
885

query I rowsort
SELECT tab1.col1 * + col1 + + col1 * tab1.col1 AS col0 FROM tab1
----
1352
200
338

query I rowsort
SELECT - cor0.col1 FROM tab0 AS cor0 CROSS JOIN tab0, tab2 AS cor1
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84

query I rowsort
SELECT DISTINCT - tab2.col0 * 4 * + 61 FROM tab2
----
-1708
-19032
-19276

query I rowsort
SELECT - ( col0 ) * - col1 AS col2 FROM tab0 cor0
----
2064
3395
8099

query I rowsort
SELECT DISTINCT 62 * - col1 - + col1 FROM tab1
----
-1638
-630
-819

query I rowsort
SELECT + col2 * + tab2.col0 - col1 FROM tab2
----
158
1969
2985

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 79 col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 1b7b0b34fe3431fb409719624d12791f

onlyif mysql # use DIV operator for integer division
query I rowsort label-7570
SELECT + tab0.col2 - col1 DIV + col0 AS col0 FROM tab0
----
-1
30
81

skipif mysql # not compatible
query I rowsort label-7570
SELECT + tab0.col2 - col1 / + col0 AS col0 FROM tab0
----
-1
30
81

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 AS cor0, tab1 AS cor1, tab0, tab0 cor2
----
3645 values hashing to d24b34b0673c90715a7101e7e630fa94

query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN ( NULL ) AND ( - col0 + col1 * col2 )
----

query I rowsort
SELECT ALL + col0 * col2 * - col2 FROM tab2 AS cor0
----
-114076
-5103
-52728

onlyif mysql # use DIV operator for integer division
query I rowsort label-7574
SELECT ALL - col2 - + col2 DIV + col1 FROM tab0 AS cor0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-7574
SELECT ALL - col2 - + col2 / + col1 FROM tab0 AS cor0
----
-1
-33
-82

onlyif mysql # use DIV operator for integer division
query I rowsort label-7575
SELECT + cor0.col2 DIV + col1 FROM tab2 AS cor0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-7575
SELECT + cor0.col2 / + col1 FROM tab2 AS cor0
----
0
0
2

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 IN ( + col2 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( + col0 ) IN ( + col0 )
----

query I rowsort
SELECT ALL + col1 * + col1 + col2 FROM tab2 cor0
----
327
3507
988

onlyif mysql # use DIV operator for integer division
query I rowsort label-7579
SELECT col0 DIV - col0 - col2 FROM tab2 cor0
----
-27
-28
-39

skipif mysql # not compatible
query I rowsort label-7579
SELECT col0 / - col0 - col2 FROM tab2 cor0
----
-27
-28
-39

query I rowsort
SELECT DISTINCT - col2 - - col2 AS col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL col0 AS col1 FROM tab0 AS cor0 WHERE NULL IN ( + col2 * cor0.col0 )
----

query I rowsort
SELECT ALL + cor0.col1 AS col1 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

query I rowsort
SELECT - col2 * - col0 + col1 AS col0 FROM tab2
----
2087
220
3019

query I rowsort
SELECT DISTINCT - col0 + + col1 - + col1 * + col0 FROM tab0 AS cor0
----
-2002
-3333
-8097

query I rowsort
SELECT ALL col0 * col1 + col2 + - cor0.col1 FROM tab1 AS cor0
----
106
1123
687

query I rowsort
SELECT ALL + col2 * col1 + - col1 AS col0 FROM tab1 AS cor0
----
1235
1378
560

query I rowsort
SELECT ALL + - col1 + - col0 + - cor0.col2 AS col1 FROM tab2 cor0
----
-134
-163
-65

onlyif mysql # use DIV operator for integer division
query I rowsort label-7588
SELECT DISTINCT cor0.col2 DIV col0 - cor0.col2 AS col1 FROM tab0 AS cor0
----
-1
-32
-82

skipif mysql # not compatible
query I rowsort label-7588
SELECT DISTINCT cor0.col2 / col0 - cor0.col2 AS col1 FROM tab0 AS cor0
----
-1
-32
-82

query I rowsort
SELECT + + col0 * + col2 + + col2 FROM tab0 cor0
----
36
7380
825

onlyif mysql # use DIV operator for integer division
query I rowsort label-7590
SELECT DISTINCT - cor0.col2 DIV col2 FROM tab1 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-7590
SELECT DISTINCT - cor0.col2 / col2 FROM tab1 cor0
----
-1

query I rowsort
SELECT + + col2 * - col0 FROM tab0 cor0
----
-35
-7298
-792

query I rowsort
SELECT DISTINCT + col0 + cor0.col0 * - col0 AS col1 FROM tab2 AS cor0
----
-42
-6006
-6162

onlyif mysql # use DIV operator for integer division
query I rowsort label-7593
SELECT ALL + col1 - col1 DIV cor0.col2 AS col0 FROM tab0 AS cor0
----
0
84
90

skipif mysql # not compatible
query I rowsort label-7593
SELECT ALL + col1 - col1 / cor0.col2 AS col0 FROM tab0 AS cor0
----
0
84
90

query I rowsort
SELECT DISTINCT + col0 * - col0 * - col2 AS col2 FROM tab1 AS cor0
----
233472
486
614400

query I rowsort
SELECT ALL cor0.col1 * + cor0.col0 + + cor0.col0 AS col1 FROM tab1 cor0
----
1120
704
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-7596
SELECT DISTINCT - col2 DIV col1 + col2 - col2 FROM tab2 AS cor0
----
-2
0

skipif mysql # not compatible
query I rowsort label-7596
SELECT DISTINCT - col2 / col1 + col2 - col2 FROM tab2 AS cor0
----
-2
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-7597
SELECT ALL col1 DIV - col2 + + tab1.col2 AS col0 FROM tab1
----
54
57
96

skipif mysql # not compatible
query I rowsort label-7597
SELECT ALL col1 / - col2 + + tab1.col2 AS col0 FROM tab1
----
54
57
96

query I rowsort
SELECT DISTINCT 96 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
96

query I rowsort
SELECT + - 94 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to a95bfa539191d3f72f6548147d7efb9e

query I rowsort
SELECT DISTINCT - col0 * + col1 * col0 FROM tab0
----
-118825
-49536
-720811

query I rowsort
SELECT ALL - col2 * 39 * + col1 AS col1 FROM tab0
----
-110682
-291018
-3783

query I rowsort
SELECT DISTINCT col0 * - ( col2 ) AS col1 FROM tab2
----
-189
-2028
-3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col2 + 30 * col1 col1 FROM tab1 AS cor0
----
243
294
726

query I rowsort
SELECT DISTINCT col2 + ( - 90 ) AS col1 FROM tab2 cor0
----
-52
-63
-64

query I rowsort
SELECT ALL col2 * ( + cor0.col1 ) AS col0 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT + col1 * ( 10 ) AS col0 FROM tab2 AS cor0
----
170
310
590

query I rowsort
SELECT ALL - ( - col0 ) + + col1 AS col0 FROM tab2
----
137
38
96

query I rowsort
SELECT DISTINCT 25 + 50 FROM tab2
----
75

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7609
SELECT ALL + tab2.col0 * - col0 * - col2 + - CAST( NULL AS DECIMAL ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7609
SELECT ALL + tab2.col0 * - col0 * - col2 + - CAST ( NULL AS REAL ) AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + ( + 69 ) AS col2 FROM tab1 AS cor0
----
69
69
69

query I rowsort
SELECT ALL - col2 + - col1 * col1 FROM tab2 cor0
----
-327
-3507
-988

query I rowsort
SELECT DISTINCT - + 92 * col0 FROM tab2 AS cor0
----
-644
-7176
-7268

query I rowsort
SELECT ALL - ( 67 ) * + col0 AS col0 FROM tab1 cor0
----
-201
-4288
-5360

onlyif mysql # use DIV operator for integer division
query I rowsort label-7614
SELECT ALL col1 DIV - col0 + col2 AS col1 FROM tab0 AS cor0
----
-1
30
81

skipif mysql # not compatible
query I rowsort label-7614
SELECT ALL col1 / - col0 + col2 AS col1 FROM tab0 AS cor0
----
-1
30
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-7615
SELECT DISTINCT 32 DIV - cor0.col0 + - CAST( + cor0.col2 + + col2 AS SIGNED ) * 50 * - col2 FROM tab2 AS cor0
----
144400
67600
72896

skipif mysql # not compatible
query I rowsort label-7615
SELECT DISTINCT 32 / - cor0.col0 + - CAST ( + cor0.col2 + + col2 AS INTEGER ) * 50 * - col2 FROM tab2 AS cor0
----
144400
67600
72896

query I rowsort
SELECT ALL + 34 + - col1 * col0 * col2 AS col1 FROM tab2 AS cor0
----
-119618
-51000
-5825

query I rowsort
SELECT DISTINCT - ( cor0.col1 ) + 10 AS col0 FROM tab0 cor0
----
-76
-81
-87

query I rowsort
SELECT ALL - ( col0 ) * 25 + 19 FROM tab0 AS cor0
----
-2206
-581
-856

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( col1 ) * - cor0.col1 col0 FROM tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT DISTINCT + 96 * cor0.col2 + - ( 62 ) AS col0 FROM tab2 AS cor0
----
2434
2530
3586

query I rowsort
SELECT DISTINCT + - 66 + col1 AS col2 FROM tab0 AS cor0
----
20
25
31

query I rowsort
SELECT ALL - 59 AS col0 FROM tab2 cor0
----
-59
-59
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 80 * col2 + - ( col1 + + col2 ) col2 FROM tab0 AS cor0
----
-178
-2759
-6733

query I rowsort
SELECT ALL + + 5 * - col1 FROM tab0 AS cor0
----
-430
-455
-485

onlyif mysql # use DIV operator for integer division
query I rowsort label-7625
SELECT - 59 DIV col0 FROM tab0 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-7625
SELECT - 59 / col0 FROM tab0 AS cor0
----
-1
-2
0

query I rowsort
SELECT ALL + 13 * - col1 FROM tab2 cor0
----
-221
-403
-767

query I rowsort
SELECT ALL + col1 * + col0 AS col2 FROM tab2
----
1343
217
4602

query I rowsort
SELECT + 58 * col2 + col1 FROM tab1 AS cor0
----
3158
3316
5581

query I rowsort
SELECT + - 66 + + col0 FROM tab2 AS cor0
----
-59
12
13

query I rowsort
SELECT - col1 + - 37 AS col1 FROM tab1 AS cor0
----
-47
-50
-63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 97 * - col0 col2 FROM tab1
----
-291
-6208
-7760

query I rowsort
SELECT col2 + - 90 AS col0 FROM tab2 AS cor0
----
-52
-63
-64

query I rowsort
SELECT + col2 + - tab1.col0 * ( + ( + col2 ) ) * + col2 AS col0 FROM tab1
----
-207879
-737184
-8694

query I rowsort
SELECT - 7 + + col0 * + col2 FROM tab1 AS cor0
----
155
3641
7673

query I rowsort
SELECT cor0.col1 * col2 - + cor0.col2 FROM tab0 AS cor0
----
2805
7380
96

query I rowsort
SELECT + col1 + - col0 + col1 FROM tab0
----
148
159
93

query I rowsort
SELECT + - col2 * 75 + + col0 * col1 AS col0 FROM tab0 AS cor0
----
-411
1949
3320

onlyif mysql # use DIV operator for integer division
query I rowsort label-7638
SELECT - col2 * - col1 + col2 DIV 97 FROM tab2 AS cor0
----
1534
646
837

skipif mysql # not compatible
query I rowsort label-7638
SELECT - col2 * - col1 + col2 / 97 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT + 16 * ( - col1 ) + - col1 * + col2 AS col1 FROM tab0 cor0
----
-1649
-4214
-8918

query I rowsort
SELECT tab1.col1 * - tab1.col0 + - col2 + col1 * 80 AS col2 FROM tab1
----
-96
103
1948

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7641
SELECT + + 80 * col1 + CAST( - 92 * - col1 AS SIGNED ) FROM tab1 AS cor0
----
1720
2236
4472

skipif mysql # not compatible
query I rowsort label-7641
SELECT + + 80 * col1 + CAST ( - 92 * - col1 AS INTEGER ) FROM tab1 AS cor0
----
1720
2236
4472

query I rowsort
SELECT DISTINCT - ( col2 + col2 ) AS col2 FROM tab2
----
-52
-54
-76

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7643
SELECT - CAST( NULL AS DECIMAL ) * - 69 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7643
SELECT - CAST ( NULL AS REAL ) * - 69 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - ( - 32 ) FROM tab0 AS cor0
----
32
32
32

query I rowsort
SELECT - 76 * + col2 AS col1 FROM tab1 AS cor0
----
-4104
-4332
-7296

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7646
SELECT - CAST( col2 AS SIGNED ) * col2 FROM tab1 cor0
----
-2916
-3249
-9216

skipif mysql # not compatible
query I rowsort label-7646
SELECT - CAST ( col2 AS INTEGER ) * col2 FROM tab1 cor0
----
-2916
-3249
-9216

skipif mysql # not compatible
query I rowsort
SELECT - CAST ( + col0 AS REAL ) * - col1 AS col1 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT ALL + + cor0.col2 + - col1 FROM tab0 cor0
----
-53
-9
-96

query I rowsort
SELECT 68 + 94 AS col2 FROM tab2 AS cor0
----
162
162
162

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7650
SELECT DISTINCT CAST( + col1 AS SIGNED ) + - col0 FROM tab1 AS cor0
----
-54
-67
23

skipif mysql # not compatible
query I rowsort label-7650
SELECT DISTINCT CAST ( + col1 AS INTEGER ) + - col0 FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT - + ( col0 ) + 89 FROM tab1 AS cor0
----
25
86
9

query I rowsort
SELECT DISTINCT - - cor1.col1 FROM tab2, tab2 cor0, tab1, tab2 cor1
----
17
31
59

query I rowsort
SELECT - - ( 62 ) FROM tab1, tab1 AS cor0
----
9 values hashing to 51dd2771d516ceb935483eded78a5fa0

query I rowsort
SELECT ( col0 ) * 58 + + 22 AS col1 FROM tab0 cor0
----
1414
2052
5184

query I rowsort
SELECT ALL 98 AS col2 FROM tab1 AS cor0
----
98
98
98

query I rowsort
SELECT ALL col2 * + 15 AS col0 FROM tab2
----
390
405
570

query I rowsort
SELECT + col1 * - col0 + 73 * - col2 FROM tab2 AS cor0
----
-2188
-4117
-6500

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + col2 * - cor0.col1 col2 FROM tab2 AS cor0
----
-1508
-608
-810

query I rowsort
SELECT ALL col2 * - col1 * - col2 AS col0 FROM tab0
----
611884
93654
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 43 col0 FROM tab0, tab0 AS cor0
----
9 values hashing to ab0c314d2b589ccedb9a875beeb1f86a

query I rowsort
SELECT ALL tab2.col2 AS col1 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7662
SELECT ALL + col1 * - CAST( col1 AS SIGNED ) AS col2 FROM tab2
----
-289
-3481
-961

skipif mysql # not compatible
query I rowsort label-7662
SELECT ALL + col1 * - CAST ( col1 AS INTEGER ) AS col2 FROM tab2
----
-289
-3481
-961

query I rowsort
SELECT + + col1 + + col1 * - col2 FROM tab0 AS cor0
----
-2752
-7371
0

query I rowsort
SELECT + col0 * + ( col1 * - cor0.col0 ) AS col1 FROM tab2 AS cor0
----
-106097
-1519
-358956

query I rowsort
SELECT tab0.col0 * col2 + 35 FROM tab0
----
70
7333
827

query I rowsort
SELECT DISTINCT col0 * - col1 + col0 * + col2 FROM tab1
----
3008
6640
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( col0 ) * col1 + + 80 col1 FROM tab2 AS cor0
----
1423
297
4682

query I rowsort
SELECT DISTINCT - - 68 + - 36 AS col1 FROM tab1 AS cor0
----
32

query I rowsort
SELECT + 27 FROM tab0, tab1 AS cor0
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8

query I rowsort
SELECT - + col0 * col1 + 22 FROM tab0 AS cor0
----
-2042
-3373
-8077

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7671
SELECT + col1 * CAST( col2 AS SIGNED ) - - col0 FROM tab0
----
132
2862
7551

skipif mysql # not compatible
query I rowsort label-7671
SELECT + col1 * CAST ( col2 AS INTEGER ) - - col0 FROM tab0
----
132
2862
7551

query I rowsort
SELECT - ( + col2 ) + - col0 AS col0 FROM tab0
----
-171
-36
-57

query I rowsort
SELECT ALL + 69 * 9 + - col0 FROM tab2 AS cor0
----
542
543
614

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7674
SELECT DISTINCT + + CAST( + col2 AS SIGNED ) + - col1 * 46 AS col2 FROM tab2 AS cor0
----
-1399
-2688
-744

skipif mysql # not compatible
query I rowsort label-7674
SELECT DISTINCT + + CAST ( + col2 AS INTEGER ) + - col1 * 46 AS col2 FROM tab2 AS cor0
----
-1399
-2688
-744

onlyif mysql # use DIV operator for integer division
query I rowsort label-7675
SELECT + 69 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-7675
SELECT + 69 / col1 col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + tab1.col0 + - cor0.col1 FROM tab1, tab2, tab2 AS cor0
----
9 values hashing to 179f1c4ecae3615ed02c294cbc435c7b

query I rowsort
SELECT DISTINCT col2 - + tab1.col1 AS col2 FROM tab1
----
28
47
83

query I rowsort
SELECT ALL cor0.col2 * - col2 + + col1 FROM tab1 AS cor0
----
-2890
-3239
-9203

onlyif mysql # use DIV operator for integer division
query I rowsort label-7679
SELECT col1 DIV col0 + col2 AS col1 FROM tab0 cor0
----
3
36
83

skipif mysql # not compatible
query I rowsort label-7679
SELECT col1 / col0 + col2 AS col1 FROM tab0 cor0
----
3
36
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + col1 + col2 col0 FROM tab2 AS cor0
----
327
3507
988

query I rowsort
SELECT cor0.col1 + 15 AS col0 FROM tab1 cor0
----
25
28
41

query I rowsort
SELECT ALL - col1 * + ( + col2 ) AS col1 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT DISTINCT + col0 * 74 + + col1 AS col1 FROM tab2 cor0
----
549
5831
5863

query I rowsort
SELECT DISTINCT + + col0 + - 74 FROM tab1 AS cor0
----
-10
-71
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + ( + col2 ) col2 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT ALL + - col2 * col2 + + col2 * + col0 * 18 + cor0.col2 AS col2 FROM tab2 AS cor0
----
2700
35854
52630

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7687
SELECT DISTINCT cor0.col1 + - CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7687
SELECT DISTINCT cor0.col1 + - CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL

query I rowsort
SELECT - col0 * col2 + col1 * + col1 FROM tab2 AS cor0
----
-2713
1453
772

onlyif mysql # use DIV operator for integer division
query I rowsort label-7689
SELECT DISTINCT - col2 * col2 + + col1 * col0 DIV + 95 AS col2 FROM tab1 AS cor0
----
-2916
-3243
-9206

skipif mysql # not compatible
query I rowsort label-7689
SELECT DISTINCT - col2 * col2 + + col1 * col0 / + 95 AS col2 FROM tab1 AS cor0
----
-2916
-3243
-9206

query I rowsort
SELECT ALL - cor0.col1 - - ( + 64 * - col0 ) FROM tab1 cor0
----
-218
-4106
-5133

onlyif mysql # use DIV operator for integer division
query I rowsort label-7691
SELECT col0 * + col0 + col0 * col0 DIV - ( col1 * col1 + 55 ) FROM tab0 AS cor0
----
1225
576
7921

skipif mysql # not compatible
query I rowsort label-7691
SELECT col0 * + col0 + col0 * col0 / - ( col1 * col1 + 55 ) FROM tab0 AS cor0
----
1225
576
7921

onlyif mysql # use DIV operator for integer division
query I rowsort label-7692
SELECT ALL col1 DIV col1 AS col1 FROM tab0 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7692
SELECT ALL col1 / col1 AS col1 FROM tab0 cor0
----
1
1
1

query I rowsort
SELECT ALL - - col0 + + col0 + cor0.col2 FROM tab2 AS cor0
----
182
196
41

query I rowsort
SELECT DISTINCT col0 * col0 + col1 * - col1 AS col0 FROM tab1 AS cor0
----
-667
3996
6231

query I rowsort
SELECT cor0.col0 + cor0.col1 + + cor0.col1 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 533730357473e5a38d21297e26511efb

query I rowsort
SELECT DISTINCT - col1 * + col1 * - col0 AS col2 FROM tab1 cor0
----
13520
2028
6400

query I rowsort
SELECT DISTINCT + col2 * col1 * + col2 AS col0 FROM tab2
----
22599
24548
39884

query I rowsort
SELECT ALL + col0 + col1 * col2 FROM tab0
----
132
2862
7551

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( col1 + - col2 ) NOT IN ( col1 )
----

query I rowsort
SELECT col1 FROM tab1 WHERE ( + col2 + col1 + col0 ) = NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-7701
SELECT ALL - tab0.col0 * tab0.col2 DIV col1 AS col1 FROM tab0
----
-80
-9
0

skipif mysql # not compatible
query I rowsort label-7701
SELECT ALL - tab0.col0 * tab0.col2 / col1 AS col1 FROM tab0
----
-80
-9
0

query I rowsort
SELECT DISTINCT - col1 + tab2.col2 * + col0 - tab2.col0 * col1 AS col0 FROM tab2
----
-2633
-59
1642

query I rowsort
SELECT - tab1.col2 * tab1.col1 - col1 FROM tab1
----
-1261
-1430
-580

query I rowsort
SELECT ALL + col1 + + tab2.col1 - - col2 * tab2.col1 FROM tab2
----
1652
680
899

onlyif mysql # use DIV operator for integer division
query I rowsort label-7705
SELECT col2 * col1 DIV col1 AS col1 FROM tab0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-7705
SELECT col2 * col1 / col1 AS col1 FROM tab0
----
1
33
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-7706
SELECT - col0 + col0 + col0 DIV + col1 FROM tab1
----
0
6
6

skipif mysql # not compatible
query I rowsort label-7706
SELECT - col0 + col0 + col0 / + col1 FROM tab1
----
0
6
6

query I rowsort
SELECT ALL + tab1.col0 + col1 + col2 FROM tab1
----
131
189
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col0 FROM tab1 WHERE col0 + col0 BETWEEN NULL AND ( col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * col2 + col1 col2 FROM tab1 WHERE col1 - col2 <= ( NULL )
----

query I rowsort
SELECT ALL - tab2.col1 * col0 * col2 AS col1 FROM tab2
----
-119652
-51034
-5859

onlyif mysql # use DIV operator for integer division
query I rowsort label-7711
SELECT - tab1.col1 * col2 DIV + col1 FROM tab1
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-7711
SELECT - tab1.col1 * col2 / + col1 FROM tab1
----
-54
-57
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab0.col1 * col1 col0 FROM tab0
----
-7396
-8281
-9409

query I rowsort
SELECT tab2.col2 + + col1 + col0 * col0 * col0 AS col1 FROM tab2
----
401
474637
493094

query I rowsort
SELECT ALL tab2.col2 - tab2.col0 * + col2 FROM tab2
----
-162
-2002
-2964

query I rowsort
SELECT - col1 - tab0.col1 AS col0 FROM tab0
----
-172
-182
-194

query III rowsort
SELECT ALL * FROM tab0 WHERE + col1 * col1 IN ( + col0 + col1 )
----

query I rowsort
SELECT - tab1.col0 * col1 + tab1.col2 * + col1 FROM tab1
----
-70
1326
208

query I rowsort
SELECT - col2 * col2 - + col1 * + col0 FROM tab2
----
-2787
-5278
-946

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col1 IN ( col2 + col1 * + col2 * - col0 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

query I rowsort
SELECT col0 + + col2 * col1 FROM tab1
----
1328
1407
634

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + + col1 / col0 col1 FROM tab1 WHERE NOT col0 >= NULL
----

query I rowsort
SELECT 92 * col1 * + col1 FROM tab2
----
26588
320252
88412

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 52 col2 FROM tab1 AS cor0
----
-52
-52
-52

query I rowsort
SELECT DISTINCT - col1 * 62 + col2 AS col1 FROM tab2 AS cor0
----
-1016
-1895
-3632

query I rowsort
SELECT DISTINCT col2 - col0 * + col2 AS col2 FROM tab1 AS cor0
----
-108
-3591
-7584

query I rowsort
SELECT ALL - 52 * - col0 FROM tab0 AS cor0
----
1248
1820
4628

query I rowsort
SELECT col1 + - col0 * ( - col1 ) FROM tab2 AS cor0
----
1360
248
4661

onlyif mysql # use DIV operator for integer division
query I rowsort label-7728
SELECT col2 * col0 DIV - col1 + - col2 AS col1 FROM tab2 AS cor0
----
-214
-33
-60

skipif mysql # not compatible
query I rowsort label-7728
SELECT col2 * col0 / - col1 + - col2 AS col1 FROM tab2 AS cor0
----
-214
-33
-60

query I rowsort
SELECT + col2 + - col0 * - col0 * - 33 AS col2 FROM tab0 AS cor0
----
-18975
-261311
-40424

query I rowsort
SELECT ALL + 24 + col2 FROM tab1
----
120
78
81

query I rowsort
SELECT + + 21 + col2 * - col1 * + 28 AS col2 FROM tab0 cor0
----
-208915
-2695
-79443

query I rowsort
SELECT + 78 AS col2 FROM tab1 cor0
----
78
78
78

query I rowsort
SELECT - ( col1 ) * - col2 + col2 * - col1 - col2 FROM tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT DISTINCT - col1 + + col1 + - cor0.col1 * + col1 AS col1 FROM tab2 cor0
----
-289
-3481
-961

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + cor0.col2 + 81 * col0 * - cor0.col0 col1 FROM tab2 AS cor0
----
-3996
-492830
-505559

query I rowsort
SELECT - - cor0.col0 * - col2 AS col0 FROM tab0 AS cor0
----
-35
-7298
-792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + - 31 * - cor0.col2 col0 FROM tab1 AS cor0
----
1677
1831
3056

query I rowsort
SELECT ALL + col1 * - col0 - col2 AS col1 FROM tab1 AS cor0
----
-1136
-132
-697

query I rowsort
SELECT + cor0.col0 + - col0 * col2 AS col0 FROM tab1 AS cor0
----
-159
-3584
-7600

query I rowsort
SELECT 74 * col2 + - cor0.col0 FROM tab2 AS cor0
----
1846
1991
2733

query I rowsort
SELECT ALL + ( col2 ) * + 69 + 45 * col0 AS col2 FROM tab2
----
2178
5304
6177

query I rowsort
SELECT 5 - + col0 AS col1 FROM tab2
----
-2
-73
-74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 + col0 col2 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT + - col2 + 19 AS col0 FROM tab2 AS cor0
----
-19
-7
-8

query I rowsort
SELECT ALL - - col1 + ( + col0 ) FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT DISTINCT - - col1 * + 89 + + col0 AS col0 FROM tab1 AS cor0
----
1237
2317
954

query I rowsort
SELECT + + cor0.col2 + - 11 AS col2 FROM tab2 AS cor0
----
15
16
27

query I rowsort
SELECT DISTINCT - col2 + + 95 * col0 AS col0 FROM tab0 AS cor0
----
2247
3324
8373

query I rowsort
SELECT + col1 + col1 * - 2 FROM tab1 AS cor0
----
-10
-13
-26

onlyif mysql # use DIV operator for integer division
query I rowsort label-7750
SELECT col2 DIV - 75 AS col2 FROM tab0 cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-7750
SELECT col2 / - 75 AS col2 FROM tab0 cor0
----
-1
0
0

query I rowsort
SELECT DISTINCT - - col2 * col0 AS col0 FROM tab2 cor0
----
189
2028
3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-7752
SELECT - 20 DIV col0 + - col0 AS col1 FROM tab0 AS cor0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-7752
SELECT - 20 / col0 + - col0 AS col1 FROM tab0 AS cor0
----
-24
-35
-89

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7753
SELECT + - CAST( 67 AS SIGNED ) + - col0 FROM tab2 cor0
----
-145
-146
-74

skipif mysql # not compatible
query I rowsort label-7753
SELECT + - CAST ( 67 AS INTEGER ) + - col0 FROM tab2 cor0
----
-145
-146
-74

query I rowsort
SELECT 29 AS col1 FROM tab2, tab1 cor0 CROSS JOIN tab0, tab1 AS cor1
----
81 values hashing to 40739d223aa019bd2dfe2db99d596302

onlyif mysql # use DIV operator for integer division
query I rowsort label-7755
SELECT DISTINCT - col2 DIV - col1 col2 FROM tab1 cor0
----
2
5
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7755
SELECT DISTINCT - col2 / - col1 col2 FROM tab1 cor0
----
2
5
7

query I rowsort
SELECT DISTINCT - 99 + 33 AS col0 FROM tab0 AS cor0
----
-66

query I rowsort
SELECT ALL + + cor0.col1 + - col2 * - col2 FROM tab2 AS cor0
----
1461
735
760

query I rowsort
SELECT ALL + col2 * - 6 - col0 * col2 AS col2 FROM tab2 AS cor0
----
-2184
-3230
-351

query I rowsort
SELECT DISTINCT - - col0 * + col2 * col0 AS col1 FROM tab0 AS cor0
----
1225
19008
649522

onlyif mysql # use DIV operator for integer division
query I rowsort label-7760
SELECT - col2 + ( + col1 ) DIV - col1 FROM tab2 AS cor0
----
-27
-28
-39

skipif mysql # not compatible
query I rowsort label-7760
SELECT - col2 + ( + col1 ) / - col1 FROM tab2 AS cor0
----
-27
-28
-39

query I rowsort
SELECT - - ( col0 ) + + col1 AS col2 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT + ( col2 ) * col1 + + col0 AS col1 FROM tab2 cor0
----
1612
725
844

query I rowsort
SELECT DISTINCT - col2 * - col1 + - 38 FROM tab2 AS cor0
----
1496
608
799

query I rowsort
SELECT ALL 75 - col0 FROM tab2 AS cor0
----
-3
-4
68

query I rowsort
SELECT DISTINCT + col1 - + col1 * + col2 FROM tab0 cor0
----
-2752
-7371
0

query I rowsort
SELECT ALL 76 + + 14 AS col0 FROM tab2, tab2 cor0, tab1 cor1
----
27 values hashing to 5d25a546acf3ae171e731e50adc0112e

query I rowsort
SELECT - ( col2 ) * + 77 + 0 FROM tab0 AS cor0
----
-2541
-6314
-77

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7768
SELECT ALL + col1 * - col1 * CAST( NULL AS SIGNED ) + - col1 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-7768
SELECT ALL + col1 * - col1 * CAST ( NULL AS INTEGER ) + - col1 col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - cor0.col0 + col2 * col1 * col0 AS col2 FROM tab0 AS cor0
----
3430
664207
68136

query I rowsort
SELECT DISTINCT + + 78 * + col0 * 54 - - col1 AS col2 FROM tab0 cor0
----
101174
147517
374959

query I rowsort
SELECT DISTINCT 55 FROM tab1, tab2 AS cor0, tab0 AS cor1, tab1 cor2
----
55

query I rowsort
SELECT DISTINCT 5 - - col0 * col0 AS col2 FROM tab2 AS cor0
----
54
6089
6246

query I rowsort
SELECT ALL - - cor0.col2 * + 34 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 2102b6be9062c8709d13b34f311d6ac0

query I rowsort
SELECT + - cor0.col1 + - cor0.col1 * - 49 FROM tab2 cor0
----
1488
2832
816

query I rowsort
SELECT - - 55 * - col2 + col0 FROM tab0 AS cor0
----
-1791
-20
-4421

query I rowsort
SELECT DISTINCT - - col2 + - col1 * + col0 FROM tab1 AS cor0
----
-24
-583
-944

query I rowsort
SELECT + - col1 * col2 * - 71 + + ( col0 ) FROM tab0 AS cor0
----
201522
529891
6922

query I rowsort
SELECT - + ( - col1 ) * col1 FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT ALL col1 + cor0.col0 * - col2 AS col0 FROM tab1 cor0
----
-136
-3638
-7667

query I rowsort
SELECT ( col2 ) + + col2 * - col1 + col1 AS col0 FROM tab1
----
-1139
-1324
-503

query I rowsort
SELECT - 86 + + ( col2 ) * - col0 AS col1 FROM tab2
----
-2114
-275
-3088

query I rowsort
SELECT 98 * col1 + col0 FROM tab1
----
1044
1354
2551

query I rowsort
SELECT + col2 * - cor0.col0 + + 14 FROM tab1 AS cor0
----
-148
-3634
-7666

query I rowsort
SELECT DISTINCT - col0 - + col1 * cor0.col0 * - ( col0 ) FROM tab2 AS cor0
----
106018
1512
358878

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + + col0 * col1 - + CAST ( - 24 AS REAL ) AS col2 FROM tab1 AS cor0
----
102
1064
664

query I rowsort
SELECT ALL cor0.col2 * + col2 * - ( + col1 ) FROM tab1 AS cor0
----
-119808
-32490
-75816

query I rowsort
SELECT col1 * + col0 + + 61 FROM tab1 AS cor0
----
1101
139
701

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 77 col2 FROM tab2 AS cor0
----
77
77
77

query I rowsort
SELECT ALL + 92 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a

query I rowsort
SELECT DISTINCT col1 * col2 + + col1 AS col1 FROM tab1
----
1261
1430
580

query I rowsort
SELECT DISTINCT 18 + + col0 FROM tab0
----
107
42
53

query I rowsort
SELECT DISTINCT + ( col0 ) * + col0 AS col2 FROM tab0 AS cor0
----
1225
576
7921

onlyif mysql # use DIV operator for integer division
query I rowsort label-7793
SELECT - - ( - col2 ) DIV cor0.col1 AS col1 FROM tab2 AS cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-7793
SELECT - - ( - col2 ) / cor0.col1 AS col1 FROM tab2 AS cor0
----
-2
0
0

query I rowsort
SELECT ALL - + 70 * 25 FROM tab0 AS cor0
----
-1750
-1750
-1750

query I rowsort
SELECT - col2 * - ( - 75 ) + - col0 AS col1 FROM tab0
----
-110
-2499
-6239

query I rowsort
SELECT DISTINCT col2 * ( - 49 + col1 ) AS col2 FROM tab2
----
-1216
-486
260

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + ( col2 ) * - tab1.col2 col2 FROM tab1
----
-2919
-3313
-9296

query I rowsort
SELECT ALL col0 + + ( col0 ) + 19 FROM tab1
----
147
179
25

onlyif mysql # use DIV operator for integer division
query I rowsort label-7799
SELECT ALL 44 * tab0.col0 DIV col0 + ( col2 ) FROM tab0
----
126
45
77

skipif mysql # not compatible
query I rowsort label-7799
SELECT ALL 44 * tab0.col0 / col0 + ( col2 ) FROM tab0
----
126
45
77

query I rowsort
SELECT + 74 * - ( col2 ) * 62 AS col2 FROM tab1
----
-247752
-261516
-440448

query I rowsort
SELECT - col0 + + col2 * cor0.col2 AS col1 FROM tab1 AS cor0
----
2913
3185
9136

query I rowsort
SELECT DISTINCT + cor1.col2 FROM tab1, tab1 cor0, tab2 cor1
----
26
27
38

query I rowsort
SELECT DISTINCT + ( ( cor0.col0 ) ) AS col1 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT ALL - + col1 + - col0 AS col1 FROM tab2 cor0
----
-137
-38
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-7805
SELECT ALL - col2 DIV + col2 + col1 FROM tab1 AS cor0
----
12
25
9

skipif mysql # not compatible
query I rowsort label-7805
SELECT ALL - col2 / + col2 + col1 FROM tab1 AS cor0
----
12
25
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + + 79 col1 FROM tab1 AS cor0
----
133
136
175

query I rowsort
SELECT DISTINCT cor0.col1 * 81 + col1 * col2 FROM tab0 AS cor0
----
14833
7954
9804

query I rowsort
SELECT - col0 + 65 * cor0.col2 + + col0 AS col1 FROM tab0 AS cor0
----
2145
5330
65

query I rowsort
SELECT DISTINCT - col0 + 33 AS col0 FROM tab2 AS cor0
----
-45
-46
26

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7810
SELECT ALL - + col0 * + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7810
SELECT ALL - + col0 * + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7811
SELECT ALL - - col0 + - CAST( NULL AS SIGNED ) + col2 AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7811
SELECT ALL - - col0 + - CAST ( NULL AS INTEGER ) + col2 AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 44 + col1 col0 FROM tab0 AS cor0
----
42
47
53

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7813
SELECT + CAST( + col1 AS SIGNED ) + col2 * col2 FROM tab2 cor0
----
1461
735
760

skipif mysql # not compatible
query I rowsort label-7813
SELECT + CAST ( + col1 AS INTEGER ) + col2 * col2 FROM tab2 cor0
----
1461
735
760

query I rowsort
SELECT 7 * col0 + col0 * col0 FROM tab0 AS cor0
----
1470
744
8544

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - col0 * + tab1.col2 + col2 col2 FROM tab1
----
-36423
-4158
-99744

onlyif mysql # use DIV operator for integer division
query I rowsort label-7816
SELECT - 13 * 29 + cor0.col1 DIV col2 AS col1 FROM tab1 AS cor0
----
-377
-377
-377

skipif mysql # not compatible
query I rowsort label-7816
SELECT - 13 * 29 + cor0.col1 / col2 AS col1 FROM tab1 AS cor0
----
-377
-377
-377

query I rowsort
SELECT - + cor0.col1 * - 32 + col2 FROM tab0 AS cor0
----
2785
2994
3105

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 20 * + cor2.col0 col2 FROM tab0, tab0 AS cor0, tab0 AS cor1, tab0 AS cor2
----
81 values hashing to accf5354c96eb325103475830f286654

query I rowsort
SELECT DISTINCT - cor0.col0 * + cor0.col1 - - 94 FROM tab2 AS cor0
----
-123
-1249
-4508

query I rowsort
SELECT + cor0.col1 + col2 * 53 FROM tab0 AS cor0
----
150
1835
4437

query I rowsort
SELECT - + 88 AS col1 FROM tab1 AS cor0
----
-88
-88
-88

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab1, tab2 AS cor0, tab0 cor1
----
972 values hashing to 58757c5bbbd4217c03cf2ac0b6126e55

query I rowsort
SELECT ALL + + 6 AS col2 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to f1e8f0199f3714ee8fcc24ce0cc3ea04

query I rowsort
SELECT + tab0.col2 * + tab0.col1 + 94 + - tab0.col2 FROM tab0
----
190
2899
7474

query I rowsort
SELECT 7 + - tab2.col1 + col2 FROM tab2
----
-26
28
3

onlyif mysql # use DIV operator for integer division
query I rowsort label-7826
SELECT DISTINCT col0 DIV + col0 + col2 FROM tab0
----
2
34
83

skipif mysql # not compatible
query I rowsort label-7826
SELECT DISTINCT col0 / + col0 + col2 FROM tab0
----
2
34
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + 73 col0 FROM tab0 AS cor0
----
106
155
74

query I rowsort
SELECT DISTINCT 89 + + col2 FROM tab0
----
122
171
90

query I rowsort
SELECT - col1 + col2 * + tab0.col0 AS col2 FROM tab0
----
-62
706
7207

query I rowsort
SELECT + tab2.col2 + col2 * - col1 + col1 FROM tab2
----
-1449
-591
-779

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 29 col1 FROM tab0
----
29
29
29

query I rowsort
SELECT ALL tab2.col1 * col1 * - col2 AS col2 FROM tab2
----
-10982
-25947
-90506

query I rowsort
SELECT ALL 15 + 71 FROM tab2, tab1 cor0
----
9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19

query I rowsort
SELECT cor0.col0 * + 65 FROM tab2 cor0
----
455
5070
5135

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7835
SELECT col1 * - CAST( + col1 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-289
-3481
-961

skipif mysql # not compatible
query I rowsort label-7835
SELECT col1 * - CAST ( + col1 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-289
-3481
-961

onlyif mysql # use DIV operator for integer division
query I rowsort label-7836
SELECT DISTINCT col1 * col0 DIV + col0 - + col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7836
SELECT DISTINCT col1 * col0 / + col0 - + col1 FROM tab0
----
0

query I rowsort
SELECT - col2 + - ( - 65 ) - - col2 FROM tab1
----
65
65
65

query I rowsort
SELECT col2 * - col0 - col2 FROM tab1
----
-216
-3705
-7776

query I rowsort
SELECT - col0 + + col0 * col1 * col2 + + col2 AS col1 FROM tab2
----
119600
50993
5879

query I rowsort
SELECT 60 * ( col0 ) * col1 + col2 FROM tab2
----
13047
276146
80618

query I rowsort
SELECT ALL - 55 AS col0 FROM tab0 AS cor0
----
-55
-55
-55

query I rowsort
SELECT ALL 38 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7

query I rowsort
SELECT ( - tab2.col0 * col2 ) FROM tab2
----
-189
-2028
-3002

query I rowsort
SELECT DISTINCT col2 * col0 * - col0 AS col1 FROM tab2
----
-1323
-158184
-237158

query I rowsort
SELECT - 45 * - col0 * col1 AS col2 FROM tab0 AS cor0
----
152775
364455
92880

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + cor0.col0 ) col0 FROM tab1, tab2 AS cor0
----
7
78
79

query I rowsort
SELECT DISTINCT + ( col2 ) + col0 * col1 FROM tab0 AS cor0
----
2097
3396
8181

onlyif mysql # use DIV operator for integer division
query I rowsort label-7848
SELECT + + col2 + cor0.col0 DIV col1 + ( col0 * col0 ) AS col0 FROM tab1 AS cor0
----
4159
63
6502

skipif mysql # not compatible
query I rowsort label-7848
SELECT + + col2 + cor0.col0 / col1 + ( col0 * col0 ) AS col0 FROM tab1 AS cor0
----
4159
63
6502

query I rowsort
SELECT ALL - cor0.col0 + - col0 + + col0 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT + cor0.col2 + + 2 FROM tab2, tab2 cor0
----
9 values hashing to ed1987cf5eedb3b644eb444d781a424f

query I rowsort
SELECT - col1 * 64 AS col2 FROM tab2
----
-1088
-1984
-3776

query I rowsort
SELECT DISTINCT col1 + + 73 + col2 AS col0 FROM tab2
----
128
131
158

query I rowsort
SELECT DISTINCT col1 + 0 AS col1 FROM tab2
----
17
31
59

query I rowsort
SELECT + 64 + - col0 FROM tab1
----
-16
0
61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 88 col2 FROM tab1 AS cor0
----
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 12 * 99 + cor0.col0 col2 FROM tab1 cor0
----
1191
1252
1268

onlyif mysql # use DIV operator for integer division
query I rowsort label-7857
SELECT cor0.col2 DIV - cor0.col0 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-7857
SELECT cor0.col2 / - cor0.col0 FROM tab0 AS cor0
----
-1
0
0

query I rowsort
SELECT DISTINCT + cor0.col1 * + ( col0 ) FROM tab0 AS cor0
----
2064
3395
8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-7859
SELECT + + col1 DIV col2 AS col0 FROM tab0 cor0
----
1
2
97

skipif mysql # not compatible
query I rowsort label-7859
SELECT + + col1 / col2 AS col0 FROM tab0 cor0
----
1
2
97

query I rowsort
SELECT - ( col1 ) * cor0.col1 AS col2 FROM tab1 AS cor0
----
-100
-169
-676

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7861
SELECT + + col2 * CAST( - 56 AS SIGNED ) + col0 * col2 FROM tab2 AS cor0
----
-1323
572
874

skipif mysql # not compatible
query I rowsort label-7861
SELECT + + col2 * CAST ( - 56 AS INTEGER ) + col0 * col2 FROM tab2 AS cor0
----
-1323
572
874

query I rowsort
SELECT ALL - 74 + 10 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 601ec439a72fb4786a9cb7a6547ace5e

onlyif mysql # use DIV operator for integer division
query I rowsort label-7863
SELECT + col1 * - 75 + col0 DIV + col0 + + cor0.col0 AS col2 FROM tab0 AS cor0
----
-6425
-6735
-7239

skipif mysql # not compatible
query I rowsort label-7863
SELECT + col1 * - 75 + col0 / + col0 + + cor0.col0 AS col2 FROM tab0 AS cor0
----
-6425
-6735
-7239

query I rowsort
SELECT DISTINCT + col0 * + col2 + col0 AS col2 FROM tab1 AS cor0
----
165
3712
7760

query I rowsort
SELECT ALL - col0 * cor0.col2 + - col0 AS col2 FROM tab2 AS cor0
----
-196
-2106
-3081

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7866
SELECT + cor0.col2 * + CAST( NULL AS SIGNED ) + + ( col2 * + cor0.col2 ) + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7866
SELECT + cor0.col2 * + CAST ( NULL AS INTEGER ) + + ( col2 * + cor0.col2 ) + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + - col1 * - ( - col1 ) * col2 FROM tab2 AS cor0
----
-10982
-25947
-90506

query I rowsort
SELECT ALL cor0.col1 + 16 FROM tab2 AS cor0
----
33
47
75

query I rowsort
SELECT ALL + cor0.col0 + col0 AS col2 FROM tab2 cor0
----
14
156
158

query I rowsort
SELECT DISTINCT col1 + + col2 * col0 * - cor0.col2 FROM tab0 AS cor0
----
-26050
-598345
62

query I rowsort
SELECT ALL col1 + - cor0.col1 * col0 * - cor0.col0 FROM tab1 AS cor0
----
260
40970
83213

query I rowsort
SELECT DISTINCT - col0 - - cor0.col2 AS col2 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT col1 - 5 FROM tab2 AS cor0
----
12
26
54

query I rowsort
SELECT DISTINCT + - col0 * + col0 + + cor0.col0 FROM tab1 AS cor0
----
-4032
-6
-6320

query I rowsort
SELECT ALL + col1 * + col0 + + col1 + col2 FROM tab1 AS cor0
----
1149
158
707

query I rowsort
SELECT ALL + col2 * 26 AS col1 FROM tab1 AS cor0
----
1404
1482
2496

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7877
SELECT - col0 * + CAST( NULL AS SIGNED ) + + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7877
SELECT - col0 * + CAST ( NULL AS INTEGER ) + + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + - col1 * + ( + ( col0 ) ) - col0 AS col0 FROM tab1 AS cor0
----
-1120
-704
-81

query I rowsort
SELECT DISTINCT + + ( col0 ) * col1 + + ( + col1 ) FROM tab0 AS cor0
----
2150
3492
8190

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7880
SELECT ALL - CAST( NULL AS DECIMAL ) * 40 * - col1 - ( col0 + + col1 ) * + cor0.col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7880
SELECT ALL - CAST ( NULL AS REAL ) * 40 * - col1 - ( col0 + + col1 ) * + cor0.col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - col1 * + cor0.col2 AS col2 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT 23 + col0 FROM tab1 AS cor0
----
103
26
87

query I rowsort
SELECT DISTINCT - col0 + + 16 * cor0.col1 AS col0 FROM tab2 AS cor0
----
193
489
866

query I rowsort
SELECT ALL 75 - ( cor0.col1 ) FROM tab2 AS cor0
----
16
44
58

query I rowsort
SELECT - col2 * col2 + - cor0.col1 * 54 AS col0 FROM tab0 cor0
----
-11638
-5239
-5733

query I rowsort
SELECT DISTINCT 34 + + 99 FROM tab0 AS cor0
----
133

query I rowsort
SELECT + - cor0.col0 * ( - cor0.col0 ) + + 63 AS col0 FROM tab2 AS cor0
----
112
6147
6304

query I rowsort
SELECT DISTINCT ( 83 ) + col2 FROM tab2 AS cor0
----
109
110
121

query I rowsort
SELECT DISTINCT + tab2.col2 + - col1 * - col2 FROM tab2
----
1560
684
864

query I rowsort
SELECT - col1 * col0 + + 21 * + col0 + + tab1.col0 * + col0 * - col2 FROM tab1
----
-232768
-501
-613760

query I rowsort
SELECT ALL col1 * 70 - 93 FROM tab1
----
1727
607
817

query I rowsort
SELECT DISTINCT 71 * cor0.col2 FROM tab0 AS cor0
----
2343
5822
71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + ( - col1 ) col0 FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT - 33 + + col0 * 95 AS col2 FROM tab2 cor0
----
632
7377
7472

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - cor0.col1 ) * - col0 col1 FROM tab1 cor0
----
1040
640
78

query I rowsort
SELECT ( tab1.col1 ) * + col0 - + col1 FROM tab1
----
1027
52
630

query I rowsort
SELECT tab1.col1 - - col2 * - col2 FROM tab1
----
-2890
-3239
-9203

query I rowsort
SELECT col0 + + col1 * - ( col1 * col2 + ( - 5 ) ) AS col1 FROM tab1
----
-16079
-36371
-5586

onlyif mysql # use DIV operator for integer division
query I rowsort label-7899
SELECT - col0 DIV + col1 + + tab0.col2 AS col0 FROM tab0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-7899
SELECT - col0 / + col1 + + tab0.col2 AS col0 FROM tab0
----
1
33
82

skipif mysql # not compatible
query I rowsort
SELECT + 80 + + col1 * - CAST ( 25 AS REAL ) FROM tab2
----
-1395
-345
-695

onlyif mysql # use DIV operator for integer division
query I rowsort label-7901
SELECT 4 DIV col2 + + col2 DIV 99 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7901
SELECT 4 / col2 + + col2 / 99 AS col0 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col1 + ( col0 ) col0 FROM tab1
----
1120
704
81

query I rowsort
SELECT col1 + 57 AS col2 FROM tab0
----
143
148
154

query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab0 cor0 CROSS JOIN tab2, tab1 cor1
----
972 values hashing to 92235dbc382d83baa93d6546ed489b0c

query I rowsort
SELECT ALL + 39 + ( col0 ) AS col0 FROM tab0
----
128
63
74

query I rowsort
SELECT ALL + - 19 * + col2 FROM tab1 cor0
----
-1026
-1083
-1824

query I rowsort
SELECT DISTINCT + ( col0 ) + + col0 FROM tab0 AS cor0
----
178
48
70

onlyif mysql # use DIV operator for integer division
query I rowsort label-7908
SELECT ALL - tab0.col0 DIV + col1 AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7908
SELECT ALL - tab0.col0 / + col1 AS col0 FROM tab0
----
0
0
0

query I rowsort
SELECT ( 3 + + col0 ) FROM tab0
----
27
38
92

query I rowsort
SELECT + 30 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 29 col1 FROM tab0 cor0
----
-29
-29
-29

query I rowsort
SELECT - col0 + col2 + col2 AS col2 FROM tab0 cor0
----
-33
42
75

query I rowsort
SELECT + cor0.col1 * col1 AS col1 FROM tab0 cor0
----
7396
8281
9409

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7914
SELECT - col0 + CAST( cor0.col2 AS SIGNED ) * cor0.col0 FROM tab2 AS cor0
----
182
1950
2923

skipif mysql # not compatible
query I rowsort label-7914
SELECT - col0 + CAST ( cor0.col2 AS INTEGER ) * cor0.col0 FROM tab2 AS cor0
----
182
1950
2923

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7915
SELECT DISTINCT col1 * CAST( col1 * col1 AS SIGNED ) + - 3 + + col2 * - col2 FROM tab2 AS cor0
----
204700
29059
3466

skipif mysql # not compatible
query I rowsort label-7915
SELECT DISTINCT col1 * CAST ( col1 * col1 AS INTEGER ) + - 3 + + col2 * - col2 FROM tab2 AS cor0
----
204700
29059
3466

query I rowsort
SELECT ALL - cor2.col1 FROM tab1, tab0 AS cor0, tab0 AS cor1, tab2, tab2 cor2
----
243 values hashing to aad6a39cc782d0570960622f04a07424

query I rowsort
SELECT ALL col0 + 73 AS col0 FROM tab2 AS cor0
----
151
152
80

query I rowsort
SELECT ALL col2 * + col1 * 15 + col0 FROM tab2 AS cor0
----
12562
23088
9769

query I rowsort
SELECT DISTINCT col0 + - cor0.col2 + + ( - col1 ) FROM tab0 AS cor0
----
-63
-84
-95

query I rowsort
SELECT - - 5 AS col1 FROM tab0 AS cor0
----
5
5
5

query I rowsort
SELECT ALL - - ( col0 ) + - col2 FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT DISTINCT - + 56 * + 50 AS col1 FROM tab0 AS cor0
----
-2800

query I rowsort
SELECT ALL + - ( col0 ) + col0 AS col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + col1 + + 40 FROM tab2 AS cor0
----
57
71
99

query I rowsort
SELECT ALL - + col0 + - col1 FROM tab1 cor0
----
-29
-74
-93

query I rowsort
SELECT - + col2 * - cor0.col0 AS col2 FROM tab0 AS cor0
----
35
7298
792

onlyif mysql # use DIV operator for integer division
query I rowsort label-7927
SELECT ALL ( 14 ) DIV col1 + - col2 FROM tab2 AS cor0
----
-26
-27
-38

skipif mysql # not compatible
query I rowsort label-7927
SELECT ALL ( 14 ) / col1 + - col2 FROM tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT DISTINCT + 0 + - cor0.col0 - col2 FROM tab1 AS cor0
----
-121
-176
-57

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7929
SELECT ALL - CAST( NULL AS SIGNED ) + 16 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-7929
SELECT ALL - CAST ( NULL AS INTEGER ) + 16 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT - col0 + - ( 29 ) FROM tab0
----
-118
-53
-64

onlyif mysql # use DIV operator for integer division
query I rowsort label-7931
SELECT col2 DIV + 44 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7931
SELECT col2 / + 44 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + tab2.col1 * col0 + + col2 * col1 AS col2 FROM tab2
----
1054
1989
6136

query I rowsort
SELECT DISTINCT + 52 + cor0.col1 AS col0 FROM tab1, tab0 AS cor0
----
138
143
149

query I rowsort
SELECT + 70 * col1 + col1 AS col0 FROM tab1 AS cor0
----
1846
710
923

onlyif mysql # use DIV operator for integer division
query I rowsort label-7935
SELECT ALL + - cor0.col2 * col1 + CAST( col0 AS SIGNED ) + col2 DIV 76 FROM tab0 AS cor0
----
-2814
-62
-7372

skipif mysql # not compatible
query I rowsort label-7935
SELECT ALL + - cor0.col2 * col1 + CAST ( col0 AS INTEGER ) + col2 / 76 FROM tab0 AS cor0
----
-2814
-62
-7372

query I rowsort
SELECT ALL - col0 * - col0 - 16 AS col0 FROM tab1 AS cor0
----
-7
4080
6384

query I rowsort
SELECT ( col0 ) * 39 FROM tab1 AS cor0
----
117
2496
3120

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * col2 col0 FROM tab2 cor0
----
-1534
-646
-837

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7939
SELECT - cor0.col2 + - CAST( ( + col1 ) * cor0.col2 AS SIGNED ) + + ( col1 + + col1 ) AS col0 FROM tab1 AS cor0
----
-1318
-1406
-607

skipif mysql # not compatible
query I rowsort label-7939
SELECT - cor0.col2 + - CAST ( ( + col1 ) * cor0.col2 AS INTEGER ) + + ( col1 + + col1 ) AS col0 FROM tab1 AS cor0
----
-1318
-1406
-607

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7940
SELECT col2 * + col0 + 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-7940
SELECT col2 * + col0 + CAST ( NULL AS INTEGER ) col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT col1 * - ( + col0 ) AS col1 FROM tab0 cor0
----
-2064
-3395
-8099

query I rowsort
SELECT + - col1 + - col2 * - 19 AS col0 FROM tab1 AS cor0
----
1000
1073
1811

onlyif mysql # use DIV operator for integer division
query I rowsort label-7943
SELECT + 20 * col2 + + col1 + - col0 * + col2 DIV col2 FROM tab1
----
1086
1103
1853

skipif mysql # not compatible
query I rowsort label-7943
SELECT + 20 * col2 + + col1 + - col0 * + col2 / col2 FROM tab1
----
1086
1103
1853

query I rowsort
SELECT + col0 + 53 AS col1 FROM tab0 AS cor0
----
142
77
88

query I rowsort
SELECT - col0 * ( col2 * + col1 + - 40 ) AS col1 FROM tab1 AS cor0
----
-33920
-4092
-96640

query I rowsort
SELECT col1 + col1 + - col0 FROM tab1 AS cor0
----
-44
-54
49

query I rowsort
SELECT - - cor0.col2 * - col2 + cor0.col0 FROM tab0 AS cor0
----
-1065
-6635
34

query I rowsort
SELECT DISTINCT - col2 * + ( col0 ) AS col0 FROM tab2 cor0
----
-189
-2028
-3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col0 + - col1 col1 FROM tab2 AS cor0
----
18
6025
6224

query I rowsort
SELECT - + col0 + 81 FROM tab2 AS cor0
----
2
3
74

onlyif mysql # use DIV operator for integer division
query I rowsort label-7951
SELECT ALL col0 + col1 DIV + 40 AS col1 FROM tab2 AS cor0
----
7
79
79

skipif mysql # not compatible
query I rowsort label-7951
SELECT ALL col0 + col1 / + 40 AS col1 FROM tab2 AS cor0
----
7
79
79

query I rowsort
SELECT + col2 * col2 * ( col0 ) AS col0 FROM tab2
----
114076
5103
52728

query I rowsort
SELECT - col2 + 35 AS col0 FROM tab0 AS cor0
----
-47
2
34

query I rowsort
SELECT DISTINCT - + col0 * - 39 + ( - col2 ) AS col2 FROM tab0 AS cor0
----
1364
3389
903

query I rowsort
SELECT + col2 - ( col1 * col2 + + col2 ) AS col1 FROM tab2
----
-1534
-646
-837

query I rowsort
SELECT + col2 + col1 + + tab0.col2 FROM tab0
----
152
255
99

query I rowsort
SELECT DISTINCT tab0.col0 - + col2 FROM tab0
----
-9
34
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-7958
SELECT DISTINCT col1 - + ( tab1.col2 ) DIV - col0 FROM tab1
----
10
14
44

skipif mysql # not compatible
query I rowsort label-7958
SELECT DISTINCT col1 - + ( tab1.col2 ) / - col0 FROM tab1
----
10
14
44

query I rowsort
SELECT DISTINCT + ( 61 ) AS col1 FROM tab2 AS cor0
----
61

query I rowsort
SELECT ALL + - 73 * - cor0.col1 + + col1 AS col0 FROM tab0 AS cor0
----
6364
6734
7178

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7961
SELECT DISTINCT + CAST( NULL AS SIGNED ) - - cor0.col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7961
SELECT DISTINCT + CAST ( NULL AS INTEGER ) - - cor0.col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ( 89 ) AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743

onlyif mysql # use DIV operator for integer division
query I rowsort label-7963
SELECT ALL + col2 + col1 DIV col1 AS col1 FROM tab2
----
27
28
39

skipif mysql # not compatible
query I rowsort label-7963
SELECT ALL + col2 + col1 / col1 AS col1 FROM tab2
----
27
28
39

query I rowsort
SELECT DISTINCT col0 + 78 AS col1 FROM tab2
----
156
157
85

query I rowsort
SELECT DISTINCT 31 * - col1 AS col0 FROM tab2 AS cor0
----
-1829
-527
-961

query I rowsort
SELECT - col2 * + cor0.col0 AS col2 FROM tab1 cor0
----
-162
-3648
-7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-7967
SELECT DISTINCT 60 DIV - col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7967
SELECT DISTINCT 60 / - col1 FROM tab0
----
0

query I rowsort
SELECT col0 + col1 * - ( + col0 ) AS col0 FROM tab1 cor0
----
-576
-75
-960

query I rowsort
SELECT + col1 * + col1 * col0 FROM tab2 AS cor0
----
22831
271518
6727

onlyif mysql # use DIV operator for integer division
query I rowsort label-7970
SELECT - col2 * col1 DIV 18 FROM tab2 AS cor0
----
-35
-46
-85

skipif mysql # not compatible
query I rowsort label-7970
SELECT - col2 * col1 / 18 FROM tab2 AS cor0
----
-35
-46
-85

query I rowsort
SELECT ALL ( col2 ) * + col0 AS col2 FROM tab1
----
162
3648
7680

query I rowsort
SELECT - + col0 * col0 * - col0 FROM tab1 AS cor0
----
262144
27
512000

query I rowsort
SELECT 76 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 7b2b08dd3f1adef028d3f40ef7c716da

query I rowsort
SELECT 40 + tab1.col0 AS col0 FROM tab1
----
104
120
43

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7975
SELECT + col0 / CAST( NULL AS SIGNED ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7975
SELECT + col0 / CAST ( NULL AS INTEGER ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 71 AS col0 FROM tab0, tab1 cor0, tab1 AS cor1
----
27 values hashing to 3907e0aa4f29c002120742c4abb3e23a

query I rowsort
SELECT 50 - col2 FROM tab0
----
-32
17
49

query I rowsort
SELECT + cor0.col0 * 8 FROM tab1, tab1 cor0
----
9 values hashing to 8bd6c39e77e44b2965773369dba6b816

query I rowsort
SELECT ( + col0 ) + + col1 AS col0 FROM tab1
----
29
74
93

query I rowsort
SELECT + 73 + - col2 AS col0 FROM tab0
----
-9
40
72

query IIIIIIIIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2, tab1 cor1, tab2 cor2
----
972 values hashing to 2507aa9f48c3db94de9fec065edf3731

query I rowsort
SELECT + + col0 * + 74 FROM tab2 AS cor0
----
518
5772
5846

query I rowsort
SELECT DISTINCT + + cor0.col1 * 76 FROM tab2 cor0
----
1292
2356
4484

query I rowsort
SELECT ALL - col2 * + 68 + + 72 + col2 AS col0 FROM tab2 AS cor0
----
-1670
-1737
-2474

query I rowsort
SELECT DISTINCT + col2 + 20 + - col0 FROM tab0
----
-14
13
29

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7986
SELECT ALL + + col1 * + CAST( + col1 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
100
169
676

skipif mysql # not compatible
query I rowsort label-7986
SELECT ALL + + col1 * + CAST ( + col1 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT - col2 * + 78 FROM tab1 cor0
----
-4212
-4446
-7488

onlyif mysql # use DIV operator for integer division
query I rowsort label-7988
SELECT ALL + col0 * + cor0.col1 + col1 DIV + col2 FROM tab1 AS cor0
----
1040
640
78

skipif mysql # not compatible
query I rowsort label-7988
SELECT ALL + col0 * + cor0.col1 + col1 / + col2 FROM tab1 AS cor0
----
1040
640
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + ( col0 ) * col1 col1 FROM tab2 AS cor0
----
1381
244
4628

query I rowsort
SELECT DISTINCT + - col2 * - cor0.col2 FROM tab1 cor0
----
2916
3249
9216

onlyif mysql # use DIV operator for integer division
query I rowsort label-7991
SELECT DISTINCT - cor0.col2 + + col1 DIV - col2 AS col0 FROM tab1 AS cor0
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-7991
SELECT DISTINCT - cor0.col2 + + col1 / - col2 AS col0 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT - ( col1 ) * cor0.col0 * + col1 FROM tab0 AS cor0
----
-177504
-329315
-737009

query I rowsort
SELECT DISTINCT tab0.col0 FROM tab0, tab0 AS cor0, tab1, tab1 AS cor1
----
24
35
89

query I rowsort
SELECT ALL + - cor0.col1 + - col1 * - col2 * col1 FROM tab2 AS cor0
----
10965
25916
90447

query I rowsort
SELECT ALL - 5 + - col1 AS col0 FROM tab1 AS cor0
----
-15
-18
-31

query I rowsort
SELECT DISTINCT ( col0 ) * - col0 FROM tab0 cor0
----
-1225
-576
-7921

query I rowsort
SELECT 9 * + col0 FROM tab1 AS cor0
----
27
576
720

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * - 26 col0 FROM tab0 AS cor0
----
-2314
-624
-910

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 24 + cor0.col2 * col2 + col1 col0 FROM tab0 AS cor0
----
1199
122
6839

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8000
SELECT ALL + CAST( NULL AS DECIMAL ) - cor0.col0 * + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8000
SELECT ALL + CAST ( NULL AS REAL ) - cor0.col0 * + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - col2 + ( + col2 * + col0 + + col1 ) AS col2 FROM tab2 AS cor0
----
193
2061
2981

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8002
SELECT ALL - + CAST( col2 AS SIGNED ) + cor0.col0 AS col0 FROM tab0 cor0
----
-9
34
7

skipif mysql # not compatible
query I rowsort label-8002
SELECT ALL - + CAST ( col2 AS INTEGER ) + cor0.col0 AS col0 FROM tab0 cor0
----
-9
34
7

query I rowsort
SELECT DISTINCT - 46 + col1 FROM tab0 cor0
----
40
45
51

query I rowsort
SELECT DISTINCT + + col1 * - col0 + col0 FROM tab2 AS cor0
----
-1264
-210
-4524

query I rowsort
SELECT ALL 41 + cor0.col1 * 82 AS col0 FROM tab0 cor0
----
7093
7503
7995

query I rowsort
SELECT DISTINCT + + col0 * col2 + col2 + cor0.col0 FROM tab0 cor0
----
71
7469
849

query I rowsort
SELECT 35 + col0 AS col1 FROM tab0 AS cor0
----
124
59
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 12 col1 FROM tab1 cor0
----
12
12
12

query I rowsort
SELECT ( 44 ) * - col2 + + tab0.col1 * col0 FROM tab0
----
3351
4491
612

query I rowsort
SELECT DISTINCT 83 + col2 AS col0 FROM tab1
----
137
140
179

query I rowsort
SELECT col0 - + tab1.col2 * - col2 FROM tab1
----
2919
3313
9296

query I rowsort
SELECT col0 + + col2 AS col0 FROM tab0 WHERE NOT NULL IN ( tab0.col2 )
----

query I rowsort
SELECT ALL + col2 * + tab0.col0 - col2 FROM tab0
----
34
7216
759

query I rowsort
SELECT + col1 + col1 * + col0 + + tab0.col0 * + col2 FROM tab0
----
15488
2942
3527

query I rowsort
SELECT ALL + tab2.col1 - col1 AS col1 FROM tab2
----
0
0
0

query I rowsort
SELECT - col2 * col0 * col2 FROM tab1 WHERE NULL NOT IN ( - tab1.col2 + col0 )
----

query I rowsort
SELECT col0 * - col2 + col1 + col1 FROM tab0
----
-620
-7116
159

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - tab2.col0 + col2 col1 FROM tab2 WHERE NOT ( + col2 ) <= - col1
----
-162
-2002
-2964

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col2 FROM tab0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND ( NULL )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NULL ) BETWEEN col1 * - col0 * - col2 AND - col0 * col2
----

query I rowsort
SELECT ALL - tab1.col2 - + col1 FROM tab1
----
-109
-67
-80

query I rowsort
SELECT - col1 AS col2 FROM tab2 WHERE col0 BETWEEN ( - col0 ) AND + col2
----
-31

query I rowsort
SELECT DISTINCT col2 FROM tab1 WHERE NOT ( NULL ) BETWEEN NULL AND ( col1 * col2 )
----

query I rowsort
SELECT + col2 + col1 FROM tab0 WHERE NOT ( + col2 ) = NULL
----

query I rowsort
SELECT ALL + col0 + col0 AS col2 FROM tab1 WHERE ( col2 ) IN ( col2 + - col2 )
----

query I rowsort
SELECT tab1.col2 * - col0 + col2 FROM tab1
----
-108
-3591
-7584

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NULL ) > - col0 + col1
----

query I rowsort
SELECT DISTINCT + col0 + col1 * + col1 FROM tab1
----
164
249
679

query I rowsort
SELECT col1 * col0 + - col0 AS col1 FROM tab2 AS cor0
----
1264
210
4524

query I rowsort
SELECT - - col2 + + cor0.col1 + col1 AS col2 FROM tab0 AS cor0
----
195
205
264

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN col0 + col2 - col2 AND col1 + col2
----

query I rowsort
SELECT DISTINCT col1 * cor0.col2 AS col0 FROM tab2 cor0
----
1534
646
837

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL <> - col0
----

query I rowsort
SELECT ALL tab2.col0 AS col1 FROM tab2 WHERE + col2 * + col2 IN ( col1 )
----

query I rowsort
SELECT DISTINCT - col0 * + col2 + + col0 * col2 AS col1 FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT + tab1.col0 * - 88 AS col2 FROM tab1, tab2 AS cor0
----
-264
-5632
-7040

skipif mysql # not compatible
query I rowsort
SELECT col1 / CAST ( col1 AS REAL ) + col2 + - col1 FROM tab0 AS cor0
----
-52
-8
-95

onlyif mysql # use DIV operator for integer division
query I rowsort label-8038
SELECT - col2 DIV ( col0 ) AS col1 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-8038
SELECT - col2 / ( col0 ) AS col1 FROM tab0 AS cor0
----
-1
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab2.col0 * - col2 col2 FROM tab2
----
189
2028
3002

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8040
SELECT DISTINCT - CAST( - col1 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
17
31
59

skipif mysql # not compatible
query I rowsort label-8040
SELECT DISTINCT - CAST ( - col1 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
17
31
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * 63 + - col0 col1 FROM tab0 AS cor0
----
-1536
-2240
-5696

query I rowsort
SELECT - - cor0.col0 * - col2 AS col1 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT ALL cor0.col2 * 20 * col2 AS col0 FROM tab2 AS cor0
----
13520
14580
28880

query I rowsort
SELECT - col0 - + cor0.col2 AS col0 FROM tab2 AS cor0
----
-104
-117
-34

query I rowsort
SELECT + 26 + col1 FROM tab2 AS cor0
----
43
57
85

onlyif mysql # use DIV operator for integer division
query I rowsort label-8046
SELECT + col1 DIV ( col0 * col0 ) + col0 * 77 FROM tab0 AS cor0
----
1848
2695
6853

skipif mysql # not compatible
query I rowsort label-8046
SELECT + col1 / ( col0 * col0 ) + col0 * 77 FROM tab0 AS cor0
----
1848
2695
6853

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + col0 col0 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT ALL col2 * - col1 + col0 + col0 AS col2 FROM tab1 AS cor0
----
-1088
-1398
-442

query I rowsort
SELECT - col2 + + ( ( col0 ) + 11 ) * col2 * col0 FROM tab0 AS cor0
----
1609
27687
729718

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 94 col1 FROM tab0 AS cor0
----
-94
-94
-94

query I rowsort
SELECT - tab2.col2 + - 96 AS col0 FROM tab2
----
-122
-123
-134

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8052
SELECT CAST( NULL AS SIGNED ) * 87 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-8052
SELECT CAST ( NULL AS INTEGER ) * 87 col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-8053
SELECT DISTINCT + 1 DIV - 51 col1 FROM tab0 cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8053
SELECT DISTINCT + 1 / - 51 col1 FROM tab0 cor0
----
0

query I rowsort
SELECT - 94 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to a95bfa539191d3f72f6548147d7efb9e

query I rowsort
SELECT + col0 * 43 AS col1 FROM tab2 cor0
----
301
3354
3397

query I rowsort
SELECT ALL col1 * cor0.col0 + col1 * col0 FROM tab0 AS cor0
----
16198
4128
6790

query I rowsort
SELECT DISTINCT + 97 + 42 FROM tab2 AS cor0
----
139

query I rowsort
SELECT + - 95 + col0 AS col2 FROM tab1 AS cor0
----
-15
-31
-92

query I rowsort
SELECT ALL + + col1 * - col1 * col1 - cor0.col0 AS col0 FROM tab0 AS cor0
----
-636080
-753660
-912708

query I rowsort
SELECT ALL + - cor0.col0 * col2 + + cor0.col1 + col2 * - col1 AS col0 FROM tab0 cor0
----
-14669
-35
-3544

onlyif mysql # use DIV operator for integer division
query I rowsort label-8061
SELECT DISTINCT 53 DIV - col0 - - col2 AS col2 FROM tab0 AS cor0
----
0
31
82

skipif mysql # not compatible
query I rowsort label-8061
SELECT DISTINCT 53 / - col0 - - col2 AS col2 FROM tab0 AS cor0
----
0
31
82

query I rowsort
SELECT cor0.col0 * col2 + 25 FROM tab0 AS cor0
----
60
7323
817

query I rowsort
SELECT DISTINCT + - 8 * col1 + col0 * 95 AS col2 FROM tab0 AS cor0
----
1592
2549
7727

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8064
SELECT + + cor0.col0 + col0 * CAST( NULL AS SIGNED ) * 21 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8064
SELECT + + cor0.col0 + col0 * CAST ( NULL AS INTEGER ) * 21 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-8065
SELECT ALL - - col1 DIV col0 + col1 DIV + col2 AS col2 FROM tab1 AS cor0
----
0
0
8

skipif mysql # not compatible
query I rowsort label-8065
SELECT ALL - - col1 / col0 + col1 / + col2 AS col2 FROM tab1 AS cor0
----
0
0
8

query I rowsort
SELECT - 47 * - col1 + 79 FROM tab0 AS cor0
----
4121
4356
4638

query I rowsort
SELECT DISTINCT - col0 * col1 * ( 14 ) AS col2 FROM tab2 AS cor0
----
-18802
-3038
-64428

query I rowsort
SELECT DISTINCT col2 + + cor0.col0 * col0 FROM tab1 AS cor0
----
4153
63
6496

query I rowsort
SELECT ALL - - col0 + cor0.col2 AS col0 FROM tab0 cor0
----
171
36
57

query I rowsort
SELECT ALL + + col2 * - col0 * col1 + + col2 FROM tab1 AS cor0
----
-36423
-4158
-99744

query I rowsort
SELECT DISTINCT - + col2 * + col1 - + col1 FROM tab2 AS cor0
----
-1593
-663
-868

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * 13 * - col1 + col1 * + col0 col1 FROM tab2 AS cor0
----
-12276
-2414
-40651

query I rowsort
SELECT - col0 + + 49 + col0 FROM tab1 cor0
----
49
49
49

query I rowsort
SELECT 77 * - col2 * tab1.col2 AS col1 FROM tab1
----
-224532
-250173
-709632

query I rowsort
SELECT col2 * tab2.col2 * col1 AS col2 FROM tab2
----
22599
24548
39884

onlyif mysql # use DIV operator for integer division
query I rowsort label-8076
SELECT ALL col0 DIV ( 49 ) + - col2 FROM tab1 AS cor0
----
-54
-56
-95

skipif mysql # not compatible
query I rowsort label-8076
SELECT ALL col0 / ( 49 ) + - col2 FROM tab1 AS cor0
----
-54
-56
-95

onlyif mysql # use DIV operator for integer division
query I rowsort label-8077
SELECT ALL + col1 * - CAST( col1 * col0 AS SIGNED ) + cor0.col2 DIV col2 AS col1 FROM tab1 cor0
----
-13519
-2027
-6399

skipif mysql # not compatible
query I rowsort label-8077
SELECT ALL + col1 * - CAST ( col1 * col0 AS INTEGER ) + cor0.col2 / col2 AS col1 FROM tab1 cor0
----
-13519
-2027
-6399

query I rowsort
SELECT ALL - col2 * - col2 + + 72 FROM tab2 AS cor0
----
1516
748
801

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8079
SELECT DISTINCT CAST( NULL AS SIGNED ) FROM tab0, tab1 AS cor0, tab2, tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-8079
SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab0, tab1 AS cor0, tab2, tab0 AS cor1
----
NULL

query I rowsort
SELECT ALL + col0 * - 57 AS col0 FROM tab0 AS cor0
----
-1368
-1995
-5073

query I rowsort
SELECT DISTINCT col2 + col2 * cor0.col2 * + col1 FROM tab2 AS cor0
----
22626
24586
39910

query I rowsort
SELECT - ( + 74 ) FROM tab0 AS cor0
----
-74
-74
-74

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8083
SELECT ALL + CAST( NULL AS SIGNED ) / + 98 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8083
SELECT ALL + CAST ( NULL AS INTEGER ) / + 98 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-8084
SELECT + 45 DIV 47 col2 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8084
SELECT + 45 / 47 col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - 88 * col0 FROM tab1 AS cor0
----
-264
-5632
-7040

query I rowsort
SELECT - ( col0 ) + col0 + 36 FROM tab1 AS cor0
----
36
36
36

query I rowsort
SELECT - 85 AS col1 FROM tab1 cor0
----
-85
-85
-85

query I rowsort
SELECT col2 * - 44 + col1 FROM tab2
----
-1085
-1157
-1655

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8089
SELECT DISTINCT - + CAST( NULL AS SIGNED ) + - col0 * col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8089
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) + - col0 * col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL 65 * col2 * + col2 AS col0 FROM tab2 AS cor0
----
43940
47385
93860

onlyif mysql # use DIV operator for integer division
query I rowsort label-8091
SELECT + 15 DIV col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8091
SELECT + 15 / col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - - ( + 94 ) FROM tab2 AS cor0
----
94
94
94

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8093
SELECT ALL + ( col2 ) * - col1 * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8093
SELECT ALL + ( col2 ) * - col1 * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + cor0.col0 * cor0.col2 AS col1 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT DISTINCT col2 + col0 * + tab1.col2 + + col2 AS col2 FROM tab1
----
270
3762
7872

query I rowsort
SELECT DISTINCT col2 + - 26 * tab1.col1 AS col0 FROM tab1
----
-203
-242
-622

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8097
SELECT ALL - tab0.col1 * CAST( NULL AS SIGNED ) + + col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8097
SELECT ALL - tab0.col1 * CAST ( NULL AS INTEGER ) + + col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - - ( col0 ) + cor0.col2 AS col1 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT DISTINCT + + 34 + col1 * col0 AS col2 FROM tab1 cor0
----
1074
112
674

query I rowsort
SELECT + - col1 * + col0 + col0 AS col0 FROM tab2 cor0
----
-1264
-210
-4524

query I rowsort
SELECT 33 + + tab2.col0 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 9c3fcb0491d1928ea6959c983fcf9fd2

query I rowsort
SELECT + 85 + col2 * col2 AS col1 FROM tab0
----
1174
6809
86

query I rowsort
SELECT ALL col2 - - col0 AS col0 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT DISTINCT + 25 * + 34 * col0 FROM tab0 cor0
----
20400
29750
75650

query I rowsort
SELECT ALL - 19 * + col1 - + col0 AS col1 FROM tab1
----
-254
-327
-497

query I rowsort
SELECT ALL tab1.col0 FROM tab1, tab1 cor0, tab0, tab1 cor1
----
81 values hashing to e28bf7f922650ca423ade3642ce0285b

query I rowsort
SELECT - 86 * 12 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f458d94072228baa5dd1bf31ea60adbe

query I rowsort
SELECT + col0 * + col0 + col1 - col0 FROM tab0 AS cor0
----
1287
638
7923

query I rowsort
SELECT - - col1 + col2 + 41 FROM tab1 AS cor0
----
108
121
150

query I rowsort
SELECT ALL col0 * col0 * cor0.col0 AS col2 FROM tab0 cor0
----
13824
42875
704969

query I rowsort
SELECT - 71 * col0 - + 25 FROM tab2 AS cor0
----
-522
-5563
-5634

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + + col1 col0 FROM tab0 AS cor0
----
2
62

query I rowsort
SELECT DISTINCT + + col2 + + cor0.col1 AS col1 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT ALL + col0 + - col0 * ( col0 ) AS col2 FROM tab1 AS cor0
----
-4032
-6
-6320

query I rowsort
SELECT DISTINCT + - cor0.col2 * 25 + col1 FROM tab1 AS cor0
----
-1324
-1415
-2387

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + cor0.col0 * ( col2 ) + col2 + - 58 col0 FROM tab0 AS cor0
----
-7274
-817
-92

query I rowsort
SELECT + + col1 + + 88 * + 20 + col0 * + ( ( col2 ) + - ( + col2 ) ) AS col0 FROM tab2 AS cor0
----
1777
1791
1819

query I rowsort
SELECT ALL + cor0.col2 * col2 + col0 FROM tab2 AS cor0
----
1523
736
754

query I rowsort
SELECT DISTINCT col2 * col1 - + col1 FROM tab2 AS cor0
----
1475
629
806

query I rowsort
SELECT DISTINCT + - cor0.col2 * + col0 - + cor0.col0 FROM tab0 AS cor0
----
-70
-7387
-816

query I rowsort
SELECT ALL col0 + col1 * col0 AS col0 FROM tab0 AS cor0
----
2088
3430
8188

query I rowsort
SELECT 71 * col0 + ( + cor0.col2 * - col1 ) AS col1 FROM tab2 AS cor0
----
-340
4004
4963

query I rowsort
SELECT ALL - 20 + + col2 AS col0 FROM tab0 AS cor0
----
-19
13
62

query I rowsort
SELECT 12 + col2 FROM tab2 AS cor0
----
38
39
50

query I rowsort
SELECT + ( col2 ) * - 17 AS col0 FROM tab0 AS cor0
----
-1394
-17
-561

query I rowsort
SELECT DISTINCT + + 57 * col0 + col2 * - col1 - - col2 FROM tab0 cor0
----
-1437
-2307
1899

query I rowsort
SELECT col0 * - col0 + - 83 * col2 AS col2 FROM tab0 AS cor0
----
-1308
-14727
-3315

query I rowsort
SELECT ALL col0 + - col2 * col1 AS col2 FROM tab2
----
-1456
-567
-830

query I rowsort
SELECT + - ( col1 ) + col2 FROM tab2 AS cor0
----
-33
-4
21

query I rowsort
SELECT + 76 + - col0 AS col0 FROM tab0 AS cor0
----
-13
41
52

query I rowsort
SELECT - col2 + - 98 FROM tab1 AS cor0
----
-152
-155
-194

query I rowsort
SELECT - cor0.col1 * ( - col2 ) FROM tab1 cor0
----
1248
1404
570

query I rowsort
SELECT DISTINCT cor0.col2 AS col1 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
1
33
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-8134
SELECT col1 + + col2 DIV + cor0.col0 FROM tab2 AS cor0
----
17
34
59

skipif mysql # not compatible
query I rowsort label-8134
SELECT col1 + + col2 / + cor0.col0 FROM tab2 AS cor0
----
17
34
59

query I rowsort
SELECT DISTINCT + cor0.col1 + - 3 * - col2 * col2 FROM tab2 AS cor0
----
2087
2218
4349

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab2, tab1 AS cor1, tab0 AS cor2, tab2 AS cor3
----
3645 values hashing to b9fc7433316cc7891b52d2a23a135419

query I rowsort
SELECT + col2 + 7 + + tab1.col0 * col0 FROM tab1
----
4160
6503
70

query I rowsort
SELECT + 53 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to fede6033dee346dbd272085c05724fda

query I rowsort
SELECT ALL + 9 + - col0 FROM tab2
----
-69
-70
2

query I rowsort
SELECT ALL col2 * col0 + + col0 AS col2 FROM tab0
----
70
7387
816

query I rowsort
SELECT DISTINCT + + col1 * col0 + + col2 AS col2 FROM tab2 AS cor0
----
1381
244
4628

query I rowsort
SELECT + 55 + col1 AS col1 FROM tab2 cor0
----
114
72
86

query I rowsort
SELECT + cor0.col1 - 10 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to e96f00f1d61bb2d5055a267d2fdd4a50

query I rowsort
SELECT + col2 * - 29 AS col1 FROM tab0 AS cor0
----
-2378
-29
-957

query I rowsort
SELECT DISTINCT col2 + 2 AS col2 FROM tab1 cor0
----
56
59
98

query I rowsort
SELECT ALL cor1.col0 FROM tab2, tab0 AS cor0, tab0 cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8147
SELECT CAST( NULL AS SIGNED ) * + col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8147
SELECT CAST ( NULL AS INTEGER ) * + col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 74 * col1 FROM tab0
----
6364
6734
7178

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * tab0.col1 col0 FROM tab0
----
7396
8281
9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-8150
SELECT ( ( col1 ) ) DIV tab0.col2 AS col0 FROM tab0
----
1
2
97

skipif mysql # not compatible
query I rowsort label-8150
SELECT ( ( col1 ) ) / tab0.col2 AS col0 FROM tab0
----
1
2
97

query I rowsort
SELECT ALL cor0.col2 FROM tab2, tab1 AS cor0, tab1, tab2 AS cor1
----
81 values hashing to 9d355f1f2edc347a359dad00d2d3f886

query I rowsort
SELECT DISTINCT - col2 * + col1 * + 48 FROM tab1
----
-27360
-59904
-67392

query I rowsort
SELECT DISTINCT col2 + tab2.col2 * 98 + tab2.col1 * col0 FROM tab2
----
2890
5105
7176

query I rowsort
SELECT - cor0.col0 + - col2 + 1 FROM tab2 AS cor0
----
-103
-116
-33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col2 + 62 col1 FROM tab1 AS cor0
----
2978
3311
9278

query I rowsort
SELECT + cor0.col1 * col2 * - 70 FROM tab1 AS cor0
----
-39900
-87360
-98280

query I rowsort
SELECT col2 * cor0.col2 + - 7 + + col2 AS col0 FROM tab1 AS cor0
----
2963
3299
9305

query I rowsort
SELECT + cor0.col2 * ( + tab2.col2 ) FROM tab2, tab0 AS cor0
----
9 values hashing to a477aa402dcd904394a585dfd5cfe837

query I rowsort
SELECT + col1 * + 86 FROM tab2 cor0
----
1462
2666
5074

query I rowsort
SELECT + cor0.col2 * col2 - - col0 FROM tab0 AS cor0
----
1113
36
6813

query I rowsort
SELECT col0 + - col1 * col0 AS col1 FROM tab0 AS cor0
----
-2040
-3360
-8010

query I rowsort
SELECT - col2 * 17 + col0 + 74 FROM tab1 AS cor0
----
-1478
-831
-841

query I rowsort
SELECT + col2 * 21 * + col2 + col2 * + 33 * - ( + col1 ) AS col0 FROM tab1
----
14904
152352
49419

skipif mysql # not compatible
query I rowsort
SELECT - - CAST ( + col0 AS REAL ) FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT - + ( - cor0.col2 ) * - col0 FROM tab1 AS cor0
----
-162
-3648
-7680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * col0 + col2 * - col1 col1 FROM tab2
----
-1026
-3562
-3648

query I rowsort
SELECT + col1 * col2 + col2 * + col2 FROM tab2
----
1566
2090
2210

query I rowsort
SELECT DISTINCT col2 + + 64 AS col0 FROM tab2 AS cor0
----
102
90
91

onlyif mysql # use DIV operator for integer division
query I rowsort label-8169
SELECT ALL col2 DIV 59 AS col1 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8169
SELECT ALL col2 / 59 AS col1 FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT 2 * cor1.col2 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 73e5d3d4212c7c9c8f2e4a4f74108ae2

query I rowsort
SELECT col2 + col1 * - col0 AS col1 FROM tab2
----
-1305
-190
-4576

query I rowsort
SELECT - 67 - 61 FROM tab0, tab1 AS cor0
----
9 values hashing to f218bdb65889c9327d4e159fdc9c98c0

query I rowsort
SELECT - ( - 75 * cor0.col0 ) FROM tab1, tab1 cor0
----
9 values hashing to cd960e594b0d4c878eedb476f1f2cd2a

query I rowsort
SELECT DISTINCT - col2 * col1 * col2 AS col2 FROM tab0
----
-611884
-93654
-97

query I rowsort
SELECT col1 + col0 * - col0 AS col1 FROM tab1
----
-4086
-6387
17

query I rowsort
SELECT DISTINCT col1 * + ( - col2 ) AS col2 FROM tab0
----
-2838
-7462
-97

query I rowsort
SELECT DISTINCT + col2 * 96 FROM tab0
----
3168
7872
96

query I rowsort
SELECT ALL 19 + ( col1 + - col2 ) AS col2 FROM tab0
----
115
28
72

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8179
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - col0 * tab2.col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8179
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - col0 * tab2.col0 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT col1 + 22 + col0 FROM tab0
----
132
154
202

onlyif mysql # use DIV operator for integer division
query I rowsort label-8181
SELECT - 26 + col1 - col1 DIV + tab2.col1 FROM tab2
----
-10
32
4

skipif mysql # not compatible
query I rowsort label-8181
SELECT - 26 + col1 - col1 / + tab2.col1 FROM tab2
----
-10
32
4

query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1, tab1 cor0 WHERE NULL NOT IN ( - tab2.col0 )
----

query I rowsort
SELECT ALL cor0.col2 + 13 FROM tab1 AS cor0
----
109
67
70

query I rowsort
SELECT - - cor0.col1 + col2 * col1 * - col2 FROM tab2 AS cor0
----
-22568
-24531
-39825

query I rowsort
SELECT DISTINCT 69 * col0 AS col2 FROM tab1 AS cor0
----
207
4416
5520

query I rowsort
SELECT 12 AS col2 FROM tab0 cor0
----
12
12
12

onlyif mysql # use DIV operator for integer division
query I rowsort label-8187
SELECT - + col1 DIV + col1 FROM tab1 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8187
SELECT - + col1 / + col1 FROM tab1 cor0
----
-1
-1
-1

query I rowsort
SELECT + - ( - col2 ) * - 28 FROM tab0 AS cor0
----
-2296
-28
-924

query I rowsort
SELECT + - ( col0 ) + + 67 FROM tab0 cor0
----
-22
32
43

query I rowsort
SELECT + 17 * col2 + col2 FROM tab2 AS cor0
----
468
486
684

query I rowsort
SELECT DISTINCT + 31 * col0 AS col1 FROM tab1 AS cor0
----
1984
2480
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col1 * cor0.col2 col1 FROM tab2 AS cor0
----
1534
646
837

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * + col1 + + col2 col1 FROM tab2 AS cor0
----
1560
684
864

query I rowsort
SELECT tab1.col0 * 55 * col1 FROM tab1
----
35200
4290
57200

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8195
SELECT CAST( NULL AS SIGNED ) AS col2 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-8195
SELECT CAST ( NULL AS INTEGER ) AS col2 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT - col0 + + tab1.col2 + - col1 * 77 FROM tab1
----
-1951
-777
-985

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col1 * + col2 + 68 col1 FROM tab0 AS cor0
----
165
2906
7530

query I rowsort
SELECT DISTINCT col2 + + cor0.col2 AS col0 FROM tab2 cor0
----
52
54
76

query I rowsort
SELECT - + ( col1 ) + + 68 FROM tab2 AS cor0
----
37
51
9

query I rowsort
SELECT - 25 + - col1 * 96 FROM tab0 cor0
----
-8281
-8761
-9337

query I rowsort
SELECT DISTINCT col2 + cor0.col0 * 2 FROM tab1 cor0
----
185
256
60

query I rowsort
SELECT DISTINCT + + 65 + col0 FROM tab2 AS cor0
----
143
144
72

query I rowsort
SELECT + 10 * - col1 AS col0 FROM tab2 AS cor0
----
-170
-310
-590

query I rowsort
SELECT cor0.col1 * col0 + - 56 AS col0 FROM tab1 AS cor0
----
22
584
984

query I rowsort
SELECT + + 67 * + col1 AS col0 FROM tab0 cor0
----
5762
6097
6499

query I rowsort
SELECT DISTINCT + 20 * - col1 FROM tab0 AS cor0
----
-1720
-1820
-1940

query I rowsort
SELECT DISTINCT - 74 * col1 AS col1 FROM tab0 AS cor0
----
-6364
-6734
-7178

query I rowsort
SELECT - col0 * 17 + 33 * col2 FROM tab0 cor0
----
-562
1193
681

query I rowsort
SELECT - cor0.col1 * col2 * ( - col0 + + 98 ) AS col0 FROM tab2 AS cor0
----
-12274
-30680
-76167

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 * + ( 36 ) + col1 col0 FROM tab1 cor0
----
-1918
-2042
-3443

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8211
SELECT DISTINCT CAST( NULL AS SIGNED ) * + col1 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8211
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + col1 AS col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL 23 * + col2 FROM tab1 cor0
----
1242
1311
2208

query I rowsort
SELECT + + col1 * cor0.col2 - - col2 FROM tab2 AS cor0
----
1560
684
864

query I rowsort
SELECT DISTINCT - ( cor0.col2 ) * cor0.col2 + + ( + ( - col1 ) ) * col0 AS col1 FROM tab1 AS cor0
----
-10256
-2994
-3889

onlyif mysql # use DIV operator for integer division
query I rowsort label-8215
SELECT DISTINCT + + 84 + ( col2 ) DIV ( - col2 ) FROM tab0 AS cor0
----
83

skipif mysql # not compatible
query I rowsort label-8215
SELECT DISTINCT + + 84 + ( col2 ) / ( - col2 ) FROM tab0 AS cor0
----
83

query I rowsort
SELECT ALL cor0.col0 + - col0 * cor0.col1 * - cor0.col1 AS col1 FROM tab2 cor0
----
22910
271596
6734

query I rowsort
SELECT DISTINCT - col0 * - col1 + col2 * - col0 - 25 FROM tab0 AS cor0
----
1247
3335
776

query I rowsort
SELECT DISTINCT + ( col2 ) * col0 + - col0 AS col0 FROM tab1
----
159
3584
7600

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 + cor0.col0 col2 FROM tab2 AS cor0
----
104
117
34

onlyif mysql # use DIV operator for integer division
query I rowsort label-8220
SELECT + col1 DIV - 92 + col1 AS col1 FROM tab1 cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-8220
SELECT + col1 / - 92 + col1 AS col1 FROM tab1 cor0
----
10
13
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( 31 ) + col0 col1 FROM tab2 AS cor0
----
-24
47
48

query I rowsort
SELECT DISTINCT cor0.col2 + - col1 * - col1 - cor0.col2 FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT + ( + ( cor0.col2 ) ) - + col0 AS col1 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT - 34 + + tab2.col1 * col1 FROM tab2
----
255
3447
927

query I rowsort
SELECT ALL 96 FROM tab1, tab0 cor0
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8226
SELECT ALL col0 * - CAST( NULL AS SIGNED ) * - 60 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8226
SELECT ALL col0 * - CAST ( NULL AS INTEGER ) * - 60 AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-8227
SELECT ALL col1 DIV 99 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8227
SELECT ALL col1 / 99 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL + col2 * 4 AS col1 FROM tab2
----
104
108
152

query I rowsort
SELECT DISTINCT ( + cor0.col0 ) AS col2 FROM tab1, tab2 AS cor0
----
7
78
79

query I rowsort
SELECT DISTINCT - col2 * 1 AS col0 FROM tab0
----
-1
-33
-82

onlyif mysql # use DIV operator for integer division
query I rowsort label-8231
SELECT + col0 * col2 + + col2 * col2 * CAST( - col1 AS SIGNED ) + - col0 DIV 82 col0 FROM tab0 AS cor0
----
-604587
-62
-92862

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8231
SELECT + col0 * col2 + + col2 * col2 * CAST ( - col1 AS INTEGER ) + - col0 / 82 col0 FROM tab0 AS cor0
----
-604587
-62
-92862

query I rowsort
SELECT col1 + + 32 + col1 AS col0 FROM tab2 AS cor0
----
150
66
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 87 * + col2 + + col2 col0 FROM tab2 AS cor0
----
-2236
-2322
-3268

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8234
SELECT + CAST( NULL AS SIGNED ) + col2 + - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8234
SELECT + CAST ( NULL AS INTEGER ) + col2 + - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 43 + cor0.col2 FROM tab2 AS cor0
----
-16
-17
-5

query I rowsort
SELECT + cor0.col1 + col1 * col0 AS col1 FROM tab2 AS cor0
----
1360
248
4661

query I rowsort
SELECT - col0 * col2 + - cor0.col0 + col1 * + col0 * - col2 FROM tab2 AS cor0
----
-121758
-54115
-6055

query I rowsort
SELECT + + cor0.col0 + - col2 + cor0.col0 FROM tab1 AS cor0
----
-48
64
71

query I rowsort
SELECT + col1 + col0 + - col0 FROM tab1 cor0
----
10
13
26

query I rowsort
SELECT - - col1 + - col2 + + col0 * + col2 * 94 FROM tab2 AS cor0
----
17770
190665
282167

query I rowsort
SELECT + + col2 + + cor0.col0 FROM tab0 cor0
----
171
36
57

query I rowsort
SELECT DISTINCT + - col1 + col1 * col1 * col2 AS col2 FROM tab1 AS cor0
----
16211
36478
5690

query I rowsort
SELECT ALL - col1 * + col2 + - ( col0 ) FROM tab0 AS cor0
----
-132
-2862
-7551

query I rowsort
SELECT 27 * + col2 * - ( + col1 ) FROM tab2 AS cor0
----
-17442
-22599
-41418

query I rowsort
SELECT DISTINCT + - col0 - + col1 AS col2 FROM tab1 AS cor0
----
-29
-74
-93

query I rowsort
SELECT ALL - - col2 * col1 * + col1 AS col0 FROM tab1 AS cor0
----
16224
36504
5700

query I rowsort
SELECT DISTINCT col2 * + col1 * - 58 + - 45 * + col0 AS col2 FROM tab1 AS cor0
----
-35940
-75984
-81567

query I rowsort
SELECT 86 + cor0.col2 * + 73 FROM tab1 AS cor0
----
4028
4247
7094

query I rowsort
SELECT ALL 70 + col2 FROM tab1
----
124
127
166

query I rowsort
SELECT ALL cor1.col2 * 11 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 3cc87622a8962ac006100580f8aa516b

query I rowsort
SELECT ALL - col1 * - ( - col1 ) AS col1 FROM tab2 AS cor0
----
-289
-3481
-961

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8252
SELECT ALL + col2 + + CAST( NULL AS SIGNED ) * col1 * + col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8252
SELECT ALL + col2 + + CAST ( NULL AS INTEGER ) * col1 * + col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - - col1 * - cor0.col0 AS col0 FROM tab1 cor0
----
-1040
-640
-78

query I rowsort
SELECT col1 * 46 AS col1 FROM tab0 AS cor0
----
3956
4186
4462

onlyif mysql # use DIV operator for integer division
query I rowsort label-8255
SELECT DISTINCT col1 * col0 DIV col1 AS col2 FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-8255
SELECT DISTINCT col1 * col0 / col1 AS col2 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT col1 * ( + tab0.col1 ) * - col2 AS col0 FROM tab0
----
-244068
-679042
-9409

query I rowsort
SELECT cor0.col1 FROM tab1, tab1 AS cor0, tab0, tab0 AS cor1
----
81 values hashing to d7d3fabcafbed14f0d6ffd37195c971c

query I rowsort
SELECT + 65 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805

query I rowsort
SELECT - - col2 + + cor0.col1 AS col0 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT ALL - ( - 47 ) FROM tab1 AS cor0
----
47
47
47

query I rowsort
SELECT DISTINCT col0 * 5 + + col1 * - col2 AS col2 FROM tab0 AS cor0
----
-2718
-7017
78

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8262
SELECT + + ( + 56 ) + col2 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8262
SELECT + + ( + 56 ) + col2 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - col2 * - col2 + col0 * ( col2 ) AS col0 FROM tab1 AS cor0
----
16896
3078
6897

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8264
SELECT - col0 / - ( col0 * col1 + CAST( NULL AS SIGNED ) * - col2 ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8264
SELECT - col0 / - ( col0 * col1 + CAST ( NULL AS INTEGER ) * - col2 ) FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 - col1 * - col2 col2 FROM tab1
----
1328
1407
634

query I rowsort
SELECT ALL + 68 * col0 AS col2 FROM tab0 AS cor0
----
1632
2380
6052

query I rowsort
SELECT DISTINCT + 23 AS col2 FROM tab1, tab0 cor0
----
23

query I rowsort
SELECT + 26 + col2 FROM tab0 AS cor0
----
108
27
59

query I rowsort
SELECT - ( ( + cor0.col1 ) ) + col2 * - col0 FROM tab0 AS cor0
----
-132
-7389
-878

query I rowsort
SELECT ALL 92 * - ( cor0.col0 * + col0 ) FROM tab2 AS cor0
----
-4508
-559728
-574172

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 * col1 * - col1 + col2 col2 FROM tab2 AS cor0
----
-10944
-25920
-90480

query I rowsort
SELECT - ( - cor0.col1 ) * tab2.col0 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 9337cab14248fdf0584f0cfce23b6e23

query I rowsort
SELECT DISTINCT ( col1 ) + col1 * col0 FROM tab0 AS cor0
----
2150
3492
8190

query I rowsort
SELECT ALL - + 6 * + col1 AS col0 FROM tab1 AS cor0
----
-156
-60
-78

query I rowsort
SELECT ALL + 32 * ( col2 ) + col0 FROM tab2
----
1295
871
910

query I rowsort
SELECT ALL - col1 + + 42 * + col2 * col2 FROM tab0
----
-55
282317
45652

query I rowsort
SELECT ALL 91 + 55 FROM tab2
----
146
146
146

query I rowsort
SELECT ALL + 50 + col1 * - col0 AS col1 FROM tab0
----
-2014
-3345
-8049

query I rowsort
SELECT DISTINCT + + 53 + - 10 * col2 + - col0 FROM tab2 AS cor0
----
-224
-285
-406

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8280
SELECT + - CAST( NULL AS SIGNED ) + + col0 / col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8280
SELECT + - CAST ( NULL AS INTEGER ) + + col0 / col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( - col2 ) + col0 AS col2 FROM tab0 cor0
----
-9
34
7

query I rowsort
SELECT ALL + ( + ( cor0.col1 ) ) * cor0.col0 + col0 - + col2 FROM tab2 AS cor0
----
1384
197
4654

query I rowsort
SELECT col0 + col2 * + col0 AS col2 FROM tab0 AS cor0
----
70
7387
816

query I rowsort
SELECT DISTINCT - col0 * + 61 + col2 FROM tab2 AS cor0
----
-400
-4732
-4781

query I rowsort
SELECT ALL - tab0.col1 * + col2 * - tab0.col0 FROM tab0
----
3395
664118
68112

query I rowsort
SELECT DISTINCT ( ( + col1 ) * + col0 ) FROM tab1
----
1040
640
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-8287
SELECT 67 DIV + col2 AS col1 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-8287
SELECT 67 / + col2 AS col1 FROM tab1
----
0
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 15 + col2 - + col0 col2 FROM tab0
----
-19
24
8

query I rowsort
SELECT ALL col0 - - col2 * col1 FROM tab1
----
1328
1407
634

query I rowsort
SELECT ALL - ( - col2 ) * - 61 FROM tab1
----
-3294
-3477
-5856

query I rowsort
SELECT - 91 * + col1 FROM tab1 AS cor0
----
-1183
-2366
-910

query I rowsort
SELECT 45 - + col2 * - col1 * - col0 FROM tab2
----
-119607
-50989
-5814

onlyif mysql # use DIV operator for integer division
query I rowsort label-8293
SELECT + col1 + col1 DIV - tab1.col0 FROM tab1
----
10
13
18

skipif mysql # not compatible
query I rowsort label-8293
SELECT + col1 + col1 / - tab1.col0 FROM tab1
----
10
13
18

query I rowsort
SELECT ( + col0 ) + ( - col1 ) AS col0 FROM tab2
----
-24
19
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-8295
SELECT + col0 - col0 DIV 16 FROM tab0 cor0
----
23
33
84

skipif mysql # not compatible
query I rowsort label-8295
SELECT + col0 - col0 / 16 FROM tab0 cor0
----
23
33
84

query I rowsort
SELECT col0 * + col2 + col0 AS col2 FROM tab2 AS cor0
----
196
2106
3081

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8297
SELECT - col0 * + CAST( NULL AS SIGNED ) + - col2 + col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8297
SELECT - col0 * + CAST ( NULL AS INTEGER ) + - col2 + col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 * - ( - col1 ) - col2 AS col1 FROM tab0 cor0
----
-2871
-7544
-98

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab0, tab2 AS cor2
----
3645 values hashing to 713ff9f9cde43214a064a8e6ada00f4e

query I rowsort
SELECT DISTINCT col0 * + col1 + - tab1.col2 AS col0 FROM tab1
----
24
583
944

onlyif mysql # use DIV operator for integer division
query I rowsort label-8301
SELECT col0 * col0 DIV - 69 + col0 FROM tab2 AS cor0
----
-10
-11
7

skipif mysql # not compatible
query I rowsort label-8301
SELECT col0 * col0 / - 69 + col0 FROM tab2 AS cor0
----
-10
-11
7

query I rowsort
SELECT - cor0.col2 * 47 FROM tab1 AS cor0
----
-2538
-2679
-4512

onlyif mysql # use DIV operator for integer division
query I rowsort label-8303
SELECT DISTINCT - + col2 DIV 30 FROM tab0 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-8303
SELECT DISTINCT - + col2 / 30 FROM tab0 AS cor0
----
-1
-2
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * + 47 + + 53 col1 FROM tab1 AS cor0
----
-1169
-417
-558

query I rowsort
SELECT - - cor0.col2 + - 25 + 12 FROM tab2 AS cor0
----
13
14
25

onlyif mysql # use DIV operator for integer division
query I rowsort label-8306
SELECT + - col0 + 64 DIV col0 AS col1 FROM tab0 cor0
----
-22
-34
-89

skipif mysql # not compatible
query I rowsort label-8306
SELECT + - col0 + 64 / col0 AS col1 FROM tab0 cor0
----
-22
-34
-89

onlyif mysql # use DIV operator for integer division
query I rowsort label-8307
SELECT col1 * col1 - col0 DIV + col0 AS col2 FROM tab1 AS cor0
----
168
675
99

skipif mysql # not compatible
query I rowsort label-8307
SELECT col1 * col1 - col0 / + col0 AS col2 FROM tab1 AS cor0
----
168
675
99

onlyif mysql # use DIV operator for integer division
query I rowsort label-8308
SELECT ALL col0 + col2 DIV + col0 FROM tab0
----
25
35
89

skipif mysql # not compatible
query I rowsort label-8308
SELECT ALL col0 + col2 / + col0 FROM tab0
----
25
35
89

query I rowsort
SELECT DISTINCT + col1 + col2 * - col0 + tab2.col2 FROM tab2
----
-131
-1943
-2947

onlyif mysql # use DIV operator for integer division
query I rowsort label-8310
SELECT ALL + col1 + + tab0.col0 DIV + col1 FROM tab0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-8310
SELECT ALL + col1 + + tab0.col0 / + col1 FROM tab0
----
86
91
97

query I rowsort
SELECT ALL - tab1.col0 + + col0 AS col1 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL col2 * - col2 * col0 AS col2 FROM tab1 AS cor0
----
-207936
-737280
-8748

query I rowsort
SELECT - col2 * + col1 - - cor0.col2 FROM tab2 AS cor0
----
-1508
-608
-810

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 * col1 col0 FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT DISTINCT cor0.col1 * + col1 + - col2 AS col2 FROM tab2 AS cor0
----
251
3455
934

onlyif mysql # use DIV operator for integer division
query I rowsort label-8316
SELECT ALL - col0 DIV col0 FROM tab2 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8316
SELECT ALL - col0 / col0 FROM tab2 cor0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + + cor0.col0 + col0 col2 FROM tab0 AS cor0
----
105
267
72

query I rowsort
SELECT ALL - col1 * col1 + col2 * col0 AS col0 FROM tab1 AS cor0
----
-514
3548
7511

query I rowsort
SELECT - + cor0.col2 + - col0 * col1 * col1 FROM tab1 cor0
----
-13616
-2082
-6457

query I rowsort
SELECT DISTINCT col2 + + tab0.col2 - col1 FROM tab0
----
-20
-95
73

query I rowsort
SELECT + col0 - + col2 * + col2 * - col1 FROM tab1
----
119888
32554
75819

query I rowsort
SELECT + col0 + col0 + + col2 FROM tab1
----
185
256
60

query I rowsort
SELECT + cor0.col2 * cor0.col0 + + col1 FROM tab0 AS cor0
----
132
7389
878

onlyif mysql # use DIV operator for integer division
query I rowsort label-8324
SELECT col1 * + col2 + cor0.col1 * cor0.col0 DIV + col1 AS col2 FROM tab1 cor0
----
1328
1407
634

skipif mysql # not compatible
query I rowsort label-8324
SELECT col1 * + col2 + cor0.col1 * cor0.col0 / + col1 AS col2 FROM tab1 cor0
----
1328
1407
634

query I rowsort
SELECT DISTINCT + - col2 - + cor0.col0 FROM tab0 AS cor0
----
-171
-36
-57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col1 * - col0 col0 FROM tab2 AS cor0
----
-22831
-271518
-6727

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 + col2 col1 FROM tab2 cor0
----
-33
-4
21

query I rowsort
SELECT ALL + - col0 + - col0 AS col1 FROM tab0 cor0
----
-178
-48
-70

query I rowsort
SELECT ALL 64 + col2 AS col1 FROM tab2 AS cor0
----
102
90
91

onlyif mysql # use DIV operator for integer division
query I rowsort label-8330
SELECT ALL - col1 * col2 DIV col2 FROM tab1 AS cor0
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-8330
SELECT ALL - col1 * col2 / col2 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT DISTINCT + 73 * col1 FROM tab0 cor0
----
6278
6643
7081

query I rowsort
SELECT DISTINCT 90 * col2 * - col2 + col1 * - col0 + col0 * col1 * - col0 FROM tab2 AS cor0
----
-237400
-424398
-67346

query I rowsort
SELECT DISTINCT 80 * ( - col1 ) + + col1 * tab2.col1 FROM tab2
----
-1071
-1239
-1519

query I rowsort
SELECT ALL + - col0 * col1 AS col0 FROM tab2 cor0
----
-1343
-217
-4602

query I rowsort
SELECT DISTINCT + - 42 * + cor0.col0 + cor0.col1 FROM tab2 AS cor0
----
-263
-3217
-3301

onlyif mysql # use DIV operator for integer division
query I rowsort label-8336
SELECT DISTINCT + 67 DIV col1 + + cor0.col1 AS col2 FROM tab2 AS cor0
----
20
33
60

skipif mysql # not compatible
query I rowsort label-8336
SELECT DISTINCT + 67 / col1 + + cor0.col1 AS col2 FROM tab2 AS cor0
----
20
33
60

query I rowsort
SELECT ALL - 69 + col1 FROM tab2 AS cor0
----
-10
-38
-52

query I rowsort
SELECT ALL 91 * - cor0.col2 FROM tab0 AS cor0
----
-3003
-7462
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col0 * + col0 + + col1 col0 FROM tab0 AS cor0
----
1322
662
8012

query I rowsort
SELECT - col1 - - col2 AS col1 FROM tab0
----
-53
-9
-96

query I rowsort
SELECT DISTINCT cor0.col1 + cor0.col1 * col0 * - col2 FROM tab0 AS cor0
----
-3298
-664027
-68026

query I rowsort
SELECT + 56 * col1 AS col1 FROM tab1 AS cor0
----
1456
560
728

query I rowsort
SELECT - - ( - col0 ) + col1 * col0 * cor0.col1 AS col2 FROM tab2 AS cor0
----
22752
271440
6720

query I rowsort
SELECT 10 * col0 - + col2 AS col1 FROM tab2 AS cor0
----
43
752
754

query I rowsort
SELECT col0 + - ( - col2 ) * col1 AS col2 FROM tab1
----
1328
1407
634

query I rowsort
SELECT DISTINCT + tab2.col0 AS col2 FROM tab2, tab1, tab0 cor0, tab0
----
7
78
79

query I rowsort
SELECT DISTINCT - 38 * 89 AS col1 FROM tab1
----
-3382

query I rowsort
SELECT - 99 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 761f5f1a166a00db99360141565a85da

query I rowsort
SELECT col0 * col2 + + cor0.col0 AS col2 FROM tab2 AS cor0
----
196
2106
3081

query I rowsort
SELECT - ( + col1 ) + + ( + ( - col2 ) ) AS col0 FROM tab1 AS cor0
----
-109
-67
-80

query I rowsort
SELECT ALL + 88 * + col0 AS col1 FROM tab0 AS cor0
----
2112
3080
7832

query I rowsort
SELECT + cor1.col0 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2, tab1 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

query I rowsort
SELECT DISTINCT - 58 - 60 AS col2 FROM tab2, tab1 AS cor0
----
-118

query I rowsort
SELECT - - col0 + + 63 * 6 * + col0 FROM tab1 AS cor0
----
1137
24256
30320

query I rowsort
SELECT ALL - col1 + ( 7 ) FROM tab1 AS cor0
----
-19
-3
-6

query I rowsort
SELECT - cor0.col1 * + cor0.col2 AS col1 FROM tab1 cor0
----
-1248
-1404
-570

query I rowsort
SELECT ALL - + col2 + 13 FROM tab2 AS cor0
----
-13
-14
-25

query I rowsort
SELECT DISTINCT col2 * ( col2 ) FROM tab0 cor0
----
1
1089
6724

query I rowsort
SELECT - cor1.col0 * cor0.col2 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5ac8aba7baafe9bd6ceb7b5654f2c0b7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8360
SELECT ALL - CAST( NULL AS SIGNED ) * + col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8360
SELECT ALL - CAST ( NULL AS INTEGER ) * + col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8361
SELECT + - CAST( NULL AS SIGNED ) + + col2 * - col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8361
SELECT + - CAST ( NULL AS INTEGER ) + + col2 * - col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 0 + col1 * + col1 col1 FROM tab2 AS cor0
----
289
3481
961

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 27 col0 FROM tab1 AS cor0
----
27
27
27

query I rowsort
SELECT - ( + tab1.col1 * col1 ) - 42 AS col2 FROM tab1
----
-142
-211
-718

query I rowsort
SELECT + 38 + col1 FROM tab0 AS cor0
----
124
129
135

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + + col2 * + 83 col2 FROM tab1 AS cor0
----
4536
4788
8064

query I rowsort
SELECT ALL - - ( col2 ) * - col0 + col2 AS col2 FROM tab2 cor0
----
-162
-2002
-2964

onlyif mysql # use DIV operator for integer division
query I rowsort label-8368
SELECT - 68 + col2 DIV + ( col0 ) AS col2 FROM tab2 AS cor0
----
-65
-68
-68

skipif mysql # not compatible
query I rowsort label-8368
SELECT - 68 + col2 / + ( col0 ) AS col2 FROM tab2 AS cor0
----
-65
-68
-68

query I rowsort
SELECT ( + ( - col2 ) ) FROM tab0
----
-1
-33
-82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8370
SELECT + col2 + CAST( + cor0.col1 AS SIGNED ) * - col0 AS col1 FROM tab0 cor0
----
-2031
-3394
-8017

skipif mysql # not compatible
query I rowsort label-8370
SELECT + col2 + CAST ( + cor0.col1 AS INTEGER ) * - col0 AS col1 FROM tab0 cor0
----
-2031
-3394
-8017

query I rowsort
SELECT col0 + 25 * + 69 + + col0 FROM tab2 AS cor0
----
1739
1881
1883

query I rowsort
SELECT ALL cor0.col1 * + cor1.col2 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 4ac56eb1b1201b1b07557b39398f9b85

query I rowsort
SELECT - - cor0.col1 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775

query I rowsort
SELECT - col2 * - ( 83 ) FROM tab0 AS cor0
----
2739
6806
83

query I rowsort
SELECT + col1 * - ( 11 ) + cor0.col1 * - col2 AS col1 FROM tab0 cor0
----
-1164
-3784
-8463

onlyif mysql # use DIV operator for integer division
query I rowsort label-8376
SELECT DISTINCT col2 * 82 + col0 DIV col1 FROM tab0 AS cor0
----
2706
6724
82

skipif mysql # not compatible
query I rowsort label-8376
SELECT DISTINCT col2 * 82 + col0 / col1 FROM tab0 AS cor0
----
2706
6724
82

query I rowsort
SELECT ALL 31 FROM tab0, tab0 AS cor0, tab1 cor1
----
27 values hashing to c3c6f92f0ca72d71793339f88a57e336

query I rowsort
SELECT col1 * - col2 * 95 FROM tab0
----
-269610
-708890
-9215

onlyif mysql # use DIV operator for integer division
query I rowsort label-8379
SELECT col1 + - col2 DIV - col1 AS col2 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-8379
SELECT col1 + - col2 / - col1 AS col2 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT ALL + 55 * col1 + col0 * - col2 FROM tab2 AS cor0
----
-2067
1217
1516

query I rowsort
SELECT DISTINCT - 1 + 41 FROM tab0 AS cor0
----
40

query I rowsort
SELECT DISTINCT - tab1.col0 + - col2 FROM tab1
----
-121
-176
-57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - 75 col0 FROM tab0 AS cor0
----
-1800
-2625
-6675

query I rowsort
SELECT ALL col1 * ( 72 ) FROM tab0
----
6192
6552
6984

query I rowsort
SELECT ALL col1 + cor0.col1 + + 82 FROM tab1 AS cor0
----
102
108
134

query I rowsort
SELECT cor0.col0 + + ( col1 ) AS col2 FROM tab2 AS cor0
----
137
38
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-8387
SELECT ALL col1 DIV - 15 + + 51 * col2 AS col1 FROM tab2 AS cor0
----
1323
1375
1937

skipif mysql # not compatible
query I rowsort label-8387
SELECT ALL col1 / - 15 + + 51 * col2 AS col1 FROM tab2 AS cor0
----
1323
1375
1937

query I rowsort
SELECT - cor0.col0 - 79 FROM tab2 AS cor0
----
-157
-158
-86

query I rowsort
SELECT ALL - col2 + col1 + ( + col0 + - col0 ) AS col1 FROM tab0
----
53
9
96

query I rowsort
SELECT DISTINCT - - col0 * - col2 + + 27 * + cor0.col1 FROM tab2 AS cor0
----
-2543
-435
648

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8391
SELECT - - col1 * CAST( - 85 AS SIGNED ) * + col1 AS col0 FROM tab0 AS cor0
----
-628660
-703885
-799765

skipif mysql # not compatible
query I rowsort label-8391
SELECT - - col1 * CAST ( - 85 AS INTEGER ) * + col1 AS col0 FROM tab0 AS cor0
----
-628660
-703885
-799765

onlyif mysql # use DIV operator for integer division
query I rowsort label-8392
SELECT DISTINCT col1 DIV ( - col1 ) + + col1 * 55 AS col2 FROM tab2 AS cor0
----
1704
3244
934

skipif mysql # not compatible
query I rowsort label-8392
SELECT DISTINCT col1 / ( - col1 ) + + col1 * 55 AS col2 FROM tab2 AS cor0
----
1704
3244
934

query I rowsort
SELECT DISTINCT - col1 * 53 * + col0 FROM tab0 AS cor0
----
-109392
-179935
-429247

query I rowsort
SELECT DISTINCT + cor0.col2 * ( - 1 ) * + col2 + cor0.col1 FROM tab1 AS cor0
----
-2890
-3239
-9203

query I rowsort
SELECT ALL cor0.col1 * - ( - col1 ) FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT DISTINCT col1 * ( col1 ) + col0 FROM tab1 cor0
----
164
249
679

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col1 * col0 + - 14 + - col0 col1 FROM tab2 AS cor0
----
1250
196
4510

query I rowsort
SELECT ALL + col1 + ( - cor0.col0 ) AS col2 FROM tab1 AS cor0
----
-54
-67
23

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8399
SELECT DISTINCT + col2 + + CAST( NULL AS SIGNED ) * col2 col1 FROM tab1 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8399
SELECT DISTINCT + col2 + + CAST ( NULL AS INTEGER ) * col2 col1 FROM tab1 cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-8400
SELECT - - col1 DIV - 40 - + col0 AS col0 FROM tab0 AS cor0
----
-26
-37
-91

skipif mysql # not compatible
query I rowsort label-8400
SELECT - - col1 / - 40 - + col0 AS col0 FROM tab0 AS cor0
----
-26
-37
-91

query I rowsort
SELECT ALL + col0 * + ( + col1 ) FROM tab1 AS cor0
----
1040
640
78

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8402
SELECT ALL - - CAST( NULL AS DECIMAL ) + - col0 + col2 * 99 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8402
SELECT ALL - - CAST ( NULL AS REAL ) + - col0 + col2 * 99 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 44 - + col2 * col1 FROM tab0 AS cor0
----
-2794
-53
-7418

query I rowsort
SELECT + + col1 + - 29 FROM tab1 cor0
----
-16
-19
-3

query I rowsort
SELECT DISTINCT col2 + + col0 AS col1 FROM tab2 cor0
----
104
117
34

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8406
SELECT ( + col2 ) + cor0.col2 + + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8406
SELECT ( + col2 ) + cor0.col2 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-8407
SELECT DISTINCT col0 DIV + CAST( 48 AS SIGNED ) - - col1 FROM tab0
----
86
92
97

skipif mysql # not compatible
query I rowsort label-8407
SELECT DISTINCT col0 / + CAST ( 48 AS INTEGER ) - - col1 FROM tab0
----
86
92
97

query I rowsort
SELECT ALL col0 * - ( + tab2.col0 ) + col2 FROM tab2
----
-22
-6058
-6203

query I rowsort
SELECT DISTINCT 42 * cor0.col1 * - 82 AS col0 FROM tab1 AS cor0
----
-34440
-44772
-89544

query I rowsort
SELECT - + col0 + col0 * + col2 AS col2 FROM tab1 AS cor0
----
159
3584
7600

query I rowsort
SELECT DISTINCT - + 13 - col2 FROM tab1 AS cor0
----
-109
-67
-70

query I rowsort
SELECT ALL + - 76 * - col0 AS col1 FROM tab0 AS cor0
----
1824
2660
6764

query I rowsort
SELECT ALL col2 * + col0 + + col2 AS col2 FROM tab1 cor0
----
216
3705
7776

onlyif mysql # use DIV operator for integer division
query I rowsort label-8414
SELECT DISTINCT + 57 * col0 DIV - col1 FROM tab0 AS cor0
----
-15
-20
-55

skipif mysql # not compatible
query I rowsort label-8414
SELECT DISTINCT + 57 * col0 / - col1 FROM tab0 AS cor0
----
-15
-20
-55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col1 col1 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
-10
-13
-26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col1 + - tab0.col1 * ( - col1 ) col2 FROM tab0
----
10234
15743
9506

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + - col2 + + ( col2 ) * + 82 col1 FROM tab2 AS cor0
----
2165
2218
3095

query I rowsort
SELECT - ( + col0 ) * 60 FROM tab0 AS cor0
----
-1440
-2100
-5340

query I rowsort
SELECT - tab0.col0 * + col1 + ( + col0 ) FROM tab0
----
-2040
-3360
-8010

onlyif mysql # use DIV operator for integer division
query I rowsort label-8420
SELECT + 38 DIV + col0 + ( 81 ) * - col1 * ( col2 ) AS col2 FROM tab0
----
-229877
-604422
-7856

skipif mysql # not compatible
query I rowsort label-8420
SELECT + 38 / + col0 + ( 81 ) * - col1 * ( col2 ) AS col2 FROM tab0
----
-229877
-604422
-7856

query I rowsort
SELECT col0 * + col0 + col2 AS col0 FROM tab1
----
4153
63
6496

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + - ( cor0.col0 ) col2 FROM tab2 cor0
----
-104
-117
-34

query I rowsort
SELECT ALL col0 * - col0 * - col0 AS col1 FROM tab1
----
262144
27
512000

query I rowsort
SELECT DISTINCT + - col0 * - col2 FROM tab1 cor0
----
162
3648
7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-8425
SELECT ALL 9 DIV + 34 + - col2 * 36 AS col0 FROM tab2
----
-1368
-936
-972

skipif mysql # not compatible
query I rowsort label-8425
SELECT ALL 9 / + 34 + - col2 * 36 AS col0 FROM tab2
----
-1368
-936
-972

query I rowsort
SELECT ALL ( + 27 ) + - col2 AS col1 FROM tab2
----
-11
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 72 * ( col2 ) col1 FROM tab2 AS cor0
----
-1872
-1944
-2736

query I rowsort
SELECT + + col1 * + 91 + + col1 FROM tab1 AS cor0
----
1196
2392
920

query I rowsort
SELECT - col1 + - 20 * - col2 FROM tab2
----
461
509
743

query I rowsort
SELECT - ( - col1 ) + 42 * col0 AS col0 FROM tab2 AS cor0
----
325
3335
3335

query I rowsort
SELECT - + 92 * + col1 AS col2 FROM tab0 AS cor0
----
-7912
-8372
-8924

query I rowsort
SELECT DISTINCT - 96 + col2 * col0 * + col2 FROM tab0 AS cor0
----
-61
26040
598340

query I rowsort
SELECT cor0.col2 * + col2 + col2 AS col2 FROM tab2 AS cor0
----
1482
702
756

query I rowsort
SELECT ALL + - 62 FROM tab0 AS cor0
----
-62
-62
-62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - col1 * 84 col0 FROM tab1 AS cor0
----
-1079
-2158
-830

query I rowsort
SELECT DISTINCT + 6 AS col2 FROM tab2 AS cor0
----
6

query I rowsort
SELECT ALL - 38 * + col1 AS col2 FROM tab0 AS cor0
----
-3268
-3458
-3686

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col0 ) * + col0 col2 FROM tab2 AS cor0
----
49
6084
6241

onlyif mysql # use DIV operator for integer division
query I rowsort label-8439
SELECT ALL + 5 + + col2 DIV col0 FROM tab2 AS cor0
----
5
5
8

skipif mysql # not compatible
query I rowsort label-8439
SELECT ALL + 5 + + col2 / col0 FROM tab2 AS cor0
----
5
5
8

query I rowsort
SELECT + - cor0.col0 * col0 + - 2 AS col2 FROM tab2 AS cor0
----
-51
-6086
-6243

query I rowsort
SELECT DISTINCT 22 + - col1 FROM tab1 AS cor0
----
-4
12
9

query I rowsort
SELECT + col2 * - col0 + col2 * col2 AS col2 FROM tab0 AS cor0
----
-34
-574
297

query I rowsort
SELECT + ( + 11 ) FROM tab2 AS cor0
----
11
11
11

query I rowsort
SELECT ( + 27 ) - - col1 AS col2 FROM tab2
----
44
58
86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 29 col2 FROM tab1 AS cor0
----
29
29
29

query I rowsort
SELECT - - 78 AS col1 FROM tab2 AS cor0
----
78
78
78

query I rowsort
SELECT ALL - + col2 * col0 + ( col0 * col2 ) FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + ( col0 ) * 41 + col0 AS col1 FROM tab1 AS cor0
----
126
2688
3360

onlyif mysql # use DIV operator for integer division
query I rowsort label-8449
SELECT + 12 DIV col1 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8449
SELECT + 12 / col1 FROM tab1 AS cor0
----
0
0
1

query I rowsort
SELECT ALL cor0.col2 + + col0 FROM tab2 cor0
----
104
117
34

onlyif mysql # use DIV operator for integer division
query I rowsort label-8451
SELECT DISTINCT - col1 + + col2 DIV - cor0.col0 FROM tab2 AS cor0
----
-17
-34
-59

skipif mysql # not compatible
query I rowsort label-8451
SELECT DISTINCT - col1 + + col2 / - cor0.col0 FROM tab2 AS cor0
----
-17
-34
-59

query I rowsort
SELECT ALL ( - 30 ) FROM tab2
----
-30
-30
-30

query I rowsort
SELECT + 24 AS col0 FROM tab0
----
24
24
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + cor0.col2 col2 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT - col2 * - col1 + ( col1 ) AS col0 FROM tab0 cor0
----
194
2924
7553

query I rowsort
SELECT cor0.col2 * 77 AS col2 FROM tab2 cor0
----
2002
2079
2926

query I rowsort
SELECT - col2 + 56 * ( col0 ) FROM tab0 cor0
----
1311
1959
4902

query I rowsort
SELECT - col1 * 59 FROM tab0 cor0
----
-5074
-5369
-5723

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 * 75 col2 FROM tab0 AS cor0
----
-2475
-6150
-75

query I rowsort
SELECT - col0 + - 29 AS col2 FROM tab0 AS cor0
----
-118
-53
-64

query I rowsort
SELECT - + cor0.col1 + - 36 AS col2 FROM tab1 AS cor0
----
-46
-49
-62

query I rowsort
SELECT DISTINCT - col1 * + 94 FROM tab1
----
-1222
-2444
-940

query I rowsort
SELECT + 94 FROM tab1, tab1 cor0
----
9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24

query I rowsort
SELECT DISTINCT - + cor0.col1 + + col1 * col2 FROM tab2 cor0
----
1475
629
806

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8465
SELECT DISTINCT cor0.col0 * - cor0.col1 * + col0 - - CAST( NULL AS DECIMAL ) * - 57 AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8465
SELECT DISTINCT cor0.col0 * - cor0.col1 * + col0 - - CAST ( NULL AS REAL ) * - 57 AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT 7 + + 49 * col2 FROM tab2 AS cor0
----
1281
1330
1869

query I rowsort
SELECT ALL col1 + + cor0.col2 - col2 AS col2 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT ALL - tab2.col0 * + ( + col1 ) + tab2.col2 + + col1 AS col1 FROM tab2
----
-1288
-159
-4517

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8469
SELECT - col1 * - CAST( + col2 AS SIGNED ) FROM tab1
----
1248
1404
570

skipif mysql # not compatible
query I rowsort label-8469
SELECT - col1 * - CAST ( + col2 AS INTEGER ) FROM tab1
----
1248
1404
570

query I rowsort
SELECT 68 FROM tab2, tab2 cor0
----
9 values hashing to 599bee15ac4cc39b859854e07dfe7990

query I rowsort
SELECT ALL col1 * col0 + 63 * col1 * 6 + - col0 * + col0 AS col0 FROM tab0
----
33996
34576
38836

query I rowsort
SELECT - - col2 + col1 * col1 * 49 AS col1 FROM tab2 AS cor0
----
14199
170595
47116

query I rowsort
SELECT + - ( col0 ) * + cor0.col2 + - ( - cor0.col2 ) AS col0 FROM tab0 cor0
----
-34
-7216
-759

query I rowsort
SELECT ALL - - 3 + col0 FROM tab2 AS cor0
----
10
81
82

query I rowsort
SELECT DISTINCT col2 * + cor0.col0 + col0 AS col2 FROM tab0 AS cor0
----
70
7387
816

query I rowsort
SELECT + ( col2 ) * - col2 + ( col0 ) * col2 FROM tab1 AS cor0
----
-1536
-2754
399

query I rowsort
SELECT col0 * + 91 + col1 AS col2 FROM tab0 cor0
----
2270
3282
8190

query I rowsort
SELECT ALL - col2 * col0 * + col2 AS col1 FROM tab1 cor0
----
-207936
-737280
-8748

onlyif mysql # use DIV operator for integer division
query I rowsort label-8479
SELECT + + 33 DIV + col1 AS col0 FROM tab1 AS cor0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-8479
SELECT + + 33 / + col1 AS col0 FROM tab1 AS cor0
----
1
2
3

query I rowsort
SELECT col2 * cor0.col1 + ( + col0 * cor0.col0 ) AS col2 FROM tab0 AS cor0
----
1322
15383
3414

query I rowsort
SELECT - + cor0.col0 + - col2 * cor0.col1 AS col1 FROM tab2 cor0
----
-1612
-725
-844

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8482
SELECT + - col0 * - CAST( NULL AS SIGNED ) + - col2 + + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8482
SELECT + - col0 * - CAST ( NULL AS INTEGER ) + - col2 + + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - - cor0.col1 * 84 AS col0 FROM tab2 AS cor0
----
1428
2604
4956

query I rowsort
SELECT ALL 48 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b

query I rowsort
SELECT DISTINCT + col1 + 57 * cor0.col1 FROM tab0 cor0
----
4988
5278
5626

query I rowsort
SELECT - + col1 * - col0 + 93 * col2 + - ( - 11 ) FROM tab2 AS cor0
----
2739
4888
7031

onlyif mysql # use DIV operator for integer division
query I rowsort label-8487
SELECT DISTINCT col1 DIV col0 FROM tab1 cor0
----
0
8

skipif mysql # not compatible
query I rowsort label-8487
SELECT DISTINCT col1 / col0 FROM tab1 cor0
----
0
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 91 col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277

onlyif mysql # use DIV operator for integer division
query I rowsort label-8489
SELECT ALL ( col0 ) * col0 DIV + 56 AS col0 FROM tab2 cor0
----
0
108
111

skipif mysql # not compatible
query I rowsort label-8489
SELECT ALL ( col0 ) * col0 / + 56 AS col0 FROM tab2 cor0
----
0
108
111

query I rowsort
SELECT DISTINCT + 65 AS col2 FROM tab2, tab1 AS cor0
----
65

query I rowsort
SELECT DISTINCT - 38 + col1 * col0 FROM tab0 AS cor0
----
2026
3357
8061

onlyif mysql # use DIV operator for integer division
query I rowsort label-8492
SELECT ALL + col1 DIV - col0 AS col0 FROM tab1 AS cor0
----
-8
0
0

skipif mysql # not compatible
query I rowsort label-8492
SELECT ALL + col1 / - col0 AS col0 FROM tab1 AS cor0
----
-8
0
0

query I rowsort
SELECT DISTINCT col2 * cor0.col2 * + 52 FROM tab0 AS cor0
----
349648
52
56628

query I rowsort
SELECT DISTINCT - 35 * - col1 FROM tab2 cor0
----
1085
2065
595

query I rowsort
SELECT - cor0.col1 * col0 - - col0 FROM tab1 AS cor0
----
-576
-75
-960

query I rowsort
SELECT ALL + 6 * col2 FROM tab2 cor0
----
156
162
228

query I rowsort
SELECT + - ( col2 ) + - 98 AS col1 FROM tab0 AS cor0
----
-131
-180
-99

query I rowsort
SELECT + + 42 FROM tab2, tab1 AS cor0, tab0 AS cor1, tab0, tab0 AS cor2
----
243 values hashing to 5986d1260195c81da622c6c47a971169

onlyif mysql # use DIV operator for integer division
query I rowsort label-8499
SELECT + col1 * 96 DIV + col2 + + cor0.col2 DIV - col2 FROM tab1 AS cor0
----
12
15
45

skipif mysql # not compatible
query I rowsort label-8499
SELECT + col1 * 96 / + col2 + + cor0.col2 / - col2 FROM tab1 AS cor0
----
12
15
45

query I rowsort
SELECT DISTINCT - col0 * + 22 + + cor0.col2 AS col2 FROM tab1 AS cor0
----
-12
-1351
-1664

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + col1 * col2 * col2 col0 FROM tab0 AS cor0
----
611966
93687
98

query I rowsort
SELECT DISTINCT col1 * col1 + 91 + - col1 FROM tab0 AS cor0
----
7401
8281
9403

query I rowsort
SELECT ALL + col1 * col1 * col0 - col0 FROM tab1 cor0
----
13440
2025
6336

query I rowsort
SELECT col1 + + 96 FROM tab0 cor0
----
182
187
193

query I rowsort
SELECT DISTINCT - col0 * - col1 + + col0 FROM tab2 AS cor0
----
1422
224
4680

query I rowsort
SELECT DISTINCT - col2 + ( - col1 ) AS col0 FROM tab1 AS cor0
----
-109
-67
-80

query I rowsort
SELECT - + col0 * cor0.col0 AS col1 FROM tab2 AS cor0
----
-49
-6084
-6241

query I rowsort
SELECT ALL - col1 * col1 + - col2 * ( + col2 ) AS col2 FROM tab2 AS cor0
----
-1690
-1733
-4157

query I rowsort
SELECT ALL - + col2 + 30 * col2 AS col0 FROM tab2 cor0
----
1102
754
783

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8510
SELECT - CAST( + 45 AS SIGNED ) FROM tab2 AS cor0
----
-45
-45
-45

skipif mysql # not compatible
query I rowsort label-8510
SELECT - CAST ( + 45 AS INTEGER ) FROM tab2 AS cor0
----
-45
-45
-45

onlyif mysql # use DIV operator for integer division
query I rowsort label-8511
SELECT DISTINCT + col1 + + col2 * cor0.col1 * cor0.col2 + col0 * col2 DIV + 57 AS col1 FROM tab1 AS cor0
----
119955
32564
75844

skipif mysql # not compatible
query I rowsort label-8511
SELECT DISTINCT + col1 + + col2 * cor0.col1 * cor0.col2 + col0 * col2 / + 57 AS col1 FROM tab1 AS cor0
----
119955
32564
75844

query I rowsort
SELECT ALL - col0 * - 36 + + col1 AS col0 FROM tab2
----
283
2861
2867

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8513
SELECT + col1 + CAST( NULL AS SIGNED ) * ( - col1 + 9 ) col0 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8513
SELECT + col1 + CAST ( NULL AS INTEGER ) * ( - col1 + 9 ) col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL ( col0 ) + - col1 * ( cor0.col2 ) * col1 FROM tab1 cor0
----
-16144
-36501
-5636

query I rowsort
SELECT - ( cor0.col1 ) + - col1 AS col0 FROM tab1 AS cor0
----
-20
-26
-52

query I rowsort
SELECT ALL - cor0.col1 * + col1 + - col1 * 78 - col0 * - col1 AS col1 FROM tab0 AS cor0
----
-12040
-13580
-7280

onlyif mysql # use DIV operator for integer division
query I rowsort label-8517
SELECT ALL - 78 + col2 DIV - col1 FROM tab0 AS cor0
----
-78
-78
-78

skipif mysql # not compatible
query I rowsort label-8517
SELECT ALL - 78 + col2 / - col1 FROM tab0 AS cor0
----
-78
-78
-78

query I rowsort
SELECT - 5 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 74665fbb47d5b17da011bca567195b21

query I rowsort
SELECT tab0.col1 * col0 + + col2 * ( 54 ) AS col2 FROM tab0
----
12527
3449
3846

query I rowsort
SELECT DISTINCT - ( col0 ) * col2 * col2 + + 48 FROM tab1 AS cor0
----
-207888
-737232
-8700

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + col0 + col0 * - ( tab1.col2 ) col2 FROM tab1
----
-185
-3594
-7613

query I rowsort
SELECT DISTINCT - 65 + - col0 AS col1 FROM tab1
----
-129
-145
-68

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8523
SELECT + col2 * col2 + - CAST( - 52 * + col0 AS SIGNED ) AS col0 FROM tab2
----
1093
4732
5552

skipif mysql # not compatible
query I rowsort label-8523
SELECT + col2 * col2 + - CAST ( - 52 * + col0 AS INTEGER ) AS col0 FROM tab2
----
1093
4732
5552

skipif mysql # not compatible
query I rowsort
SELECT col0 + col1 + - CAST ( + col2 + col1 AS REAL ) FROM tab0
----
-9
34
7

query I rowsort
SELECT ALL - + col0 * - 22 FROM tab1 AS cor0
----
1408
1760
66

query I rowsort
SELECT ALL ( + col2 ) * - col1 + - 75 + + col2 FROM tab2
----
-1583
-683
-885

onlyif mysql # use DIV operator for integer division
query I rowsort label-8527
SELECT col1 + col0 + - col0 DIV + col2 AS col1 FROM tab0
----
110
179
97

skipif mysql # not compatible
query I rowsort label-8527
SELECT col1 + col0 + - col0 / + col2 AS col1 FROM tab0
----
110
179
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8528
SELECT DISTINCT col0 + - col1 * CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8528
SELECT DISTINCT col0 + - col1 * CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query I rowsort
SELECT 7 + - 7 FROM tab2, tab1 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT ( 17 ) FROM tab1, tab2 AS cor0
----
9 values hashing to 43298e43365fccb5146ea32003753c92

query I rowsort
SELECT ALL - col1 - - 14 FROM tab0 AS cor0
----
-72
-77
-83

onlyif mysql # use DIV operator for integer division
query I rowsort label-8532
SELECT DISTINCT col0 DIV + col1 + col2 + col2 AS col1 FROM tab0 AS cor0
----
164
2
66

skipif mysql # not compatible
query I rowsort label-8532
SELECT DISTINCT col0 / + col1 + col2 + col2 AS col1 FROM tab0 AS cor0
----
164
2
66

query I rowsort
SELECT DISTINCT + - col0 - col1 AS col1 FROM tab1 AS cor0
----
-29
-74
-93

query I rowsort
SELECT + - col1 + 98 AS col1 FROM tab0 cor0
----
1
12
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-8535
SELECT DISTINCT - + col1 + - cor0.col2 DIV col0 FROM tab2 AS cor0
----
-17
-34
-59

skipif mysql # not compatible
query I rowsort label-8535
SELECT DISTINCT - + col1 + - cor0.col2 / col0 FROM tab2 AS cor0
----
-17
-34
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 * - col1 + + 16 col0 FROM tab2 AS cor0
----
-1518
-630
-821

query I rowsort
SELECT col0 + ( + col2 ) * + col2 AS col2 FROM tab0 AS cor0
----
1113
36
6813

query I rowsort
SELECT - + col0 * 45 FROM tab2 AS cor0
----
-315
-3510
-3555

query I rowsort
SELECT DISTINCT col2 * + col2 * - ( + ( col2 ) ) AS col2 FROM tab1
----
-157464
-185193
-884736

query I rowsort
SELECT 41 * + col1 AS col0 FROM tab1
----
1066
410
533

query I rowsort
SELECT - - col1 + + cor0.col2 * cor0.col0 FROM tab2 AS cor0
----
2087
220
3019

query I rowsort
SELECT + + col1 * - col1 * 0 AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT 34 + col0 FROM tab1
----
114
37
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-8544
SELECT - 67 DIV + 90 + - col0 DIV + col2 AS col2 FROM tab0 cor0
----
-1
-35
0

skipif mysql # not compatible
query I rowsort label-8544
SELECT - 67 / + 90 + - col0 / + col2 AS col2 FROM tab0 cor0
----
-1
-35
0

query I rowsort
SELECT 56 + + cor0.col1 FROM tab1 AS cor0
----
66
69
82

query I rowsort
SELECT ALL - col2 * - 3 FROM tab0 AS cor0
----
246
3
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + col0 ) + col1 col2 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT ALL + ( + col2 ) * - col2 AS col0 FROM tab1 AS cor0
----
-2916
-3249
-9216

query I rowsort
SELECT ( 69 ) * col2 + + ( col2 ) * col2 AS col0 FROM tab0 AS cor0
----
12382
3366
70

query I rowsort
SELECT - col0 * - col0 + - 21 + col0 FROM tab2
----
35
6141
6299

query I rowsort
SELECT + 21 * cor0.col2 AS col0 FROM tab2 cor0
----
546
567
798

query I rowsort
SELECT - 31 - - ( + col0 * col0 ) FROM tab1 AS cor0
----
-22
4065
6369

query I rowsort
SELECT - 81 - col2 AS col1 FROM tab0 AS cor0
----
-114
-163
-82

query I rowsort
SELECT + 36 * - col1 - col0 AS col1 FROM tab1 AS cor0
----
-424
-548
-939

query I rowsort
SELECT ALL tab1.col1 FROM tab0, tab2 AS cor0 CROSS JOIN tab1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

query I rowsort
SELECT + ( + col2 ) + - col0 AS col2 FROM tab1 cor0
----
-7
16
51

query I rowsort
SELECT DISTINCT col0 * - col2 + - col2 FROM tab0 AS cor0
----
-36
-7380
-825

query I rowsort
SELECT col0 * + col1 + + 86 AS col1 FROM tab1 AS cor0
----
1126
164
726

query I rowsort
SELECT ALL 73 + col2 * 92 FROM tab0 AS cor0
----
165
3109
7617

onlyif mysql # use DIV operator for integer division
query I rowsort label-8560
SELECT + col2 * + col2 + - CAST( - col0 AS SIGNED ) DIV + col0 AS col2 FROM tab0 AS cor0
----
1090
2
6725

skipif mysql # not compatible
query I rowsort label-8560
SELECT + col2 * + col2 + - CAST ( - col0 AS INTEGER ) / + col0 AS col2 FROM tab0 AS cor0
----
1090
2
6725

query I rowsort
SELECT DISTINCT - 72 * - col1 FROM tab1 AS cor0
----
1872
720
936

query I rowsort
SELECT DISTINCT + 72 + col0 AS col2 FROM tab2 cor0
----
150
151
79

query I rowsort
SELECT ALL + + 88 + + col2 AS col2 FROM tab0 AS cor0
----
121
170
89

query I rowsort
SELECT - + cor0.col1 * col2 + col2 AS col1 FROM tab0 AS cor0
----
-2805
-7380
-96

query I rowsort
SELECT + col0 * - 75 AS col1 FROM tab2
----
-525
-5850
-5925

onlyif mysql # use DIV operator for integer division
query I rowsort label-8566
SELECT col2 DIV - 51 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8566
SELECT col2 / - 51 FROM tab2
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8567
SELECT + + col2 * + col2 * CAST( col1 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
22599
24548
39884

skipif mysql # not compatible
query I rowsort label-8567
SELECT + + col2 * + col2 * CAST ( col1 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
22599
24548
39884

query I rowsort
SELECT DISTINCT col1 * + 56 AS col0 FROM tab0
----
4816
5096
5432

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab2.col0 * + col0 col0 FROM tab2
----
49
6084
6241

query I rowsort
SELECT + ( - cor0.col2 ) + col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col1 - 93 AS col0 FROM tab0
----
-2
-7
4

onlyif mysql # use DIV operator for integer division
query I rowsort label-8572
SELECT - col1 + + col0 + + col1 * 31 DIV + col0 FROM tab0
----
23
29
49

skipif mysql # not compatible
query I rowsort label-8572
SELECT - col1 + + col0 + + col1 * 31 / + col0 FROM tab0
----
23
29
49

query I rowsort
SELECT col2 - - tab2.col1 AS col0 FROM tab2
----
55
58
85

query I rowsort
SELECT - ( - col1 ) + col2 AS col1 FROM tab0
----
119
173
98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8575
SELECT CAST( NULL AS SIGNED ) - + col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8575
SELECT CAST ( NULL AS INTEGER ) - + col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT 11 * col2 AS col0 FROM tab0 AS cor0
----
11
363
902

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8577
SELECT ALL col2 * - CAST( NULL AS SIGNED ) + + 29 * cor0.col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8577
SELECT ALL col2 * - CAST ( NULL AS INTEGER ) + + 29 * cor0.col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 * + ( 67 ) AS col0 FROM tab1 AS cor0
----
-3618
-3819
-6432

query I rowsort
SELECT - 59 - - col1 AS col0 FROM tab1
----
-33
-46
-49

query I rowsort
SELECT ALL col2 * + 1 + + col0 * - col0 + col1 FROM tab1 AS cor0
----
-4029
-6291
71

query I rowsort
SELECT DISTINCT - col1 + col1 * 39 AS col2 FROM tab0 AS cor0
----
3268
3458
3686

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 * - col0 col0 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT DISTINCT col2 + ( - col2 ) * + cor0.col2 FROM tab1 AS cor0
----
-2862
-3192
-9120

query I rowsort
SELECT ALL + col0 + + col2 * + ( cor0.col0 ) FROM tab1 AS cor0
----
165
3712
7760

onlyif mysql # use DIV operator for integer division
query I rowsort label-8585
SELECT DISTINCT - col1 * col1 DIV - col1 AS col2 FROM tab2 AS cor0
----
17
31
59

skipif mysql # not compatible
query I rowsort label-8585
SELECT DISTINCT - col1 * col1 / - col1 AS col2 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT + 0 * - tab2.col1 AS col0 FROM tab2
----
0
0
0

query I rowsort
SELECT + + cor0.col0 AS col1 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

query I rowsort
SELECT DISTINCT col0 + col0 * 51 FROM tab1
----
156
3328
4160

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + col0 * 91 col0 FROM tab2
----
610
7072
7151

query I rowsort
SELECT DISTINCT + - cor0.col0 AS col1 FROM tab0 cor0
----
-24
-35
-89

onlyif mysql # use DIV operator for integer division
query I rowsort label-8591
SELECT DISTINCT col0 + col2 DIV col0 FROM tab0 AS cor0
----
25
35
89

skipif mysql # not compatible
query I rowsort label-8591
SELECT DISTINCT col0 + col2 / col0 FROM tab0 AS cor0
----
25
35
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-8592
SELECT ALL - col2 + + cor0.col1 DIV col2 FROM tab1 AS cor0
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-8592
SELECT ALL - col2 + + cor0.col1 / col2 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT DISTINCT + col2 * + ( - col1 ) + col1 * + col1 AS col2 FROM tab1 AS cor0
----
-1079
-470
-728

query I rowsort
SELECT - cor0.col1 * + 84 FROM tab0 AS cor0
----
-7224
-7644
-8148

query I rowsort
SELECT ALL col1 * - col1 * - col2 AS col0 FROM tab0 cor0
----
244068
679042
9409

query I rowsort
SELECT + 78 * - 29 AS col2 FROM tab2 AS cor0
----
-2262
-2262
-2262

query I rowsort
SELECT - 60 * + col1 + - col2 AS col2 FROM tab2 AS cor0
----
-1058
-1887
-3566

query I rowsort
SELECT DISTINCT - col2 * - col2 * - col0 + col0 * + col1 FROM tab2
----
-112733
-48126
-4886

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * cor0.col0 col1 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT ALL 64 * + col2 AS col2 FROM tab1
----
3456
3648
6144

query I rowsort
SELECT col1 + + cor0.col0 + cor0.col1 * - col0 AS col1 FROM tab1 AS cor0
----
-49
-566
-947

query I rowsort
SELECT ALL cor0.col2 * col2 * col1 AS col2 FROM tab2 AS cor0
----
22599
24548
39884

query I rowsort
SELECT - col2 * col1 * + col1 AS col1 FROM tab2 AS cor0
----
-10982
-25947
-90506

onlyif mysql # use DIV operator for integer division
query I rowsort label-8604
SELECT ( cor0.col0 ) DIV col0 + - col2 + - col0 FROM tab0 AS cor0
----
-170
-35
-56

skipif mysql # not compatible
query I rowsort label-8604
SELECT ( cor0.col0 ) / col0 + - col2 + - col0 FROM tab0 AS cor0
----
-170
-35
-56

query I rowsort
SELECT 94 + col2 + 30 FROM tab1 AS cor0
----
178
181
220

query I rowsort
SELECT DISTINCT - 45 * - col1 AS col1 FROM tab0 AS cor0
----
3870
4095
4365

query I rowsort
SELECT + cor0.col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775

query I rowsort
SELECT + 82 * + col2 + col1 FROM tab2 AS cor0
----
2191
2245
3133

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * col1 + col0 + col2 col1 FROM tab2 AS cor0
----
-1226
-183
-4498

query I rowsort
SELECT - - col0 - cor0.col1 * + col2 AS col0 FROM tab0 AS cor0
----
-2814
-62
-7373

query I rowsort
SELECT DISTINCT col2 * - col0 + - col0 AS col2 FROM tab2 AS cor0
----
-196
-2106
-3081

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 60 * col1 + + col0 col1 FROM tab0 AS cor0
----
5184
5549
5855

query I rowsort
SELECT ALL - 12 FROM tab0 cor0
----
-12
-12
-12

onlyif mysql # use DIV operator for integer division
query I rowsort label-8614
SELECT col1 + + col2 DIV col0 AS col1 FROM tab0 AS cor0
----
87
91
97

skipif mysql # not compatible
query I rowsort label-8614
SELECT col1 + + col2 / col0 AS col1 FROM tab0 AS cor0
----
87
91
97

query I rowsort
SELECT - col0 + + col0 + col1 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT col1 * + col1 + col0 + col1 FROM tab0 AS cor0
----
7506
8461
9541

onlyif mysql # use DIV operator for integer division
query I rowsort label-8617
SELECT DISTINCT + tab2.col2 * col2 DIV col1 + - tab2.col2 col0 FROM tab2
----
-15
-4
46

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8617
SELECT DISTINCT + tab2.col2 * col2 / col1 + - tab2.col2 col0 FROM tab2
----
-15
-4
46

query I rowsort
SELECT - 92 FROM tab1, tab2 AS cor0
----
9 values hashing to 1af709a79a3e56281ffdce4d931d5965

query I rowsort
SELECT DISTINCT + col1 * 42 FROM tab1 cor0
----
1092
420
546

query I rowsort
SELECT ALL - + col0 * + ( col2 ) FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT - - col2 + - col1 * col0 AS col0 FROM tab2 AS cor0
----
-1305
-190
-4576

query I rowsort
SELECT 63 * 94 FROM tab1 AS cor0
----
5922
5922
5922

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - cor0.col1 ) col0 FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT DISTINCT 68 + + 83 FROM tab2
----
151

query I rowsort
SELECT + col1 + + 94 AS col1 FROM tab2
----
111
125
153

query I rowsort
SELECT ( + col1 ) + col1 * - col0 FROM tab2
----
-1326
-186
-4543

query I rowsort
SELECT - col2 + + col1 - col2 AS col2 FROM tab0 cor0
----
-73
20
95

query I rowsort
SELECT 29 + - col0 + col0 FROM tab2 AS cor0
----
29
29
29

query I rowsort
SELECT ALL 7 + tab2.col0 FROM tab2
----
14
85
86

query I rowsort
SELECT ALL col2 + 7 AS col2 FROM tab2
----
33
34
45

onlyif mysql # use DIV operator for integer division
query I rowsort label-8631
SELECT ( - 39 + col1 ) DIV + col1 AS col2 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-8631
SELECT ( - 39 + col1 ) / + col1 AS col2 FROM tab2
----
-1
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-8632
SELECT CAST( + 3 AS SIGNED ) * tab0.col0 + col2 * + col2 + col1 DIV col2 FROM tab0
----
1163
203
6992

skipif mysql # not compatible
query I rowsort label-8632
SELECT CAST ( + 3 AS INTEGER ) * tab0.col0 + col2 * + col2 + col1 / col2 FROM tab0
----
1163
203
6992

query I rowsort
SELECT + col0 * 64 FROM tab2
----
448
4992
5056

query I rowsort
SELECT 96 + - col0 + - col0 FROM tab0
----
-82
26
48

query I rowsort
SELECT 78 * - tab2.col2 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 4504c9ef562931c1434e7dfbf2f73e33

query I rowsort
SELECT DISTINCT 88 FROM tab2, tab2 cor0, tab2 AS cor1, tab2 AS cor2
----
88

query I rowsort
SELECT 63 + 60 FROM tab2, tab0 AS cor0
----
9 values hashing to 29e9d8131952d56946bc643c97a760bb

query I rowsort
SELECT ( col2 ) * + col2 + 40 AS col2 FROM tab2 AS cor0
----
1484
716
769

query I rowsort
SELECT ALL col0 * ( cor0.col0 ) + col0 AS col0 FROM tab1 AS cor0
----
12
4160
6480

query I rowsort
SELECT ALL - - 53 + + col0 FROM tab0 AS cor0
----
142
77
88

query I rowsort
SELECT ALL - ( col2 ) + col2 AS col1 FROM tab0
----
0
0
0

query I rowsort
SELECT 8 + + 18 FROM tab1
----
26
26
26

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8643
SELECT DISTINCT ( col1 ) * col0 + + CAST( - col1 + - col2 AS SIGNED ) * ( + col0 ) AS col1 FROM tab1
----
-162
-3648
-7680

skipif mysql # not compatible
query I rowsort label-8643
SELECT DISTINCT ( col1 ) * col0 + + CAST ( - col1 + - col2 AS INTEGER ) * ( + col0 ) AS col1 FROM tab1
----
-162
-3648
-7680

query I rowsort
SELECT col2 * col0 * col2 AS col0 FROM tab0
----
26136
35
598436

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 0 + - 39 col0 FROM tab0
----
-39

query I rowsort
SELECT + col1 * + 2 FROM tab2 AS cor0
----
118
34
62

query I rowsort
SELECT - col0 + 61 FROM tab1 AS cor0
----
-19
-3
58

query I rowsort
SELECT DISTINCT - 62 * + col1 AS col0 FROM tab2
----
-1054
-1922
-3658

query I rowsort
SELECT - 91 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 6ec4feac5c635ab8e5da71006896acab

query I rowsort
SELECT + 29 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 4c56285992bcb76e1aac22e6d23d1318

query I rowsort
SELECT + col1 * - 36 - - cor0.col0 FROM tab1 AS cor0
----
-296
-388
-933

query I rowsort
SELECT - col1 * col0 - + cor0.col2 * + cor0.col2 * col2 AS col2 FROM tab0 AS cor0
----
-3396
-38001
-559467

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 58 col2 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to ef6e63aeed2581a168f07646d258f666

query I rowsort
SELECT col2 + + 6 * col1 AS col1 FROM tab1 AS cor0
----
117
174
210

onlyif mysql # use DIV operator for integer division
query I rowsort label-8655
SELECT col2 DIV 15 AS col0 FROM tab0 AS cor0
----
0
2
5

skipif mysql # not compatible
query I rowsort label-8655
SELECT col2 / 15 AS col0 FROM tab0 AS cor0
----
0
2
5

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8656
SELECT - col1 + + CAST( col0 * col0 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-17
4086
6387

skipif mysql # not compatible
query I rowsort label-8656
SELECT - col1 + + CAST ( col0 * col0 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-17
4086
6387

onlyif mysql # use DIV operator for integer division
query I rowsort label-8657
SELECT + col1 DIV 72 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8657
SELECT + col1 / 72 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-8658
SELECT DISTINCT + col0 DIV 83 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8658
SELECT DISTINCT + col0 / 83 FROM tab2
----
0

query I rowsort
SELECT - col2 - + col2 * tab0.col0 AS col2 FROM tab0
----
-36
-7380
-825

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8660
SELECT - CAST( - 23 AS SIGNED ) FROM tab2, tab0 AS cor0
----
9 values hashing to d94fadcc1c8cc4fc51b78b83e04795f2

skipif mysql # not compatible
query I rowsort label-8660
SELECT - CAST ( - 23 AS INTEGER ) FROM tab2, tab0 AS cor0
----
9 values hashing to d94fadcc1c8cc4fc51b78b83e04795f2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + 99 ) col1 FROM tab0, tab2 cor0
----
9 values hashing to 64d06513850a26495bc6c2fddeb254b7

query I rowsort
SELECT cor0.col2 FROM tab1, tab2, tab0 cor0
----
27 values hashing to 7786718bd8042022537378d40ec87475

onlyif mysql # use DIV operator for integer division
query I rowsort label-8663
SELECT ALL + tab1.col1 DIV col1 AS col1 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8663
SELECT ALL + tab1.col1 / col1 AS col1 FROM tab1
----
1
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-8664
SELECT DISTINCT + col1 + 71 DIV col2 AS col2 FROM tab1 AS cor0
----
11
13
27

skipif mysql # not compatible
query I rowsort label-8664
SELECT DISTINCT + col1 + 71 / col2 AS col2 FROM tab1 AS cor0
----
11
13
27

query I rowsort
SELECT DISTINCT - col1 + + col2 * + col0 AS col1 FROM tab1 AS cor0
----
136
3638
7667

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 * col1 col2 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT DISTINCT - - cor0.col0 * + 37 AS col0 FROM tab2 AS cor0
----
259
2886
2923

onlyif mysql # use DIV operator for integer division
query I rowsort label-8668
SELECT ALL col0 DIV col1 + - col2 FROM tab0 AS cor0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-8668
SELECT ALL col0 / col1 + - col2 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT ALL col1 * - col0 * 2 - col2 * cor0.col0 AS col1 FROM tab2 AS cor0
----
-11232
-5688
-623

query I rowsort
SELECT ALL + - col2 * - 79 * col1 FROM tab0 AS cor0
----
224202
589498
7663

query I rowsort
SELECT ALL + - col1 + + 62 AS col0 FROM tab0 AS cor0
----
-24
-29
-35

query I rowsort
SELECT - ( - col2 ) * + col0 - col0 FROM tab0 AS cor0
----
0
7209
768

onlyif mysql # use DIV operator for integer division
query I rowsort label-8673
SELECT ALL cor0.col1 + - 95 DIV col0 AS col0 FROM tab1 AS cor0
----
-5
12
9

skipif mysql # not compatible
query I rowsort label-8673
SELECT ALL cor0.col1 + - 95 / col0 AS col0 FROM tab1 AS cor0
----
-5
12
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 67 * col1 * col0 - col1 col1 FROM tab1 AS cor0
----
-42890
-5252
-69693

query I rowsort
SELECT DISTINCT - col0 + + 32 AS col0 FROM tab0 AS cor0
----
-3
-57
8

query I rowsort
SELECT DISTINCT - col1 + + cor0.col1 * - col0 AS col1 FROM tab0 cor0
----
-2150
-3492
-8190

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 86 + - 50 col2 FROM tab0 cor0
----
36
36
36

query I rowsort
SELECT ALL + cor0.col2 * 24 AS col0 FROM tab2 AS cor0
----
624
648
912

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8679
SELECT DISTINCT + CAST( NULL AS SIGNED ) + col1 * + col0 AS col2 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8679
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + col1 * + col0 AS col2 FROM tab1 cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8680
SELECT DISTINCT CAST( NULL AS SIGNED ) / - col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8680
SELECT DISTINCT CAST ( NULL AS INTEGER ) / - col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL - + ( col1 ) + - col1 FROM tab0 AS cor0
----
-172
-182
-194

query I rowsort
SELECT + col1 * cor0.col1 + - col1 + - col0 AS col1 FROM tab2 AS cor0
----
193
3344
923

query I rowsort
SELECT + 36 * + cor0.col0 * col1 FROM tab0 AS cor0
----
122220
291564
74304

query I rowsort
SELECT DISTINCT col2 * 28 AS col0 FROM tab2 AS cor0
----
1064
728
756

query I rowsort
SELECT DISTINCT - 97 + cor0.col0 AS col0 FROM tab1 cor0
----
-17
-33
-94

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8686
SELECT ALL + col2 * CAST( NULL AS SIGNED ) - tab0.col1 / + col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8686
SELECT ALL + col2 * CAST ( NULL AS INTEGER ) - tab0.col1 / + col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + - 56 * - 31 * + cor0.col1 AS col0 FROM tab1 AS cor0
----
17360
22568
45136

query I rowsort
SELECT ALL + cor0.col2 + tab0.col0 * - 32 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 251ae71ce0edec6c474ac05528289bf7

query I rowsort
SELECT - col2 * + 46 AS col2 FROM tab2
----
-1196
-1242
-1748

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + col0 ) + - col2 * col2 col1 FROM tab1 AS cor0
----
-2919
-3313
-9296

query I rowsort
SELECT ALL - + col2 * - col1 + col0 FROM tab0 cor0
----
132
2862
7551

query I rowsort
SELECT DISTINCT - + col0 * - col0 + ( - col0 ) * - col0 + col2 FROM tab0 AS cor0
----
1185
15924
2451

query I rowsort
SELECT ALL ( col1 ) * - ( col2 ) FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT DISTINCT 0 + - col0 + col1 * - col0 AS col0 FROM tab2 AS cor0
----
-1422
-224
-4680

query I rowsort
SELECT + + col1 + + cor0.col0 * - ( col0 ) FROM tab2 AS cor0
----
-18
-6025
-6224

query I rowsort
SELECT DISTINCT + + 37 * - col0 + + 7 * + 2 AS col1 FROM tab2 AS cor0
----
-245
-2872
-2909

query I rowsort
SELECT ALL - 26 * col0 + - col2 * + col0 * - col0 - 11 FROM tab2 AS cor0
----
1130
156145
235093

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 63 * 32 col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 896c492ca649b9543d0f2ce199c7f55d

onlyif mysql # use DIV operator for integer division
query I rowsort label-8700
SELECT + col2 DIV ( - 60 ) AS col1 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-8700
SELECT + col2 / ( - 60 ) AS col1 FROM tab0 AS cor0
----
-1
0
0

query I rowsort
SELECT 35 - + col1 AS col0 FROM tab2
----
-24
18
4

query I rowsort
SELECT 45 + tab1.col0 FROM tab1
----
109
125
48

query I rowsort
SELECT + 70 * col2 + col2 FROM tab0
----
2343
5822
71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 85 + + col0 * - ( 26 + - col1 ) col0 FROM tab1 AS cor0
----
-939
-955
85

query I rowsort
SELECT ALL + 72 - + col1 * - col2 FROM tab0 AS cor0
----
169
2910
7534

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + col1 col0 FROM tab2 AS cor0
----
118
34
62

query I rowsort
SELECT DISTINCT col0 * col1 + col1 AS col1 FROM tab2 AS cor0
----
1360
248
4661

query I rowsort
SELECT DISTINCT - + col0 + col2 * 28 FROM tab1 cor0
----
1509
1532
2608

onlyif mysql # use DIV operator for integer division
query I rowsort label-8709
SELECT ALL - 30 DIV col0 + col2 AS col2 FROM tab1 AS cor0
----
44
57
96

skipif mysql # not compatible
query I rowsort label-8709
SELECT ALL - 30 / col0 + col2 AS col2 FROM tab1 AS cor0
----
44
57
96

query I rowsort
SELECT DISTINCT 20 * - cor0.col1 + col0 FROM tab1 cor0
----
-136
-180
-517

query I rowsort
SELECT + ( cor0.col0 ) + - col2 FROM tab0 AS cor0
----
-9
34
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 98 + col2 * + 50 col1 FROM tab2 AS cor0
----
1398
1448
1998

query I rowsort
SELECT - - ( col0 ) + - 6 FROM tab2 cor0
----
1
72
73

onlyif mysql # use DIV operator for integer division
query I rowsort label-8714
SELECT - 53 + + 52 * + col0 DIV - tab1.col0 - col0 AS col2 FROM tab1
----
-108
-169
-185

skipif mysql # not compatible
query I rowsort label-8714
SELECT - 53 + + 52 * + col0 / - tab1.col0 - col0 AS col2 FROM tab1
----
-108
-169
-185

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8715
SELECT DISTINCT + CAST( - col1 AS SIGNED ) * + col2 + col2 FROM tab1
----
-1152
-1350
-513

skipif mysql # not compatible
query I rowsort label-8715
SELECT DISTINCT + CAST ( - col1 AS INTEGER ) * + col2 + col2 FROM tab1
----
-1152
-1350
-513

query I rowsort
SELECT ALL + 78 - col2 FROM tab0 AS cor0
----
-4
45
77

query I rowsort
SELECT 28 * - col2 + + col0 AS col1 FROM tab1 AS cor0
----
-1509
-1532
-2608

query I rowsort
SELECT ALL - col0 * col2 + + col2 * + col1 AS col1 FROM tab1 AS cor0
----
-3078
-6432
1242

query I rowsort
SELECT ALL cor0.col2 - col1 FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT DISTINCT + cor0.col0 + col1 AS col2 FROM tab1 cor0
----
29
74
93

query I rowsort
SELECT DISTINCT 77 * - col0 - + col2 AS col2 FROM tab2 AS cor0
----
-566
-6032
-6121

query I rowsort
SELECT DISTINCT + + col1 + col0 * + 56 FROM tab2 AS cor0
----
423
4427
4441

query I rowsort
SELECT - 74 - col2 * + col1 * 9 AS col0 FROM tab2
----
-13880
-5888
-7607

query I rowsort
SELECT DISTINCT + 83 + - col0 AS col0 FROM tab2
----
4
5
76

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8725
SELECT CAST( NULL AS SIGNED ) + 22 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-8725
SELECT CAST ( NULL AS INTEGER ) + 22 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort
SELECT - col1 * CAST ( col1 AS REAL ) FROM tab2 AS cor0
----
-289
-3481
-961

query I rowsort
SELECT + cor0.col0 + 18 * + cor0.col0 * col1 FROM tab1 AS cor0
----
11584
1407
18800

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 * 56 col2 FROM tab0 AS cor0
----
-1848
-4592
-56

query I rowsort
SELECT 24 AS col1 FROM tab2, tab1 cor0
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef

query I rowsort
SELECT ALL - + col1 + + col0 * - col0 FROM tab2 AS cor0
----
-6143
-6258
-80

query I rowsort
SELECT col2 * 53 + col0 * col1 FROM tab1
----
2940
3661
6128

query I rowsort
SELECT + col0 + 28 + - tab0.col2 AS col2 FROM tab0
----
19
35
62

query I rowsort
SELECT - + col1 + col1 * col0 FROM tab1 cor0
----
1027
52
630

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 1 + - ( + col2 ) col0 FROM tab1 AS cor0
----
-55
-58
-97

query I rowsort
SELECT DISTINCT - col1 + - col1 * cor0.col2 * - col0 FROM tab2 AS cor0
----
119593
51017
5828

query I rowsort
SELECT - 10 + + col1 FROM tab0 AS cor0
----
76
81
87

query I rowsort
SELECT DISTINCT - + ( - col2 ) * col2 FROM tab1 AS cor0
----
2916
3249
9216

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 44 col2 FROM tab2 AS cor0
----
44
44
44

query I rowsort
SELECT ( + col0 ) * + cor0.col0 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT DISTINCT - + 94 * - col1 AS col2 FROM tab1 AS cor0
----
1222
2444
940

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 * + col1 * col0 col2 FROM tab1 AS cor0
----
36480
4212
99840

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8742
SELECT DISTINCT + - CAST( 84 AS SIGNED ) * - col0 AS col2 FROM tab0 AS cor0
----
2016
2940
7476

skipif mysql # not compatible
query I rowsort label-8742
SELECT DISTINCT + - CAST ( 84 AS INTEGER ) * - col0 AS col2 FROM tab0 AS cor0
----
2016
2940
7476

query I rowsort
SELECT ALL - 8 AS col1 FROM tab1 cor0
----
-8
-8
-8

query I rowsort
SELECT DISTINCT + col2 + + col1 * col1 + + col2 * - tab1.col1 FROM tab1
----
-413
-674
-983

query I rowsort
SELECT ALL tab0.col2 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8

query I rowsort
SELECT + 30 * - col2 AS col1 FROM tab1
----
-1620
-1710
-2880

query I rowsort
SELECT ALL + cor0.col1 * - 93 FROM tab0, tab0 AS cor0
----
9 values hashing to a5cf9dd72007793e6e03569eadfed7bc

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - col1 col0 FROM tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT - 31 AS col1 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to c6c8eebeb1a59f7c046402e25630c0ac

query I rowsort
SELECT - cor0.col0 * col2 + + ( col0 ) + + col0 FROM tab1 AS cor0
----
-156
-3520
-7520

query I rowsort
SELECT - 72 + cor0.col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 76d658058b830ece59e14fa3baed28b5

query I rowsort
SELECT - + 61 + + col1 FROM tab1 AS cor0
----
-35
-48
-51

query I rowsort
SELECT + cor0.col1 * + col2 + cor0.col0 * 42 + col0 AS col0 FROM tab0 AS cor0
----
11289
1602
3870

query I rowsort
SELECT - cor0.col2 * col0 + - col0 * col0 AS col1 FROM tab1 AS cor0
----
-14080
-171
-7744

query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab1, tab0 cor0, tab1 cor1
----
972 values hashing to 0a9194f200a4220e419d35c461f9fcfe

query I rowsort
SELECT ALL - + col1 + cor0.col0 * col1 FROM tab0 AS cor0
----
1978
3298
8008

query I rowsort
SELECT 68 FROM tab1, tab2 cor0, tab1 AS cor1
----
27 values hashing to 10aa25f1c6b97582c34521ac6452e0b4

query I rowsort
SELECT DISTINCT - col1 * ( - col2 ) FROM tab2
----
1534
646
837

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab0 AS cor0, tab0 cor1, tab0, tab1 AS cor2
----
3645 values hashing to 59bb9dc93b6f10de841a7db8eb3857e9

query I rowsort
SELECT DISTINCT col1 * col1 - col0 FROM tab0 AS cor0
----
7372
8192
9374

query I rowsort
SELECT DISTINCT + - cor0.col1 * 24 AS col2 FROM tab1 AS cor0
----
-240
-312
-624

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 - - ( cor0.col1 ) * col0 FROM tab0 AS cor0
----
2064
3395
8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 * 26 col1 FROM tab2 AS cor0
----
676
702
988

query I rowsort
SELECT + cor0.col0 + col0 * - col0 FROM tab0 AS cor0
----
-1190
-552
-7832

query I rowsort
SELECT ALL - + col1 * - ( + col0 ) FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT ALL + col0 * - 64 AS col2 FROM tab1 AS cor0
----
-192
-4096
-5120

query I rowsort
SELECT + ( 76 ) * col1 FROM tab2 AS cor0
----
1292
2356
4484

query I rowsort
SELECT ALL + 91 AS col2 FROM tab1 AS cor0
----
91
91
91

query I rowsort
SELECT col1 + ( tab0.col0 ) AS col1 FROM tab0
----
110
132
180

query I rowsort
SELECT DISTINCT - 27 AS col2 FROM tab1, tab1 AS cor0
----
-27

query I rowsort
SELECT ( + cor0.col2 ) AS col0 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT DISTINCT + cor0.col1 * - cor0.col1 AS col2 FROM tab2, tab1 cor0
----
-100
-169
-676

query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab2 WHERE + col0 IN ( - tab2.col1 * tab2.col0 + - col0 )
----

query I rowsort
SELECT col0 + col1 FROM tab2 WHERE NULL IN ( - col0 )
----

query I rowsort
SELECT tab2.col1 FROM tab2 WHERE ( + col1 ) IN ( col0 )
----

query I rowsort
SELECT - col2 - + tab1.col0 AS col0 FROM tab1
----
-121
-176
-57

onlyif mysql # use DIV operator for integer division
query I rowsort label-8778
SELECT DISTINCT + col0 DIV tab1.col2 AS col0 FROM tab1
----
0
1

skipif mysql # not compatible
query I rowsort label-8778
SELECT DISTINCT + col0 / tab1.col2 AS col0 FROM tab1
----
0
1

query I rowsort
SELECT col0 - + col2 * - col1 AS col0 FROM tab1 cor0
----
1328
1407
634

onlyif mysql # use DIV operator for integer division
query I rowsort label-8780
SELECT - col2 DIV + col0 + + tab0.col0 + tab0.col2 FROM tab0
----
171
36
56

skipif mysql # not compatible
query I rowsort label-8780
SELECT - col2 / + col0 + + tab0.col0 + tab0.col2 FROM tab0
----
171
36
56

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NULL ) NOT IN ( + tab1.col2 * col0 )
----

query I rowsort
SELECT DISTINCT - col1 * - tab2.col2 AS col2 FROM tab2
----
1534
646
837

query I rowsort
SELECT col1 * tab0.col2 * col1 AS col0 FROM tab0
----
244068
679042
9409

query I rowsort
SELECT DISTINCT + col2 * col1 + tab1.col0 * col0 FROM tab1 WHERE NOT col2 * + col1 + - col0 NOT IN ( col1 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN col1 AND NULL OR NULL > - col0
----

query I rowsort
SELECT + 45 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 14cec871edc37b5056cda01c8331fdca

query I rowsort
SELECT DISTINCT - 14 FROM tab1
----
-14

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8788
SELECT + - ( - cor0.col2 ) + CAST( - tab0.col1 AS SIGNED ) FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to 29a344fb4ecaf9061cb2c6ffe0fd7f9e

skipif mysql # not compatible
query I rowsort label-8788
SELECT + - ( - cor0.col2 ) + CAST ( - tab0.col1 AS INTEGER ) FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to 29a344fb4ecaf9061cb2c6ffe0fd7f9e

query I rowsort
SELECT + 8 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to 33069adc3c1142d31511ec88fcfa40af

query I rowsort
SELECT + 52 * col0 AS col0 FROM tab1
----
156
3328
4160

query I rowsort
SELECT DISTINCT + col2 * 67 AS col1 FROM tab2 AS cor0
----
1742
1809
2546

query I rowsort
SELECT ALL + col2 + + cor0.col0 * - 5 FROM tab0 AS cor0
----
-174
-363
-87

query I rowsort
SELECT cor0.col1 + + ( - 3 ) * col1 AS col0 FROM tab0 AS cor0
----
-172
-182
-194

query I rowsort
SELECT col2 + - ( + col2 ) * col2 FROM tab0 AS cor0
----
-1056
-6642
0

query I rowsort
SELECT DISTINCT - cor0.col1 + + col0 * + col1 FROM tab1 cor0
----
1027
52
630

query I rowsort
SELECT + cor0.col0 * col2 + + col2 FROM tab0 AS cor0
----
36
7380
825

onlyif mysql # use DIV operator for integer division
query I rowsort label-8797
SELECT DISTINCT col0 + - ( col0 ) DIV col0 AS col1 FROM tab1 AS cor0
----
2
63
79

skipif mysql # not compatible
query I rowsort label-8797
SELECT DISTINCT col0 + - ( col0 ) / col0 AS col1 FROM tab1 AS cor0
----
2
63
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-8798
SELECT ALL - col1 DIV 21 AS col2 FROM tab0 AS cor0
----
-4
-4
-4

skipif mysql # not compatible
query I rowsort label-8798
SELECT ALL - col1 / 21 AS col2 FROM tab0 AS cor0
----
-4
-4
-4

query I rowsort
SELECT - cor0.col0 * 0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + - cor0.col0 * - col0 AS col2 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT - col0 * + col0 + col0 AS col0 FROM tab0
----
-1190
-552
-7832

query I rowsort
SELECT ALL + col0 * tab0.col2 AS col1 FROM tab0
----
35
7298
792

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( col1 + col0 * - col0 ) BETWEEN - col2 * + col1 AND ( NULL )
----
35
97
1
89
91
82

query I rowsort
SELECT - col2 + col0 + + col2 * - tab1.col2 FROM tab1
----
-2967
-3242
-9232

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL < ( - col0 * - col0 + col2 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( col1 + - col2 * col1 + col2 ) = NULL
----

query I rowsort
SELECT col2 + tab1.col0 + col0 AS col1 FROM tab1
----
185
256
60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + col2 col2 FROM tab0 WHERE ( col2 * - col2 + - col2 + + col1 ) IN ( tab0.col1 * + col1 )
----

query I rowsort
SELECT ALL - col1 * col2 - col2 * col0 AS col2 FROM tab2
----
-1026
-3562
-3648

query I rowsort
SELECT tab1.col0 + + col0 * - col1 * + col1 FROM tab1
----
-13440
-2025
-6336

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL > col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab0.col1 + tab0.col1 col1 FROM tab0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL IN ( + col0 * + col1 )
----

query I rowsort
SELECT ALL - col1 * + col1 + 61 AS col1 FROM tab2 AS cor0
----
-228
-3420
-900

query I rowsort
SELECT ALL col1 * + col1 * + 16 FROM tab2 cor0
----
15376
4624
55696

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col1 = + col0 * col2
----

query I rowsort
SELECT - col2 + - cor0.col0 * + col1 * col2 FROM tab2 AS cor0
----
-119678
-51072
-5886

query I rowsort
SELECT ALL - col2 + tab2.col0 * + col0 FROM tab2
----
22
6058
6203

query I rowsort
SELECT DISTINCT + col0 * + col2 * col0 FROM tab1
----
233472
486
614400

query I rowsort
SELECT - tab1.col0 FROM tab1 WHERE NULL IN ( col1 )
----

query I rowsort
SELECT - col0 * - col2 - + col2 * - col0 * col1 FROM tab2
----
121680
54036
6048

query I rowsort
SELECT ALL col0 * + tab1.col2 AS col2 FROM tab1 WHERE NOT NULL NOT BETWEEN - col0 AND ( NULL )
----

query I rowsort
SELECT DISTINCT - col0 + - col2 * + col1 AS col2 FROM tab1
----
-1328
-1407
-634

query I rowsort
SELECT col2 + + ( tab0.col0 ) * - col0 + + 76 * - col0 FROM tab0
----
-14603
-2367
-3884

query I rowsort
SELECT ALL + col1 + + 5 FROM tab1
----
15
18
31

query I rowsort
SELECT + tab1.col2 * - cor0.col0 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to e9a573af0b5b0e23e78b519b14fdc3d1

query I rowsort
SELECT ALL - 86 + 83 FROM tab1, tab2 AS cor0
----
9 values hashing to 95b6b9b4aae5cc2d9545db9f8940b2dc

query I rowsort
SELECT DISTINCT - tab0.col1 * - col0 + col1 FROM tab0
----
2150
3492
8190

onlyif mysql # use DIV operator for integer division
query I rowsort label-8829
SELECT - col1 DIV 42 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-8829
SELECT - col1 / 42 FROM tab2
----
-1
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + 46 * - tab0.col1 col1 FROM tab0
----
-3870
-4095
-4365

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + 87 + + col1 * + col2 col0 FROM tab1
----
1348
1517
667

query I rowsort
SELECT DISTINCT - col0 * + 61 + + 19 AS col1 FROM tab2
----
-408
-4739
-4800

query I rowsort
SELECT - tab0.col2 * - tab0.col0 + 75 AS col2 FROM tab0
----
110
7373
867

query I rowsort
SELECT DISTINCT cor0.col0 * - 15 + - col2 FROM tab1 AS cor0
----
-1017
-1296
-99

query I rowsort
SELECT DISTINCT + - col1 * ( col0 ) FROM tab0 AS cor0
----
-2064
-3395
-8099

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8836
SELECT ALL + col2 * CAST( col2 AS SIGNED ) * col2 + CAST( NULL AS SIGNED ) * 31 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8836
SELECT ALL + col2 * CAST ( col2 AS INTEGER ) * col2 + CAST ( NULL AS INTEGER ) * 31 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - ( - 31 ) FROM tab2, tab1 AS cor0
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540

query I rowsort
SELECT DISTINCT - cor0.col1 * 67 + col1 AS col2 FROM tab2 AS cor0
----
-1122
-2046
-3894

query I rowsort
SELECT ALL + - col1 * cor0.col1 AS col0 FROM tab2 AS cor0
----
-289
-3481
-961

query I rowsort
SELECT - - ( - col2 ) * - col1 + col2 * col2 FROM tab2 AS cor0
----
1566
2090
2210

query I rowsort
SELECT - 71 + - col2 * col1 + + col1 FROM tab1 cor0
----
-1306
-1449
-631

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8842
SELECT DISTINCT + col0 * col1 * - col0 + + CAST( NULL AS SIGNED ) * + col0 + col0 AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8842
SELECT DISTINCT + col0 * col1 * - col0 + + CAST ( NULL AS INTEGER ) * + col0 + col0 AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL + - cor0.col2 - col2 AS col2 FROM tab1 AS cor0
----
-108
-114
-192

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( col0 ) + - cor0.col1 * + col2 * - 25 col0 FROM tab2 AS cor0
----
16071
20918
38272

query I rowsort
SELECT ALL + ( 72 ) - col1 AS col2 FROM tab2 AS cor0
----
13
41
55

query I rowsort
SELECT DISTINCT + - 98 + + col2 FROM tab0 AS cor0
----
-16
-65
-97

query I rowsort
SELECT ALL - col2 + col2 - col0 * + col0 FROM tab1 AS cor0
----
-4096
-6400
-9

query I rowsort
SELECT ( - 71 ) FROM tab2 AS cor0
----
-71
-71
-71

query I rowsort
SELECT DISTINCT - col1 + + col2 + col2 FROM tab2
----
-7
23
59

query I rowsort
SELECT - col1 + col2 * + 28 - + col2 FROM tab1
----
1432
1529
2579

onlyif mysql # use DIV operator for integer division
query I rowsort label-8851
SELECT col2 DIV + tab0.col0 + + 38 DIV tab0.col2 FROM tab0
----
0
2
38

skipif mysql # not compatible
query I rowsort label-8851
SELECT col2 / + tab0.col0 + + 38 / tab0.col2 FROM tab0
----
0
2
38

query I rowsort
SELECT + 38 + + col0 * col1 FROM tab2 AS cor0
----
1381
255
4640

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8853
SELECT + + CAST( NULL AS SIGNED ) * - ( cor0.col1 ) + col2 + + 21 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8853
SELECT + + CAST ( NULL AS INTEGER ) * - ( cor0.col1 ) + col2 + + 21 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8854
SELECT + ( - 79 ) + - col2 + + CAST( - 4 * + col0 + + cor0.col2 AS SIGNED ) FROM tab1 AS cor0
----
-335
-399
-91

skipif mysql # not compatible
query I rowsort label-8854
SELECT + ( - 79 ) + - col2 + + CAST ( - 4 * + col0 + + cor0.col2 AS INTEGER ) FROM tab1 AS cor0
----
-335
-399
-91

query I rowsort
SELECT - - col1 * - 54 AS col0 FROM tab0 AS cor0
----
-4644
-4914
-5238

query I rowsort
SELECT ALL - cor0.col2 * - col0 AS col0 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT DISTINCT 68 + col1 * col0 AS col1 FROM tab1 AS cor0
----
1108
146
708

query I rowsort
SELECT DISTINCT + col2 + col0 * col2 + + 85 * + col1 FROM tab0 cor0
----
15115
8135
8281

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8859
SELECT - col1 + + cor0.col0 * - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8859
SELECT - col1 + + cor0.col0 * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + - 78 AS col2 FROM tab0 AS cor0
----
-78
-78
-78

onlyif mysql # use DIV operator for integer division
query I rowsort label-8861
SELECT col1 + + col2 * col2 DIV 69 FROM tab2 cor0
----
37
41
68

skipif mysql # not compatible
query I rowsort label-8861
SELECT col1 + + col2 * col2 / 69 FROM tab2 cor0
----
37
41
68

query I rowsort
SELECT ALL - 78 + cor0.col1 * col1 FROM tab1 AS cor0
----
22
598
91

query I rowsort
SELECT - col1 * col1 + + 30 AS col1 FROM tab0 AS cor0
----
-7366
-8251
-9379

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + col1 col1 FROM tab0 AS cor0
----
172
182
194

query I rowsort
SELECT DISTINCT + col0 * col1 + - col1 - - 8 FROM tab0 AS cor0
----
1986
3306
8016

query I rowsort
SELECT DISTINCT + + col2 * col2 + + 3 * col1 FROM tab0 cor0
----
1347
292
6997

query I rowsort
SELECT ALL 69 + - col1 + ( cor0.col1 ) AS col2 FROM tab2 AS cor0
----
69
69
69

query I rowsort
SELECT ALL 9 + col2 * + cor0.col1 FROM tab0 AS cor0
----
106
2847
7471

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8869
SELECT DISTINCT + col2 / CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8869
SELECT DISTINCT + col2 / CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-8870
SELECT + + col0 DIV 29 FROM tab1 AS cor0
----
0
2
2

skipif mysql # not compatible
query I rowsort label-8870
SELECT + + col0 / 29 FROM tab1 AS cor0
----
0
2
2

query I rowsort
SELECT 7 + - tab0.col1 FROM tab0
----
-79
-84
-90

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8872
SELECT - - col1 * + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8872
SELECT - - col1 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + cor0.col0 + - ( col0 ) FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + + 74 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to dc22979e6d261795bd3ce2990fdbbf82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + ( + 42 ) col0 FROM tab2 AS cor0
----
294
3276
3318

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8876
SELECT - + CAST( NULL AS SIGNED ) + cor0.col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8876
SELECT - + CAST ( NULL AS INTEGER ) + cor0.col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-8877
SELECT ALL + tab1.col1 DIV - col1 AS col1 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8877
SELECT ALL + tab1.col1 / - col1 AS col1 FROM tab1
----
-1
-1
-1

query I rowsort
SELECT ALL - col0 * col0 - + col1 * + col2 FROM tab0 cor0
----
-1322
-15383
-3414

query I rowsort
SELECT ALL + cor0.col2 + ( cor0.col1 ) * + col1 FROM tab1 AS cor0
----
157
265
730

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8880
SELECT - + col0 * - CAST( 98 + col0 AS SIGNED ) col0 FROM tab0 AS cor0
----
16643
2928
4655

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8880
SELECT - + col0 * - CAST ( 98 + col0 AS INTEGER ) col0 FROM tab0 AS cor0
----
16643
2928
4655

query I rowsort
SELECT DISTINCT + col1 + 10 AS col0 FROM tab1
----
20
23
36

query I rowsort
SELECT ALL + + cor0.col0 + + cor1.col2 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 4a01ecc2037eb425b02feee67266c705

query I rowsort
SELECT + - 8 * col2 + + ( ( + cor0.col0 ) ) FROM tab1 AS cor0
----
-392
-429
-688

query I rowsort
SELECT DISTINCT 23 FROM tab0, tab2 AS cor0 CROSS JOIN tab1
----
23

query I rowsort
SELECT 6 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821

query I rowsort
SELECT - 63 * col0 * 34 FROM tab1
----
-137088
-171360
-6426

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 91 * - col1 col0 FROM tab0 AS cor0
----
7826
8281
8827

onlyif mysql # use DIV operator for integer division
query I rowsort label-8888
SELECT ALL col0 DIV col1 + col1 * + col1 AS col1 FROM tab2 AS cor0
----
293
3482
961

skipif mysql # not compatible
query I rowsort label-8888
SELECT ALL col0 / col1 + col1 * + col1 AS col1 FROM tab2 AS cor0
----
293
3482
961

query I rowsort
SELECT DISTINCT + ( cor0.col0 ) - + 49 * + col0 AS col1 FROM tab2 cor0
----
-336
-3744
-3792

query I rowsort
SELECT DISTINCT col0 * - col1 + 36 FROM tab1 AS cor0
----
-1004
-42
-604

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8891
SELECT CAST( - 36 AS SIGNED ) + col2 FROM tab0
----
-3
-35
46

skipif mysql # not compatible
query I rowsort label-8891
SELECT CAST ( - 36 AS INTEGER ) + col2 FROM tab0
----
-3
-35
46

query I rowsort
SELECT - ( col0 ) * - col1 AS col0 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT col1 + + 7 * col1 FROM tab1 AS cor0
----
104
208
80

query I rowsort
SELECT col1 + - col2 * col1 * ( - 86 * + col1 ) FROM tab0 AS cor0
----
20989934
58397703
809271

query I rowsort
SELECT ALL + - ( - col1 ) AS col1 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT DISTINCT - 94 + + col2 FROM tab2 AS cor0
----
-56
-67
-68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 76 col2 FROM tab2 AS cor0
----
-76
-76
-76

query I rowsort
SELECT DISTINCT ( tab1.col2 ) * col1 * ( - col0 ) FROM tab1
----
-36480
-4212
-99840

query I rowsort
SELECT + col2 * + col2 + - col0 * + col1 FROM tab0 AS cor0
----
-1375
-3394
-975

onlyif mysql # use DIV operator for integer division
query I rowsort label-8900
SELECT - col2 DIV + col2 + + col0 * + col2 col1 FROM tab0 AS cor0
----
34
7297
791

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8900
SELECT - col2 / + col2 + + col0 * + col2 col1 FROM tab0 AS cor0
----
34
7297
791

query I rowsort
SELECT DISTINCT - col2 * 54 - - col1 * col0 AS col1 FROM tab2 cor0
----
-1241
-709
3198

query I rowsort
SELECT - - col0 * 90 + + col2 FROM tab2 AS cor0
----
657
7046
7148

query I rowsort
SELECT col0 + - ( + col1 ) * + col1 FROM tab0 AS cor0
----
-7372
-8192
-9374

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + cor0.col2 * 83 + - ( + col2 ) * + 11 col1 FROM tab1 AS cor0
----
-5076
-5358
-9024

query I rowsort
SELECT ALL + col1 - 98 * col2 FROM tab2 cor0
----
-2489
-2615
-3707

query I rowsort
SELECT ALL ( - col1 ) * - col2 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT ALL 90 * - col0 * col0 AS col0 FROM tab1 cor0
----
-368640
-576000
-810

query I rowsort
SELECT ALL - col1 * - 71 AS col0 FROM tab0 AS cor0
----
6106
6461
6887

onlyif mysql # use DIV operator for integer division
query I rowsort label-8909
SELECT DISTINCT col0 * - col0 + 94 * col0 DIV - ( - 88 * col1 ) col0 FROM tab1
----
-4090
-6394
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8909
SELECT DISTINCT col0 * - col0 + 94 * col0 / - ( - 88 * col1 ) col0 FROM tab1
----
-4090
-6394
-9

query I rowsort
SELECT col2 - - ( - col2 ) FROM tab0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - cor0.col0 + + col2 col0 FROM tab2 AS cor0
----
-41
-52
20

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 * + col0 - col0 * col0 col1 FROM tab2 AS cor0
----
-10686
-266
-7584

query I rowsort
SELECT - + ( col1 ) * - col1 + + 71 AS col2 FROM tab0 AS cor0
----
7467
8352
9480

onlyif mysql # use DIV operator for integer division
query I rowsort label-8914
SELECT 24 + ( - cor0.col2 ) DIV + col2 AS col1 FROM tab0 AS cor0
----
23
23
23

skipif mysql # not compatible
query I rowsort label-8914
SELECT 24 + ( - cor0.col2 ) / + col2 AS col1 FROM tab0 AS cor0
----
23
23
23

onlyif mysql # use DIV operator for integer division
query I rowsort label-8915
SELECT DISTINCT + 90 DIV cor0.col1 + col2 FROM tab2 AS cor0
----
27
29
43

skipif mysql # not compatible
query I rowsort label-8915
SELECT DISTINCT + 90 / cor0.col1 + col2 FROM tab2 AS cor0
----
27
29
43

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * col2 + col1 * col1 col0 FROM tab1 AS cor0
----
-3548
-7511
514

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 2 ) + col0 col2 FROM tab2 AS cor0
----
80
81
9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8918
SELECT ALL - CAST( NULL AS SIGNED ) + col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8918
SELECT ALL - CAST ( NULL AS INTEGER ) + col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - col0 * col2 + + col1 * ( + col1 ) AS col2 FROM tab0 cor0
----
6604
9374
983

query I rowsort
SELECT DISTINCT col0 * 4 + - col2 FROM tab2 AS cor0
----
1
278
286

query I rowsort
SELECT - ( + col1 ) - - col0 AS col0 FROM tab1
----
-23
54
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 + cor0.col2 * + cor0.col2 col0 FROM tab1 AS cor0
----
2970
3306
9312

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8923
SELECT ALL - CAST( col1 AS SIGNED ) + - col0 + + col1 FROM tab0 AS cor0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-8923
SELECT ALL - CAST ( col1 AS INTEGER ) + - col0 + + col1 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT DISTINCT + ( ( col0 ) ) * col2 - + col1 FROM tab2 AS cor0
----
158
1969
2985

query I rowsort
SELECT ALL - cor0.col0 * 18 AS col1 FROM tab2 AS cor0
----
-126
-1404
-1422

query I rowsort
SELECT ALL - 94 - col1 AS col1 FROM tab2
----
-111
-125
-153

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( col1 ) - - 1 col2 FROM tab0
----
87
92
98

skipif mysql # not compatible
query I rowsort
SELECT ALL col0 - CAST ( - 38 + col2 AS REAL ) * + col0 AS col0 FROM tab1 AS cor0
----
-1152
-45
-4560

query I rowsort
SELECT - col1 * 57 + - col2 AS col0 FROM tab1 cor0
----
-1536
-627
-837

query I rowsort
SELECT - + 76 * col1 AS col2 FROM tab2 AS cor0
----
-1292
-2356
-4484

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col0 col1 FROM tab1, tab2, tab1 AS cor0, tab0
----
81 values hashing to e28bf7f922650ca423ade3642ce0285b

onlyif mysql # use DIV operator for integer division
query I rowsort label-8932
SELECT DISTINCT 49 DIV + col1 AS col0 FROM tab2
----
0
1
2

skipif mysql # not compatible
query I rowsort label-8932
SELECT DISTINCT 49 / + col1 AS col0 FROM tab2
----
0
1
2

query I rowsort
SELECT col0 + + col2 * ( ( col2 ) ) + - col1 * - col2 AS col0 FROM tab1
----
10544
3883
4323

query I rowsort
SELECT col2 + 56 FROM tab2 AS cor0
----
82
83
94

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8935
SELECT - + col0 * - CAST( NULL AS SIGNED ) + - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8935
SELECT - + col0 * - CAST ( NULL AS INTEGER ) + - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col1 * 60 + col2 FROM tab2
----
1058
1887
3566

query I rowsort
SELECT DISTINCT col1 * tab1.col0 + col2 AS col0 FROM tab1
----
1136
132
697

query I rowsort
SELECT col2 * + ( col0 ) AS col2 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT ALL - col1 + 88 * 25 AS col1 FROM tab2 AS cor0
----
2141
2169
2183

query I rowsort
SELECT ALL - col2 * + 29 AS col2 FROM tab0 cor0
----
-2378
-29
-957

query I rowsort
SELECT DISTINCT + col2 * - 99 * col2 AS col1 FROM tab1 AS cor0
----
-288684
-321651
-912384

query I rowsort
SELECT DISTINCT + col0 + + 60 AS col2 FROM tab2 AS cor0
----
138
139
67

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8943
SELECT col2 + + CAST( col2 + + col2 AS SIGNED ) * - col2 AS col0 FROM tab0 AS cor0
----
-1
-13366
-2145

skipif mysql # not compatible
query I rowsort label-8943
SELECT col2 + + CAST ( col2 + + col2 AS INTEGER ) * - col2 AS col0 FROM tab0 AS cor0
----
-1
-13366
-2145

query I rowsort
SELECT + cor0.col1 * + ( - 98 ) FROM tab1 AS cor0
----
-1274
-2548
-980

query I rowsort
SELECT 44 + tab1.col0 AS col0 FROM tab1
----
108
124
47

query I rowsort
SELECT ALL + 53 * + 93 AS col0 FROM tab1
----
4929
4929
4929

query I rowsort
SELECT DISTINCT - col2 * col0 * - col1 FROM tab0
----
3395
664118
68112

query I rowsort
SELECT DISTINCT + ( tab0.col0 ) AS col0 FROM tab0
----
24
35
89

query I rowsort
SELECT 72 AS col1 FROM tab0 AS cor0
----
72
72
72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 85 col0 FROM tab2, tab0 AS cor0
----
85

onlyif mysql # use DIV operator for integer division
query I rowsort label-8951
SELECT DISTINCT + 10 * col0 DIV col2 AS col0 FROM tab1 AS cor0
----
0
11
8

skipif mysql # not compatible
query I rowsort label-8951
SELECT DISTINCT + 10 * col0 / col2 AS col0 FROM tab1 AS cor0
----
0
11
8

onlyif mysql # use DIV operator for integer division
query I rowsort label-8952
SELECT DISTINCT + + 10 * + col0 * - ( + 80 * col2 ) + + col0 DIV + col1 AS col0 FROM tab2 AS cor0
----
-151200
-1622399
-2401596

skipif mysql # not compatible
query I rowsort label-8952
SELECT DISTINCT + + 10 * + col0 * - ( + 80 * col2 ) + + col0 / + col1 AS col0 FROM tab2 AS cor0
----
-151200
-1622399
-2401596

query I rowsort
SELECT ALL col0 + col0 - - col2 * + 46 AS col0 FROM tab2 AS cor0
----
1256
1352
1906

onlyif mysql # use DIV operator for integer division
query I rowsort label-8954
SELECT ALL + - col0 DIV - col0 AS col0 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8954
SELECT ALL + - col0 / - col0 AS col0 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT 71 * col1 + + 97 * - col2 AS col1 FROM tab1
----
-3392
-4819
-8389

query I rowsort
SELECT + ( cor0.col2 ) * + col0 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT - 97 * - col2 * + 63 FROM tab1 AS cor0
----
329994
348327
586656

query I rowsort
SELECT ALL + 42 + + col2 AS col2 FROM tab1 AS cor0
----
138
96
99

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8959
SELECT ALL + 43 + + col1 * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8959
SELECT ALL + 43 + + col1 * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 * col0 * + col1 + + col1 FROM tab2
----
22848
271577
6758

query I rowsort
SELECT DISTINCT col0 + - col2 * + col1 * col2 AS col1 FROM tab0 AS cor0
----
-611795
-62
-93630

onlyif mysql # use DIV operator for integer division
query I rowsort label-8962
SELECT DISTINCT - col1 + 7 DIV col1 FROM tab0 AS cor0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-8962
SELECT DISTINCT - col1 + 7 / col1 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT ALL + col1 - 65 AS col0 FROM tab0 AS cor0
----
21
26
32

onlyif mysql # use DIV operator for integer division
query I rowsort label-8964
SELECT + col1 DIV - ( cor0.col1 + col1 ) AS col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8964
SELECT + col1 / - ( cor0.col1 + col1 ) AS col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + col2 * - 4 AS col1 FROM tab1 AS cor0
----
-216
-228
-384

query I rowsort
SELECT DISTINCT cor0.col2 + 70 * col1 AS col1 FROM tab0 AS cor0
----
6053
6452
6791

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8967
SELECT - col0 * CAST( NULL AS SIGNED ) + ( col0 ) * col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8967
SELECT - col0 * CAST ( NULL AS INTEGER ) + ( col0 ) * col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8968
SELECT DISTINCT col0 + CAST( + col0 AS SIGNED ) FROM tab1 AS cor0
----
128
160
6

skipif mysql # not compatible
query I rowsort label-8968
SELECT DISTINCT col0 + CAST ( + col0 AS INTEGER ) FROM tab1 AS cor0
----
128
160
6

query I rowsort
SELECT - cor0.col0 + 98 AS col2 FROM tab0 AS cor0
----
63
74
9

query I rowsort
SELECT ALL + - cor0.col1 * cor0.col2 FROM tab2 AS cor0
----
-1534
-646
-837

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8971
SELECT CAST( + 27 AS SIGNED ) FROM tab1 AS cor0
----
27
27
27

skipif mysql # not compatible
query I rowsort label-8971
SELECT CAST ( + 27 AS INTEGER ) FROM tab1 AS cor0
----
27
27
27

query I rowsort
SELECT ALL + ( col2 ) AS col0 FROM tab1 cor0
----
54
57
96

query I rowsort
SELECT - 0 * col1 * col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + col2 + - col2 * + col2 FROM tab0 cor0
----
-1056
-6642
0

query I rowsort
SELECT ALL + - cor0.col0 * col2 FROM tab1 cor0
----
-162
-3648
-7680

query I rowsort
SELECT ALL + 86 * - 78 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to deb6959d7aa929409bcdf6b3203db485

query I rowsort
SELECT 61 * + 50 FROM tab1 AS cor0
----
3050
3050
3050

query I rowsort
SELECT ALL - col2 * + 32 + + tab0.col1 FROM tab0
----
-2533
-970
65

query I rowsort
SELECT ALL 72 * - 94 * col1 AS col1 FROM tab1 AS cor0
----
-175968
-67680
-87984

query I rowsort
SELECT DISTINCT ( - col2 ) + - col1 + + 44 FROM tab2 AS cor0
----
-11
-14
-41

query I rowsort
SELECT DISTINCT - col1 * 62 FROM tab1
----
-1612
-620
-806

query I rowsort
SELECT DISTINCT ( col0 ) * - col1 AS col0 FROM tab0
----
-2064
-3395
-8099

query I rowsort
SELECT DISTINCT + + 12 + 53 * cor0.col2 AS col0 FROM tab0 AS cor0
----
1761
4358
65

query I rowsort
SELECT + col0 * col1 + col0 * - ( + col0 ) AS col1 FROM tab1 AS cor0
----
-3456
-5360
69

query I rowsort
SELECT - 82 * - col2 + cor0.col2 FROM tab2 AS cor0
----
2158
2241
3154

query I rowsort
SELECT - - 36 * cor0.col2 FROM tab0 AS cor0
----
1188
2952
36

query I rowsort
SELECT - ( col2 ) + col0 * col2 FROM tab2 AS cor0
----
162
2002
2964

onlyif mysql # use DIV operator for integer division
query I rowsort label-8988
SELECT 80 DIV - cor0.col1 AS col0 FROM tab1 AS cor0
----
-3
-6
-8

skipif mysql # not compatible
query I rowsort label-8988
SELECT 80 / - cor0.col1 AS col0 FROM tab1 AS cor0
----
-3
-6
-8

query I rowsort
SELECT - col2 + - col2 * ( cor0.col2 ) FROM tab0 AS cor0
----
-1122
-2
-6806

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8990
SELECT + cor0.col0 + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8990
SELECT + cor0.col0 + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8991
SELECT ALL - col1 * + CAST( + col1 AS SIGNED ) FROM tab2 AS cor0
----
-289
-3481
-961

skipif mysql # not compatible
query I rowsort label-8991
SELECT ALL - col1 * + CAST ( + col1 AS INTEGER ) FROM tab2 AS cor0
----
-289
-3481
-961

query I rowsort
SELECT + col1 + col0 * - 5 AS col0 FROM tab1 AS cor0
----
-310
-387
11

query I rowsort
SELECT ALL + + cor0.col1 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775

query I rowsort
SELECT DISTINCT - 47 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-47

query I rowsort
SELECT ALL + - col2 * col2 + - 56 * col1 + - ( col1 ) AS col0 FROM tab2 AS cor0
----
-2413
-2496
-4039

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - col2 * - CAST ( + 48 AS REAL ) AS col1 FROM tab2 cor0
----
1248
1296
1824

query I rowsort
SELECT + col1 + + col0 * 72 AS col2 FROM tab2 AS cor0
----
535
5675
5705

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8998
SELECT DISTINCT col1 / + CAST( NULL AS SIGNED ) AS col2 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8998
SELECT DISTINCT col1 / + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 42 - 89 col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 6942a0d9558277afd0d00408d65cf5aa

query I rowsort
SELECT + 19 AS col1 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 86c53e8567a17c8d91fc5aff119e0498

query I rowsort
SELECT + 78 * + col0 AS col1 FROM tab1 AS cor0
----
234
4992
6240

onlyif mysql # use DIV operator for integer division
query I rowsort label-9002
SELECT - - cor0.col0 DIV - col2 + col0 col2 FROM tab0 cor0
----
0
24
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9002
SELECT - - cor0.col0 / - col2 + col0 col2 FROM tab0 cor0
----
0
24
88

query I rowsort
SELECT col2 + 83 * col1 FROM tab2 AS cor0
----
1449
2600
4923

query I rowsort
SELECT ALL col1 * 18 * - 5 FROM tab1 AS cor0
----
-1170
-2340
-900

query I rowsort
SELECT + + col1 * + 82 AS col2 FROM tab0 AS cor0
----
7052
7462
7954

query I rowsort
SELECT + col0 + 66 AS col0 FROM tab2 AS cor0
----
144
145
73

query I rowsort
SELECT ALL + col2 + - 27 * 45 AS col1 FROM tab0 cor0
----
-1133
-1182
-1214

query I rowsort
SELECT - col0 - + col2 * col2 FROM tab1
----
-2919
-3313
-9296

onlyif mysql # use DIV operator for integer division
query I rowsort label-9009
SELECT DISTINCT - CAST( - col0 AS SIGNED ) + - col1 - col1 DIV + 61 AS col2 FROM tab2
----
-24
19
62

skipif mysql # not compatible
query I rowsort label-9009
SELECT DISTINCT - CAST ( - col0 AS INTEGER ) + - col1 - col1 / + 61 AS col2 FROM tab2
----
-24
19
62

query I rowsort
SELECT - 62 * + col2 AS col0 FROM tab0
----
-2046
-5084
-62

query I rowsort
SELECT DISTINCT ( + col2 + - col0 ) AS col2 FROM tab2
----
-41
-52
20

query I rowsort
SELECT + 5 * col0 FROM tab0
----
120
175
445

onlyif mysql # use DIV operator for integer division
query I rowsort label-9013
SELECT DISTINCT - 48 DIV + col0 AS col2 FROM tab1
----
-16
0

skipif mysql # not compatible
query I rowsort label-9013
SELECT DISTINCT - 48 / + col0 AS col2 FROM tab1
----
-16
0

query I rowsort
SELECT ALL + 26 AS col2 FROM tab0, tab2, tab2 cor0
----
27 values hashing to ede8226bb7e602e221f9d98345b4da37

query I rowsort
SELECT + col1 * 41 + col0 + tab0.col2 * - tab0.col0 AS col1 FROM tab0
----
-3478
2758
3977

query I rowsort
SELECT col1 * col1 + + col0 AS col1 FROM tab2 AS cor0
----
3559
368
968

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 + - col0 + - col2 col0 FROM tab1 AS cor0
----
-185
-256
-60

query I rowsort
SELECT - - 40 + - col2 * + cor0.col1 AS col0 FROM tab2 AS cor0
----
-1494
-606
-797

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - col0 + ( - cor0.col1 ) col2 FROM tab1 AS cor0
----
-35
-4106
-6413

query I rowsort
SELECT + 65 - - col1 FROM tab0 AS cor0
----
151
156
162

query I rowsort
SELECT + col1 + - cor0.col1 AS col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + 76 AS col1 FROM tab0 cor0
----
76

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9023
SELECT + ( cor0.col1 ) * CAST( + col2 AS SIGNED ) FROM tab0 AS cor0
----
2838
7462
97

skipif mysql # not compatible
query I rowsort label-9023
SELECT + ( cor0.col1 ) * CAST ( + col2 AS INTEGER ) FROM tab0 AS cor0
----
2838
7462
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-9024
SELECT ALL 23 DIV + 37 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9024
SELECT ALL 23 / + 37 FROM tab0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-9025
SELECT + + cor0.col2 DIV + col0 + + 53 * - ( col0 * + 61 ) AS col2 FROM tab1 AS cor0
----
-206912
-258639
-9681

skipif mysql # not compatible
query I rowsort label-9025
SELECT + + cor0.col2 / + col0 + + 53 * - ( col0 * + 61 ) AS col2 FROM tab1 AS cor0
----
-206912
-258639
-9681

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9026
SELECT + CAST( cor1.col0 * cor0.col2 AS SIGNED ) AS col1 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to bd0f553652e91081616d79ec94aff1a5

skipif mysql # not compatible
query I rowsort label-9026
SELECT + CAST ( cor1.col0 * cor0.col2 AS INTEGER ) AS col1 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to bd0f553652e91081616d79ec94aff1a5

query I rowsort
SELECT DISTINCT + + 86 AS col1 FROM tab0 cor0
----
86

query I rowsort
SELECT - 82 * col2 FROM tab2 cor0
----
-2132
-2214
-3116

query I rowsort
SELECT + col0 - col0 * - col1 FROM tab0 AS cor0
----
2088
3430
8188

query I rowsort
SELECT DISTINCT - 77 + - col1 FROM tab2 AS cor0
----
-108
-136
-94

onlyif mysql # use DIV operator for integer division
query I rowsort label-9031
SELECT DISTINCT + col0 + + col0 DIV 28 AS col0 FROM tab1 cor0
----
3
66
82

skipif mysql # not compatible
query I rowsort label-9031
SELECT DISTINCT + col0 + + col0 / 28 AS col0 FROM tab1 cor0
----
3
66
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-9032
SELECT - col1 + + col2 DIV - ( - col0 ) AS col1 FROM tab1 AS cor0
----
-10
-12
-8

skipif mysql # not compatible
query I rowsort label-9032
SELECT - col1 + + col2 / - ( - col0 ) AS col1 FROM tab1 AS cor0
----
-10
-12
-8

query I rowsort
SELECT DISTINCT col1 + ( col1 ) * - cor0.col0 AS col0 FROM tab2 AS cor0
----
-1326
-186
-4543

query I rowsort
SELECT DISTINCT + + col0 + ( col2 ) * + cor0.col2 FROM tab0 cor0
----
1113
36
6813

query I rowsort
SELECT ALL - - cor0.col0 + - col1 * 63 FROM tab0 AS cor0
----
-5394
-5644
-6076

query I rowsort
SELECT - col0 + cor0.col2 * col2 * + col0 FROM tab1 AS cor0
----
207872
737200
8745

query I rowsort
SELECT DISTINCT 53 FROM tab2, tab0, tab2 AS cor0
----
53

query I rowsort
SELECT ALL 80 + col1 AS col1 FROM tab0
----
166
171
177

onlyif mysql # use DIV operator for integer division
query I rowsort label-9039
SELECT + 48 DIV tab0.col0 + ( col0 ) + col1 FROM tab0
----
112
133
180

skipif mysql # not compatible
query I rowsort label-9039
SELECT + 48 / tab0.col0 + ( col0 ) + col1 FROM tab0
----
112
133
180

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9040
SELECT ALL CAST( NULL AS SIGNED ) + - col2 AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9040
SELECT ALL CAST ( NULL AS INTEGER ) + - col2 AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - - 7 * - cor0.col1 AS col0 FROM tab1 AS cor0
----
-182
-70
-91

query I rowsort
SELECT DISTINCT - 38 + + cor0.col1 * col2 + - col2 AS col1 FROM tab0 AS cor0
----
2767
58
7342

query I rowsort
SELECT ALL - col2 * col2 - cor0.col1 * + 0 * 7 FROM tab2 AS cor0
----
-1444
-676
-729

query I rowsort
SELECT ALL + + cor0.col0 * + 32 FROM tab2 AS cor0
----
224
2496
2528

query I rowsort
SELECT ALL + col0 * + ( + col0 * - col2 ) FROM tab2 AS cor0
----
-1323
-158184
-237158

query I rowsort
SELECT DISTINCT - - col2 + 20 AS col0 FROM tab2 AS cor0
----
46
47
58

query I rowsort
SELECT ALL - col2 - + cor0.col1 AS col1 FROM tab1 cor0
----
-109
-67
-80

query I rowsort
SELECT - 18 * + col1 FROM tab2 AS cor0
----
-1062
-306
-558

query I rowsort
SELECT ALL 94 + col1 AS col1 FROM tab2 AS cor0
----
111
125
153

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 * - 25 col0 FROM tab2 cor0
----
650
675
950

onlyif mysql # use DIV operator for integer division
query I rowsort label-9051
SELECT - 2 DIV col0 + col1 AS col2 FROM tab1 AS cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-9051
SELECT - 2 / col0 + col1 AS col2 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT ALL - + 7 FROM tab0 AS cor0
----
-7
-7
-7

query I rowsort
SELECT cor0.col0 + - 64 FROM tab1, tab2 AS cor0, tab1 AS cor1, tab2 AS cor2
----
81 values hashing to 8e50c3ea82db3f0187d9a0c82b9b5232

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + cor0.col1 + col2 col2 FROM tab2 AS cor0
----
1381
244
4628

query I rowsort
SELECT DISTINCT 43 FROM tab0, tab2 AS cor0, tab1 AS cor1, tab1 AS cor2
----
43

query I rowsort
SELECT DISTINCT 54 FROM tab0 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab0 AS cor2, tab2 AS cor3
----
54

query I rowsort
SELECT 55 + col2 * col0 AS col1 FROM tab0
----
7353
847
90

query I rowsort
SELECT + tab0.col0 + ( - tab0.col0 ) + 12 FROM tab0, tab1, tab1 cor0
----
27 values hashing to 702478c53caf2f7ebb9fff96d800f5a6

query I rowsort
SELECT + tab0.col0 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT DISTINCT + cor0.col0 + 19 * col1 + col0 AS col1 FROM tab2 AS cor0
----
1277
481
603

query I rowsort
SELECT DISTINCT + col0 - 64 FROM tab0 AS cor0
----
-29
-40
25

onlyif mysql # use DIV operator for integer division
query I rowsort label-9062
SELECT ( col0 ) + ( tab1.col2 ) DIV col0 col2 FROM tab1
----
21
64
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9062
SELECT ( col0 ) + ( tab1.col2 ) / col0 col2 FROM tab1
----
21
64
81

query I rowsort
SELECT + cor0.col1 + + ( 65 ) * + cor0.col1 FROM tab0 AS cor0
----
5676
6006
6402

query I rowsort
SELECT col0 + + tab2.col1 - 26 FROM tab2
----
111
12
70

query I rowsort
SELECT DISTINCT + col1 * + col1 + col0 FROM tab2
----
3559
368
968

query I rowsort
SELECT - tab2.col0 * col2 + - col0 + + 71 AS col1 FROM tab2
----
-125
-2035
-3010

query I rowsort
SELECT - col1 * - col0 + - 46 AS col0 FROM tab0 AS cor0
----
2018
3349
8053

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9068
SELECT - col2 * - CAST( NULL AS SIGNED ) + - cor0.col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9068
SELECT - col2 * - CAST ( NULL AS INTEGER ) + - cor0.col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 * 21 + col2 FROM tab2 AS cor0
----
572
594
836

onlyif mysql # use DIV operator for integer division
query I rowsort label-9070
SELECT col2 * col1 + + 58 * col1 DIV - CAST( + col1 AS SIGNED ) FROM tab1 cor0
----
1190
1346
512

skipif mysql # not compatible
query I rowsort label-9070
SELECT col2 * col1 + + 58 * col1 / - CAST ( + col1 AS INTEGER ) FROM tab1 cor0
----
1190
1346
512

query I rowsort
SELECT + 26 * - col2 FROM tab2
----
-676
-702
-988

query I rowsort
SELECT - 24 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to f2e40f6e5cdbc2877843191cb261975f

query I rowsort
SELECT - 86 + + col2 FROM tab0
----
-4
-53
-85

query I rowsort
SELECT DISTINCT - col2 * tab1.col1 + - tab1.col1 * 24 * col1 AS col2 FROM tab1
----
-17628
-2970
-5304

query I rowsort
SELECT DISTINCT 62 + col2 FROM tab1
----
116
119
158

query I rowsort
SELECT + col1 * + col2 + 40 FROM tab2 AS cor0
----
1574
686
877

query I rowsort
SELECT ALL - col1 + + col1 * 64 AS col1 FROM tab0 AS cor0
----
5418
5733
6111

onlyif mysql # use DIV operator for integer division
query I rowsort label-9078
SELECT ALL + + col1 DIV col0 + - col0 + col1 AS col1 FROM tab2 cor0
----
-19
-62
28

skipif mysql # not compatible
query I rowsort label-9078
SELECT ALL + + col1 / col0 + - col0 + col1 AS col1 FROM tab2 cor0
----
-19
-62
28

query I rowsort
SELECT DISTINCT - - col2 + 28 + + 65 AS col2 FROM tab0 AS cor0
----
126
175
94

query I rowsort
SELECT ALL + + col2 - ( + col1 * col2 ) AS col2 FROM tab2 AS cor0
----
-1508
-608
-810

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 * + col1 - 15 * col2 col0 FROM tab0 AS cor0
----
6901
7051
9394

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9082
SELECT ALL + col0 * + CAST( NULL AS SIGNED ) * tab2.col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9082
SELECT ALL + col0 * + CAST ( NULL AS INTEGER ) * tab2.col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - + col1 + col1 * col0 AS col2 FROM tab2 AS cor0
----
1326
186
4543

query I rowsort
SELECT col2 * col2 - + col1 FROM tab2 AS cor0
----
1427
617
698

query I rowsort
SELECT col1 * - 56 * col2 FROM tab2
----
-36176
-46872
-85904

query I rowsort
SELECT DISTINCT col2 * 58 * ( col0 ) AS col2 FROM tab0
----
2030
423284
45936

query I rowsort
SELECT + cor0.col1 * - col0 + + col0 FROM tab0 AS cor0
----
-2040
-3360
-8010

query I rowsort
SELECT 74 + + ( col1 ) * + col2 AS col0 FROM tab2 AS cor0
----
1608
720
911

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9089
SELECT - CAST( NULL AS SIGNED ) * + col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9089
SELECT - CAST ( NULL AS INTEGER ) * + col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - col2 * ( - col2 ) + - col2 AS col2 FROM tab2 AS cor0
----
-1482
-702
-756

query I rowsort
SELECT ( 11 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 35 * + cor0.col2 col0 FROM tab1 AS cor0
----
-1890
-1995
-3360

query I rowsort
SELECT col1 + cor0.col0 * col1 AS col2 FROM tab0 AS cor0
----
2150
3492
8190

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9094
SELECT - col1 * + col2 + CAST( col2 AS SIGNED ) * - cor0.col0 FROM tab2 AS cor0
----
-1026
-3562
-3648

skipif mysql # not compatible
query I rowsort label-9094
SELECT - col1 * + col2 + CAST ( col2 AS INTEGER ) * - cor0.col0 FROM tab2 AS cor0
----
-1026
-3562
-3648

query I rowsort
SELECT ALL - 72 * cor0.col1 FROM tab0 cor0
----
-6192
-6552
-6984

onlyif mysql # use DIV operator for integer division
query I rowsort label-9096
SELECT - col1 * col1 DIV - col1 AS col0 FROM tab1 cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-9096
SELECT - col1 * col1 / - col1 AS col0 FROM tab1 cor0
----
10
13
26

query I rowsort
SELECT col1 * ( 16 ) + + col0 * + col2 FROM tab1 AS cor0
----
3808
578
7888

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9098
SELECT - - col1 / - CAST( NULL AS SIGNED ) + cor0.col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9098
SELECT - - col1 / - CAST ( NULL AS INTEGER ) + cor0.col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 76 FROM tab1, tab2 AS cor0, tab1 cor1
----
27 values hashing to d90b4aa5f03b4a149aa925c4a88acca0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 98 * 72 col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 07991f3c4cd1a1298b8273c13b13f645

query I rowsort
SELECT - col0 + + 29 AS col0 FROM tab1 cor0
----
-35
-51
26

query I rowsort
SELECT DISTINCT + col0 + + cor0.col0 * col1 * col1 AS col0 FROM tab0 AS cor0
----
177528
329350
737098

query I rowsort
SELECT + col1 * - cor0.col0 + cor0.col1 FROM tab0 AS cor0
----
-1978
-3298
-8008

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col0 + - col2 col2 FROM tab0 AS cor0
----
-171
-36
-57

onlyif mysql # use DIV operator for integer division
query I rowsort label-9105
SELECT - - col1 * cor0.col2 + - col1 * - col1 DIV - col1 - + cor0.col2 AS col1 FROM tab0 AS cor0
----
-1
2719
7289

skipif mysql # not compatible
query I rowsort label-9105
SELECT - - col1 * cor0.col2 + - col1 * - col1 / - col1 - + cor0.col2 AS col1 FROM tab0 AS cor0
----
-1
2719
7289

query I rowsort
SELECT DISTINCT col1 * + col2 * col0 + - col2 AS col1 FROM tab0 AS cor0
----
3394
664036
68079

query I rowsort
SELECT DISTINCT col2 - tab0.col2 * col0 * - col1 AS col2 FROM tab0
----
3396
664200
68145

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab0.col0 - col2 col0 FROM tab0
----
-171
-36
-57

query I rowsort
SELECT ALL col2 * + col2 * + tab0.col0 + - col2 * col2 FROM tab0
----
25047
34
591712

onlyif mysql # use DIV operator for integer division
query I rowsort label-9110
SELECT + col2 DIV col2 - tab1.col2 DIV col1 AS col0 FROM tab1
----
-1
-4
-6

skipif mysql # not compatible
query I rowsort label-9110
SELECT + col2 / col2 - tab1.col2 / col1 AS col0 FROM tab1
----
-1
-4
-6

onlyif mysql # use DIV operator for integer division
query I rowsort label-9111
SELECT - col1 - col0 DIV col2 AS col2 FROM tab0 WHERE + col2 > - tab0.col1 + col2
----
-132
-86
-92

skipif mysql # not compatible
query I rowsort label-9111
SELECT - col1 - col0 / col2 AS col2 FROM tab0 WHERE + col2 > - tab0.col1 + col2
----
-132
-86
-92

query I rowsort
SELECT - col1 * - cor0.col0 + + cor0.col1 AS col0 FROM tab0 AS cor0
----
2150
3492
8190

query I rowsort
SELECT + col1 * col1 + - cor0.col0 AS col1 FROM tab2 AS cor0
----
210
3403
954

query I rowsort
SELECT DISTINCT tab0.col2 + col1 * col1 FROM tab0
----
7429
8363
9410

query I rowsort
SELECT - ( tab0.col0 + + col1 * - tab0.col2 ) AS col2 FROM tab0
----
2814
62
7373

query I rowsort
SELECT DISTINCT - col0 * col0 - - col2 AS col1 FROM tab1
----
-4039
-6304
45

query I rowsort
SELECT ALL col2 * - col1 - col1 * col2 AS col2 FROM tab1
----
-1140
-2496
-2808

query I rowsort
SELECT DISTINCT tab2.col2 - + col2 AS col2 FROM tab2
----
0

query I rowsort
SELECT DISTINCT - col1 * col1 + + col0 FROM tab0
----
-7372
-8192
-9374

query I rowsort
SELECT - col2 + - col1 AS col2 FROM tab2 WHERE NULL = + col1 / + col2
----

query I rowsort
SELECT ALL col0 + + col0 * + tab0.col1 AS col0 FROM tab0
----
2088
3430
8188

query I rowsort
SELECT col1 * col2 FROM tab0 WHERE ( NULL ) IN ( col2 * + col2 + col0 * - col1 * col1 )
----

query I rowsort
SELECT ALL - tab1.col1 * - col0 FROM tab1 WHERE NOT NULL NOT IN ( col0 * col2 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL > col1 - + col2 / col2
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-9125
SELECT - col1 DIV col2 + + col2 + + col2 AS col1 FROM tab0
----
-95
163
64

skipif mysql # not compatible
query I rowsort label-9125
SELECT - col1 / col2 + + col2 + + col2 AS col1 FROM tab0
----
-95
163
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 - tab0.col0 col0 FROM tab0
----
-110
-132
-180

query I rowsort
SELECT ALL - ( col0 ) * cor0.col1 + - col0 * col2 FROM tab0 cor0
----
-15397
-2856
-3430

query I rowsort
SELECT + 87 * - col1 + + 78 FROM tab2 AS cor0
----
-1401
-2619
-5055

onlyif mysql # use DIV operator for integer division
query I rowsort label-9129
SELECT DISTINCT + + col1 DIV + cor0.col0 + + cor0.col2 * col1 col1 FROM tab2 cor0
----
1534
646
841

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9129
SELECT DISTINCT + + col1 / + cor0.col0 + + cor0.col2 * col1 col1 FROM tab2 cor0
----
1534
646
841

query I rowsort
SELECT ALL + col2 + - col0 + - col0 * 29 AS col1 FROM tab2
----
-183
-2314
-2332

query I rowsort
SELECT + + cor0.col1 * - col0 - col0 * col2 AS col2 FROM tab0 AS cor0
----
-15397
-2856
-3430

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 27 col2 FROM tab0, tab0 cor0, tab2 AS cor1
----
27 values hashing to 1a3cef5c33b8f87ffeded378fd207753

query I rowsort
SELECT tab2.col2 + - col1 * - col1 * col2 AS col1 FROM tab2
----
11020
25974
90532

onlyif mysql # use DIV operator for integer division
query I rowsort label-9134
SELECT - col1 + + col2 - - tab0.col2 * tab0.col0 DIV + col0 FROM tab0
----
-20
-95
73

skipif mysql # not compatible
query I rowsort label-9134
SELECT - col1 + + col2 - - tab0.col2 * tab0.col0 / + col0 FROM tab0
----
-20
-95
73

query I rowsort
SELECT DISTINCT + col2 + col0 * - col1 * col2 AS col0 FROM tab2
----
-119626
-50996
-5832

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT DISTINCT - col0 * + col1 FROM tab1 WHERE NOT NULL <> NULL
----

query I rowsort
SELECT - col2 + - col1 * col1 + + col2 FROM tab1
----
-100
-169
-676

onlyif mysql # use DIV operator for integer division
query I rowsort label-9139
SELECT ALL + col0 + + col2 DIV - cor0.col1 FROM tab1 AS cor0
----
1
59
73

skipif mysql # not compatible
query I rowsort label-9139
SELECT ALL + col0 + + col2 / - cor0.col1 FROM tab1 AS cor0
----
1
59
73

onlyif mysql # use DIV operator for integer division
query I rowsort label-9140
SELECT - col0 + col2 DIV - col1 AS col2 FROM tab1 AS cor0
----
-5
-69
-87

skipif mysql # not compatible
query I rowsort label-9140
SELECT - col0 + col2 / - col1 AS col2 FROM tab1 AS cor0
----
-5
-69
-87

query I rowsort
SELECT DISTINCT col1 + cor0.col0 * cor0.col0 AS col1 FROM tab2 AS cor0
----
6143
6258
80

query I rowsort
SELECT ALL col1 * col0 * + col1 + + col2 FROM tab1 AS cor0
----
13616
2082
6457

onlyif mysql # use DIV operator for integer division
query I rowsort label-9143
SELECT - col2 DIV - col1 + - cor0.col0 * + col1 FROM tab2 AS cor0
----
-1341
-217
-4602

skipif mysql # not compatible
query I rowsort label-9143
SELECT - col2 / - col1 + - cor0.col0 * + col1 FROM tab2 AS cor0
----
-1341
-217
-4602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - tab1.col2 col1 FROM tab1
----
-28
-47
-83

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col1 * col1 IN ( tab1.col0 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

query I rowsort
SELECT DISTINCT tab2.col2 FROM tab2 WHERE NULL BETWEEN + col0 AND NULL
----

query I rowsort
SELECT ALL - col2 - col1 AS col2 FROM tab2
----
-55
-58
-85

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NULL ) = NULL
----

query I rowsort
SELECT - col2 + tab0.col1 * - col1 AS col2 FROM tab0
----
-7429
-8363
-9410

query I rowsort
SELECT ALL - col1 - col0 * + col2 FROM tab1
----
-188
-3658
-7693

query I rowsort
SELECT tab0.col1 + col2 AS col2 FROM tab0 WHERE NULL NOT BETWEEN + col0 / col0 AND ( NULL )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-9152
SELECT + col1 + + col1 + col2 DIV col1 AS col0 FROM tab2
----
118
36
62

skipif mysql # not compatible
query I rowsort label-9152
SELECT + col1 + + col1 + col2 / col1 AS col0 FROM tab2
----
118
36
62

query I rowsort
SELECT 0 * - 8 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

query I rowsort
SELECT + 94 + col0 AS col2 FROM tab0 AS cor0
----
118
129
183

query I rowsort
SELECT + - 14 + - col2 FROM tab1 AS cor0
----
-110
-68
-71

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 - + col1 + col1 * col1 FROM tab1 AS cor0
----
156
650
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 60 col1 FROM tab1 AS cor0
----
60
60
60

onlyif mysql # use DIV operator for integer division
query I rowsort label-9159
SELECT ALL + - ( cor0.col2 ) + 77 DIV - col1 FROM tab1 AS cor0
----
-101
-56
-64

skipif mysql # not compatible
query I rowsort label-9159
SELECT ALL + - ( cor0.col2 ) + 77 / - col1 FROM tab1 AS cor0
----
-101
-56
-64

query I rowsort
SELECT DISTINCT cor0.col1 + + col2 * col2 FROM tab0 AS cor0
----
1175
6815
98

query I rowsort
SELECT - - col2 + cor0.col0 AS col2 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT col1 * 38 * - col1 AS col2 FROM tab1 cor0
----
-25688
-3800
-6422

query I rowsort
SELECT DISTINCT - col2 + col2 * ( + 54 ) AS col1 FROM tab1
----
2862
3021
5088

query I rowsort
SELECT 70 + + col1 * col0 * col0 AS col2 FROM tab2
----
106167
1589
359026

query I rowsort
SELECT DISTINCT + + 46 FROM tab0 cor0
----
46

query I rowsort
SELECT ALL - ( 65 ) + - col0 FROM tab0 AS cor0
----
-100
-154
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 22 * col2 + - col1 col2 FROM tab2 AS cor0
----
513
563
819

query I rowsort
SELECT DISTINCT + 38 * - 56 FROM tab0 AS cor0
----
-2128

onlyif mysql # use DIV operator for integer division
query I rowsort label-9169
SELECT ALL + + col2 DIV - col2 + + col1 + - col1 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9169
SELECT ALL + + col2 / - col2 + + col1 + - col1 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT - + col0 * - col1 AS col2 FROM tab0 cor0
----
2064
3395
8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * ( col2 ) + ( - 89 ) * + col0 + cor0.col2 col2 FROM tab0 AS cor0
----
-3017
-377
735

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 * + 60 + - col1 + col0 col2 FROM tab2 cor0
----
-444
-4661
-4678

query I rowsort
SELECT DISTINCT 16 * cor0.col1 FROM tab0 cor0
----
1376
1456
1552

onlyif mysql # use DIV operator for integer division
query I rowsort label-9174
SELECT DISTINCT col2 * col2 + - cor0.col2 DIV - col1 + col0 * col0 FROM tab1 AS cor0
----
15623
2927
7350

skipif mysql # not compatible
query I rowsort label-9174
SELECT DISTINCT col2 * col2 + - cor0.col2 / - col1 + col0 * col0 FROM tab1 AS cor0
----
15623
2927
7350

query I rowsort
SELECT + - ( col2 ) + + cor0.col0 FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT ALL tab1.col1 * - 7 FROM tab1
----
-182
-70
-91

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9177
SELECT ALL + CAST( NULL AS SIGNED ) + 66 * - col2 * - col0 + 77 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9177
SELECT ALL + CAST ( NULL AS INTEGER ) + 66 * - col2 * - col0 + 77 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT 18 * col0 + - col2 * - 79 * - 56 FROM tab2 AS cor0
----
-113620
-119322
-166690

onlyif mysql # use DIV operator for integer division
query I rowsort label-9179
SELECT DISTINCT + - col0 + + col2 DIV + col2 AS col1 FROM tab0 AS cor0
----
-23
-34
-88

skipif mysql # not compatible
query I rowsort label-9179
SELECT DISTINCT + - col0 + + col2 / + col2 AS col1 FROM tab0 AS cor0
----
-23
-34
-88

query I rowsort
SELECT DISTINCT - 70 + 16 AS col1 FROM tab1 AS cor0
----
-54

query I rowsort
SELECT ALL - + col2 * + col1 - col0 FROM tab2 cor0
----
-1612
-725
-844

query I rowsort
SELECT DISTINCT + ( + col2 ) AS col1 FROM tab0 AS cor0
----
1
33
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-9183
SELECT - col0 DIV col1 + - cor0.col2 * + col0 FROM tab0 AS cor0
----
-35
-7298
-792

skipif mysql # not compatible
query I rowsort label-9183
SELECT - col0 / col1 + - cor0.col2 * + col0 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT DISTINCT col1 + - col1 * - col1 FROM tab2
----
306
3540
992

query I rowsort
SELECT - cor0.col1 - - col0 AS col0 FROM tab0 AS cor0
----
-2
-62
-62

query I rowsort
SELECT DISTINCT - 19 + - col2 * - tab2.col2 AS col1 FROM tab2
----
1425
657
710

query I rowsort
SELECT - - 1 FROM tab2 cor0
----
1
1
1

query I rowsort
SELECT + col0 - - col1 * col2 AS col0 FROM tab0 AS cor0
----
132
2862
7551

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 76 + col2 col1 FROM tab2 AS cor0
----
102
103
114

query I rowsort
SELECT 68 FROM tab0, tab0 cor0
----
9 values hashing to 599bee15ac4cc39b859854e07dfe7990

query I rowsort
SELECT ALL - 56 * 92 * - col2 AS col2 FROM tab2
----
133952
139104
195776

query I rowsort
SELECT - 51 + + col1 * + col1 AS col0 FROM tab0
----
7345
8230
9358

query I rowsort
SELECT ALL + 98 * tab1.col0 * - col0 AS col2 FROM tab1
----
-401408
-627200
-882

query I rowsort
SELECT + col1 + col0 * + col0 AS col2 FROM tab2 AS cor0
----
6143
6258
80

query I rowsort
SELECT 9 + cor0.col1 * - col2 FROM tab2 AS cor0
----
-1525
-637
-828

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( + col1 ) + 32 col2 FROM tab1 cor0
----
42
45
58

query I rowsort
SELECT DISTINCT + col1 + 68 FROM tab0 AS cor0
----
154
159
165

query I rowsort
SELECT ALL + col2 * + 57 + + col0 FROM tab1 AS cor0
----
3081
3313
5552

onlyif mysql # use DIV operator for integer division
query I rowsort label-9199
SELECT DISTINCT + col0 DIV CAST( col1 AS SIGNED ) FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-9199
SELECT DISTINCT + col0 / CAST ( col1 AS INTEGER ) FROM tab0 cor0
----
0

query I rowsort
SELECT - col1 * - ( - cor0.col1 ) AS col2 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT ALL - ( 97 ) * col2 AS col2 FROM tab0 AS cor0
----
-3201
-7954
-97

query I rowsort
SELECT DISTINCT 87 * 90 + + col2 * - col0 + + 3 FROM tab1 AS cor0
----
153
4185
7671

query I rowsort
SELECT + - 84 AS col2 FROM tab1 AS cor0
----
-84
-84
-84

query I rowsort
SELECT DISTINCT - + col2 * - col2 + + cor0.col0 FROM tab2 cor0
----
1523
736
754

query I rowsort
SELECT ALL + + col0 + 88 AS col0 FROM tab0 AS cor0
----
112
123
177

query I rowsort
SELECT ALL col2 * col1 * col1 AS col1 FROM tab0 AS cor0
----
244068
679042
9409

query I rowsort
SELECT ALL - + col2 * ( - cor0.col1 ) FROM tab1 AS cor0
----
1248
1404
570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * - cor0.col0 * 70 col2 FROM tab1 AS cor0
----
-44800
-5460
-72800

onlyif mysql # use DIV operator for integer division
query I rowsort label-9209
SELECT DISTINCT + col0 * + 37 + ( - col1 ) * col0 DIV col1 AS col1 FROM tab0 AS cor0
----
1260
3204
864

skipif mysql # not compatible
query I rowsort label-9209
SELECT DISTINCT + col0 * + 37 + ( - col1 ) * col0 / col1 AS col1 FROM tab0 AS cor0
----
1260
3204
864

query I rowsort
SELECT ALL + cor0.col0 + 50 AS col2 FROM tab0 AS cor0
----
139
74
85

query I rowsort
SELECT + col0 + + 23 AS col0 FROM tab0 AS cor0
----
112
47
58

query I rowsort
SELECT + col0 + - 34 * - col1 FROM tab0 AS cor0
----
2948
3183
3333

query I rowsort
SELECT ALL + 53 * col2 * col2 + + 26 AS col2 FROM tab2 AS cor0
----
35854
38663
76558

query I rowsort
SELECT ALL 99 * - 46 FROM tab1 AS cor0
----
-4554
-4554
-4554

onlyif mysql # use DIV operator for integer division
query I rowsort label-9215
SELECT DISTINCT - col2 + col2 DIV - cor0.col1 FROM tab0 cor0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-9215
SELECT DISTINCT - col2 + col2 / - cor0.col1 FROM tab0 cor0
----
-1
-33
-82

query I rowsort
SELECT - + ( - cor0.col2 ) * - 1 FROM tab0 AS cor0
----
-1
-33
-82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9217
SELECT DISTINCT + col1 * col1 + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9217
SELECT DISTINCT + col1 * col1 + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - - cor0.col0 + - col0 * col1 AS col0 FROM tab1 AS cor0
----
-576
-75
-960

query I rowsort
SELECT - 15 AS col1 FROM tab0 cor0
----
-15
-15
-15

query I rowsort
SELECT - - 12 * col2 AS col0 FROM tab0 AS cor0
----
12
396
984

query I rowsort
SELECT - + cor0.col0 + - cor0.col2 AS col0 FROM tab1 AS cor0
----
-121
-176
-57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col1 * - 99 ) + + col0 col1 FROM tab0
----
-8490
-8920
-9568

query I rowsort
SELECT + + cor0.col0 + cor0.col2 AS col1 FROM tab0 AS cor0
----
171
36
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-9224
SELECT + 9 DIV col0 + + 7 AS col0 FROM tab1
----
10
7
7

skipif mysql # not compatible
query I rowsort label-9224
SELECT + 9 / col0 + + 7 AS col0 FROM tab1
----
10
7
7

query I rowsort
SELECT - col1 - + tab0.col1 AS col1 FROM tab0
----
-172
-182
-194

query I rowsort
SELECT - col1 + col2 * + col1 AS col2 FROM tab0 cor0
----
0
2752
7371

onlyif mysql # use DIV operator for integer division
query I rowsort label-9227
SELECT col2 + - 60 DIV - col1 FROM tab1
----
100
56
63

skipif mysql # not compatible
query I rowsort label-9227
SELECT col2 + - 60 / - col1 FROM tab1
----
100
56
63

query I rowsort
SELECT ALL - + col1 - 15 AS col2 FROM tab0 AS cor0
----
-101
-106
-112

query I rowsort
SELECT DISTINCT + col2 * + 90 - col2 * col0 FROM tab2 cor0
----
2241
312
418

query I rowsort
SELECT - col0 * 12 + + col1 FROM tab1
----
-10
-758
-947

query I rowsort
SELECT DISTINCT - 80 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
-80

query I rowsort
SELECT - col1 + + ( col2 ) * col2 AS col2 FROM tab1
----
2890
3239
9203

query I rowsort
SELECT ALL + - col2 * 82 FROM tab2 AS cor0
----
-2132
-2214
-3116

query I rowsort
SELECT DISTINCT - col0 * col0 + 97 FROM tab0 cor0
----
-1128
-479
-7824

query I rowsort
SELECT DISTINCT + col1 - - col0 * - col1 FROM tab2 cor0
----
-1326
-186
-4543

query I rowsort
SELECT + ( - col1 ) * - col1 + col0 + + ( col0 ) AS col1 FROM tab2
----
3637
447
975

query I rowsort
SELECT DISTINCT 80 * col0 + + col1 * - 29 + tab0.col0 FROM tab0
----
-550
22
4570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col0 ) + tab0.col2 col0 FROM tab0
----
171
36
57

query I rowsort
SELECT + col1 * tab2.col0 - + col1 * col1 * col1 AS col0 FROM tab2
----
-200777
-29574
-3570

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9240
SELECT DISTINCT CAST( NULL AS SIGNED ) + col1 / - col1 AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9240
SELECT DISTINCT CAST ( NULL AS INTEGER ) + col1 / - col1 AS col0 FROM tab1
----
NULL

query I rowsort
SELECT ALL + 87 FROM tab1, tab2, tab2 AS cor0, tab0
----
81 values hashing to 969f31ae779866644763e8a07f1ec501

query I rowsort
SELECT ALL - cor0.col1 * col2 * cor0.col2 AS col0 FROM tab0 AS cor0
----
-611884
-93654
-97

query I rowsort
SELECT col0 * - col1 + cor0.col0 + 48 FROM tab2 AS cor0
----
-1216
-162
-4476

query I rowsort
SELECT DISTINCT - + ( - col0 ) * col1 AS col0 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT ALL - - col0 * - col1 FROM tab2 cor0
----
-1343
-217
-4602

query I rowsort
SELECT DISTINCT + cor0.col2 * + cor0.col0 AS col0 FROM tab1 AS cor0
----
162
3648
7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-9247
SELECT col2 DIV - cor0.col0 FROM tab2 AS cor0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-9247
SELECT col2 / - cor0.col0 FROM tab2 AS cor0
----
-3
0
0

query I rowsort
SELECT DISTINCT - col0 * col0 * + col2 + + 98 AS col1 FROM tab2 AS cor0
----
-1225
-158086
-237060

query I rowsort
SELECT DISTINCT + cor0.col0 + - col0 * 17 AS col0 FROM tab1 AS cor0
----
-1024
-1280
-48

query I rowsort
SELECT ALL 75 * col1 - + col2 FROM tab0 cor0
----
6417
6743
7274

onlyif mysql # use DIV operator for integer division
query I rowsort label-9251
SELECT ALL + 77 + col1 DIV col0 - + col2 * col2 FROM tab2 AS cor0
----
-1367
-599
-648

skipif mysql # not compatible
query I rowsort label-9251
SELECT ALL + 77 + col1 / col0 - + col2 * col2 FROM tab2 AS cor0
----
-1367
-599
-648

query I rowsort
SELECT DISTINCT + col1 * 99 AS col2 FROM tab2
----
1683
3069
5841

query I rowsort
SELECT 79 * col2 + + col1 + cor0.col1 FROM tab2 AS cor0
----
2172
2195
3036

query I rowsort
SELECT ALL + 0 * col2 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - - col2 * col1 + 56 FROM tab1 AS cor0
----
1304
1460
626

query I rowsort
SELECT - col0 + col2 + - ( col2 ) * + col2 AS col2 FROM tab2 AS cor0
----
-1485
-709
-728

onlyif mysql # use DIV operator for integer division
query I rowsort label-9257
SELECT col2 * col2 * - col0 + + col2 DIV col0 + + col0 * col1 AS col2 FROM tab2
----
-112733
-48126
-4883

skipif mysql # not compatible
query I rowsort label-9257
SELECT col2 * col2 * - col0 + + col2 / col0 + + col0 * col1 AS col2 FROM tab2
----
-112733
-48126
-4883

onlyif mysql # use DIV operator for integer division
query I rowsort label-9258
SELECT DISTINCT + col2 DIV - 14 FROM tab2 cor0
----
-1
-2

skipif mysql # not compatible
query I rowsort label-9258
SELECT DISTINCT + col2 / - 14 FROM tab2 cor0
----
-1
-2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * ( 53 ) col2 FROM tab0 AS cor0
----
-1272
-1855
-4717

onlyif mysql # use DIV operator for integer division
query I rowsort label-9260
SELECT DISTINCT + col0 + - col1 DIV + col1 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-9260
SELECT DISTINCT + col0 + - col1 / + col1 col1 FROM tab2 AS cor0
----
6
77
78

query I rowsort
SELECT col1 * 8 FROM tab1
----
104
208
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9262
SELECT + CAST( col0 AS SIGNED ) * - col2 + - col2 FROM tab1 AS cor0
----
-216
-3705
-7776

skipif mysql # not compatible
query I rowsort label-9262
SELECT + CAST ( col0 AS INTEGER ) * - col2 + - col2 FROM tab1 AS cor0
----
-216
-3705
-7776

query I rowsort
SELECT col1 + 81 FROM tab0 AS cor0
----
167
172
178

onlyif mysql # use DIV operator for integer division
query I rowsort label-9264
SELECT + tab1.col0 DIV - 63 AS col1 FROM tab1, tab1 cor0, tab2 AS cor1
----
27 values hashing to d1b3390bf3c224e527bf68f43fea665f

skipif mysql # not compatible
query I rowsort label-9264
SELECT + tab1.col0 / - 63 AS col1 FROM tab1, tab1 cor0, tab2 AS cor1
----
27 values hashing to d1b3390bf3c224e527bf68f43fea665f

onlyif mysql # use DIV operator for integer division
query I rowsort label-9265
SELECT col2 * col0 DIV 4 + 31 FROM tab1
----
1951
71
943

skipif mysql # not compatible
query I rowsort label-9265
SELECT col2 * col0 / 4 + 31 FROM tab1
----
1951
71
943

query I rowsort
SELECT DISTINCT + cor0.col0 * - 95 AS col0 FROM tab2, tab2 AS cor0, tab2 cor1
----
-665
-7410
-7505

query I rowsort
SELECT ALL - ( - col0 ) * + ( + cor0.col2 ) + col1 FROM tab1 cor0
----
188
3658
7693

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9268
SELECT + col2 * CAST( NULL AS SIGNED ) col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9268
SELECT + col2 * CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9269
SELECT DISTINCT + col1 * + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9269
SELECT DISTINCT + col1 * + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9270
SELECT - - col1 + + CAST( - col0 AS SIGNED ) * col2 FROM tab2 AS cor0
----
-158
-1969
-2985

skipif mysql # not compatible
query I rowsort label-9270
SELECT - - col1 + + CAST ( - col0 AS INTEGER ) * col2 FROM tab2 AS cor0
----
-158
-1969
-2985

query I rowsort
SELECT + ( - col2 * - 65 + + col0 ) AS col2 FROM tab1
----
3513
3769
6320

query I rowsort
SELECT - col2 * 10 AS col1 FROM tab1 AS cor0
----
-540
-570
-960

query I rowsort
SELECT cor0.col2 + - 26 FROM tab0 cor0
----
-25
56
7

query I rowsort
SELECT + ( - col0 ) * col2 FROM tab1 cor0
----
-162
-3648
-7680

query I rowsort
SELECT DISTINCT ( + col0 ) * cor0.col1 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT cor0.col1 * - ( + col0 * 5 + - cor0.col0 ) FROM tab1 AS cor0
----
-2560
-312
-4160

query I rowsort
SELECT cor0.col0 * col2 * col2 AS col0 FROM tab2 AS cor0
----
114076
5103
52728

query I rowsort
SELECT + 68 * cor0.col2 + - col2 AS col1 FROM tab0 cor0
----
2211
5494
67

query I rowsort
SELECT col2 * + col2 + cor0.col2 FROM tab1 AS cor0
----
2970
3306
9312

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 * - col1 col1 FROM tab2 cor0
----
1534
646
837

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * col0 + - col1 col1 FROM tab2 AS cor0
----
-1360
-248
-4661

query I rowsort
SELECT - + 6 + + col2 AS col0 FROM tab0 AS cor0
----
-5
27
76

query I rowsort
SELECT 2 * tab0.col0 AS col1 FROM tab0
----
178
48
70

query I rowsort
SELECT - 84 AS col1 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 02f1688b8610806ca28739b1735f6ae4

onlyif mysql # use DIV operator for integer division
query I rowsort label-9285
SELECT + col2 DIV + col1 + ( - col1 ) FROM tab1 AS cor0
----
-24
-5
-6

skipif mysql # not compatible
query I rowsort label-9285
SELECT + col2 / + col1 + ( - col1 ) FROM tab1 AS cor0
----
-24
-5
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 + col2 col0 FROM tab2 cor0
----
-41
-52
20

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 98 col0 FROM tab1
----
-98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9288
SELECT DISTINCT ( col2 + col0 ) * CAST( - col2 + col1 AS SIGNED ) AS col2 FROM tab1
----
-14608
-1596
-5687

skipif mysql # not compatible
query I rowsort label-9288
SELECT DISTINCT ( col2 + col0 ) * CAST ( - col2 + col1 AS INTEGER ) AS col2 FROM tab1
----
-14608
-1596
-5687

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 11 * col1 col0 FROM tab2 AS cor0
----
187
341
649

query I rowsort
SELECT - col2 + 79 AS col0 FROM tab0
----
-3
46
78

query I rowsort
SELECT ALL - 65 AS col0 FROM tab2, tab0 cor0
----
9 values hashing to 744531575c1b6461ed2916d4940e4d23

query I rowsort
SELECT + - 32 * col2 AS col1 FROM tab2 AS cor0
----
-1216
-832
-864

onlyif mysql # use DIV operator for integer division
query I rowsort label-9293
SELECT DISTINCT - + col2 * col1 + col0 DIV + 15 AS col1 FROM tab0 AS cor0
----
-2837
-7457
-95

skipif mysql # not compatible
query I rowsort label-9293
SELECT DISTINCT - + col2 * col1 + col0 / + 15 AS col1 FROM tab0 AS cor0
----
-2837
-7457
-95

query I rowsort
SELECT ALL - col1 * col2 + - col2 + col2 * + col1 AS col1 FROM tab0 AS cor0
----
-1
-33
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( cor0.col2 ) col1 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT + ( - cor0.col1 ) FROM tab0 cor0
----
-86
-91
-97

query I rowsort
SELECT DISTINCT 41 * col0 + + 20 FROM tab0 AS cor0
----
1004
1455
3669

query I rowsort
SELECT ALL - cor0.col1 * col1 + col1 + + col2 FROM tab1 AS cor0
----
-33
-596
-60

query I rowsort
SELECT DISTINCT + cor0.col1 * + col2 - col0 AS col1 FROM tab2 AS cor0
----
1456
567
830

query I rowsort
SELECT + tab2.col0 + 18 AS col1 FROM tab2
----
25
96
97

query I rowsort
SELECT col0 + - col1 * col1 + col2 FROM tab1 AS cor0
----
-619
21
7

query I rowsort
SELECT 54 FROM tab1, tab1 cor0, tab1 AS cor1
----
27 values hashing to 81150d59d6c3fc48b4ef5a4a5495bc7a

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9303
SELECT ALL - + col2 + CAST( NULL AS SIGNED ) + - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9303
SELECT ALL - + col2 + CAST ( NULL AS INTEGER ) + - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + 22 + + 83 + col2 col2 FROM tab1 AS cor0
----
1548
1939
203

query I rowsort
SELECT ALL + col0 + + ( col1 + - col1 ) AS col1 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT DISTINCT col0 + col0 * - cor0.col2 FROM tab0 AS cor0
----
-7209
-768
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-9307
SELECT + col1 DIV 51 + col1 FROM tab1 AS cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-9307
SELECT + col1 / 51 + col1 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT - col2 * col0 + - col2 + + col0 AS col0 FROM tab1 AS cor0
----
-213
-3641
-7696

query I rowsort
SELECT + col1 + - col2 * col1 + + cor0.col0 * + 16 FROM tab2 AS cor0
----
-227
-694
635

query I rowsort
SELECT ALL - col0 * 7 - col0 FROM tab2 cor0
----
-56
-624
-632

query I rowsort
SELECT DISTINCT 11 * cor0.col2 FROM tab1, tab1 AS cor0
----
1056
594
627

query I rowsort
SELECT col2 + col2 * + col0 * col1 FROM tab0 AS cor0
----
3396
664200
68145

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 73 col2 FROM tab2 AS cor0
----
73
73
73

query I rowsort
SELECT DISTINCT + col0 * 69 AS col0 FROM tab2 AS cor0
----
483
5382
5451

query I rowsort
SELECT ALL - - 96 AS col2 FROM tab2 AS cor0
----
96
96
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9316
SELECT CAST( col0 AS SIGNED ) + col0 * - 68 FROM tab0 AS cor0
----
-1608
-2345
-5963

skipif mysql # not compatible
query I rowsort label-9316
SELECT CAST ( col0 AS INTEGER ) + col0 * - 68 FROM tab0 AS cor0
----
-1608
-2345
-5963

query I rowsort
SELECT DISTINCT + col1 * + 21 + col0 AS col0 FROM tab2 AS cor0
----
1317
436
658

query I rowsort
SELECT DISTINCT 24 - cor0.col2 AS col2 FROM tab2, tab2 AS cor0, tab0 cor1
----
-14
-2
-3

query I rowsort
SELECT ALL - 33 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 8035c665a75d22be5922be1a4e574e03

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9320
SELECT + CAST( NULL AS DECIMAL ) + col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9320
SELECT + CAST ( NULL AS REAL ) + col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 48 * col1 + - col2 * + col1 + + col2 FROM tab2 cor0
----
1324
208
678

query I rowsort
SELECT + 4 + 92 * cor0.col0 AS col2 FROM tab1 AS cor0
----
280
5892
7364

onlyif mysql # use DIV operator for integer division
query I rowsort label-9323
SELECT DISTINCT + - col2 + col0 DIV + col0 FROM tab2 AS cor0
----
-25
-26
-37

skipif mysql # not compatible
query I rowsort label-9323
SELECT DISTINCT + - col2 + col0 / + col0 FROM tab2 AS cor0
----
-25
-26
-37

onlyif mysql # use DIV operator for integer division
query I rowsort label-9324
SELECT ALL + - 12 + - col2 * col0 DIV ( col0 ) FROM tab1 cor0
----
-108
-66
-69

skipif mysql # not compatible
query I rowsort label-9324
SELECT ALL + - 12 + - col2 * col0 / ( col0 ) FROM tab1 cor0
----
-108
-66
-69

query I rowsort
SELECT DISTINCT 13 + ( col2 ) * ( + col0 ) AS col1 FROM tab0 cor0
----
48
7311
805

query I rowsort
SELECT ALL 13 * col0 + col2 AS col0 FROM tab1 AS cor0
----
1136
889
93

query I rowsort
SELECT ALL + col0 * + col0 * + col0 + - ( col1 ) FROM tab2 AS cor0
----
312
474493
493022

query I rowsort
SELECT DISTINCT + ( - 50 ) * col0 FROM tab0 AS cor0
----
-1200
-1750
-4450

query I rowsort
SELECT - col1 + 48 FROM tab2 cor0
----
-11
17
31

onlyif mysql # use DIV operator for integer division
query I rowsort label-9330
SELECT ALL - 71 + col2 DIV + col1 FROM tab1 AS cor0
----
-64
-66
-69

skipif mysql # not compatible
query I rowsort label-9330
SELECT ALL - 71 + col2 / + col1 FROM tab1 AS cor0
----
-64
-66
-69

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9331
SELECT DISTINCT - col1 * CAST( NULL AS SIGNED ) + 95 * col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9331
SELECT DISTINCT - col1 * CAST ( NULL AS INTEGER ) + 95 * col0 FROM tab2
----
NULL

query I rowsort
SELECT ALL 93 * 54 FROM tab2, tab0 AS cor0
----
9 values hashing to e63b5e60699fe32f4c9de7cdedf447e6

query I rowsort
SELECT tab1.col1 * 89 FROM tab1
----
1157
2314
890

query I rowsort
SELECT DISTINCT col1 * 98 + + col0 * - col2 AS col0 FROM tab2
----
-1336
2849
3754

query I rowsort
SELECT ALL - - ( + 67 ) * - col2 + col2 * col1 AS col0 FROM tab2 AS cor0
----
-1900
-208
-972

onlyif mysql # use DIV operator for integer division
query I rowsort label-9336
SELECT ( + col0 ) DIV - col1 FROM tab1 AS cor0
----
-6
-6
0

skipif mysql # not compatible
query I rowsort label-9336
SELECT ( + col0 ) / - col1 FROM tab1 AS cor0
----
-6
-6
0

query I rowsort
SELECT DISTINCT col1 * + col2 + - col1 + - col0 AS col0 FROM tab1 AS cor0
----
1155
1375
496

onlyif mysql # use DIV operator for integer division
query I rowsort label-9338
SELECT ALL - - col1 + col1 DIV col0 col1 FROM tab1 AS cor0
----
10
13
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9338
SELECT ALL - - col1 + col1 / col0 col1 FROM tab1 AS cor0
----
10
13
34

query I rowsort
SELECT + - col2 + - cor0.col2 FROM tab0 AS cor0
----
-164
-2
-66

query I rowsort
SELECT - + ( col0 ) + cor0.col0 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + - 47 FROM tab2, tab2 AS cor0, tab0, tab2 cor1
----
81 values hashing to 905cbd63e2561d7f32ce36091d5b526a

query I rowsort
SELECT DISTINCT + col2 * col2 * col2 FROM tab1
----
157464
185193
884736

query I rowsort
SELECT ( - 46 ) + col2 FROM tab1
----
11
50
8

query I rowsort
SELECT DISTINCT + cor0.col0 * ( - col2 ) FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT - cor1.col2 FROM tab0, tab2 cor0, tab0 AS cor1, tab2 AS cor2
----
81 values hashing to 87af467938ef355540b8de24db1bf3b8

onlyif mysql # use DIV operator for integer division
query I rowsort label-9346
SELECT 0 + col2 DIV tab1.col2 - + col2 FROM tab1
----
-53
-56
-95

skipif mysql # not compatible
query I rowsort label-9346
SELECT 0 + col2 / tab1.col2 - + col2 FROM tab1
----
-53
-56
-95

query I rowsort
SELECT ALL - col2 + 73 AS col1 FROM tab0 AS cor0
----
-9
40
72

query I rowsort
SELECT DISTINCT col0 * + col0 + - col0 FROM tab1 AS cor0
----
4032
6
6320

query I rowsort
SELECT - col0 + + ( col0 ) FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT 75 * col0 * + col1 - col2 AS col1 FROM tab2
----
100687
16248
345124

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9351
SELECT DISTINCT - col2 / col1 - CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9351
SELECT DISTINCT - col2 / col1 - CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-9352
SELECT col2 + + tab2.col0 DIV col0 FROM tab2
----
27
28
39

skipif mysql # not compatible
query I rowsort label-9352
SELECT col2 + + tab2.col0 / col0 FROM tab2
----
27
28
39

query I rowsort
SELECT DISTINCT 50 AS col1 FROM tab2, tab1 AS cor0
----
50

query I rowsort
SELECT + col0 + - 91 FROM tab0
----
-2
-56
-67

query I rowsort
SELECT tab1.col2 + - ( - col2 ) + col0 AS col2 FROM tab1
----
111
178
272

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab0 cor0, tab2 AS cor1, tab2 cor2
----
972 values hashing to 617c9545df26d6d983e3967864e8e9e4

query I rowsort
SELECT + - 32 FROM tab0, tab2 AS cor0
----
9 values hashing to ef8f93119983b962f4c81381ebf4b1e6

query I rowsort
SELECT ALL + + col0 + + 2 AS col1 FROM tab0 AS cor0
----
26
37
91

query I rowsort
SELECT - cor0.col1 + + 21 * ( cor0.col0 ) * - col1 AS col2 FROM tab2 AS cor0
----
-28220
-4588
-96701

query I rowsort
SELECT ALL + - cor0.col0 * + col2 FROM tab1 cor0
----
-162
-3648
-7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-9361
SELECT DISTINCT - col2 + col2 DIV 76 col1 FROM tab1 AS cor0
----
-54
-57
-95

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9361
SELECT DISTINCT - col2 + col2 / 76 col1 FROM tab1 AS cor0
----
-54
-57
-95

query I rowsort
SELECT ALL col1 + + 58 FROM tab0 AS cor0
----
144
149
155

query I rowsort
SELECT - 71 + col1 FROM tab1 cor0
----
-45
-58
-61

query I rowsort
SELECT col1 + - ( tab0.col1 ) * 83 * 79 AS col1 FROM tab0
----
-563816
-596596
-635932

query I rowsort
SELECT col1 * - col2 * 11 AS col2 FROM tab0
----
-1067
-31218
-82082

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 69 col2 FROM tab2
----
-69
-69
-69

query I rowsort
SELECT DISTINCT col0 + + col0 + 96 * col1 FROM tab0
----
8304
8914
9382

query I rowsort
SELECT + col0 * - col1 * ( - col2 ) AS col2 FROM tab0
----
3395
664118
68112

query I rowsort
SELECT ALL cor0.col0 + + col0 * ( - 60 ) * cor0.col1 FROM tab1 cor0
----
-38336
-4677
-62320

query I rowsort
SELECT ALL - cor2.col0 FROM tab2, tab2 AS cor0, tab0 AS cor1, tab1 AS cor2
----
81 values hashing to 08e380e50b0cb64601bc84e5254deef4

query I rowsort
SELECT DISTINCT - 35 + col1 * cor0.col0 FROM tab1 AS cor0
----
1005
43
605

query I rowsort
SELECT + col0 + ( 14 ) AS col0 FROM tab2
----
21
92
93

skipif mysql # not compatible
query I rowsort
SELECT ALL col2 + CAST ( + col1 AS REAL ) + col2 FROM tab0
----
152
255
99

onlyif mysql # use DIV operator for integer division
query I rowsort label-9374
SELECT DISTINCT col0 DIV + ( + 64 * col0 ) + col2 AS col2 FROM tab1
----
54
57
96

skipif mysql # not compatible
query I rowsort label-9374
SELECT DISTINCT col0 / + ( + 64 * col0 ) + col2 AS col2 FROM tab1
----
54
57
96

query I rowsort
SELECT ALL - cor0.col0 FROM tab2, tab0 AS cor0 WHERE ( cor0.col2 ) <= NULL
----

query I rowsort
SELECT ALL - col0 * - 61 AS col1 FROM tab2 AS cor0
----
427
4758
4819

query I rowsort
SELECT - 86 FROM tab1, tab0 cor0
----
9 values hashing to 9ac806793c03d3a6b5e3a3029d20e4da

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9378
SELECT ALL + - CAST( NULL AS SIGNED ) + - col1 * col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9378
SELECT ALL + - CAST ( NULL AS INTEGER ) + - col1 * col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - cor0.col0 + - cor0.col2 AS col0 FROM tab2 AS cor0
----
-104
-117
-34

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9380
SELECT DISTINCT - CAST( - 29 AS SIGNED ) - - col1 * - col0 col1 FROM tab1 AS cor0
----
-1011
-49
-611

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9380
SELECT DISTINCT - CAST ( - 29 AS INTEGER ) - - col1 * - col0 col1 FROM tab1 AS cor0
----
-1011
-49
-611

query I rowsort
SELECT ALL + ( 10 ) * - col0 AS col2 FROM tab0 AS cor0
----
-240
-350
-890

query I rowsort
SELECT ALL 14 + - col1 AS col1 FROM tab2 AS cor0
----
-17
-3
-45

query I rowsort
SELECT ALL + 91 + - col1 FROM tab1 AS cor0
----
65
78
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 60 + 57 col2 FROM tab0 cor0
----
117
117
117

query I rowsort
SELECT + col2 * - ( col2 ) FROM tab0 AS cor0
----
-1
-1089
-6724

query I rowsort
SELECT DISTINCT col2 + - ( + 60 ) AS col0 FROM tab1
----
-3
-6
36

query I rowsort
SELECT - ( - col1 ) * + col0 + - ( + col2 ) * + col2 FROM tab2 AS cor0
----
-101
-512
3926

query I rowsort
SELECT 96 * 22 FROM tab2
----
2112
2112
2112

query I rowsort
SELECT DISTINCT ( col0 ) * col2 * col1 + tab0.col1 * - col2 * - col0 + - col0 * - col1 AS col0 FROM tab0
----
10185
1336335
138288

query I rowsort
SELECT ALL - 15 * + 34 AS col2 FROM tab0
----
-510
-510
-510

query I rowsort
SELECT 6 * + 13 AS col1 FROM tab1
----
78
78
78

query I rowsort
SELECT DISTINCT + ( col2 ) * col0 FROM tab1
----
162
3648
7680

query I rowsort
SELECT DISTINCT - ( - col1 + + col1 ) FROM tab1
----
0

query I rowsort
SELECT - col1 * ( col0 ) + - col0 AS col1 FROM tab0 cor0
----
-2088
-3430
-8188

query I rowsort
SELECT + 73 AS col2 FROM tab1, tab2 cor0
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col1 + cor0.col1 col0 FROM tab1, tab0 AS cor0
----
0

query I rowsort
SELECT - col1 * 29 + col2 FROM tab0 AS cor0
----
-2461
-2557
-2812

query I rowsort
SELECT + + 26 * col2 FROM tab1 AS cor0
----
1404
1482
2496

query I rowsort
SELECT ALL - col0 * + 47 FROM tab2
----
-329
-3666
-3713

query I rowsort
SELECT - 58 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to de0811e670e75d2aeeb657e32bddb0c0

query I rowsort
SELECT ( 91 ) FROM tab1
----
91
91
91

query I rowsort
SELECT ALL - ( - col2 ) + col2 FROM tab0 AS cor0
----
164
2
66

query I rowsort
SELECT col2 + ( + col2 ) + col1 FROM tab1 AS cor0
----
124
134
205

query I rowsort
SELECT - - col0 + + ( - col0 ) - col0 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT - - col0 + + cor0.col0 - + col2 FROM tab1 AS cor0
----
-48
64
71

query I rowsort
SELECT + col1 * - ( 96 ) AS col2 FROM tab0 AS cor0
----
-8256
-8736
-9312

query I rowsort
SELECT ALL + cor0.col0 + - col1 * col1 FROM tab1 AS cor0
----
-36
-673
-89

query I rowsort
SELECT + + col2 * col0 + + 90 * col2 FROM tab2 AS cor0
----
2619
4368
6422

query I rowsort
SELECT - 66 * + col2 * - col2 AS col1 FROM tab1
----
192456
214434
608256

onlyif mysql # use DIV operator for integer division
query I rowsort label-9410
SELECT DISTINCT + 55 DIV - col0 + ( - 68 ) AS col0 FROM tab2
----
-68
-75

skipif mysql # not compatible
query I rowsort label-9410
SELECT DISTINCT + 55 / - col0 + ( - 68 ) AS col0 FROM tab2
----
-68
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + 83 col1 FROM tab1 AS cor0
----
137
140
179

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9412
SELECT + col1 + - CAST( - ( col0 ) AS SIGNED ) FROM tab0 cor0
----
110
132
180

skipif mysql # not compatible
query I rowsort label-9412
SELECT + col1 + - CAST ( - ( col0 ) AS INTEGER ) FROM tab0 cor0
----
110
132
180

query I rowsort
SELECT col1 * + ( - 6 * + col1 ) FROM tab2
----
-1734
-20886
-5766

query I rowsort
SELECT - + cor0.col2 + col2 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - col0 * CAST ( col2 AS REAL ) FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT ALL - + cor0.col2 * 78 + + col2 AS col2 FROM tab1 AS cor0
----
-4158
-4389
-7392

query I rowsort
SELECT col0 * + col0 - + ( col0 ) AS col2 FROM tab0
----
1190
552
7832

query I rowsort
SELECT DISTINCT col0 * + col2 * ( + 3 ) + tab1.col1 AS col2 FROM tab1
----
10954
23053
512

onlyif mysql # use DIV operator for integer division
query I rowsort label-9419
SELECT - 16 DIV col0 + - col0 * + tab0.col1 * - col0 FROM tab0
----
118825
49536
720811

skipif mysql # not compatible
query I rowsort label-9419
SELECT - 16 / col0 + - col0 * + tab0.col1 * - col0 FROM tab0
----
118825
49536
720811

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9420
SELECT DISTINCT - 49 / - col1 + + CAST( NULL AS SIGNED ) * 23 AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9420
SELECT DISTINCT - 49 / - col1 + + CAST ( NULL AS INTEGER ) * 23 AS col0 FROM tab2
----
NULL

query IIIIIIIIIIIIIIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab2, tab1 AS cor2, tab0 AS cor3
----
13122 values hashing to dabf81f4a30601e552d2b6b2034a0b30

query I rowsort
SELECT + col0 * - tab0.col0 - 44 AS col0 FROM tab0
----
-1269
-620
-7965

query I rowsort
SELECT - col0 * + 27 + col2 * col0 AS col1 FROM tab0 cor0
----
-910
144
4895

query I rowsort
SELECT ALL - + cor0.col1 - + 71 FROM tab1 AS cor0
----
-81
-84
-97

query I rowsort
SELECT ALL + + cor0.col0 + + 43 AS col1 FROM tab1 cor0
----
107
123
46

query I rowsort
SELECT + col2 * 65 + ( + cor0.col2 ) FROM tab1 AS cor0
----
3564
3762
6336

query I rowsort
SELECT ALL + col0 + col0 + col1 * col1 FROM tab0 AS cor0
----
7444
8459
9479

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + - ( col2 ) * + cor0.col2 * 34 col0 FROM tab1 AS cor0
----
-110456
-313331
-99118

onlyif mysql # use DIV operator for integer division
query I rowsort label-9429
SELECT cor0.col0 * col1 DIV col0 + col1 * - ( 17 ) AS col1 FROM tab1 AS cor0
----
-160
-208
-416

skipif mysql # not compatible
query I rowsort label-9429
SELECT cor0.col0 * col1 / col0 + col1 * - ( 17 ) AS col1 FROM tab1 AS cor0
----
-160
-208
-416

query I rowsort
SELECT ALL + col2 - - tab1.col1 FROM tab1
----
109
67
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-9431
SELECT + 96 DIV + col1 col1 FROM tab1
----
3
7
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9431
SELECT + 96 / + col1 col1 FROM tab1
----
3
7
9

query I rowsort
SELECT DISTINCT col0 * - 37 FROM tab1
----
-111
-2368
-2960

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - cor0.col1 * col0 - + col2 col1 FROM tab2 AS cor0
----
-1381
-244
-4628

onlyif mysql # use DIV operator for integer division
query I rowsort label-9434
SELECT - ( - col1 ) DIV + col1 col0 FROM tab2 AS cor0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9434
SELECT - ( - col1 ) / + col1 col0 FROM tab2 AS cor0
----
1
1
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9435
SELECT - + CAST( NULL AS SIGNED ) - - col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9435
SELECT - + CAST ( NULL AS INTEGER ) - - col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + cor0.col2 * col0 + - col2 AS col0 FROM tab0 AS cor0
----
34
7216
759

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9437
SELECT CAST( NULL AS SIGNED ) * 69 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9437
SELECT CAST ( NULL AS INTEGER ) * 69 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 * col2 + 2 * + col2 * + cor0.col1 FROM tab0 AS cor0
----
22386
291
8514

query I rowsort
SELECT DISTINCT + + 22 * col1 - ( 91 * col2 ) AS col2 FROM tab0 AS cor0
----
-1111
-5460
2043

onlyif mysql # use DIV operator for integer division
query I rowsort label-9440
SELECT DISTINCT + cor0.col1 DIV + col2 + cor0.col2 + - col1 FROM tab0 AS cor0
----
-51
-8
1

skipif mysql # not compatible
query I rowsort label-9440
SELECT DISTINCT + cor0.col1 / + col2 + cor0.col2 + - col1 FROM tab0 AS cor0
----
-51
-8
1

query I rowsort
SELECT + 88 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to c46e7cf9bf516fdfde88534336a28177

query I rowsort
SELECT ALL - + 63 * col0 FROM tab0 AS cor0
----
-1512
-2205
-5607

query I rowsort
SELECT DISTINCT - ( - col0 + col0 ) * + col2 FROM tab0
----
0

query I rowsort
SELECT DISTINCT - 55 * - col1 + - col0 FROM tab2 AS cor0
----
1698
3167
856

query I rowsort
SELECT DISTINCT + ( - col0 ) + col2 AS col2 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT - - ( + col1 ) + + col2 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT DISTINCT 19 * col2 * + cor0.col0 FROM tab2 AS cor0
----
3591
38532
57038

query I rowsort
SELECT ALL + ( + col2 ) * + 63 AS col0 FROM tab2 AS cor0
----
1638
1701
2394

query I rowsort
SELECT - - col0 * + cor0.col2 - 71 AS col0 FROM tab2 AS cor0
----
118
1957
2931

query I rowsort
SELECT - + col2 + cor0.col2 * col2 FROM tab0 AS cor0
----
0
1056
6642

onlyif mysql # use DIV operator for integer division
query I rowsort label-9451
SELECT + - col2 + col2 DIV col2 + + col1 FROM tab0 AS cor0
----
10
54
97

skipif mysql # not compatible
query I rowsort label-9451
SELECT + - col2 + col2 / col2 + + col1 FROM tab0 AS cor0
----
10
54
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-9452
SELECT DISTINCT + - col0 DIV - col1 FROM tab2 AS cor0
----
0
1
4

skipif mysql # not compatible
query I rowsort label-9452
SELECT DISTINCT + - col0 / - col1 FROM tab2 AS cor0
----
0
1
4

query I rowsort
SELECT ALL + - 8 * - col0 AS col1 FROM tab2 AS cor0
----
56
624
632

query I rowsort
SELECT ALL + col1 * + col1 * ( 87 ) FROM tab0 AS cor0
----
643452
720447
818583

onlyif mysql # use DIV operator for integer division
query I rowsort label-9455
SELECT DISTINCT - + col2 DIV + col1 AS col2 FROM tab1 AS cor0
----
-2
-5
-7

skipif mysql # not compatible
query I rowsort label-9455
SELECT DISTINCT - + col2 / + col1 AS col2 FROM tab1 AS cor0
----
-2
-5
-7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9456
SELECT - - col2 + col1 + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9456
SELECT - - col2 + col1 + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-9457
SELECT ALL col0 DIV + col0 + + ( col0 + col1 ) * cor0.col1 FROM tab0 AS cor0
----
12805
16381
9461

skipif mysql # not compatible
query I rowsort label-9457
SELECT ALL col0 / + col0 + + ( col0 + col1 ) * cor0.col1 FROM tab0 AS cor0
----
12805
16381
9461

query I rowsort
SELECT DISTINCT - + 0 + - col0 * - 37 AS col2 FROM tab1 AS cor0
----
111
2368
2960

query I rowsort
SELECT col0 * col2 + + ( 68 ) + - col2 AS col0 FROM tab0 AS cor0
----
102
7284
827

query I rowsort
SELECT - col1 * - col2 + 46 + - col0 FROM tab2 AS cor0
----
1502
613
876

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9461
SELECT - col1 + CAST( + col2 AS SIGNED ) FROM tab0 cor0
----
-53
-9
-96

skipif mysql # not compatible
query I rowsort label-9461
SELECT - col1 + CAST ( + col2 AS INTEGER ) FROM tab0 cor0
----
-53
-9
-96

query I rowsort
SELECT - - col0 + + 30 + col0 AS col1 FROM tab1 AS cor0
----
158
190
36

query I rowsort
SELECT ALL col2 * 88 - - col2 AS col0 FROM tab1 AS cor0
----
4806
5073
8544

query I rowsort
SELECT ALL 19 + + col0 FROM tab1
----
22
83
99

query I rowsort
SELECT + + 35 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29

query I rowsort
SELECT - - col1 - + ( 97 ) * - col1 FROM tab1 AS cor0
----
1274
2548
980

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + - col0 col1 FROM tab1 AS cor0
----
0

query I rowsort
SELECT 16 * + col1 FROM tab1 cor0
----
160
208
416

query I rowsort
SELECT DISTINCT - 38 + + col0 * col2 AS col1 FROM tab1 AS cor0
----
124
3610
7642

query I rowsort
SELECT DISTINCT - ( ( + col2 ) ) - - 52 * col0 * - col1 FROM tab2 AS cor0
----
-11311
-239330
-69874

query I rowsort
SELECT DISTINCT - 20 * 95 AS col1 FROM tab0 AS cor0
----
-1900

query I rowsort
SELECT + - 5 + col1 * col1 FROM tab1 AS cor0
----
164
671
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * - 88 col0 FROM tab2
----
616
6864
6952

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9474
SELECT ALL ( cor0.col0 ) * CAST( NULL AS SIGNED ) + + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9474
SELECT ALL ( cor0.col0 ) * CAST ( NULL AS INTEGER ) + + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + col1 - col1 FROM tab2 cor0
----
-118
-34
-62

query I rowsort
SELECT ALL - col2 - - 55 FROM tab0
----
-27
22
54

query I rowsort
SELECT ALL + col2 * + cor0.col2 + + col2 * + 55 AS col1 FROM tab0 AS cor0
----
11234
2904
56

onlyif mysql # use DIV operator for integer division
query I rowsort label-9478
SELECT ALL 96 DIV - col1 AS col0 FROM tab2
----
-1
-3
-5

skipif mysql # not compatible
query I rowsort label-9478
SELECT ALL 96 / - col1 AS col0 FROM tab2
----
-1
-3
-5

onlyif mysql # use DIV operator for integer division
query I rowsort label-9479
SELECT + col0 DIV tab0.col1 + - col0 FROM tab0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-9479
SELECT + col0 / tab0.col1 + - col0 FROM tab0
----
-24
-35
-89

query I rowsort
SELECT ALL + 94 + - col0 * col1 FROM tab2 AS cor0
----
-123
-1249
-4508

query I rowsort
SELECT ALL + 45 * cor0.col1 + col0 FROM tab1 AS cor0
----
1173
514
665

query I rowsort
SELECT - + col0 * 77 FROM tab0 AS cor0
----
-1848
-2695
-6853

query I rowsort
SELECT 17 * + col0 AS col1 FROM tab1 AS cor0
----
1088
1360
51

query I rowsort
SELECT + + 83 * 70 FROM tab2 AS cor0
----
5810
5810
5810

query I rowsort
SELECT DISTINCT + cor0.col2 FROM tab2, tab0 cor0, tab0 AS cor1
----
1
33
82

query I rowsort
SELECT cor0.col2 * col2 + - col0 FROM tab2 cor0
----
1365
598
722

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9487
SELECT - + CAST( NULL AS SIGNED ) * ( - col0 ) + - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9487
SELECT - + CAST ( NULL AS INTEGER ) * ( - col0 ) + - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + 84 * - col1 + col0 AS col2 FROM tab0 AS cor0
----
-7200
-7555
-8113

query I rowsort
SELECT col2 * - 40 AS col2 FROM tab1 AS cor0
----
-2160
-2280
-3840

query I rowsort
SELECT - + 89 + - col2 * - col0 * ( + 99 ) FROM tab2 cor0
----
18622
200683
297109

query I rowsort
SELECT + - cor0.col2 + + ( col2 ) AS col1 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 50 col1 FROM tab0 AS cor0
----
50
50
50

query I rowsort
SELECT ALL - 92 AS col1 FROM tab2, tab2 AS cor0, tab2 AS cor1, tab1 AS cor2
----
81 values hashing to 95b4f8d1f8c6430076327dcc6092a86c

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 41 * + col0 col1 FROM tab1
----
-123
-2624
-3280

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 col1 FROM tab2 cor0
----
26
27
38

query I rowsort
SELECT - col0 + 67 - + col1 FROM tab2 cor0
----
-29
-70
29

query I rowsort
SELECT - 69 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 3bd7460efa48c66c072ad5f3c2def7e9

query I rowsort
SELECT - + 2 FROM tab1, tab0 AS cor0
----
9 values hashing to ec11209ab257030053484fc13a1f6d17

query I rowsort
SELECT DISTINCT - col0 * 43 + + col0 * col0 * ( + col1 ) AS col2 FROM tab1 cor0
----
105
38208
79760

onlyif mysql # use DIV operator for integer division
query I rowsort label-9500
SELECT ALL - col1 DIV ( - col2 + + col1 ) FROM tab2
----
-1
-7
0

skipif mysql # not compatible
query I rowsort label-9500
SELECT ALL - col1 / ( - col2 + + col1 ) FROM tab2
----
-1
-7
0

query I rowsort
SELECT DISTINCT - ( + 97 ) AS col1 FROM tab2, tab1 AS cor0
----
-97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9502
SELECT ALL + CAST( NULL AS SIGNED ) - - 23 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9502
SELECT ALL + CAST ( NULL AS INTEGER ) - - 23 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - ( 18 ) + - col0 * - 97 FROM tab0 AS cor0
----
2310
3377
8615

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9504
SELECT DISTINCT CAST( col1 AS SIGNED ) + + col1 col1 FROM tab2 cor0
----
118
34
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9504
SELECT DISTINCT CAST ( col1 AS INTEGER ) + + col1 col1 FROM tab2 cor0
----
118
34
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-9505
SELECT col0 DIV 53 AS col1 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-9505
SELECT col0 / 53 AS col1 FROM tab1
----
0
1
1

query I rowsort
SELECT + col1 * ( - col0 ) - - col1 * - col2 AS col0 FROM tab1
----
-1210
-1482
-2288

query I rowsort
SELECT ALL + 2 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 535345c50a19fdab97ce05d1837b1f09

query I rowsort
SELECT DISTINCT + 35 AS col2 FROM tab2, tab2 cor0, tab0, tab0 AS cor1
----
35

query I rowsort
SELECT DISTINCT + 72 * ( col0 ) + col0 FROM tab2
----
511
5694
5767

query I rowsort
SELECT ALL 95 * + col0 + col1 + - ( - col2 ) * + tab2.col0 FROM tab2
----
10524
885
9497

query I rowsort
SELECT + 55 FROM tab2, tab1 AS cor0
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0

query I rowsort
SELECT DISTINCT ( + tab0.col2 ) * - col1 + + tab0.col2 AS col0 FROM tab0
----
-2805
-7380
-96

query I rowsort
SELECT + ( col2 ) * col2 FROM tab1
----
2916
3249
9216

onlyif mysql # use DIV operator for integer division
query I rowsort label-9514
SELECT DISTINCT col1 + 6 DIV + col0 FROM tab1
----
10
13
28

skipif mysql # not compatible
query I rowsort label-9514
SELECT DISTINCT col1 + 6 / + col0 FROM tab1
----
10
13
28

query I rowsort
SELECT col1 * ( - col1 * col1 ) - + tab2.col1 AS col0 FROM tab2
----
-205438
-29822
-4930

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col0 ) * col0 + - col1 * - col1 * - col0 col0 FROM tab0 AS cor0
----
-178080
-330540
-744930

query I rowsort
SELECT ALL cor0.col0 FROM tab2, tab1 AS cor0, tab0 AS cor1, tab1 AS cor2
----
81 values hashing to e28bf7f922650ca423ade3642ce0285b

query I rowsort
SELECT ( ( - col1 ) ) + 22 FROM tab1 AS cor0
----
-4
12
9

query I rowsort
SELECT ALL col1 * - col0 * ( col2 ) AS col1 FROM tab0
----
-3395
-664118
-68112

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9520
SELECT - + ( col2 ) * + CAST( col2 AS SIGNED ) FROM tab2 AS cor0
----
-1444
-676
-729

skipif mysql # not compatible
query I rowsort label-9520
SELECT - + ( col2 ) * + CAST ( col2 AS INTEGER ) FROM tab2 AS cor0
----
-1444
-676
-729

query I rowsort
SELECT - col2 + + 15 * + col1 FROM tab0 AS cor0
----
1257
1283
1454

query I rowsort
SELECT col0 + + 41 AS col2 FROM tab0 AS cor0
----
130
65
76

query I rowsort
SELECT DISTINCT 93 FROM tab2 cor0 CROSS JOIN tab2 cor1
----
93

query I rowsort
SELECT + col2 + - 85 FROM tab0 AS cor0
----
-3
-52
-84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 * - 55 col0 FROM tab0 AS cor0
----
1815
4510
55

query I rowsort
SELECT ALL + col0 + + ( 8 * + col2 ) FROM tab1 cor0
----
435
520
848

query I rowsort
SELECT + col2 * + col1 - 19 * col2 AS col1 FROM tab1 cor0
----
-513
-576
378

query I rowsort
SELECT ALL + cor0.col0 + - cor0.col0 AS col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT col0 * ( col0 ) - - col0 AS col0 FROM tab0 AS cor0
----
1260
600
8010

query I rowsort
SELECT DISTINCT - col1 - + col2 * - col0 FROM tab1 AS cor0
----
136
3638
7667

query I rowsort
SELECT - + col0 * + col0 + + col1 * - cor0.col2 AS col0 FROM tab1 AS cor0
----
-1413
-4666
-7648

query I rowsort
SELECT DISTINCT + col0 * cor0.col1 + cor0.col2 AS col1 FROM tab0 AS cor0
----
2097
3396
8181

query I rowsort
SELECT DISTINCT + cor0.col0 + - 90 FROM tab1, tab1 AS cor0
----
-10
-26
-87

query I rowsort
SELECT DISTINCT + 18 * col1 AS col2 FROM tab0 AS cor0
----
1548
1638
1746

query I rowsort
SELECT ALL + - 11 FROM tab1 cor0
----
-11
-11
-11

query I rowsort
SELECT col0 + + col1 + ( col0 ) AS col1 FROM tab2 AS cor0
----
175
215
45

query I rowsort
SELECT DISTINCT col0 + + col1 * ( 23 ) AS col2 FROM tab0 AS cor0
----
2002
2182
2266

query I rowsort
SELECT ALL + ( - col2 ) + - col0 FROM tab2 AS cor0
----
-104
-117
-34

query I rowsort
SELECT ALL - cor0.col0 FROM tab0, tab0 AS cor0, tab0 cor1
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8

query I rowsort
SELECT + 45 + col1 * - 20 FROM tab2 cor0
----
-1135
-295
-575

query I rowsort
SELECT col2 * cor0.col2 + cor0.col1 + col1 AS col1 FROM tab0 AS cor0
----
1261
195
6906

query I rowsort
SELECT DISTINCT cor0.col1 * + cor0.col2 AS col1 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT ALL + + col0 + 16 * col1 AS col1 FROM tab0 AS cor0
----
1400
1545
1587

query I rowsort
SELECT col1 + - ( + col1 ) + - col2 * + col1 FROM tab0 AS cor0
----
-2838
-7462
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-9545
SELECT DISTINCT + col0 DIV - col1 + col1 + col1 FROM tab0 AS cor0
----
172
182
194

skipif mysql # not compatible
query I rowsort label-9545
SELECT DISTINCT + col0 / - col1 + col1 + col1 FROM tab0 AS cor0
----
172
182
194

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + ( col0 ) col2 FROM tab0 AS cor0
----
-2
-62
-62

query I rowsort
SELECT DISTINCT tab0.col0 + + col1 + - col0 AS col0 FROM tab0
----
86
91
97

query I rowsort
SELECT col0 + - col2 + + 40 * + col0 AS col2 FROM tab1
----
2567
3184
69

query I rowsort
SELECT 3 * col1 * + ( col1 ) AS col0 FROM tab0
----
22188
24843
28227

query I rowsort
SELECT ALL + 74 + col2 * - col1 + 71 FROM tab1 AS cor0
----
-1103
-1259
-425

query I rowsort
SELECT DISTINCT col0 - + 11 FROM tab2 AS cor0
----
-4
67
68

query I rowsort
SELECT DISTINCT - tab1.col1 * ( tab1.col2 + + col2 * - 76 ) FROM tab1
----
105300
42750
93600

query I rowsort
SELECT - + cor0.col1 * 12 AS col1 FROM tab1 cor0
----
-120
-156
-312

query I rowsort
SELECT - ( + 1 ) FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ALL + - 0 * - col1 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - col1 * col1 - - tab1.col0 * - col2 AS col1 FROM tab1
----
-3748
-7849
-838

query I rowsort
SELECT DISTINCT 97 AS col2 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
97

query I rowsort
SELECT ( 16 ) * - col1 + - 74 * tab0.col0 * col1 + - col0 AS col1 FROM tab0
----
-154136
-252817
-600871

query I rowsort
SELECT + 45 AS col2 FROM tab2, tab2 AS cor0 CROSS JOIN tab1, tab0 AS cor1
----
81 values hashing to 8a6d20810140ea088e8e0fd74ffb8339

query I rowsort
SELECT ALL 28 * + 20 + col0 - - 65 FROM tab0
----
649
660
714

query I rowsort
SELECT 16 * + ( + col1 ) * + 25 FROM tab2
----
12400
23600
6800

query I rowsort
SELECT - col1 + 45 - tab0.col1 FROM tab0
----
-127
-137
-149

query I rowsort
SELECT ALL + 21 * + col0 FROM tab0 AS cor0
----
1869
504
735

query I rowsort
SELECT ALL + 25 * cor0.col2 AS col2 FROM tab2 AS cor0
----
650
675
950

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 - 3 col2 FROM tab0 cor0
----
-2
30
79

query I rowsort
SELECT - col0 + + ( col1 ) FROM tab0
----
2
62
62

query I rowsort
SELECT col1 + tab1.col2 * - tab1.col1 AS col0 FROM tab1
----
-1235
-1378
-560

query I rowsort
SELECT ALL cor0.col0 + + cor0.col2 * + 17 * 4 AS col1 FROM tab2 AS cor0
----
1843
1846
2663

query I rowsort
SELECT + 98 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809

query I rowsort
SELECT DISTINCT - + 38 AS col2 FROM tab1 AS cor0
----
-38

query I rowsort
SELECT DISTINCT + 0 * col0 + col0 + cor0.col2 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT - col2 - cor0.col2 AS col1 FROM tab1 AS cor0
----
-108
-114
-192

query I rowsort
SELECT ALL + col2 + col2 * col0 FROM tab2 AS cor0
----
2054
216
3040

query I rowsort
SELECT DISTINCT + col0 + - col2 * col1 FROM tab1 AS cor0
----
-1168
-1401
-506

query I rowsort
SELECT tab2.col2 + - 28 FROM tab2, tab2 AS cor0
----
9 values hashing to d950c55cb268e0f133f7bb4f871d0210

query I rowsort
SELECT + cor0.col2 * - 41 + col0 AS col1 FROM tab2 AS cor0
----
-1100
-1479
-988

query I rowsort
SELECT DISTINCT - col2 * 82 FROM tab1
----
-4428
-4674
-7872

query I rowsort
SELECT ALL - - col1 + - 29 * - col1 AS col2 FROM tab2 AS cor0
----
1770
510
930

query I rowsort
SELECT col0 * 50 FROM tab0 AS cor0
----
1200
1750
4450

query I rowsort
SELECT ALL - col0 * - ( - 81 + col0 ) AS col2 FROM tab2 AS cor0
----
-158
-234
-518

onlyif mysql # use DIV operator for integer division
query I rowsort label-9581
SELECT - - col2 + - col0 DIV col0 AS col2 FROM tab1 AS cor0
----
53
56
95

skipif mysql # not compatible
query I rowsort label-9581
SELECT - - col2 + - col0 / col0 AS col2 FROM tab1 AS cor0
----
53
56
95

query I rowsort
SELECT + - col1 + + 17 AS col1 FROM tab0 AS cor0
----
-69
-74
-80

query I rowsort
SELECT DISTINCT col1 * - ( - cor0.col0 ) FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT + - col2 + 62 FROM tab0 AS cor0
----
-20
29
61

query I rowsort
SELECT - 74 * - 75 FROM tab1 AS cor0
----
5550
5550
5550

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9586
SELECT DISTINCT + col1 * col1 + col2 * CAST( col2 AS SIGNED ) col1 FROM tab0 AS cor0
----
15005
8485
9410

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9586
SELECT DISTINCT + col1 * col1 + col2 * CAST ( col2 AS INTEGER ) col1 FROM tab0 AS cor0
----
15005
8485
9410

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9587
SELECT - CAST( - col2 AS SIGNED ) FROM tab2 cor0
----
26
27
38

skipif mysql # not compatible
query I rowsort label-9587
SELECT - CAST ( - col2 AS INTEGER ) FROM tab2 cor0
----
26
27
38

query I rowsort
SELECT DISTINCT col0 - + 41 AS col2 FROM tab1 AS cor0
----
-38
23
39

query I rowsort
SELECT DISTINCT - ( - col0 ) + - col2 * - cor0.col0 FROM tab1 cor0
----
165
3712
7760

query IIIIII rowsort
SELECT * FROM tab1, tab1 cor0 WHERE NOT ( NULL ) BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * col1 col2 FROM tab1
----
-1040
-640
-78

query I rowsort
SELECT DISTINCT - - 98 * col1 FROM tab0 AS cor0
----
8428
8918
9506

query I rowsort
SELECT col0 * col1 + + 42 FROM tab2 AS cor0
----
1385
259
4644

query I rowsort
SELECT col2 + col2 + - 84 AS col1 FROM tab0 AS cor0
----
-18
-82
80

query I rowsort
SELECT DISTINCT col0 * col2 * + col1 AS col1 FROM tab2 cor0
----
119652
51034
5859

query I rowsort
SELECT - ( + col1 ) * 53 FROM tab0 AS cor0
----
-4558
-4823
-5141

query I rowsort
SELECT DISTINCT - + col2 * col1 * - col1 FROM tab0 AS cor0
----
244068
679042
9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-9598
SELECT col0 * - col2 + col0 DIV cor0.col2 FROM tab1 AS cor0
----
-162
-3647
-7680

skipif mysql # not compatible
query I rowsort label-9598
SELECT col0 * - col2 + col0 / cor0.col2 FROM tab1 AS cor0
----
-162
-3647
-7680

query I rowsort
SELECT - col2 + + 2 AS col1 FROM tab0 AS cor0
----
-31
-80
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + 52 col0 FROM tab1 cor0
----
2808
2964
4992

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9601
SELECT ALL - - CAST( NULL AS DECIMAL ) + + cor0.col0 / + cor1.col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-9601
SELECT ALL - - CAST ( NULL AS REAL ) + + cor0.col0 / + cor1.col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ALL + cor1.col0 AS col0 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

query I rowsort
SELECT - 55 * - 30 FROM tab2 AS cor0
----
1650
1650
1650

query I rowsort
SELECT 4 * 10 FROM tab0 AS cor0
----
40
40
40

query I rowsort
SELECT ALL 0 * cor0.col1 * - cor0.col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + 91 * + 88 AS col2 FROM tab2
----
8008
8008
8008

query I rowsort
SELECT DISTINCT 87 FROM tab0, tab2, tab2 AS cor0, tab1 AS cor1
----
87

query I rowsort
SELECT ALL + + 35 * - 0 * cor0.col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + ( col1 ) - col0 * + col0 AS col0 FROM tab2 cor0
----
-18
-6025
-6224

query I rowsort
SELECT 69 AS col2 FROM tab2 cor0
----
69
69
69

onlyif mysql # use DIV operator for integer division
query I rowsort label-9611
SELECT + col1 DIV + ( - col2 * 64 + cor0.col1 ) FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9611
SELECT + col1 / + ( - col2 * 64 + cor0.col1 ) FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT + - col2 * + 43 FROM tab1 AS cor0
----
-2322
-2451
-4128

query I rowsort
SELECT + col0 * + ( col1 ) + + 68 FROM tab2
----
1411
285
4670

query I rowsort
SELECT DISTINCT 9 + + 97 * - col2 AS col2 FROM tab1
----
-5229
-5520
-9303

query I rowsort
SELECT - col0 * col0 + - col2 + + cor0.col1 AS col1 FROM tab0 AS cor0
----
-1129
-523
-7912

query I rowsort
SELECT 44 + + col1 AS col2 FROM tab2 AS cor0
----
103
61
75

onlyif mysql # use DIV operator for integer division
query I rowsort label-9617
SELECT DISTINCT - 82 * col2 + col2 DIV ( col0 ) AS col2 FROM tab1
----
-4410
-4674
-7871

skipif mysql # not compatible
query I rowsort label-9617
SELECT DISTINCT - 82 * col2 + col2 / ( col0 ) AS col2 FROM tab1
----
-4410
-4674
-7871

query I rowsort
SELECT ALL 99 + ( - col2 ) AS col1 FROM tab2
----
61
72
73

query I rowsort
SELECT DISTINCT ( + col2 ) * col0 + - col1 AS col2 FROM tab2
----
158
1969
2985

query I rowsort
SELECT - 13 * + col2 * - tab1.col1 AS col1 FROM tab1
----
16224
18252
7410

onlyif mysql # use DIV operator for integer division
query I rowsort label-9621
SELECT DISTINCT tab1.col0 DIV col0 + + col0 + col0 FROM tab1
----
129
161
7

skipif mysql # not compatible
query I rowsort label-9621
SELECT DISTINCT tab1.col0 / col0 + + col0 + col0 FROM tab1
----
129
161
7

query I rowsort
SELECT 58 * col0 + col0 + col1 FROM tab2
----
444
4661
4678

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9623
SELECT + CAST( NULL AS SIGNED ) * col1 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9623
SELECT + CAST ( NULL AS INTEGER ) * col1 AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + 22 + col1 * + col2 FROM tab1 AS cor0
----
1270
1426
592

onlyif mysql # use DIV operator for integer division
query I rowsort label-9625
SELECT - - cor0.col0 + + col0 DIV - cor0.col2 + - col1 FROM tab1 AS cor0
----
-23
53
67

skipif mysql # not compatible
query I rowsort label-9625
SELECT - - cor0.col0 + + col0 / - cor0.col2 + - col1 FROM tab1 AS cor0
----
-23
53
67

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0 AS cor0 CROSS JOIN tab1, tab0 cor1, tab2 AS cor2
----
3645 values hashing to da83d3eeaeb9e24a3cb14bb7058757dd

query I rowsort
SELECT DISTINCT + col0 * - col2 + 41 * + col2 FROM tab0 AS cor0
----
-3936
561
6

query I rowsort
SELECT DISTINCT - + col0 + + cor0.col1 + + col2 * - col2 FROM tab1 AS cor0
----
-2893
-3303
-9283

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9629
SELECT - col1 + + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9629
SELECT - col1 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - ( - col2 ) * - cor0.col2 + col1 AS col0 FROM tab2 AS cor0
----
-1427
-617
-698

onlyif mysql # use DIV operator for integer division
query I rowsort label-9631
SELECT 55 DIV col1 FROM tab1
----
2
4
5

skipif mysql # not compatible
query I rowsort label-9631
SELECT 55 / col1 FROM tab1
----
2
4
5

query I rowsort
SELECT DISTINCT col2 + col1 - + col1 FROM tab0
----
1
33
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 58 col2 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to a38440572743ed8a3d8af7b49a5388c9

query I rowsort
SELECT - 39 * - 77 FROM tab2, tab1 AS cor0
----
9 values hashing to 12d345979f4936a95ebd067f93d487d9

query I rowsort
SELECT - 72 AS col0 FROM tab0, tab1, tab0 AS cor0, tab2
----
81 values hashing to 95a1a68628dd064d94b4fe1543a3419f

query I rowsort
SELECT col1 * - ( + 72 ) AS col0 FROM tab1
----
-1872
-720
-936

onlyif mysql # use DIV operator for integer division
query I rowsort label-9637
SELECT DISTINCT col1 DIV 66 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-9637
SELECT DISTINCT col1 / 66 FROM tab0
----
1

query I rowsort
SELECT - 83 * col0 + col0 FROM tab1 AS cor0
----
-246
-5248
-6560

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 72 * - col2 col2 FROM tab1 AS cor0
----
-3888
-4104
-6912

query I rowsort
SELECT - - 20 * col0 + + col1 FROM tab2 cor0
----
1597
1619
171

query I rowsort
SELECT + + ( cor0.col0 ) + - col1 FROM tab0 AS cor0
----
-2
-62
-62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + col0 * + col1 + col2 col0 FROM tab2
----
-119626
-50996
-5832

query I rowsort
SELECT col2 + 72 * col1 FROM tab0
----
6225
6634
6985

query I rowsort
SELECT DISTINCT 82 * cor0.col1 AS col2 FROM tab0, tab2 AS cor0
----
1394
2542
4838

onlyif mysql # use DIV operator for integer division
query I rowsort label-9645
SELECT + col2 + ( + 11 ) DIV - col1 FROM tab0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-9645
SELECT + col2 + ( + 11 ) / - col1 FROM tab0
----
1
33
82

query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2, tab2 cor0 WHERE NULL BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 + + col2 col2 FROM tab2 AS cor0
----
-33
-4
21

onlyif mysql # use DIV operator for integer division
query I rowsort label-9648
SELECT DISTINCT + col2 + - 99 DIV col1 FROM tab1 AS cor0
----
48
51
89

skipif mysql # not compatible
query I rowsort label-9648
SELECT DISTINCT + col2 + - 99 / col1 FROM tab1 AS cor0
----
48
51
89

query I rowsort
SELECT DISTINCT - col2 + col2 * + col2 * + col0 AS col2 FROM tab2 AS cor0
----
114038
5076
52702

query I rowsort
SELECT DISTINCT + + 78 FROM tab0 cor0
----
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-9651
SELECT ( + 25 ) DIV - col2 col2 FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9651
SELECT ( + 25 ) / - col2 col2 FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( 90 ) col0 FROM tab0 AS cor0
----
90
90
90

query I rowsort
SELECT + + cor0.col0 * col0 + col0 FROM tab1 AS cor0
----
12
4160
6480

query I rowsort
SELECT ALL + col0 + - 26 * col2 FROM tab0 AS cor0
----
-2043
-834
9

query I rowsort
SELECT DISTINCT - 58 - 79 AS col0 FROM tab0 AS cor0
----
-137

onlyif mysql # use DIV operator for integer division
query I rowsort label-9656
SELECT col2 DIV - cor0.col0 + + col1 * + ( + 9 + + col2 ) AS col0 FROM tab0 cor0
----
3611
8281
970

skipif mysql # not compatible
query I rowsort label-9656
SELECT col2 / - cor0.col0 + + col1 * + ( + 9 + + col2 ) AS col0 FROM tab0 cor0
----
3611
8281
970

query I rowsort
SELECT ALL ( col1 ) + col0 * col1 FROM tab1 AS cor0
----
104
1053
650

query I rowsort
SELECT - - col2 * 80 - - cor0.col2 FROM tab0 AS cor0
----
2673
6642
81

query I rowsort
SELECT - 19 * + cor0.col0 + col1 FROM tab0 AS cor0
----
-1600
-370
-568

query I rowsort
SELECT ALL ( - col1 ) * col0 AS col0 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT ALL + + 96 + 76 * + cor0.col2 FROM tab0 cor0
----
172
2604
6328

query I rowsort
SELECT - 43 - + col0 * + col0 AS col1 FROM tab2 cor0
----
-6127
-6284
-92

query I rowsort
SELECT DISTINCT - col2 + ( + col1 ) AS col0 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT DISTINCT - - ( + 81 ) * col0 AS col1 FROM tab0 AS cor0
----
1944
2835
7209

onlyif mysql # use DIV operator for integer division
query I rowsort label-9665
SELECT col1 DIV col0 + + col0 * - col0 + - col0 AS col2 FROM tab1 AS cor0
----
-4
-4160
-6480

skipif mysql # not compatible
query I rowsort label-9665
SELECT col1 / col0 + + col0 * - col0 + - col0 AS col2 FROM tab1 AS cor0
----
-4
-4160
-6480

query I rowsort
SELECT ALL 28 * 87 AS col0 FROM tab1 AS cor0
----
2436
2436
2436

query I rowsort
SELECT - + ( - col1 ) * + col0 + col1 FROM tab0 AS cor0
----
2150
3492
8190

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9668
SELECT + CAST( + cor0.col2 AS SIGNED ) AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17

skipif mysql # not compatible
query I rowsort label-9668
SELECT + CAST ( + cor0.col2 AS INTEGER ) AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17

query I rowsort
SELECT ALL - col2 - - col0 * col0 FROM tab0 AS cor0
----
1224
543
7839

onlyif mysql # use DIV operator for integer division
query I rowsort label-9670
SELECT DISTINCT - + 99 + col1 DIV cor0.col1 FROM tab0 AS cor0
----
-98

skipif mysql # not compatible
query I rowsort label-9670
SELECT DISTINCT - + 99 + col1 / cor0.col1 FROM tab0 AS cor0
----
-98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 13 * col2 col2 FROM tab2 AS cor0
----
338
351
494

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 64 * - cor0.col1 col1 FROM tab1 AS cor0
----
-1664
-640
-832

query I rowsort
SELECT DISTINCT - + cor0.col1 * + cor0.col0 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT + + 73 * + col2 AS col0 FROM tab2 AS cor0
----
1898
1971
2774

query I rowsort
SELECT DISTINCT - col1 * col0 * col0 AS col1 FROM tab2 AS cor0
----
-106097
-1519
-358956

query I rowsort
SELECT - ( col1 ) * ( col0 ) FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT ALL tab2.col0 * - cor1.col0 AS col0 FROM tab2, tab2 AS cor0, tab1 cor1
----
27 values hashing to c7d8c1f00ed770fc7c219c3c68edd7d7

query I rowsort
SELECT ALL - - cor0.col1 * col1 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT ( + 13 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb

query I rowsort
SELECT DISTINCT + col0 + col1 - - col0 * + col1 FROM tab2 AS cor0
----
1439
255
4739

query I rowsort
SELECT + cor0.col1 + col0 AS col0 FROM tab1 AS cor0
----
29
74
93

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9682
SELECT DISTINCT - col1 * - CAST( - col1 AS SIGNED ) + col2 AS col2 FROM tab1 AS cor0
----
-43
-622
-73

skipif mysql # not compatible
query I rowsort label-9682
SELECT DISTINCT - col1 * - CAST ( - col1 AS INTEGER ) + col2 AS col2 FROM tab1 AS cor0
----
-43
-622
-73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - 85 col1 FROM tab1 AS cor0
----
-4590
-4845
-8160

query I rowsort
SELECT - cor0.col1 + + 5 AS col0 FROM tab0 AS cor0
----
-81
-86
-92

query I rowsort
SELECT DISTINCT col0 - ( + col1 ) FROM tab2 AS cor0
----
-24
19
62

query I rowsort
SELECT ALL - 68 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 6fbba7db5bccb533a35aa5125a231f88

query I rowsort
SELECT 12 * - tab1.col0 + ( 76 ) FROM tab1
----
-692
-884
40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 57 col0 FROM tab1
----
57
57
57

query I rowsort
SELECT + 65 + - cor0.col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to a7e75e11b87ca172043c48a387ce9992

query I rowsort
SELECT col2 + + ( - col0 ) FROM tab2 AS cor0
----
-41
-52
20

onlyif mysql # use DIV operator for integer division
query I rowsort label-9691
SELECT ALL + col0 + col1 * col2 * + col0 + 56 DIV - col0 FROM tab1 cor0
----
36544
4197
99920

skipif mysql # not compatible
query I rowsort label-9691
SELECT ALL + col0 + col1 * col2 * + col0 + 56 / - col0 FROM tab1 cor0
----
36544
4197
99920

query I rowsort
SELECT DISTINCT + col1 * col1 + + 98 AS col2 FROM tab1 AS cor0
----
198
267
774

query I rowsort
SELECT ALL col2 * 44 + 69 FROM tab2 AS cor0
----
1213
1257
1741

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 AS cor0 CROSS JOIN tab2, tab0 cor1
----
972 values hashing to e4c748f267e8d2a0e6d563281e1fb975

query I rowsort
SELECT DISTINCT tab2.col1 + + col0 * - col2 AS col2 FROM tab2
----
-158
-1969
-2985

onlyif mysql # use DIV operator for integer division
query I rowsort label-9696
SELECT ALL cor0.col2 DIV 20 col0 FROM tab2 AS cor0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9696
SELECT ALL cor0.col2 / 20 col0 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT 43 * - col1 AS col2 FROM tab0 AS cor0
----
-3698
-3913
-4171

query I rowsort
SELECT DISTINCT + + col0 + + 86 * col1 FROM tab1 AS cor0
----
1198
2239
924

query I rowsort
SELECT DISTINCT - - ( - 54 ) FROM tab0 AS cor0
----
-54

query I rowsort
SELECT ALL 63 FROM tab0 cor0
----
63
63
63

query I rowsort
SELECT + - col2 * + col2 - col1 FROM tab2 cor0
----
-1461
-735
-760

query I rowsort
SELECT DISTINCT col1 * 31 + - tab2.col0 FROM tab2
----
1751
448
954

query I rowsort
SELECT + ( - cor0.col0 ) AS col1 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT ALL - 0 * col1 * col1 + 18 AS col0 FROM tab0 AS cor0
----
18
18
18

query I rowsort
SELECT - col1 * - col0 + cor0.col0 FROM tab0 AS cor0
----
2088
3430
8188

query I rowsort
SELECT DISTINCT + col0 * + col0 + + 64 FROM tab0 AS cor0
----
1289
640
7985

query I rowsort
SELECT - + cor0.col0 AS col1 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 729c1edda9332398299f39cd174ed840

query I rowsort
SELECT + 96 AS col1 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to f1d978c2d5bfc6f26e0907ac777be83e

query I rowsort
SELECT + + 45 * - col1 + cor0.col2 FROM tab1 AS cor0
----
-1116
-393
-489

onlyif mysql # use DIV operator for integer division
query I rowsort label-9710
SELECT ALL - cor0.col2 DIV col1 + col0 * 63 + - col2 FROM tab1 AS cor0
----
133
3970
4937

skipif mysql # not compatible
query I rowsort label-9710
SELECT ALL - cor0.col2 / col1 + col0 * 63 + - col2 FROM tab1 AS cor0
----
133
3970
4937

query I rowsort
SELECT DISTINCT - + 44 * - cor0.col2 FROM tab0, tab2 AS cor0
----
1144
1188
1672

query I rowsort
SELECT DISTINCT - ( col1 ) * - 30 + - col2 * col1 AS col1 FROM tab1 cor0
----
-270
-624
-858

query I rowsort
SELECT + - col0 + col1 * col0 * col1 FROM tab0 AS cor0
----
177480
329280
736920

query I rowsort
SELECT DISTINCT - 66 + + col2 + 75 AS col0 FROM tab2 AS cor0
----
35
36
47

query I rowsort
SELECT ALL + 12 * col2 * - cor0.col0 + col0 FROM tab1 cor0
----
-1941
-43712
-92080

query I rowsort
SELECT DISTINCT col0 * 77 + col2 AS col2 FROM tab0
----
1881
2696
6935

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * col2 + + tab1.col0 + - col1 * + col2 col2 FROM tab1
----
-1076
-2416
-2805

query I rowsort
SELECT + - ( - cor0.col2 ) * cor0.col2 FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT col0 * 29 FROM tab1
----
1856
2320
87

onlyif mysql # use DIV operator for integer division
query I rowsort label-9720
SELECT 57 * - col0 - + col2 DIV ( 42 ) FROM tab2 cor0
----
-399
-4446
-4503

skipif mysql # not compatible
query I rowsort label-9720
SELECT 57 * - col0 - + col2 / ( 42 ) FROM tab2 cor0
----
-399
-4446
-4503

onlyif mysql # use DIV operator for integer division
query I rowsort label-9721
SELECT + + 32 DIV + col2 + col1 FROM tab1 cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-9721
SELECT + + 32 / + col2 + col1 FROM tab1 cor0
----
10
13
26

query I rowsort
SELECT - + ( + 76 ) FROM tab0 AS cor0
----
-76
-76
-76

onlyif mysql # use DIV operator for integer division
query I rowsort label-9723
SELECT + + 35 DIV - col0 + + col1 - - col0 * + col2 FROM tab2 cor0
----
2087
215
3019

skipif mysql # not compatible
query I rowsort label-9723
SELECT + + 35 / - col0 + + col1 - - col0 * + col2 FROM tab2 cor0
----
2087
215
3019

query I rowsort
SELECT 52 + + 34 + - cor0.col2 * - cor0.col1 FROM tab2 AS cor0
----
1620
732
923

onlyif mysql # use DIV operator for integer division
query I rowsort label-9725
SELECT col2 + - col2 DIV ( + col1 ) AS col1 FROM tab1
----
52
52
89

skipif mysql # not compatible
query I rowsort label-9725
SELECT col2 + - col2 / ( + col1 ) AS col1 FROM tab1
----
52
52
89

query I rowsort
SELECT ALL - 89 * tab0.col1 AS col2 FROM tab0
----
-7654
-8099
-8633

query I rowsort
SELECT DISTINCT + col0 * col1 * col0 + + col1 * + col1 FROM tab1 AS cor0
----
41060
83369
910

query I rowsort
SELECT ALL - col1 * col1 * + ( - col0 * - col1 ) - col2 FROM tab1 AS cor0
----
-175856
-52782
-64057

query I rowsort
SELECT ALL - 41 + 66 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 525a55d5ed224a62da65df36731881a7

query I rowsort
SELECT DISTINCT + - 44 - col0 FROM tab1 AS cor0
----
-108
-124
-47

query I rowsort
SELECT + col2 + - 12 AS col0 FROM tab2 AS cor0
----
14
15
26

query I rowsort
SELECT ALL + 56 FROM tab2, tab1 AS cor0, tab2 cor1
----
27 values hashing to b5ba4b44e3deadce1edb30e76df61200

query I rowsort
SELECT 39 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf

query I rowsort
SELECT tab1.col1 + 85 AS col2 FROM tab1
----
111
95
98

query I rowsort
SELECT col2 + 18 AS col2 FROM tab1
----
114
72
75

query I rowsort
SELECT ALL + ( - 44 + cor0.col2 ) AS col2 FROM tab0, tab1 cor0
----
9 values hashing to 34c811f31bf1189f27a37f094fdfe4c3

query I rowsort
SELECT - col2 * ( 51 ) FROM tab1 AS cor0
----
-2754
-2907
-4896

onlyif mysql # use DIV operator for integer division
query I rowsort label-9738
SELECT DISTINCT - - cor0.col1 DIV - cor0.col2 AS col1 FROM tab0 AS cor0
----
-1
-2
-97

skipif mysql # not compatible
query I rowsort label-9738
SELECT DISTINCT - - cor0.col1 / - cor0.col2 AS col1 FROM tab0 AS cor0
----
-1
-2
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-9739
SELECT - col0 DIV + col2 AS col2 FROM tab1 cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-9739
SELECT - col0 / + col2 AS col2 FROM tab1 cor0
----
-1
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9740
SELECT ALL - col1 * - CAST( 73 + col0 AS SIGNED ) FROM tab0 cor0
----
10476
14742
8342

skipif mysql # not compatible
query I rowsort label-9740
SELECT ALL - col1 * - CAST ( 73 + col0 AS INTEGER ) FROM tab0 cor0
----
10476
14742
8342

query I rowsort
SELECT ALL - 95 * 71 AS col0 FROM tab1 AS cor0
----
-6745
-6745
-6745

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + CAST ( ( col1 ) AS REAL ) FROM tab0 AS cor0
----
86
91
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9743
SELECT DISTINCT + CAST( + 19 AS SIGNED ) + - col2 AS col1 FROM tab2 AS cor0
----
-19
-7
-8

skipif mysql # not compatible
query I rowsort label-9743
SELECT DISTINCT + CAST ( + 19 AS INTEGER ) + - col2 AS col1 FROM tab2 AS cor0
----
-19
-7
-8

query I rowsort
SELECT + col0 * - 0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - 77 * col0 + col0 * col2 AS col2 FROM tab1 AS cor0
----
-1280
-69
1520

query I rowsort
SELECT ALL - 54 * 79 + col2 FROM tab0 AS cor0
----
-4184
-4233
-4265

query I rowsort
SELECT - col0 * + col0 - col1 * 66 AS col2 FROM tab0
----
-13927
-6252
-7627

query I rowsort
SELECT DISTINCT + 66 AS col2 FROM tab2
----
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 + - 38 * col0 col1 FROM tab0 AS cor0
----
-1295
-3293
-888

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9750
SELECT DISTINCT - - col2 * + CAST( col2 AS SIGNED ) FROM tab0 AS cor0
----
1
1089
6724

skipif mysql # not compatible
query I rowsort label-9750
SELECT DISTINCT - - col2 * + CAST ( col2 AS INTEGER ) FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT col2 + 70 * col2 FROM tab2 AS cor0
----
1846
1917
2698

query I rowsort
SELECT col0 * col0 + col0 - 91 FROM tab1
----
-79
4069
6389

query I rowsort
SELECT DISTINCT col2 + + col2 + 0 * col0 FROM tab1
----
108
114
192

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 33 col1 FROM tab2
----
-33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab1.col2 * col2 col0 FROM tab1
----
-2916
-3249
-9216

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9756
SELECT + CAST( 29 AS SIGNED ) FROM tab1
----
29
29
29

skipif mysql # not compatible
query I rowsort label-9756
SELECT + CAST ( 29 AS INTEGER ) FROM tab1
----
29
29
29

query I rowsort
SELECT col0 * + col2 * 2 FROM tab2 AS cor0
----
378
4056
6004

onlyif mysql # use DIV operator for integer division
query I rowsort label-9758
SELECT DISTINCT + col0 + - cor0.col0 DIV col2 FROM tab0 AS cor0
----
0
24
88

skipif mysql # not compatible
query I rowsort label-9758
SELECT DISTINCT + col0 + - cor0.col0 / col2 FROM tab0 AS cor0
----
0
24
88

query I rowsort
SELECT + tab1.col0 * + ( 68 + - tab1.col0 ) AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 3a76a96b0d9049e086ad6cd5628e4e37

query I rowsort
SELECT - - tab2.col2 AS col2 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT 69 * cor0.col2 FROM tab1 AS cor0
----
3726
3933
6624

onlyif mysql # use DIV operator for integer division
query I rowsort label-9762
SELECT DISTINCT - col2 + + col1 * ( col2 ) DIV - col2 AS col2 FROM tab0 AS cor0
----
-119
-173
-98

skipif mysql # not compatible
query I rowsort label-9762
SELECT DISTINCT - col2 + + col1 * ( col2 ) / - col2 AS col2 FROM tab0 AS cor0
----
-119
-173
-98

query I rowsort
SELECT ALL - cor0.col0 * col2 AS col1 FROM tab1 cor0
----
-162
-3648
-7680

query I rowsort
SELECT ALL - + col0 * col1 + - 75 AS col1 FROM tab2 AS cor0
----
-1418
-292
-4677

query I rowsort
SELECT ALL + - cor0.col0 * col0 AS col1 FROM tab1 AS cor0
----
-4096
-6400
-9

query I rowsort
SELECT + col0 + ( 97 ) + - col2 FROM tab1
----
104
46
81

query I rowsort
SELECT col2 * col1 + - col2 + tab1.col0 * 73 FROM tab1
----
1569
5185
6992

query I rowsort
SELECT DISTINCT tab2.col2 * + col0 + + 3 AS col1 FROM tab2
----
192
2031
3005

query I rowsort
SELECT - col2 * + 33 FROM tab1 cor0
----
-1782
-1881
-3168

query I rowsort
SELECT ALL - col1 * - 0 AS col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-9771
SELECT ALL - - col2 DIV + ( + col1 ) FROM tab2 AS cor0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-9771
SELECT ALL - - col2 / + ( + col1 ) FROM tab2 AS cor0
----
0
0
2

query I rowsort
SELECT DISTINCT + - 7 FROM tab1, tab1 AS cor0
----
-7

query I rowsort
SELECT DISTINCT + cor0.col0 + ( col1 ) AS col2 FROM tab0 AS cor0
----
110
132
180

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 96 * col2 col1 FROM tab1 AS cor0
----
-5184
-5472
-9216

query I rowsort
SELECT - ( col2 ) * col0 AS col1 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT + col1 * + ( col1 ) + col1 FROM tab1 cor0
----
110
182
702

query I rowsort
SELECT DISTINCT - - 44 * col1 + col1 + col1 FROM tab2 AS cor0
----
1426
2714
782

onlyif mysql # use DIV operator for integer division
query I rowsort label-9778
SELECT DISTINCT + col0 DIV col0 + + col0 DIV 78 + - 63 AS col1 FROM tab2 cor0
----
-61
-62

skipif mysql # not compatible
query I rowsort label-9778
SELECT DISTINCT + col0 / col0 + + col0 / 78 + - 63 AS col1 FROM tab2 cor0
----
-61
-62

query I rowsort
SELECT - ( + 26 ) * - col0 AS col1 FROM tab1 AS cor0
----
1664
2080
78

query I rowsort
SELECT ALL - ( col1 ) + - col1 FROM tab1 AS cor0
----
-20
-26
-52

onlyif mysql # use DIV operator for integer division
query I rowsort label-9781
SELECT + col0 DIV + 37 + + col2 FROM tab1 AS cor0
----
54
58
98

skipif mysql # not compatible
query I rowsort label-9781
SELECT + col0 / + 37 + + col2 FROM tab1 AS cor0
----
54
58
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - col1 ) + col2 col1 FROM tab2 AS cor0
----
-33
-4
21

query I rowsort
SELECT ALL + tab0.col1 * - col0 AS col1 FROM tab0
----
-2064
-3395
-8099

query I rowsort
SELECT - col2 * + col2 + + tab0.col0 * col2 AS col2 FROM tab0
----
-297
34
574

query I rowsort
SELECT + cor0.col2 * 56 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to e9396190df4c4c6d05a46eb270e304f3

query I rowsort
SELECT DISTINCT + - 67 + col2 AS col0 FROM tab0 AS cor0
----
-34
-66
15

query I rowsort
SELECT ALL - + ( + 39 ) - col0 AS col1 FROM tab1 AS cor0
----
-103
-119
-42

onlyif mysql # use DIV operator for integer division
query I rowsort label-9788
SELECT ALL + 81 DIV - 36 + + cor0.col2 - + 69 AS col1 FROM tab1 AS cor0
----
-14
-17
25

skipif mysql # not compatible
query I rowsort label-9788
SELECT ALL + 81 / - 36 + + cor0.col2 - + 69 AS col1 FROM tab1 AS cor0
----
-14
-17
25

query I rowsort
SELECT DISTINCT ( 70 ) + cor0.col1 FROM tab1 AS cor0
----
80
83
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + 88 + - col0 col1 FROM tab1 AS cor0
----
-40
-72
82

query I rowsort
SELECT + 13 * 95 FROM tab0 cor0
----
1235
1235
1235

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9792
SELECT ALL + CAST( NULL AS SIGNED ) * 50 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9792
SELECT ALL + CAST ( NULL AS INTEGER ) * 50 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 + ( + cor0.col0 ) + cor0.col2 col2 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to f1a99f113bc75af4c12fc7d9cd8dde67

query I rowsort
SELECT 27 AS col1 FROM tab1, tab1 cor0
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8

onlyif mysql # use DIV operator for integer division
query I rowsort label-9795
SELECT DISTINCT ( col1 ) * col1 DIV col1 FROM tab2
----
17
31
59

skipif mysql # not compatible
query I rowsort label-9795
SELECT DISTINCT ( col1 ) * col1 / col1 FROM tab2
----
17
31
59

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9796
SELECT + CAST( NULL AS DECIMAL ) * + col1 + col1 * - 68 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9796
SELECT + CAST ( NULL AS REAL ) * + col1 + col1 * - 68 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - ( + col0 ) * col2 AS col0 FROM tab0 AS cor0
----
-35
-7298
-792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - 76 ) * cor0.col0 col2 FROM tab2 AS cor0
----
532
5928
6004

query I rowsort
SELECT - - 67 + - col0 + col1 * col2 AS col2 FROM tab1 cor0
----
1235
1468
573

query I rowsort
SELECT + col2 * col1 + cor0.col2 * + col1 AS col0 FROM tab0 AS cor0
----
14924
194
5676

onlyif mysql # use DIV operator for integer division
query I rowsort label-9801
SELECT - ( col2 ) DIV + ( + 85 * + col0 ) + - col2 FROM tab1 AS cor0
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-9801
SELECT - ( col2 ) / + ( + 85 * + col0 ) + - col2 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT + + col2 * col1 + 69 FROM tab0 AS cor0
----
166
2907
7531

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 + + col0 col2 FROM tab1 AS cor0
----
128
160
6

query I rowsort
SELECT ALL - ( + col0 * + col1 ) FROM tab0
----
-2064
-3395
-8099

query I rowsort
SELECT - col2 + - ( col1 ) FROM tab1
----
-109
-67
-80

query I rowsort
SELECT + tab1.col2 * + 6 * + tab1.col1 FROM tab1
----
3420
7488
8424

query I rowsort
SELECT ALL - col0 + - 88 AS col2 FROM tab1 cor0
----
-152
-168
-91

query I rowsort
SELECT + cor0.col2 * col0 + - col1 AS col0 FROM tab0 AS cor0
----
-62
706
7207

query I rowsort
SELECT DISTINCT - col1 + - col1 * + col2 FROM tab2 AS cor0
----
-1593
-663
-868

query I rowsort
SELECT - - col0 - + cor0.col0 * cor0.col2 AS col2 FROM tab2 AS cor0
----
-182
-1950
-2923

query I rowsort
SELECT DISTINCT + col2 * - 20 AS col0 FROM tab0 AS cor0
----
-1640
-20
-660

onlyif mysql # use DIV operator for integer division
query I rowsort label-9812
SELECT DISTINCT + + col0 + + ( - cor0.col1 ) DIV col0 FROM tab0 AS cor0
----
21
33
88

skipif mysql # not compatible
query I rowsort label-9812
SELECT DISTINCT + + col0 + + ( - cor0.col1 ) / col0 FROM tab0 AS cor0
----
21
33
88

query I rowsort
SELECT + - col2 - 44 FROM tab1 cor0
----
-101
-140
-98

query I rowsort
SELECT DISTINCT + col1 * cor0.col1 + - 95 * cor0.col1 FROM tab0 AS cor0
----
-364
-774
194

query I rowsort
SELECT + cor0.col0 * - ( - col2 ) - + col2 AS col0 FROM tab2 AS cor0
----
162
2002
2964

query I rowsort
SELECT ALL - cor0.col1 * + col0 * cor0.col2 + - col2 AS col0 FROM tab0 AS cor0
----
-3396
-664200
-68145

query I rowsort
SELECT DISTINCT - col2 + - col0 * 62 AS col0 FROM tab2 AS cor0
----
-461
-4862
-4936

query I rowsort
SELECT - col1 * + 18 - col1 * + col2 FROM tab0 AS cor0
----
-1843
-4386
-9100

query I rowsort
SELECT ALL col1 + - 21 * - col1 * - col1 FROM tab0 AS cor0
----
-155230
-173810
-197492

query I rowsort
SELECT col2 - - ( 74 + + col2 ) * ( col2 + - col0 ) AS col1 FROM tab2 AS cor0
----
-4554
-5174
2047

onlyif mysql # use DIV operator for integer division
query I rowsort label-9821
SELECT DISTINCT col0 + - 76 * - col2 DIV col2 AS col0 FROM tab0 AS cor0
----
100
111
165

skipif mysql # not compatible
query I rowsort label-9821
SELECT DISTINCT col0 + - 76 * - col2 / col2 AS col0 FROM tab0 AS cor0
----
100
111
165

query I rowsort
SELECT + col1 * col0 + col1 * col0 FROM tab0 AS cor0
----
16198
4128
6790

query I rowsort
SELECT ALL + tab1.col1 + col1 + col2 AS col2 FROM tab1
----
106
122
77

query I rowsort
SELECT cor1.col0 AS col0 FROM tab1 cor0 CROSS JOIN tab1, tab2 cor1, tab2 AS cor2
----
81 values hashing to 05835f29dd9cd4fa16889de54dec3cb6

query I rowsort
SELECT DISTINCT col2 * - 99 FROM tab0 AS cor0
----
-3267
-8118
-99

query I rowsort
SELECT - cor0.col1 * + col0 AS col2 FROM tab0 cor0
----
-2064
-3395
-8099

query I rowsort
SELECT DISTINCT + - col2 + cor0.col2 * 55 AS col2 FROM tab1 AS cor0
----
2916
3078
5184

query I rowsort
SELECT col1 + + ( + col2 ) * - col2 AS col2 FROM tab0
----
-1003
-6633
96

query I rowsort
SELECT col2 + - col1 * + col0 * - col1 FROM tab0 AS cor0
----
177537
329316
737091

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + ( + cor0.col1 ) col1 FROM tab0 AS cor0
----
119
173
98

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab0 cor2, tab0 AS cor3
----
3645 values hashing to 38896d3a4bd953cc78f93d73ae064cbd

query I rowsort
SELECT 7 * col0 + cor0.col2 AS col1 FROM tab0 AS cor0
----
201
246
705

query I rowsort
SELECT + tab1.col1 + - tab1.col2 AS col1 FROM tab1 WHERE NOT NULL IN ( - col0 )
----

query I rowsort
SELECT - col1 * - tab2.col0 + col0 + col1 * tab2.col2 FROM tab2
----
1061
2068
6214

query III rowsort
SELECT * FROM tab2 WHERE col0 NOT IN ( col2 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

onlyif mysql # use DIV operator for integer division
query I rowsort label-9836
SELECT ALL + col1 DIV tab0.col1 - col0 * col1 FROM tab0
----
-2063
-3394
-8098

skipif mysql # not compatible
query I rowsort label-9836
SELECT ALL + col1 / tab0.col1 - col0 * col1 FROM tab0
----
-2063
-3394
-8098

query I rowsort
SELECT DISTINCT - col2 + + tab2.col1 * col2 FROM tab2
----
1508
608
810

query I rowsort
SELECT DISTINCT - tab0.col1 * + 24 FROM tab0, tab2 AS cor0
----
-2064
-2184
-2328

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9839
SELECT + col2 * - col0 + - CAST( col1 + col0 AS SIGNED ) FROM tab1 cor0
----
-191
-3722
-7773

skipif mysql # not compatible
query I rowsort label-9839
SELECT + col2 * - col0 + - CAST ( col1 + col0 AS INTEGER ) FROM tab1 cor0
----
-191
-3722
-7773

onlyif mysql # use DIV operator for integer division
query I rowsort label-9840
SELECT 60 DIV - col1 FROM tab2 AS cor0
----
-1
-1
-3

skipif mysql # not compatible
query I rowsort label-9840
SELECT 60 / - col1 FROM tab2 AS cor0
----
-1
-1
-3

query I rowsort
SELECT DISTINCT - col2 + - cor0.col0 * + col2 AS col1 FROM tab2 AS cor0
----
-2054
-216
-3040

onlyif mysql # use DIV operator for integer division
query I rowsort label-9842
SELECT ALL - col0 * + col2 + ( + col1 ) + - cor0.col2 DIV ( col0 ) AS col1 FROM tab2 AS cor0
----
-161
-1969
-2985

skipif mysql # not compatible
query I rowsort label-9842
SELECT ALL - col0 * + col2 + ( + col1 ) + - cor0.col2 / ( col0 ) AS col1 FROM tab2 AS cor0
----
-161
-1969
-2985

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 35 col0 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 0d13dfd4c4a9d51ace3582c31cadcdbc

query I rowsort
SELECT col2 * col2 + col0 + col1 FROM tab2
----
1540
767
813

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9845
SELECT + CAST( 79 AS SIGNED ) + cor0.col1 * col0 + col1 FROM tab1 AS cor0
----
1132
183
729

skipif mysql # not compatible
query I rowsort label-9845
SELECT + CAST ( 79 AS INTEGER ) + cor0.col1 * col0 + col1 FROM tab1 AS cor0
----
1132
183
729

query I rowsort
SELECT + 29 * + cor0.col1 FROM tab0 AS cor0
----
2494
2639
2813

query I rowsort
SELECT - ( col0 ) + + col0 + col2 AS col1 FROM tab0 AS cor0
----
1
33
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-9848
SELECT ( + col2 ) DIV 77 + + 83 AS col2 FROM tab0 AS cor0
----
83
83
84

skipif mysql # not compatible
query I rowsort label-9848
SELECT ( + col2 ) / 77 + + 83 AS col2 FROM tab0 AS cor0
----
83
83
84

onlyif mysql # use DIV operator for integer division
query I rowsort label-9849
SELECT DISTINCT - col0 DIV col1 + - col1 - - col1 AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9849
SELECT DISTINCT - col0 / col1 + - col1 - - col1 AS col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT + col2 * col0 * 32 + col0 AS col1 FROM tab1 cor0
----
116800
245840
5187

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9851
SELECT + 23 + - col1 + CAST( col1 + col2 AS SIGNED ) * - ( col0 ) AS col1 FROM tab2 AS cor0
----
-414
-4339
-6666

skipif mysql # not compatible
query I rowsort label-9851
SELECT + 23 + - col1 + CAST ( col1 + col2 AS INTEGER ) * - ( col0 ) AS col1 FROM tab2 AS cor0
----
-414
-4339
-6666

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col2 + col0 col1 FROM tab2 AS cor0
----
1612
725
844

query I rowsort
SELECT DISTINCT + + col1 - + col1 * cor0.col1 FROM tab2 cor0
----
-272
-3422
-930

query I rowsort
SELECT ALL cor0.col1 + col2 * - col1 FROM tab2 AS cor0
----
-1475
-629
-806

onlyif mysql # use DIV operator for integer division
query I rowsort label-9855
SELECT ALL col1 DIV cor0.col2 + - col1 AS col0 FROM tab0 AS cor0
----
-84
-90
0

skipif mysql # not compatible
query I rowsort label-9855
SELECT ALL col1 / cor0.col2 + - col1 AS col0 FROM tab0 AS cor0
----
-84
-90
0

query I rowsort
SELECT DISTINCT - col1 * tab1.col1 + - col1 AS col0 FROM tab1
----
-110
-182
-702

onlyif mysql # use DIV operator for integer division
query I rowsort label-9857
SELECT ALL col2 DIV col1 + - tab2.col0 FROM tab2
----
-7
-77
-78

skipif mysql # not compatible
query I rowsort label-9857
SELECT ALL col2 / col1 + - tab2.col0 FROM tab2
----
-7
-77
-78

query I rowsort
SELECT col0 - + col2 * - col2 FROM tab1
----
2919
3313
9296

onlyif mysql # use DIV operator for integer division
query I rowsort label-9859
SELECT col1 DIV - col0 + col0 col2 FROM tab2 AS cor0
----
3
78
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9859
SELECT col1 / - col0 + col0 col2 FROM tab2 AS cor0
----
3
78
79

query I rowsort
SELECT DISTINCT + col0 + + cor0.col2 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT ALL - col1 * - col2 * + col0 AS col1 FROM tab2
----
119652
51034
5859

query I rowsort
SELECT ALL tab0.col0 * col0 * col2 FROM tab0
----
1225
19008
649522

query I rowsort
SELECT DISTINCT cor0.col2 * col0 * col2 + col0 FROM tab2 AS cor0
----
114155
5110
52806

query I rowsort
SELECT ALL + ( ( + tab0.col0 ) ) FROM tab0
----
24
35
89

query I rowsort
SELECT col1 * col1 - + col0 FROM tab1 cor0
----
36
673
89

query I rowsort
SELECT DISTINCT 2 - - col0 AS col2 FROM tab0
----
26
37
91

onlyif mysql # use DIV operator for integer division
query I rowsort label-9867
SELECT + col2 DIV - ( - col2 + tab0.col1 * col0 ) FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9867
SELECT + col2 / - ( - col2 + tab0.col1 * col0 ) FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT col1 - col0 AS col0 FROM tab2
----
-19
-62
24

query I rowsort
SELECT col2 * - col2 * cor0.col1 AS col0 FROM tab2 AS cor0
----
-22599
-24548
-39884

query I rowsort
SELECT col2 * - col2 + - cor0.col1 FROM tab2 cor0
----
-1461
-735
-760

query I rowsort
SELECT - col2 * + tab2.col0 - + col1 AS col2 FROM tab2
----
-2087
-220
-3019

query I rowsort
SELECT DISTINCT + + 85 * col1 - + col0 * col1 AS col0 FROM tab1 AS cor0
----
210
2132
65

query I rowsort
SELECT + 64 + col1 AS col1 FROM tab2 AS cor0
----
123
81
95

query I rowsort
SELECT col1 + + col1 * + col0 AS col2 FROM tab1 AS cor0
----
104
1053
650

query I rowsort
SELECT DISTINCT - + 70 * col2 * + col2 + col0 FROM tab2 AS cor0
----
-101001
-47242
-51023

query I rowsort
SELECT DISTINCT col0 - + cor0.col1 * col1 AS col1 FROM tab1 AS cor0
----
-36
-673
-89

query I rowsort
SELECT - 50 * col1 + col0 FROM tab2 AS cor0
----
-1543
-2872
-771

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 * + col2 + + col2 col1 FROM tab2 AS cor0
----
2054
216
3040

query I rowsort
SELECT 89 - col0 FROM tab1 AS cor0
----
25
86
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-9880
SELECT DISTINCT + + 77 DIV col0 AS col1 FROM tab1 AS cor0
----
0
1
25

skipif mysql # not compatible
query I rowsort label-9880
SELECT DISTINCT + + 77 / col0 AS col1 FROM tab1 AS cor0
----
0
1
25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col1 + - col1 col2 FROM tab0
----
7310
8190
9312

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col2 > NULL
----

query I rowsort
SELECT DISTINCT col0 * - col2 * col0 AS col1 FROM tab2
----
-1323
-158184
-237158

query I rowsort
SELECT col1 * col0 * col2 AS col0 FROM tab0
----
3395
664118
68112

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col2 <= col0 + - col2
----
78
59
26
79
17
38

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col2 + + col1 IN ( col1 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

query III rowsort
SELECT * FROM tab0 WHERE NULL <> col0 + col2
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-9888
SELECT - col2 DIV tab1.col1 AS col0 FROM tab1
----
-2
-5
-7

skipif mysql # not compatible
query I rowsort label-9888
SELECT - col2 / tab1.col1 AS col0 FROM tab1
----
-2
-5
-7

query I rowsort
SELECT - col1 * col1 * + col2 + + col2 FROM tab0
----
-244035
-678960
-9408

query I rowsort
SELECT ALL + col2 * col1 * tab2.col1 - col2 * col0 FROM tab2
----
25758
7980
88478

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + col0 - col1 col0 FROM tab0
----
-62
706
7207

query I rowsort
SELECT DISTINCT - col1 + col2 * + col1 FROM tab0
----
0
2752
7371

query I rowsort
SELECT - col1 * - col0 + + col0 * col2 * + col0 FROM tab2
----
1540
162786
238501

query I rowsort
SELECT DISTINCT col0 * - col2 * - col0 FROM tab1
----
233472
486
614400

query I rowsort
SELECT + col2 + tab2.col2 * col1 AS col1 FROM tab2
----
1560
684
864

query III rowsort
SELECT * FROM tab0 WHERE NOT ( col1 * - col2 + col1 ) BETWEEN NULL AND col1
----

query I rowsort
SELECT ALL col2 + + col1 - + col1 FROM tab0
----
1
33
82

query III rowsort
SELECT ALL * FROM tab1 WHERE ( col0 + col2 ) > ( NULL )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-9899
SELECT - tab0.col2 DIV col1 + - col2 + col1 FROM tab0
----
53
9
96

skipif mysql # not compatible
query I rowsort label-9899
SELECT - tab0.col2 / col1 + - col2 + col1 FROM tab0
----
53
9
96

query I rowsort
SELECT + tab2.col0 * - col1 + + col0 * - col2 AS col1 FROM tab2
----
-406
-4345
-6630

query I rowsort
SELECT ALL - col0 * + col0 * tab0.col1 FROM tab0
----
-118825
-49536
-720811

query I rowsort
SELECT ALL + col1 * + col0 * col1 FROM tab0 AS cor0
----
177504
329315
737009

query I rowsort
SELECT ALL col0 * col2 * col2 FROM tab0 AS cor0
----
26136
35
598436

query I rowsort
SELECT DISTINCT cor0.col2 * col1 + + cor0.col2 FROM tab2 AS cor0
----
1560
684
864

onlyif mysql # use DIV operator for integer division
query I rowsort label-9905
SELECT + - cor0.col2 DIV - col0 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-9905
SELECT + - cor0.col2 / - col0 FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT ALL - cor0.col1 + col2 * + col0 AS col1 FROM tab1 AS cor0
----
136
3638
7667

query I rowsort
SELECT DISTINCT + col1 + col2 * - col1 AS col1 FROM tab0 AS cor0
----
-2752
-7371
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 * col1 / cor0.col0 IN ( col2 * + col1 + col2 ) OR NOT ( NULL ) >= NULL
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col1 FROM tab0 AS cor0 WHERE - col0 BETWEEN ( col2 ) AND col1 * - col2
----

query I rowsort
SELECT - col2 * - col2 + col1 AS col1 FROM tab2 AS cor0
----
1461
735
760

query I rowsort
SELECT + col2 * col1 + tab1.col0 AS col2 FROM tab1
----
1328
1407
634

query I rowsort
SELECT ALL + col2 * tab0.col1 AS col0 FROM tab0
----
2838
7462
97

query I rowsort
SELECT DISTINCT + 30 AS col2 FROM tab2, tab0 AS cor0
----
30

query I rowsort
SELECT DISTINCT - col1 * - 15 FROM tab2
----
255
465
885

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9915
SELECT CAST( col0 AS SIGNED ) * - cor0.col2 + col1 FROM tab2 AS cor0
----
-158
-1969
-2985

skipif mysql # not compatible
query I rowsort label-9915
SELECT CAST ( col0 AS INTEGER ) * - cor0.col2 + col1 FROM tab2 AS cor0
----
-158
-1969
-2985

query I rowsort
SELECT - - 4 FROM tab0 cor0
----
4
4
4

query I rowsort
SELECT DISTINCT + ( 93 ) FROM tab2
----
93

query I rowsort
SELECT - + 92 + + cor0.col0 FROM tab2 AS cor0
----
-13
-14
-85

query I rowsort
SELECT DISTINCT + - col0 * - col1 * + 13 + 84 AS col0 FROM tab1 AS cor0
----
1098
13604
8404

query I rowsort
SELECT DISTINCT + - 54 + - cor0.col0 FROM tab1 AS cor0
----
-118
-134
-57

query I rowsort
SELECT + - col1 * - 18 + cor0.col2 * col2 + + 54 FROM tab1 AS cor0
----
3438
3483
9504

query I rowsort
SELECT cor0.col1 * - col2 + col2 AS col0 FROM tab2 AS cor0
----
-1508
-608
-810

query I rowsort
SELECT - col1 + col2 + cor0.col2 * + col1 FROM tab2 AS cor0
----
1501
667
833

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9924
SELECT + - cor0.col2 * CAST( NULL AS SIGNED ) + + col1 + col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9924
SELECT + - cor0.col2 * CAST ( NULL AS INTEGER ) + + col1 + col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + - col0 + + col1 col1 FROM tab0 AS cor0
----
-80
29
61

query I rowsort
SELECT - + col0 * + 65 AS col1 FROM tab1 AS cor0
----
-195
-4160
-5200

query I rowsort
SELECT ALL + ( + col0 ) + - col2 * + tab2.col1 + col1 AS col1 FROM tab2
----
-1397
-550
-799

query I rowsort
SELECT DISTINCT 60 * col1 + col0 AS col1 FROM tab0
----
5184
5549
5855

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 * col0 + - col1 + - col1 * + col1 * col2 col0 FROM tab0 AS cor0
----
-242090
-6111
-671034

query I rowsort
SELECT - col2 * + 61 + ( col0 ) AS col1 FROM tab1 AS cor0
----
-3291
-3413
-5776

query I rowsort
SELECT - col1 * col1 + - 29 * col2 * - cor0.col1 AS col2 FROM tab1 AS cor0
----
16430
36023
40040

query I rowsort
SELECT ALL - 89 AS col1 FROM tab0, tab0 cor0
----
9 values hashing to 924a74d31360fa4301c953b423a4710e

query I rowsort
SELECT + col2 * - col1 + 7 * + col1 + col1 * - ( - col1 ) AS col2 FROM tab0
----
1456
5160
9991

onlyif mysql # use DIV operator for integer division
query I rowsort label-9934
SELECT + ( + col2 ) DIV + col1 + cor0.col2 + cor0.col0 * + col0 FROM tab1 AS cor0
----
4158
65
6503

skipif mysql # not compatible
query I rowsort label-9934
SELECT + ( + col2 ) / + col1 + cor0.col2 + cor0.col0 * + col0 FROM tab1 AS cor0
----
4158
65
6503

query I rowsort
SELECT - col0 + 10 * + col1 FROM tab0 AS cor0
----
821
836
935

query I rowsort
SELECT ALL + col2 + cor0.col1 * - cor0.col1 FROM tab1 AS cor0
----
-43
-622
-73

query I rowsort
SELECT DISTINCT - - col2 + col0 AS col0 FROM tab1 cor0
----
121
176
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-9938
SELECT + CAST( col0 AS SIGNED ) DIV col0 + ( - col1 ) col0 FROM tab1 AS cor0
----
-12
-25
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9938
SELECT + CAST ( col0 AS INTEGER ) / col0 + ( - col1 ) col0 FROM tab1 AS cor0
----
-12
-25
-9

query I rowsort
SELECT ALL + cor0.col1 * cor0.col1 + col1 FROM tab0 AS cor0
----
7482
8372
9506

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 86 + - cor0.col0 col0 FROM tab0 AS cor0
----
-3
51
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + col1 col0 FROM tab0 cor0
----
119
173
98

query I rowsort
SELECT - - 79 + + col2 * col1 AS col0 FROM tab2 AS cor0
----
1613
725
916

query I rowsort
SELECT DISTINCT col1 * - 95 * col2 + + col2 FROM tab1 cor0
----
-118464
-133326
-54093

onlyif mysql # use DIV operator for integer division
query I rowsort label-9944
SELECT ALL - 32 DIV col0 FROM tab2 AS cor0
----
-4
0
0

skipif mysql # not compatible
query I rowsort label-9944
SELECT ALL - 32 / col0 FROM tab2 AS cor0
----
-4
0
0

query I rowsort
SELECT + - col1 * col0 + col2 AS col2 FROM tab1 cor0
----
-24
-583
-944

query I rowsort
SELECT + 59 + - col1 * col0 * - col1 FROM tab1 AS cor0
----
13579
2087
6459

query I rowsort
SELECT ALL + cor0.col2 * cor0.col1 + cor0.col2 AS col1 FROM tab1 AS cor0
----
1344
1458
627

query I rowsort
SELECT DISTINCT - ( col2 ) + - col2 AS col1 FROM tab0 AS cor0
----
-164
-2
-66

query I rowsort
SELECT cor0.col0 * 65 FROM tab1 AS cor0
----
195
4160
5200

query I rowsort
SELECT ALL col2 * col1 + col0 AS col0 FROM tab0 AS cor0
----
132
2862
7551

onlyif mysql # use DIV operator for integer division
query I rowsort label-9951
SELECT DISTINCT + ( + col1 ) DIV + col2 FROM tab0 AS cor0
----
1
2
97

skipif mysql # not compatible
query I rowsort label-9951
SELECT DISTINCT + ( + col1 ) / + col2 FROM tab0 AS cor0
----
1
2
97

query I rowsort
SELECT ALL - col0 - + tab1.col2 * 34 AS col1 FROM tab1
----
-1839
-2002
-3344

query I rowsort
SELECT - - col0 + - 80 + col0 * 22 FROM tab0 AS cor0
----
1967
472
725

query I rowsort
SELECT ALL + 45 + 96 FROM tab0, tab2 AS cor0 CROSS JOIN tab2
----
27 values hashing to 1dba1efab97ddd582afcd3f3f6e1fb1f

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9955
SELECT + CAST( NULL AS SIGNED ) * - 19 + + col1 col2 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9955
SELECT + CAST ( NULL AS INTEGER ) * - 19 + + col1 col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - - col2 * - 84 + col1 AS col0 FROM tab1 AS cor0
----
-4510
-4778
-8051

query I rowsort
SELECT tab2.col1 + - 95 AS col0 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to bb9ea5e6ac7c95b296ecf4907eded724

query I rowsort
SELECT + 61 AS col0 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 8d4dfe649433a599fc4b10830cc7ce55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + + 65 * - 27 + + cor0.col2 * 61 col1 FROM tab0 AS cor0
----
-1693
291
3329

query I rowsort
SELECT DISTINCT + col1 * + 0 * col0 - tab1.col1 AS col0 FROM tab1
----
-10
-13
-26

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9961
SELECT DISTINCT col1 - CAST( + col1 AS SIGNED ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9961
SELECT DISTINCT col1 - CAST ( + col1 AS INTEGER ) FROM tab2
----
0

query I rowsort
SELECT - 58 - + cor0.col0 FROM tab2, tab1 AS cor0
----
9 values hashing to e93e9a9386e07320984459c006e95c6f

query I rowsort
SELECT - col0 + col0 * + col1 + tab2.col1 FROM tab2
----
1281
241
4583

query I rowsort
SELECT tab0.col1 + + ( - col2 ) + col0 AS col0 FROM tab0
----
131
77
98

query I rowsort
SELECT DISTINCT - col1 + ( col1 ) * col0 AS col0 FROM tab2 AS cor0
----
1326
186
4543

query I rowsort
SELECT DISTINCT + + col1 * - ( ( col1 ) ) * col0 AS col0 FROM tab1 AS cor0
----
-13520
-2028
-6400

query I rowsort
SELECT ALL + - cor0.col0 * - col2 AS col1 FROM tab1 AS cor0
----
162
3648
7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-9968
SELECT - + col2 DIV cor0.col2 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9968
SELECT - + col2 / cor0.col2 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ALL - col1 + col0 * ( col2 + - col1 ) FROM tab0
----
-1358
-3457
-892

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 0 * + col0 col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ( cor0.col1 ) + 9 * + col0 FROM tab2 AS cor0
----
728
761
94

onlyif mysql # use DIV operator for integer division
query I rowsort label-9972
SELECT col0 DIV + col1 - + ( - col2 ) AS col1 FROM tab1 AS cor0
----
102
54
63

skipif mysql # not compatible
query I rowsort label-9972
SELECT col0 / + col1 - + ( - col2 ) AS col1 FROM tab1 AS cor0
----
102
54
63

query I rowsort
SELECT - + col1 - col2 FROM tab0 cor0
----
-119
-173
-98

query I rowsort
SELECT + + col1 + - cor0.col1 * cor0.col0 AS col1 FROM tab2 cor0
----
-1326
-186
-4543

query I rowsort
SELECT DISTINCT + col1 + - col2 * + col2 FROM tab1 AS cor0
----
-2890
-3239
-9203

query I rowsort
SELECT DISTINCT + + 48 * + col1 * + 17 + col0 FROM tab1 AS cor0
----
10688
21219
8224

query I rowsort
SELECT ALL + col0 * + col0 - + ( + cor0.col1 ) * col2 AS col1 FROM tab0 AS cor0
----
-2262
1128
459

query I rowsort
SELECT + 59 * - col2 + ( - col1 ) FROM tab2 AS cor0
----
-1593
-1624
-2259

query I rowsort
SELECT DISTINCT 43 * col2 + 59 + - 32 FROM tab2 AS cor0
----
1145
1188
1661

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9980
SELECT DISTINCT + col1 + - CAST( - col1 AS SIGNED ) * col2 * + col1 FROM tab2 AS cor0
----
10999
25978
90565

skipif mysql # not compatible
query I rowsort label-9980
SELECT DISTINCT + col1 + - CAST ( - col1 AS INTEGER ) * col2 * + col1 FROM tab2 AS cor0
----
10999
25978
90565

query I rowsort
SELECT DISTINCT + cor0.col2 + ( + ( cor0.col1 ) ) - 28 * col1 AS col0 FROM tab0 AS cor0
----
-2289
-2375
-2618

query I rowsort
SELECT cor0.col0 + 16 AS col0 FROM tab1 cor0
----
19
80
96

query I rowsort
SELECT col0 * col1 + cor0.col1 AS col2 FROM tab1 AS cor0
----
104
1053
650

query I rowsort
SELECT ALL - ( 28 ) * cor1.col0 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 215e3f82420743e7a0c8313c633a3058

query I rowsort
SELECT ALL + - 76 * col0 + + col1 AS col1 FROM tab2 AS cor0
----
-501
-5869
-5987

query I rowsort
SELECT - 72 + col0 FROM tab2 cor0
----
-65
6
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-9987
SELECT DISTINCT - 32 DIV + ( cor0.col2 ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9987
SELECT DISTINCT - 32 / + ( cor0.col2 ) FROM tab1 AS cor0
----
0

query I rowsort
SELECT + + cor0.col2 * cor0.col1 AS col1 FROM tab1 cor0
----
1248
1404
570

query I rowsort
SELECT DISTINCT + col0 * + col2 * col2 AS col0 FROM tab1 AS cor0
----
207936
737280
8748

query I rowsort
SELECT ALL - 36 * - col0 AS col0 FROM tab0 AS cor0
----
1260
3204
864

query I rowsort
SELECT DISTINCT ( + cor0.col2 ) * col0 AS col1 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT DISTINCT - - ( - col0 ) FROM tab2 cor0
----
-7
-78
-79

query I rowsort
SELECT - cor0.col1 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84

skipif mysql # not compatible
query I rowsort
SELECT ALL col1 * + ( + col1 ) - - CAST ( - col2 AS REAL ) FROM tab1
----
43
622
73

query I rowsort
SELECT - col1 + - 84 * + tab0.col2 + 23 FROM tab0
----
-158
-2835
-6956

onlyif mysql # use DIV operator for integer division
query I rowsort label-9996
SELECT col2 * - col1 + col1 DIV - 58 FROM tab1
----
-1248
-1404
-570

skipif mysql # not compatible
query I rowsort label-9996
SELECT col2 * - col1 + col1 / - 58 FROM tab1
----
-1248
-1404
-570

query I rowsort
SELECT ALL col2 + - cor0.col0 FROM tab2 cor0
----
-41
-52
20

onlyif mysql # use DIV operator for integer division
query I rowsort label-9998
SELECT + 28 * + col1 - col0 DIV 31 AS col1 FROM tab1 AS cor0
----
278
362
728

skipif mysql # not compatible
query I rowsort label-9998
SELECT + 28 * + col1 - col0 / 31 AS col1 FROM tab1 AS cor0
----
278
362
728